@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 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../src/generated/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,kBAAkB,IAAI,wBAAwB,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QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;SACjC;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAuB;IAC3C,aAAa,EAAE,WAAW;IAC1B,MAAM,EAAE;QACN,cAAc,EAAE,YAAY;QAC5B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,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} from \"@azure/core-client\";\nimport {\n QuerySpecification as QuerySpecificationMapper,\n EventRoute as EventRouteMapper\n} from \"../models/mappers.js\";\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: {\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\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 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: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n collectionFormat: \"Multi\"\n};\n\nexport const includeModelDefinition: OperationQueryParameter = {\n parameterPath: [\"options\", \"includeModelDefinition\"],\n mapper: {\n defaultValue: false,\n serializedName: \"includeModelDefinition\",\n type: {\n name: \"Boolean\"\n }\n }\n};\n\nexport const resultsPerPage: OperationParameter = {\n parameterPath: [\"options\", \"resultsPerPage\"],\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: {\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\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: \"Dictionary\",\n value: { type: { 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: {\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\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: \"Dictionary\",\n value: { type: { 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: \"Dictionary\",\n value: { type: { 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"]}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { DigitalTwinModels } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { AzureDigitalTwinsAPI } from "../azureDigitalTwinsAPI.js";
|
|
4
|
+
import { DigitalTwinsModelData, DigitalTwinModelsListOptionalParams, DigitalTwinModelsAddOptionalParams, DigitalTwinModelsAddResponse, DigitalTwinModelsGetByIdOptionalParams, DigitalTwinModelsGetByIdResponse, DigitalTwinModelsUpdateOptionalParams, DigitalTwinModelsDeleteOptionalParams } from "../models/index.js";
|
|
5
|
+
/** Class containing DigitalTwinModels operations. */
|
|
6
|
+
export declare class DigitalTwinModelsImpl implements DigitalTwinModels {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class DigitalTwinModels class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: AzureDigitalTwinsAPI);
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves model metadata and, optionally, model definitions.
|
|
15
|
+
* Status codes:
|
|
16
|
+
* * 200 OK
|
|
17
|
+
* * 400 Bad Request
|
|
18
|
+
* * InvalidArgument - The model id is invalid.
|
|
19
|
+
* * LimitExceeded - The maximum number of model ids allowed in 'dependenciesFor' has been reached.
|
|
20
|
+
* * 404 Not Found
|
|
21
|
+
* * ModelNotFound - The model was not found.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
list(options?: DigitalTwinModelsListOptionalParams): PagedAsyncIterableIterator<DigitalTwinsModelData>;
|
|
25
|
+
private listPagingPage;
|
|
26
|
+
private listPagingAll;
|
|
27
|
+
/**
|
|
28
|
+
* Uploads one or more models. When any error occurs, no models are uploaded.
|
|
29
|
+
* Status codes:
|
|
30
|
+
* * 201 Created
|
|
31
|
+
* * 400 Bad Request
|
|
32
|
+
* * DTDLParserError - The models provided are not valid DTDL.
|
|
33
|
+
* * InvalidArgument - The model id is invalid.
|
|
34
|
+
* * LimitExceeded - The maximum number of model ids allowed in 'dependenciesFor' has been reached.
|
|
35
|
+
* * ModelVersionNotSupported - The version of DTDL used is not supported.
|
|
36
|
+
* * 409 Conflict
|
|
37
|
+
* * ModelAlreadyExists - The model provided already exists.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
add(options?: DigitalTwinModelsAddOptionalParams): Promise<DigitalTwinModelsAddResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* Retrieves model metadata and, optionally, model definitions.
|
|
43
|
+
* Status codes:
|
|
44
|
+
* * 200 OK
|
|
45
|
+
* * 400 Bad Request
|
|
46
|
+
* * InvalidArgument - The model id is invalid.
|
|
47
|
+
* * LimitExceeded - The maximum number of model ids allowed in 'dependenciesFor' has been reached.
|
|
48
|
+
* * 404 Not Found
|
|
49
|
+
* * ModelNotFound - The model was not found.
|
|
50
|
+
* @param options The options parameters.
|
|
51
|
+
*/
|
|
52
|
+
private _list;
|
|
53
|
+
/**
|
|
54
|
+
* Retrieves model metadata and optionally the model definition.
|
|
55
|
+
* Status codes:
|
|
56
|
+
* * 200 OK
|
|
57
|
+
* * 400 Bad Request
|
|
58
|
+
* * InvalidArgument - The model id is invalid.
|
|
59
|
+
* * MissingArgument - The model id was not provided.
|
|
60
|
+
* * 404 Not Found
|
|
61
|
+
* * ModelNotFound - The model was not found.
|
|
62
|
+
* @param id The id for the model. The id is globally unique and case sensitive.
|
|
63
|
+
* @param options The options parameters.
|
|
64
|
+
*/
|
|
65
|
+
getById(id: string, options?: DigitalTwinModelsGetByIdOptionalParams): Promise<DigitalTwinModelsGetByIdResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* Updates the metadata for a model.
|
|
68
|
+
* Status codes:
|
|
69
|
+
* * 204 No Content
|
|
70
|
+
* * 400 Bad Request
|
|
71
|
+
* * InvalidArgument - The model id is invalid.
|
|
72
|
+
* * JsonPatchInvalid - The JSON Patch provided is invalid.
|
|
73
|
+
* * MissingArgument - The model id was not provided.
|
|
74
|
+
* * 404 Not Found
|
|
75
|
+
* * ModelNotFound - The model was not found.
|
|
76
|
+
* * 409 Conflict
|
|
77
|
+
* * ModelReferencesNotDecommissioned - The model refers to models that are not decommissioned.
|
|
78
|
+
* @param id The id for the model. The id is globally unique and case sensitive.
|
|
79
|
+
* @param updateModel An update specification described by JSON Patch. Only the decommissioned property
|
|
80
|
+
* can be replaced.
|
|
81
|
+
* @param options The options parameters.
|
|
82
|
+
*/
|
|
83
|
+
update(id: string, updateModel: Record<string, unknown>[], options?: DigitalTwinModelsUpdateOptionalParams): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Deletes a model. A model can only be deleted if no other models reference it.
|
|
86
|
+
* Status codes:
|
|
87
|
+
* * 204 No Content
|
|
88
|
+
* * 400 Bad Request
|
|
89
|
+
* * InvalidArgument - The model id is invalid.
|
|
90
|
+
* * MissingArgument - The model id was not provided.
|
|
91
|
+
* * 404 Not Found
|
|
92
|
+
* * ModelNotFound - The model was not found.
|
|
93
|
+
* * 409 Conflict
|
|
94
|
+
* * ModelReferencesNotDeleted - The model refers to models that are not deleted.
|
|
95
|
+
* @param id The id for the model. The id is globally unique and case sensitive.
|
|
96
|
+
* @param options The options parameters.
|
|
97
|
+
*/
|
|
98
|
+
delete(id: string, options?: DigitalTwinModelsDeleteOptionalParams): Promise<void>;
|
|
99
|
+
/**
|
|
100
|
+
* ListNext
|
|
101
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
102
|
+
* @param options The options parameters.
|
|
103
|
+
*/
|
|
104
|
+
private _listNext;
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=digitalTwinModels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"digitalTwinModels.d.ts","sourceRoot":"","sources":["../../../../src/generated/operations/digitalTwinModels.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAIrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EACL,qBAAqB,EAErB,mCAAmC,EAEnC,kCAAkC,EAClC,4BAA4B,EAC5B,sCAAsC,EACtC,gCAAgC,EAChC,qCAAqC,EACrC,qCAAqC,EAEtC,MAAM,oBAAoB,CAAC;AAG5B,qDAAqD;AACrD,qBAAa,qBAAsB,YAAW,iBAAiB;IAC7D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAE9C;;;OAGG;gBACS,MAAM,EAAE,oBAAoB;IAIxC;;;;;;;;;;OAUG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,mCAAmC,GAC5C,0BAA0B,CAAC,qBAAqB,CAAC;YAkBrC,cAAc;YAsBd,aAAa;IAQ5B;;;;;;;;;;;;OAYG;IACH,GAAG,CACD,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,4BAA4B,CAAC;IAIxC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,KAAK;IAMb;;;;;;;;;;;OAWG;IACH,OAAO,CACL,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;IAO5C;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EACtC,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
10
|
import * as coreClient from "@azure/core-client";
|
|
11
|
-
import * as Mappers from "../models/mappers";
|
|
12
|
-
import * as Parameters from "../models/parameters";
|
|
11
|
+
import * as Mappers from "../models/mappers.js";
|
|
12
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
13
|
/// <reference lib="esnext.asynciterable" />
|
|
14
14
|
/** Class containing DigitalTwinModels operations. */
|
|
15
15
|
export class DigitalTwinModelsImpl {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"digitalTwinModels.js","sourceRoot":"","sources":["../../../../src/generated/operations/digitalTwinModels.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC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MAAM,EAAE,UAAU,CAAC,YAAY,CAAC;IAC9D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,cAAc;IACpB,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,CAAC;IAChD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oCAAoC;SACzD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,cAAc,CAAC;IAChE,UAAU;CACX,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { DigitalTwinModels } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureDigitalTwinsAPI } from \"../azureDigitalTwinsAPI.js\";\nimport {\n DigitalTwinsModelData,\n DigitalTwinModelsListNextOptionalParams,\n DigitalTwinModelsListOptionalParams,\n DigitalTwinModelsListResponse,\n DigitalTwinModelsAddOptionalParams,\n DigitalTwinModelsAddResponse,\n DigitalTwinModelsGetByIdOptionalParams,\n DigitalTwinModelsGetByIdResponse,\n DigitalTwinModelsUpdateOptionalParams,\n DigitalTwinModelsDeleteOptionalParams,\n DigitalTwinModelsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DigitalTwinModels operations. */\nexport class DigitalTwinModelsImpl implements DigitalTwinModels {\n private readonly client: AzureDigitalTwinsAPI;\n\n /**\n * Initialize a new instance of the class DigitalTwinModels class.\n * @param client Reference to the service client\n */\n constructor(client: AzureDigitalTwinsAPI) {\n this.client = client;\n }\n\n /**\n * Retrieves model metadata and, optionally, model definitions.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The model id is invalid.\n * * LimitExceeded - The maximum number of model ids allowed in 'dependenciesFor' has been reached.\n * * 404 Not Found\n * * ModelNotFound - The model was not found.\n * @param options The options parameters.\n */\n public list(\n options?: DigitalTwinModelsListOptionalParams\n ): PagedAsyncIterableIterator<DigitalTwinsModelData> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: DigitalTwinModelsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<DigitalTwinsModelData[]> {\n let result: DigitalTwinModelsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: DigitalTwinModelsListOptionalParams\n ): AsyncIterableIterator<DigitalTwinsModelData> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Uploads one or more models. When any error occurs, no models are uploaded.\n * Status codes:\n * * 201 Created\n * * 400 Bad Request\n * * DTDLParserError - The models provided are not valid DTDL.\n * * InvalidArgument - The model id is invalid.\n * * LimitExceeded - The maximum number of model ids allowed in 'dependenciesFor' has been reached.\n * * ModelVersionNotSupported - The version of DTDL used is not supported.\n * * 409 Conflict\n * * ModelAlreadyExists - The model provided already exists.\n * @param options The options parameters.\n */\n add(\n options?: DigitalTwinModelsAddOptionalParams\n ): Promise<DigitalTwinModelsAddResponse> {\n return this.client.sendOperationRequest({ options }, addOperationSpec);\n }\n\n /**\n * Retrieves model metadata and, optionally, model definitions.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The model id is invalid.\n * * LimitExceeded - The maximum number of model ids allowed in 'dependenciesFor' has been reached.\n * * 404 Not Found\n * * ModelNotFound - The model was not found.\n * @param options The options parameters.\n */\n private _list(\n options?: DigitalTwinModelsListOptionalParams\n ): Promise<DigitalTwinModelsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Retrieves model metadata and optionally the model definition.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The model id is invalid.\n * * MissingArgument - The model id was not provided.\n * * 404 Not Found\n * * ModelNotFound - The model was not found.\n * @param id The id for the model. The id is globally unique and case sensitive.\n * @param options The options parameters.\n */\n getById(\n id: string,\n options?: DigitalTwinModelsGetByIdOptionalParams\n ): Promise<DigitalTwinModelsGetByIdResponse> {\n return this.client.sendOperationRequest(\n { id, options },\n getByIdOperationSpec\n );\n }\n\n /**\n * Updates the metadata for a model.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The model id is invalid.\n * * JsonPatchInvalid - The JSON Patch provided is invalid.\n * * MissingArgument - The model id was not provided.\n * * 404 Not Found\n * * ModelNotFound - The model was not found.\n * * 409 Conflict\n * * ModelReferencesNotDecommissioned - The model refers to models that are not decommissioned.\n * @param id The id for the model. The id is globally unique and case sensitive.\n * @param updateModel An update specification described by JSON Patch. Only the decommissioned property\n * can be replaced.\n * @param options The options parameters.\n */\n update(\n id: string,\n updateModel: Record<string, unknown>[],\n options?: DigitalTwinModelsUpdateOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { id, updateModel, options },\n updateOperationSpec\n );\n }\n\n /**\n * Deletes a model. A model can only be deleted if no other models reference it.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The model id is invalid.\n * * MissingArgument - The model id was not provided.\n * * 404 Not Found\n * * ModelNotFound - The model was not found.\n * * 409 Conflict\n * * ModelReferencesNotDeleted - The model refers to models that are not deleted.\n * @param id The id for the model. The id is globally unique and case sensitive.\n * @param options The options parameters.\n */\n delete(\n id: string,\n options?: DigitalTwinModelsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { id, options },\n deleteOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: DigitalTwinModelsListNextOptionalParams\n ): Promise<DigitalTwinModelsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst addOperationSpec: coreClient.OperationSpec = {\n path: \"/models\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"DigitalTwinsModelData\" }\n }\n }\n }\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.models,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/models\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PagedDigitalTwinsModelDataCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.dependenciesFor,\n Parameters.includeModelDefinition\n ],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept, Parameters.resultsPerPage],\n serializer\n};\nconst getByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/models/{id}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DigitalTwinsModelData\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.includeModelDefinition],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/models/{id}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.updateModel,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/models/{id}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PagedDigitalTwinsModelDataCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept, Parameters.resultsPerPage],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { DigitalTwins } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { AzureDigitalTwinsAPI } from "../azureDigitalTwinsAPI.js";
|
|
4
|
+
import { DigitalTwinsListRelationshipsOptionalParams, IncomingRelationship, DigitalTwinsListIncomingRelationshipsOptionalParams, DigitalTwinsGetByIdOptionalParams, DigitalTwinsGetByIdResponse, DigitalTwinsAddOptionalParams, DigitalTwinsAddResponse, DigitalTwinsDeleteOptionalParams, DigitalTwinsUpdateOptionalParams, DigitalTwinsUpdateResponse, DigitalTwinsGetRelationshipByIdOptionalParams, DigitalTwinsGetRelationshipByIdResponse, DigitalTwinsAddRelationshipOptionalParams, DigitalTwinsAddRelationshipResponse, DigitalTwinsDeleteRelationshipOptionalParams, DigitalTwinsUpdateRelationshipOptionalParams, DigitalTwinsUpdateRelationshipResponse, DigitalTwinsSendTelemetryOptionalParams, DigitalTwinsSendComponentTelemetryOptionalParams, DigitalTwinsGetComponentOptionalParams, DigitalTwinsGetComponentResponse, DigitalTwinsUpdateComponentOptionalParams, DigitalTwinsUpdateComponentResponse } from "../models/index.js";
|
|
5
|
+
/** Class containing DigitalTwins operations. */
|
|
6
|
+
export declare class DigitalTwinsImpl implements DigitalTwins {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class DigitalTwins class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: AzureDigitalTwinsAPI);
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves the relationships from a digital twin.
|
|
15
|
+
* Status codes:
|
|
16
|
+
* * 200 OK
|
|
17
|
+
* * 400 Bad Request
|
|
18
|
+
* * InvalidArgument - The digital twin id is invalid.
|
|
19
|
+
* * 404 Not Found
|
|
20
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
21
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
listRelationships(id: string, options?: DigitalTwinsListRelationshipsOptionalParams): PagedAsyncIterableIterator<Record<string, unknown>>;
|
|
25
|
+
private listRelationshipsPagingPage;
|
|
26
|
+
private listRelationshipsPagingAll;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves all incoming relationship for a digital twin.
|
|
29
|
+
* Status codes:
|
|
30
|
+
* * 200 OK
|
|
31
|
+
* * 400 Bad Request
|
|
32
|
+
* * InvalidArgument - The digital twin id is invalid.
|
|
33
|
+
* * 404 Not Found
|
|
34
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
35
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
36
|
+
* @param options The options parameters.
|
|
37
|
+
*/
|
|
38
|
+
listIncomingRelationships(id: string, options?: DigitalTwinsListIncomingRelationshipsOptionalParams): PagedAsyncIterableIterator<IncomingRelationship>;
|
|
39
|
+
private listIncomingRelationshipsPagingPage;
|
|
40
|
+
private listIncomingRelationshipsPagingAll;
|
|
41
|
+
/**
|
|
42
|
+
* Retrieves a digital twin.
|
|
43
|
+
* Status codes:
|
|
44
|
+
* * 200 OK
|
|
45
|
+
* * 400 Bad Request
|
|
46
|
+
* * InvalidArgument - The digital twin id is invalid.
|
|
47
|
+
* * 404 Not Found
|
|
48
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
49
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
50
|
+
* @param options The options parameters.
|
|
51
|
+
*/
|
|
52
|
+
getById(id: string, options?: DigitalTwinsGetByIdOptionalParams): Promise<DigitalTwinsGetByIdResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* Adds or replaces a digital twin.
|
|
55
|
+
* Status codes:
|
|
56
|
+
* * 200 OK
|
|
57
|
+
* * 400 Bad Request
|
|
58
|
+
* * InvalidArgument - The digital twin id or payload is invalid.
|
|
59
|
+
* * ModelDecommissioned - The model for the digital twin is decommissioned.
|
|
60
|
+
* * TwinLimitReached - The maximum number of digital twins allowed has been reached.
|
|
61
|
+
* * ValidationFailed - The digital twin payload is not valid.
|
|
62
|
+
* * 412 Precondition Failed
|
|
63
|
+
* * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.
|
|
64
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
65
|
+
* @param twin The digital twin instance being added. If provided, the $dtId property is ignored.
|
|
66
|
+
* @param options The options parameters.
|
|
67
|
+
*/
|
|
68
|
+
add(id: string, twin: Record<string, unknown>, options?: DigitalTwinsAddOptionalParams): Promise<DigitalTwinsAddResponse>;
|
|
69
|
+
/**
|
|
70
|
+
* Deletes a digital twin. All relationships referencing the digital twin must already be deleted.
|
|
71
|
+
* Status codes:
|
|
72
|
+
* * 204 No Content
|
|
73
|
+
* * 400 Bad Request
|
|
74
|
+
* * InvalidArgument - The digital twin id is invalid.
|
|
75
|
+
* * RelationshipsNotDeleted - The digital twin contains relationships.
|
|
76
|
+
* * 404 Not Found
|
|
77
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
78
|
+
* * 412 Precondition Failed
|
|
79
|
+
* * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.
|
|
80
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
81
|
+
* @param options The options parameters.
|
|
82
|
+
*/
|
|
83
|
+
delete(id: string, options?: DigitalTwinsDeleteOptionalParams): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Updates a digital twin.
|
|
86
|
+
* Status codes:
|
|
87
|
+
* * 204 No Content
|
|
88
|
+
* * 400 Bad Request
|
|
89
|
+
* * InvalidArgument - The digital twin id or payload is invalid.
|
|
90
|
+
* * JsonPatchInvalid - The JSON Patch provided is invalid.
|
|
91
|
+
* * ValidationFailed - Applying the patch results in an invalid digital twin.
|
|
92
|
+
* * 404 Not Found
|
|
93
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
94
|
+
* * 412 Precondition Failed
|
|
95
|
+
* * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.
|
|
96
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
97
|
+
* @param patchDocument An update specification described by JSON Patch. Updates to property values and
|
|
98
|
+
* $model elements may happen in the same request. Operations are limited to add, replace and remove.
|
|
99
|
+
* @param options The options parameters.
|
|
100
|
+
*/
|
|
101
|
+
update(id: string, patchDocument: Record<string, unknown>[], options?: DigitalTwinsUpdateOptionalParams): Promise<DigitalTwinsUpdateResponse>;
|
|
102
|
+
/**
|
|
103
|
+
* Retrieves a relationship between two digital twins.
|
|
104
|
+
* Status codes:
|
|
105
|
+
* * 200 OK
|
|
106
|
+
* * 400 Bad Request
|
|
107
|
+
* * InvalidArgument - The digital twin id or relationship id is invalid.
|
|
108
|
+
* * 404 Not Found
|
|
109
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
110
|
+
* * RelationshipNotFound - The relationship was not found.
|
|
111
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
112
|
+
* @param relationshipId The id of the relationship. The id is unique within the digital twin and case
|
|
113
|
+
* sensitive.
|
|
114
|
+
* @param options The options parameters.
|
|
115
|
+
*/
|
|
116
|
+
getRelationshipById(id: string, relationshipId: string, options?: DigitalTwinsGetRelationshipByIdOptionalParams): Promise<DigitalTwinsGetRelationshipByIdResponse>;
|
|
117
|
+
/**
|
|
118
|
+
* Adds a relationship between two digital twins.
|
|
119
|
+
* Status codes:
|
|
120
|
+
* * 200 OK
|
|
121
|
+
* * 400 Bad Request
|
|
122
|
+
* * InvalidArgument - The digital twin id, relationship id, or payload is invalid.
|
|
123
|
+
* * InvalidRelationship - The relationship is invalid.
|
|
124
|
+
* * OperationNotAllowed - The relationship cannot connect to the same digital twin.
|
|
125
|
+
* * ValidationFailed - The relationship content is invalid.
|
|
126
|
+
* * 404 Not Found
|
|
127
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
128
|
+
* * TargetTwinNotFound - The digital twin target of the relationship was not found.
|
|
129
|
+
* * 412 Precondition Failed
|
|
130
|
+
* * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.
|
|
131
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
132
|
+
* @param relationshipId The id of the relationship. The id is unique within the digital twin and case
|
|
133
|
+
* sensitive.
|
|
134
|
+
* @param relationship The data for the relationship.
|
|
135
|
+
* @param options The options parameters.
|
|
136
|
+
*/
|
|
137
|
+
addRelationship(id: string, relationshipId: string, relationship: Record<string, unknown>, options?: DigitalTwinsAddRelationshipOptionalParams): Promise<DigitalTwinsAddRelationshipResponse>;
|
|
138
|
+
/**
|
|
139
|
+
* Deletes a relationship between two digital twins.
|
|
140
|
+
* Status codes:
|
|
141
|
+
* * 204 No Content
|
|
142
|
+
* * 400 Bad Request
|
|
143
|
+
* * InvalidArgument - The digital twin id or relationship id is invalid.
|
|
144
|
+
* * 404 Not Found
|
|
145
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
146
|
+
* * RelationshipNotFound - The relationship was not found.
|
|
147
|
+
* * 412 Precondition Failed
|
|
148
|
+
* * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.
|
|
149
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
150
|
+
* @param relationshipId The id of the relationship. The id is unique within the digital twin and case
|
|
151
|
+
* sensitive.
|
|
152
|
+
* @param options The options parameters.
|
|
153
|
+
*/
|
|
154
|
+
deleteRelationship(id: string, relationshipId: string, options?: DigitalTwinsDeleteRelationshipOptionalParams): Promise<void>;
|
|
155
|
+
/**
|
|
156
|
+
* Updates the properties on a relationship between two digital twins.
|
|
157
|
+
* Status codes:
|
|
158
|
+
* * 204 No Content
|
|
159
|
+
* * 400 Bad Request
|
|
160
|
+
* * InvalidArgument - The digital twin id or relationship id is invalid.
|
|
161
|
+
* * InvalidRelationship - The relationship is invalid.
|
|
162
|
+
* * JsonPatchInvalid - The JSON Patch provided is invalid.
|
|
163
|
+
* * ValidationFailed - The relationship content is invalid.
|
|
164
|
+
* * 404 Not Found
|
|
165
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
166
|
+
* * RelationshipNotFound - The relationship was not found.
|
|
167
|
+
* * 409 Conflict
|
|
168
|
+
* * RelationshipAlreadyExists - The relationship already exists.
|
|
169
|
+
* * 412 Precondition Failed
|
|
170
|
+
* * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.
|
|
171
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
172
|
+
* @param relationshipId The id of the relationship. The id is unique within the digital twin and case
|
|
173
|
+
* sensitive.
|
|
174
|
+
* @param patchDocument JSON Patch description of the update to the relationship properties.
|
|
175
|
+
* @param options The options parameters.
|
|
176
|
+
*/
|
|
177
|
+
updateRelationship(id: string, relationshipId: string, patchDocument: Record<string, unknown>[], options?: DigitalTwinsUpdateRelationshipOptionalParams): Promise<DigitalTwinsUpdateRelationshipResponse>;
|
|
178
|
+
/**
|
|
179
|
+
* Retrieves the relationships from a digital twin.
|
|
180
|
+
* Status codes:
|
|
181
|
+
* * 200 OK
|
|
182
|
+
* * 400 Bad Request
|
|
183
|
+
* * InvalidArgument - The digital twin id is invalid.
|
|
184
|
+
* * 404 Not Found
|
|
185
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
186
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
187
|
+
* @param options The options parameters.
|
|
188
|
+
*/
|
|
189
|
+
private _listRelationships;
|
|
190
|
+
/**
|
|
191
|
+
* Retrieves all incoming relationship for a digital twin.
|
|
192
|
+
* Status codes:
|
|
193
|
+
* * 200 OK
|
|
194
|
+
* * 400 Bad Request
|
|
195
|
+
* * InvalidArgument - The digital twin id is invalid.
|
|
196
|
+
* * 404 Not Found
|
|
197
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
198
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
199
|
+
* @param options The options parameters.
|
|
200
|
+
*/
|
|
201
|
+
private _listIncomingRelationships;
|
|
202
|
+
/**
|
|
203
|
+
* Sends telemetry on behalf of a digital twin.
|
|
204
|
+
* Status codes:
|
|
205
|
+
* * 204 No Content
|
|
206
|
+
* * 400 Bad Request
|
|
207
|
+
* * InvalidArgument - The digital twin id or message id is invalid.
|
|
208
|
+
* * ValidationFailed - The telemetry content is invalid.
|
|
209
|
+
* * 404 Not Found
|
|
210
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
211
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
212
|
+
* @param messageId A unique message identifier (in the scope of the digital twin id) that is commonly
|
|
213
|
+
* used for de-duplicating messages.
|
|
214
|
+
* @param telemetry The telemetry measurements to send from the digital twin.
|
|
215
|
+
* @param options The options parameters.
|
|
216
|
+
*/
|
|
217
|
+
sendTelemetry(id: string, messageId: string, telemetry: Record<string, unknown>, options?: DigitalTwinsSendTelemetryOptionalParams): Promise<void>;
|
|
218
|
+
/**
|
|
219
|
+
* Sends telemetry on behalf of a component in a digital twin.
|
|
220
|
+
* Status codes:
|
|
221
|
+
* * 204 No Content
|
|
222
|
+
* * 400 Bad Request
|
|
223
|
+
* * InvalidArgument - The digital twin id, message id, or component path is invalid.
|
|
224
|
+
* * ValidationFailed - The telemetry content is invalid.
|
|
225
|
+
* * 404 Not Found
|
|
226
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
227
|
+
* * ComponentNotFound - The component path was not found.
|
|
228
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
229
|
+
* @param componentPath The name of the DTDL component.
|
|
230
|
+
* @param messageId A unique message identifier (in the scope of the digital twin id) that is commonly
|
|
231
|
+
* used for de-duplicating messages.
|
|
232
|
+
* @param telemetry The telemetry measurements to send from the digital twin's component.
|
|
233
|
+
* @param options The options parameters.
|
|
234
|
+
*/
|
|
235
|
+
sendComponentTelemetry(id: string, componentPath: string, messageId: string, telemetry: Record<string, unknown>, options?: DigitalTwinsSendComponentTelemetryOptionalParams): Promise<void>;
|
|
236
|
+
/**
|
|
237
|
+
* Retrieves a component from a digital twin.
|
|
238
|
+
* Status codes:
|
|
239
|
+
* * 200 OK
|
|
240
|
+
* * 400 Bad Request
|
|
241
|
+
* * InvalidArgument - The digital twin id or component path is invalid.
|
|
242
|
+
* * 404 Not Found
|
|
243
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
244
|
+
* * ComponentNotFound - The component path was not found.
|
|
245
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
246
|
+
* @param componentPath The name of the DTDL component.
|
|
247
|
+
* @param options The options parameters.
|
|
248
|
+
*/
|
|
249
|
+
getComponent(id: string, componentPath: string, options?: DigitalTwinsGetComponentOptionalParams): Promise<DigitalTwinsGetComponentResponse>;
|
|
250
|
+
/**
|
|
251
|
+
* Updates a component on a digital twin.
|
|
252
|
+
* Status codes:
|
|
253
|
+
* * 204 No Content
|
|
254
|
+
* * 400 Bad Request
|
|
255
|
+
* * InvalidArgument - The digital twin id, component path, or payload is invalid.
|
|
256
|
+
* * JsonPatchInvalid - The JSON Patch provided is invalid.
|
|
257
|
+
* * ValidationFailed - Applying the patch results in an invalid digital twin.
|
|
258
|
+
* * 404 Not Found
|
|
259
|
+
* * DigitalTwinNotFound - The digital twin 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 componentPath The name of the DTDL component.
|
|
264
|
+
* @param patchDocument An update specification described by JSON Patch. Updates to property values and
|
|
265
|
+
* $model elements may happen in the same request. Operations are limited to add, replace and remove.
|
|
266
|
+
* @param options The options parameters.
|
|
267
|
+
*/
|
|
268
|
+
updateComponent(id: string, componentPath: string, patchDocument: Record<string, unknown>[], options?: DigitalTwinsUpdateComponentOptionalParams): Promise<DigitalTwinsUpdateComponentResponse>;
|
|
269
|
+
/**
|
|
270
|
+
* ListRelationshipsNext
|
|
271
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
272
|
+
* @param nextLink The nextLink from the previous successful call to the ListRelationships method.
|
|
273
|
+
* @param options The options parameters.
|
|
274
|
+
*/
|
|
275
|
+
private _listRelationshipsNext;
|
|
276
|
+
/**
|
|
277
|
+
* ListIncomingRelationshipsNext
|
|
278
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
279
|
+
* @param nextLink The nextLink from the previous successful call to the ListIncomingRelationships
|
|
280
|
+
* method.
|
|
281
|
+
* @param options The options parameters.
|
|
282
|
+
*/
|
|
283
|
+
private _listIncomingRelationshipsNext;
|
|
284
|
+
}
|
|
285
|
+
//# sourceMappingURL=digitalTwins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"digitalTwins.d.ts","sourceRoot":"","sources":["../../../../src/generated/operations/digitalTwins.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAIhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAEL,2CAA2C,EAE3C,oBAAoB,EAEpB,mDAAmD,EAEnD,iCAAiC,EACjC,2BAA2B,EAC3B,6BAA6B,EAC7B,uBAAuB,EACvB,gCAAgC,EAChC,gCAAgC,EAChC,0BAA0B,EAC1B,6CAA6C,EAC7C,uCAAuC,EACvC,yCAAyC,EACzC,mCAAmC,EACnC,4CAA4C,EAC5C,4CAA4C,EAC5C,sCAAsC,EACtC,uCAAuC,EACvC,gDAAgD,EAChD,sCAAsC,EACtC,gCAAgC,EAChC,yCAAyC,EACzC,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E,EAAE,MAAM,EACV,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;IAO5C;;;;;;;;;;;;;;;;;OAiBG;IACH,eAAe,CACb,EAAE,EAAE,MAAM,EACV,aAAa,EAAE,MAAM,EACrB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EACxC,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC;IAO/C;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IAW9B;;;;;;OAMG;IACH,OAAO,CAAC,8BAA8B;CAUvC"}
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
10
|
import * as coreClient from "@azure/core-client";
|
|
11
|
-
import * as Mappers from "../models/mappers";
|
|
12
|
-
import * as Parameters from "../models/parameters";
|
|
11
|
+
import * as Mappers from "../models/mappers.js";
|
|
12
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
13
|
/// <reference lib="esnext.asynciterable" />
|
|
14
14
|
/** Class containing DigitalTwins operations. */
|
|
15
15
|
export class DigitalTwinsImpl {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"digitalTwins.js","sourceRoot":"","sources":["../../../../src/generated/operations/digitalTwins.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AA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3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,EAAE,UAAU,CAAC,QAAQ,CAAC;IACrE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,0CAA0C,GAA6B;IAC3E,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,EAAE,UAAU,CAAC,QAAQ,CAAC;IACrE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { DigitalTwins } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureDigitalTwinsAPI } from \"../azureDigitalTwinsAPI.js\";\nimport {\n DigitalTwinsListRelationshipsNextOptionalParams,\n DigitalTwinsListRelationshipsOptionalParams,\n DigitalTwinsListRelationshipsResponse,\n IncomingRelationship,\n DigitalTwinsListIncomingRelationshipsNextOptionalParams,\n DigitalTwinsListIncomingRelationshipsOptionalParams,\n DigitalTwinsListIncomingRelationshipsResponse,\n DigitalTwinsGetByIdOptionalParams,\n DigitalTwinsGetByIdResponse,\n DigitalTwinsAddOptionalParams,\n DigitalTwinsAddResponse,\n DigitalTwinsDeleteOptionalParams,\n DigitalTwinsUpdateOptionalParams,\n DigitalTwinsUpdateResponse,\n DigitalTwinsGetRelationshipByIdOptionalParams,\n DigitalTwinsGetRelationshipByIdResponse,\n DigitalTwinsAddRelationshipOptionalParams,\n DigitalTwinsAddRelationshipResponse,\n DigitalTwinsDeleteRelationshipOptionalParams,\n DigitalTwinsUpdateRelationshipOptionalParams,\n DigitalTwinsUpdateRelationshipResponse,\n DigitalTwinsSendTelemetryOptionalParams,\n DigitalTwinsSendComponentTelemetryOptionalParams,\n DigitalTwinsGetComponentOptionalParams,\n DigitalTwinsGetComponentResponse,\n DigitalTwinsUpdateComponentOptionalParams,\n DigitalTwinsUpdateComponentResponse,\n DigitalTwinsListRelationshipsNextResponse,\n DigitalTwinsListIncomingRelationshipsNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DigitalTwins operations. */\nexport class DigitalTwinsImpl implements DigitalTwins {\n private readonly client: AzureDigitalTwinsAPI;\n\n /**\n * Initialize a new instance of the class DigitalTwins class.\n * @param client Reference to the service client\n */\n constructor(client: AzureDigitalTwinsAPI) {\n this.client = client;\n }\n\n /**\n * Retrieves the relationships from a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n public listRelationships(\n id: string,\n options?: DigitalTwinsListRelationshipsOptionalParams\n ): PagedAsyncIterableIterator<Record<string, unknown>> {\n const iter = this.listRelationshipsPagingAll(id, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listRelationshipsPagingPage(id, options, settings);\n }\n };\n }\n\n private async *listRelationshipsPagingPage(\n id: string,\n options?: DigitalTwinsListRelationshipsOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Record<string, unknown>[]> {\n let result: DigitalTwinsListRelationshipsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listRelationships(id, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listRelationshipsNext(\n id,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listRelationshipsPagingAll(\n id: string,\n options?: DigitalTwinsListRelationshipsOptionalParams\n ): AsyncIterableIterator<Record<string, unknown>> {\n for await (const page of this.listRelationshipsPagingPage(id, options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieves all incoming relationship for a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n public listIncomingRelationships(\n id: string,\n options?: DigitalTwinsListIncomingRelationshipsOptionalParams\n ): PagedAsyncIterableIterator<IncomingRelationship> {\n const iter = this.listIncomingRelationshipsPagingAll(id, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listIncomingRelationshipsPagingPage(id, options, settings);\n }\n };\n }\n\n private async *listIncomingRelationshipsPagingPage(\n id: string,\n options?: DigitalTwinsListIncomingRelationshipsOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<IncomingRelationship[]> {\n let result: DigitalTwinsListIncomingRelationshipsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listIncomingRelationships(id, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listIncomingRelationshipsNext(\n id,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listIncomingRelationshipsPagingAll(\n id: string,\n options?: DigitalTwinsListIncomingRelationshipsOptionalParams\n ): AsyncIterableIterator<IncomingRelationship> {\n for await (const page of this.listIncomingRelationshipsPagingPage(\n id,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieves a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n getById(\n id: string,\n options?: DigitalTwinsGetByIdOptionalParams\n ): Promise<DigitalTwinsGetByIdResponse> {\n return this.client.sendOperationRequest(\n { id, options },\n getByIdOperationSpec\n );\n }\n\n /**\n * Adds or replaces a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or payload is invalid.\n * * ModelDecommissioned - The model for the digital twin is decommissioned.\n * * TwinLimitReached - The maximum number of digital twins allowed has been reached.\n * * ValidationFailed - The digital twin payload is not valid.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param twin The digital twin instance being added. If provided, the $dtId property is ignored.\n * @param options The options parameters.\n */\n add(\n id: string,\n twin: Record<string, unknown>,\n options?: DigitalTwinsAddOptionalParams\n ): Promise<DigitalTwinsAddResponse> {\n return this.client.sendOperationRequest(\n { id, twin, options },\n addOperationSpec\n );\n }\n\n /**\n * Deletes a digital twin. All relationships referencing the digital twin must already be deleted.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id is invalid.\n * * RelationshipsNotDeleted - The digital twin contains relationships.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n delete(\n id: string,\n options?: DigitalTwinsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { id, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Updates a digital twin.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or payload is invalid.\n * * JsonPatchInvalid - The JSON Patch provided is invalid.\n * * ValidationFailed - Applying the patch results in an invalid digital twin.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param patchDocument An update specification described by JSON Patch. Updates to property values and\n * $model elements may happen in the same request. Operations are limited to add, replace and remove.\n * @param options The options parameters.\n */\n update(\n id: string,\n patchDocument: Record<string, unknown>[],\n options?: DigitalTwinsUpdateOptionalParams\n ): Promise<DigitalTwinsUpdateResponse> {\n return this.client.sendOperationRequest(\n { id, patchDocument, options },\n updateOperationSpec\n );\n }\n\n /**\n * Retrieves a relationship between two digital twins.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or relationship id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * RelationshipNotFound - The relationship was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param relationshipId The id of the relationship. The id is unique within the digital twin and case\n * sensitive.\n * @param options The options parameters.\n */\n getRelationshipById(\n id: string,\n relationshipId: string,\n options?: DigitalTwinsGetRelationshipByIdOptionalParams\n ): Promise<DigitalTwinsGetRelationshipByIdResponse> {\n return this.client.sendOperationRequest(\n { id, relationshipId, options },\n getRelationshipByIdOperationSpec\n );\n }\n\n /**\n * Adds a relationship between two digital twins.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id, relationship id, or payload is invalid.\n * * InvalidRelationship - The relationship is invalid.\n * * OperationNotAllowed - The relationship cannot connect to the same digital twin.\n * * ValidationFailed - The relationship content is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * TargetTwinNotFound - The digital twin target of the relationship was not found.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param relationshipId The id of the relationship. The id is unique within the digital twin and case\n * sensitive.\n * @param relationship The data for the relationship.\n * @param options The options parameters.\n */\n addRelationship(\n id: string,\n relationshipId: string,\n relationship: Record<string, unknown>,\n options?: DigitalTwinsAddRelationshipOptionalParams\n ): Promise<DigitalTwinsAddRelationshipResponse> {\n return this.client.sendOperationRequest(\n { id, relationshipId, relationship, options },\n addRelationshipOperationSpec\n );\n }\n\n /**\n * Deletes a relationship between two digital twins.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or relationship id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * RelationshipNotFound - The relationship was not found.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param relationshipId The id of the relationship. The id is unique within the digital twin and case\n * sensitive.\n * @param options The options parameters.\n */\n deleteRelationship(\n id: string,\n relationshipId: string,\n options?: DigitalTwinsDeleteRelationshipOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { id, relationshipId, options },\n deleteRelationshipOperationSpec\n );\n }\n\n /**\n * Updates the properties on a relationship between two digital twins.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or relationship id is invalid.\n * * InvalidRelationship - The relationship is invalid.\n * * JsonPatchInvalid - The JSON Patch provided is invalid.\n * * ValidationFailed - The relationship content is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * RelationshipNotFound - The relationship was not found.\n * * 409 Conflict\n * * RelationshipAlreadyExists - The relationship already exists.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param relationshipId The id of the relationship. The id is unique within the digital twin and case\n * sensitive.\n * @param patchDocument JSON Patch description of the update to the relationship properties.\n * @param options The options parameters.\n */\n updateRelationship(\n id: string,\n relationshipId: string,\n patchDocument: Record<string, unknown>[],\n options?: DigitalTwinsUpdateRelationshipOptionalParams\n ): Promise<DigitalTwinsUpdateRelationshipResponse> {\n return this.client.sendOperationRequest(\n { id, relationshipId, patchDocument, options },\n updateRelationshipOperationSpec\n );\n }\n\n /**\n * Retrieves the relationships from a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n private _listRelationships(\n id: string,\n options?: DigitalTwinsListRelationshipsOptionalParams\n ): Promise<DigitalTwinsListRelationshipsResponse> {\n return this.client.sendOperationRequest(\n { id, options },\n listRelationshipsOperationSpec\n );\n }\n\n /**\n * Retrieves all incoming relationship for a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n private _listIncomingRelationships(\n id: string,\n options?: DigitalTwinsListIncomingRelationshipsOptionalParams\n ): Promise<DigitalTwinsListIncomingRelationshipsResponse> {\n return this.client.sendOperationRequest(\n { id, options },\n listIncomingRelationshipsOperationSpec\n );\n }\n\n /**\n * Sends telemetry on behalf of a digital twin.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or message id is invalid.\n * * ValidationFailed - The telemetry content is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param messageId A unique message identifier (in the scope of the digital twin id) that is commonly\n * used for de-duplicating messages.\n * @param telemetry The telemetry measurements to send from the digital twin.\n * @param options The options parameters.\n */\n sendTelemetry(\n id: string,\n messageId: string,\n telemetry: Record<string, unknown>,\n options?: DigitalTwinsSendTelemetryOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { id, messageId, telemetry, options },\n sendTelemetryOperationSpec\n );\n }\n\n /**\n * Sends telemetry on behalf of a component in a digital twin.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id, message id, or component path is invalid.\n * * ValidationFailed - The telemetry content is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * ComponentNotFound - The component path was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param componentPath The name of the DTDL component.\n * @param messageId A unique message identifier (in the scope of the digital twin id) that is commonly\n * used for de-duplicating messages.\n * @param telemetry The telemetry measurements to send from the digital twin's component.\n * @param options The options parameters.\n */\n sendComponentTelemetry(\n id: string,\n componentPath: string,\n messageId: string,\n telemetry: Record<string, unknown>,\n options?: DigitalTwinsSendComponentTelemetryOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { id, componentPath, messageId, telemetry, options },\n sendComponentTelemetryOperationSpec\n );\n }\n\n /**\n * Retrieves a component from a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or component path is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * ComponentNotFound - The component path was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param componentPath The name of the DTDL component.\n * @param options The options parameters.\n */\n getComponent(\n id: string,\n componentPath: string,\n options?: DigitalTwinsGetComponentOptionalParams\n ): Promise<DigitalTwinsGetComponentResponse> {\n return this.client.sendOperationRequest(\n { id, componentPath, options },\n getComponentOperationSpec\n );\n }\n\n /**\n * Updates a component on a digital twin.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id, component path, or payload is invalid.\n * * JsonPatchInvalid - The JSON Patch provided is invalid.\n * * ValidationFailed - Applying the patch results in an invalid digital twin.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param componentPath The name of the DTDL component.\n * @param patchDocument An update specification described by JSON Patch. Updates to property values and\n * $model elements may happen in the same request. Operations are limited to add, replace and remove.\n * @param options The options parameters.\n */\n updateComponent(\n id: string,\n componentPath: string,\n patchDocument: Record<string, unknown>[],\n options?: DigitalTwinsUpdateComponentOptionalParams\n ): Promise<DigitalTwinsUpdateComponentResponse> {\n return this.client.sendOperationRequest(\n { id, componentPath, patchDocument, options },\n updateComponentOperationSpec\n );\n }\n\n /**\n * ListRelationshipsNext\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param nextLink The nextLink from the previous successful call to the ListRelationships method.\n * @param options The options parameters.\n */\n private _listRelationshipsNext(\n id: string,\n nextLink: string,\n options?: DigitalTwinsListRelationshipsNextOptionalParams\n ): Promise<DigitalTwinsListRelationshipsNextResponse> {\n return this.client.sendOperationRequest(\n { id, nextLink, options },\n listRelationshipsNextOperationSpec\n );\n }\n\n /**\n * ListIncomingRelationshipsNext\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param nextLink The nextLink from the previous successful call to the ListIncomingRelationships\n * method.\n * @param options The options parameters.\n */\n private _listIncomingRelationshipsNext(\n id: string,\n nextLink: string,\n options?: DigitalTwinsListIncomingRelationshipsNextOptionalParams\n ): Promise<DigitalTwinsListIncomingRelationshipsNextResponse> {\n return this.client.sendOperationRequest(\n { id, nextLink, options },\n listIncomingRelationshipsNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } }\n },\n headersMapper: Mappers.DigitalTwinsGetByIdHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst addOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } }\n },\n headersMapper: Mappers.DigitalTwinsAddHeaders\n },\n 202: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.twin,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifNoneMatch\n ],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept, Parameters.ifMatch],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}\",\n httpMethod: \"PATCH\",\n responses: {\n 202: {},\n 204: {\n headersMapper: Mappers.DigitalTwinsUpdateHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.patchDocument,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType1,\n Parameters.ifMatch\n ],\n mediaType: \"json\",\n serializer\n};\nconst getRelationshipByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/relationships/{relationshipId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } }\n },\n headersMapper: Mappers.DigitalTwinsGetRelationshipByIdHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst addRelationshipOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/relationships/{relationshipId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } }\n },\n headersMapper: Mappers.DigitalTwinsAddRelationshipHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.relationship,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifNoneMatch\n ],\n mediaType: \"json\",\n serializer\n};\nconst deleteRelationshipOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/relationships/{relationshipId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],\n headerParameters: [Parameters.accept, Parameters.ifMatch],\n serializer\n};\nconst updateRelationshipOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/relationships/{relationshipId}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {\n headersMapper: Mappers.DigitalTwinsUpdateRelationshipHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.patchDocument,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType1,\n Parameters.ifMatch\n ],\n mediaType: \"json\",\n serializer\n};\nconst listRelationshipsOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/relationships\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RelationshipCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.relationshipName],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listIncomingRelationshipsOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/incomingrelationships\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncomingRelationshipCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst sendTelemetryOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/telemetry\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.telemetry,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.messageId,\n Parameters.telemetrySourceTime\n ],\n mediaType: \"json\",\n serializer\n};\nconst sendComponentTelemetryOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/components/{componentPath}/telemetry\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.telemetry,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.componentPath],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.messageId,\n Parameters.telemetrySourceTime\n ],\n mediaType: \"json\",\n serializer\n};\nconst getComponentOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/components/{componentPath}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } }\n },\n headersMapper: Mappers.DigitalTwinsGetComponentHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.componentPath],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateComponentOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/components/{componentPath}\",\n httpMethod: \"PATCH\",\n responses: {\n 202: {},\n 204: {\n headersMapper: Mappers.DigitalTwinsUpdateComponentHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.patchDocument,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.componentPath],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType1,\n Parameters.ifMatch\n ],\n mediaType: \"json\",\n serializer\n};\nconst listRelationshipsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RelationshipCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.id, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listIncomingRelationshipsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncomingRelationshipCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.id, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|