@arrowsphere/api-client 2.4.0 → 2.5.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.5.0] - 2022-02-14
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- Add endpoint cancel license
|
|
11
|
+
|
|
6
12
|
## [2.4.0] - 2022-02-11
|
|
7
13
|
|
|
8
14
|
### Added
|
|
@@ -213,6 +213,10 @@ export declare class LicensesClient extends AbstractClient {
|
|
|
213
213
|
* The path of reactivate endpoint
|
|
214
214
|
*/
|
|
215
215
|
private REACTIVATE_PATH;
|
|
216
|
+
/**
|
|
217
|
+
* The path of cancel endpoint
|
|
218
|
+
*/
|
|
219
|
+
private CANCEL_PATH;
|
|
216
220
|
/**
|
|
217
221
|
* Returns the raw result from the find endpoint call
|
|
218
222
|
*
|
|
@@ -242,4 +246,5 @@ export declare class LicensesClient extends AbstractClient {
|
|
|
242
246
|
updateSeats(licenseReference: string, putData: UpdateSeatsData, parameters?: Parameters): Promise<void>;
|
|
243
247
|
suspendLicense(licenseReference: string, parameters?: Parameters): Promise<void>;
|
|
244
248
|
reactivateLicense(licenseReference: string, parameters?: Parameters): Promise<void>;
|
|
249
|
+
cancelLicense(licenseReference: string, parameters?: Parameters): Promise<void>;
|
|
245
250
|
}
|
|
@@ -135,6 +135,10 @@ class LicensesClient extends abstractClient_1.AbstractClient {
|
|
|
135
135
|
* The path of reactivate endpoint
|
|
136
136
|
*/
|
|
137
137
|
this.REACTIVATE_PATH = '/reactivate';
|
|
138
|
+
/**
|
|
139
|
+
* The path of cancel endpoint
|
|
140
|
+
*/
|
|
141
|
+
this.CANCEL_PATH = '/cancel';
|
|
138
142
|
}
|
|
139
143
|
/**
|
|
140
144
|
* Returns the raw result from the find endpoint call
|
|
@@ -248,6 +252,10 @@ class LicensesClient extends abstractClient_1.AbstractClient {
|
|
|
248
252
|
this.path = licenseReference + this.REACTIVATE_PATH;
|
|
249
253
|
return this.put(undefined, parameters);
|
|
250
254
|
}
|
|
255
|
+
cancelLicense(licenseReference, parameters = {}) {
|
|
256
|
+
this.path = licenseReference + this.CANCEL_PATH;
|
|
257
|
+
return this.put(undefined, parameters);
|
|
258
|
+
}
|
|
251
259
|
}
|
|
252
260
|
exports.LicensesClient = LicensesClient;
|
|
253
261
|
//# sourceMappingURL=licensesClient.js.map
|
package/package.json
CHANGED