From 24e1f7cd48558722d4c5f694d560e1e6200ea913 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 16 Aug 2024 15:07:58 +0800 Subject: [PATCH 01/16] [data-plane] refresh sdks --- common/config/rush/pnpm-lock.yaml | 10 +- sdk/agrifood/agrifood-farming-rest/LICENSE | 21 +++ .../agrifood-farming-rest/api-extractor.json | 27 +-- .../agrifood-farming-rest/package.json | 160 +++++++----------- .../review/agrifood-farming.api.md | 94 ++++------ .../agrifood-farming-rest/src/farmBeats.ts | 51 ++++-- .../agrifood-farming-rest/src/isUnexpected.ts | 30 ++-- .../agrifood-farming-rest/src/logger.ts | 5 + .../agrifood-farming-rest/src/parameters.ts | 8 +- .../src/pollingHelper.ts | 146 ++++++++++++++-- .../agrifood-farming-rest/src/responses.ts | 28 --- .../src/serializeHelper.ts | 4 +- .../agrifood-farming-rest/swagger/README.md | 3 +- .../agrifood-farming-rest/tsconfig.json | 10 +- 14 files changed, 332 insertions(+), 265 deletions(-) create mode 100644 sdk/agrifood/agrifood-farming-rest/LICENSE create mode 100644 sdk/agrifood/agrifood-farming-rest/src/logger.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 1aadde6d319d..b59e7c8ef0ab 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -11784,7 +11784,7 @@ packages: dev: false file:projects/agrifood-farming.tgz: - resolution: {integrity: sha512-qsbgUXp/2RcQCa+sDOQ6/J2CKlvsxRR6R2XGX3gjxSRNOSTf3TaBr3T6AEL9ZINSaPPLzVLJr2L3sqdWgt6dRw==, tarball: file:projects/agrifood-farming.tgz} + resolution: {integrity: sha512-ICqL8vb343FMBDp3o2nIrGFEi0M3ngMJwtTv8Xa40jKYvTw6hXyir9MwnlsC79JgHuMyl96YPNm//xdkoZ6NFw==, tarball: file:projects/agrifood-farming.tgz} name: '@rush-temp/agrifood-farming' version: 0.0.0 dependencies: @@ -11797,6 +11797,7 @@ packages: '@types/chai': 4.3.17 '@types/mocha': 10.0.7 '@types/node': 18.19.44 + autorest: 3.7.1 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -11816,18 +11817,15 @@ packages: mkdirp: 3.0.1 mocha: 10.7.3 nyc: 17.0.0 + prettier: 3.3.3 rimraf: 5.0.10 source-map-support: 0.5.21 ts-node: 10.9.2(@types/node@18.19.44)(typescript@5.5.4) tslib: 2.6.3 typescript: 5.5.4 + uglify-js: 3.19.2 transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' - - bufferutil - - debug - supports-color - - utf-8-validate dev: false file:projects/ai-anomaly-detector.tgz: diff --git a/sdk/agrifood/agrifood-farming-rest/LICENSE b/sdk/agrifood/agrifood-farming-rest/LICENSE new file mode 100644 index 000000000000..7d5934740965 --- /dev/null +++ b/sdk/agrifood/agrifood-farming-rest/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2024 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/sdk/agrifood/agrifood-farming-rest/api-extractor.json b/sdk/agrifood/agrifood-farming-rest/api-extractor.json index 9e9ab297ba64..d8fe124b20ed 100644 --- a/sdk/agrifood/agrifood-farming-rest/api-extractor.json +++ b/sdk/agrifood/agrifood-farming-rest/api-extractor.json @@ -1,31 +1,18 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "types/src/index.d.ts", - "docModel": { - "enabled": true - }, - "apiReport": { - "enabled": true, - "reportFolder": "./review" - }, + "mainEntryPointFilePath": "./types/index.d.ts", + "docModel": { "enabled": true }, + "apiReport": { "enabled": true, "reportFolder": "./review" }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/agrifood-farming-rest.d.ts" + "publicTrimmedFilePath": "./types/agrifood-farming.d.ts" }, "messages": { - "tsdocMessageReporting": { - "default": { - "logLevel": "none" - } - }, + "tsdocMessageReporting": { "default": { "logLevel": "none" } }, "extractorMessageReporting": { - "ae-missing-release-tag": { - "logLevel": "none" - }, - "ae-unresolved-link": { - "logLevel": "none" - } + "ae-missing-release-tag": { "logLevel": "none" }, + "ae-unresolved-link": { "logLevel": "none" } } } } diff --git a/sdk/agrifood/agrifood-farming-rest/package.json b/sdk/agrifood/agrifood-farming-rest/package.json index 10ecf9ce6466..11cf30757f98 100644 --- a/sdk/agrifood/agrifood-farming-rest/package.json +++ b/sdk/agrifood/agrifood-farming-rest/package.json @@ -1,9 +1,15 @@ { "name": "@azure-rest/agrifood-farming", - "sdk-type": "client", - "author": "Microsoft Corporation", - "description": "An isomorphic REST client library for the Azure FarmBeats Service.", "version": "1.0.0-beta.3", + "description": "A generated SDK for FarmBeats.", + "engines": { + "node": ">=18.0.0" + }, + "sideEffects": false, + "autoPublish": false, + "main": "dist/index.js", + "module": "./dist-esm/index.js", + "types": "./types/agrifood-farming.d.ts", "keywords": [ "node", "azure", @@ -12,118 +18,82 @@ "browser", "isomorphic" ], + "author": "Microsoft Corporation", "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/agrifood-farming-rest.d.ts", - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/agrifood/agrifood-farming/README.md", - "repository": "github:Azure/azure-sdk-for-js", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, "files": [ "dist/", - "dist-esm/src/", - "types/agrifood-farming-rest.d.ts", + "dist-esm/", + "types/agrifood-farming.d.ts", "README.md", - "LICENSE" + "LICENSE", + "review/*", + "CHANGELOG.md" ], - "engines": { - "node": ">=18.0.0" + "sdk-type": "mgmt", + "repository": "github:Azure/azure-sdk-for-js", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/agrifood/agrifood-farming-rest/README.md", + "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", "//metadata": { "constantPaths": [ { "path": "swagger/README.md", "prefix": "package-version" + }, + { + "path": "src/farmBeats.ts", + "prefix": "userAgentInfo" } ] }, - "//sampleConfiguration": { - "productName": "Azure FarmBeats rest", - "productSlugs": [ - "azure", - "azure-farmbeats" - ], - "requiredResources": { - "Azure FarmBeats Service instance": "https://docs.microsoft.com/azure/industry/agriculture/install-azure-farmbeats" - } - }, - "browser": { - "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js" - }, - "scripts": { - "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", - "build:browser": "tsc -p . && dev-tool run bundle", - "build:node": "tsc -p . && dev-tool run bundle", - "build:samples": "echo Obsolete.", - "build:test": "tsc -p . && dev-tool run bundle", - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", - "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", - "execute:samples": "dev-tool samples run samples-dev", - "extract-api": "rimraf review && mkdirp ./review && dev-tool run extract-api", - "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", - "generate:client": "autorest --typescript swagger/README.md && npm run format", - "integration-test:browser": "karma start --single-run", - "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 \"dist-esm/test/{,!(browser)/**/}*.spec.js\"", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", - "lint": "eslint package.json api-extractor.json src test --ext .ts", - "pack": "npm pack 2>&1", - "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser", - "test:node": "npm run clean && npm run build:test && npm run unit-test:node", - "test": "npm run clean && npm run build:test && npm run unit-test", - "unit-test:browser": "dev-tool run test:browser", - "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'", - "unit-test": "cross-env TEST_MODE=playback && npm run unit-test:node && npm run unit-test:browser" - }, - "sideEffects": false, - "autoPublish": false, "dependencies": { - "@azure/core-rest-pipeline": "^1.9.2", - "@azure-rest/core-client": "^1.0.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-lro": "^2.2.4", - "@azure/core-paging": "^1.2.0", + "@azure-rest/core-client": "^1.4.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.5.0", "@azure/logger": "^1.0.0", - "tslib": "^2.2.0" + "tslib": "^2.6.2", + "@azure/core-lro": "^3.0.0", + "@azure/abort-controller": "^2.1.2", + "@azure/core-paging": "^1.5.0" }, "devDependencies": { - "@azure/core-util": "^1.0.0", - "@azure/dev-tool": "^1.0.0", - "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@azure/identity": "^4.0.1", - "@azure-tools/test-utils": "^1.0.1", - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", - "@microsoft/api-extractor": "^7.31.1", - "@types/chai": "^4.1.6", - "@types/mocha": "^10.0.0", - "@types/node": "^18.0.0", - "chai": "^4.2.0", - "cross-env": "^7.0.2", "dotenv": "^16.0.0", - "eslint": "^8.0.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", - "karma-json-preprocessor": "^0.3.3", - "karma-json-to-file-reporter": "^1.0.1", - "karma-junit-reporter": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-mocha": "^2.0.1", - "karma-source-map-support": "~1.4.0", - "karma-sourcemap-loader": "^0.3.8", - "karma": "^6.2.0", - "mkdirp": "^3.0.1", - "mocha": "^10.0.0", - "nyc": "^17.0.0", + "@microsoft/api-extractor": "^7.40.3", + "@types/node": "^18.0.0", + "eslint": "^8.55.0", + "prettier": "^3.2.5", "rimraf": "^5.0.5", - "source-map-support": "^0.5.9", + "mkdirp": "^3.0.1", "typescript": "~5.5.3", - "ts-node": "^10.0.0" + "autorest": "latest", + "source-map-support": "^0.5.9", + "uglify-js": "^3.4.9", + "@azure/dev-tool": "^1.0.0", + "@azure/eslint-plugin-azure-sdk": "^3.0.0" + }, + "scripts": { + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "extract-api": "rimraf review && mkdirp ./review && dev-tool run extract-api", + "pack": "npm pack 2>&1", + "lint": "eslint package.json api-extractor.json src test --ext .ts --ext .cts --ext .mts", + "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --ext .cts --ext .mts --fix --fix-type [problem,suggestion]", + "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", + "build:samples": "echo skipped", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", + "execute:samples": "echo skipped", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", + "integration-test:browser": "dev-tool run test:browser", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", + "generate:client": "echo skipped", + "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser", + "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "build": "npm run clean && tsc -p . && dev-tool run bundle && mkdirp ./review && dev-tool run extract-api", + "build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1", + "build:test": "tsc -p . && dev-tool run bundle", + "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", + "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'", + "unit-test:browser": "dev-tool run test:browser" } } diff --git a/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md b/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md index 9a41b33ed019..7cdd7818d21e 100644 --- a/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md +++ b/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md @@ -4,6 +4,8 @@ ```ts +import { AbortSignalLike } from '@azure/abort-controller'; +import { CancelOnProgress } from '@azure/core-lro'; import { Client } from '@azure-rest/core-client'; import { ClientOptions } from '@azure-rest/core-client'; import { CreateHttpPollerOptions } from '@azure/core-lro'; @@ -13,7 +15,6 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { PathUncheckedResponse } from '@azure-rest/core-client'; import { RawHttpHeaders } from '@azure/core-rest-pipeline'; import { RequestParameters } from '@azure-rest/core-client'; -import { SimplePollerLike } from '@azure/core-lro'; import { StreamableMethod } from '@azure-rest/core-client'; import { TokenCredential } from '@azure/core-auth'; @@ -138,8 +139,6 @@ export type ApplicationDataCreateOrUpdateParameters = ApplicationDataCreateOrUpd // @public export interface ApplicationDataDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -497,8 +496,6 @@ export type AttachmentsCreateOrUpdateParameters = AttachmentsCreateOrUpdateMedia // @public export interface AttachmentsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -787,8 +784,6 @@ export type BoundariesCreateOrUpdateParameters = BoundariesCreateOrUpdateMediaTy // @public export interface BoundariesDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -1178,7 +1173,7 @@ export interface BoundaryOverlapResponseOutput { export type BoundaryResourceMergeAndPatch = Partial; // @public (undocumented) -export function buildMultiCollection(queryParameters: string[], parameterName: string): string; +export function buildMultiCollection(items: string[], parameterName: string): string; // @public export interface CascadeDeleteJobOutput { @@ -1197,7 +1192,7 @@ export interface CascadeDeleteJobOutput { } // @public -function createClient($host: string, credentials: TokenCredential, options?: ClientOptions): FarmBeatsClient; +function createClient($host: string, credentials: TokenCredential, { apiVersion, ...options }?: FarmBeatsClientOptions): FarmBeatsClient; export default createClient; // @public @@ -1330,8 +1325,6 @@ export type CropProductsCreateOrUpdateParameters = CropProductsCreateOrUpdateMed // @public export interface CropProductsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -1495,8 +1488,6 @@ export type CropsCreateOrUpdateParameters = CropsCreateOrUpdateMediaTypesParam & // @public export interface CropsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -1718,8 +1709,6 @@ export type DeviceDataModelsCreateOrUpdateParameters = DeviceDataModelsCreateOrU // @public export interface DeviceDataModelsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -1908,8 +1897,6 @@ export type DevicesCreateOrUpdateParameters = DevicesCreateOrUpdateMediaTypesPar // @public export interface DevicesDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -2051,6 +2038,11 @@ export type FarmBeatsClient = Client & { path: Routes; }; +// @public +export interface FarmBeatsClientOptions extends ClientOptions { + apiVersion?: string; +} + // @public export interface FarmListResponseOutput { nextLink?: string; @@ -2274,8 +2266,6 @@ export type FarmsCreateOrUpdateParameters = FarmsCreateOrUpdateMediaTypesParam & // @public export interface FarmsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -2587,8 +2577,6 @@ export type FieldsCreateOrUpdateParameters = FieldsCreateOrUpdateMediaTypesParam // @public export interface FieldsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -2928,8 +2916,6 @@ export type HarvestDataCreateOrUpdateParameters = HarvestDataCreateOrUpdateMedia // @public export interface HarvestDataDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -3448,8 +3434,6 @@ export type InsightAttachmentsCreateOrUpdateParameters = InsightAttachmentsCreat // @public export interface InsightAttachmentsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -3719,8 +3703,6 @@ export type InsightsCreateOrUpdateParameters = InsightsCreateOrUpdateMediaTypesP // @public export interface InsightsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -4609,8 +4591,6 @@ export type ManagementZonesCreateOrUpdateParameters = ManagementZonesCreateOrUpd // @public export interface ManagementZonesDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -5104,8 +5084,6 @@ export type NutrientAnalysesCreateOrUpdateParameters = NutrientAnalysesCreateOrU // @public export interface NutrientAnalysesDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -5476,8 +5454,6 @@ export type OAuthProvidersCreateOrUpdateParameters = OAuthProvidersCreateOrUpdat // @public export interface OAuthProvidersDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -5902,8 +5878,6 @@ export type PartiesCreateOrUpdateParameters = PartiesCreateOrUpdateMediaTypesPar // @public export interface PartiesDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -6190,8 +6164,6 @@ export type PlantingDataCreateOrUpdateParameters = PlantingDataCreateOrUpdateMed // @public export interface PlantingDataDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -6556,8 +6528,6 @@ export type PlantTissueAnalysesCreateOrUpdateParameters = PlantTissueAnalysesCre // @public export interface PlantTissueAnalysesDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -7008,8 +6978,6 @@ export type PrescriptionMapsCreateOrUpdateParameters = PrescriptionMapsCreateOrU // @public export interface PrescriptionMapsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -7324,8 +7292,6 @@ export type PrescriptionsCreateOrUpdateParameters = PrescriptionsCreateOrUpdateM // @public export interface PrescriptionsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -7926,7 +7892,7 @@ export interface ScenesListQueryParamProperties { endDateTime?: Date | string; imageFormats?: string; imageNames?: string; - imageResolutions?: Array; + imageResolutions?: string; maxCloudCoveragePercentage?: number; maxDarkPixelCoveragePercentage?: number; maxPageSize?: number; @@ -8170,8 +8136,6 @@ export type SeasonalFieldsCreateOrUpdateParameters = SeasonalFieldsCreateOrUpdat // @public export interface SeasonalFieldsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -8452,8 +8416,6 @@ export type SeasonsCreateOrUpdateParameters = SeasonsCreateOrUpdateMediaTypesPar // @public export interface SeasonsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -8565,7 +8527,7 @@ export interface SeasonsListQueryParamProperties { propertyFilters?: string; skipToken?: string; statuses?: string; - years?: Array; + years?: string; } // @public @@ -8697,8 +8659,6 @@ export type SensorDataModelsCreateOrUpdateParameters = SensorDataModelsCreateOrU // @public export interface SensorDataModelsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -8967,8 +8927,6 @@ export type SensorMappingsCreateOrUpdateParameters = SensorMappingsCreateOrUpdat // @public export interface SensorMappingsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -9244,8 +9202,6 @@ export type SensorPartnerIntegrationsCreateOrUpdateParameters = SensorPartnerInt // @public export interface SensorPartnerIntegrationsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -9487,8 +9443,6 @@ export type SensorsCreateOrUpdateParameters = SensorsCreateOrUpdateMediaTypesPar // @public export interface SensorsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -9668,6 +9622,28 @@ export interface SensorsRenewConnectionStringMediaTypesParam { // @public (undocumented) export type SensorsRenewConnectionStringParameters = SensorsRenewConnectionStringMediaTypesParam & SensorsRenewConnectionStringBodyParam & RequestParameters; +// @public +export interface SimplePollerLike, TResult> { + getOperationState(): TState; + getResult(): TResult | undefined; + isDone(): boolean; + // @deprecated + isStopped(): boolean; + onProgress(callback: (state: TState) => void): CancelOnProgress; + poll(options?: { + abortSignal?: AbortSignalLike; + }): Promise; + pollUntilDone(pollOptions?: { + abortSignal?: AbortSignalLike; + }): Promise; + serialize(): Promise; + // @deprecated + stopPolling(): void; + submitted(): Promise; + // @deprecated + toString(): string; +} + // @public export interface SoilMoistureModelJob { boundaryId: string; @@ -10002,8 +9978,6 @@ export type TillageDataCreateOrUpdateParameters = TillageDataCreateOrUpdateMedia // @public export interface TillageDataDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -10830,8 +10804,6 @@ export type ZonesCreateOrUpdateParameters = ZonesCreateOrUpdateMediaTypesParam & // @public export interface ZonesDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } diff --git a/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts b/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts index a101f3a9ac85..c963136effee 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts @@ -2,30 +2,29 @@ // Licensed under the MIT license. import { getClient, ClientOptions } from "@azure-rest/core-client"; +import { logger } from "./logger"; import { TokenCredential } from "@azure/core-auth"; import { FarmBeatsClient } from "./clientDefinitions"; +/** The optional parameters for the client */ +export interface FarmBeatsClientOptions extends ClientOptions { + /** The api version option of the client */ + apiVersion?: string; +} + /** * Initialize a new instance of `FarmBeatsClient` - * @param $host type: string, server parameter - * @param credentials type: TokenCredential, uniquely identify client credential - * @param options type: ClientOptions, the parameter for all optional parameters + * @param $host - server parameter + * @param credentials - uniquely identify client credential + * @param options - the parameter for all optional parameters */ export default function createClient( $host: string, credentials: TokenCredential, - options: ClientOptions = {}, + { apiVersion = "2022-11-01-preview", ...options }: FarmBeatsClientOptions = {}, ): FarmBeatsClient { - const baseUrl = options.baseUrl ?? `${$host}`; - options.apiVersion = options.apiVersion ?? "2022-11-01-preview"; - options = { - ...options, - credentials: { - scopes: ["https://farmbeats.azure.net/.default"], - }, - }; - - const userAgentInfo = `azsdk-js-agrifood-farming-rest/1.0.0-beta.2`; + const endpointUrl = options.endpoint ?? options.baseUrl ?? `${$host}`; + const userAgentInfo = `azsdk-js-agrifood-farming-rest/1.0.0-beta.3`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` @@ -35,9 +34,31 @@ export default function createClient( userAgentOptions: { userAgentPrefix, }, + loggingOptions: { + logger: options.loggingOptions?.logger ?? logger.info, + }, + credentials: { + scopes: options.credentials?.scopes ?? ["https://farmbeats.azure.net/.default"], + }, }; + const client = getClient(endpointUrl, credentials, options) as FarmBeatsClient; + + client.pipeline.removePolicy({ name: "ApiVersionPolicy" }); + client.pipeline.addPolicy({ + name: "ClientApiVersionPolicy", + sendRequest: (req, next) => { + // Use the apiVersion defined in request url directly + // Append one if there is no apiVersion and we have one at client options + const url = new URL(req.url); + if (!url.searchParams.get("api-version") && apiVersion) { + req.url = `${req.url}${ + Array.from(url.searchParams.keys()).length > 0 ? "&" : "?" + }api-version=${apiVersion}`; + } - const client = getClient(baseUrl, credentials, options) as FarmBeatsClient; + return next(req); + }, + }); return client; } diff --git a/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts b/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts index aae518391724..32988d895492 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts @@ -428,8 +428,8 @@ import { const responseMap: Record = { "GET /application-data": ["200"], - "PUT /application-data/cascade-delete/{jobId}": ["202"], "GET /application-data/cascade-delete/{jobId}": ["200"], + "PUT /application-data/cascade-delete/{jobId}": ["202"], "GET /parties/{partyId}/application-data": ["200"], "GET /parties/{partyId}/application-data/{applicationDataId}": ["200"], "PATCH /parties/{partyId}/application-data/{applicationDataId}": ["200", "201"], @@ -441,8 +441,8 @@ const responseMap: Record = { "GET /parties/{partyId}/attachments/{attachmentId}/file": ["200"], "GET /boundaries": ["200"], "POST /boundaries": ["200"], - "PUT /boundaries/cascade-delete/{jobId}": ["202"], "GET /boundaries/cascade-delete/{jobId}": ["200"], + "PUT /boundaries/cascade-delete/{jobId}": ["202"], "GET /parties/{partyId}/boundaries": ["200"], "POST /parties/{partyId}/boundaries": ["200"], "PATCH /parties/{partyId}/boundaries/{boundaryId}": ["200", "201"], @@ -465,11 +465,11 @@ const responseMap: Record = { "PATCH /sensor-partners/{sensorPartnerId}/devices/{deviceId}": ["200", "201"], "GET /sensor-partners/{sensorPartnerId}/devices/{deviceId}": ["200"], "DELETE /sensor-partners/{sensorPartnerId}/devices/{deviceId}": ["204"], - "PUT /farm-operations/ingest-data/{jobId}": ["202"], "GET /farm-operations/ingest-data/{jobId}": ["200"], + "PUT /farm-operations/ingest-data/{jobId}": ["202"], "GET /farms": ["200"], - "PUT /farms/cascade-delete/{jobId}": ["202"], "GET /farms/cascade-delete/{jobId}": ["200"], + "PUT /farms/cascade-delete/{jobId}": ["202"], "GET /parties/{partyId}/farms": ["200"], "GET /parties/{partyId}/farms/{farmId}": ["200"], "PATCH /parties/{partyId}/farms/{farmId}": ["200", "201"], @@ -482,14 +482,14 @@ const responseMap: Record = { "PATCH /parties/{partyId}/fields/{fieldId}": ["200", "201"], "DELETE /parties/{partyId}/fields/{fieldId}": ["204"], "GET /harvest-data": ["200"], - "PUT /harvest-data/cascade-delete/{jobId}": ["202"], "GET /harvest-data/cascade-delete/{jobId}": ["200"], + "PUT /harvest-data/cascade-delete/{jobId}": ["202"], "GET /parties/{partyId}/harvest-data": ["200"], "GET /parties/{partyId}/harvest-data/{harvestDataId}": ["200"], "PATCH /parties/{partyId}/harvest-data/{harvestDataId}": ["200", "201"], "DELETE /parties/{partyId}/harvest-data/{harvestDataId}": ["204"], - "PUT /image-processing/rasterize/{jobId}": ["202"], "GET /image-processing/rasterize/{jobId}": ["200"], + "PUT /image-processing/rasterize/{jobId}": ["202"], "GET /parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insight-attachments": ["200"], "PATCH /parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insight-attachments/{insightAttachmentId}": @@ -500,8 +500,8 @@ const responseMap: Record = { ["204"], "GET /parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insight-attachments/{insightAttachmentId}/file": ["200"], - "PUT /insights/cascade-delete/{jobId}": ["202"], "GET /insights/cascade-delete/{jobId}": ["200"], + "PUT /insights/cascade-delete/{jobId}": ["202"], "GET /parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insights": ["200"], "PATCH /parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insights/{insightId}": @@ -517,12 +517,12 @@ const responseMap: Record = { "GET /parties/{partyId}/management-zones/{managementZoneId}": ["200"], "PATCH /parties/{partyId}/management-zones/{managementZoneId}": ["200", "201"], "DELETE /parties/{partyId}/management-zones/{managementZoneId}": ["204"], - "PUT /model-inference/models/microsoft-biomass/infer-data/{jobId}": ["202"], "GET /model-inference/models/microsoft-biomass/infer-data/{jobId}": ["200"], - "PUT /model-inference/models/microsoft-sensor-placement/infer-data/{jobId}": ["202"], + "PUT /model-inference/models/microsoft-biomass/infer-data/{jobId}": ["202"], "GET /model-inference/models/microsoft-sensor-placement/infer-data/{jobId}": ["200"], - "PUT /model-inference/models/microsoft-soil-moisture/infer-data/{jobId}": ["202"], + "PUT /model-inference/models/microsoft-sensor-placement/infer-data/{jobId}": ["202"], "GET /model-inference/models/microsoft-soil-moisture/infer-data/{jobId}": ["200"], + "PUT /model-inference/models/microsoft-soil-moisture/infer-data/{jobId}": ["202"], "GET /nutrient-analyses": ["200"], "GET /parties/{partyId}/nutrient-analyses": ["200"], "GET /parties/{partyId}/nutrient-analyses/{nutrientAnalysisId}": ["200"], @@ -549,15 +549,15 @@ const responseMap: Record = { "PATCH /parties/{partyId}/planting-data/{plantingDataId}": ["200", "201"], "DELETE /parties/{partyId}/planting-data/{plantingDataId}": ["204"], "GET /planting-data": ["200"], - "PUT /planting-data/cascade-delete/{jobId}": ["202"], "GET /planting-data/cascade-delete/{jobId}": ["200"], + "PUT /planting-data/cascade-delete/{jobId}": ["202"], "GET /parties/{partyId}/plant-tissue-analyses": ["200"], "GET /parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}": ["200"], "PATCH /parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}": ["200", "201"], "DELETE /parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}": ["204"], "GET /plant-tissue-analyses": ["200"], - "PUT /plant-tissue-analyses/cascade-delete/{jobId}": ["202"], "GET /plant-tissue-analyses/cascade-delete/{jobId}": ["200"], + "PUT /plant-tissue-analyses/cascade-delete/{jobId}": ["202"], "GET /parties/{partyId}/prescription-maps": ["200"], "GET /parties/{partyId}/prescription-maps/{prescriptionMapId}": ["200"], "PATCH /parties/{partyId}/prescription-maps/{prescriptionMapId}": ["200", "201"], @@ -574,8 +574,8 @@ const responseMap: Record = { "PUT /prescriptions/cascade-delete/{jobId}": ["202"], "GET /scenes": ["200"], "GET /scenes/downloadFiles": ["200"], - "PUT /scenes/satellite/ingest-data/{jobId}": ["202"], "GET /scenes/satellite/ingest-data/{jobId}": ["200"], + "PUT /scenes/satellite/ingest-data/{jobId}": ["202"], "POST /scenes/stac-collections/{collectionId}:search": ["200"], "GET /scenes/stac-collections/{collectionId}/features/{featureId}": ["200"], "GET /parties/{partyId}/seasonal-fields": ["200"], @@ -613,16 +613,16 @@ const responseMap: Record = { "GET /sensor-partners/{sensorPartnerId}/sensors/{sensorId}/connection-strings": ["200"], "POST /sensor-partners/{sensorPartnerId}/sensors/{sensorId}/connection-strings/:renew": ["200"], "POST /solutions/{solutionId}:cancel": ["200"], - "POST /solutions/{solutionId}:create": ["202"], "GET /solutions/{solutionId}:create": ["202"], + "POST /solutions/{solutionId}:create": ["202"], "POST /solutions/{solutionId}:fetch": ["200"], "GET /parties/{partyId}/tillage-data": ["200"], "GET /parties/{partyId}/tillage-data/{tillageDataId}": ["200"], "PATCH /parties/{partyId}/tillage-data/{tillageDataId}": ["200", "201"], "DELETE /parties/{partyId}/tillage-data/{tillageDataId}": ["204"], "GET /tillage-data": ["200"], - "PUT /tillage-data/cascade-delete/{jobId}": ["202"], "GET /tillage-data/cascade-delete/{jobId}": ["200"], + "PUT /tillage-data/cascade-delete/{jobId}": ["202"], "GET /weather": ["200"], "GET /weather/delete-data/{jobId}": ["200"], "PUT /weather/delete-data/{jobId}": ["202"], diff --git a/sdk/agrifood/agrifood-farming-rest/src/logger.ts b/sdk/agrifood/agrifood-farming-rest/src/logger.ts new file mode 100644 index 000000000000..12b526480bf5 --- /dev/null +++ b/sdk/agrifood/agrifood-farming-rest/src/logger.ts @@ -0,0 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { createClientLogger } from "@azure/logger"; +export const logger = createClientLogger("agrifood-farming"); diff --git a/sdk/agrifood/agrifood-farming-rest/src/parameters.ts b/sdk/agrifood/agrifood-farming-rest/src/parameters.ts index aaa2803a32ba..2c521348beff 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/parameters.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/parameters.ts @@ -2330,8 +2330,8 @@ export interface ScenesListQueryParamProperties { maxDarkPixelCoveragePercentage?: number; /** List of image names to be filtered. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ imageNames?: string; - /** List of image resolutions in meters to be filtered. */ - imageResolutions?: Array; + /** List of image resolutions in meters to be filtered. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ + imageResolutions?: string; /** List of image formats to be filtered. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ imageFormats?: string; /** @@ -2536,8 +2536,8 @@ export interface SeasonsListQueryParamProperties { minEndDateTime?: Date | string; /** Maximum season end datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */ maxEndDateTime?: Date | string; - /** Years of the resource. */ - years?: Array; + /** Years of the resource. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ + years?: string; /** Ids of the resource. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ ids?: string; /** Names of the resource. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ diff --git a/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts b/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts index 40004b75ca92..65fb8e1eb40f 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts @@ -2,14 +2,82 @@ // Licensed under the MIT license. import { Client, HttpResponse } from "@azure-rest/core-client"; +import { AbortSignalLike } from "@azure/abort-controller"; import { + CancelOnProgress, CreateHttpPollerOptions, - LongRunningOperation, - LroResponse, + RunningOperation, + OperationResponse, OperationState, - SimplePollerLike, createHttpPoller, } from "@azure/core-lro"; + +/** + * A simple poller that can be used to poll a long running operation. + */ +export interface SimplePollerLike, TResult> { + /** + * Returns true if the poller has finished polling. + */ + isDone(): boolean; + /** + * Returns the state of the operation. + */ + getOperationState(): TState; + /** + * Returns the result value of the operation, + * regardless of the state of the poller. + * It can return undefined or an incomplete form of the final TResult value + * depending on the implementation. + */ + getResult(): TResult | undefined; + /** + * Returns a promise that will resolve once a single polling request finishes. + * It does this by calling the update method of the Poller's operation. + */ + poll(options?: { abortSignal?: AbortSignalLike }): Promise; + /** + * Returns a promise that will resolve once the underlying operation is completed. + */ + pollUntilDone(pollOptions?: { abortSignal?: AbortSignalLike }): Promise; + /** + * Invokes the provided callback after each polling is completed, + * sending the current state of the poller's operation. + * + * It returns a method that can be used to stop receiving updates on the given callback function. + */ + onProgress(callback: (state: TState) => void): CancelOnProgress; + + /** + * Returns a promise that could be used for serialized version of the poller's operation + * by invoking the operation's serialize method. + */ + serialize(): Promise; + + /** + * Wait the poller to be submitted. + */ + submitted(): Promise; + + /** + * Returns a string representation of the poller's operation. Similar to serialize but returns a string. + * @deprecated Use serialize() instead. + */ + toString(): string; + + /** + * Stops the poller from continuing to poll. Please note this will only stop the client-side polling + * @deprecated Use abortSignal to stop polling instead. + */ + stopPolling(): void; + + /** + * Returns true if the poller is stopped. + * @deprecated Use abortSignal status to track this instead. + */ + isStopped(): boolean; +} + /** * Helper function that builds a Poller object to help polling a long running operation. * @param client - Client to use for sending the request to get additional pages. @@ -22,21 +90,39 @@ export async function getLongRunningPoller( initialResponse: TResult, options: CreateHttpPollerOptions> = {}, ): Promise, TResult>> { - const poller: LongRunningOperation = { - requestMethod: initialResponse.request.method, - requestPath: initialResponse.request.url, + const abortController = new AbortController(); + const poller: RunningOperation = { sendInitialRequest: async () => { // In the case of Rest Clients we are building the LRO poller object from a response that's the reason // we are not triggering the initial request here, just extracting the information from the // response we were provided. return getLroResponse(initialResponse); }, - sendPollRequest: async (path) => { + sendPollRequest: async (path: string, pollOptions?: { abortSignal?: AbortSignalLike }) => { // This is the callback that is going to be called to poll the service // to get the latest status. We use the client provided and the polling path // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location // depending on the lro pattern that the service implements. If non is provided we default to the initial path. - const response = await client.pathUnchecked(path ?? initialResponse.request.url).get(); + function abortListener(): void { + abortController.abort(); + } + const inputAbortSignal = pollOptions?.abortSignal; + const abortSignal = abortController.signal; + if (inputAbortSignal?.aborted) { + abortController.abort(); + } else if (!abortSignal.aborted) { + inputAbortSignal?.addEventListener("abort", abortListener, { + once: true, + }); + } + let response; + try { + response = await client + .pathUnchecked(path ?? initialResponse.request.url) + .get({ abortSignal }); + } finally { + inputAbortSignal?.removeEventListener("abort", abortListener); + } const lroResponse = getLroResponse(response as TResult); lroResponse.rawResponse.headers["x-ms-original-url"] = initialResponse.request.url; return lroResponse; @@ -44,7 +130,45 @@ export async function getLongRunningPoller( }; options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true; - return createHttpPoller(poller, options); + const httpPoller = createHttpPoller(poller, options); + const simplePoller: SimplePollerLike, TResult> = { + isDone() { + return httpPoller.isDone; + }, + isStopped() { + return abortController.signal.aborted; + }, + getOperationState() { + if (!httpPoller.operationState) { + throw new Error( + "Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().", + ); + } + return httpPoller.operationState; + }, + getResult() { + return httpPoller.result; + }, + toString() { + if (!httpPoller.operationState) { + throw new Error( + "Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().", + ); + } + return JSON.stringify({ + state: httpPoller.operationState, + }); + }, + stopPolling() { + abortController.abort(); + }, + onProgress: httpPoller.onProgress, + poll: httpPoller.poll, + pollUntilDone: httpPoller.pollUntilDone, + serialize: httpPoller.serialize, + submitted: httpPoller.submitted, + }; + return simplePoller; } /** @@ -52,7 +176,9 @@ export async function getLongRunningPoller( * @param response - a rest client http response * @returns - An LRO response that the LRO implementation understands */ -function getLroResponse(response: TResult): LroResponse { +function getLroResponse( + response: TResult, +): OperationResponse { if (Number.isNaN(response.status)) { throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`); } diff --git a/sdk/agrifood/agrifood-farming-rest/src/responses.ts b/sdk/agrifood/agrifood-farming-rest/src/responses.ts index 58f820f8dc15..2e14ca1620b2 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/responses.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/responses.ts @@ -195,7 +195,6 @@ export interface ApplicationDataCreateOrUpdateDefaultResponse extends HttpRespon /** Deletes a specified application data resource under a particular party. */ export interface ApplicationDataDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface ApplicationDataDeleteDefaultHeaders { @@ -269,7 +268,6 @@ export interface AttachmentsCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified attachment resource under a particular party. */ export interface AttachmentsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface AttachmentsDeleteDefaultHeaders { @@ -446,7 +444,6 @@ export interface BoundariesGetDefaultResponse extends HttpResponse { /** Deletes a specified boundary resource under a particular party. */ export interface BoundariesDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface BoundariesDeleteDefaultHeaders { @@ -537,7 +534,6 @@ export interface CropProductsCreateOrUpdateDefaultResponse extends HttpResponse /** Deletes a specified crop Product resource. */ export interface CropProductsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface CropProductsDeleteDefaultHeaders { @@ -611,7 +607,6 @@ export interface CropsCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes Crop for given crop id. */ export interface CropsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface CropsDeleteDefaultHeaders { @@ -685,7 +680,6 @@ export interface DeviceDataModelsGetDefaultResponse extends HttpResponse { /** Deletes a device data model entity. */ export interface DeviceDataModelsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface DeviceDataModelsDeleteDefaultHeaders { @@ -759,7 +753,6 @@ export interface DevicesGetDefaultResponse extends HttpResponse { /** Deletes a device entity. */ export interface DevicesDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface DevicesDeleteDefaultHeaders { @@ -918,7 +911,6 @@ export interface FarmsCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified farm resource under a particular party. */ export interface FarmsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface FarmsDeleteDefaultHeaders { @@ -1043,7 +1035,6 @@ export interface FieldsCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified field resource under a particular party. */ export interface FieldsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface FieldsDeleteDefaultHeaders { @@ -1168,7 +1159,6 @@ export interface HarvestDataCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified harvest data resource under a particular party. */ export interface HarvestDataDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface HarvestDataDeleteDefaultHeaders { @@ -1277,7 +1267,6 @@ export interface InsightAttachmentsGetDefaultResponse extends HttpResponse { /** Deletes a specified insight resource. */ export interface InsightAttachmentsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface InsightAttachmentsDeleteDefaultHeaders { @@ -1403,7 +1392,6 @@ export interface InsightsGetDefaultResponse extends HttpResponse { /** Deletes a specified insight resource. */ export interface InsightsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface InsightsDeleteDefaultHeaders { @@ -1528,7 +1516,6 @@ export interface ManagementZonesCreateOrUpdateDefaultResponse extends HttpRespon /** Deletes a specified management zone resource under a particular party. */ export interface ManagementZonesDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface ManagementZonesDeleteDefaultHeaders { @@ -1721,7 +1708,6 @@ export interface NutrientAnalysesCreateOrUpdateDefaultResponse extends HttpRespo /** Deletes a specified nutrient analysis resource under a particular party. */ export interface NutrientAnalysesDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface NutrientAnalysesDeleteDefaultHeaders { @@ -1795,7 +1781,6 @@ export interface OAuthProvidersCreateOrUpdateDefaultResponse extends HttpRespons /** Deletes an specified oauthProvider resource. */ export interface OAuthProvidersDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface OAuthProvidersDeleteDefaultHeaders { @@ -1971,7 +1956,6 @@ export interface PartiesCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified party resource. */ export interface PartiesDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface PartiesDeleteDefaultHeaders { @@ -2079,7 +2063,6 @@ export interface PlantingDataCreateOrUpdateDefaultResponse extends HttpResponse /** Deletes a specified planting data resource under a particular party. */ export interface PlantingDataDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface PlantingDataDeleteDefaultHeaders { @@ -2204,7 +2187,6 @@ export interface PlantTissueAnalysesCreateOrUpdateDefaultResponse extends HttpRe /** Deletes a specified plant tissue analysis resource under a particular party. */ export interface PlantTissueAnalysesDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface PlantTissueAnalysesDeleteDefaultHeaders { @@ -2329,7 +2311,6 @@ export interface PrescriptionMapsCreateOrUpdateDefaultResponse extends HttpRespo /** Deletes a specified prescription map resource under a particular party. */ export interface PrescriptionMapsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface PrescriptionMapsDeleteDefaultHeaders { @@ -2454,7 +2435,6 @@ export interface PrescriptionsCreateOrUpdateDefaultResponse extends HttpResponse /** Deletes a specified prescription resource under a particular party. */ export interface PrescriptionsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface PrescriptionsDeleteDefaultHeaders { @@ -2682,7 +2662,6 @@ export interface SeasonalFieldsCreateOrUpdateDefaultResponse extends HttpRespons /** Deletes a specified seasonal-field resource under a particular party. */ export interface SeasonalFieldsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface SeasonalFieldsDeleteDefaultHeaders { @@ -2807,7 +2786,6 @@ export interface SeasonsCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified season resource. */ export interface SeasonsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface SeasonsDeleteDefaultHeaders { @@ -2881,7 +2859,6 @@ export interface SensorDataModelsGetDefaultResponse extends HttpResponse { /** Deletes a sensor data model entity. */ export interface SensorDataModelsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface SensorDataModelsDeleteDefaultHeaders { @@ -2978,7 +2955,6 @@ export interface SensorMappingsGetDefaultResponse extends HttpResponse { /** Deletes a sensor mapping entity. */ export interface SensorMappingsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface SensorMappingsDeleteDefaultHeaders { @@ -3052,7 +3028,6 @@ export interface SensorPartnerIntegrationsGetDefaultResponse extends HttpRespons /** Deletes a partner integration model entity. */ export interface SensorPartnerIntegrationsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface SensorPartnerIntegrationsDeleteDefaultHeaders { @@ -3160,7 +3135,6 @@ export interface SensorsGetDefaultResponse extends HttpResponse { /** Deletes a sensor entity. */ export interface SensorsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface SensorsDeleteDefaultHeaders { @@ -3319,7 +3293,6 @@ export interface TillageDataCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified tillage data resource under a particular party. */ export interface TillageDataDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface TillageDataDeleteDefaultHeaders { @@ -3554,7 +3527,6 @@ export interface ZonesCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified zone resource under a particular party. */ export interface ZonesDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface ZonesDeleteDefaultHeaders { diff --git a/sdk/agrifood/agrifood-farming-rest/src/serializeHelper.ts b/sdk/agrifood/agrifood-farming-rest/src/serializeHelper.ts index 579c6ec01db3..4a0a83f7ce0e 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/serializeHelper.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/serializeHelper.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export function buildMultiCollection(queryParameters: string[], parameterName: string): string { - return queryParameters +export function buildMultiCollection(items: string[], parameterName: string): string { + return items .map((item, index) => { if (index === 0) { return item; diff --git a/sdk/agrifood/agrifood-farming-rest/swagger/README.md b/sdk/agrifood/agrifood-farming-rest/swagger/README.md index 5fdda0291187..3871237297c4 100644 --- a/sdk/agrifood/agrifood-farming-rest/swagger/README.md +++ b/sdk/agrifood/agrifood-farming-rest/swagger/README.md @@ -5,10 +5,11 @@ ## Configuration ```yaml +flavor: azure package-name: "@azure-rest/agrifood-farming" title: FarmBeats description: Azure FarmBeats Service -generate-metadata: false +generate-metadata: true license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../ source-code-folder-path: ./src diff --git a/sdk/agrifood/agrifood-farming-rest/tsconfig.json b/sdk/agrifood/agrifood-farming-rest/tsconfig.json index 819d684c7b1d..9cab7dc1ae51 100644 --- a/sdk/agrifood/agrifood-farming-rest/tsconfig.json +++ b/sdk/agrifood/agrifood-farming-rest/tsconfig.json @@ -1,11 +1,5 @@ { "extends": "../../../tsconfig", - "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", - "paths": { - "@azure-rest/agrifood-farming": ["./src/index"] - } - }, - "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"] + "compilerOptions": { "outDir": "./dist-esm", "declarationDir": "./types" }, + "include": ["src/**/*.ts"] } From ea09508dd51ac29239f4ee9f6e550b614a7c53ad Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 16 Aug 2024 15:20:10 +0800 Subject: [PATCH 02/16] Update CHANGELOG.md --- sdk/agrifood/agrifood-farming-rest/CHANGELOG.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md b/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md index 8f40fb098c93..3276aaa9f2f2 100644 --- a/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md +++ b/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md @@ -2,14 +2,8 @@ ## 1.0.0-beta.3 (Unreleased) -### Features Added - -### Breaking Changes - ### Bugs Fixed -### Other Changes - ## 1.0.0-beta.2 (2023-02-24) ### Features Added From 752ed18eaa70d41f2a6260e6e3b7e2caff4fbe08 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 16 Aug 2024 15:20:20 +0800 Subject: [PATCH 03/16] Update CHANGELOG.md --- sdk/agrifood/agrifood-farming-rest/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md b/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md index 3276aaa9f2f2..c5e0fe733e87 100644 --- a/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md +++ b/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.3 (2023-08-16) ### Bugs Fixed From 57c966792a3e84dfd37927b709b3bbb0954a0cd0 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 16 Aug 2024 16:41:50 +0800 Subject: [PATCH 04/16] update --- sdk/agrifood/agrifood-farming-rest/package.json | 2 +- sdk/agrifood/agrifood-farming-rest/swagger/README.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sdk/agrifood/agrifood-farming-rest/package.json b/sdk/agrifood/agrifood-farming-rest/package.json index 11cf30757f98..ab790f7f7fa1 100644 --- a/sdk/agrifood/agrifood-farming-rest/package.json +++ b/sdk/agrifood/agrifood-farming-rest/package.json @@ -29,7 +29,7 @@ "review/*", "CHANGELOG.md" ], - "sdk-type": "mgmt", + "sdk-type": "client", "repository": "github:Azure/azure-sdk-for-js", "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" diff --git a/sdk/agrifood/agrifood-farming-rest/swagger/README.md b/sdk/agrifood/agrifood-farming-rest/swagger/README.md index 3871237297c4..88855f1306cd 100644 --- a/sdk/agrifood/agrifood-farming-rest/swagger/README.md +++ b/sdk/agrifood/agrifood-farming-rest/swagger/README.md @@ -5,7 +5,8 @@ ## Configuration ```yaml -flavor: azure +flavor: azure +openapi-type: data-plane package-name: "@azure-rest/agrifood-farming" title: FarmBeats description: Azure FarmBeats Service From 7d2643fd8bfecf13380e466af98af73801eae788 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 16 Aug 2024 16:55:36 +0800 Subject: [PATCH 05/16] Update tsconfig.json --- sdk/agrifood/agrifood-farming-rest/tsconfig.json | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/sdk/agrifood/agrifood-farming-rest/tsconfig.json b/sdk/agrifood/agrifood-farming-rest/tsconfig.json index 9cab7dc1ae51..eb6d8229ebd1 100644 --- a/sdk/agrifood/agrifood-farming-rest/tsconfig.json +++ b/sdk/agrifood/agrifood-farming-rest/tsconfig.json @@ -1,5 +1,17 @@ { "extends": "../../../tsconfig", - "compilerOptions": { "outDir": "./dist-esm", "declarationDir": "./types" }, - "include": ["src/**/*.ts"] + "compilerOptions": { + "outDir": "./dist-esm", + "declarationDir": "./types", + "paths": { + "@azure-rest/agrifood-farming": [ + "./src/index" + ] + } + }, + "include": [ + "src/**/*.ts", + "test/**/*.ts", + "samples-dev/**/*.ts" + ] } From d4677ef3da1a61525e3e22996d2c194de29d99fe Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Mon, 19 Aug 2024 10:12:39 +0800 Subject: [PATCH 06/16] update --- common/config/rush/pnpm-lock.yaml | 56 ++++++++++++++++++- .../agrifood-farming-rest/api-extractor.json | 2 +- .../agrifood-farming-rest/eslint.config.mjs | 14 +++++ .../agrifood-farming-rest/karma.conf.js | 5 +- .../agrifood-farming-rest/package.json | 47 ++++++++++++---- .../agrifood-farming-rest/swagger/README.md | 1 + 6 files changed, 107 insertions(+), 18 deletions(-) create mode 100644 sdk/agrifood/agrifood-farming-rest/eslint.config.mjs diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index b59e7c8ef0ab..60d5b3e183e6 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -7609,6 +7609,18 @@ packages: append-transform: 2.0.0 dev: false + /istanbul-lib-instrument@4.0.3: + resolution: {integrity: sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==} + engines: {node: '>=8'} + dependencies: + '@babel/core': 7.25.2 + '@istanbuljs/schema': 0.1.3 + istanbul-lib-coverage: 3.2.2 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + dev: false + /istanbul-lib-instrument@5.2.1: resolution: {integrity: sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==} engines: {node: '>=8'} @@ -8752,6 +8764,42 @@ packages: path-key: 4.0.0 dev: false + /nyc@15.1.0: + resolution: {integrity: sha512-jMW04n9SxKdKi1ZMGhvUTHBN0EICCRkHemEoE5jm6mTYcqcdas0ATzgUgejlQUHMvpnOZqGB5Xxsv9KxJW1j8A==} + engines: {node: '>=8.9'} + hasBin: true + dependencies: + '@istanbuljs/load-nyc-config': 1.1.0 + '@istanbuljs/schema': 0.1.3 + caching-transform: 4.0.0 + convert-source-map: 1.9.0 + decamelize: 1.2.0 + find-cache-dir: 3.3.2 + find-up: 4.1.0 + foreground-child: 2.0.0 + get-package-type: 0.1.0 + glob: 7.2.3 + istanbul-lib-coverage: 3.2.2 + istanbul-lib-hook: 3.0.0 + istanbul-lib-instrument: 4.0.3 + istanbul-lib-processinfo: 2.0.3 + istanbul-lib-report: 3.0.1 + istanbul-lib-source-maps: 4.0.1 + istanbul-reports: 3.1.7 + make-dir: 3.1.0 + node-preload: 0.2.1 + p-map: 3.0.0 + process-on-spawn: 1.0.0 + resolve-from: 5.0.0 + rimraf: 3.0.2 + signal-exit: 3.0.7 + spawn-wrap: 2.0.0 + test-exclude: 6.0.0 + yargs: 15.4.1 + transitivePeerDependencies: + - supports-color + dev: false + /nyc@17.0.0: resolution: {integrity: sha512-ISp44nqNCaPugLLGGfknzQwSwt10SSS5IMoPR7GLoMAyS18Iw5js8U7ga2VF9lYuMZ42gOHr3UddZw4WZltxKg==} engines: {node: '>=18'} @@ -11784,7 +11832,7 @@ packages: dev: false file:projects/agrifood-farming.tgz: - resolution: {integrity: sha512-ICqL8vb343FMBDp3o2nIrGFEi0M3ngMJwtTv8Xa40jKYvTw6hXyir9MwnlsC79JgHuMyl96YPNm//xdkoZ6NFw==, tarball: file:projects/agrifood-farming.tgz} + resolution: {integrity: sha512-UCkVm0nTXX5HIR5yvFGrMGwzGQtfEZAdVTih+M5nroSRgJ1GFPmkkH72iGxVUiCQwKDKfAU5jW2WtYhZojioYg==, tarball: file:projects/agrifood-farming.tgz} name: '@rush-temp/agrifood-farming' version: 0.0.0 dependencies: @@ -11816,16 +11864,20 @@ packages: karma-sourcemap-loader: 0.3.8 mkdirp: 3.0.1 mocha: 10.7.3 - nyc: 17.0.0 + nyc: 15.1.0 prettier: 3.3.3 rimraf: 5.0.10 source-map-support: 0.5.21 ts-node: 10.9.2(@types/node@18.19.44)(typescript@5.5.4) tslib: 2.6.3 + tsx: 4.17.0 typescript: 5.5.4 uglify-js: 3.19.2 transitivePeerDependencies: + - bufferutil + - debug - supports-color + - utf-8-validate dev: false file:projects/ai-anomaly-detector.tgz: diff --git a/sdk/agrifood/agrifood-farming-rest/api-extractor.json b/sdk/agrifood/agrifood-farming-rest/api-extractor.json index d8fe124b20ed..396ede37b4b8 100644 --- a/sdk/agrifood/agrifood-farming-rest/api-extractor.json +++ b/sdk/agrifood/agrifood-farming-rest/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./types/index.d.ts", + "mainEntryPointFilePath": "./types/src/index.d.ts", "docModel": { "enabled": true }, "apiReport": { "enabled": true, "reportFolder": "./review" }, "dtsRollup": { diff --git a/sdk/agrifood/agrifood-farming-rest/eslint.config.mjs b/sdk/agrifood/agrifood-farming-rest/eslint.config.mjs new file mode 100644 index 000000000000..e559ed8cb5bd --- /dev/null +++ b/sdk/agrifood/agrifood-farming-rest/eslint.config.mjs @@ -0,0 +1,14 @@ +import azsdkEslint from "@azure/eslint-plugin-azure-sdk"; + +export default [ + ...azsdkEslint.configs.recommended, + { + rules: { + "@azure/azure-sdk/ts-modules-only-named": "warn", + "@azure/azure-sdk/ts-apiextractor-json-types": "warn", + "@azure/azure-sdk/ts-package-json-types": "warn", + "@azure/azure-sdk/ts-package-json-engine-is-present": "warn", + "tsdoc/syntax": "warn", + }, + }, +]; diff --git a/sdk/agrifood/agrifood-farming-rest/karma.conf.js b/sdk/agrifood/agrifood-farming-rest/karma.conf.js index fa62f0df80e0..a9d5f1b5fc59 100644 --- a/sdk/agrifood/agrifood-farming-rest/karma.conf.js +++ b/sdk/agrifood/agrifood-farming-rest/karma.conf.js @@ -52,14 +52,13 @@ module.exports = function (config) { }, envPreprocessor: [ - "RECORDINGS_RELATIVE_PATH", "TEST_MODE", - "FARMBEATS_ENDPOINT", + "ENDPOINT", "AZURE_CLIENT_SECRET", "AZURE_CLIENT_ID", "AZURE_TENANT_ID", "SUBSCRIPTION_ID", - "AZURE_LOG_LEVEL", + "RECORDINGS_RELATIVE_PATH", ], // test results reporter to use diff --git a/sdk/agrifood/agrifood-farming-rest/package.json b/sdk/agrifood/agrifood-farming-rest/package.json index ab790f7f7fa1..8f4b7fb92054 100644 --- a/sdk/agrifood/agrifood-farming-rest/package.json +++ b/sdk/agrifood/agrifood-farming-rest/package.json @@ -7,9 +7,9 @@ }, "sideEffects": false, "autoPublish": false, - "main": "dist/index.js", - "module": "./dist-esm/index.js", - "types": "./types/agrifood-farming.d.ts", + "main": "dist/src/index.js", + "module": "./dist-esm/src/index.js", + "types": "./types/src/agrifood-farming.d.ts", "keywords": [ "node", "azure", @@ -22,7 +22,7 @@ "license": "MIT", "files": [ "dist/", - "dist-esm/", + "dist-esm/src/", "types/agrifood-farming.d.ts", "README.md", "LICENSE", @@ -67,33 +67,56 @@ "rimraf": "^5.0.5", "mkdirp": "^3.0.1", "typescript": "~5.5.3", + "@azure/core-util": "^1.0.0", + "@azure/identity": "^4.2.1", "autorest": "latest", + "@azure-tools/test-credential": "^1.1.0", + "@azure-tools/test-recorder": "^3.0.0", + "nyc": "^15.1.0", + "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "cross-env": "^7.0.2", + "@types/chai": "^4.2.8", + "chai": "^4.2.0", + "karma-chrome-launcher": "^3.0.0", + "karma-coverage": "^2.0.0", + "karma-env-preprocessor": "^0.1.1", + "karma-firefox-launcher": "^1.1.0", + "karma-junit-reporter": "^2.0.1", + "karma-mocha-reporter": "^2.2.5", + "karma-mocha": "^2.0.1", + "karma-source-map-support": "~1.4.0", + "karma-sourcemap-loader": "^0.3.8", + "karma": "^6.2.0", "source-map-support": "^0.5.9", "uglify-js": "^3.4.9", "@azure/dev-tool": "^1.0.0", - "@azure/eslint-plugin-azure-sdk": "^3.0.0" + "@azure/eslint-plugin-azure-sdk": "^3.0.0", + "tsx": "^4.7.1" }, "scripts": { "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "extract-api": "rimraf review && mkdirp ./review && dev-tool run extract-api", "pack": "npm pack 2>&1", - "lint": "eslint package.json api-extractor.json src test --ext .ts --ext .cts --ext .mts", - "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --ext .cts --ext .mts --fix --fix-type [problem,suggestion]", + "lint": "eslint package.json api-extractor.json src test", + "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:browser": "dev-tool run test:browser", + "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:browser": "dev-tool run test:browser", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", "build:samples": "echo skipped", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", "execute:samples": "echo skipped", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", - "integration-test:browser": "dev-tool run test:browser", - "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", "generate:client": "echo skipped", "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "build": "npm run clean && tsc -p . && dev-tool run bundle && mkdirp ./review && dev-tool run extract-api", "build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1", "build:test": "tsc -p . && dev-tool run bundle", - "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'", - "unit-test:browser": "dev-tool run test:browser" + "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api" } } diff --git a/sdk/agrifood/agrifood-farming-rest/swagger/README.md b/sdk/agrifood/agrifood-farming-rest/swagger/README.md index 88855f1306cd..148d9f12a688 100644 --- a/sdk/agrifood/agrifood-farming-rest/swagger/README.md +++ b/sdk/agrifood/agrifood-farming-rest/swagger/README.md @@ -7,6 +7,7 @@ ```yaml flavor: azure openapi-type: data-plane +generate-test: true package-name: "@azure-rest/agrifood-farming" title: FarmBeats description: Azure FarmBeats Service From 9a21f4f82753a11a1fe1da63f8116e6305ba26c6 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 23 Aug 2024 13:58:14 +0800 Subject: [PATCH 07/16] revert change --- .../agrifood-farming-rest/.eslintrc.json | 11 -- .../agrifood-farming-rest/CHANGELOG.md | 8 +- sdk/agrifood/agrifood-farming-rest/LICENSE | 21 --- .../agrifood-farming-rest/api-extractor.json | 27 ++- .../agrifood-farming-rest/karma.conf.js | 5 +- .../agrifood-farming-rest/package.json | 157 +++++++++--------- .../review/agrifood-farming.api.md | 94 +++++++---- .../agrifood-farming-rest/src/farmBeats.ts | 51 ++---- .../agrifood-farming-rest/src/isUnexpected.ts | 30 ++-- .../agrifood-farming-rest/src/logger.ts | 5 - .../agrifood-farming-rest/src/parameters.ts | 8 +- .../src/pollingHelper.ts | 146 ++-------------- .../agrifood-farming-rest/src/responses.ts | 28 ++++ .../src/serializeHelper.ts | 4 +- .../agrifood-farming-rest/swagger/README.md | 4 +- .../agrifood-farming-rest/tsconfig.json | 10 +- 16 files changed, 251 insertions(+), 358 deletions(-) delete mode 100644 sdk/agrifood/agrifood-farming-rest/.eslintrc.json delete mode 100644 sdk/agrifood/agrifood-farming-rest/LICENSE delete mode 100644 sdk/agrifood/agrifood-farming-rest/src/logger.ts diff --git a/sdk/agrifood/agrifood-farming-rest/.eslintrc.json b/sdk/agrifood/agrifood-farming-rest/.eslintrc.json deleted file mode 100644 index 619797ac39b6..000000000000 --- a/sdk/agrifood/agrifood-farming-rest/.eslintrc.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "plugins": ["@azure/azure-sdk"], - "extends": ["plugin:@azure/azure-sdk/azure-sdk-base"], - "rules": { - "@azure/azure-sdk/ts-modules-only-named": "warn", - "@azure/azure-sdk/ts-apiextractor-json-types": "warn", - "@azure/azure-sdk/ts-package-json-types": "warn", - "@azure/azure-sdk/ts-package-json-engine-is-present": "warn", - "tsdoc/syntax": "warn" - } -} diff --git a/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md b/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md index c5e0fe733e87..8f40fb098c93 100644 --- a/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md +++ b/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md @@ -1,9 +1,15 @@ # Release History -## 1.0.0-beta.3 (2023-08-16) +## 1.0.0-beta.3 (Unreleased) + +### Features Added + +### Breaking Changes ### Bugs Fixed +### Other Changes + ## 1.0.0-beta.2 (2023-02-24) ### Features Added diff --git a/sdk/agrifood/agrifood-farming-rest/LICENSE b/sdk/agrifood/agrifood-farming-rest/LICENSE deleted file mode 100644 index 7d5934740965..000000000000 --- a/sdk/agrifood/agrifood-farming-rest/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2024 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/sdk/agrifood/agrifood-farming-rest/api-extractor.json b/sdk/agrifood/agrifood-farming-rest/api-extractor.json index 396ede37b4b8..9e9ab297ba64 100644 --- a/sdk/agrifood/agrifood-farming-rest/api-extractor.json +++ b/sdk/agrifood/agrifood-farming-rest/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./types/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "mainEntryPointFilePath": "types/src/index.d.ts", + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/agrifood-farming.d.ts" + "publicTrimmedFilePath": "./types/agrifood-farming-rest.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } } diff --git a/sdk/agrifood/agrifood-farming-rest/karma.conf.js b/sdk/agrifood/agrifood-farming-rest/karma.conf.js index a9d5f1b5fc59..fa62f0df80e0 100644 --- a/sdk/agrifood/agrifood-farming-rest/karma.conf.js +++ b/sdk/agrifood/agrifood-farming-rest/karma.conf.js @@ -52,13 +52,14 @@ module.exports = function (config) { }, envPreprocessor: [ + "RECORDINGS_RELATIVE_PATH", "TEST_MODE", - "ENDPOINT", + "FARMBEATS_ENDPOINT", "AZURE_CLIENT_SECRET", "AZURE_CLIENT_ID", "AZURE_TENANT_ID", "SUBSCRIPTION_ID", - "RECORDINGS_RELATIVE_PATH", + "AZURE_LOG_LEVEL", ], // test results reporter to use diff --git a/sdk/agrifood/agrifood-farming-rest/package.json b/sdk/agrifood/agrifood-farming-rest/package.json index 8f4b7fb92054..8916a38161ea 100644 --- a/sdk/agrifood/agrifood-farming-rest/package.json +++ b/sdk/agrifood/agrifood-farming-rest/package.json @@ -1,15 +1,9 @@ { "name": "@azure-rest/agrifood-farming", + "sdk-type": "client", + "author": "Microsoft Corporation", + "description": "An isomorphic REST client library for the Azure FarmBeats Service.", "version": "1.0.0-beta.3", - "description": "A generated SDK for FarmBeats.", - "engines": { - "node": ">=18.0.0" - }, - "sideEffects": false, - "autoPublish": false, - "main": "dist/src/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/src/agrifood-farming.d.ts", "keywords": [ "node", "azure", @@ -18,105 +12,118 @@ "browser", "isomorphic" ], - "author": "Microsoft Corporation", "license": "MIT", + "main": "./dist/index.js", + "module": "./dist-esm/src/index.js", + "types": "./types/agrifood-farming-rest.d.ts", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/agrifood/agrifood-farming/README.md", + "repository": "github:Azure/azure-sdk-for-js", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, "files": [ "dist/", "dist-esm/src/", - "types/agrifood-farming.d.ts", + "types/agrifood-farming-rest.d.ts", "README.md", - "LICENSE", - "review/*", - "CHANGELOG.md" + "LICENSE" ], - "sdk-type": "client", - "repository": "github:Azure/azure-sdk-for-js", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" + "engines": { + "node": ">=18.0.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/agrifood/agrifood-farming-rest/README.md", - "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", "//metadata": { "constantPaths": [ { "path": "swagger/README.md", "prefix": "package-version" - }, - { - "path": "src/farmBeats.ts", - "prefix": "userAgentInfo" } ] }, + "//sampleConfiguration": { + "productName": "Azure FarmBeats rest", + "productSlugs": [ + "azure", + "azure-farmbeats" + ], + "requiredResources": { + "Azure FarmBeats Service instance": "https://docs.microsoft.com/azure/industry/agriculture/install-azure-farmbeats" + } + }, + "browser": { + "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js" + }, + "scripts": { + "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", + "build:browser": "tsc -p . && dev-tool run bundle", + "build:node": "tsc -p . && dev-tool run bundle", + "build:samples": "echo Obsolete.", + "build:test": "tsc -p . && dev-tool run bundle", + "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run extract-api", + "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "execute:samples": "dev-tool samples run samples-dev", + "extract-api": "rimraf review && mkdirp ./review && dev-tool run extract-api", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "generate:client": "autorest --typescript swagger/README.md && npm run format", + "integration-test:browser": "karma start --single-run", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 \"dist-esm/test/{,!(browser)/**/}*.spec.js\"", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", + "lint": "eslint package.json api-extractor.json src test", + "pack": "npm pack 2>&1", + "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser", + "test:node": "npm run clean && npm run build:test && npm run unit-test:node", + "test": "npm run clean && npm run build:test && npm run unit-test", + "unit-test:browser": "dev-tool run test:browser", + "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'", + "unit-test": "cross-env TEST_MODE=playback && npm run unit-test:node && npm run unit-test:browser" + }, + "sideEffects": false, + "autoPublish": false, "dependencies": { - "@azure-rest/core-client": "^1.4.0", - "@azure/core-auth": "^1.6.0", - "@azure/core-rest-pipeline": "^1.5.0", + "@azure/core-rest-pipeline": "^1.9.2", + "@azure-rest/core-client": "^1.0.0", + "@azure/core-auth": "^1.3.0", + "@azure/core-lro": "^2.2.4", + "@azure/core-paging": "^1.2.0", "@azure/logger": "^1.0.0", - "tslib": "^2.6.2", - "@azure/core-lro": "^3.0.0", - "@azure/abort-controller": "^2.1.2", - "@azure/core-paging": "^1.5.0" + "tslib": "^2.2.0" }, "devDependencies": { - "dotenv": "^16.0.0", - "@microsoft/api-extractor": "^7.40.3", - "@types/node": "^18.0.0", - "eslint": "^8.55.0", - "prettier": "^3.2.5", - "rimraf": "^5.0.5", - "mkdirp": "^3.0.1", - "typescript": "~5.5.3", "@azure/core-util": "^1.0.0", - "@azure/identity": "^4.2.1", - "autorest": "latest", - "@azure-tools/test-credential": "^1.1.0", + "@azure/dev-tool": "^1.0.0", + "@azure/eslint-plugin-azure-sdk": "^3.0.0", + "@azure/identity": "^4.0.1", + "@azure-tools/test-utils": "^1.0.1", + "@azure-tools/test-credential": "^1.0.0", "@azure-tools/test-recorder": "^3.0.0", - "nyc": "^15.1.0", - "mocha": "^10.0.0", + "@microsoft/api-extractor": "^7.31.1", + "@types/chai": "^4.1.6", "@types/mocha": "^10.0.0", - "cross-env": "^7.0.2", - "@types/chai": "^4.2.8", + "@types/node": "^18.0.0", "chai": "^4.2.0", + "cross-env": "^7.0.2", + "dotenv": "^16.0.0", + "eslint": "^8.0.0", "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", "karma-firefox-launcher": "^1.1.0", + "karma-json-preprocessor": "^0.3.3", + "karma-json-to-file-reporter": "^1.0.1", "karma-junit-reporter": "^2.0.1", "karma-mocha-reporter": "^2.2.5", "karma-mocha": "^2.0.1", "karma-source-map-support": "~1.4.0", "karma-sourcemap-loader": "^0.3.8", "karma": "^6.2.0", + "mkdirp": "^3.0.1", + "mocha": "^10.0.0", + "nyc": "^17.0.0", + "rimraf": "^5.0.5", "source-map-support": "^0.5.9", - "uglify-js": "^3.4.9", - "@azure/dev-tool": "^1.0.0", - "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "tsx": "^4.7.1" - }, - "scripts": { - "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", - "extract-api": "rimraf review && mkdirp ./review && dev-tool run extract-api", - "pack": "npm pack 2>&1", - "lint": "eslint package.json api-extractor.json src test", - "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", - "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run test:browser", - "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:browser": "dev-tool run test:browser", - "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", - "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", - "build:samples": "echo skipped", - "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", - "execute:samples": "echo skipped", - "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", - "generate:client": "echo skipped", - "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser", - "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "build": "npm run clean && tsc -p . && dev-tool run bundle && mkdirp ./review && dev-tool run extract-api", - "build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1", - "build:test": "tsc -p . && dev-tool run bundle", - "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api" + "typescript": "~5.5.3", + "ts-node": "^10.0.0" } } diff --git a/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md b/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md index 7cdd7818d21e..9a41b33ed019 100644 --- a/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md +++ b/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md @@ -4,8 +4,6 @@ ```ts -import { AbortSignalLike } from '@azure/abort-controller'; -import { CancelOnProgress } from '@azure/core-lro'; import { Client } from '@azure-rest/core-client'; import { ClientOptions } from '@azure-rest/core-client'; import { CreateHttpPollerOptions } from '@azure/core-lro'; @@ -15,6 +13,7 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { PathUncheckedResponse } from '@azure-rest/core-client'; import { RawHttpHeaders } from '@azure/core-rest-pipeline'; import { RequestParameters } from '@azure-rest/core-client'; +import { SimplePollerLike } from '@azure/core-lro'; import { StreamableMethod } from '@azure-rest/core-client'; import { TokenCredential } from '@azure/core-auth'; @@ -139,6 +138,8 @@ export type ApplicationDataCreateOrUpdateParameters = ApplicationDataCreateOrUpd // @public export interface ApplicationDataDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -496,6 +497,8 @@ export type AttachmentsCreateOrUpdateParameters = AttachmentsCreateOrUpdateMedia // @public export interface AttachmentsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -784,6 +787,8 @@ export type BoundariesCreateOrUpdateParameters = BoundariesCreateOrUpdateMediaTy // @public export interface BoundariesDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -1173,7 +1178,7 @@ export interface BoundaryOverlapResponseOutput { export type BoundaryResourceMergeAndPatch = Partial; // @public (undocumented) -export function buildMultiCollection(items: string[], parameterName: string): string; +export function buildMultiCollection(queryParameters: string[], parameterName: string): string; // @public export interface CascadeDeleteJobOutput { @@ -1192,7 +1197,7 @@ export interface CascadeDeleteJobOutput { } // @public -function createClient($host: string, credentials: TokenCredential, { apiVersion, ...options }?: FarmBeatsClientOptions): FarmBeatsClient; +function createClient($host: string, credentials: TokenCredential, options?: ClientOptions): FarmBeatsClient; export default createClient; // @public @@ -1325,6 +1330,8 @@ export type CropProductsCreateOrUpdateParameters = CropProductsCreateOrUpdateMed // @public export interface CropProductsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -1488,6 +1495,8 @@ export type CropsCreateOrUpdateParameters = CropsCreateOrUpdateMediaTypesParam & // @public export interface CropsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -1709,6 +1718,8 @@ export type DeviceDataModelsCreateOrUpdateParameters = DeviceDataModelsCreateOrU // @public export interface DeviceDataModelsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -1897,6 +1908,8 @@ export type DevicesCreateOrUpdateParameters = DevicesCreateOrUpdateMediaTypesPar // @public export interface DevicesDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -2038,11 +2051,6 @@ export type FarmBeatsClient = Client & { path: Routes; }; -// @public -export interface FarmBeatsClientOptions extends ClientOptions { - apiVersion?: string; -} - // @public export interface FarmListResponseOutput { nextLink?: string; @@ -2266,6 +2274,8 @@ export type FarmsCreateOrUpdateParameters = FarmsCreateOrUpdateMediaTypesParam & // @public export interface FarmsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -2577,6 +2587,8 @@ export type FieldsCreateOrUpdateParameters = FieldsCreateOrUpdateMediaTypesParam // @public export interface FieldsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -2916,6 +2928,8 @@ export type HarvestDataCreateOrUpdateParameters = HarvestDataCreateOrUpdateMedia // @public export interface HarvestDataDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -3434,6 +3448,8 @@ export type InsightAttachmentsCreateOrUpdateParameters = InsightAttachmentsCreat // @public export interface InsightAttachmentsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -3703,6 +3719,8 @@ export type InsightsCreateOrUpdateParameters = InsightsCreateOrUpdateMediaTypesP // @public export interface InsightsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -4591,6 +4609,8 @@ export type ManagementZonesCreateOrUpdateParameters = ManagementZonesCreateOrUpd // @public export interface ManagementZonesDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -5084,6 +5104,8 @@ export type NutrientAnalysesCreateOrUpdateParameters = NutrientAnalysesCreateOrU // @public export interface NutrientAnalysesDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -5454,6 +5476,8 @@ export type OAuthProvidersCreateOrUpdateParameters = OAuthProvidersCreateOrUpdat // @public export interface OAuthProvidersDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -5878,6 +5902,8 @@ export type PartiesCreateOrUpdateParameters = PartiesCreateOrUpdateMediaTypesPar // @public export interface PartiesDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -6164,6 +6190,8 @@ export type PlantingDataCreateOrUpdateParameters = PlantingDataCreateOrUpdateMed // @public export interface PlantingDataDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -6528,6 +6556,8 @@ export type PlantTissueAnalysesCreateOrUpdateParameters = PlantTissueAnalysesCre // @public export interface PlantTissueAnalysesDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -6978,6 +7008,8 @@ export type PrescriptionMapsCreateOrUpdateParameters = PrescriptionMapsCreateOrU // @public export interface PrescriptionMapsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -7292,6 +7324,8 @@ export type PrescriptionsCreateOrUpdateParameters = PrescriptionsCreateOrUpdateM // @public export interface PrescriptionsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -7892,7 +7926,7 @@ export interface ScenesListQueryParamProperties { endDateTime?: Date | string; imageFormats?: string; imageNames?: string; - imageResolutions?: string; + imageResolutions?: Array; maxCloudCoveragePercentage?: number; maxDarkPixelCoveragePercentage?: number; maxPageSize?: number; @@ -8136,6 +8170,8 @@ export type SeasonalFieldsCreateOrUpdateParameters = SeasonalFieldsCreateOrUpdat // @public export interface SeasonalFieldsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -8416,6 +8452,8 @@ export type SeasonsCreateOrUpdateParameters = SeasonsCreateOrUpdateMediaTypesPar // @public export interface SeasonsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -8527,7 +8565,7 @@ export interface SeasonsListQueryParamProperties { propertyFilters?: string; skipToken?: string; statuses?: string; - years?: string; + years?: Array; } // @public @@ -8659,6 +8697,8 @@ export type SensorDataModelsCreateOrUpdateParameters = SensorDataModelsCreateOrU // @public export interface SensorDataModelsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -8927,6 +8967,8 @@ export type SensorMappingsCreateOrUpdateParameters = SensorMappingsCreateOrUpdat // @public export interface SensorMappingsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -9202,6 +9244,8 @@ export type SensorPartnerIntegrationsCreateOrUpdateParameters = SensorPartnerInt // @public export interface SensorPartnerIntegrationsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -9443,6 +9487,8 @@ export type SensorsCreateOrUpdateParameters = SensorsCreateOrUpdateMediaTypesPar // @public export interface SensorsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -9622,28 +9668,6 @@ export interface SensorsRenewConnectionStringMediaTypesParam { // @public (undocumented) export type SensorsRenewConnectionStringParameters = SensorsRenewConnectionStringMediaTypesParam & SensorsRenewConnectionStringBodyParam & RequestParameters; -// @public -export interface SimplePollerLike, TResult> { - getOperationState(): TState; - getResult(): TResult | undefined; - isDone(): boolean; - // @deprecated - isStopped(): boolean; - onProgress(callback: (state: TState) => void): CancelOnProgress; - poll(options?: { - abortSignal?: AbortSignalLike; - }): Promise; - pollUntilDone(pollOptions?: { - abortSignal?: AbortSignalLike; - }): Promise; - serialize(): Promise; - // @deprecated - stopPolling(): void; - submitted(): Promise; - // @deprecated - toString(): string; -} - // @public export interface SoilMoistureModelJob { boundaryId: string; @@ -9978,6 +10002,8 @@ export type TillageDataCreateOrUpdateParameters = TillageDataCreateOrUpdateMedia // @public export interface TillageDataDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -10804,6 +10830,8 @@ export type ZonesCreateOrUpdateParameters = ZonesCreateOrUpdateMediaTypesParam & // @public export interface ZonesDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } diff --git a/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts b/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts index c963136effee..a101f3a9ac85 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts @@ -2,29 +2,30 @@ // Licensed under the MIT license. import { getClient, ClientOptions } from "@azure-rest/core-client"; -import { logger } from "./logger"; import { TokenCredential } from "@azure/core-auth"; import { FarmBeatsClient } from "./clientDefinitions"; -/** The optional parameters for the client */ -export interface FarmBeatsClientOptions extends ClientOptions { - /** The api version option of the client */ - apiVersion?: string; -} - /** * Initialize a new instance of `FarmBeatsClient` - * @param $host - server parameter - * @param credentials - uniquely identify client credential - * @param options - the parameter for all optional parameters + * @param $host type: string, server parameter + * @param credentials type: TokenCredential, uniquely identify client credential + * @param options type: ClientOptions, the parameter for all optional parameters */ export default function createClient( $host: string, credentials: TokenCredential, - { apiVersion = "2022-11-01-preview", ...options }: FarmBeatsClientOptions = {}, + options: ClientOptions = {}, ): FarmBeatsClient { - const endpointUrl = options.endpoint ?? options.baseUrl ?? `${$host}`; - const userAgentInfo = `azsdk-js-agrifood-farming-rest/1.0.0-beta.3`; + const baseUrl = options.baseUrl ?? `${$host}`; + options.apiVersion = options.apiVersion ?? "2022-11-01-preview"; + options = { + ...options, + credentials: { + scopes: ["https://farmbeats.azure.net/.default"], + }, + }; + + const userAgentInfo = `azsdk-js-agrifood-farming-rest/1.0.0-beta.2`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` @@ -34,31 +35,9 @@ export default function createClient( userAgentOptions: { userAgentPrefix, }, - loggingOptions: { - logger: options.loggingOptions?.logger ?? logger.info, - }, - credentials: { - scopes: options.credentials?.scopes ?? ["https://farmbeats.azure.net/.default"], - }, }; - const client = getClient(endpointUrl, credentials, options) as FarmBeatsClient; - - client.pipeline.removePolicy({ name: "ApiVersionPolicy" }); - client.pipeline.addPolicy({ - name: "ClientApiVersionPolicy", - sendRequest: (req, next) => { - // Use the apiVersion defined in request url directly - // Append one if there is no apiVersion and we have one at client options - const url = new URL(req.url); - if (!url.searchParams.get("api-version") && apiVersion) { - req.url = `${req.url}${ - Array.from(url.searchParams.keys()).length > 0 ? "&" : "?" - }api-version=${apiVersion}`; - } - return next(req); - }, - }); + const client = getClient(baseUrl, credentials, options) as FarmBeatsClient; return client; } diff --git a/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts b/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts index 32988d895492..aae518391724 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts @@ -428,8 +428,8 @@ import { const responseMap: Record = { "GET /application-data": ["200"], - "GET /application-data/cascade-delete/{jobId}": ["200"], "PUT /application-data/cascade-delete/{jobId}": ["202"], + "GET /application-data/cascade-delete/{jobId}": ["200"], "GET /parties/{partyId}/application-data": ["200"], "GET /parties/{partyId}/application-data/{applicationDataId}": ["200"], "PATCH /parties/{partyId}/application-data/{applicationDataId}": ["200", "201"], @@ -441,8 +441,8 @@ const responseMap: Record = { "GET /parties/{partyId}/attachments/{attachmentId}/file": ["200"], "GET /boundaries": ["200"], "POST /boundaries": ["200"], - "GET /boundaries/cascade-delete/{jobId}": ["200"], "PUT /boundaries/cascade-delete/{jobId}": ["202"], + "GET /boundaries/cascade-delete/{jobId}": ["200"], "GET /parties/{partyId}/boundaries": ["200"], "POST /parties/{partyId}/boundaries": ["200"], "PATCH /parties/{partyId}/boundaries/{boundaryId}": ["200", "201"], @@ -465,11 +465,11 @@ const responseMap: Record = { "PATCH /sensor-partners/{sensorPartnerId}/devices/{deviceId}": ["200", "201"], "GET /sensor-partners/{sensorPartnerId}/devices/{deviceId}": ["200"], "DELETE /sensor-partners/{sensorPartnerId}/devices/{deviceId}": ["204"], - "GET /farm-operations/ingest-data/{jobId}": ["200"], "PUT /farm-operations/ingest-data/{jobId}": ["202"], + "GET /farm-operations/ingest-data/{jobId}": ["200"], "GET /farms": ["200"], - "GET /farms/cascade-delete/{jobId}": ["200"], "PUT /farms/cascade-delete/{jobId}": ["202"], + "GET /farms/cascade-delete/{jobId}": ["200"], "GET /parties/{partyId}/farms": ["200"], "GET /parties/{partyId}/farms/{farmId}": ["200"], "PATCH /parties/{partyId}/farms/{farmId}": ["200", "201"], @@ -482,14 +482,14 @@ const responseMap: Record = { "PATCH /parties/{partyId}/fields/{fieldId}": ["200", "201"], "DELETE /parties/{partyId}/fields/{fieldId}": ["204"], "GET /harvest-data": ["200"], - "GET /harvest-data/cascade-delete/{jobId}": ["200"], "PUT /harvest-data/cascade-delete/{jobId}": ["202"], + "GET /harvest-data/cascade-delete/{jobId}": ["200"], "GET /parties/{partyId}/harvest-data": ["200"], "GET /parties/{partyId}/harvest-data/{harvestDataId}": ["200"], "PATCH /parties/{partyId}/harvest-data/{harvestDataId}": ["200", "201"], "DELETE /parties/{partyId}/harvest-data/{harvestDataId}": ["204"], - "GET /image-processing/rasterize/{jobId}": ["200"], "PUT /image-processing/rasterize/{jobId}": ["202"], + "GET /image-processing/rasterize/{jobId}": ["200"], "GET /parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insight-attachments": ["200"], "PATCH /parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insight-attachments/{insightAttachmentId}": @@ -500,8 +500,8 @@ const responseMap: Record = { ["204"], "GET /parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insight-attachments/{insightAttachmentId}/file": ["200"], - "GET /insights/cascade-delete/{jobId}": ["200"], "PUT /insights/cascade-delete/{jobId}": ["202"], + "GET /insights/cascade-delete/{jobId}": ["200"], "GET /parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insights": ["200"], "PATCH /parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insights/{insightId}": @@ -517,12 +517,12 @@ const responseMap: Record = { "GET /parties/{partyId}/management-zones/{managementZoneId}": ["200"], "PATCH /parties/{partyId}/management-zones/{managementZoneId}": ["200", "201"], "DELETE /parties/{partyId}/management-zones/{managementZoneId}": ["204"], - "GET /model-inference/models/microsoft-biomass/infer-data/{jobId}": ["200"], "PUT /model-inference/models/microsoft-biomass/infer-data/{jobId}": ["202"], - "GET /model-inference/models/microsoft-sensor-placement/infer-data/{jobId}": ["200"], + "GET /model-inference/models/microsoft-biomass/infer-data/{jobId}": ["200"], "PUT /model-inference/models/microsoft-sensor-placement/infer-data/{jobId}": ["202"], - "GET /model-inference/models/microsoft-soil-moisture/infer-data/{jobId}": ["200"], + "GET /model-inference/models/microsoft-sensor-placement/infer-data/{jobId}": ["200"], "PUT /model-inference/models/microsoft-soil-moisture/infer-data/{jobId}": ["202"], + "GET /model-inference/models/microsoft-soil-moisture/infer-data/{jobId}": ["200"], "GET /nutrient-analyses": ["200"], "GET /parties/{partyId}/nutrient-analyses": ["200"], "GET /parties/{partyId}/nutrient-analyses/{nutrientAnalysisId}": ["200"], @@ -549,15 +549,15 @@ const responseMap: Record = { "PATCH /parties/{partyId}/planting-data/{plantingDataId}": ["200", "201"], "DELETE /parties/{partyId}/planting-data/{plantingDataId}": ["204"], "GET /planting-data": ["200"], - "GET /planting-data/cascade-delete/{jobId}": ["200"], "PUT /planting-data/cascade-delete/{jobId}": ["202"], + "GET /planting-data/cascade-delete/{jobId}": ["200"], "GET /parties/{partyId}/plant-tissue-analyses": ["200"], "GET /parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}": ["200"], "PATCH /parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}": ["200", "201"], "DELETE /parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}": ["204"], "GET /plant-tissue-analyses": ["200"], - "GET /plant-tissue-analyses/cascade-delete/{jobId}": ["200"], "PUT /plant-tissue-analyses/cascade-delete/{jobId}": ["202"], + "GET /plant-tissue-analyses/cascade-delete/{jobId}": ["200"], "GET /parties/{partyId}/prescription-maps": ["200"], "GET /parties/{partyId}/prescription-maps/{prescriptionMapId}": ["200"], "PATCH /parties/{partyId}/prescription-maps/{prescriptionMapId}": ["200", "201"], @@ -574,8 +574,8 @@ const responseMap: Record = { "PUT /prescriptions/cascade-delete/{jobId}": ["202"], "GET /scenes": ["200"], "GET /scenes/downloadFiles": ["200"], - "GET /scenes/satellite/ingest-data/{jobId}": ["200"], "PUT /scenes/satellite/ingest-data/{jobId}": ["202"], + "GET /scenes/satellite/ingest-data/{jobId}": ["200"], "POST /scenes/stac-collections/{collectionId}:search": ["200"], "GET /scenes/stac-collections/{collectionId}/features/{featureId}": ["200"], "GET /parties/{partyId}/seasonal-fields": ["200"], @@ -613,16 +613,16 @@ const responseMap: Record = { "GET /sensor-partners/{sensorPartnerId}/sensors/{sensorId}/connection-strings": ["200"], "POST /sensor-partners/{sensorPartnerId}/sensors/{sensorId}/connection-strings/:renew": ["200"], "POST /solutions/{solutionId}:cancel": ["200"], - "GET /solutions/{solutionId}:create": ["202"], "POST /solutions/{solutionId}:create": ["202"], + "GET /solutions/{solutionId}:create": ["202"], "POST /solutions/{solutionId}:fetch": ["200"], "GET /parties/{partyId}/tillage-data": ["200"], "GET /parties/{partyId}/tillage-data/{tillageDataId}": ["200"], "PATCH /parties/{partyId}/tillage-data/{tillageDataId}": ["200", "201"], "DELETE /parties/{partyId}/tillage-data/{tillageDataId}": ["204"], "GET /tillage-data": ["200"], - "GET /tillage-data/cascade-delete/{jobId}": ["200"], "PUT /tillage-data/cascade-delete/{jobId}": ["202"], + "GET /tillage-data/cascade-delete/{jobId}": ["200"], "GET /weather": ["200"], "GET /weather/delete-data/{jobId}": ["200"], "PUT /weather/delete-data/{jobId}": ["202"], diff --git a/sdk/agrifood/agrifood-farming-rest/src/logger.ts b/sdk/agrifood/agrifood-farming-rest/src/logger.ts deleted file mode 100644 index 12b526480bf5..000000000000 --- a/sdk/agrifood/agrifood-farming-rest/src/logger.ts +++ /dev/null @@ -1,5 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { createClientLogger } from "@azure/logger"; -export const logger = createClientLogger("agrifood-farming"); diff --git a/sdk/agrifood/agrifood-farming-rest/src/parameters.ts b/sdk/agrifood/agrifood-farming-rest/src/parameters.ts index 2c521348beff..aaa2803a32ba 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/parameters.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/parameters.ts @@ -2330,8 +2330,8 @@ export interface ScenesListQueryParamProperties { maxDarkPixelCoveragePercentage?: number; /** List of image names to be filtered. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ imageNames?: string; - /** List of image resolutions in meters to be filtered. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ - imageResolutions?: string; + /** List of image resolutions in meters to be filtered. */ + imageResolutions?: Array; /** List of image formats to be filtered. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ imageFormats?: string; /** @@ -2536,8 +2536,8 @@ export interface SeasonsListQueryParamProperties { minEndDateTime?: Date | string; /** Maximum season end datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */ maxEndDateTime?: Date | string; - /** Years of the resource. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ - years?: string; + /** Years of the resource. */ + years?: Array; /** Ids of the resource. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ ids?: string; /** Names of the resource. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ diff --git a/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts b/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts index 65fb8e1eb40f..40004b75ca92 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts @@ -2,82 +2,14 @@ // Licensed under the MIT license. import { Client, HttpResponse } from "@azure-rest/core-client"; -import { AbortSignalLike } from "@azure/abort-controller"; import { - CancelOnProgress, CreateHttpPollerOptions, - RunningOperation, - OperationResponse, + LongRunningOperation, + LroResponse, OperationState, + SimplePollerLike, createHttpPoller, } from "@azure/core-lro"; - -/** - * A simple poller that can be used to poll a long running operation. - */ -export interface SimplePollerLike, TResult> { - /** - * Returns true if the poller has finished polling. - */ - isDone(): boolean; - /** - * Returns the state of the operation. - */ - getOperationState(): TState; - /** - * Returns the result value of the operation, - * regardless of the state of the poller. - * It can return undefined or an incomplete form of the final TResult value - * depending on the implementation. - */ - getResult(): TResult | undefined; - /** - * Returns a promise that will resolve once a single polling request finishes. - * It does this by calling the update method of the Poller's operation. - */ - poll(options?: { abortSignal?: AbortSignalLike }): Promise; - /** - * Returns a promise that will resolve once the underlying operation is completed. - */ - pollUntilDone(pollOptions?: { abortSignal?: AbortSignalLike }): Promise; - /** - * Invokes the provided callback after each polling is completed, - * sending the current state of the poller's operation. - * - * It returns a method that can be used to stop receiving updates on the given callback function. - */ - onProgress(callback: (state: TState) => void): CancelOnProgress; - - /** - * Returns a promise that could be used for serialized version of the poller's operation - * by invoking the operation's serialize method. - */ - serialize(): Promise; - - /** - * Wait the poller to be submitted. - */ - submitted(): Promise; - - /** - * Returns a string representation of the poller's operation. Similar to serialize but returns a string. - * @deprecated Use serialize() instead. - */ - toString(): string; - - /** - * Stops the poller from continuing to poll. Please note this will only stop the client-side polling - * @deprecated Use abortSignal to stop polling instead. - */ - stopPolling(): void; - - /** - * Returns true if the poller is stopped. - * @deprecated Use abortSignal status to track this instead. - */ - isStopped(): boolean; -} - /** * Helper function that builds a Poller object to help polling a long running operation. * @param client - Client to use for sending the request to get additional pages. @@ -90,39 +22,21 @@ export async function getLongRunningPoller( initialResponse: TResult, options: CreateHttpPollerOptions> = {}, ): Promise, TResult>> { - const abortController = new AbortController(); - const poller: RunningOperation = { + const poller: LongRunningOperation = { + requestMethod: initialResponse.request.method, + requestPath: initialResponse.request.url, sendInitialRequest: async () => { // In the case of Rest Clients we are building the LRO poller object from a response that's the reason // we are not triggering the initial request here, just extracting the information from the // response we were provided. return getLroResponse(initialResponse); }, - sendPollRequest: async (path: string, pollOptions?: { abortSignal?: AbortSignalLike }) => { + sendPollRequest: async (path) => { // This is the callback that is going to be called to poll the service // to get the latest status. We use the client provided and the polling path // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location // depending on the lro pattern that the service implements. If non is provided we default to the initial path. - function abortListener(): void { - abortController.abort(); - } - const inputAbortSignal = pollOptions?.abortSignal; - const abortSignal = abortController.signal; - if (inputAbortSignal?.aborted) { - abortController.abort(); - } else if (!abortSignal.aborted) { - inputAbortSignal?.addEventListener("abort", abortListener, { - once: true, - }); - } - let response; - try { - response = await client - .pathUnchecked(path ?? initialResponse.request.url) - .get({ abortSignal }); - } finally { - inputAbortSignal?.removeEventListener("abort", abortListener); - } + const response = await client.pathUnchecked(path ?? initialResponse.request.url).get(); const lroResponse = getLroResponse(response as TResult); lroResponse.rawResponse.headers["x-ms-original-url"] = initialResponse.request.url; return lroResponse; @@ -130,45 +44,7 @@ export async function getLongRunningPoller( }; options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true; - const httpPoller = createHttpPoller(poller, options); - const simplePoller: SimplePollerLike, TResult> = { - isDone() { - return httpPoller.isDone; - }, - isStopped() { - return abortController.signal.aborted; - }, - getOperationState() { - if (!httpPoller.operationState) { - throw new Error( - "Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().", - ); - } - return httpPoller.operationState; - }, - getResult() { - return httpPoller.result; - }, - toString() { - if (!httpPoller.operationState) { - throw new Error( - "Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().", - ); - } - return JSON.stringify({ - state: httpPoller.operationState, - }); - }, - stopPolling() { - abortController.abort(); - }, - onProgress: httpPoller.onProgress, - poll: httpPoller.poll, - pollUntilDone: httpPoller.pollUntilDone, - serialize: httpPoller.serialize, - submitted: httpPoller.submitted, - }; - return simplePoller; + return createHttpPoller(poller, options); } /** @@ -176,9 +52,7 @@ export async function getLongRunningPoller( * @param response - a rest client http response * @returns - An LRO response that the LRO implementation understands */ -function getLroResponse( - response: TResult, -): OperationResponse { +function getLroResponse(response: TResult): LroResponse { if (Number.isNaN(response.status)) { throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`); } diff --git a/sdk/agrifood/agrifood-farming-rest/src/responses.ts b/sdk/agrifood/agrifood-farming-rest/src/responses.ts index 2e14ca1620b2..58f820f8dc15 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/responses.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/responses.ts @@ -195,6 +195,7 @@ export interface ApplicationDataCreateOrUpdateDefaultResponse extends HttpRespon /** Deletes a specified application data resource under a particular party. */ export interface ApplicationDataDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface ApplicationDataDeleteDefaultHeaders { @@ -268,6 +269,7 @@ export interface AttachmentsCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified attachment resource under a particular party. */ export interface AttachmentsDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface AttachmentsDeleteDefaultHeaders { @@ -444,6 +446,7 @@ export interface BoundariesGetDefaultResponse extends HttpResponse { /** Deletes a specified boundary resource under a particular party. */ export interface BoundariesDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface BoundariesDeleteDefaultHeaders { @@ -534,6 +537,7 @@ export interface CropProductsCreateOrUpdateDefaultResponse extends HttpResponse /** Deletes a specified crop Product resource. */ export interface CropProductsDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface CropProductsDeleteDefaultHeaders { @@ -607,6 +611,7 @@ export interface CropsCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes Crop for given crop id. */ export interface CropsDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface CropsDeleteDefaultHeaders { @@ -680,6 +685,7 @@ export interface DeviceDataModelsGetDefaultResponse extends HttpResponse { /** Deletes a device data model entity. */ export interface DeviceDataModelsDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface DeviceDataModelsDeleteDefaultHeaders { @@ -753,6 +759,7 @@ export interface DevicesGetDefaultResponse extends HttpResponse { /** Deletes a device entity. */ export interface DevicesDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface DevicesDeleteDefaultHeaders { @@ -911,6 +918,7 @@ export interface FarmsCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified farm resource under a particular party. */ export interface FarmsDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface FarmsDeleteDefaultHeaders { @@ -1035,6 +1043,7 @@ export interface FieldsCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified field resource under a particular party. */ export interface FieldsDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface FieldsDeleteDefaultHeaders { @@ -1159,6 +1168,7 @@ export interface HarvestDataCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified harvest data resource under a particular party. */ export interface HarvestDataDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface HarvestDataDeleteDefaultHeaders { @@ -1267,6 +1277,7 @@ export interface InsightAttachmentsGetDefaultResponse extends HttpResponse { /** Deletes a specified insight resource. */ export interface InsightAttachmentsDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface InsightAttachmentsDeleteDefaultHeaders { @@ -1392,6 +1403,7 @@ export interface InsightsGetDefaultResponse extends HttpResponse { /** Deletes a specified insight resource. */ export interface InsightsDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface InsightsDeleteDefaultHeaders { @@ -1516,6 +1528,7 @@ export interface ManagementZonesCreateOrUpdateDefaultResponse extends HttpRespon /** Deletes a specified management zone resource under a particular party. */ export interface ManagementZonesDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface ManagementZonesDeleteDefaultHeaders { @@ -1708,6 +1721,7 @@ export interface NutrientAnalysesCreateOrUpdateDefaultResponse extends HttpRespo /** Deletes a specified nutrient analysis resource under a particular party. */ export interface NutrientAnalysesDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface NutrientAnalysesDeleteDefaultHeaders { @@ -1781,6 +1795,7 @@ export interface OAuthProvidersCreateOrUpdateDefaultResponse extends HttpRespons /** Deletes an specified oauthProvider resource. */ export interface OAuthProvidersDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface OAuthProvidersDeleteDefaultHeaders { @@ -1956,6 +1971,7 @@ export interface PartiesCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified party resource. */ export interface PartiesDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface PartiesDeleteDefaultHeaders { @@ -2063,6 +2079,7 @@ export interface PlantingDataCreateOrUpdateDefaultResponse extends HttpResponse /** Deletes a specified planting data resource under a particular party. */ export interface PlantingDataDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface PlantingDataDeleteDefaultHeaders { @@ -2187,6 +2204,7 @@ export interface PlantTissueAnalysesCreateOrUpdateDefaultResponse extends HttpRe /** Deletes a specified plant tissue analysis resource under a particular party. */ export interface PlantTissueAnalysesDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface PlantTissueAnalysesDeleteDefaultHeaders { @@ -2311,6 +2329,7 @@ export interface PrescriptionMapsCreateOrUpdateDefaultResponse extends HttpRespo /** Deletes a specified prescription map resource under a particular party. */ export interface PrescriptionMapsDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface PrescriptionMapsDeleteDefaultHeaders { @@ -2435,6 +2454,7 @@ export interface PrescriptionsCreateOrUpdateDefaultResponse extends HttpResponse /** Deletes a specified prescription resource under a particular party. */ export interface PrescriptionsDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface PrescriptionsDeleteDefaultHeaders { @@ -2662,6 +2682,7 @@ export interface SeasonalFieldsCreateOrUpdateDefaultResponse extends HttpRespons /** Deletes a specified seasonal-field resource under a particular party. */ export interface SeasonalFieldsDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface SeasonalFieldsDeleteDefaultHeaders { @@ -2786,6 +2807,7 @@ export interface SeasonsCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified season resource. */ export interface SeasonsDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface SeasonsDeleteDefaultHeaders { @@ -2859,6 +2881,7 @@ export interface SensorDataModelsGetDefaultResponse extends HttpResponse { /** Deletes a sensor data model entity. */ export interface SensorDataModelsDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface SensorDataModelsDeleteDefaultHeaders { @@ -2955,6 +2978,7 @@ export interface SensorMappingsGetDefaultResponse extends HttpResponse { /** Deletes a sensor mapping entity. */ export interface SensorMappingsDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface SensorMappingsDeleteDefaultHeaders { @@ -3028,6 +3052,7 @@ export interface SensorPartnerIntegrationsGetDefaultResponse extends HttpRespons /** Deletes a partner integration model entity. */ export interface SensorPartnerIntegrationsDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface SensorPartnerIntegrationsDeleteDefaultHeaders { @@ -3135,6 +3160,7 @@ export interface SensorsGetDefaultResponse extends HttpResponse { /** Deletes a sensor entity. */ export interface SensorsDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface SensorsDeleteDefaultHeaders { @@ -3293,6 +3319,7 @@ export interface TillageDataCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified tillage data resource under a particular party. */ export interface TillageDataDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface TillageDataDeleteDefaultHeaders { @@ -3527,6 +3554,7 @@ export interface ZonesCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified zone resource under a particular party. */ export interface ZonesDelete204Response extends HttpResponse { status: "204"; + body: Record; } export interface ZonesDeleteDefaultHeaders { diff --git a/sdk/agrifood/agrifood-farming-rest/src/serializeHelper.ts b/sdk/agrifood/agrifood-farming-rest/src/serializeHelper.ts index 4a0a83f7ce0e..579c6ec01db3 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/serializeHelper.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/serializeHelper.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export function buildMultiCollection(items: string[], parameterName: string): string { - return items +export function buildMultiCollection(queryParameters: string[], parameterName: string): string { + return queryParameters .map((item, index) => { if (index === 0) { return item; diff --git a/sdk/agrifood/agrifood-farming-rest/swagger/README.md b/sdk/agrifood/agrifood-farming-rest/swagger/README.md index 148d9f12a688..8bc3d681f79d 100644 --- a/sdk/agrifood/agrifood-farming-rest/swagger/README.md +++ b/sdk/agrifood/agrifood-farming-rest/swagger/README.md @@ -11,9 +11,9 @@ generate-test: true package-name: "@azure-rest/agrifood-farming" title: FarmBeats description: Azure FarmBeats Service -generate-metadata: true +generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION -output-folder: ../ +output-folder: $(typescript-sdks-folder)/sdk/azurestackhci/arm-azurestackhci source-code-folder-path: ./src input-file: https://github.com/Azure/azure-rest-api-specs/blob/e38daec67d57ef9c4804b1e3055753407e45fa71/specification/agrifood/data-plane/Microsoft.AgFoodPlatform/preview/2022-11-01-preview/agfood.json package-version: 1.0.0-beta.3 diff --git a/sdk/agrifood/agrifood-farming-rest/tsconfig.json b/sdk/agrifood/agrifood-farming-rest/tsconfig.json index eb6d8229ebd1..819d684c7b1d 100644 --- a/sdk/agrifood/agrifood-farming-rest/tsconfig.json +++ b/sdk/agrifood/agrifood-farming-rest/tsconfig.json @@ -4,14 +4,8 @@ "outDir": "./dist-esm", "declarationDir": "./types", "paths": { - "@azure-rest/agrifood-farming": [ - "./src/index" - ] + "@azure-rest/agrifood-farming": ["./src/index"] } }, - "include": [ - "src/**/*.ts", - "test/**/*.ts", - "samples-dev/**/*.ts" - ] + "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"] } From c30e55c31f05759426567871c629f1b9f409f23d Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 23 Aug 2024 14:05:50 +0800 Subject: [PATCH 08/16] Update README.md --- sdk/agrifood/agrifood-farming-rest/swagger/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/agrifood/agrifood-farming-rest/swagger/README.md b/sdk/agrifood/agrifood-farming-rest/swagger/README.md index 8bc3d681f79d..8f74fc0eaa6e 100644 --- a/sdk/agrifood/agrifood-farming-rest/swagger/README.md +++ b/sdk/agrifood/agrifood-farming-rest/swagger/README.md @@ -13,7 +13,7 @@ title: FarmBeats description: Azure FarmBeats Service generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION -output-folder: $(typescript-sdks-folder)/sdk/azurestackhci/arm-azurestackhci +output-folder: $(typescript-sdks-folder)/sdk/agrifood/agrifood-farming-rest source-code-folder-path: ./src input-file: https://github.com/Azure/azure-rest-api-specs/blob/e38daec67d57ef9c4804b1e3055753407e45fa71/specification/agrifood/data-plane/Microsoft.AgFoodPlatform/preview/2022-11-01-preview/agfood.json package-version: 1.0.0-beta.3 From e8697da814b0c0043cc002a0f44af821e3d44fc7 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 23 Aug 2024 14:20:17 +0800 Subject: [PATCH 09/16] refresh --- common/config/rush/pnpm-lock.yaml | 54 +- .../agrifood-farming-rest/karma.conf.js | 5 +- .../agrifood-farming-rest/package.json | 21 +- .../review/agrifood-farming.api.md | 94 ++- .../src/clientDefinitions.ts | 554 +++++++++++++----- .../agrifood-farming-rest/src/farmBeats.ts | 60 +- .../agrifood-farming-rest/src/isUnexpected.ts | 317 +++++++--- .../agrifood-farming-rest/src/logger.ts | 5 + .../agrifood-farming-rest/src/outputModels.ts | 26 +- .../src/paginateHelper.ts | 33 +- .../agrifood-farming-rest/src/parameters.ts | 368 +++++++----- .../src/pollingHelper.ts | 161 ++++- .../agrifood-farming-rest/src/responses.ts | 532 ++++++++++------- .../src/serializeHelper.ts | 7 +- 14 files changed, 1496 insertions(+), 741 deletions(-) create mode 100644 sdk/agrifood/agrifood-farming-rest/src/logger.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 60d5b3e183e6..22b96155a599 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -7609,18 +7609,6 @@ packages: append-transform: 2.0.0 dev: false - /istanbul-lib-instrument@4.0.3: - resolution: {integrity: sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==} - engines: {node: '>=8'} - dependencies: - '@babel/core': 7.25.2 - '@istanbuljs/schema': 0.1.3 - istanbul-lib-coverage: 3.2.2 - semver: 6.3.1 - transitivePeerDependencies: - - supports-color - dev: false - /istanbul-lib-instrument@5.2.1: resolution: {integrity: sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==} engines: {node: '>=8'} @@ -8764,42 +8752,6 @@ packages: path-key: 4.0.0 dev: false - /nyc@15.1.0: - resolution: {integrity: sha512-jMW04n9SxKdKi1ZMGhvUTHBN0EICCRkHemEoE5jm6mTYcqcdas0ATzgUgejlQUHMvpnOZqGB5Xxsv9KxJW1j8A==} - engines: {node: '>=8.9'} - hasBin: true - dependencies: - '@istanbuljs/load-nyc-config': 1.1.0 - '@istanbuljs/schema': 0.1.3 - caching-transform: 4.0.0 - convert-source-map: 1.9.0 - decamelize: 1.2.0 - find-cache-dir: 3.3.2 - find-up: 4.1.0 - foreground-child: 2.0.0 - get-package-type: 0.1.0 - glob: 7.2.3 - istanbul-lib-coverage: 3.2.2 - istanbul-lib-hook: 3.0.0 - istanbul-lib-instrument: 4.0.3 - istanbul-lib-processinfo: 2.0.3 - istanbul-lib-report: 3.0.1 - istanbul-lib-source-maps: 4.0.1 - istanbul-reports: 3.1.7 - make-dir: 3.1.0 - node-preload: 0.2.1 - p-map: 3.0.0 - process-on-spawn: 1.0.0 - resolve-from: 5.0.0 - rimraf: 3.0.2 - signal-exit: 3.0.7 - spawn-wrap: 2.0.0 - test-exclude: 6.0.0 - yargs: 15.4.1 - transitivePeerDependencies: - - supports-color - dev: false - /nyc@17.0.0: resolution: {integrity: sha512-ISp44nqNCaPugLLGGfknzQwSwt10SSS5IMoPR7GLoMAyS18Iw5js8U7ga2VF9lYuMZ42gOHr3UddZw4WZltxKg==} engines: {node: '>=18'} @@ -11832,7 +11784,7 @@ packages: dev: false file:projects/agrifood-farming.tgz: - resolution: {integrity: sha512-UCkVm0nTXX5HIR5yvFGrMGwzGQtfEZAdVTih+M5nroSRgJ1GFPmkkH72iGxVUiCQwKDKfAU5jW2WtYhZojioYg==, tarball: file:projects/agrifood-farming.tgz} + resolution: {integrity: sha512-Posc7rxos09Nl4xoachrPdMUCqt1yX4uFCvEUkqk2ApBLgQ+Ui6lD/8jJ/a/2ZHawkn38iK6mxRaLRMMvujJTQ==, tarball: file:projects/agrifood-farming.tgz} name: '@rush-temp/agrifood-farming' version: 0.0.0 dependencies: @@ -11864,7 +11816,7 @@ packages: karma-sourcemap-loader: 0.3.8 mkdirp: 3.0.1 mocha: 10.7.3 - nyc: 15.1.0 + nyc: 17.0.0 prettier: 3.3.3 rimraf: 5.0.10 source-map-support: 0.5.21 @@ -11874,6 +11826,8 @@ packages: typescript: 5.5.4 uglify-js: 3.19.2 transitivePeerDependencies: + - '@swc/core' + - '@swc/wasm' - bufferutil - debug - supports-color diff --git a/sdk/agrifood/agrifood-farming-rest/karma.conf.js b/sdk/agrifood/agrifood-farming-rest/karma.conf.js index fa62f0df80e0..a9d5f1b5fc59 100644 --- a/sdk/agrifood/agrifood-farming-rest/karma.conf.js +++ b/sdk/agrifood/agrifood-farming-rest/karma.conf.js @@ -52,14 +52,13 @@ module.exports = function (config) { }, envPreprocessor: [ - "RECORDINGS_RELATIVE_PATH", "TEST_MODE", - "FARMBEATS_ENDPOINT", + "ENDPOINT", "AZURE_CLIENT_SECRET", "AZURE_CLIENT_ID", "AZURE_TENANT_ID", "SUBSCRIPTION_ID", - "AZURE_LOG_LEVEL", + "RECORDINGS_RELATIVE_PATH", ], // test results reporter to use diff --git a/sdk/agrifood/agrifood-farming-rest/package.json b/sdk/agrifood/agrifood-farming-rest/package.json index 8916a38161ea..0c1f2c1e34b1 100644 --- a/sdk/agrifood/agrifood-farming-rest/package.json +++ b/sdk/agrifood/agrifood-farming-rest/package.json @@ -4,14 +4,7 @@ "author": "Microsoft Corporation", "description": "An isomorphic REST client library for the Azure FarmBeats Service.", "version": "1.0.0-beta.3", - "keywords": [ - "node", - "azure", - "cloud", - "typescript", - "browser", - "isomorphic" - ], + "keywords": ["node", "azure", "cloud", "typescript", "browser", "isomorphic"], "license": "MIT", "main": "./dist/index.js", "module": "./dist-esm/src/index.js", @@ -41,10 +34,7 @@ }, "//sampleConfiguration": { "productName": "Azure FarmBeats rest", - "productSlugs": [ - "azure", - "azure-farmbeats" - ], + "productSlugs": ["azure", "azure-farmbeats"], "requiredResources": { "Azure FarmBeats Service instance": "https://docs.microsoft.com/azure/industry/agriculture/install-azure-farmbeats" } @@ -85,10 +75,11 @@ "@azure/core-rest-pipeline": "^1.9.2", "@azure-rest/core-client": "^1.0.0", "@azure/core-auth": "^1.3.0", - "@azure/core-lro": "^2.2.4", - "@azure/core-paging": "^1.2.0", + "@azure/core-lro": "^3.0.0", + "@azure/core-paging": "^1.5.0", "@azure/logger": "^1.0.0", - "tslib": "^2.2.0" + "tslib": "^2.2.0", + "@azure/abort-controller": "^2.1.2" }, "devDependencies": { "@azure/core-util": "^1.0.0", diff --git a/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md b/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md index 9a41b33ed019..7cdd7818d21e 100644 --- a/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md +++ b/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md @@ -4,6 +4,8 @@ ```ts +import { AbortSignalLike } from '@azure/abort-controller'; +import { CancelOnProgress } from '@azure/core-lro'; import { Client } from '@azure-rest/core-client'; import { ClientOptions } from '@azure-rest/core-client'; import { CreateHttpPollerOptions } from '@azure/core-lro'; @@ -13,7 +15,6 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { PathUncheckedResponse } from '@azure-rest/core-client'; import { RawHttpHeaders } from '@azure/core-rest-pipeline'; import { RequestParameters } from '@azure-rest/core-client'; -import { SimplePollerLike } from '@azure/core-lro'; import { StreamableMethod } from '@azure-rest/core-client'; import { TokenCredential } from '@azure/core-auth'; @@ -138,8 +139,6 @@ export type ApplicationDataCreateOrUpdateParameters = ApplicationDataCreateOrUpd // @public export interface ApplicationDataDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -497,8 +496,6 @@ export type AttachmentsCreateOrUpdateParameters = AttachmentsCreateOrUpdateMedia // @public export interface AttachmentsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -787,8 +784,6 @@ export type BoundariesCreateOrUpdateParameters = BoundariesCreateOrUpdateMediaTy // @public export interface BoundariesDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -1178,7 +1173,7 @@ export interface BoundaryOverlapResponseOutput { export type BoundaryResourceMergeAndPatch = Partial; // @public (undocumented) -export function buildMultiCollection(queryParameters: string[], parameterName: string): string; +export function buildMultiCollection(items: string[], parameterName: string): string; // @public export interface CascadeDeleteJobOutput { @@ -1197,7 +1192,7 @@ export interface CascadeDeleteJobOutput { } // @public -function createClient($host: string, credentials: TokenCredential, options?: ClientOptions): FarmBeatsClient; +function createClient($host: string, credentials: TokenCredential, { apiVersion, ...options }?: FarmBeatsClientOptions): FarmBeatsClient; export default createClient; // @public @@ -1330,8 +1325,6 @@ export type CropProductsCreateOrUpdateParameters = CropProductsCreateOrUpdateMed // @public export interface CropProductsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -1495,8 +1488,6 @@ export type CropsCreateOrUpdateParameters = CropsCreateOrUpdateMediaTypesParam & // @public export interface CropsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -1718,8 +1709,6 @@ export type DeviceDataModelsCreateOrUpdateParameters = DeviceDataModelsCreateOrU // @public export interface DeviceDataModelsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -1908,8 +1897,6 @@ export type DevicesCreateOrUpdateParameters = DevicesCreateOrUpdateMediaTypesPar // @public export interface DevicesDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -2051,6 +2038,11 @@ export type FarmBeatsClient = Client & { path: Routes; }; +// @public +export interface FarmBeatsClientOptions extends ClientOptions { + apiVersion?: string; +} + // @public export interface FarmListResponseOutput { nextLink?: string; @@ -2274,8 +2266,6 @@ export type FarmsCreateOrUpdateParameters = FarmsCreateOrUpdateMediaTypesParam & // @public export interface FarmsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -2587,8 +2577,6 @@ export type FieldsCreateOrUpdateParameters = FieldsCreateOrUpdateMediaTypesParam // @public export interface FieldsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -2928,8 +2916,6 @@ export type HarvestDataCreateOrUpdateParameters = HarvestDataCreateOrUpdateMedia // @public export interface HarvestDataDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -3448,8 +3434,6 @@ export type InsightAttachmentsCreateOrUpdateParameters = InsightAttachmentsCreat // @public export interface InsightAttachmentsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -3719,8 +3703,6 @@ export type InsightsCreateOrUpdateParameters = InsightsCreateOrUpdateMediaTypesP // @public export interface InsightsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -4609,8 +4591,6 @@ export type ManagementZonesCreateOrUpdateParameters = ManagementZonesCreateOrUpd // @public export interface ManagementZonesDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -5104,8 +5084,6 @@ export type NutrientAnalysesCreateOrUpdateParameters = NutrientAnalysesCreateOrU // @public export interface NutrientAnalysesDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -5476,8 +5454,6 @@ export type OAuthProvidersCreateOrUpdateParameters = OAuthProvidersCreateOrUpdat // @public export interface OAuthProvidersDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -5902,8 +5878,6 @@ export type PartiesCreateOrUpdateParameters = PartiesCreateOrUpdateMediaTypesPar // @public export interface PartiesDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -6190,8 +6164,6 @@ export type PlantingDataCreateOrUpdateParameters = PlantingDataCreateOrUpdateMed // @public export interface PlantingDataDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -6556,8 +6528,6 @@ export type PlantTissueAnalysesCreateOrUpdateParameters = PlantTissueAnalysesCre // @public export interface PlantTissueAnalysesDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -7008,8 +6978,6 @@ export type PrescriptionMapsCreateOrUpdateParameters = PrescriptionMapsCreateOrU // @public export interface PrescriptionMapsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -7324,8 +7292,6 @@ export type PrescriptionsCreateOrUpdateParameters = PrescriptionsCreateOrUpdateM // @public export interface PrescriptionsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -7926,7 +7892,7 @@ export interface ScenesListQueryParamProperties { endDateTime?: Date | string; imageFormats?: string; imageNames?: string; - imageResolutions?: Array; + imageResolutions?: string; maxCloudCoveragePercentage?: number; maxDarkPixelCoveragePercentage?: number; maxPageSize?: number; @@ -8170,8 +8136,6 @@ export type SeasonalFieldsCreateOrUpdateParameters = SeasonalFieldsCreateOrUpdat // @public export interface SeasonalFieldsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -8452,8 +8416,6 @@ export type SeasonsCreateOrUpdateParameters = SeasonsCreateOrUpdateMediaTypesPar // @public export interface SeasonsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -8565,7 +8527,7 @@ export interface SeasonsListQueryParamProperties { propertyFilters?: string; skipToken?: string; statuses?: string; - years?: Array; + years?: string; } // @public @@ -8697,8 +8659,6 @@ export type SensorDataModelsCreateOrUpdateParameters = SensorDataModelsCreateOrU // @public export interface SensorDataModelsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -8967,8 +8927,6 @@ export type SensorMappingsCreateOrUpdateParameters = SensorMappingsCreateOrUpdat // @public export interface SensorMappingsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -9244,8 +9202,6 @@ export type SensorPartnerIntegrationsCreateOrUpdateParameters = SensorPartnerInt // @public export interface SensorPartnerIntegrationsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -9487,8 +9443,6 @@ export type SensorsCreateOrUpdateParameters = SensorsCreateOrUpdateMediaTypesPar // @public export interface SensorsDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -9668,6 +9622,28 @@ export interface SensorsRenewConnectionStringMediaTypesParam { // @public (undocumented) export type SensorsRenewConnectionStringParameters = SensorsRenewConnectionStringMediaTypesParam & SensorsRenewConnectionStringBodyParam & RequestParameters; +// @public +export interface SimplePollerLike, TResult> { + getOperationState(): TState; + getResult(): TResult | undefined; + isDone(): boolean; + // @deprecated + isStopped(): boolean; + onProgress(callback: (state: TState) => void): CancelOnProgress; + poll(options?: { + abortSignal?: AbortSignalLike; + }): Promise; + pollUntilDone(pollOptions?: { + abortSignal?: AbortSignalLike; + }): Promise; + serialize(): Promise; + // @deprecated + stopPolling(): void; + submitted(): Promise; + // @deprecated + toString(): string; +} + // @public export interface SoilMoistureModelJob { boundaryId: string; @@ -10002,8 +9978,6 @@ export type TillageDataCreateOrUpdateParameters = TillageDataCreateOrUpdateMedia // @public export interface TillageDataDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -10830,8 +10804,6 @@ export type ZonesCreateOrUpdateParameters = ZonesCreateOrUpdateMediaTypesParam & // @public export interface ZonesDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } diff --git a/sdk/agrifood/agrifood-farming-rest/src/clientDefinitions.ts b/sdk/agrifood/agrifood-farming-rest/src/clientDefinitions.ts index c82be912f27e..fdad04d07093 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/clientDefinitions.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/clientDefinitions.ts @@ -630,7 +630,9 @@ export interface ApplicationDataList { /** Returns a paginated list of application data resources across all parties. */ get( options?: ApplicationDataListParameters, - ): StreamableMethod; + ): StreamableMethod< + ApplicationDataList200Response | ApplicationDataListDefaultResponse + >; } export interface ApplicationDataCreateCascadeDeleteJob { @@ -655,7 +657,8 @@ export interface ApplicationDataListByPartyId { get( options?: ApplicationDataListByPartyIdParameters, ): StreamableMethod< - ApplicationDataListByPartyId200Response | ApplicationDataListByPartyIdDefaultResponse + | ApplicationDataListByPartyId200Response + | ApplicationDataListByPartyIdDefaultResponse >; } @@ -663,7 +666,9 @@ export interface ApplicationDataGet { /** Get a specified application data resource under a particular party. */ get( options?: ApplicationDataGetParameters, - ): StreamableMethod; + ): StreamableMethod< + ApplicationDataGet200Response | ApplicationDataGetDefaultResponse + >; /** Creates or updates an application data resource under a particular party. */ patch( options: ApplicationDataCreateOrUpdateParameters, @@ -675,7 +680,9 @@ export interface ApplicationDataGet { /** Deletes a specified application data resource under a particular party. */ delete( options?: ApplicationDataDeleteParameters, - ): StreamableMethod; + ): StreamableMethod< + ApplicationDataDelete204Response | ApplicationDataDeleteDefaultResponse + >; } export interface AttachmentsListByPartyId { @@ -683,7 +690,8 @@ export interface AttachmentsListByPartyId { get( options?: AttachmentsListByPartyIdParameters, ): StreamableMethod< - AttachmentsListByPartyId200Response | AttachmentsListByPartyIdDefaultResponse + | AttachmentsListByPartyId200Response + | AttachmentsListByPartyIdDefaultResponse >; } @@ -691,7 +699,9 @@ export interface AttachmentsGet { /** Gets a specified attachment resource under a particular party. */ get( options?: AttachmentsGetParameters, - ): StreamableMethod; + ): StreamableMethod< + AttachmentsGet200Response | AttachmentsGetDefaultResponse + >; /** Creates or updates an attachment resource under a particular party. */ patch( options?: AttachmentsCreateOrUpdateParameters, @@ -703,25 +713,33 @@ export interface AttachmentsGet { /** Deletes a specified attachment resource under a particular party. */ delete( options?: AttachmentsDeleteParameters, - ): StreamableMethod; + ): StreamableMethod< + AttachmentsDelete204Response | AttachmentsDeleteDefaultResponse + >; } export interface AttachmentsDownload { /** Downloads and returns attachment as response for the given input filePath. */ get( options?: AttachmentsDownloadParameters, - ): StreamableMethod; + ): StreamableMethod< + AttachmentsDownload200Response | AttachmentsDownloadDefaultResponse + >; } export interface BoundariesList { /** Returns a paginated list of boundary resources across all parties. */ get( options?: BoundariesListParameters, - ): StreamableMethod; + ): StreamableMethod< + BoundariesList200Response | BoundariesListDefaultResponse + >; /** Search for boundaries across all parties by fields and intersecting geometry. */ post( options: BoundariesSearchParameters, - ): StreamableMethod; + ): StreamableMethod< + BoundariesSearch200Response | BoundariesSearchDefaultResponse + >; } export interface BoundariesCreateCascadeDeleteJob { @@ -729,7 +747,8 @@ export interface BoundariesCreateCascadeDeleteJob { put( options: BoundariesCreateCascadeDeleteJobParameters, ): StreamableMethod< - BoundariesCreateCascadeDeleteJob202Response | BoundariesCreateCascadeDeleteJobDefaultResponse + | BoundariesCreateCascadeDeleteJob202Response + | BoundariesCreateCascadeDeleteJobDefaultResponse >; /** Get cascade delete job for specified boundary. */ get( @@ -744,12 +763,15 @@ export interface BoundariesListByPartyId { /** Returns a paginated list of boundary resources under a particular party. */ get( options?: BoundariesListByPartyIdParameters, - ): StreamableMethod; + ): StreamableMethod< + BoundariesListByPartyId200Response | BoundariesListByPartyIdDefaultResponse + >; /** Search for boundaries by fields and intersecting geometry. */ post( options: BoundariesSearchByPartyIdParameters, ): StreamableMethod< - BoundariesSearchByPartyId200Response | BoundariesSearchByPartyIdDefaultResponse + | BoundariesSearchByPartyId200Response + | BoundariesSearchByPartyIdDefaultResponse >; } @@ -769,28 +791,36 @@ export interface BoundariesCreateOrUpdate { /** Deletes a specified boundary resource under a particular party. */ delete( options?: BoundariesDeleteParameters, - ): StreamableMethod; + ): StreamableMethod< + BoundariesDelete204Response | BoundariesDeleteDefaultResponse + >; } export interface BoundariesGetOverlap { /** Returns overlapping area between two boundary Ids. */ get( options: BoundariesGetOverlapParameters, - ): StreamableMethod; + ): StreamableMethod< + BoundariesGetOverlap200Response | BoundariesGetOverlapDefaultResponse + >; } export interface CropProductsList { /** Returns a paginated list of crop product resources. */ get( options?: CropProductsListParameters, - ): StreamableMethod; + ): StreamableMethod< + CropProductsList200Response | CropProductsListDefaultResponse + >; } export interface CropProductsGet { /** Gets a specified crop Product resource. */ get( options?: CropProductsGetParameters, - ): StreamableMethod; + ): StreamableMethod< + CropProductsGet200Response | CropProductsGetDefaultResponse + >; /** Creates or updates a crop Product resource. */ patch( options: CropProductsCreateOrUpdateParameters, @@ -802,7 +832,9 @@ export interface CropProductsGet { /** Deletes a specified crop Product resource. */ delete( options?: CropProductsDeleteParameters, - ): StreamableMethod; + ): StreamableMethod< + CropProductsDelete204Response | CropProductsDeleteDefaultResponse + >; } export interface CropsList { @@ -835,7 +867,9 @@ export interface DeviceDataModelsList { /** Returns a paginated list of device data model resources. */ get( options?: DeviceDataModelsListParameters, - ): StreamableMethod; + ): StreamableMethod< + DeviceDataModelsList200Response | DeviceDataModelsListDefaultResponse + >; } export interface DeviceDataModelsCreateOrUpdate { @@ -850,11 +884,15 @@ export interface DeviceDataModelsCreateOrUpdate { /** Gets a device data model entity. */ get( options?: DeviceDataModelsGetParameters, - ): StreamableMethod; + ): StreamableMethod< + DeviceDataModelsGet200Response | DeviceDataModelsGetDefaultResponse + >; /** Deletes a device data model entity. */ delete( options?: DeviceDataModelsDeleteParameters, - ): StreamableMethod; + ): StreamableMethod< + DeviceDataModelsDelete204Response | DeviceDataModelsDeleteDefaultResponse + >; } export interface DevicesList { @@ -912,13 +950,15 @@ export interface FarmsCreateCascadeDeleteJob { put( options: FarmsCreateCascadeDeleteJobParameters, ): StreamableMethod< - FarmsCreateCascadeDeleteJob202Response | FarmsCreateCascadeDeleteJobDefaultResponse + | FarmsCreateCascadeDeleteJob202Response + | FarmsCreateCascadeDeleteJobDefaultResponse >; /** Get a cascade delete job for specified farm. */ get( options?: FarmsGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< - FarmsGetCascadeDeleteJobDetails200Response | FarmsGetCascadeDeleteJobDetailsDefaultResponse + | FarmsGetCascadeDeleteJobDetails200Response + | FarmsGetCascadeDeleteJobDetailsDefaultResponse >; } @@ -926,7 +966,9 @@ export interface FarmsListByPartyId { /** Returns a paginated list of farm resources under a particular party. */ get( options?: FarmsListByPartyIdParameters, - ): StreamableMethod; + ): StreamableMethod< + FarmsListByPartyId200Response | FarmsListByPartyIdDefaultResponse + >; } export interface FarmsGet { @@ -960,13 +1002,15 @@ export interface FieldsGetCascadeDeleteJobDetails { get( options?: FieldsGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< - FieldsGetCascadeDeleteJobDetails200Response | FieldsGetCascadeDeleteJobDetailsDefaultResponse + | FieldsGetCascadeDeleteJobDetails200Response + | FieldsGetCascadeDeleteJobDetailsDefaultResponse >; /** Create a cascade delete job for specified field. */ put( options: FieldsCreateCascadeDeleteJobParameters, ): StreamableMethod< - FieldsCreateCascadeDeleteJob202Response | FieldsCreateCascadeDeleteJobDefaultResponse + | FieldsCreateCascadeDeleteJob202Response + | FieldsCreateCascadeDeleteJobDefaultResponse >; } @@ -974,7 +1018,9 @@ export interface FieldsListByPartyId { /** Returns a paginated list of field resources under a particular party. */ get( options?: FieldsListByPartyIdParameters, - ): StreamableMethod; + ): StreamableMethod< + FieldsListByPartyId200Response | FieldsListByPartyIdDefaultResponse + >; } export interface FieldsGet { @@ -1000,7 +1046,9 @@ export interface HarvestDataList { /** Returns a paginated list of harvest data resources across all parties. */ get( options?: HarvestDataListParameters, - ): StreamableMethod; + ): StreamableMethod< + HarvestDataList200Response | HarvestDataListDefaultResponse + >; } export interface HarvestDataCreateCascadeDeleteJob { @@ -1008,7 +1056,8 @@ export interface HarvestDataCreateCascadeDeleteJob { put( options: HarvestDataCreateCascadeDeleteJobParameters, ): StreamableMethod< - HarvestDataCreateCascadeDeleteJob202Response | HarvestDataCreateCascadeDeleteJobDefaultResponse + | HarvestDataCreateCascadeDeleteJob202Response + | HarvestDataCreateCascadeDeleteJobDefaultResponse >; /** Get cascade delete job for harvest data resource. */ get( @@ -1024,7 +1073,8 @@ export interface HarvestDataListByPartyId { get( options?: HarvestDataListByPartyIdParameters, ): StreamableMethod< - HarvestDataListByPartyId200Response | HarvestDataListByPartyIdDefaultResponse + | HarvestDataListByPartyId200Response + | HarvestDataListByPartyIdDefaultResponse >; } @@ -1032,7 +1082,9 @@ export interface HarvestDataGet { /** Get a specified harvest data resource under a particular party. */ get( options?: HarvestDataGetParameters, - ): StreamableMethod; + ): StreamableMethod< + HarvestDataGet200Response | HarvestDataGetDefaultResponse + >; /** Creates or updates harvest data resource under a particular party. */ patch( options: HarvestDataCreateOrUpdateParameters, @@ -1044,7 +1096,9 @@ export interface HarvestDataGet { /** Deletes a specified harvest data resource under a particular party. */ delete( options?: HarvestDataDeleteParameters, - ): StreamableMethod; + ): StreamableMethod< + HarvestDataDelete204Response | HarvestDataDeleteDefaultResponse + >; } export interface ImageProcessingCreateRasterizeJob { @@ -1052,13 +1106,15 @@ export interface ImageProcessingCreateRasterizeJob { put( options: ImageProcessingCreateRasterizeJobParameters, ): StreamableMethod< - ImageProcessingCreateRasterizeJob202Response | ImageProcessingCreateRasterizeJobDefaultResponse + | ImageProcessingCreateRasterizeJob202Response + | ImageProcessingCreateRasterizeJobDefaultResponse >; /** Get ImageProcessing Rasterize job's details. */ get( options?: ImageProcessingGetRasterizeJobParameters, ): StreamableMethod< - ImageProcessingGetRasterizeJob200Response | ImageProcessingGetRasterizeJobDefaultResponse + | ImageProcessingGetRasterizeJob200Response + | ImageProcessingGetRasterizeJobDefaultResponse >; } @@ -1084,12 +1140,15 @@ export interface InsightAttachmentsCreateOrUpdate { /** Gets a specified insight resource under a particular party. */ get( options?: InsightAttachmentsGetParameters, - ): StreamableMethod; + ): StreamableMethod< + InsightAttachmentsGet200Response | InsightAttachmentsGetDefaultResponse + >; /** Deletes a specified insight resource. */ delete( options?: InsightAttachmentsDeleteParameters, ): StreamableMethod< - InsightAttachmentsDelete204Response | InsightAttachmentsDeleteDefaultResponse + | InsightAttachmentsDelete204Response + | InsightAttachmentsDeleteDefaultResponse >; } @@ -1098,7 +1157,8 @@ export interface InsightAttachmentsDownload { get( options?: InsightAttachmentsDownloadParameters, ): StreamableMethod< - InsightAttachmentsDownload200Response | InsightAttachmentsDownloadDefaultResponse + | InsightAttachmentsDownload200Response + | InsightAttachmentsDownloadDefaultResponse >; } @@ -1107,7 +1167,8 @@ export interface InsightsCreateCascadeDeleteJob { put( options: InsightsCreateCascadeDeleteJobParameters, ): StreamableMethod< - InsightsCreateCascadeDeleteJob202Response | InsightsCreateCascadeDeleteJobDefaultResponse + | InsightsCreateCascadeDeleteJob202Response + | InsightsCreateCascadeDeleteJobDefaultResponse >; /** Get a cascade delete job for specified insight. */ get( @@ -1144,14 +1205,18 @@ export interface InsightsCreateOrUpdate { /** Deletes a specified insight resource. */ delete( options?: InsightsDeleteParameters, - ): StreamableMethod; + ): StreamableMethod< + InsightsDelete204Response | InsightsDeleteDefaultResponse + >; } export interface ManagementZonesList { /** Returns a paginated list of management zone resources across all parties. */ get( options?: ManagementZonesListParameters, - ): StreamableMethod; + ): StreamableMethod< + ManagementZonesList200Response | ManagementZonesListDefaultResponse + >; } export interface ManagementZonesGetCascadeDeleteJobDetails { @@ -1176,7 +1241,8 @@ export interface ManagementZonesListByPartyId { get( options?: ManagementZonesListByPartyIdParameters, ): StreamableMethod< - ManagementZonesListByPartyId200Response | ManagementZonesListByPartyIdDefaultResponse + | ManagementZonesListByPartyId200Response + | ManagementZonesListByPartyIdDefaultResponse >; } @@ -1184,7 +1250,9 @@ export interface ManagementZonesGet { /** Gets a specified management zone resource under a particular party. */ get( options?: ManagementZonesGetParameters, - ): StreamableMethod; + ): StreamableMethod< + ManagementZonesGet200Response | ManagementZonesGetDefaultResponse + >; /** Creates or updates a management zone resource. */ patch( options: ManagementZonesCreateOrUpdateParameters, @@ -1196,7 +1264,9 @@ export interface ManagementZonesGet { /** Deletes a specified management zone resource under a particular party. */ delete( options?: ManagementZonesDeleteParameters, - ): StreamableMethod; + ): StreamableMethod< + ManagementZonesDelete204Response | ManagementZonesDeleteDefaultResponse + >; } export interface ModelInferenceCreateBiomassModelJob { @@ -1211,7 +1281,8 @@ export interface ModelInferenceCreateBiomassModelJob { get( options?: ModelInferenceGetBiomassModelJobParameters, ): StreamableMethod< - ModelInferenceGetBiomassModelJob200Response | ModelInferenceGetBiomassModelJobDefaultResponse + | ModelInferenceGetBiomassModelJob200Response + | ModelInferenceGetBiomassModelJobDefaultResponse >; } @@ -1253,7 +1324,9 @@ export interface NutrientAnalysesList { /** Returns a paginated list of nutrient analysis resources across all parties. */ get( options?: NutrientAnalysesListParameters, - ): StreamableMethod; + ): StreamableMethod< + NutrientAnalysesList200Response | NutrientAnalysesListDefaultResponse + >; } export interface NutrientAnalysesListByPartyId { @@ -1261,7 +1334,8 @@ export interface NutrientAnalysesListByPartyId { get( options?: NutrientAnalysesListByPartyIdParameters, ): StreamableMethod< - NutrientAnalysesListByPartyId200Response | NutrientAnalysesListByPartyIdDefaultResponse + | NutrientAnalysesListByPartyId200Response + | NutrientAnalysesListByPartyIdDefaultResponse >; } @@ -1269,7 +1343,9 @@ export interface NutrientAnalysesGet { /** Gets a specified nutrient analysis resource under a particular party. */ get( options?: NutrientAnalysesGetParameters, - ): StreamableMethod; + ): StreamableMethod< + NutrientAnalysesGet200Response | NutrientAnalysesGetDefaultResponse + >; /** Creates or updates a nutrient analysis resource. */ patch( options: NutrientAnalysesCreateOrUpdateParameters, @@ -1281,21 +1357,27 @@ export interface NutrientAnalysesGet { /** Deletes a specified nutrient analysis resource under a particular party. */ delete( options?: NutrientAnalysesDeleteParameters, - ): StreamableMethod; + ): StreamableMethod< + NutrientAnalysesDelete204Response | NutrientAnalysesDeleteDefaultResponse + >; } export interface OAuthProvidersList { /** Returns a paginated list of oauthProvider resources. */ get( options?: OAuthProvidersListParameters, - ): StreamableMethod; + ): StreamableMethod< + OAuthProvidersList200Response | OAuthProvidersListDefaultResponse + >; } export interface OAuthProvidersGet { /** Get a specified oauthProvider resource. */ get( options?: OAuthProvidersGetParameters, - ): StreamableMethod; + ): StreamableMethod< + OAuthProvidersGet200Response | OAuthProvidersGetDefaultResponse + >; /** Creates or updates an oauthProvider resource. */ patch( options: OAuthProvidersCreateOrUpdateParameters, @@ -1307,7 +1389,9 @@ export interface OAuthProvidersGet { /** Deletes an specified oauthProvider resource. */ delete( options?: OAuthProvidersDeleteParameters, - ): StreamableMethod; + ): StreamableMethod< + OAuthProvidersDelete204Response | OAuthProvidersDeleteDefaultResponse + >; } export interface OAuthProvidersGetCascadeDeleteJobDetails { @@ -1331,7 +1415,9 @@ export interface OAuthTokensList { /** Returns a list of OAuthToken documents. */ get( options?: OAuthTokensListParameters, - ): StreamableMethod; + ): StreamableMethod< + OAuthTokensList200Response | OAuthTokensListDefaultResponse + >; } export interface OAuthTokensGetOAuthConnectionLink { @@ -1339,7 +1425,8 @@ export interface OAuthTokensGetOAuthConnectionLink { post( options: OAuthTokensGetOAuthConnectionLinkParameters, ): StreamableMethod< - OAuthTokensGetOAuthConnectionLink200Response | OAuthTokensGetOAuthConnectionLinkDefaultResponse + | OAuthTokensGetOAuthConnectionLink200Response + | OAuthTokensGetOAuthConnectionLinkDefaultResponse >; } @@ -1355,7 +1442,8 @@ export interface OAuthTokensGetCascadeDeleteJobDetails { put( options: OAuthTokensCreateCascadeDeleteJobParameters, ): StreamableMethod< - OAuthTokensCreateCascadeDeleteJob202Response | OAuthTokensCreateCascadeDeleteJobDefaultResponse + | OAuthTokensCreateCascadeDeleteJob202Response + | OAuthTokensCreateCascadeDeleteJobDefaultResponse >; } @@ -1390,13 +1478,15 @@ export interface PartiesGetCascadeDeleteJobDetails { get( options?: PartiesGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< - PartiesGetCascadeDeleteJobDetails200Response | PartiesGetCascadeDeleteJobDetailsDefaultResponse + | PartiesGetCascadeDeleteJobDetails200Response + | PartiesGetCascadeDeleteJobDetailsDefaultResponse >; /** Create a cascade delete job for specified party. */ put( options: PartiesCreateCascadeDeleteJobParameters, ): StreamableMethod< - PartiesCreateCascadeDeleteJob202Response | PartiesCreateCascadeDeleteJobDefaultResponse + | PartiesCreateCascadeDeleteJob202Response + | PartiesCreateCascadeDeleteJobDefaultResponse >; } @@ -1405,7 +1495,8 @@ export interface PlantingDataListByPartyId { get( options?: PlantingDataListByPartyIdParameters, ): StreamableMethod< - PlantingDataListByPartyId200Response | PlantingDataListByPartyIdDefaultResponse + | PlantingDataListByPartyId200Response + | PlantingDataListByPartyIdDefaultResponse >; } @@ -1413,7 +1504,9 @@ export interface PlantingDataGet { /** Get a specified planting data resource under a particular party. */ get( options?: PlantingDataGetParameters, - ): StreamableMethod; + ): StreamableMethod< + PlantingDataGet200Response | PlantingDataGetDefaultResponse + >; /** Creates or updates an planting data resource under a particular party. */ patch( options: PlantingDataCreateOrUpdateParameters, @@ -1425,14 +1518,18 @@ export interface PlantingDataGet { /** Deletes a specified planting data resource under a particular party. */ delete( options?: PlantingDataDeleteParameters, - ): StreamableMethod; + ): StreamableMethod< + PlantingDataDelete204Response | PlantingDataDeleteDefaultResponse + >; } export interface PlantingDataList { /** Returns a paginated list of planting data resources across all parties. */ get( options?: PlantingDataListParameters, - ): StreamableMethod; + ): StreamableMethod< + PlantingDataList200Response | PlantingDataListDefaultResponse + >; } export interface PlantingDataCreateCascadeDeleteJob { @@ -1457,7 +1554,8 @@ export interface PlantTissueAnalysesListByPartyId { get( options?: PlantTissueAnalysesListByPartyIdParameters, ): StreamableMethod< - PlantTissueAnalysesListByPartyId200Response | PlantTissueAnalysesListByPartyIdDefaultResponse + | PlantTissueAnalysesListByPartyId200Response + | PlantTissueAnalysesListByPartyIdDefaultResponse >; } @@ -1465,7 +1563,9 @@ export interface PlantTissueAnalysesGet { /** Gets a specified plant tissue analysis resource under a particular party. */ get( options?: PlantTissueAnalysesGetParameters, - ): StreamableMethod; + ): StreamableMethod< + PlantTissueAnalysesGet200Response | PlantTissueAnalysesGetDefaultResponse + >; /** Creates or updates a plant tissue analysis resource. */ patch( options: PlantTissueAnalysesCreateOrUpdateParameters, @@ -1478,7 +1578,8 @@ export interface PlantTissueAnalysesGet { delete( options?: PlantTissueAnalysesDeleteParameters, ): StreamableMethod< - PlantTissueAnalysesDelete204Response | PlantTissueAnalysesDeleteDefaultResponse + | PlantTissueAnalysesDelete204Response + | PlantTissueAnalysesDeleteDefaultResponse >; } @@ -1486,7 +1587,9 @@ export interface PlantTissueAnalysesList { /** Returns a paginated list of plant tissue analysis resources across all parties. */ get( options?: PlantTissueAnalysesListParameters, - ): StreamableMethod; + ): StreamableMethod< + PlantTissueAnalysesList200Response | PlantTissueAnalysesListDefaultResponse + >; } export interface PlantTissueAnalysesCreateCascadeDeleteJob { @@ -1511,7 +1614,8 @@ export interface PrescriptionMapsListByPartyId { get( options?: PrescriptionMapsListByPartyIdParameters, ): StreamableMethod< - PrescriptionMapsListByPartyId200Response | PrescriptionMapsListByPartyIdDefaultResponse + | PrescriptionMapsListByPartyId200Response + | PrescriptionMapsListByPartyIdDefaultResponse >; } @@ -1519,7 +1623,9 @@ export interface PrescriptionMapsGet { /** Gets a specified prescription map resource under a particular party. */ get( options?: PrescriptionMapsGetParameters, - ): StreamableMethod; + ): StreamableMethod< + PrescriptionMapsGet200Response | PrescriptionMapsGetDefaultResponse + >; /** Creates or Updates a prescription map resource under a particular party. */ patch( options: PrescriptionMapsCreateOrUpdateParameters, @@ -1531,14 +1637,18 @@ export interface PrescriptionMapsGet { /** Deletes a specified prescription map resource under a particular party. */ delete( options?: PrescriptionMapsDeleteParameters, - ): StreamableMethod; + ): StreamableMethod< + PrescriptionMapsDelete204Response | PrescriptionMapsDeleteDefaultResponse + >; } export interface PrescriptionMapsList { /** Returns a paginated list of prescription map resources across all parties. */ get( options?: PrescriptionMapsListParameters, - ): StreamableMethod; + ): StreamableMethod< + PrescriptionMapsList200Response | PrescriptionMapsListDefaultResponse + >; } export interface PrescriptionMapsGetCascadeDeleteJobDetails { @@ -1563,7 +1673,8 @@ export interface PrescriptionsListByPartyId { get( options?: PrescriptionsListByPartyIdParameters, ): StreamableMethod< - PrescriptionsListByPartyId200Response | PrescriptionsListByPartyIdDefaultResponse + | PrescriptionsListByPartyId200Response + | PrescriptionsListByPartyIdDefaultResponse >; } @@ -1571,7 +1682,9 @@ export interface PrescriptionsGet { /** Gets a specified prescription resource under a particular party. */ get( options?: PrescriptionsGetParameters, - ): StreamableMethod; + ): StreamableMethod< + PrescriptionsGet200Response | PrescriptionsGetDefaultResponse + >; /** Creates or Updates a prescription resource under a particular party. */ patch( options: PrescriptionsCreateOrUpdateParameters, @@ -1583,14 +1696,18 @@ export interface PrescriptionsGet { /** Deletes a specified prescription resource under a particular party. */ delete( options?: PrescriptionsDeleteParameters, - ): StreamableMethod; + ): StreamableMethod< + PrescriptionsDelete204Response | PrescriptionsDeleteDefaultResponse + >; } export interface PrescriptionsList { /** Returns a paginated list of prescription resources across all parties. */ get( options?: PrescriptionsListParameters, - ): StreamableMethod; + ): StreamableMethod< + PrescriptionsList200Response | PrescriptionsListDefaultResponse + >; } export interface PrescriptionsGetCascadeDeleteJobDetails { @@ -1621,7 +1738,9 @@ export interface ScenesDownload { /** Downloads and returns file Stream as response for the given input filePath. */ get( options: ScenesDownloadParameters, - ): StreamableMethod; + ): StreamableMethod< + ScenesDownload200Response | ScenesDownloadDefaultResponse + >; } export interface ScenesCreateSatelliteDataIngestionJob { @@ -1645,14 +1764,18 @@ export interface ScenesSearchFeatures { /** Search for STAC features by collection id, bbox, intersecting geometry, start and end datetime. */ post( options: ScenesSearchFeaturesParameters, - ): StreamableMethod; + ): StreamableMethod< + ScenesSearchFeatures200Response | ScenesSearchFeaturesDefaultResponse + >; } export interface ScenesGetStacFeature { /** Get a feature(SpatioTemporal Asset Catalog (STAC) Item) for given collection and feature id. */ get( options?: ScenesGetStacFeatureParameters, - ): StreamableMethod; + ): StreamableMethod< + ScenesGetStacFeature200Response | ScenesGetStacFeatureDefaultResponse + >; } export interface SeasonalFieldsListByPartyId { @@ -1660,7 +1783,8 @@ export interface SeasonalFieldsListByPartyId { get( options?: SeasonalFieldsListByPartyIdParameters, ): StreamableMethod< - SeasonalFieldsListByPartyId200Response | SeasonalFieldsListByPartyIdDefaultResponse + | SeasonalFieldsListByPartyId200Response + | SeasonalFieldsListByPartyIdDefaultResponse >; } @@ -1668,7 +1792,9 @@ export interface SeasonalFieldsGet { /** Gets a specified seasonal field resource under a particular party. */ get( options?: SeasonalFieldsGetParameters, - ): StreamableMethod; + ): StreamableMethod< + SeasonalFieldsGet200Response | SeasonalFieldsGetDefaultResponse + >; /** Creates or Updates a seasonal field resource under a particular party. */ patch( options: SeasonalFieldsCreateOrUpdateParameters, @@ -1680,14 +1806,18 @@ export interface SeasonalFieldsGet { /** Deletes a specified seasonal-field resource under a particular party. */ delete( options?: SeasonalFieldsDeleteParameters, - ): StreamableMethod; + ): StreamableMethod< + SeasonalFieldsDelete204Response | SeasonalFieldsDeleteDefaultResponse + >; } export interface SeasonalFieldsList { /** Returns a paginated list of seasonal field resources across all parties. */ get( options?: SeasonalFieldsListParameters, - ): StreamableMethod; + ): StreamableMethod< + SeasonalFieldsList200Response | SeasonalFieldsListDefaultResponse + >; } export interface SeasonalFieldsGetCascadeDeleteJobDetails { @@ -1737,7 +1867,9 @@ export interface SensorDataModelsList { /** Returns a paginated list of sensor data model resources. */ get( options?: SensorDataModelsListParameters, - ): StreamableMethod; + ): StreamableMethod< + SensorDataModelsList200Response | SensorDataModelsListDefaultResponse + >; } export interface SensorDataModelsCreateOrUpdate { @@ -1752,11 +1884,15 @@ export interface SensorDataModelsCreateOrUpdate { /** Gets a sensor data model entity. */ get( options?: SensorDataModelsGetParameters, - ): StreamableMethod; + ): StreamableMethod< + SensorDataModelsGet200Response | SensorDataModelsGetDefaultResponse + >; /** Deletes a sensor data model entity. */ delete( options?: SensorDataModelsDeleteParameters, - ): StreamableMethod; + ): StreamableMethod< + SensorDataModelsDelete204Response | SensorDataModelsDeleteDefaultResponse + >; } export interface SensorEventsList { @@ -1766,14 +1902,18 @@ export interface SensorEventsList { */ get( options: SensorEventsListParameters, - ): StreamableMethod; + ): StreamableMethod< + SensorEventsList200Response | SensorEventsListDefaultResponse + >; } export interface SensorMappingsList { /** Returns a paginated list of sensor mapping resources. */ get( options?: SensorMappingsListParameters, - ): StreamableMethod; + ): StreamableMethod< + SensorMappingsList200Response | SensorMappingsListDefaultResponse + >; } export interface SensorMappingsCreateOrUpdate { @@ -1788,11 +1928,15 @@ export interface SensorMappingsCreateOrUpdate { /** Gets a sensor mapping entity. */ get( options?: SensorMappingsGetParameters, - ): StreamableMethod; + ): StreamableMethod< + SensorMappingsGet200Response | SensorMappingsGetDefaultResponse + >; /** Deletes a sensor mapping entity. */ delete( options?: SensorMappingsDeleteParameters, - ): StreamableMethod; + ): StreamableMethod< + SensorMappingsDelete204Response | SensorMappingsDeleteDefaultResponse + >; } export interface SensorPartnerIntegrationsList { @@ -1800,7 +1944,8 @@ export interface SensorPartnerIntegrationsList { get( options?: SensorPartnerIntegrationsListParameters, ): StreamableMethod< - SensorPartnerIntegrationsList200Response | SensorPartnerIntegrationsListDefaultResponse + | SensorPartnerIntegrationsList200Response + | SensorPartnerIntegrationsListDefaultResponse >; } @@ -1817,13 +1962,15 @@ export interface SensorPartnerIntegrationsCreateOrUpdate { get( options?: SensorPartnerIntegrationsGetParameters, ): StreamableMethod< - SensorPartnerIntegrationsGet200Response | SensorPartnerIntegrationsGetDefaultResponse + | SensorPartnerIntegrationsGet200Response + | SensorPartnerIntegrationsGetDefaultResponse >; /** Deletes a partner integration model entity. */ delete( options?: SensorPartnerIntegrationsDeleteParameters, ): StreamableMethod< - SensorPartnerIntegrationsDelete204Response | SensorPartnerIntegrationsDeleteDefaultResponse + | SensorPartnerIntegrationsDelete204Response + | SensorPartnerIntegrationsDeleteDefaultResponse >; } @@ -1878,7 +2025,8 @@ export interface SensorsGetConnectionString { get( options?: SensorsGetConnectionStringParameters, ): StreamableMethod< - SensorsGetConnectionString200Response | SensorsGetConnectionStringDefaultResponse + | SensorsGetConnectionString200Response + | SensorsGetConnectionStringDefaultResponse >; } @@ -1887,7 +2035,8 @@ export interface SensorsRenewConnectionString { post( options: SensorsRenewConnectionStringParameters, ): StreamableMethod< - SensorsRenewConnectionString200Response | SensorsRenewConnectionStringDefaultResponse + | SensorsRenewConnectionString200Response + | SensorsRenewConnectionStringDefaultResponse >; } @@ -1895,7 +2044,9 @@ export interface SolutionInferenceCancel { /** Cancels a job for given solution id. */ post( options: SolutionInferenceCancelParameters, - ): StreamableMethod; + ): StreamableMethod< + SolutionInferenceCancel200Response | SolutionInferenceCancelDefaultResponse + >; } export interface SolutionInferenceCreateOrUpdate { @@ -1903,7 +2054,8 @@ export interface SolutionInferenceCreateOrUpdate { post( options: SolutionInferenceCreateOrUpdateParameters, ): StreamableMethod< - SolutionInferenceCreateOrUpdate202Response | SolutionInferenceCreateOrUpdateDefaultResponse + | SolutionInferenceCreateOrUpdate202Response + | SolutionInferenceCreateOrUpdateDefaultResponse >; } @@ -1911,7 +2063,9 @@ export interface SolutionInferenceFetch { /** Fetches details of triggered job for a solution. */ post( options: SolutionInferenceFetchParameters, - ): StreamableMethod; + ): StreamableMethod< + SolutionInferenceFetch200Response | SolutionInferenceFetchDefaultResponse + >; } export interface TillageDataListByPartyId { @@ -1919,7 +2073,8 @@ export interface TillageDataListByPartyId { get( options?: TillageDataListByPartyIdParameters, ): StreamableMethod< - TillageDataListByPartyId200Response | TillageDataListByPartyIdDefaultResponse + | TillageDataListByPartyId200Response + | TillageDataListByPartyIdDefaultResponse >; } @@ -1927,7 +2082,9 @@ export interface TillageDataGet { /** Get a specified tillage data resource under a particular party. */ get( options?: TillageDataGetParameters, - ): StreamableMethod; + ): StreamableMethod< + TillageDataGet200Response | TillageDataGetDefaultResponse + >; /** Creates or updates an tillage data resource under a particular party. */ patch( options: TillageDataCreateOrUpdateParameters, @@ -1939,14 +2096,18 @@ export interface TillageDataGet { /** Deletes a specified tillage data resource under a particular party. */ delete( options?: TillageDataDeleteParameters, - ): StreamableMethod; + ): StreamableMethod< + TillageDataDelete204Response | TillageDataDeleteDefaultResponse + >; } export interface TillageDataList { /** Returns a paginated list of tillage data resources across all parties. */ get( options?: TillageDataListParameters, - ): StreamableMethod; + ): StreamableMethod< + TillageDataList200Response | TillageDataListDefaultResponse + >; } export interface TillageDataCreateCascadeDeleteJob { @@ -1954,7 +2115,8 @@ export interface TillageDataCreateCascadeDeleteJob { put( options: TillageDataCreateCascadeDeleteJobParameters, ): StreamableMethod< - TillageDataCreateCascadeDeleteJob202Response | TillageDataCreateCascadeDeleteJobDefaultResponse + | TillageDataCreateCascadeDeleteJob202Response + | TillageDataCreateCascadeDeleteJobDefaultResponse >; /** Get cascade delete job for tillage data resource. */ get( @@ -1977,13 +2139,15 @@ export interface WeatherGetDataDeleteJobDetails { get( options?: WeatherGetDataDeleteJobDetailsParameters, ): StreamableMethod< - WeatherGetDataDeleteJobDetails200Response | WeatherGetDataDeleteJobDetailsDefaultResponse + | WeatherGetDataDeleteJobDetails200Response + | WeatherGetDataDeleteJobDetailsDefaultResponse >; /** Create a weather data delete job. */ put( options: WeatherCreateDataDeleteJobParameters, ): StreamableMethod< - WeatherCreateDataDeleteJob202Response | WeatherCreateDataDeleteJobDefaultResponse + | WeatherCreateDataDeleteJob202Response + | WeatherCreateDataDeleteJobDefaultResponse >; } @@ -1992,13 +2156,15 @@ export interface WeatherGetDataIngestionJobDetails { get( options?: WeatherGetDataIngestionJobDetailsParameters, ): StreamableMethod< - WeatherGetDataIngestionJobDetails200Response | WeatherGetDataIngestionJobDetailsDefaultResponse + | WeatherGetDataIngestionJobDetails200Response + | WeatherGetDataIngestionJobDetailsDefaultResponse >; /** Create a weather data ingestion job. */ put( options: WeatherCreateDataIngestionJobParameters, ): StreamableMethod< - WeatherCreateDataIngestionJob202Response | WeatherCreateDataIngestionJobDefaultResponse + | WeatherCreateDataIngestionJob202Response + | WeatherCreateDataIngestionJobDefaultResponse >; } @@ -2006,14 +2172,18 @@ export interface WeatherDataGet { /** Returns a list of WeatherData. */ post( options: WeatherDataGetParameters, - ): StreamableMethod; + ): StreamableMethod< + WeatherDataGet200Response | WeatherDataGetDefaultResponse + >; } export interface ZonesListByPartyId { /** Returns a paginated list of zone resources under a particular party. */ get( options?: ZonesListByPartyIdParameters, - ): StreamableMethod; + ): StreamableMethod< + ZonesListByPartyId200Response | ZonesListByPartyIdDefaultResponse + >; } export interface ZonesGet { @@ -2047,13 +2217,15 @@ export interface ZonesGetCascadeDeleteJobDetails { get( options?: ZonesGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< - ZonesGetCascadeDeleteJobDetails200Response | ZonesGetCascadeDeleteJobDetailsDefaultResponse + | ZonesGetCascadeDeleteJobDetails200Response + | ZonesGetCascadeDeleteJobDetailsDefaultResponse >; /** Create a cascade delete job for specified zone. */ put( options: ZonesCreateCascadeDeleteJobParameters, ): StreamableMethod< - ZonesCreateCascadeDeleteJob202Response | ZonesCreateCascadeDeleteJobDefaultResponse + | ZonesCreateCascadeDeleteJob202Response + | ZonesCreateCascadeDeleteJobDefaultResponse >; } @@ -2066,7 +2238,10 @@ export interface Routes { jobId: string, ): ApplicationDataCreateCascadeDeleteJob; /** Resource for '/parties/\{partyId\}/application-data' has methods for the following verbs: get */ - (path: "/parties/{partyId}/application-data", partyId: string): ApplicationDataListByPartyId; + ( + path: "/parties/{partyId}/application-data", + partyId: string, + ): ApplicationDataListByPartyId; /** Resource for '/parties/\{partyId\}/application-data/\{applicationDataId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/application-data/{applicationDataId}", @@ -2074,7 +2249,10 @@ export interface Routes { applicationDataId: string, ): ApplicationDataGet; /** Resource for '/parties/\{partyId\}/attachments' has methods for the following verbs: get */ - (path: "/parties/{partyId}/attachments", partyId: string): AttachmentsListByPartyId; + ( + path: "/parties/{partyId}/attachments", + partyId: string, + ): AttachmentsListByPartyId; /** Resource for '/parties/\{partyId\}/attachments/\{attachmentId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/attachments/{attachmentId}", @@ -2090,9 +2268,15 @@ export interface Routes { /** Resource for '/boundaries' has methods for the following verbs: get, post */ (path: "/boundaries"): BoundariesList; /** Resource for '/boundaries/cascade-delete/\{jobId\}' has methods for the following verbs: put, get */ - (path: "/boundaries/cascade-delete/{jobId}", jobId: string): BoundariesCreateCascadeDeleteJob; + ( + path: "/boundaries/cascade-delete/{jobId}", + jobId: string, + ): BoundariesCreateCascadeDeleteJob; /** Resource for '/parties/\{partyId\}/boundaries' has methods for the following verbs: get, post */ - (path: "/parties/{partyId}/boundaries", partyId: string): BoundariesListByPartyId; + ( + path: "/parties/{partyId}/boundaries", + partyId: string, + ): BoundariesListByPartyId; /** Resource for '/parties/\{partyId\}/boundaries/\{boundaryId\}' has methods for the following verbs: patch, get, delete */ ( path: "/parties/{partyId}/boundaries/{boundaryId}", @@ -2108,7 +2292,10 @@ export interface Routes { /** Resource for '/crop-products' has methods for the following verbs: get */ (path: "/crop-products"): CropProductsList; /** Resource for '/crop-products/\{cropProductId\}' has methods for the following verbs: get, patch, delete */ - (path: "/crop-products/{cropProductId}", cropProductId: string): CropProductsGet; + ( + path: "/crop-products/{cropProductId}", + cropProductId: string, + ): CropProductsGet; /** Resource for '/crops' has methods for the following verbs: get */ (path: "/crops"): CropsList; /** Resource for '/crops/\{cropId\}' has methods for the following verbs: get, patch, delete */ @@ -2125,7 +2312,10 @@ export interface Routes { deviceDataModelId: string, ): DeviceDataModelsCreateOrUpdate; /** Resource for '/sensor-partners/\{sensorPartnerId\}/devices' has methods for the following verbs: get */ - (path: "/sensor-partners/{sensorPartnerId}/devices", sensorPartnerId: string): DevicesList; + ( + path: "/sensor-partners/{sensorPartnerId}/devices", + sensorPartnerId: string, + ): DevicesList; /** Resource for '/sensor-partners/\{sensorPartnerId\}/devices/\{deviceId\}' has methods for the following verbs: patch, get, delete */ ( path: "/sensor-partners/{sensorPartnerId}/devices/{deviceId}", @@ -2140,25 +2330,45 @@ export interface Routes { /** Resource for '/farms' has methods for the following verbs: get */ (path: "/farms"): FarmsList; /** Resource for '/farms/cascade-delete/\{jobId\}' has methods for the following verbs: put, get */ - (path: "/farms/cascade-delete/{jobId}", jobId: string): FarmsCreateCascadeDeleteJob; + ( + path: "/farms/cascade-delete/{jobId}", + jobId: string, + ): FarmsCreateCascadeDeleteJob; /** Resource for '/parties/\{partyId\}/farms' has methods for the following verbs: get */ (path: "/parties/{partyId}/farms", partyId: string): FarmsListByPartyId; /** Resource for '/parties/\{partyId\}/farms/\{farmId\}' has methods for the following verbs: get, patch, delete */ - (path: "/parties/{partyId}/farms/{farmId}", partyId: string, farmId: string): FarmsGet; + ( + path: "/parties/{partyId}/farms/{farmId}", + partyId: string, + farmId: string, + ): FarmsGet; /** Resource for '/fields' has methods for the following verbs: get */ (path: "/fields"): FieldsList; /** Resource for '/fields/cascade-delete/\{jobId\}' has methods for the following verbs: get, put */ - (path: "/fields/cascade-delete/{jobId}", jobId: string): FieldsGetCascadeDeleteJobDetails; + ( + path: "/fields/cascade-delete/{jobId}", + jobId: string, + ): FieldsGetCascadeDeleteJobDetails; /** Resource for '/parties/\{partyId\}/fields' has methods for the following verbs: get */ (path: "/parties/{partyId}/fields", partyId: string): FieldsListByPartyId; /** Resource for '/parties/\{partyId\}/fields/\{fieldId\}' has methods for the following verbs: get, patch, delete */ - (path: "/parties/{partyId}/fields/{fieldId}", partyId: string, fieldId: string): FieldsGet; + ( + path: "/parties/{partyId}/fields/{fieldId}", + partyId: string, + fieldId: string, + ): FieldsGet; /** Resource for '/harvest-data' has methods for the following verbs: get */ (path: "/harvest-data"): HarvestDataList; /** Resource for '/harvest-data/cascade-delete/\{jobId\}' has methods for the following verbs: put, get */ - (path: "/harvest-data/cascade-delete/{jobId}", jobId: string): HarvestDataCreateCascadeDeleteJob; + ( + path: "/harvest-data/cascade-delete/{jobId}", + jobId: string, + ): HarvestDataCreateCascadeDeleteJob; /** Resource for '/parties/\{partyId\}/harvest-data' has methods for the following verbs: get */ - (path: "/parties/{partyId}/harvest-data", partyId: string): HarvestDataListByPartyId; + ( + path: "/parties/{partyId}/harvest-data", + partyId: string, + ): HarvestDataListByPartyId; /** Resource for '/parties/\{partyId\}/harvest-data/\{harvestDataId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/harvest-data/{harvestDataId}", @@ -2166,7 +2376,10 @@ export interface Routes { harvestDataId: string, ): HarvestDataGet; /** Resource for '/image-processing/rasterize/\{jobId\}' has methods for the following verbs: put, get */ - (path: "/image-processing/rasterize/{jobId}", jobId: string): ImageProcessingCreateRasterizeJob; + ( + path: "/image-processing/rasterize/{jobId}", + jobId: string, + ): ImageProcessingCreateRasterizeJob; /** Resource for '/parties/\{partyId\}/models/\{modelId\}/resource-types/\{resourceType\}/resources/\{resourceId\}/insight-attachments' has methods for the following verbs: get */ ( path: "/parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insight-attachments", @@ -2194,7 +2407,10 @@ export interface Routes { insightAttachmentId: string, ): InsightAttachmentsDownload; /** Resource for '/insights/cascade-delete/\{jobId\}' has methods for the following verbs: put, get */ - (path: "/insights/cascade-delete/{jobId}", jobId: string): InsightsCreateCascadeDeleteJob; + ( + path: "/insights/cascade-delete/{jobId}", + jobId: string, + ): InsightsCreateCascadeDeleteJob; /** Resource for '/parties/\{partyId\}/models/\{modelId\}/resource-types/\{resourceType\}/resources/\{resourceId\}/insights' has methods for the following verbs: get */ ( path: "/parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insights", @@ -2220,7 +2436,10 @@ export interface Routes { jobId: string, ): ManagementZonesGetCascadeDeleteJobDetails; /** Resource for '/parties/\{partyId\}/management-zones' has methods for the following verbs: get */ - (path: "/parties/{partyId}/management-zones", partyId: string): ManagementZonesListByPartyId; + ( + path: "/parties/{partyId}/management-zones", + partyId: string, + ): ManagementZonesListByPartyId; /** Resource for '/parties/\{partyId\}/management-zones/\{managementZoneId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/management-zones/{managementZoneId}", @@ -2245,7 +2464,10 @@ export interface Routes { /** Resource for '/nutrient-analyses' has methods for the following verbs: get */ (path: "/nutrient-analyses"): NutrientAnalysesList; /** Resource for '/parties/\{partyId\}/nutrient-analyses' has methods for the following verbs: get */ - (path: "/parties/{partyId}/nutrient-analyses", partyId: string): NutrientAnalysesListByPartyId; + ( + path: "/parties/{partyId}/nutrient-analyses", + partyId: string, + ): NutrientAnalysesListByPartyId; /** Resource for '/parties/\{partyId\}/nutrient-analyses/\{nutrientAnalysisId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/nutrient-analyses/{nutrientAnalysisId}", @@ -2255,7 +2477,10 @@ export interface Routes { /** Resource for '/oauth/providers' has methods for the following verbs: get */ (path: "/oauth/providers"): OAuthProvidersList; /** Resource for '/oauth/providers/\{oauthProviderId\}' has methods for the following verbs: get, patch, delete */ - (path: "/oauth/providers/{oauthProviderId}", oauthProviderId: string): OAuthProvidersGet; + ( + path: "/oauth/providers/{oauthProviderId}", + oauthProviderId: string, + ): OAuthProvidersGet; /** Resource for '/oauth/providers/cascade-delete/\{jobId\}' has methods for the following verbs: get, put */ ( path: "/oauth/providers/cascade-delete/{jobId}", @@ -2266,15 +2491,24 @@ export interface Routes { /** Resource for '/oauth/tokens/:connect' has methods for the following verbs: post */ (path: "/oauth/tokens/:connect"): OAuthTokensGetOAuthConnectionLink; /** Resource for '/oauth/tokens/remove/\{jobId\}' has methods for the following verbs: get, put */ - (path: "/oauth/tokens/remove/{jobId}", jobId: string): OAuthTokensGetCascadeDeleteJobDetails; + ( + path: "/oauth/tokens/remove/{jobId}", + jobId: string, + ): OAuthTokensGetCascadeDeleteJobDetails; /** Resource for '/parties' has methods for the following verbs: get */ (path: "/parties"): PartiesList; /** Resource for '/parties/\{partyId\}' has methods for the following verbs: get, patch, delete */ (path: "/parties/{partyId}", partyId: string): PartiesGet; /** Resource for '/parties/cascade-delete/\{jobId\}' has methods for the following verbs: get, put */ - (path: "/parties/cascade-delete/{jobId}", jobId: string): PartiesGetCascadeDeleteJobDetails; + ( + path: "/parties/cascade-delete/{jobId}", + jobId: string, + ): PartiesGetCascadeDeleteJobDetails; /** Resource for '/parties/\{partyId\}/planting-data' has methods for the following verbs: get */ - (path: "/parties/{partyId}/planting-data", partyId: string): PlantingDataListByPartyId; + ( + path: "/parties/{partyId}/planting-data", + partyId: string, + ): PlantingDataListByPartyId; /** Resource for '/parties/\{partyId\}/planting-data/\{plantingDataId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/planting-data/{plantingDataId}", @@ -2307,7 +2541,10 @@ export interface Routes { jobId: string, ): PlantTissueAnalysesCreateCascadeDeleteJob; /** Resource for '/parties/\{partyId\}/prescription-maps' has methods for the following verbs: get */ - (path: "/parties/{partyId}/prescription-maps", partyId: string): PrescriptionMapsListByPartyId; + ( + path: "/parties/{partyId}/prescription-maps", + partyId: string, + ): PrescriptionMapsListByPartyId; /** Resource for '/parties/\{partyId\}/prescription-maps/\{prescriptionMapId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/prescription-maps/{prescriptionMapId}", @@ -2322,7 +2559,10 @@ export interface Routes { jobId: string, ): PrescriptionMapsGetCascadeDeleteJobDetails; /** Resource for '/parties/\{partyId\}/prescriptions' has methods for the following verbs: get */ - (path: "/parties/{partyId}/prescriptions", partyId: string): PrescriptionsListByPartyId; + ( + path: "/parties/{partyId}/prescriptions", + partyId: string, + ): PrescriptionsListByPartyId; /** Resource for '/parties/\{partyId\}/prescriptions/\{prescriptionId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/prescriptions/{prescriptionId}", @@ -2357,7 +2597,10 @@ export interface Routes { featureId: string, ): ScenesGetStacFeature; /** Resource for '/parties/\{partyId\}/seasonal-fields' has methods for the following verbs: get */ - (path: "/parties/{partyId}/seasonal-fields", partyId: string): SeasonalFieldsListByPartyId; + ( + path: "/parties/{partyId}/seasonal-fields", + partyId: string, + ): SeasonalFieldsListByPartyId; /** Resource for '/parties/\{partyId\}/seasonal-fields/\{seasonalFieldId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/seasonal-fields/{seasonalFieldId}", @@ -2419,7 +2662,10 @@ export interface Routes { integrationId: string, ): SensorPartnerIntegrationsGenerateConsentLink; /** Resource for '/sensor-partners/\{sensorPartnerId\}/sensors' has methods for the following verbs: get */ - (path: "/sensor-partners/{sensorPartnerId}/sensors", sensorPartnerId: string): SensorsList; + ( + path: "/sensor-partners/{sensorPartnerId}/sensors", + sensorPartnerId: string, + ): SensorsList; /** Resource for '/sensor-partners/\{sensorPartnerId\}/sensors/\{sensorId\}' has methods for the following verbs: patch, get, delete */ ( path: "/sensor-partners/{sensorPartnerId}/sensors/{sensorId}", @@ -2439,13 +2685,25 @@ export interface Routes { sensorId: string, ): SensorsRenewConnectionString; /** Resource for '/solutions/\{solutionId\}:cancel' has methods for the following verbs: post */ - (path: "/solutions/{solutionId}:cancel", solutionId: string): SolutionInferenceCancel; + ( + path: "/solutions/{solutionId}:cancel", + solutionId: string, + ): SolutionInferenceCancel; /** Resource for '/solutions/\{solutionId\}:create' has methods for the following verbs: post */ - (path: "/solutions/{solutionId}:create", solutionId: string): SolutionInferenceCreateOrUpdate; + ( + path: "/solutions/{solutionId}:create", + solutionId: string, + ): SolutionInferenceCreateOrUpdate; /** Resource for '/solutions/\{solutionId\}:fetch' has methods for the following verbs: post */ - (path: "/solutions/{solutionId}:fetch", solutionId: string): SolutionInferenceFetch; + ( + path: "/solutions/{solutionId}:fetch", + solutionId: string, + ): SolutionInferenceFetch; /** Resource for '/parties/\{partyId\}/tillage-data' has methods for the following verbs: get */ - (path: "/parties/{partyId}/tillage-data", partyId: string): TillageDataListByPartyId; + ( + path: "/parties/{partyId}/tillage-data", + partyId: string, + ): TillageDataListByPartyId; /** Resource for '/parties/\{partyId\}/tillage-data/\{tillageDataId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/tillage-data/{tillageDataId}", @@ -2455,23 +2713,39 @@ export interface Routes { /** Resource for '/tillage-data' has methods for the following verbs: get */ (path: "/tillage-data"): TillageDataList; /** Resource for '/tillage-data/cascade-delete/\{jobId\}' has methods for the following verbs: put, get */ - (path: "/tillage-data/cascade-delete/{jobId}", jobId: string): TillageDataCreateCascadeDeleteJob; + ( + path: "/tillage-data/cascade-delete/{jobId}", + jobId: string, + ): TillageDataCreateCascadeDeleteJob; /** Resource for '/weather' has methods for the following verbs: get */ (path: "/weather"): WeatherList; /** Resource for '/weather/delete-data/\{jobId\}' has methods for the following verbs: get, put */ - (path: "/weather/delete-data/{jobId}", jobId: string): WeatherGetDataDeleteJobDetails; + ( + path: "/weather/delete-data/{jobId}", + jobId: string, + ): WeatherGetDataDeleteJobDetails; /** Resource for '/weather/ingest-data/\{jobId\}' has methods for the following verbs: get, put */ - (path: "/weather/ingest-data/{jobId}", jobId: string): WeatherGetDataIngestionJobDetails; + ( + path: "/weather/ingest-data/{jobId}", + jobId: string, + ): WeatherGetDataIngestionJobDetails; /** Resource for '/weather-data/:fetch' has methods for the following verbs: post */ (path: "/weather-data/:fetch"): WeatherDataGet; /** Resource for '/parties/\{partyId\}/zones' has methods for the following verbs: get */ (path: "/parties/{partyId}/zones", partyId: string): ZonesListByPartyId; /** Resource for '/parties/\{partyId\}/zones/\{zoneId\}' has methods for the following verbs: get, patch, delete */ - (path: "/parties/{partyId}/zones/{zoneId}", partyId: string, zoneId: string): ZonesGet; + ( + path: "/parties/{partyId}/zones/{zoneId}", + partyId: string, + zoneId: string, + ): ZonesGet; /** Resource for '/zones' has methods for the following verbs: get */ (path: "/zones"): ZonesList; /** Resource for '/zones/cascade-delete/\{jobId\}' has methods for the following verbs: get, put */ - (path: "/zones/cascade-delete/{jobId}", jobId: string): ZonesGetCascadeDeleteJobDetails; + ( + path: "/zones/cascade-delete/{jobId}", + jobId: string, + ): ZonesGetCascadeDeleteJobDetails; } export type FarmBeatsClient = Client & { diff --git a/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts b/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts index a101f3a9ac85..4a30027afd4e 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts @@ -2,30 +2,32 @@ // Licensed under the MIT license. import { getClient, ClientOptions } from "@azure-rest/core-client"; +import { logger } from "./logger"; import { TokenCredential } from "@azure/core-auth"; import { FarmBeatsClient } from "./clientDefinitions"; +/** The optional parameters for the client */ +export interface FarmBeatsClientOptions extends ClientOptions { + /** The api version option of the client */ + apiVersion?: string; +} + /** * Initialize a new instance of `FarmBeatsClient` - * @param $host type: string, server parameter - * @param credentials type: TokenCredential, uniquely identify client credential - * @param options type: ClientOptions, the parameter for all optional parameters + * @param $host - server parameter + * @param credentials - uniquely identify client credential + * @param options - the parameter for all optional parameters */ export default function createClient( $host: string, credentials: TokenCredential, - options: ClientOptions = {}, + { + apiVersion = "2022-11-01-preview", + ...options + }: FarmBeatsClientOptions = {}, ): FarmBeatsClient { - const baseUrl = options.baseUrl ?? `${$host}`; - options.apiVersion = options.apiVersion ?? "2022-11-01-preview"; - options = { - ...options, - credentials: { - scopes: ["https://farmbeats.azure.net/.default"], - }, - }; - - const userAgentInfo = `azsdk-js-agrifood-farming-rest/1.0.0-beta.2`; + const endpointUrl = options.endpoint ?? options.baseUrl ?? `${$host}`; + const userAgentInfo = `azsdk-js-agrifood-farming-rest/1.0.0-beta.3`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` @@ -35,9 +37,37 @@ export default function createClient( userAgentOptions: { userAgentPrefix, }, + loggingOptions: { + logger: options.loggingOptions?.logger ?? logger.info, + }, + credentials: { + scopes: options.credentials?.scopes ?? [ + "https://farmbeats.azure.net/.default", + ], + }, }; + const client = getClient( + endpointUrl, + credentials, + options, + ) as FarmBeatsClient; + + client.pipeline.removePolicy({ name: "ApiVersionPolicy" }); + client.pipeline.addPolicy({ + name: "ClientApiVersionPolicy", + sendRequest: (req, next) => { + // Use the apiVersion defined in request url directly + // Append one if there is no apiVersion and we have one at client options + const url = new URL(req.url); + if (!url.searchParams.get("api-version") && apiVersion) { + req.url = `${req.url}${ + Array.from(url.searchParams.keys()).length > 0 ? "&" : "?" + }api-version=${apiVersion}`; + } - const client = getClient(baseUrl, credentials, options) as FarmBeatsClient; + return next(req); + }, + }); return client; } diff --git a/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts b/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts index aae518391724..1c3313bb44bd 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts @@ -428,11 +428,14 @@ import { const responseMap: Record = { "GET /application-data": ["200"], - "PUT /application-data/cascade-delete/{jobId}": ["202"], "GET /application-data/cascade-delete/{jobId}": ["200"], + "PUT /application-data/cascade-delete/{jobId}": ["202"], "GET /parties/{partyId}/application-data": ["200"], "GET /parties/{partyId}/application-data/{applicationDataId}": ["200"], - "PATCH /parties/{partyId}/application-data/{applicationDataId}": ["200", "201"], + "PATCH /parties/{partyId}/application-data/{applicationDataId}": [ + "200", + "201", + ], "DELETE /parties/{partyId}/application-data/{applicationDataId}": ["204"], "GET /parties/{partyId}/attachments": ["200"], "GET /parties/{partyId}/attachments/{attachmentId}": ["200"], @@ -441,8 +444,8 @@ const responseMap: Record = { "GET /parties/{partyId}/attachments/{attachmentId}/file": ["200"], "GET /boundaries": ["200"], "POST /boundaries": ["200"], - "PUT /boundaries/cascade-delete/{jobId}": ["202"], "GET /boundaries/cascade-delete/{jobId}": ["200"], + "PUT /boundaries/cascade-delete/{jobId}": ["202"], "GET /parties/{partyId}/boundaries": ["200"], "POST /parties/{partyId}/boundaries": ["200"], "PATCH /parties/{partyId}/boundaries/{boundaryId}": ["200", "201"], @@ -458,18 +461,21 @@ const responseMap: Record = { "PATCH /crops/{cropId}": ["200", "201"], "DELETE /crops/{cropId}": ["204"], "GET /sensor-partners/{sensorPartnerId}/device-data-models": ["200"], - "PATCH /sensor-partners/{sensorPartnerId}/device-data-models/{deviceDataModelId}": ["200", "201"], - "GET /sensor-partners/{sensorPartnerId}/device-data-models/{deviceDataModelId}": ["200"], - "DELETE /sensor-partners/{sensorPartnerId}/device-data-models/{deviceDataModelId}": ["204"], + "PATCH /sensor-partners/{sensorPartnerId}/device-data-models/{deviceDataModelId}": + ["200", "201"], + "GET /sensor-partners/{sensorPartnerId}/device-data-models/{deviceDataModelId}": + ["200"], + "DELETE /sensor-partners/{sensorPartnerId}/device-data-models/{deviceDataModelId}": + ["204"], "GET /sensor-partners/{sensorPartnerId}/devices": ["200"], "PATCH /sensor-partners/{sensorPartnerId}/devices/{deviceId}": ["200", "201"], "GET /sensor-partners/{sensorPartnerId}/devices/{deviceId}": ["200"], "DELETE /sensor-partners/{sensorPartnerId}/devices/{deviceId}": ["204"], - "PUT /farm-operations/ingest-data/{jobId}": ["202"], "GET /farm-operations/ingest-data/{jobId}": ["200"], + "PUT /farm-operations/ingest-data/{jobId}": ["202"], "GET /farms": ["200"], - "PUT /farms/cascade-delete/{jobId}": ["202"], "GET /farms/cascade-delete/{jobId}": ["200"], + "PUT /farms/cascade-delete/{jobId}": ["202"], "GET /parties/{partyId}/farms": ["200"], "GET /parties/{partyId}/farms/{farmId}": ["200"], "PATCH /parties/{partyId}/farms/{farmId}": ["200", "201"], @@ -482,14 +488,14 @@ const responseMap: Record = { "PATCH /parties/{partyId}/fields/{fieldId}": ["200", "201"], "DELETE /parties/{partyId}/fields/{fieldId}": ["204"], "GET /harvest-data": ["200"], - "PUT /harvest-data/cascade-delete/{jobId}": ["202"], "GET /harvest-data/cascade-delete/{jobId}": ["200"], + "PUT /harvest-data/cascade-delete/{jobId}": ["202"], "GET /parties/{partyId}/harvest-data": ["200"], "GET /parties/{partyId}/harvest-data/{harvestDataId}": ["200"], "PATCH /parties/{partyId}/harvest-data/{harvestDataId}": ["200", "201"], "DELETE /parties/{partyId}/harvest-data/{harvestDataId}": ["204"], - "PUT /image-processing/rasterize/{jobId}": ["202"], "GET /image-processing/rasterize/{jobId}": ["200"], + "PUT /image-processing/rasterize/{jobId}": ["202"], "GET /parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insight-attachments": ["200"], "PATCH /parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insight-attachments/{insightAttachmentId}": @@ -500,8 +506,8 @@ const responseMap: Record = { ["204"], "GET /parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insight-attachments/{insightAttachmentId}/file": ["200"], - "PUT /insights/cascade-delete/{jobId}": ["202"], "GET /insights/cascade-delete/{jobId}": ["200"], + "PUT /insights/cascade-delete/{jobId}": ["202"], "GET /parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insights": ["200"], "PATCH /parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insights/{insightId}": @@ -515,18 +521,32 @@ const responseMap: Record = { "PUT /management-zones/cascade-delete/{jobId}": ["202"], "GET /parties/{partyId}/management-zones": ["200"], "GET /parties/{partyId}/management-zones/{managementZoneId}": ["200"], - "PATCH /parties/{partyId}/management-zones/{managementZoneId}": ["200", "201"], + "PATCH /parties/{partyId}/management-zones/{managementZoneId}": [ + "200", + "201", + ], "DELETE /parties/{partyId}/management-zones/{managementZoneId}": ["204"], - "PUT /model-inference/models/microsoft-biomass/infer-data/{jobId}": ["202"], "GET /model-inference/models/microsoft-biomass/infer-data/{jobId}": ["200"], - "PUT /model-inference/models/microsoft-sensor-placement/infer-data/{jobId}": ["202"], - "GET /model-inference/models/microsoft-sensor-placement/infer-data/{jobId}": ["200"], - "PUT /model-inference/models/microsoft-soil-moisture/infer-data/{jobId}": ["202"], - "GET /model-inference/models/microsoft-soil-moisture/infer-data/{jobId}": ["200"], + "PUT /model-inference/models/microsoft-biomass/infer-data/{jobId}": ["202"], + "GET /model-inference/models/microsoft-sensor-placement/infer-data/{jobId}": [ + "200", + ], + "PUT /model-inference/models/microsoft-sensor-placement/infer-data/{jobId}": [ + "202", + ], + "GET /model-inference/models/microsoft-soil-moisture/infer-data/{jobId}": [ + "200", + ], + "PUT /model-inference/models/microsoft-soil-moisture/infer-data/{jobId}": [ + "202", + ], "GET /nutrient-analyses": ["200"], "GET /parties/{partyId}/nutrient-analyses": ["200"], "GET /parties/{partyId}/nutrient-analyses/{nutrientAnalysisId}": ["200"], - "PATCH /parties/{partyId}/nutrient-analyses/{nutrientAnalysisId}": ["200", "201"], + "PATCH /parties/{partyId}/nutrient-analyses/{nutrientAnalysisId}": [ + "200", + "201", + ], "DELETE /parties/{partyId}/nutrient-analyses/{nutrientAnalysisId}": ["204"], "GET /oauth/providers": ["200"], "GET /oauth/providers/{oauthProviderId}": ["200"], @@ -549,18 +569,28 @@ const responseMap: Record = { "PATCH /parties/{partyId}/planting-data/{plantingDataId}": ["200", "201"], "DELETE /parties/{partyId}/planting-data/{plantingDataId}": ["204"], "GET /planting-data": ["200"], - "PUT /planting-data/cascade-delete/{jobId}": ["202"], "GET /planting-data/cascade-delete/{jobId}": ["200"], + "PUT /planting-data/cascade-delete/{jobId}": ["202"], "GET /parties/{partyId}/plant-tissue-analyses": ["200"], - "GET /parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}": ["200"], - "PATCH /parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}": ["200", "201"], - "DELETE /parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}": ["204"], + "GET /parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}": [ + "200", + ], + "PATCH /parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}": [ + "200", + "201", + ], + "DELETE /parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}": [ + "204", + ], "GET /plant-tissue-analyses": ["200"], - "PUT /plant-tissue-analyses/cascade-delete/{jobId}": ["202"], "GET /plant-tissue-analyses/cascade-delete/{jobId}": ["200"], + "PUT /plant-tissue-analyses/cascade-delete/{jobId}": ["202"], "GET /parties/{partyId}/prescription-maps": ["200"], "GET /parties/{partyId}/prescription-maps/{prescriptionMapId}": ["200"], - "PATCH /parties/{partyId}/prescription-maps/{prescriptionMapId}": ["200", "201"], + "PATCH /parties/{partyId}/prescription-maps/{prescriptionMapId}": [ + "200", + "201", + ], "DELETE /parties/{partyId}/prescription-maps/{prescriptionMapId}": ["204"], "GET /prescription-maps": ["200"], "GET /prescription-maps/cascade-delete/{jobId}": ["200"], @@ -574,8 +604,8 @@ const responseMap: Record = { "PUT /prescriptions/cascade-delete/{jobId}": ["202"], "GET /scenes": ["200"], "GET /scenes/downloadFiles": ["200"], - "PUT /scenes/satellite/ingest-data/{jobId}": ["202"], "GET /scenes/satellite/ingest-data/{jobId}": ["200"], + "PUT /scenes/satellite/ingest-data/{jobId}": ["202"], "POST /scenes/stac-collections/{collectionId}:search": ["200"], "GET /scenes/stac-collections/{collectionId}/features/{featureId}": ["200"], "GET /parties/{partyId}/seasonal-fields": ["200"], @@ -590,39 +620,51 @@ const responseMap: Record = { "PATCH /seasons/{seasonId}": ["200", "201"], "DELETE /seasons/{seasonId}": ["204"], "GET /sensor-partners/{sensorPartnerId}/sensor-data-models": ["200"], - "PATCH /sensor-partners/{sensorPartnerId}/sensor-data-models/{sensorDataModelId}": ["200", "201"], - "GET /sensor-partners/{sensorPartnerId}/sensor-data-models/{sensorDataModelId}": ["200"], - "DELETE /sensor-partners/{sensorPartnerId}/sensor-data-models/{sensorDataModelId}": ["204"], + "PATCH /sensor-partners/{sensorPartnerId}/sensor-data-models/{sensorDataModelId}": + ["200", "201"], + "GET /sensor-partners/{sensorPartnerId}/sensor-data-models/{sensorDataModelId}": + ["200"], + "DELETE /sensor-partners/{sensorPartnerId}/sensor-data-models/{sensorDataModelId}": + ["204"], "GET /sensor-events": ["200"], "GET /sensor-mappings": ["200"], "PATCH /sensor-mappings/{sensorMappingId}": ["200", "201"], "GET /sensor-mappings/{sensorMappingId}": ["200"], "DELETE /sensor-mappings/{sensorMappingId}": ["204"], "GET /sensor-partners/{sensorPartnerId}/integrations": ["200"], - "PATCH /sensor-partners/{sensorPartnerId}/integrations/{integrationId}": ["200", "201"], - "GET /sensor-partners/{sensorPartnerId}/integrations/{integrationId}": ["200"], - "DELETE /sensor-partners/{sensorPartnerId}/integrations/{integrationId}": ["204"], - "POST /sensor-partners/{sensorPartnerId}/integrations/{integrationId}/:check-consent": ["200"], - "POST /sensor-partners/{sensorPartnerId}/integrations/{integrationId}/:generate-consent-link": [ + "PATCH /sensor-partners/{sensorPartnerId}/integrations/{integrationId}": [ "200", + "201", ], + "GET /sensor-partners/{sensorPartnerId}/integrations/{integrationId}": [ + "200", + ], + "DELETE /sensor-partners/{sensorPartnerId}/integrations/{integrationId}": [ + "204", + ], + "POST /sensor-partners/{sensorPartnerId}/integrations/{integrationId}/:check-consent": + ["200"], + "POST /sensor-partners/{sensorPartnerId}/integrations/{integrationId}/:generate-consent-link": + ["200"], "GET /sensor-partners/{sensorPartnerId}/sensors": ["200"], "PATCH /sensor-partners/{sensorPartnerId}/sensors/{sensorId}": ["200", "201"], "GET /sensor-partners/{sensorPartnerId}/sensors/{sensorId}": ["200"], "DELETE /sensor-partners/{sensorPartnerId}/sensors/{sensorId}": ["204"], - "GET /sensor-partners/{sensorPartnerId}/sensors/{sensorId}/connection-strings": ["200"], - "POST /sensor-partners/{sensorPartnerId}/sensors/{sensorId}/connection-strings/:renew": ["200"], + "GET /sensor-partners/{sensorPartnerId}/sensors/{sensorId}/connection-strings": + ["200"], + "POST /sensor-partners/{sensorPartnerId}/sensors/{sensorId}/connection-strings/:renew": + ["200"], "POST /solutions/{solutionId}:cancel": ["200"], - "POST /solutions/{solutionId}:create": ["202"], "GET /solutions/{solutionId}:create": ["202"], + "POST /solutions/{solutionId}:create": ["202"], "POST /solutions/{solutionId}:fetch": ["200"], "GET /parties/{partyId}/tillage-data": ["200"], "GET /parties/{partyId}/tillage-data/{tillageDataId}": ["200"], "PATCH /parties/{partyId}/tillage-data/{tillageDataId}": ["200", "201"], "DELETE /parties/{partyId}/tillage-data/{tillageDataId}": ["204"], "GET /tillage-data": ["200"], - "PUT /tillage-data/cascade-delete/{jobId}": ["202"], "GET /tillage-data/cascade-delete/{jobId}": ["200"], + "PUT /tillage-data/cascade-delete/{jobId}": ["202"], "GET /weather": ["200"], "GET /weather/delete-data/{jobId}": ["200"], "PUT /weather/delete-data/{jobId}": ["202"], @@ -652,7 +694,9 @@ export function isUnexpected( | ApplicationDataGetCascadeDeleteJobDetailsDefaultResponse, ): response is ApplicationDataGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: ApplicationDataListByPartyId200Response | ApplicationDataListByPartyIdDefaultResponse, + response: + | ApplicationDataListByPartyId200Response + | ApplicationDataListByPartyIdDefaultResponse, ): response is ApplicationDataListByPartyIdDefaultResponse; export function isUnexpected( response: ApplicationDataGet200Response | ApplicationDataGetDefaultResponse, @@ -664,10 +708,14 @@ export function isUnexpected( | ApplicationDataCreateOrUpdateDefaultResponse, ): response is ApplicationDataCreateOrUpdateDefaultResponse; export function isUnexpected( - response: ApplicationDataDelete204Response | ApplicationDataDeleteDefaultResponse, + response: + | ApplicationDataDelete204Response + | ApplicationDataDeleteDefaultResponse, ): response is ApplicationDataDeleteDefaultResponse; export function isUnexpected( - response: AttachmentsListByPartyId200Response | AttachmentsListByPartyIdDefaultResponse, + response: + | AttachmentsListByPartyId200Response + | AttachmentsListByPartyIdDefaultResponse, ): response is AttachmentsListByPartyIdDefaultResponse; export function isUnexpected( response: AttachmentsGet200Response | AttachmentsGetDefaultResponse, @@ -701,10 +749,14 @@ export function isUnexpected( | BoundariesGetCascadeDeleteJobDetailsDefaultResponse, ): response is BoundariesGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: BoundariesListByPartyId200Response | BoundariesListByPartyIdDefaultResponse, + response: + | BoundariesListByPartyId200Response + | BoundariesListByPartyIdDefaultResponse, ): response is BoundariesListByPartyIdDefaultResponse; export function isUnexpected( - response: BoundariesSearchByPartyId200Response | BoundariesSearchByPartyIdDefaultResponse, + response: + | BoundariesSearchByPartyId200Response + | BoundariesSearchByPartyIdDefaultResponse, ): response is BoundariesSearchByPartyIdDefaultResponse; export function isUnexpected( response: @@ -719,7 +771,9 @@ export function isUnexpected( response: BoundariesDelete204Response | BoundariesDeleteDefaultResponse, ): response is BoundariesDeleteDefaultResponse; export function isUnexpected( - response: BoundariesGetOverlap200Response | BoundariesGetOverlapDefaultResponse, + response: + | BoundariesGetOverlap200Response + | BoundariesGetOverlapDefaultResponse, ): response is BoundariesGetOverlapDefaultResponse; export function isUnexpected( response: CropProductsList200Response | CropProductsListDefaultResponse, @@ -752,7 +806,9 @@ export function isUnexpected( response: CropsDelete204Response | CropsDeleteDefaultResponse, ): response is CropsDeleteDefaultResponse; export function isUnexpected( - response: DeviceDataModelsList200Response | DeviceDataModelsListDefaultResponse, + response: + | DeviceDataModelsList200Response + | DeviceDataModelsListDefaultResponse, ): response is DeviceDataModelsListDefaultResponse; export function isUnexpected( response: @@ -764,7 +820,9 @@ export function isUnexpected( response: DeviceDataModelsGet200Response | DeviceDataModelsGetDefaultResponse, ): response is DeviceDataModelsGetDefaultResponse; export function isUnexpected( - response: DeviceDataModelsDelete204Response | DeviceDataModelsDeleteDefaultResponse, + response: + | DeviceDataModelsDelete204Response + | DeviceDataModelsDeleteDefaultResponse, ): response is DeviceDataModelsDeleteDefaultResponse; export function isUnexpected( response: DevicesList200Response | DevicesListDefaultResponse, @@ -795,7 +853,9 @@ export function isUnexpected( response: FarmsList200Response | FarmsListDefaultResponse, ): response is FarmsListDefaultResponse; export function isUnexpected( - response: FarmsCreateCascadeDeleteJob202Response | FarmsCreateCascadeDeleteJobDefaultResponse, + response: + | FarmsCreateCascadeDeleteJob202Response + | FarmsCreateCascadeDeleteJobDefaultResponse, ): response is FarmsCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( response: @@ -826,7 +886,9 @@ export function isUnexpected( | FieldsGetCascadeDeleteJobDetailsDefaultResponse, ): response is FieldsGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: FieldsCreateCascadeDeleteJob202Response | FieldsCreateCascadeDeleteJobDefaultResponse, + response: + | FieldsCreateCascadeDeleteJob202Response + | FieldsCreateCascadeDeleteJobDefaultResponse, ): response is FieldsCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( response: FieldsListByPartyId200Response | FieldsListByPartyIdDefaultResponse, @@ -857,7 +919,9 @@ export function isUnexpected( | HarvestDataGetCascadeDeleteJobDetailsDefaultResponse, ): response is HarvestDataGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: HarvestDataListByPartyId200Response | HarvestDataListByPartyIdDefaultResponse, + response: + | HarvestDataListByPartyId200Response + | HarvestDataListByPartyIdDefaultResponse, ): response is HarvestDataListByPartyIdDefaultResponse; export function isUnexpected( response: HarvestDataGet200Response | HarvestDataGetDefaultResponse, @@ -893,13 +957,19 @@ export function isUnexpected( | InsightAttachmentsCreateOrUpdateDefaultResponse, ): response is InsightAttachmentsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: InsightAttachmentsGet200Response | InsightAttachmentsGetDefaultResponse, + response: + | InsightAttachmentsGet200Response + | InsightAttachmentsGetDefaultResponse, ): response is InsightAttachmentsGetDefaultResponse; export function isUnexpected( - response: InsightAttachmentsDelete204Response | InsightAttachmentsDeleteDefaultResponse, + response: + | InsightAttachmentsDelete204Response + | InsightAttachmentsDeleteDefaultResponse, ): response is InsightAttachmentsDeleteDefaultResponse; export function isUnexpected( - response: InsightAttachmentsDownload200Response | InsightAttachmentsDownloadDefaultResponse, + response: + | InsightAttachmentsDownload200Response + | InsightAttachmentsDownloadDefaultResponse, ): response is InsightAttachmentsDownloadDefaultResponse; export function isUnexpected( response: @@ -942,7 +1012,9 @@ export function isUnexpected( | ManagementZonesCreateCascadeDeleteJobDefaultResponse, ): response is ManagementZonesCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( - response: ManagementZonesListByPartyId200Response | ManagementZonesListByPartyIdDefaultResponse, + response: + | ManagementZonesListByPartyId200Response + | ManagementZonesListByPartyIdDefaultResponse, ): response is ManagementZonesListByPartyIdDefaultResponse; export function isUnexpected( response: ManagementZonesGet200Response | ManagementZonesGetDefaultResponse, @@ -954,7 +1026,9 @@ export function isUnexpected( | ManagementZonesCreateOrUpdateDefaultResponse, ): response is ManagementZonesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: ManagementZonesDelete204Response | ManagementZonesDeleteDefaultResponse, + response: + | ManagementZonesDelete204Response + | ManagementZonesDeleteDefaultResponse, ): response is ManagementZonesDeleteDefaultResponse; export function isUnexpected( response: @@ -987,10 +1061,14 @@ export function isUnexpected( | ModelInferenceGetSoilMoistureModelJobDefaultResponse, ): response is ModelInferenceGetSoilMoistureModelJobDefaultResponse; export function isUnexpected( - response: NutrientAnalysesList200Response | NutrientAnalysesListDefaultResponse, + response: + | NutrientAnalysesList200Response + | NutrientAnalysesListDefaultResponse, ): response is NutrientAnalysesListDefaultResponse; export function isUnexpected( - response: NutrientAnalysesListByPartyId200Response | NutrientAnalysesListByPartyIdDefaultResponse, + response: + | NutrientAnalysesListByPartyId200Response + | NutrientAnalysesListByPartyIdDefaultResponse, ): response is NutrientAnalysesListByPartyIdDefaultResponse; export function isUnexpected( response: NutrientAnalysesGet200Response | NutrientAnalysesGetDefaultResponse, @@ -1002,7 +1080,9 @@ export function isUnexpected( | NutrientAnalysesCreateOrUpdateDefaultResponse, ): response is NutrientAnalysesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: NutrientAnalysesDelete204Response | NutrientAnalysesDeleteDefaultResponse, + response: + | NutrientAnalysesDelete204Response + | NutrientAnalysesDeleteDefaultResponse, ): response is NutrientAnalysesDeleteDefaultResponse; export function isUnexpected( response: OAuthProvidersList200Response | OAuthProvidersListDefaultResponse, @@ -1017,7 +1097,9 @@ export function isUnexpected( | OAuthProvidersCreateOrUpdateDefaultResponse, ): response is OAuthProvidersCreateOrUpdateDefaultResponse; export function isUnexpected( - response: OAuthProvidersDelete204Response | OAuthProvidersDeleteDefaultResponse, + response: + | OAuthProvidersDelete204Response + | OAuthProvidersDeleteDefaultResponse, ): response is OAuthProvidersDeleteDefaultResponse; export function isUnexpected( response: @@ -1068,10 +1150,14 @@ export function isUnexpected( | PartiesGetCascadeDeleteJobDetailsDefaultResponse, ): response is PartiesGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: PartiesCreateCascadeDeleteJob202Response | PartiesCreateCascadeDeleteJobDefaultResponse, + response: + | PartiesCreateCascadeDeleteJob202Response + | PartiesCreateCascadeDeleteJobDefaultResponse, ): response is PartiesCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( - response: PlantingDataListByPartyId200Response | PlantingDataListByPartyIdDefaultResponse, + response: + | PlantingDataListByPartyId200Response + | PlantingDataListByPartyIdDefaultResponse, ): response is PlantingDataListByPartyIdDefaultResponse; export function isUnexpected( response: PlantingDataGet200Response | PlantingDataGetDefaultResponse, @@ -1104,7 +1190,9 @@ export function isUnexpected( | PlantTissueAnalysesListByPartyIdDefaultResponse, ): response is PlantTissueAnalysesListByPartyIdDefaultResponse; export function isUnexpected( - response: PlantTissueAnalysesGet200Response | PlantTissueAnalysesGetDefaultResponse, + response: + | PlantTissueAnalysesGet200Response + | PlantTissueAnalysesGetDefaultResponse, ): response is PlantTissueAnalysesGetDefaultResponse; export function isUnexpected( response: @@ -1113,10 +1201,14 @@ export function isUnexpected( | PlantTissueAnalysesCreateOrUpdateDefaultResponse, ): response is PlantTissueAnalysesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: PlantTissueAnalysesDelete204Response | PlantTissueAnalysesDeleteDefaultResponse, + response: + | PlantTissueAnalysesDelete204Response + | PlantTissueAnalysesDeleteDefaultResponse, ): response is PlantTissueAnalysesDeleteDefaultResponse; export function isUnexpected( - response: PlantTissueAnalysesList200Response | PlantTissueAnalysesListDefaultResponse, + response: + | PlantTissueAnalysesList200Response + | PlantTissueAnalysesListDefaultResponse, ): response is PlantTissueAnalysesListDefaultResponse; export function isUnexpected( response: @@ -1129,7 +1221,9 @@ export function isUnexpected( | PlantTissueAnalysesGetCascadeDeleteJobDetailsDefaultResponse, ): response is PlantTissueAnalysesGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: PrescriptionMapsListByPartyId200Response | PrescriptionMapsListByPartyIdDefaultResponse, + response: + | PrescriptionMapsListByPartyId200Response + | PrescriptionMapsListByPartyIdDefaultResponse, ): response is PrescriptionMapsListByPartyIdDefaultResponse; export function isUnexpected( response: PrescriptionMapsGet200Response | PrescriptionMapsGetDefaultResponse, @@ -1141,10 +1235,14 @@ export function isUnexpected( | PrescriptionMapsCreateOrUpdateDefaultResponse, ): response is PrescriptionMapsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: PrescriptionMapsDelete204Response | PrescriptionMapsDeleteDefaultResponse, + response: + | PrescriptionMapsDelete204Response + | PrescriptionMapsDeleteDefaultResponse, ): response is PrescriptionMapsDeleteDefaultResponse; export function isUnexpected( - response: PrescriptionMapsList200Response | PrescriptionMapsListDefaultResponse, + response: + | PrescriptionMapsList200Response + | PrescriptionMapsListDefaultResponse, ): response is PrescriptionMapsListDefaultResponse; export function isUnexpected( response: @@ -1157,7 +1255,9 @@ export function isUnexpected( | PrescriptionMapsCreateCascadeDeleteJobDefaultResponse, ): response is PrescriptionMapsCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( - response: PrescriptionsListByPartyId200Response | PrescriptionsListByPartyIdDefaultResponse, + response: + | PrescriptionsListByPartyId200Response + | PrescriptionsListByPartyIdDefaultResponse, ): response is PrescriptionsListByPartyIdDefaultResponse; export function isUnexpected( response: PrescriptionsGet200Response | PrescriptionsGetDefaultResponse, @@ -1201,13 +1301,19 @@ export function isUnexpected( | ScenesGetSatelliteDataIngestionJobDetailsDefaultResponse, ): response is ScenesGetSatelliteDataIngestionJobDetailsDefaultResponse; export function isUnexpected( - response: ScenesSearchFeatures200Response | ScenesSearchFeaturesDefaultResponse, + response: + | ScenesSearchFeatures200Response + | ScenesSearchFeaturesDefaultResponse, ): response is ScenesSearchFeaturesDefaultResponse; export function isUnexpected( - response: ScenesGetStacFeature200Response | ScenesGetStacFeatureDefaultResponse, + response: + | ScenesGetStacFeature200Response + | ScenesGetStacFeatureDefaultResponse, ): response is ScenesGetStacFeatureDefaultResponse; export function isUnexpected( - response: SeasonalFieldsListByPartyId200Response | SeasonalFieldsListByPartyIdDefaultResponse, + response: + | SeasonalFieldsListByPartyId200Response + | SeasonalFieldsListByPartyIdDefaultResponse, ): response is SeasonalFieldsListByPartyIdDefaultResponse; export function isUnexpected( response: SeasonalFieldsGet200Response | SeasonalFieldsGetDefaultResponse, @@ -1219,7 +1325,9 @@ export function isUnexpected( | SeasonalFieldsCreateOrUpdateDefaultResponse, ): response is SeasonalFieldsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: SeasonalFieldsDelete204Response | SeasonalFieldsDeleteDefaultResponse, + response: + | SeasonalFieldsDelete204Response + | SeasonalFieldsDeleteDefaultResponse, ): response is SeasonalFieldsDeleteDefaultResponse; export function isUnexpected( response: SeasonalFieldsList200Response | SeasonalFieldsListDefaultResponse, @@ -1250,7 +1358,9 @@ export function isUnexpected( response: SeasonsDelete204Response | SeasonsDeleteDefaultResponse, ): response is SeasonsDeleteDefaultResponse; export function isUnexpected( - response: SensorDataModelsList200Response | SensorDataModelsListDefaultResponse, + response: + | SensorDataModelsList200Response + | SensorDataModelsListDefaultResponse, ): response is SensorDataModelsListDefaultResponse; export function isUnexpected( response: @@ -1262,7 +1372,9 @@ export function isUnexpected( response: SensorDataModelsGet200Response | SensorDataModelsGetDefaultResponse, ): response is SensorDataModelsGetDefaultResponse; export function isUnexpected( - response: SensorDataModelsDelete204Response | SensorDataModelsDeleteDefaultResponse, + response: + | SensorDataModelsDelete204Response + | SensorDataModelsDeleteDefaultResponse, ): response is SensorDataModelsDeleteDefaultResponse; export function isUnexpected( response: SensorEventsList200Response | SensorEventsListDefaultResponse, @@ -1280,10 +1392,14 @@ export function isUnexpected( response: SensorMappingsGet200Response | SensorMappingsGetDefaultResponse, ): response is SensorMappingsGetDefaultResponse; export function isUnexpected( - response: SensorMappingsDelete204Response | SensorMappingsDeleteDefaultResponse, + response: + | SensorMappingsDelete204Response + | SensorMappingsDeleteDefaultResponse, ): response is SensorMappingsDeleteDefaultResponse; export function isUnexpected( - response: SensorPartnerIntegrationsList200Response | SensorPartnerIntegrationsListDefaultResponse, + response: + | SensorPartnerIntegrationsList200Response + | SensorPartnerIntegrationsListDefaultResponse, ): response is SensorPartnerIntegrationsListDefaultResponse; export function isUnexpected( response: @@ -1292,7 +1408,9 @@ export function isUnexpected( | SensorPartnerIntegrationsCreateOrUpdateDefaultResponse, ): response is SensorPartnerIntegrationsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: SensorPartnerIntegrationsGet200Response | SensorPartnerIntegrationsGetDefaultResponse, + response: + | SensorPartnerIntegrationsGet200Response + | SensorPartnerIntegrationsGetDefaultResponse, ): response is SensorPartnerIntegrationsGetDefaultResponse; export function isUnexpected( response: @@ -1325,13 +1443,19 @@ export function isUnexpected( response: SensorsDelete204Response | SensorsDeleteDefaultResponse, ): response is SensorsDeleteDefaultResponse; export function isUnexpected( - response: SensorsGetConnectionString200Response | SensorsGetConnectionStringDefaultResponse, + response: + | SensorsGetConnectionString200Response + | SensorsGetConnectionStringDefaultResponse, ): response is SensorsGetConnectionStringDefaultResponse; export function isUnexpected( - response: SensorsRenewConnectionString200Response | SensorsRenewConnectionStringDefaultResponse, + response: + | SensorsRenewConnectionString200Response + | SensorsRenewConnectionStringDefaultResponse, ): response is SensorsRenewConnectionStringDefaultResponse; export function isUnexpected( - response: SolutionInferenceCancel200Response | SolutionInferenceCancelDefaultResponse, + response: + | SolutionInferenceCancel200Response + | SolutionInferenceCancelDefaultResponse, ): response is SolutionInferenceCancelDefaultResponse; export function isUnexpected( response: @@ -1339,10 +1463,14 @@ export function isUnexpected( | SolutionInferenceCreateOrUpdateDefaultResponse, ): response is SolutionInferenceCreateOrUpdateDefaultResponse; export function isUnexpected( - response: SolutionInferenceFetch200Response | SolutionInferenceFetchDefaultResponse, + response: + | SolutionInferenceFetch200Response + | SolutionInferenceFetchDefaultResponse, ): response is SolutionInferenceFetchDefaultResponse; export function isUnexpected( - response: TillageDataListByPartyId200Response | TillageDataListByPartyIdDefaultResponse, + response: + | TillageDataListByPartyId200Response + | TillageDataListByPartyIdDefaultResponse, ): response is TillageDataListByPartyIdDefaultResponse; export function isUnexpected( response: TillageDataGet200Response | TillageDataGetDefaultResponse, @@ -1378,7 +1506,9 @@ export function isUnexpected( | WeatherGetDataDeleteJobDetailsDefaultResponse, ): response is WeatherGetDataDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: WeatherCreateDataDeleteJob202Response | WeatherCreateDataDeleteJobDefaultResponse, + response: + | WeatherCreateDataDeleteJob202Response + | WeatherCreateDataDeleteJobDefaultResponse, ): response is WeatherCreateDataDeleteJobDefaultResponse; export function isUnexpected( response: @@ -1386,7 +1516,9 @@ export function isUnexpected( | WeatherGetDataIngestionJobDetailsDefaultResponse, ): response is WeatherGetDataIngestionJobDetailsDefaultResponse; export function isUnexpected( - response: WeatherCreateDataIngestionJob202Response | WeatherCreateDataIngestionJobDefaultResponse, + response: + | WeatherCreateDataIngestionJob202Response + | WeatherCreateDataIngestionJobDefaultResponse, ): response is WeatherCreateDataIngestionJobDefaultResponse; export function isUnexpected( response: WeatherDataGet200Response | WeatherDataGetDefaultResponse, @@ -1415,7 +1547,9 @@ export function isUnexpected( | ZonesGetCascadeDeleteJobDetailsDefaultResponse, ): response is ZonesGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: ZonesCreateCascadeDeleteJob202Response | ZonesCreateCascadeDeleteJobDefaultResponse, + response: + | ZonesCreateCascadeDeleteJob202Response + | ZonesCreateCascadeDeleteJobDefaultResponse, ): response is ZonesCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( response: @@ -2071,17 +2205,24 @@ function getParametrizedPathSuccess(method: string, path: string): string[] { // track if we have found a match to return the values found. let found = true; - for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { - if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) { + for ( + let i = candidateParts.length - 1, j = pathParts.length - 1; + i >= 1 && j >= 1; + i--, j-- + ) { + if ( + candidateParts[i]?.startsWith("{") && + candidateParts[i]?.indexOf("}") !== -1 + ) { const start = candidateParts[i]!.indexOf("}") + 1, end = candidateParts[i]?.length; // If the current part of the candidate is a "template" part // Try to use the suffix of pattern to match the path // {guid} ==> $ // {guid}:export ==> :export$ - const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "", - ); + const isMatched = new RegExp( + `${candidateParts[i]?.slice(start, end)}`, + ).test(pathParts[j] || ""); if (!isMatched) { found = false; diff --git a/sdk/agrifood/agrifood-farming-rest/src/logger.ts b/sdk/agrifood/agrifood-farming-rest/src/logger.ts new file mode 100644 index 000000000000..12b526480bf5 --- /dev/null +++ b/sdk/agrifood/agrifood-farming-rest/src/logger.ts @@ -0,0 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { createClientLogger } from "@azure/logger"; +export const logger = createClientLogger("agrifood-farming"); diff --git a/sdk/agrifood/agrifood-farming-rest/src/outputModels.ts b/sdk/agrifood/agrifood-farming-rest/src/outputModels.ts index 8626fe4ea756..a68f97413e13 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/outputModels.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/outputModels.ts @@ -130,7 +130,12 @@ export interface CascadeDeleteJobOutput { * Status of the job. * Possible values: 'Waiting', 'Running', 'Succeeded', 'Failed', 'Cancelled'. */ - readonly status?: "Waiting" | "Running" | "Succeeded" | "Failed" | "Cancelled"; + readonly status?: + | "Waiting" + | "Running" + | "Succeeded" + | "Failed" + | "Cancelled"; /** Duration of the job in seconds. */ readonly durationInSeconds?: number; /** Status message to capture more details of the job. */ @@ -860,7 +865,12 @@ export interface InsightAttachmentOutput { /** ModelID for this InsightAttachment. */ readonly modelId?: string; /** Associated Resource type for this attachment. */ - readonly resourceType?: "Party" | "Farm" | "Field" | "SeasonalField" | "Boundary"; + readonly resourceType?: + | "Party" + | "Farm" + | "Field" + | "SeasonalField" + | "Boundary"; /** Associated Resource id for this attachment. */ readonly resourceId?: string; /** Original File Name for this attachment. */ @@ -906,7 +916,12 @@ export interface InsightOutput { /** Id of the associated model. */ readonly modelId?: string; /** Resource type associated with the record. */ - readonly resourceType?: "Party" | "Farm" | "Field" | "SeasonalField" | "Boundary"; + readonly resourceType?: + | "Party" + | "Farm" + | "Field" + | "SeasonalField" + | "Boundary"; /** Id of the associated resource. */ readonly resourceId?: string; /** Version of the associated model. */ @@ -2758,4 +2773,7 @@ export interface PolygonOutput extends GeoJsonObjectOutputParent { } /** GeoJSON (For more details: https://geojson.org/). Note: Coordinates are expected in [Longitude, Latitude] format. */ -export type GeoJsonObjectOutput = MultiPolygonOutput | PointOutput | PolygonOutput; +export type GeoJsonObjectOutput = + | MultiPolygonOutput + | PointOutput + | PolygonOutput; diff --git a/sdk/agrifood/agrifood-farming-rest/src/paginateHelper.ts b/sdk/agrifood/agrifood-farming-rest/src/paginateHelper.ts index f0d91c952cda..3aac141db0e7 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/paginateHelper.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/paginateHelper.ts @@ -1,8 +1,16 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { getPagedAsyncIterator, PagedAsyncIterableIterator, PagedResult } from "@azure/core-paging"; -import { Client, createRestError, PathUncheckedResponse } from "@azure-rest/core-client"; +import { + getPagedAsyncIterator, + PagedAsyncIterableIterator, + PagedResult, +} from "@azure/core-paging"; +import { + Client, + createRestError, + PathUncheckedResponse, +} from "@azure-rest/core-client"; /** * Helper type to extract the type of an array @@ -67,7 +75,9 @@ export function paginate( typeof customGetPage === "function" ? customGetPage : async (pageLink: string) => { - const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get(); + const result = firstRun + ? initialResponse + : await client.pathUnchecked(pageLink).get(); firstRun = false; checkPagingRequest(result); const nextLink = getNextLink(result.body, nextLinkName); @@ -93,7 +103,9 @@ function getNextLink(body: unknown, nextLinkName?: string): string | undefined { const nextLink = (body as Record)[nextLinkName]; if (typeof nextLink !== "string" && typeof nextLink !== "undefined") { - throw new Error(`Body Property ${nextLinkName} should be a string or undefined`); + throw new Error( + `Body Property ${nextLinkName} should be a string or undefined`, + ); } return nextLink; @@ -121,7 +133,18 @@ function getElements(body: unknown, itemName: string): T[] { * Checks if a request failed */ function checkPagingRequest(response: PathUncheckedResponse): void { - const Http2xxStatusCodes = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226"]; + const Http2xxStatusCodes = [ + "200", + "201", + "202", + "203", + "204", + "205", + "206", + "207", + "208", + "226", + ]; if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, diff --git a/sdk/agrifood/agrifood-farming-rest/src/parameters.ts b/sdk/agrifood/agrifood-farming-rest/src/parameters.ts index aaa2803a32ba..2e4f3a75c15e 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/parameters.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/parameters.ts @@ -106,7 +106,8 @@ export interface ApplicationDataListQueryParam { queryParameters?: ApplicationDataListQueryParamProperties; } -export type ApplicationDataListParameters = ApplicationDataListQueryParam & RequestParameters; +export type ApplicationDataListParameters = ApplicationDataListQueryParam & + RequestParameters; export interface ApplicationDataCreateCascadeDeleteJobQueryParamProperties { /** Id of the party. */ @@ -121,7 +122,8 @@ export interface ApplicationDataCreateCascadeDeleteJobQueryParam { export type ApplicationDataCreateCascadeDeleteJobParameters = ApplicationDataCreateCascadeDeleteJobQueryParam & RequestParameters; -export type ApplicationDataGetCascadeDeleteJobDetailsParameters = RequestParameters; +export type ApplicationDataGetCascadeDeleteJobDetailsParameters = + RequestParameters; export interface ApplicationDataListByPartyIdQueryParamProperties { /** Minimum average amount of material applied during the application (inclusive). */ @@ -184,8 +186,8 @@ export interface ApplicationDataListByPartyIdQueryParam { queryParameters?: ApplicationDataListByPartyIdQueryParamProperties; } -export type ApplicationDataListByPartyIdParameters = ApplicationDataListByPartyIdQueryParam & - RequestParameters; +export type ApplicationDataListByPartyIdParameters = + ApplicationDataListByPartyIdQueryParam & RequestParameters; export type ApplicationDataGetParameters = RequestParameters; /** Application data resource payload to create or update. */ export type ApplicationDataResourceMergeAndPatch = Partial; @@ -200,9 +202,10 @@ export interface ApplicationDataCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type ApplicationDataCreateOrUpdateParameters = ApplicationDataCreateOrUpdateMediaTypesParam & - ApplicationDataCreateOrUpdateBodyParam & - RequestParameters; +export type ApplicationDataCreateOrUpdateParameters = + ApplicationDataCreateOrUpdateMediaTypesParam & + ApplicationDataCreateOrUpdateBodyParam & + RequestParameters; export type ApplicationDataDeleteParameters = RequestParameters; export interface AttachmentsListByPartyIdQueryParamProperties { @@ -245,8 +248,8 @@ export interface AttachmentsListByPartyIdQueryParam { queryParameters?: AttachmentsListByPartyIdQueryParamProperties; } -export type AttachmentsListByPartyIdParameters = AttachmentsListByPartyIdQueryParam & - RequestParameters; +export type AttachmentsListByPartyIdParameters = + AttachmentsListByPartyIdQueryParam & RequestParameters; export type AttachmentsGetParameters = RequestParameters; export interface AttachmentsCreateOrUpdateBodyParam { @@ -259,7 +262,11 @@ export interface AttachmentsCreateOrUpdateFormBody { * * Value may contain any sequence of octets */ - file?: string | Uint8Array | ReadableStream | NodeJS.ReadableStream; + file?: + | string + | Uint8Array + | ReadableStream + | NodeJS.ReadableStream; /** Associated Resource id for this attachment. */ resourceId?: string; /** Associated Resource type for this attachment. */ @@ -291,9 +298,10 @@ export interface AttachmentsCreateOrUpdateMediaTypesParam { contentType?: "multipart/form-data"; } -export type AttachmentsCreateOrUpdateParameters = AttachmentsCreateOrUpdateMediaTypesParam & - AttachmentsCreateOrUpdateBodyParam & - RequestParameters; +export type AttachmentsCreateOrUpdateParameters = + AttachmentsCreateOrUpdateMediaTypesParam & + AttachmentsCreateOrUpdateBodyParam & + RequestParameters; export type AttachmentsDeleteParameters = RequestParameters; export type AttachmentsDownloadParameters = RequestParameters; @@ -340,7 +348,8 @@ export interface BoundariesListQueryParam { queryParameters?: BoundariesListQueryParamProperties; } -export type BoundariesListParameters = BoundariesListQueryParam & RequestParameters; +export type BoundariesListParameters = BoundariesListQueryParam & + RequestParameters; export interface BoundariesSearchBodyParam { /** Query filters. */ @@ -414,8 +423,8 @@ export interface BoundariesListByPartyIdQueryParam { queryParameters?: BoundariesListByPartyIdQueryParamProperties; } -export type BoundariesListByPartyIdParameters = BoundariesListByPartyIdQueryParam & - RequestParameters; +export type BoundariesListByPartyIdParameters = + BoundariesListByPartyIdQueryParam & RequestParameters; export interface BoundariesSearchByPartyIdBodyParam { /** Query filters. */ @@ -427,9 +436,10 @@ export interface BoundariesSearchByPartyIdMediaTypesParam { contentType?: "application/json"; } -export type BoundariesSearchByPartyIdParameters = BoundariesSearchByPartyIdMediaTypesParam & - BoundariesSearchByPartyIdBodyParam & - RequestParameters; +export type BoundariesSearchByPartyIdParameters = + BoundariesSearchByPartyIdMediaTypesParam & + BoundariesSearchByPartyIdBodyParam & + RequestParameters; /** Boundary resource payload to create or update. */ export type BoundaryResourceMergeAndPatch = Partial; @@ -443,9 +453,10 @@ export interface BoundariesCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type BoundariesCreateOrUpdateParameters = BoundariesCreateOrUpdateMediaTypesParam & - BoundariesCreateOrUpdateBodyParam & - RequestParameters; +export type BoundariesCreateOrUpdateParameters = + BoundariesCreateOrUpdateMediaTypesParam & + BoundariesCreateOrUpdateBodyParam & + RequestParameters; export type BoundariesGetParameters = RequestParameters; export type BoundariesDeleteParameters = RequestParameters; @@ -460,7 +471,8 @@ export interface BoundariesGetOverlapQueryParam { queryParameters: BoundariesGetOverlapQueryParamProperties; } -export type BoundariesGetOverlapParameters = BoundariesGetOverlapQueryParam & RequestParameters; +export type BoundariesGetOverlapParameters = BoundariesGetOverlapQueryParam & + RequestParameters; export interface CropProductsListQueryParamProperties { /** CropIds of the resource. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ @@ -503,7 +515,8 @@ export interface CropProductsListQueryParam { queryParameters?: CropProductsListQueryParamProperties; } -export type CropProductsListParameters = CropProductsListQueryParam & RequestParameters; +export type CropProductsListParameters = CropProductsListQueryParam & + RequestParameters; export type CropProductsGetParameters = RequestParameters; /** Crop Product resource payload to create or update. */ export type CropProductResourceMergeAndPatch = Partial; @@ -518,9 +531,10 @@ export interface CropProductsCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type CropProductsCreateOrUpdateParameters = CropProductsCreateOrUpdateMediaTypesParam & - CropProductsCreateOrUpdateBodyParam & - RequestParameters; +export type CropProductsCreateOrUpdateParameters = + CropProductsCreateOrUpdateMediaTypesParam & + CropProductsCreateOrUpdateBodyParam & + RequestParameters; export type CropProductsDeleteParameters = RequestParameters; export interface CropsListQueryParamProperties { @@ -613,7 +627,8 @@ export interface DeviceDataModelsListQueryParam { queryParameters?: DeviceDataModelsListQueryParamProperties; } -export type DeviceDataModelsListParameters = DeviceDataModelsListQueryParam & RequestParameters; +export type DeviceDataModelsListParameters = DeviceDataModelsListQueryParam & + RequestParameters; /** Device data model object details. */ export type DeviceDataModelResourceMergeAndPatch = Partial; @@ -685,9 +700,10 @@ export interface DevicesCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type DevicesCreateOrUpdateParameters = DevicesCreateOrUpdateMediaTypesParam & - DevicesCreateOrUpdateBodyParam & - RequestParameters; +export type DevicesCreateOrUpdateParameters = + DevicesCreateOrUpdateMediaTypesParam & + DevicesCreateOrUpdateBodyParam & + RequestParameters; export type DevicesGetParameters = RequestParameters; export type DevicesDeleteParameters = RequestParameters; @@ -705,7 +721,8 @@ export type FarmOperationsCreateDataIngestionJobParameters = FarmOperationsCreateDataIngestionJobMediaTypesParam & FarmOperationsCreateDataIngestionJobBodyParam & RequestParameters; -export type FarmOperationsGetDataIngestionJobDetailsParameters = RequestParameters; +export type FarmOperationsGetDataIngestionJobDetailsParameters = + RequestParameters; export interface FarmsListQueryParamProperties { /** Ids of the resource. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ @@ -753,8 +770,8 @@ export interface FarmsCreateCascadeDeleteJobQueryParam { queryParameters: FarmsCreateCascadeDeleteJobQueryParamProperties; } -export type FarmsCreateCascadeDeleteJobParameters = FarmsCreateCascadeDeleteJobQueryParam & - RequestParameters; +export type FarmsCreateCascadeDeleteJobParameters = + FarmsCreateCascadeDeleteJobQueryParam & RequestParameters; export type FarmsGetCascadeDeleteJobDetailsParameters = RequestParameters; export interface FarmsListByPartyIdQueryParamProperties { @@ -790,7 +807,8 @@ export interface FarmsListByPartyIdQueryParam { queryParameters?: FarmsListByPartyIdQueryParamProperties; } -export type FarmsListByPartyIdParameters = FarmsListByPartyIdQueryParam & RequestParameters; +export type FarmsListByPartyIdParameters = FarmsListByPartyIdQueryParam & + RequestParameters; export type FarmsGetParameters = RequestParameters; /** Farm resource payload to create or update. */ export type FarmResourceMergeAndPatch = Partial; @@ -859,8 +877,8 @@ export interface FieldsCreateCascadeDeleteJobQueryParam { queryParameters: FieldsCreateCascadeDeleteJobQueryParamProperties; } -export type FieldsCreateCascadeDeleteJobParameters = FieldsCreateCascadeDeleteJobQueryParam & - RequestParameters; +export type FieldsCreateCascadeDeleteJobParameters = + FieldsCreateCascadeDeleteJobQueryParam & RequestParameters; export interface FieldsListByPartyIdQueryParamProperties { /** Farm Ids of the resource. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ @@ -897,7 +915,8 @@ export interface FieldsListByPartyIdQueryParam { queryParameters?: FieldsListByPartyIdQueryParamProperties; } -export type FieldsListByPartyIdParameters = FieldsListByPartyIdQueryParam & RequestParameters; +export type FieldsListByPartyIdParameters = FieldsListByPartyIdQueryParam & + RequestParameters; export type FieldsGetParameters = RequestParameters; /** Field resource payload to create or update. */ export type FieldResourceMergeAndPatch = Partial; @@ -912,9 +931,10 @@ export interface FieldsCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type FieldsCreateOrUpdateParameters = FieldsCreateOrUpdateMediaTypesParam & - FieldsCreateOrUpdateBodyParam & - RequestParameters; +export type FieldsCreateOrUpdateParameters = + FieldsCreateOrUpdateMediaTypesParam & + FieldsCreateOrUpdateBodyParam & + RequestParameters; export type FieldsDeleteParameters = RequestParameters; export interface HarvestDataListQueryParamProperties { @@ -994,7 +1014,8 @@ export interface HarvestDataListQueryParam { queryParameters?: HarvestDataListQueryParamProperties; } -export type HarvestDataListParameters = HarvestDataListQueryParam & RequestParameters; +export type HarvestDataListParameters = HarvestDataListQueryParam & + RequestParameters; export interface HarvestDataCreateCascadeDeleteJobQueryParamProperties { /** Id of the party. */ @@ -1088,8 +1109,8 @@ export interface HarvestDataListByPartyIdQueryParam { queryParameters?: HarvestDataListByPartyIdQueryParamProperties; } -export type HarvestDataListByPartyIdParameters = HarvestDataListByPartyIdQueryParam & - RequestParameters; +export type HarvestDataListByPartyIdParameters = + HarvestDataListByPartyIdQueryParam & RequestParameters; export type HarvestDataGetParameters = RequestParameters; /** Harvest data resource payload to create or update. */ export type HarvestDataResourceMergeAndPatch = Partial; @@ -1104,9 +1125,10 @@ export interface HarvestDataCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type HarvestDataCreateOrUpdateParameters = HarvestDataCreateOrUpdateMediaTypesParam & - HarvestDataCreateOrUpdateBodyParam & - RequestParameters; +export type HarvestDataCreateOrUpdateParameters = + HarvestDataCreateOrUpdateMediaTypesParam & + HarvestDataCreateOrUpdateBodyParam & + RequestParameters; export type HarvestDataDeleteParameters = RequestParameters; export interface ImageProcessingCreateRasterizeJobBodyParam { @@ -1161,7 +1183,8 @@ export interface InsightAttachmentsListByPartyIdModelIdAndResourceQueryParam { } export type InsightAttachmentsListByPartyIdModelIdAndResourceParameters = - InsightAttachmentsListByPartyIdModelIdAndResourceQueryParam & RequestParameters; + InsightAttachmentsListByPartyIdModelIdAndResourceQueryParam & + RequestParameters; export interface InsightAttachmentsCreateOrUpdateBodyParam { body: InsightAttachmentsCreateOrUpdateFormBody; @@ -1173,7 +1196,11 @@ export interface InsightAttachmentsCreateOrUpdateFormBody { * * Value may contain any sequence of octets */ - file?: string | Uint8Array | ReadableStream | NodeJS.ReadableStream; + file?: + | string + | Uint8Array + | ReadableStream + | NodeJS.ReadableStream; /** InsightID for this InsightAttachment. */ insightId: string; /** Original File Name for this attachment. */ @@ -1228,8 +1255,8 @@ export interface InsightsCreateCascadeDeleteJobQueryParam { queryParameters: InsightsCreateCascadeDeleteJobQueryParamProperties; } -export type InsightsCreateCascadeDeleteJobParameters = InsightsCreateCascadeDeleteJobQueryParam & - RequestParameters; +export type InsightsCreateCascadeDeleteJobParameters = + InsightsCreateCascadeDeleteJobQueryParam & RequestParameters; export type InsightsGetCascadeDeleteJobDetailsParameters = RequestParameters; export interface InsightsListByPartyIdModelIdAndResourceQueryParamProperties { @@ -1294,9 +1321,10 @@ export interface InsightsCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type InsightsCreateOrUpdateParameters = InsightsCreateOrUpdateMediaTypesParam & - InsightsCreateOrUpdateBodyParam & - RequestParameters; +export type InsightsCreateOrUpdateParameters = + InsightsCreateOrUpdateMediaTypesParam & + InsightsCreateOrUpdateBodyParam & + RequestParameters; export type InsightsGetParameters = RequestParameters; export type InsightsDeleteParameters = RequestParameters; @@ -1343,8 +1371,10 @@ export interface ManagementZonesListQueryParam { queryParameters?: ManagementZonesListQueryParamProperties; } -export type ManagementZonesListParameters = ManagementZonesListQueryParam & RequestParameters; -export type ManagementZonesGetCascadeDeleteJobDetailsParameters = RequestParameters; +export type ManagementZonesListParameters = ManagementZonesListQueryParam & + RequestParameters; +export type ManagementZonesGetCascadeDeleteJobDetailsParameters = + RequestParameters; export interface ManagementZonesCreateCascadeDeleteJobQueryParamProperties { /** ID of the associated party. */ @@ -1403,8 +1433,8 @@ export interface ManagementZonesListByPartyIdQueryParam { queryParameters?: ManagementZonesListByPartyIdQueryParamProperties; } -export type ManagementZonesListByPartyIdParameters = ManagementZonesListByPartyIdQueryParam & - RequestParameters; +export type ManagementZonesListByPartyIdParameters = + ManagementZonesListByPartyIdQueryParam & RequestParameters; export type ManagementZonesGetParameters = RequestParameters; /** ManagementZone resource payload to create or update. */ export type ManagementZoneResourceMergeAndPatch = Partial; @@ -1419,9 +1449,10 @@ export interface ManagementZonesCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type ManagementZonesCreateOrUpdateParameters = ManagementZonesCreateOrUpdateMediaTypesParam & - ManagementZonesCreateOrUpdateBodyParam & - RequestParameters; +export type ManagementZonesCreateOrUpdateParameters = + ManagementZonesCreateOrUpdateMediaTypesParam & + ManagementZonesCreateOrUpdateBodyParam & + RequestParameters; export type ManagementZonesDeleteParameters = RequestParameters; export interface ModelInferenceCreateBiomassModelJobBodyParam { @@ -1454,7 +1485,8 @@ export type ModelInferenceCreateSensorPlacementModelJobParameters = ModelInferenceCreateSensorPlacementModelJobMediaTypesParam & ModelInferenceCreateSensorPlacementModelJobBodyParam & RequestParameters; -export type ModelInferenceGetSensorPlacementModelJobParameters = RequestParameters; +export type ModelInferenceGetSensorPlacementModelJobParameters = + RequestParameters; export interface ModelInferenceCreateSoilMoistureModelJobBodyParam { /** Job parameters supplied by user. */ @@ -1514,7 +1546,8 @@ export interface NutrientAnalysesListQueryParam { queryParameters?: NutrientAnalysesListQueryParamProperties; } -export type NutrientAnalysesListParameters = NutrientAnalysesListQueryParam & RequestParameters; +export type NutrientAnalysesListParameters = NutrientAnalysesListQueryParam & + RequestParameters; export interface NutrientAnalysesListByPartyIdQueryParamProperties { /** @@ -1558,8 +1591,8 @@ export interface NutrientAnalysesListByPartyIdQueryParam { queryParameters?: NutrientAnalysesListByPartyIdQueryParamProperties; } -export type NutrientAnalysesListByPartyIdParameters = NutrientAnalysesListByPartyIdQueryParam & - RequestParameters; +export type NutrientAnalysesListByPartyIdParameters = + NutrientAnalysesListByPartyIdQueryParam & RequestParameters; export type NutrientAnalysesGetParameters = RequestParameters; /** NutrientAnalysis resource payload to create or update. */ export type NutrientAnalysisResourceMergeAndPatch = Partial; @@ -1613,7 +1646,8 @@ export interface OAuthProvidersListQueryParam { queryParameters?: OAuthProvidersListQueryParamProperties; } -export type OAuthProvidersListParameters = OAuthProvidersListQueryParam & RequestParameters; +export type OAuthProvidersListParameters = OAuthProvidersListQueryParam & + RequestParameters; export type OAuthProvidersGetParameters = RequestParameters; /** OauthProvider resource payload to create or update. */ export type OAuthProviderResourceMergeAndPatch = Partial; @@ -1628,11 +1662,13 @@ export interface OAuthProvidersCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type OAuthProvidersCreateOrUpdateParameters = OAuthProvidersCreateOrUpdateMediaTypesParam & - OAuthProvidersCreateOrUpdateBodyParam & - RequestParameters; +export type OAuthProvidersCreateOrUpdateParameters = + OAuthProvidersCreateOrUpdateMediaTypesParam & + OAuthProvidersCreateOrUpdateBodyParam & + RequestParameters; export type OAuthProvidersDeleteParameters = RequestParameters; -export type OAuthProvidersGetCascadeDeleteJobDetailsParameters = RequestParameters; +export type OAuthProvidersGetCascadeDeleteJobDetailsParameters = + RequestParameters; export interface OAuthProvidersCreateCascadeDeleteJobQueryParamProperties { /** Id of the application data. */ @@ -1674,7 +1710,8 @@ export interface OAuthTokensListQueryParam { queryParameters?: OAuthTokensListQueryParamProperties; } -export type OAuthTokensListParameters = OAuthTokensListQueryParam & RequestParameters; +export type OAuthTokensListParameters = OAuthTokensListQueryParam & + RequestParameters; export interface OAuthTokensGetOAuthConnectionLinkBodyParam { /** OAuth Connect Request. */ @@ -1754,9 +1791,10 @@ export interface PartiesCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type PartiesCreateOrUpdateParameters = PartiesCreateOrUpdateMediaTypesParam & - PartiesCreateOrUpdateBodyParam & - RequestParameters; +export type PartiesCreateOrUpdateParameters = + PartiesCreateOrUpdateMediaTypesParam & + PartiesCreateOrUpdateBodyParam & + RequestParameters; export type PartiesDeleteParameters = RequestParameters; export type PartiesGetCascadeDeleteJobDetailsParameters = RequestParameters; @@ -1769,8 +1807,8 @@ export interface PartiesCreateCascadeDeleteJobQueryParam { queryParameters: PartiesCreateCascadeDeleteJobQueryParamProperties; } -export type PartiesCreateCascadeDeleteJobParameters = PartiesCreateCascadeDeleteJobQueryParam & - RequestParameters; +export type PartiesCreateCascadeDeleteJobParameters = + PartiesCreateCascadeDeleteJobQueryParam & RequestParameters; export interface PlantingDataListByPartyIdQueryParamProperties { /** Minimum AvgPlantingRate value(inclusive). */ @@ -1837,8 +1875,8 @@ export interface PlantingDataListByPartyIdQueryParam { queryParameters?: PlantingDataListByPartyIdQueryParamProperties; } -export type PlantingDataListByPartyIdParameters = PlantingDataListByPartyIdQueryParam & - RequestParameters; +export type PlantingDataListByPartyIdParameters = + PlantingDataListByPartyIdQueryParam & RequestParameters; export type PlantingDataGetParameters = RequestParameters; /** Planting data resource payload to create or update. */ export type PlantingDataResourceMergeAndPatch = Partial; @@ -1853,9 +1891,10 @@ export interface PlantingDataCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type PlantingDataCreateOrUpdateParameters = PlantingDataCreateOrUpdateMediaTypesParam & - PlantingDataCreateOrUpdateBodyParam & - RequestParameters; +export type PlantingDataCreateOrUpdateParameters = + PlantingDataCreateOrUpdateMediaTypesParam & + PlantingDataCreateOrUpdateBodyParam & + RequestParameters; export type PlantingDataDeleteParameters = RequestParameters; export interface PlantingDataListQueryParamProperties { @@ -1923,7 +1962,8 @@ export interface PlantingDataListQueryParam { queryParameters?: PlantingDataListQueryParamProperties; } -export type PlantingDataListParameters = PlantingDataListQueryParam & RequestParameters; +export type PlantingDataListParameters = PlantingDataListQueryParam & + RequestParameters; export interface PlantingDataCreateCascadeDeleteJobQueryParamProperties { /** Id of the party. */ @@ -1938,7 +1978,8 @@ export interface PlantingDataCreateCascadeDeleteJobQueryParam { export type PlantingDataCreateCascadeDeleteJobParameters = PlantingDataCreateCascadeDeleteJobQueryParam & RequestParameters; -export type PlantingDataGetCascadeDeleteJobDetailsParameters = RequestParameters; +export type PlantingDataGetCascadeDeleteJobDetailsParameters = + RequestParameters; export interface PlantTissueAnalysesListByPartyIdQueryParamProperties { /** Season ids of the plant tissue analyses. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ @@ -1985,7 +2026,8 @@ export type PlantTissueAnalysesListByPartyIdParameters = PlantTissueAnalysesListByPartyIdQueryParam & RequestParameters; export type PlantTissueAnalysesGetParameters = RequestParameters; /** PlantTissueAnalysis resource payload to create or update. */ -export type PlantTissueAnalysisResourceMergeAndPatch = Partial; +export type PlantTissueAnalysisResourceMergeAndPatch = + Partial; export interface PlantTissueAnalysesCreateOrUpdateBodyParam { /** PlantTissueAnalysis resource payload to create or update. */ @@ -2044,8 +2086,8 @@ export interface PlantTissueAnalysesListQueryParam { queryParameters?: PlantTissueAnalysesListQueryParamProperties; } -export type PlantTissueAnalysesListParameters = PlantTissueAnalysesListQueryParam & - RequestParameters; +export type PlantTissueAnalysesListParameters = + PlantTissueAnalysesListQueryParam & RequestParameters; export interface PlantTissueAnalysesCreateCascadeDeleteJobQueryParamProperties { /** ID of the associated party. */ @@ -2060,7 +2102,8 @@ export interface PlantTissueAnalysesCreateCascadeDeleteJobQueryParam { export type PlantTissueAnalysesCreateCascadeDeleteJobParameters = PlantTissueAnalysesCreateCascadeDeleteJobQueryParam & RequestParameters; -export type PlantTissueAnalysesGetCascadeDeleteJobDetailsParameters = RequestParameters; +export type PlantTissueAnalysesGetCascadeDeleteJobDetailsParameters = + RequestParameters; export interface PrescriptionMapsListByPartyIdQueryParamProperties { /** Types of the resource. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ @@ -2105,8 +2148,8 @@ export interface PrescriptionMapsListByPartyIdQueryParam { queryParameters?: PrescriptionMapsListByPartyIdQueryParamProperties; } -export type PrescriptionMapsListByPartyIdParameters = PrescriptionMapsListByPartyIdQueryParam & - RequestParameters; +export type PrescriptionMapsListByPartyIdParameters = + PrescriptionMapsListByPartyIdQueryParam & RequestParameters; export type PrescriptionMapsGetParameters = RequestParameters; /** PrescriptionMap resource payload to create or update. */ export type PrescriptionMapResourceMergeAndPatch = Partial; @@ -2170,8 +2213,10 @@ export interface PrescriptionMapsListQueryParam { queryParameters?: PrescriptionMapsListQueryParamProperties; } -export type PrescriptionMapsListParameters = PrescriptionMapsListQueryParam & RequestParameters; -export type PrescriptionMapsGetCascadeDeleteJobDetailsParameters = RequestParameters; +export type PrescriptionMapsListParameters = PrescriptionMapsListQueryParam & + RequestParameters; +export type PrescriptionMapsGetCascadeDeleteJobDetailsParameters = + RequestParameters; export interface PrescriptionMapsCreateCascadeDeleteJobQueryParamProperties { /** ID of the associated party. */ @@ -2230,8 +2275,8 @@ export interface PrescriptionsListByPartyIdQueryParam { queryParameters?: PrescriptionsListByPartyIdQueryParamProperties; } -export type PrescriptionsListByPartyIdParameters = PrescriptionsListByPartyIdQueryParam & - RequestParameters; +export type PrescriptionsListByPartyIdParameters = + PrescriptionsListByPartyIdQueryParam & RequestParameters; export type PrescriptionsGetParameters = RequestParameters; /** Prescription resource payload to create or update. */ export type PrescriptionResourceMergeAndPatch = Partial; @@ -2246,9 +2291,10 @@ export interface PrescriptionsCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type PrescriptionsCreateOrUpdateParameters = PrescriptionsCreateOrUpdateMediaTypesParam & - PrescriptionsCreateOrUpdateBodyParam & - RequestParameters; +export type PrescriptionsCreateOrUpdateParameters = + PrescriptionsCreateOrUpdateMediaTypesParam & + PrescriptionsCreateOrUpdateBodyParam & + RequestParameters; export type PrescriptionsDeleteParameters = RequestParameters; export interface PrescriptionsListQueryParamProperties { @@ -2294,8 +2340,10 @@ export interface PrescriptionsListQueryParam { queryParameters?: PrescriptionsListQueryParamProperties; } -export type PrescriptionsListParameters = PrescriptionsListQueryParam & RequestParameters; -export type PrescriptionsGetCascadeDeleteJobDetailsParameters = RequestParameters; +export type PrescriptionsListParameters = PrescriptionsListQueryParam & + RequestParameters; +export type PrescriptionsGetCascadeDeleteJobDetailsParameters = + RequestParameters; export interface PrescriptionsCreateCascadeDeleteJobQueryParamProperties { /** ID of the associated party. */ @@ -2330,8 +2378,8 @@ export interface ScenesListQueryParamProperties { maxDarkPixelCoveragePercentage?: number; /** List of image names to be filtered. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ imageNames?: string; - /** List of image resolutions in meters to be filtered. */ - imageResolutions?: Array; + /** List of image resolutions in meters to be filtered. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ + imageResolutions?: string; /** List of image formats to be filtered. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ imageFormats?: string; /** @@ -2358,7 +2406,8 @@ export interface ScenesDownloadQueryParam { queryParameters: ScenesDownloadQueryParamProperties; } -export type ScenesDownloadParameters = ScenesDownloadQueryParam & RequestParameters; +export type ScenesDownloadParameters = ScenesDownloadQueryParam & + RequestParameters; export interface ScenesCreateSatelliteDataIngestionJobBodyParam { /** Job parameters supplied by user. */ @@ -2374,7 +2423,8 @@ export type ScenesCreateSatelliteDataIngestionJobParameters = ScenesCreateSatelliteDataIngestionJobMediaTypesParam & ScenesCreateSatelliteDataIngestionJobBodyParam & RequestParameters; -export type ScenesGetSatelliteDataIngestionJobDetailsParameters = RequestParameters; +export type ScenesGetSatelliteDataIngestionJobDetailsParameters = + RequestParameters; export interface ScenesSearchFeaturesBodyParam { /** Query filters. */ @@ -2446,8 +2496,8 @@ export interface SeasonalFieldsListByPartyIdQueryParam { queryParameters?: SeasonalFieldsListByPartyIdQueryParamProperties; } -export type SeasonalFieldsListByPartyIdParameters = SeasonalFieldsListByPartyIdQueryParam & - RequestParameters; +export type SeasonalFieldsListByPartyIdParameters = + SeasonalFieldsListByPartyIdQueryParam & RequestParameters; export type SeasonalFieldsGetParameters = RequestParameters; /** Seasonal field resource payload to create or update. */ export type SeasonalFieldResourceMergeAndPatch = Partial; @@ -2462,9 +2512,10 @@ export interface SeasonalFieldsCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type SeasonalFieldsCreateOrUpdateParameters = SeasonalFieldsCreateOrUpdateMediaTypesParam & - SeasonalFieldsCreateOrUpdateBodyParam & - RequestParameters; +export type SeasonalFieldsCreateOrUpdateParameters = + SeasonalFieldsCreateOrUpdateMediaTypesParam & + SeasonalFieldsCreateOrUpdateBodyParam & + RequestParameters; export type SeasonalFieldsDeleteParameters = RequestParameters; export interface SeasonalFieldsListQueryParamProperties { @@ -2510,8 +2561,10 @@ export interface SeasonalFieldsListQueryParam { queryParameters?: SeasonalFieldsListQueryParamProperties; } -export type SeasonalFieldsListParameters = SeasonalFieldsListQueryParam & RequestParameters; -export type SeasonalFieldsGetCascadeDeleteJobDetailsParameters = RequestParameters; +export type SeasonalFieldsListParameters = SeasonalFieldsListQueryParam & + RequestParameters; +export type SeasonalFieldsGetCascadeDeleteJobDetailsParameters = + RequestParameters; export interface SeasonalFieldsCreateCascadeDeleteJobQueryParamProperties { /** ID of the associated party. */ @@ -2536,8 +2589,8 @@ export interface SeasonsListQueryParamProperties { minEndDateTime?: Date | string; /** Maximum season end datetime, sample format: yyyy-MM-ddTHH:mm:ssZ. */ maxEndDateTime?: Date | string; - /** Years of the resource. */ - years?: Array; + /** Years of the resource. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ + years?: string; /** Ids of the resource. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ ids?: string; /** Names of the resource. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ @@ -2585,9 +2638,10 @@ export interface SeasonsCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type SeasonsCreateOrUpdateParameters = SeasonsCreateOrUpdateMediaTypesParam & - SeasonsCreateOrUpdateBodyParam & - RequestParameters; +export type SeasonsCreateOrUpdateParameters = + SeasonsCreateOrUpdateMediaTypesParam & + SeasonsCreateOrUpdateBodyParam & + RequestParameters; export type SeasonsDeleteParameters = RequestParameters; export interface SensorDataModelsListQueryParamProperties { @@ -2623,7 +2677,8 @@ export interface SensorDataModelsListQueryParam { queryParameters?: SensorDataModelsListQueryParamProperties; } -export type SensorDataModelsListParameters = SensorDataModelsListQueryParam & RequestParameters; +export type SensorDataModelsListParameters = SensorDataModelsListQueryParam & + RequestParameters; /** Sensor data model object details. */ export type SensorDataModelResourceMergeAndPatch = Partial; @@ -2667,7 +2722,8 @@ export interface SensorEventsListQueryParam { queryParameters: SensorEventsListQueryParamProperties; } -export type SensorEventsListParameters = SensorEventsListQueryParam & RequestParameters; +export type SensorEventsListParameters = SensorEventsListQueryParam & + RequestParameters; export interface SensorMappingsListQueryParamProperties { /** Id of the sensors. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ @@ -2710,7 +2766,8 @@ export interface SensorMappingsListQueryParam { queryParameters?: SensorMappingsListQueryParamProperties; } -export type SensorMappingsListParameters = SensorMappingsListQueryParam & RequestParameters; +export type SensorMappingsListParameters = SensorMappingsListQueryParam & + RequestParameters; /** Sensor mapping object details. */ export type SensorMappingResourceMergeAndPatch = Partial; @@ -2724,9 +2781,10 @@ export interface SensorMappingsCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type SensorMappingsCreateOrUpdateParameters = SensorMappingsCreateOrUpdateMediaTypesParam & - SensorMappingsCreateOrUpdateBodyParam & - RequestParameters; +export type SensorMappingsCreateOrUpdateParameters = + SensorMappingsCreateOrUpdateMediaTypesParam & + SensorMappingsCreateOrUpdateBodyParam & + RequestParameters; export type SensorMappingsGetParameters = RequestParameters; export type SensorMappingsDeleteParameters = RequestParameters; @@ -2767,8 +2825,8 @@ export interface SensorPartnerIntegrationsListQueryParam { queryParameters?: SensorPartnerIntegrationsListQueryParamProperties; } -export type SensorPartnerIntegrationsListParameters = SensorPartnerIntegrationsListQueryParam & - RequestParameters; +export type SensorPartnerIntegrationsListParameters = + SensorPartnerIntegrationsListQueryParam & RequestParameters; /** Partner integration model. */ export type SensorPartnerIntegrationModelResourceMergeAndPatch = Partial; @@ -2801,7 +2859,8 @@ export interface SensorPartnerIntegrationsCheckConsentQueryParam { export type SensorPartnerIntegrationsCheckConsentParameters = SensorPartnerIntegrationsCheckConsentQueryParam & RequestParameters; -export type SensorPartnerIntegrationsGenerateConsentLinkParameters = RequestParameters; +export type SensorPartnerIntegrationsGenerateConsentLinkParameters = + RequestParameters; export interface SensorsListQueryParamProperties { /** Id's of the sensor data models. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ @@ -2856,9 +2915,10 @@ export interface SensorsCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type SensorsCreateOrUpdateParameters = SensorsCreateOrUpdateMediaTypesParam & - SensorsCreateOrUpdateBodyParam & - RequestParameters; +export type SensorsCreateOrUpdateParameters = + SensorsCreateOrUpdateMediaTypesParam & + SensorsCreateOrUpdateBodyParam & + RequestParameters; export type SensorsGetParameters = RequestParameters; export type SensorsDeleteParameters = RequestParameters; export type SensorsGetConnectionStringParameters = RequestParameters; @@ -2873,9 +2933,10 @@ export interface SensorsRenewConnectionStringMediaTypesParam { contentType?: "application/json"; } -export type SensorsRenewConnectionStringParameters = SensorsRenewConnectionStringMediaTypesParam & - SensorsRenewConnectionStringBodyParam & - RequestParameters; +export type SensorsRenewConnectionStringParameters = + SensorsRenewConnectionStringMediaTypesParam & + SensorsRenewConnectionStringBodyParam & + RequestParameters; export interface SolutionInferenceCancelBodyParam { /** solutionInferenceRequest containing input needed for job request processing. */ @@ -2887,9 +2948,10 @@ export interface SolutionInferenceCancelMediaTypesParam { contentType?: "application/json"; } -export type SolutionInferenceCancelParameters = SolutionInferenceCancelMediaTypesParam & - SolutionInferenceCancelBodyParam & - RequestParameters; +export type SolutionInferenceCancelParameters = + SolutionInferenceCancelMediaTypesParam & + SolutionInferenceCancelBodyParam & + RequestParameters; export interface SolutionInferenceCreateOrUpdateBodyParam { /** solutionInferenceRequest containing input needed for job request processing. */ @@ -2916,9 +2978,10 @@ export interface SolutionInferenceFetchMediaTypesParam { contentType?: "application/json"; } -export type SolutionInferenceFetchParameters = SolutionInferenceFetchMediaTypesParam & - SolutionInferenceFetchBodyParam & - RequestParameters; +export type SolutionInferenceFetchParameters = + SolutionInferenceFetchMediaTypesParam & + SolutionInferenceFetchBodyParam & + RequestParameters; export interface TillageDataListByPartyIdQueryParamProperties { /** Minimum measured tillage depth (inclusive). */ @@ -2981,8 +3044,8 @@ export interface TillageDataListByPartyIdQueryParam { queryParameters?: TillageDataListByPartyIdQueryParamProperties; } -export type TillageDataListByPartyIdParameters = TillageDataListByPartyIdQueryParam & - RequestParameters; +export type TillageDataListByPartyIdParameters = + TillageDataListByPartyIdQueryParam & RequestParameters; export type TillageDataGetParameters = RequestParameters; /** Tillage data resource payload to create or update. */ export type TillageDataResourceMergeAndPatch = Partial; @@ -2997,9 +3060,10 @@ export interface TillageDataCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type TillageDataCreateOrUpdateParameters = TillageDataCreateOrUpdateMediaTypesParam & - TillageDataCreateOrUpdateBodyParam & - RequestParameters; +export type TillageDataCreateOrUpdateParameters = + TillageDataCreateOrUpdateMediaTypesParam & + TillageDataCreateOrUpdateBodyParam & + RequestParameters; export type TillageDataDeleteParameters = RequestParameters; export interface TillageDataListQueryParamProperties { @@ -3063,7 +3127,8 @@ export interface TillageDataListQueryParam { queryParameters?: TillageDataListQueryParamProperties; } -export type TillageDataListParameters = TillageDataListQueryParam & RequestParameters; +export type TillageDataListParameters = TillageDataListQueryParam & + RequestParameters; export interface TillageDataCreateCascadeDeleteJobQueryParamProperties { /** Id of the party. */ @@ -3121,9 +3186,10 @@ export interface WeatherCreateDataDeleteJobMediaTypesParam { contentType?: "application/json"; } -export type WeatherCreateDataDeleteJobParameters = WeatherCreateDataDeleteJobMediaTypesParam & - WeatherCreateDataDeleteJobBodyParam & - RequestParameters; +export type WeatherCreateDataDeleteJobParameters = + WeatherCreateDataDeleteJobMediaTypesParam & + WeatherCreateDataDeleteJobBodyParam & + RequestParameters; export type WeatherGetDataIngestionJobDetailsParameters = RequestParameters; export interface WeatherCreateDataIngestionJobBodyParam { @@ -3136,9 +3202,10 @@ export interface WeatherCreateDataIngestionJobMediaTypesParam { contentType?: "application/json"; } -export type WeatherCreateDataIngestionJobParameters = WeatherCreateDataIngestionJobMediaTypesParam & - WeatherCreateDataIngestionJobBodyParam & - RequestParameters; +export type WeatherCreateDataIngestionJobParameters = + WeatherCreateDataIngestionJobMediaTypesParam & + WeatherCreateDataIngestionJobBodyParam & + RequestParameters; export interface WeatherDataGetBodyParam { /** Weather data provider request. */ @@ -3193,7 +3260,8 @@ export interface ZonesListByPartyIdQueryParam { queryParameters?: ZonesListByPartyIdQueryParamProperties; } -export type ZonesListByPartyIdParameters = ZonesListByPartyIdQueryParam & RequestParameters; +export type ZonesListByPartyIdParameters = ZonesListByPartyIdQueryParam & + RequestParameters; export type ZonesGetParameters = RequestParameters; /** Zone resource payload to create or update. */ export type ZoneResourceMergeAndPatch = Partial; @@ -3266,5 +3334,5 @@ export interface ZonesCreateCascadeDeleteJobQueryParam { queryParameters: ZonesCreateCascadeDeleteJobQueryParamProperties; } -export type ZonesCreateCascadeDeleteJobParameters = ZonesCreateCascadeDeleteJobQueryParam & - RequestParameters; +export type ZonesCreateCascadeDeleteJobParameters = + ZonesCreateCascadeDeleteJobQueryParam & RequestParameters; diff --git a/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts b/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts index 40004b75ca92..c9ed24802ddb 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts @@ -2,14 +2,87 @@ // Licensed under the MIT license. import { Client, HttpResponse } from "@azure-rest/core-client"; +import { AbortSignalLike } from "@azure/abort-controller"; import { + CancelOnProgress, CreateHttpPollerOptions, - LongRunningOperation, - LroResponse, + RunningOperation, + OperationResponse, OperationState, - SimplePollerLike, createHttpPoller, } from "@azure/core-lro"; + +/** + * A simple poller that can be used to poll a long running operation. + */ +export interface SimplePollerLike< + TState extends OperationState, + TResult, +> { + /** + * Returns true if the poller has finished polling. + */ + isDone(): boolean; + /** + * Returns the state of the operation. + */ + getOperationState(): TState; + /** + * Returns the result value of the operation, + * regardless of the state of the poller. + * It can return undefined or an incomplete form of the final TResult value + * depending on the implementation. + */ + getResult(): TResult | undefined; + /** + * Returns a promise that will resolve once a single polling request finishes. + * It does this by calling the update method of the Poller's operation. + */ + poll(options?: { abortSignal?: AbortSignalLike }): Promise; + /** + * Returns a promise that will resolve once the underlying operation is completed. + */ + pollUntilDone(pollOptions?: { + abortSignal?: AbortSignalLike; + }): Promise; + /** + * Invokes the provided callback after each polling is completed, + * sending the current state of the poller's operation. + * + * It returns a method that can be used to stop receiving updates on the given callback function. + */ + onProgress(callback: (state: TState) => void): CancelOnProgress; + + /** + * Returns a promise that could be used for serialized version of the poller's operation + * by invoking the operation's serialize method. + */ + serialize(): Promise; + + /** + * Wait the poller to be submitted. + */ + submitted(): Promise; + + /** + * Returns a string representation of the poller's operation. Similar to serialize but returns a string. + * @deprecated Use serialize() instead. + */ + toString(): string; + + /** + * Stops the poller from continuing to poll. Please note this will only stop the client-side polling + * @deprecated Use abortSignal to stop polling instead. + */ + stopPolling(): void; + + /** + * Returns true if the poller is stopped. + * @deprecated Use abortSignal status to track this instead. + */ + isStopped(): boolean; +} + /** * Helper function that builds a Poller object to help polling a long running operation. * @param client - Client to use for sending the request to get additional pages. @@ -22,29 +95,89 @@ export async function getLongRunningPoller( initialResponse: TResult, options: CreateHttpPollerOptions> = {}, ): Promise, TResult>> { - const poller: LongRunningOperation = { - requestMethod: initialResponse.request.method, - requestPath: initialResponse.request.url, + const abortController = new AbortController(); + const poller: RunningOperation = { sendInitialRequest: async () => { // In the case of Rest Clients we are building the LRO poller object from a response that's the reason // we are not triggering the initial request here, just extracting the information from the // response we were provided. return getLroResponse(initialResponse); }, - sendPollRequest: async (path) => { + sendPollRequest: async ( + path: string, + pollOptions?: { abortSignal?: AbortSignalLike }, + ) => { // This is the callback that is going to be called to poll the service // to get the latest status. We use the client provided and the polling path // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location // depending on the lro pattern that the service implements. If non is provided we default to the initial path. - const response = await client.pathUnchecked(path ?? initialResponse.request.url).get(); + function abortListener(): void { + abortController.abort(); + } + const inputAbortSignal = pollOptions?.abortSignal; + const abortSignal = abortController.signal; + if (inputAbortSignal?.aborted) { + abortController.abort(); + } else if (!abortSignal.aborted) { + inputAbortSignal?.addEventListener("abort", abortListener, { + once: true, + }); + } + let response; + try { + response = await client + .pathUnchecked(path ?? initialResponse.request.url) + .get({ abortSignal }); + } finally { + inputAbortSignal?.removeEventListener("abort", abortListener); + } const lroResponse = getLroResponse(response as TResult); - lroResponse.rawResponse.headers["x-ms-original-url"] = initialResponse.request.url; + lroResponse.rawResponse.headers["x-ms-original-url"] = + initialResponse.request.url; return lroResponse; }, }; options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true; - return createHttpPoller(poller, options); + const httpPoller = createHttpPoller(poller, options); + const simplePoller: SimplePollerLike, TResult> = { + isDone() { + return httpPoller.isDone; + }, + isStopped() { + return abortController.signal.aborted; + }, + getOperationState() { + if (!httpPoller.operationState) { + throw new Error( + "Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().", + ); + } + return httpPoller.operationState; + }, + getResult() { + return httpPoller.result; + }, + toString() { + if (!httpPoller.operationState) { + throw new Error( + "Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().", + ); + } + return JSON.stringify({ + state: httpPoller.operationState, + }); + }, + stopPolling() { + abortController.abort(); + }, + onProgress: httpPoller.onProgress, + poll: httpPoller.poll, + pollUntilDone: httpPoller.pollUntilDone, + serialize: httpPoller.serialize, + submitted: httpPoller.submitted, + }; + return simplePoller; } /** @@ -52,9 +185,13 @@ export async function getLongRunningPoller( * @param response - a rest client http response * @returns - An LRO response that the LRO implementation understands */ -function getLroResponse(response: TResult): LroResponse { +function getLroResponse( + response: TResult, +): OperationResponse { if (Number.isNaN(response.status)) { - throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`); + throw new TypeError( + `Status code of the response is not a number. Value: ${response.status}`, + ); } return { diff --git a/sdk/agrifood/agrifood-farming-rest/src/responses.ts b/sdk/agrifood/agrifood-farming-rest/src/responses.ts index 58f820f8dc15..c999d43cb509 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/responses.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/responses.ts @@ -102,7 +102,8 @@ export interface ApplicationDataListDefaultResponse extends HttpResponse { } /** Create cascade delete job for application data resource. */ -export interface ApplicationDataCreateCascadeDeleteJob202Response extends HttpResponse { +export interface ApplicationDataCreateCascadeDeleteJob202Response + extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -112,14 +113,16 @@ export interface ApplicationDataCreateCascadeDeleteJobDefaultHeaders { } /** Create cascade delete job for application data resource. */ -export interface ApplicationDataCreateCascadeDeleteJobDefaultResponse extends HttpResponse { +export interface ApplicationDataCreateCascadeDeleteJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ApplicationDataCreateCascadeDeleteJobDefaultHeaders; } /** Get cascade delete job for application data resource. */ -export interface ApplicationDataGetCascadeDeleteJobDetails200Response extends HttpResponse { +export interface ApplicationDataGetCascadeDeleteJobDetails200Response + extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -129,10 +132,12 @@ export interface ApplicationDataGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get cascade delete job for application data resource. */ -export interface ApplicationDataGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { +export interface ApplicationDataGetCascadeDeleteJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & ApplicationDataGetCascadeDeleteJobDetailsDefaultHeaders; + headers: RawHttpHeaders & + ApplicationDataGetCascadeDeleteJobDetailsDefaultHeaders; } /** Returns a paginated list of application data resources under a particular party. */ @@ -146,7 +151,8 @@ export interface ApplicationDataListByPartyIdDefaultHeaders { } /** Returns a paginated list of application data resources under a particular party. */ -export interface ApplicationDataListByPartyIdDefaultResponse extends HttpResponse { +export interface ApplicationDataListByPartyIdDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ApplicationDataListByPartyIdDefaultHeaders; @@ -186,7 +192,8 @@ export interface ApplicationDataCreateOrUpdateDefaultHeaders { } /** Creates or updates an application data resource under a particular party. */ -export interface ApplicationDataCreateOrUpdateDefaultResponse extends HttpResponse { +export interface ApplicationDataCreateOrUpdateDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ApplicationDataCreateOrUpdateDefaultHeaders; @@ -195,7 +202,6 @@ export interface ApplicationDataCreateOrUpdateDefaultResponse extends HttpRespon /** Deletes a specified application data resource under a particular party. */ export interface ApplicationDataDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface ApplicationDataDeleteDefaultHeaders { @@ -269,7 +275,6 @@ export interface AttachmentsCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified attachment resource under a particular party. */ export interface AttachmentsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface AttachmentsDeleteDefaultHeaders { @@ -336,7 +341,8 @@ export interface BoundariesSearchDefaultResponse extends HttpResponse { } /** Create a cascade delete job for specified boundary. */ -export interface BoundariesCreateCascadeDeleteJob202Response extends HttpResponse { +export interface BoundariesCreateCascadeDeleteJob202Response + extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -346,14 +352,16 @@ export interface BoundariesCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified boundary. */ -export interface BoundariesCreateCascadeDeleteJobDefaultResponse extends HttpResponse { +export interface BoundariesCreateCascadeDeleteJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & BoundariesCreateCascadeDeleteJobDefaultHeaders; } /** Get cascade delete job for specified boundary. */ -export interface BoundariesGetCascadeDeleteJobDetails200Response extends HttpResponse { +export interface BoundariesGetCascadeDeleteJobDetails200Response + extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -363,7 +371,8 @@ export interface BoundariesGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get cascade delete job for specified boundary. */ -export interface BoundariesGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { +export interface BoundariesGetCascadeDeleteJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & BoundariesGetCascadeDeleteJobDetailsDefaultHeaders; @@ -446,7 +455,6 @@ export interface BoundariesGetDefaultResponse extends HttpResponse { /** Deletes a specified boundary resource under a particular party. */ export interface BoundariesDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface BoundariesDeleteDefaultHeaders { @@ -528,7 +536,8 @@ export interface CropProductsCreateOrUpdateDefaultHeaders { } /** Creates or updates a crop Product resource. */ -export interface CropProductsCreateOrUpdateDefaultResponse extends HttpResponse { +export interface CropProductsCreateOrUpdateDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & CropProductsCreateOrUpdateDefaultHeaders; @@ -537,7 +546,6 @@ export interface CropProductsCreateOrUpdateDefaultResponse extends HttpResponse /** Deletes a specified crop Product resource. */ export interface CropProductsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface CropProductsDeleteDefaultHeaders { @@ -611,7 +619,6 @@ export interface CropsCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes Crop for given crop id. */ export interface CropsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface CropsDeleteDefaultHeaders { @@ -643,13 +650,15 @@ export interface DeviceDataModelsListDefaultResponse extends HttpResponse { } /** Create a device data model entity. */ -export interface DeviceDataModelsCreateOrUpdate200Response extends HttpResponse { +export interface DeviceDataModelsCreateOrUpdate200Response + extends HttpResponse { status: "200"; body: DeviceDataModelOutput; } /** Create a device data model entity. */ -export interface DeviceDataModelsCreateOrUpdate201Response extends HttpResponse { +export interface DeviceDataModelsCreateOrUpdate201Response + extends HttpResponse { status: "201"; body: DeviceDataModelOutput; } @@ -659,7 +668,8 @@ export interface DeviceDataModelsCreateOrUpdateDefaultHeaders { } /** Create a device data model entity. */ -export interface DeviceDataModelsCreateOrUpdateDefaultResponse extends HttpResponse { +export interface DeviceDataModelsCreateOrUpdateDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & DeviceDataModelsCreateOrUpdateDefaultHeaders; @@ -685,7 +695,6 @@ export interface DeviceDataModelsGetDefaultResponse extends HttpResponse { /** Deletes a device data model entity. */ export interface DeviceDataModelsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface DeviceDataModelsDeleteDefaultHeaders { @@ -759,7 +768,6 @@ export interface DevicesGetDefaultResponse extends HttpResponse { /** Deletes a device entity. */ export interface DevicesDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface DevicesDeleteDefaultHeaders { @@ -774,7 +782,8 @@ export interface DevicesDeleteDefaultResponse extends HttpResponse { } /** Create a farm operation data ingestion job. */ -export interface FarmOperationsCreateDataIngestionJob202Response extends HttpResponse { +export interface FarmOperationsCreateDataIngestionJob202Response + extends HttpResponse { status: "202"; body: FarmOperationDataIngestionJobOutput; } @@ -784,14 +793,16 @@ export interface FarmOperationsCreateDataIngestionJobDefaultHeaders { } /** Create a farm operation data ingestion job. */ -export interface FarmOperationsCreateDataIngestionJobDefaultResponse extends HttpResponse { +export interface FarmOperationsCreateDataIngestionJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & FarmOperationsCreateDataIngestionJobDefaultHeaders; } /** Get a farm operation data ingestion job. */ -export interface FarmOperationsGetDataIngestionJobDetails200Response extends HttpResponse { +export interface FarmOperationsGetDataIngestionJobDetails200Response + extends HttpResponse { status: "200"; body: FarmOperationDataIngestionJobOutput; } @@ -801,10 +812,12 @@ export interface FarmOperationsGetDataIngestionJobDetailsDefaultHeaders { } /** Get a farm operation data ingestion job. */ -export interface FarmOperationsGetDataIngestionJobDetailsDefaultResponse extends HttpResponse { +export interface FarmOperationsGetDataIngestionJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & FarmOperationsGetDataIngestionJobDetailsDefaultHeaders; + headers: RawHttpHeaders & + FarmOperationsGetDataIngestionJobDetailsDefaultHeaders; } /** Returns a paginated list of farm resources across all parties. */ @@ -835,14 +848,16 @@ export interface FarmsCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified farm. */ -export interface FarmsCreateCascadeDeleteJobDefaultResponse extends HttpResponse { +export interface FarmsCreateCascadeDeleteJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & FarmsCreateCascadeDeleteJobDefaultHeaders; } /** Get a cascade delete job for specified farm. */ -export interface FarmsGetCascadeDeleteJobDetails200Response extends HttpResponse { +export interface FarmsGetCascadeDeleteJobDetails200Response + extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -852,7 +867,8 @@ export interface FarmsGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get a cascade delete job for specified farm. */ -export interface FarmsGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { +export interface FarmsGetCascadeDeleteJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & FarmsGetCascadeDeleteJobDetailsDefaultHeaders; @@ -918,7 +934,6 @@ export interface FarmsCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified farm resource under a particular party. */ export interface FarmsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface FarmsDeleteDefaultHeaders { @@ -950,7 +965,8 @@ export interface FieldsListDefaultResponse extends HttpResponse { } /** Get a cascade delete job for specified field. */ -export interface FieldsGetCascadeDeleteJobDetails200Response extends HttpResponse { +export interface FieldsGetCascadeDeleteJobDetails200Response + extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -960,7 +976,8 @@ export interface FieldsGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get a cascade delete job for specified field. */ -export interface FieldsGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { +export interface FieldsGetCascadeDeleteJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & FieldsGetCascadeDeleteJobDetailsDefaultHeaders; @@ -977,7 +994,8 @@ export interface FieldsCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified field. */ -export interface FieldsCreateCascadeDeleteJobDefaultResponse extends HttpResponse { +export interface FieldsCreateCascadeDeleteJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & FieldsCreateCascadeDeleteJobDefaultHeaders; @@ -1043,7 +1061,6 @@ export interface FieldsCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified field resource under a particular party. */ export interface FieldsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface FieldsDeleteDefaultHeaders { @@ -1075,7 +1092,8 @@ export interface HarvestDataListDefaultResponse extends HttpResponse { } /** Create cascade delete job for harvest data resource. */ -export interface HarvestDataCreateCascadeDeleteJob202Response extends HttpResponse { +export interface HarvestDataCreateCascadeDeleteJob202Response + extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -1085,14 +1103,16 @@ export interface HarvestDataCreateCascadeDeleteJobDefaultHeaders { } /** Create cascade delete job for harvest data resource. */ -export interface HarvestDataCreateCascadeDeleteJobDefaultResponse extends HttpResponse { +export interface HarvestDataCreateCascadeDeleteJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & HarvestDataCreateCascadeDeleteJobDefaultHeaders; } /** Get cascade delete job for harvest data resource. */ -export interface HarvestDataGetCascadeDeleteJobDetails200Response extends HttpResponse { +export interface HarvestDataGetCascadeDeleteJobDetails200Response + extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -1102,7 +1122,8 @@ export interface HarvestDataGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get cascade delete job for harvest data resource. */ -export interface HarvestDataGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { +export interface HarvestDataGetCascadeDeleteJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & HarvestDataGetCascadeDeleteJobDetailsDefaultHeaders; @@ -1168,7 +1189,6 @@ export interface HarvestDataCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified harvest data resource under a particular party. */ export interface HarvestDataDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface HarvestDataDeleteDefaultHeaders { @@ -1183,7 +1203,8 @@ export interface HarvestDataDeleteDefaultResponse extends HttpResponse { } /** Create a ImageProcessing Rasterize job. */ -export interface ImageProcessingCreateRasterizeJob202Response extends HttpResponse { +export interface ImageProcessingCreateRasterizeJob202Response + extends HttpResponse { status: "202"; body: ImageProcessingRasterizeJobOutput; } @@ -1193,14 +1214,16 @@ export interface ImageProcessingCreateRasterizeJobDefaultHeaders { } /** Create a ImageProcessing Rasterize job. */ -export interface ImageProcessingCreateRasterizeJobDefaultResponse extends HttpResponse { +export interface ImageProcessingCreateRasterizeJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ImageProcessingCreateRasterizeJobDefaultHeaders; } /** Get ImageProcessing Rasterize job's details. */ -export interface ImageProcessingGetRasterizeJob200Response extends HttpResponse { +export interface ImageProcessingGetRasterizeJob200Response + extends HttpResponse { status: "200"; body: ImageProcessingRasterizeJobOutput; } @@ -1210,14 +1233,16 @@ export interface ImageProcessingGetRasterizeJobDefaultHeaders { } /** Get ImageProcessing Rasterize job's details. */ -export interface ImageProcessingGetRasterizeJobDefaultResponse extends HttpResponse { +export interface ImageProcessingGetRasterizeJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ImageProcessingGetRasterizeJobDefaultHeaders; } /** Returns a paginated list of insight resources. */ -export interface InsightAttachmentsListByPartyIdModelIdAndResource200Response extends HttpResponse { +export interface InsightAttachmentsListByPartyIdModelIdAndResource200Response + extends HttpResponse { status: "200"; body: InsightAttachmentListResponseOutput; } @@ -1231,17 +1256,20 @@ export interface InsightAttachmentsListByPartyIdModelIdAndResourceDefaultRespons extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & InsightAttachmentsListByPartyIdModelIdAndResourceDefaultHeaders; + headers: RawHttpHeaders & + InsightAttachmentsListByPartyIdModelIdAndResourceDefaultHeaders; } /** Creates or updates insight entity. */ -export interface InsightAttachmentsCreateOrUpdate200Response extends HttpResponse { +export interface InsightAttachmentsCreateOrUpdate200Response + extends HttpResponse { status: "200"; body: InsightAttachmentOutput; } /** Creates or updates insight entity. */ -export interface InsightAttachmentsCreateOrUpdate201Response extends HttpResponse { +export interface InsightAttachmentsCreateOrUpdate201Response + extends HttpResponse { status: "201"; body: InsightAttachmentOutput; } @@ -1251,7 +1279,8 @@ export interface InsightAttachmentsCreateOrUpdateDefaultHeaders { } /** Creates or updates insight entity. */ -export interface InsightAttachmentsCreateOrUpdateDefaultResponse extends HttpResponse { +export interface InsightAttachmentsCreateOrUpdateDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & InsightAttachmentsCreateOrUpdateDefaultHeaders; @@ -1277,7 +1306,6 @@ export interface InsightAttachmentsGetDefaultResponse extends HttpResponse { /** Deletes a specified insight resource. */ export interface InsightAttachmentsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface InsightAttachmentsDeleteDefaultHeaders { @@ -1303,14 +1331,16 @@ export interface InsightAttachmentsDownloadDefaultHeaders { } /** Downloads and returns insight-attachment as response for the given input filePath. */ -export interface InsightAttachmentsDownloadDefaultResponse extends HttpResponse { +export interface InsightAttachmentsDownloadDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & InsightAttachmentsDownloadDefaultHeaders; } /** Create a cascade delete job for insights specified partyId/modelId/resourceType/resourceId. */ -export interface InsightsCreateCascadeDeleteJob202Response extends HttpResponse { +export interface InsightsCreateCascadeDeleteJob202Response + extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -1320,14 +1350,16 @@ export interface InsightsCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for insights specified partyId/modelId/resourceType/resourceId. */ -export interface InsightsCreateCascadeDeleteJobDefaultResponse extends HttpResponse { +export interface InsightsCreateCascadeDeleteJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & InsightsCreateCascadeDeleteJobDefaultHeaders; } /** Get a cascade delete job for specified insight. */ -export interface InsightsGetCascadeDeleteJobDetails200Response extends HttpResponse { +export interface InsightsGetCascadeDeleteJobDetails200Response + extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -1337,14 +1369,16 @@ export interface InsightsGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get a cascade delete job for specified insight. */ -export interface InsightsGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { +export interface InsightsGetCascadeDeleteJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & InsightsGetCascadeDeleteJobDetailsDefaultHeaders; } /** Returns a paginated list of insight resources. */ -export interface InsightsListByPartyIdModelIdAndResource200Response extends HttpResponse { +export interface InsightsListByPartyIdModelIdAndResource200Response + extends HttpResponse { status: "200"; body: InsightListResponseOutput; } @@ -1354,10 +1388,12 @@ export interface InsightsListByPartyIdModelIdAndResourceDefaultHeaders { } /** Returns a paginated list of insight resources. */ -export interface InsightsListByPartyIdModelIdAndResourceDefaultResponse extends HttpResponse { +export interface InsightsListByPartyIdModelIdAndResourceDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & InsightsListByPartyIdModelIdAndResourceDefaultHeaders; + headers: RawHttpHeaders & + InsightsListByPartyIdModelIdAndResourceDefaultHeaders; } /** Creates or updates insight entity. */ @@ -1403,7 +1439,6 @@ export interface InsightsGetDefaultResponse extends HttpResponse { /** Deletes a specified insight resource. */ export interface InsightsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface InsightsDeleteDefaultHeaders { @@ -1435,7 +1470,8 @@ export interface ManagementZonesListDefaultResponse extends HttpResponse { } /** Get a cascade delete job for specified job id. */ -export interface ManagementZonesGetCascadeDeleteJobDetails200Response extends HttpResponse { +export interface ManagementZonesGetCascadeDeleteJobDetails200Response + extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -1445,14 +1481,17 @@ export interface ManagementZonesGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get a cascade delete job for specified job id. */ -export interface ManagementZonesGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { +export interface ManagementZonesGetCascadeDeleteJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & ManagementZonesGetCascadeDeleteJobDetailsDefaultHeaders; + headers: RawHttpHeaders & + ManagementZonesGetCascadeDeleteJobDetailsDefaultHeaders; } /** Create a cascade delete job for specified management zone. */ -export interface ManagementZonesCreateCascadeDeleteJob202Response extends HttpResponse { +export interface ManagementZonesCreateCascadeDeleteJob202Response + extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -1462,7 +1501,8 @@ export interface ManagementZonesCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified management zone. */ -export interface ManagementZonesCreateCascadeDeleteJobDefaultResponse extends HttpResponse { +export interface ManagementZonesCreateCascadeDeleteJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ManagementZonesCreateCascadeDeleteJobDefaultHeaders; @@ -1479,7 +1519,8 @@ export interface ManagementZonesListByPartyIdDefaultHeaders { } /** Returns a paginated list of management zone resources under a particular party. */ -export interface ManagementZonesListByPartyIdDefaultResponse extends HttpResponse { +export interface ManagementZonesListByPartyIdDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ManagementZonesListByPartyIdDefaultHeaders; @@ -1519,7 +1560,8 @@ export interface ManagementZonesCreateOrUpdateDefaultHeaders { } /** Creates or updates a management zone resource. */ -export interface ManagementZonesCreateOrUpdateDefaultResponse extends HttpResponse { +export interface ManagementZonesCreateOrUpdateDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ManagementZonesCreateOrUpdateDefaultHeaders; @@ -1528,7 +1570,6 @@ export interface ManagementZonesCreateOrUpdateDefaultResponse extends HttpRespon /** Deletes a specified management zone resource under a particular party. */ export interface ManagementZonesDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface ManagementZonesDeleteDefaultHeaders { @@ -1543,7 +1584,8 @@ export interface ManagementZonesDeleteDefaultResponse extends HttpResponse { } /** Create a Biomass Model job. */ -export interface ModelInferenceCreateBiomassModelJob202Response extends HttpResponse { +export interface ModelInferenceCreateBiomassModelJob202Response + extends HttpResponse { status: "202"; body: BiomassModelJobOutput; } @@ -1553,14 +1595,16 @@ export interface ModelInferenceCreateBiomassModelJobDefaultHeaders { } /** Create a Biomass Model job. */ -export interface ModelInferenceCreateBiomassModelJobDefaultResponse extends HttpResponse { +export interface ModelInferenceCreateBiomassModelJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ModelInferenceCreateBiomassModelJobDefaultHeaders; } /** Get Biomass Model job's details. */ -export interface ModelInferenceGetBiomassModelJob200Response extends HttpResponse { +export interface ModelInferenceGetBiomassModelJob200Response + extends HttpResponse { status: "200"; body: BiomassModelJobOutput; } @@ -1570,14 +1614,16 @@ export interface ModelInferenceGetBiomassModelJobDefaultHeaders { } /** Get Biomass Model job's details. */ -export interface ModelInferenceGetBiomassModelJobDefaultResponse extends HttpResponse { +export interface ModelInferenceGetBiomassModelJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ModelInferenceGetBiomassModelJobDefaultHeaders; } /** Create a Sensor Placement Model job. */ -export interface ModelInferenceCreateSensorPlacementModelJob202Response extends HttpResponse { +export interface ModelInferenceCreateSensorPlacementModelJob202Response + extends HttpResponse { status: "202"; body: SensorPlacementModelJobOutput; } @@ -1587,14 +1633,17 @@ export interface ModelInferenceCreateSensorPlacementModelJobDefaultHeaders { } /** Create a Sensor Placement Model job. */ -export interface ModelInferenceCreateSensorPlacementModelJobDefaultResponse extends HttpResponse { +export interface ModelInferenceCreateSensorPlacementModelJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & ModelInferenceCreateSensorPlacementModelJobDefaultHeaders; + headers: RawHttpHeaders & + ModelInferenceCreateSensorPlacementModelJobDefaultHeaders; } /** Get Sensor Placement Model job's details. */ -export interface ModelInferenceGetSensorPlacementModelJob200Response extends HttpResponse { +export interface ModelInferenceGetSensorPlacementModelJob200Response + extends HttpResponse { status: "200"; body: SensorPlacementModelJobOutput; } @@ -1604,14 +1653,17 @@ export interface ModelInferenceGetSensorPlacementModelJobDefaultHeaders { } /** Get Sensor Placement Model job's details. */ -export interface ModelInferenceGetSensorPlacementModelJobDefaultResponse extends HttpResponse { +export interface ModelInferenceGetSensorPlacementModelJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & ModelInferenceGetSensorPlacementModelJobDefaultHeaders; + headers: RawHttpHeaders & + ModelInferenceGetSensorPlacementModelJobDefaultHeaders; } /** Create a SoilMoisture Model job. */ -export interface ModelInferenceCreateSoilMoistureModelJob202Response extends HttpResponse { +export interface ModelInferenceCreateSoilMoistureModelJob202Response + extends HttpResponse { status: "202"; body: SoilMoistureModelJobOutput; } @@ -1621,14 +1673,17 @@ export interface ModelInferenceCreateSoilMoistureModelJobDefaultHeaders { } /** Create a SoilMoisture Model job. */ -export interface ModelInferenceCreateSoilMoistureModelJobDefaultResponse extends HttpResponse { +export interface ModelInferenceCreateSoilMoistureModelJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & ModelInferenceCreateSoilMoistureModelJobDefaultHeaders; + headers: RawHttpHeaders & + ModelInferenceCreateSoilMoistureModelJobDefaultHeaders; } /** Get SoilMoisture Model job's details. */ -export interface ModelInferenceGetSoilMoistureModelJob200Response extends HttpResponse { +export interface ModelInferenceGetSoilMoistureModelJob200Response + extends HttpResponse { status: "200"; body: SoilMoistureModelJobOutput; } @@ -1638,7 +1693,8 @@ export interface ModelInferenceGetSoilMoistureModelJobDefaultHeaders { } /** Get SoilMoisture Model job's details. */ -export interface ModelInferenceGetSoilMoistureModelJobDefaultResponse extends HttpResponse { +export interface ModelInferenceGetSoilMoistureModelJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ModelInferenceGetSoilMoistureModelJobDefaultHeaders; @@ -1672,7 +1728,8 @@ export interface NutrientAnalysesListByPartyIdDefaultHeaders { } /** Returns a paginated list of nutrient analysis resources under a particular party. */ -export interface NutrientAnalysesListByPartyIdDefaultResponse extends HttpResponse { +export interface NutrientAnalysesListByPartyIdDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & NutrientAnalysesListByPartyIdDefaultHeaders; @@ -1696,13 +1753,15 @@ export interface NutrientAnalysesGetDefaultResponse extends HttpResponse { } /** Creates or updates a nutrient analysis resource. */ -export interface NutrientAnalysesCreateOrUpdate200Response extends HttpResponse { +export interface NutrientAnalysesCreateOrUpdate200Response + extends HttpResponse { status: "200"; body: NutrientAnalysisOutput; } /** Creates or updates a nutrient analysis resource. */ -export interface NutrientAnalysesCreateOrUpdate201Response extends HttpResponse { +export interface NutrientAnalysesCreateOrUpdate201Response + extends HttpResponse { status: "201"; body: NutrientAnalysisOutput; } @@ -1712,7 +1771,8 @@ export interface NutrientAnalysesCreateOrUpdateDefaultHeaders { } /** Creates or updates a nutrient analysis resource. */ -export interface NutrientAnalysesCreateOrUpdateDefaultResponse extends HttpResponse { +export interface NutrientAnalysesCreateOrUpdateDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & NutrientAnalysesCreateOrUpdateDefaultHeaders; @@ -1721,7 +1781,6 @@ export interface NutrientAnalysesCreateOrUpdateDefaultResponse extends HttpRespo /** Deletes a specified nutrient analysis resource under a particular party. */ export interface NutrientAnalysesDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface NutrientAnalysesDeleteDefaultHeaders { @@ -1786,7 +1845,8 @@ export interface OAuthProvidersCreateOrUpdateDefaultHeaders { } /** Creates or updates an oauthProvider resource. */ -export interface OAuthProvidersCreateOrUpdateDefaultResponse extends HttpResponse { +export interface OAuthProvidersCreateOrUpdateDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & OAuthProvidersCreateOrUpdateDefaultHeaders; @@ -1795,7 +1855,6 @@ export interface OAuthProvidersCreateOrUpdateDefaultResponse extends HttpRespons /** Deletes an specified oauthProvider resource. */ export interface OAuthProvidersDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface OAuthProvidersDeleteDefaultHeaders { @@ -1810,7 +1869,8 @@ export interface OAuthProvidersDeleteDefaultResponse extends HttpResponse { } /** Get cascade delete job for oauthProvider resource. */ -export interface OAuthProvidersGetCascadeDeleteJobDetails200Response extends HttpResponse { +export interface OAuthProvidersGetCascadeDeleteJobDetails200Response + extends HttpResponse { status: "200"; body: OAuthProviderCascadeDeleteJobOutput; } @@ -1820,14 +1880,17 @@ export interface OAuthProvidersGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get cascade delete job for oauthProvider resource. */ -export interface OAuthProvidersGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { +export interface OAuthProvidersGetCascadeDeleteJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & OAuthProvidersGetCascadeDeleteJobDetailsDefaultHeaders; + headers: RawHttpHeaders & + OAuthProvidersGetCascadeDeleteJobDetailsDefaultHeaders; } /** Create cascade delete job for oauthProvider resource. */ -export interface OAuthProvidersCreateCascadeDeleteJob202Response extends HttpResponse { +export interface OAuthProvidersCreateCascadeDeleteJob202Response + extends HttpResponse { status: "202"; body: OAuthProviderCascadeDeleteJobOutput; } @@ -1837,7 +1900,8 @@ export interface OAuthProvidersCreateCascadeDeleteJobDefaultHeaders { } /** Create cascade delete job for oauthProvider resource. */ -export interface OAuthProvidersCreateCascadeDeleteJobDefaultResponse extends HttpResponse { +export interface OAuthProvidersCreateCascadeDeleteJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & OAuthProvidersCreateCascadeDeleteJobDefaultHeaders; @@ -1861,7 +1925,8 @@ export interface OAuthTokensListDefaultResponse extends HttpResponse { } /** Returns Connection link needed in the OAuth flow. */ -export interface OAuthTokensGetOAuthConnectionLink200Response extends HttpResponse { +export interface OAuthTokensGetOAuthConnectionLink200Response + extends HttpResponse { status: "200"; body: string; } @@ -1871,14 +1936,16 @@ export interface OAuthTokensGetOAuthConnectionLinkDefaultHeaders { } /** Returns Connection link needed in the OAuth flow. */ -export interface OAuthTokensGetOAuthConnectionLinkDefaultResponse extends HttpResponse { +export interface OAuthTokensGetOAuthConnectionLinkDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & OAuthTokensGetOAuthConnectionLinkDefaultHeaders; } /** Get remove job for OAuth token. */ -export interface OAuthTokensGetCascadeDeleteJobDetails200Response extends HttpResponse { +export interface OAuthTokensGetCascadeDeleteJobDetails200Response + extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -1888,14 +1955,16 @@ export interface OAuthTokensGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get remove job for OAuth token. */ -export interface OAuthTokensGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { +export interface OAuthTokensGetCascadeDeleteJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & OAuthTokensGetCascadeDeleteJobDetailsDefaultHeaders; } /** Create remove job for OAuth token. */ -export interface OAuthTokensCreateCascadeDeleteJob202Response extends HttpResponse { +export interface OAuthTokensCreateCascadeDeleteJob202Response + extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -1905,7 +1974,8 @@ export interface OAuthTokensCreateCascadeDeleteJobDefaultHeaders { } /** Create remove job for OAuth token. */ -export interface OAuthTokensCreateCascadeDeleteJobDefaultResponse extends HttpResponse { +export interface OAuthTokensCreateCascadeDeleteJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & OAuthTokensCreateCascadeDeleteJobDefaultHeaders; @@ -1971,7 +2041,6 @@ export interface PartiesCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified party resource. */ export interface PartiesDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface PartiesDeleteDefaultHeaders { @@ -1986,7 +2055,8 @@ export interface PartiesDeleteDefaultResponse extends HttpResponse { } /** Get a cascade delete job for specified party. */ -export interface PartiesGetCascadeDeleteJobDetails200Response extends HttpResponse { +export interface PartiesGetCascadeDeleteJobDetails200Response + extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -1996,7 +2066,8 @@ export interface PartiesGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get a cascade delete job for specified party. */ -export interface PartiesGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { +export interface PartiesGetCascadeDeleteJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PartiesGetCascadeDeleteJobDetailsDefaultHeaders; @@ -2013,7 +2084,8 @@ export interface PartiesCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified party. */ -export interface PartiesCreateCascadeDeleteJobDefaultResponse extends HttpResponse { +export interface PartiesCreateCascadeDeleteJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PartiesCreateCascadeDeleteJobDefaultHeaders; @@ -2070,7 +2142,8 @@ export interface PlantingDataCreateOrUpdateDefaultHeaders { } /** Creates or updates an planting data resource under a particular party. */ -export interface PlantingDataCreateOrUpdateDefaultResponse extends HttpResponse { +export interface PlantingDataCreateOrUpdateDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PlantingDataCreateOrUpdateDefaultHeaders; @@ -2079,7 +2152,6 @@ export interface PlantingDataCreateOrUpdateDefaultResponse extends HttpResponse /** Deletes a specified planting data resource under a particular party. */ export interface PlantingDataDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface PlantingDataDeleteDefaultHeaders { @@ -2111,7 +2183,8 @@ export interface PlantingDataListDefaultResponse extends HttpResponse { } /** Create cascade delete job for planting data resource. */ -export interface PlantingDataCreateCascadeDeleteJob202Response extends HttpResponse { +export interface PlantingDataCreateCascadeDeleteJob202Response + extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -2121,14 +2194,16 @@ export interface PlantingDataCreateCascadeDeleteJobDefaultHeaders { } /** Create cascade delete job for planting data resource. */ -export interface PlantingDataCreateCascadeDeleteJobDefaultResponse extends HttpResponse { +export interface PlantingDataCreateCascadeDeleteJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PlantingDataCreateCascadeDeleteJobDefaultHeaders; } /** Get cascade delete job for planting data resource. */ -export interface PlantingDataGetCascadeDeleteJobDetails200Response extends HttpResponse { +export interface PlantingDataGetCascadeDeleteJobDetails200Response + extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -2138,14 +2213,17 @@ export interface PlantingDataGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get cascade delete job for planting data resource. */ -export interface PlantingDataGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { +export interface PlantingDataGetCascadeDeleteJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & PlantingDataGetCascadeDeleteJobDetailsDefaultHeaders; + headers: RawHttpHeaders & + PlantingDataGetCascadeDeleteJobDetailsDefaultHeaders; } /** Returns a paginated list of plant tissue analysis resources under a particular party. */ -export interface PlantTissueAnalysesListByPartyId200Response extends HttpResponse { +export interface PlantTissueAnalysesListByPartyId200Response + extends HttpResponse { status: "200"; body: PlantTissueAnalysisListResponseOutput; } @@ -2155,7 +2233,8 @@ export interface PlantTissueAnalysesListByPartyIdDefaultHeaders { } /** Returns a paginated list of plant tissue analysis resources under a particular party. */ -export interface PlantTissueAnalysesListByPartyIdDefaultResponse extends HttpResponse { +export interface PlantTissueAnalysesListByPartyIdDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PlantTissueAnalysesListByPartyIdDefaultHeaders; @@ -2179,13 +2258,15 @@ export interface PlantTissueAnalysesGetDefaultResponse extends HttpResponse { } /** Creates or updates a plant tissue analysis resource. */ -export interface PlantTissueAnalysesCreateOrUpdate200Response extends HttpResponse { +export interface PlantTissueAnalysesCreateOrUpdate200Response + extends HttpResponse { status: "200"; body: PlantTissueAnalysisOutput; } /** Creates or updates a plant tissue analysis resource. */ -export interface PlantTissueAnalysesCreateOrUpdate201Response extends HttpResponse { +export interface PlantTissueAnalysesCreateOrUpdate201Response + extends HttpResponse { status: "201"; body: PlantTissueAnalysisOutput; } @@ -2195,7 +2276,8 @@ export interface PlantTissueAnalysesCreateOrUpdateDefaultHeaders { } /** Creates or updates a plant tissue analysis resource. */ -export interface PlantTissueAnalysesCreateOrUpdateDefaultResponse extends HttpResponse { +export interface PlantTissueAnalysesCreateOrUpdateDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PlantTissueAnalysesCreateOrUpdateDefaultHeaders; @@ -2204,7 +2286,6 @@ export interface PlantTissueAnalysesCreateOrUpdateDefaultResponse extends HttpRe /** Deletes a specified plant tissue analysis resource under a particular party. */ export interface PlantTissueAnalysesDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface PlantTissueAnalysesDeleteDefaultHeaders { @@ -2236,7 +2317,8 @@ export interface PlantTissueAnalysesListDefaultResponse extends HttpResponse { } /** Create a cascade delete job for specified plant tissue analysis. */ -export interface PlantTissueAnalysesCreateCascadeDeleteJob202Response extends HttpResponse { +export interface PlantTissueAnalysesCreateCascadeDeleteJob202Response + extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -2246,14 +2328,17 @@ export interface PlantTissueAnalysesCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified plant tissue analysis. */ -export interface PlantTissueAnalysesCreateCascadeDeleteJobDefaultResponse extends HttpResponse { +export interface PlantTissueAnalysesCreateCascadeDeleteJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & PlantTissueAnalysesCreateCascadeDeleteJobDefaultHeaders; + headers: RawHttpHeaders & + PlantTissueAnalysesCreateCascadeDeleteJobDefaultHeaders; } /** Get a cascade delete job for specified plant tissue analysis. */ -export interface PlantTissueAnalysesGetCascadeDeleteJobDetails200Response extends HttpResponse { +export interface PlantTissueAnalysesGetCascadeDeleteJobDetails200Response + extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -2263,10 +2348,12 @@ export interface PlantTissueAnalysesGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get a cascade delete job for specified plant tissue analysis. */ -export interface PlantTissueAnalysesGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { +export interface PlantTissueAnalysesGetCascadeDeleteJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & PlantTissueAnalysesGetCascadeDeleteJobDetailsDefaultHeaders; + headers: RawHttpHeaders & + PlantTissueAnalysesGetCascadeDeleteJobDetailsDefaultHeaders; } /** Returns a paginated list of prescription map resources under a particular party. */ @@ -2280,7 +2367,8 @@ export interface PrescriptionMapsListByPartyIdDefaultHeaders { } /** Returns a paginated list of prescription map resources under a particular party. */ -export interface PrescriptionMapsListByPartyIdDefaultResponse extends HttpResponse { +export interface PrescriptionMapsListByPartyIdDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PrescriptionMapsListByPartyIdDefaultHeaders; @@ -2304,13 +2392,15 @@ export interface PrescriptionMapsGetDefaultResponse extends HttpResponse { } /** Creates or Updates a prescription map resource under a particular party. */ -export interface PrescriptionMapsCreateOrUpdate200Response extends HttpResponse { +export interface PrescriptionMapsCreateOrUpdate200Response + extends HttpResponse { status: "200"; body: PrescriptionMapOutput; } /** Creates or Updates a prescription map resource under a particular party. */ -export interface PrescriptionMapsCreateOrUpdate201Response extends HttpResponse { +export interface PrescriptionMapsCreateOrUpdate201Response + extends HttpResponse { status: "201"; body: PrescriptionMapOutput; } @@ -2320,7 +2410,8 @@ export interface PrescriptionMapsCreateOrUpdateDefaultHeaders { } /** Creates or Updates a prescription map resource under a particular party. */ -export interface PrescriptionMapsCreateOrUpdateDefaultResponse extends HttpResponse { +export interface PrescriptionMapsCreateOrUpdateDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PrescriptionMapsCreateOrUpdateDefaultHeaders; @@ -2329,7 +2420,6 @@ export interface PrescriptionMapsCreateOrUpdateDefaultResponse extends HttpRespo /** Deletes a specified prescription map resource under a particular party. */ export interface PrescriptionMapsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface PrescriptionMapsDeleteDefaultHeaders { @@ -2361,7 +2451,8 @@ export interface PrescriptionMapsListDefaultResponse extends HttpResponse { } /** Get a cascade delete job for specified prescription map. */ -export interface PrescriptionMapsGetCascadeDeleteJobDetails200Response extends HttpResponse { +export interface PrescriptionMapsGetCascadeDeleteJobDetails200Response + extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -2371,14 +2462,17 @@ export interface PrescriptionMapsGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get a cascade delete job for specified prescription map. */ -export interface PrescriptionMapsGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { +export interface PrescriptionMapsGetCascadeDeleteJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & PrescriptionMapsGetCascadeDeleteJobDetailsDefaultHeaders; + headers: RawHttpHeaders & + PrescriptionMapsGetCascadeDeleteJobDetailsDefaultHeaders; } /** Create a cascade delete job for specified prescription map. */ -export interface PrescriptionMapsCreateCascadeDeleteJob202Response extends HttpResponse { +export interface PrescriptionMapsCreateCascadeDeleteJob202Response + extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -2388,10 +2482,12 @@ export interface PrescriptionMapsCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified prescription map. */ -export interface PrescriptionMapsCreateCascadeDeleteJobDefaultResponse extends HttpResponse { +export interface PrescriptionMapsCreateCascadeDeleteJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & PrescriptionMapsCreateCascadeDeleteJobDefaultHeaders; + headers: RawHttpHeaders & + PrescriptionMapsCreateCascadeDeleteJobDefaultHeaders; } /** Returns a paginated list of prescription resources under a particular party. */ @@ -2405,7 +2501,8 @@ export interface PrescriptionsListByPartyIdDefaultHeaders { } /** Returns a paginated list of prescription resources under a particular party. */ -export interface PrescriptionsListByPartyIdDefaultResponse extends HttpResponse { +export interface PrescriptionsListByPartyIdDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PrescriptionsListByPartyIdDefaultHeaders; @@ -2445,7 +2542,8 @@ export interface PrescriptionsCreateOrUpdateDefaultHeaders { } /** Creates or Updates a prescription resource under a particular party. */ -export interface PrescriptionsCreateOrUpdateDefaultResponse extends HttpResponse { +export interface PrescriptionsCreateOrUpdateDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PrescriptionsCreateOrUpdateDefaultHeaders; @@ -2454,7 +2552,6 @@ export interface PrescriptionsCreateOrUpdateDefaultResponse extends HttpResponse /** Deletes a specified prescription resource under a particular party. */ export interface PrescriptionsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface PrescriptionsDeleteDefaultHeaders { @@ -2486,7 +2583,8 @@ export interface PrescriptionsListDefaultResponse extends HttpResponse { } /** Get a cascade delete job for specified prescription. */ -export interface PrescriptionsGetCascadeDeleteJobDetails200Response extends HttpResponse { +export interface PrescriptionsGetCascadeDeleteJobDetails200Response + extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -2496,14 +2594,17 @@ export interface PrescriptionsGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get a cascade delete job for specified prescription. */ -export interface PrescriptionsGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { +export interface PrescriptionsGetCascadeDeleteJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & PrescriptionsGetCascadeDeleteJobDetailsDefaultHeaders; + headers: RawHttpHeaders & + PrescriptionsGetCascadeDeleteJobDetailsDefaultHeaders; } /** Create a cascade delete job for specified prescription. */ -export interface PrescriptionsCreateCascadeDeleteJob202Response extends HttpResponse { +export interface PrescriptionsCreateCascadeDeleteJob202Response + extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -2513,7 +2614,8 @@ export interface PrescriptionsCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified prescription. */ -export interface PrescriptionsCreateCascadeDeleteJobDefaultResponse extends HttpResponse { +export interface PrescriptionsCreateCascadeDeleteJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PrescriptionsCreateCascadeDeleteJobDefaultHeaders; @@ -2555,7 +2657,8 @@ export interface ScenesDownloadDefaultResponse extends HttpResponse { } /** Create a satellite data ingestion job. */ -export interface ScenesCreateSatelliteDataIngestionJob202Response extends HttpResponse { +export interface ScenesCreateSatelliteDataIngestionJob202Response + extends HttpResponse { status: "202"; body: SatelliteDataIngestionJobOutput; } @@ -2565,14 +2668,16 @@ export interface ScenesCreateSatelliteDataIngestionJobDefaultHeaders { } /** Create a satellite data ingestion job. */ -export interface ScenesCreateSatelliteDataIngestionJobDefaultResponse extends HttpResponse { +export interface ScenesCreateSatelliteDataIngestionJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ScenesCreateSatelliteDataIngestionJobDefaultHeaders; } /** Get a satellite data ingestion job. */ -export interface ScenesGetSatelliteDataIngestionJobDetails200Response extends HttpResponse { +export interface ScenesGetSatelliteDataIngestionJobDetails200Response + extends HttpResponse { status: "200"; body: SatelliteDataIngestionJobOutput; } @@ -2582,10 +2687,12 @@ export interface ScenesGetSatelliteDataIngestionJobDetailsDefaultHeaders { } /** Get a satellite data ingestion job. */ -export interface ScenesGetSatelliteDataIngestionJobDetailsDefaultResponse extends HttpResponse { +export interface ScenesGetSatelliteDataIngestionJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & ScenesGetSatelliteDataIngestionJobDetailsDefaultHeaders; + headers: RawHttpHeaders & + ScenesGetSatelliteDataIngestionJobDetailsDefaultHeaders; } /** Search for STAC features by collection id, bbox, intersecting geometry, start and end datetime. */ @@ -2633,7 +2740,8 @@ export interface SeasonalFieldsListByPartyIdDefaultHeaders { } /** Returns a paginated list of seasonal field resources under a particular party. */ -export interface SeasonalFieldsListByPartyIdDefaultResponse extends HttpResponse { +export interface SeasonalFieldsListByPartyIdDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SeasonalFieldsListByPartyIdDefaultHeaders; @@ -2673,7 +2781,8 @@ export interface SeasonalFieldsCreateOrUpdateDefaultHeaders { } /** Creates or Updates a seasonal field resource under a particular party. */ -export interface SeasonalFieldsCreateOrUpdateDefaultResponse extends HttpResponse { +export interface SeasonalFieldsCreateOrUpdateDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SeasonalFieldsCreateOrUpdateDefaultHeaders; @@ -2682,7 +2791,6 @@ export interface SeasonalFieldsCreateOrUpdateDefaultResponse extends HttpRespons /** Deletes a specified seasonal-field resource under a particular party. */ export interface SeasonalFieldsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface SeasonalFieldsDeleteDefaultHeaders { @@ -2714,7 +2822,8 @@ export interface SeasonalFieldsListDefaultResponse extends HttpResponse { } /** Get cascade delete job for specified seasonal field. */ -export interface SeasonalFieldsGetCascadeDeleteJobDetails200Response extends HttpResponse { +export interface SeasonalFieldsGetCascadeDeleteJobDetails200Response + extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -2724,14 +2833,17 @@ export interface SeasonalFieldsGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get cascade delete job for specified seasonal field. */ -export interface SeasonalFieldsGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { +export interface SeasonalFieldsGetCascadeDeleteJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & SeasonalFieldsGetCascadeDeleteJobDetailsDefaultHeaders; + headers: RawHttpHeaders & + SeasonalFieldsGetCascadeDeleteJobDetailsDefaultHeaders; } /** Create a cascade delete job for specified seasonal field. */ -export interface SeasonalFieldsCreateCascadeDeleteJob202Response extends HttpResponse { +export interface SeasonalFieldsCreateCascadeDeleteJob202Response + extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -2741,7 +2853,8 @@ export interface SeasonalFieldsCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified seasonal field. */ -export interface SeasonalFieldsCreateCascadeDeleteJobDefaultResponse extends HttpResponse { +export interface SeasonalFieldsCreateCascadeDeleteJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SeasonalFieldsCreateCascadeDeleteJobDefaultHeaders; @@ -2807,7 +2920,6 @@ export interface SeasonsCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified season resource. */ export interface SeasonsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface SeasonsDeleteDefaultHeaders { @@ -2839,13 +2951,15 @@ export interface SensorDataModelsListDefaultResponse extends HttpResponse { } /** Create a sensor data model entity. */ -export interface SensorDataModelsCreateOrUpdate200Response extends HttpResponse { +export interface SensorDataModelsCreateOrUpdate200Response + extends HttpResponse { status: "200"; body: SensorDataModelOutput; } /** Create a sensor data model entity. */ -export interface SensorDataModelsCreateOrUpdate201Response extends HttpResponse { +export interface SensorDataModelsCreateOrUpdate201Response + extends HttpResponse { status: "201"; body: SensorDataModelOutput; } @@ -2855,7 +2969,8 @@ export interface SensorDataModelsCreateOrUpdateDefaultHeaders { } /** Create a sensor data model entity. */ -export interface SensorDataModelsCreateOrUpdateDefaultResponse extends HttpResponse { +export interface SensorDataModelsCreateOrUpdateDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SensorDataModelsCreateOrUpdateDefaultHeaders; @@ -2881,7 +2996,6 @@ export interface SensorDataModelsGetDefaultResponse extends HttpResponse { /** Deletes a sensor data model entity. */ export interface SensorDataModelsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface SensorDataModelsDeleteDefaultHeaders { @@ -2952,7 +3066,8 @@ export interface SensorMappingsCreateOrUpdateDefaultHeaders { } /** Create a sensor mapping entity. */ -export interface SensorMappingsCreateOrUpdateDefaultResponse extends HttpResponse { +export interface SensorMappingsCreateOrUpdateDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SensorMappingsCreateOrUpdateDefaultHeaders; @@ -2978,7 +3093,6 @@ export interface SensorMappingsGetDefaultResponse extends HttpResponse { /** Deletes a sensor mapping entity. */ export interface SensorMappingsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface SensorMappingsDeleteDefaultHeaders { @@ -3003,20 +3117,23 @@ export interface SensorPartnerIntegrationsListDefaultHeaders { } /** Gets partner integration models. */ -export interface SensorPartnerIntegrationsListDefaultResponse extends HttpResponse { +export interface SensorPartnerIntegrationsListDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SensorPartnerIntegrationsListDefaultHeaders; } /** Create or update an integration with a sensor partner. */ -export interface SensorPartnerIntegrationsCreateOrUpdate200Response extends HttpResponse { +export interface SensorPartnerIntegrationsCreateOrUpdate200Response + extends HttpResponse { status: "200"; body: SensorPartnerIntegrationModelOutput; } /** Create or update an integration with a sensor partner. */ -export interface SensorPartnerIntegrationsCreateOrUpdate201Response extends HttpResponse { +export interface SensorPartnerIntegrationsCreateOrUpdate201Response + extends HttpResponse { status: "201"; body: SensorPartnerIntegrationModelOutput; } @@ -3026,10 +3143,12 @@ export interface SensorPartnerIntegrationsCreateOrUpdateDefaultHeaders { } /** Create or update an integration with a sensor partner. */ -export interface SensorPartnerIntegrationsCreateOrUpdateDefaultResponse extends HttpResponse { +export interface SensorPartnerIntegrationsCreateOrUpdateDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & SensorPartnerIntegrationsCreateOrUpdateDefaultHeaders; + headers: RawHttpHeaders & + SensorPartnerIntegrationsCreateOrUpdateDefaultHeaders; } /** Gets a partner integration model entity. */ @@ -3043,16 +3162,17 @@ export interface SensorPartnerIntegrationsGetDefaultHeaders { } /** Gets a partner integration model entity. */ -export interface SensorPartnerIntegrationsGetDefaultResponse extends HttpResponse { +export interface SensorPartnerIntegrationsGetDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SensorPartnerIntegrationsGetDefaultHeaders; } /** Deletes a partner integration model entity. */ -export interface SensorPartnerIntegrationsDelete204Response extends HttpResponse { +export interface SensorPartnerIntegrationsDelete204Response + extends HttpResponse { status: "204"; - body: Record; } export interface SensorPartnerIntegrationsDeleteDefaultHeaders { @@ -3060,14 +3180,16 @@ export interface SensorPartnerIntegrationsDeleteDefaultHeaders { } /** Deletes a partner integration model entity. */ -export interface SensorPartnerIntegrationsDeleteDefaultResponse extends HttpResponse { +export interface SensorPartnerIntegrationsDeleteDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SensorPartnerIntegrationsDeleteDefaultHeaders; } /** Checks consent for partner integration. */ -export interface SensorPartnerIntegrationsCheckConsent200Response extends HttpResponse { +export interface SensorPartnerIntegrationsCheckConsent200Response + extends HttpResponse { status: "200"; body: SensorPartnerIntegrationCheckConsentResponseOutput; } @@ -3077,14 +3199,16 @@ export interface SensorPartnerIntegrationsCheckConsentDefaultHeaders { } /** Checks consent for partner integration. */ -export interface SensorPartnerIntegrationsCheckConsentDefaultResponse extends HttpResponse { +export interface SensorPartnerIntegrationsCheckConsentDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SensorPartnerIntegrationsCheckConsentDefaultHeaders; } /** Generates partner integration consent link. */ -export interface SensorPartnerIntegrationsGenerateConsentLink200Response extends HttpResponse { +export interface SensorPartnerIntegrationsGenerateConsentLink200Response + extends HttpResponse { status: "200"; body: SensorPartnerIntegrationGenerateConsentLinkResponseOutput; } @@ -3094,10 +3218,12 @@ export interface SensorPartnerIntegrationsGenerateConsentLinkDefaultHeaders { } /** Generates partner integration consent link. */ -export interface SensorPartnerIntegrationsGenerateConsentLinkDefaultResponse extends HttpResponse { +export interface SensorPartnerIntegrationsGenerateConsentLinkDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & SensorPartnerIntegrationsGenerateConsentLinkDefaultHeaders; + headers: RawHttpHeaders & + SensorPartnerIntegrationsGenerateConsentLinkDefaultHeaders; } /** Returns a paginated list of sensor resources. */ @@ -3160,7 +3286,6 @@ export interface SensorsGetDefaultResponse extends HttpResponse { /** Deletes a sensor entity. */ export interface SensorsDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface SensorsDeleteDefaultHeaders { @@ -3185,7 +3310,8 @@ export interface SensorsGetConnectionStringDefaultHeaders { } /** Gets a sensor connection string. */ -export interface SensorsGetConnectionStringDefaultResponse extends HttpResponse { +export interface SensorsGetConnectionStringDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SensorsGetConnectionStringDefaultHeaders; @@ -3202,7 +3328,8 @@ export interface SensorsRenewConnectionStringDefaultHeaders { } /** Renews a sensor connection string. */ -export interface SensorsRenewConnectionStringDefaultResponse extends HttpResponse { +export interface SensorsRenewConnectionStringDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SensorsRenewConnectionStringDefaultHeaders; @@ -3226,7 +3353,8 @@ export interface SolutionInferenceCancelDefaultResponse extends HttpResponse { } /** Creates a job trigger for a solution. */ -export interface SolutionInferenceCreateOrUpdate202Response extends HttpResponse { +export interface SolutionInferenceCreateOrUpdate202Response + extends HttpResponse { status: "202"; body: Record; } @@ -3236,7 +3364,8 @@ export interface SolutionInferenceCreateOrUpdateDefaultHeaders { } /** Creates a job trigger for a solution. */ -export interface SolutionInferenceCreateOrUpdateDefaultResponse extends HttpResponse { +export interface SolutionInferenceCreateOrUpdateDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SolutionInferenceCreateOrUpdateDefaultHeaders; @@ -3319,7 +3448,6 @@ export interface TillageDataCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified tillage data resource under a particular party. */ export interface TillageDataDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface TillageDataDeleteDefaultHeaders { @@ -3351,7 +3479,8 @@ export interface TillageDataListDefaultResponse extends HttpResponse { } /** Create cascade delete job for tillage data resource. */ -export interface TillageDataCreateCascadeDeleteJob202Response extends HttpResponse { +export interface TillageDataCreateCascadeDeleteJob202Response + extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -3361,14 +3490,16 @@ export interface TillageDataCreateCascadeDeleteJobDefaultHeaders { } /** Create cascade delete job for tillage data resource. */ -export interface TillageDataCreateCascadeDeleteJobDefaultResponse extends HttpResponse { +export interface TillageDataCreateCascadeDeleteJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & TillageDataCreateCascadeDeleteJobDefaultHeaders; } /** Get cascade delete job for tillage data resource. */ -export interface TillageDataGetCascadeDeleteJobDetails200Response extends HttpResponse { +export interface TillageDataGetCascadeDeleteJobDetails200Response + extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -3378,7 +3509,8 @@ export interface TillageDataGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get cascade delete job for tillage data resource. */ -export interface TillageDataGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { +export interface TillageDataGetCascadeDeleteJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & TillageDataGetCascadeDeleteJobDetailsDefaultHeaders; @@ -3402,7 +3534,8 @@ export interface WeatherListDefaultResponse extends HttpResponse { } /** Get weather data delete job. */ -export interface WeatherGetDataDeleteJobDetails200Response extends HttpResponse { +export interface WeatherGetDataDeleteJobDetails200Response + extends HttpResponse { status: "200"; body: WeatherDataDeleteJobOutput; } @@ -3412,7 +3545,8 @@ export interface WeatherGetDataDeleteJobDetailsDefaultHeaders { } /** Get weather data delete job. */ -export interface WeatherGetDataDeleteJobDetailsDefaultResponse extends HttpResponse { +export interface WeatherGetDataDeleteJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & WeatherGetDataDeleteJobDetailsDefaultHeaders; @@ -3429,14 +3563,16 @@ export interface WeatherCreateDataDeleteJobDefaultHeaders { } /** Create a weather data delete job. */ -export interface WeatherCreateDataDeleteJobDefaultResponse extends HttpResponse { +export interface WeatherCreateDataDeleteJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & WeatherCreateDataDeleteJobDefaultHeaders; } /** Get weather ingestion job. */ -export interface WeatherGetDataIngestionJobDetails200Response extends HttpResponse { +export interface WeatherGetDataIngestionJobDetails200Response + extends HttpResponse { status: "200"; body: WeatherDataIngestionJobOutput; } @@ -3446,7 +3582,8 @@ export interface WeatherGetDataIngestionJobDetailsDefaultHeaders { } /** Get weather ingestion job. */ -export interface WeatherGetDataIngestionJobDetailsDefaultResponse extends HttpResponse { +export interface WeatherGetDataIngestionJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & WeatherGetDataIngestionJobDetailsDefaultHeaders; @@ -3463,7 +3600,8 @@ export interface WeatherCreateDataIngestionJobDefaultHeaders { } /** Create a weather data ingestion job. */ -export interface WeatherCreateDataIngestionJobDefaultResponse extends HttpResponse { +export interface WeatherCreateDataIngestionJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & WeatherCreateDataIngestionJobDefaultHeaders; @@ -3554,7 +3692,6 @@ export interface ZonesCreateOrUpdateDefaultResponse extends HttpResponse { /** Deletes a specified zone resource under a particular party. */ export interface ZonesDelete204Response extends HttpResponse { status: "204"; - body: Record; } export interface ZonesDeleteDefaultHeaders { @@ -3586,7 +3723,8 @@ export interface ZonesListDefaultResponse extends HttpResponse { } /** Get a cascade delete job for specified job id. */ -export interface ZonesGetCascadeDeleteJobDetails200Response extends HttpResponse { +export interface ZonesGetCascadeDeleteJobDetails200Response + extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -3596,7 +3734,8 @@ export interface ZonesGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get a cascade delete job for specified job id. */ -export interface ZonesGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { +export interface ZonesGetCascadeDeleteJobDetailsDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ZonesGetCascadeDeleteJobDetailsDefaultHeaders; @@ -3613,7 +3752,8 @@ export interface ZonesCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified zone. */ -export interface ZonesCreateCascadeDeleteJobDefaultResponse extends HttpResponse { +export interface ZonesCreateCascadeDeleteJobDefaultResponse + extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ZonesCreateCascadeDeleteJobDefaultHeaders; diff --git a/sdk/agrifood/agrifood-farming-rest/src/serializeHelper.ts b/sdk/agrifood/agrifood-farming-rest/src/serializeHelper.ts index 579c6ec01db3..951b4a54e913 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/serializeHelper.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/serializeHelper.ts @@ -1,8 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export function buildMultiCollection(queryParameters: string[], parameterName: string): string { - return queryParameters +export function buildMultiCollection( + items: string[], + parameterName: string, +): string { + return items .map((item, index) => { if (index === 0) { return item; From 1bf4cbd602212db9ae0e996b0eea7215240dde49 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 23 Aug 2024 15:33:33 +0800 Subject: [PATCH 10/16] fix test ci --- .../agrifood-farming-rest/package.json | 14 +- .../src/clientDefinitions.ts | 554 +++++------------- .../agrifood-farming-rest/src/farmBeats.ts | 15 +- .../agrifood-farming-rest/src/isUnexpected.ts | 291 +++------ .../agrifood-farming-rest/src/outputModels.ts | 26 +- .../src/paginateHelper.ts | 33 +- .../agrifood-farming-rest/src/parameters.ts | 360 +++++------- .../src/pollingHelper.ts | 21 +- .../agrifood-farming-rest/src/responses.ts | 504 ++++++---------- .../src/serializeHelper.ts | 5 +- .../test/public/utils/recordedClient.ts | 4 + 11 files changed, 563 insertions(+), 1264 deletions(-) diff --git a/sdk/agrifood/agrifood-farming-rest/package.json b/sdk/agrifood/agrifood-farming-rest/package.json index 0c1f2c1e34b1..7855c281da73 100644 --- a/sdk/agrifood/agrifood-farming-rest/package.json +++ b/sdk/agrifood/agrifood-farming-rest/package.json @@ -4,7 +4,14 @@ "author": "Microsoft Corporation", "description": "An isomorphic REST client library for the Azure FarmBeats Service.", "version": "1.0.0-beta.3", - "keywords": ["node", "azure", "cloud", "typescript", "browser", "isomorphic"], + "keywords": [ + "node", + "azure", + "cloud", + "typescript", + "browser", + "isomorphic" + ], "license": "MIT", "main": "./dist/index.js", "module": "./dist-esm/src/index.js", @@ -34,7 +41,10 @@ }, "//sampleConfiguration": { "productName": "Azure FarmBeats rest", - "productSlugs": ["azure", "azure-farmbeats"], + "productSlugs": [ + "azure", + "azure-farmbeats" + ], "requiredResources": { "Azure FarmBeats Service instance": "https://docs.microsoft.com/azure/industry/agriculture/install-azure-farmbeats" } diff --git a/sdk/agrifood/agrifood-farming-rest/src/clientDefinitions.ts b/sdk/agrifood/agrifood-farming-rest/src/clientDefinitions.ts index fdad04d07093..c82be912f27e 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/clientDefinitions.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/clientDefinitions.ts @@ -630,9 +630,7 @@ export interface ApplicationDataList { /** Returns a paginated list of application data resources across all parties. */ get( options?: ApplicationDataListParameters, - ): StreamableMethod< - ApplicationDataList200Response | ApplicationDataListDefaultResponse - >; + ): StreamableMethod; } export interface ApplicationDataCreateCascadeDeleteJob { @@ -657,8 +655,7 @@ export interface ApplicationDataListByPartyId { get( options?: ApplicationDataListByPartyIdParameters, ): StreamableMethod< - | ApplicationDataListByPartyId200Response - | ApplicationDataListByPartyIdDefaultResponse + ApplicationDataListByPartyId200Response | ApplicationDataListByPartyIdDefaultResponse >; } @@ -666,9 +663,7 @@ export interface ApplicationDataGet { /** Get a specified application data resource under a particular party. */ get( options?: ApplicationDataGetParameters, - ): StreamableMethod< - ApplicationDataGet200Response | ApplicationDataGetDefaultResponse - >; + ): StreamableMethod; /** Creates or updates an application data resource under a particular party. */ patch( options: ApplicationDataCreateOrUpdateParameters, @@ -680,9 +675,7 @@ export interface ApplicationDataGet { /** Deletes a specified application data resource under a particular party. */ delete( options?: ApplicationDataDeleteParameters, - ): StreamableMethod< - ApplicationDataDelete204Response | ApplicationDataDeleteDefaultResponse - >; + ): StreamableMethod; } export interface AttachmentsListByPartyId { @@ -690,8 +683,7 @@ export interface AttachmentsListByPartyId { get( options?: AttachmentsListByPartyIdParameters, ): StreamableMethod< - | AttachmentsListByPartyId200Response - | AttachmentsListByPartyIdDefaultResponse + AttachmentsListByPartyId200Response | AttachmentsListByPartyIdDefaultResponse >; } @@ -699,9 +691,7 @@ export interface AttachmentsGet { /** Gets a specified attachment resource under a particular party. */ get( options?: AttachmentsGetParameters, - ): StreamableMethod< - AttachmentsGet200Response | AttachmentsGetDefaultResponse - >; + ): StreamableMethod; /** Creates or updates an attachment resource under a particular party. */ patch( options?: AttachmentsCreateOrUpdateParameters, @@ -713,33 +703,25 @@ export interface AttachmentsGet { /** Deletes a specified attachment resource under a particular party. */ delete( options?: AttachmentsDeleteParameters, - ): StreamableMethod< - AttachmentsDelete204Response | AttachmentsDeleteDefaultResponse - >; + ): StreamableMethod; } export interface AttachmentsDownload { /** Downloads and returns attachment as response for the given input filePath. */ get( options?: AttachmentsDownloadParameters, - ): StreamableMethod< - AttachmentsDownload200Response | AttachmentsDownloadDefaultResponse - >; + ): StreamableMethod; } export interface BoundariesList { /** Returns a paginated list of boundary resources across all parties. */ get( options?: BoundariesListParameters, - ): StreamableMethod< - BoundariesList200Response | BoundariesListDefaultResponse - >; + ): StreamableMethod; /** Search for boundaries across all parties by fields and intersecting geometry. */ post( options: BoundariesSearchParameters, - ): StreamableMethod< - BoundariesSearch200Response | BoundariesSearchDefaultResponse - >; + ): StreamableMethod; } export interface BoundariesCreateCascadeDeleteJob { @@ -747,8 +729,7 @@ export interface BoundariesCreateCascadeDeleteJob { put( options: BoundariesCreateCascadeDeleteJobParameters, ): StreamableMethod< - | BoundariesCreateCascadeDeleteJob202Response - | BoundariesCreateCascadeDeleteJobDefaultResponse + BoundariesCreateCascadeDeleteJob202Response | BoundariesCreateCascadeDeleteJobDefaultResponse >; /** Get cascade delete job for specified boundary. */ get( @@ -763,15 +744,12 @@ export interface BoundariesListByPartyId { /** Returns a paginated list of boundary resources under a particular party. */ get( options?: BoundariesListByPartyIdParameters, - ): StreamableMethod< - BoundariesListByPartyId200Response | BoundariesListByPartyIdDefaultResponse - >; + ): StreamableMethod; /** Search for boundaries by fields and intersecting geometry. */ post( options: BoundariesSearchByPartyIdParameters, ): StreamableMethod< - | BoundariesSearchByPartyId200Response - | BoundariesSearchByPartyIdDefaultResponse + BoundariesSearchByPartyId200Response | BoundariesSearchByPartyIdDefaultResponse >; } @@ -791,36 +769,28 @@ export interface BoundariesCreateOrUpdate { /** Deletes a specified boundary resource under a particular party. */ delete( options?: BoundariesDeleteParameters, - ): StreamableMethod< - BoundariesDelete204Response | BoundariesDeleteDefaultResponse - >; + ): StreamableMethod; } export interface BoundariesGetOverlap { /** Returns overlapping area between two boundary Ids. */ get( options: BoundariesGetOverlapParameters, - ): StreamableMethod< - BoundariesGetOverlap200Response | BoundariesGetOverlapDefaultResponse - >; + ): StreamableMethod; } export interface CropProductsList { /** Returns a paginated list of crop product resources. */ get( options?: CropProductsListParameters, - ): StreamableMethod< - CropProductsList200Response | CropProductsListDefaultResponse - >; + ): StreamableMethod; } export interface CropProductsGet { /** Gets a specified crop Product resource. */ get( options?: CropProductsGetParameters, - ): StreamableMethod< - CropProductsGet200Response | CropProductsGetDefaultResponse - >; + ): StreamableMethod; /** Creates or updates a crop Product resource. */ patch( options: CropProductsCreateOrUpdateParameters, @@ -832,9 +802,7 @@ export interface CropProductsGet { /** Deletes a specified crop Product resource. */ delete( options?: CropProductsDeleteParameters, - ): StreamableMethod< - CropProductsDelete204Response | CropProductsDeleteDefaultResponse - >; + ): StreamableMethod; } export interface CropsList { @@ -867,9 +835,7 @@ export interface DeviceDataModelsList { /** Returns a paginated list of device data model resources. */ get( options?: DeviceDataModelsListParameters, - ): StreamableMethod< - DeviceDataModelsList200Response | DeviceDataModelsListDefaultResponse - >; + ): StreamableMethod; } export interface DeviceDataModelsCreateOrUpdate { @@ -884,15 +850,11 @@ export interface DeviceDataModelsCreateOrUpdate { /** Gets a device data model entity. */ get( options?: DeviceDataModelsGetParameters, - ): StreamableMethod< - DeviceDataModelsGet200Response | DeviceDataModelsGetDefaultResponse - >; + ): StreamableMethod; /** Deletes a device data model entity. */ delete( options?: DeviceDataModelsDeleteParameters, - ): StreamableMethod< - DeviceDataModelsDelete204Response | DeviceDataModelsDeleteDefaultResponse - >; + ): StreamableMethod; } export interface DevicesList { @@ -950,15 +912,13 @@ export interface FarmsCreateCascadeDeleteJob { put( options: FarmsCreateCascadeDeleteJobParameters, ): StreamableMethod< - | FarmsCreateCascadeDeleteJob202Response - | FarmsCreateCascadeDeleteJobDefaultResponse + FarmsCreateCascadeDeleteJob202Response | FarmsCreateCascadeDeleteJobDefaultResponse >; /** Get a cascade delete job for specified farm. */ get( options?: FarmsGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< - | FarmsGetCascadeDeleteJobDetails200Response - | FarmsGetCascadeDeleteJobDetailsDefaultResponse + FarmsGetCascadeDeleteJobDetails200Response | FarmsGetCascadeDeleteJobDetailsDefaultResponse >; } @@ -966,9 +926,7 @@ export interface FarmsListByPartyId { /** Returns a paginated list of farm resources under a particular party. */ get( options?: FarmsListByPartyIdParameters, - ): StreamableMethod< - FarmsListByPartyId200Response | FarmsListByPartyIdDefaultResponse - >; + ): StreamableMethod; } export interface FarmsGet { @@ -1002,15 +960,13 @@ export interface FieldsGetCascadeDeleteJobDetails { get( options?: FieldsGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< - | FieldsGetCascadeDeleteJobDetails200Response - | FieldsGetCascadeDeleteJobDetailsDefaultResponse + FieldsGetCascadeDeleteJobDetails200Response | FieldsGetCascadeDeleteJobDetailsDefaultResponse >; /** Create a cascade delete job for specified field. */ put( options: FieldsCreateCascadeDeleteJobParameters, ): StreamableMethod< - | FieldsCreateCascadeDeleteJob202Response - | FieldsCreateCascadeDeleteJobDefaultResponse + FieldsCreateCascadeDeleteJob202Response | FieldsCreateCascadeDeleteJobDefaultResponse >; } @@ -1018,9 +974,7 @@ export interface FieldsListByPartyId { /** Returns a paginated list of field resources under a particular party. */ get( options?: FieldsListByPartyIdParameters, - ): StreamableMethod< - FieldsListByPartyId200Response | FieldsListByPartyIdDefaultResponse - >; + ): StreamableMethod; } export interface FieldsGet { @@ -1046,9 +1000,7 @@ export interface HarvestDataList { /** Returns a paginated list of harvest data resources across all parties. */ get( options?: HarvestDataListParameters, - ): StreamableMethod< - HarvestDataList200Response | HarvestDataListDefaultResponse - >; + ): StreamableMethod; } export interface HarvestDataCreateCascadeDeleteJob { @@ -1056,8 +1008,7 @@ export interface HarvestDataCreateCascadeDeleteJob { put( options: HarvestDataCreateCascadeDeleteJobParameters, ): StreamableMethod< - | HarvestDataCreateCascadeDeleteJob202Response - | HarvestDataCreateCascadeDeleteJobDefaultResponse + HarvestDataCreateCascadeDeleteJob202Response | HarvestDataCreateCascadeDeleteJobDefaultResponse >; /** Get cascade delete job for harvest data resource. */ get( @@ -1073,8 +1024,7 @@ export interface HarvestDataListByPartyId { get( options?: HarvestDataListByPartyIdParameters, ): StreamableMethod< - | HarvestDataListByPartyId200Response - | HarvestDataListByPartyIdDefaultResponse + HarvestDataListByPartyId200Response | HarvestDataListByPartyIdDefaultResponse >; } @@ -1082,9 +1032,7 @@ export interface HarvestDataGet { /** Get a specified harvest data resource under a particular party. */ get( options?: HarvestDataGetParameters, - ): StreamableMethod< - HarvestDataGet200Response | HarvestDataGetDefaultResponse - >; + ): StreamableMethod; /** Creates or updates harvest data resource under a particular party. */ patch( options: HarvestDataCreateOrUpdateParameters, @@ -1096,9 +1044,7 @@ export interface HarvestDataGet { /** Deletes a specified harvest data resource under a particular party. */ delete( options?: HarvestDataDeleteParameters, - ): StreamableMethod< - HarvestDataDelete204Response | HarvestDataDeleteDefaultResponse - >; + ): StreamableMethod; } export interface ImageProcessingCreateRasterizeJob { @@ -1106,15 +1052,13 @@ export interface ImageProcessingCreateRasterizeJob { put( options: ImageProcessingCreateRasterizeJobParameters, ): StreamableMethod< - | ImageProcessingCreateRasterizeJob202Response - | ImageProcessingCreateRasterizeJobDefaultResponse + ImageProcessingCreateRasterizeJob202Response | ImageProcessingCreateRasterizeJobDefaultResponse >; /** Get ImageProcessing Rasterize job's details. */ get( options?: ImageProcessingGetRasterizeJobParameters, ): StreamableMethod< - | ImageProcessingGetRasterizeJob200Response - | ImageProcessingGetRasterizeJobDefaultResponse + ImageProcessingGetRasterizeJob200Response | ImageProcessingGetRasterizeJobDefaultResponse >; } @@ -1140,15 +1084,12 @@ export interface InsightAttachmentsCreateOrUpdate { /** Gets a specified insight resource under a particular party. */ get( options?: InsightAttachmentsGetParameters, - ): StreamableMethod< - InsightAttachmentsGet200Response | InsightAttachmentsGetDefaultResponse - >; + ): StreamableMethod; /** Deletes a specified insight resource. */ delete( options?: InsightAttachmentsDeleteParameters, ): StreamableMethod< - | InsightAttachmentsDelete204Response - | InsightAttachmentsDeleteDefaultResponse + InsightAttachmentsDelete204Response | InsightAttachmentsDeleteDefaultResponse >; } @@ -1157,8 +1098,7 @@ export interface InsightAttachmentsDownload { get( options?: InsightAttachmentsDownloadParameters, ): StreamableMethod< - | InsightAttachmentsDownload200Response - | InsightAttachmentsDownloadDefaultResponse + InsightAttachmentsDownload200Response | InsightAttachmentsDownloadDefaultResponse >; } @@ -1167,8 +1107,7 @@ export interface InsightsCreateCascadeDeleteJob { put( options: InsightsCreateCascadeDeleteJobParameters, ): StreamableMethod< - | InsightsCreateCascadeDeleteJob202Response - | InsightsCreateCascadeDeleteJobDefaultResponse + InsightsCreateCascadeDeleteJob202Response | InsightsCreateCascadeDeleteJobDefaultResponse >; /** Get a cascade delete job for specified insight. */ get( @@ -1205,18 +1144,14 @@ export interface InsightsCreateOrUpdate { /** Deletes a specified insight resource. */ delete( options?: InsightsDeleteParameters, - ): StreamableMethod< - InsightsDelete204Response | InsightsDeleteDefaultResponse - >; + ): StreamableMethod; } export interface ManagementZonesList { /** Returns a paginated list of management zone resources across all parties. */ get( options?: ManagementZonesListParameters, - ): StreamableMethod< - ManagementZonesList200Response | ManagementZonesListDefaultResponse - >; + ): StreamableMethod; } export interface ManagementZonesGetCascadeDeleteJobDetails { @@ -1241,8 +1176,7 @@ export interface ManagementZonesListByPartyId { get( options?: ManagementZonesListByPartyIdParameters, ): StreamableMethod< - | ManagementZonesListByPartyId200Response - | ManagementZonesListByPartyIdDefaultResponse + ManagementZonesListByPartyId200Response | ManagementZonesListByPartyIdDefaultResponse >; } @@ -1250,9 +1184,7 @@ export interface ManagementZonesGet { /** Gets a specified management zone resource under a particular party. */ get( options?: ManagementZonesGetParameters, - ): StreamableMethod< - ManagementZonesGet200Response | ManagementZonesGetDefaultResponse - >; + ): StreamableMethod; /** Creates or updates a management zone resource. */ patch( options: ManagementZonesCreateOrUpdateParameters, @@ -1264,9 +1196,7 @@ export interface ManagementZonesGet { /** Deletes a specified management zone resource under a particular party. */ delete( options?: ManagementZonesDeleteParameters, - ): StreamableMethod< - ManagementZonesDelete204Response | ManagementZonesDeleteDefaultResponse - >; + ): StreamableMethod; } export interface ModelInferenceCreateBiomassModelJob { @@ -1281,8 +1211,7 @@ export interface ModelInferenceCreateBiomassModelJob { get( options?: ModelInferenceGetBiomassModelJobParameters, ): StreamableMethod< - | ModelInferenceGetBiomassModelJob200Response - | ModelInferenceGetBiomassModelJobDefaultResponse + ModelInferenceGetBiomassModelJob200Response | ModelInferenceGetBiomassModelJobDefaultResponse >; } @@ -1324,9 +1253,7 @@ export interface NutrientAnalysesList { /** Returns a paginated list of nutrient analysis resources across all parties. */ get( options?: NutrientAnalysesListParameters, - ): StreamableMethod< - NutrientAnalysesList200Response | NutrientAnalysesListDefaultResponse - >; + ): StreamableMethod; } export interface NutrientAnalysesListByPartyId { @@ -1334,8 +1261,7 @@ export interface NutrientAnalysesListByPartyId { get( options?: NutrientAnalysesListByPartyIdParameters, ): StreamableMethod< - | NutrientAnalysesListByPartyId200Response - | NutrientAnalysesListByPartyIdDefaultResponse + NutrientAnalysesListByPartyId200Response | NutrientAnalysesListByPartyIdDefaultResponse >; } @@ -1343,9 +1269,7 @@ export interface NutrientAnalysesGet { /** Gets a specified nutrient analysis resource under a particular party. */ get( options?: NutrientAnalysesGetParameters, - ): StreamableMethod< - NutrientAnalysesGet200Response | NutrientAnalysesGetDefaultResponse - >; + ): StreamableMethod; /** Creates or updates a nutrient analysis resource. */ patch( options: NutrientAnalysesCreateOrUpdateParameters, @@ -1357,27 +1281,21 @@ export interface NutrientAnalysesGet { /** Deletes a specified nutrient analysis resource under a particular party. */ delete( options?: NutrientAnalysesDeleteParameters, - ): StreamableMethod< - NutrientAnalysesDelete204Response | NutrientAnalysesDeleteDefaultResponse - >; + ): StreamableMethod; } export interface OAuthProvidersList { /** Returns a paginated list of oauthProvider resources. */ get( options?: OAuthProvidersListParameters, - ): StreamableMethod< - OAuthProvidersList200Response | OAuthProvidersListDefaultResponse - >; + ): StreamableMethod; } export interface OAuthProvidersGet { /** Get a specified oauthProvider resource. */ get( options?: OAuthProvidersGetParameters, - ): StreamableMethod< - OAuthProvidersGet200Response | OAuthProvidersGetDefaultResponse - >; + ): StreamableMethod; /** Creates or updates an oauthProvider resource. */ patch( options: OAuthProvidersCreateOrUpdateParameters, @@ -1389,9 +1307,7 @@ export interface OAuthProvidersGet { /** Deletes an specified oauthProvider resource. */ delete( options?: OAuthProvidersDeleteParameters, - ): StreamableMethod< - OAuthProvidersDelete204Response | OAuthProvidersDeleteDefaultResponse - >; + ): StreamableMethod; } export interface OAuthProvidersGetCascadeDeleteJobDetails { @@ -1415,9 +1331,7 @@ export interface OAuthTokensList { /** Returns a list of OAuthToken documents. */ get( options?: OAuthTokensListParameters, - ): StreamableMethod< - OAuthTokensList200Response | OAuthTokensListDefaultResponse - >; + ): StreamableMethod; } export interface OAuthTokensGetOAuthConnectionLink { @@ -1425,8 +1339,7 @@ export interface OAuthTokensGetOAuthConnectionLink { post( options: OAuthTokensGetOAuthConnectionLinkParameters, ): StreamableMethod< - | OAuthTokensGetOAuthConnectionLink200Response - | OAuthTokensGetOAuthConnectionLinkDefaultResponse + OAuthTokensGetOAuthConnectionLink200Response | OAuthTokensGetOAuthConnectionLinkDefaultResponse >; } @@ -1442,8 +1355,7 @@ export interface OAuthTokensGetCascadeDeleteJobDetails { put( options: OAuthTokensCreateCascadeDeleteJobParameters, ): StreamableMethod< - | OAuthTokensCreateCascadeDeleteJob202Response - | OAuthTokensCreateCascadeDeleteJobDefaultResponse + OAuthTokensCreateCascadeDeleteJob202Response | OAuthTokensCreateCascadeDeleteJobDefaultResponse >; } @@ -1478,15 +1390,13 @@ export interface PartiesGetCascadeDeleteJobDetails { get( options?: PartiesGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< - | PartiesGetCascadeDeleteJobDetails200Response - | PartiesGetCascadeDeleteJobDetailsDefaultResponse + PartiesGetCascadeDeleteJobDetails200Response | PartiesGetCascadeDeleteJobDetailsDefaultResponse >; /** Create a cascade delete job for specified party. */ put( options: PartiesCreateCascadeDeleteJobParameters, ): StreamableMethod< - | PartiesCreateCascadeDeleteJob202Response - | PartiesCreateCascadeDeleteJobDefaultResponse + PartiesCreateCascadeDeleteJob202Response | PartiesCreateCascadeDeleteJobDefaultResponse >; } @@ -1495,8 +1405,7 @@ export interface PlantingDataListByPartyId { get( options?: PlantingDataListByPartyIdParameters, ): StreamableMethod< - | PlantingDataListByPartyId200Response - | PlantingDataListByPartyIdDefaultResponse + PlantingDataListByPartyId200Response | PlantingDataListByPartyIdDefaultResponse >; } @@ -1504,9 +1413,7 @@ export interface PlantingDataGet { /** Get a specified planting data resource under a particular party. */ get( options?: PlantingDataGetParameters, - ): StreamableMethod< - PlantingDataGet200Response | PlantingDataGetDefaultResponse - >; + ): StreamableMethod; /** Creates or updates an planting data resource under a particular party. */ patch( options: PlantingDataCreateOrUpdateParameters, @@ -1518,18 +1425,14 @@ export interface PlantingDataGet { /** Deletes a specified planting data resource under a particular party. */ delete( options?: PlantingDataDeleteParameters, - ): StreamableMethod< - PlantingDataDelete204Response | PlantingDataDeleteDefaultResponse - >; + ): StreamableMethod; } export interface PlantingDataList { /** Returns a paginated list of planting data resources across all parties. */ get( options?: PlantingDataListParameters, - ): StreamableMethod< - PlantingDataList200Response | PlantingDataListDefaultResponse - >; + ): StreamableMethod; } export interface PlantingDataCreateCascadeDeleteJob { @@ -1554,8 +1457,7 @@ export interface PlantTissueAnalysesListByPartyId { get( options?: PlantTissueAnalysesListByPartyIdParameters, ): StreamableMethod< - | PlantTissueAnalysesListByPartyId200Response - | PlantTissueAnalysesListByPartyIdDefaultResponse + PlantTissueAnalysesListByPartyId200Response | PlantTissueAnalysesListByPartyIdDefaultResponse >; } @@ -1563,9 +1465,7 @@ export interface PlantTissueAnalysesGet { /** Gets a specified plant tissue analysis resource under a particular party. */ get( options?: PlantTissueAnalysesGetParameters, - ): StreamableMethod< - PlantTissueAnalysesGet200Response | PlantTissueAnalysesGetDefaultResponse - >; + ): StreamableMethod; /** Creates or updates a plant tissue analysis resource. */ patch( options: PlantTissueAnalysesCreateOrUpdateParameters, @@ -1578,8 +1478,7 @@ export interface PlantTissueAnalysesGet { delete( options?: PlantTissueAnalysesDeleteParameters, ): StreamableMethod< - | PlantTissueAnalysesDelete204Response - | PlantTissueAnalysesDeleteDefaultResponse + PlantTissueAnalysesDelete204Response | PlantTissueAnalysesDeleteDefaultResponse >; } @@ -1587,9 +1486,7 @@ export interface PlantTissueAnalysesList { /** Returns a paginated list of plant tissue analysis resources across all parties. */ get( options?: PlantTissueAnalysesListParameters, - ): StreamableMethod< - PlantTissueAnalysesList200Response | PlantTissueAnalysesListDefaultResponse - >; + ): StreamableMethod; } export interface PlantTissueAnalysesCreateCascadeDeleteJob { @@ -1614,8 +1511,7 @@ export interface PrescriptionMapsListByPartyId { get( options?: PrescriptionMapsListByPartyIdParameters, ): StreamableMethod< - | PrescriptionMapsListByPartyId200Response - | PrescriptionMapsListByPartyIdDefaultResponse + PrescriptionMapsListByPartyId200Response | PrescriptionMapsListByPartyIdDefaultResponse >; } @@ -1623,9 +1519,7 @@ export interface PrescriptionMapsGet { /** Gets a specified prescription map resource under a particular party. */ get( options?: PrescriptionMapsGetParameters, - ): StreamableMethod< - PrescriptionMapsGet200Response | PrescriptionMapsGetDefaultResponse - >; + ): StreamableMethod; /** Creates or Updates a prescription map resource under a particular party. */ patch( options: PrescriptionMapsCreateOrUpdateParameters, @@ -1637,18 +1531,14 @@ export interface PrescriptionMapsGet { /** Deletes a specified prescription map resource under a particular party. */ delete( options?: PrescriptionMapsDeleteParameters, - ): StreamableMethod< - PrescriptionMapsDelete204Response | PrescriptionMapsDeleteDefaultResponse - >; + ): StreamableMethod; } export interface PrescriptionMapsList { /** Returns a paginated list of prescription map resources across all parties. */ get( options?: PrescriptionMapsListParameters, - ): StreamableMethod< - PrescriptionMapsList200Response | PrescriptionMapsListDefaultResponse - >; + ): StreamableMethod; } export interface PrescriptionMapsGetCascadeDeleteJobDetails { @@ -1673,8 +1563,7 @@ export interface PrescriptionsListByPartyId { get( options?: PrescriptionsListByPartyIdParameters, ): StreamableMethod< - | PrescriptionsListByPartyId200Response - | PrescriptionsListByPartyIdDefaultResponse + PrescriptionsListByPartyId200Response | PrescriptionsListByPartyIdDefaultResponse >; } @@ -1682,9 +1571,7 @@ export interface PrescriptionsGet { /** Gets a specified prescription resource under a particular party. */ get( options?: PrescriptionsGetParameters, - ): StreamableMethod< - PrescriptionsGet200Response | PrescriptionsGetDefaultResponse - >; + ): StreamableMethod; /** Creates or Updates a prescription resource under a particular party. */ patch( options: PrescriptionsCreateOrUpdateParameters, @@ -1696,18 +1583,14 @@ export interface PrescriptionsGet { /** Deletes a specified prescription resource under a particular party. */ delete( options?: PrescriptionsDeleteParameters, - ): StreamableMethod< - PrescriptionsDelete204Response | PrescriptionsDeleteDefaultResponse - >; + ): StreamableMethod; } export interface PrescriptionsList { /** Returns a paginated list of prescription resources across all parties. */ get( options?: PrescriptionsListParameters, - ): StreamableMethod< - PrescriptionsList200Response | PrescriptionsListDefaultResponse - >; + ): StreamableMethod; } export interface PrescriptionsGetCascadeDeleteJobDetails { @@ -1738,9 +1621,7 @@ export interface ScenesDownload { /** Downloads and returns file Stream as response for the given input filePath. */ get( options: ScenesDownloadParameters, - ): StreamableMethod< - ScenesDownload200Response | ScenesDownloadDefaultResponse - >; + ): StreamableMethod; } export interface ScenesCreateSatelliteDataIngestionJob { @@ -1764,18 +1645,14 @@ export interface ScenesSearchFeatures { /** Search for STAC features by collection id, bbox, intersecting geometry, start and end datetime. */ post( options: ScenesSearchFeaturesParameters, - ): StreamableMethod< - ScenesSearchFeatures200Response | ScenesSearchFeaturesDefaultResponse - >; + ): StreamableMethod; } export interface ScenesGetStacFeature { /** Get a feature(SpatioTemporal Asset Catalog (STAC) Item) for given collection and feature id. */ get( options?: ScenesGetStacFeatureParameters, - ): StreamableMethod< - ScenesGetStacFeature200Response | ScenesGetStacFeatureDefaultResponse - >; + ): StreamableMethod; } export interface SeasonalFieldsListByPartyId { @@ -1783,8 +1660,7 @@ export interface SeasonalFieldsListByPartyId { get( options?: SeasonalFieldsListByPartyIdParameters, ): StreamableMethod< - | SeasonalFieldsListByPartyId200Response - | SeasonalFieldsListByPartyIdDefaultResponse + SeasonalFieldsListByPartyId200Response | SeasonalFieldsListByPartyIdDefaultResponse >; } @@ -1792,9 +1668,7 @@ export interface SeasonalFieldsGet { /** Gets a specified seasonal field resource under a particular party. */ get( options?: SeasonalFieldsGetParameters, - ): StreamableMethod< - SeasonalFieldsGet200Response | SeasonalFieldsGetDefaultResponse - >; + ): StreamableMethod; /** Creates or Updates a seasonal field resource under a particular party. */ patch( options: SeasonalFieldsCreateOrUpdateParameters, @@ -1806,18 +1680,14 @@ export interface SeasonalFieldsGet { /** Deletes a specified seasonal-field resource under a particular party. */ delete( options?: SeasonalFieldsDeleteParameters, - ): StreamableMethod< - SeasonalFieldsDelete204Response | SeasonalFieldsDeleteDefaultResponse - >; + ): StreamableMethod; } export interface SeasonalFieldsList { /** Returns a paginated list of seasonal field resources across all parties. */ get( options?: SeasonalFieldsListParameters, - ): StreamableMethod< - SeasonalFieldsList200Response | SeasonalFieldsListDefaultResponse - >; + ): StreamableMethod; } export interface SeasonalFieldsGetCascadeDeleteJobDetails { @@ -1867,9 +1737,7 @@ export interface SensorDataModelsList { /** Returns a paginated list of sensor data model resources. */ get( options?: SensorDataModelsListParameters, - ): StreamableMethod< - SensorDataModelsList200Response | SensorDataModelsListDefaultResponse - >; + ): StreamableMethod; } export interface SensorDataModelsCreateOrUpdate { @@ -1884,15 +1752,11 @@ export interface SensorDataModelsCreateOrUpdate { /** Gets a sensor data model entity. */ get( options?: SensorDataModelsGetParameters, - ): StreamableMethod< - SensorDataModelsGet200Response | SensorDataModelsGetDefaultResponse - >; + ): StreamableMethod; /** Deletes a sensor data model entity. */ delete( options?: SensorDataModelsDeleteParameters, - ): StreamableMethod< - SensorDataModelsDelete204Response | SensorDataModelsDeleteDefaultResponse - >; + ): StreamableMethod; } export interface SensorEventsList { @@ -1902,18 +1766,14 @@ export interface SensorEventsList { */ get( options: SensorEventsListParameters, - ): StreamableMethod< - SensorEventsList200Response | SensorEventsListDefaultResponse - >; + ): StreamableMethod; } export interface SensorMappingsList { /** Returns a paginated list of sensor mapping resources. */ get( options?: SensorMappingsListParameters, - ): StreamableMethod< - SensorMappingsList200Response | SensorMappingsListDefaultResponse - >; + ): StreamableMethod; } export interface SensorMappingsCreateOrUpdate { @@ -1928,15 +1788,11 @@ export interface SensorMappingsCreateOrUpdate { /** Gets a sensor mapping entity. */ get( options?: SensorMappingsGetParameters, - ): StreamableMethod< - SensorMappingsGet200Response | SensorMappingsGetDefaultResponse - >; + ): StreamableMethod; /** Deletes a sensor mapping entity. */ delete( options?: SensorMappingsDeleteParameters, - ): StreamableMethod< - SensorMappingsDelete204Response | SensorMappingsDeleteDefaultResponse - >; + ): StreamableMethod; } export interface SensorPartnerIntegrationsList { @@ -1944,8 +1800,7 @@ export interface SensorPartnerIntegrationsList { get( options?: SensorPartnerIntegrationsListParameters, ): StreamableMethod< - | SensorPartnerIntegrationsList200Response - | SensorPartnerIntegrationsListDefaultResponse + SensorPartnerIntegrationsList200Response | SensorPartnerIntegrationsListDefaultResponse >; } @@ -1962,15 +1817,13 @@ export interface SensorPartnerIntegrationsCreateOrUpdate { get( options?: SensorPartnerIntegrationsGetParameters, ): StreamableMethod< - | SensorPartnerIntegrationsGet200Response - | SensorPartnerIntegrationsGetDefaultResponse + SensorPartnerIntegrationsGet200Response | SensorPartnerIntegrationsGetDefaultResponse >; /** Deletes a partner integration model entity. */ delete( options?: SensorPartnerIntegrationsDeleteParameters, ): StreamableMethod< - | SensorPartnerIntegrationsDelete204Response - | SensorPartnerIntegrationsDeleteDefaultResponse + SensorPartnerIntegrationsDelete204Response | SensorPartnerIntegrationsDeleteDefaultResponse >; } @@ -2025,8 +1878,7 @@ export interface SensorsGetConnectionString { get( options?: SensorsGetConnectionStringParameters, ): StreamableMethod< - | SensorsGetConnectionString200Response - | SensorsGetConnectionStringDefaultResponse + SensorsGetConnectionString200Response | SensorsGetConnectionStringDefaultResponse >; } @@ -2035,8 +1887,7 @@ export interface SensorsRenewConnectionString { post( options: SensorsRenewConnectionStringParameters, ): StreamableMethod< - | SensorsRenewConnectionString200Response - | SensorsRenewConnectionStringDefaultResponse + SensorsRenewConnectionString200Response | SensorsRenewConnectionStringDefaultResponse >; } @@ -2044,9 +1895,7 @@ export interface SolutionInferenceCancel { /** Cancels a job for given solution id. */ post( options: SolutionInferenceCancelParameters, - ): StreamableMethod< - SolutionInferenceCancel200Response | SolutionInferenceCancelDefaultResponse - >; + ): StreamableMethod; } export interface SolutionInferenceCreateOrUpdate { @@ -2054,8 +1903,7 @@ export interface SolutionInferenceCreateOrUpdate { post( options: SolutionInferenceCreateOrUpdateParameters, ): StreamableMethod< - | SolutionInferenceCreateOrUpdate202Response - | SolutionInferenceCreateOrUpdateDefaultResponse + SolutionInferenceCreateOrUpdate202Response | SolutionInferenceCreateOrUpdateDefaultResponse >; } @@ -2063,9 +1911,7 @@ export interface SolutionInferenceFetch { /** Fetches details of triggered job for a solution. */ post( options: SolutionInferenceFetchParameters, - ): StreamableMethod< - SolutionInferenceFetch200Response | SolutionInferenceFetchDefaultResponse - >; + ): StreamableMethod; } export interface TillageDataListByPartyId { @@ -2073,8 +1919,7 @@ export interface TillageDataListByPartyId { get( options?: TillageDataListByPartyIdParameters, ): StreamableMethod< - | TillageDataListByPartyId200Response - | TillageDataListByPartyIdDefaultResponse + TillageDataListByPartyId200Response | TillageDataListByPartyIdDefaultResponse >; } @@ -2082,9 +1927,7 @@ export interface TillageDataGet { /** Get a specified tillage data resource under a particular party. */ get( options?: TillageDataGetParameters, - ): StreamableMethod< - TillageDataGet200Response | TillageDataGetDefaultResponse - >; + ): StreamableMethod; /** Creates or updates an tillage data resource under a particular party. */ patch( options: TillageDataCreateOrUpdateParameters, @@ -2096,18 +1939,14 @@ export interface TillageDataGet { /** Deletes a specified tillage data resource under a particular party. */ delete( options?: TillageDataDeleteParameters, - ): StreamableMethod< - TillageDataDelete204Response | TillageDataDeleteDefaultResponse - >; + ): StreamableMethod; } export interface TillageDataList { /** Returns a paginated list of tillage data resources across all parties. */ get( options?: TillageDataListParameters, - ): StreamableMethod< - TillageDataList200Response | TillageDataListDefaultResponse - >; + ): StreamableMethod; } export interface TillageDataCreateCascadeDeleteJob { @@ -2115,8 +1954,7 @@ export interface TillageDataCreateCascadeDeleteJob { put( options: TillageDataCreateCascadeDeleteJobParameters, ): StreamableMethod< - | TillageDataCreateCascadeDeleteJob202Response - | TillageDataCreateCascadeDeleteJobDefaultResponse + TillageDataCreateCascadeDeleteJob202Response | TillageDataCreateCascadeDeleteJobDefaultResponse >; /** Get cascade delete job for tillage data resource. */ get( @@ -2139,15 +1977,13 @@ export interface WeatherGetDataDeleteJobDetails { get( options?: WeatherGetDataDeleteJobDetailsParameters, ): StreamableMethod< - | WeatherGetDataDeleteJobDetails200Response - | WeatherGetDataDeleteJobDetailsDefaultResponse + WeatherGetDataDeleteJobDetails200Response | WeatherGetDataDeleteJobDetailsDefaultResponse >; /** Create a weather data delete job. */ put( options: WeatherCreateDataDeleteJobParameters, ): StreamableMethod< - | WeatherCreateDataDeleteJob202Response - | WeatherCreateDataDeleteJobDefaultResponse + WeatherCreateDataDeleteJob202Response | WeatherCreateDataDeleteJobDefaultResponse >; } @@ -2156,15 +1992,13 @@ export interface WeatherGetDataIngestionJobDetails { get( options?: WeatherGetDataIngestionJobDetailsParameters, ): StreamableMethod< - | WeatherGetDataIngestionJobDetails200Response - | WeatherGetDataIngestionJobDetailsDefaultResponse + WeatherGetDataIngestionJobDetails200Response | WeatherGetDataIngestionJobDetailsDefaultResponse >; /** Create a weather data ingestion job. */ put( options: WeatherCreateDataIngestionJobParameters, ): StreamableMethod< - | WeatherCreateDataIngestionJob202Response - | WeatherCreateDataIngestionJobDefaultResponse + WeatherCreateDataIngestionJob202Response | WeatherCreateDataIngestionJobDefaultResponse >; } @@ -2172,18 +2006,14 @@ export interface WeatherDataGet { /** Returns a list of WeatherData. */ post( options: WeatherDataGetParameters, - ): StreamableMethod< - WeatherDataGet200Response | WeatherDataGetDefaultResponse - >; + ): StreamableMethod; } export interface ZonesListByPartyId { /** Returns a paginated list of zone resources under a particular party. */ get( options?: ZonesListByPartyIdParameters, - ): StreamableMethod< - ZonesListByPartyId200Response | ZonesListByPartyIdDefaultResponse - >; + ): StreamableMethod; } export interface ZonesGet { @@ -2217,15 +2047,13 @@ export interface ZonesGetCascadeDeleteJobDetails { get( options?: ZonesGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< - | ZonesGetCascadeDeleteJobDetails200Response - | ZonesGetCascadeDeleteJobDetailsDefaultResponse + ZonesGetCascadeDeleteJobDetails200Response | ZonesGetCascadeDeleteJobDetailsDefaultResponse >; /** Create a cascade delete job for specified zone. */ put( options: ZonesCreateCascadeDeleteJobParameters, ): StreamableMethod< - | ZonesCreateCascadeDeleteJob202Response - | ZonesCreateCascadeDeleteJobDefaultResponse + ZonesCreateCascadeDeleteJob202Response | ZonesCreateCascadeDeleteJobDefaultResponse >; } @@ -2238,10 +2066,7 @@ export interface Routes { jobId: string, ): ApplicationDataCreateCascadeDeleteJob; /** Resource for '/parties/\{partyId\}/application-data' has methods for the following verbs: get */ - ( - path: "/parties/{partyId}/application-data", - partyId: string, - ): ApplicationDataListByPartyId; + (path: "/parties/{partyId}/application-data", partyId: string): ApplicationDataListByPartyId; /** Resource for '/parties/\{partyId\}/application-data/\{applicationDataId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/application-data/{applicationDataId}", @@ -2249,10 +2074,7 @@ export interface Routes { applicationDataId: string, ): ApplicationDataGet; /** Resource for '/parties/\{partyId\}/attachments' has methods for the following verbs: get */ - ( - path: "/parties/{partyId}/attachments", - partyId: string, - ): AttachmentsListByPartyId; + (path: "/parties/{partyId}/attachments", partyId: string): AttachmentsListByPartyId; /** Resource for '/parties/\{partyId\}/attachments/\{attachmentId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/attachments/{attachmentId}", @@ -2268,15 +2090,9 @@ export interface Routes { /** Resource for '/boundaries' has methods for the following verbs: get, post */ (path: "/boundaries"): BoundariesList; /** Resource for '/boundaries/cascade-delete/\{jobId\}' has methods for the following verbs: put, get */ - ( - path: "/boundaries/cascade-delete/{jobId}", - jobId: string, - ): BoundariesCreateCascadeDeleteJob; + (path: "/boundaries/cascade-delete/{jobId}", jobId: string): BoundariesCreateCascadeDeleteJob; /** Resource for '/parties/\{partyId\}/boundaries' has methods for the following verbs: get, post */ - ( - path: "/parties/{partyId}/boundaries", - partyId: string, - ): BoundariesListByPartyId; + (path: "/parties/{partyId}/boundaries", partyId: string): BoundariesListByPartyId; /** Resource for '/parties/\{partyId\}/boundaries/\{boundaryId\}' has methods for the following verbs: patch, get, delete */ ( path: "/parties/{partyId}/boundaries/{boundaryId}", @@ -2292,10 +2108,7 @@ export interface Routes { /** Resource for '/crop-products' has methods for the following verbs: get */ (path: "/crop-products"): CropProductsList; /** Resource for '/crop-products/\{cropProductId\}' has methods for the following verbs: get, patch, delete */ - ( - path: "/crop-products/{cropProductId}", - cropProductId: string, - ): CropProductsGet; + (path: "/crop-products/{cropProductId}", cropProductId: string): CropProductsGet; /** Resource for '/crops' has methods for the following verbs: get */ (path: "/crops"): CropsList; /** Resource for '/crops/\{cropId\}' has methods for the following verbs: get, patch, delete */ @@ -2312,10 +2125,7 @@ export interface Routes { deviceDataModelId: string, ): DeviceDataModelsCreateOrUpdate; /** Resource for '/sensor-partners/\{sensorPartnerId\}/devices' has methods for the following verbs: get */ - ( - path: "/sensor-partners/{sensorPartnerId}/devices", - sensorPartnerId: string, - ): DevicesList; + (path: "/sensor-partners/{sensorPartnerId}/devices", sensorPartnerId: string): DevicesList; /** Resource for '/sensor-partners/\{sensorPartnerId\}/devices/\{deviceId\}' has methods for the following verbs: patch, get, delete */ ( path: "/sensor-partners/{sensorPartnerId}/devices/{deviceId}", @@ -2330,45 +2140,25 @@ export interface Routes { /** Resource for '/farms' has methods for the following verbs: get */ (path: "/farms"): FarmsList; /** Resource for '/farms/cascade-delete/\{jobId\}' has methods for the following verbs: put, get */ - ( - path: "/farms/cascade-delete/{jobId}", - jobId: string, - ): FarmsCreateCascadeDeleteJob; + (path: "/farms/cascade-delete/{jobId}", jobId: string): FarmsCreateCascadeDeleteJob; /** Resource for '/parties/\{partyId\}/farms' has methods for the following verbs: get */ (path: "/parties/{partyId}/farms", partyId: string): FarmsListByPartyId; /** Resource for '/parties/\{partyId\}/farms/\{farmId\}' has methods for the following verbs: get, patch, delete */ - ( - path: "/parties/{partyId}/farms/{farmId}", - partyId: string, - farmId: string, - ): FarmsGet; + (path: "/parties/{partyId}/farms/{farmId}", partyId: string, farmId: string): FarmsGet; /** Resource for '/fields' has methods for the following verbs: get */ (path: "/fields"): FieldsList; /** Resource for '/fields/cascade-delete/\{jobId\}' has methods for the following verbs: get, put */ - ( - path: "/fields/cascade-delete/{jobId}", - jobId: string, - ): FieldsGetCascadeDeleteJobDetails; + (path: "/fields/cascade-delete/{jobId}", jobId: string): FieldsGetCascadeDeleteJobDetails; /** Resource for '/parties/\{partyId\}/fields' has methods for the following verbs: get */ (path: "/parties/{partyId}/fields", partyId: string): FieldsListByPartyId; /** Resource for '/parties/\{partyId\}/fields/\{fieldId\}' has methods for the following verbs: get, patch, delete */ - ( - path: "/parties/{partyId}/fields/{fieldId}", - partyId: string, - fieldId: string, - ): FieldsGet; + (path: "/parties/{partyId}/fields/{fieldId}", partyId: string, fieldId: string): FieldsGet; /** Resource for '/harvest-data' has methods for the following verbs: get */ (path: "/harvest-data"): HarvestDataList; /** Resource for '/harvest-data/cascade-delete/\{jobId\}' has methods for the following verbs: put, get */ - ( - path: "/harvest-data/cascade-delete/{jobId}", - jobId: string, - ): HarvestDataCreateCascadeDeleteJob; + (path: "/harvest-data/cascade-delete/{jobId}", jobId: string): HarvestDataCreateCascadeDeleteJob; /** Resource for '/parties/\{partyId\}/harvest-data' has methods for the following verbs: get */ - ( - path: "/parties/{partyId}/harvest-data", - partyId: string, - ): HarvestDataListByPartyId; + (path: "/parties/{partyId}/harvest-data", partyId: string): HarvestDataListByPartyId; /** Resource for '/parties/\{partyId\}/harvest-data/\{harvestDataId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/harvest-data/{harvestDataId}", @@ -2376,10 +2166,7 @@ export interface Routes { harvestDataId: string, ): HarvestDataGet; /** Resource for '/image-processing/rasterize/\{jobId\}' has methods for the following verbs: put, get */ - ( - path: "/image-processing/rasterize/{jobId}", - jobId: string, - ): ImageProcessingCreateRasterizeJob; + (path: "/image-processing/rasterize/{jobId}", jobId: string): ImageProcessingCreateRasterizeJob; /** Resource for '/parties/\{partyId\}/models/\{modelId\}/resource-types/\{resourceType\}/resources/\{resourceId\}/insight-attachments' has methods for the following verbs: get */ ( path: "/parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insight-attachments", @@ -2407,10 +2194,7 @@ export interface Routes { insightAttachmentId: string, ): InsightAttachmentsDownload; /** Resource for '/insights/cascade-delete/\{jobId\}' has methods for the following verbs: put, get */ - ( - path: "/insights/cascade-delete/{jobId}", - jobId: string, - ): InsightsCreateCascadeDeleteJob; + (path: "/insights/cascade-delete/{jobId}", jobId: string): InsightsCreateCascadeDeleteJob; /** Resource for '/parties/\{partyId\}/models/\{modelId\}/resource-types/\{resourceType\}/resources/\{resourceId\}/insights' has methods for the following verbs: get */ ( path: "/parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insights", @@ -2436,10 +2220,7 @@ export interface Routes { jobId: string, ): ManagementZonesGetCascadeDeleteJobDetails; /** Resource for '/parties/\{partyId\}/management-zones' has methods for the following verbs: get */ - ( - path: "/parties/{partyId}/management-zones", - partyId: string, - ): ManagementZonesListByPartyId; + (path: "/parties/{partyId}/management-zones", partyId: string): ManagementZonesListByPartyId; /** Resource for '/parties/\{partyId\}/management-zones/\{managementZoneId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/management-zones/{managementZoneId}", @@ -2464,10 +2245,7 @@ export interface Routes { /** Resource for '/nutrient-analyses' has methods for the following verbs: get */ (path: "/nutrient-analyses"): NutrientAnalysesList; /** Resource for '/parties/\{partyId\}/nutrient-analyses' has methods for the following verbs: get */ - ( - path: "/parties/{partyId}/nutrient-analyses", - partyId: string, - ): NutrientAnalysesListByPartyId; + (path: "/parties/{partyId}/nutrient-analyses", partyId: string): NutrientAnalysesListByPartyId; /** Resource for '/parties/\{partyId\}/nutrient-analyses/\{nutrientAnalysisId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/nutrient-analyses/{nutrientAnalysisId}", @@ -2477,10 +2255,7 @@ export interface Routes { /** Resource for '/oauth/providers' has methods for the following verbs: get */ (path: "/oauth/providers"): OAuthProvidersList; /** Resource for '/oauth/providers/\{oauthProviderId\}' has methods for the following verbs: get, patch, delete */ - ( - path: "/oauth/providers/{oauthProviderId}", - oauthProviderId: string, - ): OAuthProvidersGet; + (path: "/oauth/providers/{oauthProviderId}", oauthProviderId: string): OAuthProvidersGet; /** Resource for '/oauth/providers/cascade-delete/\{jobId\}' has methods for the following verbs: get, put */ ( path: "/oauth/providers/cascade-delete/{jobId}", @@ -2491,24 +2266,15 @@ export interface Routes { /** Resource for '/oauth/tokens/:connect' has methods for the following verbs: post */ (path: "/oauth/tokens/:connect"): OAuthTokensGetOAuthConnectionLink; /** Resource for '/oauth/tokens/remove/\{jobId\}' has methods for the following verbs: get, put */ - ( - path: "/oauth/tokens/remove/{jobId}", - jobId: string, - ): OAuthTokensGetCascadeDeleteJobDetails; + (path: "/oauth/tokens/remove/{jobId}", jobId: string): OAuthTokensGetCascadeDeleteJobDetails; /** Resource for '/parties' has methods for the following verbs: get */ (path: "/parties"): PartiesList; /** Resource for '/parties/\{partyId\}' has methods for the following verbs: get, patch, delete */ (path: "/parties/{partyId}", partyId: string): PartiesGet; /** Resource for '/parties/cascade-delete/\{jobId\}' has methods for the following verbs: get, put */ - ( - path: "/parties/cascade-delete/{jobId}", - jobId: string, - ): PartiesGetCascadeDeleteJobDetails; + (path: "/parties/cascade-delete/{jobId}", jobId: string): PartiesGetCascadeDeleteJobDetails; /** Resource for '/parties/\{partyId\}/planting-data' has methods for the following verbs: get */ - ( - path: "/parties/{partyId}/planting-data", - partyId: string, - ): PlantingDataListByPartyId; + (path: "/parties/{partyId}/planting-data", partyId: string): PlantingDataListByPartyId; /** Resource for '/parties/\{partyId\}/planting-data/\{plantingDataId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/planting-data/{plantingDataId}", @@ -2541,10 +2307,7 @@ export interface Routes { jobId: string, ): PlantTissueAnalysesCreateCascadeDeleteJob; /** Resource for '/parties/\{partyId\}/prescription-maps' has methods for the following verbs: get */ - ( - path: "/parties/{partyId}/prescription-maps", - partyId: string, - ): PrescriptionMapsListByPartyId; + (path: "/parties/{partyId}/prescription-maps", partyId: string): PrescriptionMapsListByPartyId; /** Resource for '/parties/\{partyId\}/prescription-maps/\{prescriptionMapId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/prescription-maps/{prescriptionMapId}", @@ -2559,10 +2322,7 @@ export interface Routes { jobId: string, ): PrescriptionMapsGetCascadeDeleteJobDetails; /** Resource for '/parties/\{partyId\}/prescriptions' has methods for the following verbs: get */ - ( - path: "/parties/{partyId}/prescriptions", - partyId: string, - ): PrescriptionsListByPartyId; + (path: "/parties/{partyId}/prescriptions", partyId: string): PrescriptionsListByPartyId; /** Resource for '/parties/\{partyId\}/prescriptions/\{prescriptionId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/prescriptions/{prescriptionId}", @@ -2597,10 +2357,7 @@ export interface Routes { featureId: string, ): ScenesGetStacFeature; /** Resource for '/parties/\{partyId\}/seasonal-fields' has methods for the following verbs: get */ - ( - path: "/parties/{partyId}/seasonal-fields", - partyId: string, - ): SeasonalFieldsListByPartyId; + (path: "/parties/{partyId}/seasonal-fields", partyId: string): SeasonalFieldsListByPartyId; /** Resource for '/parties/\{partyId\}/seasonal-fields/\{seasonalFieldId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/seasonal-fields/{seasonalFieldId}", @@ -2662,10 +2419,7 @@ export interface Routes { integrationId: string, ): SensorPartnerIntegrationsGenerateConsentLink; /** Resource for '/sensor-partners/\{sensorPartnerId\}/sensors' has methods for the following verbs: get */ - ( - path: "/sensor-partners/{sensorPartnerId}/sensors", - sensorPartnerId: string, - ): SensorsList; + (path: "/sensor-partners/{sensorPartnerId}/sensors", sensorPartnerId: string): SensorsList; /** Resource for '/sensor-partners/\{sensorPartnerId\}/sensors/\{sensorId\}' has methods for the following verbs: patch, get, delete */ ( path: "/sensor-partners/{sensorPartnerId}/sensors/{sensorId}", @@ -2685,25 +2439,13 @@ export interface Routes { sensorId: string, ): SensorsRenewConnectionString; /** Resource for '/solutions/\{solutionId\}:cancel' has methods for the following verbs: post */ - ( - path: "/solutions/{solutionId}:cancel", - solutionId: string, - ): SolutionInferenceCancel; + (path: "/solutions/{solutionId}:cancel", solutionId: string): SolutionInferenceCancel; /** Resource for '/solutions/\{solutionId\}:create' has methods for the following verbs: post */ - ( - path: "/solutions/{solutionId}:create", - solutionId: string, - ): SolutionInferenceCreateOrUpdate; + (path: "/solutions/{solutionId}:create", solutionId: string): SolutionInferenceCreateOrUpdate; /** Resource for '/solutions/\{solutionId\}:fetch' has methods for the following verbs: post */ - ( - path: "/solutions/{solutionId}:fetch", - solutionId: string, - ): SolutionInferenceFetch; + (path: "/solutions/{solutionId}:fetch", solutionId: string): SolutionInferenceFetch; /** Resource for '/parties/\{partyId\}/tillage-data' has methods for the following verbs: get */ - ( - path: "/parties/{partyId}/tillage-data", - partyId: string, - ): TillageDataListByPartyId; + (path: "/parties/{partyId}/tillage-data", partyId: string): TillageDataListByPartyId; /** Resource for '/parties/\{partyId\}/tillage-data/\{tillageDataId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/tillage-data/{tillageDataId}", @@ -2713,39 +2455,23 @@ export interface Routes { /** Resource for '/tillage-data' has methods for the following verbs: get */ (path: "/tillage-data"): TillageDataList; /** Resource for '/tillage-data/cascade-delete/\{jobId\}' has methods for the following verbs: put, get */ - ( - path: "/tillage-data/cascade-delete/{jobId}", - jobId: string, - ): TillageDataCreateCascadeDeleteJob; + (path: "/tillage-data/cascade-delete/{jobId}", jobId: string): TillageDataCreateCascadeDeleteJob; /** Resource for '/weather' has methods for the following verbs: get */ (path: "/weather"): WeatherList; /** Resource for '/weather/delete-data/\{jobId\}' has methods for the following verbs: get, put */ - ( - path: "/weather/delete-data/{jobId}", - jobId: string, - ): WeatherGetDataDeleteJobDetails; + (path: "/weather/delete-data/{jobId}", jobId: string): WeatherGetDataDeleteJobDetails; /** Resource for '/weather/ingest-data/\{jobId\}' has methods for the following verbs: get, put */ - ( - path: "/weather/ingest-data/{jobId}", - jobId: string, - ): WeatherGetDataIngestionJobDetails; + (path: "/weather/ingest-data/{jobId}", jobId: string): WeatherGetDataIngestionJobDetails; /** Resource for '/weather-data/:fetch' has methods for the following verbs: post */ (path: "/weather-data/:fetch"): WeatherDataGet; /** Resource for '/parties/\{partyId\}/zones' has methods for the following verbs: get */ (path: "/parties/{partyId}/zones", partyId: string): ZonesListByPartyId; /** Resource for '/parties/\{partyId\}/zones/\{zoneId\}' has methods for the following verbs: get, patch, delete */ - ( - path: "/parties/{partyId}/zones/{zoneId}", - partyId: string, - zoneId: string, - ): ZonesGet; + (path: "/parties/{partyId}/zones/{zoneId}", partyId: string, zoneId: string): ZonesGet; /** Resource for '/zones' has methods for the following verbs: get */ (path: "/zones"): ZonesList; /** Resource for '/zones/cascade-delete/\{jobId\}' has methods for the following verbs: get, put */ - ( - path: "/zones/cascade-delete/{jobId}", - jobId: string, - ): ZonesGetCascadeDeleteJobDetails; + (path: "/zones/cascade-delete/{jobId}", jobId: string): ZonesGetCascadeDeleteJobDetails; } export type FarmBeatsClient = Client & { diff --git a/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts b/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts index 4a30027afd4e..c963136effee 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts @@ -21,10 +21,7 @@ export interface FarmBeatsClientOptions extends ClientOptions { export default function createClient( $host: string, credentials: TokenCredential, - { - apiVersion = "2022-11-01-preview", - ...options - }: FarmBeatsClientOptions = {}, + { apiVersion = "2022-11-01-preview", ...options }: FarmBeatsClientOptions = {}, ): FarmBeatsClient { const endpointUrl = options.endpoint ?? options.baseUrl ?? `${$host}`; const userAgentInfo = `azsdk-js-agrifood-farming-rest/1.0.0-beta.3`; @@ -41,16 +38,10 @@ export default function createClient( logger: options.loggingOptions?.logger ?? logger.info, }, credentials: { - scopes: options.credentials?.scopes ?? [ - "https://farmbeats.azure.net/.default", - ], + scopes: options.credentials?.scopes ?? ["https://farmbeats.azure.net/.default"], }, }; - const client = getClient( - endpointUrl, - credentials, - options, - ) as FarmBeatsClient; + const client = getClient(endpointUrl, credentials, options) as FarmBeatsClient; client.pipeline.removePolicy({ name: "ApiVersionPolicy" }); client.pipeline.addPolicy({ diff --git a/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts b/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts index 1c3313bb44bd..32988d895492 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts @@ -432,10 +432,7 @@ const responseMap: Record = { "PUT /application-data/cascade-delete/{jobId}": ["202"], "GET /parties/{partyId}/application-data": ["200"], "GET /parties/{partyId}/application-data/{applicationDataId}": ["200"], - "PATCH /parties/{partyId}/application-data/{applicationDataId}": [ - "200", - "201", - ], + "PATCH /parties/{partyId}/application-data/{applicationDataId}": ["200", "201"], "DELETE /parties/{partyId}/application-data/{applicationDataId}": ["204"], "GET /parties/{partyId}/attachments": ["200"], "GET /parties/{partyId}/attachments/{attachmentId}": ["200"], @@ -461,12 +458,9 @@ const responseMap: Record = { "PATCH /crops/{cropId}": ["200", "201"], "DELETE /crops/{cropId}": ["204"], "GET /sensor-partners/{sensorPartnerId}/device-data-models": ["200"], - "PATCH /sensor-partners/{sensorPartnerId}/device-data-models/{deviceDataModelId}": - ["200", "201"], - "GET /sensor-partners/{sensorPartnerId}/device-data-models/{deviceDataModelId}": - ["200"], - "DELETE /sensor-partners/{sensorPartnerId}/device-data-models/{deviceDataModelId}": - ["204"], + "PATCH /sensor-partners/{sensorPartnerId}/device-data-models/{deviceDataModelId}": ["200", "201"], + "GET /sensor-partners/{sensorPartnerId}/device-data-models/{deviceDataModelId}": ["200"], + "DELETE /sensor-partners/{sensorPartnerId}/device-data-models/{deviceDataModelId}": ["204"], "GET /sensor-partners/{sensorPartnerId}/devices": ["200"], "PATCH /sensor-partners/{sensorPartnerId}/devices/{deviceId}": ["200", "201"], "GET /sensor-partners/{sensorPartnerId}/devices/{deviceId}": ["200"], @@ -521,32 +515,18 @@ const responseMap: Record = { "PUT /management-zones/cascade-delete/{jobId}": ["202"], "GET /parties/{partyId}/management-zones": ["200"], "GET /parties/{partyId}/management-zones/{managementZoneId}": ["200"], - "PATCH /parties/{partyId}/management-zones/{managementZoneId}": [ - "200", - "201", - ], + "PATCH /parties/{partyId}/management-zones/{managementZoneId}": ["200", "201"], "DELETE /parties/{partyId}/management-zones/{managementZoneId}": ["204"], "GET /model-inference/models/microsoft-biomass/infer-data/{jobId}": ["200"], "PUT /model-inference/models/microsoft-biomass/infer-data/{jobId}": ["202"], - "GET /model-inference/models/microsoft-sensor-placement/infer-data/{jobId}": [ - "200", - ], - "PUT /model-inference/models/microsoft-sensor-placement/infer-data/{jobId}": [ - "202", - ], - "GET /model-inference/models/microsoft-soil-moisture/infer-data/{jobId}": [ - "200", - ], - "PUT /model-inference/models/microsoft-soil-moisture/infer-data/{jobId}": [ - "202", - ], + "GET /model-inference/models/microsoft-sensor-placement/infer-data/{jobId}": ["200"], + "PUT /model-inference/models/microsoft-sensor-placement/infer-data/{jobId}": ["202"], + "GET /model-inference/models/microsoft-soil-moisture/infer-data/{jobId}": ["200"], + "PUT /model-inference/models/microsoft-soil-moisture/infer-data/{jobId}": ["202"], "GET /nutrient-analyses": ["200"], "GET /parties/{partyId}/nutrient-analyses": ["200"], "GET /parties/{partyId}/nutrient-analyses/{nutrientAnalysisId}": ["200"], - "PATCH /parties/{partyId}/nutrient-analyses/{nutrientAnalysisId}": [ - "200", - "201", - ], + "PATCH /parties/{partyId}/nutrient-analyses/{nutrientAnalysisId}": ["200", "201"], "DELETE /parties/{partyId}/nutrient-analyses/{nutrientAnalysisId}": ["204"], "GET /oauth/providers": ["200"], "GET /oauth/providers/{oauthProviderId}": ["200"], @@ -572,25 +552,15 @@ const responseMap: Record = { "GET /planting-data/cascade-delete/{jobId}": ["200"], "PUT /planting-data/cascade-delete/{jobId}": ["202"], "GET /parties/{partyId}/plant-tissue-analyses": ["200"], - "GET /parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}": [ - "200", - ], - "PATCH /parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}": [ - "200", - "201", - ], - "DELETE /parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}": [ - "204", - ], + "GET /parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}": ["200"], + "PATCH /parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}": ["200", "201"], + "DELETE /parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}": ["204"], "GET /plant-tissue-analyses": ["200"], "GET /plant-tissue-analyses/cascade-delete/{jobId}": ["200"], "PUT /plant-tissue-analyses/cascade-delete/{jobId}": ["202"], "GET /parties/{partyId}/prescription-maps": ["200"], "GET /parties/{partyId}/prescription-maps/{prescriptionMapId}": ["200"], - "PATCH /parties/{partyId}/prescription-maps/{prescriptionMapId}": [ - "200", - "201", - ], + "PATCH /parties/{partyId}/prescription-maps/{prescriptionMapId}": ["200", "201"], "DELETE /parties/{partyId}/prescription-maps/{prescriptionMapId}": ["204"], "GET /prescription-maps": ["200"], "GET /prescription-maps/cascade-delete/{jobId}": ["200"], @@ -620,40 +590,28 @@ const responseMap: Record = { "PATCH /seasons/{seasonId}": ["200", "201"], "DELETE /seasons/{seasonId}": ["204"], "GET /sensor-partners/{sensorPartnerId}/sensor-data-models": ["200"], - "PATCH /sensor-partners/{sensorPartnerId}/sensor-data-models/{sensorDataModelId}": - ["200", "201"], - "GET /sensor-partners/{sensorPartnerId}/sensor-data-models/{sensorDataModelId}": - ["200"], - "DELETE /sensor-partners/{sensorPartnerId}/sensor-data-models/{sensorDataModelId}": - ["204"], + "PATCH /sensor-partners/{sensorPartnerId}/sensor-data-models/{sensorDataModelId}": ["200", "201"], + "GET /sensor-partners/{sensorPartnerId}/sensor-data-models/{sensorDataModelId}": ["200"], + "DELETE /sensor-partners/{sensorPartnerId}/sensor-data-models/{sensorDataModelId}": ["204"], "GET /sensor-events": ["200"], "GET /sensor-mappings": ["200"], "PATCH /sensor-mappings/{sensorMappingId}": ["200", "201"], "GET /sensor-mappings/{sensorMappingId}": ["200"], "DELETE /sensor-mappings/{sensorMappingId}": ["204"], "GET /sensor-partners/{sensorPartnerId}/integrations": ["200"], - "PATCH /sensor-partners/{sensorPartnerId}/integrations/{integrationId}": [ - "200", - "201", - ], - "GET /sensor-partners/{sensorPartnerId}/integrations/{integrationId}": [ + "PATCH /sensor-partners/{sensorPartnerId}/integrations/{integrationId}": ["200", "201"], + "GET /sensor-partners/{sensorPartnerId}/integrations/{integrationId}": ["200"], + "DELETE /sensor-partners/{sensorPartnerId}/integrations/{integrationId}": ["204"], + "POST /sensor-partners/{sensorPartnerId}/integrations/{integrationId}/:check-consent": ["200"], + "POST /sensor-partners/{sensorPartnerId}/integrations/{integrationId}/:generate-consent-link": [ "200", ], - "DELETE /sensor-partners/{sensorPartnerId}/integrations/{integrationId}": [ - "204", - ], - "POST /sensor-partners/{sensorPartnerId}/integrations/{integrationId}/:check-consent": - ["200"], - "POST /sensor-partners/{sensorPartnerId}/integrations/{integrationId}/:generate-consent-link": - ["200"], "GET /sensor-partners/{sensorPartnerId}/sensors": ["200"], "PATCH /sensor-partners/{sensorPartnerId}/sensors/{sensorId}": ["200", "201"], "GET /sensor-partners/{sensorPartnerId}/sensors/{sensorId}": ["200"], "DELETE /sensor-partners/{sensorPartnerId}/sensors/{sensorId}": ["204"], - "GET /sensor-partners/{sensorPartnerId}/sensors/{sensorId}/connection-strings": - ["200"], - "POST /sensor-partners/{sensorPartnerId}/sensors/{sensorId}/connection-strings/:renew": - ["200"], + "GET /sensor-partners/{sensorPartnerId}/sensors/{sensorId}/connection-strings": ["200"], + "POST /sensor-partners/{sensorPartnerId}/sensors/{sensorId}/connection-strings/:renew": ["200"], "POST /solutions/{solutionId}:cancel": ["200"], "GET /solutions/{solutionId}:create": ["202"], "POST /solutions/{solutionId}:create": ["202"], @@ -694,9 +652,7 @@ export function isUnexpected( | ApplicationDataGetCascadeDeleteJobDetailsDefaultResponse, ): response is ApplicationDataGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: - | ApplicationDataListByPartyId200Response - | ApplicationDataListByPartyIdDefaultResponse, + response: ApplicationDataListByPartyId200Response | ApplicationDataListByPartyIdDefaultResponse, ): response is ApplicationDataListByPartyIdDefaultResponse; export function isUnexpected( response: ApplicationDataGet200Response | ApplicationDataGetDefaultResponse, @@ -708,14 +664,10 @@ export function isUnexpected( | ApplicationDataCreateOrUpdateDefaultResponse, ): response is ApplicationDataCreateOrUpdateDefaultResponse; export function isUnexpected( - response: - | ApplicationDataDelete204Response - | ApplicationDataDeleteDefaultResponse, + response: ApplicationDataDelete204Response | ApplicationDataDeleteDefaultResponse, ): response is ApplicationDataDeleteDefaultResponse; export function isUnexpected( - response: - | AttachmentsListByPartyId200Response - | AttachmentsListByPartyIdDefaultResponse, + response: AttachmentsListByPartyId200Response | AttachmentsListByPartyIdDefaultResponse, ): response is AttachmentsListByPartyIdDefaultResponse; export function isUnexpected( response: AttachmentsGet200Response | AttachmentsGetDefaultResponse, @@ -749,14 +701,10 @@ export function isUnexpected( | BoundariesGetCascadeDeleteJobDetailsDefaultResponse, ): response is BoundariesGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: - | BoundariesListByPartyId200Response - | BoundariesListByPartyIdDefaultResponse, + response: BoundariesListByPartyId200Response | BoundariesListByPartyIdDefaultResponse, ): response is BoundariesListByPartyIdDefaultResponse; export function isUnexpected( - response: - | BoundariesSearchByPartyId200Response - | BoundariesSearchByPartyIdDefaultResponse, + response: BoundariesSearchByPartyId200Response | BoundariesSearchByPartyIdDefaultResponse, ): response is BoundariesSearchByPartyIdDefaultResponse; export function isUnexpected( response: @@ -771,9 +719,7 @@ export function isUnexpected( response: BoundariesDelete204Response | BoundariesDeleteDefaultResponse, ): response is BoundariesDeleteDefaultResponse; export function isUnexpected( - response: - | BoundariesGetOverlap200Response - | BoundariesGetOverlapDefaultResponse, + response: BoundariesGetOverlap200Response | BoundariesGetOverlapDefaultResponse, ): response is BoundariesGetOverlapDefaultResponse; export function isUnexpected( response: CropProductsList200Response | CropProductsListDefaultResponse, @@ -806,9 +752,7 @@ export function isUnexpected( response: CropsDelete204Response | CropsDeleteDefaultResponse, ): response is CropsDeleteDefaultResponse; export function isUnexpected( - response: - | DeviceDataModelsList200Response - | DeviceDataModelsListDefaultResponse, + response: DeviceDataModelsList200Response | DeviceDataModelsListDefaultResponse, ): response is DeviceDataModelsListDefaultResponse; export function isUnexpected( response: @@ -820,9 +764,7 @@ export function isUnexpected( response: DeviceDataModelsGet200Response | DeviceDataModelsGetDefaultResponse, ): response is DeviceDataModelsGetDefaultResponse; export function isUnexpected( - response: - | DeviceDataModelsDelete204Response - | DeviceDataModelsDeleteDefaultResponse, + response: DeviceDataModelsDelete204Response | DeviceDataModelsDeleteDefaultResponse, ): response is DeviceDataModelsDeleteDefaultResponse; export function isUnexpected( response: DevicesList200Response | DevicesListDefaultResponse, @@ -853,9 +795,7 @@ export function isUnexpected( response: FarmsList200Response | FarmsListDefaultResponse, ): response is FarmsListDefaultResponse; export function isUnexpected( - response: - | FarmsCreateCascadeDeleteJob202Response - | FarmsCreateCascadeDeleteJobDefaultResponse, + response: FarmsCreateCascadeDeleteJob202Response | FarmsCreateCascadeDeleteJobDefaultResponse, ): response is FarmsCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( response: @@ -886,9 +826,7 @@ export function isUnexpected( | FieldsGetCascadeDeleteJobDetailsDefaultResponse, ): response is FieldsGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: - | FieldsCreateCascadeDeleteJob202Response - | FieldsCreateCascadeDeleteJobDefaultResponse, + response: FieldsCreateCascadeDeleteJob202Response | FieldsCreateCascadeDeleteJobDefaultResponse, ): response is FieldsCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( response: FieldsListByPartyId200Response | FieldsListByPartyIdDefaultResponse, @@ -919,9 +857,7 @@ export function isUnexpected( | HarvestDataGetCascadeDeleteJobDetailsDefaultResponse, ): response is HarvestDataGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: - | HarvestDataListByPartyId200Response - | HarvestDataListByPartyIdDefaultResponse, + response: HarvestDataListByPartyId200Response | HarvestDataListByPartyIdDefaultResponse, ): response is HarvestDataListByPartyIdDefaultResponse; export function isUnexpected( response: HarvestDataGet200Response | HarvestDataGetDefaultResponse, @@ -957,19 +893,13 @@ export function isUnexpected( | InsightAttachmentsCreateOrUpdateDefaultResponse, ): response is InsightAttachmentsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: - | InsightAttachmentsGet200Response - | InsightAttachmentsGetDefaultResponse, + response: InsightAttachmentsGet200Response | InsightAttachmentsGetDefaultResponse, ): response is InsightAttachmentsGetDefaultResponse; export function isUnexpected( - response: - | InsightAttachmentsDelete204Response - | InsightAttachmentsDeleteDefaultResponse, + response: InsightAttachmentsDelete204Response | InsightAttachmentsDeleteDefaultResponse, ): response is InsightAttachmentsDeleteDefaultResponse; export function isUnexpected( - response: - | InsightAttachmentsDownload200Response - | InsightAttachmentsDownloadDefaultResponse, + response: InsightAttachmentsDownload200Response | InsightAttachmentsDownloadDefaultResponse, ): response is InsightAttachmentsDownloadDefaultResponse; export function isUnexpected( response: @@ -1012,9 +942,7 @@ export function isUnexpected( | ManagementZonesCreateCascadeDeleteJobDefaultResponse, ): response is ManagementZonesCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( - response: - | ManagementZonesListByPartyId200Response - | ManagementZonesListByPartyIdDefaultResponse, + response: ManagementZonesListByPartyId200Response | ManagementZonesListByPartyIdDefaultResponse, ): response is ManagementZonesListByPartyIdDefaultResponse; export function isUnexpected( response: ManagementZonesGet200Response | ManagementZonesGetDefaultResponse, @@ -1026,9 +954,7 @@ export function isUnexpected( | ManagementZonesCreateOrUpdateDefaultResponse, ): response is ManagementZonesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: - | ManagementZonesDelete204Response - | ManagementZonesDeleteDefaultResponse, + response: ManagementZonesDelete204Response | ManagementZonesDeleteDefaultResponse, ): response is ManagementZonesDeleteDefaultResponse; export function isUnexpected( response: @@ -1061,14 +987,10 @@ export function isUnexpected( | ModelInferenceGetSoilMoistureModelJobDefaultResponse, ): response is ModelInferenceGetSoilMoistureModelJobDefaultResponse; export function isUnexpected( - response: - | NutrientAnalysesList200Response - | NutrientAnalysesListDefaultResponse, + response: NutrientAnalysesList200Response | NutrientAnalysesListDefaultResponse, ): response is NutrientAnalysesListDefaultResponse; export function isUnexpected( - response: - | NutrientAnalysesListByPartyId200Response - | NutrientAnalysesListByPartyIdDefaultResponse, + response: NutrientAnalysesListByPartyId200Response | NutrientAnalysesListByPartyIdDefaultResponse, ): response is NutrientAnalysesListByPartyIdDefaultResponse; export function isUnexpected( response: NutrientAnalysesGet200Response | NutrientAnalysesGetDefaultResponse, @@ -1080,9 +1002,7 @@ export function isUnexpected( | NutrientAnalysesCreateOrUpdateDefaultResponse, ): response is NutrientAnalysesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: - | NutrientAnalysesDelete204Response - | NutrientAnalysesDeleteDefaultResponse, + response: NutrientAnalysesDelete204Response | NutrientAnalysesDeleteDefaultResponse, ): response is NutrientAnalysesDeleteDefaultResponse; export function isUnexpected( response: OAuthProvidersList200Response | OAuthProvidersListDefaultResponse, @@ -1097,9 +1017,7 @@ export function isUnexpected( | OAuthProvidersCreateOrUpdateDefaultResponse, ): response is OAuthProvidersCreateOrUpdateDefaultResponse; export function isUnexpected( - response: - | OAuthProvidersDelete204Response - | OAuthProvidersDeleteDefaultResponse, + response: OAuthProvidersDelete204Response | OAuthProvidersDeleteDefaultResponse, ): response is OAuthProvidersDeleteDefaultResponse; export function isUnexpected( response: @@ -1150,14 +1068,10 @@ export function isUnexpected( | PartiesGetCascadeDeleteJobDetailsDefaultResponse, ): response is PartiesGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: - | PartiesCreateCascadeDeleteJob202Response - | PartiesCreateCascadeDeleteJobDefaultResponse, + response: PartiesCreateCascadeDeleteJob202Response | PartiesCreateCascadeDeleteJobDefaultResponse, ): response is PartiesCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( - response: - | PlantingDataListByPartyId200Response - | PlantingDataListByPartyIdDefaultResponse, + response: PlantingDataListByPartyId200Response | PlantingDataListByPartyIdDefaultResponse, ): response is PlantingDataListByPartyIdDefaultResponse; export function isUnexpected( response: PlantingDataGet200Response | PlantingDataGetDefaultResponse, @@ -1190,9 +1104,7 @@ export function isUnexpected( | PlantTissueAnalysesListByPartyIdDefaultResponse, ): response is PlantTissueAnalysesListByPartyIdDefaultResponse; export function isUnexpected( - response: - | PlantTissueAnalysesGet200Response - | PlantTissueAnalysesGetDefaultResponse, + response: PlantTissueAnalysesGet200Response | PlantTissueAnalysesGetDefaultResponse, ): response is PlantTissueAnalysesGetDefaultResponse; export function isUnexpected( response: @@ -1201,14 +1113,10 @@ export function isUnexpected( | PlantTissueAnalysesCreateOrUpdateDefaultResponse, ): response is PlantTissueAnalysesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: - | PlantTissueAnalysesDelete204Response - | PlantTissueAnalysesDeleteDefaultResponse, + response: PlantTissueAnalysesDelete204Response | PlantTissueAnalysesDeleteDefaultResponse, ): response is PlantTissueAnalysesDeleteDefaultResponse; export function isUnexpected( - response: - | PlantTissueAnalysesList200Response - | PlantTissueAnalysesListDefaultResponse, + response: PlantTissueAnalysesList200Response | PlantTissueAnalysesListDefaultResponse, ): response is PlantTissueAnalysesListDefaultResponse; export function isUnexpected( response: @@ -1221,9 +1129,7 @@ export function isUnexpected( | PlantTissueAnalysesGetCascadeDeleteJobDetailsDefaultResponse, ): response is PlantTissueAnalysesGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: - | PrescriptionMapsListByPartyId200Response - | PrescriptionMapsListByPartyIdDefaultResponse, + response: PrescriptionMapsListByPartyId200Response | PrescriptionMapsListByPartyIdDefaultResponse, ): response is PrescriptionMapsListByPartyIdDefaultResponse; export function isUnexpected( response: PrescriptionMapsGet200Response | PrescriptionMapsGetDefaultResponse, @@ -1235,14 +1141,10 @@ export function isUnexpected( | PrescriptionMapsCreateOrUpdateDefaultResponse, ): response is PrescriptionMapsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: - | PrescriptionMapsDelete204Response - | PrescriptionMapsDeleteDefaultResponse, + response: PrescriptionMapsDelete204Response | PrescriptionMapsDeleteDefaultResponse, ): response is PrescriptionMapsDeleteDefaultResponse; export function isUnexpected( - response: - | PrescriptionMapsList200Response - | PrescriptionMapsListDefaultResponse, + response: PrescriptionMapsList200Response | PrescriptionMapsListDefaultResponse, ): response is PrescriptionMapsListDefaultResponse; export function isUnexpected( response: @@ -1255,9 +1157,7 @@ export function isUnexpected( | PrescriptionMapsCreateCascadeDeleteJobDefaultResponse, ): response is PrescriptionMapsCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( - response: - | PrescriptionsListByPartyId200Response - | PrescriptionsListByPartyIdDefaultResponse, + response: PrescriptionsListByPartyId200Response | PrescriptionsListByPartyIdDefaultResponse, ): response is PrescriptionsListByPartyIdDefaultResponse; export function isUnexpected( response: PrescriptionsGet200Response | PrescriptionsGetDefaultResponse, @@ -1301,19 +1201,13 @@ export function isUnexpected( | ScenesGetSatelliteDataIngestionJobDetailsDefaultResponse, ): response is ScenesGetSatelliteDataIngestionJobDetailsDefaultResponse; export function isUnexpected( - response: - | ScenesSearchFeatures200Response - | ScenesSearchFeaturesDefaultResponse, + response: ScenesSearchFeatures200Response | ScenesSearchFeaturesDefaultResponse, ): response is ScenesSearchFeaturesDefaultResponse; export function isUnexpected( - response: - | ScenesGetStacFeature200Response - | ScenesGetStacFeatureDefaultResponse, + response: ScenesGetStacFeature200Response | ScenesGetStacFeatureDefaultResponse, ): response is ScenesGetStacFeatureDefaultResponse; export function isUnexpected( - response: - | SeasonalFieldsListByPartyId200Response - | SeasonalFieldsListByPartyIdDefaultResponse, + response: SeasonalFieldsListByPartyId200Response | SeasonalFieldsListByPartyIdDefaultResponse, ): response is SeasonalFieldsListByPartyIdDefaultResponse; export function isUnexpected( response: SeasonalFieldsGet200Response | SeasonalFieldsGetDefaultResponse, @@ -1325,9 +1219,7 @@ export function isUnexpected( | SeasonalFieldsCreateOrUpdateDefaultResponse, ): response is SeasonalFieldsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: - | SeasonalFieldsDelete204Response - | SeasonalFieldsDeleteDefaultResponse, + response: SeasonalFieldsDelete204Response | SeasonalFieldsDeleteDefaultResponse, ): response is SeasonalFieldsDeleteDefaultResponse; export function isUnexpected( response: SeasonalFieldsList200Response | SeasonalFieldsListDefaultResponse, @@ -1358,9 +1250,7 @@ export function isUnexpected( response: SeasonsDelete204Response | SeasonsDeleteDefaultResponse, ): response is SeasonsDeleteDefaultResponse; export function isUnexpected( - response: - | SensorDataModelsList200Response - | SensorDataModelsListDefaultResponse, + response: SensorDataModelsList200Response | SensorDataModelsListDefaultResponse, ): response is SensorDataModelsListDefaultResponse; export function isUnexpected( response: @@ -1372,9 +1262,7 @@ export function isUnexpected( response: SensorDataModelsGet200Response | SensorDataModelsGetDefaultResponse, ): response is SensorDataModelsGetDefaultResponse; export function isUnexpected( - response: - | SensorDataModelsDelete204Response - | SensorDataModelsDeleteDefaultResponse, + response: SensorDataModelsDelete204Response | SensorDataModelsDeleteDefaultResponse, ): response is SensorDataModelsDeleteDefaultResponse; export function isUnexpected( response: SensorEventsList200Response | SensorEventsListDefaultResponse, @@ -1392,14 +1280,10 @@ export function isUnexpected( response: SensorMappingsGet200Response | SensorMappingsGetDefaultResponse, ): response is SensorMappingsGetDefaultResponse; export function isUnexpected( - response: - | SensorMappingsDelete204Response - | SensorMappingsDeleteDefaultResponse, + response: SensorMappingsDelete204Response | SensorMappingsDeleteDefaultResponse, ): response is SensorMappingsDeleteDefaultResponse; export function isUnexpected( - response: - | SensorPartnerIntegrationsList200Response - | SensorPartnerIntegrationsListDefaultResponse, + response: SensorPartnerIntegrationsList200Response | SensorPartnerIntegrationsListDefaultResponse, ): response is SensorPartnerIntegrationsListDefaultResponse; export function isUnexpected( response: @@ -1408,9 +1292,7 @@ export function isUnexpected( | SensorPartnerIntegrationsCreateOrUpdateDefaultResponse, ): response is SensorPartnerIntegrationsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: - | SensorPartnerIntegrationsGet200Response - | SensorPartnerIntegrationsGetDefaultResponse, + response: SensorPartnerIntegrationsGet200Response | SensorPartnerIntegrationsGetDefaultResponse, ): response is SensorPartnerIntegrationsGetDefaultResponse; export function isUnexpected( response: @@ -1443,19 +1325,13 @@ export function isUnexpected( response: SensorsDelete204Response | SensorsDeleteDefaultResponse, ): response is SensorsDeleteDefaultResponse; export function isUnexpected( - response: - | SensorsGetConnectionString200Response - | SensorsGetConnectionStringDefaultResponse, + response: SensorsGetConnectionString200Response | SensorsGetConnectionStringDefaultResponse, ): response is SensorsGetConnectionStringDefaultResponse; export function isUnexpected( - response: - | SensorsRenewConnectionString200Response - | SensorsRenewConnectionStringDefaultResponse, + response: SensorsRenewConnectionString200Response | SensorsRenewConnectionStringDefaultResponse, ): response is SensorsRenewConnectionStringDefaultResponse; export function isUnexpected( - response: - | SolutionInferenceCancel200Response - | SolutionInferenceCancelDefaultResponse, + response: SolutionInferenceCancel200Response | SolutionInferenceCancelDefaultResponse, ): response is SolutionInferenceCancelDefaultResponse; export function isUnexpected( response: @@ -1463,14 +1339,10 @@ export function isUnexpected( | SolutionInferenceCreateOrUpdateDefaultResponse, ): response is SolutionInferenceCreateOrUpdateDefaultResponse; export function isUnexpected( - response: - | SolutionInferenceFetch200Response - | SolutionInferenceFetchDefaultResponse, + response: SolutionInferenceFetch200Response | SolutionInferenceFetchDefaultResponse, ): response is SolutionInferenceFetchDefaultResponse; export function isUnexpected( - response: - | TillageDataListByPartyId200Response - | TillageDataListByPartyIdDefaultResponse, + response: TillageDataListByPartyId200Response | TillageDataListByPartyIdDefaultResponse, ): response is TillageDataListByPartyIdDefaultResponse; export function isUnexpected( response: TillageDataGet200Response | TillageDataGetDefaultResponse, @@ -1506,9 +1378,7 @@ export function isUnexpected( | WeatherGetDataDeleteJobDetailsDefaultResponse, ): response is WeatherGetDataDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: - | WeatherCreateDataDeleteJob202Response - | WeatherCreateDataDeleteJobDefaultResponse, + response: WeatherCreateDataDeleteJob202Response | WeatherCreateDataDeleteJobDefaultResponse, ): response is WeatherCreateDataDeleteJobDefaultResponse; export function isUnexpected( response: @@ -1516,9 +1386,7 @@ export function isUnexpected( | WeatherGetDataIngestionJobDetailsDefaultResponse, ): response is WeatherGetDataIngestionJobDetailsDefaultResponse; export function isUnexpected( - response: - | WeatherCreateDataIngestionJob202Response - | WeatherCreateDataIngestionJobDefaultResponse, + response: WeatherCreateDataIngestionJob202Response | WeatherCreateDataIngestionJobDefaultResponse, ): response is WeatherCreateDataIngestionJobDefaultResponse; export function isUnexpected( response: WeatherDataGet200Response | WeatherDataGetDefaultResponse, @@ -1547,9 +1415,7 @@ export function isUnexpected( | ZonesGetCascadeDeleteJobDetailsDefaultResponse, ): response is ZonesGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: - | ZonesCreateCascadeDeleteJob202Response - | ZonesCreateCascadeDeleteJobDefaultResponse, + response: ZonesCreateCascadeDeleteJob202Response | ZonesCreateCascadeDeleteJobDefaultResponse, ): response is ZonesCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( response: @@ -2205,24 +2071,17 @@ function getParametrizedPathSuccess(method: string, path: string): string[] { // track if we have found a match to return the values found. let found = true; - for ( - let i = candidateParts.length - 1, j = pathParts.length - 1; - i >= 1 && j >= 1; - i--, j-- - ) { - if ( - candidateParts[i]?.startsWith("{") && - candidateParts[i]?.indexOf("}") !== -1 - ) { + for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { + if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) { const start = candidateParts[i]!.indexOf("}") + 1, end = candidateParts[i]?.length; // If the current part of the candidate is a "template" part // Try to use the suffix of pattern to match the path // {guid} ==> $ // {guid}:export ==> :export$ - const isMatched = new RegExp( - `${candidateParts[i]?.slice(start, end)}`, - ).test(pathParts[j] || ""); + const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( + pathParts[j] || "", + ); if (!isMatched) { found = false; diff --git a/sdk/agrifood/agrifood-farming-rest/src/outputModels.ts b/sdk/agrifood/agrifood-farming-rest/src/outputModels.ts index a68f97413e13..8626fe4ea756 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/outputModels.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/outputModels.ts @@ -130,12 +130,7 @@ export interface CascadeDeleteJobOutput { * Status of the job. * Possible values: 'Waiting', 'Running', 'Succeeded', 'Failed', 'Cancelled'. */ - readonly status?: - | "Waiting" - | "Running" - | "Succeeded" - | "Failed" - | "Cancelled"; + readonly status?: "Waiting" | "Running" | "Succeeded" | "Failed" | "Cancelled"; /** Duration of the job in seconds. */ readonly durationInSeconds?: number; /** Status message to capture more details of the job. */ @@ -865,12 +860,7 @@ export interface InsightAttachmentOutput { /** ModelID for this InsightAttachment. */ readonly modelId?: string; /** Associated Resource type for this attachment. */ - readonly resourceType?: - | "Party" - | "Farm" - | "Field" - | "SeasonalField" - | "Boundary"; + readonly resourceType?: "Party" | "Farm" | "Field" | "SeasonalField" | "Boundary"; /** Associated Resource id for this attachment. */ readonly resourceId?: string; /** Original File Name for this attachment. */ @@ -916,12 +906,7 @@ export interface InsightOutput { /** Id of the associated model. */ readonly modelId?: string; /** Resource type associated with the record. */ - readonly resourceType?: - | "Party" - | "Farm" - | "Field" - | "SeasonalField" - | "Boundary"; + readonly resourceType?: "Party" | "Farm" | "Field" | "SeasonalField" | "Boundary"; /** Id of the associated resource. */ readonly resourceId?: string; /** Version of the associated model. */ @@ -2773,7 +2758,4 @@ export interface PolygonOutput extends GeoJsonObjectOutputParent { } /** GeoJSON (For more details: https://geojson.org/). Note: Coordinates are expected in [Longitude, Latitude] format. */ -export type GeoJsonObjectOutput = - | MultiPolygonOutput - | PointOutput - | PolygonOutput; +export type GeoJsonObjectOutput = MultiPolygonOutput | PointOutput | PolygonOutput; diff --git a/sdk/agrifood/agrifood-farming-rest/src/paginateHelper.ts b/sdk/agrifood/agrifood-farming-rest/src/paginateHelper.ts index 3aac141db0e7..f0d91c952cda 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/paginateHelper.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/paginateHelper.ts @@ -1,16 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { - getPagedAsyncIterator, - PagedAsyncIterableIterator, - PagedResult, -} from "@azure/core-paging"; -import { - Client, - createRestError, - PathUncheckedResponse, -} from "@azure-rest/core-client"; +import { getPagedAsyncIterator, PagedAsyncIterableIterator, PagedResult } from "@azure/core-paging"; +import { Client, createRestError, PathUncheckedResponse } from "@azure-rest/core-client"; /** * Helper type to extract the type of an array @@ -75,9 +67,7 @@ export function paginate( typeof customGetPage === "function" ? customGetPage : async (pageLink: string) => { - const result = firstRun - ? initialResponse - : await client.pathUnchecked(pageLink).get(); + const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get(); firstRun = false; checkPagingRequest(result); const nextLink = getNextLink(result.body, nextLinkName); @@ -103,9 +93,7 @@ function getNextLink(body: unknown, nextLinkName?: string): string | undefined { const nextLink = (body as Record)[nextLinkName]; if (typeof nextLink !== "string" && typeof nextLink !== "undefined") { - throw new Error( - `Body Property ${nextLinkName} should be a string or undefined`, - ); + throw new Error(`Body Property ${nextLinkName} should be a string or undefined`); } return nextLink; @@ -133,18 +121,7 @@ function getElements(body: unknown, itemName: string): T[] { * Checks if a request failed */ function checkPagingRequest(response: PathUncheckedResponse): void { - const Http2xxStatusCodes = [ - "200", - "201", - "202", - "203", - "204", - "205", - "206", - "207", - "208", - "226", - ]; + const Http2xxStatusCodes = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226"]; if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, diff --git a/sdk/agrifood/agrifood-farming-rest/src/parameters.ts b/sdk/agrifood/agrifood-farming-rest/src/parameters.ts index 2e4f3a75c15e..2c521348beff 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/parameters.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/parameters.ts @@ -106,8 +106,7 @@ export interface ApplicationDataListQueryParam { queryParameters?: ApplicationDataListQueryParamProperties; } -export type ApplicationDataListParameters = ApplicationDataListQueryParam & - RequestParameters; +export type ApplicationDataListParameters = ApplicationDataListQueryParam & RequestParameters; export interface ApplicationDataCreateCascadeDeleteJobQueryParamProperties { /** Id of the party. */ @@ -122,8 +121,7 @@ export interface ApplicationDataCreateCascadeDeleteJobQueryParam { export type ApplicationDataCreateCascadeDeleteJobParameters = ApplicationDataCreateCascadeDeleteJobQueryParam & RequestParameters; -export type ApplicationDataGetCascadeDeleteJobDetailsParameters = - RequestParameters; +export type ApplicationDataGetCascadeDeleteJobDetailsParameters = RequestParameters; export interface ApplicationDataListByPartyIdQueryParamProperties { /** Minimum average amount of material applied during the application (inclusive). */ @@ -186,8 +184,8 @@ export interface ApplicationDataListByPartyIdQueryParam { queryParameters?: ApplicationDataListByPartyIdQueryParamProperties; } -export type ApplicationDataListByPartyIdParameters = - ApplicationDataListByPartyIdQueryParam & RequestParameters; +export type ApplicationDataListByPartyIdParameters = ApplicationDataListByPartyIdQueryParam & + RequestParameters; export type ApplicationDataGetParameters = RequestParameters; /** Application data resource payload to create or update. */ export type ApplicationDataResourceMergeAndPatch = Partial; @@ -202,10 +200,9 @@ export interface ApplicationDataCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type ApplicationDataCreateOrUpdateParameters = - ApplicationDataCreateOrUpdateMediaTypesParam & - ApplicationDataCreateOrUpdateBodyParam & - RequestParameters; +export type ApplicationDataCreateOrUpdateParameters = ApplicationDataCreateOrUpdateMediaTypesParam & + ApplicationDataCreateOrUpdateBodyParam & + RequestParameters; export type ApplicationDataDeleteParameters = RequestParameters; export interface AttachmentsListByPartyIdQueryParamProperties { @@ -248,8 +245,8 @@ export interface AttachmentsListByPartyIdQueryParam { queryParameters?: AttachmentsListByPartyIdQueryParamProperties; } -export type AttachmentsListByPartyIdParameters = - AttachmentsListByPartyIdQueryParam & RequestParameters; +export type AttachmentsListByPartyIdParameters = AttachmentsListByPartyIdQueryParam & + RequestParameters; export type AttachmentsGetParameters = RequestParameters; export interface AttachmentsCreateOrUpdateBodyParam { @@ -262,11 +259,7 @@ export interface AttachmentsCreateOrUpdateFormBody { * * Value may contain any sequence of octets */ - file?: - | string - | Uint8Array - | ReadableStream - | NodeJS.ReadableStream; + file?: string | Uint8Array | ReadableStream | NodeJS.ReadableStream; /** Associated Resource id for this attachment. */ resourceId?: string; /** Associated Resource type for this attachment. */ @@ -298,10 +291,9 @@ export interface AttachmentsCreateOrUpdateMediaTypesParam { contentType?: "multipart/form-data"; } -export type AttachmentsCreateOrUpdateParameters = - AttachmentsCreateOrUpdateMediaTypesParam & - AttachmentsCreateOrUpdateBodyParam & - RequestParameters; +export type AttachmentsCreateOrUpdateParameters = AttachmentsCreateOrUpdateMediaTypesParam & + AttachmentsCreateOrUpdateBodyParam & + RequestParameters; export type AttachmentsDeleteParameters = RequestParameters; export type AttachmentsDownloadParameters = RequestParameters; @@ -348,8 +340,7 @@ export interface BoundariesListQueryParam { queryParameters?: BoundariesListQueryParamProperties; } -export type BoundariesListParameters = BoundariesListQueryParam & - RequestParameters; +export type BoundariesListParameters = BoundariesListQueryParam & RequestParameters; export interface BoundariesSearchBodyParam { /** Query filters. */ @@ -423,8 +414,8 @@ export interface BoundariesListByPartyIdQueryParam { queryParameters?: BoundariesListByPartyIdQueryParamProperties; } -export type BoundariesListByPartyIdParameters = - BoundariesListByPartyIdQueryParam & RequestParameters; +export type BoundariesListByPartyIdParameters = BoundariesListByPartyIdQueryParam & + RequestParameters; export interface BoundariesSearchByPartyIdBodyParam { /** Query filters. */ @@ -436,10 +427,9 @@ export interface BoundariesSearchByPartyIdMediaTypesParam { contentType?: "application/json"; } -export type BoundariesSearchByPartyIdParameters = - BoundariesSearchByPartyIdMediaTypesParam & - BoundariesSearchByPartyIdBodyParam & - RequestParameters; +export type BoundariesSearchByPartyIdParameters = BoundariesSearchByPartyIdMediaTypesParam & + BoundariesSearchByPartyIdBodyParam & + RequestParameters; /** Boundary resource payload to create or update. */ export type BoundaryResourceMergeAndPatch = Partial; @@ -453,10 +443,9 @@ export interface BoundariesCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type BoundariesCreateOrUpdateParameters = - BoundariesCreateOrUpdateMediaTypesParam & - BoundariesCreateOrUpdateBodyParam & - RequestParameters; +export type BoundariesCreateOrUpdateParameters = BoundariesCreateOrUpdateMediaTypesParam & + BoundariesCreateOrUpdateBodyParam & + RequestParameters; export type BoundariesGetParameters = RequestParameters; export type BoundariesDeleteParameters = RequestParameters; @@ -471,8 +460,7 @@ export interface BoundariesGetOverlapQueryParam { queryParameters: BoundariesGetOverlapQueryParamProperties; } -export type BoundariesGetOverlapParameters = BoundariesGetOverlapQueryParam & - RequestParameters; +export type BoundariesGetOverlapParameters = BoundariesGetOverlapQueryParam & RequestParameters; export interface CropProductsListQueryParamProperties { /** CropIds of the resource. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ @@ -515,8 +503,7 @@ export interface CropProductsListQueryParam { queryParameters?: CropProductsListQueryParamProperties; } -export type CropProductsListParameters = CropProductsListQueryParam & - RequestParameters; +export type CropProductsListParameters = CropProductsListQueryParam & RequestParameters; export type CropProductsGetParameters = RequestParameters; /** Crop Product resource payload to create or update. */ export type CropProductResourceMergeAndPatch = Partial; @@ -531,10 +518,9 @@ export interface CropProductsCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type CropProductsCreateOrUpdateParameters = - CropProductsCreateOrUpdateMediaTypesParam & - CropProductsCreateOrUpdateBodyParam & - RequestParameters; +export type CropProductsCreateOrUpdateParameters = CropProductsCreateOrUpdateMediaTypesParam & + CropProductsCreateOrUpdateBodyParam & + RequestParameters; export type CropProductsDeleteParameters = RequestParameters; export interface CropsListQueryParamProperties { @@ -627,8 +613,7 @@ export interface DeviceDataModelsListQueryParam { queryParameters?: DeviceDataModelsListQueryParamProperties; } -export type DeviceDataModelsListParameters = DeviceDataModelsListQueryParam & - RequestParameters; +export type DeviceDataModelsListParameters = DeviceDataModelsListQueryParam & RequestParameters; /** Device data model object details. */ export type DeviceDataModelResourceMergeAndPatch = Partial; @@ -700,10 +685,9 @@ export interface DevicesCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type DevicesCreateOrUpdateParameters = - DevicesCreateOrUpdateMediaTypesParam & - DevicesCreateOrUpdateBodyParam & - RequestParameters; +export type DevicesCreateOrUpdateParameters = DevicesCreateOrUpdateMediaTypesParam & + DevicesCreateOrUpdateBodyParam & + RequestParameters; export type DevicesGetParameters = RequestParameters; export type DevicesDeleteParameters = RequestParameters; @@ -721,8 +705,7 @@ export type FarmOperationsCreateDataIngestionJobParameters = FarmOperationsCreateDataIngestionJobMediaTypesParam & FarmOperationsCreateDataIngestionJobBodyParam & RequestParameters; -export type FarmOperationsGetDataIngestionJobDetailsParameters = - RequestParameters; +export type FarmOperationsGetDataIngestionJobDetailsParameters = RequestParameters; export interface FarmsListQueryParamProperties { /** Ids of the resource. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ @@ -770,8 +753,8 @@ export interface FarmsCreateCascadeDeleteJobQueryParam { queryParameters: FarmsCreateCascadeDeleteJobQueryParamProperties; } -export type FarmsCreateCascadeDeleteJobParameters = - FarmsCreateCascadeDeleteJobQueryParam & RequestParameters; +export type FarmsCreateCascadeDeleteJobParameters = FarmsCreateCascadeDeleteJobQueryParam & + RequestParameters; export type FarmsGetCascadeDeleteJobDetailsParameters = RequestParameters; export interface FarmsListByPartyIdQueryParamProperties { @@ -807,8 +790,7 @@ export interface FarmsListByPartyIdQueryParam { queryParameters?: FarmsListByPartyIdQueryParamProperties; } -export type FarmsListByPartyIdParameters = FarmsListByPartyIdQueryParam & - RequestParameters; +export type FarmsListByPartyIdParameters = FarmsListByPartyIdQueryParam & RequestParameters; export type FarmsGetParameters = RequestParameters; /** Farm resource payload to create or update. */ export type FarmResourceMergeAndPatch = Partial; @@ -877,8 +859,8 @@ export interface FieldsCreateCascadeDeleteJobQueryParam { queryParameters: FieldsCreateCascadeDeleteJobQueryParamProperties; } -export type FieldsCreateCascadeDeleteJobParameters = - FieldsCreateCascadeDeleteJobQueryParam & RequestParameters; +export type FieldsCreateCascadeDeleteJobParameters = FieldsCreateCascadeDeleteJobQueryParam & + RequestParameters; export interface FieldsListByPartyIdQueryParamProperties { /** Farm Ids of the resource. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ @@ -915,8 +897,7 @@ export interface FieldsListByPartyIdQueryParam { queryParameters?: FieldsListByPartyIdQueryParamProperties; } -export type FieldsListByPartyIdParameters = FieldsListByPartyIdQueryParam & - RequestParameters; +export type FieldsListByPartyIdParameters = FieldsListByPartyIdQueryParam & RequestParameters; export type FieldsGetParameters = RequestParameters; /** Field resource payload to create or update. */ export type FieldResourceMergeAndPatch = Partial; @@ -931,10 +912,9 @@ export interface FieldsCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type FieldsCreateOrUpdateParameters = - FieldsCreateOrUpdateMediaTypesParam & - FieldsCreateOrUpdateBodyParam & - RequestParameters; +export type FieldsCreateOrUpdateParameters = FieldsCreateOrUpdateMediaTypesParam & + FieldsCreateOrUpdateBodyParam & + RequestParameters; export type FieldsDeleteParameters = RequestParameters; export interface HarvestDataListQueryParamProperties { @@ -1014,8 +994,7 @@ export interface HarvestDataListQueryParam { queryParameters?: HarvestDataListQueryParamProperties; } -export type HarvestDataListParameters = HarvestDataListQueryParam & - RequestParameters; +export type HarvestDataListParameters = HarvestDataListQueryParam & RequestParameters; export interface HarvestDataCreateCascadeDeleteJobQueryParamProperties { /** Id of the party. */ @@ -1109,8 +1088,8 @@ export interface HarvestDataListByPartyIdQueryParam { queryParameters?: HarvestDataListByPartyIdQueryParamProperties; } -export type HarvestDataListByPartyIdParameters = - HarvestDataListByPartyIdQueryParam & RequestParameters; +export type HarvestDataListByPartyIdParameters = HarvestDataListByPartyIdQueryParam & + RequestParameters; export type HarvestDataGetParameters = RequestParameters; /** Harvest data resource payload to create or update. */ export type HarvestDataResourceMergeAndPatch = Partial; @@ -1125,10 +1104,9 @@ export interface HarvestDataCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type HarvestDataCreateOrUpdateParameters = - HarvestDataCreateOrUpdateMediaTypesParam & - HarvestDataCreateOrUpdateBodyParam & - RequestParameters; +export type HarvestDataCreateOrUpdateParameters = HarvestDataCreateOrUpdateMediaTypesParam & + HarvestDataCreateOrUpdateBodyParam & + RequestParameters; export type HarvestDataDeleteParameters = RequestParameters; export interface ImageProcessingCreateRasterizeJobBodyParam { @@ -1183,8 +1161,7 @@ export interface InsightAttachmentsListByPartyIdModelIdAndResourceQueryParam { } export type InsightAttachmentsListByPartyIdModelIdAndResourceParameters = - InsightAttachmentsListByPartyIdModelIdAndResourceQueryParam & - RequestParameters; + InsightAttachmentsListByPartyIdModelIdAndResourceQueryParam & RequestParameters; export interface InsightAttachmentsCreateOrUpdateBodyParam { body: InsightAttachmentsCreateOrUpdateFormBody; @@ -1196,11 +1173,7 @@ export interface InsightAttachmentsCreateOrUpdateFormBody { * * Value may contain any sequence of octets */ - file?: - | string - | Uint8Array - | ReadableStream - | NodeJS.ReadableStream; + file?: string | Uint8Array | ReadableStream | NodeJS.ReadableStream; /** InsightID for this InsightAttachment. */ insightId: string; /** Original File Name for this attachment. */ @@ -1255,8 +1228,8 @@ export interface InsightsCreateCascadeDeleteJobQueryParam { queryParameters: InsightsCreateCascadeDeleteJobQueryParamProperties; } -export type InsightsCreateCascadeDeleteJobParameters = - InsightsCreateCascadeDeleteJobQueryParam & RequestParameters; +export type InsightsCreateCascadeDeleteJobParameters = InsightsCreateCascadeDeleteJobQueryParam & + RequestParameters; export type InsightsGetCascadeDeleteJobDetailsParameters = RequestParameters; export interface InsightsListByPartyIdModelIdAndResourceQueryParamProperties { @@ -1321,10 +1294,9 @@ export interface InsightsCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type InsightsCreateOrUpdateParameters = - InsightsCreateOrUpdateMediaTypesParam & - InsightsCreateOrUpdateBodyParam & - RequestParameters; +export type InsightsCreateOrUpdateParameters = InsightsCreateOrUpdateMediaTypesParam & + InsightsCreateOrUpdateBodyParam & + RequestParameters; export type InsightsGetParameters = RequestParameters; export type InsightsDeleteParameters = RequestParameters; @@ -1371,10 +1343,8 @@ export interface ManagementZonesListQueryParam { queryParameters?: ManagementZonesListQueryParamProperties; } -export type ManagementZonesListParameters = ManagementZonesListQueryParam & - RequestParameters; -export type ManagementZonesGetCascadeDeleteJobDetailsParameters = - RequestParameters; +export type ManagementZonesListParameters = ManagementZonesListQueryParam & RequestParameters; +export type ManagementZonesGetCascadeDeleteJobDetailsParameters = RequestParameters; export interface ManagementZonesCreateCascadeDeleteJobQueryParamProperties { /** ID of the associated party. */ @@ -1433,8 +1403,8 @@ export interface ManagementZonesListByPartyIdQueryParam { queryParameters?: ManagementZonesListByPartyIdQueryParamProperties; } -export type ManagementZonesListByPartyIdParameters = - ManagementZonesListByPartyIdQueryParam & RequestParameters; +export type ManagementZonesListByPartyIdParameters = ManagementZonesListByPartyIdQueryParam & + RequestParameters; export type ManagementZonesGetParameters = RequestParameters; /** ManagementZone resource payload to create or update. */ export type ManagementZoneResourceMergeAndPatch = Partial; @@ -1449,10 +1419,9 @@ export interface ManagementZonesCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type ManagementZonesCreateOrUpdateParameters = - ManagementZonesCreateOrUpdateMediaTypesParam & - ManagementZonesCreateOrUpdateBodyParam & - RequestParameters; +export type ManagementZonesCreateOrUpdateParameters = ManagementZonesCreateOrUpdateMediaTypesParam & + ManagementZonesCreateOrUpdateBodyParam & + RequestParameters; export type ManagementZonesDeleteParameters = RequestParameters; export interface ModelInferenceCreateBiomassModelJobBodyParam { @@ -1485,8 +1454,7 @@ export type ModelInferenceCreateSensorPlacementModelJobParameters = ModelInferenceCreateSensorPlacementModelJobMediaTypesParam & ModelInferenceCreateSensorPlacementModelJobBodyParam & RequestParameters; -export type ModelInferenceGetSensorPlacementModelJobParameters = - RequestParameters; +export type ModelInferenceGetSensorPlacementModelJobParameters = RequestParameters; export interface ModelInferenceCreateSoilMoistureModelJobBodyParam { /** Job parameters supplied by user. */ @@ -1546,8 +1514,7 @@ export interface NutrientAnalysesListQueryParam { queryParameters?: NutrientAnalysesListQueryParamProperties; } -export type NutrientAnalysesListParameters = NutrientAnalysesListQueryParam & - RequestParameters; +export type NutrientAnalysesListParameters = NutrientAnalysesListQueryParam & RequestParameters; export interface NutrientAnalysesListByPartyIdQueryParamProperties { /** @@ -1591,8 +1558,8 @@ export interface NutrientAnalysesListByPartyIdQueryParam { queryParameters?: NutrientAnalysesListByPartyIdQueryParamProperties; } -export type NutrientAnalysesListByPartyIdParameters = - NutrientAnalysesListByPartyIdQueryParam & RequestParameters; +export type NutrientAnalysesListByPartyIdParameters = NutrientAnalysesListByPartyIdQueryParam & + RequestParameters; export type NutrientAnalysesGetParameters = RequestParameters; /** NutrientAnalysis resource payload to create or update. */ export type NutrientAnalysisResourceMergeAndPatch = Partial; @@ -1646,8 +1613,7 @@ export interface OAuthProvidersListQueryParam { queryParameters?: OAuthProvidersListQueryParamProperties; } -export type OAuthProvidersListParameters = OAuthProvidersListQueryParam & - RequestParameters; +export type OAuthProvidersListParameters = OAuthProvidersListQueryParam & RequestParameters; export type OAuthProvidersGetParameters = RequestParameters; /** OauthProvider resource payload to create or update. */ export type OAuthProviderResourceMergeAndPatch = Partial; @@ -1662,13 +1628,11 @@ export interface OAuthProvidersCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type OAuthProvidersCreateOrUpdateParameters = - OAuthProvidersCreateOrUpdateMediaTypesParam & - OAuthProvidersCreateOrUpdateBodyParam & - RequestParameters; -export type OAuthProvidersDeleteParameters = RequestParameters; -export type OAuthProvidersGetCascadeDeleteJobDetailsParameters = +export type OAuthProvidersCreateOrUpdateParameters = OAuthProvidersCreateOrUpdateMediaTypesParam & + OAuthProvidersCreateOrUpdateBodyParam & RequestParameters; +export type OAuthProvidersDeleteParameters = RequestParameters; +export type OAuthProvidersGetCascadeDeleteJobDetailsParameters = RequestParameters; export interface OAuthProvidersCreateCascadeDeleteJobQueryParamProperties { /** Id of the application data. */ @@ -1710,8 +1674,7 @@ export interface OAuthTokensListQueryParam { queryParameters?: OAuthTokensListQueryParamProperties; } -export type OAuthTokensListParameters = OAuthTokensListQueryParam & - RequestParameters; +export type OAuthTokensListParameters = OAuthTokensListQueryParam & RequestParameters; export interface OAuthTokensGetOAuthConnectionLinkBodyParam { /** OAuth Connect Request. */ @@ -1791,10 +1754,9 @@ export interface PartiesCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type PartiesCreateOrUpdateParameters = - PartiesCreateOrUpdateMediaTypesParam & - PartiesCreateOrUpdateBodyParam & - RequestParameters; +export type PartiesCreateOrUpdateParameters = PartiesCreateOrUpdateMediaTypesParam & + PartiesCreateOrUpdateBodyParam & + RequestParameters; export type PartiesDeleteParameters = RequestParameters; export type PartiesGetCascadeDeleteJobDetailsParameters = RequestParameters; @@ -1807,8 +1769,8 @@ export interface PartiesCreateCascadeDeleteJobQueryParam { queryParameters: PartiesCreateCascadeDeleteJobQueryParamProperties; } -export type PartiesCreateCascadeDeleteJobParameters = - PartiesCreateCascadeDeleteJobQueryParam & RequestParameters; +export type PartiesCreateCascadeDeleteJobParameters = PartiesCreateCascadeDeleteJobQueryParam & + RequestParameters; export interface PlantingDataListByPartyIdQueryParamProperties { /** Minimum AvgPlantingRate value(inclusive). */ @@ -1875,8 +1837,8 @@ export interface PlantingDataListByPartyIdQueryParam { queryParameters?: PlantingDataListByPartyIdQueryParamProperties; } -export type PlantingDataListByPartyIdParameters = - PlantingDataListByPartyIdQueryParam & RequestParameters; +export type PlantingDataListByPartyIdParameters = PlantingDataListByPartyIdQueryParam & + RequestParameters; export type PlantingDataGetParameters = RequestParameters; /** Planting data resource payload to create or update. */ export type PlantingDataResourceMergeAndPatch = Partial; @@ -1891,10 +1853,9 @@ export interface PlantingDataCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type PlantingDataCreateOrUpdateParameters = - PlantingDataCreateOrUpdateMediaTypesParam & - PlantingDataCreateOrUpdateBodyParam & - RequestParameters; +export type PlantingDataCreateOrUpdateParameters = PlantingDataCreateOrUpdateMediaTypesParam & + PlantingDataCreateOrUpdateBodyParam & + RequestParameters; export type PlantingDataDeleteParameters = RequestParameters; export interface PlantingDataListQueryParamProperties { @@ -1962,8 +1923,7 @@ export interface PlantingDataListQueryParam { queryParameters?: PlantingDataListQueryParamProperties; } -export type PlantingDataListParameters = PlantingDataListQueryParam & - RequestParameters; +export type PlantingDataListParameters = PlantingDataListQueryParam & RequestParameters; export interface PlantingDataCreateCascadeDeleteJobQueryParamProperties { /** Id of the party. */ @@ -1978,8 +1938,7 @@ export interface PlantingDataCreateCascadeDeleteJobQueryParam { export type PlantingDataCreateCascadeDeleteJobParameters = PlantingDataCreateCascadeDeleteJobQueryParam & RequestParameters; -export type PlantingDataGetCascadeDeleteJobDetailsParameters = - RequestParameters; +export type PlantingDataGetCascadeDeleteJobDetailsParameters = RequestParameters; export interface PlantTissueAnalysesListByPartyIdQueryParamProperties { /** Season ids of the plant tissue analyses. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ @@ -2026,8 +1985,7 @@ export type PlantTissueAnalysesListByPartyIdParameters = PlantTissueAnalysesListByPartyIdQueryParam & RequestParameters; export type PlantTissueAnalysesGetParameters = RequestParameters; /** PlantTissueAnalysis resource payload to create or update. */ -export type PlantTissueAnalysisResourceMergeAndPatch = - Partial; +export type PlantTissueAnalysisResourceMergeAndPatch = Partial; export interface PlantTissueAnalysesCreateOrUpdateBodyParam { /** PlantTissueAnalysis resource payload to create or update. */ @@ -2086,8 +2044,8 @@ export interface PlantTissueAnalysesListQueryParam { queryParameters?: PlantTissueAnalysesListQueryParamProperties; } -export type PlantTissueAnalysesListParameters = - PlantTissueAnalysesListQueryParam & RequestParameters; +export type PlantTissueAnalysesListParameters = PlantTissueAnalysesListQueryParam & + RequestParameters; export interface PlantTissueAnalysesCreateCascadeDeleteJobQueryParamProperties { /** ID of the associated party. */ @@ -2102,8 +2060,7 @@ export interface PlantTissueAnalysesCreateCascadeDeleteJobQueryParam { export type PlantTissueAnalysesCreateCascadeDeleteJobParameters = PlantTissueAnalysesCreateCascadeDeleteJobQueryParam & RequestParameters; -export type PlantTissueAnalysesGetCascadeDeleteJobDetailsParameters = - RequestParameters; +export type PlantTissueAnalysesGetCascadeDeleteJobDetailsParameters = RequestParameters; export interface PrescriptionMapsListByPartyIdQueryParamProperties { /** Types of the resource. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ @@ -2148,8 +2105,8 @@ export interface PrescriptionMapsListByPartyIdQueryParam { queryParameters?: PrescriptionMapsListByPartyIdQueryParamProperties; } -export type PrescriptionMapsListByPartyIdParameters = - PrescriptionMapsListByPartyIdQueryParam & RequestParameters; +export type PrescriptionMapsListByPartyIdParameters = PrescriptionMapsListByPartyIdQueryParam & + RequestParameters; export type PrescriptionMapsGetParameters = RequestParameters; /** PrescriptionMap resource payload to create or update. */ export type PrescriptionMapResourceMergeAndPatch = Partial; @@ -2213,10 +2170,8 @@ export interface PrescriptionMapsListQueryParam { queryParameters?: PrescriptionMapsListQueryParamProperties; } -export type PrescriptionMapsListParameters = PrescriptionMapsListQueryParam & - RequestParameters; -export type PrescriptionMapsGetCascadeDeleteJobDetailsParameters = - RequestParameters; +export type PrescriptionMapsListParameters = PrescriptionMapsListQueryParam & RequestParameters; +export type PrescriptionMapsGetCascadeDeleteJobDetailsParameters = RequestParameters; export interface PrescriptionMapsCreateCascadeDeleteJobQueryParamProperties { /** ID of the associated party. */ @@ -2275,8 +2230,8 @@ export interface PrescriptionsListByPartyIdQueryParam { queryParameters?: PrescriptionsListByPartyIdQueryParamProperties; } -export type PrescriptionsListByPartyIdParameters = - PrescriptionsListByPartyIdQueryParam & RequestParameters; +export type PrescriptionsListByPartyIdParameters = PrescriptionsListByPartyIdQueryParam & + RequestParameters; export type PrescriptionsGetParameters = RequestParameters; /** Prescription resource payload to create or update. */ export type PrescriptionResourceMergeAndPatch = Partial; @@ -2291,10 +2246,9 @@ export interface PrescriptionsCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type PrescriptionsCreateOrUpdateParameters = - PrescriptionsCreateOrUpdateMediaTypesParam & - PrescriptionsCreateOrUpdateBodyParam & - RequestParameters; +export type PrescriptionsCreateOrUpdateParameters = PrescriptionsCreateOrUpdateMediaTypesParam & + PrescriptionsCreateOrUpdateBodyParam & + RequestParameters; export type PrescriptionsDeleteParameters = RequestParameters; export interface PrescriptionsListQueryParamProperties { @@ -2340,10 +2294,8 @@ export interface PrescriptionsListQueryParam { queryParameters?: PrescriptionsListQueryParamProperties; } -export type PrescriptionsListParameters = PrescriptionsListQueryParam & - RequestParameters; -export type PrescriptionsGetCascadeDeleteJobDetailsParameters = - RequestParameters; +export type PrescriptionsListParameters = PrescriptionsListQueryParam & RequestParameters; +export type PrescriptionsGetCascadeDeleteJobDetailsParameters = RequestParameters; export interface PrescriptionsCreateCascadeDeleteJobQueryParamProperties { /** ID of the associated party. */ @@ -2406,8 +2358,7 @@ export interface ScenesDownloadQueryParam { queryParameters: ScenesDownloadQueryParamProperties; } -export type ScenesDownloadParameters = ScenesDownloadQueryParam & - RequestParameters; +export type ScenesDownloadParameters = ScenesDownloadQueryParam & RequestParameters; export interface ScenesCreateSatelliteDataIngestionJobBodyParam { /** Job parameters supplied by user. */ @@ -2423,8 +2374,7 @@ export type ScenesCreateSatelliteDataIngestionJobParameters = ScenesCreateSatelliteDataIngestionJobMediaTypesParam & ScenesCreateSatelliteDataIngestionJobBodyParam & RequestParameters; -export type ScenesGetSatelliteDataIngestionJobDetailsParameters = - RequestParameters; +export type ScenesGetSatelliteDataIngestionJobDetailsParameters = RequestParameters; export interface ScenesSearchFeaturesBodyParam { /** Query filters. */ @@ -2496,8 +2446,8 @@ export interface SeasonalFieldsListByPartyIdQueryParam { queryParameters?: SeasonalFieldsListByPartyIdQueryParamProperties; } -export type SeasonalFieldsListByPartyIdParameters = - SeasonalFieldsListByPartyIdQueryParam & RequestParameters; +export type SeasonalFieldsListByPartyIdParameters = SeasonalFieldsListByPartyIdQueryParam & + RequestParameters; export type SeasonalFieldsGetParameters = RequestParameters; /** Seasonal field resource payload to create or update. */ export type SeasonalFieldResourceMergeAndPatch = Partial; @@ -2512,10 +2462,9 @@ export interface SeasonalFieldsCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type SeasonalFieldsCreateOrUpdateParameters = - SeasonalFieldsCreateOrUpdateMediaTypesParam & - SeasonalFieldsCreateOrUpdateBodyParam & - RequestParameters; +export type SeasonalFieldsCreateOrUpdateParameters = SeasonalFieldsCreateOrUpdateMediaTypesParam & + SeasonalFieldsCreateOrUpdateBodyParam & + RequestParameters; export type SeasonalFieldsDeleteParameters = RequestParameters; export interface SeasonalFieldsListQueryParamProperties { @@ -2561,10 +2510,8 @@ export interface SeasonalFieldsListQueryParam { queryParameters?: SeasonalFieldsListQueryParamProperties; } -export type SeasonalFieldsListParameters = SeasonalFieldsListQueryParam & - RequestParameters; -export type SeasonalFieldsGetCascadeDeleteJobDetailsParameters = - RequestParameters; +export type SeasonalFieldsListParameters = SeasonalFieldsListQueryParam & RequestParameters; +export type SeasonalFieldsGetCascadeDeleteJobDetailsParameters = RequestParameters; export interface SeasonalFieldsCreateCascadeDeleteJobQueryParamProperties { /** ID of the associated party. */ @@ -2638,10 +2585,9 @@ export interface SeasonsCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type SeasonsCreateOrUpdateParameters = - SeasonsCreateOrUpdateMediaTypesParam & - SeasonsCreateOrUpdateBodyParam & - RequestParameters; +export type SeasonsCreateOrUpdateParameters = SeasonsCreateOrUpdateMediaTypesParam & + SeasonsCreateOrUpdateBodyParam & + RequestParameters; export type SeasonsDeleteParameters = RequestParameters; export interface SensorDataModelsListQueryParamProperties { @@ -2677,8 +2623,7 @@ export interface SensorDataModelsListQueryParam { queryParameters?: SensorDataModelsListQueryParamProperties; } -export type SensorDataModelsListParameters = SensorDataModelsListQueryParam & - RequestParameters; +export type SensorDataModelsListParameters = SensorDataModelsListQueryParam & RequestParameters; /** Sensor data model object details. */ export type SensorDataModelResourceMergeAndPatch = Partial; @@ -2722,8 +2667,7 @@ export interface SensorEventsListQueryParam { queryParameters: SensorEventsListQueryParamProperties; } -export type SensorEventsListParameters = SensorEventsListQueryParam & - RequestParameters; +export type SensorEventsListParameters = SensorEventsListQueryParam & RequestParameters; export interface SensorMappingsListQueryParamProperties { /** Id of the sensors. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ @@ -2766,8 +2710,7 @@ export interface SensorMappingsListQueryParam { queryParameters?: SensorMappingsListQueryParamProperties; } -export type SensorMappingsListParameters = SensorMappingsListQueryParam & - RequestParameters; +export type SensorMappingsListParameters = SensorMappingsListQueryParam & RequestParameters; /** Sensor mapping object details. */ export type SensorMappingResourceMergeAndPatch = Partial; @@ -2781,10 +2724,9 @@ export interface SensorMappingsCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type SensorMappingsCreateOrUpdateParameters = - SensorMappingsCreateOrUpdateMediaTypesParam & - SensorMappingsCreateOrUpdateBodyParam & - RequestParameters; +export type SensorMappingsCreateOrUpdateParameters = SensorMappingsCreateOrUpdateMediaTypesParam & + SensorMappingsCreateOrUpdateBodyParam & + RequestParameters; export type SensorMappingsGetParameters = RequestParameters; export type SensorMappingsDeleteParameters = RequestParameters; @@ -2825,8 +2767,8 @@ export interface SensorPartnerIntegrationsListQueryParam { queryParameters?: SensorPartnerIntegrationsListQueryParamProperties; } -export type SensorPartnerIntegrationsListParameters = - SensorPartnerIntegrationsListQueryParam & RequestParameters; +export type SensorPartnerIntegrationsListParameters = SensorPartnerIntegrationsListQueryParam & + RequestParameters; /** Partner integration model. */ export type SensorPartnerIntegrationModelResourceMergeAndPatch = Partial; @@ -2859,8 +2801,7 @@ export interface SensorPartnerIntegrationsCheckConsentQueryParam { export type SensorPartnerIntegrationsCheckConsentParameters = SensorPartnerIntegrationsCheckConsentQueryParam & RequestParameters; -export type SensorPartnerIntegrationsGenerateConsentLinkParameters = - RequestParameters; +export type SensorPartnerIntegrationsGenerateConsentLinkParameters = RequestParameters; export interface SensorsListQueryParamProperties { /** Id's of the sensor data models. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ @@ -2915,10 +2856,9 @@ export interface SensorsCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type SensorsCreateOrUpdateParameters = - SensorsCreateOrUpdateMediaTypesParam & - SensorsCreateOrUpdateBodyParam & - RequestParameters; +export type SensorsCreateOrUpdateParameters = SensorsCreateOrUpdateMediaTypesParam & + SensorsCreateOrUpdateBodyParam & + RequestParameters; export type SensorsGetParameters = RequestParameters; export type SensorsDeleteParameters = RequestParameters; export type SensorsGetConnectionStringParameters = RequestParameters; @@ -2933,10 +2873,9 @@ export interface SensorsRenewConnectionStringMediaTypesParam { contentType?: "application/json"; } -export type SensorsRenewConnectionStringParameters = - SensorsRenewConnectionStringMediaTypesParam & - SensorsRenewConnectionStringBodyParam & - RequestParameters; +export type SensorsRenewConnectionStringParameters = SensorsRenewConnectionStringMediaTypesParam & + SensorsRenewConnectionStringBodyParam & + RequestParameters; export interface SolutionInferenceCancelBodyParam { /** solutionInferenceRequest containing input needed for job request processing. */ @@ -2948,10 +2887,9 @@ export interface SolutionInferenceCancelMediaTypesParam { contentType?: "application/json"; } -export type SolutionInferenceCancelParameters = - SolutionInferenceCancelMediaTypesParam & - SolutionInferenceCancelBodyParam & - RequestParameters; +export type SolutionInferenceCancelParameters = SolutionInferenceCancelMediaTypesParam & + SolutionInferenceCancelBodyParam & + RequestParameters; export interface SolutionInferenceCreateOrUpdateBodyParam { /** solutionInferenceRequest containing input needed for job request processing. */ @@ -2978,10 +2916,9 @@ export interface SolutionInferenceFetchMediaTypesParam { contentType?: "application/json"; } -export type SolutionInferenceFetchParameters = - SolutionInferenceFetchMediaTypesParam & - SolutionInferenceFetchBodyParam & - RequestParameters; +export type SolutionInferenceFetchParameters = SolutionInferenceFetchMediaTypesParam & + SolutionInferenceFetchBodyParam & + RequestParameters; export interface TillageDataListByPartyIdQueryParamProperties { /** Minimum measured tillage depth (inclusive). */ @@ -3044,8 +2981,8 @@ export interface TillageDataListByPartyIdQueryParam { queryParameters?: TillageDataListByPartyIdQueryParamProperties; } -export type TillageDataListByPartyIdParameters = - TillageDataListByPartyIdQueryParam & RequestParameters; +export type TillageDataListByPartyIdParameters = TillageDataListByPartyIdQueryParam & + RequestParameters; export type TillageDataGetParameters = RequestParameters; /** Tillage data resource payload to create or update. */ export type TillageDataResourceMergeAndPatch = Partial; @@ -3060,10 +2997,9 @@ export interface TillageDataCreateOrUpdateMediaTypesParam { contentType?: "application/merge-patch+json"; } -export type TillageDataCreateOrUpdateParameters = - TillageDataCreateOrUpdateMediaTypesParam & - TillageDataCreateOrUpdateBodyParam & - RequestParameters; +export type TillageDataCreateOrUpdateParameters = TillageDataCreateOrUpdateMediaTypesParam & + TillageDataCreateOrUpdateBodyParam & + RequestParameters; export type TillageDataDeleteParameters = RequestParameters; export interface TillageDataListQueryParamProperties { @@ -3127,8 +3063,7 @@ export interface TillageDataListQueryParam { queryParameters?: TillageDataListQueryParamProperties; } -export type TillageDataListParameters = TillageDataListQueryParam & - RequestParameters; +export type TillageDataListParameters = TillageDataListQueryParam & RequestParameters; export interface TillageDataCreateCascadeDeleteJobQueryParamProperties { /** Id of the party. */ @@ -3186,10 +3121,9 @@ export interface WeatherCreateDataDeleteJobMediaTypesParam { contentType?: "application/json"; } -export type WeatherCreateDataDeleteJobParameters = - WeatherCreateDataDeleteJobMediaTypesParam & - WeatherCreateDataDeleteJobBodyParam & - RequestParameters; +export type WeatherCreateDataDeleteJobParameters = WeatherCreateDataDeleteJobMediaTypesParam & + WeatherCreateDataDeleteJobBodyParam & + RequestParameters; export type WeatherGetDataIngestionJobDetailsParameters = RequestParameters; export interface WeatherCreateDataIngestionJobBodyParam { @@ -3202,10 +3136,9 @@ export interface WeatherCreateDataIngestionJobMediaTypesParam { contentType?: "application/json"; } -export type WeatherCreateDataIngestionJobParameters = - WeatherCreateDataIngestionJobMediaTypesParam & - WeatherCreateDataIngestionJobBodyParam & - RequestParameters; +export type WeatherCreateDataIngestionJobParameters = WeatherCreateDataIngestionJobMediaTypesParam & + WeatherCreateDataIngestionJobBodyParam & + RequestParameters; export interface WeatherDataGetBodyParam { /** Weather data provider request. */ @@ -3260,8 +3193,7 @@ export interface ZonesListByPartyIdQueryParam { queryParameters?: ZonesListByPartyIdQueryParamProperties; } -export type ZonesListByPartyIdParameters = ZonesListByPartyIdQueryParam & - RequestParameters; +export type ZonesListByPartyIdParameters = ZonesListByPartyIdQueryParam & RequestParameters; export type ZonesGetParameters = RequestParameters; /** Zone resource payload to create or update. */ export type ZoneResourceMergeAndPatch = Partial; @@ -3334,5 +3266,5 @@ export interface ZonesCreateCascadeDeleteJobQueryParam { queryParameters: ZonesCreateCascadeDeleteJobQueryParamProperties; } -export type ZonesCreateCascadeDeleteJobParameters = - ZonesCreateCascadeDeleteJobQueryParam & RequestParameters; +export type ZonesCreateCascadeDeleteJobParameters = ZonesCreateCascadeDeleteJobQueryParam & + RequestParameters; diff --git a/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts b/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts index c9ed24802ddb..65fb8e1eb40f 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts @@ -15,10 +15,7 @@ import { /** * A simple poller that can be used to poll a long running operation. */ -export interface SimplePollerLike< - TState extends OperationState, - TResult, -> { +export interface SimplePollerLike, TResult> { /** * Returns true if the poller has finished polling. */ @@ -42,9 +39,7 @@ export interface SimplePollerLike< /** * Returns a promise that will resolve once the underlying operation is completed. */ - pollUntilDone(pollOptions?: { - abortSignal?: AbortSignalLike; - }): Promise; + pollUntilDone(pollOptions?: { abortSignal?: AbortSignalLike }): Promise; /** * Invokes the provided callback after each polling is completed, * sending the current state of the poller's operation. @@ -103,10 +98,7 @@ export async function getLongRunningPoller( // response we were provided. return getLroResponse(initialResponse); }, - sendPollRequest: async ( - path: string, - pollOptions?: { abortSignal?: AbortSignalLike }, - ) => { + sendPollRequest: async (path: string, pollOptions?: { abortSignal?: AbortSignalLike }) => { // This is the callback that is going to be called to poll the service // to get the latest status. We use the client provided and the polling path // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location @@ -132,8 +124,7 @@ export async function getLongRunningPoller( inputAbortSignal?.removeEventListener("abort", abortListener); } const lroResponse = getLroResponse(response as TResult); - lroResponse.rawResponse.headers["x-ms-original-url"] = - initialResponse.request.url; + lroResponse.rawResponse.headers["x-ms-original-url"] = initialResponse.request.url; return lroResponse; }, }; @@ -189,9 +180,7 @@ function getLroResponse( response: TResult, ): OperationResponse { if (Number.isNaN(response.status)) { - throw new TypeError( - `Status code of the response is not a number. Value: ${response.status}`, - ); + throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`); } return { diff --git a/sdk/agrifood/agrifood-farming-rest/src/responses.ts b/sdk/agrifood/agrifood-farming-rest/src/responses.ts index c999d43cb509..2e14ca1620b2 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/responses.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/responses.ts @@ -102,8 +102,7 @@ export interface ApplicationDataListDefaultResponse extends HttpResponse { } /** Create cascade delete job for application data resource. */ -export interface ApplicationDataCreateCascadeDeleteJob202Response - extends HttpResponse { +export interface ApplicationDataCreateCascadeDeleteJob202Response extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -113,16 +112,14 @@ export interface ApplicationDataCreateCascadeDeleteJobDefaultHeaders { } /** Create cascade delete job for application data resource. */ -export interface ApplicationDataCreateCascadeDeleteJobDefaultResponse - extends HttpResponse { +export interface ApplicationDataCreateCascadeDeleteJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ApplicationDataCreateCascadeDeleteJobDefaultHeaders; } /** Get cascade delete job for application data resource. */ -export interface ApplicationDataGetCascadeDeleteJobDetails200Response - extends HttpResponse { +export interface ApplicationDataGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -132,12 +129,10 @@ export interface ApplicationDataGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get cascade delete job for application data resource. */ -export interface ApplicationDataGetCascadeDeleteJobDetailsDefaultResponse - extends HttpResponse { +export interface ApplicationDataGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & - ApplicationDataGetCascadeDeleteJobDetailsDefaultHeaders; + headers: RawHttpHeaders & ApplicationDataGetCascadeDeleteJobDetailsDefaultHeaders; } /** Returns a paginated list of application data resources under a particular party. */ @@ -151,8 +146,7 @@ export interface ApplicationDataListByPartyIdDefaultHeaders { } /** Returns a paginated list of application data resources under a particular party. */ -export interface ApplicationDataListByPartyIdDefaultResponse - extends HttpResponse { +export interface ApplicationDataListByPartyIdDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ApplicationDataListByPartyIdDefaultHeaders; @@ -192,8 +186,7 @@ export interface ApplicationDataCreateOrUpdateDefaultHeaders { } /** Creates or updates an application data resource under a particular party. */ -export interface ApplicationDataCreateOrUpdateDefaultResponse - extends HttpResponse { +export interface ApplicationDataCreateOrUpdateDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ApplicationDataCreateOrUpdateDefaultHeaders; @@ -341,8 +334,7 @@ export interface BoundariesSearchDefaultResponse extends HttpResponse { } /** Create a cascade delete job for specified boundary. */ -export interface BoundariesCreateCascadeDeleteJob202Response - extends HttpResponse { +export interface BoundariesCreateCascadeDeleteJob202Response extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -352,16 +344,14 @@ export interface BoundariesCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified boundary. */ -export interface BoundariesCreateCascadeDeleteJobDefaultResponse - extends HttpResponse { +export interface BoundariesCreateCascadeDeleteJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & BoundariesCreateCascadeDeleteJobDefaultHeaders; } /** Get cascade delete job for specified boundary. */ -export interface BoundariesGetCascadeDeleteJobDetails200Response - extends HttpResponse { +export interface BoundariesGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -371,8 +361,7 @@ export interface BoundariesGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get cascade delete job for specified boundary. */ -export interface BoundariesGetCascadeDeleteJobDetailsDefaultResponse - extends HttpResponse { +export interface BoundariesGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & BoundariesGetCascadeDeleteJobDetailsDefaultHeaders; @@ -536,8 +525,7 @@ export interface CropProductsCreateOrUpdateDefaultHeaders { } /** Creates or updates a crop Product resource. */ -export interface CropProductsCreateOrUpdateDefaultResponse - extends HttpResponse { +export interface CropProductsCreateOrUpdateDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & CropProductsCreateOrUpdateDefaultHeaders; @@ -650,15 +638,13 @@ export interface DeviceDataModelsListDefaultResponse extends HttpResponse { } /** Create a device data model entity. */ -export interface DeviceDataModelsCreateOrUpdate200Response - extends HttpResponse { +export interface DeviceDataModelsCreateOrUpdate200Response extends HttpResponse { status: "200"; body: DeviceDataModelOutput; } /** Create a device data model entity. */ -export interface DeviceDataModelsCreateOrUpdate201Response - extends HttpResponse { +export interface DeviceDataModelsCreateOrUpdate201Response extends HttpResponse { status: "201"; body: DeviceDataModelOutput; } @@ -668,8 +654,7 @@ export interface DeviceDataModelsCreateOrUpdateDefaultHeaders { } /** Create a device data model entity. */ -export interface DeviceDataModelsCreateOrUpdateDefaultResponse - extends HttpResponse { +export interface DeviceDataModelsCreateOrUpdateDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & DeviceDataModelsCreateOrUpdateDefaultHeaders; @@ -782,8 +767,7 @@ export interface DevicesDeleteDefaultResponse extends HttpResponse { } /** Create a farm operation data ingestion job. */ -export interface FarmOperationsCreateDataIngestionJob202Response - extends HttpResponse { +export interface FarmOperationsCreateDataIngestionJob202Response extends HttpResponse { status: "202"; body: FarmOperationDataIngestionJobOutput; } @@ -793,16 +777,14 @@ export interface FarmOperationsCreateDataIngestionJobDefaultHeaders { } /** Create a farm operation data ingestion job. */ -export interface FarmOperationsCreateDataIngestionJobDefaultResponse - extends HttpResponse { +export interface FarmOperationsCreateDataIngestionJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & FarmOperationsCreateDataIngestionJobDefaultHeaders; } /** Get a farm operation data ingestion job. */ -export interface FarmOperationsGetDataIngestionJobDetails200Response - extends HttpResponse { +export interface FarmOperationsGetDataIngestionJobDetails200Response extends HttpResponse { status: "200"; body: FarmOperationDataIngestionJobOutput; } @@ -812,12 +794,10 @@ export interface FarmOperationsGetDataIngestionJobDetailsDefaultHeaders { } /** Get a farm operation data ingestion job. */ -export interface FarmOperationsGetDataIngestionJobDetailsDefaultResponse - extends HttpResponse { +export interface FarmOperationsGetDataIngestionJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & - FarmOperationsGetDataIngestionJobDetailsDefaultHeaders; + headers: RawHttpHeaders & FarmOperationsGetDataIngestionJobDetailsDefaultHeaders; } /** Returns a paginated list of farm resources across all parties. */ @@ -848,16 +828,14 @@ export interface FarmsCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified farm. */ -export interface FarmsCreateCascadeDeleteJobDefaultResponse - extends HttpResponse { +export interface FarmsCreateCascadeDeleteJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & FarmsCreateCascadeDeleteJobDefaultHeaders; } /** Get a cascade delete job for specified farm. */ -export interface FarmsGetCascadeDeleteJobDetails200Response - extends HttpResponse { +export interface FarmsGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -867,8 +845,7 @@ export interface FarmsGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get a cascade delete job for specified farm. */ -export interface FarmsGetCascadeDeleteJobDetailsDefaultResponse - extends HttpResponse { +export interface FarmsGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & FarmsGetCascadeDeleteJobDetailsDefaultHeaders; @@ -965,8 +942,7 @@ export interface FieldsListDefaultResponse extends HttpResponse { } /** Get a cascade delete job for specified field. */ -export interface FieldsGetCascadeDeleteJobDetails200Response - extends HttpResponse { +export interface FieldsGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -976,8 +952,7 @@ export interface FieldsGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get a cascade delete job for specified field. */ -export interface FieldsGetCascadeDeleteJobDetailsDefaultResponse - extends HttpResponse { +export interface FieldsGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & FieldsGetCascadeDeleteJobDetailsDefaultHeaders; @@ -994,8 +969,7 @@ export interface FieldsCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified field. */ -export interface FieldsCreateCascadeDeleteJobDefaultResponse - extends HttpResponse { +export interface FieldsCreateCascadeDeleteJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & FieldsCreateCascadeDeleteJobDefaultHeaders; @@ -1092,8 +1066,7 @@ export interface HarvestDataListDefaultResponse extends HttpResponse { } /** Create cascade delete job for harvest data resource. */ -export interface HarvestDataCreateCascadeDeleteJob202Response - extends HttpResponse { +export interface HarvestDataCreateCascadeDeleteJob202Response extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -1103,16 +1076,14 @@ export interface HarvestDataCreateCascadeDeleteJobDefaultHeaders { } /** Create cascade delete job for harvest data resource. */ -export interface HarvestDataCreateCascadeDeleteJobDefaultResponse - extends HttpResponse { +export interface HarvestDataCreateCascadeDeleteJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & HarvestDataCreateCascadeDeleteJobDefaultHeaders; } /** Get cascade delete job for harvest data resource. */ -export interface HarvestDataGetCascadeDeleteJobDetails200Response - extends HttpResponse { +export interface HarvestDataGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -1122,8 +1093,7 @@ export interface HarvestDataGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get cascade delete job for harvest data resource. */ -export interface HarvestDataGetCascadeDeleteJobDetailsDefaultResponse - extends HttpResponse { +export interface HarvestDataGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & HarvestDataGetCascadeDeleteJobDetailsDefaultHeaders; @@ -1203,8 +1173,7 @@ export interface HarvestDataDeleteDefaultResponse extends HttpResponse { } /** Create a ImageProcessing Rasterize job. */ -export interface ImageProcessingCreateRasterizeJob202Response - extends HttpResponse { +export interface ImageProcessingCreateRasterizeJob202Response extends HttpResponse { status: "202"; body: ImageProcessingRasterizeJobOutput; } @@ -1214,16 +1183,14 @@ export interface ImageProcessingCreateRasterizeJobDefaultHeaders { } /** Create a ImageProcessing Rasterize job. */ -export interface ImageProcessingCreateRasterizeJobDefaultResponse - extends HttpResponse { +export interface ImageProcessingCreateRasterizeJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ImageProcessingCreateRasterizeJobDefaultHeaders; } /** Get ImageProcessing Rasterize job's details. */ -export interface ImageProcessingGetRasterizeJob200Response - extends HttpResponse { +export interface ImageProcessingGetRasterizeJob200Response extends HttpResponse { status: "200"; body: ImageProcessingRasterizeJobOutput; } @@ -1233,16 +1200,14 @@ export interface ImageProcessingGetRasterizeJobDefaultHeaders { } /** Get ImageProcessing Rasterize job's details. */ -export interface ImageProcessingGetRasterizeJobDefaultResponse - extends HttpResponse { +export interface ImageProcessingGetRasterizeJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ImageProcessingGetRasterizeJobDefaultHeaders; } /** Returns a paginated list of insight resources. */ -export interface InsightAttachmentsListByPartyIdModelIdAndResource200Response - extends HttpResponse { +export interface InsightAttachmentsListByPartyIdModelIdAndResource200Response extends HttpResponse { status: "200"; body: InsightAttachmentListResponseOutput; } @@ -1256,20 +1221,17 @@ export interface InsightAttachmentsListByPartyIdModelIdAndResourceDefaultRespons extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & - InsightAttachmentsListByPartyIdModelIdAndResourceDefaultHeaders; + headers: RawHttpHeaders & InsightAttachmentsListByPartyIdModelIdAndResourceDefaultHeaders; } /** Creates or updates insight entity. */ -export interface InsightAttachmentsCreateOrUpdate200Response - extends HttpResponse { +export interface InsightAttachmentsCreateOrUpdate200Response extends HttpResponse { status: "200"; body: InsightAttachmentOutput; } /** Creates or updates insight entity. */ -export interface InsightAttachmentsCreateOrUpdate201Response - extends HttpResponse { +export interface InsightAttachmentsCreateOrUpdate201Response extends HttpResponse { status: "201"; body: InsightAttachmentOutput; } @@ -1279,8 +1241,7 @@ export interface InsightAttachmentsCreateOrUpdateDefaultHeaders { } /** Creates or updates insight entity. */ -export interface InsightAttachmentsCreateOrUpdateDefaultResponse - extends HttpResponse { +export interface InsightAttachmentsCreateOrUpdateDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & InsightAttachmentsCreateOrUpdateDefaultHeaders; @@ -1331,16 +1292,14 @@ export interface InsightAttachmentsDownloadDefaultHeaders { } /** Downloads and returns insight-attachment as response for the given input filePath. */ -export interface InsightAttachmentsDownloadDefaultResponse - extends HttpResponse { +export interface InsightAttachmentsDownloadDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & InsightAttachmentsDownloadDefaultHeaders; } /** Create a cascade delete job for insights specified partyId/modelId/resourceType/resourceId. */ -export interface InsightsCreateCascadeDeleteJob202Response - extends HttpResponse { +export interface InsightsCreateCascadeDeleteJob202Response extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -1350,16 +1309,14 @@ export interface InsightsCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for insights specified partyId/modelId/resourceType/resourceId. */ -export interface InsightsCreateCascadeDeleteJobDefaultResponse - extends HttpResponse { +export interface InsightsCreateCascadeDeleteJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & InsightsCreateCascadeDeleteJobDefaultHeaders; } /** Get a cascade delete job for specified insight. */ -export interface InsightsGetCascadeDeleteJobDetails200Response - extends HttpResponse { +export interface InsightsGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -1369,16 +1326,14 @@ export interface InsightsGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get a cascade delete job for specified insight. */ -export interface InsightsGetCascadeDeleteJobDetailsDefaultResponse - extends HttpResponse { +export interface InsightsGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & InsightsGetCascadeDeleteJobDetailsDefaultHeaders; } /** Returns a paginated list of insight resources. */ -export interface InsightsListByPartyIdModelIdAndResource200Response - extends HttpResponse { +export interface InsightsListByPartyIdModelIdAndResource200Response extends HttpResponse { status: "200"; body: InsightListResponseOutput; } @@ -1388,12 +1343,10 @@ export interface InsightsListByPartyIdModelIdAndResourceDefaultHeaders { } /** Returns a paginated list of insight resources. */ -export interface InsightsListByPartyIdModelIdAndResourceDefaultResponse - extends HttpResponse { +export interface InsightsListByPartyIdModelIdAndResourceDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & - InsightsListByPartyIdModelIdAndResourceDefaultHeaders; + headers: RawHttpHeaders & InsightsListByPartyIdModelIdAndResourceDefaultHeaders; } /** Creates or updates insight entity. */ @@ -1470,8 +1423,7 @@ export interface ManagementZonesListDefaultResponse extends HttpResponse { } /** Get a cascade delete job for specified job id. */ -export interface ManagementZonesGetCascadeDeleteJobDetails200Response - extends HttpResponse { +export interface ManagementZonesGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -1481,17 +1433,14 @@ export interface ManagementZonesGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get a cascade delete job for specified job id. */ -export interface ManagementZonesGetCascadeDeleteJobDetailsDefaultResponse - extends HttpResponse { +export interface ManagementZonesGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & - ManagementZonesGetCascadeDeleteJobDetailsDefaultHeaders; + headers: RawHttpHeaders & ManagementZonesGetCascadeDeleteJobDetailsDefaultHeaders; } /** Create a cascade delete job for specified management zone. */ -export interface ManagementZonesCreateCascadeDeleteJob202Response - extends HttpResponse { +export interface ManagementZonesCreateCascadeDeleteJob202Response extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -1501,8 +1450,7 @@ export interface ManagementZonesCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified management zone. */ -export interface ManagementZonesCreateCascadeDeleteJobDefaultResponse - extends HttpResponse { +export interface ManagementZonesCreateCascadeDeleteJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ManagementZonesCreateCascadeDeleteJobDefaultHeaders; @@ -1519,8 +1467,7 @@ export interface ManagementZonesListByPartyIdDefaultHeaders { } /** Returns a paginated list of management zone resources under a particular party. */ -export interface ManagementZonesListByPartyIdDefaultResponse - extends HttpResponse { +export interface ManagementZonesListByPartyIdDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ManagementZonesListByPartyIdDefaultHeaders; @@ -1560,8 +1507,7 @@ export interface ManagementZonesCreateOrUpdateDefaultHeaders { } /** Creates or updates a management zone resource. */ -export interface ManagementZonesCreateOrUpdateDefaultResponse - extends HttpResponse { +export interface ManagementZonesCreateOrUpdateDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ManagementZonesCreateOrUpdateDefaultHeaders; @@ -1584,8 +1530,7 @@ export interface ManagementZonesDeleteDefaultResponse extends HttpResponse { } /** Create a Biomass Model job. */ -export interface ModelInferenceCreateBiomassModelJob202Response - extends HttpResponse { +export interface ModelInferenceCreateBiomassModelJob202Response extends HttpResponse { status: "202"; body: BiomassModelJobOutput; } @@ -1595,16 +1540,14 @@ export interface ModelInferenceCreateBiomassModelJobDefaultHeaders { } /** Create a Biomass Model job. */ -export interface ModelInferenceCreateBiomassModelJobDefaultResponse - extends HttpResponse { +export interface ModelInferenceCreateBiomassModelJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ModelInferenceCreateBiomassModelJobDefaultHeaders; } /** Get Biomass Model job's details. */ -export interface ModelInferenceGetBiomassModelJob200Response - extends HttpResponse { +export interface ModelInferenceGetBiomassModelJob200Response extends HttpResponse { status: "200"; body: BiomassModelJobOutput; } @@ -1614,16 +1557,14 @@ export interface ModelInferenceGetBiomassModelJobDefaultHeaders { } /** Get Biomass Model job's details. */ -export interface ModelInferenceGetBiomassModelJobDefaultResponse - extends HttpResponse { +export interface ModelInferenceGetBiomassModelJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ModelInferenceGetBiomassModelJobDefaultHeaders; } /** Create a Sensor Placement Model job. */ -export interface ModelInferenceCreateSensorPlacementModelJob202Response - extends HttpResponse { +export interface ModelInferenceCreateSensorPlacementModelJob202Response extends HttpResponse { status: "202"; body: SensorPlacementModelJobOutput; } @@ -1633,17 +1574,14 @@ export interface ModelInferenceCreateSensorPlacementModelJobDefaultHeaders { } /** Create a Sensor Placement Model job. */ -export interface ModelInferenceCreateSensorPlacementModelJobDefaultResponse - extends HttpResponse { +export interface ModelInferenceCreateSensorPlacementModelJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & - ModelInferenceCreateSensorPlacementModelJobDefaultHeaders; + headers: RawHttpHeaders & ModelInferenceCreateSensorPlacementModelJobDefaultHeaders; } /** Get Sensor Placement Model job's details. */ -export interface ModelInferenceGetSensorPlacementModelJob200Response - extends HttpResponse { +export interface ModelInferenceGetSensorPlacementModelJob200Response extends HttpResponse { status: "200"; body: SensorPlacementModelJobOutput; } @@ -1653,17 +1591,14 @@ export interface ModelInferenceGetSensorPlacementModelJobDefaultHeaders { } /** Get Sensor Placement Model job's details. */ -export interface ModelInferenceGetSensorPlacementModelJobDefaultResponse - extends HttpResponse { +export interface ModelInferenceGetSensorPlacementModelJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & - ModelInferenceGetSensorPlacementModelJobDefaultHeaders; + headers: RawHttpHeaders & ModelInferenceGetSensorPlacementModelJobDefaultHeaders; } /** Create a SoilMoisture Model job. */ -export interface ModelInferenceCreateSoilMoistureModelJob202Response - extends HttpResponse { +export interface ModelInferenceCreateSoilMoistureModelJob202Response extends HttpResponse { status: "202"; body: SoilMoistureModelJobOutput; } @@ -1673,17 +1608,14 @@ export interface ModelInferenceCreateSoilMoistureModelJobDefaultHeaders { } /** Create a SoilMoisture Model job. */ -export interface ModelInferenceCreateSoilMoistureModelJobDefaultResponse - extends HttpResponse { +export interface ModelInferenceCreateSoilMoistureModelJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & - ModelInferenceCreateSoilMoistureModelJobDefaultHeaders; + headers: RawHttpHeaders & ModelInferenceCreateSoilMoistureModelJobDefaultHeaders; } /** Get SoilMoisture Model job's details. */ -export interface ModelInferenceGetSoilMoistureModelJob200Response - extends HttpResponse { +export interface ModelInferenceGetSoilMoistureModelJob200Response extends HttpResponse { status: "200"; body: SoilMoistureModelJobOutput; } @@ -1693,8 +1625,7 @@ export interface ModelInferenceGetSoilMoistureModelJobDefaultHeaders { } /** Get SoilMoisture Model job's details. */ -export interface ModelInferenceGetSoilMoistureModelJobDefaultResponse - extends HttpResponse { +export interface ModelInferenceGetSoilMoistureModelJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ModelInferenceGetSoilMoistureModelJobDefaultHeaders; @@ -1728,8 +1659,7 @@ export interface NutrientAnalysesListByPartyIdDefaultHeaders { } /** Returns a paginated list of nutrient analysis resources under a particular party. */ -export interface NutrientAnalysesListByPartyIdDefaultResponse - extends HttpResponse { +export interface NutrientAnalysesListByPartyIdDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & NutrientAnalysesListByPartyIdDefaultHeaders; @@ -1753,15 +1683,13 @@ export interface NutrientAnalysesGetDefaultResponse extends HttpResponse { } /** Creates or updates a nutrient analysis resource. */ -export interface NutrientAnalysesCreateOrUpdate200Response - extends HttpResponse { +export interface NutrientAnalysesCreateOrUpdate200Response extends HttpResponse { status: "200"; body: NutrientAnalysisOutput; } /** Creates or updates a nutrient analysis resource. */ -export interface NutrientAnalysesCreateOrUpdate201Response - extends HttpResponse { +export interface NutrientAnalysesCreateOrUpdate201Response extends HttpResponse { status: "201"; body: NutrientAnalysisOutput; } @@ -1771,8 +1699,7 @@ export interface NutrientAnalysesCreateOrUpdateDefaultHeaders { } /** Creates or updates a nutrient analysis resource. */ -export interface NutrientAnalysesCreateOrUpdateDefaultResponse - extends HttpResponse { +export interface NutrientAnalysesCreateOrUpdateDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & NutrientAnalysesCreateOrUpdateDefaultHeaders; @@ -1845,8 +1772,7 @@ export interface OAuthProvidersCreateOrUpdateDefaultHeaders { } /** Creates or updates an oauthProvider resource. */ -export interface OAuthProvidersCreateOrUpdateDefaultResponse - extends HttpResponse { +export interface OAuthProvidersCreateOrUpdateDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & OAuthProvidersCreateOrUpdateDefaultHeaders; @@ -1869,8 +1795,7 @@ export interface OAuthProvidersDeleteDefaultResponse extends HttpResponse { } /** Get cascade delete job for oauthProvider resource. */ -export interface OAuthProvidersGetCascadeDeleteJobDetails200Response - extends HttpResponse { +export interface OAuthProvidersGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; body: OAuthProviderCascadeDeleteJobOutput; } @@ -1880,17 +1805,14 @@ export interface OAuthProvidersGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get cascade delete job for oauthProvider resource. */ -export interface OAuthProvidersGetCascadeDeleteJobDetailsDefaultResponse - extends HttpResponse { +export interface OAuthProvidersGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & - OAuthProvidersGetCascadeDeleteJobDetailsDefaultHeaders; + headers: RawHttpHeaders & OAuthProvidersGetCascadeDeleteJobDetailsDefaultHeaders; } /** Create cascade delete job for oauthProvider resource. */ -export interface OAuthProvidersCreateCascadeDeleteJob202Response - extends HttpResponse { +export interface OAuthProvidersCreateCascadeDeleteJob202Response extends HttpResponse { status: "202"; body: OAuthProviderCascadeDeleteJobOutput; } @@ -1900,8 +1822,7 @@ export interface OAuthProvidersCreateCascadeDeleteJobDefaultHeaders { } /** Create cascade delete job for oauthProvider resource. */ -export interface OAuthProvidersCreateCascadeDeleteJobDefaultResponse - extends HttpResponse { +export interface OAuthProvidersCreateCascadeDeleteJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & OAuthProvidersCreateCascadeDeleteJobDefaultHeaders; @@ -1925,8 +1846,7 @@ export interface OAuthTokensListDefaultResponse extends HttpResponse { } /** Returns Connection link needed in the OAuth flow. */ -export interface OAuthTokensGetOAuthConnectionLink200Response - extends HttpResponse { +export interface OAuthTokensGetOAuthConnectionLink200Response extends HttpResponse { status: "200"; body: string; } @@ -1936,16 +1856,14 @@ export interface OAuthTokensGetOAuthConnectionLinkDefaultHeaders { } /** Returns Connection link needed in the OAuth flow. */ -export interface OAuthTokensGetOAuthConnectionLinkDefaultResponse - extends HttpResponse { +export interface OAuthTokensGetOAuthConnectionLinkDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & OAuthTokensGetOAuthConnectionLinkDefaultHeaders; } /** Get remove job for OAuth token. */ -export interface OAuthTokensGetCascadeDeleteJobDetails200Response - extends HttpResponse { +export interface OAuthTokensGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -1955,16 +1873,14 @@ export interface OAuthTokensGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get remove job for OAuth token. */ -export interface OAuthTokensGetCascadeDeleteJobDetailsDefaultResponse - extends HttpResponse { +export interface OAuthTokensGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & OAuthTokensGetCascadeDeleteJobDetailsDefaultHeaders; } /** Create remove job for OAuth token. */ -export interface OAuthTokensCreateCascadeDeleteJob202Response - extends HttpResponse { +export interface OAuthTokensCreateCascadeDeleteJob202Response extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -1974,8 +1890,7 @@ export interface OAuthTokensCreateCascadeDeleteJobDefaultHeaders { } /** Create remove job for OAuth token. */ -export interface OAuthTokensCreateCascadeDeleteJobDefaultResponse - extends HttpResponse { +export interface OAuthTokensCreateCascadeDeleteJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & OAuthTokensCreateCascadeDeleteJobDefaultHeaders; @@ -2055,8 +1970,7 @@ export interface PartiesDeleteDefaultResponse extends HttpResponse { } /** Get a cascade delete job for specified party. */ -export interface PartiesGetCascadeDeleteJobDetails200Response - extends HttpResponse { +export interface PartiesGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -2066,8 +1980,7 @@ export interface PartiesGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get a cascade delete job for specified party. */ -export interface PartiesGetCascadeDeleteJobDetailsDefaultResponse - extends HttpResponse { +export interface PartiesGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PartiesGetCascadeDeleteJobDetailsDefaultHeaders; @@ -2084,8 +1997,7 @@ export interface PartiesCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified party. */ -export interface PartiesCreateCascadeDeleteJobDefaultResponse - extends HttpResponse { +export interface PartiesCreateCascadeDeleteJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PartiesCreateCascadeDeleteJobDefaultHeaders; @@ -2142,8 +2054,7 @@ export interface PlantingDataCreateOrUpdateDefaultHeaders { } /** Creates or updates an planting data resource under a particular party. */ -export interface PlantingDataCreateOrUpdateDefaultResponse - extends HttpResponse { +export interface PlantingDataCreateOrUpdateDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PlantingDataCreateOrUpdateDefaultHeaders; @@ -2183,8 +2094,7 @@ export interface PlantingDataListDefaultResponse extends HttpResponse { } /** Create cascade delete job for planting data resource. */ -export interface PlantingDataCreateCascadeDeleteJob202Response - extends HttpResponse { +export interface PlantingDataCreateCascadeDeleteJob202Response extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -2194,16 +2104,14 @@ export interface PlantingDataCreateCascadeDeleteJobDefaultHeaders { } /** Create cascade delete job for planting data resource. */ -export interface PlantingDataCreateCascadeDeleteJobDefaultResponse - extends HttpResponse { +export interface PlantingDataCreateCascadeDeleteJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PlantingDataCreateCascadeDeleteJobDefaultHeaders; } /** Get cascade delete job for planting data resource. */ -export interface PlantingDataGetCascadeDeleteJobDetails200Response - extends HttpResponse { +export interface PlantingDataGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -2213,17 +2121,14 @@ export interface PlantingDataGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get cascade delete job for planting data resource. */ -export interface PlantingDataGetCascadeDeleteJobDetailsDefaultResponse - extends HttpResponse { +export interface PlantingDataGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & - PlantingDataGetCascadeDeleteJobDetailsDefaultHeaders; + headers: RawHttpHeaders & PlantingDataGetCascadeDeleteJobDetailsDefaultHeaders; } /** Returns a paginated list of plant tissue analysis resources under a particular party. */ -export interface PlantTissueAnalysesListByPartyId200Response - extends HttpResponse { +export interface PlantTissueAnalysesListByPartyId200Response extends HttpResponse { status: "200"; body: PlantTissueAnalysisListResponseOutput; } @@ -2233,8 +2138,7 @@ export interface PlantTissueAnalysesListByPartyIdDefaultHeaders { } /** Returns a paginated list of plant tissue analysis resources under a particular party. */ -export interface PlantTissueAnalysesListByPartyIdDefaultResponse - extends HttpResponse { +export interface PlantTissueAnalysesListByPartyIdDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PlantTissueAnalysesListByPartyIdDefaultHeaders; @@ -2258,15 +2162,13 @@ export interface PlantTissueAnalysesGetDefaultResponse extends HttpResponse { } /** Creates or updates a plant tissue analysis resource. */ -export interface PlantTissueAnalysesCreateOrUpdate200Response - extends HttpResponse { +export interface PlantTissueAnalysesCreateOrUpdate200Response extends HttpResponse { status: "200"; body: PlantTissueAnalysisOutput; } /** Creates or updates a plant tissue analysis resource. */ -export interface PlantTissueAnalysesCreateOrUpdate201Response - extends HttpResponse { +export interface PlantTissueAnalysesCreateOrUpdate201Response extends HttpResponse { status: "201"; body: PlantTissueAnalysisOutput; } @@ -2276,8 +2178,7 @@ export interface PlantTissueAnalysesCreateOrUpdateDefaultHeaders { } /** Creates or updates a plant tissue analysis resource. */ -export interface PlantTissueAnalysesCreateOrUpdateDefaultResponse - extends HttpResponse { +export interface PlantTissueAnalysesCreateOrUpdateDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PlantTissueAnalysesCreateOrUpdateDefaultHeaders; @@ -2317,8 +2218,7 @@ export interface PlantTissueAnalysesListDefaultResponse extends HttpResponse { } /** Create a cascade delete job for specified plant tissue analysis. */ -export interface PlantTissueAnalysesCreateCascadeDeleteJob202Response - extends HttpResponse { +export interface PlantTissueAnalysesCreateCascadeDeleteJob202Response extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -2328,17 +2228,14 @@ export interface PlantTissueAnalysesCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified plant tissue analysis. */ -export interface PlantTissueAnalysesCreateCascadeDeleteJobDefaultResponse - extends HttpResponse { +export interface PlantTissueAnalysesCreateCascadeDeleteJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & - PlantTissueAnalysesCreateCascadeDeleteJobDefaultHeaders; + headers: RawHttpHeaders & PlantTissueAnalysesCreateCascadeDeleteJobDefaultHeaders; } /** Get a cascade delete job for specified plant tissue analysis. */ -export interface PlantTissueAnalysesGetCascadeDeleteJobDetails200Response - extends HttpResponse { +export interface PlantTissueAnalysesGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -2348,12 +2245,10 @@ export interface PlantTissueAnalysesGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get a cascade delete job for specified plant tissue analysis. */ -export interface PlantTissueAnalysesGetCascadeDeleteJobDetailsDefaultResponse - extends HttpResponse { +export interface PlantTissueAnalysesGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & - PlantTissueAnalysesGetCascadeDeleteJobDetailsDefaultHeaders; + headers: RawHttpHeaders & PlantTissueAnalysesGetCascadeDeleteJobDetailsDefaultHeaders; } /** Returns a paginated list of prescription map resources under a particular party. */ @@ -2367,8 +2262,7 @@ export interface PrescriptionMapsListByPartyIdDefaultHeaders { } /** Returns a paginated list of prescription map resources under a particular party. */ -export interface PrescriptionMapsListByPartyIdDefaultResponse - extends HttpResponse { +export interface PrescriptionMapsListByPartyIdDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PrescriptionMapsListByPartyIdDefaultHeaders; @@ -2392,15 +2286,13 @@ export interface PrescriptionMapsGetDefaultResponse extends HttpResponse { } /** Creates or Updates a prescription map resource under a particular party. */ -export interface PrescriptionMapsCreateOrUpdate200Response - extends HttpResponse { +export interface PrescriptionMapsCreateOrUpdate200Response extends HttpResponse { status: "200"; body: PrescriptionMapOutput; } /** Creates or Updates a prescription map resource under a particular party. */ -export interface PrescriptionMapsCreateOrUpdate201Response - extends HttpResponse { +export interface PrescriptionMapsCreateOrUpdate201Response extends HttpResponse { status: "201"; body: PrescriptionMapOutput; } @@ -2410,8 +2302,7 @@ export interface PrescriptionMapsCreateOrUpdateDefaultHeaders { } /** Creates or Updates a prescription map resource under a particular party. */ -export interface PrescriptionMapsCreateOrUpdateDefaultResponse - extends HttpResponse { +export interface PrescriptionMapsCreateOrUpdateDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PrescriptionMapsCreateOrUpdateDefaultHeaders; @@ -2451,8 +2342,7 @@ export interface PrescriptionMapsListDefaultResponse extends HttpResponse { } /** Get a cascade delete job for specified prescription map. */ -export interface PrescriptionMapsGetCascadeDeleteJobDetails200Response - extends HttpResponse { +export interface PrescriptionMapsGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -2462,17 +2352,14 @@ export interface PrescriptionMapsGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get a cascade delete job for specified prescription map. */ -export interface PrescriptionMapsGetCascadeDeleteJobDetailsDefaultResponse - extends HttpResponse { +export interface PrescriptionMapsGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & - PrescriptionMapsGetCascadeDeleteJobDetailsDefaultHeaders; + headers: RawHttpHeaders & PrescriptionMapsGetCascadeDeleteJobDetailsDefaultHeaders; } /** Create a cascade delete job for specified prescription map. */ -export interface PrescriptionMapsCreateCascadeDeleteJob202Response - extends HttpResponse { +export interface PrescriptionMapsCreateCascadeDeleteJob202Response extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -2482,12 +2369,10 @@ export interface PrescriptionMapsCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified prescription map. */ -export interface PrescriptionMapsCreateCascadeDeleteJobDefaultResponse - extends HttpResponse { +export interface PrescriptionMapsCreateCascadeDeleteJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & - PrescriptionMapsCreateCascadeDeleteJobDefaultHeaders; + headers: RawHttpHeaders & PrescriptionMapsCreateCascadeDeleteJobDefaultHeaders; } /** Returns a paginated list of prescription resources under a particular party. */ @@ -2501,8 +2386,7 @@ export interface PrescriptionsListByPartyIdDefaultHeaders { } /** Returns a paginated list of prescription resources under a particular party. */ -export interface PrescriptionsListByPartyIdDefaultResponse - extends HttpResponse { +export interface PrescriptionsListByPartyIdDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PrescriptionsListByPartyIdDefaultHeaders; @@ -2542,8 +2426,7 @@ export interface PrescriptionsCreateOrUpdateDefaultHeaders { } /** Creates or Updates a prescription resource under a particular party. */ -export interface PrescriptionsCreateOrUpdateDefaultResponse - extends HttpResponse { +export interface PrescriptionsCreateOrUpdateDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PrescriptionsCreateOrUpdateDefaultHeaders; @@ -2583,8 +2466,7 @@ export interface PrescriptionsListDefaultResponse extends HttpResponse { } /** Get a cascade delete job for specified prescription. */ -export interface PrescriptionsGetCascadeDeleteJobDetails200Response - extends HttpResponse { +export interface PrescriptionsGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -2594,17 +2476,14 @@ export interface PrescriptionsGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get a cascade delete job for specified prescription. */ -export interface PrescriptionsGetCascadeDeleteJobDetailsDefaultResponse - extends HttpResponse { +export interface PrescriptionsGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & - PrescriptionsGetCascadeDeleteJobDetailsDefaultHeaders; + headers: RawHttpHeaders & PrescriptionsGetCascadeDeleteJobDetailsDefaultHeaders; } /** Create a cascade delete job for specified prescription. */ -export interface PrescriptionsCreateCascadeDeleteJob202Response - extends HttpResponse { +export interface PrescriptionsCreateCascadeDeleteJob202Response extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -2614,8 +2493,7 @@ export interface PrescriptionsCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified prescription. */ -export interface PrescriptionsCreateCascadeDeleteJobDefaultResponse - extends HttpResponse { +export interface PrescriptionsCreateCascadeDeleteJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & PrescriptionsCreateCascadeDeleteJobDefaultHeaders; @@ -2657,8 +2535,7 @@ export interface ScenesDownloadDefaultResponse extends HttpResponse { } /** Create a satellite data ingestion job. */ -export interface ScenesCreateSatelliteDataIngestionJob202Response - extends HttpResponse { +export interface ScenesCreateSatelliteDataIngestionJob202Response extends HttpResponse { status: "202"; body: SatelliteDataIngestionJobOutput; } @@ -2668,16 +2545,14 @@ export interface ScenesCreateSatelliteDataIngestionJobDefaultHeaders { } /** Create a satellite data ingestion job. */ -export interface ScenesCreateSatelliteDataIngestionJobDefaultResponse - extends HttpResponse { +export interface ScenesCreateSatelliteDataIngestionJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ScenesCreateSatelliteDataIngestionJobDefaultHeaders; } /** Get a satellite data ingestion job. */ -export interface ScenesGetSatelliteDataIngestionJobDetails200Response - extends HttpResponse { +export interface ScenesGetSatelliteDataIngestionJobDetails200Response extends HttpResponse { status: "200"; body: SatelliteDataIngestionJobOutput; } @@ -2687,12 +2562,10 @@ export interface ScenesGetSatelliteDataIngestionJobDetailsDefaultHeaders { } /** Get a satellite data ingestion job. */ -export interface ScenesGetSatelliteDataIngestionJobDetailsDefaultResponse - extends HttpResponse { +export interface ScenesGetSatelliteDataIngestionJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & - ScenesGetSatelliteDataIngestionJobDetailsDefaultHeaders; + headers: RawHttpHeaders & ScenesGetSatelliteDataIngestionJobDetailsDefaultHeaders; } /** Search for STAC features by collection id, bbox, intersecting geometry, start and end datetime. */ @@ -2740,8 +2613,7 @@ export interface SeasonalFieldsListByPartyIdDefaultHeaders { } /** Returns a paginated list of seasonal field resources under a particular party. */ -export interface SeasonalFieldsListByPartyIdDefaultResponse - extends HttpResponse { +export interface SeasonalFieldsListByPartyIdDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SeasonalFieldsListByPartyIdDefaultHeaders; @@ -2781,8 +2653,7 @@ export interface SeasonalFieldsCreateOrUpdateDefaultHeaders { } /** Creates or Updates a seasonal field resource under a particular party. */ -export interface SeasonalFieldsCreateOrUpdateDefaultResponse - extends HttpResponse { +export interface SeasonalFieldsCreateOrUpdateDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SeasonalFieldsCreateOrUpdateDefaultHeaders; @@ -2822,8 +2693,7 @@ export interface SeasonalFieldsListDefaultResponse extends HttpResponse { } /** Get cascade delete job for specified seasonal field. */ -export interface SeasonalFieldsGetCascadeDeleteJobDetails200Response - extends HttpResponse { +export interface SeasonalFieldsGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -2833,17 +2703,14 @@ export interface SeasonalFieldsGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get cascade delete job for specified seasonal field. */ -export interface SeasonalFieldsGetCascadeDeleteJobDetailsDefaultResponse - extends HttpResponse { +export interface SeasonalFieldsGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & - SeasonalFieldsGetCascadeDeleteJobDetailsDefaultHeaders; + headers: RawHttpHeaders & SeasonalFieldsGetCascadeDeleteJobDetailsDefaultHeaders; } /** Create a cascade delete job for specified seasonal field. */ -export interface SeasonalFieldsCreateCascadeDeleteJob202Response - extends HttpResponse { +export interface SeasonalFieldsCreateCascadeDeleteJob202Response extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -2853,8 +2720,7 @@ export interface SeasonalFieldsCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified seasonal field. */ -export interface SeasonalFieldsCreateCascadeDeleteJobDefaultResponse - extends HttpResponse { +export interface SeasonalFieldsCreateCascadeDeleteJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SeasonalFieldsCreateCascadeDeleteJobDefaultHeaders; @@ -2951,15 +2817,13 @@ export interface SensorDataModelsListDefaultResponse extends HttpResponse { } /** Create a sensor data model entity. */ -export interface SensorDataModelsCreateOrUpdate200Response - extends HttpResponse { +export interface SensorDataModelsCreateOrUpdate200Response extends HttpResponse { status: "200"; body: SensorDataModelOutput; } /** Create a sensor data model entity. */ -export interface SensorDataModelsCreateOrUpdate201Response - extends HttpResponse { +export interface SensorDataModelsCreateOrUpdate201Response extends HttpResponse { status: "201"; body: SensorDataModelOutput; } @@ -2969,8 +2833,7 @@ export interface SensorDataModelsCreateOrUpdateDefaultHeaders { } /** Create a sensor data model entity. */ -export interface SensorDataModelsCreateOrUpdateDefaultResponse - extends HttpResponse { +export interface SensorDataModelsCreateOrUpdateDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SensorDataModelsCreateOrUpdateDefaultHeaders; @@ -3066,8 +2929,7 @@ export interface SensorMappingsCreateOrUpdateDefaultHeaders { } /** Create a sensor mapping entity. */ -export interface SensorMappingsCreateOrUpdateDefaultResponse - extends HttpResponse { +export interface SensorMappingsCreateOrUpdateDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SensorMappingsCreateOrUpdateDefaultHeaders; @@ -3117,23 +2979,20 @@ export interface SensorPartnerIntegrationsListDefaultHeaders { } /** Gets partner integration models. */ -export interface SensorPartnerIntegrationsListDefaultResponse - extends HttpResponse { +export interface SensorPartnerIntegrationsListDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SensorPartnerIntegrationsListDefaultHeaders; } /** Create or update an integration with a sensor partner. */ -export interface SensorPartnerIntegrationsCreateOrUpdate200Response - extends HttpResponse { +export interface SensorPartnerIntegrationsCreateOrUpdate200Response extends HttpResponse { status: "200"; body: SensorPartnerIntegrationModelOutput; } /** Create or update an integration with a sensor partner. */ -export interface SensorPartnerIntegrationsCreateOrUpdate201Response - extends HttpResponse { +export interface SensorPartnerIntegrationsCreateOrUpdate201Response extends HttpResponse { status: "201"; body: SensorPartnerIntegrationModelOutput; } @@ -3143,12 +3002,10 @@ export interface SensorPartnerIntegrationsCreateOrUpdateDefaultHeaders { } /** Create or update an integration with a sensor partner. */ -export interface SensorPartnerIntegrationsCreateOrUpdateDefaultResponse - extends HttpResponse { +export interface SensorPartnerIntegrationsCreateOrUpdateDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & - SensorPartnerIntegrationsCreateOrUpdateDefaultHeaders; + headers: RawHttpHeaders & SensorPartnerIntegrationsCreateOrUpdateDefaultHeaders; } /** Gets a partner integration model entity. */ @@ -3162,16 +3019,14 @@ export interface SensorPartnerIntegrationsGetDefaultHeaders { } /** Gets a partner integration model entity. */ -export interface SensorPartnerIntegrationsGetDefaultResponse - extends HttpResponse { +export interface SensorPartnerIntegrationsGetDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SensorPartnerIntegrationsGetDefaultHeaders; } /** Deletes a partner integration model entity. */ -export interface SensorPartnerIntegrationsDelete204Response - extends HttpResponse { +export interface SensorPartnerIntegrationsDelete204Response extends HttpResponse { status: "204"; } @@ -3180,16 +3035,14 @@ export interface SensorPartnerIntegrationsDeleteDefaultHeaders { } /** Deletes a partner integration model entity. */ -export interface SensorPartnerIntegrationsDeleteDefaultResponse - extends HttpResponse { +export interface SensorPartnerIntegrationsDeleteDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SensorPartnerIntegrationsDeleteDefaultHeaders; } /** Checks consent for partner integration. */ -export interface SensorPartnerIntegrationsCheckConsent200Response - extends HttpResponse { +export interface SensorPartnerIntegrationsCheckConsent200Response extends HttpResponse { status: "200"; body: SensorPartnerIntegrationCheckConsentResponseOutput; } @@ -3199,16 +3052,14 @@ export interface SensorPartnerIntegrationsCheckConsentDefaultHeaders { } /** Checks consent for partner integration. */ -export interface SensorPartnerIntegrationsCheckConsentDefaultResponse - extends HttpResponse { +export interface SensorPartnerIntegrationsCheckConsentDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SensorPartnerIntegrationsCheckConsentDefaultHeaders; } /** Generates partner integration consent link. */ -export interface SensorPartnerIntegrationsGenerateConsentLink200Response - extends HttpResponse { +export interface SensorPartnerIntegrationsGenerateConsentLink200Response extends HttpResponse { status: "200"; body: SensorPartnerIntegrationGenerateConsentLinkResponseOutput; } @@ -3218,12 +3069,10 @@ export interface SensorPartnerIntegrationsGenerateConsentLinkDefaultHeaders { } /** Generates partner integration consent link. */ -export interface SensorPartnerIntegrationsGenerateConsentLinkDefaultResponse - extends HttpResponse { +export interface SensorPartnerIntegrationsGenerateConsentLinkDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; - headers: RawHttpHeaders & - SensorPartnerIntegrationsGenerateConsentLinkDefaultHeaders; + headers: RawHttpHeaders & SensorPartnerIntegrationsGenerateConsentLinkDefaultHeaders; } /** Returns a paginated list of sensor resources. */ @@ -3310,8 +3159,7 @@ export interface SensorsGetConnectionStringDefaultHeaders { } /** Gets a sensor connection string. */ -export interface SensorsGetConnectionStringDefaultResponse - extends HttpResponse { +export interface SensorsGetConnectionStringDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SensorsGetConnectionStringDefaultHeaders; @@ -3328,8 +3176,7 @@ export interface SensorsRenewConnectionStringDefaultHeaders { } /** Renews a sensor connection string. */ -export interface SensorsRenewConnectionStringDefaultResponse - extends HttpResponse { +export interface SensorsRenewConnectionStringDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SensorsRenewConnectionStringDefaultHeaders; @@ -3353,8 +3200,7 @@ export interface SolutionInferenceCancelDefaultResponse extends HttpResponse { } /** Creates a job trigger for a solution. */ -export interface SolutionInferenceCreateOrUpdate202Response - extends HttpResponse { +export interface SolutionInferenceCreateOrUpdate202Response extends HttpResponse { status: "202"; body: Record; } @@ -3364,8 +3210,7 @@ export interface SolutionInferenceCreateOrUpdateDefaultHeaders { } /** Creates a job trigger for a solution. */ -export interface SolutionInferenceCreateOrUpdateDefaultResponse - extends HttpResponse { +export interface SolutionInferenceCreateOrUpdateDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & SolutionInferenceCreateOrUpdateDefaultHeaders; @@ -3479,8 +3324,7 @@ export interface TillageDataListDefaultResponse extends HttpResponse { } /** Create cascade delete job for tillage data resource. */ -export interface TillageDataCreateCascadeDeleteJob202Response - extends HttpResponse { +export interface TillageDataCreateCascadeDeleteJob202Response extends HttpResponse { status: "202"; body: CascadeDeleteJobOutput; } @@ -3490,16 +3334,14 @@ export interface TillageDataCreateCascadeDeleteJobDefaultHeaders { } /** Create cascade delete job for tillage data resource. */ -export interface TillageDataCreateCascadeDeleteJobDefaultResponse - extends HttpResponse { +export interface TillageDataCreateCascadeDeleteJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & TillageDataCreateCascadeDeleteJobDefaultHeaders; } /** Get cascade delete job for tillage data resource. */ -export interface TillageDataGetCascadeDeleteJobDetails200Response - extends HttpResponse { +export interface TillageDataGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -3509,8 +3351,7 @@ export interface TillageDataGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get cascade delete job for tillage data resource. */ -export interface TillageDataGetCascadeDeleteJobDetailsDefaultResponse - extends HttpResponse { +export interface TillageDataGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & TillageDataGetCascadeDeleteJobDetailsDefaultHeaders; @@ -3534,8 +3375,7 @@ export interface WeatherListDefaultResponse extends HttpResponse { } /** Get weather data delete job. */ -export interface WeatherGetDataDeleteJobDetails200Response - extends HttpResponse { +export interface WeatherGetDataDeleteJobDetails200Response extends HttpResponse { status: "200"; body: WeatherDataDeleteJobOutput; } @@ -3545,8 +3385,7 @@ export interface WeatherGetDataDeleteJobDetailsDefaultHeaders { } /** Get weather data delete job. */ -export interface WeatherGetDataDeleteJobDetailsDefaultResponse - extends HttpResponse { +export interface WeatherGetDataDeleteJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & WeatherGetDataDeleteJobDetailsDefaultHeaders; @@ -3563,16 +3402,14 @@ export interface WeatherCreateDataDeleteJobDefaultHeaders { } /** Create a weather data delete job. */ -export interface WeatherCreateDataDeleteJobDefaultResponse - extends HttpResponse { +export interface WeatherCreateDataDeleteJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & WeatherCreateDataDeleteJobDefaultHeaders; } /** Get weather ingestion job. */ -export interface WeatherGetDataIngestionJobDetails200Response - extends HttpResponse { +export interface WeatherGetDataIngestionJobDetails200Response extends HttpResponse { status: "200"; body: WeatherDataIngestionJobOutput; } @@ -3582,8 +3419,7 @@ export interface WeatherGetDataIngestionJobDetailsDefaultHeaders { } /** Get weather ingestion job. */ -export interface WeatherGetDataIngestionJobDetailsDefaultResponse - extends HttpResponse { +export interface WeatherGetDataIngestionJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & WeatherGetDataIngestionJobDetailsDefaultHeaders; @@ -3600,8 +3436,7 @@ export interface WeatherCreateDataIngestionJobDefaultHeaders { } /** Create a weather data ingestion job. */ -export interface WeatherCreateDataIngestionJobDefaultResponse - extends HttpResponse { +export interface WeatherCreateDataIngestionJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & WeatherCreateDataIngestionJobDefaultHeaders; @@ -3723,8 +3558,7 @@ export interface ZonesListDefaultResponse extends HttpResponse { } /** Get a cascade delete job for specified job id. */ -export interface ZonesGetCascadeDeleteJobDetails200Response - extends HttpResponse { +export interface ZonesGetCascadeDeleteJobDetails200Response extends HttpResponse { status: "200"; body: CascadeDeleteJobOutput; } @@ -3734,8 +3568,7 @@ export interface ZonesGetCascadeDeleteJobDetailsDefaultHeaders { } /** Get a cascade delete job for specified job id. */ -export interface ZonesGetCascadeDeleteJobDetailsDefaultResponse - extends HttpResponse { +export interface ZonesGetCascadeDeleteJobDetailsDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ZonesGetCascadeDeleteJobDetailsDefaultHeaders; @@ -3752,8 +3585,7 @@ export interface ZonesCreateCascadeDeleteJobDefaultHeaders { } /** Create a cascade delete job for specified zone. */ -export interface ZonesCreateCascadeDeleteJobDefaultResponse - extends HttpResponse { +export interface ZonesCreateCascadeDeleteJobDefaultResponse extends HttpResponse { status: string; body: ErrorResponseOutput; headers: RawHttpHeaders & ZonesCreateCascadeDeleteJobDefaultHeaders; diff --git a/sdk/agrifood/agrifood-farming-rest/src/serializeHelper.ts b/sdk/agrifood/agrifood-farming-rest/src/serializeHelper.ts index 951b4a54e913..4a0a83f7ce0e 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/serializeHelper.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/serializeHelper.ts @@ -1,10 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export function buildMultiCollection( - items: string[], - parameterName: string, -): string { +export function buildMultiCollection(items: string[], parameterName: string): string { return items .map((item, index) => { if (index === 0) { diff --git a/sdk/agrifood/agrifood-farming-rest/test/public/utils/recordedClient.ts b/sdk/agrifood/agrifood-farming-rest/test/public/utils/recordedClient.ts index 710fd83e4329..61d4c4c83243 100644 --- a/sdk/agrifood/agrifood-farming-rest/test/public/utils/recordedClient.ts +++ b/sdk/agrifood/agrifood-farming-rest/test/public/utils/recordedClient.ts @@ -18,6 +18,10 @@ const envSetupForPlayback: Record = { const recorderEnvSetup: RecorderStartOptions = { envSetupForPlayback, + removeCentralSanitizers: [ + "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section + "AZSDK2030", // .operation-location is not a secret and is listed below in the beforeEach section + ], }; /** From d3d23d020a7af778490de29e4ad598bdb3b91050 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 23 Aug 2024 15:52:07 +0800 Subject: [PATCH 11/16] Update CHANGELOG.md --- sdk/agrifood/agrifood-farming-rest/CHANGELOG.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md b/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md index 8f40fb098c93..ca0bb14692c7 100644 --- a/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md +++ b/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md @@ -1,14 +1,9 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.3 (2024-08-23) ### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +- Refresh @azure-rest/agrifood-farming SDK ## 1.0.0-beta.2 (2023-02-24) From 5de1a138c663dca174f821063b33623ef19a7834 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Wed, 13 Nov 2024 14:26:35 +0800 Subject: [PATCH 12/16] update --- .../agrifood-farming-rest/package.json | 3 +- .../review/agrifood-farming.api.md | 39 +++-- .../agrifood-farming-rest/src/farmBeats.ts | 2 +- .../agrifood-farming-rest/src/logger.ts | 3 - .../src/paginateHelper.ts | 146 +++++++++++++++++- .../src/pollingHelper.ts | 5 +- .../agrifood-farming-rest/swagger/README.md | 2 +- 7 files changed, 171 insertions(+), 29 deletions(-) diff --git a/sdk/agrifood/agrifood-farming-rest/package.json b/sdk/agrifood/agrifood-farming-rest/package.json index dbed882e68c2..6111bec3a0c1 100644 --- a/sdk/agrifood/agrifood-farming-rest/package.json +++ b/sdk/agrifood/agrifood-farming-rest/package.json @@ -84,8 +84,7 @@ "dependencies": { "@azure-rest/core-client": "^1.0.0", "@azure/core-auth": "^1.3.0", - "@azure/core-lro": "^3.0.0", - "@azure/core-paging": "^1.5.0", + "@azure/core-lro": "^3.1.0", "@azure/logger": "^1.0.0", "tslib": "^2.2.0", "@azure/abort-controller": "^2.1.2" diff --git a/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md b/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md index 3c3c9b01fda5..f437375a2dfe 100644 --- a/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md +++ b/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md @@ -4,19 +4,18 @@ ```ts -import type { AbortSignalLike } from '@azure/abort-controller'; -import type { CancelOnProgress } from '@azure/core-lro'; -import type { Client } from '@azure-rest/core-client'; -import type { ClientOptions } from '@azure-rest/core-client'; -import type { CreateHttpPollerOptions } from '@azure/core-lro'; -import type { HttpResponse } from '@azure-rest/core-client'; -import type { OperationState } from '@azure/core-lro'; -import type { PagedAsyncIterableIterator } from '@azure/core-paging'; -import type { PathUncheckedResponse } from '@azure-rest/core-client'; -import type { RawHttpHeaders } from '@azure/core-rest-pipeline'; -import type { RequestParameters } from '@azure-rest/core-client'; -import type { StreamableMethod } from '@azure-rest/core-client'; -import type { TokenCredential } from '@azure/core-auth'; +import { AbortSignalLike } from '@azure/abort-controller'; +import { CancelOnProgress } from '@azure/core-lro'; +import { Client } from '@azure-rest/core-client'; +import { ClientOptions } from '@azure-rest/core-client'; +import { CreateHttpPollerOptions } from '@azure/core-lro'; +import { HttpResponse } from '@azure-rest/core-client'; +import { OperationState } from '@azure/core-lro'; +import { PathUncheckedResponse } from '@azure-rest/core-client'; +import { RawHttpHeaders } from '@azure/core-rest-pipeline'; +import { RequestParameters } from '@azure-rest/core-client'; +import { StreamableMethod } from '@azure-rest/core-client'; +import { TokenCredential } from '@azure/core-auth'; // @public export interface AdditionalProviderParameters { @@ -2798,7 +2797,7 @@ export type GetArrayType = T extends Array ? TData : never; export function getLongRunningPoller(client: Client, initialResponse: TResult, options?: CreateHttpPollerOptions>): Promise, TResult>>; // @public -export type GetPage = (pageLink: string, maxPageSize?: number) => Promise<{ +export type GetPage = (pageLink: string) => Promise<{ page: TPage; nextPageLink?: string; }>; @@ -5778,6 +5777,18 @@ export interface OAuthTokensListQueryParamProperties { skipToken?: string; } +// @public +export interface PagedAsyncIterableIterator { + [Symbol.asyncIterator](): PagedAsyncIterableIterator; + byPage: (settings?: TPageSettings) => AsyncIterableIterator; + next(): Promise>; +} + +// @public +export interface PageSettings { + continuationToken?: string; +} + // @public export function paginate(client: Client, initialResponse: TResponse, options?: PagingOptions): PagedAsyncIterableIterator>; diff --git a/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts b/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts index 631c7fb90c30..00483499cd8f 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts @@ -3,9 +3,9 @@ import type { ClientOptions } from "@azure-rest/core-client"; import { getClient } from "@azure-rest/core-client"; +import { logger } from "./logger"; import type { TokenCredential } from "@azure/core-auth"; import type { FarmBeatsClient } from "./clientDefinitions"; -import { logger } from "./logger"; /** The optional parameters for the client */ export interface FarmBeatsClientOptions extends ClientOptions { diff --git a/sdk/agrifood/agrifood-farming-rest/src/logger.ts b/sdk/agrifood/agrifood-farming-rest/src/logger.ts index fe04cb635831..06368152a03f 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/logger.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/logger.ts @@ -1,8 +1,5 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - import { createClientLogger } from "@azure/logger"; export const logger = createClientLogger("agrifood-farming"); diff --git a/sdk/agrifood/agrifood-farming-rest/src/paginateHelper.ts b/sdk/agrifood/agrifood-farming-rest/src/paginateHelper.ts index 5d541b4e406d..9ea946d9d6c5 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/paginateHelper.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/paginateHelper.ts @@ -1,11 +1,148 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { PagedAsyncIterableIterator, PagedResult } from "@azure/core-paging"; -import { getPagedAsyncIterator } from "@azure/core-paging"; import type { Client, PathUncheckedResponse } from "@azure-rest/core-client"; import { createRestError } from "@azure-rest/core-client"; +/** + * returns an async iterator that iterates over results. It also has a `byPage` + * method that returns pages of items at once. + * + * @param pagedResult - an object that specifies how to get pages. + * @returns a paged async iterator that iterates over results. + */ +function getPagedAsyncIterator< + TElement, + TPage = TElement[], + TPageSettings = PageSettings, + TLink = string, +>( + pagedResult: PagedResult, +): PagedAsyncIterableIterator { + const iter = getItemAsyncIterator(pagedResult); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: + pagedResult?.byPage ?? + (((settings?: PageSettings) => { + const { continuationToken } = settings ?? {}; + return getPageAsyncIterator(pagedResult, { + pageLink: continuationToken as unknown as TLink | undefined, + }); + }) as unknown as (settings?: TPageSettings) => AsyncIterableIterator), + }; +} + +async function* getItemAsyncIterator( + pagedResult: PagedResult, +): AsyncIterableIterator { + const pages = getPageAsyncIterator(pagedResult); + const firstVal = await pages.next(); + // if the result does not have an array shape, i.e. TPage = TElement, then we return it as is + if (!Array.isArray(firstVal.value)) { + // can extract elements from this page + const { toElements } = pagedResult; + if (toElements) { + yield* toElements(firstVal.value) as TElement[]; + for await (const page of pages) { + yield* toElements(page) as TElement[]; + } + } else { + yield firstVal.value; + // `pages` is of type `AsyncIterableIterator` but TPage = TElement in this case + yield* pages as unknown as AsyncIterableIterator; + } + } else { + yield* firstVal.value; + for await (const page of pages) { + // pages is of type `AsyncIterableIterator` so `page` is of type `TPage`. In this branch, + // it must be the case that `TPage = TElement[]` + yield* page as unknown as TElement[]; + } + } +} + +async function* getPageAsyncIterator( + pagedResult: PagedResult, + options: { + pageLink?: TLink; + } = {}, +): AsyncIterableIterator { + const { pageLink } = options; + let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink); + if (!response) { + return; + } + yield response.page; + while (response.nextPageLink) { + response = await pagedResult.getPage(response.nextPageLink); + if (!response) { + return; + } + yield response.page; + } +} + +/** + * An interface that tracks the settings for paged iteration + */ +export interface PageSettings { + /** + * The token that keeps track of where to continue the iterator + */ + continuationToken?: string; +} + +/** + * An interface that allows async iterable iteration both to completion and by page. + */ +export interface PagedAsyncIterableIterator< + TElement, + TPage = TElement[], + TPageSettings = PageSettings, +> { + /** + * The next method, part of the iteration protocol + */ + next(): Promise>; + /** + * The connection to the async iterator, part of the iteration protocol + */ + [Symbol.asyncIterator](): PagedAsyncIterableIterator; + /** + * Return an AsyncIterableIterator that works a page at a time + */ + byPage: (settings?: TPageSettings) => AsyncIterableIterator; +} + +/** + * An interface that describes how to communicate with the service. + */ +interface PagedResult { + /** + * Link to the first page of results. + */ + firstPageLink: TLink; + /** + * A method that returns a page of results. + */ + getPage: (pageLink: TLink) => Promise<{ page: TPage; nextPageLink?: TLink } | undefined>; + /** + * a function to implement the `byPage` method on the paged async iterator. + */ + byPage?: (settings?: TPageSettings) => AsyncIterableIterator; + + /** + * A function to extract elements from a page. + */ + toElements?: (page: TPage) => unknown[]; +} + /** * Helper type to extract the type of an array */ @@ -14,10 +151,7 @@ export type GetArrayType = T extends Array ? TData : never; /** * The type of a custom function that defines how to get a page and a link to the next one if any. */ -export type GetPage = ( - pageLink: string, - maxPageSize?: number, -) => Promise<{ +export type GetPage = (pageLink: string) => Promise<{ page: TPage; nextPageLink?: string; }>; diff --git a/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts b/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts index a2668fc5d9c7..75a3d3db6e98 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts @@ -8,9 +8,10 @@ import type { CreateHttpPollerOptions, RunningOperation, OperationResponse, - OperationState, + OperationState} from "@azure/core-lro"; +import { + createHttpPoller, } from "@azure/core-lro"; -import { createHttpPoller } from "@azure/core-lro"; /** * A simple poller that can be used to poll a long running operation. diff --git a/sdk/agrifood/agrifood-farming-rest/swagger/README.md b/sdk/agrifood/agrifood-farming-rest/swagger/README.md index 8f74fc0eaa6e..427e54aad469 100644 --- a/sdk/agrifood/agrifood-farming-rest/swagger/README.md +++ b/sdk/agrifood/agrifood-farming-rest/swagger/README.md @@ -13,7 +13,7 @@ title: FarmBeats description: Azure FarmBeats Service generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION -output-folder: $(typescript-sdks-folder)/sdk/agrifood/agrifood-farming-rest +output-folder: ../ source-code-folder-path: ./src input-file: https://github.com/Azure/azure-rest-api-specs/blob/e38daec67d57ef9c4804b1e3055753407e45fa71/specification/agrifood/data-plane/Microsoft.AgFoodPlatform/preview/2022-11-01-preview/agfood.json package-version: 1.0.0-beta.3 From 7070383174380d3e90915276b01e7cf13fd40de4 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Wed, 13 Nov 2024 14:44:19 +0800 Subject: [PATCH 13/16] update --- .../review/agrifood-farming.api.md | 24 +++++++++---------- .../src/pollingHelper.ts | 5 ++-- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md b/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md index f437375a2dfe..808407cd69a2 100644 --- a/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md +++ b/sdk/agrifood/agrifood-farming-rest/review/agrifood-farming.api.md @@ -4,18 +4,18 @@ ```ts -import { AbortSignalLike } from '@azure/abort-controller'; -import { CancelOnProgress } from '@azure/core-lro'; -import { Client } from '@azure-rest/core-client'; -import { ClientOptions } from '@azure-rest/core-client'; -import { CreateHttpPollerOptions } from '@azure/core-lro'; -import { HttpResponse } from '@azure-rest/core-client'; -import { OperationState } from '@azure/core-lro'; -import { PathUncheckedResponse } from '@azure-rest/core-client'; -import { RawHttpHeaders } from '@azure/core-rest-pipeline'; -import { RequestParameters } from '@azure-rest/core-client'; -import { StreamableMethod } from '@azure-rest/core-client'; -import { TokenCredential } from '@azure/core-auth'; +import type { AbortSignalLike } from '@azure/abort-controller'; +import type { CancelOnProgress } from '@azure/core-lro'; +import type { Client } from '@azure-rest/core-client'; +import type { ClientOptions } from '@azure-rest/core-client'; +import type { CreateHttpPollerOptions } from '@azure/core-lro'; +import type { HttpResponse } from '@azure-rest/core-client'; +import type { OperationState } from '@azure/core-lro'; +import type { PathUncheckedResponse } from '@azure-rest/core-client'; +import type { RawHttpHeaders } from '@azure/core-rest-pipeline'; +import type { RequestParameters } from '@azure-rest/core-client'; +import type { StreamableMethod } from '@azure-rest/core-client'; +import type { TokenCredential } from '@azure/core-auth'; // @public export interface AdditionalProviderParameters { diff --git a/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts b/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts index 75a3d3db6e98..a2668fc5d9c7 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts @@ -8,10 +8,9 @@ import type { CreateHttpPollerOptions, RunningOperation, OperationResponse, - OperationState} from "@azure/core-lro"; -import { - createHttpPoller, + OperationState, } from "@azure/core-lro"; +import { createHttpPoller } from "@azure/core-lro"; /** * A simple poller that can be used to poll a long running operation. From 9652c755acb51d03b62be923ddbf26f948e7f7bf Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Mon, 16 Dec 2024 10:48:28 +0800 Subject: [PATCH 14/16] Update farmBeats.ts --- sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts b/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts index a3d1389deece..0ec380ab30fb 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts @@ -3,7 +3,7 @@ import type { ClientOptions } from "@azure-rest/core-client"; import { getClient } from "@azure-rest/core-client"; -import { logger } from "./logger"; +import { logger } from "./logger.js"; import type { TokenCredential } from "@azure/core-auth"; import type { FarmBeatsClient } from "./clientDefinitions.js"; @@ -52,9 +52,8 @@ export default function createClient( // Append one if there is no apiVersion and we have one at client options const url = new URL(req.url); if (!url.searchParams.get("api-version") && apiVersion) { - req.url = `${req.url}${ - Array.from(url.searchParams.keys()).length > 0 ? "&" : "?" - }api-version=${apiVersion}`; + req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?" + }api-version=${apiVersion}`; } return next(req); From 1d182b371669295f6c3e88cce030d9628d8dbae5 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:19:39 +0800 Subject: [PATCH 15/16] format --- sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts b/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts index 0ec380ab30fb..b62b52c513db 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts @@ -52,8 +52,9 @@ export default function createClient( // Append one if there is no apiVersion and we have one at client options const url = new URL(req.url); if (!url.searchParams.get("api-version") && apiVersion) { - req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?" - }api-version=${apiVersion}`; + req.url = `${req.url}${ + Array.from(url.searchParams.keys()).length > 0 ? "&" : "?" + }api-version=${apiVersion}`; } return next(req); From 31cf66c05da3c0ddb4959737d1b29b6906a45399 Mon Sep 17 00:00:00 2001 From: ZiWei Chen <98569699+kazrael2119@users.noreply.github.com> Date: Mon, 16 Dec 2024 13:56:13 +0800 Subject: [PATCH 16/16] Update sdk/agrifood/agrifood-farming-rest/CHANGELOG.md --- sdk/agrifood/agrifood-farming-rest/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md b/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md index ca0bb14692c7..58d42accfe08 100644 --- a/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md +++ b/sdk/agrifood/agrifood-farming-rest/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.0.0-beta.3 (2024-08-23) +## 1.0.0-beta.3 (2024-12-16) ### Features Added - Refresh @azure-rest/agrifood-farming SDK