diff --git a/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md b/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md index e9261131b5e5..af32c9892b38 100644 --- a/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md +++ b/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md @@ -4,6 +4,7 @@ ### Features Added +- Re-generate with latest generator version. This contains splitting models into input and output models and typing improvements [#20059](https://github.com/Azure/azure-sdk-for-js/pull/20059) - Export pagination helper function. [#15831](https://github.com/Azure/azure-sdk-for-js/pull/15831) ## 1.0.0-beta.1 (2021-05-26) diff --git a/sdk/agrifood/agrifood-farming-rest/package.json b/sdk/agrifood/agrifood-farming-rest/package.json index 2607fe539035..fbd0e20758c8 100644 --- a/sdk/agrifood/agrifood-farming-rest/package.json +++ b/sdk/agrifood/agrifood-farming-rest/package.json @@ -82,10 +82,10 @@ "sideEffects": false, "autoPublish": false, "dependencies": { - "@azure/core-auth": "^1.3.0", - "@azure-rest/core-client-paging": "1.0.0-beta.1", "@azure-rest/core-client": "1.0.0-beta.7", - "@azure-rest/core-client-lro": "1.0.0-beta.1", + "@azure/core-auth": "^1.3.0", + "@azure/core-lro": "^2.2.4", + "@azure/core-paging": "^1.2.2", "@azure/logger": "^1.0.0", "tslib": "^2.2.0" }, diff --git a/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md b/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md index 284ca459ab02..445423e1b3eb 100644 --- a/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md +++ b/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md @@ -7,33 +7,33 @@ import { Client } from '@azure-rest/core-client'; import { ClientOptions } from '@azure-rest/core-client'; import { HttpResponse } from '@azure-rest/core-client'; -import { PagedAsyncIterableIterator } from '@azure-rest/core-client-paging'; +import { LroEngineOptions } from '@azure/core-lro'; +import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { PathUncheckedResponse } from '@azure-rest/core-client'; -import { PollerLike } from '@azure-rest/core-client-lro'; -import { PollerOptions } from '@azure-rest/core-client-lro'; -import { PollOperationState } from '@azure-rest/core-client-lro'; +import { PollerLike } from '@azure/core-lro'; +import { PollOperationState } from '@azure/core-lro'; import { RequestParameters } from '@azure-rest/core-client'; import { TokenCredential } from '@azure/core-auth'; // @public (undocumented) export interface ApplicationData { - applicationProductDetails?: ApplicationProductDetail[]; + applicationProductDetails?: Array; area?: Measure; associatedBoundaryId?: string; attachmentsLink?: string; avgMaterial?: Measure; - createdDateTime?: Date; + createdDateTime?: Date | string; description?: string; eTag?: string; farmerId?: string; id?: string; - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; name?: string; operationBoundaryId?: string; - operationEndDateTime?: Date; - operationModifiedDateTime?: Date; - operationStartDateTime?: Date; - properties?: ApplicationDataPropertiesDictionary; + operationEndDateTime?: Date | string; + operationModifiedDateTime?: Date | string; + operationStartDateTime?: Date | string; + properties?: Record; source?: string; status?: string; totalMaterial?: Measure; @@ -42,7 +42,7 @@ export interface ApplicationData { // @public export interface ApplicationDataCreateOrUpdate200Response extends HttpResponse { // (undocumented) - body: ApplicationData; + body: ApplicationDataOutput; // (undocumented) status: "200"; } @@ -50,37 +50,36 @@ export interface ApplicationDataCreateOrUpdate200Response extends HttpResponse { // @public export interface ApplicationDataCreateOrUpdate201Response extends HttpResponse { // (undocumented) - body: ApplicationData; + body: ApplicationDataOutput; // (undocumented) status: "201"; } // @public (undocumented) export interface ApplicationDataCreateOrUpdateBodyParam { - // (undocumented) body?: ApplicationData; } // @public export interface ApplicationDataCreateOrUpdatedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type ApplicationDataCreateOrUpdateParameters = RequestParameters & ApplicationDataCreateOrUpdateBodyParam; +export interface ApplicationDataCreateOrUpdateMediaTypesParam { + contentType?: "application/merge-patch+json"; +} // @public (undocumented) -export interface ApplicationDataDelete { - delete(options?: ApplicationDataDeleteParameters): Promise; - get(options?: ApplicationDataGetParameters): Promise; - patch(options?: ApplicationDataCreateOrUpdateParameters): Promise; -} +export type ApplicationDataCreateOrUpdateParameters = ApplicationDataCreateOrUpdateMediaTypesParam & ApplicationDataCreateOrUpdateBodyParam & RequestParameters; // @public export interface ApplicationDataDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -88,7 +87,7 @@ export interface ApplicationDataDelete204Response extends HttpResponse { // @public export interface ApplicationDataDeletedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -96,10 +95,17 @@ export interface ApplicationDataDeletedefaultResponse extends HttpResponse { // @public (undocumented) export type ApplicationDataDeleteParameters = RequestParameters; +// @public (undocumented) +export interface ApplicationDataGet { + delete(options?: ApplicationDataDeleteParameters): Promise; + get(options?: ApplicationDataGetParameters): Promise; + patch(options?: ApplicationDataCreateOrUpdateParameters): Promise; +} + // @public export interface ApplicationDataGet200Response extends HttpResponse { // (undocumented) - body: ApplicationData; + body: ApplicationDataOutput; // (undocumented) status: "200"; } @@ -107,7 +113,7 @@ export interface ApplicationDataGet200Response extends HttpResponse { // @public export interface ApplicationDataGetdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -123,7 +129,7 @@ export interface ApplicationDataList { // @public export interface ApplicationDataList200Response extends HttpResponse { // (undocumented) - body: ApplicationDataListResponse; + body: ApplicationDataListResponseOutput; // (undocumented) status: "200"; } @@ -136,7 +142,7 @@ export interface ApplicationDataListByFarmerId { // @public export interface ApplicationDataListByFarmerId200Response extends HttpResponse { // (undocumented) - body: ApplicationDataListResponse; + body: ApplicationDataListResponseOutput; // (undocumented) status: "200"; } @@ -144,13 +150,13 @@ export interface ApplicationDataListByFarmerId200Response extends HttpResponse { // @public export interface ApplicationDataListByFarmerIddefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type ApplicationDataListByFarmerIdParameters = RequestParameters & ApplicationDataListByFarmerIdQueryParam; +export type ApplicationDataListByFarmerIdParameters = ApplicationDataListByFarmerIdQueryParam & RequestParameters; // @public (undocumented) export interface ApplicationDataListByFarmerIdQueryParam { @@ -162,41 +168,41 @@ export interface ApplicationDataListByFarmerIdQueryParam { export interface ApplicationDataListByFarmerIdQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - associatedBoundaryIds?: string[]; - ids?: string[]; + associatedBoundaryIds?: Array; + ids?: Array; maxArea?: number; maxAvgMaterial?: number; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - maxOperationEndDateTime?: Date; - maxOperationModifiedDateTime?: Date; - maxOperationStartDateTime?: Date; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + maxOperationEndDateTime?: Date | string; + maxOperationModifiedDateTime?: Date | string; + maxOperationStartDateTime?: Date | string; maxTotalMaterial?: number; minArea?: number; minAvgMaterial?: number; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - minOperationEndDateTime?: Date; - minOperationModifiedDateTime?: Date; - minOperationStartDateTime?: Date; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + minOperationEndDateTime?: Date | string; + minOperationModifiedDateTime?: Date | string; + minOperationStartDateTime?: Date | string; minTotalMaterial?: number; - names?: string[]; - operationBoundaryIds?: string[]; - propertyFilters?: string[]; - sources?: string[]; - statuses?: string[]; + names?: Array; + operationBoundaryIds?: Array; + propertyFilters?: Array; + sources?: Array; + statuses?: Array; } // @public export interface ApplicationDataListdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type ApplicationDataListParameters = RequestParameters & ApplicationDataListQueryParam; +export type ApplicationDataListParameters = ApplicationDataListQueryParam & RequestParameters; // @public (undocumented) export interface ApplicationDataListQueryParam { @@ -208,40 +214,61 @@ export interface ApplicationDataListQueryParam { export interface ApplicationDataListQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - associatedBoundaryIds?: string[]; - ids?: string[]; + associatedBoundaryIds?: Array; + ids?: Array; maxArea?: number; maxAvgMaterial?: number; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - maxOperationEndDateTime?: Date; - maxOperationModifiedDateTime?: Date; - maxOperationStartDateTime?: Date; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + maxOperationEndDateTime?: Date | string; + maxOperationModifiedDateTime?: Date | string; + maxOperationStartDateTime?: Date | string; maxTotalMaterial?: number; minArea?: number; minAvgMaterial?: number; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - minOperationEndDateTime?: Date; - minOperationModifiedDateTime?: Date; - minOperationStartDateTime?: Date; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + minOperationEndDateTime?: Date | string; + minOperationModifiedDateTime?: Date | string; + minOperationStartDateTime?: Date | string; minTotalMaterial?: number; - names?: string[]; - operationBoundaryIds?: string[]; - propertyFilters?: string[]; - sources?: string[]; - statuses?: string[]; + names?: Array; + operationBoundaryIds?: Array; + propertyFilters?: Array; + sources?: Array; + statuses?: Array; } // @public (undocumented) -export interface ApplicationDataListResponse { +export interface ApplicationDataListResponseOutput { + $skipToken?: string; nextLink?: string; - skipToken?: string; - value?: ApplicationData[]; + value?: Array; } // @public (undocumented) -export type ApplicationDataPropertiesDictionary = Record; +export interface ApplicationDataOutput { + applicationProductDetails?: Array; + area?: MeasureOutput; + associatedBoundaryId?: string; + attachmentsLink?: string; + avgMaterial?: MeasureOutput; + createdDateTime?: string; + description?: string; + eTag?: string; + farmerId?: string; + id?: string; + modifiedDateTime?: string; + name?: string; + operationBoundaryId?: string; + operationEndDateTime?: string; + operationModifiedDateTime?: string; + operationStartDateTime?: string; + properties?: Record; + source?: string; + status?: string; + totalMaterial?: MeasureOutput; +} // @public (undocumented) export interface ApplicationProductDetail { @@ -252,13 +279,28 @@ export interface ApplicationProductDetail { } // @public (undocumented) -export interface Attachment { - createdDateTime?: Date; +export interface ApplicationProductDetailOutput { + avgMaterial?: MeasureOutput; + isCarrier?: boolean; + productName?: string; + totalMaterial?: MeasureOutput; +} + +// @public (undocumented) +export interface AttachmentListResponseOutput { + $skipToken?: string; + nextLink?: string; + value?: Array; +} + +// @public (undocumented) +export interface AttachmentOutput { + createdDateTime?: string; description?: string; eTag?: string; farmerId?: string; id?: string; - modifiedDateTime?: Date; + modifiedDateTime?: string; name?: string; originalFileName?: string; resourceId?: string; @@ -266,17 +308,10 @@ export interface Attachment { status?: string; } -// @public (undocumented) -export interface AttachmentListResponse { - nextLink?: string; - skipToken?: string; - value?: Attachment[]; -} - // @public export interface AttachmentsCreateOrUpdate200Response extends HttpResponse { // (undocumented) - body: Attachment; + body: AttachmentOutput; // (undocumented) status: "200"; } @@ -284,37 +319,36 @@ export interface AttachmentsCreateOrUpdate200Response extends HttpResponse { // @public export interface AttachmentsCreateOrUpdate201Response extends HttpResponse { // (undocumented) - body: Attachment; + body: AttachmentOutput; // (undocumented) status: "201"; } // @public (undocumented) export interface AttachmentsCreateOrUpdateBodyParam { - // (undocumented) body?: string; } // @public export interface AttachmentsCreateOrUpdatedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type AttachmentsCreateOrUpdateParameters = RequestParameters & AttachmentsCreateOrUpdateBodyParam; +export interface AttachmentsCreateOrUpdateMediaTypesParam { + contentType?: "multipart/form-data"; +} // @public (undocumented) -export interface AttachmentsDelete { - delete(options?: AttachmentsDeleteParameters): Promise; - get(options?: AttachmentsGetParameters): Promise; - patch(options?: AttachmentsCreateOrUpdateParameters): Promise; -} +export type AttachmentsCreateOrUpdateParameters = AttachmentsCreateOrUpdateMediaTypesParam & AttachmentsCreateOrUpdateBodyParam & RequestParameters; // @public export interface AttachmentsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -322,7 +356,7 @@ export interface AttachmentsDelete204Response extends HttpResponse { // @public export interface AttachmentsDeletedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -337,6 +371,8 @@ export interface AttachmentsDownload { // @public export interface AttachmentsDownload200Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "200"; } @@ -344,7 +380,7 @@ export interface AttachmentsDownload200Response extends HttpResponse { // @public export interface AttachmentsDownloaddefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -352,10 +388,17 @@ export interface AttachmentsDownloaddefaultResponse extends HttpResponse { // @public (undocumented) export type AttachmentsDownloadParameters = RequestParameters; +// @public (undocumented) +export interface AttachmentsGet { + delete(options?: AttachmentsDeleteParameters): Promise; + get(options?: AttachmentsGetParameters): Promise; + patch(options?: AttachmentsCreateOrUpdateParameters): Promise; +} + // @public export interface AttachmentsGet200Response extends HttpResponse { // (undocumented) - body: Attachment; + body: AttachmentOutput; // (undocumented) status: "200"; } @@ -363,7 +406,7 @@ export interface AttachmentsGet200Response extends HttpResponse { // @public export interface AttachmentsGetdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -379,7 +422,7 @@ export interface AttachmentsListByFarmerId { // @public export interface AttachmentsListByFarmerId200Response extends HttpResponse { // (undocumented) - body: AttachmentListResponse; + body: AttachmentListResponseOutput; // (undocumented) status: "200"; } @@ -387,13 +430,13 @@ export interface AttachmentsListByFarmerId200Response extends HttpResponse { // @public export interface AttachmentsListByFarmerIddefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type AttachmentsListByFarmerIdParameters = RequestParameters & AttachmentsListByFarmerIdQueryParam; +export type AttachmentsListByFarmerIdParameters = AttachmentsListByFarmerIdQueryParam & RequestParameters; // @public (undocumented) export interface AttachmentsListByFarmerIdQueryParam { @@ -405,28 +448,22 @@ export interface AttachmentsListByFarmerIdQueryParam { export interface AttachmentsListByFarmerIdQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - ids?: string[]; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - names?: string[]; - propertyFilters?: string[]; - resourceIds?: string[]; - resourceTypes?: string[]; - statuses?: string[]; -} - -// @public (undocumented) -export interface BoundariesCreateCascadeDeleteJob { - get(options?: BoundariesGetCascadeDeleteJobDetailsParameters): Promise; - put(options?: BoundariesCreateCascadeDeleteJobParameters): Promise; + ids?: Array; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + names?: Array; + propertyFilters?: Array; + resourceIds?: Array; + resourceTypes?: Array; + statuses?: Array; } // @public export interface BoundariesCreateCascadeDeleteJob202Response extends HttpResponse { // (undocumented) - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; // (undocumented) status: "202"; } @@ -434,13 +471,13 @@ export interface BoundariesCreateCascadeDeleteJob202Response extends HttpRespons // @public export interface BoundariesCreateCascadeDeleteJobdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type BoundariesCreateCascadeDeleteJobParameters = RequestParameters & BoundariesCreateCascadeDeleteJobQueryParam; +export type BoundariesCreateCascadeDeleteJobParameters = BoundariesCreateCascadeDeleteJobQueryParam & RequestParameters; // @public (undocumented) export interface BoundariesCreateCascadeDeleteJobQueryParam { @@ -457,7 +494,7 @@ export interface BoundariesCreateCascadeDeleteJobQueryParamProperties { // @public export interface BoundariesCreateOrUpdate200Response extends HttpResponse { // (undocumented) - body: Boundary; + body: BoundaryOutput; // (undocumented) status: "200"; } @@ -465,37 +502,36 @@ export interface BoundariesCreateOrUpdate200Response extends HttpResponse { // @public export interface BoundariesCreateOrUpdate201Response extends HttpResponse { // (undocumented) - body: Boundary; + body: BoundaryOutput; // (undocumented) status: "201"; } // @public (undocumented) export interface BoundariesCreateOrUpdateBodyParam { - // (undocumented) body?: Boundary; } // @public export interface BoundariesCreateOrUpdatedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type BoundariesCreateOrUpdateParameters = RequestParameters & BoundariesCreateOrUpdateBodyParam; +export interface BoundariesCreateOrUpdateMediaTypesParam { + contentType?: "application/merge-patch+json"; +} // @public (undocumented) -export interface BoundariesDelete { - delete(options?: BoundariesDeleteParameters): Promise; - get(options?: BoundariesGetParameters): Promise; - patch(options?: BoundariesCreateOrUpdateParameters): Promise; -} +export type BoundariesCreateOrUpdateParameters = BoundariesCreateOrUpdateMediaTypesParam & BoundariesCreateOrUpdateBodyParam & RequestParameters; // @public export interface BoundariesDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -503,7 +539,7 @@ export interface BoundariesDelete204Response extends HttpResponse { // @public export interface BoundariesDeletedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -511,18 +547,31 @@ export interface BoundariesDeletedefaultResponse extends HttpResponse { // @public (undocumented) export type BoundariesDeleteParameters = RequestParameters; +// @public (undocumented) +export interface BoundariesGet { + delete(options?: BoundariesDeleteParameters): Promise; + get(options?: BoundariesGetParameters): Promise; + patch(options?: BoundariesCreateOrUpdateParameters): Promise; +} + // @public export interface BoundariesGet200Response extends HttpResponse { // (undocumented) - body: Boundary; + body: BoundaryOutput; // (undocumented) status: "200"; } +// @public (undocumented) +export interface BoundariesGetCascadeDeleteJobDetails { + get(options?: BoundariesGetCascadeDeleteJobDetailsParameters): Promise; + put(options: BoundariesCreateCascadeDeleteJobParameters): Promise; +} + // @public export interface BoundariesGetCascadeDeleteJobDetails200Response extends HttpResponse { // (undocumented) - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; // (undocumented) status: "200"; } @@ -530,7 +579,7 @@ export interface BoundariesGetCascadeDeleteJobDetails200Response extends HttpRes // @public export interface BoundariesGetCascadeDeleteJobDetailsdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -541,20 +590,20 @@ export type BoundariesGetCascadeDeleteJobDetailsParameters = RequestParameters; // @public export interface BoundariesGetdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) export interface BoundariesGetOverlap { - get(options?: BoundariesGetOverlapParameters): Promise; + get(options: BoundariesGetOverlapParameters): Promise; } // @public export interface BoundariesGetOverlap200Response extends HttpResponse { // (undocumented) - body: BoundaryOverlapResponse; + body: BoundaryOverlapResponseOutput; // (undocumented) status: "200"; } @@ -562,13 +611,13 @@ export interface BoundariesGetOverlap200Response extends HttpResponse { // @public export interface BoundariesGetOverlapdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type BoundariesGetOverlapParameters = RequestParameters & BoundariesGetOverlapQueryParam; +export type BoundariesGetOverlapParameters = BoundariesGetOverlapQueryParam & RequestParameters; // @public (undocumented) export interface BoundariesGetOverlapQueryParam { @@ -585,18 +634,30 @@ export interface BoundariesGetOverlapQueryParamProperties { // @public (undocumented) export type BoundariesGetParameters = RequestParameters; +// @public (undocumented) +export interface BoundariesList { + get(options?: BoundariesListParameters): Promise; + post(options?: BoundariesSearchParameters): Promise; +} + // @public export interface BoundariesList200Response extends HttpResponse { // (undocumented) - body: BoundaryListResponse; + body: BoundaryListResponseOutput; // (undocumented) status: "200"; } +// @public (undocumented) +export interface BoundariesListByFarmerId { + get(options?: BoundariesListByFarmerIdParameters): Promise; + post(options?: BoundariesSearchByFarmerIdParameters): Promise; +} + // @public export interface BoundariesListByFarmerId200Response extends HttpResponse { // (undocumented) - body: BoundaryListResponse; + body: BoundaryListResponseOutput; // (undocumented) status: "200"; } @@ -604,13 +665,13 @@ export interface BoundariesListByFarmerId200Response extends HttpResponse { // @public export interface BoundariesListByFarmerIddefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type BoundariesListByFarmerIdParameters = RequestParameters & BoundariesListByFarmerIdQueryParam; +export type BoundariesListByFarmerIdParameters = BoundariesListByFarmerIdQueryParam & RequestParameters; // @public (undocumented) export interface BoundariesListByFarmerIdQueryParam { @@ -622,31 +683,31 @@ export interface BoundariesListByFarmerIdQueryParam { export interface BoundariesListByFarmerIdQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - ids?: string[]; + ids?: Array; isPrimary?: boolean; maxAcreage?: number; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; minAcreage?: number; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - names?: string[]; - parentIds?: string[]; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + names?: Array; + parentIds?: Array; parentType?: string; - propertyFilters?: string[]; - statuses?: string[]; + propertyFilters?: Array; + statuses?: Array; } // @public export interface BoundariesListdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type BoundariesListParameters = RequestParameters & BoundariesListQueryParam; +export type BoundariesListParameters = BoundariesListQueryParam & RequestParameters; // @public (undocumented) export interface BoundariesListQueryParam { @@ -658,166 +719,184 @@ export interface BoundariesListQueryParam { export interface BoundariesListQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - ids?: string[]; + ids?: Array; isPrimary?: boolean; maxAcreage?: number; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; minAcreage?: number; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - names?: string[]; - parentIds?: string[]; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + names?: Array; + parentIds?: Array; parentType?: string; - propertyFilters?: string[]; - statuses?: string[]; -} - -// @public (undocumented) -export interface BoundariesSearch { - get(options?: BoundariesListParameters): Promise; - post(options?: BoundariesSearchParameters): Promise; + propertyFilters?: Array; + statuses?: Array; } // @public export interface BoundariesSearch200Response extends HttpResponse { // (undocumented) - body: BoundaryListResponse; + body: BoundaryListResponseOutput; // (undocumented) status: "200"; } // @public (undocumented) export interface BoundariesSearchBodyParam { - // (undocumented) body?: SearchBoundaryQuery; } -// @public (undocumented) -export interface BoundariesSearchByFarmerId { - get(options?: BoundariesListByFarmerIdParameters): Promise; - post(options?: BoundariesSearchByFarmerIdParameters): Promise; -} - // @public export interface BoundariesSearchByFarmerId200Response extends HttpResponse { // (undocumented) - body: BoundaryListResponse; + body: BoundaryListResponseOutput; // (undocumented) status: "200"; } // @public (undocumented) export interface BoundariesSearchByFarmerIdBodyParam { - // (undocumented) body?: SearchBoundaryQuery; } // @public export interface BoundariesSearchByFarmerIddefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type BoundariesSearchByFarmerIdParameters = RequestParameters & BoundariesSearchByFarmerIdBodyParam; +export interface BoundariesSearchByFarmerIdMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type BoundariesSearchByFarmerIdParameters = BoundariesSearchByFarmerIdMediaTypesParam & BoundariesSearchByFarmerIdBodyParam & RequestParameters; // @public export interface BoundariesSearchdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type BoundariesSearchParameters = RequestParameters & BoundariesSearchBodyParam; +export interface BoundariesSearchMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type BoundariesSearchParameters = BoundariesSearchMediaTypesParam & BoundariesSearchBodyParam & RequestParameters; // @public (undocumented) export interface Boundary { acreage?: number; - createdDateTime?: Date; + createdDateTime?: Date | string; description?: string; eTag?: string; farmerId?: string; geometry?: GeoJsonObject; id?: string; isPrimary?: boolean; - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; name?: string; parentId?: string; parentType?: string; - properties?: BoundaryPropertiesDictionary; + properties?: Record; status?: string; } // @public (undocumented) -export interface BoundaryListResponse { +export interface BoundaryListResponseOutput { + $skipToken?: string; nextLink?: string; - skipToken?: string; - value?: Boundary[]; + value?: Array; +} + +// @public (undocumented) +export interface BoundaryOutput { + acreage?: number; + createdDateTime?: string; + description?: string; + eTag?: string; + farmerId?: string; + geometry?: GeoJsonObjectOutput; + id?: string; + isPrimary?: boolean; + modifiedDateTime?: string; + name?: string; + parentId?: string; + parentType?: string; + properties?: Record; + status?: string; } // @public (undocumented) -export interface BoundaryOverlapResponse { +export interface BoundaryOverlapResponseOutput { boundaryAcreage?: number; intersectingAcreage?: number; otherBoundaryAcreage?: number; } // @public (undocumented) -export type BoundaryPropertiesDictionary = Record; - -// @public (undocumented) -export interface CascadeDeleteJob { - createdDateTime?: Date; +export interface CascadeDeleteJobOutput { + createdDateTime?: string; description?: string; durationInSeconds?: number; - endTime?: Date; + endTime?: string; farmerId: string; id?: string; - lastActionDateTime?: Date; + lastActionDateTime?: string; message?: string; name?: string; - properties?: CascadeDeleteJobPropertiesDictionary; + properties?: Record; resourceId: string; resourceType: string; - startTime?: Date; + startTime?: string; status?: string; } -// @public (undocumented) -export type CascadeDeleteJobPropertiesDictionary = Record; - // @public (undocumented) export interface Crop { - createdDateTime?: Date; + createdDateTime?: Date | string; description?: string; eTag?: string; id?: string; - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; name?: string; phenotype?: string; - properties?: CropPropertiesDictionary; + properties?: Record; status?: string; } // @public (undocumented) -export interface CropListResponse { +export interface CropListResponseOutput { + $skipToken?: string; nextLink?: string; - skipToken?: string; - value?: Crop[]; + value?: Array; } // @public (undocumented) -export type CropPropertiesDictionary = Record; +export interface CropOutput { + createdDateTime?: string; + description?: string; + eTag?: string; + id?: string; + modifiedDateTime?: string; + name?: string; + phenotype?: string; + properties?: Record; + status?: string; +} // @public export interface CropsCreateOrUpdate200Response extends HttpResponse { // (undocumented) - body: Crop; + body: CropOutput; // (undocumented) status: "200"; } @@ -825,37 +904,36 @@ export interface CropsCreateOrUpdate200Response extends HttpResponse { // @public export interface CropsCreateOrUpdate201Response extends HttpResponse { // (undocumented) - body: Crop; + body: CropOutput; // (undocumented) status: "201"; } // @public (undocumented) export interface CropsCreateOrUpdateBodyParam { - // (undocumented) body?: Crop; } // @public export interface CropsCreateOrUpdatedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type CropsCreateOrUpdateParameters = RequestParameters & CropsCreateOrUpdateBodyParam; +export interface CropsCreateOrUpdateMediaTypesParam { + contentType?: "application/merge-patch+json"; +} // @public (undocumented) -export interface CropsDelete { - delete(options?: CropsDeleteParameters): Promise; - get(options?: CropsGetParameters): Promise; - patch(options?: CropsCreateOrUpdateParameters): Promise; -} +export type CropsCreateOrUpdateParameters = CropsCreateOrUpdateMediaTypesParam & CropsCreateOrUpdateBodyParam & RequestParameters; // @public export interface CropsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -863,7 +941,7 @@ export interface CropsDelete204Response extends HttpResponse { // @public export interface CropsDeletedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -871,10 +949,17 @@ export interface CropsDeletedefaultResponse extends HttpResponse { // @public (undocumented) export type CropsDeleteParameters = RequestParameters; +// @public (undocumented) +export interface CropsGet { + delete(options?: CropsDeleteParameters): Promise; + get(options?: CropsGetParameters): Promise; + patch(options?: CropsCreateOrUpdateParameters): Promise; +} + // @public export interface CropsGet200Response extends HttpResponse { // (undocumented) - body: Crop; + body: CropOutput; // (undocumented) status: "200"; } @@ -882,7 +967,7 @@ export interface CropsGet200Response extends HttpResponse { // @public export interface CropsGetdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -898,7 +983,7 @@ export interface CropsList { // @public export interface CropsList200Response extends HttpResponse { // (undocumented) - body: CropListResponse; + body: CropListResponseOutput; // (undocumented) status: "200"; } @@ -906,13 +991,13 @@ export interface CropsList200Response extends HttpResponse { // @public export interface CropsListdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type CropsListParameters = RequestParameters & CropsListQueryParam; +export type CropsListParameters = CropsListQueryParam & RequestParameters; // @public (undocumented) export interface CropsListQueryParam { @@ -924,21 +1009,21 @@ export interface CropsListQueryParam { export interface CropsListQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - ids?: string[]; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - names?: string[]; - phenotypes?: string[]; - propertyFilters?: string[]; - statuses?: string[]; + ids?: Array; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + names?: Array; + phenotypes?: Array; + propertyFilters?: Array; + statuses?: Array; } // @public export interface CropVarietiesCreateOrUpdate200Response extends HttpResponse { // (undocumented) - body: CropVariety; + body: CropVarietyOutput; // (undocumented) status: "200"; } @@ -946,37 +1031,36 @@ export interface CropVarietiesCreateOrUpdate200Response extends HttpResponse { // @public export interface CropVarietiesCreateOrUpdate201Response extends HttpResponse { // (undocumented) - body: CropVariety; + body: CropVarietyOutput; // (undocumented) status: "201"; } // @public (undocumented) export interface CropVarietiesCreateOrUpdateBodyParam { - // (undocumented) body?: CropVariety; } // @public export interface CropVarietiesCreateOrUpdatedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type CropVarietiesCreateOrUpdateParameters = RequestParameters & CropVarietiesCreateOrUpdateBodyParam; +export interface CropVarietiesCreateOrUpdateMediaTypesParam { + contentType?: "application/merge-patch+json"; +} // @public (undocumented) -export interface CropVarietiesDelete { - delete(options?: CropVarietiesDeleteParameters): Promise; - get(options?: CropVarietiesGetParameters): Promise; - patch(options?: CropVarietiesCreateOrUpdateParameters): Promise; -} +export type CropVarietiesCreateOrUpdateParameters = CropVarietiesCreateOrUpdateMediaTypesParam & CropVarietiesCreateOrUpdateBodyParam & RequestParameters; // @public export interface CropVarietiesDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -984,7 +1068,7 @@ export interface CropVarietiesDelete204Response extends HttpResponse { // @public export interface CropVarietiesDeletedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -992,10 +1076,17 @@ export interface CropVarietiesDeletedefaultResponse extends HttpResponse { // @public (undocumented) export type CropVarietiesDeleteParameters = RequestParameters; +// @public (undocumented) +export interface CropVarietiesGet { + delete(options?: CropVarietiesDeleteParameters): Promise; + get(options?: CropVarietiesGetParameters): Promise; + patch(options?: CropVarietiesCreateOrUpdateParameters): Promise; +} + // @public export interface CropVarietiesGet200Response extends HttpResponse { // (undocumented) - body: CropVariety; + body: CropVarietyOutput; // (undocumented) status: "200"; } @@ -1003,7 +1094,7 @@ export interface CropVarietiesGet200Response extends HttpResponse { // @public export interface CropVarietiesGetdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -1019,7 +1110,7 @@ export interface CropVarietiesList { // @public export interface CropVarietiesList200Response extends HttpResponse { // (undocumented) - body: CropVarietyListResponse; + body: CropVarietyListResponseOutput; // (undocumented) status: "200"; } @@ -1032,7 +1123,7 @@ export interface CropVarietiesListByCropId { // @public export interface CropVarietiesListByCropId200Response extends HttpResponse { // (undocumented) - body: CropVarietyListResponse; + body: CropVarietyListResponseOutput; // (undocumented) status: "200"; } @@ -1040,13 +1131,13 @@ export interface CropVarietiesListByCropId200Response extends HttpResponse { // @public export interface CropVarietiesListByCropIddefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type CropVarietiesListByCropIdParameters = RequestParameters & CropVarietiesListByCropIdQueryParam; +export type CropVarietiesListByCropIdParameters = CropVarietiesListByCropIdQueryParam & RequestParameters; // @public (undocumented) export interface CropVarietiesListByCropIdQueryParam { @@ -1058,29 +1149,29 @@ export interface CropVarietiesListByCropIdQueryParam { export interface CropVarietiesListByCropIdQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - brands?: string[]; - cropIds?: string[]; - ids?: string[]; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - names?: string[]; - products?: string[]; - propertyFilters?: string[]; - statuses?: string[]; + brands?: Array; + cropIds?: Array; + ids?: Array; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + names?: Array; + products?: Array; + propertyFilters?: Array; + statuses?: Array; } // @public export interface CropVarietiesListdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type CropVarietiesListParameters = RequestParameters & CropVarietiesListQueryParam; +export type CropVarietiesListParameters = CropVarietiesListQueryParam & RequestParameters; // @public (undocumented) export interface CropVarietiesListQueryParam { @@ -1092,80 +1183,86 @@ export interface CropVarietiesListQueryParam { export interface CropVarietiesListQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - brands?: string[]; - cropIds?: string[]; - ids?: string[]; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - names?: string[]; - products?: string[]; - propertyFilters?: string[]; - statuses?: string[]; + brands?: Array; + cropIds?: Array; + ids?: Array; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + names?: Array; + products?: Array; + propertyFilters?: Array; + statuses?: Array; } // @public (undocumented) export interface CropVariety { brand?: string; - createdDateTime?: Date; + createdDateTime?: Date | string; cropId?: string; description?: string; eTag?: string; id?: string; - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; name?: string; product?: string; - properties?: CropVarietyPropertiesDictionary; + properties?: Record; status?: string; } // @public (undocumented) -export interface CropVarietyListResponse { +export interface CropVarietyListResponseOutput { + $skipToken?: string; nextLink?: string; - skipToken?: string; - value?: CropVariety[]; + value?: Array; } // @public (undocumented) -export type CropVarietyPropertiesDictionary = Record; - -// @public (undocumented) -export type DataProvider = "Microsoft"; +export interface CropVarietyOutput { + brand?: string; + createdDateTime?: string; + cropId?: string; + description?: string; + eTag?: string; + id?: string; + modifiedDateTime?: string; + name?: string; + product?: string; + properties?: Record; + status?: string; +} // @public (undocumented) -interface Error_2 { +export interface ErrorModelOutput { code?: string; - details?: Error_2[]; - innererror?: InnerError; + details?: Array; + innererror?: InnerErrorOutput; message?: string; target?: string; } -export { Error_2 as Error } - // @public (undocumented) -export interface ErrorResponse { - error?: Error_2; +export interface ErrorResponseOutput { + error?: ErrorModelOutput; traceId?: string; } // @public (undocumented) export interface Farm { - createdDateTime?: Date; + createdDateTime?: Date | string; description?: string; eTag?: string; farmerId?: string; id?: string; - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; name?: string; - properties?: FarmPropertiesDictionary; + properties?: Record; status?: string; } // @public (undocumented) function FarmBeats(Endpoint: string, credentials: TokenCredential, options?: ClientOptions): FarmBeatsRestClient; - export default FarmBeats; // @public (undocumented) @@ -1175,36 +1272,39 @@ export type FarmBeatsRestClient = Client & { // @public (undocumented) export interface Farmer { - createdDateTime?: Date; + createdDateTime?: Date | string; description?: string; eTag?: string; id?: string; - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; name?: string; - properties?: FarmerPropertiesDictionary; + properties?: Record; status?: string; } // @public (undocumented) -export interface FarmerListResponse { +export interface FarmerListResponseOutput { + $skipToken?: string; nextLink?: string; - skipToken?: string; - value?: Farmer[]; + value?: Array; } // @public (undocumented) -export type FarmerPropertiesDictionary = Record; - -// @public (undocumented) -export interface FarmersCreateCascadeDeleteJob { - get(options?: FarmersGetCascadeDeleteJobDetailsParameters): Promise; - put(options?: FarmersCreateCascadeDeleteJobParameters): Promise; +export interface FarmerOutput { + createdDateTime?: string; + description?: string; + eTag?: string; + id?: string; + modifiedDateTime?: string; + name?: string; + properties?: Record; + status?: string; } // @public export interface FarmersCreateCascadeDeleteJob202Response extends HttpResponse { // (undocumented) - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; // (undocumented) status: "202"; } @@ -1212,13 +1312,13 @@ export interface FarmersCreateCascadeDeleteJob202Response extends HttpResponse { // @public export interface FarmersCreateCascadeDeleteJobdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type FarmersCreateCascadeDeleteJobParameters = RequestParameters & FarmersCreateCascadeDeleteJobQueryParam; +export type FarmersCreateCascadeDeleteJobParameters = FarmersCreateCascadeDeleteJobQueryParam & RequestParameters; // @public (undocumented) export interface FarmersCreateCascadeDeleteJobQueryParam { @@ -1234,7 +1334,7 @@ export interface FarmersCreateCascadeDeleteJobQueryParamProperties { // @public export interface FarmersCreateOrUpdate200Response extends HttpResponse { // (undocumented) - body: Farmer; + body: FarmerOutput; // (undocumented) status: "200"; } @@ -1242,37 +1342,36 @@ export interface FarmersCreateOrUpdate200Response extends HttpResponse { // @public export interface FarmersCreateOrUpdate201Response extends HttpResponse { // (undocumented) - body: Farmer; + body: FarmerOutput; // (undocumented) status: "201"; } // @public (undocumented) export interface FarmersCreateOrUpdateBodyParam { - // (undocumented) body?: Farmer; } // @public export interface FarmersCreateOrUpdatedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type FarmersCreateOrUpdateParameters = RequestParameters & FarmersCreateOrUpdateBodyParam; +export interface FarmersCreateOrUpdateMediaTypesParam { + contentType?: "application/merge-patch+json"; +} // @public (undocumented) -export interface FarmersDelete { - delete(options?: FarmersDeleteParameters): Promise; - get(options?: FarmersGetParameters): Promise; - patch(options?: FarmersCreateOrUpdateParameters): Promise; -} +export type FarmersCreateOrUpdateParameters = FarmersCreateOrUpdateMediaTypesParam & FarmersCreateOrUpdateBodyParam & RequestParameters; // @public export interface FarmersDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -1280,7 +1379,7 @@ export interface FarmersDelete204Response extends HttpResponse { // @public export interface FarmersDeletedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -1288,18 +1387,31 @@ export interface FarmersDeletedefaultResponse extends HttpResponse { // @public (undocumented) export type FarmersDeleteParameters = RequestParameters; +// @public (undocumented) +export interface FarmersGet { + delete(options?: FarmersDeleteParameters): Promise; + get(options?: FarmersGetParameters): Promise; + patch(options?: FarmersCreateOrUpdateParameters): Promise; +} + // @public export interface FarmersGet200Response extends HttpResponse { // (undocumented) - body: Farmer; + body: FarmerOutput; // (undocumented) status: "200"; } +// @public (undocumented) +export interface FarmersGetCascadeDeleteJobDetails { + get(options?: FarmersGetCascadeDeleteJobDetailsParameters): Promise; + put(options: FarmersCreateCascadeDeleteJobParameters): Promise; +} + // @public export interface FarmersGetCascadeDeleteJobDetails200Response extends HttpResponse { // (undocumented) - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; // (undocumented) status: "200"; } @@ -1307,7 +1419,7 @@ export interface FarmersGetCascadeDeleteJobDetails200Response extends HttpRespon // @public export interface FarmersGetCascadeDeleteJobDetailsdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -1318,7 +1430,7 @@ export type FarmersGetCascadeDeleteJobDetailsParameters = RequestParameters; // @public export interface FarmersGetdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -1334,7 +1446,7 @@ export interface FarmersList { // @public export interface FarmersList200Response extends HttpResponse { // (undocumented) - body: FarmerListResponse; + body: FarmerListResponseOutput; // (undocumented) status: "200"; } @@ -1342,13 +1454,13 @@ export interface FarmersList200Response extends HttpResponse { // @public export interface FarmersListdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type FarmersListParameters = RequestParameters & FarmersListQueryParam; +export type FarmersListParameters = FarmersListQueryParam & RequestParameters; // @public (undocumented) export interface FarmersListQueryParam { @@ -1360,80 +1472,100 @@ export interface FarmersListQueryParam { export interface FarmersListQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - ids?: string[]; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - names?: string[]; - propertyFilters?: string[]; - statuses?: string[]; + ids?: Array; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + names?: Array; + propertyFilters?: Array; + statuses?: Array; } // @public (undocumented) -export interface FarmListResponse { +export interface FarmListResponseOutput { + $skipToken?: string; nextLink?: string; - skipToken?: string; - value?: Farm[]; + value?: Array; } // @public (undocumented) export interface FarmOperationDataIngestionJob { authProviderId: string; - createdDateTime?: Date; + createdDateTime?: Date | string; description?: string; durationInSeconds?: number; - endTime?: Date; + endTime?: Date | string; farmerId: string; id?: string; - lastActionDateTime?: Date; + lastActionDateTime?: Date | string; message?: string; name?: string; - operations?: string[]; - properties?: FarmOperationDataIngestionJobPropertiesDictionary; - startTime?: Date; + operations?: Array; + properties?: Record; + startTime?: Date | string; startYear: number; status?: string; } // @public (undocumented) -export type FarmOperationDataIngestionJobPropertiesDictionary = Record; +export interface FarmOperationDataIngestionJobOutput { + authProviderId: string; + createdDateTime?: string; + description?: string; + durationInSeconds?: number; + endTime?: string; + farmerId: string; + id?: string; + lastActionDateTime?: string; + message?: string; + name?: string; + operations?: Array; + properties?: Record; + startTime?: string; + startYear: number; + status?: string; +} + +// @public (undocumented) +export interface FarmOperationsCreateDataIngestionJob { + get(options?: FarmOperationsGetDataIngestionJobDetailsParameters): Promise; + put(options?: FarmOperationsCreateDataIngestionJobParameters): Promise; +} // @public export interface FarmOperationsCreateDataIngestionJob202Response extends HttpResponse { // (undocumented) - body: FarmOperationDataIngestionJob; + body: FarmOperationDataIngestionJobOutput; // (undocumented) status: "202"; } // @public (undocumented) export interface FarmOperationsCreateDataIngestionJobBodyParam { - // (undocumented) body?: FarmOperationDataIngestionJob; } // @public export interface FarmOperationsCreateDataIngestionJobdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type FarmOperationsCreateDataIngestionJobParameters = RequestParameters & FarmOperationsCreateDataIngestionJobBodyParam; +export interface FarmOperationsCreateDataIngestionJobMediaTypesParam { + contentType?: "application/json"; +} // @public (undocumented) -export interface FarmOperationsGetDataIngestionJobDetails { - get(options?: FarmOperationsGetDataIngestionJobDetailsParameters): Promise; - put(options?: FarmOperationsCreateDataIngestionJobParameters): Promise; -} +export type FarmOperationsCreateDataIngestionJobParameters = FarmOperationsCreateDataIngestionJobMediaTypesParam & FarmOperationsCreateDataIngestionJobBodyParam & RequestParameters; // @public export interface FarmOperationsGetDataIngestionJobDetails200Response extends HttpResponse { // (undocumented) - body: FarmOperationDataIngestionJob; + body: FarmOperationDataIngestionJobOutput; // (undocumented) status: "200"; } @@ -1441,7 +1573,7 @@ export interface FarmOperationsGetDataIngestionJobDetails200Response extends Htt // @public export interface FarmOperationsGetDataIngestionJobDetailsdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -1450,18 +1582,22 @@ export interface FarmOperationsGetDataIngestionJobDetailsdefaultResponse extends export type FarmOperationsGetDataIngestionJobDetailsParameters = RequestParameters; // @public (undocumented) -export type FarmPropertiesDictionary = Record; - -// @public (undocumented) -export interface FarmsCreateCascadeDeleteJob { - get(options?: FarmsGetCascadeDeleteJobDetailsParameters): Promise; - put(options?: FarmsCreateCascadeDeleteJobParameters): Promise; +export interface FarmOutput { + createdDateTime?: string; + description?: string; + eTag?: string; + farmerId?: string; + id?: string; + modifiedDateTime?: string; + name?: string; + properties?: Record; + status?: string; } // @public export interface FarmsCreateCascadeDeleteJob202Response extends HttpResponse { // (undocumented) - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; // (undocumented) status: "202"; } @@ -1469,13 +1605,13 @@ export interface FarmsCreateCascadeDeleteJob202Response extends HttpResponse { // @public export interface FarmsCreateCascadeDeleteJobdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type FarmsCreateCascadeDeleteJobParameters = RequestParameters & FarmsCreateCascadeDeleteJobQueryParam; +export type FarmsCreateCascadeDeleteJobParameters = FarmsCreateCascadeDeleteJobQueryParam & RequestParameters; // @public (undocumented) export interface FarmsCreateCascadeDeleteJobQueryParam { @@ -1492,7 +1628,7 @@ export interface FarmsCreateCascadeDeleteJobQueryParamProperties { // @public export interface FarmsCreateOrUpdate200Response extends HttpResponse { // (undocumented) - body: Farm; + body: FarmOutput; // (undocumented) status: "200"; } @@ -1500,37 +1636,36 @@ export interface FarmsCreateOrUpdate200Response extends HttpResponse { // @public export interface FarmsCreateOrUpdate201Response extends HttpResponse { // (undocumented) - body: Farm; + body: FarmOutput; // (undocumented) status: "201"; } // @public (undocumented) export interface FarmsCreateOrUpdateBodyParam { - // (undocumented) body?: Farm; } // @public export interface FarmsCreateOrUpdatedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type FarmsCreateOrUpdateParameters = RequestParameters & FarmsCreateOrUpdateBodyParam; +export interface FarmsCreateOrUpdateMediaTypesParam { + contentType?: "application/merge-patch+json"; +} // @public (undocumented) -export interface FarmsDelete { - delete(options?: FarmsDeleteParameters): Promise; - get(options?: FarmsGetParameters): Promise; - patch(options?: FarmsCreateOrUpdateParameters): Promise; -} +export type FarmsCreateOrUpdateParameters = FarmsCreateOrUpdateMediaTypesParam & FarmsCreateOrUpdateBodyParam & RequestParameters; // @public export interface FarmsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -1538,7 +1673,7 @@ export interface FarmsDelete204Response extends HttpResponse { // @public export interface FarmsDeletedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -1546,18 +1681,31 @@ export interface FarmsDeletedefaultResponse extends HttpResponse { // @public (undocumented) export type FarmsDeleteParameters = RequestParameters; +// @public (undocumented) +export interface FarmsGet { + delete(options?: FarmsDeleteParameters): Promise; + get(options?: FarmsGetParameters): Promise; + patch(options?: FarmsCreateOrUpdateParameters): Promise; +} + // @public export interface FarmsGet200Response extends HttpResponse { // (undocumented) - body: Farm; + body: FarmOutput; // (undocumented) status: "200"; } -// @public -export interface FarmsGetCascadeDeleteJobDetails200Response extends HttpResponse { - // (undocumented) - body: CascadeDeleteJob; +// @public (undocumented) +export interface FarmsGetCascadeDeleteJobDetails { + get(options?: FarmsGetCascadeDeleteJobDetailsParameters): Promise; + put(options: FarmsCreateCascadeDeleteJobParameters): Promise; +} + +// @public +export interface FarmsGetCascadeDeleteJobDetails200Response extends HttpResponse { + // (undocumented) + body: CascadeDeleteJobOutput; // (undocumented) status: "200"; } @@ -1565,7 +1713,7 @@ export interface FarmsGetCascadeDeleteJobDetails200Response extends HttpResponse // @public export interface FarmsGetCascadeDeleteJobDetailsdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -1576,7 +1724,7 @@ export type FarmsGetCascadeDeleteJobDetailsParameters = RequestParameters; // @public export interface FarmsGetdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -1592,7 +1740,7 @@ export interface FarmsList { // @public export interface FarmsList200Response extends HttpResponse { // (undocumented) - body: FarmListResponse; + body: FarmListResponseOutput; // (undocumented) status: "200"; } @@ -1605,7 +1753,7 @@ export interface FarmsListByFarmerId { // @public export interface FarmsListByFarmerId200Response extends HttpResponse { // (undocumented) - body: FarmListResponse; + body: FarmListResponseOutput; // (undocumented) status: "200"; } @@ -1613,13 +1761,13 @@ export interface FarmsListByFarmerId200Response extends HttpResponse { // @public export interface FarmsListByFarmerIddefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type FarmsListByFarmerIdParameters = RequestParameters & FarmsListByFarmerIdQueryParam; +export type FarmsListByFarmerIdParameters = FarmsListByFarmerIdQueryParam & RequestParameters; // @public (undocumented) export interface FarmsListByFarmerIdQueryParam { @@ -1631,26 +1779,26 @@ export interface FarmsListByFarmerIdQueryParam { export interface FarmsListByFarmerIdQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - ids?: string[]; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - names?: string[]; - propertyFilters?: string[]; - statuses?: string[]; + ids?: Array; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + names?: Array; + propertyFilters?: Array; + statuses?: Array; } // @public export interface FarmsListdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type FarmsListParameters = RequestParameters & FarmsListQueryParam; +export type FarmsListParameters = FarmsListQueryParam & RequestParameters; // @public (undocumented) export interface FarmsListQueryParam { @@ -1662,52 +1810,59 @@ export interface FarmsListQueryParam { export interface FarmsListQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - ids?: string[]; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - names?: string[]; - propertyFilters?: string[]; - statuses?: string[]; + ids?: Array; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + names?: Array; + propertyFilters?: Array; + statuses?: Array; } // @public (undocumented) export interface Field { - boundaryIds?: string[]; - createdDateTime?: Date; + boundaryIds?: Array; + createdDateTime?: Date | string; description?: string; eTag?: string; farmerId?: string; farmId?: string; id?: string; - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; name?: string; primaryBoundaryId?: string; - properties?: FieldPropertiesDictionary; + properties?: Record; status?: string; } // @public (undocumented) -export interface FieldListResponse { +export interface FieldListResponseOutput { + $skipToken?: string; nextLink?: string; - skipToken?: string; - value?: Field[]; + value?: Array; } // @public (undocumented) -export type FieldPropertiesDictionary = Record; - -// @public (undocumented) -export interface FieldsCreateCascadeDeleteJob { - get(options?: FieldsGetCascadeDeleteJobDetailsParameters): Promise; - put(options?: FieldsCreateCascadeDeleteJobParameters): Promise; +export interface FieldOutput { + boundaryIds?: Array; + createdDateTime?: string; + description?: string; + eTag?: string; + farmerId?: string; + farmId?: string; + id?: string; + modifiedDateTime?: string; + name?: string; + primaryBoundaryId?: string; + properties?: Record; + status?: string; } // @public export interface FieldsCreateCascadeDeleteJob202Response extends HttpResponse { // (undocumented) - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; // (undocumented) status: "202"; } @@ -1715,13 +1870,13 @@ export interface FieldsCreateCascadeDeleteJob202Response extends HttpResponse { // @public export interface FieldsCreateCascadeDeleteJobdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type FieldsCreateCascadeDeleteJobParameters = RequestParameters & FieldsCreateCascadeDeleteJobQueryParam; +export type FieldsCreateCascadeDeleteJobParameters = FieldsCreateCascadeDeleteJobQueryParam & RequestParameters; // @public (undocumented) export interface FieldsCreateCascadeDeleteJobQueryParam { @@ -1738,7 +1893,7 @@ export interface FieldsCreateCascadeDeleteJobQueryParamProperties { // @public export interface FieldsCreateOrUpdate200Response extends HttpResponse { // (undocumented) - body: Field; + body: FieldOutput; // (undocumented) status: "200"; } @@ -1746,37 +1901,36 @@ export interface FieldsCreateOrUpdate200Response extends HttpResponse { // @public export interface FieldsCreateOrUpdate201Response extends HttpResponse { // (undocumented) - body: Field; + body: FieldOutput; // (undocumented) status: "201"; } // @public (undocumented) export interface FieldsCreateOrUpdateBodyParam { - // (undocumented) body?: Field; } // @public export interface FieldsCreateOrUpdatedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type FieldsCreateOrUpdateParameters = RequestParameters & FieldsCreateOrUpdateBodyParam; +export interface FieldsCreateOrUpdateMediaTypesParam { + contentType?: "application/merge-patch+json"; +} // @public (undocumented) -export interface FieldsDelete { - delete(options?: FieldsDeleteParameters): Promise; - get(options?: FieldsGetParameters): Promise; - patch(options?: FieldsCreateOrUpdateParameters): Promise; -} +export type FieldsCreateOrUpdateParameters = FieldsCreateOrUpdateMediaTypesParam & FieldsCreateOrUpdateBodyParam & RequestParameters; // @public export interface FieldsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -1784,7 +1938,7 @@ export interface FieldsDelete204Response extends HttpResponse { // @public export interface FieldsDeletedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -1792,18 +1946,31 @@ export interface FieldsDeletedefaultResponse extends HttpResponse { // @public (undocumented) export type FieldsDeleteParameters = RequestParameters; +// @public (undocumented) +export interface FieldsGet { + delete(options?: FieldsDeleteParameters): Promise; + get(options?: FieldsGetParameters): Promise; + patch(options?: FieldsCreateOrUpdateParameters): Promise; +} + // @public export interface FieldsGet200Response extends HttpResponse { // (undocumented) - body: Field; + body: FieldOutput; // (undocumented) status: "200"; } +// @public (undocumented) +export interface FieldsGetCascadeDeleteJobDetails { + get(options?: FieldsGetCascadeDeleteJobDetailsParameters): Promise; + put(options: FieldsCreateCascadeDeleteJobParameters): Promise; +} + // @public export interface FieldsGetCascadeDeleteJobDetails200Response extends HttpResponse { // (undocumented) - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; // (undocumented) status: "200"; } @@ -1811,7 +1978,7 @@ export interface FieldsGetCascadeDeleteJobDetails200Response extends HttpRespons // @public export interface FieldsGetCascadeDeleteJobDetailsdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -1822,7 +1989,7 @@ export type FieldsGetCascadeDeleteJobDetailsParameters = RequestParameters; // @public export interface FieldsGetdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -1838,7 +2005,7 @@ export interface FieldsList { // @public export interface FieldsList200Response extends HttpResponse { // (undocumented) - body: FieldListResponse; + body: FieldListResponseOutput; // (undocumented) status: "200"; } @@ -1851,7 +2018,7 @@ export interface FieldsListByFarmerId { // @public export interface FieldsListByFarmerId200Response extends HttpResponse { // (undocumented) - body: FieldListResponse; + body: FieldListResponseOutput; // (undocumented) status: "200"; } @@ -1859,13 +2026,13 @@ export interface FieldsListByFarmerId200Response extends HttpResponse { // @public export interface FieldsListByFarmerIddefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type FieldsListByFarmerIdParameters = RequestParameters & FieldsListByFarmerIdQueryParam; +export type FieldsListByFarmerIdParameters = FieldsListByFarmerIdQueryParam & RequestParameters; // @public (undocumented) export interface FieldsListByFarmerIdQueryParam { @@ -1877,27 +2044,27 @@ export interface FieldsListByFarmerIdQueryParam { export interface FieldsListByFarmerIdQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - farmIds?: string[]; - ids?: string[]; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - names?: string[]; - propertyFilters?: string[]; - statuses?: string[]; + farmIds?: Array; + ids?: Array; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + names?: Array; + propertyFilters?: Array; + statuses?: Array; } // @public export interface FieldsListdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type FieldsListParameters = RequestParameters & FieldsListQueryParam; +export type FieldsListParameters = FieldsListQueryParam & RequestParameters; // @public (undocumented) export interface FieldsListQueryParam { @@ -1909,28 +2076,46 @@ export interface FieldsListQueryParam { export interface FieldsListQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - farmIds?: string[]; - ids?: string[]; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - names?: string[]; - propertyFilters?: string[]; - statuses?: string[]; + farmIds?: Array; + ids?: Array; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + names?: Array; + propertyFilters?: Array; + statuses?: Array; +} + +// @public (undocumented) +export type GeoJsonObject = MultiPolygon | Point | Polygon; + +// @public (undocumented) +export interface GeoJsonObjectBase { + // (undocumented) + type: "MultiPolygon" | "Point" | "Polygon"; } // @public (undocumented) -export type GeoJsonObject = Polygon | MultiPolygon | Point; +export type GeoJsonObjectOutput = MultiPolygonOutput | PointOutput | PolygonOutput; // @public (undocumented) -export type GeoJsonObjectType = "Point" | "Polygon" | "MultiPolygon"; +export interface GeoJsonObjectOutputBase { + // (undocumented) + type: "MultiPolygon" | "Point" | "Polygon"; +} // @public export type GetArrayType = T extends Array ? TData : never; // @public -export function getPoller(client: FarmBeatsRestClient, initialResponse: TResult, options?: PollerOptions): PollerLike, TResult>; +export function getLongRunningPoller(client: Client, initialResponse: TResult, options?: LroEngineOptions>): PollerLike, TResult>; + +// @public +export type GetPage = (pageLink: string, maxPageSize?: number) => Promise<{ + page: TPage; + nextPageLink?: string; +}>; // @public (undocumented) export interface HarvestData { @@ -1941,19 +2126,19 @@ export interface HarvestData { avgSpeed?: Measure; avgWetMass?: Measure; avgYield?: Measure; - createdDateTime?: Date; + createdDateTime?: Date | string; description?: string; eTag?: string; farmerId?: string; - harvestProductDetails?: HarvestProductDetail[]; + harvestProductDetails?: Array; id?: string; - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; name?: string; operationBoundaryId?: string; - operationEndDateTime?: Date; - operationModifiedDateTime?: Date; - operationStartDateTime?: Date; - properties?: HarvestDataPropertiesDictionary; + operationEndDateTime?: Date | string; + operationModifiedDateTime?: Date | string; + operationStartDateTime?: Date | string; + properties?: Record; source?: string; status?: string; totalWetMass?: Measure; @@ -1963,7 +2148,7 @@ export interface HarvestData { // @public export interface HarvestDataCreateOrUpdate200Response extends HttpResponse { // (undocumented) - body: HarvestData; + body: HarvestDataOutput; // (undocumented) status: "200"; } @@ -1971,37 +2156,36 @@ export interface HarvestDataCreateOrUpdate200Response extends HttpResponse { // @public export interface HarvestDataCreateOrUpdate201Response extends HttpResponse { // (undocumented) - body: HarvestData; + body: HarvestDataOutput; // (undocumented) status: "201"; } // @public (undocumented) export interface HarvestDataCreateOrUpdateBodyParam { - // (undocumented) body?: HarvestData; } // @public export interface HarvestDataCreateOrUpdatedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type HarvestDataCreateOrUpdateParameters = RequestParameters & HarvestDataCreateOrUpdateBodyParam; +export interface HarvestDataCreateOrUpdateMediaTypesParam { + contentType?: "application/merge-patch+json"; +} // @public (undocumented) -export interface HarvestDataDelete { - delete(options?: HarvestDataDeleteParameters): Promise; - get(options?: HarvestDataGetParameters): Promise; - patch(options?: HarvestDataCreateOrUpdateParameters): Promise; -} +export type HarvestDataCreateOrUpdateParameters = HarvestDataCreateOrUpdateMediaTypesParam & HarvestDataCreateOrUpdateBodyParam & RequestParameters; // @public export interface HarvestDataDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -2009,7 +2193,7 @@ export interface HarvestDataDelete204Response extends HttpResponse { // @public export interface HarvestDataDeletedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -2017,10 +2201,17 @@ export interface HarvestDataDeletedefaultResponse extends HttpResponse { // @public (undocumented) export type HarvestDataDeleteParameters = RequestParameters; +// @public (undocumented) +export interface HarvestDataGet { + delete(options?: HarvestDataDeleteParameters): Promise; + get(options?: HarvestDataGetParameters): Promise; + patch(options?: HarvestDataCreateOrUpdateParameters): Promise; +} + // @public export interface HarvestDataGet200Response extends HttpResponse { // (undocumented) - body: HarvestData; + body: HarvestDataOutput; // (undocumented) status: "200"; } @@ -2028,7 +2219,7 @@ export interface HarvestDataGet200Response extends HttpResponse { // @public export interface HarvestDataGetdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -2044,7 +2235,7 @@ export interface HarvestDataList { // @public export interface HarvestDataList200Response extends HttpResponse { // (undocumented) - body: HarvestDataListResponse; + body: HarvestDataListResponseOutput; // (undocumented) status: "200"; } @@ -2057,7 +2248,7 @@ export interface HarvestDataListByFarmerId { // @public export interface HarvestDataListByFarmerId200Response extends HttpResponse { // (undocumented) - body: HarvestDataListResponse; + body: HarvestDataListResponseOutput; // (undocumented) status: "200"; } @@ -2065,13 +2256,13 @@ export interface HarvestDataListByFarmerId200Response extends HttpResponse { // @public export interface HarvestDataListByFarmerIddefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type HarvestDataListByFarmerIdParameters = RequestParameters & HarvestDataListByFarmerIdQueryParam; +export type HarvestDataListByFarmerIdParameters = HarvestDataListByFarmerIdQueryParam & RequestParameters; // @public (undocumented) export interface HarvestDataListByFarmerIdQueryParam { @@ -2083,18 +2274,18 @@ export interface HarvestDataListByFarmerIdQueryParam { export interface HarvestDataListByFarmerIdQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - associatedBoundaryIds?: string[]; - ids?: string[]; + associatedBoundaryIds?: Array; + ids?: Array; maxArea?: number; maxAvgMoisture?: number; maxAvgSpeed?: number; maxAvgWetMass?: number; maxAvgYield?: number; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - maxOperationEndDateTime?: Date; - maxOperationModifiedDateTime?: Date; - maxOperationStartDateTime?: Date; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + maxOperationEndDateTime?: Date | string; + maxOperationModifiedDateTime?: Date | string; + maxOperationStartDateTime?: Date | string; maxTotalWetMass?: number; maxTotalYield?: number; minArea?: number; @@ -2102,30 +2293,30 @@ export interface HarvestDataListByFarmerIdQueryParamProperties { minAvgSpeed?: number; minAvgWetMass?: number; minAvgYield?: number; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - minOperationEndDateTime?: Date; - minOperationModifiedDateTime?: Date; - minOperationStartDateTime?: Date; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + minOperationEndDateTime?: Date | string; + minOperationModifiedDateTime?: Date | string; + minOperationStartDateTime?: Date | string; minTotalWetMass?: number; minTotalYield?: number; - names?: string[]; - operationBoundaryIds?: string[]; - propertyFilters?: string[]; - sources?: string[]; - statuses?: string[]; + names?: Array; + operationBoundaryIds?: Array; + propertyFilters?: Array; + sources?: Array; + statuses?: Array; } // @public export interface HarvestDataListdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type HarvestDataListParameters = RequestParameters & HarvestDataListQueryParam; +export type HarvestDataListParameters = HarvestDataListQueryParam & RequestParameters; // @public (undocumented) export interface HarvestDataListQueryParam { @@ -2137,18 +2328,18 @@ export interface HarvestDataListQueryParam { export interface HarvestDataListQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - associatedBoundaryIds?: string[]; - ids?: string[]; + associatedBoundaryIds?: Array; + ids?: Array; maxArea?: number; maxAvgMoisture?: number; maxAvgSpeed?: number; maxAvgWetMass?: number; maxAvgYield?: number; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - maxOperationEndDateTime?: Date; - maxOperationModifiedDateTime?: Date; - maxOperationStartDateTime?: Date; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + maxOperationEndDateTime?: Date | string; + maxOperationModifiedDateTime?: Date | string; + maxOperationStartDateTime?: Date | string; maxTotalWetMass?: number; maxTotalYield?: number; minArea?: number; @@ -2156,29 +2347,54 @@ export interface HarvestDataListQueryParamProperties { minAvgSpeed?: number; minAvgWetMass?: number; minAvgYield?: number; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - minOperationEndDateTime?: Date; - minOperationModifiedDateTime?: Date; - minOperationStartDateTime?: Date; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + minOperationEndDateTime?: Date | string; + minOperationModifiedDateTime?: Date | string; + minOperationStartDateTime?: Date | string; minTotalWetMass?: number; minTotalYield?: number; - names?: string[]; - operationBoundaryIds?: string[]; - propertyFilters?: string[]; - sources?: string[]; - statuses?: string[]; + names?: Array; + operationBoundaryIds?: Array; + propertyFilters?: Array; + sources?: Array; + statuses?: Array; } // @public (undocumented) -export interface HarvestDataListResponse { +export interface HarvestDataListResponseOutput { + $skipToken?: string; nextLink?: string; - skipToken?: string; - value?: HarvestData[]; + value?: Array; } // @public (undocumented) -export type HarvestDataPropertiesDictionary = Record; +export interface HarvestDataOutput { + area?: MeasureOutput; + associatedBoundaryId?: string; + attachmentsLink?: string; + avgMoisture?: MeasureOutput; + avgSpeed?: MeasureOutput; + avgWetMass?: MeasureOutput; + avgYield?: MeasureOutput; + createdDateTime?: string; + description?: string; + eTag?: string; + farmerId?: string; + harvestProductDetails?: Array; + id?: string; + modifiedDateTime?: string; + name?: string; + operationBoundaryId?: string; + operationEndDateTime?: string; + operationModifiedDateTime?: string; + operationStartDateTime?: string; + properties?: Record; + source?: string; + status?: string; + totalWetMass?: MeasureOutput; + totalYield?: MeasureOutput; +} // @public (undocumented) export interface HarvestProductDetail { @@ -2192,49 +2408,63 @@ export interface HarvestProductDetail { } // @public (undocumented) -export interface ImageFile { +export interface HarvestProductDetailOutput { + area?: MeasureOutput; + avgMoisture?: MeasureOutput; + avgWetMass?: MeasureOutput; + avgYield?: MeasureOutput; + productName?: string; + totalWetMass?: MeasureOutput; + totalYield?: MeasureOutput; +} + +// @public (undocumented) +export interface ImageFileOutput { fileLink?: string; - imageFormat?: ImageFormat; + imageFormat?: "TIF"; name: string; resolution?: number; } // @public (undocumented) -export type ImageFormat = "TIF"; +export interface ImageProcessingCreateRasterizeJob { + get(options?: ImageProcessingGetRasterizeJobParameters): Promise; + put(options?: ImageProcessingCreateRasterizeJobParameters): Promise; +} // @public export interface ImageProcessingCreateRasterizeJob202Response extends HttpResponse { // (undocumented) - body: ImageProcessingRasterizeJob; + body: ImageProcessingRasterizeJobOutput; // (undocumented) status: "202"; } // @public (undocumented) export interface ImageProcessingCreateRasterizeJobBodyParam { - // (undocumented) body?: ImageProcessingRasterizeJob; } // @public export interface ImageProcessingCreateRasterizeJobdefaultResponse extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "500"; } // @public (undocumented) -export type ImageProcessingCreateRasterizeJobParameters = RequestParameters & ImageProcessingCreateRasterizeJobBodyParam; +export interface ImageProcessingCreateRasterizeJobMediaTypesParam { + contentType?: "application/json"; +} // @public (undocumented) -export interface ImageProcessingGetRasterizeJob { - get(options?: ImageProcessingGetRasterizeJobParameters): Promise; - put(options?: ImageProcessingCreateRasterizeJobParameters): Promise; -} +export type ImageProcessingCreateRasterizeJobParameters = ImageProcessingCreateRasterizeJobMediaTypesParam & ImageProcessingCreateRasterizeJobBodyParam & RequestParameters; // @public export interface ImageProcessingGetRasterizeJob200Response extends HttpResponse { // (undocumented) - body: ImageProcessingRasterizeJob; + body: ImageProcessingRasterizeJobOutput; // (undocumented) status: "200"; } @@ -2244,39 +2474,48 @@ export type ImageProcessingGetRasterizeJobParameters = RequestParameters; // @public (undocumented) export interface ImageProcessingRasterizeJob { - createdDateTime?: Date; + createdDateTime?: Date | string; description?: string; durationInSeconds?: number; - endTime?: Date; + endTime?: Date | string; farmerId: string; id?: string; - lastActionDateTime?: Date; + lastActionDateTime?: Date | string; message?: string; name?: string; - properties?: ImageProcessingRasterizeJobPropertiesDictionary; + properties?: Record; shapefileAttachmentId: string; - shapefileColumnNames: string[]; - startTime?: Date; + shapefileColumnNames: Array; + startTime?: Date | string; status?: string; } // @public (undocumented) -export type ImageProcessingRasterizeJobPropertiesDictionary = Record; - -// @public (undocumented) -export type InnerError = InnerErrorBase & InnerErrorDictionary; +export interface ImageProcessingRasterizeJobOutput { + createdDateTime?: string; + description?: string; + durationInSeconds?: number; + endTime?: string; + farmerId: string; + id?: string; + lastActionDateTime?: string; + message?: string; + name?: string; + properties?: Record; + shapefileAttachmentId: string; + shapefileColumnNames: Array; + startTime?: string; + status?: string; +} // @public (undocumented) -export interface InnerErrorBase { +export interface InnerErrorOutput extends Record { code?: string; - innererror?: InnerError; + innererror?: InnerErrorOutput; } // @public (undocumented) -export type InnerErrorDictionary = Record; - -// @public (undocumented) -export interface Location { +export interface LocationOutput { latitude: number; longitude: number; } @@ -2288,17 +2527,31 @@ export interface Measure { } // @public (undocumented) -export type MultiPolygon = MultiPolygonBase & MultiPolygonCoordinates & { - type: "MultiPolygon"; -}; +export interface MeasureOutput { + unit?: string; + value?: number; +} // @public (undocumented) -export interface MultiPolygonBase { +export interface MultiPolygon extends GeoJsonObjectBase, MultiPolygonCoordinates { + // (undocumented) + type: "MultiPolygon"; } // @public (undocumented) export interface MultiPolygonCoordinates { - coordinates: number[][][][]; + coordinates: Array>>>; +} + +// @public (undocumented) +export interface MultiPolygonCoordinatesOutput { + coordinates: Array>>>; +} + +// @public (undocumented) +export interface MultiPolygonOutput extends GeoJsonObjectOutputBase, MultiPolygonCoordinatesOutput { + // (undocumented) + type: "MultiPolygon"; } // @public (undocumented) @@ -2314,30 +2567,42 @@ export interface OAuthProvider { apiKey?: string; appId?: string; appSecret?: string; - createdDateTime?: Date; + createdDateTime?: Date | string; description?: string; eTag?: string; id?: string; isProductionApp?: boolean; - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; name?: string; - properties?: OAuthProviderPropertiesDictionary; + properties?: Record; } // @public (undocumented) -export interface OAuthProviderListResponse { +export interface OAuthProviderListResponseOutput { + $skipToken?: string; nextLink?: string; - skipToken?: string; - value?: OAuthProvider[]; + value?: Array; } // @public (undocumented) -export type OAuthProviderPropertiesDictionary = Record; +export interface OAuthProviderOutput { + apiKey?: string; + appId?: string; + appSecret?: string; + createdDateTime?: string; + description?: string; + eTag?: string; + id?: string; + isProductionApp?: boolean; + modifiedDateTime?: string; + name?: string; + properties?: Record; +} // @public export interface OAuthProvidersCreateOrUpdate200Response extends HttpResponse { // (undocumented) - body: OAuthProvider; + body: OAuthProviderOutput; // (undocumented) status: "200"; } @@ -2345,37 +2610,36 @@ export interface OAuthProvidersCreateOrUpdate200Response extends HttpResponse { // @public export interface OAuthProvidersCreateOrUpdate201Response extends HttpResponse { // (undocumented) - body: OAuthProvider; + body: OAuthProviderOutput; // (undocumented) status: "201"; } // @public (undocumented) export interface OAuthProvidersCreateOrUpdateBodyParam { - // (undocumented) body?: OAuthProvider; } // @public export interface OAuthProvidersCreateOrUpdatedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type OAuthProvidersCreateOrUpdateParameters = RequestParameters & OAuthProvidersCreateOrUpdateBodyParam; +export interface OAuthProvidersCreateOrUpdateMediaTypesParam { + contentType?: "application/merge-patch+json"; +} // @public (undocumented) -export interface OAuthProvidersDelete { - delete(options?: OAuthProvidersDeleteParameters): Promise; - get(options?: OAuthProvidersGetParameters): Promise; - patch(options?: OAuthProvidersCreateOrUpdateParameters): Promise; -} +export type OAuthProvidersCreateOrUpdateParameters = OAuthProvidersCreateOrUpdateMediaTypesParam & OAuthProvidersCreateOrUpdateBodyParam & RequestParameters; // @public export interface OAuthProvidersDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -2383,7 +2647,7 @@ export interface OAuthProvidersDelete204Response extends HttpResponse { // @public export interface OAuthProvidersDeletedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -2391,10 +2655,17 @@ export interface OAuthProvidersDeletedefaultResponse extends HttpResponse { // @public (undocumented) export type OAuthProvidersDeleteParameters = RequestParameters; +// @public (undocumented) +export interface OAuthProvidersGet { + delete(options?: OAuthProvidersDeleteParameters): Promise; + get(options?: OAuthProvidersGetParameters): Promise; + patch(options?: OAuthProvidersCreateOrUpdateParameters): Promise; +} + // @public export interface OAuthProvidersGet200Response extends HttpResponse { // (undocumented) - body: OAuthProvider; + body: OAuthProviderOutput; // (undocumented) status: "200"; } @@ -2402,7 +2673,7 @@ export interface OAuthProvidersGet200Response extends HttpResponse { // @public export interface OAuthProvidersGetdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -2418,7 +2689,7 @@ export interface OAuthProvidersList { // @public export interface OAuthProvidersList200Response extends HttpResponse { // (undocumented) - body: OAuthProviderListResponse; + body: OAuthProviderListResponseOutput; // (undocumented) status: "200"; } @@ -2426,13 +2697,13 @@ export interface OAuthProvidersList200Response extends HttpResponse { // @public export interface OAuthProvidersListdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type OAuthProvidersListParameters = RequestParameters & OAuthProvidersListQueryParam; +export type OAuthProvidersListParameters = OAuthProvidersListQueryParam & RequestParameters; // @public (undocumented) export interface OAuthProvidersListQueryParam { @@ -2444,43 +2715,37 @@ export interface OAuthProvidersListQueryParam { export interface OAuthProvidersListQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - ids?: string[]; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - names?: string[]; - propertyFilters?: string[]; - statuses?: string[]; -} - -// @public (undocumented) -export interface OAuthToken { - authProviderId: string; - createdDateTime?: Date; - eTag?: string; - farmerId: string; - isValid?: boolean; - modifiedDateTime?: Date; + ids?: Array; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + names?: Array; + propertyFilters?: Array; + statuses?: Array; } // @public (undocumented) -export interface OAuthTokenListResponse { +export interface OAuthTokenListResponseOutput { + $skipToken?: string; nextLink?: string; - skipToken?: string; - value?: OAuthToken[]; + value?: Array; } // @public (undocumented) -export interface OAuthTokensCreateCascadeDeleteJob { - get(options?: OAuthTokensGetCascadeDeleteJobDetailsParameters): Promise; - put(options?: OAuthTokensCreateCascadeDeleteJobParameters): Promise; +export interface OAuthTokenOutput { + authProviderId: string; + createdDateTime?: string; + eTag?: string; + farmerId: string; + isValid?: boolean; + modifiedDateTime?: string; } // @public export interface OAuthTokensCreateCascadeDeleteJob202Response extends HttpResponse { // (undocumented) - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; // (undocumented) status: "202"; } @@ -2488,13 +2753,13 @@ export interface OAuthTokensCreateCascadeDeleteJob202Response extends HttpRespon // @public export interface OAuthTokensCreateCascadeDeleteJobdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type OAuthTokensCreateCascadeDeleteJobParameters = RequestParameters & OAuthTokensCreateCascadeDeleteJobQueryParam; +export type OAuthTokensCreateCascadeDeleteJobParameters = OAuthTokensCreateCascadeDeleteJobQueryParam & RequestParameters; // @public (undocumented) export interface OAuthTokensCreateCascadeDeleteJobQueryParam { @@ -2508,10 +2773,16 @@ export interface OAuthTokensCreateCascadeDeleteJobQueryParamProperties { oauthProviderId: string; } +// @public (undocumented) +export interface OAuthTokensGetCascadeDeleteJobDetails { + get(options?: OAuthTokensGetCascadeDeleteJobDetailsParameters): Promise; + put(options: OAuthTokensCreateCascadeDeleteJobParameters): Promise; +} + // @public export interface OAuthTokensGetCascadeDeleteJobDetails200Response extends HttpResponse { // (undocumented) - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; // (undocumented) status: "200"; } @@ -2519,7 +2790,7 @@ export interface OAuthTokensGetCascadeDeleteJobDetails200Response extends HttpRe // @public export interface OAuthTokensGetCascadeDeleteJobDetailsdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -2542,20 +2813,24 @@ export interface OAuthTokensGetOAuthConnectionLink200Response extends HttpRespon // @public (undocumented) export interface OAuthTokensGetOAuthConnectionLinkBodyParam { - // (undocumented) body?: OAuthConnectRequest; } // @public export interface OAuthTokensGetOAuthConnectionLinkdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type OAuthTokensGetOAuthConnectionLinkParameters = RequestParameters & OAuthTokensGetOAuthConnectionLinkBodyParam; +export interface OAuthTokensGetOAuthConnectionLinkMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type OAuthTokensGetOAuthConnectionLinkParameters = OAuthTokensGetOAuthConnectionLinkMediaTypesParam & OAuthTokensGetOAuthConnectionLinkBodyParam & RequestParameters; // @public (undocumented) export interface OAuthTokensList { @@ -2565,7 +2840,7 @@ export interface OAuthTokensList { // @public export interface OAuthTokensList200Response extends HttpResponse { // (undocumented) - body: OAuthTokenListResponse; + body: OAuthTokenListResponseOutput; // (undocumented) status: "200"; } @@ -2573,13 +2848,13 @@ export interface OAuthTokensList200Response extends HttpResponse { // @public export interface OAuthTokensListdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type OAuthTokensListParameters = RequestParameters & OAuthTokensListQueryParam; +export type OAuthTokensListParameters = OAuthTokensListQueryParam & RequestParameters; // @public (undocumented) export interface OAuthTokensListQueryParam { @@ -2591,17 +2866,17 @@ export interface OAuthTokensListQueryParam { export interface OAuthTokensListQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - authProviderIds?: string[]; - farmerIds?: string[]; + authProviderIds?: Array; + farmerIds?: Array; isValid?: boolean; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; } // @public -export function paginate(client: Client, initialResponse: TReturn): PagedAsyncIterableIterator, PaginateReturn[]>; +export function paginate(client: Client, initialResponse: TResponse, options?: PagingOptions): PagedAsyncIterableIterator>; // @public export type PaginateReturn = TResult extends { @@ -2610,20 +2885,9 @@ export type PaginateReturn = TResult extends { }; } ? GetArrayType : Array; -// @public (undocumented) -export interface Paths1LxjoxzFarmersFarmeridAttachmentsAttachmentidPatchRequestbodyContentMultipartFormDataSchema { - createdDateTime?: string; - description?: string; - eTag?: string; - farmerId?: string; - file?: string; - id?: string; - modifiedDateTime?: string; - name?: string; - originalFileName?: string; - resourceId?: string; - resourceType?: string; - status?: string; +// @public +export interface PagingOptions { + customGetPage?: GetPage[]>; } // @public (undocumented) @@ -2633,19 +2897,19 @@ export interface PlantingData { attachmentsLink?: string; avgMaterial?: Measure; avgPlantingRate?: Measure; - createdDateTime?: Date; + createdDateTime?: Date | string; description?: string; eTag?: string; farmerId?: string; id?: string; - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; name?: string; operationBoundaryId?: string; - operationEndDateTime?: Date; - operationModifiedDateTime?: Date; - operationStartDateTime?: Date; - plantingProductDetails?: PlantingProductDetail[]; - properties?: PlantingDataPropertiesDictionary; + operationEndDateTime?: Date | string; + operationModifiedDateTime?: Date | string; + operationStartDateTime?: Date | string; + plantingProductDetails?: Array; + properties?: Record; source?: string; status?: string; totalMaterial?: Measure; @@ -2654,7 +2918,7 @@ export interface PlantingData { // @public export interface PlantingDataCreateOrUpdate200Response extends HttpResponse { // (undocumented) - body: PlantingData; + body: PlantingDataOutput; // (undocumented) status: "200"; } @@ -2662,37 +2926,36 @@ export interface PlantingDataCreateOrUpdate200Response extends HttpResponse { // @public export interface PlantingDataCreateOrUpdate201Response extends HttpResponse { // (undocumented) - body: PlantingData; + body: PlantingDataOutput; // (undocumented) status: "201"; } // @public (undocumented) export interface PlantingDataCreateOrUpdateBodyParam { - // (undocumented) body?: PlantingData; } // @public export interface PlantingDataCreateOrUpdatedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type PlantingDataCreateOrUpdateParameters = RequestParameters & PlantingDataCreateOrUpdateBodyParam; +export interface PlantingDataCreateOrUpdateMediaTypesParam { + contentType?: "application/merge-patch+json"; +} // @public (undocumented) -export interface PlantingDataDelete { - delete(options?: PlantingDataDeleteParameters): Promise; - get(options?: PlantingDataGetParameters): Promise; - patch(options?: PlantingDataCreateOrUpdateParameters): Promise; -} +export type PlantingDataCreateOrUpdateParameters = PlantingDataCreateOrUpdateMediaTypesParam & PlantingDataCreateOrUpdateBodyParam & RequestParameters; // @public export interface PlantingDataDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -2700,7 +2963,7 @@ export interface PlantingDataDelete204Response extends HttpResponse { // @public export interface PlantingDataDeletedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -2708,10 +2971,17 @@ export interface PlantingDataDeletedefaultResponse extends HttpResponse { // @public (undocumented) export type PlantingDataDeleteParameters = RequestParameters; +// @public (undocumented) +export interface PlantingDataGet { + delete(options?: PlantingDataDeleteParameters): Promise; + get(options?: PlantingDataGetParameters): Promise; + patch(options?: PlantingDataCreateOrUpdateParameters): Promise; +} + // @public export interface PlantingDataGet200Response extends HttpResponse { // (undocumented) - body: PlantingData; + body: PlantingDataOutput; // (undocumented) status: "200"; } @@ -2719,7 +2989,7 @@ export interface PlantingDataGet200Response extends HttpResponse { // @public export interface PlantingDataGetdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -2735,7 +3005,7 @@ export interface PlantingDataList { // @public export interface PlantingDataList200Response extends HttpResponse { // (undocumented) - body: PlantingDataListResponse; + body: PlantingDataListResponseOutput; // (undocumented) status: "200"; } @@ -2748,7 +3018,7 @@ export interface PlantingDataListByFarmerId { // @public export interface PlantingDataListByFarmerId200Response extends HttpResponse { // (undocumented) - body: PlantingDataListResponse; + body: PlantingDataListResponseOutput; // (undocumented) status: "200"; } @@ -2756,13 +3026,13 @@ export interface PlantingDataListByFarmerId200Response extends HttpResponse { // @public export interface PlantingDataListByFarmerIddefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type PlantingDataListByFarmerIdParameters = RequestParameters & PlantingDataListByFarmerIdQueryParam; +export type PlantingDataListByFarmerIdParameters = PlantingDataListByFarmerIdQueryParam & RequestParameters; // @public (undocumented) export interface PlantingDataListByFarmerIdQueryParam { @@ -2774,43 +3044,43 @@ export interface PlantingDataListByFarmerIdQueryParam { export interface PlantingDataListByFarmerIdQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - associatedBoundaryIds?: string[]; - ids?: string[]; + associatedBoundaryIds?: Array; + ids?: Array; maxArea?: number; maxAvgMaterial?: number; maxAvgPlantingRate?: number; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - maxOperationEndDateTime?: Date; - maxOperationModifiedDateTime?: Date; - maxOperationStartDateTime?: Date; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + maxOperationEndDateTime?: Date | string; + maxOperationModifiedDateTime?: Date | string; + maxOperationStartDateTime?: Date | string; maxTotalMaterial?: number; minArea?: number; minAvgMaterial?: number; minAvgPlantingRate?: number; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - minOperationEndDateTime?: Date; - minOperationModifiedDateTime?: Date; - minOperationStartDateTime?: Date; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + minOperationEndDateTime?: Date | string; + minOperationModifiedDateTime?: Date | string; + minOperationStartDateTime?: Date | string; minTotalMaterial?: number; - names?: string[]; - operationBoundaryIds?: string[]; - propertyFilters?: string[]; - sources?: string[]; - statuses?: string[]; + names?: Array; + operationBoundaryIds?: Array; + propertyFilters?: Array; + sources?: Array; + statuses?: Array; } // @public export interface PlantingDataListdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type PlantingDataListParameters = RequestParameters & PlantingDataListQueryParam; +export type PlantingDataListParameters = PlantingDataListQueryParam & RequestParameters; // @public (undocumented) export interface PlantingDataListQueryParam { @@ -2822,42 +3092,64 @@ export interface PlantingDataListQueryParam { export interface PlantingDataListQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - associatedBoundaryIds?: string[]; - ids?: string[]; + associatedBoundaryIds?: Array; + ids?: Array; maxArea?: number; maxAvgMaterial?: number; maxAvgPlantingRate?: number; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - maxOperationEndDateTime?: Date; - maxOperationModifiedDateTime?: Date; - maxOperationStartDateTime?: Date; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + maxOperationEndDateTime?: Date | string; + maxOperationModifiedDateTime?: Date | string; + maxOperationStartDateTime?: Date | string; maxTotalMaterial?: number; minArea?: number; minAvgMaterial?: number; minAvgPlantingRate?: number; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - minOperationEndDateTime?: Date; - minOperationModifiedDateTime?: Date; - minOperationStartDateTime?: Date; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + minOperationEndDateTime?: Date | string; + minOperationModifiedDateTime?: Date | string; + minOperationStartDateTime?: Date | string; minTotalMaterial?: number; - names?: string[]; - operationBoundaryIds?: string[]; - propertyFilters?: string[]; - sources?: string[]; - statuses?: string[]; + names?: Array; + operationBoundaryIds?: Array; + propertyFilters?: Array; + sources?: Array; + statuses?: Array; } // @public (undocumented) -export interface PlantingDataListResponse { +export interface PlantingDataListResponseOutput { + $skipToken?: string; nextLink?: string; - skipToken?: string; - value?: PlantingData[]; + value?: Array; } // @public (undocumented) -export type PlantingDataPropertiesDictionary = Record; +export interface PlantingDataOutput { + area?: MeasureOutput; + associatedBoundaryId?: string; + attachmentsLink?: string; + avgMaterial?: MeasureOutput; + avgPlantingRate?: MeasureOutput; + createdDateTime?: string; + description?: string; + eTag?: string; + farmerId?: string; + id?: string; + modifiedDateTime?: string; + name?: string; + operationBoundaryId?: string; + operationEndDateTime?: string; + operationModifiedDateTime?: string; + operationStartDateTime?: string; + plantingProductDetails?: Array; + properties?: Record; + source?: string; + status?: string; + totalMaterial?: MeasureOutput; +} // @public (undocumented) export interface PlantingProductDetail { @@ -2868,179 +3160,241 @@ export interface PlantingProductDetail { } // @public (undocumented) -export type Point = PointBase & PointCoordinates & { - type: "Point"; -}; +export interface PlantingProductDetailOutput { + area?: MeasureOutput; + avgMaterial?: MeasureOutput; + productName?: string; + totalMaterial?: MeasureOutput; +} // @public (undocumented) -export interface PointBase { +export interface Point extends GeoJsonObjectBase, PointCoordinates { + // (undocumented) + type: "Point"; } // @public (undocumented) export interface PointCoordinates { - coordinates: number[]; + coordinates: Array; } // @public (undocumented) -export type Polygon = PolygonBase & PolygonCoordinates & { - type: "Polygon"; -}; +export interface PointCoordinatesOutput { + coordinates: Array; +} + +// @public (undocumented) +export interface PointOutput extends GeoJsonObjectOutputBase, PointCoordinatesOutput { + // (undocumented) + type: "Point"; +} // @public (undocumented) -export interface PolygonBase { +export interface Polygon extends GeoJsonObjectBase, PolygonCoordinates { + // (undocumented) + type: "Polygon"; } // @public (undocumented) export interface PolygonCoordinates { - coordinates: number[][][]; + coordinates: Array>>; +} + +// @public (undocumented) +export interface PolygonCoordinatesOutput { + coordinates: Array>>; +} + +// @public (undocumented) +export interface PolygonOutput extends GeoJsonObjectOutputBase, PolygonCoordinatesOutput { + // (undocumented) + type: "Polygon"; } // @public (undocumented) export interface Routes { (path: "/farmers/{farmerId}/application-data", farmerId: string): ApplicationDataListByFarmerId; (path: "/application-data"): ApplicationDataList; - (path: "/farmers/{farmerId}/application-data/{applicationDataId}", farmerId: string, applicationDataId: string): ApplicationDataDelete; + (path: "/farmers/{farmerId}/application-data/{applicationDataId}", farmerId: string, applicationDataId: string): ApplicationDataGet; (path: "/farmers/{farmerId}/attachments", farmerId: string): AttachmentsListByFarmerId; - (path: "/farmers/{farmerId}/attachments/{attachmentId}", farmerId: string, attachmentId: string): AttachmentsDelete; + (path: "/farmers/{farmerId}/attachments/{attachmentId}", farmerId: string, attachmentId: string): AttachmentsGet; (path: "/farmers/{farmerId}/attachments/{attachmentId}/file", farmerId: string, attachmentId: string): AttachmentsDownload; - (path: "/farmers/{farmerId}/boundaries", farmerId: string): BoundariesSearchByFarmerId; - (path: "/boundaries"): BoundariesSearch; - (path: "/boundaries/cascade-delete/{jobId}", jobId: string): BoundariesCreateCascadeDeleteJob; - (path: "/farmers/{farmerId}/boundaries/{boundaryId}", farmerId: string, boundaryId: string): BoundariesDelete; + (path: "/farmers/{farmerId}/boundaries", farmerId: string): BoundariesListByFarmerId; + (path: "/boundaries"): BoundariesList; + (path: "/boundaries/cascade-delete/{jobId}", jobId: string): BoundariesGetCascadeDeleteJobDetails; + (path: "/farmers/{farmerId}/boundaries/{boundaryId}", farmerId: string, boundaryId: string): BoundariesGet; (path: "/farmers/{farmerId}/boundaries/{boundaryId}/overlap", farmerId: string, boundaryId: string): BoundariesGetOverlap; (path: "/crops"): CropsList; - (path: "/crops/{cropId}", cropId: string): CropsDelete; + (path: "/crops/{cropId}", cropId: string): CropsGet; (path: "/crops/{cropId}/crop-varieties", cropId: string): CropVarietiesListByCropId; (path: "/crop-varieties"): CropVarietiesList; - (path: "/crops/{cropId}/crop-varieties/{cropVarietyId}", cropId: string, cropVarietyId: string): CropVarietiesDelete; + (path: "/crops/{cropId}/crop-varieties/{cropVarietyId}", cropId: string, cropVarietyId: string): CropVarietiesGet; (path: "/farmers"): FarmersList; - (path: "/farmers/{farmerId}", farmerId: string): FarmersDelete; - (path: "/farmers/cascade-delete/{jobId}", jobId: string): FarmersCreateCascadeDeleteJob; - (path: "/farm-operations/ingest-data/{jobId}", jobId: string): FarmOperationsGetDataIngestionJobDetails; + (path: "/farmers/{farmerId}", farmerId: string): FarmersGet; + (path: "/farmers/cascade-delete/{jobId}", jobId: string): FarmersGetCascadeDeleteJobDetails; + (path: "/farm-operations/ingest-data/{jobId}", jobId: string): FarmOperationsCreateDataIngestionJob; (path: "/farmers/{farmerId}/farms", farmerId: string): FarmsListByFarmerId; (path: "/farms"): FarmsList; - (path: "/farmers/{farmerId}/farms/{farmId}", farmerId: string, farmId: string): FarmsDelete; - (path: "/farms/cascade-delete/{jobId}", jobId: string): FarmsCreateCascadeDeleteJob; + (path: "/farmers/{farmerId}/farms/{farmId}", farmerId: string, farmId: string): FarmsGet; + (path: "/farms/cascade-delete/{jobId}", jobId: string): FarmsGetCascadeDeleteJobDetails; (path: "/farmers/{farmerId}/fields", farmerId: string): FieldsListByFarmerId; (path: "/fields"): FieldsList; - (path: "/farmers/{farmerId}/fields/{fieldId}", farmerId: string, fieldId: string): FieldsDelete; - (path: "/fields/cascade-delete/{jobId}", jobId: string): FieldsCreateCascadeDeleteJob; + (path: "/farmers/{farmerId}/fields/{fieldId}", farmerId: string, fieldId: string): FieldsGet; + (path: "/fields/cascade-delete/{jobId}", jobId: string): FieldsGetCascadeDeleteJobDetails; (path: "/farmers/{farmerId}/harvest-data", farmerId: string): HarvestDataListByFarmerId; (path: "/harvest-data"): HarvestDataList; - (path: "/farmers/{farmerId}/harvest-data/{harvestDataId}", farmerId: string, harvestDataId: string): HarvestDataDelete; - (path: "/image-processing/rasterize/{jobId}", jobId: string): ImageProcessingGetRasterizeJob; + (path: "/farmers/{farmerId}/harvest-data/{harvestDataId}", farmerId: string, harvestDataId: string): HarvestDataGet; + (path: "/image-processing/rasterize/{jobId}", jobId: string): ImageProcessingCreateRasterizeJob; (path: "/oauth/providers"): OAuthProvidersList; - (path: "/oauth/providers/{oauthProviderId}", oauthProviderId: string): OAuthProvidersDelete; + (path: "/oauth/providers/{oauthProviderId}", oauthProviderId: string): OAuthProvidersGet; (path: "/oauth/tokens"): OAuthTokensList; (path: "/oauth/tokens/:connect"): OAuthTokensGetOAuthConnectionLink; - (path: "/oauth/tokens/remove/{jobId}", jobId: string): OAuthTokensCreateCascadeDeleteJob; + (path: "/oauth/tokens/remove/{jobId}", jobId: string): OAuthTokensGetCascadeDeleteJobDetails; (path: "/farmers/{farmerId}/planting-data", farmerId: string): PlantingDataListByFarmerId; (path: "/planting-data"): PlantingDataList; - (path: "/farmers/{farmerId}/planting-data/{plantingDataId}", farmerId: string, plantingDataId: string): PlantingDataDelete; + (path: "/farmers/{farmerId}/planting-data/{plantingDataId}", farmerId: string, plantingDataId: string): PlantingDataGet; (path: "/scenes"): ScenesList; - (path: "/scenes/satellite/ingest-data/{jobId}", jobId: string): ScenesGetSatelliteDataIngestionJobDetails; + (path: "/scenes/satellite/ingest-data/{jobId}", jobId: string): ScenesCreateSatelliteDataIngestionJob; (path: "/scenes/downloadFiles"): ScenesDownload; (path: "/farmers/{farmerId}/seasonal-fields", farmerId: string): SeasonalFieldsListByFarmerId; (path: "/seasonal-fields"): SeasonalFieldsList; - (path: "/farmers/{farmerId}/seasonal-fields/{seasonalFieldId}", farmerId: string, seasonalFieldId: string): SeasonalFieldsDelete; - (path: "/seasonal-fields/cascade-delete/{jobId}", jobId: string): SeasonalFieldsCreateCascadeDeleteJob; + (path: "/farmers/{farmerId}/seasonal-fields/{seasonalFieldId}", farmerId: string, seasonalFieldId: string): SeasonalFieldsGet; + (path: "/seasonal-fields/cascade-delete/{jobId}", jobId: string): SeasonalFieldsGetCascadeDeleteJobDetails; (path: "/seasons"): SeasonsList; - (path: "/seasons/{seasonId}", seasonId: string): SeasonsDelete; + (path: "/seasons/{seasonId}", seasonId: string): SeasonsGet; (path: "/farmers/{farmerId}/tillage-data", farmerId: string): TillageDataListByFarmerId; (path: "/tillage-data"): TillageDataList; - (path: "/farmers/{farmerId}/tillage-data/{tillageDataId}", farmerId: string, tillageDataId: string): TillageDataDelete; + (path: "/farmers/{farmerId}/tillage-data/{tillageDataId}", farmerId: string, tillageDataId: string): TillageDataGet; (path: "/weather"): WeatherList; - (path: "/weather/ingest-data/{jobId}", jobId: string): WeatherCreateDataIngestionJob; - (path: "/weather/delete-data/{jobId}", jobId: string): WeatherCreateDataDeleteJob; + (path: "/weather/ingest-data/{jobId}", jobId: string): WeatherGetDataIngestionJobDetails; + (path: "/weather/delete-data/{jobId}", jobId: string): WeatherGetDataDeleteJobDetails; } // @public (undocumented) export interface SatelliteData { - imageFormats?: string[]; - imageNames?: string[]; - imageResolutions?: number[]; + imageFormats?: Array; + imageNames?: Array; + imageResolutions?: Array; } // @public (undocumented) export interface SatelliteDataIngestionJob { boundaryId: string; - createdDateTime?: Date; + createdDateTime?: Date | string; data?: SatelliteData; description?: string; durationInSeconds?: number; - endDateTime: Date; - endTime?: Date; + endDateTime: Date | string; + endTime?: Date | string; farmerId: string; id?: string; - lastActionDateTime?: Date; + lastActionDateTime?: Date | string; message?: string; name?: string; - properties?: SatelliteDataIngestionJobPropertiesDictionary; - provider?: DataProvider; - source?: Source; - startDateTime: Date; - startTime?: Date; + properties?: Record; + provider?: "Microsoft"; + source?: "Sentinel_2_L2A"; + startDateTime: Date | string; + startTime?: Date | string; status?: string; } // @public (undocumented) -export type SatelliteDataIngestionJobPropertiesDictionary = Record; +export interface SatelliteDataIngestionJobOutput { + boundaryId: string; + createdDateTime?: string; + data?: SatelliteDataOutput; + description?: string; + durationInSeconds?: number; + endDateTime: string; + endTime?: string; + farmerId: string; + id?: string; + lastActionDateTime?: string; + message?: string; + name?: string; + properties?: Record; + provider?: "Microsoft"; + source?: "Sentinel_2_L2A"; + startDateTime: string; + startTime?: string; + status?: string; +} // @public (undocumented) -export interface Scene { +export interface SatelliteDataOutput { + imageFormats?: Array; + imageNames?: Array; + imageResolutions?: Array; +} + +// @public (undocumented) +export interface SceneListResponseOutput { + $skipToken?: string; + nextLink?: string; + value?: Array; +} + +// @public (undocumented) +export interface SceneOutput { boundaryId?: string; cloudCoverPercentage?: number; darkPixelPercentage?: number; eTag?: string; farmerId?: string; id?: string; - imageFiles?: ImageFile[]; - imageFormat?: ImageFormat; + imageFiles?: Array; + imageFormat?: "TIF"; ndviMedianValue?: number; provider?: string; - sceneDateTime?: Date; + sceneDateTime?: string; source?: string; } // @public (undocumented) -export interface SceneListResponse { - nextLink?: string; - skipToken?: string; - value?: Scene[]; +export interface ScenesCreateSatelliteDataIngestionJob { + get(options?: ScenesGetSatelliteDataIngestionJobDetailsParameters): Promise; + put(options?: ScenesCreateSatelliteDataIngestionJobParameters): Promise; } // @public export interface ScenesCreateSatelliteDataIngestionJob202Response extends HttpResponse { // (undocumented) - body: SatelliteDataIngestionJob; + body: SatelliteDataIngestionJobOutput; // (undocumented) status: "202"; } // @public (undocumented) export interface ScenesCreateSatelliteDataIngestionJobBodyParam { - // (undocumented) body?: SatelliteDataIngestionJob; } // @public export interface ScenesCreateSatelliteDataIngestionJobdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type ScenesCreateSatelliteDataIngestionJobParameters = RequestParameters & ScenesCreateSatelliteDataIngestionJobBodyParam; +export interface ScenesCreateSatelliteDataIngestionJobMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type ScenesCreateSatelliteDataIngestionJobParameters = ScenesCreateSatelliteDataIngestionJobMediaTypesParam & ScenesCreateSatelliteDataIngestionJobBodyParam & RequestParameters; // @public (undocumented) export interface ScenesDownload { - get(options?: ScenesDownloadParameters): Promise; + get(options: ScenesDownloadParameters): Promise; } // @public export interface ScenesDownload200Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "200"; } @@ -3048,13 +3402,13 @@ export interface ScenesDownload200Response extends HttpResponse { // @public export interface ScenesDownloaddefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type ScenesDownloadParameters = RequestParameters & ScenesDownloadQueryParam; +export type ScenesDownloadParameters = ScenesDownloadQueryParam & RequestParameters; // @public (undocumented) export interface ScenesDownloadQueryParam { @@ -3067,16 +3421,10 @@ export interface ScenesDownloadQueryParamProperties { filePath: string; } -// @public (undocumented) -export interface ScenesGetSatelliteDataIngestionJobDetails { - get(options?: ScenesGetSatelliteDataIngestionJobDetailsParameters): Promise; - put(options?: ScenesCreateSatelliteDataIngestionJobParameters): Promise; -} - // @public export interface ScenesGetSatelliteDataIngestionJobDetails200Response extends HttpResponse { // (undocumented) - body: SatelliteDataIngestionJob; + body: SatelliteDataIngestionJobOutput; // (undocumented) status: "200"; } @@ -3084,7 +3432,7 @@ export interface ScenesGetSatelliteDataIngestionJobDetails200Response extends Ht // @public export interface ScenesGetSatelliteDataIngestionJobDetailsdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -3094,13 +3442,13 @@ export type ScenesGetSatelliteDataIngestionJobDetailsParameters = RequestParamet // @public (undocumented) export interface ScenesList { - get(options?: ScenesListParameters): Promise; + get(options: ScenesListParameters): Promise; } // @public export interface ScenesList200Response extends HttpResponse { // (undocumented) - body: SceneListResponse; + body: SceneListResponseOutput; // (undocumented) status: "200"; } @@ -3108,13 +3456,13 @@ export interface ScenesList200Response extends HttpResponse { // @public export interface ScenesListdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type ScenesListParameters = RequestParameters & ScenesListQueryParam; +export type ScenesListParameters = ScenesListQueryParam & RequestParameters; // @public (undocumented) export interface ScenesListQueryParam { @@ -3127,49 +3475,49 @@ export interface ScenesListQueryParamProperties { $maxPageSize?: number; $skipToken?: string; boundaryId: string; - endDateTime?: Date; + endDateTime?: Date | string; farmerId: string; - imageFormats?: string[]; - imageNames?: string[]; - imageResolutions?: number[]; + imageFormats?: Array; + imageNames?: Array; + imageResolutions?: Array; maxCloudCoveragePercentage?: number; maxDarkPixelCoveragePercentage?: number; provider: string; source?: string; - startDateTime?: Date; + startDateTime?: Date | string; } // @public (undocumented) export interface SearchBoundaryQuery { - ids?: string[]; + $maxPageSize?: number; + $skipToken?: string; + ids?: Array; intersectsWithGeometry?: GeoJsonObject; isPrimary?: boolean; maxAcreage?: number; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - maxPageSize?: number; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; minAcreage?: number; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - names?: string[]; - parentIds?: string[]; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + names?: Array; + parentIds?: Array; parentType?: string; - propertyFilters?: string[]; - skipToken?: string; - statuses?: string[]; + propertyFilters?: Array; + statuses?: Array; } // @public (undocumented) export interface Season { - createdDateTime?: Date; + createdDateTime?: Date | string; description?: string; - endDateTime?: Date; + endDateTime?: Date | string; eTag?: string; id?: string; - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; name?: string; - properties?: SeasonPropertiesDictionary; - startDateTime?: Date; + properties?: Record; + startDateTime?: Date | string; status?: string; year?: number; } @@ -3180,45 +3528,61 @@ export interface SeasonalField { avgSeedPopulationValue?: number; avgYieldUnit?: string; avgYieldValue?: number; - boundaryIds?: string[]; - createdDateTime?: Date; + boundaryIds?: Array; + createdDateTime?: Date | string; cropId?: string; - cropVarietyIds?: string[]; + cropVarietyIds?: Array; description?: string; eTag?: string; farmerId?: string; farmId?: string; fieldId?: string; id?: string; - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; name?: string; - plantingDateTime?: Date; + plantingDateTime?: Date | string; primaryBoundaryId?: string; - properties?: SeasonalFieldPropertiesDictionary; + properties?: Record; seasonId?: string; status?: string; } // @public (undocumented) -export interface SeasonalFieldListResponse { +export interface SeasonalFieldListResponseOutput { + $skipToken?: string; nextLink?: string; - skipToken?: string; - value?: SeasonalField[]; + value?: Array; } // @public (undocumented) -export type SeasonalFieldPropertiesDictionary = Record; - -// @public (undocumented) -export interface SeasonalFieldsCreateCascadeDeleteJob { - get(options?: SeasonalFieldsGetCascadeDeleteJobDetailsParameters): Promise; - put(options?: SeasonalFieldsCreateCascadeDeleteJobParameters): Promise; +export interface SeasonalFieldOutput { + avgSeedPopulationUnit?: string; + avgSeedPopulationValue?: number; + avgYieldUnit?: string; + avgYieldValue?: number; + boundaryIds?: Array; + createdDateTime?: string; + cropId?: string; + cropVarietyIds?: Array; + description?: string; + eTag?: string; + farmerId?: string; + farmId?: string; + fieldId?: string; + id?: string; + modifiedDateTime?: string; + name?: string; + plantingDateTime?: string; + primaryBoundaryId?: string; + properties?: Record; + seasonId?: string; + status?: string; } // @public export interface SeasonalFieldsCreateCascadeDeleteJob202Response extends HttpResponse { // (undocumented) - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; // (undocumented) status: "202"; } @@ -3226,13 +3590,13 @@ export interface SeasonalFieldsCreateCascadeDeleteJob202Response extends HttpRes // @public export interface SeasonalFieldsCreateCascadeDeleteJobdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type SeasonalFieldsCreateCascadeDeleteJobParameters = RequestParameters & SeasonalFieldsCreateCascadeDeleteJobQueryParam; +export type SeasonalFieldsCreateCascadeDeleteJobParameters = SeasonalFieldsCreateCascadeDeleteJobQueryParam & RequestParameters; // @public (undocumented) export interface SeasonalFieldsCreateCascadeDeleteJobQueryParam { @@ -3249,7 +3613,7 @@ export interface SeasonalFieldsCreateCascadeDeleteJobQueryParamProperties { // @public export interface SeasonalFieldsCreateOrUpdate200Response extends HttpResponse { // (undocumented) - body: SeasonalField; + body: SeasonalFieldOutput; // (undocumented) status: "200"; } @@ -3257,37 +3621,36 @@ export interface SeasonalFieldsCreateOrUpdate200Response extends HttpResponse { // @public export interface SeasonalFieldsCreateOrUpdate201Response extends HttpResponse { // (undocumented) - body: SeasonalField; + body: SeasonalFieldOutput; // (undocumented) status: "201"; } // @public (undocumented) export interface SeasonalFieldsCreateOrUpdateBodyParam { - // (undocumented) body?: SeasonalField; } // @public export interface SeasonalFieldsCreateOrUpdatedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type SeasonalFieldsCreateOrUpdateParameters = RequestParameters & SeasonalFieldsCreateOrUpdateBodyParam; +export interface SeasonalFieldsCreateOrUpdateMediaTypesParam { + contentType?: "application/merge-patch+json"; +} // @public (undocumented) -export interface SeasonalFieldsDelete { - delete(options?: SeasonalFieldsDeleteParameters): Promise; - get(options?: SeasonalFieldsGetParameters): Promise; - patch(options?: SeasonalFieldsCreateOrUpdateParameters): Promise; -} +export type SeasonalFieldsCreateOrUpdateParameters = SeasonalFieldsCreateOrUpdateMediaTypesParam & SeasonalFieldsCreateOrUpdateBodyParam & RequestParameters; // @public export interface SeasonalFieldsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -3295,7 +3658,7 @@ export interface SeasonalFieldsDelete204Response extends HttpResponse { // @public export interface SeasonalFieldsDeletedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -3303,18 +3666,31 @@ export interface SeasonalFieldsDeletedefaultResponse extends HttpResponse { // @public (undocumented) export type SeasonalFieldsDeleteParameters = RequestParameters; +// @public (undocumented) +export interface SeasonalFieldsGet { + delete(options?: SeasonalFieldsDeleteParameters): Promise; + get(options?: SeasonalFieldsGetParameters): Promise; + patch(options?: SeasonalFieldsCreateOrUpdateParameters): Promise; +} + // @public export interface SeasonalFieldsGet200Response extends HttpResponse { // (undocumented) - body: SeasonalField; + body: SeasonalFieldOutput; // (undocumented) status: "200"; } +// @public (undocumented) +export interface SeasonalFieldsGetCascadeDeleteJobDetails { + get(options?: SeasonalFieldsGetCascadeDeleteJobDetailsParameters): Promise; + put(options: SeasonalFieldsCreateCascadeDeleteJobParameters): Promise; +} + // @public export interface SeasonalFieldsGetCascadeDeleteJobDetails200Response extends HttpResponse { // (undocumented) - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; // (undocumented) status: "200"; } @@ -3322,7 +3698,7 @@ export interface SeasonalFieldsGetCascadeDeleteJobDetails200Response extends Htt // @public export interface SeasonalFieldsGetCascadeDeleteJobDetailsdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -3333,7 +3709,7 @@ export type SeasonalFieldsGetCascadeDeleteJobDetailsParameters = RequestParamete // @public export interface SeasonalFieldsGetdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -3349,7 +3725,7 @@ export interface SeasonalFieldsList { // @public export interface SeasonalFieldsList200Response extends HttpResponse { // (undocumented) - body: SeasonalFieldListResponse; + body: SeasonalFieldListResponseOutput; // (undocumented) status: "200"; } @@ -3362,7 +3738,7 @@ export interface SeasonalFieldsListByFarmerId { // @public export interface SeasonalFieldsListByFarmerId200Response extends HttpResponse { // (undocumented) - body: SeasonalFieldListResponse; + body: SeasonalFieldListResponseOutput; // (undocumented) status: "200"; } @@ -3370,13 +3746,13 @@ export interface SeasonalFieldsListByFarmerId200Response extends HttpResponse { // @public export interface SeasonalFieldsListByFarmerIddefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type SeasonalFieldsListByFarmerIdParameters = RequestParameters & SeasonalFieldsListByFarmerIdQueryParam; +export type SeasonalFieldsListByFarmerIdParameters = SeasonalFieldsListByFarmerIdQueryParam & RequestParameters; // @public (undocumented) export interface SeasonalFieldsListByFarmerIdQueryParam { @@ -3390,37 +3766,37 @@ export interface SeasonalFieldsListByFarmerIdQueryParamProperties { $skipToken?: string; avgSeedPopulationUnit?: string; avgYieldUnit?: string; - cropIds?: string[]; - cropVarietyIds?: string[]; - farmIds?: string[]; - fieldIds?: string[]; - ids?: string[]; + cropIds?: Array; + cropVarietyIds?: Array; + farmIds?: Array; + fieldIds?: Array; + ids?: Array; maxAvgSeedPopulationValue?: number; maxAvgYieldValue?: number; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - maxPlantingDateTime?: Date; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + maxPlantingDateTime?: Date | string; minAvgSeedPopulationValue?: number; minAvgYieldValue?: number; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - minPlantingDateTime?: Date; - names?: string[]; - propertyFilters?: string[]; - seasonIds?: string[]; - statuses?: string[]; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + minPlantingDateTime?: Date | string; + names?: Array; + propertyFilters?: Array; + seasonIds?: Array; + statuses?: Array; } // @public export interface SeasonalFieldsListdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type SeasonalFieldsListParameters = RequestParameters & SeasonalFieldsListQueryParam; +export type SeasonalFieldsListParameters = SeasonalFieldsListQueryParam & RequestParameters; // @public (undocumented) export interface SeasonalFieldsListQueryParam { @@ -3434,41 +3810,53 @@ export interface SeasonalFieldsListQueryParamProperties { $skipToken?: string; avgSeedPopulationUnit?: string; avgYieldUnit?: string; - cropIds?: string[]; - cropVarietyIds?: string[]; - farmIds?: string[]; - fieldIds?: string[]; - ids?: string[]; + cropIds?: Array; + cropVarietyIds?: Array; + farmIds?: Array; + fieldIds?: Array; + ids?: Array; maxAvgSeedPopulationValue?: number; maxAvgYieldValue?: number; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - maxPlantingDateTime?: Date; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + maxPlantingDateTime?: Date | string; minAvgSeedPopulationValue?: number; minAvgYieldValue?: number; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - minPlantingDateTime?: Date; - names?: string[]; - propertyFilters?: string[]; - seasonIds?: string[]; - statuses?: string[]; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + minPlantingDateTime?: Date | string; + names?: Array; + propertyFilters?: Array; + seasonIds?: Array; + statuses?: Array; } // @public (undocumented) -export interface SeasonListResponse { +export interface SeasonListResponseOutput { + $skipToken?: string; nextLink?: string; - skipToken?: string; - value?: Season[]; + value?: Array; } // @public (undocumented) -export type SeasonPropertiesDictionary = Record; +export interface SeasonOutput { + createdDateTime?: string; + description?: string; + endDateTime?: string; + eTag?: string; + id?: string; + modifiedDateTime?: string; + name?: string; + properties?: Record; + startDateTime?: string; + status?: string; + year?: number; +} // @public export interface SeasonsCreateOrUpdate200Response extends HttpResponse { // (undocumented) - body: Season; + body: SeasonOutput; // (undocumented) status: "200"; } @@ -3476,37 +3864,36 @@ export interface SeasonsCreateOrUpdate200Response extends HttpResponse { // @public export interface SeasonsCreateOrUpdate201Response extends HttpResponse { // (undocumented) - body: Season; + body: SeasonOutput; // (undocumented) status: "201"; } // @public (undocumented) export interface SeasonsCreateOrUpdateBodyParam { - // (undocumented) body?: Season; } // @public export interface SeasonsCreateOrUpdatedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type SeasonsCreateOrUpdateParameters = RequestParameters & SeasonsCreateOrUpdateBodyParam; +export interface SeasonsCreateOrUpdateMediaTypesParam { + contentType?: "application/merge-patch+json"; +} // @public (undocumented) -export interface SeasonsDelete { - delete(options?: SeasonsDeleteParameters): Promise; - get(options?: SeasonsGetParameters): Promise; - patch(options?: SeasonsCreateOrUpdateParameters): Promise; -} +export type SeasonsCreateOrUpdateParameters = SeasonsCreateOrUpdateMediaTypesParam & SeasonsCreateOrUpdateBodyParam & RequestParameters; // @public export interface SeasonsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -3514,7 +3901,7 @@ export interface SeasonsDelete204Response extends HttpResponse { // @public export interface SeasonsDeletedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -3522,10 +3909,17 @@ export interface SeasonsDeletedefaultResponse extends HttpResponse { // @public (undocumented) export type SeasonsDeleteParameters = RequestParameters; +// @public (undocumented) +export interface SeasonsGet { + delete(options?: SeasonsDeleteParameters): Promise; + get(options?: SeasonsGetParameters): Promise; + patch(options?: SeasonsCreateOrUpdateParameters): Promise; +} + // @public export interface SeasonsGet200Response extends HttpResponse { // (undocumented) - body: Season; + body: SeasonOutput; // (undocumented) status: "200"; } @@ -3533,7 +3927,7 @@ export interface SeasonsGet200Response extends HttpResponse { // @public export interface SeasonsGetdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -3549,7 +3943,7 @@ export interface SeasonsList { // @public export interface SeasonsList200Response extends HttpResponse { // (undocumented) - body: SeasonListResponse; + body: SeasonListResponseOutput; // (undocumented) status: "200"; } @@ -3557,13 +3951,13 @@ export interface SeasonsList200Response extends HttpResponse { // @public export interface SeasonsListdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type SeasonsListParameters = RequestParameters & SeasonsListQueryParam; +export type SeasonsListParameters = SeasonsListQueryParam & RequestParameters; // @public (undocumented) export interface SeasonsListQueryParam { @@ -3575,41 +3969,38 @@ export interface SeasonsListQueryParam { export interface SeasonsListQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - ids?: string[]; - maxCreatedDateTime?: Date; - maxEndDateTime?: Date; - maxLastModifiedDateTime?: Date; - maxStartDateTime?: Date; - minCreatedDateTime?: Date; - minEndDateTime?: Date; - minLastModifiedDateTime?: Date; - minStartDateTime?: Date; - names?: string[]; - propertyFilters?: string[]; - statuses?: string[]; - years?: number[]; + ids?: Array; + maxCreatedDateTime?: Date | string; + maxEndDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + maxStartDateTime?: Date | string; + minCreatedDateTime?: Date | string; + minEndDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + minStartDateTime?: Date | string; + names?: Array; + propertyFilters?: Array; + statuses?: Array; + years?: Array; } -// @public (undocumented) -export type Source = "Sentinel_2_L2A"; - // @public (undocumented) export interface TillageData { area?: Measure; associatedBoundaryId?: string; attachmentsLink?: string; - createdDateTime?: Date; + createdDateTime?: Date | string; description?: string; eTag?: string; farmerId?: string; id?: string; - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; name?: string; operationBoundaryId?: string; - operationEndDateTime?: Date; - operationModifiedDateTime?: Date; - operationStartDateTime?: Date; - properties?: TillageDataPropertiesDictionary; + operationEndDateTime?: Date | string; + operationModifiedDateTime?: Date | string; + operationStartDateTime?: Date | string; + properties?: Record; source?: string; status?: string; tillageDepth?: Measure; @@ -3619,7 +4010,7 @@ export interface TillageData { // @public export interface TillageDataCreateOrUpdate200Response extends HttpResponse { // (undocumented) - body: TillageData; + body: TillageDataOutput; // (undocumented) status: "200"; } @@ -3627,37 +4018,36 @@ export interface TillageDataCreateOrUpdate200Response extends HttpResponse { // @public export interface TillageDataCreateOrUpdate201Response extends HttpResponse { // (undocumented) - body: TillageData; + body: TillageDataOutput; // (undocumented) status: "201"; } // @public (undocumented) export interface TillageDataCreateOrUpdateBodyParam { - // (undocumented) body?: TillageData; } // @public export interface TillageDataCreateOrUpdatedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type TillageDataCreateOrUpdateParameters = RequestParameters & TillageDataCreateOrUpdateBodyParam; +export interface TillageDataCreateOrUpdateMediaTypesParam { + contentType?: "application/merge-patch+json"; +} // @public (undocumented) -export interface TillageDataDelete { - delete(options?: TillageDataDeleteParameters): Promise; - get(options?: TillageDataGetParameters): Promise; - patch(options?: TillageDataCreateOrUpdateParameters): Promise; -} +export type TillageDataCreateOrUpdateParameters = TillageDataCreateOrUpdateMediaTypesParam & TillageDataCreateOrUpdateBodyParam & RequestParameters; // @public export interface TillageDataDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -3665,7 +4055,7 @@ export interface TillageDataDelete204Response extends HttpResponse { // @public export interface TillageDataDeletedefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -3673,10 +4063,17 @@ export interface TillageDataDeletedefaultResponse extends HttpResponse { // @public (undocumented) export type TillageDataDeleteParameters = RequestParameters; +// @public (undocumented) +export interface TillageDataGet { + delete(options?: TillageDataDeleteParameters): Promise; + get(options?: TillageDataGetParameters): Promise; + patch(options?: TillageDataCreateOrUpdateParameters): Promise; +} + // @public export interface TillageDataGet200Response extends HttpResponse { // (undocumented) - body: TillageData; + body: TillageDataOutput; // (undocumented) status: "200"; } @@ -3684,7 +4081,7 @@ export interface TillageDataGet200Response extends HttpResponse { // @public export interface TillageDataGetdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -3700,7 +4097,7 @@ export interface TillageDataList { // @public export interface TillageDataList200Response extends HttpResponse { // (undocumented) - body: TillageDataListResponse; + body: TillageDataListResponseOutput; // (undocumented) status: "200"; } @@ -3713,7 +4110,7 @@ export interface TillageDataListByFarmerId { // @public export interface TillageDataListByFarmerId200Response extends HttpResponse { // (undocumented) - body: TillageDataListResponse; + body: TillageDataListResponseOutput; // (undocumented) status: "200"; } @@ -3721,13 +4118,13 @@ export interface TillageDataListByFarmerId200Response extends HttpResponse { // @public export interface TillageDataListByFarmerIddefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type TillageDataListByFarmerIdParameters = RequestParameters & TillageDataListByFarmerIdQueryParam; +export type TillageDataListByFarmerIdParameters = TillageDataListByFarmerIdQueryParam & RequestParameters; // @public (undocumented) export interface TillageDataListByFarmerIdQueryParam { @@ -3739,41 +4136,41 @@ export interface TillageDataListByFarmerIdQueryParam { export interface TillageDataListByFarmerIdQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - associatedBoundaryIds?: string[]; - ids?: string[]; + associatedBoundaryIds?: Array; + ids?: Array; maxArea?: number; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - maxOperationEndDateTime?: Date; - maxOperationModifiedDateTime?: Date; - maxOperationStartDateTime?: Date; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + maxOperationEndDateTime?: Date | string; + maxOperationModifiedDateTime?: Date | string; + maxOperationStartDateTime?: Date | string; maxTillageDepth?: number; maxTillagePressure?: number; minArea?: number; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - minOperationEndDateTime?: Date; - minOperationModifiedDateTime?: Date; - minOperationStartDateTime?: Date; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + minOperationEndDateTime?: Date | string; + minOperationModifiedDateTime?: Date | string; + minOperationStartDateTime?: Date | string; minTillageDepth?: number; minTillagePressure?: number; - names?: string[]; - operationBoundaryIds?: string[]; - propertyFilters?: string[]; - sources?: string[]; - statuses?: string[]; + names?: Array; + operationBoundaryIds?: Array; + propertyFilters?: Array; + sources?: Array; + statuses?: Array; } // @public export interface TillageDataListdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type TillageDataListParameters = RequestParameters & TillageDataListQueryParam; +export type TillageDataListParameters = TillageDataListQueryParam & RequestParameters; // @public (undocumented) export interface TillageDataListQueryParam { @@ -3785,203 +4182,257 @@ export interface TillageDataListQueryParam { export interface TillageDataListQueryParamProperties { $maxPageSize?: number; $skipToken?: string; - associatedBoundaryIds?: string[]; - ids?: string[]; + associatedBoundaryIds?: Array; + ids?: Array; maxArea?: number; - maxCreatedDateTime?: Date; - maxLastModifiedDateTime?: Date; - maxOperationEndDateTime?: Date; - maxOperationModifiedDateTime?: Date; - maxOperationStartDateTime?: Date; + maxCreatedDateTime?: Date | string; + maxLastModifiedDateTime?: Date | string; + maxOperationEndDateTime?: Date | string; + maxOperationModifiedDateTime?: Date | string; + maxOperationStartDateTime?: Date | string; maxTillageDepth?: number; maxTillagePressure?: number; minArea?: number; - minCreatedDateTime?: Date; - minLastModifiedDateTime?: Date; - minOperationEndDateTime?: Date; - minOperationModifiedDateTime?: Date; - minOperationStartDateTime?: Date; + minCreatedDateTime?: Date | string; + minLastModifiedDateTime?: Date | string; + minOperationEndDateTime?: Date | string; + minOperationModifiedDateTime?: Date | string; + minOperationStartDateTime?: Date | string; minTillageDepth?: number; minTillagePressure?: number; - names?: string[]; - operationBoundaryIds?: string[]; - propertyFilters?: string[]; - sources?: string[]; - statuses?: string[]; + names?: Array; + operationBoundaryIds?: Array; + propertyFilters?: Array; + sources?: Array; + statuses?: Array; } // @public (undocumented) -export interface TillageDataListResponse { +export interface TillageDataListResponseOutput { + $skipToken?: string; nextLink?: string; - skipToken?: string; - value?: TillageData[]; + value?: Array; } // @public (undocumented) -export type TillageDataPropertiesDictionary = Record; - -// @public (undocumented) -export interface WeatherCreateDataDeleteJob { - get(options?: WeatherGetDataDeleteJobDetailsParameters): Promise; - put(options?: WeatherCreateDataDeleteJobParameters): Promise; +export interface TillageDataOutput { + area?: MeasureOutput; + associatedBoundaryId?: string; + attachmentsLink?: string; + createdDateTime?: string; + description?: string; + eTag?: string; + farmerId?: string; + id?: string; + modifiedDateTime?: string; + name?: string; + operationBoundaryId?: string; + operationEndDateTime?: string; + operationModifiedDateTime?: string; + operationStartDateTime?: string; + properties?: Record; + source?: string; + status?: string; + tillageDepth?: MeasureOutput; + tillagePressure?: MeasureOutput; } // @public export interface WeatherCreateDataDeleteJob202Response extends HttpResponse { // (undocumented) - body: WeatherDataDeleteJob; + body: WeatherDataDeleteJobOutput; // (undocumented) status: "202"; } // @public (undocumented) export interface WeatherCreateDataDeleteJobBodyParam { - // (undocumented) body?: WeatherDataDeleteJob; } // @public export interface WeatherCreateDataDeleteJobdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type WeatherCreateDataDeleteJobParameters = RequestParameters & WeatherCreateDataDeleteJobBodyParam; +export interface WeatherCreateDataDeleteJobMediaTypesParam { + contentType?: "application/json"; +} // @public (undocumented) -export interface WeatherCreateDataIngestionJob { - get(options?: WeatherGetDataIngestionJobDetailsParameters): Promise; - put(options?: WeatherCreateDataIngestionJobParameters): Promise; -} +export type WeatherCreateDataDeleteJobParameters = WeatherCreateDataDeleteJobMediaTypesParam & WeatherCreateDataDeleteJobBodyParam & RequestParameters; // @public export interface WeatherCreateDataIngestionJob202Response extends HttpResponse { // (undocumented) - body: WeatherDataIngestionJob; + body: WeatherDataIngestionJobOutput; // (undocumented) status: "202"; } // @public (undocumented) export interface WeatherCreateDataIngestionJobBodyParam { - // (undocumented) body?: WeatherDataIngestionJob; } // @public export interface WeatherCreateDataIngestionJobdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type WeatherCreateDataIngestionJobParameters = RequestParameters & WeatherCreateDataIngestionJobBodyParam; +export interface WeatherCreateDataIngestionJobMediaTypesParam { + contentType?: "application/json"; +} + +// @public (undocumented) +export type WeatherCreateDataIngestionJobParameters = WeatherCreateDataIngestionJobMediaTypesParam & WeatherCreateDataIngestionJobBodyParam & RequestParameters; // @public (undocumented) -export interface WeatherData { +export interface WeatherDataDeleteJob { boundaryId: string; - cloudCover?: Measure; - createdDateTime?: Date; - dateTime: Date; - dewPoint?: Measure; - eTag?: string; + createdDateTime?: Date | string; + description?: string; + durationInSeconds?: number; + endDateTime?: Date | string; + endTime?: Date | string; extensionId: string; - extensionVersion: string; farmerId: string; - granularity: string; - growingDegreeDay?: Measure; + granularity?: string; id?: string; - location: Location; - modifiedDateTime?: Date; - precipitation?: Measure; - pressure?: Measure; - properties?: WeatherDataPropertiesDictionary; - relativeHumidity?: Measure; - soilMoisture?: Measure; - soilTemperature?: Measure; - temperature?: Measure; - unitSystemCode?: string; - visibility?: Measure; - weatherDataType: string; - wetBulbTemperature?: Measure; - windChill?: Measure; - windDirection?: Measure; - windGust?: Measure; - windSpeed?: Measure; + lastActionDateTime?: Date | string; + message?: string; + name?: string; + properties?: Record; + startDateTime?: Date | string; + startTime?: Date | string; + status?: string; + weatherDataType?: string; } // @public (undocumented) -export interface WeatherDataDeleteJob { +export interface WeatherDataDeleteJobOutput { boundaryId: string; - createdDateTime?: Date; + createdDateTime?: string; description?: string; durationInSeconds?: number; - endDateTime?: Date; - endTime?: Date; + endDateTime?: string; + endTime?: string; extensionId: string; farmerId: string; granularity?: string; id?: string; - lastActionDateTime?: Date; + lastActionDateTime?: string; message?: string; name?: string; - properties?: WeatherDataDeleteJobPropertiesDictionary; - startDateTime?: Date; - startTime?: Date; + properties?: Record; + startDateTime?: string; + startTime?: string; status?: string; weatherDataType?: string; } -// @public (undocumented) -export type WeatherDataDeleteJobPropertiesDictionary = Record; - // @public (undocumented) export interface WeatherDataIngestionJob { boundaryId: string; - createdDateTime?: Date; + createdDateTime?: Date | string; description?: string; durationInSeconds?: number; - endTime?: Date; - extensionApiInput: WeatherDataIngestionJobExtensionApiInputDictionary; + endTime?: Date | string; + extensionApiInput: Record; extensionApiName: string; extensionDataProviderApiKey?: string; extensionDataProviderAppId?: string; extensionId: string; farmerId: string; id?: string; - lastActionDateTime?: Date; + lastActionDateTime?: Date | string; message?: string; name?: string; - properties?: WeatherDataIngestionJobPropertiesDictionary; - startTime?: Date; + properties?: Record; + startTime?: Date | string; status?: string; } // @public (undocumented) -export type WeatherDataIngestionJobExtensionApiInputDictionary = Record; +export interface WeatherDataIngestionJobOutput { + boundaryId: string; + createdDateTime?: string; + description?: string; + durationInSeconds?: number; + endTime?: string; + extensionApiInput: Record; + extensionApiName: string; + extensionDataProviderApiKey?: string; + extensionDataProviderAppId?: string; + extensionId: string; + farmerId: string; + id?: string; + lastActionDateTime?: string; + message?: string; + name?: string; + properties?: Record; + startTime?: string; + status?: string; +} // @public (undocumented) -export type WeatherDataIngestionJobPropertiesDictionary = Record; +export interface WeatherDataListResponseOutput { + $skipToken?: string; + nextLink?: string; + value?: Array; +} // @public (undocumented) -export interface WeatherDataListResponse { - nextLink?: string; - skipToken?: string; - value?: WeatherData[]; +export interface WeatherDataOutput { + boundaryId: string; + cloudCover?: MeasureOutput; + createdDateTime?: string; + dateTime: string; + dewPoint?: MeasureOutput; + eTag?: string; + extensionId: string; + extensionVersion: string; + farmerId: string; + granularity: string; + growingDegreeDay?: MeasureOutput; + id?: string; + location: LocationOutput; + modifiedDateTime?: string; + precipitation?: MeasureOutput; + pressure?: MeasureOutput; + properties?: Record; + relativeHumidity?: MeasureOutput; + soilMoisture?: MeasureOutput; + soilTemperature?: MeasureOutput; + temperature?: MeasureOutput; + unitSystemCode?: string; + visibility?: MeasureOutput; + weatherDataType: string; + wetBulbTemperature?: MeasureOutput; + windChill?: MeasureOutput; + windDirection?: MeasureOutput; + windGust?: MeasureOutput; + windSpeed?: MeasureOutput; } // @public (undocumented) -export type WeatherDataPropertiesDictionary = Record; +export interface WeatherGetDataDeleteJobDetails { + get(options?: WeatherGetDataDeleteJobDetailsParameters): Promise; + put(options?: WeatherCreateDataDeleteJobParameters): Promise; +} // @public export interface WeatherGetDataDeleteJobDetails200Response extends HttpResponse { // (undocumented) - body: WeatherDataDeleteJob; + body: WeatherDataDeleteJobOutput; // (undocumented) status: "200"; } @@ -3989,7 +4440,7 @@ export interface WeatherGetDataDeleteJobDetails200Response extends HttpResponse // @public export interface WeatherGetDataDeleteJobDetailsdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -3997,10 +4448,16 @@ export interface WeatherGetDataDeleteJobDetailsdefaultResponse extends HttpRespo // @public (undocumented) export type WeatherGetDataDeleteJobDetailsParameters = RequestParameters; +// @public (undocumented) +export interface WeatherGetDataIngestionJobDetails { + get(options?: WeatherGetDataIngestionJobDetailsParameters): Promise; + put(options?: WeatherCreateDataIngestionJobParameters): Promise; +} + // @public export interface WeatherGetDataIngestionJobDetails200Response extends HttpResponse { // (undocumented) - body: WeatherDataIngestionJob; + body: WeatherDataIngestionJobOutput; // (undocumented) status: "200"; } @@ -4008,7 +4465,7 @@ export interface WeatherGetDataIngestionJobDetails200Response extends HttpRespon // @public export interface WeatherGetDataIngestionJobDetailsdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } @@ -4018,13 +4475,13 @@ export type WeatherGetDataIngestionJobDetailsParameters = RequestParameters; // @public (undocumented) export interface WeatherList { - get(options?: WeatherListParameters): Promise; + get(options: WeatherListParameters): Promise; } // @public export interface WeatherList200Response extends HttpResponse { // (undocumented) - body: WeatherDataListResponse; + body: WeatherDataListResponseOutput; // (undocumented) status: "200"; } @@ -4032,13 +4489,13 @@ export interface WeatherList200Response extends HttpResponse { // @public export interface WeatherListdefaultResponse extends HttpResponse { // (undocumented) - body: ErrorResponse; + body: ErrorResponseOutput; // (undocumented) status: "500"; } // @public (undocumented) -export type WeatherListParameters = RequestParameters & WeatherListQueryParam; +export type WeatherListParameters = WeatherListQueryParam & RequestParameters; // @public (undocumented) export interface WeatherListQueryParam { @@ -4051,15 +4508,14 @@ export interface WeatherListQueryParamProperties { $maxPageSize?: number; $skipToken?: string; boundaryId: string; - endDateTime?: Date; + endDateTime?: Date | string; extensionId: string; farmerId: string; granularity: string; - startDateTime?: Date; + startDateTime?: Date | string; weatherDataType: string; } - // (No @packageDocumentation comment for this package) ``` diff --git a/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts b/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts index 9e439797a8e2..0142686145fe 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts @@ -325,7 +325,7 @@ export interface ApplicationDataList { ): Promise; } -export interface ApplicationDataDelete { +export interface ApplicationDataGet { /** Get a specified application data resource under a particular farmer. */ get( options?: ApplicationDataGetParameters @@ -351,7 +351,7 @@ export interface AttachmentsListByFarmerId { ): Promise; } -export interface AttachmentsDelete { +export interface AttachmentsGet { /** Gets a specified attachment resource under a particular farmer. */ get( options?: AttachmentsGetParameters @@ -377,7 +377,7 @@ export interface AttachmentsDownload { ): Promise; } -export interface BoundariesSearchByFarmerId { +export interface BoundariesListByFarmerId { /** Returns a paginated list of boundary resources under a particular farmer. */ get( options?: BoundariesListByFarmerIdParameters @@ -388,7 +388,7 @@ export interface BoundariesSearchByFarmerId { ): Promise; } -export interface BoundariesSearch { +export interface BoundariesList { /** Returns a paginated list of boundary resources across all farmers. */ get( options?: BoundariesListParameters @@ -399,7 +399,7 @@ export interface BoundariesSearch { ): Promise; } -export interface BoundariesCreateCascadeDeleteJob { +export interface BoundariesGetCascadeDeleteJobDetails { /** Get cascade delete job for specified boundary. */ get( options?: BoundariesGetCascadeDeleteJobDetailsParameters @@ -409,13 +409,13 @@ export interface BoundariesCreateCascadeDeleteJob { >; /** Create a cascade delete job for specified boundary. */ put( - options?: BoundariesCreateCascadeDeleteJobParameters + options: BoundariesCreateCascadeDeleteJobParameters ): Promise< BoundariesCreateCascadeDeleteJob202Response | BoundariesCreateCascadeDeleteJobdefaultResponse >; } -export interface BoundariesDelete { +export interface BoundariesGet { /** Gets a specified boundary resource under a particular farmer. */ get( options?: BoundariesGetParameters @@ -437,7 +437,7 @@ export interface BoundariesDelete { export interface BoundariesGetOverlap { /** Returns overlapping acreage between two boundary Ids. */ get( - options?: BoundariesGetOverlapParameters + options: BoundariesGetOverlapParameters ): Promise; } @@ -446,7 +446,7 @@ export interface CropsList { get(options?: CropsListParameters): Promise; } -export interface CropsDelete { +export interface CropsGet { /** Gets a specified crop resource. */ get(options?: CropsGetParameters): Promise; /** Creates or updates a crop resource. */ @@ -477,7 +477,7 @@ export interface CropVarietiesList { ): Promise; } -export interface CropVarietiesDelete { +export interface CropVarietiesGet { /** Gets a specified crop variety resource under a particular crop. */ get( options?: CropVarietiesGetParameters @@ -503,7 +503,7 @@ export interface FarmersList { ): Promise; } -export interface FarmersDelete { +export interface FarmersGet { /** Gets a specified farmer resource. */ get(options?: FarmersGetParameters): Promise; /** Creates or updates a farmer resource. */ @@ -520,7 +520,7 @@ export interface FarmersDelete { ): Promise; } -export interface FarmersCreateCascadeDeleteJob { +export interface FarmersGetCascadeDeleteJobDetails { /** Get a cascade delete job for specified farmer. */ get( options?: FarmersGetCascadeDeleteJobDetailsParameters @@ -529,13 +529,13 @@ export interface FarmersCreateCascadeDeleteJob { >; /** Create a cascade delete job for specified farmer. */ put( - options?: FarmersCreateCascadeDeleteJobParameters + options: FarmersCreateCascadeDeleteJobParameters ): Promise< FarmersCreateCascadeDeleteJob202Response | FarmersCreateCascadeDeleteJobdefaultResponse >; } -export interface FarmOperationsGetDataIngestionJobDetails { +export interface FarmOperationsCreateDataIngestionJob { /** Create a farm operation data ingestion job. */ put( options?: FarmOperationsCreateDataIngestionJobParameters @@ -564,7 +564,7 @@ export interface FarmsList { get(options?: FarmsListParameters): Promise; } -export interface FarmsDelete { +export interface FarmsGet { /** Gets a specified farm resource under a particular farmer. */ get(options?: FarmsGetParameters): Promise; /** Creates or updates a farm resource under a particular farmer. */ @@ -581,7 +581,7 @@ export interface FarmsDelete { ): Promise; } -export interface FarmsCreateCascadeDeleteJob { +export interface FarmsGetCascadeDeleteJobDetails { /** Get a cascade delete job for specified farm. */ get( options?: FarmsGetCascadeDeleteJobDetailsParameters @@ -590,7 +590,7 @@ export interface FarmsCreateCascadeDeleteJob { >; /** Create a cascade delete job for specified farm. */ put( - options?: FarmsCreateCascadeDeleteJobParameters + options: FarmsCreateCascadeDeleteJobParameters ): Promise; } @@ -606,7 +606,7 @@ export interface FieldsList { get(options?: FieldsListParameters): Promise; } -export interface FieldsDelete { +export interface FieldsGet { /** Gets a specified field resource under a particular farmer. */ get(options?: FieldsGetParameters): Promise; /** Creates or Updates a field resource under a particular farmer. */ @@ -623,7 +623,7 @@ export interface FieldsDelete { ): Promise; } -export interface FieldsCreateCascadeDeleteJob { +export interface FieldsGetCascadeDeleteJobDetails { /** Get a cascade delete job for specified field. */ get( options?: FieldsGetCascadeDeleteJobDetailsParameters @@ -632,7 +632,7 @@ export interface FieldsCreateCascadeDeleteJob { >; /** Create a cascade delete job for specified field. */ put( - options?: FieldsCreateCascadeDeleteJobParameters + options: FieldsCreateCascadeDeleteJobParameters ): Promise; } @@ -650,7 +650,7 @@ export interface HarvestDataList { ): Promise; } -export interface HarvestDataDelete { +export interface HarvestDataGet { /** Get a specified harvest data resource under a particular farmer. */ get( options?: HarvestDataGetParameters @@ -669,7 +669,7 @@ export interface HarvestDataDelete { ): Promise; } -export interface ImageProcessingGetRasterizeJob { +export interface ImageProcessingCreateRasterizeJob { /** Create a ImageProcessing Rasterize job. */ put( options?: ImageProcessingCreateRasterizeJobParameters @@ -689,7 +689,7 @@ export interface OAuthProvidersList { ): Promise; } -export interface OAuthProvidersDelete { +export interface OAuthProvidersGet { /** Get a specified oauthProvider resource. */ get( options?: OAuthProvidersGetParameters @@ -724,7 +724,7 @@ export interface OAuthTokensGetOAuthConnectionLink { >; } -export interface OAuthTokensCreateCascadeDeleteJob { +export interface OAuthTokensGetCascadeDeleteJobDetails { /** Get cascade delete job details for OAuth tokens for specified job ID. */ get( options?: OAuthTokensGetCascadeDeleteJobDetailsParameters @@ -734,7 +734,7 @@ export interface OAuthTokensCreateCascadeDeleteJob { >; /** Create a cascade delete job for OAuth tokens. */ put( - options?: OAuthTokensCreateCascadeDeleteJobParameters + options: OAuthTokensCreateCascadeDeleteJobParameters ): Promise< OAuthTokensCreateCascadeDeleteJob202Response | OAuthTokensCreateCascadeDeleteJobdefaultResponse >; @@ -754,7 +754,7 @@ export interface PlantingDataList { ): Promise; } -export interface PlantingDataDelete { +export interface PlantingDataGet { /** Get a specified planting data resource under a particular farmer. */ get( options?: PlantingDataGetParameters @@ -775,10 +775,10 @@ export interface PlantingDataDelete { export interface ScenesList { /** Returns a paginated list of scene resources. */ - get(options?: ScenesListParameters): Promise; + get(options: ScenesListParameters): Promise; } -export interface ScenesGetSatelliteDataIngestionJobDetails { +export interface ScenesCreateSatelliteDataIngestionJob { /** Create a satellite data ingestion job. */ put( options?: ScenesCreateSatelliteDataIngestionJobParameters @@ -798,7 +798,7 @@ export interface ScenesGetSatelliteDataIngestionJobDetails { export interface ScenesDownload { /** Downloads and returns file stream as response for the given input filePath. */ get( - options?: ScenesDownloadParameters + options: ScenesDownloadParameters ): Promise; } @@ -816,7 +816,7 @@ export interface SeasonalFieldsList { ): Promise; } -export interface SeasonalFieldsDelete { +export interface SeasonalFieldsGet { /** Gets a specified seasonal field resource under a particular farmer. */ get( options?: SeasonalFieldsGetParameters @@ -835,7 +835,7 @@ export interface SeasonalFieldsDelete { ): Promise; } -export interface SeasonalFieldsCreateCascadeDeleteJob { +export interface SeasonalFieldsGetCascadeDeleteJobDetails { /** Get cascade delete job for specified seasonal field. */ get( options?: SeasonalFieldsGetCascadeDeleteJobDetailsParameters @@ -845,7 +845,7 @@ export interface SeasonalFieldsCreateCascadeDeleteJob { >; /** Create a cascade delete job for specified seasonal field. */ put( - options?: SeasonalFieldsCreateCascadeDeleteJobParameters + options: SeasonalFieldsCreateCascadeDeleteJobParameters ): Promise< | SeasonalFieldsCreateCascadeDeleteJob202Response | SeasonalFieldsCreateCascadeDeleteJobdefaultResponse @@ -859,7 +859,7 @@ export interface SeasonsList { ): Promise; } -export interface SeasonsDelete { +export interface SeasonsGet { /** Gets a specified season resource. */ get(options?: SeasonsGetParameters): Promise; /** Creates or updates a season resource. */ @@ -890,7 +890,7 @@ export interface TillageDataList { ): Promise; } -export interface TillageDataDelete { +export interface TillageDataGet { /** Get a specified tillage data resource under a particular farmer. */ get( options?: TillageDataGetParameters @@ -911,12 +911,10 @@ export interface TillageDataDelete { export interface WeatherList { /** Returns a paginated list of weather data. */ - get( - options?: WeatherListParameters - ): Promise; + get(options: WeatherListParameters): Promise; } -export interface WeatherCreateDataIngestionJob { +export interface WeatherGetDataIngestionJobDetails { /** Get weather ingestion job. */ get( options?: WeatherGetDataIngestionJobDetailsParameters @@ -931,7 +929,7 @@ export interface WeatherCreateDataIngestionJob { >; } -export interface WeatherCreateDataDeleteJob { +export interface WeatherGetDataDeleteJobDetails { /** Get weather data delete job. */ get( options?: WeatherGetDataDeleteJobDetailsParameters @@ -954,7 +952,7 @@ export interface Routes { path: "/farmers/{farmerId}/application-data/{applicationDataId}", farmerId: string, applicationDataId: string - ): ApplicationDataDelete; + ): ApplicationDataGet; /** Resource for '/farmers/\{farmerId\}/attachments' has methods for the following verbs: get */ (path: "/farmers/{farmerId}/attachments", farmerId: string): AttachmentsListByFarmerId; /** Resource for '/farmers/\{farmerId\}/attachments/\{attachmentId\}' has methods for the following verbs: get, patch, delete */ @@ -962,7 +960,7 @@ export interface Routes { path: "/farmers/{farmerId}/attachments/{attachmentId}", farmerId: string, attachmentId: string - ): AttachmentsDelete; + ): AttachmentsGet; /** Resource for '/farmers/\{farmerId\}/attachments/\{attachmentId\}/file' has methods for the following verbs: get */ ( path: "/farmers/{farmerId}/attachments/{attachmentId}/file", @@ -970,17 +968,17 @@ export interface Routes { attachmentId: string ): AttachmentsDownload; /** Resource for '/farmers/\{farmerId\}/boundaries' has methods for the following verbs: get, post */ - (path: "/farmers/{farmerId}/boundaries", farmerId: string): BoundariesSearchByFarmerId; + (path: "/farmers/{farmerId}/boundaries", farmerId: string): BoundariesListByFarmerId; /** Resource for '/boundaries' has methods for the following verbs: get, post */ - (path: "/boundaries"): BoundariesSearch; + (path: "/boundaries"): BoundariesList; /** Resource for '/boundaries/cascade-delete/\{jobId\}' has methods for the following verbs: get, put */ - (path: "/boundaries/cascade-delete/{jobId}", jobId: string): BoundariesCreateCascadeDeleteJob; + (path: "/boundaries/cascade-delete/{jobId}", jobId: string): BoundariesGetCascadeDeleteJobDetails; /** Resource for '/farmers/\{farmerId\}/boundaries/\{boundaryId\}' has methods for the following verbs: get, patch, delete */ ( path: "/farmers/{farmerId}/boundaries/{boundaryId}", farmerId: string, boundaryId: string - ): BoundariesDelete; + ): BoundariesGet; /** Resource for '/farmers/\{farmerId\}/boundaries/\{boundaryId\}/overlap' has methods for the following verbs: get */ ( path: "/farmers/{farmerId}/boundaries/{boundaryId}/overlap", @@ -990,7 +988,7 @@ export interface Routes { /** Resource for '/crops' has methods for the following verbs: get */ (path: "/crops"): CropsList; /** Resource for '/crops/\{cropId\}' has methods for the following verbs: get, patch, delete */ - (path: "/crops/{cropId}", cropId: string): CropsDelete; + (path: "/crops/{cropId}", cropId: string): CropsGet; /** Resource for '/crops/\{cropId\}/crop-varieties' has methods for the following verbs: get */ (path: "/crops/{cropId}/crop-varieties", cropId: string): CropVarietiesListByCropId; /** Resource for '/crop-varieties' has methods for the following verbs: get */ @@ -1000,34 +998,34 @@ export interface Routes { path: "/crops/{cropId}/crop-varieties/{cropVarietyId}", cropId: string, cropVarietyId: string - ): CropVarietiesDelete; + ): CropVarietiesGet; /** Resource for '/farmers' has methods for the following verbs: get */ (path: "/farmers"): FarmersList; /** Resource for '/farmers/\{farmerId\}' has methods for the following verbs: get, patch, delete */ - (path: "/farmers/{farmerId}", farmerId: string): FarmersDelete; + (path: "/farmers/{farmerId}", farmerId: string): FarmersGet; /** Resource for '/farmers/cascade-delete/\{jobId\}' has methods for the following verbs: get, put */ - (path: "/farmers/cascade-delete/{jobId}", jobId: string): FarmersCreateCascadeDeleteJob; + (path: "/farmers/cascade-delete/{jobId}", jobId: string): FarmersGetCascadeDeleteJobDetails; /** Resource for '/farm-operations/ingest-data/\{jobId\}' has methods for the following verbs: put, get */ ( path: "/farm-operations/ingest-data/{jobId}", jobId: string - ): FarmOperationsGetDataIngestionJobDetails; + ): FarmOperationsCreateDataIngestionJob; /** Resource for '/farmers/\{farmerId\}/farms' has methods for the following verbs: get */ (path: "/farmers/{farmerId}/farms", farmerId: string): FarmsListByFarmerId; /** Resource for '/farms' has methods for the following verbs: get */ (path: "/farms"): FarmsList; /** Resource for '/farmers/\{farmerId\}/farms/\{farmId\}' has methods for the following verbs: get, patch, delete */ - (path: "/farmers/{farmerId}/farms/{farmId}", farmerId: string, farmId: string): FarmsDelete; + (path: "/farmers/{farmerId}/farms/{farmId}", farmerId: string, farmId: string): FarmsGet; /** Resource for '/farms/cascade-delete/\{jobId\}' has methods for the following verbs: get, put */ - (path: "/farms/cascade-delete/{jobId}", jobId: string): FarmsCreateCascadeDeleteJob; + (path: "/farms/cascade-delete/{jobId}", jobId: string): FarmsGetCascadeDeleteJobDetails; /** Resource for '/farmers/\{farmerId\}/fields' has methods for the following verbs: get */ (path: "/farmers/{farmerId}/fields", farmerId: string): FieldsListByFarmerId; /** Resource for '/fields' has methods for the following verbs: get */ (path: "/fields"): FieldsList; /** Resource for '/farmers/\{farmerId\}/fields/\{fieldId\}' has methods for the following verbs: get, patch, delete */ - (path: "/farmers/{farmerId}/fields/{fieldId}", farmerId: string, fieldId: string): FieldsDelete; + (path: "/farmers/{farmerId}/fields/{fieldId}", farmerId: string, fieldId: string): FieldsGet; /** Resource for '/fields/cascade-delete/\{jobId\}' has methods for the following verbs: get, put */ - (path: "/fields/cascade-delete/{jobId}", jobId: string): FieldsCreateCascadeDeleteJob; + (path: "/fields/cascade-delete/{jobId}", jobId: string): FieldsGetCascadeDeleteJobDetails; /** Resource for '/farmers/\{farmerId\}/harvest-data' has methods for the following verbs: get */ (path: "/farmers/{farmerId}/harvest-data", farmerId: string): HarvestDataListByFarmerId; /** Resource for '/harvest-data' has methods for the following verbs: get */ @@ -1037,19 +1035,19 @@ export interface Routes { path: "/farmers/{farmerId}/harvest-data/{harvestDataId}", farmerId: string, harvestDataId: string - ): HarvestDataDelete; + ): HarvestDataGet; /** Resource for '/image-processing/rasterize/\{jobId\}' has methods for the following verbs: put, get */ - (path: "/image-processing/rasterize/{jobId}", jobId: string): ImageProcessingGetRasterizeJob; + (path: "/image-processing/rasterize/{jobId}", jobId: string): ImageProcessingCreateRasterizeJob; /** Resource for '/oauth/providers' has methods for the following verbs: get */ (path: "/oauth/providers"): OAuthProvidersList; /** Resource for '/oauth/providers/\{oauthProviderId\}' has methods for the following verbs: get, patch, delete */ - (path: "/oauth/providers/{oauthProviderId}", oauthProviderId: string): OAuthProvidersDelete; + (path: "/oauth/providers/{oauthProviderId}", oauthProviderId: string): OAuthProvidersGet; /** Resource for '/oauth/tokens' has methods for the following verbs: get */ (path: "/oauth/tokens"): OAuthTokensList; /** Resource for '/oauth/tokens/:connect' has methods for the following verbs: post */ (path: "/oauth/tokens/:connect"): OAuthTokensGetOAuthConnectionLink; /** Resource for '/oauth/tokens/remove/\{jobId\}' has methods for the following verbs: get, put */ - (path: "/oauth/tokens/remove/{jobId}", jobId: string): OAuthTokensCreateCascadeDeleteJob; + (path: "/oauth/tokens/remove/{jobId}", jobId: string): OAuthTokensGetCascadeDeleteJobDetails; /** Resource for '/farmers/\{farmerId\}/planting-data' has methods for the following verbs: get */ (path: "/farmers/{farmerId}/planting-data", farmerId: string): PlantingDataListByFarmerId; /** Resource for '/planting-data' has methods for the following verbs: get */ @@ -1059,14 +1057,14 @@ export interface Routes { path: "/farmers/{farmerId}/planting-data/{plantingDataId}", farmerId: string, plantingDataId: string - ): PlantingDataDelete; + ): PlantingDataGet; /** Resource for '/scenes' has methods for the following verbs: get */ (path: "/scenes"): ScenesList; /** Resource for '/scenes/satellite/ingest-data/\{jobId\}' has methods for the following verbs: put, get */ ( path: "/scenes/satellite/ingest-data/{jobId}", jobId: string - ): ScenesGetSatelliteDataIngestionJobDetails; + ): ScenesCreateSatelliteDataIngestionJob; /** Resource for '/scenes/downloadFiles' has methods for the following verbs: get */ (path: "/scenes/downloadFiles"): ScenesDownload; /** Resource for '/farmers/\{farmerId\}/seasonal-fields' has methods for the following verbs: get */ @@ -1078,16 +1076,16 @@ export interface Routes { path: "/farmers/{farmerId}/seasonal-fields/{seasonalFieldId}", farmerId: string, seasonalFieldId: string - ): SeasonalFieldsDelete; + ): SeasonalFieldsGet; /** Resource for '/seasonal-fields/cascade-delete/\{jobId\}' has methods for the following verbs: get, put */ ( path: "/seasonal-fields/cascade-delete/{jobId}", jobId: string - ): SeasonalFieldsCreateCascadeDeleteJob; + ): SeasonalFieldsGetCascadeDeleteJobDetails; /** Resource for '/seasons' has methods for the following verbs: get */ (path: "/seasons"): SeasonsList; /** Resource for '/seasons/\{seasonId\}' has methods for the following verbs: get, patch, delete */ - (path: "/seasons/{seasonId}", seasonId: string): SeasonsDelete; + (path: "/seasons/{seasonId}", seasonId: string): SeasonsGet; /** Resource for '/farmers/\{farmerId\}/tillage-data' has methods for the following verbs: get */ (path: "/farmers/{farmerId}/tillage-data", farmerId: string): TillageDataListByFarmerId; /** Resource for '/tillage-data' has methods for the following verbs: get */ @@ -1097,13 +1095,13 @@ export interface Routes { path: "/farmers/{farmerId}/tillage-data/{tillageDataId}", farmerId: string, tillageDataId: string - ): TillageDataDelete; + ): TillageDataGet; /** Resource for '/weather' has methods for the following verbs: get */ (path: "/weather"): WeatherList; /** Resource for '/weather/ingest-data/\{jobId\}' has methods for the following verbs: get, put */ - (path: "/weather/ingest-data/{jobId}", jobId: string): WeatherCreateDataIngestionJob; + (path: "/weather/ingest-data/{jobId}", jobId: string): WeatherGetDataIngestionJobDetails; /** Resource for '/weather/delete-data/\{jobId\}' has methods for the following verbs: get, put */ - (path: "/weather/delete-data/{jobId}", jobId: string): WeatherCreateDataDeleteJob; + (path: "/weather/delete-data/{jobId}", jobId: string): WeatherGetDataDeleteJobDetails; } export type FarmBeatsRestClient = Client & { diff --git a/sdk/agrifood/agrifood-farming-rest/src/getPoller.ts b/sdk/agrifood/agrifood-farming-rest/src/getPoller.ts deleted file mode 100644 index f97b32861956..000000000000 --- a/sdk/agrifood/agrifood-farming-rest/src/getPoller.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { - getLongRunningPoller, - PollerLike, - PollOperationState, - PollerOptions, -} from "@azure-rest/core-client-lro"; -import { HttpResponse } from "@azure-rest/core-client"; -import { FarmBeatsRestClient } from "./farmBeats"; - -/** - * Gets a poller object to help polling for a long running operation status. - * @param client - FarmBeats Rest Client. - * @param initialResponse - Initial response for the operation that needs to be polled. - * @param options - Polling options - * @returns - Gets a poller that can be run on demand or automatically awaited until the operation is completed. - */ -export function getPoller( - client: FarmBeatsRestClient, - initialResponse: TResult, - options: PollerOptions = {} -): PollerLike, TResult> { - return getLongRunningPoller(client, initialResponse, options); -} diff --git a/sdk/agrifood/agrifood-farming-rest/src/index.ts b/sdk/agrifood/agrifood-farming-rest/src/index.ts index a9474b016c30..9fc396e8ae50 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/index.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/index.ts @@ -4,11 +4,11 @@ import FarmBeats from "./farmBeats"; export * from "./farmBeats"; -export * from "./models"; export * from "./parameters"; export * from "./responses"; - -export { paginate, PaginateReturn, GetArrayType } from "./paging"; -export { getPoller } from "./getPoller"; +export * from "./models"; +export * from "./outputModels"; +export * from "./paginateHelper"; +export * from "./pollingHelper"; export default FarmBeats; diff --git a/sdk/agrifood/agrifood-farming-rest/src/models.ts b/sdk/agrifood/agrifood-farming-rest/src/models.ts index e3e8813a2ee4..28ed5da15ac6 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/models.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/models.ts @@ -1,18 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export interface ApplicationDataListResponse { - /** List of requested objects. */ - value?: ApplicationData[]; - /** Token used in retrieving the next page. If null, there are no additional pages. */ - skipToken?: string; - /** Continuation link (absolute URI) to the next page of results in the list. */ - nextLink?: string; -} - export interface ApplicationData { /** Application product details. */ - applicationProductDetails?: ApplicationProductDetail[]; + applicationProductDetails?: Array; /** Schema for storing measurement reading and unit. */ avgMaterial?: Measure; /** Schema for storing measurement reading and unit. */ @@ -25,11 +16,11 @@ export interface ApplicationData { * Modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. * Note: this will be specified by the source provider itself. */ - operationModifiedDateTime?: Date; + operationModifiedDateTime?: Date | string; /** Start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - operationStartDateTime?: Date; + operationStartDateTime?: Date | string; /** End date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - operationEndDateTime?: Date; + operationEndDateTime?: Date | string; /** Link for attachments. */ attachmentsLink?: string; /** Optional boundary ID of the field for which operation was applied. */ @@ -45,9 +36,9 @@ export interface ApplicationData { /** Status of the resource. */ status?: string; /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; + createdDateTime?: Date | string; /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; /** Name to identify resource. */ name?: string; /** Textual description of the resource. */ @@ -58,7 +49,7 @@ export interface ApplicationData { * and must not have a value greater than 150 characters. * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. */ - properties?: ApplicationDataPropertiesDictionary; + properties?: Record; } export interface ApplicationProductDetail { @@ -79,90 +70,6 @@ export interface Measure { value?: number; } -export interface ErrorResponse { - /** An error from the Azure AgPlatform service. */ - error?: Error; - /** Unique trace ID. */ - traceId?: string; -} - -export interface Error { - /** Server-defined set of error codes. */ - code?: string; - /** Human-readable representation of the error. */ - message?: string; - /** Target of the error. */ - target?: string; - /** Array of details about specific errors that led to this reported error. */ - details?: Error[]; - /** - * Inner error containing list of errors. - * InnerError reference document. - */ - innererror?: InnerError; -} - -export type InnerError = InnerErrorBase & InnerErrorDictionary; - -export interface InnerErrorBase { - /** - * Specific error code than was provided by the - * containing error. - */ - code?: string; - /** - * Inner error containing list of errors. - * InnerError reference document. - */ - innererror?: InnerError; -} - -export interface AttachmentListResponse { - /** List of requested objects. */ - value?: Attachment[]; - /** Token used in retrieving the next page. If null, there are no additional pages. */ - skipToken?: string; - /** Continuation link (absolute URI) to the next page of results in the list. */ - nextLink?: string; -} - -export interface Attachment { - /** Farmer id for this attachment. */ - farmerId?: string; - /** Associated Resource id for this attachment. */ - resourceId?: string; - /** - * Associated Resource type for this attachment - * i.e. Farmer, Farm, Field, SeasonalField, Boundary, FarmOperationApplicationData, HarvestData, TillageData, PlantingData. - */ - resourceType?: string; - /** Original File Name for this attachment. */ - originalFileName?: string; - /** Unique id. */ - id?: string; - /** Status of the resource. */ - status?: string; - /** Date when resource was created. */ - createdDateTime?: Date; - /** Date when resource was last modified. */ - modifiedDateTime?: Date; - /** Name to identify resource. */ - name?: string; - /** Textual description of resource. */ - description?: string; - /** The ETag value to implement optimistic concurrency. */ - eTag?: string; -} - -export interface BoundaryListResponse { - /** List of requested objects. */ - value?: Boundary[]; - /** Token used in retrieving the next page. If null, there are no additional pages. */ - skipToken?: string; - /** Continuation link (absolute URI) to the next page of results in the list. */ - nextLink?: string; -} - export interface Boundary { /** Farmer ID. */ farmerId?: string; @@ -183,9 +90,9 @@ export interface Boundary { /** Status of the resource. */ status?: string; /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; + createdDateTime?: Date | string; /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; /** Name to identify resource. */ name?: string; /** Textual description of the resource. */ @@ -196,44 +103,46 @@ export interface Boundary { * and must not have a value greater than 150 characters. * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. */ - properties?: BoundaryPropertiesDictionary; + properties?: Record; } -export type GeoJsonObject = Polygon | MultiPolygon | Point; +export interface GeoJsonObjectBase { + type: "MultiPolygon" | "Point" | "Polygon"; +} export interface SearchBoundaryQuery { /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. */ - maxPageSize?: number; + $maxPageSize?: number; /** Skip token for getting next set of results. */ - skipToken?: string; + $skipToken?: string; /** Is the boundary primary. */ isPrimary?: boolean; /** Type of the parent it belongs to. */ parentType?: string; /** Parent Ids of the resource. */ - parentIds?: string[]; + parentIds?: Array; /** Minimum acreage of the boundary (inclusive). */ minAcreage?: number; /** Maximum acreage of the boundary (inclusive). */ @@ -242,63 +151,6 @@ export interface SearchBoundaryQuery { intersectsWithGeometry?: GeoJsonObject; } -export interface CascadeDeleteJob { - /** Farmer ID. */ - farmerId: string; - /** The id of the resource. */ - resourceId: string; - /** The type of the resource. */ - resourceType: string; - /** Unique job id. */ - id?: string; - /** - * Status of the job. - * Possible values: 'Waiting', 'Running', 'Succeeded', 'Failed', 'Cancelled'. - */ - status?: string; - /** Duration of the job in seconds. */ - durationInSeconds?: number; - /** Status message to capture more details of the job. */ - message?: string; - /** Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; - /** Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - lastActionDateTime?: Date; - /** Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - startTime?: Date; - /** Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - endTime?: Date; - /** Name to identify resource. */ - name?: string; - /** Textual description of the resource. */ - description?: string; - /** - * A collection of key value pairs that belongs to the resource. - * Each pair must not have a key greater than 50 characters - * and must not have a value greater than 150 characters. - * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. - */ - properties?: CascadeDeleteJobPropertiesDictionary; -} - -export interface BoundaryOverlapResponse { - /** Acreage of Main boundary. */ - boundaryAcreage?: number; - /** Acreage of other boundary. */ - otherBoundaryAcreage?: number; - /** Acreage of intersecting boundary. */ - intersectingAcreage?: number; -} - -export interface CropListResponse { - /** List of requested objects. */ - value?: Crop[]; - /** Token used in retrieving the next page. If null, there are no additional pages. */ - skipToken?: string; - /** Continuation link (absolute URI) to the next page of results in the list. */ - nextLink?: string; -} - export interface Crop { /** Crop phenotype. */ phenotype?: string; @@ -309,9 +161,9 @@ export interface Crop { /** Status of the resource. */ status?: string; /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; + createdDateTime?: Date | string; /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; /** Name to identify resource. */ name?: string; /** Textual description of the resource. */ @@ -322,16 +174,7 @@ export interface Crop { * and must not have a value greater than 150 characters. * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. */ - properties?: CropPropertiesDictionary; -} - -export interface CropVarietyListResponse { - /** List of requested objects. */ - value?: CropVariety[]; - /** Token used in retrieving the next page. If null, there are no additional pages. */ - skipToken?: string; - /** Continuation link (absolute URI) to the next page of results in the list. */ - nextLink?: string; + properties?: Record; } export interface CropVariety { @@ -348,9 +191,9 @@ export interface CropVariety { /** Status of the resource. */ status?: string; /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; + createdDateTime?: Date | string; /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; /** Name to identify resource. */ name?: string; /** Textual description of the resource. */ @@ -361,16 +204,7 @@ export interface CropVariety { * and must not have a value greater than 150 characters. * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. */ - properties?: CropVarietyPropertiesDictionary; -} - -export interface FarmerListResponse { - /** List of requested objects. */ - value?: Farmer[]; - /** Token used in retrieving the next page. If null, there are no additional pages. */ - skipToken?: string; - /** Continuation link (absolute URI) to the next page of results in the list. */ - nextLink?: string; + properties?: Record; } export interface Farmer { @@ -381,9 +215,9 @@ export interface Farmer { /** Status of the resource. */ status?: string; /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; + createdDateTime?: Date | string; /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; /** Name to identify resource. */ name?: string; /** Textual description of the resource. */ @@ -394,7 +228,7 @@ export interface Farmer { * and must not have a value greater than 150 characters. * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. */ - properties?: FarmerPropertiesDictionary; + properties?: Record; } export interface FarmOperationDataIngestionJob { @@ -403,7 +237,7 @@ export interface FarmOperationDataIngestionJob { /** Authentication provider ID. */ authProviderId: string; /** List of operation types for which data needs to be downloaded. Available values: AllOperations, Application, Planting, Harvest, Tillage. */ - operations?: string[]; + operations?: Array; /** Start Year (Minimum = 2000, Maximum = CurrentYear). */ startYear: number; /** Unique job id. */ @@ -418,13 +252,13 @@ export interface FarmOperationDataIngestionJob { /** Status message to capture more details of the job. */ message?: string; /** Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; + createdDateTime?: Date | string; /** Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - lastActionDateTime?: Date; + lastActionDateTime?: Date | string; /** Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - startTime?: Date; + startTime?: Date | string; /** Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - endTime?: Date; + endTime?: Date | string; /** Name to identify resource. */ name?: string; /** Textual description of the resource. */ @@ -435,16 +269,7 @@ export interface FarmOperationDataIngestionJob { * and must not have a value greater than 150 characters. * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. */ - properties?: FarmOperationDataIngestionJobPropertiesDictionary; -} - -export interface FarmListResponse { - /** List of requested objects. */ - value?: Farm[]; - /** Token used in retrieving the next page. If null, there are no additional pages. */ - skipToken?: string; - /** Continuation link (absolute URI) to the next page of results in the list. */ - nextLink?: string; + properties?: Record; } export interface Farm { @@ -457,9 +282,9 @@ export interface Farm { /** Status of the resource. */ status?: string; /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; + createdDateTime?: Date | string; /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; /** Name to identify resource. */ name?: string; /** Textual description of the resource. */ @@ -470,16 +295,7 @@ export interface Farm { * and must not have a value greater than 150 characters. * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. */ - properties?: FarmPropertiesDictionary; -} - -export interface FieldListResponse { - /** List of requested objects. */ - value?: Field[]; - /** Token used in retrieving the next page. If null, there are no additional pages. */ - skipToken?: string; - /** Continuation link (absolute URI) to the next page of results in the list. */ - nextLink?: string; + properties?: Record; } export interface Field { @@ -490,7 +306,7 @@ export interface Field { /** Primary boundary id. */ primaryBoundaryId?: string; /** Boundary Ids. */ - boundaryIds?: string[]; + boundaryIds?: Array; /** Unique resource ID. */ id?: string; /** The ETag value to implement optimistic concurrency. */ @@ -498,9 +314,9 @@ export interface Field { /** Status of the resource. */ status?: string; /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; + createdDateTime?: Date | string; /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; /** Name to identify resource. */ name?: string; /** Textual description of the resource. */ @@ -511,16 +327,7 @@ export interface Field { * and must not have a value greater than 150 characters. * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. */ - properties?: FieldPropertiesDictionary; -} - -export interface HarvestDataListResponse { - /** List of requested objects. */ - value?: HarvestData[]; - /** Token used in retrieving the next page. If null, there are no additional pages. */ - skipToken?: string; - /** Continuation link (absolute URI) to the next page of results in the list. */ - nextLink?: string; + properties?: Record; } export interface HarvestData { @@ -537,7 +344,7 @@ export interface HarvestData { /** Schema for storing measurement reading and unit. */ avgSpeed?: Measure; /** Harvest product details. */ - harvestProductDetails?: HarvestProductDetail[]; + harvestProductDetails?: Array; /** Schema for storing measurement reading and unit. */ area?: Measure; /** Source of the operation data. */ @@ -546,11 +353,11 @@ export interface HarvestData { * Modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. * Note: this will be specified by the source provider itself. */ - operationModifiedDateTime?: Date; + operationModifiedDateTime?: Date | string; /** Start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - operationStartDateTime?: Date; + operationStartDateTime?: Date | string; /** End date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - operationEndDateTime?: Date; + operationEndDateTime?: Date | string; /** Link for attachments. */ attachmentsLink?: string; /** Optional boundary ID of the field for which operation was applied. */ @@ -566,9 +373,9 @@ export interface HarvestData { /** Status of the resource. */ status?: string; /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; + createdDateTime?: Date | string; /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; /** Name to identify resource. */ name?: string; /** Textual description of the resource. */ @@ -579,7 +386,7 @@ export interface HarvestData { * and must not have a value greater than 150 characters. * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. */ - properties?: HarvestDataPropertiesDictionary; + properties?: Record; } export interface HarvestProductDetail { @@ -605,7 +412,7 @@ export interface ImageProcessingRasterizeJob { /** Shapefile attachment ID. */ shapefileAttachmentId: string; /** List of shapefile column names to create raster attachments. */ - shapefileColumnNames: string[]; + shapefileColumnNames: Array; /** Unique job id. */ id?: string; /** @@ -618,13 +425,13 @@ export interface ImageProcessingRasterizeJob { /** Status message to capture more details of the job. */ message?: string; /** Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; + createdDateTime?: Date | string; /** Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - lastActionDateTime?: Date; + lastActionDateTime?: Date | string; /** Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - startTime?: Date; + startTime?: Date | string; /** Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - endTime?: Date; + endTime?: Date | string; /** Name to identify resource. */ name?: string; /** Textual description of the resource. */ @@ -635,16 +442,7 @@ export interface ImageProcessingRasterizeJob { * and must not have a value greater than 150 characters. * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. */ - properties?: ImageProcessingRasterizeJobPropertiesDictionary; -} - -export interface OAuthProviderListResponse { - /** List of requested objects. */ - value?: OAuthProvider[]; - /** Token used in retrieving the next page. If null, there are no additional pages. */ - skipToken?: string; - /** Continuation link (absolute URI) to the next page of results in the list. */ - nextLink?: string; + properties?: Record; } export interface OAuthProvider { @@ -670,9 +468,9 @@ export interface OAuthProvider { /** The ETag value to implement optimistic concurrency. */ eTag?: string; /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; + createdDateTime?: Date | string; /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; /** Name to identify resource. */ name?: string; /** Textual description of the resource. */ @@ -683,31 +481,7 @@ export interface OAuthProvider { * and must not have a value greater than 150 characters. * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. */ - properties?: OAuthProviderPropertiesDictionary; -} - -export interface OAuthTokenListResponse { - /** List of requested objects. */ - value?: OAuthToken[]; - /** Token used in retrieving the next page. If null, there are no additional pages. */ - skipToken?: string; - /** Continuation link (absolute URI) to the next page of results in the list. */ - nextLink?: string; -} - -export interface OAuthToken { - /** Farmer ID for this OAuth config. */ - farmerId: string; - /** ID of the OAuth provider resource containing app information. */ - authProviderId: string; - /** An optional flag indicating whether the token is a valid or expired (Default value: true). */ - isValid?: boolean; - /** The ETag value to implement optimistic concurrency. */ - eTag?: string; - /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; - /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - modifiedDateTime?: Date; + properties?: Record; } export interface OAuthConnectRequest { @@ -721,15 +495,6 @@ export interface OAuthConnectRequest { userRedirectState?: string; } -export interface PlantingDataListResponse { - /** List of requested objects. */ - value?: PlantingData[]; - /** Token used in retrieving the next page. If null, there are no additional pages. */ - skipToken?: string; - /** Continuation link (absolute URI) to the next page of results in the list. */ - nextLink?: string; -} - export interface PlantingData { /** Schema for storing measurement reading and unit. */ avgPlantingRate?: Measure; @@ -738,7 +503,7 @@ export interface PlantingData { /** Schema for storing measurement reading and unit. */ avgMaterial?: Measure; /** Planting product details. */ - plantingProductDetails?: PlantingProductDetail[]; + plantingProductDetails?: Array; /** Schema for storing measurement reading and unit. */ area?: Measure; /** Source of the operation data. */ @@ -747,11 +512,11 @@ export interface PlantingData { * Modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. * Note: this will be specified by the source provider itself. */ - operationModifiedDateTime?: Date; + operationModifiedDateTime?: Date | string; /** Start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - operationStartDateTime?: Date; + operationStartDateTime?: Date | string; /** End date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - operationEndDateTime?: Date; + operationEndDateTime?: Date | string; /** Link for attachments. */ attachmentsLink?: string; /** Optional boundary ID of the field for which operation was applied. */ @@ -767,9 +532,9 @@ export interface PlantingData { /** Status of the resource. */ status?: string; /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; + createdDateTime?: Date | string; /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; /** Name to identify resource. */ name?: string; /** Textual description of the resource. */ @@ -780,7 +545,7 @@ export interface PlantingData { * and must not have a value greater than 150 characters. * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. */ - properties?: PlantingDataPropertiesDictionary; + properties?: Record; } export interface PlantingProductDetail { @@ -794,66 +559,19 @@ export interface PlantingProductDetail { avgMaterial?: Measure; } -export interface SceneListResponse { - /** List of requested objects. */ - value?: Scene[]; - /** Token used in retrieving the next page. If null, there are no additional pages. */ - skipToken?: string; - /** Continuation link (absolute URI) to the next page of results in the list. */ - nextLink?: string; -} - -export interface Scene { - /** Date-time of the scene, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - sceneDateTime?: Date; - /** Data provider of the scene. */ - provider?: string; - /** Data source of the scene. */ - source?: string; - /** Collection of image files. */ - imageFiles?: ImageFile[]; - /** Supported image formats for scene resource. */ - imageFormat?: ImageFormat; - /** Cloud cover percentage of the scene. */ - cloudCoverPercentage?: number; - /** Dark pixel percentage of the scene. */ - darkPixelPercentage?: number; - /** Median of NDVI of the scene. */ - ndviMedianValue?: number; - /** Boundary ID which belongs to the scene. */ - boundaryId?: string; - /** Farmer ID which belongs to the scene. */ - farmerId?: string; - /** Unique scene resource ID. */ - id?: string; - /** The ETag value to implement optimistic concurrency. */ - eTag?: string; -} - -export interface ImageFile { - /** Link of the image file. */ - fileLink?: string; - /** Name of the image file. */ - name: string; - /** Supported image formats for scene resource. */ - imageFormat?: ImageFormat; - /** Resolution of image file in meters. */ - resolution?: number; -} - export interface SatelliteDataIngestionJob { /** Farmer ID. */ farmerId: string; /** The id of the boundary object for which satellite data is being fetched. */ boundaryId: string; /** Start Date. */ - startDateTime: Date; + startDateTime: Date | string; /** End Date. */ - endDateTime: Date; + endDateTime: Date | string; /** Provider of satellite data. */ - provider?: DataProvider; + provider?: "Microsoft"; /** Source of satellite data. */ - source?: Source; + source?: "Sentinel_2_L2A"; /** Data Model for SatelliteIngestionJobRequest. */ data?: SatelliteData; /** Unique job id. */ @@ -868,13 +586,13 @@ export interface SatelliteDataIngestionJob { /** Status message to capture more details of the job. */ message?: string; /** Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; + createdDateTime?: Date | string; /** Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - lastActionDateTime?: Date; + lastActionDateTime?: Date | string; /** Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - startTime?: Date; + startTime?: Date | string; /** Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - endTime?: Date; + endTime?: Date | string; /** Name to identify resource. */ name?: string; /** Textual description of the resource. */ @@ -885,25 +603,16 @@ export interface SatelliteDataIngestionJob { * and must not have a value greater than 150 characters. * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. */ - properties?: SatelliteDataIngestionJobPropertiesDictionary; + properties?: Record; } export interface SatelliteData { /** List of ImageNames. */ - imageNames?: string[]; + imageNames?: Array; /** List of ImageFormats. Available value: TIF. */ - imageFormats?: string[]; + imageFormats?: Array; /** List of ImageResolutions in meters. Available values: 10, 20, 60. */ - imageResolutions?: number[]; -} - -export interface SeasonalFieldListResponse { - /** List of requested objects. */ - value?: SeasonalField[]; - /** Token used in retrieving the next page. If null, there are no additional pages. */ - skipToken?: string; - /** Continuation link (absolute URI) to the next page of results in the list. */ - nextLink?: string; + imageResolutions?: Array; } export interface SeasonalField { @@ -912,7 +621,7 @@ export interface SeasonalField { /** Primary boundary id. */ primaryBoundaryId?: string; /** Boundary Ids. */ - boundaryIds?: string[]; + boundaryIds?: Array; /** ID of the associated Farm. */ farmId?: string; /** ID of the associated Field. */ @@ -920,7 +629,7 @@ export interface SeasonalField { /** ID of the season it belongs to. */ seasonId?: string; /** CropVariety ids. */ - cropVarietyIds?: string[]; + cropVarietyIds?: Array; /** ID of the crop it belongs to. */ cropId?: string; /** Average yield value of the seasonal field. */ @@ -932,7 +641,7 @@ export interface SeasonalField { /** Unit of average seed population value attribute. */ avgSeedPopulationUnit?: string; /** Planting datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - plantingDateTime?: Date; + plantingDateTime?: Date | string; /** Unique resource ID. */ id?: string; /** The ETag value to implement optimistic concurrency. */ @@ -940,9 +649,9 @@ export interface SeasonalField { /** Status of the resource. */ status?: string; /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; + createdDateTime?: Date | string; /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; /** Name to identify resource. */ name?: string; /** Textual description of the resource. */ @@ -953,23 +662,14 @@ export interface SeasonalField { * and must not have a value greater than 150 characters. * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. */ - properties?: SeasonalFieldPropertiesDictionary; -} - -export interface SeasonListResponse { - /** List of requested objects. */ - value?: Season[]; - /** Token used in retrieving the next page. If null, there are no additional pages. */ - skipToken?: string; - /** Continuation link (absolute URI) to the next page of results in the list. */ - nextLink?: string; + properties?: Record; } export interface Season { /** Season start datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - startDateTime?: Date; + startDateTime?: Date | string; /** Season end datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - endDateTime?: Date; + endDateTime?: Date | string; /** Season year. */ year?: number; /** Unique resource ID. */ @@ -979,9 +679,9 @@ export interface Season { /** Status of the resource. */ status?: string; /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; + createdDateTime?: Date | string; /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; /** Name to identify resource. */ name?: string; /** Textual description of the resource. */ @@ -992,16 +692,7 @@ export interface Season { * and must not have a value greater than 150 characters. * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. */ - properties?: SeasonPropertiesDictionary; -} - -export interface TillageDataListResponse { - /** List of requested objects. */ - value?: TillageData[]; - /** Token used in retrieving the next page. If null, there are no additional pages. */ - skipToken?: string; - /** Continuation link (absolute URI) to the next page of results in the list. */ - nextLink?: string; + properties?: Record; } export interface TillageData { @@ -1017,11 +708,11 @@ export interface TillageData { * Modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. * Note: this will be specified by the source provider itself. */ - operationModifiedDateTime?: Date; + operationModifiedDateTime?: Date | string; /** Start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - operationStartDateTime?: Date; + operationStartDateTime?: Date | string; /** End date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - operationEndDateTime?: Date; + operationEndDateTime?: Date | string; /** Link for attachments. */ attachmentsLink?: string; /** Optional boundary ID of the field for which operation was applied. */ @@ -1037,9 +728,9 @@ export interface TillageData { /** Status of the resource. */ status?: string; /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; + createdDateTime?: Date | string; /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - modifiedDateTime?: Date; + modifiedDateTime?: Date | string; /** Name to identify resource. */ name?: string; /** Textual description of the resource. */ @@ -1050,89 +741,7 @@ export interface TillageData { * and must not have a value greater than 150 characters. * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. */ - properties?: TillageDataPropertiesDictionary; -} - -export interface WeatherDataListResponse { - /** List of requested objects. */ - value?: WeatherData[]; - /** Token used in retrieving the next page. If null, there are no additional pages. */ - skipToken?: string; - /** Continuation link (absolute URI) to the next page of results in the list. */ - nextLink?: string; -} - -export interface WeatherData { - /** Farmer ID. */ - farmerId: string; - /** Boundary ID. */ - boundaryId: string; - /** ID of the weather extension. */ - extensionId: string; - /** Location model class. */ - location: Location; - /** Date-time of the weather data, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - dateTime: Date; - /** Unit System like US/SI etc. */ - unitSystemCode?: string; - /** Version of the weather data extension. */ - extensionVersion: string; - /** Type of weather data (forecast/historical). */ - weatherDataType: string; - /** Granularity of weather data (daily/hourly). */ - granularity: string; - /** Schema for storing measurement reading and unit. */ - cloudCover?: Measure; - /** Schema for storing measurement reading and unit. */ - dewPoint?: Measure; - /** Schema for storing measurement reading and unit. */ - growingDegreeDay?: Measure; - /** Schema for storing measurement reading and unit. */ - precipitation?: Measure; - /** Schema for storing measurement reading and unit. */ - pressure?: Measure; - /** Schema for storing measurement reading and unit. */ - relativeHumidity?: Measure; - /** Schema for storing measurement reading and unit. */ - soilMoisture?: Measure; - /** Schema for storing measurement reading and unit. */ - soilTemperature?: Measure; - /** Schema for storing measurement reading and unit. */ - temperature?: Measure; - /** Schema for storing measurement reading and unit. */ - visibility?: Measure; - /** Schema for storing measurement reading and unit. */ - wetBulbTemperature?: Measure; - /** Schema for storing measurement reading and unit. */ - windChill?: Measure; - /** Schema for storing measurement reading and unit. */ - windDirection?: Measure; - /** Schema for storing measurement reading and unit. */ - windGust?: Measure; - /** Schema for storing measurement reading and unit. */ - windSpeed?: Measure; - /** Weather data ID. */ - id?: string; - /** The ETag value to implement optimistic concurrency. */ - eTag?: string; - /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; - /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - modifiedDateTime?: Date; - /** - * A collection of key value pairs that belongs to the resource. - * Each pair must not have a key greater than 50 characters - * and must not have a value greater than 150 characters. - * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. - */ - properties?: WeatherDataPropertiesDictionary; -} - -export interface Location { - /** Latitude of the location. */ - latitude: number; - /** Longitude of the location. */ - longitude: number; + properties?: Record; } export interface WeatherDataIngestionJob { @@ -1145,7 +754,7 @@ export interface WeatherDataIngestionJob { /** Extension api name to which request is to be made. */ extensionApiName: string; /** Extension api input dictionary which would be used to feed request query/body/parameter information. */ - extensionApiInput: WeatherDataIngestionJobExtensionApiInputDictionary; + extensionApiInput: Record; /** App id of the weather data provider. */ extensionDataProviderAppId?: string; /** Api key of the weather data provider. */ @@ -1162,13 +771,13 @@ export interface WeatherDataIngestionJob { /** Status message to capture more details of the job. */ message?: string; /** Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; + createdDateTime?: Date | string; /** Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - lastActionDateTime?: Date; + lastActionDateTime?: Date | string; /** Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - startTime?: Date; + startTime?: Date | string; /** Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - endTime?: Date; + endTime?: Date | string; /** Name to identify resource. */ name?: string; /** Textual description of the resource. */ @@ -1179,7 +788,7 @@ export interface WeatherDataIngestionJob { * and must not have a value greater than 150 characters. * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. */ - properties?: WeatherDataIngestionJobPropertiesDictionary; + properties?: Record; } export interface WeatherDataDeleteJob { @@ -1194,9 +803,9 @@ export interface WeatherDataDeleteJob { /** Granularity of weather data. Possible values include: 'daily' , 'hourly'. */ granularity?: string; /** Weather data start UTC date-time (inclusive), sample format: yyyy-MM-ddTHH:mm:ssZ. */ - startDateTime?: Date; + startDateTime?: Date | string; /** Weather data end UTC date-time (inclusive), sample format: yyyy-MM-ddTHH:mm:ssZ. */ - endDateTime?: Date; + endDateTime?: Date | string; /** Unique job id. */ id?: string; /** @@ -1209,13 +818,13 @@ export interface WeatherDataDeleteJob { /** Status message to capture more details of the job. */ message?: string; /** Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - createdDateTime?: Date; + createdDateTime?: Date | string; /** Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - lastActionDateTime?: Date; + lastActionDateTime?: Date | string; /** Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - startTime?: Date; + startTime?: Date | string; /** Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ - endTime?: Date; + endTime?: Date | string; /** Name to identify resource. */ name?: string; /** Textual description of the resource. */ @@ -1226,7 +835,11 @@ export interface WeatherDataDeleteJob { * and must not have a value greater than 150 characters. * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. */ - properties?: WeatherDataDeleteJobPropertiesDictionary; + properties?: Record; +} + +export interface MultiPolygon extends GeoJsonObjectBase, MultiPolygonCoordinates { + type: "MultiPolygon"; } export interface MultiPolygonCoordinates { @@ -1236,30 +849,24 @@ export interface MultiPolygonCoordinates { * For Polygons with more than one of these rings, the first MUST be the exterior ring, * and any others MUST be interior rings. */ - coordinates: number[][][][]; + coordinates: Array>>>; } -export type MultiPolygon = MultiPolygonBase & - MultiPolygonCoordinates & { - type: "MultiPolygon"; - }; - -export interface MultiPolygonBase {} +export interface Point extends GeoJsonObjectBase, PointCoordinates { + type: "Point"; +} export interface PointCoordinates { /** * Gets or sets the coordinate of this point. * It must be an array of 2 or 3 elements for a 2D or 3D system. */ - coordinates: number[]; + coordinates: Array; } -export type Point = PointBase & - PointCoordinates & { - type: "Point"; - }; - -export interface PointBase {} +export interface Polygon extends GeoJsonObjectBase, PolygonCoordinates { + type: "Polygon"; +} export interface PolygonCoordinates { /** @@ -1268,69 +875,7 @@ export interface PolygonCoordinates { * For Polygons with more than one of these rings, the first MUST be the exterior ring, * and any others MUST be interior rings. */ - coordinates: number[][][]; -} - -export type Polygon = PolygonBase & - PolygonCoordinates & { - type: "Polygon"; - }; - -export interface PolygonBase {} - -export interface Paths1LxjoxzFarmersFarmeridAttachmentsAttachmentidPatchRequestbodyContentMultipartFormDataSchema { - /** File to be uploaded. */ - file?: string; - /** Farmer id for this attachment. */ - farmerId?: string; - /** Associated Resource id for this attachment. */ - resourceId?: string; - /** - * Associated Resource type for this attachment - * i.e. Farmer, Farm, Field, SeasonalField, Boundary, FarmOperationApplicationData, HarvestData, TillageData, PlantingData. - */ - resourceType?: string; - /** Original File Name for this attachment. */ - originalFileName?: string; - /** Unique id. */ - id?: string; - /** Status of the resource. */ - status?: string; - /** Date when resource was created. */ - createdDateTime?: string; - /** Date when resource was last modified. */ - modifiedDateTime?: string; - /** Name to identify resource. */ - name?: string; - /** Textual description of resource. */ - description?: string; - /** The ETag value to implement optimistic concurrency. */ - eTag?: string; + coordinates: Array>>; } -export type GeoJsonObjectType = "Point" | "Polygon" | "MultiPolygon"; -export type ImageFormat = "TIF"; -export type DataProvider = "Microsoft"; -export type Source = "Sentinel_2_L2A"; -export type ApplicationDataPropertiesDictionary = Record; -export type InnerErrorDictionary = Record; -export type BoundaryPropertiesDictionary = Record; -export type CascadeDeleteJobPropertiesDictionary = Record; -export type CropPropertiesDictionary = Record; -export type CropVarietyPropertiesDictionary = Record; -export type FarmerPropertiesDictionary = Record; -export type FarmOperationDataIngestionJobPropertiesDictionary = Record; -export type FarmPropertiesDictionary = Record; -export type FieldPropertiesDictionary = Record; -export type HarvestDataPropertiesDictionary = Record; -export type ImageProcessingRasterizeJobPropertiesDictionary = Record; -export type OAuthProviderPropertiesDictionary = Record; -export type PlantingDataPropertiesDictionary = Record; -export type SatelliteDataIngestionJobPropertiesDictionary = Record; -export type SeasonalFieldPropertiesDictionary = Record; -export type SeasonPropertiesDictionary = Record; -export type TillageDataPropertiesDictionary = Record; -export type WeatherDataPropertiesDictionary = Record; -export type WeatherDataIngestionJobExtensionApiInputDictionary = Record; -export type WeatherDataIngestionJobPropertiesDictionary = Record; -export type WeatherDataDeleteJobPropertiesDictionary = Record; +export type GeoJsonObject = MultiPolygon | Point | Polygon; diff --git a/sdk/agrifood/agrifood-farming-rest/src/outputModels.ts b/sdk/agrifood/agrifood-farming-rest/src/outputModels.ts new file mode 100644 index 000000000000..975970819480 --- /dev/null +++ b/sdk/agrifood/agrifood-farming-rest/src/outputModels.ts @@ -0,0 +1,1220 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +export interface ApplicationDataListResponseOutput { + /** List of requested objects. */ + value?: Array; + /** Token used in retrieving the next page. If null, there are no additional pages. */ + $skipToken?: string; + /** Continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +export interface ApplicationDataOutput { + /** Application product details. */ + applicationProductDetails?: Array; + /** Schema for storing measurement reading and unit. */ + avgMaterial?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + totalMaterial?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + area?: MeasureOutput; + /** Source of the operation data. */ + source?: string; + /** + * Modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. + * Note: this will be specified by the source provider itself. + */ + operationModifiedDateTime?: string; + /** Start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + operationStartDateTime?: string; + /** End date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + operationEndDateTime?: string; + /** Link for attachments. */ + attachmentsLink?: string; + /** Optional boundary ID of the field for which operation was applied. */ + associatedBoundaryId?: string; + /** Optional boundary ID of the actual area for which operation was applied inside the specified field. */ + operationBoundaryId?: string; + /** Farmer ID which belongs to the operation data. */ + farmerId?: string; + /** Unique resource ID. */ + id?: string; + /** The ETag value to implement optimistic concurrency. */ + eTag?: string; + /** Status of the resource. */ + status?: string; + /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + modifiedDateTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of the resource. */ + description?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface ApplicationProductDetailOutput { + /** Name of the product applied. */ + productName?: string; + /** A flag indicating whether product is a carrier for a tank mix. */ + isCarrier?: boolean; + /** Schema for storing measurement reading and unit. */ + avgMaterial?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + totalMaterial?: MeasureOutput; +} + +export interface MeasureOutput { + /** Data unit. */ + unit?: string; + /** Data value. */ + value?: number; +} + +export interface ErrorResponseOutput { + /** An error from the Azure AgPlatform service. */ + error?: ErrorModelOutput; + /** Unique trace ID. */ + traceId?: string; +} + +export interface ErrorModelOutput { + /** Server-defined set of error codes. */ + code?: string; + /** Human-readable representation of the error. */ + message?: string; + /** Target of the error. */ + target?: string; + /** Array of details about specific errors that led to this reported error. */ + details?: Array; + /** + * Inner error containing list of errors. + * InnerError reference document. + */ + innererror?: InnerErrorOutput; +} + +export interface InnerErrorOutput extends Record { + /** + * Specific error code than was provided by the + * containing error. + */ + code?: string; + /** + * Inner error containing list of errors. + * InnerError reference document. + */ + innererror?: InnerErrorOutput; +} + +export interface AttachmentListResponseOutput { + /** List of requested objects. */ + value?: Array; + /** Token used in retrieving the next page. If null, there are no additional pages. */ + $skipToken?: string; + /** Continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +export interface AttachmentOutput { + /** Farmer id for this attachment. */ + farmerId?: string; + /** Associated Resource id for this attachment. */ + resourceId?: string; + /** + * Associated Resource type for this attachment + * i.e. Farmer, Farm, Field, SeasonalField, Boundary, FarmOperationApplicationData, HarvestData, TillageData, PlantingData. + */ + resourceType?: string; + /** Original File Name for this attachment. */ + originalFileName?: string; + /** Unique id. */ + id?: string; + /** Status of the resource. */ + status?: string; + /** Date when resource was created. */ + createdDateTime?: string; + /** Date when resource was last modified. */ + modifiedDateTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of resource. */ + description?: string; + /** The ETag value to implement optimistic concurrency. */ + eTag?: string; +} + +export interface BoundaryListResponseOutput { + /** List of requested objects. */ + value?: Array; + /** Token used in retrieving the next page. If null, there are no additional pages. */ + $skipToken?: string; + /** Continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +export interface BoundaryOutput { + /** Farmer ID. */ + farmerId?: string; + /** ID of the parent(field or seasonalField) it belongs to. */ + parentId?: string; + /** GeoJSON abstract class. */ + geometry?: GeoJsonObjectOutput; + /** Is the boundary primary. */ + isPrimary?: boolean; + /** Boundary area in acres. */ + acreage?: number; + /** Type of the parent it belongs to. */ + parentType?: string; + /** Unique resource ID. */ + id?: string; + /** The ETag value to implement optimistic concurrency. */ + eTag?: string; + /** Status of the resource. */ + status?: string; + /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + modifiedDateTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of the resource. */ + description?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface GeoJsonObjectOutputBase { + type: "MultiPolygon" | "Point" | "Polygon"; +} + +export interface CascadeDeleteJobOutput { + /** Farmer ID. */ + farmerId: string; + /** The id of the resource. */ + resourceId: string; + /** The type of the resource. */ + resourceType: string; + /** Unique job id. */ + id?: string; + /** + * Status of the job. + * Possible values: 'Waiting', 'Running', 'Succeeded', 'Failed', 'Cancelled'. + */ + status?: string; + /** Duration of the job in seconds. */ + durationInSeconds?: number; + /** Status message to capture more details of the job. */ + message?: string; + /** Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + lastActionDateTime?: string; + /** Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + startTime?: string; + /** Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + endTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of the resource. */ + description?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface BoundaryOverlapResponseOutput { + /** Acreage of Main boundary. */ + boundaryAcreage?: number; + /** Acreage of other boundary. */ + otherBoundaryAcreage?: number; + /** Acreage of intersecting boundary. */ + intersectingAcreage?: number; +} + +export interface CropListResponseOutput { + /** List of requested objects. */ + value?: Array; + /** Token used in retrieving the next page. If null, there are no additional pages. */ + $skipToken?: string; + /** Continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +export interface CropOutput { + /** Crop phenotype. */ + phenotype?: string; + /** Unique resource ID. */ + id?: string; + /** The ETag value to implement optimistic concurrency. */ + eTag?: string; + /** Status of the resource. */ + status?: string; + /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + modifiedDateTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of the resource. */ + description?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface CropVarietyListResponseOutput { + /** List of requested objects. */ + value?: Array; + /** Token used in retrieving the next page. If null, there are no additional pages. */ + $skipToken?: string; + /** Continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +export interface CropVarietyOutput { + /** ID of the crop it belongs to. */ + cropId?: string; + /** CropVariety Brand. */ + brand?: string; + /** CropVariety product. */ + product?: string; + /** Unique resource ID. */ + id?: string; + /** The ETag value to implement optimistic concurrency. */ + eTag?: string; + /** Status of the resource. */ + status?: string; + /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + modifiedDateTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of the resource. */ + description?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface FarmerListResponseOutput { + /** List of requested objects. */ + value?: Array; + /** Token used in retrieving the next page. If null, there are no additional pages. */ + $skipToken?: string; + /** Continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +export interface FarmerOutput { + /** Unique resource ID. */ + id?: string; + /** The ETag value to implement optimistic concurrency. */ + eTag?: string; + /** Status of the resource. */ + status?: string; + /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + modifiedDateTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of the resource. */ + description?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface FarmOperationDataIngestionJobOutput { + /** Farmer ID. */ + farmerId: string; + /** Authentication provider ID. */ + authProviderId: string; + /** List of operation types for which data needs to be downloaded. Available values: AllOperations, Application, Planting, Harvest, Tillage. */ + operations?: Array; + /** Start Year (Minimum = 2000, Maximum = CurrentYear). */ + startYear: number; + /** Unique job id. */ + id?: string; + /** + * Status of the job. + * Possible values: 'Waiting', 'Running', 'Succeeded', 'Failed', 'Cancelled'. + */ + status?: string; + /** Duration of the job in seconds. */ + durationInSeconds?: number; + /** Status message to capture more details of the job. */ + message?: string; + /** Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + lastActionDateTime?: string; + /** Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + startTime?: string; + /** Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + endTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of the resource. */ + description?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface FarmListResponseOutput { + /** List of requested objects. */ + value?: Array; + /** Token used in retrieving the next page. If null, there are no additional pages. */ + $skipToken?: string; + /** Continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +export interface FarmOutput { + /** Farmer ID. */ + farmerId?: string; + /** Unique resource ID. */ + id?: string; + /** The ETag value to implement optimistic concurrency. */ + eTag?: string; + /** Status of the resource. */ + status?: string; + /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + modifiedDateTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of the resource. */ + description?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface FieldListResponseOutput { + /** List of requested objects. */ + value?: Array; + /** Token used in retrieving the next page. If null, there are no additional pages. */ + $skipToken?: string; + /** Continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +export interface FieldOutput { + /** ID of the associated Farm. */ + farmId?: string; + /** Farmer ID. */ + farmerId?: string; + /** Primary boundary id. */ + primaryBoundaryId?: string; + /** Boundary Ids. */ + boundaryIds?: Array; + /** Unique resource ID. */ + id?: string; + /** The ETag value to implement optimistic concurrency. */ + eTag?: string; + /** Status of the resource. */ + status?: string; + /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + modifiedDateTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of the resource. */ + description?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface HarvestDataListResponseOutput { + /** List of requested objects. */ + value?: Array; + /** Token used in retrieving the next page. If null, there are no additional pages. */ + $skipToken?: string; + /** Continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +export interface HarvestDataOutput { + /** Schema for storing measurement reading and unit. */ + totalYield?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + avgYield?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + totalWetMass?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + avgWetMass?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + avgMoisture?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + avgSpeed?: MeasureOutput; + /** Harvest product details. */ + harvestProductDetails?: Array; + /** Schema for storing measurement reading and unit. */ + area?: MeasureOutput; + /** Source of the operation data. */ + source?: string; + /** + * Modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. + * Note: this will be specified by the source provider itself. + */ + operationModifiedDateTime?: string; + /** Start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + operationStartDateTime?: string; + /** End date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + operationEndDateTime?: string; + /** Link for attachments. */ + attachmentsLink?: string; + /** Optional boundary ID of the field for which operation was applied. */ + associatedBoundaryId?: string; + /** Optional boundary ID of the actual area for which operation was applied inside the specified field. */ + operationBoundaryId?: string; + /** Farmer ID which belongs to the operation data. */ + farmerId?: string; + /** Unique resource ID. */ + id?: string; + /** The ETag value to implement optimistic concurrency. */ + eTag?: string; + /** Status of the resource. */ + status?: string; + /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + modifiedDateTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of the resource. */ + description?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface HarvestProductDetailOutput { + /** Name of the product. */ + productName?: string; + /** Schema for storing measurement reading and unit. */ + area?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + totalYield?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + avgYield?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + avgMoisture?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + totalWetMass?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + avgWetMass?: MeasureOutput; +} + +export interface ImageProcessingRasterizeJobOutput { + /** Farmer ID. */ + farmerId: string; + /** Shapefile attachment ID. */ + shapefileAttachmentId: string; + /** List of shapefile column names to create raster attachments. */ + shapefileColumnNames: Array; + /** Unique job id. */ + id?: string; + /** + * Status of the job. + * Possible values: 'Waiting', 'Running', 'Succeeded', 'Failed', 'Cancelled'. + */ + status?: string; + /** Duration of the job in seconds. */ + durationInSeconds?: number; + /** Status message to capture more details of the job. */ + message?: string; + /** Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + lastActionDateTime?: string; + /** Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + startTime?: string; + /** Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + endTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of the resource. */ + description?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface OAuthProviderListResponseOutput { + /** List of requested objects. */ + value?: Array; + /** Token used in retrieving the next page. If null, there are no additional pages. */ + $skipToken?: string; + /** Continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +export interface OAuthProviderOutput { + /** OAuth App ID for given OAuth Provider. */ + appId?: string; + /** + * OAuth App secret for given Provider. + * Note: Won't be sent in response. + */ + appSecret?: string; + /** + * OAuth Api key for given Provider. + * Note: currently Applicable to Climate provider. Won't be sent in response. + */ + apiKey?: string; + /** + * An optional flag to determine if the App is ready to be used for Production scenarios in the provider side or not. (Default value: false) + * Note: Currently applicable for JohnDeere. + */ + isProductionApp?: boolean; + /** Unique OAuth provider ID. */ + id?: string; + /** The ETag value to implement optimistic concurrency. */ + eTag?: string; + /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + modifiedDateTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of the resource. */ + description?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface OAuthTokenListResponseOutput { + /** List of requested objects. */ + value?: Array; + /** Token used in retrieving the next page. If null, there are no additional pages. */ + $skipToken?: string; + /** Continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +export interface OAuthTokenOutput { + /** Farmer ID for this OAuth config. */ + farmerId: string; + /** ID of the OAuth provider resource containing app information. */ + authProviderId: string; + /** An optional flag indicating whether the token is a valid or expired (Default value: true). */ + isValid?: boolean; + /** The ETag value to implement optimistic concurrency. */ + eTag?: string; + /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + modifiedDateTime?: string; +} + +export interface PlantingDataListResponseOutput { + /** List of requested objects. */ + value?: Array; + /** Token used in retrieving the next page. If null, there are no additional pages. */ + $skipToken?: string; + /** Continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +export interface PlantingDataOutput { + /** Schema for storing measurement reading and unit. */ + avgPlantingRate?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + totalMaterial?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + avgMaterial?: MeasureOutput; + /** Planting product details. */ + plantingProductDetails?: Array; + /** Schema for storing measurement reading and unit. */ + area?: MeasureOutput; + /** Source of the operation data. */ + source?: string; + /** + * Modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. + * Note: this will be specified by the source provider itself. + */ + operationModifiedDateTime?: string; + /** Start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + operationStartDateTime?: string; + /** End date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + operationEndDateTime?: string; + /** Link for attachments. */ + attachmentsLink?: string; + /** Optional boundary ID of the field for which operation was applied. */ + associatedBoundaryId?: string; + /** Optional boundary ID of the actual area for which operation was applied inside the specified field. */ + operationBoundaryId?: string; + /** Farmer ID which belongs to the operation data. */ + farmerId?: string; + /** Unique resource ID. */ + id?: string; + /** The ETag value to implement optimistic concurrency. */ + eTag?: string; + /** Status of the resource. */ + status?: string; + /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + modifiedDateTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of the resource. */ + description?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface PlantingProductDetailOutput { + /** Name of the product. */ + productName?: string; + /** Schema for storing measurement reading and unit. */ + area?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + totalMaterial?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + avgMaterial?: MeasureOutput; +} + +export interface SceneListResponseOutput { + /** List of requested objects. */ + value?: Array; + /** Token used in retrieving the next page. If null, there are no additional pages. */ + $skipToken?: string; + /** Continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +export interface SceneOutput { + /** Date-time of the scene, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + sceneDateTime?: string; + /** Data provider of the scene. */ + provider?: string; + /** Data source of the scene. */ + source?: string; + /** Collection of image files. */ + imageFiles?: Array; + /** Supported image formats for scene resource. */ + imageFormat?: "TIF"; + /** Cloud cover percentage of the scene. */ + cloudCoverPercentage?: number; + /** Dark pixel percentage of the scene. */ + darkPixelPercentage?: number; + /** Median of NDVI of the scene. */ + ndviMedianValue?: number; + /** Boundary ID which belongs to the scene. */ + boundaryId?: string; + /** Farmer ID which belongs to the scene. */ + farmerId?: string; + /** Unique scene resource ID. */ + id?: string; + /** The ETag value to implement optimistic concurrency. */ + eTag?: string; +} + +export interface ImageFileOutput { + /** Link of the image file. */ + fileLink?: string; + /** Name of the image file. */ + name: string; + /** Supported image formats for scene resource. */ + imageFormat?: "TIF"; + /** Resolution of image file in meters. */ + resolution?: number; +} + +export interface SatelliteDataIngestionJobOutput { + /** Farmer ID. */ + farmerId: string; + /** The id of the boundary object for which satellite data is being fetched. */ + boundaryId: string; + /** Start Date. */ + startDateTime: string; + /** End Date. */ + endDateTime: string; + /** Provider of satellite data. */ + provider?: "Microsoft"; + /** Source of satellite data. */ + source?: "Sentinel_2_L2A"; + /** Data Model for SatelliteIngestionJobRequest. */ + data?: SatelliteDataOutput; + /** Unique job id. */ + id?: string; + /** + * Status of the job. + * Possible values: 'Waiting', 'Running', 'Succeeded', 'Failed', 'Cancelled'. + */ + status?: string; + /** Duration of the job in seconds. */ + durationInSeconds?: number; + /** Status message to capture more details of the job. */ + message?: string; + /** Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + lastActionDateTime?: string; + /** Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + startTime?: string; + /** Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + endTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of the resource. */ + description?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface SatelliteDataOutput { + /** List of ImageNames. */ + imageNames?: Array; + /** List of ImageFormats. Available value: TIF. */ + imageFormats?: Array; + /** List of ImageResolutions in meters. Available values: 10, 20, 60. */ + imageResolutions?: Array; +} + +export interface SeasonalFieldListResponseOutput { + /** List of requested objects. */ + value?: Array; + /** Token used in retrieving the next page. If null, there are no additional pages. */ + $skipToken?: string; + /** Continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +export interface SeasonalFieldOutput { + /** Farmer ID. */ + farmerId?: string; + /** Primary boundary id. */ + primaryBoundaryId?: string; + /** Boundary Ids. */ + boundaryIds?: Array; + /** ID of the associated Farm. */ + farmId?: string; + /** ID of the associated Field. */ + fieldId?: string; + /** ID of the season it belongs to. */ + seasonId?: string; + /** CropVariety ids. */ + cropVarietyIds?: Array; + /** ID of the crop it belongs to. */ + cropId?: string; + /** Average yield value of the seasonal field. */ + avgYieldValue?: number; + /** Unit of the average yield value attribute. */ + avgYieldUnit?: string; + /** Average seed population value of the seasonal field. */ + avgSeedPopulationValue?: number; + /** Unit of average seed population value attribute. */ + avgSeedPopulationUnit?: string; + /** Planting datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + plantingDateTime?: string; + /** Unique resource ID. */ + id?: string; + /** The ETag value to implement optimistic concurrency. */ + eTag?: string; + /** Status of the resource. */ + status?: string; + /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + modifiedDateTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of the resource. */ + description?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface SeasonListResponseOutput { + /** List of requested objects. */ + value?: Array; + /** Token used in retrieving the next page. If null, there are no additional pages. */ + $skipToken?: string; + /** Continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +export interface SeasonOutput { + /** Season start datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + startDateTime?: string; + /** Season end datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + endDateTime?: string; + /** Season year. */ + year?: number; + /** Unique resource ID. */ + id?: string; + /** The ETag value to implement optimistic concurrency. */ + eTag?: string; + /** Status of the resource. */ + status?: string; + /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + modifiedDateTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of the resource. */ + description?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface TillageDataListResponseOutput { + /** List of requested objects. */ + value?: Array; + /** Token used in retrieving the next page. If null, there are no additional pages. */ + $skipToken?: string; + /** Continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +export interface TillageDataOutput { + /** Schema for storing measurement reading and unit. */ + tillageDepth?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + tillagePressure?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + area?: MeasureOutput; + /** Source of the operation data. */ + source?: string; + /** + * Modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. + * Note: this will be specified by the source provider itself. + */ + operationModifiedDateTime?: string; + /** Start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + operationStartDateTime?: string; + /** End date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + operationEndDateTime?: string; + /** Link for attachments. */ + attachmentsLink?: string; + /** Optional boundary ID of the field for which operation was applied. */ + associatedBoundaryId?: string; + /** Optional boundary ID of the actual area for which operation was applied inside the specified field. */ + operationBoundaryId?: string; + /** Farmer ID which belongs to the operation data. */ + farmerId?: string; + /** Unique resource ID. */ + id?: string; + /** The ETag value to implement optimistic concurrency. */ + eTag?: string; + /** Status of the resource. */ + status?: string; + /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + modifiedDateTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of the resource. */ + description?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface WeatherDataListResponseOutput { + /** List of requested objects. */ + value?: Array; + /** Token used in retrieving the next page. If null, there are no additional pages. */ + $skipToken?: string; + /** Continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +export interface WeatherDataOutput { + /** Farmer ID. */ + farmerId: string; + /** Boundary ID. */ + boundaryId: string; + /** ID of the weather extension. */ + extensionId: string; + /** Location model class. */ + location: LocationOutput; + /** Date-time of the weather data, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + dateTime: string; + /** Unit System like US/SI etc. */ + unitSystemCode?: string; + /** Version of the weather data extension. */ + extensionVersion: string; + /** Type of weather data (forecast/historical). */ + weatherDataType: string; + /** Granularity of weather data (daily/hourly). */ + granularity: string; + /** Schema for storing measurement reading and unit. */ + cloudCover?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + dewPoint?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + growingDegreeDay?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + precipitation?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + pressure?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + relativeHumidity?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + soilMoisture?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + soilTemperature?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + temperature?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + visibility?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + wetBulbTemperature?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + windChill?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + windDirection?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + windGust?: MeasureOutput; + /** Schema for storing measurement reading and unit. */ + windSpeed?: MeasureOutput; + /** Weather data ID. */ + id?: string; + /** The ETag value to implement optimistic concurrency. */ + eTag?: string; + /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */ + modifiedDateTime?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface LocationOutput { + /** Latitude of the location. */ + latitude: number; + /** Longitude of the location. */ + longitude: number; +} + +export interface WeatherDataIngestionJobOutput { + /** The id of the boundary object for which weather data is being fetched. */ + boundaryId: string; + /** The id of the farmer object for which weather data is being fetched. */ + farmerId: string; + /** ID of the extension to be used for the providerInput. eg. DTN.ClearAg. */ + extensionId: string; + /** Extension api name to which request is to be made. */ + extensionApiName: string; + /** Extension api input dictionary which would be used to feed request query/body/parameter information. */ + extensionApiInput: Record; + /** App id of the weather data provider. */ + extensionDataProviderAppId?: string; + /** Api key of the weather data provider. */ + extensionDataProviderApiKey?: string; + /** Unique job id. */ + id?: string; + /** + * Status of the job. + * Possible values: 'Waiting', 'Running', 'Succeeded', 'Failed', 'Cancelled'. + */ + status?: string; + /** Duration of the job in seconds. */ + durationInSeconds?: number; + /** Status message to capture more details of the job. */ + message?: string; + /** Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + lastActionDateTime?: string; + /** Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + startTime?: string; + /** Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + endTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of the resource. */ + description?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface WeatherDataDeleteJobOutput { + /** ID of the extension to be used for the providerInput. eg. DTN.ClearAg. */ + extensionId: string; + /** The id of the farmer object for which weather data is being fetched. */ + farmerId: string; + /** The id of the boundary object for which weather data is being fetched. */ + boundaryId: string; + /** Type of weather data. Possible values include: 'forecast' , 'historical'. */ + weatherDataType?: string; + /** Granularity of weather data. Possible values include: 'daily' , 'hourly'. */ + granularity?: string; + /** Weather data start UTC date-time (inclusive), sample format: yyyy-MM-ddTHH:mm:ssZ. */ + startDateTime?: string; + /** Weather data end UTC date-time (inclusive), sample format: yyyy-MM-ddTHH:mm:ssZ. */ + endDateTime?: string; + /** Unique job id. */ + id?: string; + /** + * Status of the job. + * Possible values: 'Waiting', 'Running', 'Succeeded', 'Failed', 'Cancelled'. + */ + status?: string; + /** Duration of the job in seconds. */ + durationInSeconds?: number; + /** Status message to capture more details of the job. */ + message?: string; + /** Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + createdDateTime?: string; + /** Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + lastActionDateTime?: string; + /** Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + startTime?: string; + /** Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */ + endTime?: string; + /** Name to identify resource. */ + name?: string; + /** Textual description of the resource. */ + description?: string; + /** + * A collection of key value pairs that belongs to the resource. + * Each pair must not have a key greater than 50 characters + * and must not have a value greater than 150 characters. + * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported. + */ + properties?: Record; +} + +export interface MultiPolygonOutput extends GeoJsonObjectOutputBase, MultiPolygonCoordinatesOutput { + type: "MultiPolygon"; +} + +export interface MultiPolygonCoordinatesOutput { + /** + * Gets or sets Coordinates of GeoJSON Object. + * It must be an array of polygons, each polygon contains list of linear rings. + * For Polygons with more than one of these rings, the first MUST be the exterior ring, + * and any others MUST be interior rings. + */ + coordinates: Array>>>; +} + +export interface PointOutput extends GeoJsonObjectOutputBase, PointCoordinatesOutput { + type: "Point"; +} + +export interface PointCoordinatesOutput { + /** + * Gets or sets the coordinate of this point. + * It must be an array of 2 or 3 elements for a 2D or 3D system. + */ + coordinates: Array; +} + +export interface PolygonOutput extends GeoJsonObjectOutputBase, PolygonCoordinatesOutput { + type: "Polygon"; +} + +export interface PolygonCoordinatesOutput { + /** + * Gets or sets type of the GeoJSON Object. + * It must be an array of linear ring coordinate arrays. + * For Polygons with more than one of these rings, the first MUST be the exterior ring, + * and any others MUST be interior rings. + */ + coordinates: Array>>; +} + +export type GeoJsonObjectOutput = MultiPolygonOutput | PointOutput | PolygonOutput; diff --git a/sdk/agrifood/agrifood-farming-rest/src/paginateHelper.ts b/sdk/agrifood/agrifood-farming-rest/src/paginateHelper.ts new file mode 100644 index 000000000000..477bace4a37f --- /dev/null +++ b/sdk/agrifood/agrifood-farming-rest/src/paginateHelper.ts @@ -0,0 +1,131 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { getPagedAsyncIterator, PagedAsyncIterableIterator, PagedResult } from "@azure/core-paging"; +import { Client, createRestError, PathUncheckedResponse } from "@azure-rest/core-client"; + +/** + * Helper type to extract the type of an array + */ +export type GetArrayType = T extends Array ? TData : never; + +/** + * The type of a custom function that defines how to get a page and a link to the next one if any. + */ +export type GetPage = ( + pageLink: string, + maxPageSize?: number +) => Promise<{ + page: TPage; + nextPageLink?: string; +}>; + +/** + * Options for the paging helper + */ +export interface PagingOptions { + /** + * Custom function to extract pagination details for crating the PagedAsyncIterableIterator + */ + customGetPage?: GetPage[]>; +} + +/** + * Helper type to infer the Type of the paged elements from the response type + * This type is generated based on the swagger information for x-ms-pageable + * specifically on the itemName property which indicates the property of the response + * where the page items are found. The default value is `value`. + * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter + */ +export type PaginateReturn = TResult extends { + body: { value?: infer TPage }; +} + ? GetArrayType + : Array; + +/** + * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension + * @param client - Client to use for sending the next page requests + * @param initialResponse - Initial response containing the nextLink and current page of elements + * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results + * @returns - PagedAsyncIterableIterator to iterate the elements + */ +export function paginate( + client: Client, + initialResponse: TResponse, + options: PagingOptions = {} +): PagedAsyncIterableIterator> { + // Extract element type from initial response + type TElement = PaginateReturn; + let firstRun = true; + const itemName = "value"; + const nextLinkName = "nextLink"; + const { customGetPage } = options; + const pagedResult: PagedResult = { + firstPageLink: "", + getPage: + typeof customGetPage === "function" + ? customGetPage + : async (pageLink: string) => { + const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get(); + firstRun = false; + checkPagingRequest(result); + const nextLink = getNextLink(result.body, nextLinkName); + const values = getElements(result.body, itemName); + return { + page: values, + nextPageLink: nextLink, + }; + }, + }; + + return getPagedAsyncIterator(pagedResult); +} + +/** + * Gets for the value of nextLink in the body + */ +function getNextLink(body: unknown, nextLinkName?: string): string | undefined { + if (!nextLinkName) { + return undefined; + } + + const nextLink = (body as Record)[nextLinkName]; + + if (typeof nextLink !== "string" && typeof nextLink !== "undefined") { + throw new Error(`Body Property ${nextLinkName} should be a string or undefined`); + } + + return nextLink; +} + +/** + * Gets the elements of the current request in the body. + */ +function getElements(body: unknown, itemName: string): T[] { + const value = (body as Record)[itemName] as T[]; + + // value has to be an array according to the x-ms-pageable extension. + // The fact that this must be an array is used above to calculate the + // type of elements in the page in PaginateReturn + if (!Array.isArray(value)) { + throw new Error( + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + ); + } + + return value ?? []; +} + +/** + * Checks if a request failed + */ +function checkPagingRequest(response: PathUncheckedResponse): void { + const Http2xxStatusCodes = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226"]; + if (!Http2xxStatusCodes.includes(response.status)) { + throw createRestError( + `Pagination failed with unexpected statusCode ${response.status}`, + response + ); + } +} diff --git a/sdk/agrifood/agrifood-farming-rest/src/paging.ts b/sdk/agrifood/agrifood-farming-rest/src/paging.ts deleted file mode 100644 index 2dabe2eeb0d0..000000000000 --- a/sdk/agrifood/agrifood-farming-rest/src/paging.ts +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { paginateResponse, PagedAsyncIterableIterator } from "@azure-rest/core-client-paging"; -import { Client, PathUncheckedResponse } from "@azure-rest/core-client"; - -/** - * Helper type to extract the type of an array - */ -export type GetArrayType = T extends Array ? TData : never; - -/** - * Helper type to infer the Type of the paged elements from the response type - * This type is generated based on the swagger information for x-ms-pageable - * specifically on the itemName property which indicates the property of the response - * where the page items are found. The default value is `value`. - * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter - */ -export type PaginateReturn = TResult extends { - body: { value?: infer TPage }; -} - ? GetArrayType - : Array; - -/** - * This is the wrapper function that would be exposed. It is hiding the Pagination Options because it can be - * obtained from the swagger - * @param client - Client to use for sending the next page requests - * @param initialResponse - Initial response containing the nextLink and current page of elements - * @returns - PagedAsyncIterableIterator to iterate the elements - */ -export function paginate( - client: Client, - initialResponse: TReturn -): PagedAsyncIterableIterator, PaginateReturn[]> { - return paginateResponse>(client, initialResponse); -} diff --git a/sdk/agrifood/agrifood-farming-rest/src/parameters.ts b/sdk/agrifood/agrifood-farming-rest/src/parameters.ts index b8f5d0030548..fff6002e6226 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/parameters.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/parameters.ts @@ -35,46 +35,46 @@ export interface ApplicationDataListByFarmerIdQueryParamProperties { /** Maximum total amount of material applied during the application (inclusive). */ maxTotalMaterial?: number; /** Sources of the operation data. */ - sources?: string[]; + sources?: Array; /** Boundary IDs associated with operation data. */ - associatedBoundaryIds?: string[]; + associatedBoundaryIds?: Array; /** Operation boundary IDs associated with operation data. */ - operationBoundaryIds?: string[]; + operationBoundaryIds?: Array; /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationStartDateTime?: Date; + minOperationStartDateTime?: Date | string; /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationStartDateTime?: Date; + maxOperationStartDateTime?: Date | string; /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationEndDateTime?: Date; + minOperationEndDateTime?: Date | string; /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationEndDateTime?: Date; + maxOperationEndDateTime?: Date | string; /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationModifiedDateTime?: Date; + minOperationModifiedDateTime?: Date | string; /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationModifiedDateTime?: Date; + maxOperationModifiedDateTime?: Date | string; /** Minimum area for which operation was applied (inclusive). */ minArea?: number; /** Maximum area for which operation was applied (inclusive). */ maxArea?: number; /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -88,8 +88,8 @@ export interface ApplicationDataListByFarmerIdQueryParam { queryParameters?: ApplicationDataListByFarmerIdQueryParamProperties; } -export type ApplicationDataListByFarmerIdParameters = RequestParameters & - ApplicationDataListByFarmerIdQueryParam; +export type ApplicationDataListByFarmerIdParameters = ApplicationDataListByFarmerIdQueryParam & + RequestParameters; export interface ApplicationDataListQueryParamProperties { /** Minimum average amount of material applied during the application (inclusive). */ @@ -101,46 +101,46 @@ export interface ApplicationDataListQueryParamProperties { /** Maximum total amount of material applied during the application (inclusive). */ maxTotalMaterial?: number; /** Sources of the operation data. */ - sources?: string[]; + sources?: Array; /** Boundary IDs associated with operation data. */ - associatedBoundaryIds?: string[]; + associatedBoundaryIds?: Array; /** Operation boundary IDs associated with operation data. */ - operationBoundaryIds?: string[]; + operationBoundaryIds?: Array; /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationStartDateTime?: Date; + minOperationStartDateTime?: Date | string; /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationStartDateTime?: Date; + maxOperationStartDateTime?: Date | string; /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationEndDateTime?: Date; + minOperationEndDateTime?: Date | string; /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationEndDateTime?: Date; + maxOperationEndDateTime?: Date | string; /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationModifiedDateTime?: Date; + minOperationModifiedDateTime?: Date | string; /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationModifiedDateTime?: Date; + maxOperationModifiedDateTime?: Date | string; /** Minimum area for which operation was applied (inclusive). */ minArea?: number; /** Maximum area for which operation was applied (inclusive). */ maxArea?: number; /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -154,41 +154,48 @@ export interface ApplicationDataListQueryParam { queryParameters?: ApplicationDataListQueryParamProperties; } -export type ApplicationDataListParameters = RequestParameters & ApplicationDataListQueryParam; +export type ApplicationDataListParameters = ApplicationDataListQueryParam & RequestParameters; export type ApplicationDataGetParameters = RequestParameters; export interface ApplicationDataCreateOrUpdateBodyParam { + /** Application data resource payload to create or update. */ body?: ApplicationData; } -export type ApplicationDataCreateOrUpdateParameters = RequestParameters & - ApplicationDataCreateOrUpdateBodyParam; +export interface ApplicationDataCreateOrUpdateMediaTypesParam { + /** Request content type */ + contentType?: "application/merge-patch+json"; +} + +export type ApplicationDataCreateOrUpdateParameters = ApplicationDataCreateOrUpdateMediaTypesParam & + ApplicationDataCreateOrUpdateBodyParam & + RequestParameters; export type ApplicationDataDeleteParameters = RequestParameters; export interface AttachmentsListByFarmerIdQueryParamProperties { /** Resource Ids of the resource. */ - resourceIds?: string[]; + resourceIds?: Array; /** Resource Types of the resource. */ - resourceTypes?: string[]; + resourceTypes?: Array; /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -202,16 +209,27 @@ export interface AttachmentsListByFarmerIdQueryParam { queryParameters?: AttachmentsListByFarmerIdQueryParamProperties; } -export type AttachmentsListByFarmerIdParameters = RequestParameters & - AttachmentsListByFarmerIdQueryParam; +export type AttachmentsListByFarmerIdParameters = AttachmentsListByFarmerIdQueryParam & + RequestParameters; export type AttachmentsGetParameters = RequestParameters; export interface AttachmentsCreateOrUpdateBodyParam { + /** + * File to be uploaded. + * + * Value may contain any sequence of octets + */ body?: string; } -export type AttachmentsCreateOrUpdateParameters = RequestParameters & - AttachmentsCreateOrUpdateBodyParam; +export interface AttachmentsCreateOrUpdateMediaTypesParam { + /** Request content type */ + contentType?: "multipart/form-data"; +} + +export type AttachmentsCreateOrUpdateParameters = AttachmentsCreateOrUpdateMediaTypesParam & + AttachmentsCreateOrUpdateBodyParam & + RequestParameters; export type AttachmentsDeleteParameters = RequestParameters; export type AttachmentsDownloadParameters = RequestParameters; @@ -221,30 +239,30 @@ export interface BoundariesListByFarmerIdQueryParamProperties { /** Type of the parent it belongs to. */ parentType?: string; /** Parent Ids of the resource. */ - parentIds?: string[]; + parentIds?: Array; /** Minimum acreage of the boundary (inclusive). */ minAcreage?: number; /** Maximum acreage of the boundary (inclusive). */ maxAcreage?: number; /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -258,15 +276,22 @@ export interface BoundariesListByFarmerIdQueryParam { queryParameters?: BoundariesListByFarmerIdQueryParamProperties; } -export type BoundariesListByFarmerIdParameters = RequestParameters & - BoundariesListByFarmerIdQueryParam; +export type BoundariesListByFarmerIdParameters = BoundariesListByFarmerIdQueryParam & + RequestParameters; export interface BoundariesSearchByFarmerIdBodyParam { + /** Query filters. */ body?: SearchBoundaryQuery; } -export type BoundariesSearchByFarmerIdParameters = RequestParameters & - BoundariesSearchByFarmerIdBodyParam; +export interface BoundariesSearchByFarmerIdMediaTypesParam { + /** Request content type */ + contentType?: "application/json"; +} + +export type BoundariesSearchByFarmerIdParameters = BoundariesSearchByFarmerIdMediaTypesParam & + BoundariesSearchByFarmerIdBodyParam & + RequestParameters; export interface BoundariesListQueryParamProperties { /** Is the boundary primary. */ @@ -274,30 +299,30 @@ export interface BoundariesListQueryParamProperties { /** Type of the parent it belongs to. */ parentType?: string; /** Parent Ids of the resource. */ - parentIds?: string[]; + parentIds?: Array; /** Minimum acreage of the boundary (inclusive). */ minAcreage?: number; /** Maximum acreage of the boundary (inclusive). */ maxAcreage?: number; /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -311,13 +336,21 @@ export interface BoundariesListQueryParam { queryParameters?: BoundariesListQueryParamProperties; } -export type BoundariesListParameters = RequestParameters & BoundariesListQueryParam; +export type BoundariesListParameters = BoundariesListQueryParam & RequestParameters; export interface BoundariesSearchBodyParam { + /** Query filters. */ body?: SearchBoundaryQuery; } -export type BoundariesSearchParameters = RequestParameters & BoundariesSearchBodyParam; +export interface BoundariesSearchMediaTypesParam { + /** Request content type */ + contentType?: "application/json"; +} + +export type BoundariesSearchParameters = BoundariesSearchMediaTypesParam & + BoundariesSearchBodyParam & + RequestParameters; export type BoundariesGetCascadeDeleteJobDetailsParameters = RequestParameters; export interface BoundariesCreateCascadeDeleteJobQueryParamProperties { @@ -331,16 +364,23 @@ export interface BoundariesCreateCascadeDeleteJobQueryParam { queryParameters: BoundariesCreateCascadeDeleteJobQueryParamProperties; } -export type BoundariesCreateCascadeDeleteJobParameters = RequestParameters & - BoundariesCreateCascadeDeleteJobQueryParam; +export type BoundariesCreateCascadeDeleteJobParameters = + BoundariesCreateCascadeDeleteJobQueryParam & RequestParameters; export type BoundariesGetParameters = RequestParameters; export interface BoundariesCreateOrUpdateBodyParam { + /** Boundary resource payload to create or update. */ body?: Boundary; } -export type BoundariesCreateOrUpdateParameters = RequestParameters & - BoundariesCreateOrUpdateBodyParam; +export interface BoundariesCreateOrUpdateMediaTypesParam { + /** Request content type */ + contentType?: "application/merge-patch+json"; +} + +export type BoundariesCreateOrUpdateParameters = BoundariesCreateOrUpdateMediaTypesParam & + BoundariesCreateOrUpdateBodyParam & + RequestParameters; export type BoundariesDeleteParameters = RequestParameters; export interface BoundariesGetOverlapQueryParamProperties { @@ -354,30 +394,30 @@ export interface BoundariesGetOverlapQueryParam { queryParameters: BoundariesGetOverlapQueryParamProperties; } -export type BoundariesGetOverlapParameters = RequestParameters & BoundariesGetOverlapQueryParam; +export type BoundariesGetOverlapParameters = BoundariesGetOverlapQueryParam & RequestParameters; export interface CropsListQueryParamProperties { /** Crop phenotypes of the resource. */ - phenotypes?: string[]; + phenotypes?: Array; /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -391,42 +431,50 @@ export interface CropsListQueryParam { queryParameters?: CropsListQueryParamProperties; } -export type CropsListParameters = RequestParameters & CropsListQueryParam; +export type CropsListParameters = CropsListQueryParam & RequestParameters; export type CropsGetParameters = RequestParameters; export interface CropsCreateOrUpdateBodyParam { + /** Crop resource payload to create or update. */ body?: Crop; } -export type CropsCreateOrUpdateParameters = RequestParameters & CropsCreateOrUpdateBodyParam; +export interface CropsCreateOrUpdateMediaTypesParam { + /** Request content type */ + contentType?: "application/merge-patch+json"; +} + +export type CropsCreateOrUpdateParameters = CropsCreateOrUpdateMediaTypesParam & + CropsCreateOrUpdateBodyParam & + RequestParameters; export type CropsDeleteParameters = RequestParameters; export interface CropVarietiesListByCropIdQueryParamProperties { /** CropIds of the resource. */ - cropIds?: string[]; + cropIds?: Array; /** Brands of the resource. */ - brands?: string[]; + brands?: Array; /** Products of the resource. */ - products?: string[]; + products?: Array; /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -440,35 +488,35 @@ export interface CropVarietiesListByCropIdQueryParam { queryParameters?: CropVarietiesListByCropIdQueryParamProperties; } -export type CropVarietiesListByCropIdParameters = RequestParameters & - CropVarietiesListByCropIdQueryParam; +export type CropVarietiesListByCropIdParameters = CropVarietiesListByCropIdQueryParam & + RequestParameters; export interface CropVarietiesListQueryParamProperties { /** CropIds of the resource. */ - cropIds?: string[]; + cropIds?: Array; /** Brands of the resource. */ - brands?: string[]; + brands?: Array; /** Products of the resource. */ - products?: string[]; + products?: Array; /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -482,37 +530,44 @@ export interface CropVarietiesListQueryParam { queryParameters?: CropVarietiesListQueryParamProperties; } -export type CropVarietiesListParameters = RequestParameters & CropVarietiesListQueryParam; +export type CropVarietiesListParameters = CropVarietiesListQueryParam & RequestParameters; export type CropVarietiesGetParameters = RequestParameters; export interface CropVarietiesCreateOrUpdateBodyParam { + /** Crop variety resource payload to create or update. */ body?: CropVariety; } -export type CropVarietiesCreateOrUpdateParameters = RequestParameters & - CropVarietiesCreateOrUpdateBodyParam; +export interface CropVarietiesCreateOrUpdateMediaTypesParam { + /** Request content type */ + contentType?: "application/merge-patch+json"; +} + +export type CropVarietiesCreateOrUpdateParameters = CropVarietiesCreateOrUpdateMediaTypesParam & + CropVarietiesCreateOrUpdateBodyParam & + RequestParameters; export type CropVarietiesDeleteParameters = RequestParameters; export interface FarmersListQueryParamProperties { /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -526,14 +581,22 @@ export interface FarmersListQueryParam { queryParameters?: FarmersListQueryParamProperties; } -export type FarmersListParameters = RequestParameters & FarmersListQueryParam; +export type FarmersListParameters = FarmersListQueryParam & RequestParameters; export type FarmersGetParameters = RequestParameters; export interface FarmersCreateOrUpdateBodyParam { + /** Farmer resource payload to create or update. */ body?: Farmer; } -export type FarmersCreateOrUpdateParameters = RequestParameters & FarmersCreateOrUpdateBodyParam; +export interface FarmersCreateOrUpdateMediaTypesParam { + /** Request content type */ + contentType?: "application/merge-patch+json"; +} + +export type FarmersCreateOrUpdateParameters = FarmersCreateOrUpdateMediaTypesParam & + FarmersCreateOrUpdateBodyParam & + RequestParameters; export type FarmersDeleteParameters = RequestParameters; export type FarmersGetCascadeDeleteJobDetailsParameters = RequestParameters; @@ -546,37 +609,45 @@ export interface FarmersCreateCascadeDeleteJobQueryParam { queryParameters: FarmersCreateCascadeDeleteJobQueryParamProperties; } -export type FarmersCreateCascadeDeleteJobParameters = RequestParameters & - FarmersCreateCascadeDeleteJobQueryParam; +export type FarmersCreateCascadeDeleteJobParameters = FarmersCreateCascadeDeleteJobQueryParam & + RequestParameters; export interface FarmOperationsCreateDataIngestionJobBodyParam { + /** Job parameters supplied by user. */ body?: FarmOperationDataIngestionJob; } -export type FarmOperationsCreateDataIngestionJobParameters = RequestParameters & - FarmOperationsCreateDataIngestionJobBodyParam; +export interface FarmOperationsCreateDataIngestionJobMediaTypesParam { + /** Request content type */ + contentType?: "application/json"; +} + +export type FarmOperationsCreateDataIngestionJobParameters = + FarmOperationsCreateDataIngestionJobMediaTypesParam & + FarmOperationsCreateDataIngestionJobBodyParam & + RequestParameters; export type FarmOperationsGetDataIngestionJobDetailsParameters = RequestParameters; export interface FarmsListByFarmerIdQueryParamProperties { /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -590,28 +661,28 @@ export interface FarmsListByFarmerIdQueryParam { queryParameters?: FarmsListByFarmerIdQueryParamProperties; } -export type FarmsListByFarmerIdParameters = RequestParameters & FarmsListByFarmerIdQueryParam; +export type FarmsListByFarmerIdParameters = FarmsListByFarmerIdQueryParam & RequestParameters; export interface FarmsListQueryParamProperties { /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -625,14 +696,22 @@ export interface FarmsListQueryParam { queryParameters?: FarmsListQueryParamProperties; } -export type FarmsListParameters = RequestParameters & FarmsListQueryParam; +export type FarmsListParameters = FarmsListQueryParam & RequestParameters; export type FarmsGetParameters = RequestParameters; export interface FarmsCreateOrUpdateBodyParam { + /** Farm resource payload to create or update. */ body?: Farm; } -export type FarmsCreateOrUpdateParameters = RequestParameters & FarmsCreateOrUpdateBodyParam; +export interface FarmsCreateOrUpdateMediaTypesParam { + /** Request content type */ + contentType?: "application/merge-patch+json"; +} + +export type FarmsCreateOrUpdateParameters = FarmsCreateOrUpdateMediaTypesParam & + FarmsCreateOrUpdateBodyParam & + RequestParameters; export type FarmsDeleteParameters = RequestParameters; export type FarmsGetCascadeDeleteJobDetailsParameters = RequestParameters; @@ -647,31 +726,31 @@ export interface FarmsCreateCascadeDeleteJobQueryParam { queryParameters: FarmsCreateCascadeDeleteJobQueryParamProperties; } -export type FarmsCreateCascadeDeleteJobParameters = RequestParameters & - FarmsCreateCascadeDeleteJobQueryParam; +export type FarmsCreateCascadeDeleteJobParameters = FarmsCreateCascadeDeleteJobQueryParam & + RequestParameters; export interface FieldsListByFarmerIdQueryParamProperties { /** Farm Ids of the resource. */ - farmIds?: string[]; + farmIds?: Array; /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -685,30 +764,30 @@ export interface FieldsListByFarmerIdQueryParam { queryParameters?: FieldsListByFarmerIdQueryParamProperties; } -export type FieldsListByFarmerIdParameters = RequestParameters & FieldsListByFarmerIdQueryParam; +export type FieldsListByFarmerIdParameters = FieldsListByFarmerIdQueryParam & RequestParameters; export interface FieldsListQueryParamProperties { /** Farm Ids of the resource. */ - farmIds?: string[]; + farmIds?: Array; /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -722,14 +801,22 @@ export interface FieldsListQueryParam { queryParameters?: FieldsListQueryParamProperties; } -export type FieldsListParameters = RequestParameters & FieldsListQueryParam; +export type FieldsListParameters = FieldsListQueryParam & RequestParameters; export type FieldsGetParameters = RequestParameters; export interface FieldsCreateOrUpdateBodyParam { + /** Field resource payload to create or update. */ body?: Field; } -export type FieldsCreateOrUpdateParameters = RequestParameters & FieldsCreateOrUpdateBodyParam; +export interface FieldsCreateOrUpdateMediaTypesParam { + /** Request content type */ + contentType?: "application/merge-patch+json"; +} + +export type FieldsCreateOrUpdateParameters = FieldsCreateOrUpdateMediaTypesParam & + FieldsCreateOrUpdateBodyParam & + RequestParameters; export type FieldsDeleteParameters = RequestParameters; export type FieldsGetCascadeDeleteJobDetailsParameters = RequestParameters; @@ -744,8 +831,8 @@ export interface FieldsCreateCascadeDeleteJobQueryParam { queryParameters: FieldsCreateCascadeDeleteJobQueryParamProperties; } -export type FieldsCreateCascadeDeleteJobParameters = RequestParameters & - FieldsCreateCascadeDeleteJobQueryParam; +export type FieldsCreateCascadeDeleteJobParameters = FieldsCreateCascadeDeleteJobQueryParam & + RequestParameters; export interface HarvestDataListByFarmerIdQueryParamProperties { /** Minimum Yield value(inclusive). */ @@ -773,46 +860,46 @@ export interface HarvestDataListByFarmerIdQueryParamProperties { /** Maximum AvgSpeed value (inclusive). */ maxAvgSpeed?: number; /** Sources of the operation data. */ - sources?: string[]; + sources?: Array; /** Boundary IDs associated with operation data. */ - associatedBoundaryIds?: string[]; + associatedBoundaryIds?: Array; /** Operation boundary IDs associated with operation data. */ - operationBoundaryIds?: string[]; + operationBoundaryIds?: Array; /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationStartDateTime?: Date; + minOperationStartDateTime?: Date | string; /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationStartDateTime?: Date; + maxOperationStartDateTime?: Date | string; /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationEndDateTime?: Date; + minOperationEndDateTime?: Date | string; /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationEndDateTime?: Date; + maxOperationEndDateTime?: Date | string; /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationModifiedDateTime?: Date; + minOperationModifiedDateTime?: Date | string; /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationModifiedDateTime?: Date; + maxOperationModifiedDateTime?: Date | string; /** Minimum area for which operation was applied (inclusive). */ minArea?: number; /** Maximum area for which operation was applied (inclusive). */ maxArea?: number; /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -826,8 +913,8 @@ export interface HarvestDataListByFarmerIdQueryParam { queryParameters?: HarvestDataListByFarmerIdQueryParamProperties; } -export type HarvestDataListByFarmerIdParameters = RequestParameters & - HarvestDataListByFarmerIdQueryParam; +export type HarvestDataListByFarmerIdParameters = HarvestDataListByFarmerIdQueryParam & + RequestParameters; export interface HarvestDataListQueryParamProperties { /** Minimum Yield value(inclusive). */ @@ -855,46 +942,46 @@ export interface HarvestDataListQueryParamProperties { /** Maximum AvgSpeed value (inclusive). */ maxAvgSpeed?: number; /** Sources of the operation data. */ - sources?: string[]; + sources?: Array; /** Boundary IDs associated with operation data. */ - associatedBoundaryIds?: string[]; + associatedBoundaryIds?: Array; /** Operation boundary IDs associated with operation data. */ - operationBoundaryIds?: string[]; + operationBoundaryIds?: Array; /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationStartDateTime?: Date; + minOperationStartDateTime?: Date | string; /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationStartDateTime?: Date; + maxOperationStartDateTime?: Date | string; /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationEndDateTime?: Date; + minOperationEndDateTime?: Date | string; /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationEndDateTime?: Date; + maxOperationEndDateTime?: Date | string; /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationModifiedDateTime?: Date; + minOperationModifiedDateTime?: Date | string; /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationModifiedDateTime?: Date; + maxOperationModifiedDateTime?: Date | string; /** Minimum area for which operation was applied (inclusive). */ minArea?: number; /** Maximum area for which operation was applied (inclusive). */ maxArea?: number; /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -908,45 +995,60 @@ export interface HarvestDataListQueryParam { queryParameters?: HarvestDataListQueryParamProperties; } -export type HarvestDataListParameters = RequestParameters & HarvestDataListQueryParam; +export type HarvestDataListParameters = HarvestDataListQueryParam & RequestParameters; export type HarvestDataGetParameters = RequestParameters; export interface HarvestDataCreateOrUpdateBodyParam { + /** Harvest data resource payload to create or update. */ body?: HarvestData; } -export type HarvestDataCreateOrUpdateParameters = RequestParameters & - HarvestDataCreateOrUpdateBodyParam; +export interface HarvestDataCreateOrUpdateMediaTypesParam { + /** Request content type */ + contentType?: "application/merge-patch+json"; +} + +export type HarvestDataCreateOrUpdateParameters = HarvestDataCreateOrUpdateMediaTypesParam & + HarvestDataCreateOrUpdateBodyParam & + RequestParameters; export type HarvestDataDeleteParameters = RequestParameters; export interface ImageProcessingCreateRasterizeJobBodyParam { + /** Job parameters supplied by user. */ body?: ImageProcessingRasterizeJob; } -export type ImageProcessingCreateRasterizeJobParameters = RequestParameters & - ImageProcessingCreateRasterizeJobBodyParam; +export interface ImageProcessingCreateRasterizeJobMediaTypesParam { + /** Request content type */ + contentType?: "application/json"; +} + +export type ImageProcessingCreateRasterizeJobParameters = + ImageProcessingCreateRasterizeJobMediaTypesParam & + ImageProcessingCreateRasterizeJobBodyParam & + RequestParameters; export type ImageProcessingGetRasterizeJobParameters = RequestParameters; export interface OAuthProvidersListQueryParamProperties { /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -960,32 +1062,39 @@ export interface OAuthProvidersListQueryParam { queryParameters?: OAuthProvidersListQueryParamProperties; } -export type OAuthProvidersListParameters = RequestParameters & OAuthProvidersListQueryParam; +export type OAuthProvidersListParameters = OAuthProvidersListQueryParam & RequestParameters; export type OAuthProvidersGetParameters = RequestParameters; export interface OAuthProvidersCreateOrUpdateBodyParam { + /** OauthProvider resource payload to create or update. */ body?: OAuthProvider; } -export type OAuthProvidersCreateOrUpdateParameters = RequestParameters & - OAuthProvidersCreateOrUpdateBodyParam; +export interface OAuthProvidersCreateOrUpdateMediaTypesParam { + /** Request content type */ + contentType?: "application/merge-patch+json"; +} + +export type OAuthProvidersCreateOrUpdateParameters = OAuthProvidersCreateOrUpdateMediaTypesParam & + OAuthProvidersCreateOrUpdateBodyParam & + RequestParameters; export type OAuthProvidersDeleteParameters = RequestParameters; export interface OAuthTokensListQueryParamProperties { /** Name of AuthProvider. */ - authProviderIds?: string[]; + authProviderIds?: Array; /** List of farmers. */ - farmerIds?: string[]; + farmerIds?: Array; /** If the token object is valid. */ isValid?: boolean; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -999,14 +1108,22 @@ export interface OAuthTokensListQueryParam { queryParameters?: OAuthTokensListQueryParamProperties; } -export type OAuthTokensListParameters = RequestParameters & OAuthTokensListQueryParam; +export type OAuthTokensListParameters = OAuthTokensListQueryParam & RequestParameters; export interface OAuthTokensGetOAuthConnectionLinkBodyParam { + /** OAuth Connect Request. */ body?: OAuthConnectRequest; } -export type OAuthTokensGetOAuthConnectionLinkParameters = RequestParameters & - OAuthTokensGetOAuthConnectionLinkBodyParam; +export interface OAuthTokensGetOAuthConnectionLinkMediaTypesParam { + /** Request content type */ + contentType?: "application/json"; +} + +export type OAuthTokensGetOAuthConnectionLinkParameters = + OAuthTokensGetOAuthConnectionLinkMediaTypesParam & + OAuthTokensGetOAuthConnectionLinkBodyParam & + RequestParameters; export type OAuthTokensGetCascadeDeleteJobDetailsParameters = RequestParameters; export interface OAuthTokensCreateCascadeDeleteJobQueryParamProperties { @@ -1020,8 +1137,8 @@ export interface OAuthTokensCreateCascadeDeleteJobQueryParam { queryParameters: OAuthTokensCreateCascadeDeleteJobQueryParamProperties; } -export type OAuthTokensCreateCascadeDeleteJobParameters = RequestParameters & - OAuthTokensCreateCascadeDeleteJobQueryParam; +export type OAuthTokensCreateCascadeDeleteJobParameters = + OAuthTokensCreateCascadeDeleteJobQueryParam & RequestParameters; export interface PlantingDataListByFarmerIdQueryParamProperties { /** Minimum AvgPlantingRate value(inclusive). */ @@ -1037,46 +1154,46 @@ export interface PlantingDataListByFarmerIdQueryParamProperties { /** Maximum AvgMaterial value (inclusive). */ maxAvgMaterial?: number; /** Sources of the operation data. */ - sources?: string[]; + sources?: Array; /** Boundary IDs associated with operation data. */ - associatedBoundaryIds?: string[]; + associatedBoundaryIds?: Array; /** Operation boundary IDs associated with operation data. */ - operationBoundaryIds?: string[]; + operationBoundaryIds?: Array; /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationStartDateTime?: Date; + minOperationStartDateTime?: Date | string; /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationStartDateTime?: Date; + maxOperationStartDateTime?: Date | string; /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationEndDateTime?: Date; + minOperationEndDateTime?: Date | string; /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationEndDateTime?: Date; + maxOperationEndDateTime?: Date | string; /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationModifiedDateTime?: Date; + minOperationModifiedDateTime?: Date | string; /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationModifiedDateTime?: Date; + maxOperationModifiedDateTime?: Date | string; /** Minimum area for which operation was applied (inclusive). */ minArea?: number; /** Maximum area for which operation was applied (inclusive). */ maxArea?: number; /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -1090,8 +1207,8 @@ export interface PlantingDataListByFarmerIdQueryParam { queryParameters?: PlantingDataListByFarmerIdQueryParamProperties; } -export type PlantingDataListByFarmerIdParameters = RequestParameters & - PlantingDataListByFarmerIdQueryParam; +export type PlantingDataListByFarmerIdParameters = PlantingDataListByFarmerIdQueryParam & + RequestParameters; export interface PlantingDataListQueryParamProperties { /** Minimum AvgPlantingRate value(inclusive). */ @@ -1107,46 +1224,46 @@ export interface PlantingDataListQueryParamProperties { /** Maximum AvgMaterial value (inclusive). */ maxAvgMaterial?: number; /** Sources of the operation data. */ - sources?: string[]; + sources?: Array; /** Boundary IDs associated with operation data. */ - associatedBoundaryIds?: string[]; + associatedBoundaryIds?: Array; /** Operation boundary IDs associated with operation data. */ - operationBoundaryIds?: string[]; + operationBoundaryIds?: Array; /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationStartDateTime?: Date; + minOperationStartDateTime?: Date | string; /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationStartDateTime?: Date; + maxOperationStartDateTime?: Date | string; /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationEndDateTime?: Date; + minOperationEndDateTime?: Date | string; /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationEndDateTime?: Date; + maxOperationEndDateTime?: Date | string; /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationModifiedDateTime?: Date; + minOperationModifiedDateTime?: Date | string; /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationModifiedDateTime?: Date; + maxOperationModifiedDateTime?: Date | string; /** Minimum area for which operation was applied (inclusive). */ minArea?: number; /** Maximum area for which operation was applied (inclusive). */ maxArea?: number; /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -1160,15 +1277,22 @@ export interface PlantingDataListQueryParam { queryParameters?: PlantingDataListQueryParamProperties; } -export type PlantingDataListParameters = RequestParameters & PlantingDataListQueryParam; +export type PlantingDataListParameters = PlantingDataListQueryParam & RequestParameters; export type PlantingDataGetParameters = RequestParameters; export interface PlantingDataCreateOrUpdateBodyParam { + /** Planting data resource payload to create or update. */ body?: PlantingData; } -export type PlantingDataCreateOrUpdateParameters = RequestParameters & - PlantingDataCreateOrUpdateBodyParam; +export interface PlantingDataCreateOrUpdateMediaTypesParam { + /** Request content type */ + contentType?: "application/merge-patch+json"; +} + +export type PlantingDataCreateOrUpdateParameters = PlantingDataCreateOrUpdateMediaTypesParam & + PlantingDataCreateOrUpdateBodyParam & + RequestParameters; export type PlantingDataDeleteParameters = RequestParameters; export interface ScenesListQueryParamProperties { @@ -1181,19 +1305,19 @@ export interface ScenesListQueryParamProperties { /** Source name of scene data, default value Sentinel_2_L2A (Sentinel 2 L2A). */ source?: string; /** Scene start UTC datetime (inclusive), sample format: yyyy-MM-ddThh:mm:ssZ. */ - startDateTime?: Date; + startDateTime?: Date | string; /** Scene end UTC datetime (inclusive), sample format: yyyy-MM-dThh:mm:ssZ. */ - endDateTime?: Date; + endDateTime?: Date | string; /** Filter scenes with cloud coverage percentage less than max value. Range [0 to 100.0]. */ maxCloudCoveragePercentage?: number; /** Filter scenes with dark pixel coverage percentage less than max value. Range [0 to 100.0]. */ maxDarkPixelCoveragePercentage?: number; /** List of image names to be filtered. */ - imageNames?: string[]; + imageNames?: Array; /** List of image resolutions in meters to be filtered. */ - imageResolutions?: number[]; + imageResolutions?: Array; /** List of image formats to be filtered. */ - imageFormats?: string[]; + imageFormats?: Array; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -1207,14 +1331,22 @@ export interface ScenesListQueryParam { queryParameters: ScenesListQueryParamProperties; } -export type ScenesListParameters = RequestParameters & ScenesListQueryParam; +export type ScenesListParameters = ScenesListQueryParam & RequestParameters; export interface ScenesCreateSatelliteDataIngestionJobBodyParam { + /** Job parameters supplied by user. */ body?: SatelliteDataIngestionJob; } -export type ScenesCreateSatelliteDataIngestionJobParameters = RequestParameters & - ScenesCreateSatelliteDataIngestionJobBodyParam; +export interface ScenesCreateSatelliteDataIngestionJobMediaTypesParam { + /** Request content type */ + contentType?: "application/json"; +} + +export type ScenesCreateSatelliteDataIngestionJobParameters = + ScenesCreateSatelliteDataIngestionJobMediaTypesParam & + ScenesCreateSatelliteDataIngestionJobBodyParam & + RequestParameters; export type ScenesGetSatelliteDataIngestionJobDetailsParameters = RequestParameters; export interface ScenesDownloadQueryParamProperties { @@ -1226,19 +1358,19 @@ export interface ScenesDownloadQueryParam { queryParameters: ScenesDownloadQueryParamProperties; } -export type ScenesDownloadParameters = RequestParameters & ScenesDownloadQueryParam; +export type ScenesDownloadParameters = ScenesDownloadQueryParam & RequestParameters; export interface SeasonalFieldsListByFarmerIdQueryParamProperties { /** Farm Ids of the resource. */ - farmIds?: string[]; + farmIds?: Array; /** Field Ids of the resource. */ - fieldIds?: string[]; + fieldIds?: Array; /** Season Ids of the resource. */ - seasonIds?: string[]; + seasonIds?: Array; /** CropVarietyIds of the resource. */ - cropVarietyIds?: string[]; + cropVarietyIds?: Array; /** Ids of the crop it belongs to. */ - cropIds?: string[]; + cropIds?: Array; /** Minimum average yield value of the seasonal field(inclusive). */ minAvgYieldValue?: number; /** Maximum average yield value of the seasonal field(inclusive). */ @@ -1252,28 +1384,28 @@ export interface SeasonalFieldsListByFarmerIdQueryParamProperties { /** Unit of average seed population value attribute. */ avgSeedPopulationUnit?: string; /** Minimum planting datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - minPlantingDateTime?: Date; + minPlantingDateTime?: Date | string; /** Maximum planting datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - maxPlantingDateTime?: Date; + maxPlantingDateTime?: Date | string; /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -1287,20 +1419,20 @@ export interface SeasonalFieldsListByFarmerIdQueryParam { queryParameters?: SeasonalFieldsListByFarmerIdQueryParamProperties; } -export type SeasonalFieldsListByFarmerIdParameters = RequestParameters & - SeasonalFieldsListByFarmerIdQueryParam; +export type SeasonalFieldsListByFarmerIdParameters = SeasonalFieldsListByFarmerIdQueryParam & + RequestParameters; export interface SeasonalFieldsListQueryParamProperties { /** Farm Ids of the resource. */ - farmIds?: string[]; + farmIds?: Array; /** Field Ids of the resource. */ - fieldIds?: string[]; + fieldIds?: Array; /** Season Ids of the resource. */ - seasonIds?: string[]; + seasonIds?: Array; /** CropVarietyIds of the resource. */ - cropVarietyIds?: string[]; + cropVarietyIds?: Array; /** Ids of the crop it belongs to. */ - cropIds?: string[]; + cropIds?: Array; /** Minimum average yield value of the seasonal field(inclusive). */ minAvgYieldValue?: number; /** Maximum average yield value of the seasonal field(inclusive). */ @@ -1314,28 +1446,28 @@ export interface SeasonalFieldsListQueryParamProperties { /** Unit of average seed population value attribute. */ avgSeedPopulationUnit?: string; /** Minimum planting datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - minPlantingDateTime?: Date; + minPlantingDateTime?: Date | string; /** Maximum planting datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - maxPlantingDateTime?: Date; + maxPlantingDateTime?: Date | string; /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -1349,15 +1481,22 @@ export interface SeasonalFieldsListQueryParam { queryParameters?: SeasonalFieldsListQueryParamProperties; } -export type SeasonalFieldsListParameters = RequestParameters & SeasonalFieldsListQueryParam; +export type SeasonalFieldsListParameters = SeasonalFieldsListQueryParam & RequestParameters; export type SeasonalFieldsGetParameters = RequestParameters; export interface SeasonalFieldsCreateOrUpdateBodyParam { + /** Seasonal field resource payload to create or update. */ body?: SeasonalField; } -export type SeasonalFieldsCreateOrUpdateParameters = RequestParameters & - SeasonalFieldsCreateOrUpdateBodyParam; +export interface SeasonalFieldsCreateOrUpdateMediaTypesParam { + /** Request content type */ + contentType?: "application/merge-patch+json"; +} + +export type SeasonalFieldsCreateOrUpdateParameters = SeasonalFieldsCreateOrUpdateMediaTypesParam & + SeasonalFieldsCreateOrUpdateBodyParam & + RequestParameters; export type SeasonalFieldsDeleteParameters = RequestParameters; export type SeasonalFieldsGetCascadeDeleteJobDetailsParameters = RequestParameters; @@ -1372,39 +1511,39 @@ export interface SeasonalFieldsCreateCascadeDeleteJobQueryParam { queryParameters: SeasonalFieldsCreateCascadeDeleteJobQueryParamProperties; } -export type SeasonalFieldsCreateCascadeDeleteJobParameters = RequestParameters & - SeasonalFieldsCreateCascadeDeleteJobQueryParam; +export type SeasonalFieldsCreateCascadeDeleteJobParameters = + SeasonalFieldsCreateCascadeDeleteJobQueryParam & RequestParameters; export interface SeasonsListQueryParamProperties { /** Minimum season start datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - minStartDateTime?: Date; + minStartDateTime?: Date | string; /** Maximum season start datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - maxStartDateTime?: Date; + maxStartDateTime?: Date | string; /** Minimum season end datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - minEndDateTime?: Date; + minEndDateTime?: Date | string; /** Maximum season end datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */ - maxEndDateTime?: Date; + maxEndDateTime?: Date | string; /** Years of the resource. */ - years?: number[]; + years?: Array; /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -1418,14 +1557,22 @@ export interface SeasonsListQueryParam { queryParameters?: SeasonsListQueryParamProperties; } -export type SeasonsListParameters = RequestParameters & SeasonsListQueryParam; +export type SeasonsListParameters = SeasonsListQueryParam & RequestParameters; export type SeasonsGetParameters = RequestParameters; export interface SeasonsCreateOrUpdateBodyParam { + /** Season resource payload to create or update. */ body?: Season; } -export type SeasonsCreateOrUpdateParameters = RequestParameters & SeasonsCreateOrUpdateBodyParam; +export interface SeasonsCreateOrUpdateMediaTypesParam { + /** Request content type */ + contentType?: "application/merge-patch+json"; +} + +export type SeasonsCreateOrUpdateParameters = SeasonsCreateOrUpdateMediaTypesParam & + SeasonsCreateOrUpdateBodyParam & + RequestParameters; export type SeasonsDeleteParameters = RequestParameters; export interface TillageDataListByFarmerIdQueryParamProperties { @@ -1438,46 +1585,46 @@ export interface TillageDataListByFarmerIdQueryParamProperties { /** Maximum pressure applied by a tillage implement (inclusive). */ maxTillagePressure?: number; /** Sources of the operation data. */ - sources?: string[]; + sources?: Array; /** Boundary IDs associated with operation data. */ - associatedBoundaryIds?: string[]; + associatedBoundaryIds?: Array; /** Operation boundary IDs associated with operation data. */ - operationBoundaryIds?: string[]; + operationBoundaryIds?: Array; /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationStartDateTime?: Date; + minOperationStartDateTime?: Date | string; /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationStartDateTime?: Date; + maxOperationStartDateTime?: Date | string; /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationEndDateTime?: Date; + minOperationEndDateTime?: Date | string; /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationEndDateTime?: Date; + maxOperationEndDateTime?: Date | string; /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationModifiedDateTime?: Date; + minOperationModifiedDateTime?: Date | string; /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationModifiedDateTime?: Date; + maxOperationModifiedDateTime?: Date | string; /** Minimum area for which operation was applied (inclusive). */ minArea?: number; /** Maximum area for which operation was applied (inclusive). */ maxArea?: number; /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -1491,8 +1638,8 @@ export interface TillageDataListByFarmerIdQueryParam { queryParameters?: TillageDataListByFarmerIdQueryParamProperties; } -export type TillageDataListByFarmerIdParameters = RequestParameters & - TillageDataListByFarmerIdQueryParam; +export type TillageDataListByFarmerIdParameters = TillageDataListByFarmerIdQueryParam & + RequestParameters; export interface TillageDataListQueryParamProperties { /** Minimum measured tillage depth (inclusive). */ @@ -1504,46 +1651,46 @@ export interface TillageDataListQueryParamProperties { /** Maximum pressure applied by a tillage implement (inclusive). */ maxTillagePressure?: number; /** Sources of the operation data. */ - sources?: string[]; + sources?: Array; /** Boundary IDs associated with operation data. */ - associatedBoundaryIds?: string[]; + associatedBoundaryIds?: Array; /** Operation boundary IDs associated with operation data. */ - operationBoundaryIds?: string[]; + operationBoundaryIds?: Array; /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationStartDateTime?: Date; + minOperationStartDateTime?: Date | string; /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationStartDateTime?: Date; + maxOperationStartDateTime?: Date | string; /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationEndDateTime?: Date; + minOperationEndDateTime?: Date | string; /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationEndDateTime?: Date; + maxOperationEndDateTime?: Date | string; /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - minOperationModifiedDateTime?: Date; + minOperationModifiedDateTime?: Date | string; /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */ - maxOperationModifiedDateTime?: Date; + maxOperationModifiedDateTime?: Date | string; /** Minimum area for which operation was applied (inclusive). */ minArea?: number; /** Maximum area for which operation was applied (inclusive). */ maxArea?: number; /** Ids of the resource. */ - ids?: string[]; + ids?: Array; /** Names of the resource. */ - names?: string[]; + names?: Array; /** * Filters on key-value pairs within the Properties object. - * eg. "\{testKey\} eq \{testValue\}". + * eg. "{testKey} eq {testValue}". */ - propertyFilters?: string[]; + propertyFilters?: Array; /** Statuses of the resource. */ - statuses?: string[]; + statuses?: Array; /** Minimum creation date of resource (inclusive). */ - minCreatedDateTime?: Date; + minCreatedDateTime?: Date | string; /** Maximum creation date of resource (inclusive). */ - maxCreatedDateTime?: Date; + maxCreatedDateTime?: Date | string; /** Minimum last modified date of resource (inclusive). */ - minLastModifiedDateTime?: Date; + minLastModifiedDateTime?: Date | string; /** Maximum last modified date of resource (inclusive). */ - maxLastModifiedDateTime?: Date; + maxLastModifiedDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -1557,15 +1704,22 @@ export interface TillageDataListQueryParam { queryParameters?: TillageDataListQueryParamProperties; } -export type TillageDataListParameters = RequestParameters & TillageDataListQueryParam; +export type TillageDataListParameters = TillageDataListQueryParam & RequestParameters; export type TillageDataGetParameters = RequestParameters; export interface TillageDataCreateOrUpdateBodyParam { + /** Tillage data resource payload to create or update. */ body?: TillageData; } -export type TillageDataCreateOrUpdateParameters = RequestParameters & - TillageDataCreateOrUpdateBodyParam; +export interface TillageDataCreateOrUpdateMediaTypesParam { + /** Request content type */ + contentType?: "application/merge-patch+json"; +} + +export type TillageDataCreateOrUpdateParameters = TillageDataCreateOrUpdateMediaTypesParam & + TillageDataCreateOrUpdateBodyParam & + RequestParameters; export type TillageDataDeleteParameters = RequestParameters; export interface WeatherListQueryParamProperties { @@ -1580,9 +1734,9 @@ export interface WeatherListQueryParamProperties { /** Granularity of weather data (daily/hourly). */ granularity: string; /** Weather data start UTC date-time (inclusive), sample format: yyyy-MM-ddTHH:mm:ssZ. */ - startDateTime?: Date; + startDateTime?: Date | string; /** Weather data end UTC date-time (inclusive), sample format: yyyy-MM-ddTHH:mm:ssZ. */ - endDateTime?: Date; + endDateTime?: Date | string; /** * Maximum number of items needed (inclusive). * Minimum = 10, Maximum = 1000, Default value = 50. @@ -1596,20 +1750,34 @@ export interface WeatherListQueryParam { queryParameters: WeatherListQueryParamProperties; } -export type WeatherListParameters = RequestParameters & WeatherListQueryParam; +export type WeatherListParameters = WeatherListQueryParam & RequestParameters; export type WeatherGetDataIngestionJobDetailsParameters = RequestParameters; export interface WeatherCreateDataIngestionJobBodyParam { + /** Job parameters supplied by user. */ body?: WeatherDataIngestionJob; } -export type WeatherCreateDataIngestionJobParameters = RequestParameters & - WeatherCreateDataIngestionJobBodyParam; +export interface WeatherCreateDataIngestionJobMediaTypesParam { + /** Request content type */ + contentType?: "application/json"; +} + +export type WeatherCreateDataIngestionJobParameters = WeatherCreateDataIngestionJobMediaTypesParam & + WeatherCreateDataIngestionJobBodyParam & + RequestParameters; export type WeatherGetDataDeleteJobDetailsParameters = RequestParameters; export interface WeatherCreateDataDeleteJobBodyParam { + /** Job parameters supplied by user. */ body?: WeatherDataDeleteJob; } -export type WeatherCreateDataDeleteJobParameters = RequestParameters & - WeatherCreateDataDeleteJobBodyParam; +export interface WeatherCreateDataDeleteJobMediaTypesParam { + /** Request content type */ + contentType?: "application/json"; +} + +export type WeatherCreateDataDeleteJobParameters = WeatherCreateDataDeleteJobMediaTypesParam & + WeatherCreateDataDeleteJobBodyParam & + RequestParameters; diff --git a/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts b/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts new file mode 100644 index 000000000000..4868774b8c3b --- /dev/null +++ b/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Client, HttpResponse } from "@azure-rest/core-client"; +import { + LongRunningOperation, + LroEngine, + LroEngineOptions, + LroResponse, + PollerLike, + PollOperationState, +} from "@azure/core-lro"; + +/** + * Helper function that builds a Poller object to help polling a long running operation. + * @param client - Client to use for sending the request to get additional pages. + * @param initialResponse - The initial response. + * @param options - Options to set a resume state or custom polling interval. + * @returns - A poller object to poll for operation state updates and eventually get the final response. + */ +export function getLongRunningPoller( + client: Client, + initialResponse: TResult, + options: LroEngineOptions> = {} +): PollerLike, TResult> { + const poller: LongRunningOperation = { + requestMethod: initialResponse.request.method, + requestPath: initialResponse.request.url, + sendInitialRequest: async () => { + // In the case of Rest Clients we are building the LRO poller object from a response that's the reason + // we are not triggering the initial request here, just extracting the information from the + // response we were provided. + return getLroResponse(initialResponse); + }, + sendPollRequest: async (path) => { + // This is the callback that is going to be called to poll the service + // to get the latest status. We use the client provided and the polling path + // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location + // depending on the lro pattern that the service implements. If non is provided we default to the initial path. + const response = await client.pathUnchecked(path ?? initialResponse.request.url).get(); + return getLroResponse(response as TResult); + }, + }; + + return new LroEngine(poller, options); +} + +/** + * Converts a Rest Client response to a response that the LRO engine knows about + * @param response - a rest client http response + * @returns - An LRO response that the LRO engine can work with + */ +function getLroResponse(response: TResult): LroResponse { + if (Number.isNaN(response.status)) { + throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`); + } + + return { + flatResponse: response, + rawResponse: { + ...response, + statusCode: Number.parseInt(response.status), + body: response.body, + }, + }; +} diff --git a/sdk/agrifood/agrifood-farming-rest/src/responses.ts b/sdk/agrifood/agrifood-farming-rest/src/responses.ts index ad5e3f9632c1..2ba9576fe707 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/responses.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/responses.ts @@ -1,845 +1,857 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { - ApplicationDataListResponse, - ErrorResponse, - ApplicationData, - AttachmentListResponse, - Attachment, - BoundaryListResponse, - CascadeDeleteJob, - Boundary, - BoundaryOverlapResponse, - CropListResponse, - Crop, - CropVarietyListResponse, - CropVariety, - FarmerListResponse, - Farmer, - FarmOperationDataIngestionJob, - FarmListResponse, - Farm, - FieldListResponse, - Field, - HarvestDataListResponse, - HarvestData, - ImageProcessingRasterizeJob, - OAuthProviderListResponse, - OAuthProvider, - OAuthTokenListResponse, - PlantingDataListResponse, - PlantingData, - SceneListResponse, - SatelliteDataIngestionJob, - SeasonalFieldListResponse, - SeasonalField, - SeasonListResponse, - Season, - TillageDataListResponse, - TillageData, - WeatherDataListResponse, - WeatherDataIngestionJob, - WeatherDataDeleteJob, -} from "./models"; import { HttpResponse } from "@azure-rest/core-client"; +import { + ApplicationDataListResponseOutput, + ErrorResponseOutput, + ApplicationDataOutput, + AttachmentListResponseOutput, + AttachmentOutput, + BoundaryListResponseOutput, + CascadeDeleteJobOutput, + BoundaryOutput, + BoundaryOverlapResponseOutput, + CropListResponseOutput, + CropOutput, + CropVarietyListResponseOutput, + CropVarietyOutput, + FarmerListResponseOutput, + FarmerOutput, + FarmOperationDataIngestionJobOutput, + FarmListResponseOutput, + FarmOutput, + FieldListResponseOutput, + FieldOutput, + HarvestDataListResponseOutput, + HarvestDataOutput, + ImageProcessingRasterizeJobOutput, + OAuthProviderListResponseOutput, + OAuthProviderOutput, + OAuthTokenListResponseOutput, + PlantingDataListResponseOutput, + PlantingDataOutput, + SceneListResponseOutput, + SatelliteDataIngestionJobOutput, + SeasonalFieldListResponseOutput, + SeasonalFieldOutput, + SeasonListResponseOutput, + SeasonOutput, + TillageDataListResponseOutput, + TillageDataOutput, + WeatherDataListResponseOutput, + WeatherDataIngestionJobOutput, + WeatherDataDeleteJobOutput, +} from "./outputModels"; /** Returns a paginated list of application data resources under a particular farm. */ export interface ApplicationDataListByFarmerId200Response extends HttpResponse { status: "200"; - body: ApplicationDataListResponse; + body: ApplicationDataListResponseOutput; } /** Returns a paginated list of application data resources under a particular farm. */ export interface ApplicationDataListByFarmerIddefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of application data resources across all farmers. */ export interface ApplicationDataList200Response extends HttpResponse { status: "200"; - body: ApplicationDataListResponse; + body: ApplicationDataListResponseOutput; } /** Returns a paginated list of application data resources across all farmers. */ export interface ApplicationDataListdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Get a specified application data resource under a particular farmer. */ export interface ApplicationDataGet200Response extends HttpResponse { status: "200"; - body: ApplicationData; + body: ApplicationDataOutput; } /** Get a specified application data resource under a particular farmer. */ export interface ApplicationDataGetdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Creates or updates an application data resource under a particular farmer. */ export interface ApplicationDataCreateOrUpdate200Response extends HttpResponse { status: "200"; - body: ApplicationData; + body: ApplicationDataOutput; } /** Creates or updates an application data resource under a particular farmer. */ export interface ApplicationDataCreateOrUpdate201Response extends HttpResponse { status: "201"; - body: ApplicationData; + body: ApplicationDataOutput; } /** Creates or updates an application data resource under a particular farmer. */ export interface ApplicationDataCreateOrUpdatedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Deletes a specified application data resource under a particular farmer. */ export interface ApplicationDataDelete204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes a specified application data resource under a particular farmer. */ export interface ApplicationDataDeletedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of attachment resources under a particular farmer. */ export interface AttachmentsListByFarmerId200Response extends HttpResponse { status: "200"; - body: AttachmentListResponse; + body: AttachmentListResponseOutput; } /** Returns a paginated list of attachment resources under a particular farmer. */ export interface AttachmentsListByFarmerIddefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Gets a specified attachment resource under a particular farmer. */ export interface AttachmentsGet200Response extends HttpResponse { status: "200"; - body: Attachment; + body: AttachmentOutput; } /** Gets a specified attachment resource under a particular farmer. */ export interface AttachmentsGetdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Creates or updates an attachment resource under a particular farmer. */ export interface AttachmentsCreateOrUpdate200Response extends HttpResponse { status: "200"; - body: Attachment; + body: AttachmentOutput; } /** Creates or updates an attachment resource under a particular farmer. */ export interface AttachmentsCreateOrUpdate201Response extends HttpResponse { status: "201"; - body: Attachment; + body: AttachmentOutput; } /** Creates or updates an attachment resource under a particular farmer. */ export interface AttachmentsCreateOrUpdatedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Deletes a specified attachment resource under a particular farmer. */ export interface AttachmentsDelete204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes a specified attachment resource under a particular farmer. */ export interface AttachmentsDeletedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Downloads and returns attachment as response for the given input filePath. */ export interface AttachmentsDownload200Response extends HttpResponse { status: "200"; + body: Record; } /** Downloads and returns attachment as response for the given input filePath. */ export interface AttachmentsDownloaddefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of boundary resources under a particular farmer. */ export interface BoundariesListByFarmerId200Response extends HttpResponse { status: "200"; - body: BoundaryListResponse; + body: BoundaryListResponseOutput; } /** Returns a paginated list of boundary resources under a particular farmer. */ export interface BoundariesListByFarmerIddefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Search for boundaries by fields and intersecting geometry. */ export interface BoundariesSearchByFarmerId200Response extends HttpResponse { status: "200"; - body: BoundaryListResponse; + body: BoundaryListResponseOutput; } /** Search for boundaries by fields and intersecting geometry. */ export interface BoundariesSearchByFarmerIddefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of boundary resources across all farmers. */ export interface BoundariesList200Response extends HttpResponse { status: "200"; - body: BoundaryListResponse; + body: BoundaryListResponseOutput; } /** Returns a paginated list of boundary resources across all farmers. */ export interface BoundariesListdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Search for boundaries across all farmers by fields and intersecting geometry. */ export interface BoundariesSearch200Response extends HttpResponse { status: "200"; - body: BoundaryListResponse; + body: BoundaryListResponseOutput; } /** Search for boundaries across all farmers by fields and intersecting geometry. */ export interface BoundariesSearchdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Get cascade delete job for specified boundary. */ export interface BoundariesGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; } /** Get cascade delete job for specified boundary. */ export interface BoundariesGetCascadeDeleteJobDetailsdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Create a cascade delete job for specified boundary. */ export interface BoundariesCreateCascadeDeleteJob202Response extends HttpResponse { status: "202"; - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; } /** Create a cascade delete job for specified boundary. */ export interface BoundariesCreateCascadeDeleteJobdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Gets a specified boundary resource under a particular farmer. */ export interface BoundariesGet200Response extends HttpResponse { status: "200"; - body: Boundary; + body: BoundaryOutput; } /** Gets a specified boundary resource under a particular farmer. */ export interface BoundariesGetdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Creates or updates a boundary resource. */ export interface BoundariesCreateOrUpdate200Response extends HttpResponse { status: "200"; - body: Boundary; + body: BoundaryOutput; } /** Creates or updates a boundary resource. */ export interface BoundariesCreateOrUpdate201Response extends HttpResponse { status: "201"; - body: Boundary; + body: BoundaryOutput; } /** Creates or updates a boundary resource. */ export interface BoundariesCreateOrUpdatedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Deletes a specified boundary resource under a particular farmer. */ export interface BoundariesDelete204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes a specified boundary resource under a particular farmer. */ export interface BoundariesDeletedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns overlapping acreage between two boundary Ids. */ export interface BoundariesGetOverlap200Response extends HttpResponse { status: "200"; - body: BoundaryOverlapResponse; + body: BoundaryOverlapResponseOutput; } /** Returns overlapping acreage between two boundary Ids. */ export interface BoundariesGetOverlapdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of crop resources. */ export interface CropsList200Response extends HttpResponse { status: "200"; - body: CropListResponse; + body: CropListResponseOutput; } /** Returns a paginated list of crop resources. */ export interface CropsListdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Gets a specified crop resource. */ export interface CropsGet200Response extends HttpResponse { status: "200"; - body: Crop; + body: CropOutput; } /** Gets a specified crop resource. */ export interface CropsGetdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Creates or updates a crop resource. */ export interface CropsCreateOrUpdate200Response extends HttpResponse { status: "200"; - body: Crop; + body: CropOutput; } /** Creates or updates a crop resource. */ export interface CropsCreateOrUpdate201Response extends HttpResponse { status: "201"; - body: Crop; + body: CropOutput; } /** Creates or updates a crop resource. */ export interface CropsCreateOrUpdatedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Deletes Crop for given crop id. */ export interface CropsDelete204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes Crop for given crop id. */ export interface CropsDeletedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of crop variety resources under a particular crop. */ export interface CropVarietiesListByCropId200Response extends HttpResponse { status: "200"; - body: CropVarietyListResponse; + body: CropVarietyListResponseOutput; } /** Returns a paginated list of crop variety resources under a particular crop. */ export interface CropVarietiesListByCropIddefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of crop variety resources across all crops. */ export interface CropVarietiesList200Response extends HttpResponse { status: "200"; - body: CropVarietyListResponse; + body: CropVarietyListResponseOutput; } /** Returns a paginated list of crop variety resources across all crops. */ export interface CropVarietiesListdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Gets a specified crop variety resource under a particular crop. */ export interface CropVarietiesGet200Response extends HttpResponse { status: "200"; - body: CropVariety; + body: CropVarietyOutput; } /** Gets a specified crop variety resource under a particular crop. */ export interface CropVarietiesGetdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Creates or updates a crop variety resource. */ export interface CropVarietiesCreateOrUpdate200Response extends HttpResponse { status: "200"; - body: CropVariety; + body: CropVarietyOutput; } /** Creates or updates a crop variety resource. */ export interface CropVarietiesCreateOrUpdate201Response extends HttpResponse { status: "201"; - body: CropVariety; + body: CropVarietyOutput; } /** Creates or updates a crop variety resource. */ export interface CropVarietiesCreateOrUpdatedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Deletes a specified crop variety resource under a particular crop. */ export interface CropVarietiesDelete204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes a specified crop variety resource under a particular crop. */ export interface CropVarietiesDeletedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of farmer resources. */ export interface FarmersList200Response extends HttpResponse { status: "200"; - body: FarmerListResponse; + body: FarmerListResponseOutput; } /** Returns a paginated list of farmer resources. */ export interface FarmersListdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Gets a specified farmer resource. */ export interface FarmersGet200Response extends HttpResponse { status: "200"; - body: Farmer; + body: FarmerOutput; } /** Gets a specified farmer resource. */ export interface FarmersGetdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Creates or updates a farmer resource. */ export interface FarmersCreateOrUpdate200Response extends HttpResponse { status: "200"; - body: Farmer; + body: FarmerOutput; } /** Creates or updates a farmer resource. */ export interface FarmersCreateOrUpdate201Response extends HttpResponse { status: "201"; - body: Farmer; + body: FarmerOutput; } /** Creates or updates a farmer resource. */ export interface FarmersCreateOrUpdatedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Deletes a specified farmer resource. */ export interface FarmersDelete204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes a specified farmer resource. */ export interface FarmersDeletedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Get a cascade delete job for specified farmer. */ export interface FarmersGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; } /** Get a cascade delete job for specified farmer. */ export interface FarmersGetCascadeDeleteJobDetailsdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Create a cascade delete job for specified farmer. */ export interface FarmersCreateCascadeDeleteJob202Response extends HttpResponse { status: "202"; - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; } /** Create a cascade delete job for specified farmer. */ export interface FarmersCreateCascadeDeleteJobdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Create a farm operation data ingestion job. */ export interface FarmOperationsCreateDataIngestionJob202Response extends HttpResponse { status: "202"; - body: FarmOperationDataIngestionJob; + body: FarmOperationDataIngestionJobOutput; } /** Create a farm operation data ingestion job. */ export interface FarmOperationsCreateDataIngestionJobdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Get a farm operation data ingestion job. */ export interface FarmOperationsGetDataIngestionJobDetails200Response extends HttpResponse { status: "200"; - body: FarmOperationDataIngestionJob; + body: FarmOperationDataIngestionJobOutput; } /** Get a farm operation data ingestion job. */ export interface FarmOperationsGetDataIngestionJobDetailsdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of farm resources under a particular farmer. */ export interface FarmsListByFarmerId200Response extends HttpResponse { status: "200"; - body: FarmListResponse; + body: FarmListResponseOutput; } /** Returns a paginated list of farm resources under a particular farmer. */ export interface FarmsListByFarmerIddefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of farm resources across all farmers. */ export interface FarmsList200Response extends HttpResponse { status: "200"; - body: FarmListResponse; + body: FarmListResponseOutput; } /** Returns a paginated list of farm resources across all farmers. */ export interface FarmsListdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Gets a specified farm resource under a particular farmer. */ export interface FarmsGet200Response extends HttpResponse { status: "200"; - body: Farm; + body: FarmOutput; } /** Gets a specified farm resource under a particular farmer. */ export interface FarmsGetdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Creates or updates a farm resource under a particular farmer. */ export interface FarmsCreateOrUpdate200Response extends HttpResponse { status: "200"; - body: Farm; + body: FarmOutput; } /** Creates or updates a farm resource under a particular farmer. */ export interface FarmsCreateOrUpdate201Response extends HttpResponse { status: "201"; - body: Farm; + body: FarmOutput; } /** Creates or updates a farm resource under a particular farmer. */ export interface FarmsCreateOrUpdatedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Deletes a specified farm resource under a particular farmer. */ export interface FarmsDelete204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes a specified farm resource under a particular farmer. */ export interface FarmsDeletedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Get a cascade delete job for specified farm. */ export interface FarmsGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; } /** Get a cascade delete job for specified farm. */ export interface FarmsGetCascadeDeleteJobDetailsdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Create a cascade delete job for specified farm. */ export interface FarmsCreateCascadeDeleteJob202Response extends HttpResponse { status: "202"; - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; } /** Create a cascade delete job for specified farm. */ export interface FarmsCreateCascadeDeleteJobdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of field resources under a particular farmer. */ export interface FieldsListByFarmerId200Response extends HttpResponse { status: "200"; - body: FieldListResponse; + body: FieldListResponseOutput; } /** Returns a paginated list of field resources under a particular farmer. */ export interface FieldsListByFarmerIddefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of field resources across all farmers. */ export interface FieldsList200Response extends HttpResponse { status: "200"; - body: FieldListResponse; + body: FieldListResponseOutput; } /** Returns a paginated list of field resources across all farmers. */ export interface FieldsListdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Gets a specified field resource under a particular farmer. */ export interface FieldsGet200Response extends HttpResponse { status: "200"; - body: Field; + body: FieldOutput; } /** Gets a specified field resource under a particular farmer. */ export interface FieldsGetdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Creates or Updates a field resource under a particular farmer. */ export interface FieldsCreateOrUpdate200Response extends HttpResponse { status: "200"; - body: Field; + body: FieldOutput; } /** Creates or Updates a field resource under a particular farmer. */ export interface FieldsCreateOrUpdate201Response extends HttpResponse { status: "201"; - body: Field; + body: FieldOutput; } /** Creates or Updates a field resource under a particular farmer. */ export interface FieldsCreateOrUpdatedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Deletes a specified field resource under a particular farmer. */ export interface FieldsDelete204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes a specified field resource under a particular farmer. */ export interface FieldsDeletedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Get a cascade delete job for specified field. */ export interface FieldsGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; } /** Get a cascade delete job for specified field. */ export interface FieldsGetCascadeDeleteJobDetailsdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Create a cascade delete job for specified field. */ export interface FieldsCreateCascadeDeleteJob202Response extends HttpResponse { status: "202"; - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; } /** Create a cascade delete job for specified field. */ export interface FieldsCreateCascadeDeleteJobdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of harvest data resources under a particular farm. */ export interface HarvestDataListByFarmerId200Response extends HttpResponse { status: "200"; - body: HarvestDataListResponse; + body: HarvestDataListResponseOutput; } /** Returns a paginated list of harvest data resources under a particular farm. */ export interface HarvestDataListByFarmerIddefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of harvest data resources across all farmers. */ export interface HarvestDataList200Response extends HttpResponse { status: "200"; - body: HarvestDataListResponse; + body: HarvestDataListResponseOutput; } /** Returns a paginated list of harvest data resources across all farmers. */ export interface HarvestDataListdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Get a specified harvest data resource under a particular farmer. */ export interface HarvestDataGet200Response extends HttpResponse { status: "200"; - body: HarvestData; + body: HarvestDataOutput; } /** Get a specified harvest data resource under a particular farmer. */ export interface HarvestDataGetdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Creates or updates harvest data resource under a particular farmer. */ export interface HarvestDataCreateOrUpdate200Response extends HttpResponse { status: "200"; - body: HarvestData; + body: HarvestDataOutput; } /** Creates or updates harvest data resource under a particular farmer. */ export interface HarvestDataCreateOrUpdate201Response extends HttpResponse { status: "201"; - body: HarvestData; + body: HarvestDataOutput; } /** Creates or updates harvest data resource under a particular farmer. */ export interface HarvestDataCreateOrUpdatedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Deletes a specified harvest data resource under a particular farmer. */ export interface HarvestDataDelete204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes a specified harvest data resource under a particular farmer. */ export interface HarvestDataDeletedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Create a ImageProcessing Rasterize job. */ export interface ImageProcessingCreateRasterizeJob202Response extends HttpResponse { status: "202"; - body: ImageProcessingRasterizeJob; + body: ImageProcessingRasterizeJobOutput; } /** Create a ImageProcessing Rasterize job. */ export interface ImageProcessingCreateRasterizeJobdefaultResponse extends HttpResponse { status: "500"; + body: Record; } /** Get ImageProcessing Rasterize job's details. */ export interface ImageProcessingGetRasterizeJob200Response extends HttpResponse { status: "200"; - body: ImageProcessingRasterizeJob; + body: ImageProcessingRasterizeJobOutput; } /** Returns a paginated list of oauthProvider resources. */ export interface OAuthProvidersList200Response extends HttpResponse { status: "200"; - body: OAuthProviderListResponse; + body: OAuthProviderListResponseOutput; } /** Returns a paginated list of oauthProvider resources. */ export interface OAuthProvidersListdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Get a specified oauthProvider resource. */ export interface OAuthProvidersGet200Response extends HttpResponse { status: "200"; - body: OAuthProvider; + body: OAuthProviderOutput; } /** Get a specified oauthProvider resource. */ export interface OAuthProvidersGetdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Creates or updates an oauthProvider resource. */ export interface OAuthProvidersCreateOrUpdate200Response extends HttpResponse { status: "200"; - body: OAuthProvider; + body: OAuthProviderOutput; } /** Creates or updates an oauthProvider resource. */ export interface OAuthProvidersCreateOrUpdate201Response extends HttpResponse { status: "201"; - body: OAuthProvider; + body: OAuthProviderOutput; } /** Creates or updates an oauthProvider resource. */ export interface OAuthProvidersCreateOrUpdatedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Deletes an specified oauthProvider resource. */ export interface OAuthProvidersDelete204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes an specified oauthProvider resource. */ export interface OAuthProvidersDeletedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a list of OAuthToken documents. */ export interface OAuthTokensList200Response extends HttpResponse { status: "200"; - body: OAuthTokenListResponse; + body: OAuthTokenListResponseOutput; } /** Returns a list of OAuthToken documents. */ export interface OAuthTokensListdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns Connection link needed in the OAuth flow. */ @@ -851,408 +863,413 @@ export interface OAuthTokensGetOAuthConnectionLink200Response extends HttpRespon /** Returns Connection link needed in the OAuth flow. */ export interface OAuthTokensGetOAuthConnectionLinkdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Get cascade delete job details for OAuth tokens for specified job ID. */ export interface OAuthTokensGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; } /** Get cascade delete job details for OAuth tokens for specified job ID. */ export interface OAuthTokensGetCascadeDeleteJobDetailsdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Create a cascade delete job for OAuth tokens. */ export interface OAuthTokensCreateCascadeDeleteJob202Response extends HttpResponse { status: "202"; - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; } /** Create a cascade delete job for OAuth tokens. */ export interface OAuthTokensCreateCascadeDeleteJobdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of planting data resources under a particular farm. */ export interface PlantingDataListByFarmerId200Response extends HttpResponse { status: "200"; - body: PlantingDataListResponse; + body: PlantingDataListResponseOutput; } /** Returns a paginated list of planting data resources under a particular farm. */ export interface PlantingDataListByFarmerIddefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of planting data resources across all farmers. */ export interface PlantingDataList200Response extends HttpResponse { status: "200"; - body: PlantingDataListResponse; + body: PlantingDataListResponseOutput; } /** Returns a paginated list of planting data resources across all farmers. */ export interface PlantingDataListdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Get a specified planting data resource under a particular farmer. */ export interface PlantingDataGet200Response extends HttpResponse { status: "200"; - body: PlantingData; + body: PlantingDataOutput; } /** Get a specified planting data resource under a particular farmer. */ export interface PlantingDataGetdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Creates or updates an planting data resource under a particular farmer. */ export interface PlantingDataCreateOrUpdate200Response extends HttpResponse { status: "200"; - body: PlantingData; + body: PlantingDataOutput; } /** Creates or updates an planting data resource under a particular farmer. */ export interface PlantingDataCreateOrUpdate201Response extends HttpResponse { status: "201"; - body: PlantingData; + body: PlantingDataOutput; } /** Creates or updates an planting data resource under a particular farmer. */ export interface PlantingDataCreateOrUpdatedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Deletes a specified planting data resource under a particular farmer. */ export interface PlantingDataDelete204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes a specified planting data resource under a particular farmer. */ export interface PlantingDataDeletedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of scene resources. */ export interface ScenesList200Response extends HttpResponse { status: "200"; - body: SceneListResponse; + body: SceneListResponseOutput; } /** Returns a paginated list of scene resources. */ export interface ScenesListdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Create a satellite data ingestion job. */ export interface ScenesCreateSatelliteDataIngestionJob202Response extends HttpResponse { status: "202"; - body: SatelliteDataIngestionJob; + body: SatelliteDataIngestionJobOutput; } /** Create a satellite data ingestion job. */ export interface ScenesCreateSatelliteDataIngestionJobdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Get a satellite data ingestion job. */ export interface ScenesGetSatelliteDataIngestionJobDetails200Response extends HttpResponse { status: "200"; - body: SatelliteDataIngestionJob; + body: SatelliteDataIngestionJobOutput; } /** Get a satellite data ingestion job. */ export interface ScenesGetSatelliteDataIngestionJobDetailsdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Downloads and returns file stream as response for the given input filePath. */ export interface ScenesDownload200Response extends HttpResponse { status: "200"; + body: Record; } /** Downloads and returns file stream as response for the given input filePath. */ export interface ScenesDownloaddefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of seasonal field resources under a particular farmer. */ export interface SeasonalFieldsListByFarmerId200Response extends HttpResponse { status: "200"; - body: SeasonalFieldListResponse; + body: SeasonalFieldListResponseOutput; } /** Returns a paginated list of seasonal field resources under a particular farmer. */ export interface SeasonalFieldsListByFarmerIddefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of seasonal field resources across all farmers. */ export interface SeasonalFieldsList200Response extends HttpResponse { status: "200"; - body: SeasonalFieldListResponse; + body: SeasonalFieldListResponseOutput; } /** Returns a paginated list of seasonal field resources across all farmers. */ export interface SeasonalFieldsListdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Gets a specified seasonal field resource under a particular farmer. */ export interface SeasonalFieldsGet200Response extends HttpResponse { status: "200"; - body: SeasonalField; + body: SeasonalFieldOutput; } /** Gets a specified seasonal field resource under a particular farmer. */ export interface SeasonalFieldsGetdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Creates or Updates a seasonal field resource under a particular farmer. */ export interface SeasonalFieldsCreateOrUpdate200Response extends HttpResponse { status: "200"; - body: SeasonalField; + body: SeasonalFieldOutput; } /** Creates or Updates a seasonal field resource under a particular farmer. */ export interface SeasonalFieldsCreateOrUpdate201Response extends HttpResponse { status: "201"; - body: SeasonalField; + body: SeasonalFieldOutput; } /** Creates or Updates a seasonal field resource under a particular farmer. */ export interface SeasonalFieldsCreateOrUpdatedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Deletes a specified seasonal-field resource under a particular farmer. */ export interface SeasonalFieldsDelete204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes a specified seasonal-field resource under a particular farmer. */ export interface SeasonalFieldsDeletedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Get cascade delete job for specified seasonal field. */ export interface SeasonalFieldsGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; } /** Get cascade delete job for specified seasonal field. */ export interface SeasonalFieldsGetCascadeDeleteJobDetailsdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Create a cascade delete job for specified seasonal field. */ export interface SeasonalFieldsCreateCascadeDeleteJob202Response extends HttpResponse { status: "202"; - body: CascadeDeleteJob; + body: CascadeDeleteJobOutput; } /** Create a cascade delete job for specified seasonal field. */ export interface SeasonalFieldsCreateCascadeDeleteJobdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of season resources. */ export interface SeasonsList200Response extends HttpResponse { status: "200"; - body: SeasonListResponse; + body: SeasonListResponseOutput; } /** Returns a paginated list of season resources. */ export interface SeasonsListdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Gets a specified season resource. */ export interface SeasonsGet200Response extends HttpResponse { status: "200"; - body: Season; + body: SeasonOutput; } /** Gets a specified season resource. */ export interface SeasonsGetdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Creates or updates a season resource. */ export interface SeasonsCreateOrUpdate200Response extends HttpResponse { status: "200"; - body: Season; + body: SeasonOutput; } /** Creates or updates a season resource. */ export interface SeasonsCreateOrUpdate201Response extends HttpResponse { status: "201"; - body: Season; + body: SeasonOutput; } /** Creates or updates a season resource. */ export interface SeasonsCreateOrUpdatedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Deletes a specified season resource. */ export interface SeasonsDelete204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes a specified season resource. */ export interface SeasonsDeletedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of tillage data resources under a particular farm. */ export interface TillageDataListByFarmerId200Response extends HttpResponse { status: "200"; - body: TillageDataListResponse; + body: TillageDataListResponseOutput; } /** Returns a paginated list of tillage data resources under a particular farm. */ export interface TillageDataListByFarmerIddefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of tillage data resources across all farmers. */ export interface TillageDataList200Response extends HttpResponse { status: "200"; - body: TillageDataListResponse; + body: TillageDataListResponseOutput; } /** Returns a paginated list of tillage data resources across all farmers. */ export interface TillageDataListdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Get a specified tillage data resource under a particular farmer. */ export interface TillageDataGet200Response extends HttpResponse { status: "200"; - body: TillageData; + body: TillageDataOutput; } /** Get a specified tillage data resource under a particular farmer. */ export interface TillageDataGetdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Creates or updates an tillage data resource under a particular farmer. */ export interface TillageDataCreateOrUpdate200Response extends HttpResponse { status: "200"; - body: TillageData; + body: TillageDataOutput; } /** Creates or updates an tillage data resource under a particular farmer. */ export interface TillageDataCreateOrUpdate201Response extends HttpResponse { status: "201"; - body: TillageData; + body: TillageDataOutput; } /** Creates or updates an tillage data resource under a particular farmer. */ export interface TillageDataCreateOrUpdatedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Deletes a specified tillage data resource under a particular farmer. */ export interface TillageDataDelete204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes a specified tillage data resource under a particular farmer. */ export interface TillageDataDeletedefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Returns a paginated list of weather data. */ export interface WeatherList200Response extends HttpResponse { status: "200"; - body: WeatherDataListResponse; + body: WeatherDataListResponseOutput; } /** Returns a paginated list of weather data. */ export interface WeatherListdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Get weather ingestion job. */ export interface WeatherGetDataIngestionJobDetails200Response extends HttpResponse { status: "200"; - body: WeatherDataIngestionJob; + body: WeatherDataIngestionJobOutput; } /** Get weather ingestion job. */ export interface WeatherGetDataIngestionJobDetailsdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Create a weather data ingestion job. */ export interface WeatherCreateDataIngestionJob202Response extends HttpResponse { status: "202"; - body: WeatherDataIngestionJob; + body: WeatherDataIngestionJobOutput; } /** Create a weather data ingestion job. */ export interface WeatherCreateDataIngestionJobdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Get weather data delete job. */ export interface WeatherGetDataDeleteJobDetails200Response extends HttpResponse { status: "200"; - body: WeatherDataDeleteJob; + body: WeatherDataDeleteJobOutput; } /** Get weather data delete job. */ export interface WeatherGetDataDeleteJobDetailsdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } /** Create a weather data delete job. */ export interface WeatherCreateDataDeleteJob202Response extends HttpResponse { status: "202"; - body: WeatherDataDeleteJob; + body: WeatherDataDeleteJobOutput; } /** Create a weather data delete job. */ export interface WeatherCreateDataDeleteJobdefaultResponse extends HttpResponse { status: "500"; - body: ErrorResponse; + body: ErrorResponseOutput; } diff --git a/sdk/agrifood/agrifood-farming-rest/swagger/README.md b/sdk/agrifood/agrifood-farming-rest/swagger/README.md index c681ac492bd6..b28f46e257f1 100644 --- a/sdk/agrifood/agrifood-farming-rest/swagger/README.md +++ b/sdk/agrifood/agrifood-farming-rest/swagger/README.md @@ -12,11 +12,14 @@ generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../ source-code-folder-path: ./src -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/agfood/data-plane/Microsoft.AgFoodPlatform/preview/2021-03-31-preview/agfood.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/683e3f4849ee1d84629d0d0fa17789e80a9cee08/specification/agfood/data-plane/Microsoft.AgFoodPlatform/preview/2021-03-31-preview/agfood.json package-version: 1.0.0-beta.2 rest-level-client: true add-credentials: true credential-scopes: https://farmbeats.azure.net/.default use-extension: - "@autorest/typescript": "~/Microsoft/autorest.typescript" + "@autorest/typescript": "latest" + +modelerfour: + treat-type-object-as-anything: true ``` diff --git a/sdk/agrifood/agrifood-farming-rest/test/public/farmHeirarchy.spec.ts b/sdk/agrifood/agrifood-farming-rest/test/public/farmHeirarchy.spec.ts index 64c49963fcc5..95b8af53bf24 100644 --- a/sdk/agrifood/agrifood-farming-rest/test/public/farmHeirarchy.spec.ts +++ b/sdk/agrifood/agrifood-farming-rest/test/public/farmHeirarchy.spec.ts @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { FarmBeatsRestClient, getPoller } from "../../src"; +import { FarmBeatsRestClient, getLongRunningPoller } from "../../src"; import { Recorder } from "@azure-tools/test-recorder"; import { isNode } from "@azure/core-util"; @@ -108,7 +108,7 @@ describe("Farmer Operations", () => { throw initialResponse.body.error; } - const poller = getPoller(client, initialResponse); + const poller = getLongRunningPoller(client, initialResponse); const result = await poller.pollUntilDone(); assert.equal(result.body.boundaryId, boundaryId);