@azure-rest/agrifood-farming 1.0.0-alpha.20211222.1 → 1.0.0-alpha.20220131.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outputModels.js","sourceRoot":"","sources":["../../src/outputModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport interface ApplicationDataListResponseOutput {\n /** List of requested objects. */\n value?: Array<ApplicationDataOutput>;\n /** Token used in retrieving the next page. If null, there are no additional pages. */\n $skipToken?: string;\n /** Continuation link (absolute URI) to the next page of results in the list. */\n nextLink?: string;\n}\n\nexport interface ApplicationDataOutput {\n /** Application product details. */\n applicationProductDetails?: Array<ApplicationProductDetailOutput>;\n /** Schema for storing measurement reading and unit. */\n avgMaterial?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n totalMaterial?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n area?: MeasureOutput;\n /** Source of the operation data. */\n source?: string;\n /**\n * Modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ.\n * Note: this will be specified by the source provider itself.\n */\n operationModifiedDateTime?: string;\n /** Start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n operationStartDateTime?: string;\n /** End date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n operationEndDateTime?: string;\n /** Link for attachments. */\n attachmentsLink?: string;\n /** Optional boundary ID of the field for which operation was applied. */\n associatedBoundaryId?: string;\n /** Optional boundary ID of the actual area for which operation was applied inside the specified field. */\n operationBoundaryId?: string;\n /** Farmer ID which belongs to the operation data. */\n farmerId?: string;\n /** Unique resource ID. */\n id?: string;\n /** The ETag value to implement optimistic concurrency. */\n eTag?: string;\n /** Status of the resource. */\n status?: string;\n /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n modifiedDateTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of the resource. */\n description?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface ApplicationProductDetailOutput {\n /** Name of the product applied. */\n productName?: string;\n /** A flag indicating whether product is a carrier for a tank mix. */\n isCarrier?: boolean;\n /** Schema for storing measurement reading and unit. */\n avgMaterial?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n totalMaterial?: MeasureOutput;\n}\n\nexport interface MeasureOutput {\n /** Data unit. */\n unit?: string;\n /** Data value. */\n value?: number;\n}\n\nexport interface ErrorResponseOutput {\n /** An error from the Azure AgPlatform service. */\n error?: ErrorModelOutput;\n /** Unique trace ID. */\n traceId?: string;\n}\n\nexport interface ErrorModelOutput {\n /** Server-defined set of error codes. */\n code?: string;\n /** Human-readable representation of the error. */\n message?: string;\n /** Target of the error. */\n target?: string;\n /** Array of details about specific errors that led to this reported error. */\n details?: Array<ErrorModelOutput>;\n /**\n * Inner error containing list of errors.\n * <see href=\"https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object\">InnerError reference document</see>.\n */\n innererror?: InnerErrorOutput;\n}\n\nexport interface InnerErrorOutput extends Record<string, unknown> {\n /**\n * Specific error code than was provided by the\n * containing error.\n */\n code?: string;\n /**\n * Inner error containing list of errors.\n * <see href=\"https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object\">InnerError reference document</see>.\n */\n innererror?: InnerErrorOutput;\n}\n\nexport interface AttachmentListResponseOutput {\n /** List of requested objects. */\n value?: Array<AttachmentOutput>;\n /** Token used in retrieving the next page. If null, there are no additional pages. */\n $skipToken?: string;\n /** Continuation link (absolute URI) to the next page of results in the list. */\n nextLink?: string;\n}\n\nexport interface AttachmentOutput {\n /** Farmer id for this attachment. */\n farmerId?: string;\n /** Associated Resource id for this attachment. */\n resourceId?: string;\n /**\n * Associated Resource type for this attachment\n * i.e. Farmer, Farm, Field, SeasonalField, Boundary, FarmOperationApplicationData, HarvestData, TillageData, PlantingData.\n */\n resourceType?: string;\n /** Original File Name for this attachment. */\n originalFileName?: string;\n /** Unique id. */\n id?: string;\n /** Status of the resource. */\n status?: string;\n /** Date when resource was created. */\n createdDateTime?: string;\n /** Date when resource was last modified. */\n modifiedDateTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of resource. */\n description?: string;\n /** The ETag value to implement optimistic concurrency. */\n eTag?: string;\n}\n\nexport interface BoundaryListResponseOutput {\n /** List of requested objects. */\n value?: Array<BoundaryOutput>;\n /** Token used in retrieving the next page. If null, there are no additional pages. */\n $skipToken?: string;\n /** Continuation link (absolute URI) to the next page of results in the list. */\n nextLink?: string;\n}\n\nexport interface BoundaryOutput {\n /** Farmer ID. */\n farmerId?: string;\n /** ID of the parent(field or seasonalField) it belongs to. */\n parentId?: string;\n /** GeoJSON abstract class. */\n geometry?: GeoJsonObjectOutput;\n /** Is the boundary primary. */\n isPrimary?: boolean;\n /** Boundary area in acres. */\n acreage?: number;\n /** Type of the parent it belongs to. */\n parentType?: string;\n /** Unique resource ID. */\n id?: string;\n /** The ETag value to implement optimistic concurrency. */\n eTag?: string;\n /** Status of the resource. */\n status?: string;\n /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n modifiedDateTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of the resource. */\n description?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface GeoJsonObjectOutputBase {\n type: \"MultiPolygon\" | \"Point\" | \"Polygon\";\n}\n\nexport interface CascadeDeleteJobOutput {\n /** Farmer ID. */\n farmerId: string;\n /** The id of the resource. */\n resourceId: string;\n /** The type of the resource. */\n resourceType: string;\n /** Unique job id. */\n id?: string;\n /**\n * Status of the job.\n * Possible values: 'Waiting', 'Running', 'Succeeded', 'Failed', 'Cancelled'.\n */\n status?: string;\n /** Duration of the job in seconds. */\n durationInSeconds?: number;\n /** Status message to capture more details of the job. */\n message?: string;\n /** Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n lastActionDateTime?: string;\n /** Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n startTime?: string;\n /** Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n endTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of the resource. */\n description?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface BoundaryOverlapResponseOutput {\n /** Acreage of Main boundary. */\n boundaryAcreage?: number;\n /** Acreage of other boundary. */\n otherBoundaryAcreage?: number;\n /** Acreage of intersecting boundary. */\n intersectingAcreage?: number;\n}\n\nexport interface CropListResponseOutput {\n /** List of requested objects. */\n value?: Array<CropOutput>;\n /** Token used in retrieving the next page. If null, there are no additional pages. */\n $skipToken?: string;\n /** Continuation link (absolute URI) to the next page of results in the list. */\n nextLink?: string;\n}\n\nexport interface CropOutput {\n /** Crop phenotype. */\n phenotype?: string;\n /** Unique resource ID. */\n id?: string;\n /** The ETag value to implement optimistic concurrency. */\n eTag?: string;\n /** Status of the resource. */\n status?: string;\n /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n modifiedDateTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of the resource. */\n description?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface CropVarietyListResponseOutput {\n /** List of requested objects. */\n value?: Array<CropVarietyOutput>;\n /** Token used in retrieving the next page. If null, there are no additional pages. */\n $skipToken?: string;\n /** Continuation link (absolute URI) to the next page of results in the list. */\n nextLink?: string;\n}\n\nexport interface CropVarietyOutput {\n /** ID of the crop it belongs to. */\n cropId?: string;\n /** CropVariety Brand. */\n brand?: string;\n /** CropVariety product. */\n product?: string;\n /** Unique resource ID. */\n id?: string;\n /** The ETag value to implement optimistic concurrency. */\n eTag?: string;\n /** Status of the resource. */\n status?: string;\n /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n modifiedDateTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of the resource. */\n description?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface FarmerListResponseOutput {\n /** List of requested objects. */\n value?: Array<FarmerOutput>;\n /** Token used in retrieving the next page. If null, there are no additional pages. */\n $skipToken?: string;\n /** Continuation link (absolute URI) to the next page of results in the list. */\n nextLink?: string;\n}\n\nexport interface FarmerOutput {\n /** Unique resource ID. */\n id?: string;\n /** The ETag value to implement optimistic concurrency. */\n eTag?: string;\n /** Status of the resource. */\n status?: string;\n /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n modifiedDateTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of the resource. */\n description?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface FarmOperationDataIngestionJobOutput {\n /** Farmer ID. */\n farmerId: string;\n /** Authentication provider ID. */\n authProviderId: string;\n /** List of operation types for which data needs to be downloaded. Available values: AllOperations, Application, Planting, Harvest, Tillage. */\n operations?: Array<string>;\n /** Start Year (Minimum = 2000, Maximum = CurrentYear). */\n startYear: number;\n /** Unique job id. */\n id?: string;\n /**\n * Status of the job.\n * Possible values: 'Waiting', 'Running', 'Succeeded', 'Failed', 'Cancelled'.\n */\n status?: string;\n /** Duration of the job in seconds. */\n durationInSeconds?: number;\n /** Status message to capture more details of the job. */\n message?: string;\n /** Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n lastActionDateTime?: string;\n /** Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n startTime?: string;\n /** Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n endTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of the resource. */\n description?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface FarmListResponseOutput {\n /** List of requested objects. */\n value?: Array<FarmOutput>;\n /** Token used in retrieving the next page. If null, there are no additional pages. */\n $skipToken?: string;\n /** Continuation link (absolute URI) to the next page of results in the list. */\n nextLink?: string;\n}\n\nexport interface FarmOutput {\n /** Farmer ID. */\n farmerId?: string;\n /** Unique resource ID. */\n id?: string;\n /** The ETag value to implement optimistic concurrency. */\n eTag?: string;\n /** Status of the resource. */\n status?: string;\n /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n modifiedDateTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of the resource. */\n description?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface FieldListResponseOutput {\n /** List of requested objects. */\n value?: Array<FieldOutput>;\n /** Token used in retrieving the next page. If null, there are no additional pages. */\n $skipToken?: string;\n /** Continuation link (absolute URI) to the next page of results in the list. */\n nextLink?: string;\n}\n\nexport interface FieldOutput {\n /** ID of the associated Farm. */\n farmId?: string;\n /** Farmer ID. */\n farmerId?: string;\n /** Primary boundary id. */\n primaryBoundaryId?: string;\n /** Boundary Ids. */\n boundaryIds?: Array<string>;\n /** Unique resource ID. */\n id?: string;\n /** The ETag value to implement optimistic concurrency. */\n eTag?: string;\n /** Status of the resource. */\n status?: string;\n /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n modifiedDateTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of the resource. */\n description?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface HarvestDataListResponseOutput {\n /** List of requested objects. */\n value?: Array<HarvestDataOutput>;\n /** Token used in retrieving the next page. If null, there are no additional pages. */\n $skipToken?: string;\n /** Continuation link (absolute URI) to the next page of results in the list. */\n nextLink?: string;\n}\n\nexport interface HarvestDataOutput {\n /** Schema for storing measurement reading and unit. */\n totalYield?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n avgYield?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n totalWetMass?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n avgWetMass?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n avgMoisture?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n avgSpeed?: MeasureOutput;\n /** Harvest product details. */\n harvestProductDetails?: Array<HarvestProductDetailOutput>;\n /** Schema for storing measurement reading and unit. */\n area?: MeasureOutput;\n /** Source of the operation data. */\n source?: string;\n /**\n * Modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ.\n * Note: this will be specified by the source provider itself.\n */\n operationModifiedDateTime?: string;\n /** Start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n operationStartDateTime?: string;\n /** End date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n operationEndDateTime?: string;\n /** Link for attachments. */\n attachmentsLink?: string;\n /** Optional boundary ID of the field for which operation was applied. */\n associatedBoundaryId?: string;\n /** Optional boundary ID of the actual area for which operation was applied inside the specified field. */\n operationBoundaryId?: string;\n /** Farmer ID which belongs to the operation data. */\n farmerId?: string;\n /** Unique resource ID. */\n id?: string;\n /** The ETag value to implement optimistic concurrency. */\n eTag?: string;\n /** Status of the resource. */\n status?: string;\n /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n modifiedDateTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of the resource. */\n description?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface HarvestProductDetailOutput {\n /** Name of the product. */\n productName?: string;\n /** Schema for storing measurement reading and unit. */\n area?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n totalYield?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n avgYield?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n avgMoisture?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n totalWetMass?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n avgWetMass?: MeasureOutput;\n}\n\nexport interface ImageProcessingRasterizeJobOutput {\n /** Farmer ID. */\n farmerId: string;\n /** Shapefile attachment ID. */\n shapefileAttachmentId: string;\n /** List of shapefile column names to create raster attachments. */\n shapefileColumnNames: Array<string>;\n /** Unique job id. */\n id?: string;\n /**\n * Status of the job.\n * Possible values: 'Waiting', 'Running', 'Succeeded', 'Failed', 'Cancelled'.\n */\n status?: string;\n /** Duration of the job in seconds. */\n durationInSeconds?: number;\n /** Status message to capture more details of the job. */\n message?: string;\n /** Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n lastActionDateTime?: string;\n /** Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n startTime?: string;\n /** Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n endTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of the resource. */\n description?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface OAuthProviderListResponseOutput {\n /** List of requested objects. */\n value?: Array<OAuthProviderOutput>;\n /** Token used in retrieving the next page. If null, there are no additional pages. */\n $skipToken?: string;\n /** Continuation link (absolute URI) to the next page of results in the list. */\n nextLink?: string;\n}\n\nexport interface OAuthProviderOutput {\n /** OAuth App ID for given OAuth Provider. */\n appId?: string;\n /**\n * OAuth App secret for given Provider.\n * Note: Won't be sent in response.\n */\n appSecret?: string;\n /**\n * OAuth Api key for given Provider.\n * Note: currently Applicable to Climate provider. Won't be sent in response.\n */\n apiKey?: string;\n /**\n * 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)\n * Note: Currently applicable for JohnDeere.\n */\n isProductionApp?: boolean;\n /** Unique OAuth provider ID. */\n id?: string;\n /** The ETag value to implement optimistic concurrency. */\n eTag?: string;\n /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n modifiedDateTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of the resource. */\n description?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface OAuthTokenListResponseOutput {\n /** List of requested objects. */\n value?: Array<OAuthTokenOutput>;\n /** Token used in retrieving the next page. If null, there are no additional pages. */\n $skipToken?: string;\n /** Continuation link (absolute URI) to the next page of results in the list. */\n nextLink?: string;\n}\n\nexport interface OAuthTokenOutput {\n /** Farmer ID for this OAuth config. */\n farmerId: string;\n /** ID of the OAuth provider resource containing app information. */\n authProviderId: string;\n /** An optional flag indicating whether the token is a valid or expired (Default value: true). */\n isValid?: boolean;\n /** The ETag value to implement optimistic concurrency. */\n eTag?: string;\n /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n modifiedDateTime?: string;\n}\n\nexport interface PlantingDataListResponseOutput {\n /** List of requested objects. */\n value?: Array<PlantingDataOutput>;\n /** Token used in retrieving the next page. If null, there are no additional pages. */\n $skipToken?: string;\n /** Continuation link (absolute URI) to the next page of results in the list. */\n nextLink?: string;\n}\n\nexport interface PlantingDataOutput {\n /** Schema for storing measurement reading and unit. */\n avgPlantingRate?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n totalMaterial?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n avgMaterial?: MeasureOutput;\n /** Planting product details. */\n plantingProductDetails?: Array<PlantingProductDetailOutput>;\n /** Schema for storing measurement reading and unit. */\n area?: MeasureOutput;\n /** Source of the operation data. */\n source?: string;\n /**\n * Modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ.\n * Note: this will be specified by the source provider itself.\n */\n operationModifiedDateTime?: string;\n /** Start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n operationStartDateTime?: string;\n /** End date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n operationEndDateTime?: string;\n /** Link for attachments. */\n attachmentsLink?: string;\n /** Optional boundary ID of the field for which operation was applied. */\n associatedBoundaryId?: string;\n /** Optional boundary ID of the actual area for which operation was applied inside the specified field. */\n operationBoundaryId?: string;\n /** Farmer ID which belongs to the operation data. */\n farmerId?: string;\n /** Unique resource ID. */\n id?: string;\n /** The ETag value to implement optimistic concurrency. */\n eTag?: string;\n /** Status of the resource. */\n status?: string;\n /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n modifiedDateTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of the resource. */\n description?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface PlantingProductDetailOutput {\n /** Name of the product. */\n productName?: string;\n /** Schema for storing measurement reading and unit. */\n area?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n totalMaterial?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n avgMaterial?: MeasureOutput;\n}\n\nexport interface SceneListResponseOutput {\n /** List of requested objects. */\n value?: Array<SceneOutput>;\n /** Token used in retrieving the next page. If null, there are no additional pages. */\n $skipToken?: string;\n /** Continuation link (absolute URI) to the next page of results in the list. */\n nextLink?: string;\n}\n\nexport interface SceneOutput {\n /** Date-time of the scene, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n sceneDateTime?: string;\n /** Data provider of the scene. */\n provider?: string;\n /** Data source of the scene. */\n source?: string;\n /** Collection of image files. */\n imageFiles?: Array<ImageFileOutput>;\n /** Supported image formats for scene resource. */\n imageFormat?: \"TIF\";\n /** Cloud cover percentage of the scene. */\n cloudCoverPercentage?: number;\n /** Dark pixel percentage of the scene. */\n darkPixelPercentage?: number;\n /** Median of NDVI of the scene. */\n ndviMedianValue?: number;\n /** Boundary ID which belongs to the scene. */\n boundaryId?: string;\n /** Farmer ID which belongs to the scene. */\n farmerId?: string;\n /** Unique scene resource ID. */\n id?: string;\n /** The ETag value to implement optimistic concurrency. */\n eTag?: string;\n}\n\nexport interface ImageFileOutput {\n /** Link of the image file. */\n fileLink?: string;\n /** Name of the image file. */\n name: string;\n /** Supported image formats for scene resource. */\n imageFormat?: \"TIF\";\n /** Resolution of image file in meters. */\n resolution?: number;\n}\n\nexport interface SatelliteDataIngestionJobOutput {\n /** Farmer ID. */\n farmerId: string;\n /** The id of the boundary object for which satellite data is being fetched. */\n boundaryId: string;\n /** Start Date. */\n startDateTime: string;\n /** End Date. */\n endDateTime: string;\n /** Provider of satellite data. */\n provider?: \"Microsoft\";\n /** Source of satellite data. */\n source?: \"Sentinel_2_L2A\";\n /** Data Model for SatelliteIngestionJobRequest. */\n data?: SatelliteDataOutput;\n /** Unique job id. */\n id?: string;\n /**\n * Status of the job.\n * Possible values: 'Waiting', 'Running', 'Succeeded', 'Failed', 'Cancelled'.\n */\n status?: string;\n /** Duration of the job in seconds. */\n durationInSeconds?: number;\n /** Status message to capture more details of the job. */\n message?: string;\n /** Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n lastActionDateTime?: string;\n /** Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n startTime?: string;\n /** Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n endTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of the resource. */\n description?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface SatelliteDataOutput {\n /** List of ImageNames. */\n imageNames?: Array<string>;\n /** List of ImageFormats. Available value: TIF. */\n imageFormats?: Array<string>;\n /** List of ImageResolutions in meters. Available values: 10, 20, 60. */\n imageResolutions?: Array<number>;\n}\n\nexport interface SeasonalFieldListResponseOutput {\n /** List of requested objects. */\n value?: Array<SeasonalFieldOutput>;\n /** Token used in retrieving the next page. If null, there are no additional pages. */\n $skipToken?: string;\n /** Continuation link (absolute URI) to the next page of results in the list. */\n nextLink?: string;\n}\n\nexport interface SeasonalFieldOutput {\n /** Farmer ID. */\n farmerId?: string;\n /** Primary boundary id. */\n primaryBoundaryId?: string;\n /** Boundary Ids. */\n boundaryIds?: Array<string>;\n /** ID of the associated Farm. */\n farmId?: string;\n /** ID of the associated Field. */\n fieldId?: string;\n /** ID of the season it belongs to. */\n seasonId?: string;\n /** CropVariety ids. */\n cropVarietyIds?: Array<string>;\n /** ID of the crop it belongs to. */\n cropId?: string;\n /** Average yield value of the seasonal field. */\n avgYieldValue?: number;\n /** Unit of the average yield value attribute. */\n avgYieldUnit?: string;\n /** Average seed population value of the seasonal field. */\n avgSeedPopulationValue?: number;\n /** Unit of average seed population value attribute. */\n avgSeedPopulationUnit?: string;\n /** Planting datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n plantingDateTime?: string;\n /** Unique resource ID. */\n id?: string;\n /** The ETag value to implement optimistic concurrency. */\n eTag?: string;\n /** Status of the resource. */\n status?: string;\n /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n modifiedDateTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of the resource. */\n description?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface SeasonListResponseOutput {\n /** List of requested objects. */\n value?: Array<SeasonOutput>;\n /** Token used in retrieving the next page. If null, there are no additional pages. */\n $skipToken?: string;\n /** Continuation link (absolute URI) to the next page of results in the list. */\n nextLink?: string;\n}\n\nexport interface SeasonOutput {\n /** Season start datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n startDateTime?: string;\n /** Season end datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n endDateTime?: string;\n /** Season year. */\n year?: number;\n /** Unique resource ID. */\n id?: string;\n /** The ETag value to implement optimistic concurrency. */\n eTag?: string;\n /** Status of the resource. */\n status?: string;\n /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n modifiedDateTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of the resource. */\n description?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface TillageDataListResponseOutput {\n /** List of requested objects. */\n value?: Array<TillageDataOutput>;\n /** Token used in retrieving the next page. If null, there are no additional pages. */\n $skipToken?: string;\n /** Continuation link (absolute URI) to the next page of results in the list. */\n nextLink?: string;\n}\n\nexport interface TillageDataOutput {\n /** Schema for storing measurement reading and unit. */\n tillageDepth?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n tillagePressure?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n area?: MeasureOutput;\n /** Source of the operation data. */\n source?: string;\n /**\n * Modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ.\n * Note: this will be specified by the source provider itself.\n */\n operationModifiedDateTime?: string;\n /** Start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n operationStartDateTime?: string;\n /** End date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n operationEndDateTime?: string;\n /** Link for attachments. */\n attachmentsLink?: string;\n /** Optional boundary ID of the field for which operation was applied. */\n associatedBoundaryId?: string;\n /** Optional boundary ID of the actual area for which operation was applied inside the specified field. */\n operationBoundaryId?: string;\n /** Farmer ID which belongs to the operation data. */\n farmerId?: string;\n /** Unique resource ID. */\n id?: string;\n /** The ETag value to implement optimistic concurrency. */\n eTag?: string;\n /** Status of the resource. */\n status?: string;\n /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n modifiedDateTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of the resource. */\n description?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface WeatherDataListResponseOutput {\n /** List of requested objects. */\n value?: Array<WeatherDataOutput>;\n /** Token used in retrieving the next page. If null, there are no additional pages. */\n $skipToken?: string;\n /** Continuation link (absolute URI) to the next page of results in the list. */\n nextLink?: string;\n}\n\nexport interface WeatherDataOutput {\n /** Farmer ID. */\n farmerId: string;\n /** Boundary ID. */\n boundaryId: string;\n /** ID of the weather extension. */\n extensionId: string;\n /** Location model class. */\n location: LocationOutput;\n /** Date-time of the weather data, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n dateTime: string;\n /** Unit System like US/SI etc. */\n unitSystemCode?: string;\n /** Version of the weather data extension. */\n extensionVersion: string;\n /** Type of weather data (forecast/historical). */\n weatherDataType: string;\n /** Granularity of weather data (daily/hourly). */\n granularity: string;\n /** Schema for storing measurement reading and unit. */\n cloudCover?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n dewPoint?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n growingDegreeDay?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n precipitation?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n pressure?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n relativeHumidity?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n soilMoisture?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n soilTemperature?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n temperature?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n visibility?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n wetBulbTemperature?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n windChill?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n windDirection?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n windGust?: MeasureOutput;\n /** Schema for storing measurement reading and unit. */\n windSpeed?: MeasureOutput;\n /** Weather data ID. */\n id?: string;\n /** The ETag value to implement optimistic concurrency. */\n eTag?: string;\n /** Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n modifiedDateTime?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface LocationOutput {\n /** Latitude of the location. */\n latitude: number;\n /** Longitude of the location. */\n longitude: number;\n}\n\nexport interface WeatherDataIngestionJobOutput {\n /** The id of the boundary object for which weather data is being fetched. */\n boundaryId: string;\n /** The id of the farmer object for which weather data is being fetched. */\n farmerId: string;\n /** ID of the extension to be used for the providerInput. eg. DTN.ClearAg. */\n extensionId: string;\n /** Extension api name to which request is to be made. */\n extensionApiName: string;\n /** Extension api input dictionary which would be used to feed request query/body/parameter information. */\n extensionApiInput: Record<string, any>;\n /** App id of the weather data provider. */\n extensionDataProviderAppId?: string;\n /** Api key of the weather data provider. */\n extensionDataProviderApiKey?: string;\n /** Unique job id. */\n id?: string;\n /**\n * Status of the job.\n * Possible values: 'Waiting', 'Running', 'Succeeded', 'Failed', 'Cancelled'.\n */\n status?: string;\n /** Duration of the job in seconds. */\n durationInSeconds?: number;\n /** Status message to capture more details of the job. */\n message?: string;\n /** Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n lastActionDateTime?: string;\n /** Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n startTime?: string;\n /** Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n endTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of the resource. */\n description?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface WeatherDataDeleteJobOutput {\n /** ID of the extension to be used for the providerInput. eg. DTN.ClearAg. */\n extensionId: string;\n /** The id of the farmer object for which weather data is being fetched. */\n farmerId: string;\n /** The id of the boundary object for which weather data is being fetched. */\n boundaryId: string;\n /** Type of weather data. Possible values include: 'forecast' , 'historical'. */\n weatherDataType?: string;\n /** Granularity of weather data. Possible values include: 'daily' , 'hourly'. */\n granularity?: string;\n /** Weather data start UTC date-time (inclusive), sample format: yyyy-MM-ddTHH:mm:ssZ. */\n startDateTime?: string;\n /** Weather data end UTC date-time (inclusive), sample format: yyyy-MM-ddTHH:mm:ssZ. */\n endDateTime?: string;\n /** Unique job id. */\n id?: string;\n /**\n * Status of the job.\n * Possible values: 'Waiting', 'Running', 'Succeeded', 'Failed', 'Cancelled'.\n */\n status?: string;\n /** Duration of the job in seconds. */\n durationInSeconds?: number;\n /** Status message to capture more details of the job. */\n message?: string;\n /** Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n createdDateTime?: string;\n /** Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n lastActionDateTime?: string;\n /** Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n startTime?: string;\n /** Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ. */\n endTime?: string;\n /** Name to identify resource. */\n name?: string;\n /** Textual description of the resource. */\n description?: string;\n /**\n * A collection of key value pairs that belongs to the resource.\n * Each pair must not have a key greater than 50 characters\n * and must not have a value greater than 150 characters.\n * Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.\n */\n properties?: Record<string, any>;\n}\n\nexport interface MultiPolygonOutput extends GeoJsonObjectOutputBase, MultiPolygonCoordinatesOutput {\n type: \"MultiPolygon\";\n}\n\nexport interface MultiPolygonCoordinatesOutput {\n /**\n * Gets or sets Coordinates of GeoJSON Object.\n * It must be an array of polygons, each polygon contains list of linear rings.\n * For Polygons with more than one of these rings, the first MUST be the exterior ring,\n * and any others MUST be interior rings.\n */\n coordinates: Array<Array<Array<Array<number>>>>;\n}\n\nexport interface PointOutput extends GeoJsonObjectOutputBase, PointCoordinatesOutput {\n type: \"Point\";\n}\n\nexport interface PointCoordinatesOutput {\n /**\n * Gets or sets the coordinate of this point.\n * It must be an array of 2 or 3 elements for a 2D or 3D system.\n */\n coordinates: Array<number>;\n}\n\nexport interface PolygonOutput extends GeoJsonObjectOutputBase, PolygonCoordinatesOutput {\n type: \"Polygon\";\n}\n\nexport interface PolygonCoordinatesOutput {\n /**\n * Gets or sets type of the GeoJSON Object.\n * It must be an array of linear ring coordinate arrays.\n * For Polygons with more than one of these rings, the first MUST be the exterior ring,\n * and any others MUST be interior rings.\n */\n coordinates: Array<Array<Array<number>>>;\n}\n\nexport type GeoJsonObjectOutput = MultiPolygonOutput | PointOutput | PolygonOutput;\n"]}
@@ -0,0 +1,70 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT license.
3
+ import { getPagedAsyncIterator } from "@azure/core-paging";
4
+ import { createRestError } from "@azure-rest/core-client";
5
+ /**
6
+ * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
7
+ * @param client - Client to use for sending the next page requests
8
+ * @param initialResponse - Initial response containing the nextLink and current page of elements
9
+ * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results
10
+ * @returns - PagedAsyncIterableIterator to iterate the elements
11
+ */
12
+ export function paginate(client, initialResponse, options = {}) {
13
+ let firstRun = true;
14
+ const itemName = "value";
15
+ const nextLinkName = "nextLink";
16
+ const { customGetPage } = options;
17
+ const pagedResult = {
18
+ firstPageLink: "",
19
+ getPage: typeof customGetPage === "function"
20
+ ? customGetPage
21
+ : async (pageLink) => {
22
+ const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();
23
+ firstRun = false;
24
+ checkPagingRequest(result);
25
+ const nextLink = getNextLink(result.body, nextLinkName);
26
+ const values = getElements(result.body, itemName);
27
+ return {
28
+ page: values,
29
+ nextPageLink: nextLink,
30
+ };
31
+ },
32
+ };
33
+ return getPagedAsyncIterator(pagedResult);
34
+ }
35
+ /**
36
+ * Gets for the value of nextLink in the body
37
+ */
38
+ function getNextLink(body, nextLinkName) {
39
+ if (!nextLinkName) {
40
+ return undefined;
41
+ }
42
+ const nextLink = body[nextLinkName];
43
+ if (typeof nextLink !== "string" && typeof nextLink !== "undefined") {
44
+ throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);
45
+ }
46
+ return nextLink;
47
+ }
48
+ /**
49
+ * Gets the elements of the current request in the body.
50
+ */
51
+ function getElements(body, itemName) {
52
+ const value = body[itemName];
53
+ // value has to be an array according to the x-ms-pageable extension.
54
+ // The fact that this must be an array is used above to calculate the
55
+ // type of elements in the page in PaginateReturn
56
+ if (!Array.isArray(value)) {
57
+ throw new Error(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
58
+ }
59
+ return value !== null && value !== void 0 ? value : [];
60
+ }
61
+ /**
62
+ * Checks if a request failed
63
+ */
64
+ function checkPagingRequest(response) {
65
+ const Http2xxStatusCodes = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226"];
66
+ if (!Http2xxStatusCodes.includes(response.status)) {
67
+ throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response);
68
+ }
69
+ }
70
+ //# sourceMappingURL=paginateHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paginateHelper.js","sourceRoot":"","sources":["../../src/paginateHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,qBAAqB,EAA2C,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAU,eAAe,EAAyB,MAAM,yBAAyB,CAAC;AAyCzF;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CACtB,MAAc,EACd,eAA0B,EAC1B,UAAoC,EAAE;IAItC,IAAI,QAAQ,GAAG,IAAI,CAAC;IACpB,MAAM,QAAQ,GAAG,OAAO,CAAC;IACzB,MAAM,YAAY,GAAG,UAAU,CAAC;IAChC,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;IAClC,MAAM,WAAW,GAA4B;QAC3C,aAAa,EAAE,EAAE;QACjB,OAAO,EACL,OAAO,aAAa,KAAK,UAAU;YACjC,CAAC,CAAC,aAAa;YACf,CAAC,CAAC,KAAK,EAAE,QAAgB,EAAE,EAAE;gBACzB,MAAM,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC;gBACvF,QAAQ,GAAG,KAAK,CAAC;gBACjB,kBAAkB,CAAC,MAAM,CAAC,CAAC;gBAC3B,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;gBACxD,MAAM,MAAM,GAAG,WAAW,CAAW,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;gBAC5D,OAAO;oBACL,IAAI,EAAE,MAAM;oBACZ,YAAY,EAAE,QAAQ;iBACvB,CAAC;YACJ,CAAC;KACR,CAAC;IAEF,OAAO,qBAAqB,CAAC,WAAW,CAAC,CAAC;AAC5C,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAC,IAAa,EAAE,YAAqB;IACvD,IAAI,CAAC,YAAY,EAAE;QACjB,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,QAAQ,GAAI,IAAgC,CAAC,YAAY,CAAC,CAAC;IAEjE,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;QACnE,MAAM,IAAI,KAAK,CAAC,iBAAiB,YAAY,kCAAkC,CAAC,CAAC;KAClF;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAc,IAAa,EAAE,QAAgB;IAC/D,MAAM,KAAK,GAAI,IAAgC,CAAC,QAAQ,CAAQ,CAAC;IAEjE,qEAAqE;IACrE,qEAAqE;IACrE,iDAAiD;IACjD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACzB,MAAM,IAAI,KAAK,CACb,kFAAkF,QAAQ,EAAE,CAC7F,CAAC;KACH;IAED,OAAO,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B;IACzD,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClG,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QACjD,MAAM,eAAe,CACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;KACH;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { getPagedAsyncIterator, PagedAsyncIterableIterator, PagedResult } from \"@azure/core-paging\";\nimport { Client, createRestError, PathUncheckedResponse } from \"@azure-rest/core-client\";\n\n/**\n * Helper type to extract the type of an array\n */\nexport type GetArrayType<T> = T extends Array<infer TData> ? TData : never;\n\n/**\n * The type of a custom function that defines how to get a page and a link to the next one if any.\n */\nexport type GetPage<TPage> = (\n pageLink: string,\n maxPageSize?: number\n) => Promise<{\n page: TPage;\n nextPageLink?: string;\n}>;\n\n/**\n * Options for the paging helper\n */\nexport interface PagingOptions<TResponse> {\n /**\n * Custom function to extract pagination details for crating the PagedAsyncIterableIterator\n */\n customGetPage?: GetPage<PaginateReturn<TResponse>[]>;\n}\n\n/**\n * Helper type to infer the Type of the paged elements from the response type\n * This type is generated based on the swagger information for x-ms-pageable\n * specifically on the itemName property which indicates the property of the response\n * where the page items are found. The default value is `value`.\n * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter\n */\nexport type PaginateReturn<TResult> = TResult extends {\n body: { value?: infer TPage };\n}\n ? GetArrayType<TPage>\n : Array<unknown>;\n\n/**\n * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension\n * @param client - Client to use for sending the next page requests\n * @param initialResponse - Initial response containing the nextLink and current page of elements\n * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results\n * @returns - PagedAsyncIterableIterator to iterate the elements\n */\nexport function paginate<TResponse extends PathUncheckedResponse>(\n client: Client,\n initialResponse: TResponse,\n options: PagingOptions<TResponse> = {}\n): PagedAsyncIterableIterator<PaginateReturn<TResponse>> {\n // Extract element type from initial response\n type TElement = PaginateReturn<TResponse>;\n let firstRun = true;\n const itemName = \"value\";\n const nextLinkName = \"nextLink\";\n const { customGetPage } = options;\n const pagedResult: PagedResult<TElement[]> = {\n firstPageLink: \"\",\n getPage:\n typeof customGetPage === \"function\"\n ? customGetPage\n : async (pageLink: string) => {\n const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();\n firstRun = false;\n checkPagingRequest(result);\n const nextLink = getNextLink(result.body, nextLinkName);\n const values = getElements<TElement>(result.body, itemName);\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n };\n\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\") {\n throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n\n // value has to be an array according to the x-ms-pageable extension.\n // The fact that this must be an array is used above to calculate the\n // type of elements in the page in PaginateReturn\n if (!Array.isArray(value)) {\n throw new Error(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse): void {\n const Http2xxStatusCodes = [\"200\", \"201\", \"202\", \"203\", \"204\", \"205\", \"206\", \"207\", \"208\", \"226\"];\n if (!Http2xxStatusCodes.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RequestParameters } from \"@azure-rest/core-client\";\nimport {\n ApplicationData,\n SearchBoundaryQuery,\n Boundary,\n Crop,\n CropVariety,\n Farmer,\n FarmOperationDataIngestionJob,\n Farm,\n Field,\n HarvestData,\n ImageProcessingRasterizeJob,\n OAuthProvider,\n OAuthConnectRequest,\n PlantingData,\n SatelliteDataIngestionJob,\n SeasonalField,\n Season,\n TillageData,\n WeatherDataIngestionJob,\n WeatherDataDeleteJob,\n} from \"./models\";\n\nexport interface ApplicationDataListByFarmerIdQueryParamProperties {\n /** Minimum average amount of material applied during the application (inclusive). */\n minAvgMaterial?: number;\n /** Maximum average amount of material applied during the application (inclusive). */\n maxAvgMaterial?: number;\n /** Minimum total amount of material applied during the application (inclusive). */\n minTotalMaterial?: number;\n /** Maximum total amount of material applied during the application (inclusive). */\n maxTotalMaterial?: number;\n /** Sources of the operation data. */\n sources?: string[];\n /** Boundary IDs associated with operation data. */\n associatedBoundaryIds?: string[];\n /** Operation boundary IDs associated with operation data. */\n operationBoundaryIds?: string[];\n /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationStartDateTime?: Date;\n /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationStartDateTime?: Date;\n /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationEndDateTime?: Date;\n /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationEndDateTime?: Date;\n /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationModifiedDateTime?: Date;\n /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationModifiedDateTime?: Date;\n /** Minimum area for which operation was applied (inclusive). */\n minArea?: number;\n /** Maximum area for which operation was applied (inclusive). */\n maxArea?: number;\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface ApplicationDataListByFarmerIdQueryParam {\n queryParameters?: ApplicationDataListByFarmerIdQueryParamProperties;\n}\n\nexport type ApplicationDataListByFarmerIdParameters = RequestParameters &\n ApplicationDataListByFarmerIdQueryParam;\n\nexport interface ApplicationDataListQueryParamProperties {\n /** Minimum average amount of material applied during the application (inclusive). */\n minAvgMaterial?: number;\n /** Maximum average amount of material applied during the application (inclusive). */\n maxAvgMaterial?: number;\n /** Minimum total amount of material applied during the application (inclusive). */\n minTotalMaterial?: number;\n /** Maximum total amount of material applied during the application (inclusive). */\n maxTotalMaterial?: number;\n /** Sources of the operation data. */\n sources?: string[];\n /** Boundary IDs associated with operation data. */\n associatedBoundaryIds?: string[];\n /** Operation boundary IDs associated with operation data. */\n operationBoundaryIds?: string[];\n /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationStartDateTime?: Date;\n /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationStartDateTime?: Date;\n /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationEndDateTime?: Date;\n /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationEndDateTime?: Date;\n /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationModifiedDateTime?: Date;\n /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationModifiedDateTime?: Date;\n /** Minimum area for which operation was applied (inclusive). */\n minArea?: number;\n /** Maximum area for which operation was applied (inclusive). */\n maxArea?: number;\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface ApplicationDataListQueryParam {\n queryParameters?: ApplicationDataListQueryParamProperties;\n}\n\nexport type ApplicationDataListParameters = RequestParameters & ApplicationDataListQueryParam;\nexport type ApplicationDataGetParameters = RequestParameters;\n\nexport interface ApplicationDataCreateOrUpdateBodyParam {\n body?: ApplicationData;\n}\n\nexport type ApplicationDataCreateOrUpdateParameters = RequestParameters &\n ApplicationDataCreateOrUpdateBodyParam;\nexport type ApplicationDataDeleteParameters = RequestParameters;\n\nexport interface AttachmentsListByFarmerIdQueryParamProperties {\n /** Resource Ids of the resource. */\n resourceIds?: string[];\n /** Resource Types of the resource. */\n resourceTypes?: string[];\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface AttachmentsListByFarmerIdQueryParam {\n queryParameters?: AttachmentsListByFarmerIdQueryParamProperties;\n}\n\nexport type AttachmentsListByFarmerIdParameters = RequestParameters &\n AttachmentsListByFarmerIdQueryParam;\nexport type AttachmentsGetParameters = RequestParameters;\n\nexport interface AttachmentsCreateOrUpdateBodyParam {\n body?: string;\n}\n\nexport type AttachmentsCreateOrUpdateParameters = RequestParameters &\n AttachmentsCreateOrUpdateBodyParam;\nexport type AttachmentsDeleteParameters = RequestParameters;\nexport type AttachmentsDownloadParameters = RequestParameters;\n\nexport interface BoundariesListByFarmerIdQueryParamProperties {\n /** Is the boundary primary. */\n isPrimary?: boolean;\n /** Type of the parent it belongs to. */\n parentType?: string;\n /** Parent Ids of the resource. */\n parentIds?: string[];\n /** Minimum acreage of the boundary (inclusive). */\n minAcreage?: number;\n /** Maximum acreage of the boundary (inclusive). */\n maxAcreage?: number;\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface BoundariesListByFarmerIdQueryParam {\n queryParameters?: BoundariesListByFarmerIdQueryParamProperties;\n}\n\nexport type BoundariesListByFarmerIdParameters = RequestParameters &\n BoundariesListByFarmerIdQueryParam;\n\nexport interface BoundariesSearchByFarmerIdBodyParam {\n body?: SearchBoundaryQuery;\n}\n\nexport type BoundariesSearchByFarmerIdParameters = RequestParameters &\n BoundariesSearchByFarmerIdBodyParam;\n\nexport interface BoundariesListQueryParamProperties {\n /** Is the boundary primary. */\n isPrimary?: boolean;\n /** Type of the parent it belongs to. */\n parentType?: string;\n /** Parent Ids of the resource. */\n parentIds?: string[];\n /** Minimum acreage of the boundary (inclusive). */\n minAcreage?: number;\n /** Maximum acreage of the boundary (inclusive). */\n maxAcreage?: number;\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface BoundariesListQueryParam {\n queryParameters?: BoundariesListQueryParamProperties;\n}\n\nexport type BoundariesListParameters = RequestParameters & BoundariesListQueryParam;\n\nexport interface BoundariesSearchBodyParam {\n body?: SearchBoundaryQuery;\n}\n\nexport type BoundariesSearchParameters = RequestParameters & BoundariesSearchBodyParam;\nexport type BoundariesGetCascadeDeleteJobDetailsParameters = RequestParameters;\n\nexport interface BoundariesCreateCascadeDeleteJobQueryParamProperties {\n /** ID of the associated farmer. */\n farmerId: string;\n /** ID of the boundary to be deleted. */\n boundaryId: string;\n}\n\nexport interface BoundariesCreateCascadeDeleteJobQueryParam {\n queryParameters: BoundariesCreateCascadeDeleteJobQueryParamProperties;\n}\n\nexport type BoundariesCreateCascadeDeleteJobParameters = RequestParameters &\n BoundariesCreateCascadeDeleteJobQueryParam;\nexport type BoundariesGetParameters = RequestParameters;\n\nexport interface BoundariesCreateOrUpdateBodyParam {\n body?: Boundary;\n}\n\nexport type BoundariesCreateOrUpdateParameters = RequestParameters &\n BoundariesCreateOrUpdateBodyParam;\nexport type BoundariesDeleteParameters = RequestParameters;\n\nexport interface BoundariesGetOverlapQueryParamProperties {\n /** FarmerId of the other field. */\n otherFarmerId: string;\n /** ID of the other boundary. */\n otherBoundaryId: string;\n}\n\nexport interface BoundariesGetOverlapQueryParam {\n queryParameters: BoundariesGetOverlapQueryParamProperties;\n}\n\nexport type BoundariesGetOverlapParameters = RequestParameters & BoundariesGetOverlapQueryParam;\n\nexport interface CropsListQueryParamProperties {\n /** Crop phenotypes of the resource. */\n phenotypes?: string[];\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface CropsListQueryParam {\n queryParameters?: CropsListQueryParamProperties;\n}\n\nexport type CropsListParameters = RequestParameters & CropsListQueryParam;\nexport type CropsGetParameters = RequestParameters;\n\nexport interface CropsCreateOrUpdateBodyParam {\n body?: Crop;\n}\n\nexport type CropsCreateOrUpdateParameters = RequestParameters & CropsCreateOrUpdateBodyParam;\nexport type CropsDeleteParameters = RequestParameters;\n\nexport interface CropVarietiesListByCropIdQueryParamProperties {\n /** CropIds of the resource. */\n cropIds?: string[];\n /** Brands of the resource. */\n brands?: string[];\n /** Products of the resource. */\n products?: string[];\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface CropVarietiesListByCropIdQueryParam {\n queryParameters?: CropVarietiesListByCropIdQueryParamProperties;\n}\n\nexport type CropVarietiesListByCropIdParameters = RequestParameters &\n CropVarietiesListByCropIdQueryParam;\n\nexport interface CropVarietiesListQueryParamProperties {\n /** CropIds of the resource. */\n cropIds?: string[];\n /** Brands of the resource. */\n brands?: string[];\n /** Products of the resource. */\n products?: string[];\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface CropVarietiesListQueryParam {\n queryParameters?: CropVarietiesListQueryParamProperties;\n}\n\nexport type CropVarietiesListParameters = RequestParameters & CropVarietiesListQueryParam;\nexport type CropVarietiesGetParameters = RequestParameters;\n\nexport interface CropVarietiesCreateOrUpdateBodyParam {\n body?: CropVariety;\n}\n\nexport type CropVarietiesCreateOrUpdateParameters = RequestParameters &\n CropVarietiesCreateOrUpdateBodyParam;\nexport type CropVarietiesDeleteParameters = RequestParameters;\n\nexport interface FarmersListQueryParamProperties {\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface FarmersListQueryParam {\n queryParameters?: FarmersListQueryParamProperties;\n}\n\nexport type FarmersListParameters = RequestParameters & FarmersListQueryParam;\nexport type FarmersGetParameters = RequestParameters;\n\nexport interface FarmersCreateOrUpdateBodyParam {\n body?: Farmer;\n}\n\nexport type FarmersCreateOrUpdateParameters = RequestParameters & FarmersCreateOrUpdateBodyParam;\nexport type FarmersDeleteParameters = RequestParameters;\nexport type FarmersGetCascadeDeleteJobDetailsParameters = RequestParameters;\n\nexport interface FarmersCreateCascadeDeleteJobQueryParamProperties {\n /** ID of the farmer to be deleted. */\n farmerId: string;\n}\n\nexport interface FarmersCreateCascadeDeleteJobQueryParam {\n queryParameters: FarmersCreateCascadeDeleteJobQueryParamProperties;\n}\n\nexport type FarmersCreateCascadeDeleteJobParameters = RequestParameters &\n FarmersCreateCascadeDeleteJobQueryParam;\n\nexport interface FarmOperationsCreateDataIngestionJobBodyParam {\n body?: FarmOperationDataIngestionJob;\n}\n\nexport type FarmOperationsCreateDataIngestionJobParameters = RequestParameters &\n FarmOperationsCreateDataIngestionJobBodyParam;\nexport type FarmOperationsGetDataIngestionJobDetailsParameters = RequestParameters;\n\nexport interface FarmsListByFarmerIdQueryParamProperties {\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface FarmsListByFarmerIdQueryParam {\n queryParameters?: FarmsListByFarmerIdQueryParamProperties;\n}\n\nexport type FarmsListByFarmerIdParameters = RequestParameters & FarmsListByFarmerIdQueryParam;\n\nexport interface FarmsListQueryParamProperties {\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface FarmsListQueryParam {\n queryParameters?: FarmsListQueryParamProperties;\n}\n\nexport type FarmsListParameters = RequestParameters & FarmsListQueryParam;\nexport type FarmsGetParameters = RequestParameters;\n\nexport interface FarmsCreateOrUpdateBodyParam {\n body?: Farm;\n}\n\nexport type FarmsCreateOrUpdateParameters = RequestParameters & FarmsCreateOrUpdateBodyParam;\nexport type FarmsDeleteParameters = RequestParameters;\nexport type FarmsGetCascadeDeleteJobDetailsParameters = RequestParameters;\n\nexport interface FarmsCreateCascadeDeleteJobQueryParamProperties {\n /** ID of the associated farmer. */\n farmerId: string;\n /** ID of the farm to be deleted. */\n farmId: string;\n}\n\nexport interface FarmsCreateCascadeDeleteJobQueryParam {\n queryParameters: FarmsCreateCascadeDeleteJobQueryParamProperties;\n}\n\nexport type FarmsCreateCascadeDeleteJobParameters = RequestParameters &\n FarmsCreateCascadeDeleteJobQueryParam;\n\nexport interface FieldsListByFarmerIdQueryParamProperties {\n /** Farm Ids of the resource. */\n farmIds?: string[];\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface FieldsListByFarmerIdQueryParam {\n queryParameters?: FieldsListByFarmerIdQueryParamProperties;\n}\n\nexport type FieldsListByFarmerIdParameters = RequestParameters & FieldsListByFarmerIdQueryParam;\n\nexport interface FieldsListQueryParamProperties {\n /** Farm Ids of the resource. */\n farmIds?: string[];\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface FieldsListQueryParam {\n queryParameters?: FieldsListQueryParamProperties;\n}\n\nexport type FieldsListParameters = RequestParameters & FieldsListQueryParam;\nexport type FieldsGetParameters = RequestParameters;\n\nexport interface FieldsCreateOrUpdateBodyParam {\n body?: Field;\n}\n\nexport type FieldsCreateOrUpdateParameters = RequestParameters & FieldsCreateOrUpdateBodyParam;\nexport type FieldsDeleteParameters = RequestParameters;\nexport type FieldsGetCascadeDeleteJobDetailsParameters = RequestParameters;\n\nexport interface FieldsCreateCascadeDeleteJobQueryParamProperties {\n /** ID of the associated farmer. */\n farmerId: string;\n /** ID of the field to be deleted. */\n fieldId: string;\n}\n\nexport interface FieldsCreateCascadeDeleteJobQueryParam {\n queryParameters: FieldsCreateCascadeDeleteJobQueryParamProperties;\n}\n\nexport type FieldsCreateCascadeDeleteJobParameters = RequestParameters &\n FieldsCreateCascadeDeleteJobQueryParam;\n\nexport interface HarvestDataListByFarmerIdQueryParamProperties {\n /** Minimum Yield value(inclusive). */\n minTotalYield?: number;\n /** Maximum Yield value (inclusive). */\n maxTotalYield?: number;\n /** Minimum AvgYield value(inclusive). */\n minAvgYield?: number;\n /** Maximum AvgYield value (inclusive). */\n maxAvgYield?: number;\n /** Minimum Total WetMass value(inclusive). */\n minTotalWetMass?: number;\n /** Maximum Total WetMass value (inclusive). */\n maxTotalWetMass?: number;\n /** Minimum AvgWetMass value(inclusive). */\n minAvgWetMass?: number;\n /** Maximum AvgWetMass value (inclusive). */\n maxAvgWetMass?: number;\n /** Minimum AvgMoisture value(inclusive). */\n minAvgMoisture?: number;\n /** Maximum AvgMoisture value (inclusive). */\n maxAvgMoisture?: number;\n /** Minimum AvgSpeed value(inclusive). */\n minAvgSpeed?: number;\n /** Maximum AvgSpeed value (inclusive). */\n maxAvgSpeed?: number;\n /** Sources of the operation data. */\n sources?: string[];\n /** Boundary IDs associated with operation data. */\n associatedBoundaryIds?: string[];\n /** Operation boundary IDs associated with operation data. */\n operationBoundaryIds?: string[];\n /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationStartDateTime?: Date;\n /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationStartDateTime?: Date;\n /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationEndDateTime?: Date;\n /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationEndDateTime?: Date;\n /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationModifiedDateTime?: Date;\n /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationModifiedDateTime?: Date;\n /** Minimum area for which operation was applied (inclusive). */\n minArea?: number;\n /** Maximum area for which operation was applied (inclusive). */\n maxArea?: number;\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface HarvestDataListByFarmerIdQueryParam {\n queryParameters?: HarvestDataListByFarmerIdQueryParamProperties;\n}\n\nexport type HarvestDataListByFarmerIdParameters = RequestParameters &\n HarvestDataListByFarmerIdQueryParam;\n\nexport interface HarvestDataListQueryParamProperties {\n /** Minimum Yield value(inclusive). */\n minTotalYield?: number;\n /** Maximum Yield value (inclusive). */\n maxTotalYield?: number;\n /** Minimum AvgYield value(inclusive). */\n minAvgYield?: number;\n /** Maximum AvgYield value (inclusive). */\n maxAvgYield?: number;\n /** Minimum Total WetMass value(inclusive). */\n minTotalWetMass?: number;\n /** Maximum Total WetMass value (inclusive). */\n maxTotalWetMass?: number;\n /** Minimum AvgWetMass value(inclusive). */\n minAvgWetMass?: number;\n /** Maximum AvgWetMass value (inclusive). */\n maxAvgWetMass?: number;\n /** Minimum AvgMoisture value(inclusive). */\n minAvgMoisture?: number;\n /** Maximum AvgMoisture value (inclusive). */\n maxAvgMoisture?: number;\n /** Minimum AvgSpeed value(inclusive). */\n minAvgSpeed?: number;\n /** Maximum AvgSpeed value (inclusive). */\n maxAvgSpeed?: number;\n /** Sources of the operation data. */\n sources?: string[];\n /** Boundary IDs associated with operation data. */\n associatedBoundaryIds?: string[];\n /** Operation boundary IDs associated with operation data. */\n operationBoundaryIds?: string[];\n /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationStartDateTime?: Date;\n /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationStartDateTime?: Date;\n /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationEndDateTime?: Date;\n /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationEndDateTime?: Date;\n /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationModifiedDateTime?: Date;\n /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationModifiedDateTime?: Date;\n /** Minimum area for which operation was applied (inclusive). */\n minArea?: number;\n /** Maximum area for which operation was applied (inclusive). */\n maxArea?: number;\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface HarvestDataListQueryParam {\n queryParameters?: HarvestDataListQueryParamProperties;\n}\n\nexport type HarvestDataListParameters = RequestParameters & HarvestDataListQueryParam;\nexport type HarvestDataGetParameters = RequestParameters;\n\nexport interface HarvestDataCreateOrUpdateBodyParam {\n body?: HarvestData;\n}\n\nexport type HarvestDataCreateOrUpdateParameters = RequestParameters &\n HarvestDataCreateOrUpdateBodyParam;\nexport type HarvestDataDeleteParameters = RequestParameters;\n\nexport interface ImageProcessingCreateRasterizeJobBodyParam {\n body?: ImageProcessingRasterizeJob;\n}\n\nexport type ImageProcessingCreateRasterizeJobParameters = RequestParameters &\n ImageProcessingCreateRasterizeJobBodyParam;\nexport type ImageProcessingGetRasterizeJobParameters = RequestParameters;\n\nexport interface OAuthProvidersListQueryParamProperties {\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface OAuthProvidersListQueryParam {\n queryParameters?: OAuthProvidersListQueryParamProperties;\n}\n\nexport type OAuthProvidersListParameters = RequestParameters & OAuthProvidersListQueryParam;\nexport type OAuthProvidersGetParameters = RequestParameters;\n\nexport interface OAuthProvidersCreateOrUpdateBodyParam {\n body?: OAuthProvider;\n}\n\nexport type OAuthProvidersCreateOrUpdateParameters = RequestParameters &\n OAuthProvidersCreateOrUpdateBodyParam;\nexport type OAuthProvidersDeleteParameters = RequestParameters;\n\nexport interface OAuthTokensListQueryParamProperties {\n /** Name of AuthProvider. */\n authProviderIds?: string[];\n /** List of farmers. */\n farmerIds?: string[];\n /** If the token object is valid. */\n isValid?: boolean;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface OAuthTokensListQueryParam {\n queryParameters?: OAuthTokensListQueryParamProperties;\n}\n\nexport type OAuthTokensListParameters = RequestParameters & OAuthTokensListQueryParam;\n\nexport interface OAuthTokensGetOAuthConnectionLinkBodyParam {\n body?: OAuthConnectRequest;\n}\n\nexport type OAuthTokensGetOAuthConnectionLinkParameters = RequestParameters &\n OAuthTokensGetOAuthConnectionLinkBodyParam;\nexport type OAuthTokensGetCascadeDeleteJobDetailsParameters = RequestParameters;\n\nexport interface OAuthTokensCreateCascadeDeleteJobQueryParamProperties {\n /** ID of the farmer. */\n farmerId: string;\n /** ID of the OAuthProvider. */\n oauthProviderId: string;\n}\n\nexport interface OAuthTokensCreateCascadeDeleteJobQueryParam {\n queryParameters: OAuthTokensCreateCascadeDeleteJobQueryParamProperties;\n}\n\nexport type OAuthTokensCreateCascadeDeleteJobParameters = RequestParameters &\n OAuthTokensCreateCascadeDeleteJobQueryParam;\n\nexport interface PlantingDataListByFarmerIdQueryParamProperties {\n /** Minimum AvgPlantingRate value(inclusive). */\n minAvgPlantingRate?: number;\n /** Maximum AvgPlantingRate value (inclusive). */\n maxAvgPlantingRate?: number;\n /** Minimum TotalMaterial value(inclusive). */\n minTotalMaterial?: number;\n /** Maximum TotalMaterial value (inclusive). */\n maxTotalMaterial?: number;\n /** Minimum AvgMaterial value(inclusive). */\n minAvgMaterial?: number;\n /** Maximum AvgMaterial value (inclusive). */\n maxAvgMaterial?: number;\n /** Sources of the operation data. */\n sources?: string[];\n /** Boundary IDs associated with operation data. */\n associatedBoundaryIds?: string[];\n /** Operation boundary IDs associated with operation data. */\n operationBoundaryIds?: string[];\n /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationStartDateTime?: Date;\n /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationStartDateTime?: Date;\n /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationEndDateTime?: Date;\n /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationEndDateTime?: Date;\n /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationModifiedDateTime?: Date;\n /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationModifiedDateTime?: Date;\n /** Minimum area for which operation was applied (inclusive). */\n minArea?: number;\n /** Maximum area for which operation was applied (inclusive). */\n maxArea?: number;\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface PlantingDataListByFarmerIdQueryParam {\n queryParameters?: PlantingDataListByFarmerIdQueryParamProperties;\n}\n\nexport type PlantingDataListByFarmerIdParameters = RequestParameters &\n PlantingDataListByFarmerIdQueryParam;\n\nexport interface PlantingDataListQueryParamProperties {\n /** Minimum AvgPlantingRate value(inclusive). */\n minAvgPlantingRate?: number;\n /** Maximum AvgPlantingRate value (inclusive). */\n maxAvgPlantingRate?: number;\n /** Minimum TotalMaterial value(inclusive). */\n minTotalMaterial?: number;\n /** Maximum TotalMaterial value (inclusive). */\n maxTotalMaterial?: number;\n /** Minimum AvgMaterial value(inclusive). */\n minAvgMaterial?: number;\n /** Maximum AvgMaterial value (inclusive). */\n maxAvgMaterial?: number;\n /** Sources of the operation data. */\n sources?: string[];\n /** Boundary IDs associated with operation data. */\n associatedBoundaryIds?: string[];\n /** Operation boundary IDs associated with operation data. */\n operationBoundaryIds?: string[];\n /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationStartDateTime?: Date;\n /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationStartDateTime?: Date;\n /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationEndDateTime?: Date;\n /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationEndDateTime?: Date;\n /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationModifiedDateTime?: Date;\n /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationModifiedDateTime?: Date;\n /** Minimum area for which operation was applied (inclusive). */\n minArea?: number;\n /** Maximum area for which operation was applied (inclusive). */\n maxArea?: number;\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface PlantingDataListQueryParam {\n queryParameters?: PlantingDataListQueryParamProperties;\n}\n\nexport type PlantingDataListParameters = RequestParameters & PlantingDataListQueryParam;\nexport type PlantingDataGetParameters = RequestParameters;\n\nexport interface PlantingDataCreateOrUpdateBodyParam {\n body?: PlantingData;\n}\n\nexport type PlantingDataCreateOrUpdateParameters = RequestParameters &\n PlantingDataCreateOrUpdateBodyParam;\nexport type PlantingDataDeleteParameters = RequestParameters;\n\nexport interface ScenesListQueryParamProperties {\n /** Provider name of scene data. */\n provider: string;\n /** FarmerId. */\n farmerId: string;\n /** BoundaryId. */\n boundaryId: string;\n /** Source name of scene data, default value Sentinel_2_L2A (Sentinel 2 L2A). */\n source?: string;\n /** Scene start UTC datetime (inclusive), sample format: yyyy-MM-ddThh:mm:ssZ. */\n startDateTime?: Date;\n /** Scene end UTC datetime (inclusive), sample format: yyyy-MM-dThh:mm:ssZ. */\n endDateTime?: Date;\n /** Filter scenes with cloud coverage percentage less than max value. Range [0 to 100.0]. */\n maxCloudCoveragePercentage?: number;\n /** Filter scenes with dark pixel coverage percentage less than max value. Range [0 to 100.0]. */\n maxDarkPixelCoveragePercentage?: number;\n /** List of image names to be filtered. */\n imageNames?: string[];\n /** List of image resolutions in meters to be filtered. */\n imageResolutions?: number[];\n /** List of image formats to be filtered. */\n imageFormats?: string[];\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface ScenesListQueryParam {\n queryParameters: ScenesListQueryParamProperties;\n}\n\nexport type ScenesListParameters = RequestParameters & ScenesListQueryParam;\n\nexport interface ScenesCreateSatelliteDataIngestionJobBodyParam {\n body?: SatelliteDataIngestionJob;\n}\n\nexport type ScenesCreateSatelliteDataIngestionJobParameters = RequestParameters &\n ScenesCreateSatelliteDataIngestionJobBodyParam;\nexport type ScenesGetSatelliteDataIngestionJobDetailsParameters = RequestParameters;\n\nexport interface ScenesDownloadQueryParamProperties {\n /** cloud storage path of scene file. */\n filePath: string;\n}\n\nexport interface ScenesDownloadQueryParam {\n queryParameters: ScenesDownloadQueryParamProperties;\n}\n\nexport type ScenesDownloadParameters = RequestParameters & ScenesDownloadQueryParam;\n\nexport interface SeasonalFieldsListByFarmerIdQueryParamProperties {\n /** Farm Ids of the resource. */\n farmIds?: string[];\n /** Field Ids of the resource. */\n fieldIds?: string[];\n /** Season Ids of the resource. */\n seasonIds?: string[];\n /** CropVarietyIds of the resource. */\n cropVarietyIds?: string[];\n /** Ids of the crop it belongs to. */\n cropIds?: string[];\n /** Minimum average yield value of the seasonal field(inclusive). */\n minAvgYieldValue?: number;\n /** Maximum average yield value of the seasonal field(inclusive). */\n maxAvgYieldValue?: number;\n /** Unit of the average yield value attribute. */\n avgYieldUnit?: string;\n /** Minimum average seed population value of the seasonal field(inclusive). */\n minAvgSeedPopulationValue?: number;\n /** Maximum average seed population value of the seasonal field(inclusive). */\n maxAvgSeedPopulationValue?: number;\n /** Unit of average seed population value attribute. */\n avgSeedPopulationUnit?: string;\n /** Minimum planting datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n minPlantingDateTime?: Date;\n /** Maximum planting datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n maxPlantingDateTime?: Date;\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface SeasonalFieldsListByFarmerIdQueryParam {\n queryParameters?: SeasonalFieldsListByFarmerIdQueryParamProperties;\n}\n\nexport type SeasonalFieldsListByFarmerIdParameters = RequestParameters &\n SeasonalFieldsListByFarmerIdQueryParam;\n\nexport interface SeasonalFieldsListQueryParamProperties {\n /** Farm Ids of the resource. */\n farmIds?: string[];\n /** Field Ids of the resource. */\n fieldIds?: string[];\n /** Season Ids of the resource. */\n seasonIds?: string[];\n /** CropVarietyIds of the resource. */\n cropVarietyIds?: string[];\n /** Ids of the crop it belongs to. */\n cropIds?: string[];\n /** Minimum average yield value of the seasonal field(inclusive). */\n minAvgYieldValue?: number;\n /** Maximum average yield value of the seasonal field(inclusive). */\n maxAvgYieldValue?: number;\n /** Unit of the average yield value attribute. */\n avgYieldUnit?: string;\n /** Minimum average seed population value of the seasonal field(inclusive). */\n minAvgSeedPopulationValue?: number;\n /** Maximum average seed population value of the seasonal field(inclusive). */\n maxAvgSeedPopulationValue?: number;\n /** Unit of average seed population value attribute. */\n avgSeedPopulationUnit?: string;\n /** Minimum planting datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n minPlantingDateTime?: Date;\n /** Maximum planting datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n maxPlantingDateTime?: Date;\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface SeasonalFieldsListQueryParam {\n queryParameters?: SeasonalFieldsListQueryParamProperties;\n}\n\nexport type SeasonalFieldsListParameters = RequestParameters & SeasonalFieldsListQueryParam;\nexport type SeasonalFieldsGetParameters = RequestParameters;\n\nexport interface SeasonalFieldsCreateOrUpdateBodyParam {\n body?: SeasonalField;\n}\n\nexport type SeasonalFieldsCreateOrUpdateParameters = RequestParameters &\n SeasonalFieldsCreateOrUpdateBodyParam;\nexport type SeasonalFieldsDeleteParameters = RequestParameters;\nexport type SeasonalFieldsGetCascadeDeleteJobDetailsParameters = RequestParameters;\n\nexport interface SeasonalFieldsCreateCascadeDeleteJobQueryParamProperties {\n /** ID of the associated farmer. */\n farmerId: string;\n /** ID of the seasonalField to be deleted. */\n seasonalFieldId: string;\n}\n\nexport interface SeasonalFieldsCreateCascadeDeleteJobQueryParam {\n queryParameters: SeasonalFieldsCreateCascadeDeleteJobQueryParamProperties;\n}\n\nexport type SeasonalFieldsCreateCascadeDeleteJobParameters = RequestParameters &\n SeasonalFieldsCreateCascadeDeleteJobQueryParam;\n\nexport interface SeasonsListQueryParamProperties {\n /** Minimum season start datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n minStartDateTime?: Date;\n /** Maximum season start datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n maxStartDateTime?: Date;\n /** Minimum season end datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n minEndDateTime?: Date;\n /** Maximum season end datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n maxEndDateTime?: Date;\n /** Years of the resource. */\n years?: number[];\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface SeasonsListQueryParam {\n queryParameters?: SeasonsListQueryParamProperties;\n}\n\nexport type SeasonsListParameters = RequestParameters & SeasonsListQueryParam;\nexport type SeasonsGetParameters = RequestParameters;\n\nexport interface SeasonsCreateOrUpdateBodyParam {\n body?: Season;\n}\n\nexport type SeasonsCreateOrUpdateParameters = RequestParameters & SeasonsCreateOrUpdateBodyParam;\nexport type SeasonsDeleteParameters = RequestParameters;\n\nexport interface TillageDataListByFarmerIdQueryParamProperties {\n /** Minimum measured tillage depth (inclusive). */\n minTillageDepth?: number;\n /** Maximum measured tillage depth (inclusive). */\n maxTillageDepth?: number;\n /** Minimum pressure applied by a tillage implement (inclusive). */\n minTillagePressure?: number;\n /** Maximum pressure applied by a tillage implement (inclusive). */\n maxTillagePressure?: number;\n /** Sources of the operation data. */\n sources?: string[];\n /** Boundary IDs associated with operation data. */\n associatedBoundaryIds?: string[];\n /** Operation boundary IDs associated with operation data. */\n operationBoundaryIds?: string[];\n /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationStartDateTime?: Date;\n /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationStartDateTime?: Date;\n /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationEndDateTime?: Date;\n /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationEndDateTime?: Date;\n /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationModifiedDateTime?: Date;\n /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationModifiedDateTime?: Date;\n /** Minimum area for which operation was applied (inclusive). */\n minArea?: number;\n /** Maximum area for which operation was applied (inclusive). */\n maxArea?: number;\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface TillageDataListByFarmerIdQueryParam {\n queryParameters?: TillageDataListByFarmerIdQueryParamProperties;\n}\n\nexport type TillageDataListByFarmerIdParameters = RequestParameters &\n TillageDataListByFarmerIdQueryParam;\n\nexport interface TillageDataListQueryParamProperties {\n /** Minimum measured tillage depth (inclusive). */\n minTillageDepth?: number;\n /** Maximum measured tillage depth (inclusive). */\n maxTillageDepth?: number;\n /** Minimum pressure applied by a tillage implement (inclusive). */\n minTillagePressure?: number;\n /** Maximum pressure applied by a tillage implement (inclusive). */\n maxTillagePressure?: number;\n /** Sources of the operation data. */\n sources?: string[];\n /** Boundary IDs associated with operation data. */\n associatedBoundaryIds?: string[];\n /** Operation boundary IDs associated with operation data. */\n operationBoundaryIds?: string[];\n /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationStartDateTime?: Date;\n /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationStartDateTime?: Date;\n /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationEndDateTime?: Date;\n /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationEndDateTime?: Date;\n /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationModifiedDateTime?: Date;\n /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationModifiedDateTime?: Date;\n /** Minimum area for which operation was applied (inclusive). */\n minArea?: number;\n /** Maximum area for which operation was applied (inclusive). */\n maxArea?: number;\n /** Ids of the resource. */\n ids?: string[];\n /** Names of the resource. */\n names?: string[];\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"\\{testKey\\} eq \\{testValue\\}\".\n */\n propertyFilters?: string[];\n /** Statuses of the resource. */\n statuses?: string[];\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface TillageDataListQueryParam {\n queryParameters?: TillageDataListQueryParamProperties;\n}\n\nexport type TillageDataListParameters = RequestParameters & TillageDataListQueryParam;\nexport type TillageDataGetParameters = RequestParameters;\n\nexport interface TillageDataCreateOrUpdateBodyParam {\n body?: TillageData;\n}\n\nexport type TillageDataCreateOrUpdateParameters = RequestParameters &\n TillageDataCreateOrUpdateBodyParam;\nexport type TillageDataDeleteParameters = RequestParameters;\n\nexport interface WeatherListQueryParamProperties {\n /** Farmer ID. */\n farmerId: string;\n /** Boundary ID. */\n boundaryId: string;\n /** ID of the weather extension. */\n extensionId: string;\n /** Type of weather data (forecast/historical). */\n weatherDataType: string;\n /** Granularity of weather data (daily/hourly). */\n granularity: string;\n /** Weather data start UTC date-time (inclusive), sample format: yyyy-MM-ddTHH:mm:ssZ. */\n startDateTime?: Date;\n /** Weather data end UTC date-time (inclusive), sample format: yyyy-MM-ddTHH:mm:ssZ. */\n endDateTime?: Date;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface WeatherListQueryParam {\n queryParameters: WeatherListQueryParamProperties;\n}\n\nexport type WeatherListParameters = RequestParameters & WeatherListQueryParam;\nexport type WeatherGetDataIngestionJobDetailsParameters = RequestParameters;\n\nexport interface WeatherCreateDataIngestionJobBodyParam {\n body?: WeatherDataIngestionJob;\n}\n\nexport type WeatherCreateDataIngestionJobParameters = RequestParameters &\n WeatherCreateDataIngestionJobBodyParam;\nexport type WeatherGetDataDeleteJobDetailsParameters = RequestParameters;\n\nexport interface WeatherCreateDataDeleteJobBodyParam {\n body?: WeatherDataDeleteJob;\n}\n\nexport type WeatherCreateDataDeleteJobParameters = RequestParameters &\n WeatherCreateDataDeleteJobBodyParam;\n"]}
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RequestParameters } from \"@azure-rest/core-client\";\nimport {\n ApplicationData,\n SearchBoundaryQuery,\n Boundary,\n Crop,\n CropVariety,\n Farmer,\n FarmOperationDataIngestionJob,\n Farm,\n Field,\n HarvestData,\n ImageProcessingRasterizeJob,\n OAuthProvider,\n OAuthConnectRequest,\n PlantingData,\n SatelliteDataIngestionJob,\n SeasonalField,\n Season,\n TillageData,\n WeatherDataIngestionJob,\n WeatherDataDeleteJob,\n} from \"./models\";\n\nexport interface ApplicationDataListByFarmerIdQueryParamProperties {\n /** Minimum average amount of material applied during the application (inclusive). */\n minAvgMaterial?: number;\n /** Maximum average amount of material applied during the application (inclusive). */\n maxAvgMaterial?: number;\n /** Minimum total amount of material applied during the application (inclusive). */\n minTotalMaterial?: number;\n /** Maximum total amount of material applied during the application (inclusive). */\n maxTotalMaterial?: number;\n /** Sources of the operation data. */\n sources?: Array<string>;\n /** Boundary IDs associated with operation data. */\n associatedBoundaryIds?: Array<string>;\n /** Operation boundary IDs associated with operation data. */\n operationBoundaryIds?: Array<string>;\n /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationStartDateTime?: Date | string;\n /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationStartDateTime?: Date | string;\n /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationEndDateTime?: Date | string;\n /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationEndDateTime?: Date | string;\n /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationModifiedDateTime?: Date | string;\n /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationModifiedDateTime?: Date | string;\n /** Minimum area for which operation was applied (inclusive). */\n minArea?: number;\n /** Maximum area for which operation was applied (inclusive). */\n maxArea?: number;\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface ApplicationDataListByFarmerIdQueryParam {\n queryParameters?: ApplicationDataListByFarmerIdQueryParamProperties;\n}\n\nexport type ApplicationDataListByFarmerIdParameters = ApplicationDataListByFarmerIdQueryParam &\n RequestParameters;\n\nexport interface ApplicationDataListQueryParamProperties {\n /** Minimum average amount of material applied during the application (inclusive). */\n minAvgMaterial?: number;\n /** Maximum average amount of material applied during the application (inclusive). */\n maxAvgMaterial?: number;\n /** Minimum total amount of material applied during the application (inclusive). */\n minTotalMaterial?: number;\n /** Maximum total amount of material applied during the application (inclusive). */\n maxTotalMaterial?: number;\n /** Sources of the operation data. */\n sources?: Array<string>;\n /** Boundary IDs associated with operation data. */\n associatedBoundaryIds?: Array<string>;\n /** Operation boundary IDs associated with operation data. */\n operationBoundaryIds?: Array<string>;\n /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationStartDateTime?: Date | string;\n /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationStartDateTime?: Date | string;\n /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationEndDateTime?: Date | string;\n /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationEndDateTime?: Date | string;\n /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationModifiedDateTime?: Date | string;\n /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationModifiedDateTime?: Date | string;\n /** Minimum area for which operation was applied (inclusive). */\n minArea?: number;\n /** Maximum area for which operation was applied (inclusive). */\n maxArea?: number;\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface ApplicationDataListQueryParam {\n queryParameters?: ApplicationDataListQueryParamProperties;\n}\n\nexport type ApplicationDataListParameters = ApplicationDataListQueryParam & RequestParameters;\nexport type ApplicationDataGetParameters = RequestParameters;\n\nexport interface ApplicationDataCreateOrUpdateBodyParam {\n /** Application data resource payload to create or update. */\n body?: ApplicationData;\n}\n\nexport interface ApplicationDataCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type ApplicationDataCreateOrUpdateParameters = ApplicationDataCreateOrUpdateMediaTypesParam &\n ApplicationDataCreateOrUpdateBodyParam &\n RequestParameters;\nexport type ApplicationDataDeleteParameters = RequestParameters;\n\nexport interface AttachmentsListByFarmerIdQueryParamProperties {\n /** Resource Ids of the resource. */\n resourceIds?: Array<string>;\n /** Resource Types of the resource. */\n resourceTypes?: Array<string>;\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface AttachmentsListByFarmerIdQueryParam {\n queryParameters?: AttachmentsListByFarmerIdQueryParamProperties;\n}\n\nexport type AttachmentsListByFarmerIdParameters = AttachmentsListByFarmerIdQueryParam &\n RequestParameters;\nexport type AttachmentsGetParameters = RequestParameters;\n\nexport interface AttachmentsCreateOrUpdateBodyParam {\n /**\n * File to be uploaded.\n *\n * Value may contain any sequence of octets\n */\n body?: string;\n}\n\nexport interface AttachmentsCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"multipart/form-data\";\n}\n\nexport type AttachmentsCreateOrUpdateParameters = AttachmentsCreateOrUpdateMediaTypesParam &\n AttachmentsCreateOrUpdateBodyParam &\n RequestParameters;\nexport type AttachmentsDeleteParameters = RequestParameters;\nexport type AttachmentsDownloadParameters = RequestParameters;\n\nexport interface BoundariesListByFarmerIdQueryParamProperties {\n /** Is the boundary primary. */\n isPrimary?: boolean;\n /** Type of the parent it belongs to. */\n parentType?: string;\n /** Parent Ids of the resource. */\n parentIds?: Array<string>;\n /** Minimum acreage of the boundary (inclusive). */\n minAcreage?: number;\n /** Maximum acreage of the boundary (inclusive). */\n maxAcreage?: number;\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface BoundariesListByFarmerIdQueryParam {\n queryParameters?: BoundariesListByFarmerIdQueryParamProperties;\n}\n\nexport type BoundariesListByFarmerIdParameters = BoundariesListByFarmerIdQueryParam &\n RequestParameters;\n\nexport interface BoundariesSearchByFarmerIdBodyParam {\n /** Query filters. */\n body?: SearchBoundaryQuery;\n}\n\nexport interface BoundariesSearchByFarmerIdMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type BoundariesSearchByFarmerIdParameters = BoundariesSearchByFarmerIdMediaTypesParam &\n BoundariesSearchByFarmerIdBodyParam &\n RequestParameters;\n\nexport interface BoundariesListQueryParamProperties {\n /** Is the boundary primary. */\n isPrimary?: boolean;\n /** Type of the parent it belongs to. */\n parentType?: string;\n /** Parent Ids of the resource. */\n parentIds?: Array<string>;\n /** Minimum acreage of the boundary (inclusive). */\n minAcreage?: number;\n /** Maximum acreage of the boundary (inclusive). */\n maxAcreage?: number;\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface BoundariesListQueryParam {\n queryParameters?: BoundariesListQueryParamProperties;\n}\n\nexport type BoundariesListParameters = BoundariesListQueryParam & RequestParameters;\n\nexport interface BoundariesSearchBodyParam {\n /** Query filters. */\n body?: SearchBoundaryQuery;\n}\n\nexport interface BoundariesSearchMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type BoundariesSearchParameters = BoundariesSearchMediaTypesParam &\n BoundariesSearchBodyParam &\n RequestParameters;\nexport type BoundariesGetCascadeDeleteJobDetailsParameters = RequestParameters;\n\nexport interface BoundariesCreateCascadeDeleteJobQueryParamProperties {\n /** ID of the associated farmer. */\n farmerId: string;\n /** ID of the boundary to be deleted. */\n boundaryId: string;\n}\n\nexport interface BoundariesCreateCascadeDeleteJobQueryParam {\n queryParameters: BoundariesCreateCascadeDeleteJobQueryParamProperties;\n}\n\nexport type BoundariesCreateCascadeDeleteJobParameters =\n BoundariesCreateCascadeDeleteJobQueryParam & RequestParameters;\nexport type BoundariesGetParameters = RequestParameters;\n\nexport interface BoundariesCreateOrUpdateBodyParam {\n /** Boundary resource payload to create or update. */\n body?: Boundary;\n}\n\nexport interface BoundariesCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type BoundariesCreateOrUpdateParameters = BoundariesCreateOrUpdateMediaTypesParam &\n BoundariesCreateOrUpdateBodyParam &\n RequestParameters;\nexport type BoundariesDeleteParameters = RequestParameters;\n\nexport interface BoundariesGetOverlapQueryParamProperties {\n /** FarmerId of the other field. */\n otherFarmerId: string;\n /** ID of the other boundary. */\n otherBoundaryId: string;\n}\n\nexport interface BoundariesGetOverlapQueryParam {\n queryParameters: BoundariesGetOverlapQueryParamProperties;\n}\n\nexport type BoundariesGetOverlapParameters = BoundariesGetOverlapQueryParam & RequestParameters;\n\nexport interface CropsListQueryParamProperties {\n /** Crop phenotypes of the resource. */\n phenotypes?: Array<string>;\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface CropsListQueryParam {\n queryParameters?: CropsListQueryParamProperties;\n}\n\nexport type CropsListParameters = CropsListQueryParam & RequestParameters;\nexport type CropsGetParameters = RequestParameters;\n\nexport interface CropsCreateOrUpdateBodyParam {\n /** Crop resource payload to create or update. */\n body?: Crop;\n}\n\nexport interface CropsCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type CropsCreateOrUpdateParameters = CropsCreateOrUpdateMediaTypesParam &\n CropsCreateOrUpdateBodyParam &\n RequestParameters;\nexport type CropsDeleteParameters = RequestParameters;\n\nexport interface CropVarietiesListByCropIdQueryParamProperties {\n /** CropIds of the resource. */\n cropIds?: Array<string>;\n /** Brands of the resource. */\n brands?: Array<string>;\n /** Products of the resource. */\n products?: Array<string>;\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface CropVarietiesListByCropIdQueryParam {\n queryParameters?: CropVarietiesListByCropIdQueryParamProperties;\n}\n\nexport type CropVarietiesListByCropIdParameters = CropVarietiesListByCropIdQueryParam &\n RequestParameters;\n\nexport interface CropVarietiesListQueryParamProperties {\n /** CropIds of the resource. */\n cropIds?: Array<string>;\n /** Brands of the resource. */\n brands?: Array<string>;\n /** Products of the resource. */\n products?: Array<string>;\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface CropVarietiesListQueryParam {\n queryParameters?: CropVarietiesListQueryParamProperties;\n}\n\nexport type CropVarietiesListParameters = CropVarietiesListQueryParam & RequestParameters;\nexport type CropVarietiesGetParameters = RequestParameters;\n\nexport interface CropVarietiesCreateOrUpdateBodyParam {\n /** Crop variety resource payload to create or update. */\n body?: CropVariety;\n}\n\nexport interface CropVarietiesCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type CropVarietiesCreateOrUpdateParameters = CropVarietiesCreateOrUpdateMediaTypesParam &\n CropVarietiesCreateOrUpdateBodyParam &\n RequestParameters;\nexport type CropVarietiesDeleteParameters = RequestParameters;\n\nexport interface FarmersListQueryParamProperties {\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface FarmersListQueryParam {\n queryParameters?: FarmersListQueryParamProperties;\n}\n\nexport type FarmersListParameters = FarmersListQueryParam & RequestParameters;\nexport type FarmersGetParameters = RequestParameters;\n\nexport interface FarmersCreateOrUpdateBodyParam {\n /** Farmer resource payload to create or update. */\n body?: Farmer;\n}\n\nexport interface FarmersCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type FarmersCreateOrUpdateParameters = FarmersCreateOrUpdateMediaTypesParam &\n FarmersCreateOrUpdateBodyParam &\n RequestParameters;\nexport type FarmersDeleteParameters = RequestParameters;\nexport type FarmersGetCascadeDeleteJobDetailsParameters = RequestParameters;\n\nexport interface FarmersCreateCascadeDeleteJobQueryParamProperties {\n /** ID of the farmer to be deleted. */\n farmerId: string;\n}\n\nexport interface FarmersCreateCascadeDeleteJobQueryParam {\n queryParameters: FarmersCreateCascadeDeleteJobQueryParamProperties;\n}\n\nexport type FarmersCreateCascadeDeleteJobParameters = FarmersCreateCascadeDeleteJobQueryParam &\n RequestParameters;\n\nexport interface FarmOperationsCreateDataIngestionJobBodyParam {\n /** Job parameters supplied by user. */\n body?: FarmOperationDataIngestionJob;\n}\n\nexport interface FarmOperationsCreateDataIngestionJobMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type FarmOperationsCreateDataIngestionJobParameters =\n FarmOperationsCreateDataIngestionJobMediaTypesParam &\n FarmOperationsCreateDataIngestionJobBodyParam &\n RequestParameters;\nexport type FarmOperationsGetDataIngestionJobDetailsParameters = RequestParameters;\n\nexport interface FarmsListByFarmerIdQueryParamProperties {\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface FarmsListByFarmerIdQueryParam {\n queryParameters?: FarmsListByFarmerIdQueryParamProperties;\n}\n\nexport type FarmsListByFarmerIdParameters = FarmsListByFarmerIdQueryParam & RequestParameters;\n\nexport interface FarmsListQueryParamProperties {\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface FarmsListQueryParam {\n queryParameters?: FarmsListQueryParamProperties;\n}\n\nexport type FarmsListParameters = FarmsListQueryParam & RequestParameters;\nexport type FarmsGetParameters = RequestParameters;\n\nexport interface FarmsCreateOrUpdateBodyParam {\n /** Farm resource payload to create or update. */\n body?: Farm;\n}\n\nexport interface FarmsCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type FarmsCreateOrUpdateParameters = FarmsCreateOrUpdateMediaTypesParam &\n FarmsCreateOrUpdateBodyParam &\n RequestParameters;\nexport type FarmsDeleteParameters = RequestParameters;\nexport type FarmsGetCascadeDeleteJobDetailsParameters = RequestParameters;\n\nexport interface FarmsCreateCascadeDeleteJobQueryParamProperties {\n /** ID of the associated farmer. */\n farmerId: string;\n /** ID of the farm to be deleted. */\n farmId: string;\n}\n\nexport interface FarmsCreateCascadeDeleteJobQueryParam {\n queryParameters: FarmsCreateCascadeDeleteJobQueryParamProperties;\n}\n\nexport type FarmsCreateCascadeDeleteJobParameters = FarmsCreateCascadeDeleteJobQueryParam &\n RequestParameters;\n\nexport interface FieldsListByFarmerIdQueryParamProperties {\n /** Farm Ids of the resource. */\n farmIds?: Array<string>;\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface FieldsListByFarmerIdQueryParam {\n queryParameters?: FieldsListByFarmerIdQueryParamProperties;\n}\n\nexport type FieldsListByFarmerIdParameters = FieldsListByFarmerIdQueryParam & RequestParameters;\n\nexport interface FieldsListQueryParamProperties {\n /** Farm Ids of the resource. */\n farmIds?: Array<string>;\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface FieldsListQueryParam {\n queryParameters?: FieldsListQueryParamProperties;\n}\n\nexport type FieldsListParameters = FieldsListQueryParam & RequestParameters;\nexport type FieldsGetParameters = RequestParameters;\n\nexport interface FieldsCreateOrUpdateBodyParam {\n /** Field resource payload to create or update. */\n body?: Field;\n}\n\nexport interface FieldsCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type FieldsCreateOrUpdateParameters = FieldsCreateOrUpdateMediaTypesParam &\n FieldsCreateOrUpdateBodyParam &\n RequestParameters;\nexport type FieldsDeleteParameters = RequestParameters;\nexport type FieldsGetCascadeDeleteJobDetailsParameters = RequestParameters;\n\nexport interface FieldsCreateCascadeDeleteJobQueryParamProperties {\n /** ID of the associated farmer. */\n farmerId: string;\n /** ID of the field to be deleted. */\n fieldId: string;\n}\n\nexport interface FieldsCreateCascadeDeleteJobQueryParam {\n queryParameters: FieldsCreateCascadeDeleteJobQueryParamProperties;\n}\n\nexport type FieldsCreateCascadeDeleteJobParameters = FieldsCreateCascadeDeleteJobQueryParam &\n RequestParameters;\n\nexport interface HarvestDataListByFarmerIdQueryParamProperties {\n /** Minimum Yield value(inclusive). */\n minTotalYield?: number;\n /** Maximum Yield value (inclusive). */\n maxTotalYield?: number;\n /** Minimum AvgYield value(inclusive). */\n minAvgYield?: number;\n /** Maximum AvgYield value (inclusive). */\n maxAvgYield?: number;\n /** Minimum Total WetMass value(inclusive). */\n minTotalWetMass?: number;\n /** Maximum Total WetMass value (inclusive). */\n maxTotalWetMass?: number;\n /** Minimum AvgWetMass value(inclusive). */\n minAvgWetMass?: number;\n /** Maximum AvgWetMass value (inclusive). */\n maxAvgWetMass?: number;\n /** Minimum AvgMoisture value(inclusive). */\n minAvgMoisture?: number;\n /** Maximum AvgMoisture value (inclusive). */\n maxAvgMoisture?: number;\n /** Minimum AvgSpeed value(inclusive). */\n minAvgSpeed?: number;\n /** Maximum AvgSpeed value (inclusive). */\n maxAvgSpeed?: number;\n /** Sources of the operation data. */\n sources?: Array<string>;\n /** Boundary IDs associated with operation data. */\n associatedBoundaryIds?: Array<string>;\n /** Operation boundary IDs associated with operation data. */\n operationBoundaryIds?: Array<string>;\n /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationStartDateTime?: Date | string;\n /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationStartDateTime?: Date | string;\n /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationEndDateTime?: Date | string;\n /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationEndDateTime?: Date | string;\n /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationModifiedDateTime?: Date | string;\n /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationModifiedDateTime?: Date | string;\n /** Minimum area for which operation was applied (inclusive). */\n minArea?: number;\n /** Maximum area for which operation was applied (inclusive). */\n maxArea?: number;\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface HarvestDataListByFarmerIdQueryParam {\n queryParameters?: HarvestDataListByFarmerIdQueryParamProperties;\n}\n\nexport type HarvestDataListByFarmerIdParameters = HarvestDataListByFarmerIdQueryParam &\n RequestParameters;\n\nexport interface HarvestDataListQueryParamProperties {\n /** Minimum Yield value(inclusive). */\n minTotalYield?: number;\n /** Maximum Yield value (inclusive). */\n maxTotalYield?: number;\n /** Minimum AvgYield value(inclusive). */\n minAvgYield?: number;\n /** Maximum AvgYield value (inclusive). */\n maxAvgYield?: number;\n /** Minimum Total WetMass value(inclusive). */\n minTotalWetMass?: number;\n /** Maximum Total WetMass value (inclusive). */\n maxTotalWetMass?: number;\n /** Minimum AvgWetMass value(inclusive). */\n minAvgWetMass?: number;\n /** Maximum AvgWetMass value (inclusive). */\n maxAvgWetMass?: number;\n /** Minimum AvgMoisture value(inclusive). */\n minAvgMoisture?: number;\n /** Maximum AvgMoisture value (inclusive). */\n maxAvgMoisture?: number;\n /** Minimum AvgSpeed value(inclusive). */\n minAvgSpeed?: number;\n /** Maximum AvgSpeed value (inclusive). */\n maxAvgSpeed?: number;\n /** Sources of the operation data. */\n sources?: Array<string>;\n /** Boundary IDs associated with operation data. */\n associatedBoundaryIds?: Array<string>;\n /** Operation boundary IDs associated with operation data. */\n operationBoundaryIds?: Array<string>;\n /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationStartDateTime?: Date | string;\n /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationStartDateTime?: Date | string;\n /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationEndDateTime?: Date | string;\n /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationEndDateTime?: Date | string;\n /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationModifiedDateTime?: Date | string;\n /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationModifiedDateTime?: Date | string;\n /** Minimum area for which operation was applied (inclusive). */\n minArea?: number;\n /** Maximum area for which operation was applied (inclusive). */\n maxArea?: number;\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface HarvestDataListQueryParam {\n queryParameters?: HarvestDataListQueryParamProperties;\n}\n\nexport type HarvestDataListParameters = HarvestDataListQueryParam & RequestParameters;\nexport type HarvestDataGetParameters = RequestParameters;\n\nexport interface HarvestDataCreateOrUpdateBodyParam {\n /** Harvest data resource payload to create or update. */\n body?: HarvestData;\n}\n\nexport interface HarvestDataCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type HarvestDataCreateOrUpdateParameters = HarvestDataCreateOrUpdateMediaTypesParam &\n HarvestDataCreateOrUpdateBodyParam &\n RequestParameters;\nexport type HarvestDataDeleteParameters = RequestParameters;\n\nexport interface ImageProcessingCreateRasterizeJobBodyParam {\n /** Job parameters supplied by user. */\n body?: ImageProcessingRasterizeJob;\n}\n\nexport interface ImageProcessingCreateRasterizeJobMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ImageProcessingCreateRasterizeJobParameters =\n ImageProcessingCreateRasterizeJobMediaTypesParam &\n ImageProcessingCreateRasterizeJobBodyParam &\n RequestParameters;\nexport type ImageProcessingGetRasterizeJobParameters = RequestParameters;\n\nexport interface OAuthProvidersListQueryParamProperties {\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface OAuthProvidersListQueryParam {\n queryParameters?: OAuthProvidersListQueryParamProperties;\n}\n\nexport type OAuthProvidersListParameters = OAuthProvidersListQueryParam & RequestParameters;\nexport type OAuthProvidersGetParameters = RequestParameters;\n\nexport interface OAuthProvidersCreateOrUpdateBodyParam {\n /** OauthProvider resource payload to create or update. */\n body?: OAuthProvider;\n}\n\nexport interface OAuthProvidersCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type OAuthProvidersCreateOrUpdateParameters = OAuthProvidersCreateOrUpdateMediaTypesParam &\n OAuthProvidersCreateOrUpdateBodyParam &\n RequestParameters;\nexport type OAuthProvidersDeleteParameters = RequestParameters;\n\nexport interface OAuthTokensListQueryParamProperties {\n /** Name of AuthProvider. */\n authProviderIds?: Array<string>;\n /** List of farmers. */\n farmerIds?: Array<string>;\n /** If the token object is valid. */\n isValid?: boolean;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface OAuthTokensListQueryParam {\n queryParameters?: OAuthTokensListQueryParamProperties;\n}\n\nexport type OAuthTokensListParameters = OAuthTokensListQueryParam & RequestParameters;\n\nexport interface OAuthTokensGetOAuthConnectionLinkBodyParam {\n /** OAuth Connect Request. */\n body?: OAuthConnectRequest;\n}\n\nexport interface OAuthTokensGetOAuthConnectionLinkMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type OAuthTokensGetOAuthConnectionLinkParameters =\n OAuthTokensGetOAuthConnectionLinkMediaTypesParam &\n OAuthTokensGetOAuthConnectionLinkBodyParam &\n RequestParameters;\nexport type OAuthTokensGetCascadeDeleteJobDetailsParameters = RequestParameters;\n\nexport interface OAuthTokensCreateCascadeDeleteJobQueryParamProperties {\n /** ID of the farmer. */\n farmerId: string;\n /** ID of the OAuthProvider. */\n oauthProviderId: string;\n}\n\nexport interface OAuthTokensCreateCascadeDeleteJobQueryParam {\n queryParameters: OAuthTokensCreateCascadeDeleteJobQueryParamProperties;\n}\n\nexport type OAuthTokensCreateCascadeDeleteJobParameters =\n OAuthTokensCreateCascadeDeleteJobQueryParam & RequestParameters;\n\nexport interface PlantingDataListByFarmerIdQueryParamProperties {\n /** Minimum AvgPlantingRate value(inclusive). */\n minAvgPlantingRate?: number;\n /** Maximum AvgPlantingRate value (inclusive). */\n maxAvgPlantingRate?: number;\n /** Minimum TotalMaterial value(inclusive). */\n minTotalMaterial?: number;\n /** Maximum TotalMaterial value (inclusive). */\n maxTotalMaterial?: number;\n /** Minimum AvgMaterial value(inclusive). */\n minAvgMaterial?: number;\n /** Maximum AvgMaterial value (inclusive). */\n maxAvgMaterial?: number;\n /** Sources of the operation data. */\n sources?: Array<string>;\n /** Boundary IDs associated with operation data. */\n associatedBoundaryIds?: Array<string>;\n /** Operation boundary IDs associated with operation data. */\n operationBoundaryIds?: Array<string>;\n /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationStartDateTime?: Date | string;\n /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationStartDateTime?: Date | string;\n /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationEndDateTime?: Date | string;\n /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationEndDateTime?: Date | string;\n /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationModifiedDateTime?: Date | string;\n /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationModifiedDateTime?: Date | string;\n /** Minimum area for which operation was applied (inclusive). */\n minArea?: number;\n /** Maximum area for which operation was applied (inclusive). */\n maxArea?: number;\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface PlantingDataListByFarmerIdQueryParam {\n queryParameters?: PlantingDataListByFarmerIdQueryParamProperties;\n}\n\nexport type PlantingDataListByFarmerIdParameters = PlantingDataListByFarmerIdQueryParam &\n RequestParameters;\n\nexport interface PlantingDataListQueryParamProperties {\n /** Minimum AvgPlantingRate value(inclusive). */\n minAvgPlantingRate?: number;\n /** Maximum AvgPlantingRate value (inclusive). */\n maxAvgPlantingRate?: number;\n /** Minimum TotalMaterial value(inclusive). */\n minTotalMaterial?: number;\n /** Maximum TotalMaterial value (inclusive). */\n maxTotalMaterial?: number;\n /** Minimum AvgMaterial value(inclusive). */\n minAvgMaterial?: number;\n /** Maximum AvgMaterial value (inclusive). */\n maxAvgMaterial?: number;\n /** Sources of the operation data. */\n sources?: Array<string>;\n /** Boundary IDs associated with operation data. */\n associatedBoundaryIds?: Array<string>;\n /** Operation boundary IDs associated with operation data. */\n operationBoundaryIds?: Array<string>;\n /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationStartDateTime?: Date | string;\n /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationStartDateTime?: Date | string;\n /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationEndDateTime?: Date | string;\n /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationEndDateTime?: Date | string;\n /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationModifiedDateTime?: Date | string;\n /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationModifiedDateTime?: Date | string;\n /** Minimum area for which operation was applied (inclusive). */\n minArea?: number;\n /** Maximum area for which operation was applied (inclusive). */\n maxArea?: number;\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface PlantingDataListQueryParam {\n queryParameters?: PlantingDataListQueryParamProperties;\n}\n\nexport type PlantingDataListParameters = PlantingDataListQueryParam & RequestParameters;\nexport type PlantingDataGetParameters = RequestParameters;\n\nexport interface PlantingDataCreateOrUpdateBodyParam {\n /** Planting data resource payload to create or update. */\n body?: PlantingData;\n}\n\nexport interface PlantingDataCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type PlantingDataCreateOrUpdateParameters = PlantingDataCreateOrUpdateMediaTypesParam &\n PlantingDataCreateOrUpdateBodyParam &\n RequestParameters;\nexport type PlantingDataDeleteParameters = RequestParameters;\n\nexport interface ScenesListQueryParamProperties {\n /** Provider name of scene data. */\n provider: string;\n /** FarmerId. */\n farmerId: string;\n /** BoundaryId. */\n boundaryId: string;\n /** Source name of scene data, default value Sentinel_2_L2A (Sentinel 2 L2A). */\n source?: string;\n /** Scene start UTC datetime (inclusive), sample format: yyyy-MM-ddThh:mm:ssZ. */\n startDateTime?: Date | string;\n /** Scene end UTC datetime (inclusive), sample format: yyyy-MM-dThh:mm:ssZ. */\n endDateTime?: Date | string;\n /** Filter scenes with cloud coverage percentage less than max value. Range [0 to 100.0]. */\n maxCloudCoveragePercentage?: number;\n /** Filter scenes with dark pixel coverage percentage less than max value. Range [0 to 100.0]. */\n maxDarkPixelCoveragePercentage?: number;\n /** List of image names to be filtered. */\n imageNames?: Array<string>;\n /** List of image resolutions in meters to be filtered. */\n imageResolutions?: Array<number>;\n /** List of image formats to be filtered. */\n imageFormats?: Array<string>;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface ScenesListQueryParam {\n queryParameters: ScenesListQueryParamProperties;\n}\n\nexport type ScenesListParameters = ScenesListQueryParam & RequestParameters;\n\nexport interface ScenesCreateSatelliteDataIngestionJobBodyParam {\n /** Job parameters supplied by user. */\n body?: SatelliteDataIngestionJob;\n}\n\nexport interface ScenesCreateSatelliteDataIngestionJobMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ScenesCreateSatelliteDataIngestionJobParameters =\n ScenesCreateSatelliteDataIngestionJobMediaTypesParam &\n ScenesCreateSatelliteDataIngestionJobBodyParam &\n RequestParameters;\nexport type ScenesGetSatelliteDataIngestionJobDetailsParameters = RequestParameters;\n\nexport interface ScenesDownloadQueryParamProperties {\n /** cloud storage path of scene file. */\n filePath: string;\n}\n\nexport interface ScenesDownloadQueryParam {\n queryParameters: ScenesDownloadQueryParamProperties;\n}\n\nexport type ScenesDownloadParameters = ScenesDownloadQueryParam & RequestParameters;\n\nexport interface SeasonalFieldsListByFarmerIdQueryParamProperties {\n /** Farm Ids of the resource. */\n farmIds?: Array<string>;\n /** Field Ids of the resource. */\n fieldIds?: Array<string>;\n /** Season Ids of the resource. */\n seasonIds?: Array<string>;\n /** CropVarietyIds of the resource. */\n cropVarietyIds?: Array<string>;\n /** Ids of the crop it belongs to. */\n cropIds?: Array<string>;\n /** Minimum average yield value of the seasonal field(inclusive). */\n minAvgYieldValue?: number;\n /** Maximum average yield value of the seasonal field(inclusive). */\n maxAvgYieldValue?: number;\n /** Unit of the average yield value attribute. */\n avgYieldUnit?: string;\n /** Minimum average seed population value of the seasonal field(inclusive). */\n minAvgSeedPopulationValue?: number;\n /** Maximum average seed population value of the seasonal field(inclusive). */\n maxAvgSeedPopulationValue?: number;\n /** Unit of average seed population value attribute. */\n avgSeedPopulationUnit?: string;\n /** Minimum planting datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n minPlantingDateTime?: Date | string;\n /** Maximum planting datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n maxPlantingDateTime?: Date | string;\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface SeasonalFieldsListByFarmerIdQueryParam {\n queryParameters?: SeasonalFieldsListByFarmerIdQueryParamProperties;\n}\n\nexport type SeasonalFieldsListByFarmerIdParameters = SeasonalFieldsListByFarmerIdQueryParam &\n RequestParameters;\n\nexport interface SeasonalFieldsListQueryParamProperties {\n /** Farm Ids of the resource. */\n farmIds?: Array<string>;\n /** Field Ids of the resource. */\n fieldIds?: Array<string>;\n /** Season Ids of the resource. */\n seasonIds?: Array<string>;\n /** CropVarietyIds of the resource. */\n cropVarietyIds?: Array<string>;\n /** Ids of the crop it belongs to. */\n cropIds?: Array<string>;\n /** Minimum average yield value of the seasonal field(inclusive). */\n minAvgYieldValue?: number;\n /** Maximum average yield value of the seasonal field(inclusive). */\n maxAvgYieldValue?: number;\n /** Unit of the average yield value attribute. */\n avgYieldUnit?: string;\n /** Minimum average seed population value of the seasonal field(inclusive). */\n minAvgSeedPopulationValue?: number;\n /** Maximum average seed population value of the seasonal field(inclusive). */\n maxAvgSeedPopulationValue?: number;\n /** Unit of average seed population value attribute. */\n avgSeedPopulationUnit?: string;\n /** Minimum planting datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n minPlantingDateTime?: Date | string;\n /** Maximum planting datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n maxPlantingDateTime?: Date | string;\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface SeasonalFieldsListQueryParam {\n queryParameters?: SeasonalFieldsListQueryParamProperties;\n}\n\nexport type SeasonalFieldsListParameters = SeasonalFieldsListQueryParam & RequestParameters;\nexport type SeasonalFieldsGetParameters = RequestParameters;\n\nexport interface SeasonalFieldsCreateOrUpdateBodyParam {\n /** Seasonal field resource payload to create or update. */\n body?: SeasonalField;\n}\n\nexport interface SeasonalFieldsCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type SeasonalFieldsCreateOrUpdateParameters = SeasonalFieldsCreateOrUpdateMediaTypesParam &\n SeasonalFieldsCreateOrUpdateBodyParam &\n RequestParameters;\nexport type SeasonalFieldsDeleteParameters = RequestParameters;\nexport type SeasonalFieldsGetCascadeDeleteJobDetailsParameters = RequestParameters;\n\nexport interface SeasonalFieldsCreateCascadeDeleteJobQueryParamProperties {\n /** ID of the associated farmer. */\n farmerId: string;\n /** ID of the seasonalField to be deleted. */\n seasonalFieldId: string;\n}\n\nexport interface SeasonalFieldsCreateCascadeDeleteJobQueryParam {\n queryParameters: SeasonalFieldsCreateCascadeDeleteJobQueryParamProperties;\n}\n\nexport type SeasonalFieldsCreateCascadeDeleteJobParameters =\n SeasonalFieldsCreateCascadeDeleteJobQueryParam & RequestParameters;\n\nexport interface SeasonsListQueryParamProperties {\n /** Minimum season start datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n minStartDateTime?: Date | string;\n /** Maximum season start datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n maxStartDateTime?: Date | string;\n /** Minimum season end datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n minEndDateTime?: Date | string;\n /** Maximum season end datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */\n maxEndDateTime?: Date | string;\n /** Years of the resource. */\n years?: Array<number>;\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface SeasonsListQueryParam {\n queryParameters?: SeasonsListQueryParamProperties;\n}\n\nexport type SeasonsListParameters = SeasonsListQueryParam & RequestParameters;\nexport type SeasonsGetParameters = RequestParameters;\n\nexport interface SeasonsCreateOrUpdateBodyParam {\n /** Season resource payload to create or update. */\n body?: Season;\n}\n\nexport interface SeasonsCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type SeasonsCreateOrUpdateParameters = SeasonsCreateOrUpdateMediaTypesParam &\n SeasonsCreateOrUpdateBodyParam &\n RequestParameters;\nexport type SeasonsDeleteParameters = RequestParameters;\n\nexport interface TillageDataListByFarmerIdQueryParamProperties {\n /** Minimum measured tillage depth (inclusive). */\n minTillageDepth?: number;\n /** Maximum measured tillage depth (inclusive). */\n maxTillageDepth?: number;\n /** Minimum pressure applied by a tillage implement (inclusive). */\n minTillagePressure?: number;\n /** Maximum pressure applied by a tillage implement (inclusive). */\n maxTillagePressure?: number;\n /** Sources of the operation data. */\n sources?: Array<string>;\n /** Boundary IDs associated with operation data. */\n associatedBoundaryIds?: Array<string>;\n /** Operation boundary IDs associated with operation data. */\n operationBoundaryIds?: Array<string>;\n /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationStartDateTime?: Date | string;\n /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationStartDateTime?: Date | string;\n /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationEndDateTime?: Date | string;\n /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationEndDateTime?: Date | string;\n /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationModifiedDateTime?: Date | string;\n /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationModifiedDateTime?: Date | string;\n /** Minimum area for which operation was applied (inclusive). */\n minArea?: number;\n /** Maximum area for which operation was applied (inclusive). */\n maxArea?: number;\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface TillageDataListByFarmerIdQueryParam {\n queryParameters?: TillageDataListByFarmerIdQueryParamProperties;\n}\n\nexport type TillageDataListByFarmerIdParameters = TillageDataListByFarmerIdQueryParam &\n RequestParameters;\n\nexport interface TillageDataListQueryParamProperties {\n /** Minimum measured tillage depth (inclusive). */\n minTillageDepth?: number;\n /** Maximum measured tillage depth (inclusive). */\n maxTillageDepth?: number;\n /** Minimum pressure applied by a tillage implement (inclusive). */\n minTillagePressure?: number;\n /** Maximum pressure applied by a tillage implement (inclusive). */\n maxTillagePressure?: number;\n /** Sources of the operation data. */\n sources?: Array<string>;\n /** Boundary IDs associated with operation data. */\n associatedBoundaryIds?: Array<string>;\n /** Operation boundary IDs associated with operation data. */\n operationBoundaryIds?: Array<string>;\n /** Minimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationStartDateTime?: Date | string;\n /** Maximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationStartDateTime?: Date | string;\n /** Minimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationEndDateTime?: Date | string;\n /** Maximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationEndDateTime?: Date | string;\n /** Minimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n minOperationModifiedDateTime?: Date | string;\n /** Maximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive). */\n maxOperationModifiedDateTime?: Date | string;\n /** Minimum area for which operation was applied (inclusive). */\n minArea?: number;\n /** Maximum area for which operation was applied (inclusive). */\n maxArea?: number;\n /** Ids of the resource. */\n ids?: Array<string>;\n /** Names of the resource. */\n names?: Array<string>;\n /**\n * Filters on key-value pairs within the Properties object.\n * eg. \"{testKey} eq {testValue}\".\n */\n propertyFilters?: Array<string>;\n /** Statuses of the resource. */\n statuses?: Array<string>;\n /** Minimum creation date of resource (inclusive). */\n minCreatedDateTime?: Date | string;\n /** Maximum creation date of resource (inclusive). */\n maxCreatedDateTime?: Date | string;\n /** Minimum last modified date of resource (inclusive). */\n minLastModifiedDateTime?: Date | string;\n /** Maximum last modified date of resource (inclusive). */\n maxLastModifiedDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface TillageDataListQueryParam {\n queryParameters?: TillageDataListQueryParamProperties;\n}\n\nexport type TillageDataListParameters = TillageDataListQueryParam & RequestParameters;\nexport type TillageDataGetParameters = RequestParameters;\n\nexport interface TillageDataCreateOrUpdateBodyParam {\n /** Tillage data resource payload to create or update. */\n body?: TillageData;\n}\n\nexport interface TillageDataCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type TillageDataCreateOrUpdateParameters = TillageDataCreateOrUpdateMediaTypesParam &\n TillageDataCreateOrUpdateBodyParam &\n RequestParameters;\nexport type TillageDataDeleteParameters = RequestParameters;\n\nexport interface WeatherListQueryParamProperties {\n /** Farmer ID. */\n farmerId: string;\n /** Boundary ID. */\n boundaryId: string;\n /** ID of the weather extension. */\n extensionId: string;\n /** Type of weather data (forecast/historical). */\n weatherDataType: string;\n /** Granularity of weather data (daily/hourly). */\n granularity: string;\n /** Weather data start UTC date-time (inclusive), sample format: yyyy-MM-ddTHH:mm:ssZ. */\n startDateTime?: Date | string;\n /** Weather data end UTC date-time (inclusive), sample format: yyyy-MM-ddTHH:mm:ssZ. */\n endDateTime?: Date | string;\n /**\n * Maximum number of items needed (inclusive).\n * Minimum = 10, Maximum = 1000, Default value = 50.\n */\n $maxPageSize?: number;\n /** Skip token for getting next set of results. */\n $skipToken?: string;\n}\n\nexport interface WeatherListQueryParam {\n queryParameters: WeatherListQueryParamProperties;\n}\n\nexport type WeatherListParameters = WeatherListQueryParam & RequestParameters;\nexport type WeatherGetDataIngestionJobDetailsParameters = RequestParameters;\n\nexport interface WeatherCreateDataIngestionJobBodyParam {\n /** Job parameters supplied by user. */\n body?: WeatherDataIngestionJob;\n}\n\nexport interface WeatherCreateDataIngestionJobMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type WeatherCreateDataIngestionJobParameters = WeatherCreateDataIngestionJobMediaTypesParam &\n WeatherCreateDataIngestionJobBodyParam &\n RequestParameters;\nexport type WeatherGetDataDeleteJobDetailsParameters = RequestParameters;\n\nexport interface WeatherCreateDataDeleteJobBodyParam {\n /** Job parameters supplied by user. */\n body?: WeatherDataDeleteJob;\n}\n\nexport interface WeatherCreateDataDeleteJobMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type WeatherCreateDataDeleteJobParameters = WeatherCreateDataDeleteJobMediaTypesParam &\n WeatherCreateDataDeleteJobBodyParam &\n RequestParameters;\n"]}
@@ -0,0 +1,46 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT license.
3
+ import { LroEngine, } from "@azure/core-lro";
4
+ /**
5
+ * Helper function that builds a Poller object to help polling a long running operation.
6
+ * @param client - Client to use for sending the request to get additional pages.
7
+ * @param initialResponse - The initial response.
8
+ * @param options - Options to set a resume state or custom polling interval.
9
+ * @returns - A poller object to poll for operation state updates and eventually get the final response.
10
+ */
11
+ export function getLongRunningPoller(client, initialResponse, options = {}) {
12
+ const poller = {
13
+ requestMethod: initialResponse.request.method,
14
+ requestPath: initialResponse.request.url,
15
+ sendInitialRequest: async () => {
16
+ // In the case of Rest Clients we are building the LRO poller object from a response that's the reason
17
+ // we are not triggering the initial request here, just extracting the information from the
18
+ // response we were provided.
19
+ return getLroResponse(initialResponse);
20
+ },
21
+ sendPollRequest: async (path) => {
22
+ // This is the callback that is going to be called to poll the service
23
+ // to get the latest status. We use the client provided and the polling path
24
+ // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location
25
+ // depending on the lro pattern that the service implements. If non is provided we default to the initial path.
26
+ const response = await client.pathUnchecked(path !== null && path !== void 0 ? path : initialResponse.request.url).get();
27
+ return getLroResponse(response);
28
+ },
29
+ };
30
+ return new LroEngine(poller, options);
31
+ }
32
+ /**
33
+ * Converts a Rest Client response to a response that the LRO engine knows about
34
+ * @param response - a rest client http response
35
+ * @returns - An LRO response that the LRO engine can work with
36
+ */
37
+ function getLroResponse(response) {
38
+ if (Number.isNaN(response.status)) {
39
+ throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`);
40
+ }
41
+ return {
42
+ flatResponse: response,
43
+ rawResponse: Object.assign(Object.assign({}, response), { statusCode: Number.parseInt(response.status), body: response.body }),
44
+ };
45
+ }
46
+ //# sourceMappingURL=pollingHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pollingHelper.js","sourceRoot":"","sources":["../../src/pollingHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAEL,SAAS,GAKV,MAAM,iBAAiB,CAAC;AAEzB;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAClC,MAAc,EACd,eAAwB,EACxB,UAAkE,EAAE;IAEpE,MAAM,MAAM,GAAkC;QAC5C,aAAa,EAAE,eAAe,CAAC,OAAO,CAAC,MAAM;QAC7C,WAAW,EAAE,eAAe,CAAC,OAAO,CAAC,GAAG;QACxC,kBAAkB,EAAE,KAAK,IAAI,EAAE;YAC7B,sGAAsG;YACtG,2FAA2F;YAC3F,6BAA6B;YAC7B,OAAO,cAAc,CAAC,eAAe,CAAC,CAAC;QACzC,CAAC;QACD,eAAe,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YAC9B,sEAAsE;YACtE,4EAA4E;YAC5E,0JAA0J;YAC1J,+GAA+G;YAC/G,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;YACvF,OAAO,cAAc,CAAC,QAAmB,CAAC,CAAC;QAC7C,CAAC;KACF,CAAC;IAEF,OAAO,IAAI,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACxC,CAAC;AAED;;;;GAIG;AACH,SAAS,cAAc,CAA+B,QAAiB;IACrE,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QACjC,MAAM,IAAI,SAAS,CAAC,uDAAuD,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;KAC/F;IAED,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,WAAW,kCACN,QAAQ,KACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI,GACpB;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Client, HttpResponse } from \"@azure-rest/core-client\";\nimport {\n LongRunningOperation,\n LroEngine,\n LroEngineOptions,\n LroResponse,\n PollerLike,\n PollOperationState,\n} from \"@azure/core-lro\";\n\n/**\n * Helper function that builds a Poller object to help polling a long running operation.\n * @param client - Client to use for sending the request to get additional pages.\n * @param initialResponse - The initial response.\n * @param options - Options to set a resume state or custom polling interval.\n * @returns - A poller object to poll for operation state updates and eventually get the final response.\n */\nexport function getLongRunningPoller<TResult extends HttpResponse>(\n client: Client,\n initialResponse: TResult,\n options: LroEngineOptions<TResult, PollOperationState<TResult>> = {}\n): PollerLike<PollOperationState<TResult>, TResult> {\n const poller: LongRunningOperation<TResult> = {\n requestMethod: initialResponse.request.method,\n requestPath: initialResponse.request.url,\n sendInitialRequest: async () => {\n // In the case of Rest Clients we are building the LRO poller object from a response that's the reason\n // we are not triggering the initial request here, just extracting the information from the\n // response we were provided.\n return getLroResponse(initialResponse);\n },\n sendPollRequest: async (path) => {\n // This is the callback that is going to be called to poll the service\n // to get the latest status. We use the client provided and the polling path\n // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location\n // depending on the lro pattern that the service implements. If non is provided we default to the initial path.\n const response = await client.pathUnchecked(path ?? initialResponse.request.url).get();\n return getLroResponse(response as TResult);\n },\n };\n\n return new LroEngine(poller, options);\n}\n\n/**\n * Converts a Rest Client response to a response that the LRO engine knows about\n * @param response - a rest client http response\n * @returns - An LRO response that the LRO engine can work with\n */\nfunction getLroResponse<TResult extends HttpResponse>(response: TResult): LroResponse<TResult> {\n if (Number.isNaN(response.status)) {\n throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`);\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body,\n },\n };\n}\n"]}