@c8y/client 1018.0.268 → 1018.0.269
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
|
@@ -5600,6 +5600,30 @@
|
|
|
5600
5600
|
return this.addChild(exports.ChildType.ADDITIONS, childReference, parentReference);
|
|
5601
5601
|
});
|
|
5602
5602
|
}
|
|
5603
|
+
/**
|
|
5604
|
+
* Adds bulk of existing managed objects as child addition to another managed object (parent).
|
|
5605
|
+
*
|
|
5606
|
+
* @returns Response wrapped in array of [[IResult]]
|
|
5607
|
+
*
|
|
5608
|
+
* @param {IdReference[]} childReference List of existing managed objects IDs that should be added to another managed object (parent).
|
|
5609
|
+
* @param {IdReference} parentReference
|
|
5610
|
+
*
|
|
5611
|
+
* **Example**
|
|
5612
|
+
* ```typescript
|
|
5613
|
+
*
|
|
5614
|
+
* const childAdditionsRefIds: string[] = ['2', '3'];
|
|
5615
|
+
* const parentReferenceId: number = 1;
|
|
5616
|
+
*
|
|
5617
|
+
* (async () => {
|
|
5618
|
+
* const {data, res} = await inventoryService.childAdditionsBulkAdd(childAdditionsRefIds, parentReferenceId);
|
|
5619
|
+
* })();
|
|
5620
|
+
* ```
|
|
5621
|
+
*/
|
|
5622
|
+
childAdditionsBulkAdd(childReference, parentReference) {
|
|
5623
|
+
return __awaiter$o(this, void 0, void 0, function* () {
|
|
5624
|
+
return this.addChildBulk(exports.ChildType.ADDITIONS, childReference, parentReference);
|
|
5625
|
+
});
|
|
5626
|
+
}
|
|
5603
5627
|
/**
|
|
5604
5628
|
* Removes an existing managed object as child addition from another managed object (parent)
|
|
5605
5629
|
*
|
|
@@ -5838,6 +5862,30 @@
|
|
|
5838
5862
|
return this.addChild(exports.ChildType.DEVICES, childReference, parentReference);
|
|
5839
5863
|
});
|
|
5840
5864
|
}
|
|
5865
|
+
/**
|
|
5866
|
+
* Adds bulk of existing managed objects as child devices to another managed object (parent).
|
|
5867
|
+
*
|
|
5868
|
+
* @returns Response wrapped in array of [[IResult]]
|
|
5869
|
+
*
|
|
5870
|
+
* @param {IdReference[]} childReference List of existing managed objects IDs that should be added to another managed object (parent).
|
|
5871
|
+
* @param {IdReference} parentReference
|
|
5872
|
+
*
|
|
5873
|
+
* **Example**
|
|
5874
|
+
* ```typescript
|
|
5875
|
+
*
|
|
5876
|
+
* const childDevicesRefIds: string[] = ['2', '3'];
|
|
5877
|
+
* const parentReferenceId: number = 1;
|
|
5878
|
+
*
|
|
5879
|
+
* (async () => {
|
|
5880
|
+
* const {data, res} = await inventoryService.childDevicesBulkAdd(childDevicesRefIds, parentReferenceId);
|
|
5881
|
+
* })();
|
|
5882
|
+
* ```
|
|
5883
|
+
*/
|
|
5884
|
+
childDevicesBulkAdd(childReference, parentReference) {
|
|
5885
|
+
return __awaiter$o(this, void 0, void 0, function* () {
|
|
5886
|
+
return this.addChildBulk(exports.ChildType.DEVICES, childReference, parentReference);
|
|
5887
|
+
});
|
|
5888
|
+
}
|
|
5841
5889
|
/**
|
|
5842
5890
|
* Removes an existing managed object as child device from another managed object (parent)
|
|
5843
5891
|
*
|