@arrowsphere/api-client 2.3.0 → 2.4.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
4
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [2.4.0] - 2022-02-11
7
+
8
+ ### Added
9
+
10
+ - Add endpoint reactivate license
11
+
6
12
  ## [2.3.0] - 2022-02-11
7
13
 
8
14
  ### Added
@@ -209,6 +209,10 @@ export declare class LicensesClient extends AbstractClient {
209
209
  * The path of suspend endpoint
210
210
  */
211
211
  private SUSPEND_PATH;
212
+ /**
213
+ * The path of reactivate endpoint
214
+ */
215
+ private REACTIVATE_PATH;
212
216
  /**
213
217
  * Returns the raw result from the find endpoint call
214
218
  *
@@ -237,4 +241,5 @@ export declare class LicensesClient extends AbstractClient {
237
241
  getLicense(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetLicenseResult>>;
238
242
  updateSeats(licenseReference: string, putData: UpdateSeatsData, parameters?: Parameters): Promise<void>;
239
243
  suspendLicense(licenseReference: string, parameters?: Parameters): Promise<void>;
244
+ reactivateLicense(licenseReference: string, parameters?: Parameters): Promise<void>;
240
245
  }
@@ -131,6 +131,10 @@ class LicensesClient extends abstractClient_1.AbstractClient {
131
131
  * The path of suspend endpoint
132
132
  */
133
133
  this.SUSPEND_PATH = '/suspend';
134
+ /**
135
+ * The path of reactivate endpoint
136
+ */
137
+ this.REACTIVATE_PATH = '/reactivate';
134
138
  }
135
139
  /**
136
140
  * Returns the raw result from the find endpoint call
@@ -240,6 +244,10 @@ class LicensesClient extends abstractClient_1.AbstractClient {
240
244
  this.path = licenseReference + this.SUSPEND_PATH;
241
245
  return this.put(undefined, parameters);
242
246
  }
247
+ reactivateLicense(licenseReference, parameters = {}) {
248
+ this.path = licenseReference + this.REACTIVATE_PATH;
249
+ return this.put(undefined, parameters);
250
+ }
243
251
  }
244
252
  exports.LicensesClient = LicensesClient;
245
253
  //# 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": "2.3.0",
7
+ "version": "2.4.0",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",