@ikonintegration/mod-license-client 3.0.0-alpha3 → 3.0.0-alpha4

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.
@@ -51,4 +51,25 @@ export default class License {
51
51
  req.path = `/licenses/${extID}/product/${productID}/available` + (expanded ? '?expanded=true' : '');
52
52
  return await req.exec();
53
53
  }
54
+ async reserveLicense(reservationID, activationKey, body) {
55
+ const req = await this.api.newBaseRequest('POST');
56
+ req.path = `/license/reservation/${reservationID}/${activationKey}`;
57
+ req.body = body;
58
+ return await req.exec();
59
+ }
60
+ async getLicenseReservation(reservationID, activationKey) {
61
+ const req = await this.api.newBaseRequest('GET');
62
+ req.path = `/license/reservation/${reservationID}/${activationKey}`;
63
+ return await req.exec();
64
+ }
65
+ async getLicenseReservations(reservationID) {
66
+ const req = await this.api.newBaseRequest('GET');
67
+ req.path = `/license/reservations/${reservationID}`;
68
+ return await req.exec();
69
+ }
70
+ async removeLicenseReservation(reservationID, activationKey) {
71
+ const req = await this.api.newBaseRequest('DELETE');
72
+ req.path = `/license/reservation/${reservationID}/${activationKey}`;
73
+ return await req.exec();
74
+ }
54
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonintegration/mod-license-client",
3
- "version": "3.0.0-alpha3",
3
+ "version": "3.0.0-alpha4",
4
4
  "description": "Shared module license API client",
5
5
  "main": "index.js",
6
6
  "type": "module",