@azure/digital-twins-core 1.1.0-alpha.20220627.2 → 1.1.0-alpha.20220719.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -10
- package/dist/index.js.map +1 -1
- package/dist-esm/src/digitalTwinsClient.js +3 -7
- package/dist-esm/src/digitalTwinsClient.js.map +1 -1
- package/dist-esm/src/generated/azureDigitalTwinsAPIContext.js +1 -1
- package/dist-esm/src/generated/azureDigitalTwinsAPIContext.js.map +1 -1
- package/dist-esm/src/generated/models/parameters.js +1 -1
- package/dist-esm/src/generated/models/parameters.js.map +1 -1
- package/package.json +1 -1
- package/types/digital-twins-core.d.ts +1 -5
|
@@ -6,7 +6,7 @@ import { bearerTokenAuthenticationPolicy, createPipelineFromOptions, generateUui
|
|
|
6
6
|
import { AzureDigitalTwinsAPI as GeneratedClient } from "./generated/azureDigitalTwinsAPI";
|
|
7
7
|
import { tracingClient } from "./tracing";
|
|
8
8
|
import { logger } from "./logger";
|
|
9
|
-
|
|
9
|
+
export const SDK_VERSION = "1.1.0";
|
|
10
10
|
const DEFAULT_DIGITALTWINS_SCOPE = "https://digitaltwins.azure.net/.default";
|
|
11
11
|
/**
|
|
12
12
|
* Client for Azure IoT DigitalTwins API.
|
|
@@ -29,10 +29,6 @@ export class DigitalTwinsClient {
|
|
|
29
29
|
* @param options - Used to configure the service client.
|
|
30
30
|
*/
|
|
31
31
|
constructor(endpointUrl, credential, options = {}) {
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated Please use {@link DigitalTwinsClient.decommissionModel} instead.
|
|
34
|
-
*/
|
|
35
|
-
this.decomissionModel = this.decommissionModel;
|
|
36
32
|
const authPolicy = bearerTokenAuthenticationPolicy(credential, DEFAULT_DIGITALTWINS_SCOPE);
|
|
37
33
|
const libInfo = `azsdk-js-digital-twins-core/${SDK_VERSION}`;
|
|
38
34
|
const { apiVersion } = options, pipelineOptions = __rest(options, ["apiVersion"]);
|
|
@@ -484,9 +480,9 @@ export class DigitalTwinsClient {
|
|
|
484
480
|
* @returns The http response.
|
|
485
481
|
*
|
|
486
482
|
*/
|
|
487
|
-
|
|
483
|
+
decomissionModel(modelId, options = {}) {
|
|
488
484
|
const jsonPatch = [{ op: "replace", path: "/decommissioned", value: true }];
|
|
489
|
-
return tracingClient.withSpan("DigitalTwinsClient.
|
|
485
|
+
return tracingClient.withSpan("DigitalTwinsClient.decomissionModel", options, async (updatedOptions) => {
|
|
490
486
|
return this.client.digitalTwinModels.update(modelId, jsonPatch, updatedOptions);
|
|
491
487
|
});
|
|
492
488
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"digitalTwinsClient.js","sourceRoot":"","sources":["../../src/digitalTwinsClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,4CAA4C;AAE5C,OAAO,EAKL,+BAA+B,EAC/B,yBAAyB,EACzB,YAAY,GAEb,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,oBAAoB,IAAI,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAsC3F,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAS1C,MAAM,0BAA0B,GAAG,yCAAyC,CAAC;AAE7E;;GAEG;AACH,MAAM,OAAO,kBAAkB;IAM7B;;;;;;;;;;;;;;;OAeG;IACH,YACE,WAAmB,EACnB,UAA2B,EAC3B,UAAqC,EAAE;QA+pBzC;;WAEG;QACI,qBAAgB,GAAG,IAAI,CAAC,iBAAiB,CAAC;QAhqB/C,MAAM,UAAU,GAAG,+BAA+B,CAAC,UAAU,EAAE,0BAA0B,CAAC,CAAC;QAC3F,MAAM,OAAO,GAAG,+BAA+B,WAAW,EAAE,CAAC;QAE7D,MAAM,EAAE,UAAU,KAAyB,OAAO,EAA3B,eAA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AAA,KAAA,cAAA,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAA,IAAA;oBAApD,MAAM,IAAI,WAAA,CAAA;oBACnB,IAAI,IAAI,CAAC,KAAK,EAAE;wBACd,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE;4BAC7B,oBAAM,IAAI,CAAA,CAAC;yBACZ;qBACF;iBACF;;;;;;;;;QACH,CAAC;KAAA;IAED;;;;;;OAMG;IACI,UAAU,CACf,KAAa,EACb,cAAuB,EACvB,UAA2C,EAAE;QAE7C,IAAI,6BAA6B,GAAkC,OAAO,CAAC;QAC3E,6BAA6B,GAAG;YAC9B,eAAe,EAAE,cAAc;SAChC,CAAC;QAEF,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,6BAA6B,CAAC,CAAC;QAEtE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,WAAyB,EAAE,EAAE,EAAE,CACtC,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,6BAA6B,EAAE,QAAQ,CAAC;SACtE,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/// <reference lib=\"esnext.asynciterable\" />\n\nimport {\n TokenCredential,\n RestResponse,\n OperationOptions,\n InternalPipelineOptions,\n bearerTokenAuthenticationPolicy,\n createPipelineFromOptions,\n generateUuid,\n PipelineOptions,\n} from \"@azure/core-http\";\nimport { PageSettings, PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { AzureDigitalTwinsAPI as GeneratedClient } from \"./generated/azureDigitalTwinsAPI\";\nimport {\n DigitalTwinsGetByIdResponse,\n DigitalTwinsAddOptionalParams,\n DigitalTwinsAddResponse,\n DigitalTwinsUpdateOptionalParams,\n DigitalTwinsUpdateResponse,\n DigitalTwinsDeleteOptionalParams,\n DigitalTwinsGetComponentResponse,\n DigitalTwinsUpdateComponentResponse,\n DigitalTwinsUpdateComponentOptionalParams,\n DigitalTwinsAddRelationshipResponse,\n DigitalTwinsAddRelationshipOptionalParams,\n DigitalTwinsUpdateRelationshipOptionalParams,\n DigitalTwinsUpdateRelationshipResponse,\n DigitalTwinsDeleteRelationshipOptionalParams,\n DigitalTwinsSendTelemetryOptionalParams,\n DigitalTwinsSendComponentTelemetryOptionalParams,\n DigitalTwinsListRelationshipsResponse,\n IncomingRelationship,\n DigitalTwinsListIncomingRelationshipsResponse,\n DigitalTwinsGetRelationshipByIdResponse,\n DigitalTwinsModelData,\n DigitalTwinModelsGetByIdResponse,\n DigitalTwinModelsGetByIdOptionalParams,\n DigitalTwinModelsAddResponse,\n DigitalTwinModelsAddOptionalParams,\n DigitalTwinModelsListResponse,\n DigitalTwinModelsListOptionalParams,\n EventRoutesGetByIdResponse,\n EventRoute,\n EventRoutesAddOptionalParams,\n EventRoutesListNextResponse,\n EventRoutesListOptionalParams,\n QueryQueryTwinsOptionalParams,\n QueryQueryTwinsResponse,\n QuerySpecification,\n} from \"./generated/models\";\nimport { tracingClient } from \"./tracing\";\nimport { logger } from \"./logger\";\nimport { SDK_VERSION } from \"./constants\";\n\nexport interface DigitalTwinsClientOptions extends PipelineOptions {\n /**\n * Api Version\n */\n apiVersion?: string;\n}\n\nconst DEFAULT_DIGITALTWINS_SCOPE = \"https://digitaltwins.azure.net/.default\";\n\n/**\n * Client for Azure IoT DigitalTwins API.\n */\nexport class DigitalTwinsClient {\n /**\n * A reference to the auto-generated AzureDigitalTwinsAPI\n */\n private readonly client: GeneratedClient;\n\n /**\n * Creates an instance of AzureDigitalTwinsAPI.\n *\n * Example usage:\n * ```ts\n * const { DigitalTwinsClient, ServiceClientCredentials } = require(\"@azure/digital-twins-core\");\n *\n * const client = new DigitalTwinsClient(\n * \"<endpoint>\",\n * new DefaultAzureCredential();\n * );\n * ```\n * @param endpointUrl - The endpoint URL of the service.\n * @param credential - Used to authenticate requests to the service.\n * @param options - Used to configure the service client.\n */\n constructor(\n endpointUrl: string,\n credential: TokenCredential,\n options: DigitalTwinsClientOptions = {}\n ) {\n const authPolicy = bearerTokenAuthenticationPolicy(credential, DEFAULT_DIGITALTWINS_SCOPE);\n const libInfo = `azsdk-js-digital-twins-core/${SDK_VERSION}`;\n\n const { apiVersion, ...pipelineOptions } = options;\n if (!pipelineOptions.userAgentOptions) {\n pipelineOptions.userAgentOptions = {};\n }\n if (pipelineOptions.userAgentOptions.userAgentPrefix) {\n pipelineOptions.userAgentOptions.userAgentPrefix = `${pipelineOptions.userAgentOptions.userAgentPrefix} ${libInfo}`;\n } else {\n pipelineOptions.userAgentOptions.userAgentPrefix = libInfo;\n }\n\n const internalPipelineOptions: InternalPipelineOptions = {\n ...pipelineOptions,\n ...{\n loggingOptions: {\n logger: logger.info,\n allowedHeaderNames: [\"x-ms-request-id\"],\n },\n },\n };\n\n const pipeline = createPipelineFromOptions(internalPipelineOptions, authPolicy);\n\n this.client = new GeneratedClient({\n endpoint: endpointUrl,\n apiVersion,\n ...pipeline,\n });\n }\n\n /**\n * Get a digital twin\n *\n * @param digitalTwinId - The Id of the digital twin.\n * @param options - The operation options\n * @returns The application/json digital twin and the http response.\n */\n public getDigitalTwin(\n digitalTwinId: string,\n options: OperationOptions = {}\n ): Promise<DigitalTwinsGetByIdResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.getDigitalTwin\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwins.getById(digitalTwinId, updatedOptions);\n }\n );\n }\n\n /**\n * Create or update a digital twin\n *\n * @param digitalTwinId - The Id of the digital twin to create or update.\n * @param digitalTwinJson - The application/json digital twin to create.\n * @param options - Extended operation options including\n * ifNoneMatch: Only perform the operation if the entity does not already exist.\n * @returns The created application/json digital twin and the http response.\n */\n public upsertDigitalTwin(\n digitalTwinId: string,\n digitalTwinJson: string,\n options: DigitalTwinsAddOptionalParams = {}\n ): Promise<DigitalTwinsAddResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.upsertDigitalTwin\",\n options,\n async (updatedOptions) => {\n const payload = JSON.parse(digitalTwinJson);\n return this.client.digitalTwins.add(digitalTwinId, payload, updatedOptions);\n }\n );\n }\n\n /**\n * Update a digital twin using a json patch.\n *\n * @param digitalTwinId - The Id of the digital twin.\n * @param jsonPatch - An update specification described by JSON Patch. Updates to property values\n * and $model elements may happen in the same request. Operations are limited to add, replace and\n * remove.\n * @param options - Extended operation options including\n * ifMatch: Only perform the operation if the entity's etag matches one of the etags provided or * is provided.\n * @returns The http response.\n */\n public updateDigitalTwin(\n digitalTwinId: string,\n // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types -- changing the type any would be a breaking change\n jsonPatch: any,\n options: DigitalTwinsUpdateOptionalParams = {}\n ): Promise<DigitalTwinsUpdateResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.updateDigitalTwin\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwins.update(digitalTwinId, jsonPatch, updatedOptions);\n }\n );\n }\n\n /**\n * Delete a digital twin\n *\n * @param digitalTwinId - The Id of the digital twin to delete.\n * @param options - Extended operation options including\n * ifMatch: Only perform the operation if the entity's etag matches one of the etags provided or * is provided.\n * @returns The http response.\n */\n public deleteDigitalTwin(\n digitalTwinId: string,\n options: DigitalTwinsDeleteOptionalParams = {}\n ): Promise<RestResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.deleteDigitalTwin\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwins.delete(digitalTwinId, updatedOptions);\n }\n );\n }\n\n /**\n * Get a component on a digital twin.\n *\n * @param digitalTwinId - The Id of the digital twin.\n * @param componentName - The component being retrieved.\n * @param options - The operation options\n * @returns Json string representation of the component corresponding to the provided componentName and the HTTP response.\n */\n public getComponent(\n digitalTwinId: string,\n componentName: string,\n options: OperationOptions = {}\n ): Promise<DigitalTwinsGetComponentResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.getComponent\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwins.getComponent(digitalTwinId, componentName, updatedOptions);\n }\n );\n }\n\n /**\n * Update properties of a component on a digital twin using a JSON patch.\n *\n * @param digitalTwinId - The Id of the digital twin.\n * @param componentName - The component being updated.\n * @param jsonPatch - The application/json-patch+json operations to be performed on the specified digital twin's component.\n * @param enableUpdate - If true then update of an existing digital twin is enabled.\n * @param options - Extended operation options including\n * ifMatch: Only perform the operation if the entity's etag matches one of the etags provided or * is provided.\n * @returns The http response.\n */\n public updateComponent(\n digitalTwinId: string,\n componentName: string,\n jsonPatch: any[],\n options: DigitalTwinsUpdateComponentOptionalParams = {}\n ): Promise<DigitalTwinsUpdateComponentResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.updateComponent\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwins.updateComponent(\n digitalTwinId,\n componentName,\n jsonPatch,\n updatedOptions\n );\n }\n );\n }\n\n /**\n * Get a relationship on a digital twin.\n *\n * @param digitalTwinId - The Id of the source digital twin.\n * @param relationshipId - The Id of the relationship to retrieve.\n * @param options - The operation options\n * @returns The pageable list of application/json relationships belonging to the specified digital twin and the http response.\n */\n public getRelationship(\n digitalTwinId: string,\n relationshipId: string,\n options: OperationOptions = {}\n ): Promise<DigitalTwinsGetRelationshipByIdResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.getRelationship\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwins.getRelationshipById(\n digitalTwinId,\n relationshipId,\n updatedOptions\n );\n }\n );\n }\n\n /**\n * Create or update a relationship on a digital twin.\n *\n * @param digitalTwinId - The Id of the source digital twin.\n * @param relationshipId - The Id of the relationship to create.\n * @param relationship - The application/json relationship to be created.\n * @param options - Extended operation options including\n * ifNoneMatch: Only perform the operation if the entity does not already exist.\n */\n public upsertRelationship(\n digitalTwinId: string,\n relationshipId: string,\n // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types -- changing the type any would be a breaking change\n relationship: any,\n options: DigitalTwinsAddRelationshipOptionalParams = {}\n ): Promise<DigitalTwinsAddRelationshipResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.upsertRelationship\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwins.addRelationship(\n digitalTwinId,\n relationshipId,\n relationship,\n updatedOptions\n );\n }\n );\n }\n\n /**\n * Updates the properties of a relationship on a digital twin using a JSON patch.\n *\n * @param digitalTwinId - The Id of the digital twin to delete.\n * @param relationshipId - The Id of the relationship to be updated.\n * @param jsonPatch - The application/json-patch+json operations to be performed on the specified digital twin's relationship.\n * @param options - Extended operation options\n * ifMatch: Only perform the operation if the entity's etag matches one of the etags provided or * is provided.\n */\n public updateRelationship(\n digitalTwinId: string,\n relationshipId: string,\n jsonPatch: any[],\n options: DigitalTwinsUpdateRelationshipOptionalParams = {}\n ): Promise<DigitalTwinsUpdateRelationshipResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.updateRelationship\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwins.updateRelationship(\n digitalTwinId,\n relationshipId,\n jsonPatch,\n updatedOptions\n );\n }\n );\n }\n\n /**\n * Delete a relationship on a digital twin.\n *\n * @param digitalTwinId - The Id of the source digital twin.\n * @param relationshipId - The Id of the relationship to delete.\n * @param options - The operation options\n * ifMatch: Only perform the operation if the entity's etag matches one of the etags provided or * is\n * @returns The http response.\n */\n public deleteRelationship(\n digitalTwinId: string,\n relationshipId: string,\n options: DigitalTwinsDeleteRelationshipOptionalParams = {}\n ): Promise<RestResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.deleteRelationship\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwins.deleteRelationship(\n digitalTwinId,\n relationshipId,\n updatedOptions\n );\n }\n );\n }\n\n /**\n * Deals with the pagination of {@link listRelationships}.\n *\n * @param digitalTwinId - The Id of the digital twin.\n * @param options - Common options for the iterative endpoints.\n * @param continuationState - An object that indicates the position of the paginated request.\n *\n */\n private async *listRelationshipsPage(\n digitalTwinId: string,\n options: OperationOptions,\n continuationState: PageSettings\n ): AsyncIterableIterator<DigitalTwinsListRelationshipsResponse> {\n if (continuationState.continuationToken == null) {\n const optionsComplete: OperationOptions = {\n ...options,\n };\n const listRelationshipResponse = await this.client.digitalTwins.listRelationships(\n digitalTwinId,\n optionsComplete\n );\n continuationState.continuationToken = listRelationshipResponse.nextLink;\n yield listRelationshipResponse;\n }\n while (continuationState.continuationToken) {\n const listRelationshipResponse = await this.client.digitalTwins.listRelationshipsNext(\n \"\",\n continuationState.continuationToken,\n options\n );\n\n continuationState.continuationToken = listRelationshipResponse.nextLink;\n yield listRelationshipResponse;\n }\n }\n\n /**\n * Deals with the iteration of all the available results of {@link listRelationships}.\n * @param options - Common options for the iterative endpoints.\n */\n private async *listRelationshipsAll(\n digitalTwinId: string,\n options: OperationOptions\n ): AsyncIterableIterator<any> {\n for await (const page of this.listRelationshipsPage(digitalTwinId, options, {})) {\n const value = page.value || [];\n for (const item of value) {\n yield item;\n }\n }\n }\n\n /**\n * Retrieve relationships for a digital twin.\n *\n * @param digitalTwinId - The Id of the digital twin.\n */\n public listRelationships(\n digitalTwinId: string,\n options: OperationOptions & PageSettings = {}\n ): PagedAsyncIterableIterator<any, DigitalTwinsListRelationshipsResponse> {\n const iter = this.listRelationshipsAll(digitalTwinId, options);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) =>\n this.listRelationshipsPage(digitalTwinId, options, settings),\n };\n }\n\n /**\n * Deals with the pagination of {@link listIncomingRelationships}.\n *\n * @param digitalTwinId - The Id of the digital twin.\n * @param options - Common options for the iterative endpoints.\n * @param continuationState - An object that indicates the position of the paginated request.\n *\n */\n private async *listIncomingRelationshipsPage(\n digitalTwinId: string,\n options: OperationOptions,\n continuationState: PageSettings\n ): AsyncIterableIterator<DigitalTwinsListIncomingRelationshipsResponse> {\n if (continuationState.continuationToken == null) {\n const optionsComplete: OperationOptions = {\n ...options,\n };\n const listIncomingRelationshipsResponse =\n await this.client.digitalTwins.listIncomingRelationships(digitalTwinId, optionsComplete);\n continuationState.continuationToken = listIncomingRelationshipsResponse.nextLink;\n yield listIncomingRelationshipsResponse;\n }\n while (continuationState.continuationToken) {\n const listIncomingRelationshipsResponse =\n await this.client.digitalTwins.listIncomingRelationshipsNext(\n \"\",\n continuationState.continuationToken,\n options\n );\n\n continuationState.continuationToken = listIncomingRelationshipsResponse.nextLink;\n yield listIncomingRelationshipsResponse;\n }\n }\n\n /**\n * Deals with the iteration of all the available results of {@link listIncomingRelationships}.\n * @param digitalTwinId - The Id of the digital twin.\n * @param options - Common options for the iterative endpoints.\n */\n private async *listIncomingRelationshipsAll(\n digitalTwinId: string,\n options: OperationOptions\n ): AsyncIterableIterator<IncomingRelationship> {\n for await (const page of this.listIncomingRelationshipsPage(digitalTwinId, options, {})) {\n const value = page.value || [];\n yield* value;\n }\n }\n\n /**\n * Retrieve all incoming relationships for a digital twin.\n *\n * @param digitalTwinId - The Id of the digital twin.\n */\n public listIncomingRelationships(\n digitalTwinId: string,\n options: OperationOptions & PageSettings = {}\n ): PagedAsyncIterableIterator<\n IncomingRelationship,\n DigitalTwinsListIncomingRelationshipsResponse\n > {\n const iter = this.listIncomingRelationshipsAll(digitalTwinId, options);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) =>\n this.listIncomingRelationshipsPage(digitalTwinId, options, settings),\n };\n }\n\n /**\n * Publish telemetry from a digital twin, which is then consumed by one or many destination endpoints (subscribers) defined under.\n *\n * @param digitalTwinId - The Id of the digital twin to delete.\n * @param payload - The application/json telemetry payload to be sent.\n * @param messageId - The message Id.\n * @param options - The operation options\n * @returns The http response.\n */\n public publishTelemetry(\n digitalTwinId: string,\n // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types -- changing the type any would be a breaking change\n payload: any,\n messageId: string,\n options: OperationOptions = {}\n ): Promise<RestResponse> {\n const digitalTwinsSendTelemetryOptionalParams: DigitalTwinsSendTelemetryOptionalParams =\n options;\n digitalTwinsSendTelemetryOptionalParams.telemetrySourceTime = new Date().toISOString();\n if (!messageId) {\n messageId = generateUuid();\n }\n\n return tracingClient.withSpan(\n \"DigitalTwinsClient.publishTelemetry\",\n digitalTwinsSendTelemetryOptionalParams,\n async (updatedOptions) => {\n return this.client.digitalTwins.sendTelemetry(\n digitalTwinId,\n messageId,\n payload,\n updatedOptions\n );\n }\n );\n }\n\n /**\n * Publish telemetry from a digital twin's component, which is then consumed by one or many destination endpoints (subscribers) defined under.\n *\n * @param digitalTwinId - The Id of the digital twin to delete.\n * @param componentName - The name of the DTDL component.\n * @param payload - The application/json telemetry payload to be sent.\n * @param messageId - The message Id.\n * @param options - The operation options\n * @returns The http response.\n */\n public publishComponentTelemetry(\n digitalTwinId: string,\n componentName: string,\n payload: string,\n messageId: string,\n options: OperationOptions = {}\n ): Promise<RestResponse> {\n const digitalTwinsSendComponentTelemetryOptionalParams: DigitalTwinsSendComponentTelemetryOptionalParams =\n options;\n digitalTwinsSendComponentTelemetryOptionalParams.telemetrySourceTime = new Date().toISOString();\n if (!messageId) {\n messageId = generateUuid();\n }\n\n return tracingClient.withSpan(\n \"DigitalTwinsClient.publishComponentTelemetry\",\n digitalTwinsSendComponentTelemetryOptionalParams,\n async (updatedOptions) => {\n return this.client.digitalTwins.sendComponentTelemetry(\n digitalTwinId,\n componentName,\n payload,\n messageId,\n updatedOptions\n );\n }\n );\n }\n\n /**\n * Get a model, including the model metadata and the model definition.\n *\n * @param modelId - The Id of the model.\n * @param options - Extended operation options including\n * includeModelDefinition: When true the model definition will be returned as part of the result. Default value: false.\n * @returns The application/json model and the http response.\n */\n public getModel(\n modelId: string,\n includeModelDefinition: boolean = false,\n options: OperationOptions = {}\n ): Promise<DigitalTwinModelsGetByIdResponse> {\n const digitalTwinModelsGetByIdOptionalParams: DigitalTwinModelsGetByIdOptionalParams = options;\n digitalTwinModelsGetByIdOptionalParams.includeModelDefinition = includeModelDefinition;\n\n return tracingClient.withSpan(\n \"DigitalTwinsClient.getModel\",\n digitalTwinModelsGetByIdOptionalParams,\n async (updatedOptions) => {\n return this.client.digitalTwinModels.getById(modelId, updatedOptions);\n }\n );\n }\n\n /**\n * Deals with the pagination of {@link list}.\n *\n * @param options - Common options for the iterative endpoints.\n * @param continuationState - An object that indicates the position of the paginated request.\n *\n */\n private async *getModelsPage(\n options: DigitalTwinModelsListOptionalParams,\n continuationState: PageSettings\n ): AsyncIterableIterator<DigitalTwinModelsListResponse> {\n if (continuationState.continuationToken == null) {\n const optionsComplete: DigitalTwinModelsListOptionalParams = options;\n optionsComplete.maxItemsPerPage = continuationState.maxPageSize;\n\n const listResponse = await this.client.digitalTwinModels.list(optionsComplete);\n continuationState.continuationToken = listResponse.nextLink;\n yield listResponse;\n }\n while (continuationState.continuationToken) {\n const listResponse = await this.client.digitalTwinModels.listNext(\n continuationState.continuationToken,\n options\n );\n\n continuationState.continuationToken = listResponse.nextLink;\n yield listResponse;\n }\n }\n\n /**\n * Deals with the iteration of all the available results of {@link list}.\n * @param options - Common options for the iterative endpoints.\n */\n private async *getModelsAll(\n options: DigitalTwinModelsListOptionalParams\n ): AsyncIterableIterator<DigitalTwinsModelData> {\n const f = {};\n\n for await (const page of this.getModelsPage(options, f)) {\n const value = page.value || [];\n for (const item of value) {\n yield item;\n }\n }\n }\n\n /**\n * Get the list of models\n *\n * @param dependeciesFor - The model Ids to have dependencies retrieved. If omitted, all models are retrieved.\n * @param includeModelDefinition - Whether to include the model definition in the result. If false, only the model metadata will be returned.\n * @param resultsPerPage - The maximum number of items to retrieve per request. The server may choose to return less than the requested max.\n * @returns A pageable set of application/json models and the http response.\n */\n public listModels(\n dependeciesFor?: string[],\n includeModelDefinition: boolean = false,\n resultsPerPage?: number,\n options: OperationOptions & PageSettings = {}\n ): PagedAsyncIterableIterator<DigitalTwinsModelData, DigitalTwinModelsListResponse> {\n let digitalTwinModelsListOptionalParams: DigitalTwinModelsListOptionalParams = options;\n digitalTwinModelsListOptionalParams = {\n maxItemsPerPage: resultsPerPage,\n dependenciesFor: dependeciesFor,\n includeModelDefinition: includeModelDefinition,\n };\n\n const iter = this.getModelsAll(digitalTwinModelsListOptionalParams);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) =>\n this.getModelsPage(digitalTwinModelsListOptionalParams, settings),\n };\n }\n\n /**\n * Create one or many\n *\n * @param models - The set of models to create. Each string corresponds to exactly one model.\n * @param options - The operation options\n * @returns The created application/json models and the http response.\n */\n public createModels(\n dtdlModels: any[],\n options: OperationOptions = {}\n ): Promise<DigitalTwinModelsAddResponse> {\n const digitalTwinModelsAddOptionalParams: DigitalTwinModelsAddOptionalParams = options;\n digitalTwinModelsAddOptionalParams.models = dtdlModels;\n\n return tracingClient.withSpan(\n \"DigitalTwinsClient.createModels\",\n digitalTwinModelsAddOptionalParams,\n async (updatedOptions) => {\n return this.client.digitalTwinModels.add(updatedOptions);\n }\n );\n }\n\n /**\n * Decommission a model using a json patch.\n * When a model is decommissioned, new digital twins will no longer be able to be\n * defined by this model. However, existing digital twins may continue to use this model.\n * Once a model is decommissioned, it may not be recommissioned.\n *\n * @param modelId - The Id of the model to decommission.\n * property can be replaced.\n * @param options - The operation options\n * @returns The http response.\n *\n */\n public decommissionModel(modelId: string, options: OperationOptions = {}): Promise<RestResponse> {\n const jsonPatch = [{ op: \"replace\", path: \"/decommissioned\", value: true }];\n\n return tracingClient.withSpan(\n \"DigitalTwinsClient.decommissionModel\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwinModels.update(modelId, jsonPatch, updatedOptions);\n }\n );\n }\n\n /**\n * @deprecated Please use {@link DigitalTwinsClient.decommissionModel} instead.\n */\n public decomissionModel = this.decommissionModel;\n\n /**\n * Delete a model.\n *\n * @param modelId - The Id of the model to delete.\n * @param options - The operation options\n * @returns The http response.\n */\n public deleteModel(modelId: string, options: OperationOptions = {}): Promise<RestResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.deleteModel\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwinModels.delete(modelId, updatedOptions);\n }\n );\n }\n\n /**\n * Get an event route.\n *\n * @param modelId - The Id of the event route.\n * @param options - The operation options\n * @returns The application/json event route and the http response.\n */\n public getEventRoute(\n eventRouteId: string,\n options: OperationOptions = {}\n ): Promise<EventRoutesGetByIdResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.getEventRoute\",\n options,\n async (updatedOptions) => {\n return this.client.eventRoutes.getById(eventRouteId, updatedOptions);\n }\n );\n }\n\n /**\n * Deals with the pagination of {@link list}.\n *\n * @param options - Common options for the iterative endpoints.\n * @param continuationState - An object that indicates the position of the paginated request.\n *\n */\n private async *getEventRoutesPage(\n options: EventRoutesListOptionalParams,\n continuationState: PageSettings\n ): AsyncIterableIterator<EventRoutesListNextResponse> {\n if (continuationState.continuationToken == null) {\n const optionsComplete: EventRoutesListOptionalParams = options;\n optionsComplete.maxItemsPerPage = continuationState.maxPageSize;\n\n const listResponse = await this.client.eventRoutes.list(optionsComplete);\n continuationState.continuationToken = listResponse.nextLink;\n yield listResponse;\n }\n while (continuationState.continuationToken) {\n const listResponse = await this.client.eventRoutes.listNext(\n continuationState.continuationToken,\n options\n );\n\n continuationState.continuationToken = listResponse.nextLink;\n yield listResponse;\n }\n }\n\n /**\n * Deals with the iteration of all the available results of {@link list}.\n * @param options - Common options for the iterative endpoints.\n */\n private async *getEventRoutesAll(\n options: EventRoutesListOptionalParams\n ): AsyncIterableIterator<EventRoute> {\n const f = {};\n for await (const page of this.getEventRoutesPage(options, f)) {\n const value = page.value || [];\n for (const item of value) {\n yield item;\n }\n }\n }\n\n /**\n * List the event routes in a digital twins instance.\n *\n * @param resultsPerPage - The maximum number of items to retrieve per request. The server may choose to return less than\n * the requested max.\n * @returns The application/json event route and the http response.\n */\n public listEventRoutes(\n resultsPerPage?: number,\n options: OperationOptions & PageSettings = {}\n ): PagedAsyncIterableIterator<EventRoute, EventRoutesListNextResponse> {\n let eventRoutesListOptionalParams: EventRoutesListOptionalParams = options;\n eventRoutesListOptionalParams = {\n maxItemsPerPage: resultsPerPage,\n };\n\n const iter = this.getEventRoutesAll(eventRoutesListOptionalParams);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) =>\n this.getEventRoutesPage(eventRoutesListOptionalParams, settings),\n };\n }\n\n /**\n * Create or update an event route.\n *\n * @param eventRouteId - The Id of the event route to create or update.\n * @param endpointId - The id of the endpoint this event route is bound to.\n * @param filter - An expression which describes the events which are routed to the endpoint.\n * @param options - The operation options\n * @returns The http response.\n */\n public upsertEventRoute(\n eventRouteId: string,\n endpointId: string,\n filter: string,\n options: OperationOptions = {}\n ): Promise<RestResponse> {\n const eventRoutesAddOptionalParams: EventRoutesAddOptionalParams = options;\n const eventRoute: EventRoute = {\n endpointName: endpointId,\n filter: filter,\n };\n eventRoutesAddOptionalParams.eventRoute = eventRoute;\n\n return tracingClient.withSpan(\n \"DigitalTwinsClient.upsertEventRoute\",\n eventRoutesAddOptionalParams,\n async (updatedOptions) => {\n return this.client.eventRoutes.add(eventRouteId, updatedOptions);\n }\n );\n }\n\n /**\n * Delete an event route.\n *\n * @param eventRouteId - The Id of the eventRoute to delete.\n * @param options - The operation options\n * @returns The http response.\n */\n public deleteEventRoute(\n eventRouteId: string,\n options: OperationOptions = {}\n ): Promise<RestResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.deleteEventRoute\",\n options,\n async (updatedOptions) => {\n return this.client.eventRoutes.delete(eventRouteId, updatedOptions);\n }\n );\n }\n\n /**\n * Deals with the pagination of {@link query}.\n *\n * @param query - The query string, in SQL-like syntax.\n * @param options - Common options for the iterative endpoints.\n * @param continuationState - An object that indicates the position of the paginated request.\n *\n */\n private async *queryTwinsPage(\n query: string,\n options: QueryQueryTwinsOptionalParams,\n continuationState: PageSettings\n ): AsyncIterableIterator<QueryQueryTwinsResponse> {\n if (continuationState.continuationToken == null) {\n const querySpecification: QuerySpecification = {\n query: query,\n continuationToken: continuationState.continuationToken,\n };\n const queryResult = await this.client.query.queryTwins(querySpecification, options);\n continuationState.continuationToken = queryResult.continuationToken;\n yield queryResult;\n }\n while (continuationState.continuationToken) {\n const querySpecification: QuerySpecification = {\n query: query,\n continuationToken: continuationState.continuationToken,\n };\n const queryResult = await this.client.query.queryTwins(querySpecification, options);\n\n continuationState.continuationToken = queryResult.continuationToken;\n yield queryResult;\n }\n }\n\n /**\n * Deals with the iteration of all the available results of {@link query}.\n * @param query - The query string, in SQL-like syntax.\n * @param options - Common options for the iterative endpoints.\n */\n private async *queryTwinsAll(\n query: string,\n options: QueryQueryTwinsOptionalParams\n ): AsyncIterableIterator<any> {\n const f = {};\n\n for await (const page of this.queryTwinsPage(query, options, f)) {\n if (page.value) {\n for (const item of page.value) {\n yield item;\n }\n }\n }\n }\n\n /**\n * Query for digital twins.\n *\n * @param query - The query string, in SQL-like syntax.\n * @param resultsPerPage - The maximum number of items to retrieve per request. The server may choose to return less than the requested max.\n * @returns The pageable list of query results.\n */\n public queryTwins(\n query: string,\n resultsPerPage?: number,\n options: OperationOptions & PageSettings = {}\n ): PagedAsyncIterableIterator<any, QueryQueryTwinsResponse> {\n let queryQueryTwinsOptionalParams: QueryQueryTwinsOptionalParams = options;\n queryQueryTwinsOptionalParams = {\n maxItemsPerPage: resultsPerPage,\n };\n\n const iter = this.queryTwinsAll(query, queryQueryTwinsOptionalParams);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) =>\n this.queryTwinsPage(query, queryQueryTwinsOptionalParams, settings),\n };\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"digitalTwinsClient.js","sourceRoot":"","sources":["../../src/digitalTw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C,CAAC;QAEtE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,WAAyB,EAAE,EAAE,EAAE,CACtC,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,6BAA6B,EAAE,QAAQ,CAAC;SACtE,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/// <reference lib=\"esnext.asynciterable\" />\n\nimport {\n TokenCredential,\n RestResponse,\n OperationOptions,\n InternalPipelineOptions,\n bearerTokenAuthenticationPolicy,\n createPipelineFromOptions,\n generateUuid,\n PipelineOptions,\n} from \"@azure/core-http\";\nimport { PageSettings, PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { AzureDigitalTwinsAPI as GeneratedClient } from \"./generated/azureDigitalTwinsAPI\";\nimport {\n DigitalTwinsGetByIdResponse,\n DigitalTwinsAddOptionalParams,\n DigitalTwinsAddResponse,\n DigitalTwinsUpdateOptionalParams,\n DigitalTwinsUpdateResponse,\n DigitalTwinsDeleteOptionalParams,\n DigitalTwinsGetComponentResponse,\n DigitalTwinsUpdateComponentResponse,\n DigitalTwinsUpdateComponentOptionalParams,\n DigitalTwinsAddRelationshipResponse,\n DigitalTwinsAddRelationshipOptionalParams,\n DigitalTwinsUpdateRelationshipOptionalParams,\n DigitalTwinsUpdateRelationshipResponse,\n DigitalTwinsDeleteRelationshipOptionalParams,\n DigitalTwinsSendTelemetryOptionalParams,\n DigitalTwinsSendComponentTelemetryOptionalParams,\n DigitalTwinsListRelationshipsResponse,\n IncomingRelationship,\n DigitalTwinsListIncomingRelationshipsResponse,\n DigitalTwinsGetRelationshipByIdResponse,\n DigitalTwinsModelData,\n DigitalTwinModelsGetByIdResponse,\n DigitalTwinModelsGetByIdOptionalParams,\n DigitalTwinModelsAddResponse,\n DigitalTwinModelsAddOptionalParams,\n DigitalTwinModelsListResponse,\n DigitalTwinModelsListOptionalParams,\n EventRoutesGetByIdResponse,\n EventRoute,\n EventRoutesAddOptionalParams,\n EventRoutesListNextResponse,\n EventRoutesListOptionalParams,\n QueryQueryTwinsOptionalParams,\n QueryQueryTwinsResponse,\n QuerySpecification,\n} from \"./generated/models\";\nimport { tracingClient } from \"./tracing\";\nimport { logger } from \"./logger\";\n\nexport const SDK_VERSION: string = \"1.1.0\";\n\nexport interface DigitalTwinsClientOptions extends PipelineOptions {\n /**\n * Api Version\n */\n apiVersion?: string;\n}\n\nconst DEFAULT_DIGITALTWINS_SCOPE = \"https://digitaltwins.azure.net/.default\";\n\n/**\n * Client for Azure IoT DigitalTwins API.\n */\nexport class DigitalTwinsClient {\n /**\n * A reference to the auto-generated AzureDigitalTwinsAPI\n */\n private readonly client: GeneratedClient;\n\n /**\n * Creates an instance of AzureDigitalTwinsAPI.\n *\n * Example usage:\n * ```ts\n * const { DigitalTwinsClient, ServiceClientCredentials } = require(\"@azure/digital-twins-core\");\n *\n * const client = new DigitalTwinsClient(\n * \"<endpoint>\",\n * new DefaultAzureCredential();\n * );\n * ```\n * @param endpointUrl - The endpoint URL of the service.\n * @param credential - Used to authenticate requests to the service.\n * @param options - Used to configure the service client.\n */\n constructor(\n endpointUrl: string,\n credential: TokenCredential,\n options: DigitalTwinsClientOptions = {}\n ) {\n const authPolicy = bearerTokenAuthenticationPolicy(credential, DEFAULT_DIGITALTWINS_SCOPE);\n const libInfo = `azsdk-js-digital-twins-core/${SDK_VERSION}`;\n\n const { apiVersion, ...pipelineOptions } = options;\n if (!pipelineOptions.userAgentOptions) {\n pipelineOptions.userAgentOptions = {};\n }\n if (pipelineOptions.userAgentOptions.userAgentPrefix) {\n pipelineOptions.userAgentOptions.userAgentPrefix = `${pipelineOptions.userAgentOptions.userAgentPrefix} ${libInfo}`;\n } else {\n pipelineOptions.userAgentOptions.userAgentPrefix = libInfo;\n }\n\n const internalPipelineOptions: InternalPipelineOptions = {\n ...pipelineOptions,\n ...{\n loggingOptions: {\n logger: logger.info,\n allowedHeaderNames: [\"x-ms-request-id\"],\n },\n },\n };\n\n const pipeline = createPipelineFromOptions(internalPipelineOptions, authPolicy);\n\n this.client = new GeneratedClient({\n endpoint: endpointUrl,\n apiVersion,\n ...pipeline,\n });\n }\n\n /**\n * Get a digital twin\n *\n * @param digitalTwinId - The Id of the digital twin.\n * @param options - The operation options\n * @returns The application/json digital twin and the http response.\n */\n public getDigitalTwin(\n digitalTwinId: string,\n options: OperationOptions = {}\n ): Promise<DigitalTwinsGetByIdResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.getDigitalTwin\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwins.getById(digitalTwinId, updatedOptions);\n }\n );\n }\n\n /**\n * Create or update a digital twin\n *\n * @param digitalTwinId - The Id of the digital twin to create or update.\n * @param digitalTwinJson - The application/json digital twin to create.\n * @param options - Extended operation options including\n * ifNoneMatch: Only perform the operation if the entity does not already exist.\n * @returns The created application/json digital twin and the http response.\n */\n public upsertDigitalTwin(\n digitalTwinId: string,\n digitalTwinJson: string,\n options: DigitalTwinsAddOptionalParams = {}\n ): Promise<DigitalTwinsAddResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.upsertDigitalTwin\",\n options,\n async (updatedOptions) => {\n const payload = JSON.parse(digitalTwinJson);\n return this.client.digitalTwins.add(digitalTwinId, payload, updatedOptions);\n }\n );\n }\n\n /**\n * Update a digital twin using a json patch.\n *\n * @param digitalTwinId - The Id of the digital twin.\n * @param jsonPatch - An update specification described by JSON Patch. Updates to property values\n * and $model elements may happen in the same request. Operations are limited to add, replace and\n * remove.\n * @param options - Extended operation options including\n * ifMatch: Only perform the operation if the entity's etag matches one of the etags provided or * is provided.\n * @returns The http response.\n */\n public updateDigitalTwin(\n digitalTwinId: string,\n // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types -- changing the type any would be a breaking change\n jsonPatch: any,\n options: DigitalTwinsUpdateOptionalParams = {}\n ): Promise<DigitalTwinsUpdateResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.updateDigitalTwin\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwins.update(digitalTwinId, jsonPatch, updatedOptions);\n }\n );\n }\n\n /**\n * Delete a digital twin\n *\n * @param digitalTwinId - The Id of the digital twin to delete.\n * @param options - Extended operation options including\n * ifMatch: Only perform the operation if the entity's etag matches one of the etags provided or * is provided.\n * @returns The http response.\n */\n public deleteDigitalTwin(\n digitalTwinId: string,\n options: DigitalTwinsDeleteOptionalParams = {}\n ): Promise<RestResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.deleteDigitalTwin\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwins.delete(digitalTwinId, updatedOptions);\n }\n );\n }\n\n /**\n * Get a component on a digital twin.\n *\n * @param digitalTwinId - The Id of the digital twin.\n * @param componentName - The component being retrieved.\n * @param options - The operation options\n * @returns Json string representation of the component corresponding to the provided componentName and the HTTP response.\n */\n public getComponent(\n digitalTwinId: string,\n componentName: string,\n options: OperationOptions = {}\n ): Promise<DigitalTwinsGetComponentResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.getComponent\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwins.getComponent(digitalTwinId, componentName, updatedOptions);\n }\n );\n }\n\n /**\n * Update properties of a component on a digital twin using a JSON patch.\n *\n * @param digitalTwinId - The Id of the digital twin.\n * @param componentName - The component being updated.\n * @param jsonPatch - The application/json-patch+json operations to be performed on the specified digital twin's component.\n * @param enableUpdate - If true then update of an existing digital twin is enabled.\n * @param options - Extended operation options including\n * ifMatch: Only perform the operation if the entity's etag matches one of the etags provided or * is provided.\n * @returns The http response.\n */\n public updateComponent(\n digitalTwinId: string,\n componentName: string,\n jsonPatch: any[],\n options: DigitalTwinsUpdateComponentOptionalParams = {}\n ): Promise<DigitalTwinsUpdateComponentResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.updateComponent\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwins.updateComponent(\n digitalTwinId,\n componentName,\n jsonPatch,\n updatedOptions\n );\n }\n );\n }\n\n /**\n * Get a relationship on a digital twin.\n *\n * @param digitalTwinId - The Id of the source digital twin.\n * @param relationshipId - The Id of the relationship to retrieve.\n * @param options - The operation options\n * @returns The pageable list of application/json relationships belonging to the specified digital twin and the http response.\n */\n public getRelationship(\n digitalTwinId: string,\n relationshipId: string,\n options: OperationOptions = {}\n ): Promise<DigitalTwinsGetRelationshipByIdResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.getRelationship\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwins.getRelationshipById(\n digitalTwinId,\n relationshipId,\n updatedOptions\n );\n }\n );\n }\n\n /**\n * Create or update a relationship on a digital twin.\n *\n * @param digitalTwinId - The Id of the source digital twin.\n * @param relationshipId - The Id of the relationship to create.\n * @param relationship - The application/json relationship to be created.\n * @param options - Extended operation options including\n * ifNoneMatch: Only perform the operation if the entity does not already exist.\n */\n public upsertRelationship(\n digitalTwinId: string,\n relationshipId: string,\n // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types -- changing the type any would be a breaking change\n relationship: any,\n options: DigitalTwinsAddRelationshipOptionalParams = {}\n ): Promise<DigitalTwinsAddRelationshipResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.upsertRelationship\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwins.addRelationship(\n digitalTwinId,\n relationshipId,\n relationship,\n updatedOptions\n );\n }\n );\n }\n\n /**\n * Updates the properties of a relationship on a digital twin using a JSON patch.\n *\n * @param digitalTwinId - The Id of the digital twin to delete.\n * @param relationshipId - The Id of the relationship to be updated.\n * @param jsonPatch - The application/json-patch+json operations to be performed on the specified digital twin's relationship.\n * @param options - Extended operation options\n * ifMatch: Only perform the operation if the entity's etag matches one of the etags provided or * is provided.\n */\n public updateRelationship(\n digitalTwinId: string,\n relationshipId: string,\n jsonPatch: any[],\n options: DigitalTwinsUpdateRelationshipOptionalParams = {}\n ): Promise<DigitalTwinsUpdateRelationshipResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.updateRelationship\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwins.updateRelationship(\n digitalTwinId,\n relationshipId,\n jsonPatch,\n updatedOptions\n );\n }\n );\n }\n\n /**\n * Delete a relationship on a digital twin.\n *\n * @param digitalTwinId - The Id of the source digital twin.\n * @param relationshipId - The Id of the relationship to delete.\n * @param options - The operation options\n * ifMatch: Only perform the operation if the entity's etag matches one of the etags provided or * is\n * @returns The http response.\n */\n public deleteRelationship(\n digitalTwinId: string,\n relationshipId: string,\n options: DigitalTwinsDeleteRelationshipOptionalParams = {}\n ): Promise<RestResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.deleteRelationship\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwins.deleteRelationship(\n digitalTwinId,\n relationshipId,\n updatedOptions\n );\n }\n );\n }\n\n /**\n * Deals with the pagination of {@link listRelationships}.\n *\n * @param digitalTwinId - The Id of the digital twin.\n * @param options - Common options for the iterative endpoints.\n * @param continuationState - An object that indicates the position of the paginated request.\n *\n */\n private async *listRelationshipsPage(\n digitalTwinId: string,\n options: OperationOptions,\n continuationState: PageSettings\n ): AsyncIterableIterator<DigitalTwinsListRelationshipsResponse> {\n if (continuationState.continuationToken == null) {\n const optionsComplete: OperationOptions = {\n ...options,\n };\n const listRelationshipResponse = await this.client.digitalTwins.listRelationships(\n digitalTwinId,\n optionsComplete\n );\n continuationState.continuationToken = listRelationshipResponse.nextLink;\n yield listRelationshipResponse;\n }\n while (continuationState.continuationToken) {\n const listRelationshipResponse = await this.client.digitalTwins.listRelationshipsNext(\n \"\",\n continuationState.continuationToken,\n options\n );\n\n continuationState.continuationToken = listRelationshipResponse.nextLink;\n yield listRelationshipResponse;\n }\n }\n\n /**\n * Deals with the iteration of all the available results of {@link listRelationships}.\n * @param options - Common options for the iterative endpoints.\n */\n private async *listRelationshipsAll(\n digitalTwinId: string,\n options: OperationOptions\n ): AsyncIterableIterator<any> {\n for await (const page of this.listRelationshipsPage(digitalTwinId, options, {})) {\n const value = page.value || [];\n for (const item of value) {\n yield item;\n }\n }\n }\n\n /**\n * Retrieve relationships for a digital twin.\n *\n * @param digitalTwinId - The Id of the digital twin.\n */\n public listRelationships(\n digitalTwinId: string,\n options: OperationOptions & PageSettings = {}\n ): PagedAsyncIterableIterator<any, DigitalTwinsListRelationshipsResponse> {\n const iter = this.listRelationshipsAll(digitalTwinId, options);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) =>\n this.listRelationshipsPage(digitalTwinId, options, settings),\n };\n }\n\n /**\n * Deals with the pagination of {@link listIncomingRelationships}.\n *\n * @param digitalTwinId - The Id of the digital twin.\n * @param options - Common options for the iterative endpoints.\n * @param continuationState - An object that indicates the position of the paginated request.\n *\n */\n private async *listIncomingRelationshipsPage(\n digitalTwinId: string,\n options: OperationOptions,\n continuationState: PageSettings\n ): AsyncIterableIterator<DigitalTwinsListIncomingRelationshipsResponse> {\n if (continuationState.continuationToken == null) {\n const optionsComplete: OperationOptions = {\n ...options,\n };\n const listIncomingRelationshipsResponse =\n await this.client.digitalTwins.listIncomingRelationships(digitalTwinId, optionsComplete);\n continuationState.continuationToken = listIncomingRelationshipsResponse.nextLink;\n yield listIncomingRelationshipsResponse;\n }\n while (continuationState.continuationToken) {\n const listIncomingRelationshipsResponse =\n await this.client.digitalTwins.listIncomingRelationshipsNext(\n \"\",\n continuationState.continuationToken,\n options\n );\n\n continuationState.continuationToken = listIncomingRelationshipsResponse.nextLink;\n yield listIncomingRelationshipsResponse;\n }\n }\n\n /**\n * Deals with the iteration of all the available results of {@link listIncomingRelationships}.\n * @param digitalTwinId - The Id of the digital twin.\n * @param options - Common options for the iterative endpoints.\n */\n private async *listIncomingRelationshipsAll(\n digitalTwinId: string,\n options: OperationOptions\n ): AsyncIterableIterator<IncomingRelationship> {\n for await (const page of this.listIncomingRelationshipsPage(digitalTwinId, options, {})) {\n const value = page.value || [];\n yield* value;\n }\n }\n\n /**\n * Retrieve all incoming relationships for a digital twin.\n *\n * @param digitalTwinId - The Id of the digital twin.\n */\n public listIncomingRelationships(\n digitalTwinId: string,\n options: OperationOptions & PageSettings = {}\n ): PagedAsyncIterableIterator<\n IncomingRelationship,\n DigitalTwinsListIncomingRelationshipsResponse\n > {\n const iter = this.listIncomingRelationshipsAll(digitalTwinId, options);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) =>\n this.listIncomingRelationshipsPage(digitalTwinId, options, settings),\n };\n }\n\n /**\n * Publish telemetry from a digital twin, which is then consumed by one or many destination endpoints (subscribers) defined under.\n *\n * @param digitalTwinId - The Id of the digital twin to delete.\n * @param payload - The application/json telemetry payload to be sent.\n * @param messageId - The message Id.\n * @param options - The operation options\n * @returns The http response.\n */\n public publishTelemetry(\n digitalTwinId: string,\n // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types -- changing the type any would be a breaking change\n payload: any,\n messageId: string,\n options: OperationOptions = {}\n ): Promise<RestResponse> {\n const digitalTwinsSendTelemetryOptionalParams: DigitalTwinsSendTelemetryOptionalParams =\n options;\n digitalTwinsSendTelemetryOptionalParams.telemetrySourceTime = new Date().toISOString();\n if (!messageId) {\n messageId = generateUuid();\n }\n\n return tracingClient.withSpan(\n \"DigitalTwinsClient.publishTelemetry\",\n digitalTwinsSendTelemetryOptionalParams,\n async (updatedOptions) => {\n return this.client.digitalTwins.sendTelemetry(\n digitalTwinId,\n messageId,\n payload,\n updatedOptions\n );\n }\n );\n }\n\n /**\n * Publish telemetry from a digital twin's component, which is then consumed by one or many destination endpoints (subscribers) defined under.\n *\n * @param digitalTwinId - The Id of the digital twin to delete.\n * @param componentName - The name of the DTDL component.\n * @param payload - The application/json telemetry payload to be sent.\n * @param messageId - The message Id.\n * @param options - The operation options\n * @returns The http response.\n */\n public publishComponentTelemetry(\n digitalTwinId: string,\n componentName: string,\n payload: string,\n messageId: string,\n options: OperationOptions = {}\n ): Promise<RestResponse> {\n const digitalTwinsSendComponentTelemetryOptionalParams: DigitalTwinsSendComponentTelemetryOptionalParams =\n options;\n digitalTwinsSendComponentTelemetryOptionalParams.telemetrySourceTime = new Date().toISOString();\n if (!messageId) {\n messageId = generateUuid();\n }\n\n return tracingClient.withSpan(\n \"DigitalTwinsClient.publishComponentTelemetry\",\n digitalTwinsSendComponentTelemetryOptionalParams,\n async (updatedOptions) => {\n return this.client.digitalTwins.sendComponentTelemetry(\n digitalTwinId,\n componentName,\n payload,\n messageId,\n updatedOptions\n );\n }\n );\n }\n\n /**\n * Get a model, including the model metadata and the model definition.\n *\n * @param modelId - The Id of the model.\n * @param options - Extended operation options including\n * includeModelDefinition: When true the model definition will be returned as part of the result. Default value: false.\n * @returns The application/json model and the http response.\n */\n public getModel(\n modelId: string,\n includeModelDefinition: boolean = false,\n options: OperationOptions = {}\n ): Promise<DigitalTwinModelsGetByIdResponse> {\n const digitalTwinModelsGetByIdOptionalParams: DigitalTwinModelsGetByIdOptionalParams = options;\n digitalTwinModelsGetByIdOptionalParams.includeModelDefinition = includeModelDefinition;\n\n return tracingClient.withSpan(\n \"DigitalTwinsClient.getModel\",\n digitalTwinModelsGetByIdOptionalParams,\n async (updatedOptions) => {\n return this.client.digitalTwinModels.getById(modelId, updatedOptions);\n }\n );\n }\n\n /**\n * Deals with the pagination of {@link list}.\n *\n * @param options - Common options for the iterative endpoints.\n * @param continuationState - An object that indicates the position of the paginated request.\n *\n */\n private async *getModelsPage(\n options: DigitalTwinModelsListOptionalParams,\n continuationState: PageSettings\n ): AsyncIterableIterator<DigitalTwinModelsListResponse> {\n if (continuationState.continuationToken == null) {\n const optionsComplete: DigitalTwinModelsListOptionalParams = options;\n optionsComplete.maxItemsPerPage = continuationState.maxPageSize;\n\n const listResponse = await this.client.digitalTwinModels.list(optionsComplete);\n continuationState.continuationToken = listResponse.nextLink;\n yield listResponse;\n }\n while (continuationState.continuationToken) {\n const listResponse = await this.client.digitalTwinModels.listNext(\n continuationState.continuationToken,\n options\n );\n\n continuationState.continuationToken = listResponse.nextLink;\n yield listResponse;\n }\n }\n\n /**\n * Deals with the iteration of all the available results of {@link list}.\n * @param options - Common options for the iterative endpoints.\n */\n private async *getModelsAll(\n options: DigitalTwinModelsListOptionalParams\n ): AsyncIterableIterator<DigitalTwinsModelData> {\n const f = {};\n\n for await (const page of this.getModelsPage(options, f)) {\n const value = page.value || [];\n for (const item of value) {\n yield item;\n }\n }\n }\n\n /**\n * Get the list of models\n *\n * @param dependeciesFor - The model Ids to have dependencies retrieved. If omitted, all models are retrieved.\n * @param includeModelDefinition - Whether to include the model definition in the result. If false, only the model metadata will be returned.\n * @param resultsPerPage - The maximum number of items to retrieve per request. The server may choose to return less than the requested max.\n * @returns A pageable set of application/json models and the http response.\n */\n public listModels(\n dependeciesFor?: string[],\n includeModelDefinition: boolean = false,\n resultsPerPage?: number,\n options: OperationOptions & PageSettings = {}\n ): PagedAsyncIterableIterator<DigitalTwinsModelData, DigitalTwinModelsListResponse> {\n let digitalTwinModelsListOptionalParams: DigitalTwinModelsListOptionalParams = options;\n digitalTwinModelsListOptionalParams = {\n maxItemsPerPage: resultsPerPage,\n dependenciesFor: dependeciesFor,\n includeModelDefinition: includeModelDefinition,\n };\n\n const iter = this.getModelsAll(digitalTwinModelsListOptionalParams);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) =>\n this.getModelsPage(digitalTwinModelsListOptionalParams, settings),\n };\n }\n\n /**\n * Create one or many\n *\n * @param models - The set of models to create. Each string corresponds to exactly one model.\n * @param options - The operation options\n * @returns The created application/json models and the http response.\n */\n public createModels(\n dtdlModels: any[],\n options: OperationOptions = {}\n ): Promise<DigitalTwinModelsAddResponse> {\n const digitalTwinModelsAddOptionalParams: DigitalTwinModelsAddOptionalParams = options;\n digitalTwinModelsAddOptionalParams.models = dtdlModels;\n\n return tracingClient.withSpan(\n \"DigitalTwinsClient.createModels\",\n digitalTwinModelsAddOptionalParams,\n async (updatedOptions) => {\n return this.client.digitalTwinModels.add(updatedOptions);\n }\n );\n }\n\n /**\n * Decommission a model using a json patch.\n * When a model is decommissioned, new digital twins will no longer be able to be\n * defined by this model. However, existing digital twins may continue to use this model.\n * Once a model is decommissioned, it may not be recommissioned.\n *\n * @param modelId - The Id of the model to decommission.\n * property can be replaced.\n * @param options - The operation options\n * @returns The http response.\n *\n */\n public decomissionModel(modelId: string, options: OperationOptions = {}): Promise<RestResponse> {\n const jsonPatch = [{ op: \"replace\", path: \"/decommissioned\", value: true }];\n\n return tracingClient.withSpan(\n \"DigitalTwinsClient.decomissionModel\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwinModels.update(modelId, jsonPatch, updatedOptions);\n }\n );\n }\n\n /**\n * Delete a model.\n *\n * @param modelId - The Id of the model to delete.\n * @param options - The operation options\n * @returns The http response.\n */\n public deleteModel(modelId: string, options: OperationOptions = {}): Promise<RestResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.deleteModel\",\n options,\n async (updatedOptions) => {\n return this.client.digitalTwinModels.delete(modelId, updatedOptions);\n }\n );\n }\n\n /**\n * Get an event route.\n *\n * @param modelId - The Id of the event route.\n * @param options - The operation options\n * @returns The application/json event route and the http response.\n */\n public getEventRoute(\n eventRouteId: string,\n options: OperationOptions = {}\n ): Promise<EventRoutesGetByIdResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.getEventRoute\",\n options,\n async (updatedOptions) => {\n return this.client.eventRoutes.getById(eventRouteId, updatedOptions);\n }\n );\n }\n\n /**\n * Deals with the pagination of {@link list}.\n *\n * @param options - Common options for the iterative endpoints.\n * @param continuationState - An object that indicates the position of the paginated request.\n *\n */\n private async *getEventRoutesPage(\n options: EventRoutesListOptionalParams,\n continuationState: PageSettings\n ): AsyncIterableIterator<EventRoutesListNextResponse> {\n if (continuationState.continuationToken == null) {\n const optionsComplete: EventRoutesListOptionalParams = options;\n optionsComplete.maxItemsPerPage = continuationState.maxPageSize;\n\n const listResponse = await this.client.eventRoutes.list(optionsComplete);\n continuationState.continuationToken = listResponse.nextLink;\n yield listResponse;\n }\n while (continuationState.continuationToken) {\n const listResponse = await this.client.eventRoutes.listNext(\n continuationState.continuationToken,\n options\n );\n\n continuationState.continuationToken = listResponse.nextLink;\n yield listResponse;\n }\n }\n\n /**\n * Deals with the iteration of all the available results of {@link list}.\n * @param options - Common options for the iterative endpoints.\n */\n private async *getEventRoutesAll(\n options: EventRoutesListOptionalParams\n ): AsyncIterableIterator<EventRoute> {\n const f = {};\n for await (const page of this.getEventRoutesPage(options, f)) {\n const value = page.value || [];\n for (const item of value) {\n yield item;\n }\n }\n }\n\n /**\n * List the event routes in a digital twins instance.\n *\n * @param resultsPerPage - The maximum number of items to retrieve per request. The server may choose to return less than\n * the requested max.\n * @returns The application/json event route and the http response.\n */\n public listEventRoutes(\n resultsPerPage?: number,\n options: OperationOptions & PageSettings = {}\n ): PagedAsyncIterableIterator<EventRoute, EventRoutesListNextResponse> {\n let eventRoutesListOptionalParams: EventRoutesListOptionalParams = options;\n eventRoutesListOptionalParams = {\n maxItemsPerPage: resultsPerPage,\n };\n\n const iter = this.getEventRoutesAll(eventRoutesListOptionalParams);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) =>\n this.getEventRoutesPage(eventRoutesListOptionalParams, settings),\n };\n }\n\n /**\n * Create or update an event route.\n *\n * @param eventRouteId - The Id of the event route to create or update.\n * @param endpointId - The id of the endpoint this event route is bound to.\n * @param filter - An expression which describes the events which are routed to the endpoint.\n * @param options - The operation options\n * @returns The http response.\n */\n public upsertEventRoute(\n eventRouteId: string,\n endpointId: string,\n filter: string,\n options: OperationOptions = {}\n ): Promise<RestResponse> {\n const eventRoutesAddOptionalParams: EventRoutesAddOptionalParams = options;\n const eventRoute: EventRoute = {\n endpointName: endpointId,\n filter: filter,\n };\n eventRoutesAddOptionalParams.eventRoute = eventRoute;\n\n return tracingClient.withSpan(\n \"DigitalTwinsClient.upsertEventRoute\",\n eventRoutesAddOptionalParams,\n async (updatedOptions) => {\n return this.client.eventRoutes.add(eventRouteId, updatedOptions);\n }\n );\n }\n\n /**\n * Delete an event route.\n *\n * @param eventRouteId - The Id of the eventRoute to delete.\n * @param options - The operation options\n * @returns The http response.\n */\n public deleteEventRoute(\n eventRouteId: string,\n options: OperationOptions = {}\n ): Promise<RestResponse> {\n return tracingClient.withSpan(\n \"DigitalTwinsClient.deleteEventRoute\",\n options,\n async (updatedOptions) => {\n return this.client.eventRoutes.delete(eventRouteId, updatedOptions);\n }\n );\n }\n\n /**\n * Deals with the pagination of {@link query}.\n *\n * @param query - The query string, in SQL-like syntax.\n * @param options - Common options for the iterative endpoints.\n * @param continuationState - An object that indicates the position of the paginated request.\n *\n */\n private async *queryTwinsPage(\n query: string,\n options: QueryQueryTwinsOptionalParams,\n continuationState: PageSettings\n ): AsyncIterableIterator<QueryQueryTwinsResponse> {\n if (continuationState.continuationToken == null) {\n const querySpecification: QuerySpecification = {\n query: query,\n continuationToken: continuationState.continuationToken,\n };\n const queryResult = await this.client.query.queryTwins(querySpecification, options);\n continuationState.continuationToken = queryResult.continuationToken;\n yield queryResult;\n }\n while (continuationState.continuationToken) {\n const querySpecification: QuerySpecification = {\n query: query,\n continuationToken: continuationState.continuationToken,\n };\n const queryResult = await this.client.query.queryTwins(querySpecification, options);\n\n continuationState.continuationToken = queryResult.continuationToken;\n yield queryResult;\n }\n }\n\n /**\n * Deals with the iteration of all the available results of {@link query}.\n * @param query - The query string, in SQL-like syntax.\n * @param options - Common options for the iterative endpoints.\n */\n private async *queryTwinsAll(\n query: string,\n options: QueryQueryTwinsOptionalParams\n ): AsyncIterableIterator<any> {\n const f = {};\n\n for await (const page of this.queryTwinsPage(query, options, f)) {\n if (page.value) {\n for (const item of page.value) {\n yield item;\n }\n }\n }\n }\n\n /**\n * Query for digital twins.\n *\n * @param query - The query string, in SQL-like syntax.\n * @param resultsPerPage - The maximum number of items to retrieve per request. The server may choose to return less than the requested max.\n * @returns The pageable list of query results.\n */\n public queryTwins(\n query: string,\n resultsPerPage?: number,\n options: OperationOptions & PageSettings = {}\n ): PagedAsyncIterableIterator<any, QueryQueryTwinsResponse> {\n let queryQueryTwinsOptionalParams: QueryQueryTwinsOptionalParams = options;\n queryQueryTwinsOptionalParams = {\n maxItemsPerPage: resultsPerPage,\n };\n\n const iter = this.queryTwinsAll(query, queryQueryTwinsOptionalParams);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) =>\n this.queryTwinsPage(query, queryQueryTwinsOptionalParams, settings),\n };\n }\n}\n"]}
|
|
@@ -29,7 +29,7 @@ export class AzureDigitalTwinsAPIContext extends coreHttp.ServiceClient {
|
|
|
29
29
|
// Assigning values to Constant parameters
|
|
30
30
|
this.$host =
|
|
31
31
|
options.$host || "https://digitaltwins-name.digitaltwins.azure.net";
|
|
32
|
-
this.apiVersion = options.apiVersion || "
|
|
32
|
+
this.apiVersion = options.apiVersion || "2022-05-31";
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
//# sourceMappingURL=azureDigitalTwinsAPIContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azureDigitalTwinsAPIContext.js","sourceRoot":"","sources":["../../../src/generated/azureDigitalTwinsAPIContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAG7C,MAAM,WAAW,GAAG,2BAA2B,CAAC;AAChD,MAAM,cAAc,GAAG,OAAO,CAAC;AAE/B,MAAM,OAAO,2BAA4B,SAAQ,QAAQ,CAAC,aAAa;IAIrE;;;OAGG;IACH,YAAY,OAA4C;QACtD,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QAED,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;YACtB,MAAM,gBAAgB,GAAG,QAAQ,CAAC,wBAAwB,EAAE,CAAC;YAC7D,OAAO,CAAC,SAAS,GAAG,GAAG,WAAW,IAAI,cAAc,IAAI,gBAAgB,EAAE,CAAC;SAC5E;QAED,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAE1B,IAAI,CAAC,kBAAkB,GAAG,iCAAiC,CAAC;QAE5D,IAAI,CAAC,OAAO;YACV,OAAO,CAAC,QAAQ,IAAI,kDAAkD,CAAC;QAEzE,0CAA0C;QAC1C,IAAI,CAAC,KAAK;YACR,OAAO,CAAC,KAAK,IAAI,kDAAkD,CAAC;QACtE,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;IACvD,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttp from \"@azure/core-http\";\nimport { AzureDigitalTwinsAPIOptionalParams } from \"./models\";\n\nconst packageName = \"@azure/digital-twins-core\";\nconst packageVersion = \"1.1.0\";\n\nexport class AzureDigitalTwinsAPIContext extends coreHttp.ServiceClient {\n $host: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the AzureDigitalTwinsAPIContext class.\n * @param options The parameter options\n */\n constructor(options?: AzureDigitalTwinsAPIOptionalParams) {\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n\n if (!options.userAgent) {\n const defaultUserAgent = coreHttp.getDefaultUserAgentValue();\n options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;\n }\n\n super(undefined, options);\n\n this.requestContentType = \"application/json; charset=utf-8\";\n\n this.baseUri =\n options.endpoint || \"https://digitaltwins-name.digitaltwins.azure.net\";\n\n // Assigning values to Constant parameters\n this.$host =\n options.$host || \"https://digitaltwins-name.digitaltwins.azure.net\";\n this.apiVersion = options.apiVersion || \"
|
|
1
|
+
{"version":3,"file":"azureDigitalTwinsAPIContext.js","sourceRoot":"","sources":["../../../src/generated/azureDigitalTwinsAPIContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAG7C,MAAM,WAAW,GAAG,2BAA2B,CAAC;AAChD,MAAM,cAAc,GAAG,OAAO,CAAC;AAE/B,MAAM,OAAO,2BAA4B,SAAQ,QAAQ,CAAC,aAAa;IAIrE;;;OAGG;IACH,YAAY,OAA4C;QACtD,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QAED,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;YACtB,MAAM,gBAAgB,GAAG,QAAQ,CAAC,wBAAwB,EAAE,CAAC;YAC7D,OAAO,CAAC,SAAS,GAAG,GAAG,WAAW,IAAI,cAAc,IAAI,gBAAgB,EAAE,CAAC;SAC5E;QAED,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAE1B,IAAI,CAAC,kBAAkB,GAAG,iCAAiC,CAAC;QAE5D,IAAI,CAAC,OAAO;YACV,OAAO,CAAC,QAAQ,IAAI,kDAAkD,CAAC;QAEzE,0CAA0C;QAC1C,IAAI,CAAC,KAAK;YACR,OAAO,CAAC,KAAK,IAAI,kDAAkD,CAAC;QACtE,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;IACvD,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttp from \"@azure/core-http\";\nimport { AzureDigitalTwinsAPIOptionalParams } from \"./models\";\n\nconst packageName = \"@azure/digital-twins-core\";\nconst packageVersion = \"1.1.0\";\n\nexport class AzureDigitalTwinsAPIContext extends coreHttp.ServiceClient {\n $host: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the AzureDigitalTwinsAPIContext class.\n * @param options The parameter options\n */\n constructor(options?: AzureDigitalTwinsAPIOptionalParams) {\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n\n if (!options.userAgent) {\n const defaultUserAgent = coreHttp.getDefaultUserAgentValue();\n options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;\n }\n\n super(undefined, options);\n\n this.requestContentType = \"application/json; charset=utf-8\";\n\n this.baseUri =\n options.endpoint || \"https://digitaltwins-name.digitaltwins.azure.net\";\n\n // Assigning values to Constant parameters\n this.$host =\n options.$host || \"https://digitaltwins-name.digitaltwins.azure.net\";\n this.apiVersion = options.apiVersion || \"2022-05-31\";\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../src/generated/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAIL,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,kBAAkB,IAAI,wBAAwB,EAC9C,UAAU,IAAI,gBAAgB,EAC/B,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;IACpC,MAAM,EAAE;QACN,WA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;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAuB;IAC5C,aAAa,EAAE,CAAC,SAAS,EAAE,YAAY,CAAC;IACxC,MAAM,EAAE,gBAAgB;CACzB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter,\n QueryCollectionFormat\n} from \"@azure/core-http\";\nimport {\n QuerySpecification as QuerySpecificationMapper,\n EventRoute as EventRouteMapper\n} from \"../models/mappers\";\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const models: OperationParameter = {\n parameterPath: [\"options\", \"models\"],\n mapper: {\n constraints: {\n MinItems: 1,\n UniqueItems: true\n },\n serializedName: \"models\",\n type: {\n name: \"Sequence\",\n element: { type: { name: \"any\" } }\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const traceparent: OperationParameter = {\n parameterPath: [\"options\", \"traceparent\"],\n mapper: {\n serializedName: \"traceparent\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const tracestate: OperationParameter = {\n parameterPath: [\"options\", \"tracestate\"],\n mapper: {\n serializedName: \"tracestate\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2020-10-31\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const dependenciesFor: OperationQueryParameter = {\n parameterPath: [\"options\", \"dependenciesFor\"],\n mapper: {\n serializedName: \"dependenciesFor\",\n type: {\n name: \"Sequence\",\n element: { type: { name: \"String\" } }\n }\n },\n collectionFormat: QueryCollectionFormat.Csv\n};\n\nexport const includeModelDefinition: OperationQueryParameter = {\n parameterPath: [\"options\", \"includeModelDefinition\"],\n mapper: {\n serializedName: \"includeModelDefinition\",\n type: {\n name: \"Boolean\"\n }\n }\n};\n\nexport const maxItemsPerPage: OperationParameter = {\n parameterPath: [\"options\", \"maxItemsPerPage\"],\n mapper: {\n serializedName: \"max-items-per-page\",\n type: {\n name: \"Number\"\n }\n }\n};\n\nexport const id: OperationURLParameter = {\n parameterPath: \"id\",\n mapper: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType1: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json-patch+json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const updateModel: OperationParameter = {\n parameterPath: \"updateModel\",\n mapper: {\n serializedName: \"updateModel\",\n required: true,\n type: {\n name: \"Sequence\",\n element: { type: { name: \"any\" } }\n }\n }\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const querySpecification: OperationParameter = {\n parameterPath: \"querySpecification\",\n mapper: QuerySpecificationMapper\n};\n\nexport const twin: OperationParameter = {\n parameterPath: \"twin\",\n mapper: {\n serializedName: \"twin\",\n required: true,\n type: {\n name: \"any\"\n }\n }\n};\n\nexport const ifNoneMatch: OperationParameter = {\n parameterPath: [\"options\", \"ifNoneMatch\"],\n mapper: {\n serializedName: \"If-None-Match\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const ifMatch: OperationParameter = {\n parameterPath: [\"options\", \"ifMatch\"],\n mapper: {\n serializedName: \"If-Match\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const patchDocument: OperationParameter = {\n parameterPath: \"patchDocument\",\n mapper: {\n serializedName: \"patchDocument\",\n required: true,\n type: {\n name: \"Sequence\",\n element: { type: { name: \"any\" } }\n }\n }\n};\n\nexport const relationshipId: OperationURLParameter = {\n parameterPath: \"relationshipId\",\n mapper: {\n serializedName: \"relationshipId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const relationship: OperationParameter = {\n parameterPath: \"relationship\",\n mapper: {\n serializedName: \"relationship\",\n required: true,\n type: {\n name: \"any\"\n }\n }\n};\n\nexport const relationshipName: OperationQueryParameter = {\n parameterPath: [\"options\", \"relationshipName\"],\n mapper: {\n serializedName: \"relationshipName\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const telemetry: OperationParameter = {\n parameterPath: \"telemetry\",\n mapper: {\n serializedName: \"telemetry\",\n required: true,\n type: {\n name: \"any\"\n }\n }\n};\n\nexport const messageId: OperationParameter = {\n parameterPath: \"messageId\",\n mapper: {\n serializedName: \"Message-Id\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const telemetrySourceTime: OperationParameter = {\n parameterPath: [\"options\", \"telemetrySourceTime\"],\n mapper: {\n serializedName: \"Telemetry-Source-Time\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const componentPath: OperationURLParameter = {\n parameterPath: \"componentPath\",\n mapper: {\n serializedName: \"componentPath\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const eventRoute: OperationParameter = {\n parameterPath: [\"options\", \"eventRoute\"],\n mapper: EventRouteMapper\n};\n"]}
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../src/generated/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAIL,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,kBAAkB,IAAI,wBAAwB,EAC9C,UAAU,IAAI,gBAA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ACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAuB;IACrD,aAAa,EAAE,CAAC,SAAS,EAAE,qBAAqB,CAAC;IACjD,MAAM,EAAE;QACN,cAAc,EAAE,uBAAuB;QACvC,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA0B;IAClD,aAAa,EAAE,eAAe;IAC9B,MAAM,EAAE;QACN,cAAc,EAAE,eAAe;QAC/B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAuB;IAC5C,aAAa,EAAE,CAAC,SAAS,EAAE,YAAY,CAAC;IACxC,MAAM,EAAE,gBAAgB;CACzB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter,\n QueryCollectionFormat\n} from \"@azure/core-http\";\nimport {\n QuerySpecification as QuerySpecificationMapper,\n EventRoute as EventRouteMapper\n} from \"../models/mappers\";\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const models: OperationParameter = {\n parameterPath: [\"options\", \"models\"],\n mapper: {\n constraints: {\n MinItems: 1,\n UniqueItems: true\n },\n serializedName: \"models\",\n type: {\n name: \"Sequence\",\n element: { type: { name: \"any\" } }\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const traceparent: OperationParameter = {\n parameterPath: [\"options\", \"traceparent\"],\n mapper: {\n serializedName: \"traceparent\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const tracestate: OperationParameter = {\n parameterPath: [\"options\", \"tracestate\"],\n mapper: {\n serializedName: \"tracestate\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2022-05-31\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const dependenciesFor: OperationQueryParameter = {\n parameterPath: [\"options\", \"dependenciesFor\"],\n mapper: {\n serializedName: \"dependenciesFor\",\n type: {\n name: \"Sequence\",\n element: { type: { name: \"String\" } }\n }\n },\n collectionFormat: QueryCollectionFormat.Csv\n};\n\nexport const includeModelDefinition: OperationQueryParameter = {\n parameterPath: [\"options\", \"includeModelDefinition\"],\n mapper: {\n serializedName: \"includeModelDefinition\",\n type: {\n name: \"Boolean\"\n }\n }\n};\n\nexport const maxItemsPerPage: OperationParameter = {\n parameterPath: [\"options\", \"maxItemsPerPage\"],\n mapper: {\n serializedName: \"max-items-per-page\",\n type: {\n name: \"Number\"\n }\n }\n};\n\nexport const id: OperationURLParameter = {\n parameterPath: \"id\",\n mapper: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType1: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json-patch+json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const updateModel: OperationParameter = {\n parameterPath: \"updateModel\",\n mapper: {\n serializedName: \"updateModel\",\n required: true,\n type: {\n name: \"Sequence\",\n element: { type: { name: \"any\" } }\n }\n }\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const querySpecification: OperationParameter = {\n parameterPath: \"querySpecification\",\n mapper: QuerySpecificationMapper\n};\n\nexport const twin: OperationParameter = {\n parameterPath: \"twin\",\n mapper: {\n serializedName: \"twin\",\n required: true,\n type: {\n name: \"any\"\n }\n }\n};\n\nexport const ifNoneMatch: OperationParameter = {\n parameterPath: [\"options\", \"ifNoneMatch\"],\n mapper: {\n serializedName: \"If-None-Match\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const ifMatch: OperationParameter = {\n parameterPath: [\"options\", \"ifMatch\"],\n mapper: {\n serializedName: \"If-Match\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const patchDocument: OperationParameter = {\n parameterPath: \"patchDocument\",\n mapper: {\n serializedName: \"patchDocument\",\n required: true,\n type: {\n name: \"Sequence\",\n element: { type: { name: \"any\" } }\n }\n }\n};\n\nexport const relationshipId: OperationURLParameter = {\n parameterPath: \"relationshipId\",\n mapper: {\n serializedName: \"relationshipId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const relationship: OperationParameter = {\n parameterPath: \"relationship\",\n mapper: {\n serializedName: \"relationship\",\n required: true,\n type: {\n name: \"any\"\n }\n }\n};\n\nexport const relationshipName: OperationQueryParameter = {\n parameterPath: [\"options\", \"relationshipName\"],\n mapper: {\n serializedName: \"relationshipName\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const telemetry: OperationParameter = {\n parameterPath: \"telemetry\",\n mapper: {\n serializedName: \"telemetry\",\n required: true,\n type: {\n name: \"any\"\n }\n }\n};\n\nexport const messageId: OperationParameter = {\n parameterPath: \"messageId\",\n mapper: {\n serializedName: \"Message-Id\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const telemetrySourceTime: OperationParameter = {\n parameterPath: [\"options\", \"telemetrySourceTime\"],\n mapper: {\n serializedName: \"Telemetry-Source-Time\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const componentPath: OperationURLParameter = {\n parameterPath: \"componentPath\",\n mapper: {\n serializedName: \"componentPath\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const eventRoute: OperationParameter = {\n parameterPath: [\"options\", \"eventRoute\"],\n mapper: EventRouteMapper\n};\n"]}
|
package/package.json
CHANGED
|
@@ -412,11 +412,7 @@ export declare class DigitalTwinsClient {
|
|
|
412
412
|
* @returns The http response.
|
|
413
413
|
*
|
|
414
414
|
*/
|
|
415
|
-
|
|
416
|
-
/**
|
|
417
|
-
* @deprecated Please use {@link DigitalTwinsClient.decommissionModel} instead.
|
|
418
|
-
*/
|
|
419
|
-
decomissionModel: (modelId: string, options?: OperationOptions) => Promise<RestResponse>;
|
|
415
|
+
decomissionModel(modelId: string, options?: OperationOptions): Promise<RestResponse>;
|
|
420
416
|
/**
|
|
421
417
|
* Delete a model.
|
|
422
418
|
*
|