@azure/digital-twins-core 2.0.0-alpha.20241203.1 → 2.0.0-alpha.20241205.2
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/browser/constants.d.ts +2 -0
- package/dist/browser/constants.d.ts.map +1 -0
- package/{types/digital-twins-core.d.ts → dist/browser/digitalTwinsClient.d.ts} +270 -546
- package/dist/browser/digitalTwinsClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/digitalTwinsClient.js +6 -6
- package/dist/browser/digitalTwinsClient.js.map +1 -0
- package/dist/browser/generated/azureDigitalTwinsAPI.d.ts +19 -0
- package/dist/browser/generated/azureDigitalTwinsAPI.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/azureDigitalTwinsAPI.js +1 -1
- package/dist/browser/generated/azureDigitalTwinsAPI.js.map +1 -0
- package/dist/browser/generated/index.d.ts +5 -0
- package/dist/browser/generated/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/index.js +4 -4
- package/dist/browser/generated/index.js.map +1 -0
- package/dist/browser/generated/models/index.d.ts +335 -0
- package/dist/browser/generated/models/index.d.ts.map +1 -0
- package/dist/browser/generated/models/mappers.d.ts +23 -0
- package/dist/browser/generated/models/mappers.d.ts.map +1 -0
- package/dist/browser/generated/models/parameters.d.ts +27 -0
- package/dist/browser/generated/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/models/parameters.js +1 -1
- package/dist/browser/generated/models/parameters.js.map +1 -0
- package/dist/browser/generated/operations/digitalTwinModels.d.ts +106 -0
- package/dist/browser/generated/operations/digitalTwinModels.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/operations/digitalTwinModels.js +3 -3
- package/dist/browser/generated/operations/digitalTwinModels.js.map +1 -0
- package/dist/browser/generated/operations/digitalTwins.d.ts +285 -0
- package/dist/browser/generated/operations/digitalTwins.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/operations/digitalTwins.js +3 -3
- package/dist/browser/generated/operations/digitalTwins.js.map +1 -0
- package/dist/browser/generated/operations/eventRoutes.d.ts +69 -0
- package/dist/browser/generated/operations/eventRoutes.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/operations/eventRoutes.js +3 -3
- package/dist/browser/generated/operations/eventRoutes.js.map +1 -0
- package/dist/browser/generated/operations/index.d.ts +5 -0
- package/dist/browser/generated/operations/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/operationsInterfaces → dist/browser/generated/operations}/index.js +4 -4
- package/dist/browser/generated/operations/index.js.map +1 -0
- package/dist/browser/generated/operations/query.d.ts +28 -0
- package/dist/browser/generated/operations/query.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/operations/query.js +2 -2
- package/dist/browser/generated/operations/query.js.map +1 -0
- package/dist/browser/generated/operationsInterfaces/digitalTwinModels.d.ts +78 -0
- package/dist/browser/generated/operationsInterfaces/digitalTwinModels.d.ts.map +1 -0
- package/dist/browser/generated/operationsInterfaces/digitalTwinModels.js.map +1 -0
- package/dist/browser/generated/operationsInterfaces/digitalTwins.d.ts +234 -0
- package/dist/browser/generated/operationsInterfaces/digitalTwins.d.ts.map +1 -0
- package/dist/browser/generated/operationsInterfaces/digitalTwins.js.map +1 -0
- package/dist/browser/generated/operationsInterfaces/eventRoutes.d.ts +46 -0
- package/dist/browser/generated/operationsInterfaces/eventRoutes.d.ts.map +1 -0
- package/dist/browser/generated/operationsInterfaces/eventRoutes.js.map +1 -0
- package/dist/browser/generated/operationsInterfaces/index.d.ts +5 -0
- package/dist/browser/generated/operationsInterfaces/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/operations → dist/browser/generated/operationsInterfaces}/index.js +4 -4
- package/dist/browser/generated/operationsInterfaces/index.js.map +1 -0
- package/dist/browser/generated/operationsInterfaces/query.d.ts +20 -0
- package/dist/browser/generated/operationsInterfaces/query.d.ts.map +1 -0
- package/dist/browser/generated/operationsInterfaces/query.js.map +1 -0
- package/dist/browser/generated/pagingHelper.d.ts +13 -0
- package/dist/browser/generated/pagingHelper.d.ts.map +1 -0
- package/dist/browser/index.d.ts +3 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +4 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts +5 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/tracing.d.ts +6 -0
- package/dist/browser/tracing.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/tracing.js +1 -1
- package/dist/browser/tracing.js.map +1 -0
- package/dist/commonjs/constants.d.ts +2 -0
- package/dist/commonjs/constants.d.ts.map +1 -0
- package/dist/commonjs/constants.js +7 -0
- package/dist/commonjs/constants.js.map +1 -0
- package/dist/commonjs/digitalTwinsClient.d.ts +270 -0
- package/dist/commonjs/digitalTwinsClient.d.ts.map +1 -0
- package/dist/commonjs/digitalTwinsClient.js +410 -0
- package/dist/commonjs/digitalTwinsClient.js.map +1 -0
- package/dist/commonjs/generated/azureDigitalTwinsAPI.d.ts +19 -0
- package/dist/commonjs/generated/azureDigitalTwinsAPI.d.ts.map +1 -0
- package/dist/commonjs/generated/azureDigitalTwinsAPI.js +72 -0
- package/dist/commonjs/generated/azureDigitalTwinsAPI.js.map +1 -0
- package/dist/commonjs/generated/index.d.ts +5 -0
- package/dist/commonjs/generated/index.d.ts.map +1 -0
- package/dist/commonjs/generated/index.js +19 -0
- package/dist/commonjs/generated/index.js.map +1 -0
- package/dist/commonjs/generated/models/index.d.ts +335 -0
- package/dist/commonjs/generated/models/index.d.ts.map +1 -0
- package/dist/commonjs/generated/models/index.js +10 -0
- package/dist/commonjs/generated/models/index.js.map +1 -0
- package/dist/commonjs/generated/models/mappers.d.ts +23 -0
- package/dist/commonjs/generated/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/generated/models/mappers.js +475 -0
- package/dist/commonjs/generated/models/mappers.js.map +1 -0
- package/dist/commonjs/generated/models/parameters.d.ts +27 -0
- package/dist/commonjs/generated/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/models/parameters.js +280 -0
- package/dist/commonjs/generated/models/parameters.js.map +1 -0
- package/dist/commonjs/generated/operations/digitalTwinModels.d.ts +106 -0
- package/dist/commonjs/generated/operations/digitalTwinModels.d.ts.map +1 -0
- package/dist/commonjs/generated/operations/digitalTwinModels.js +294 -0
- package/dist/commonjs/generated/operations/digitalTwinModels.js.map +1 -0
- package/dist/commonjs/generated/operations/digitalTwins.d.ts +285 -0
- package/dist/commonjs/generated/operations/digitalTwins.d.ts.map +1 -0
- package/dist/commonjs/generated/operations/digitalTwins.js +749 -0
- package/dist/commonjs/generated/operations/digitalTwins.js.map +1 -0
- package/dist/commonjs/generated/operations/eventRoutes.d.ts +69 -0
- package/dist/commonjs/generated/operations/eventRoutes.d.ts.map +1 -0
- package/dist/commonjs/generated/operations/eventRoutes.js +226 -0
- package/dist/commonjs/generated/operations/eventRoutes.js.map +1 -0
- package/dist/commonjs/generated/operations/index.d.ts +5 -0
- package/dist/commonjs/generated/operations/index.d.ts.map +1 -0
- package/dist/commonjs/generated/operations/index.js +15 -0
- package/dist/commonjs/generated/operations/index.js.map +1 -0
- package/dist/commonjs/generated/operations/query.d.ts +28 -0
- package/dist/commonjs/generated/operations/query.d.ts.map +1 -0
- package/dist/commonjs/generated/operations/query.js +68 -0
- package/dist/commonjs/generated/operations/query.js.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/digitalTwinModels.d.ts +78 -0
- package/dist/commonjs/generated/operationsInterfaces/digitalTwinModels.d.ts.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/digitalTwinModels.js +10 -0
- package/dist/commonjs/generated/operationsInterfaces/digitalTwinModels.js.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/digitalTwins.d.ts +234 -0
- package/dist/commonjs/generated/operationsInterfaces/digitalTwins.d.ts.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/digitalTwins.js +10 -0
- package/dist/commonjs/generated/operationsInterfaces/digitalTwins.js.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/eventRoutes.d.ts +46 -0
- package/dist/commonjs/generated/operationsInterfaces/eventRoutes.d.ts.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/eventRoutes.js +10 -0
- package/dist/commonjs/generated/operationsInterfaces/eventRoutes.js.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/index.d.ts +5 -0
- package/dist/commonjs/generated/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/index.js +15 -0
- package/dist/commonjs/generated/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/query.d.ts +20 -0
- package/dist/commonjs/generated/operationsInterfaces/query.d.ts.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/query.js +10 -0
- package/dist/commonjs/generated/operationsInterfaces/query.js.map +1 -0
- package/dist/commonjs/generated/pagingHelper.d.ts +13 -0
- package/dist/commonjs/generated/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/generated/pagingHelper.js +36 -0
- package/dist/commonjs/generated/pagingHelper.js.map +1 -0
- package/dist/commonjs/index.d.ts +3 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +8 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts +5 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +11 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/tracing.d.ts +6 -0
- package/dist/commonjs/tracing.d.ts.map +1 -0
- package/dist/commonjs/tracing.js +17 -0
- package/dist/commonjs/tracing.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/constants.d.ts +2 -0
- package/dist/esm/constants.d.ts.map +1 -0
- package/dist/esm/constants.js +4 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/digitalTwinsClient.d.ts +270 -0
- package/dist/esm/digitalTwinsClient.d.ts.map +1 -0
- package/dist/esm/digitalTwinsClient.js +406 -0
- package/dist/esm/digitalTwinsClient.js.map +1 -0
- package/dist/esm/generated/azureDigitalTwinsAPI.d.ts +19 -0
- package/dist/esm/generated/azureDigitalTwinsAPI.d.ts.map +1 -0
- package/dist/esm/generated/azureDigitalTwinsAPI.js +67 -0
- package/dist/esm/generated/azureDigitalTwinsAPI.js.map +1 -0
- package/dist/esm/generated/index.d.ts +5 -0
- package/dist/esm/generated/index.d.ts.map +1 -0
- package/dist/esm/generated/index.js +13 -0
- package/dist/esm/generated/index.js.map +1 -0
- package/dist/esm/generated/models/index.d.ts +335 -0
- package/dist/esm/generated/models/index.d.ts.map +1 -0
- package/dist/esm/generated/models/index.js +9 -0
- package/dist/esm/generated/models/index.js.map +1 -0
- package/dist/esm/generated/models/mappers.d.ts +23 -0
- package/dist/esm/generated/models/mappers.d.ts.map +1 -0
- package/dist/esm/generated/models/mappers.js +472 -0
- package/dist/esm/generated/models/mappers.js.map +1 -0
- package/dist/esm/generated/models/parameters.d.ts +27 -0
- package/dist/esm/generated/models/parameters.d.ts.map +1 -0
- package/dist/esm/generated/models/parameters.js +277 -0
- package/dist/esm/generated/models/parameters.js.map +1 -0
- package/dist/esm/generated/operations/digitalTwinModels.d.ts +106 -0
- package/dist/esm/generated/operations/digitalTwinModels.d.ts.map +1 -0
- package/dist/esm/generated/operations/digitalTwinModels.js +290 -0
- package/dist/esm/generated/operations/digitalTwinModels.js.map +1 -0
- package/dist/esm/generated/operations/digitalTwins.d.ts +285 -0
- package/dist/esm/generated/operations/digitalTwins.d.ts.map +1 -0
- package/dist/esm/generated/operations/digitalTwins.js +745 -0
- package/dist/esm/generated/operations/digitalTwins.js.map +1 -0
- package/dist/esm/generated/operations/eventRoutes.d.ts +69 -0
- package/dist/esm/generated/operations/eventRoutes.d.ts.map +1 -0
- package/dist/esm/generated/operations/eventRoutes.js +222 -0
- package/dist/esm/generated/operations/eventRoutes.js.map +1 -0
- package/dist/esm/generated/operations/index.d.ts +5 -0
- package/dist/esm/generated/operations/index.d.ts.map +1 -0
- package/dist/esm/generated/operations/index.js +12 -0
- package/dist/esm/generated/operations/index.js.map +1 -0
- package/dist/esm/generated/operations/query.d.ts +28 -0
- package/dist/esm/generated/operations/query.d.ts.map +1 -0
- package/dist/esm/generated/operations/query.js +63 -0
- package/dist/esm/generated/operations/query.js.map +1 -0
- package/dist/esm/generated/operationsInterfaces/digitalTwinModels.d.ts +78 -0
- package/dist/esm/generated/operationsInterfaces/digitalTwinModels.d.ts.map +1 -0
- package/dist/esm/generated/operationsInterfaces/digitalTwinModels.js +9 -0
- package/dist/esm/generated/operationsInterfaces/digitalTwinModels.js.map +1 -0
- package/dist/esm/generated/operationsInterfaces/digitalTwins.d.ts +234 -0
- package/dist/esm/generated/operationsInterfaces/digitalTwins.d.ts.map +1 -0
- package/dist/esm/generated/operationsInterfaces/digitalTwins.js +9 -0
- package/dist/esm/generated/operationsInterfaces/digitalTwins.js.map +1 -0
- package/dist/esm/generated/operationsInterfaces/eventRoutes.d.ts +46 -0
- package/dist/esm/generated/operationsInterfaces/eventRoutes.d.ts.map +1 -0
- package/dist/esm/generated/operationsInterfaces/eventRoutes.js +9 -0
- package/dist/esm/generated/operationsInterfaces/eventRoutes.js.map +1 -0
- package/dist/esm/generated/operationsInterfaces/index.d.ts +5 -0
- package/dist/esm/generated/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/generated/operationsInterfaces/index.js +12 -0
- package/dist/esm/generated/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/generated/operationsInterfaces/query.d.ts +20 -0
- package/dist/esm/generated/operationsInterfaces/query.d.ts.map +1 -0
- package/dist/esm/generated/operationsInterfaces/query.js +9 -0
- package/dist/esm/generated/operationsInterfaces/query.js.map +1 -0
- package/dist/esm/generated/pagingHelper.d.ts +13 -0
- package/dist/esm/generated/pagingHelper.d.ts.map +1 -0
- package/dist/esm/generated/pagingHelper.js +32 -0
- package/dist/esm/generated/pagingHelper.js.map +1 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +5 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +8 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/tracing.d.ts +6 -0
- package/dist/esm/tracing.d.ts.map +1 -0
- package/dist/esm/tracing.js +14 -0
- package/dist/esm/tracing.js.map +1 -0
- package/dist/react-native/constants.d.ts +2 -0
- package/dist/react-native/constants.d.ts.map +1 -0
- package/dist/react-native/constants.js +4 -0
- package/dist/react-native/constants.js.map +1 -0
- package/dist/react-native/digitalTwinsClient.d.ts +270 -0
- package/dist/react-native/digitalTwinsClient.d.ts.map +1 -0
- package/dist/react-native/digitalTwinsClient.js +406 -0
- package/dist/react-native/digitalTwinsClient.js.map +1 -0
- package/dist/react-native/generated/azureDigitalTwinsAPI.d.ts +19 -0
- package/dist/react-native/generated/azureDigitalTwinsAPI.d.ts.map +1 -0
- package/dist/react-native/generated/azureDigitalTwinsAPI.js +67 -0
- package/dist/react-native/generated/azureDigitalTwinsAPI.js.map +1 -0
- package/dist/react-native/generated/index.d.ts +5 -0
- package/dist/react-native/generated/index.d.ts.map +1 -0
- package/dist/react-native/generated/index.js +13 -0
- package/dist/react-native/generated/index.js.map +1 -0
- package/dist/react-native/generated/models/index.d.ts +335 -0
- package/dist/react-native/generated/models/index.d.ts.map +1 -0
- package/dist/react-native/generated/models/index.js +9 -0
- package/dist/react-native/generated/models/index.js.map +1 -0
- package/dist/react-native/generated/models/mappers.d.ts +23 -0
- package/dist/react-native/generated/models/mappers.d.ts.map +1 -0
- package/dist/react-native/generated/models/mappers.js +472 -0
- package/dist/react-native/generated/models/mappers.js.map +1 -0
- package/dist/react-native/generated/models/parameters.d.ts +27 -0
- package/dist/react-native/generated/models/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/models/parameters.js +277 -0
- package/dist/react-native/generated/models/parameters.js.map +1 -0
- package/dist/react-native/generated/operations/digitalTwinModels.d.ts +106 -0
- package/dist/react-native/generated/operations/digitalTwinModels.d.ts.map +1 -0
- package/dist/react-native/generated/operations/digitalTwinModels.js +290 -0
- package/dist/react-native/generated/operations/digitalTwinModels.js.map +1 -0
- package/dist/react-native/generated/operations/digitalTwins.d.ts +285 -0
- package/dist/react-native/generated/operations/digitalTwins.d.ts.map +1 -0
- package/dist/react-native/generated/operations/digitalTwins.js +745 -0
- package/dist/react-native/generated/operations/digitalTwins.js.map +1 -0
- package/dist/react-native/generated/operations/eventRoutes.d.ts +69 -0
- package/dist/react-native/generated/operations/eventRoutes.d.ts.map +1 -0
- package/dist/react-native/generated/operations/eventRoutes.js +222 -0
- package/dist/react-native/generated/operations/eventRoutes.js.map +1 -0
- package/dist/react-native/generated/operations/index.d.ts +5 -0
- package/dist/react-native/generated/operations/index.d.ts.map +1 -0
- package/dist/react-native/generated/operations/index.js +12 -0
- package/dist/react-native/generated/operations/index.js.map +1 -0
- package/dist/react-native/generated/operations/query.d.ts +28 -0
- package/dist/react-native/generated/operations/query.d.ts.map +1 -0
- package/dist/react-native/generated/operations/query.js +63 -0
- package/dist/react-native/generated/operations/query.js.map +1 -0
- package/dist/react-native/generated/operationsInterfaces/digitalTwinModels.d.ts +78 -0
- package/dist/react-native/generated/operationsInterfaces/digitalTwinModels.d.ts.map +1 -0
- package/dist/react-native/generated/operationsInterfaces/digitalTwinModels.js +9 -0
- package/dist/react-native/generated/operationsInterfaces/digitalTwinModels.js.map +1 -0
- package/dist/react-native/generated/operationsInterfaces/digitalTwins.d.ts +234 -0
- package/dist/react-native/generated/operationsInterfaces/digitalTwins.d.ts.map +1 -0
- package/dist/react-native/generated/operationsInterfaces/digitalTwins.js +9 -0
- package/dist/react-native/generated/operationsInterfaces/digitalTwins.js.map +1 -0
- package/dist/react-native/generated/operationsInterfaces/eventRoutes.d.ts +46 -0
- package/dist/react-native/generated/operationsInterfaces/eventRoutes.d.ts.map +1 -0
- package/dist/react-native/generated/operationsInterfaces/eventRoutes.js +9 -0
- package/dist/react-native/generated/operationsInterfaces/eventRoutes.js.map +1 -0
- package/dist/react-native/generated/operationsInterfaces/index.d.ts +5 -0
- package/dist/react-native/generated/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/generated/operationsInterfaces/index.js +12 -0
- package/dist/react-native/generated/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/generated/operationsInterfaces/query.d.ts +20 -0
- package/dist/react-native/generated/operationsInterfaces/query.d.ts.map +1 -0
- package/dist/react-native/generated/operationsInterfaces/query.js +9 -0
- package/dist/react-native/generated/operationsInterfaces/query.js.map +1 -0
- package/dist/react-native/generated/pagingHelper.d.ts +13 -0
- package/dist/react-native/generated/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/generated/pagingHelper.js +32 -0
- package/dist/react-native/generated/pagingHelper.js.map +1 -0
- package/dist/react-native/index.d.ts +3 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +4 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/logger.d.ts +5 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +8 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/tracing.d.ts +6 -0
- package/dist/react-native/tracing.d.ts.map +1 -0
- package/dist/react-native/tracing.js +14 -0
- package/dist/react-native/tracing.js.map +1 -0
- package/package.json +64 -49
- package/dist/index.js +0 -2613
- package/dist/index.js.map +0 -1
- package/dist-esm/src/digitalTwinsClient.js.map +0 -1
- package/dist-esm/src/generated/azureDigitalTwinsAPI.js.map +0 -1
- package/dist-esm/src/generated/index.js.map +0 -1
- package/dist-esm/src/generated/models/parameters.js.map +0 -1
- package/dist-esm/src/generated/operations/digitalTwinModels.js.map +0 -1
- package/dist-esm/src/generated/operations/digitalTwins.js.map +0 -1
- package/dist-esm/src/generated/operations/eventRoutes.js.map +0 -1
- package/dist-esm/src/generated/operations/index.js.map +0 -1
- package/dist-esm/src/generated/operations/query.js.map +0 -1
- package/dist-esm/src/generated/operationsInterfaces/digitalTwinModels.js.map +0 -1
- package/dist-esm/src/generated/operationsInterfaces/digitalTwins.js.map +0 -1
- package/dist-esm/src/generated/operationsInterfaces/eventRoutes.js.map +0 -1
- package/dist-esm/src/generated/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/generated/operationsInterfaces/query.js.map +0 -1
- package/dist-esm/src/index.js +0 -4
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/tracing.js.map +0 -1
- /package/{dist-esm/src → dist/browser}/constants.js +0 -0
- /package/{dist-esm/src → dist/browser}/constants.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/models/index.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/models/mappers.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/operationsInterfaces/digitalTwinModels.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/operationsInterfaces/digitalTwins.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/operationsInterfaces/eventRoutes.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/operationsInterfaces/query.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/pagingHelper.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/pagingHelper.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/logger.js +0 -0
- /package/{dist-esm/src → dist/browser}/logger.js.map +0 -0
|
@@ -0,0 +1,749 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.DigitalTwinsImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const pagingHelper_js_1 = require("../pagingHelper.js");
|
|
13
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
14
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
15
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
16
|
+
/// <reference lib="esnext.asynciterable" />
|
|
17
|
+
/** Class containing DigitalTwins operations. */
|
|
18
|
+
class DigitalTwinsImpl {
|
|
19
|
+
/**
|
|
20
|
+
* Initialize a new instance of the class DigitalTwins class.
|
|
21
|
+
* @param client Reference to the service client
|
|
22
|
+
*/
|
|
23
|
+
constructor(client) {
|
|
24
|
+
this.client = client;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves the relationships from a digital twin.
|
|
28
|
+
* Status codes:
|
|
29
|
+
* * 200 OK
|
|
30
|
+
* * 400 Bad Request
|
|
31
|
+
* * InvalidArgument - The digital twin id is invalid.
|
|
32
|
+
* * 404 Not Found
|
|
33
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
34
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
35
|
+
* @param options The options parameters.
|
|
36
|
+
*/
|
|
37
|
+
listRelationships(id, options) {
|
|
38
|
+
const iter = this.listRelationshipsPagingAll(id, options);
|
|
39
|
+
return {
|
|
40
|
+
next() {
|
|
41
|
+
return iter.next();
|
|
42
|
+
},
|
|
43
|
+
[Symbol.asyncIterator]() {
|
|
44
|
+
return this;
|
|
45
|
+
},
|
|
46
|
+
byPage: (settings) => {
|
|
47
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
48
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
49
|
+
}
|
|
50
|
+
return this.listRelationshipsPagingPage(id, options, settings);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
listRelationshipsPagingPage(id, options, settings) {
|
|
55
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listRelationshipsPagingPage_1() {
|
|
56
|
+
let result;
|
|
57
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
58
|
+
if (!continuationToken) {
|
|
59
|
+
result = yield tslib_1.__await(this._listRelationships(id, options));
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
63
|
+
yield yield tslib_1.__await(page);
|
|
64
|
+
}
|
|
65
|
+
while (continuationToken) {
|
|
66
|
+
result = yield tslib_1.__await(this._listRelationshipsNext(id, continuationToken, options));
|
|
67
|
+
continuationToken = result.nextLink;
|
|
68
|
+
let page = result.value || [];
|
|
69
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
70
|
+
yield yield tslib_1.__await(page);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
listRelationshipsPagingAll(id, options) {
|
|
75
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listRelationshipsPagingAll_1() {
|
|
76
|
+
var _a, e_1, _b, _c;
|
|
77
|
+
try {
|
|
78
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.listRelationshipsPagingPage(id, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
79
|
+
_c = _f.value;
|
|
80
|
+
_d = false;
|
|
81
|
+
const page = _c;
|
|
82
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
86
|
+
finally {
|
|
87
|
+
try {
|
|
88
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
89
|
+
}
|
|
90
|
+
finally { if (e_1) throw e_1.error; }
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Retrieves all incoming relationship for a digital twin.
|
|
96
|
+
* Status codes:
|
|
97
|
+
* * 200 OK
|
|
98
|
+
* * 400 Bad Request
|
|
99
|
+
* * InvalidArgument - The digital twin id is invalid.
|
|
100
|
+
* * 404 Not Found
|
|
101
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
102
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
103
|
+
* @param options The options parameters.
|
|
104
|
+
*/
|
|
105
|
+
listIncomingRelationships(id, options) {
|
|
106
|
+
const iter = this.listIncomingRelationshipsPagingAll(id, options);
|
|
107
|
+
return {
|
|
108
|
+
next() {
|
|
109
|
+
return iter.next();
|
|
110
|
+
},
|
|
111
|
+
[Symbol.asyncIterator]() {
|
|
112
|
+
return this;
|
|
113
|
+
},
|
|
114
|
+
byPage: (settings) => {
|
|
115
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
116
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
117
|
+
}
|
|
118
|
+
return this.listIncomingRelationshipsPagingPage(id, options, settings);
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
listIncomingRelationshipsPagingPage(id, options, settings) {
|
|
123
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listIncomingRelationshipsPagingPage_1() {
|
|
124
|
+
let result;
|
|
125
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
126
|
+
if (!continuationToken) {
|
|
127
|
+
result = yield tslib_1.__await(this._listIncomingRelationships(id, options));
|
|
128
|
+
let page = result.value || [];
|
|
129
|
+
continuationToken = result.nextLink;
|
|
130
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
131
|
+
yield yield tslib_1.__await(page);
|
|
132
|
+
}
|
|
133
|
+
while (continuationToken) {
|
|
134
|
+
result = yield tslib_1.__await(this._listIncomingRelationshipsNext(id, continuationToken, options));
|
|
135
|
+
continuationToken = result.nextLink;
|
|
136
|
+
let page = result.value || [];
|
|
137
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
138
|
+
yield yield tslib_1.__await(page);
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
listIncomingRelationshipsPagingAll(id, options) {
|
|
143
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listIncomingRelationshipsPagingAll_1() {
|
|
144
|
+
var _a, e_2, _b, _c;
|
|
145
|
+
try {
|
|
146
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.listIncomingRelationshipsPagingPage(id, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
147
|
+
_c = _f.value;
|
|
148
|
+
_d = false;
|
|
149
|
+
const page = _c;
|
|
150
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
154
|
+
finally {
|
|
155
|
+
try {
|
|
156
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
157
|
+
}
|
|
158
|
+
finally { if (e_2) throw e_2.error; }
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Retrieves a digital twin.
|
|
164
|
+
* Status codes:
|
|
165
|
+
* * 200 OK
|
|
166
|
+
* * 400 Bad Request
|
|
167
|
+
* * InvalidArgument - The digital twin id is invalid.
|
|
168
|
+
* * 404 Not Found
|
|
169
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
170
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
171
|
+
* @param options The options parameters.
|
|
172
|
+
*/
|
|
173
|
+
getById(id, options) {
|
|
174
|
+
return this.client.sendOperationRequest({ id, options }, getByIdOperationSpec);
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Adds or replaces a digital twin.
|
|
178
|
+
* Status codes:
|
|
179
|
+
* * 200 OK
|
|
180
|
+
* * 400 Bad Request
|
|
181
|
+
* * InvalidArgument - The digital twin id or payload is invalid.
|
|
182
|
+
* * ModelDecommissioned - The model for the digital twin is decommissioned.
|
|
183
|
+
* * TwinLimitReached - The maximum number of digital twins allowed has been reached.
|
|
184
|
+
* * ValidationFailed - The digital twin payload is not valid.
|
|
185
|
+
* * 412 Precondition Failed
|
|
186
|
+
* * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.
|
|
187
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
188
|
+
* @param twin The digital twin instance being added. If provided, the $dtId property is ignored.
|
|
189
|
+
* @param options The options parameters.
|
|
190
|
+
*/
|
|
191
|
+
add(id, twin, options) {
|
|
192
|
+
return this.client.sendOperationRequest({ id, twin, options }, addOperationSpec);
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Deletes a digital twin. All relationships referencing the digital twin must already be deleted.
|
|
196
|
+
* Status codes:
|
|
197
|
+
* * 204 No Content
|
|
198
|
+
* * 400 Bad Request
|
|
199
|
+
* * InvalidArgument - The digital twin id is invalid.
|
|
200
|
+
* * RelationshipsNotDeleted - The digital twin contains relationships.
|
|
201
|
+
* * 404 Not Found
|
|
202
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
203
|
+
* * 412 Precondition Failed
|
|
204
|
+
* * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.
|
|
205
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
206
|
+
* @param options The options parameters.
|
|
207
|
+
*/
|
|
208
|
+
delete(id, options) {
|
|
209
|
+
return this.client.sendOperationRequest({ id, options }, deleteOperationSpec);
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Updates a digital twin.
|
|
213
|
+
* Status codes:
|
|
214
|
+
* * 204 No Content
|
|
215
|
+
* * 400 Bad Request
|
|
216
|
+
* * InvalidArgument - The digital twin id or payload is invalid.
|
|
217
|
+
* * JsonPatchInvalid - The JSON Patch provided is invalid.
|
|
218
|
+
* * ValidationFailed - Applying the patch results in an invalid digital twin.
|
|
219
|
+
* * 404 Not Found
|
|
220
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
221
|
+
* * 412 Precondition Failed
|
|
222
|
+
* * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.
|
|
223
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
224
|
+
* @param patchDocument An update specification described by JSON Patch. Updates to property values and
|
|
225
|
+
* $model elements may happen in the same request. Operations are limited to add, replace and remove.
|
|
226
|
+
* @param options The options parameters.
|
|
227
|
+
*/
|
|
228
|
+
update(id, patchDocument, options) {
|
|
229
|
+
return this.client.sendOperationRequest({ id, patchDocument, options }, updateOperationSpec);
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Retrieves a relationship between two digital twins.
|
|
233
|
+
* Status codes:
|
|
234
|
+
* * 200 OK
|
|
235
|
+
* * 400 Bad Request
|
|
236
|
+
* * InvalidArgument - The digital twin id or relationship id is invalid.
|
|
237
|
+
* * 404 Not Found
|
|
238
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
239
|
+
* * RelationshipNotFound - The relationship was not found.
|
|
240
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
241
|
+
* @param relationshipId The id of the relationship. The id is unique within the digital twin and case
|
|
242
|
+
* sensitive.
|
|
243
|
+
* @param options The options parameters.
|
|
244
|
+
*/
|
|
245
|
+
getRelationshipById(id, relationshipId, options) {
|
|
246
|
+
return this.client.sendOperationRequest({ id, relationshipId, options }, getRelationshipByIdOperationSpec);
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Adds a relationship between two digital twins.
|
|
250
|
+
* Status codes:
|
|
251
|
+
* * 200 OK
|
|
252
|
+
* * 400 Bad Request
|
|
253
|
+
* * InvalidArgument - The digital twin id, relationship id, or payload is invalid.
|
|
254
|
+
* * InvalidRelationship - The relationship is invalid.
|
|
255
|
+
* * OperationNotAllowed - The relationship cannot connect to the same digital twin.
|
|
256
|
+
* * ValidationFailed - The relationship content is invalid.
|
|
257
|
+
* * 404 Not Found
|
|
258
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
259
|
+
* * TargetTwinNotFound - The digital twin target of the relationship was not found.
|
|
260
|
+
* * 412 Precondition Failed
|
|
261
|
+
* * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.
|
|
262
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
263
|
+
* @param relationshipId The id of the relationship. The id is unique within the digital twin and case
|
|
264
|
+
* sensitive.
|
|
265
|
+
* @param relationship The data for the relationship.
|
|
266
|
+
* @param options The options parameters.
|
|
267
|
+
*/
|
|
268
|
+
addRelationship(id, relationshipId, relationship, options) {
|
|
269
|
+
return this.client.sendOperationRequest({ id, relationshipId, relationship, options }, addRelationshipOperationSpec);
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Deletes a relationship between two digital twins.
|
|
273
|
+
* Status codes:
|
|
274
|
+
* * 204 No Content
|
|
275
|
+
* * 400 Bad Request
|
|
276
|
+
* * InvalidArgument - The digital twin id or relationship id is invalid.
|
|
277
|
+
* * 404 Not Found
|
|
278
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
279
|
+
* * RelationshipNotFound - The relationship was not found.
|
|
280
|
+
* * 412 Precondition Failed
|
|
281
|
+
* * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.
|
|
282
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
283
|
+
* @param relationshipId The id of the relationship. The id is unique within the digital twin and case
|
|
284
|
+
* sensitive.
|
|
285
|
+
* @param options The options parameters.
|
|
286
|
+
*/
|
|
287
|
+
deleteRelationship(id, relationshipId, options) {
|
|
288
|
+
return this.client.sendOperationRequest({ id, relationshipId, options }, deleteRelationshipOperationSpec);
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Updates the properties on a relationship between two digital twins.
|
|
292
|
+
* Status codes:
|
|
293
|
+
* * 204 No Content
|
|
294
|
+
* * 400 Bad Request
|
|
295
|
+
* * InvalidArgument - The digital twin id or relationship id is invalid.
|
|
296
|
+
* * InvalidRelationship - The relationship is invalid.
|
|
297
|
+
* * JsonPatchInvalid - The JSON Patch provided is invalid.
|
|
298
|
+
* * ValidationFailed - The relationship content is invalid.
|
|
299
|
+
* * 404 Not Found
|
|
300
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
301
|
+
* * RelationshipNotFound - The relationship was not found.
|
|
302
|
+
* * 409 Conflict
|
|
303
|
+
* * RelationshipAlreadyExists - The relationship already exists.
|
|
304
|
+
* * 412 Precondition Failed
|
|
305
|
+
* * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.
|
|
306
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
307
|
+
* @param relationshipId The id of the relationship. The id is unique within the digital twin and case
|
|
308
|
+
* sensitive.
|
|
309
|
+
* @param patchDocument JSON Patch description of the update to the relationship properties.
|
|
310
|
+
* @param options The options parameters.
|
|
311
|
+
*/
|
|
312
|
+
updateRelationship(id, relationshipId, patchDocument, options) {
|
|
313
|
+
return this.client.sendOperationRequest({ id, relationshipId, patchDocument, options }, updateRelationshipOperationSpec);
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Retrieves the relationships from a digital twin.
|
|
317
|
+
* Status codes:
|
|
318
|
+
* * 200 OK
|
|
319
|
+
* * 400 Bad Request
|
|
320
|
+
* * InvalidArgument - The digital twin id is invalid.
|
|
321
|
+
* * 404 Not Found
|
|
322
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
323
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
324
|
+
* @param options The options parameters.
|
|
325
|
+
*/
|
|
326
|
+
_listRelationships(id, options) {
|
|
327
|
+
return this.client.sendOperationRequest({ id, options }, listRelationshipsOperationSpec);
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Retrieves all incoming relationship for a digital twin.
|
|
331
|
+
* Status codes:
|
|
332
|
+
* * 200 OK
|
|
333
|
+
* * 400 Bad Request
|
|
334
|
+
* * InvalidArgument - The digital twin id is invalid.
|
|
335
|
+
* * 404 Not Found
|
|
336
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
337
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
338
|
+
* @param options The options parameters.
|
|
339
|
+
*/
|
|
340
|
+
_listIncomingRelationships(id, options) {
|
|
341
|
+
return this.client.sendOperationRequest({ id, options }, listIncomingRelationshipsOperationSpec);
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Sends telemetry on behalf of a digital twin.
|
|
345
|
+
* Status codes:
|
|
346
|
+
* * 204 No Content
|
|
347
|
+
* * 400 Bad Request
|
|
348
|
+
* * InvalidArgument - The digital twin id or message id is invalid.
|
|
349
|
+
* * ValidationFailed - The telemetry content is invalid.
|
|
350
|
+
* * 404 Not Found
|
|
351
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
352
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
353
|
+
* @param messageId A unique message identifier (in the scope of the digital twin id) that is commonly
|
|
354
|
+
* used for de-duplicating messages.
|
|
355
|
+
* @param telemetry The telemetry measurements to send from the digital twin.
|
|
356
|
+
* @param options The options parameters.
|
|
357
|
+
*/
|
|
358
|
+
sendTelemetry(id, messageId, telemetry, options) {
|
|
359
|
+
return this.client.sendOperationRequest({ id, messageId, telemetry, options }, sendTelemetryOperationSpec);
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Sends telemetry on behalf of a component in a digital twin.
|
|
363
|
+
* Status codes:
|
|
364
|
+
* * 204 No Content
|
|
365
|
+
* * 400 Bad Request
|
|
366
|
+
* * InvalidArgument - The digital twin id, message id, or component path is invalid.
|
|
367
|
+
* * ValidationFailed - The telemetry content is invalid.
|
|
368
|
+
* * 404 Not Found
|
|
369
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
370
|
+
* * ComponentNotFound - The component path was not found.
|
|
371
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
372
|
+
* @param componentPath The name of the DTDL component.
|
|
373
|
+
* @param messageId A unique message identifier (in the scope of the digital twin id) that is commonly
|
|
374
|
+
* used for de-duplicating messages.
|
|
375
|
+
* @param telemetry The telemetry measurements to send from the digital twin's component.
|
|
376
|
+
* @param options The options parameters.
|
|
377
|
+
*/
|
|
378
|
+
sendComponentTelemetry(id, componentPath, messageId, telemetry, options) {
|
|
379
|
+
return this.client.sendOperationRequest({ id, componentPath, messageId, telemetry, options }, sendComponentTelemetryOperationSpec);
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* Retrieves a component from a digital twin.
|
|
383
|
+
* Status codes:
|
|
384
|
+
* * 200 OK
|
|
385
|
+
* * 400 Bad Request
|
|
386
|
+
* * InvalidArgument - The digital twin id or component path is invalid.
|
|
387
|
+
* * 404 Not Found
|
|
388
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
389
|
+
* * ComponentNotFound - The component path was not found.
|
|
390
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
391
|
+
* @param componentPath The name of the DTDL component.
|
|
392
|
+
* @param options The options parameters.
|
|
393
|
+
*/
|
|
394
|
+
getComponent(id, componentPath, options) {
|
|
395
|
+
return this.client.sendOperationRequest({ id, componentPath, options }, getComponentOperationSpec);
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Updates a component on a digital twin.
|
|
399
|
+
* Status codes:
|
|
400
|
+
* * 204 No Content
|
|
401
|
+
* * 400 Bad Request
|
|
402
|
+
* * InvalidArgument - The digital twin id, component path, or payload is invalid.
|
|
403
|
+
* * JsonPatchInvalid - The JSON Patch provided is invalid.
|
|
404
|
+
* * ValidationFailed - Applying the patch results in an invalid digital twin.
|
|
405
|
+
* * 404 Not Found
|
|
406
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
407
|
+
* * 412 Precondition Failed
|
|
408
|
+
* * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.
|
|
409
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
410
|
+
* @param componentPath The name of the DTDL component.
|
|
411
|
+
* @param patchDocument An update specification described by JSON Patch. Updates to property values and
|
|
412
|
+
* $model elements may happen in the same request. Operations are limited to add, replace and remove.
|
|
413
|
+
* @param options The options parameters.
|
|
414
|
+
*/
|
|
415
|
+
updateComponent(id, componentPath, patchDocument, options) {
|
|
416
|
+
return this.client.sendOperationRequest({ id, componentPath, patchDocument, options }, updateComponentOperationSpec);
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* ListRelationshipsNext
|
|
420
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
421
|
+
* @param nextLink The nextLink from the previous successful call to the ListRelationships method.
|
|
422
|
+
* @param options The options parameters.
|
|
423
|
+
*/
|
|
424
|
+
_listRelationshipsNext(id, nextLink, options) {
|
|
425
|
+
return this.client.sendOperationRequest({ id, nextLink, options }, listRelationshipsNextOperationSpec);
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* ListIncomingRelationshipsNext
|
|
429
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
430
|
+
* @param nextLink The nextLink from the previous successful call to the ListIncomingRelationships
|
|
431
|
+
* method.
|
|
432
|
+
* @param options The options parameters.
|
|
433
|
+
*/
|
|
434
|
+
_listIncomingRelationshipsNext(id, nextLink, options) {
|
|
435
|
+
return this.client.sendOperationRequest({ id, nextLink, options }, listIncomingRelationshipsNextOperationSpec);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
exports.DigitalTwinsImpl = DigitalTwinsImpl;
|
|
439
|
+
// Operation Specifications
|
|
440
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
441
|
+
const getByIdOperationSpec = {
|
|
442
|
+
path: "/digitaltwins/{id}",
|
|
443
|
+
httpMethod: "GET",
|
|
444
|
+
responses: {
|
|
445
|
+
200: {
|
|
446
|
+
bodyMapper: {
|
|
447
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
448
|
+
},
|
|
449
|
+
headersMapper: Mappers.DigitalTwinsGetByIdHeaders
|
|
450
|
+
},
|
|
451
|
+
default: {
|
|
452
|
+
bodyMapper: Mappers.ErrorResponse
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
queryParameters: [Parameters.apiVersion],
|
|
456
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
457
|
+
headerParameters: [Parameters.accept],
|
|
458
|
+
serializer
|
|
459
|
+
};
|
|
460
|
+
const addOperationSpec = {
|
|
461
|
+
path: "/digitaltwins/{id}",
|
|
462
|
+
httpMethod: "PUT",
|
|
463
|
+
responses: {
|
|
464
|
+
200: {
|
|
465
|
+
bodyMapper: {
|
|
466
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
467
|
+
},
|
|
468
|
+
headersMapper: Mappers.DigitalTwinsAddHeaders
|
|
469
|
+
},
|
|
470
|
+
202: {},
|
|
471
|
+
default: {
|
|
472
|
+
bodyMapper: Mappers.ErrorResponse
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
requestBody: Parameters.twin,
|
|
476
|
+
queryParameters: [Parameters.apiVersion],
|
|
477
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
478
|
+
headerParameters: [
|
|
479
|
+
Parameters.contentType,
|
|
480
|
+
Parameters.accept,
|
|
481
|
+
Parameters.ifNoneMatch
|
|
482
|
+
],
|
|
483
|
+
mediaType: "json",
|
|
484
|
+
serializer
|
|
485
|
+
};
|
|
486
|
+
const deleteOperationSpec = {
|
|
487
|
+
path: "/digitaltwins/{id}",
|
|
488
|
+
httpMethod: "DELETE",
|
|
489
|
+
responses: {
|
|
490
|
+
204: {},
|
|
491
|
+
default: {
|
|
492
|
+
bodyMapper: Mappers.ErrorResponse
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
queryParameters: [Parameters.apiVersion],
|
|
496
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
497
|
+
headerParameters: [Parameters.accept, Parameters.ifMatch],
|
|
498
|
+
serializer
|
|
499
|
+
};
|
|
500
|
+
const updateOperationSpec = {
|
|
501
|
+
path: "/digitaltwins/{id}",
|
|
502
|
+
httpMethod: "PATCH",
|
|
503
|
+
responses: {
|
|
504
|
+
202: {},
|
|
505
|
+
204: {
|
|
506
|
+
headersMapper: Mappers.DigitalTwinsUpdateHeaders
|
|
507
|
+
},
|
|
508
|
+
default: {
|
|
509
|
+
bodyMapper: Mappers.ErrorResponse
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
requestBody: Parameters.patchDocument,
|
|
513
|
+
queryParameters: [Parameters.apiVersion],
|
|
514
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
515
|
+
headerParameters: [
|
|
516
|
+
Parameters.accept,
|
|
517
|
+
Parameters.contentType1,
|
|
518
|
+
Parameters.ifMatch
|
|
519
|
+
],
|
|
520
|
+
mediaType: "json",
|
|
521
|
+
serializer
|
|
522
|
+
};
|
|
523
|
+
const getRelationshipByIdOperationSpec = {
|
|
524
|
+
path: "/digitaltwins/{id}/relationships/{relationshipId}",
|
|
525
|
+
httpMethod: "GET",
|
|
526
|
+
responses: {
|
|
527
|
+
200: {
|
|
528
|
+
bodyMapper: {
|
|
529
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
530
|
+
},
|
|
531
|
+
headersMapper: Mappers.DigitalTwinsGetRelationshipByIdHeaders
|
|
532
|
+
},
|
|
533
|
+
default: {
|
|
534
|
+
bodyMapper: Mappers.ErrorResponse
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
queryParameters: [Parameters.apiVersion],
|
|
538
|
+
urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],
|
|
539
|
+
headerParameters: [Parameters.accept],
|
|
540
|
+
serializer
|
|
541
|
+
};
|
|
542
|
+
const addRelationshipOperationSpec = {
|
|
543
|
+
path: "/digitaltwins/{id}/relationships/{relationshipId}",
|
|
544
|
+
httpMethod: "PUT",
|
|
545
|
+
responses: {
|
|
546
|
+
200: {
|
|
547
|
+
bodyMapper: {
|
|
548
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
549
|
+
},
|
|
550
|
+
headersMapper: Mappers.DigitalTwinsAddRelationshipHeaders
|
|
551
|
+
},
|
|
552
|
+
default: {
|
|
553
|
+
bodyMapper: Mappers.ErrorResponse
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
requestBody: Parameters.relationship,
|
|
557
|
+
queryParameters: [Parameters.apiVersion],
|
|
558
|
+
urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],
|
|
559
|
+
headerParameters: [
|
|
560
|
+
Parameters.contentType,
|
|
561
|
+
Parameters.accept,
|
|
562
|
+
Parameters.ifNoneMatch
|
|
563
|
+
],
|
|
564
|
+
mediaType: "json",
|
|
565
|
+
serializer
|
|
566
|
+
};
|
|
567
|
+
const deleteRelationshipOperationSpec = {
|
|
568
|
+
path: "/digitaltwins/{id}/relationships/{relationshipId}",
|
|
569
|
+
httpMethod: "DELETE",
|
|
570
|
+
responses: {
|
|
571
|
+
204: {},
|
|
572
|
+
default: {
|
|
573
|
+
bodyMapper: Mappers.ErrorResponse
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
queryParameters: [Parameters.apiVersion],
|
|
577
|
+
urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],
|
|
578
|
+
headerParameters: [Parameters.accept, Parameters.ifMatch],
|
|
579
|
+
serializer
|
|
580
|
+
};
|
|
581
|
+
const updateRelationshipOperationSpec = {
|
|
582
|
+
path: "/digitaltwins/{id}/relationships/{relationshipId}",
|
|
583
|
+
httpMethod: "PATCH",
|
|
584
|
+
responses: {
|
|
585
|
+
204: {
|
|
586
|
+
headersMapper: Mappers.DigitalTwinsUpdateRelationshipHeaders
|
|
587
|
+
},
|
|
588
|
+
default: {
|
|
589
|
+
bodyMapper: Mappers.ErrorResponse
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
requestBody: Parameters.patchDocument,
|
|
593
|
+
queryParameters: [Parameters.apiVersion],
|
|
594
|
+
urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],
|
|
595
|
+
headerParameters: [
|
|
596
|
+
Parameters.accept,
|
|
597
|
+
Parameters.contentType1,
|
|
598
|
+
Parameters.ifMatch
|
|
599
|
+
],
|
|
600
|
+
mediaType: "json",
|
|
601
|
+
serializer
|
|
602
|
+
};
|
|
603
|
+
const listRelationshipsOperationSpec = {
|
|
604
|
+
path: "/digitaltwins/{id}/relationships",
|
|
605
|
+
httpMethod: "GET",
|
|
606
|
+
responses: {
|
|
607
|
+
200: {
|
|
608
|
+
bodyMapper: Mappers.RelationshipCollection
|
|
609
|
+
},
|
|
610
|
+
default: {
|
|
611
|
+
bodyMapper: Mappers.ErrorResponse
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
queryParameters: [Parameters.apiVersion, Parameters.relationshipName],
|
|
615
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
616
|
+
headerParameters: [Parameters.accept],
|
|
617
|
+
serializer
|
|
618
|
+
};
|
|
619
|
+
const listIncomingRelationshipsOperationSpec = {
|
|
620
|
+
path: "/digitaltwins/{id}/incomingrelationships",
|
|
621
|
+
httpMethod: "GET",
|
|
622
|
+
responses: {
|
|
623
|
+
200: {
|
|
624
|
+
bodyMapper: Mappers.IncomingRelationshipCollection
|
|
625
|
+
},
|
|
626
|
+
default: {
|
|
627
|
+
bodyMapper: Mappers.ErrorResponse
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
queryParameters: [Parameters.apiVersion],
|
|
631
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
632
|
+
headerParameters: [Parameters.accept],
|
|
633
|
+
serializer
|
|
634
|
+
};
|
|
635
|
+
const sendTelemetryOperationSpec = {
|
|
636
|
+
path: "/digitaltwins/{id}/telemetry",
|
|
637
|
+
httpMethod: "POST",
|
|
638
|
+
responses: {
|
|
639
|
+
204: {},
|
|
640
|
+
default: {
|
|
641
|
+
bodyMapper: Mappers.ErrorResponse
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
requestBody: Parameters.telemetry,
|
|
645
|
+
queryParameters: [Parameters.apiVersion],
|
|
646
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
647
|
+
headerParameters: [
|
|
648
|
+
Parameters.contentType,
|
|
649
|
+
Parameters.accept,
|
|
650
|
+
Parameters.messageId,
|
|
651
|
+
Parameters.telemetrySourceTime
|
|
652
|
+
],
|
|
653
|
+
mediaType: "json",
|
|
654
|
+
serializer
|
|
655
|
+
};
|
|
656
|
+
const sendComponentTelemetryOperationSpec = {
|
|
657
|
+
path: "/digitaltwins/{id}/components/{componentPath}/telemetry",
|
|
658
|
+
httpMethod: "POST",
|
|
659
|
+
responses: {
|
|
660
|
+
204: {},
|
|
661
|
+
default: {
|
|
662
|
+
bodyMapper: Mappers.ErrorResponse
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
requestBody: Parameters.telemetry,
|
|
666
|
+
queryParameters: [Parameters.apiVersion],
|
|
667
|
+
urlParameters: [Parameters.$host, Parameters.id, Parameters.componentPath],
|
|
668
|
+
headerParameters: [
|
|
669
|
+
Parameters.contentType,
|
|
670
|
+
Parameters.accept,
|
|
671
|
+
Parameters.messageId,
|
|
672
|
+
Parameters.telemetrySourceTime
|
|
673
|
+
],
|
|
674
|
+
mediaType: "json",
|
|
675
|
+
serializer
|
|
676
|
+
};
|
|
677
|
+
const getComponentOperationSpec = {
|
|
678
|
+
path: "/digitaltwins/{id}/components/{componentPath}",
|
|
679
|
+
httpMethod: "GET",
|
|
680
|
+
responses: {
|
|
681
|
+
200: {
|
|
682
|
+
bodyMapper: {
|
|
683
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
684
|
+
},
|
|
685
|
+
headersMapper: Mappers.DigitalTwinsGetComponentHeaders
|
|
686
|
+
},
|
|
687
|
+
default: {
|
|
688
|
+
bodyMapper: Mappers.ErrorResponse
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
queryParameters: [Parameters.apiVersion],
|
|
692
|
+
urlParameters: [Parameters.$host, Parameters.id, Parameters.componentPath],
|
|
693
|
+
headerParameters: [Parameters.accept],
|
|
694
|
+
serializer
|
|
695
|
+
};
|
|
696
|
+
const updateComponentOperationSpec = {
|
|
697
|
+
path: "/digitaltwins/{id}/components/{componentPath}",
|
|
698
|
+
httpMethod: "PATCH",
|
|
699
|
+
responses: {
|
|
700
|
+
202: {},
|
|
701
|
+
204: {
|
|
702
|
+
headersMapper: Mappers.DigitalTwinsUpdateComponentHeaders
|
|
703
|
+
},
|
|
704
|
+
default: {
|
|
705
|
+
bodyMapper: Mappers.ErrorResponse
|
|
706
|
+
}
|
|
707
|
+
},
|
|
708
|
+
requestBody: Parameters.patchDocument,
|
|
709
|
+
queryParameters: [Parameters.apiVersion],
|
|
710
|
+
urlParameters: [Parameters.$host, Parameters.id, Parameters.componentPath],
|
|
711
|
+
headerParameters: [
|
|
712
|
+
Parameters.accept,
|
|
713
|
+
Parameters.contentType1,
|
|
714
|
+
Parameters.ifMatch
|
|
715
|
+
],
|
|
716
|
+
mediaType: "json",
|
|
717
|
+
serializer
|
|
718
|
+
};
|
|
719
|
+
const listRelationshipsNextOperationSpec = {
|
|
720
|
+
path: "{nextLink}",
|
|
721
|
+
httpMethod: "GET",
|
|
722
|
+
responses: {
|
|
723
|
+
200: {
|
|
724
|
+
bodyMapper: Mappers.RelationshipCollection
|
|
725
|
+
},
|
|
726
|
+
default: {
|
|
727
|
+
bodyMapper: Mappers.ErrorResponse
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
urlParameters: [Parameters.$host, Parameters.id, Parameters.nextLink],
|
|
731
|
+
headerParameters: [Parameters.accept],
|
|
732
|
+
serializer
|
|
733
|
+
};
|
|
734
|
+
const listIncomingRelationshipsNextOperationSpec = {
|
|
735
|
+
path: "{nextLink}",
|
|
736
|
+
httpMethod: "GET",
|
|
737
|
+
responses: {
|
|
738
|
+
200: {
|
|
739
|
+
bodyMapper: Mappers.IncomingRelationshipCollection
|
|
740
|
+
},
|
|
741
|
+
default: {
|
|
742
|
+
bodyMapper: Mappers.ErrorResponse
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
urlParameters: [Parameters.$host, Parameters.id, Parameters.nextLink],
|
|
746
|
+
headerParameters: [Parameters.accept],
|
|
747
|
+
serializer
|
|
748
|
+
};
|
|
749
|
+
//# sourceMappingURL=digitalTwins.js.map
|