@c8y/client 1018.503.102 → 1018.503.103
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/lib/bundles/client.umd.js +48 -0
- package/lib/bundles/client.umd.js.map +1 -1
- package/lib/bundles/client.umd.min.js +1 -1
- package/lib/bundles/client.umd.min.js.map +1 -1
- package/lib/cjs/src/inventory/InventoryService.d.ts +40 -0
- package/lib/cjs/src/inventory/InventoryService.js +44 -0
- package/lib/cjs/src/inventory/InventoryService.js.map +1 -1
- package/lib/esm2015/src/inventory/InventoryService.d.ts +40 -0
- package/lib/esm2015/src/inventory/InventoryService.js +48 -0
- package/lib/esm2015/src/inventory/InventoryService.js.map +1 -1
- package/lib/src/inventory/InventoryService.d.ts +40 -0
- package/package.json +1 -1
|
@@ -5714,6 +5714,30 @@
|
|
|
5714
5714
|
return this.addChild(exports.ChildType.ADDITIONS, childReference, parentReference);
|
|
5715
5715
|
});
|
|
5716
5716
|
}
|
|
5717
|
+
/**
|
|
5718
|
+
* Adds bulk of existing managed objects as child addition to another managed object (parent).
|
|
5719
|
+
*
|
|
5720
|
+
* @returns Response wrapped in array of [[IResult]]
|
|
5721
|
+
*
|
|
5722
|
+
* @param {IdReference[]} childReference List of existing managed objects IDs that should be added to another managed object (parent).
|
|
5723
|
+
* @param {IdReference} parentReference
|
|
5724
|
+
*
|
|
5725
|
+
* **Example**
|
|
5726
|
+
* ```typescript
|
|
5727
|
+
*
|
|
5728
|
+
* const childAdditionsRefIds: string[] = ['2', '3'];
|
|
5729
|
+
* const parentReferenceId: number = 1;
|
|
5730
|
+
*
|
|
5731
|
+
* (async () => {
|
|
5732
|
+
* const {data, res} = await inventoryService.childAdditionsBulkAdd(childAdditionsRefIds, parentReferenceId);
|
|
5733
|
+
* })();
|
|
5734
|
+
* ```
|
|
5735
|
+
*/
|
|
5736
|
+
childAdditionsBulkAdd(childReference, parentReference) {
|
|
5737
|
+
return __awaiter$p(this, void 0, void 0, function* () {
|
|
5738
|
+
return this.addChildBulk(exports.ChildType.ADDITIONS, childReference, parentReference);
|
|
5739
|
+
});
|
|
5740
|
+
}
|
|
5717
5741
|
/**
|
|
5718
5742
|
* Removes an existing managed object as child addition from another managed object (parent)
|
|
5719
5743
|
*
|
|
@@ -5952,6 +5976,30 @@
|
|
|
5952
5976
|
return this.addChild(exports.ChildType.DEVICES, childReference, parentReference);
|
|
5953
5977
|
});
|
|
5954
5978
|
}
|
|
5979
|
+
/**
|
|
5980
|
+
* Adds bulk of existing managed objects as child devices to another managed object (parent).
|
|
5981
|
+
*
|
|
5982
|
+
* @returns Response wrapped in array of [[IResult]]
|
|
5983
|
+
*
|
|
5984
|
+
* @param {IdReference[]} childReference List of existing managed objects IDs that should be added to another managed object (parent).
|
|
5985
|
+
* @param {IdReference} parentReference
|
|
5986
|
+
*
|
|
5987
|
+
* **Example**
|
|
5988
|
+
* ```typescript
|
|
5989
|
+
*
|
|
5990
|
+
* const childDevicesRefIds: string[] = ['2', '3'];
|
|
5991
|
+
* const parentReferenceId: number = 1;
|
|
5992
|
+
*
|
|
5993
|
+
* (async () => {
|
|
5994
|
+
* const {data, res} = await inventoryService.childDevicesBulkAdd(childDevicesRefIds, parentReferenceId);
|
|
5995
|
+
* })();
|
|
5996
|
+
* ```
|
|
5997
|
+
*/
|
|
5998
|
+
childDevicesBulkAdd(childReference, parentReference) {
|
|
5999
|
+
return __awaiter$p(this, void 0, void 0, function* () {
|
|
6000
|
+
return this.addChildBulk(exports.ChildType.DEVICES, childReference, parentReference);
|
|
6001
|
+
});
|
|
6002
|
+
}
|
|
5955
6003
|
/**
|
|
5956
6004
|
* Removes an existing managed object as child device from another managed object (parent)
|
|
5957
6005
|
*
|