@arrowsphere/api-client 3.15.1 → 3.16.0-rc.1

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.
@@ -231,6 +231,14 @@ export declare class LicensesClient extends AbstractClient {
231
231
  * The path of license history
232
232
  */
233
233
  private GET_LICENSE_HISTORY_PATH;
234
+ /**
235
+ * The path of cancel license auto-renew
236
+ */
237
+ private CANCEL_AUTO_RENEW_PATH;
238
+ /**
239
+ * The path of reactivate license auto-renew
240
+ */
241
+ private REACTIVATE_AUTO_RENEW_PATH;
234
242
  /**
235
243
  * Returns the raw result from the find endpoint call
236
244
  *
@@ -263,4 +271,6 @@ export declare class LicensesClient extends AbstractClient {
263
271
  cancelLicense(licenseReference: string, parameters?: Parameters): Promise<void>;
264
272
  updateFriendlyName(licenseReference: string, putData: PutFriendlyName, parameters?: Parameters): Promise<void>;
265
273
  getHistory(licenseReference: string, parameters?: Parameters): Promise<GetResult<LicenceHistoryResult>>;
274
+ cancelAutoRenew(licenseReference: string, parameters?: Parameters): Promise<void>;
275
+ reactivateAutoRenew(licenseReference: string, parameters?: Parameters): Promise<void>;
266
276
  }
@@ -148,6 +148,14 @@ class LicensesClient extends abstractClient_1.AbstractClient {
148
148
  * The path of license history
149
149
  */
150
150
  this.GET_LICENSE_HISTORY_PATH = '/history';
151
+ /**
152
+ * The path of cancel license auto-renew
153
+ */
154
+ this.CANCEL_AUTO_RENEW_PATH = '/autorenew/cancel';
155
+ /**
156
+ * The path of reactivate license auto-renew
157
+ */
158
+ this.REACTIVATE_AUTO_RENEW_PATH = '/autorenew/reactivate';
151
159
  }
152
160
  /**
153
161
  * Returns the raw result from the find endpoint call
@@ -286,6 +294,14 @@ class LicensesClient extends abstractClient_1.AbstractClient {
286
294
  this.path = licenseReference + this.GET_LICENSE_HISTORY_PATH;
287
295
  return new getResult_1.GetResult(licenceHistoryResult_1.LicenceHistoryResult, await this.get(parameters));
288
296
  }
297
+ async cancelAutoRenew(licenseReference, parameters = {}) {
298
+ this.path = licenseReference + this.CANCEL_AUTO_RENEW_PATH;
299
+ return await this.put(undefined, parameters);
300
+ }
301
+ async reactivateAutoRenew(licenseReference, parameters = {}) {
302
+ this.path = licenseReference + this.REACTIVATE_AUTO_RENEW_PATH;
303
+ return await this.put(undefined, parameters);
304
+ }
289
305
  }
290
306
  exports.LicensesClient = LicensesClient;
291
307
  //# sourceMappingURL=licensesClient.js.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.15.1",
7
+ "version": "3.16.0-rc.1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",