@arrowsphere/api-client 3.15.0 → 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.
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
|
+
## [3.15.1] - 2022-10-28
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
|
|
10
|
+
- Update key "note" for license history
|
|
11
|
+
|
|
6
12
|
## [3.15.0] - 2022-10-24
|
|
7
13
|
|
|
8
14
|
### Changed
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
-
export declare enum
|
|
2
|
+
export declare enum HistoryNoteFields {
|
|
3
3
|
COLUMN_BEFORE = "before",
|
|
4
4
|
COLUMN_AFTER = "after",
|
|
5
5
|
COLUMN_EXTRA_INFORMATION = "extra_information"
|
|
6
6
|
}
|
|
7
|
-
export declare type
|
|
8
|
-
[
|
|
9
|
-
[
|
|
10
|
-
[
|
|
7
|
+
export declare type HistoryNoteGetData = {
|
|
8
|
+
[HistoryNoteFields.COLUMN_BEFORE]: Record<string, unknown>;
|
|
9
|
+
[HistoryNoteFields.COLUMN_AFTER]: Record<string, unknown>;
|
|
10
|
+
[HistoryNoteFields.COLUMN_EXTRA_INFORMATION]: Record<string, unknown>;
|
|
11
11
|
};
|
|
12
12
|
export declare enum ActionHistoryResultFields {
|
|
13
13
|
COLUMN_ACTION = "action",
|
|
14
|
-
|
|
14
|
+
COLUMN_NOTE = "note",
|
|
15
15
|
COLUMN_CREATED_AT = "created_at",
|
|
16
16
|
COLUMN_UPDATED_AT = "updated_at"
|
|
17
17
|
}
|
|
18
18
|
export declare type ActionHistoryResultData = {
|
|
19
19
|
[ActionHistoryResultFields.COLUMN_ACTION]: string;
|
|
20
|
-
[ActionHistoryResultFields.
|
|
20
|
+
[ActionHistoryResultFields.COLUMN_NOTE]: HistoryNoteGetData;
|
|
21
21
|
[ActionHistoryResultFields.COLUMN_CREATED_AT]: string;
|
|
22
22
|
[ActionHistoryResultFields.COLUMN_UPDATED_AT]: string;
|
|
23
23
|
};
|
|
@@ -25,7 +25,7 @@ export declare class ActionHistoryResult extends AbstractEntity<ActionHistoryRes
|
|
|
25
25
|
#private;
|
|
26
26
|
constructor(licenseHistoryGetDataInput: ActionHistoryResultData);
|
|
27
27
|
get action(): string;
|
|
28
|
-
get
|
|
28
|
+
get note(): HistoryNoteGetData;
|
|
29
29
|
get createdAt(): string;
|
|
30
30
|
get updatedAt(): string;
|
|
31
31
|
toJSON(): ActionHistoryResultData;
|
|
@@ -12,20 +12,20 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
12
12
|
}
|
|
13
13
|
return privateMap.get(receiver);
|
|
14
14
|
};
|
|
15
|
-
var _action,
|
|
15
|
+
var _action, _note, _created_at, _updated_at;
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ActionHistoryResult = exports.ActionHistoryResultFields = exports.
|
|
17
|
+
exports.ActionHistoryResult = exports.ActionHistoryResultFields = exports.HistoryNoteFields = void 0;
|
|
18
18
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
19
|
-
var
|
|
20
|
-
(function (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
})(
|
|
19
|
+
var HistoryNoteFields;
|
|
20
|
+
(function (HistoryNoteFields) {
|
|
21
|
+
HistoryNoteFields["COLUMN_BEFORE"] = "before";
|
|
22
|
+
HistoryNoteFields["COLUMN_AFTER"] = "after";
|
|
23
|
+
HistoryNoteFields["COLUMN_EXTRA_INFORMATION"] = "extra_information";
|
|
24
|
+
})(HistoryNoteFields = exports.HistoryNoteFields || (exports.HistoryNoteFields = {}));
|
|
25
25
|
var ActionHistoryResultFields;
|
|
26
26
|
(function (ActionHistoryResultFields) {
|
|
27
27
|
ActionHistoryResultFields["COLUMN_ACTION"] = "action";
|
|
28
|
-
ActionHistoryResultFields["
|
|
28
|
+
ActionHistoryResultFields["COLUMN_NOTE"] = "note";
|
|
29
29
|
ActionHistoryResultFields["COLUMN_CREATED_AT"] = "created_at";
|
|
30
30
|
ActionHistoryResultFields["COLUMN_UPDATED_AT"] = "updated_at";
|
|
31
31
|
})(ActionHistoryResultFields = exports.ActionHistoryResultFields || (exports.ActionHistoryResultFields = {}));
|
|
@@ -33,19 +33,19 @@ class ActionHistoryResult extends abstractEntity_1.AbstractEntity {
|
|
|
33
33
|
constructor(licenseHistoryGetDataInput) {
|
|
34
34
|
super(licenseHistoryGetDataInput);
|
|
35
35
|
_action.set(this, void 0);
|
|
36
|
-
|
|
36
|
+
_note.set(this, void 0);
|
|
37
37
|
_created_at.set(this, void 0);
|
|
38
38
|
_updated_at.set(this, void 0);
|
|
39
39
|
__classPrivateFieldSet(this, _action, licenseHistoryGetDataInput[ActionHistoryResultFields.COLUMN_ACTION]);
|
|
40
|
-
__classPrivateFieldSet(this,
|
|
40
|
+
__classPrivateFieldSet(this, _note, licenseHistoryGetDataInput[ActionHistoryResultFields.COLUMN_NOTE]);
|
|
41
41
|
__classPrivateFieldSet(this, _created_at, licenseHistoryGetDataInput[ActionHistoryResultFields.COLUMN_CREATED_AT]);
|
|
42
42
|
__classPrivateFieldSet(this, _updated_at, licenseHistoryGetDataInput[ActionHistoryResultFields.COLUMN_UPDATED_AT]);
|
|
43
43
|
}
|
|
44
44
|
get action() {
|
|
45
45
|
return __classPrivateFieldGet(this, _action);
|
|
46
46
|
}
|
|
47
|
-
get
|
|
48
|
-
return __classPrivateFieldGet(this,
|
|
47
|
+
get note() {
|
|
48
|
+
return __classPrivateFieldGet(this, _note);
|
|
49
49
|
}
|
|
50
50
|
get createdAt() {
|
|
51
51
|
return __classPrivateFieldGet(this, _created_at);
|
|
@@ -56,12 +56,12 @@ class ActionHistoryResult extends abstractEntity_1.AbstractEntity {
|
|
|
56
56
|
toJSON() {
|
|
57
57
|
return {
|
|
58
58
|
[ActionHistoryResultFields.COLUMN_ACTION]: this.action,
|
|
59
|
-
[ActionHistoryResultFields.
|
|
59
|
+
[ActionHistoryResultFields.COLUMN_NOTE]: this.note,
|
|
60
60
|
[ActionHistoryResultFields.COLUMN_CREATED_AT]: this.createdAt,
|
|
61
61
|
[ActionHistoryResultFields.COLUMN_UPDATED_AT]: this.updatedAt,
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
exports.ActionHistoryResult = ActionHistoryResult;
|
|
66
|
-
_action = new WeakMap(),
|
|
66
|
+
_action = new WeakMap(), _note = new WeakMap(), _created_at = new WeakMap(), _updated_at = new WeakMap();
|
|
67
67
|
//# sourceMappingURL=actionHistoryResult.js.map
|
|
@@ -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