@arrowsphere/api-client 2.2.1 → 2.3.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.3.0] - 2022-02-11
7
+
8
+ ### Added
9
+
10
+ - Add endpoint suspend license
11
+
6
12
  ## [2.2.1] - 2022-02-10
7
13
 
8
14
  ### Added
@@ -205,6 +205,10 @@ export declare class LicensesClient extends AbstractClient {
205
205
  * The path of the Seats endpoint
206
206
  */
207
207
  private SEATS_PATH;
208
+ /**
209
+ * The path of suspend endpoint
210
+ */
211
+ private SUSPEND_PATH;
208
212
  /**
209
213
  * Returns the raw result from the find endpoint call
210
214
  *
@@ -232,4 +236,5 @@ export declare class LicensesClient extends AbstractClient {
232
236
  updateConfig(reference: string, config: ConfigFindResult): Promise<ConfigFindResult>;
233
237
  getLicense(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetLicenseResult>>;
234
238
  updateSeats(licenseReference: string, putData: UpdateSeatsData, parameters?: Parameters): Promise<void>;
239
+ suspendLicense(licenseReference: string, parameters?: Parameters): Promise<void>;
235
240
  }
@@ -127,6 +127,10 @@ class LicensesClient extends abstractClient_1.AbstractClient {
127
127
  * The path of the Seats endpoint
128
128
  */
129
129
  this.SEATS_PATH = '/seats';
130
+ /**
131
+ * The path of suspend endpoint
132
+ */
133
+ this.SUSPEND_PATH = '/suspend';
130
134
  }
131
135
  /**
132
136
  * Returns the raw result from the find endpoint call
@@ -232,6 +236,10 @@ class LicensesClient extends abstractClient_1.AbstractClient {
232
236
  this.path = licenseReference + this.SEATS_PATH;
233
237
  return this.put(putData, parameters);
234
238
  }
239
+ suspendLicense(licenseReference, parameters = {}) {
240
+ this.path = licenseReference + this.SUSPEND_PATH;
241
+ return this.put(undefined, parameters);
242
+ }
235
243
  }
236
244
  exports.LicensesClient = LicensesClient;
237
245
  //# 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.2.1",
7
+ "version": "2.3.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",