kuzzle-device-manager 3.0.0-next.13 → 3.0.0-next.15
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/lib/modules/asset/AssetsController.js +1 -1
- package/dist/lib/modules/device/DeviceService.js +2 -2
- package/dist/lib/modules/device/DevicesController.js +1 -1
- package/dist/lib/modules/plugin/types/exports.d.ts +1 -0
- package/dist/lib/modules/plugin/types/exports.js +1 -0
- package/dist/lib/modules/plugin/types/exports.js.map +1 -1
- package/package.json +1 -1
|
@@ -565,7 +565,7 @@ class AssetsController {
|
|
|
565
565
|
if (!measureSlots?.length && !implicitMeasuresLinking) {
|
|
566
566
|
throw new kuzzle_1.BadRequestError(`You must provide at least one measure name or set "implicitMeasuresLinking" to true.`);
|
|
567
567
|
}
|
|
568
|
-
const { asset: updatedAsset, device } = await this.assetService.linkAssetDevice(engineId, deviceId, assetId, measureSlots
|
|
568
|
+
const { asset: updatedAsset, device } = await this.assetService.linkAssetDevice(engineId, deviceId, assetId, measureSlots ?? [], implicitMeasuresLinking, request);
|
|
569
569
|
devices.push(device_1.DeviceSerializer.serialize(device));
|
|
570
570
|
asset = updatedAsset;
|
|
571
571
|
}
|
|
@@ -241,8 +241,8 @@ class DeviceService extends shared_1.DigitalTwinService {
|
|
|
241
241
|
// Initialize metadata
|
|
242
242
|
for (const metadataName of Object.keys(deviceModel.device.metadataMappings)) {
|
|
243
243
|
engineDevice._source.metadata[metadataName] =
|
|
244
|
-
metadata?.[metadataName]
|
|
245
|
-
deviceModel.device.defaultMetadata[metadataName]
|
|
244
|
+
metadata?.[metadataName] ??
|
|
245
|
+
deviceModel.device.defaultMetadata[metadataName] ??
|
|
246
246
|
null;
|
|
247
247
|
}
|
|
248
248
|
const updatedDevice = await this.createDocument(request, engineDevice, {
|
|
@@ -271,7 +271,7 @@ class DevicesController {
|
|
|
271
271
|
if (!measureSlots?.length && !implicitMeasuresLinking) {
|
|
272
272
|
throw new kuzzle_1.BadRequestError(`You must provide at least one measure name or set "implicitMeasuresLinking" to true.`);
|
|
273
273
|
}
|
|
274
|
-
const { asset, device: updatedDevice } = await this.deviceService.linkAssetDevice(engineId, deviceId, assetId, measureSlots
|
|
274
|
+
const { asset, device: updatedDevice } = await this.deviceService.linkAssetDevice(engineId, deviceId, assetId, measureSlots ?? [], implicitMeasuresLinking, request);
|
|
275
275
|
assets.push(AssetSerializer_1.AssetSerializer.serialize(asset));
|
|
276
276
|
device = updatedDevice;
|
|
277
277
|
}
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./DeviceManagerConfiguration"), exports);
|
|
18
18
|
__exportStar(require("./Pipes"), exports);
|
|
19
|
+
__exportStar(require("./InternalCollection"), exports);
|
|
19
20
|
//# sourceMappingURL=exports.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../../../lib/modules/plugin/types/exports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../../../lib/modules/plugin/types/exports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,0CAAwB;AACxB,uDAAqC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kuzzle-device-manager",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.15",
|
|
4
4
|
"description": "Manage your IoT devices and assets. Choose a provisioning strategy, receive and decode payload, handle your IoT business logic.",
|
|
5
5
|
"author": "The Kuzzle Team (support@kuzzle.io)",
|
|
6
6
|
"repository": {
|