@arrowsphere/api-client 2.1.1 → 2.1.2
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 +11 -0
- package/build/licenses/entities/getLicense/actionMessagesGetResult.d.ts +8 -8
- package/build/licenses/entities/getLicense/actionsGetResult.d.ts +18 -18
- package/build/licenses/entities/getLicense/buySellFindResult.d.ts +4 -4
- package/build/licenses/entities/getLicense/licenseGetResult.d.ts +19 -19
- package/build/licenses/entities/getLicense/licenseGetResult.js +12 -31
- package/build/licenses/entities/getLicense/licensePriceGetResult.js +2 -10
- package/build/licenses/entities/getLicense/orderGetResult.d.ts +2 -2
- package/build/licenses/licensesClient.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.1.2] - 2022-02-01
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
|
|
10
|
+
- Fixed type of `GetLicense` endpoint
|
|
11
|
+
- Fixed type of `ActionMessagesGetResult` object
|
|
12
|
+
- Fixed type of `ActionsGetResult` object
|
|
13
|
+
- Fixed type of `BuySellFindResult` object
|
|
14
|
+
- Fixed type of `LicenseGetResult` object
|
|
15
|
+
- Fixed type of `OrderGetResult` object
|
|
16
|
+
|
|
6
17
|
## [2.1.1] - 2022-01-27
|
|
7
18
|
|
|
8
19
|
### Changed
|
|
@@ -8,18 +8,18 @@ export declare enum ActionMessagesGetResultFields {
|
|
|
8
8
|
}
|
|
9
9
|
export declare type ActionMessagesGetResultData = {
|
|
10
10
|
[ActionMessagesGetResultFields.COLUMN_ACTION]: string;
|
|
11
|
-
[ActionMessagesGetResultFields.COLUMN_MESSAGE]
|
|
12
|
-
[ActionMessagesGetResultFields.COLUMN_MAX_DECREASE]
|
|
13
|
-
[ActionMessagesGetResultFields.COLUMN_SUPPORTED_UNTIL]
|
|
14
|
-
[ActionMessagesGetResultFields.COLUMN_SUSPEND_DATE]
|
|
11
|
+
[ActionMessagesGetResultFields.COLUMN_MESSAGE]?: string;
|
|
12
|
+
[ActionMessagesGetResultFields.COLUMN_MAX_DECREASE]?: number;
|
|
13
|
+
[ActionMessagesGetResultFields.COLUMN_SUPPORTED_UNTIL]?: string;
|
|
14
|
+
[ActionMessagesGetResultFields.COLUMN_SUSPEND_DATE]?: string;
|
|
15
15
|
};
|
|
16
16
|
export declare class ActionMessagesGetResult extends AbstractEntity<ActionMessagesGetResultData> {
|
|
17
17
|
#private;
|
|
18
18
|
constructor(data: ActionMessagesGetResultData);
|
|
19
19
|
get action(): string;
|
|
20
|
-
get message(): string;
|
|
21
|
-
get maxDecrease(): number;
|
|
22
|
-
get supportedUntil(): string;
|
|
23
|
-
get suspendDate(): string;
|
|
20
|
+
get message(): string | undefined;
|
|
21
|
+
get maxDecrease(): number | undefined;
|
|
22
|
+
get supportedUntil(): string | undefined;
|
|
23
|
+
get suspendDate(): string | undefined;
|
|
24
24
|
toJSON(): ActionMessagesGetResultData;
|
|
25
25
|
}
|
|
@@ -13,28 +13,28 @@ export declare enum ActionsGetFields {
|
|
|
13
13
|
}
|
|
14
14
|
export declare type ActionsGetData = {
|
|
15
15
|
[ActionsGetFields.COLUMN_HISTORY]: string;
|
|
16
|
-
[ActionsGetFields.COLUMN_UPDATE]
|
|
17
|
-
[ActionsGetFields.COLUMN_INCREASE_SEATS]
|
|
18
|
-
[ActionsGetFields.COLUMN_DECREASE_SEATS]
|
|
19
|
-
[ActionsGetFields.COLUMN_ADDONS_CATALOG]
|
|
20
|
-
[ActionsGetFields.COLUMN_SUSPEND]
|
|
21
|
-
[ActionsGetFields.COLUMN_REACTIVATE]
|
|
22
|
-
[ActionsGetFields.COLUMN_AUTO_RENEW_OFF]
|
|
23
|
-
[ActionsGetFields.COLUMN_AUTO_RENEW_ON]
|
|
24
|
-
[ActionsGetFields.COLUMN_CANCEL]
|
|
16
|
+
[ActionsGetFields.COLUMN_UPDATE]?: string;
|
|
17
|
+
[ActionsGetFields.COLUMN_INCREASE_SEATS]?: string;
|
|
18
|
+
[ActionsGetFields.COLUMN_DECREASE_SEATS]?: string;
|
|
19
|
+
[ActionsGetFields.COLUMN_ADDONS_CATALOG]?: string;
|
|
20
|
+
[ActionsGetFields.COLUMN_SUSPEND]?: string;
|
|
21
|
+
[ActionsGetFields.COLUMN_REACTIVATE]?: string;
|
|
22
|
+
[ActionsGetFields.COLUMN_AUTO_RENEW_OFF]?: string;
|
|
23
|
+
[ActionsGetFields.COLUMN_AUTO_RENEW_ON]?: string;
|
|
24
|
+
[ActionsGetFields.COLUMN_CANCEL]?: string;
|
|
25
25
|
};
|
|
26
26
|
export declare class ActionsGetResult extends AbstractEntity<ActionsGetData> {
|
|
27
27
|
#private;
|
|
28
28
|
constructor(data: ActionsGetData);
|
|
29
29
|
get history(): string;
|
|
30
|
-
get update(): string;
|
|
31
|
-
get increaseSeats(): string;
|
|
32
|
-
get decreaseSeats(): string;
|
|
33
|
-
get addonsCatalog(): string;
|
|
34
|
-
get suspend(): string;
|
|
35
|
-
get reactivate(): string;
|
|
36
|
-
get autoRenewOff(): string;
|
|
37
|
-
get autoRenewOn(): string;
|
|
38
|
-
get cancel(): string;
|
|
30
|
+
get update(): string | undefined;
|
|
31
|
+
get increaseSeats(): string | undefined;
|
|
32
|
+
get decreaseSeats(): string | undefined;
|
|
33
|
+
get addonsCatalog(): string | undefined;
|
|
34
|
+
get suspend(): string | undefined;
|
|
35
|
+
get reactivate(): string | undefined;
|
|
36
|
+
get autoRenewOff(): string | undefined;
|
|
37
|
+
get autoRenewOn(): string | undefined;
|
|
38
|
+
get cancel(): string | undefined;
|
|
39
39
|
toJSON(): ActionsGetData;
|
|
40
40
|
}
|
|
@@ -4,13 +4,13 @@ export declare enum BuySellFields {
|
|
|
4
4
|
COLUMN_SELL = "sell"
|
|
5
5
|
}
|
|
6
6
|
export declare type BuySellData = {
|
|
7
|
-
[BuySellFields.COLUMN_BUY]
|
|
8
|
-
[BuySellFields.COLUMN_SELL]
|
|
7
|
+
[BuySellFields.COLUMN_BUY]?: number;
|
|
8
|
+
[BuySellFields.COLUMN_SELL]?: number;
|
|
9
9
|
};
|
|
10
10
|
export declare class BuySellFindResult extends AbstractEntity<BuySellData> {
|
|
11
11
|
#private;
|
|
12
12
|
constructor(data: BuySellData);
|
|
13
|
-
get buy(): number;
|
|
14
|
-
get sell(): number;
|
|
13
|
+
get buy(): number | undefined;
|
|
14
|
+
get sell(): number | undefined;
|
|
15
15
|
toJSON(): BuySellData;
|
|
16
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ActionsGetData, ActionsGetResult } from './actionsGetResult';
|
|
2
|
-
import { ActionMessagesGetResultData } from './actionMessagesGetResult';
|
|
2
|
+
import { ActionMessagesGetResult, ActionMessagesGetResultData } from './actionMessagesGetResult';
|
|
3
3
|
import { OrderGetData, OrderGetResult } from './orderGetResult';
|
|
4
4
|
import { LicensePriceGetData, LicensePriceGetResult } from './licensePriceGetResult';
|
|
5
5
|
import { AbstractEntity } from '../../../abstractEntity';
|
|
@@ -34,8 +34,8 @@ export declare enum LicenseGetFields {
|
|
|
34
34
|
}
|
|
35
35
|
export declare type LicenseGetData = {
|
|
36
36
|
[LicenseGetFields.COLUMN_LICENSE_ID]: string;
|
|
37
|
-
[LicenseGetFields.COLUMN_PARENT_LICENSE_ID]: string;
|
|
38
|
-
[LicenseGetFields.COLUMN_FRIENDLY_NAME]: string;
|
|
37
|
+
[LicenseGetFields.COLUMN_PARENT_LICENSE_ID]: string | null;
|
|
38
|
+
[LicenseGetFields.COLUMN_FRIENDLY_NAME]: string | null;
|
|
39
39
|
[LicenseGetFields.COLUMN_CUSTOMER_REF]: string;
|
|
40
40
|
[LicenseGetFields.COLUMN_STATE]: string;
|
|
41
41
|
[LicenseGetFields.COLUMN_SERVICE_REF]: string;
|
|
@@ -43,29 +43,29 @@ export declare type LicenseGetData = {
|
|
|
43
43
|
[LicenseGetFields.COLUMN_NAME]: string;
|
|
44
44
|
[LicenseGetFields.COLUMN_SEATS]: number;
|
|
45
45
|
[LicenseGetFields.COLUMN_ACTIVE_SEATS]: ActiveSeatsFindResultData;
|
|
46
|
-
[LicenseGetFields.COLUMN_ACTIVATION_DATETIME]: string;
|
|
47
|
-
[LicenseGetFields.COLUMN_EXPIRY_DATETIME]: string;
|
|
48
|
-
[LicenseGetFields.COLUMN_AUTO_RENEW]
|
|
46
|
+
[LicenseGetFields.COLUMN_ACTIVATION_DATETIME]: string | null;
|
|
47
|
+
[LicenseGetFields.COLUMN_EXPIRY_DATETIME]: string | null;
|
|
48
|
+
[LicenseGetFields.COLUMN_AUTO_RENEW]?: boolean;
|
|
49
49
|
[LicenseGetFields.COLUMN_MESSAGE]: string;
|
|
50
|
-
[LicenseGetFields.COLUMN_ACTIONS]
|
|
51
|
-
[LicenseGetFields.COLUMN_ACTION_MESSAGES]
|
|
50
|
+
[LicenseGetFields.COLUMN_ACTIONS]?: ActionsGetData;
|
|
51
|
+
[LicenseGetFields.COLUMN_ACTION_MESSAGES]?: Array<ActionMessagesGetResultData>;
|
|
52
52
|
[LicenseGetFields.COLUMN_ORDER_REFERENCE]: string;
|
|
53
53
|
[LicenseGetFields.COLUMN_ORDER]: OrderGetData;
|
|
54
|
-
[LicenseGetFields.COLUMN_VENDOR_LICENSE_ID]: string;
|
|
54
|
+
[LicenseGetFields.COLUMN_VENDOR_LICENSE_ID]: string | null;
|
|
55
55
|
[LicenseGetFields.COLUMN_PERIODICITY]: string;
|
|
56
56
|
[LicenseGetFields.COLUMN_TERM]: string;
|
|
57
57
|
[LicenseGetFields.COLUMN_CATEGORY]: string;
|
|
58
58
|
[LicenseGetFields.COLUMN_PROGRAM]: string;
|
|
59
59
|
[LicenseGetFields.COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM]: string;
|
|
60
60
|
[LicenseGetFields.COLUMN_PRICE]: LicensePriceGetData;
|
|
61
|
-
[LicenseGetFields.COLUMN_ARROW_SUB_CATEGORIES]
|
|
61
|
+
[LicenseGetFields.COLUMN_ARROW_SUB_CATEGORIES]?: Array<string> | null;
|
|
62
62
|
};
|
|
63
63
|
export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
|
|
64
64
|
#private;
|
|
65
65
|
constructor(data: LicenseGetData);
|
|
66
66
|
get id(): string;
|
|
67
|
-
get parentLicenseId(): string;
|
|
68
|
-
get friendlyName(): string;
|
|
67
|
+
get parentLicenseId(): string | null;
|
|
68
|
+
get friendlyName(): string | null;
|
|
69
69
|
get customerRef(): string;
|
|
70
70
|
get state(): string;
|
|
71
71
|
get serviceRef(): string;
|
|
@@ -73,21 +73,21 @@ export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
|
|
|
73
73
|
get name(): string;
|
|
74
74
|
get seats(): number;
|
|
75
75
|
get activeSeats(): ActiveSeatsFindResult;
|
|
76
|
-
get activationDatetime(): string;
|
|
77
|
-
get expiryDatetime(): string;
|
|
78
|
-
get autoRenew(): boolean;
|
|
76
|
+
get activationDatetime(): string | null;
|
|
77
|
+
get expiryDatetime(): string | null;
|
|
78
|
+
get autoRenew(): boolean | undefined;
|
|
79
79
|
get message(): string;
|
|
80
|
-
get actions(): ActionsGetResult;
|
|
81
|
-
get actionMessages(): Array<
|
|
80
|
+
get actions(): ActionsGetResult | undefined;
|
|
81
|
+
get actionMessages(): Array<ActionMessagesGetResult> | undefined;
|
|
82
82
|
get orderReference(): string;
|
|
83
83
|
get order(): OrderGetResult;
|
|
84
|
-
get vendorLicenseId(): string;
|
|
84
|
+
get vendorLicenseId(): string | null;
|
|
85
85
|
get periodicity(): string;
|
|
86
86
|
get term(): string;
|
|
87
87
|
get category(): string;
|
|
88
88
|
get program(): string;
|
|
89
89
|
get associatedSubscriptionProgram(): string;
|
|
90
90
|
get price(): LicensePriceGetResult;
|
|
91
|
-
get arrowSubCategories(): Array<string
|
|
91
|
+
get arrowSubCategories(): Array<string> | null | undefined;
|
|
92
92
|
toJSON(): LicenseGetData;
|
|
93
93
|
}
|
|
@@ -16,6 +16,7 @@ var _license_id, _parent_license_id, _friendlyName, _customer_ref, _state, _serv
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.LicenseGetResult = exports.LicenseGetFields = void 0;
|
|
18
18
|
const actionsGetResult_1 = require("./actionsGetResult");
|
|
19
|
+
const actionMessagesGetResult_1 = require("./actionMessagesGetResult");
|
|
19
20
|
const orderGetResult_1 = require("./orderGetResult");
|
|
20
21
|
const licensePriceGetResult_1 = require("./licensePriceGetResult");
|
|
21
22
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
@@ -51,6 +52,7 @@ var LicenseGetFields;
|
|
|
51
52
|
})(LicenseGetFields = exports.LicenseGetFields || (exports.LicenseGetFields = {}));
|
|
52
53
|
class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
53
54
|
constructor(data) {
|
|
55
|
+
var _a;
|
|
54
56
|
super(data);
|
|
55
57
|
_license_id.set(this, void 0);
|
|
56
58
|
_parent_license_id.set(this, void 0);
|
|
@@ -87,46 +89,24 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
87
89
|
__classPrivateFieldSet(this, _sku, data[LicenseGetFields.COLUMN_SKU]);
|
|
88
90
|
__classPrivateFieldSet(this, _name, data[LicenseGetFields.COLUMN_NAME]);
|
|
89
91
|
__classPrivateFieldSet(this, _seats, data[LicenseGetFields.COLUMN_SEATS]);
|
|
90
|
-
|
|
91
|
-
[activeSeatsFindResult_1.ActiveSeatsFindResultFields.COLUMN_NUMBER]: data[LicenseGetFields.COLUMN_ACTIVE_SEATS][activeSeatsFindResult_1.ActiveSeatsFindResultFields.COLUMN_NUMBER],
|
|
92
|
-
[activeSeatsFindResult_1.ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE]: data[LicenseGetFields.COLUMN_ACTIVE_SEATS][activeSeatsFindResult_1.ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE],
|
|
93
|
-
};
|
|
94
|
-
__classPrivateFieldSet(this, _activeSeats, new activeSeatsFindResult_1.ActiveSeatsFindResult(activeSeats));
|
|
92
|
+
__classPrivateFieldSet(this, _activeSeats, new activeSeatsFindResult_1.ActiveSeatsFindResult(data[LicenseGetFields.COLUMN_ACTIVE_SEATS]));
|
|
95
93
|
__classPrivateFieldSet(this, _activation_datetime, data[LicenseGetFields.COLUMN_ACTIVATION_DATETIME]);
|
|
96
94
|
__classPrivateFieldSet(this, _expiry_datetime, data[LicenseGetFields.COLUMN_EXPIRY_DATETIME]);
|
|
97
95
|
__classPrivateFieldSet(this, _autoRenew, data[LicenseGetFields.COLUMN_AUTO_RENEW]);
|
|
98
96
|
__classPrivateFieldSet(this, _message, data[LicenseGetFields.COLUMN_MESSAGE]);
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
[actionsGetResult_1.ActionsGetFields.COLUMN_DECREASE_SEATS]: data[LicenseGetFields.COLUMN_ACTIONS][actionsGetResult_1.ActionsGetFields.COLUMN_DECREASE_SEATS],
|
|
104
|
-
[actionsGetResult_1.ActionsGetFields.COLUMN_ADDONS_CATALOG]: data[LicenseGetFields.COLUMN_ACTIONS][actionsGetResult_1.ActionsGetFields.COLUMN_ADDONS_CATALOG],
|
|
105
|
-
[actionsGetResult_1.ActionsGetFields.COLUMN_SUSPEND]: data[LicenseGetFields.COLUMN_ACTIONS][actionsGetResult_1.ActionsGetFields.COLUMN_SUSPEND],
|
|
106
|
-
[actionsGetResult_1.ActionsGetFields.COLUMN_REACTIVATE]: data[LicenseGetFields.COLUMN_ACTIONS][actionsGetResult_1.ActionsGetFields.COLUMN_REACTIVATE],
|
|
107
|
-
[actionsGetResult_1.ActionsGetFields.COLUMN_AUTO_RENEW_OFF]: data[LicenseGetFields.COLUMN_ACTIONS][actionsGetResult_1.ActionsGetFields.COLUMN_AUTO_RENEW_OFF],
|
|
108
|
-
[actionsGetResult_1.ActionsGetFields.COLUMN_AUTO_RENEW_ON]: data[LicenseGetFields.COLUMN_ACTIONS][actionsGetResult_1.ActionsGetFields.COLUMN_AUTO_RENEW_ON],
|
|
109
|
-
[actionsGetResult_1.ActionsGetFields.COLUMN_CANCEL]: data[LicenseGetFields.COLUMN_ACTIONS][actionsGetResult_1.ActionsGetFields.COLUMN_CANCEL],
|
|
110
|
-
};
|
|
111
|
-
__classPrivateFieldSet(this, _actions, new actionsGetResult_1.ActionsGetResult(actions));
|
|
112
|
-
__classPrivateFieldSet(this, _actionMessages, data[LicenseGetFields.COLUMN_ACTION_MESSAGES]);
|
|
113
|
-
const order = {
|
|
114
|
-
[orderGetResult_1.OrderGetFields.COLUMN_REFERENCE]: data[LicenseGetFields.COLUMN_ORDER][orderGetResult_1.OrderGetFields.COLUMN_REFERENCE],
|
|
115
|
-
[orderGetResult_1.OrderGetFields.COLUMN_LINK]: data[LicenseGetFields.COLUMN_ORDER][orderGetResult_1.OrderGetFields.COLUMN_LINK],
|
|
116
|
-
};
|
|
97
|
+
__classPrivateFieldSet(this, _actions, data[LicenseGetFields.COLUMN_ACTIONS]
|
|
98
|
+
? new actionsGetResult_1.ActionsGetResult(data[LicenseGetFields.COLUMN_ACTIONS])
|
|
99
|
+
: undefined);
|
|
100
|
+
__classPrivateFieldSet(this, _actionMessages, (_a = data[LicenseGetFields.COLUMN_ACTION_MESSAGES]) === null || _a === void 0 ? void 0 : _a.map((result) => new actionMessagesGetResult_1.ActionMessagesGetResult(result)));
|
|
117
101
|
__classPrivateFieldSet(this, _order_reference, data[LicenseGetFields.COLUMN_ORDER_REFERENCE]);
|
|
118
|
-
__classPrivateFieldSet(this, _order, new orderGetResult_1.OrderGetResult(
|
|
102
|
+
__classPrivateFieldSet(this, _order, new orderGetResult_1.OrderGetResult(data[LicenseGetFields.COLUMN_ORDER]));
|
|
119
103
|
__classPrivateFieldSet(this, _vendor_license_id, data[LicenseGetFields.COLUMN_VENDOR_LICENSE_ID]);
|
|
120
104
|
__classPrivateFieldSet(this, _periodicity, data[LicenseGetFields.COLUMN_PERIODICITY]);
|
|
121
105
|
__classPrivateFieldSet(this, _term, data[LicenseGetFields.COLUMN_TERM]);
|
|
122
106
|
__classPrivateFieldSet(this, _category, data[LicenseGetFields.COLUMN_CATEGORY]);
|
|
123
107
|
__classPrivateFieldSet(this, _program, data[LicenseGetFields.COLUMN_PROGRAM]);
|
|
124
108
|
__classPrivateFieldSet(this, _associatedSubscriptionProgram, data[LicenseGetFields.COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM]);
|
|
125
|
-
|
|
126
|
-
[licensePriceGetResult_1.LicensePriceGetFields.COLUMN_UNIT]: data[LicenseGetFields.COLUMN_PRICE][licensePriceGetResult_1.LicensePriceGetFields.COLUMN_UNIT],
|
|
127
|
-
[licensePriceGetResult_1.LicensePriceGetFields.COLUMN_TOTAL]: data[LicenseGetFields.COLUMN_PRICE][licensePriceGetResult_1.LicensePriceGetFields.COLUMN_TOTAL],
|
|
128
|
-
};
|
|
129
|
-
__classPrivateFieldSet(this, _price, new licensePriceGetResult_1.LicensePriceGetResult(price));
|
|
109
|
+
__classPrivateFieldSet(this, _price, new licensePriceGetResult_1.LicensePriceGetResult(data[LicenseGetFields.COLUMN_PRICE]));
|
|
130
110
|
__classPrivateFieldSet(this, _arrowSubCategories, data[LicenseGetFields.COLUMN_ARROW_SUB_CATEGORIES]);
|
|
131
111
|
}
|
|
132
112
|
get id() {
|
|
@@ -208,6 +188,7 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
208
188
|
return __classPrivateFieldGet(this, _arrowSubCategories);
|
|
209
189
|
}
|
|
210
190
|
toJSON() {
|
|
191
|
+
var _a, _b;
|
|
211
192
|
return {
|
|
212
193
|
[LicenseGetFields.COLUMN_LICENSE_ID]: this.id,
|
|
213
194
|
[LicenseGetFields.COLUMN_PARENT_LICENSE_ID]: this.parentLicenseId,
|
|
@@ -223,8 +204,8 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
223
204
|
[LicenseGetFields.COLUMN_EXPIRY_DATETIME]: this.expiryDatetime,
|
|
224
205
|
[LicenseGetFields.COLUMN_AUTO_RENEW]: this.autoRenew,
|
|
225
206
|
[LicenseGetFields.COLUMN_MESSAGE]: this.message,
|
|
226
|
-
[LicenseGetFields.COLUMN_ACTIONS]: this.actions.toJSON(),
|
|
227
|
-
[LicenseGetFields.COLUMN_ACTION_MESSAGES]: this.actionMessages,
|
|
207
|
+
[LicenseGetFields.COLUMN_ACTIONS]: (_a = this.actions) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
208
|
+
[LicenseGetFields.COLUMN_ACTION_MESSAGES]: (_b = this.actionMessages) === null || _b === void 0 ? void 0 : _b.map((result) => result.toJSON()),
|
|
228
209
|
[LicenseGetFields.COLUMN_ORDER_REFERENCE]: this.orderReference,
|
|
229
210
|
[LicenseGetFields.COLUMN_ORDER]: this.order.toJSON(),
|
|
230
211
|
[LicenseGetFields.COLUMN_VENDOR_LICENSE_ID]: this.vendorLicenseId,
|
|
@@ -27,16 +27,8 @@ class LicensePriceGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
27
27
|
super(data);
|
|
28
28
|
_unit.set(this, void 0);
|
|
29
29
|
_total.set(this, void 0);
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
[buySellFindResult_1.BuySellFields.COLUMN_SELL]: data[LicensePriceGetFields.COLUMN_UNIT][buySellFindResult_1.BuySellFields.COLUMN_SELL],
|
|
33
|
-
};
|
|
34
|
-
__classPrivateFieldSet(this, _unit, new buySellFindResult_1.BuySellFindResult(unit));
|
|
35
|
-
const total = {
|
|
36
|
-
[buySellFindResult_1.BuySellFields.COLUMN_BUY]: data[LicensePriceGetFields.COLUMN_TOTAL][buySellFindResult_1.BuySellFields.COLUMN_BUY],
|
|
37
|
-
[buySellFindResult_1.BuySellFields.COLUMN_SELL]: data[LicensePriceGetFields.COLUMN_TOTAL][buySellFindResult_1.BuySellFields.COLUMN_SELL],
|
|
38
|
-
};
|
|
39
|
-
__classPrivateFieldSet(this, _total, new buySellFindResult_1.BuySellFindResult(total));
|
|
30
|
+
__classPrivateFieldSet(this, _unit, new buySellFindResult_1.BuySellFindResult(data[LicensePriceGetFields.COLUMN_UNIT]));
|
|
31
|
+
__classPrivateFieldSet(this, _total, new buySellFindResult_1.BuySellFindResult(data[LicensePriceGetFields.COLUMN_TOTAL]));
|
|
40
32
|
}
|
|
41
33
|
get unit() {
|
|
42
34
|
return __classPrivateFieldGet(this, _unit);
|
|
@@ -4,13 +4,13 @@ export declare enum OrderGetFields {
|
|
|
4
4
|
COLUMN_LINK = "link"
|
|
5
5
|
}
|
|
6
6
|
export declare type OrderGetData = {
|
|
7
|
-
[OrderGetFields.COLUMN_REFERENCE]: string;
|
|
7
|
+
[OrderGetFields.COLUMN_REFERENCE]: string | null;
|
|
8
8
|
[OrderGetFields.COLUMN_LINK]: string;
|
|
9
9
|
};
|
|
10
10
|
export declare class OrderGetResult extends AbstractEntity<OrderGetData> {
|
|
11
11
|
#private;
|
|
12
12
|
constructor(data: OrderGetData);
|
|
13
|
-
get reference(): string;
|
|
13
|
+
get reference(): string | null;
|
|
14
14
|
get link(): string;
|
|
15
15
|
toJSON(): OrderGetData;
|
|
16
16
|
}
|
|
@@ -7,6 +7,7 @@ exports.LicensesClient = exports.LicenseFindParameters = void 0;
|
|
|
7
7
|
const abstractClient_1 = require("../abstractClient");
|
|
8
8
|
const findResult_1 = require("./entities/findResult");
|
|
9
9
|
const configFindResult_1 = require("./entities/license/configFindResult");
|
|
10
|
+
const getResult_1 = require("./entities/getResult");
|
|
10
11
|
/**
|
|
11
12
|
* Parameters passable to the request for refining search.
|
|
12
13
|
*/
|
|
@@ -217,9 +218,9 @@ class LicensesClient extends abstractClient_1.AbstractClient {
|
|
|
217
218
|
const rawResponse = await this.updateConfigRaw(reference, config);
|
|
218
219
|
return new configFindResult_1.ConfigFindResult(rawResponse);
|
|
219
220
|
}
|
|
220
|
-
getLicense(licenseReference, parameters = {}) {
|
|
221
|
+
async getLicense(licenseReference, parameters = {}) {
|
|
221
222
|
this.path = licenseReference;
|
|
222
|
-
return this.get(parameters);
|
|
223
|
+
return new getResult_1.GetResult(await this.get(parameters)).toJSON();
|
|
223
224
|
}
|
|
224
225
|
}
|
|
225
226
|
exports.LicensesClient = LicensesClient;
|
package/package.json
CHANGED