@arrowsphere/api-client 3.2.1 → 3.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 +23 -0
- package/build/index.d.ts +4 -2
- package/build/index.js +4 -2
- package/build/licenses/entities/getLicense/licenseGetResult.d.ts +6 -0
- package/build/licenses/entities/getLicense/licenseGetResult.js +16 -2
- package/build/licenses/entities/getLicense/licensePriceGetResult.js +1 -1
- package/build/licenses/entities/license/licenseFindResult.d.ts +6 -6
- package/build/licenses/entities/license/licenseFindResult.js +9 -10
- package/build/orders/entities/orders/products/prices/productPrices.d.ts +31 -0
- package/build/orders/entities/orders/products/prices/productPrices.js +82 -0
- package/build/orders/entities/orders/products/products.d.ts +11 -13
- package/build/orders/entities/orders/products/products.js +28 -12
- package/build/orders/index.d.ts +1 -0
- package/build/orders/index.js +1 -0
- package/build/shared/index.d.ts +1 -0
- package/build/shared/index.js +14 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
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.5.0] - 2022-05-02
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
|
|
10
|
+
- Object LicenseGetResult:
|
|
11
|
+
- Add field termCode and periodicityCode
|
|
12
|
+
|
|
13
|
+
## [3.4.0] - 2022-04-28
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- Object ProductPrices:
|
|
18
|
+
- Add field termCode and periodicityCode
|
|
19
|
+
|
|
20
|
+
## [3.3.0] - 2022-04-27
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- OrderProduct:
|
|
25
|
+
- Add fields isAddon, isTrial, arrowSubCategories
|
|
26
|
+
- Create object ProductPrices:
|
|
27
|
+
- Add field term
|
|
28
|
+
|
|
6
29
|
## [3.2.1] - 2022-04-06
|
|
7
30
|
|
|
8
31
|
### Changed
|
package/build/index.d.ts
CHANGED
|
@@ -4,8 +4,10 @@ export * from './abstractEntity';
|
|
|
4
4
|
export * from './abstractClient';
|
|
5
5
|
export * from './abstractGraphQLClient';
|
|
6
6
|
export * from './catalog/';
|
|
7
|
-
export * from './
|
|
7
|
+
export * from './customers/';
|
|
8
8
|
export * from './general/';
|
|
9
|
+
export * from './licenses/';
|
|
10
|
+
export * from './orders/';
|
|
11
|
+
export * from './shared/';
|
|
9
12
|
export * from './subscriptions/';
|
|
10
|
-
export * from './customers/';
|
|
11
13
|
export * from './getResult';
|
package/build/index.js
CHANGED
|
@@ -16,9 +16,11 @@ __exportStar(require("./abstractEntity"), exports);
|
|
|
16
16
|
__exportStar(require("./abstractClient"), exports);
|
|
17
17
|
__exportStar(require("./abstractGraphQLClient"), exports);
|
|
18
18
|
__exportStar(require("./catalog/"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./customers/"), exports);
|
|
20
20
|
__exportStar(require("./general/"), exports);
|
|
21
|
+
__exportStar(require("./licenses/"), exports);
|
|
22
|
+
__exportStar(require("./orders/"), exports);
|
|
23
|
+
__exportStar(require("./shared/"), exports);
|
|
21
24
|
__exportStar(require("./subscriptions/"), exports);
|
|
22
|
-
__exportStar(require("./customers/"), exports);
|
|
23
25
|
__exportStar(require("./getResult"), exports);
|
|
24
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -28,7 +28,9 @@ export declare enum LicenseGetFields {
|
|
|
28
28
|
COLUMN_ORDER = "order",
|
|
29
29
|
COLUMN_VENDOR_LICENSE_ID = "vendor_license_id",
|
|
30
30
|
COLUMN_PERIODICITY = "periodicity",
|
|
31
|
+
COLUMN_PERIODICITY_CODE = "periodicityCode",
|
|
31
32
|
COLUMN_TERM = "term",
|
|
33
|
+
COLUMN_TERM_CODE = "termCode",
|
|
32
34
|
COLUMN_CATEGORY = "category",
|
|
33
35
|
COLUMN_PROGRAM = "program",
|
|
34
36
|
COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM = "associatedSubscriptionProgram",
|
|
@@ -59,7 +61,9 @@ export declare type LicenseGetData = {
|
|
|
59
61
|
[LicenseGetFields.COLUMN_ORDER]: OrderGetData;
|
|
60
62
|
[LicenseGetFields.COLUMN_VENDOR_LICENSE_ID]: string | null;
|
|
61
63
|
[LicenseGetFields.COLUMN_PERIODICITY]: string;
|
|
64
|
+
[LicenseGetFields.COLUMN_PERIODICITY_CODE]: number;
|
|
62
65
|
[LicenseGetFields.COLUMN_TERM]: string;
|
|
66
|
+
[LicenseGetFields.COLUMN_TERM_CODE]: number;
|
|
63
67
|
[LicenseGetFields.COLUMN_CATEGORY]: string;
|
|
64
68
|
[LicenseGetFields.COLUMN_PROGRAM]: string;
|
|
65
69
|
[LicenseGetFields.COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM]: string;
|
|
@@ -92,7 +96,9 @@ export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
|
|
|
92
96
|
get order(): OrderGetResult;
|
|
93
97
|
get vendorLicenseId(): string | null;
|
|
94
98
|
get periodicity(): string;
|
|
99
|
+
get periodicityCode(): number;
|
|
95
100
|
get term(): string;
|
|
101
|
+
get termCode(): number;
|
|
96
102
|
get category(): string;
|
|
97
103
|
get program(): string;
|
|
98
104
|
get associatedSubscriptionProgram(): string;
|
|
@@ -12,7 +12,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
12
12
|
}
|
|
13
13
|
return privateMap.get(receiver);
|
|
14
14
|
};
|
|
15
|
-
var _license_id, _parent_license_id, _friendlyName, _customer_ref, _state, _statusCode, _isTrial, _isAddon, _service_ref, _sku, _name, _seats, _activeSeats, _activation_datetime, _expiry_datetime, _autoRenew, _message, _actions, _actionMessages, _order_reference, _order, _vendor_license_id, _periodicity, _term, _category, _program, _associatedSubscriptionProgram, _price, _arrowSubCategories;
|
|
15
|
+
var _license_id, _parent_license_id, _friendlyName, _customer_ref, _state, _statusCode, _isTrial, _isAddon, _service_ref, _sku, _name, _seats, _activeSeats, _activation_datetime, _expiry_datetime, _autoRenew, _message, _actions, _actionMessages, _order_reference, _order, _vendor_license_id, _periodicity, _periodicityCode, _term, _termCode, _category, _program, _associatedSubscriptionProgram, _price, _arrowSubCategories;
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.LicenseGetResult = exports.LicenseGetFields = void 0;
|
|
18
18
|
const actionsGetResult_1 = require("./actionsGetResult");
|
|
@@ -46,7 +46,9 @@ var LicenseGetFields;
|
|
|
46
46
|
LicenseGetFields["COLUMN_ORDER"] = "order";
|
|
47
47
|
LicenseGetFields["COLUMN_VENDOR_LICENSE_ID"] = "vendor_license_id";
|
|
48
48
|
LicenseGetFields["COLUMN_PERIODICITY"] = "periodicity";
|
|
49
|
+
LicenseGetFields["COLUMN_PERIODICITY_CODE"] = "periodicityCode";
|
|
49
50
|
LicenseGetFields["COLUMN_TERM"] = "term";
|
|
51
|
+
LicenseGetFields["COLUMN_TERM_CODE"] = "termCode";
|
|
50
52
|
LicenseGetFields["COLUMN_CATEGORY"] = "category";
|
|
51
53
|
LicenseGetFields["COLUMN_PROGRAM"] = "program";
|
|
52
54
|
LicenseGetFields["COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM"] = "associatedSubscriptionProgram";
|
|
@@ -80,7 +82,9 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
80
82
|
_order.set(this, void 0);
|
|
81
83
|
_vendor_license_id.set(this, void 0);
|
|
82
84
|
_periodicity.set(this, void 0);
|
|
85
|
+
_periodicityCode.set(this, void 0);
|
|
83
86
|
_term.set(this, void 0);
|
|
87
|
+
_termCode.set(this, void 0);
|
|
84
88
|
_category.set(this, void 0);
|
|
85
89
|
_program.set(this, void 0);
|
|
86
90
|
_associatedSubscriptionProgram.set(this, void 0);
|
|
@@ -111,7 +115,9 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
111
115
|
__classPrivateFieldSet(this, _order, new orderGetResult_1.OrderGetResult(licenseGetDataInput[LicenseGetFields.COLUMN_ORDER]));
|
|
112
116
|
__classPrivateFieldSet(this, _vendor_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_VENDOR_LICENSE_ID]);
|
|
113
117
|
__classPrivateFieldSet(this, _periodicity, licenseGetDataInput[LicenseGetFields.COLUMN_PERIODICITY]);
|
|
118
|
+
__classPrivateFieldSet(this, _periodicityCode, licenseGetDataInput[LicenseGetFields.COLUMN_PERIODICITY_CODE]);
|
|
114
119
|
__classPrivateFieldSet(this, _term, licenseGetDataInput[LicenseGetFields.COLUMN_TERM]);
|
|
120
|
+
__classPrivateFieldSet(this, _termCode, licenseGetDataInput[LicenseGetFields.COLUMN_TERM_CODE]);
|
|
115
121
|
__classPrivateFieldSet(this, _category, licenseGetDataInput[LicenseGetFields.COLUMN_CATEGORY]);
|
|
116
122
|
__classPrivateFieldSet(this, _program, licenseGetDataInput[LicenseGetFields.COLUMN_PROGRAM]);
|
|
117
123
|
__classPrivateFieldSet(this, _associatedSubscriptionProgram, licenseGetDataInput[LicenseGetFields.COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM]);
|
|
@@ -187,9 +193,15 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
187
193
|
get periodicity() {
|
|
188
194
|
return __classPrivateFieldGet(this, _periodicity);
|
|
189
195
|
}
|
|
196
|
+
get periodicityCode() {
|
|
197
|
+
return __classPrivateFieldGet(this, _periodicityCode);
|
|
198
|
+
}
|
|
190
199
|
get term() {
|
|
191
200
|
return __classPrivateFieldGet(this, _term);
|
|
192
201
|
}
|
|
202
|
+
get termCode() {
|
|
203
|
+
return __classPrivateFieldGet(this, _termCode);
|
|
204
|
+
}
|
|
193
205
|
get category() {
|
|
194
206
|
return __classPrivateFieldGet(this, _category);
|
|
195
207
|
}
|
|
@@ -231,7 +243,9 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
231
243
|
[LicenseGetFields.COLUMN_ORDER]: this.order.toJSON(),
|
|
232
244
|
[LicenseGetFields.COLUMN_VENDOR_LICENSE_ID]: this.vendorLicenseId,
|
|
233
245
|
[LicenseGetFields.COLUMN_PERIODICITY]: this.periodicity,
|
|
246
|
+
[LicenseGetFields.COLUMN_PERIODICITY_CODE]: this.periodicityCode,
|
|
234
247
|
[LicenseGetFields.COLUMN_TERM]: this.term,
|
|
248
|
+
[LicenseGetFields.COLUMN_TERM_CODE]: this.termCode,
|
|
235
249
|
[LicenseGetFields.COLUMN_CATEGORY]: this.category,
|
|
236
250
|
[LicenseGetFields.COLUMN_PROGRAM]: this.program,
|
|
237
251
|
[LicenseGetFields.COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM]: this
|
|
@@ -242,5 +256,5 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
242
256
|
}
|
|
243
257
|
}
|
|
244
258
|
exports.LicenseGetResult = LicenseGetResult;
|
|
245
|
-
_license_id = new WeakMap(), _parent_license_id = new WeakMap(), _friendlyName = new WeakMap(), _customer_ref = new WeakMap(), _state = new WeakMap(), _statusCode = new WeakMap(), _isTrial = new WeakMap(), _isAddon = new WeakMap(), _service_ref = new WeakMap(), _sku = new WeakMap(), _name = new WeakMap(), _seats = new WeakMap(), _activeSeats = new WeakMap(), _activation_datetime = new WeakMap(), _expiry_datetime = new WeakMap(), _autoRenew = new WeakMap(), _message = new WeakMap(), _actions = new WeakMap(), _actionMessages = new WeakMap(), _order_reference = new WeakMap(), _order = new WeakMap(), _vendor_license_id = new WeakMap(), _periodicity = new WeakMap(), _term = new WeakMap(), _category = new WeakMap(), _program = new WeakMap(), _associatedSubscriptionProgram = new WeakMap(), _price = new WeakMap(), _arrowSubCategories = new WeakMap();
|
|
259
|
+
_license_id = new WeakMap(), _parent_license_id = new WeakMap(), _friendlyName = new WeakMap(), _customer_ref = new WeakMap(), _state = new WeakMap(), _statusCode = new WeakMap(), _isTrial = new WeakMap(), _isAddon = new WeakMap(), _service_ref = new WeakMap(), _sku = new WeakMap(), _name = new WeakMap(), _seats = new WeakMap(), _activeSeats = new WeakMap(), _activation_datetime = new WeakMap(), _expiry_datetime = new WeakMap(), _autoRenew = new WeakMap(), _message = new WeakMap(), _actions = new WeakMap(), _actionMessages = new WeakMap(), _order_reference = new WeakMap(), _order = new WeakMap(), _vendor_license_id = new WeakMap(), _periodicity = new WeakMap(), _periodicityCode = new WeakMap(), _term = new WeakMap(), _termCode = new WeakMap(), _category = new WeakMap(), _program = new WeakMap(), _associatedSubscriptionProgram = new WeakMap(), _price = new WeakMap(), _arrowSubCategories = new WeakMap();
|
|
246
260
|
//# sourceMappingURL=licenseGetResult.js.map
|
|
@@ -44,7 +44,7 @@ class LicensePriceGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
44
44
|
}
|
|
45
45
|
toJSON() {
|
|
46
46
|
return {
|
|
47
|
-
[LicensePriceGetFields.COLUMN_CURRENCY]:
|
|
47
|
+
[LicensePriceGetFields.COLUMN_CURRENCY]: this.currency,
|
|
48
48
|
[LicensePriceGetFields.COLUMN_UNIT]: this.unit.toJSON(),
|
|
49
49
|
[LicensePriceGetFields.COLUMN_TOTAL]: this.total.toJSON(),
|
|
50
50
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ActiveSeatsFindResultData, ActiveSeatsFindResultDataKeywords, ActiveSeatsFindResultDataSortParameters, ActiveSeatsFindResult, ActiveSeatsFindResultDataFiltersParameters } from './activeSeatsFindResult';
|
|
2
2
|
import { AbstractEntity } from '../../../abstractEntity';
|
|
3
3
|
import { Rules } from 'validatorjs';
|
|
4
|
-
import { ConfigFindResultData, ConfigFindResultDataFiltersParameters, ConfigFindResultDataKeywords, ConfigFindResultDataSortParameters } from './configFindResult';
|
|
4
|
+
import { ConfigFindResult, ConfigFindResultData, ConfigFindResultDataFiltersParameters, ConfigFindResultDataKeywords, ConfigFindResultDataSortParameters } from './configFindResult';
|
|
5
5
|
import { DataKeywords, FiltersParameters, SortParameters } from '../../licensesClient';
|
|
6
|
-
import { WarningFindResultData, WarningFindResultDataFiltersParameters, WarningFindResultDataKeywords, WarningFindResultDataSortParameters } from './warningFindResult';
|
|
6
|
+
import { WarningFindResult, WarningFindResultData, WarningFindResultDataFiltersParameters, WarningFindResultDataKeywords, WarningFindResultDataSortParameters } from './warningFindResult';
|
|
7
7
|
import { PriceFindResult, PriceFindResultData, PriceFindResultDataFiltersParameters, PriceFindResultDataKeywords, PriceFindResutDataSortParameters } from './priceFindResult';
|
|
8
8
|
/**
|
|
9
9
|
* Highlight response object.
|
|
@@ -67,8 +67,8 @@ export declare type LicenseFindResultData = {
|
|
|
67
67
|
[LicenseFindResultFields.COLUMN_BASE_SEAT]: number;
|
|
68
68
|
[LicenseFindResultFields.COLUMN_CATEGORY]: string;
|
|
69
69
|
[LicenseFindResultFields.COLUMN_CLOUD_TYPE]: string;
|
|
70
|
-
[LicenseFindResultFields.COLUMN_CONFIGS]
|
|
71
|
-
[LicenseFindResultFields.COLUMN_WARNINGS]
|
|
70
|
+
[LicenseFindResultFields.COLUMN_CONFIGS]?: Array<ConfigFindResultData> | null;
|
|
71
|
+
[LicenseFindResultFields.COLUMN_WARNINGS]?: Array<WarningFindResultData> | null;
|
|
72
72
|
[LicenseFindResultFields.COLUMN_CUSTOMER_NAME]: string;
|
|
73
73
|
[LicenseFindResultFields.COLUMN_CUSTOMER_REF]: string;
|
|
74
74
|
[LicenseFindResultFields.COLUMN_END_DATE]: string;
|
|
@@ -245,8 +245,8 @@ export declare class LicenseFindResult extends AbstractEntity<LicenseFindResultD
|
|
|
245
245
|
get baseSeat(): number;
|
|
246
246
|
get category(): string;
|
|
247
247
|
get classification(): string;
|
|
248
|
-
get configs(): Array<
|
|
249
|
-
get warnings(): Array<
|
|
248
|
+
get configs(): Array<ConfigFindResult> | null | undefined;
|
|
249
|
+
get warnings(): Array<WarningFindResult> | null | undefined;
|
|
250
250
|
get customerName(): string;
|
|
251
251
|
get customerRef(): string;
|
|
252
252
|
get endDate(): string;
|
|
@@ -17,6 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.LicenseFindResult = exports.LicenseFindResultFields = void 0;
|
|
18
18
|
const activeSeatsFindResult_1 = require("./activeSeatsFindResult");
|
|
19
19
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
20
|
+
const configFindResult_1 = require("./configFindResult");
|
|
21
|
+
const warningFindResult_1 = require("./warningFindResult");
|
|
20
22
|
const priceFindResult_1 = require("./priceFindResult");
|
|
21
23
|
/**
|
|
22
24
|
* Fields that can be present in License response and request data.
|
|
@@ -72,7 +74,7 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
72
74
|
* @param data - License find result data from the response.
|
|
73
75
|
*/
|
|
74
76
|
constructor(data) {
|
|
75
|
-
var _a;
|
|
77
|
+
var _a, _b, _c;
|
|
76
78
|
super(data);
|
|
77
79
|
this.VALIDATION_RULES = {
|
|
78
80
|
[LicenseFindResultFields.COLUMN_ACCEPT_EULA]: 'present|boolean',
|
|
@@ -145,12 +147,8 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
145
147
|
__classPrivateFieldSet(this, _baseSeat, data[LicenseFindResultFields.COLUMN_BASE_SEAT]);
|
|
146
148
|
__classPrivateFieldSet(this, _category, data[LicenseFindResultFields.COLUMN_CATEGORY]);
|
|
147
149
|
__classPrivateFieldSet(this, _classification, data[LicenseFindResultFields.COLUMN_CLOUD_TYPE]);
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
if (typeof data[LicenseFindResultFields.COLUMN_WARNINGS] !== 'undefined') {
|
|
152
|
-
__classPrivateFieldSet(this, _warnings, data === null || data === void 0 ? void 0 : data[LicenseFindResultFields.COLUMN_WARNINGS]);
|
|
153
|
-
}
|
|
150
|
+
__classPrivateFieldSet(this, _configs, (_a = data[LicenseFindResultFields.COLUMN_CONFIGS]) === null || _a === void 0 ? void 0 : _a.map((configData) => new configFindResult_1.ConfigFindResult(configData)));
|
|
151
|
+
__classPrivateFieldSet(this, _warnings, (_b = data[LicenseFindResultFields.COLUMN_WARNINGS]) === null || _b === void 0 ? void 0 : _b.map((warningData) => new warningFindResult_1.WarningFindResult(warningData)));
|
|
154
152
|
__classPrivateFieldSet(this, _customerName, data[LicenseFindResultFields.COLUMN_CUSTOMER_NAME]);
|
|
155
153
|
__classPrivateFieldSet(this, _customerRef, data[LicenseFindResultFields.COLUMN_CUSTOMER_REF]);
|
|
156
154
|
__classPrivateFieldSet(this, _endDate, data[LicenseFindResultFields.COLUMN_END_DATE]);
|
|
@@ -190,7 +188,7 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
190
188
|
__classPrivateFieldSet(this, _vendorCode, data[LicenseFindResultFields.COLUMN_VENDOR_CODE]);
|
|
191
189
|
__classPrivateFieldSet(this, _vendorName, data[LicenseFindResultFields.COLUMN_VENDOR_NAME]);
|
|
192
190
|
__classPrivateFieldSet(this, _vendorSubscriptionId, data[LicenseFindResultFields.COLUMN_VENDOR_SUBSCRIPTION_ID]);
|
|
193
|
-
__classPrivateFieldSet(this, _highlight, (
|
|
191
|
+
__classPrivateFieldSet(this, _highlight, (_c = data[LicenseFindResultFields.COLUMN_HIGHLIGHT]) !== null && _c !== void 0 ? _c : {});
|
|
194
192
|
}
|
|
195
193
|
get id() {
|
|
196
194
|
return __classPrivateFieldGet(this, _id);
|
|
@@ -320,6 +318,7 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
320
318
|
* @returns {@link LicenseData}
|
|
321
319
|
*/
|
|
322
320
|
toJSON() {
|
|
321
|
+
var _a, _b;
|
|
323
322
|
return {
|
|
324
323
|
[LicenseFindResultFields.COLUMN_ACCEPT_EULA]: this.acceptEula,
|
|
325
324
|
[LicenseFindResultFields.COLUMN_ACTIVE_SEATS]: this.activeSeats.toJSON(),
|
|
@@ -327,8 +326,8 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
327
326
|
[LicenseFindResultFields.COLUMN_BASE_SEAT]: this.baseSeat,
|
|
328
327
|
[LicenseFindResultFields.COLUMN_CATEGORY]: this.category,
|
|
329
328
|
[LicenseFindResultFields.COLUMN_CLOUD_TYPE]: this.classification,
|
|
330
|
-
[LicenseFindResultFields.COLUMN_CONFIGS]: this.configs,
|
|
331
|
-
[LicenseFindResultFields.COLUMN_WARNINGS]: this.warnings,
|
|
329
|
+
[LicenseFindResultFields.COLUMN_CONFIGS]: (_a = this.configs) === null || _a === void 0 ? void 0 : _a.map((config) => config.toJSON()),
|
|
330
|
+
[LicenseFindResultFields.COLUMN_WARNINGS]: (_b = this.warnings) === null || _b === void 0 ? void 0 : _b.map((warning) => warning.toJSON()),
|
|
332
331
|
[LicenseFindResultFields.COLUMN_CUSTOMER_NAME]: this.customerName,
|
|
333
332
|
[LicenseFindResultFields.COLUMN_CUSTOMER_REF]: this.customerRef,
|
|
334
333
|
[LicenseFindResultFields.COLUMN_END_DATE]: this.endDate,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../../abstractEntity';
|
|
2
|
+
export declare enum ProductPricesFields {
|
|
3
|
+
COLUMN_BUY = "buy",
|
|
4
|
+
COLUMN_SELL = "sell",
|
|
5
|
+
COLUMN_CURRENCY = "currency",
|
|
6
|
+
COLUMN_PERIODICITY = "periodicity",
|
|
7
|
+
COLUMN_TERM = "term",
|
|
8
|
+
COLUMN_PERIODICITY_CODE = "periodicityCode",
|
|
9
|
+
COLUMN_TERM_CODE = "termCode"
|
|
10
|
+
}
|
|
11
|
+
export declare type ProductPricesType = {
|
|
12
|
+
[ProductPricesFields.COLUMN_BUY]: number;
|
|
13
|
+
[ProductPricesFields.COLUMN_SELL]: number;
|
|
14
|
+
[ProductPricesFields.COLUMN_CURRENCY]: string;
|
|
15
|
+
[ProductPricesFields.COLUMN_PERIODICITY]: string;
|
|
16
|
+
[ProductPricesFields.COLUMN_TERM]: string;
|
|
17
|
+
[ProductPricesFields.COLUMN_PERIODICITY_CODE]: number;
|
|
18
|
+
[ProductPricesFields.COLUMN_TERM_CODE]: number;
|
|
19
|
+
};
|
|
20
|
+
export declare class ProductPrices extends AbstractEntity<ProductPricesType> {
|
|
21
|
+
#private;
|
|
22
|
+
constructor(productPricesInput: ProductPricesType);
|
|
23
|
+
get buy(): number;
|
|
24
|
+
get sell(): number;
|
|
25
|
+
get currency(): string;
|
|
26
|
+
get periodicity(): string;
|
|
27
|
+
get term(): string;
|
|
28
|
+
get periodicityCode(): number;
|
|
29
|
+
get termCode(): number;
|
|
30
|
+
toJSON(): ProductPricesType;
|
|
31
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
8
|
+
};
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
14
|
+
};
|
|
15
|
+
var _buy, _sell, _currency, _periodicity, _term, _periodicityCode, _termCode;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ProductPrices = exports.ProductPricesFields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../../../abstractEntity");
|
|
19
|
+
var ProductPricesFields;
|
|
20
|
+
(function (ProductPricesFields) {
|
|
21
|
+
ProductPricesFields["COLUMN_BUY"] = "buy";
|
|
22
|
+
ProductPricesFields["COLUMN_SELL"] = "sell";
|
|
23
|
+
ProductPricesFields["COLUMN_CURRENCY"] = "currency";
|
|
24
|
+
ProductPricesFields["COLUMN_PERIODICITY"] = "periodicity";
|
|
25
|
+
ProductPricesFields["COLUMN_TERM"] = "term";
|
|
26
|
+
ProductPricesFields["COLUMN_PERIODICITY_CODE"] = "periodicityCode";
|
|
27
|
+
ProductPricesFields["COLUMN_TERM_CODE"] = "termCode";
|
|
28
|
+
})(ProductPricesFields = exports.ProductPricesFields || (exports.ProductPricesFields = {}));
|
|
29
|
+
class ProductPrices extends abstractEntity_1.AbstractEntity {
|
|
30
|
+
constructor(productPricesInput) {
|
|
31
|
+
super(productPricesInput);
|
|
32
|
+
_buy.set(this, void 0);
|
|
33
|
+
_sell.set(this, void 0);
|
|
34
|
+
_currency.set(this, void 0);
|
|
35
|
+
_periodicity.set(this, void 0);
|
|
36
|
+
_term.set(this, void 0);
|
|
37
|
+
_periodicityCode.set(this, void 0);
|
|
38
|
+
_termCode.set(this, void 0);
|
|
39
|
+
__classPrivateFieldSet(this, _buy, productPricesInput[ProductPricesFields.COLUMN_BUY]);
|
|
40
|
+
__classPrivateFieldSet(this, _sell, productPricesInput[ProductPricesFields.COLUMN_SELL]);
|
|
41
|
+
__classPrivateFieldSet(this, _currency, productPricesInput[ProductPricesFields.COLUMN_CURRENCY]);
|
|
42
|
+
__classPrivateFieldSet(this, _periodicity, productPricesInput[ProductPricesFields.COLUMN_PERIODICITY]);
|
|
43
|
+
__classPrivateFieldSet(this, _term, productPricesInput[ProductPricesFields.COLUMN_TERM]);
|
|
44
|
+
__classPrivateFieldSet(this, _periodicityCode, productPricesInput[ProductPricesFields.COLUMN_PERIODICITY_CODE]);
|
|
45
|
+
__classPrivateFieldSet(this, _termCode, productPricesInput[ProductPricesFields.COLUMN_TERM_CODE]);
|
|
46
|
+
}
|
|
47
|
+
get buy() {
|
|
48
|
+
return __classPrivateFieldGet(this, _buy);
|
|
49
|
+
}
|
|
50
|
+
get sell() {
|
|
51
|
+
return __classPrivateFieldGet(this, _sell);
|
|
52
|
+
}
|
|
53
|
+
get currency() {
|
|
54
|
+
return __classPrivateFieldGet(this, _currency);
|
|
55
|
+
}
|
|
56
|
+
get periodicity() {
|
|
57
|
+
return __classPrivateFieldGet(this, _periodicity);
|
|
58
|
+
}
|
|
59
|
+
get term() {
|
|
60
|
+
return __classPrivateFieldGet(this, _term);
|
|
61
|
+
}
|
|
62
|
+
get periodicityCode() {
|
|
63
|
+
return __classPrivateFieldGet(this, _periodicityCode);
|
|
64
|
+
}
|
|
65
|
+
get termCode() {
|
|
66
|
+
return __classPrivateFieldGet(this, _termCode);
|
|
67
|
+
}
|
|
68
|
+
toJSON() {
|
|
69
|
+
return {
|
|
70
|
+
[ProductPricesFields.COLUMN_BUY]: this.buy,
|
|
71
|
+
[ProductPricesFields.COLUMN_SELL]: this.sell,
|
|
72
|
+
[ProductPricesFields.COLUMN_CURRENCY]: this.currency,
|
|
73
|
+
[ProductPricesFields.COLUMN_PERIODICITY]: this.periodicity,
|
|
74
|
+
[ProductPricesFields.COLUMN_TERM]: this.term,
|
|
75
|
+
[ProductPricesFields.COLUMN_PERIODICITY_CODE]: this.periodicityCode,
|
|
76
|
+
[ProductPricesFields.COLUMN_TERM_CODE]: this.termCode,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.ProductPrices = ProductPrices;
|
|
81
|
+
_buy = new WeakMap(), _sell = new WeakMap(), _currency = new WeakMap(), _periodicity = new WeakMap(), _term = new WeakMap(), _periodicityCode = new WeakMap(), _termCode = new WeakMap();
|
|
82
|
+
//# sourceMappingURL=productPrices.js.map
|
|
@@ -1,23 +1,15 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
2
|
import { ReferenceLink, ReferenceLinkType } from '../../referenceLink';
|
|
3
|
-
|
|
4
|
-
COLUMN_BUY = "buy",
|
|
5
|
-
COLUMN_SELL = "sell",
|
|
6
|
-
COLUMN_CURRENCY = "currency",
|
|
7
|
-
COLUMN_PERIODICITY = "periodicity"
|
|
8
|
-
}
|
|
9
|
-
export declare type ProductPricesType = {
|
|
10
|
-
[ProductPricesFields.COLUMN_BUY]: number;
|
|
11
|
-
[ProductPricesFields.COLUMN_SELL]: number;
|
|
12
|
-
[ProductPricesFields.COLUMN_CURRENCY]: string;
|
|
13
|
-
[ProductPricesFields.COLUMN_PERIODICITY]: string;
|
|
14
|
-
};
|
|
3
|
+
import { ProductPrices, ProductPricesType } from './prices/productPrices';
|
|
15
4
|
export declare enum OrderProductsFields {
|
|
16
5
|
COLUMN_SKU = "sku",
|
|
17
6
|
COLUMN_QUANTITY = "quantity",
|
|
18
7
|
COLUMN_STATUS = "status",
|
|
19
8
|
COLUMN_DATESTATUS = "dateStatus",
|
|
20
9
|
COLUMN_DETAILEDSTATUS = "detailedStatus",
|
|
10
|
+
COLUMN_IS_ADDON = "isAddon",
|
|
11
|
+
COLUMN_ARROWSUBCATEGORIES = "arrowSubCategories",
|
|
12
|
+
COLUMN_IS_TRIAL = "isTrial",
|
|
21
13
|
COLUMN_PRICES = "prices",
|
|
22
14
|
COLUMN_SUBSCRIPTION = "subscription",
|
|
23
15
|
COLUMN_LICENSE = "license"
|
|
@@ -28,6 +20,9 @@ export declare type OrderProductsType = {
|
|
|
28
20
|
[OrderProductsFields.COLUMN_STATUS]: string;
|
|
29
21
|
[OrderProductsFields.COLUMN_DATESTATUS]: string;
|
|
30
22
|
[OrderProductsFields.COLUMN_DETAILEDSTATUS]: string;
|
|
23
|
+
[OrderProductsFields.COLUMN_IS_ADDON]: boolean;
|
|
24
|
+
[OrderProductsFields.COLUMN_ARROWSUBCATEGORIES]?: Array<string>;
|
|
25
|
+
[OrderProductsFields.COLUMN_IS_TRIAL]: boolean;
|
|
31
26
|
[OrderProductsFields.COLUMN_PRICES]: ProductPricesType;
|
|
32
27
|
[OrderProductsFields.COLUMN_SUBSCRIPTION]: ReferenceLinkType;
|
|
33
28
|
[OrderProductsFields.COLUMN_LICENSE]: ReferenceLinkType;
|
|
@@ -40,7 +35,10 @@ export declare class OrderProduct extends AbstractEntity<OrderProductsType> {
|
|
|
40
35
|
get status(): string;
|
|
41
36
|
get dateStatus(): string;
|
|
42
37
|
get detailedStatus(): string;
|
|
43
|
-
get
|
|
38
|
+
get isAddon(): boolean;
|
|
39
|
+
get arrowSubCategories(): Array<string> | undefined;
|
|
40
|
+
get isTrial(): boolean;
|
|
41
|
+
get prices(): ProductPrices;
|
|
44
42
|
get subscription(): ReferenceLink;
|
|
45
43
|
get license(): ReferenceLink;
|
|
46
44
|
toJSON(): OrderProductsType;
|
|
@@ -12,18 +12,12 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
12
12
|
}
|
|
13
13
|
return privateMap.get(receiver);
|
|
14
14
|
};
|
|
15
|
-
var _sku, _quantity, _status, _dateStatus, _detailedStatus, _prices, _subscription, _license;
|
|
15
|
+
var _sku, _quantity, _status, _dateStatus, _detailedStatus, _isAddon, _arrowSubCategories, _isTrial, _prices, _subscription, _license;
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.OrderProduct = exports.OrderProductsFields =
|
|
17
|
+
exports.OrderProduct = exports.OrderProductsFields = void 0;
|
|
18
18
|
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
19
19
|
const referenceLink_1 = require("../../referenceLink");
|
|
20
|
-
|
|
21
|
-
(function (ProductPricesFields) {
|
|
22
|
-
ProductPricesFields["COLUMN_BUY"] = "buy";
|
|
23
|
-
ProductPricesFields["COLUMN_SELL"] = "sell";
|
|
24
|
-
ProductPricesFields["COLUMN_CURRENCY"] = "currency";
|
|
25
|
-
ProductPricesFields["COLUMN_PERIODICITY"] = "periodicity";
|
|
26
|
-
})(ProductPricesFields = exports.ProductPricesFields || (exports.ProductPricesFields = {}));
|
|
20
|
+
const productPrices_1 = require("./prices/productPrices");
|
|
27
21
|
var OrderProductsFields;
|
|
28
22
|
(function (OrderProductsFields) {
|
|
29
23
|
OrderProductsFields["COLUMN_SKU"] = "sku";
|
|
@@ -31,18 +25,25 @@ var OrderProductsFields;
|
|
|
31
25
|
OrderProductsFields["COLUMN_STATUS"] = "status";
|
|
32
26
|
OrderProductsFields["COLUMN_DATESTATUS"] = "dateStatus";
|
|
33
27
|
OrderProductsFields["COLUMN_DETAILEDSTATUS"] = "detailedStatus";
|
|
28
|
+
OrderProductsFields["COLUMN_IS_ADDON"] = "isAddon";
|
|
29
|
+
OrderProductsFields["COLUMN_ARROWSUBCATEGORIES"] = "arrowSubCategories";
|
|
30
|
+
OrderProductsFields["COLUMN_IS_TRIAL"] = "isTrial";
|
|
34
31
|
OrderProductsFields["COLUMN_PRICES"] = "prices";
|
|
35
32
|
OrderProductsFields["COLUMN_SUBSCRIPTION"] = "subscription";
|
|
36
33
|
OrderProductsFields["COLUMN_LICENSE"] = "license";
|
|
37
34
|
})(OrderProductsFields = exports.OrderProductsFields || (exports.OrderProductsFields = {}));
|
|
38
35
|
class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
39
36
|
constructor(getOrderProducts) {
|
|
37
|
+
var _a;
|
|
40
38
|
super(getOrderProducts);
|
|
41
39
|
_sku.set(this, void 0);
|
|
42
40
|
_quantity.set(this, void 0);
|
|
43
41
|
_status.set(this, void 0);
|
|
44
42
|
_dateStatus.set(this, void 0);
|
|
45
43
|
_detailedStatus.set(this, void 0);
|
|
44
|
+
_isAddon.set(this, void 0);
|
|
45
|
+
_arrowSubCategories.set(this, void 0);
|
|
46
|
+
_isTrial.set(this, void 0);
|
|
46
47
|
_prices.set(this, void 0);
|
|
47
48
|
_subscription.set(this, void 0);
|
|
48
49
|
_license.set(this, void 0);
|
|
@@ -51,7 +52,10 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
51
52
|
__classPrivateFieldSet(this, _status, getOrderProducts[OrderProductsFields.COLUMN_STATUS]);
|
|
52
53
|
__classPrivateFieldSet(this, _dateStatus, getOrderProducts[OrderProductsFields.COLUMN_DATESTATUS]);
|
|
53
54
|
__classPrivateFieldSet(this, _detailedStatus, getOrderProducts[OrderProductsFields.COLUMN_DETAILEDSTATUS]);
|
|
54
|
-
__classPrivateFieldSet(this,
|
|
55
|
+
__classPrivateFieldSet(this, _isAddon, getOrderProducts[OrderProductsFields.COLUMN_IS_ADDON]);
|
|
56
|
+
__classPrivateFieldSet(this, _arrowSubCategories, (_a = getOrderProducts[OrderProductsFields.COLUMN_ARROWSUBCATEGORIES]) !== null && _a !== void 0 ? _a : undefined);
|
|
57
|
+
__classPrivateFieldSet(this, _isTrial, getOrderProducts[OrderProductsFields.COLUMN_IS_TRIAL]);
|
|
58
|
+
__classPrivateFieldSet(this, _prices, new productPrices_1.ProductPrices(getOrderProducts[OrderProductsFields.COLUMN_PRICES]));
|
|
55
59
|
__classPrivateFieldSet(this, _subscription, new referenceLink_1.ReferenceLink(getOrderProducts[OrderProductsFields.COLUMN_SUBSCRIPTION]));
|
|
56
60
|
__classPrivateFieldSet(this, _license, new referenceLink_1.ReferenceLink(getOrderProducts[OrderProductsFields.COLUMN_LICENSE]));
|
|
57
61
|
}
|
|
@@ -70,6 +74,15 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
70
74
|
get detailedStatus() {
|
|
71
75
|
return __classPrivateFieldGet(this, _detailedStatus);
|
|
72
76
|
}
|
|
77
|
+
get isAddon() {
|
|
78
|
+
return __classPrivateFieldGet(this, _isAddon);
|
|
79
|
+
}
|
|
80
|
+
get arrowSubCategories() {
|
|
81
|
+
return __classPrivateFieldGet(this, _arrowSubCategories);
|
|
82
|
+
}
|
|
83
|
+
get isTrial() {
|
|
84
|
+
return __classPrivateFieldGet(this, _isTrial);
|
|
85
|
+
}
|
|
73
86
|
get prices() {
|
|
74
87
|
return __classPrivateFieldGet(this, _prices);
|
|
75
88
|
}
|
|
@@ -86,12 +99,15 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
86
99
|
[OrderProductsFields.COLUMN_STATUS]: this.status,
|
|
87
100
|
[OrderProductsFields.COLUMN_DATESTATUS]: this.dateStatus,
|
|
88
101
|
[OrderProductsFields.COLUMN_DETAILEDSTATUS]: this.detailedStatus,
|
|
89
|
-
[OrderProductsFields.
|
|
102
|
+
[OrderProductsFields.COLUMN_IS_ADDON]: this.isAddon,
|
|
103
|
+
[OrderProductsFields.COLUMN_ARROWSUBCATEGORIES]: this.arrowSubCategories,
|
|
104
|
+
[OrderProductsFields.COLUMN_IS_TRIAL]: this.isTrial,
|
|
105
|
+
[OrderProductsFields.COLUMN_PRICES]: this.prices.toJSON(),
|
|
90
106
|
[OrderProductsFields.COLUMN_SUBSCRIPTION]: this.subscription.toJSON(),
|
|
91
107
|
[OrderProductsFields.COLUMN_LICENSE]: this.license.toJSON(),
|
|
92
108
|
};
|
|
93
109
|
}
|
|
94
110
|
}
|
|
95
111
|
exports.OrderProduct = OrderProduct;
|
|
96
|
-
_sku = new WeakMap(), _quantity = new WeakMap(), _status = new WeakMap(), _dateStatus = new WeakMap(), _detailedStatus = new WeakMap(), _prices = new WeakMap(), _subscription = new WeakMap(), _license = new WeakMap();
|
|
112
|
+
_sku = new WeakMap(), _quantity = new WeakMap(), _status = new WeakMap(), _dateStatus = new WeakMap(), _detailedStatus = new WeakMap(), _isAddon = new WeakMap(), _arrowSubCategories = new WeakMap(), _isTrial = new WeakMap(), _prices = new WeakMap(), _subscription = new WeakMap(), _license = new WeakMap();
|
|
97
113
|
//# sourceMappingURL=products.js.map
|
package/build/orders/index.d.ts
CHANGED
package/build/orders/index.js
CHANGED
|
@@ -10,6 +10,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./entities/orders/products/prices/productPrices"), exports);
|
|
13
14
|
__exportStar(require("./entities/orders/products/products"), exports);
|
|
14
15
|
__exportStar(require("./entities/orders/partner/partner"), exports);
|
|
15
16
|
__exportStar(require("./entities/orders/order"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './contact/contact';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./contact/contact"), exports);
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED