@c8y/client 1017.0.540 → 1017.0.543
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.js +44 -0
- package/lib/cjs/src/inventory/InventoryService.js.map +1 -1
- 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
|
@@ -5591,6 +5591,30 @@
|
|
|
5591
5591
|
return this.addChild(exports.ChildType.ADDITIONS, childReference, parentReference);
|
|
5592
5592
|
});
|
|
5593
5593
|
}
|
|
5594
|
+
/**
|
|
5595
|
+
* Adds bulk of existing managed objects as child addition to another managed object (parent).
|
|
5596
|
+
*
|
|
5597
|
+
* @returns Response wrapped in array of [[IResult]]
|
|
5598
|
+
*
|
|
5599
|
+
* @param {IdReference[]} childReference List of existing managed objects IDs that should be added to another managed object (parent).
|
|
5600
|
+
* @param {IdReference} parentReference
|
|
5601
|
+
*
|
|
5602
|
+
* **Example**
|
|
5603
|
+
* ```typescript
|
|
5604
|
+
*
|
|
5605
|
+
* const childAdditionsRefIds: string[] = ['2', '3'];
|
|
5606
|
+
* const parentReferenceId: number = 1;
|
|
5607
|
+
*
|
|
5608
|
+
* (async () => {
|
|
5609
|
+
* const {data, res} = await inventoryService.childAdditionsBulkAdd(childAdditionsRefIds, parentReferenceId);
|
|
5610
|
+
* })();
|
|
5611
|
+
* ```
|
|
5612
|
+
*/
|
|
5613
|
+
childAdditionsBulkAdd(childReference, parentReference) {
|
|
5614
|
+
return __awaiter$7(this, void 0, void 0, function* () {
|
|
5615
|
+
return this.addChildBulk(exports.ChildType.ADDITIONS, childReference, parentReference);
|
|
5616
|
+
});
|
|
5617
|
+
}
|
|
5594
5618
|
/**
|
|
5595
5619
|
* Removes an existing managed object as child addition from another managed object (parent)
|
|
5596
5620
|
*
|
|
@@ -5829,6 +5853,30 @@
|
|
|
5829
5853
|
return this.addChild(exports.ChildType.DEVICES, childReference, parentReference);
|
|
5830
5854
|
});
|
|
5831
5855
|
}
|
|
5856
|
+
/**
|
|
5857
|
+
* Adds bulk of existing managed objects as child devices to another managed object (parent).
|
|
5858
|
+
*
|
|
5859
|
+
* @returns Response wrapped in array of [[IResult]]
|
|
5860
|
+
*
|
|
5861
|
+
* @param {IdReference[]} childReference List of existing managed objects IDs that should be added to another managed object (parent).
|
|
5862
|
+
* @param {IdReference} parentReference
|
|
5863
|
+
*
|
|
5864
|
+
* **Example**
|
|
5865
|
+
* ```typescript
|
|
5866
|
+
*
|
|
5867
|
+
* const childDevicesRefIds: string[] = ['2', '3'];
|
|
5868
|
+
* const parentReferenceId: number = 1;
|
|
5869
|
+
*
|
|
5870
|
+
* (async () => {
|
|
5871
|
+
* const {data, res} = await inventoryService.childDevicesBulkAdd(childDevicesRefIds, parentReferenceId);
|
|
5872
|
+
* })();
|
|
5873
|
+
* ```
|
|
5874
|
+
*/
|
|
5875
|
+
childDevicesBulkAdd(childReference, parentReference) {
|
|
5876
|
+
return __awaiter$7(this, void 0, void 0, function* () {
|
|
5877
|
+
return this.addChildBulk(exports.ChildType.DEVICES, childReference, parentReference);
|
|
5878
|
+
});
|
|
5879
|
+
}
|
|
5832
5880
|
/**
|
|
5833
5881
|
* Removes an existing managed object as child device from another managed object (parent)
|
|
5834
5882
|
*
|