@ikonintegration/mod-license-client 2.0.14 → 2.0.16

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.
@@ -24,9 +24,9 @@ export default class Key {
24
24
  req.path = '/activationKey/' + activationKey + '/consumption';
25
25
  return await req.exec();
26
26
  }
27
- async getKeyReservations(activationKey, externalID) {
27
+ async getKeyReservations(activationKey) {
28
28
  const req = await this.api.newBaseRequest('GET');
29
- req.path = `/activationKey/${activationKey}/${externalID}/reservations`;
29
+ req.path = `/activationKey/${activationKey}/reservations`;
30
30
  return await req.exec();
31
31
  }
32
32
  async getAssignedKeys(externalID, assignedTo, productID, showConsumed) {
@@ -13,6 +13,12 @@ export default class LicenseConsumption {
13
13
  req.path = '/licenses/consumptions';
14
14
  return await req.exec();
15
15
  }
16
+ async getLicenseConsumptionsByLicenseID(licensesID) {
17
+ const req = await this.api.newBaseRequest('POST');
18
+ req.body = { IDs: licensesID };
19
+ req.path = '/licenses/consumptions/licensesID';
20
+ return await req.exec();
21
+ }
16
22
  async searchLicenseConsumption(externalID, from, to) {
17
23
  const req = await this.api.newBaseRequest('POST');
18
24
  req.body = { externalID, from, to };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonintegration/mod-license-client",
3
- "version": "2.0.14",
3
+ "version": "2.0.16",
4
4
  "description": "Shared module license API client",
5
5
  "main": "index.js",
6
6
  "scripts": {