@arrowsphere/api-client 1.0.3 → 2.1.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 +69 -0
- package/README.md +2 -1
- package/UPGRADING.md +43 -0
- package/build/licenses/entities/filterFindResult.d.ts +2 -2
- package/build/licenses/entities/findResult.d.ts +17 -9
- package/build/licenses/entities/findResult.js +4 -4
- package/build/licenses/entities/getLicense/actionMessagesGetResult.d.ts +25 -0
- package/build/licenses/entities/getLicense/actionMessagesGetResult.js +69 -0
- package/build/licenses/entities/getLicense/actionsGetResult.d.ts +40 -0
- package/build/licenses/entities/getLicense/actionsGetResult.js +103 -0
- package/build/licenses/entities/getLicense/buySellFindResult.d.ts +16 -0
- package/build/licenses/entities/getLicense/buySellFindResult.js +47 -0
- package/build/licenses/entities/getLicense/licenseGetResult.d.ts +93 -0
- package/build/licenses/entities/getLicense/licenseGetResult.js +244 -0
- package/build/licenses/entities/getLicense/licensePriceGetResult.d.ts +17 -0
- package/build/licenses/entities/getLicense/licensePriceGetResult.js +56 -0
- package/build/licenses/entities/getLicense/orderGetResult.d.ts +16 -0
- package/build/licenses/entities/getLicense/orderGetResult.js +47 -0
- package/build/licenses/entities/getResult.d.ts +22 -0
- package/build/licenses/entities/getResult.js +42 -0
- package/build/licenses/entities/license/activeSeatsFindResult.d.ts +33 -0
- package/build/licenses/entities/license/activeSeatsFindResult.js +47 -0
- package/build/licenses/entities/license/configFindResult.d.ts +37 -0
- package/build/licenses/entities/license/configFindResult.js +59 -0
- package/build/licenses/entities/license/licenseFindResult.d.ts +266 -13
- package/build/licenses/entities/license/licenseFindResult.js +324 -13
- package/build/licenses/entities/license/priceFindResult.d.ts +54 -0
- package/build/licenses/entities/license/priceFindResult.js +76 -0
- package/build/licenses/entities/license/warningFindResult.d.ts +33 -0
- package/build/licenses/entities/license/warningFindResult.js +51 -0
- package/build/licenses/entities/offer/actionFlagsFindResult.d.ts +37 -0
- package/build/licenses/entities/offer/actionFlagsFindResult.js +59 -0
- package/build/licenses/entities/offer/offerFindResult.d.ts +63 -0
- package/build/licenses/entities/offer/offerFindResult.js +109 -0
- package/build/licenses/entities/offer/priceBandFindResult.d.ts +72 -0
- package/build/licenses/entities/offer/priceBandFindResult.js +131 -0
- package/build/licenses/entities/offer/priceband/billingFindResult.d.ts +37 -0
- package/build/licenses/entities/offer/priceband/billingFindResult.js +59 -0
- package/build/licenses/entities/offer/priceband/identifiers/arrowsphereFindResult.d.ts +25 -0
- package/build/licenses/entities/offer/priceband/identifiers/arrowsphereFindResult.js +43 -0
- package/build/licenses/entities/offer/priceband/identifiersFindResult.d.ts +25 -0
- package/build/licenses/entities/offer/priceband/identifiersFindResult.js +47 -0
- package/build/licenses/entities/offer/priceband/priceBandActionFlagsFindResult.d.ts +49 -0
- package/build/licenses/entities/offer/priceband/priceBandActionFlagsFindResult.js +80 -0
- package/build/licenses/entities/offer/priceband/priceBandPriceFindResult.d.ts +37 -0
- package/build/licenses/entities/offer/priceband/priceBandPriceFindResult.js +59 -0
- package/build/licenses/entities/offer/priceband/saleConstraintsFindResult.d.ts +29 -0
- package/build/licenses/entities/offer/priceband/saleConstraintsFindResult.js +47 -0
- package/build/licenses/index.d.ts +21 -3
- package/build/licenses/index.js +21 -3
- package/build/licenses/licensesClient.d.ts +93 -29
- package/build/licenses/licensesClient.js +72 -0
- package/build/publicApiClient.js +3 -1
- package/package.json +2 -2
- package/build/licenses/entities/license/abstractLicense.d.ts +0 -177
- package/build/licenses/entities/license/abstractLicense.js +0 -363
- package/build/licenses/entities/offer/licenseOfferFindResult.d.ts +0 -108
- package/build/licenses/entities/offer/licenseOfferFindResult.js +0 -232
|
@@ -6,6 +6,7 @@ exports.LicensesClient = exports.LicenseFindParameters = void 0;
|
|
|
6
6
|
*/
|
|
7
7
|
const abstractClient_1 = require("../abstractClient");
|
|
8
8
|
const findResult_1 = require("./entities/findResult");
|
|
9
|
+
const configFindResult_1 = require("./entities/license/configFindResult");
|
|
9
10
|
/**
|
|
10
11
|
* Parameters passable to the request for refining search.
|
|
11
12
|
*/
|
|
@@ -59,6 +60,46 @@ var LicenseFindParameters;
|
|
|
59
60
|
* Use this operator to search for all keywords with values in the range specified (for date ranges)
|
|
60
61
|
*/
|
|
61
62
|
LicenseFindParameters["OPERATOR_BETWEEN"] = "BETWEEN";
|
|
63
|
+
/**
|
|
64
|
+
* Use this operator to search with a compare field Equal
|
|
65
|
+
*/
|
|
66
|
+
LicenseFindParameters["OPERATOR_EQ"] = "EQ";
|
|
67
|
+
/**
|
|
68
|
+
* Use this operator to search with a compare field Not Equal
|
|
69
|
+
*/
|
|
70
|
+
LicenseFindParameters["OPERATOR_NEQ"] = "NEQ";
|
|
71
|
+
/**
|
|
72
|
+
* Use this operator to search with a compare field Greater Than
|
|
73
|
+
*/
|
|
74
|
+
LicenseFindParameters["OPERATOR_GT"] = "GT";
|
|
75
|
+
/**
|
|
76
|
+
* Use this operator to search with a compare field Greater Than or Equal
|
|
77
|
+
*/
|
|
78
|
+
LicenseFindParameters["OPERATOR_GTE"] = "GTE";
|
|
79
|
+
/**
|
|
80
|
+
* Use this operator to search with a compare field Lower Than
|
|
81
|
+
*/
|
|
82
|
+
LicenseFindParameters["OPERATOR_LT"] = "LT";
|
|
83
|
+
/**
|
|
84
|
+
* Use this operator to search with a compare field Lower Than or Equal
|
|
85
|
+
*/
|
|
86
|
+
LicenseFindParameters["OPERATOR_LTE"] = "LTE";
|
|
87
|
+
/**
|
|
88
|
+
* Use this filter to compare 2 value with other filter like FILTERS_GTE / FILTERS_LT / FILTERS_LTE
|
|
89
|
+
*/
|
|
90
|
+
LicenseFindParameters["FILTERS_GT"] = "gt";
|
|
91
|
+
/**
|
|
92
|
+
* Use this filter to compare 2 value with other filter like FILTERS_GT / FILTERS_LT / FILTERS_LTE
|
|
93
|
+
*/
|
|
94
|
+
LicenseFindParameters["FILTERS_GTE"] = "gte";
|
|
95
|
+
/**
|
|
96
|
+
* Use this filter to compare 2 value with other filter like FILTERS_GT / FILTERS_GTE / FILTERS_LTE
|
|
97
|
+
*/
|
|
98
|
+
LicenseFindParameters["FILTERS_LT"] = "lt";
|
|
99
|
+
/**
|
|
100
|
+
* Use this filter to compare 2 value with other filter like FILTERS_GT / FILTERS_GTE / FILTERS_LT
|
|
101
|
+
*/
|
|
102
|
+
LicenseFindParameters["FILTERS_LTE"] = "lte";
|
|
62
103
|
})(LicenseFindParameters = exports.LicenseFindParameters || (exports.LicenseFindParameters = {}));
|
|
63
104
|
class LicensesClient extends abstractClient_1.AbstractClient {
|
|
64
105
|
constructor() {
|
|
@@ -75,6 +116,10 @@ class LicensesClient extends abstractClient_1.AbstractClient {
|
|
|
75
116
|
* The path of the Find endpoint
|
|
76
117
|
*/
|
|
77
118
|
this.FIND_PATH = 'v2/find';
|
|
119
|
+
/**
|
|
120
|
+
* The path of the Configs endpoint
|
|
121
|
+
*/
|
|
122
|
+
this.CONFIGS_PATH = '/configs';
|
|
78
123
|
}
|
|
79
124
|
/**
|
|
80
125
|
* Returns the raw result from the find endpoint call
|
|
@@ -149,6 +194,33 @@ class LicensesClient extends abstractClient_1.AbstractClient {
|
|
|
149
194
|
const response = await this.findRaw(rawLicensePayload, parameters);
|
|
150
195
|
return new findResult_1.FindResult(response, this, rawLicensePayload, parameters);
|
|
151
196
|
}
|
|
197
|
+
getConfigsRaw(reference) {
|
|
198
|
+
this.path = reference + this.CONFIGS_PATH;
|
|
199
|
+
return this.get();
|
|
200
|
+
}
|
|
201
|
+
async *getConfigs(reference) {
|
|
202
|
+
const rawResponse = await this.getConfigsRaw(reference);
|
|
203
|
+
for (const response of rawResponse.data) {
|
|
204
|
+
yield new configFindResult_1.ConfigFindResult(response).toJSON();
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
async updateConfigRaw(reference, config) {
|
|
208
|
+
this.path = reference + this.CONFIGS_PATH;
|
|
209
|
+
const postData = {
|
|
210
|
+
[configFindResult_1.ConfigFindResultFields.COLUMN_NAME]: config.name,
|
|
211
|
+
[configFindResult_1.ConfigFindResultFields.COLUMN_SCOPE]: config.scope,
|
|
212
|
+
[configFindResult_1.ConfigFindResultFields.COLUMN_STATE]: config.state,
|
|
213
|
+
};
|
|
214
|
+
return await this.post(postData);
|
|
215
|
+
}
|
|
216
|
+
async updateConfig(reference, config) {
|
|
217
|
+
const rawResponse = await this.updateConfigRaw(reference, config);
|
|
218
|
+
return new configFindResult_1.ConfigFindResult(rawResponse);
|
|
219
|
+
}
|
|
220
|
+
getLicense(licenseReference, parameters = {}) {
|
|
221
|
+
this.path = licenseReference;
|
|
222
|
+
return this.get(parameters);
|
|
223
|
+
}
|
|
152
224
|
}
|
|
153
225
|
exports.LicensesClient = LicensesClient;
|
|
154
226
|
//# sourceMappingURL=licensesClient.js.map
|
package/build/publicApiClient.js
CHANGED
|
@@ -17,7 +17,9 @@ class PublicApiClient extends abstractClient_1.AbstractClient {
|
|
|
17
17
|
* @returns {@link WhoAmIClient}
|
|
18
18
|
*/
|
|
19
19
|
getWhoamiClient() {
|
|
20
|
-
return new general_1.WhoAmIClient(this.client)
|
|
20
|
+
return new general_1.WhoAmIClient(this.client)
|
|
21
|
+
.setUrl(this.url)
|
|
22
|
+
.setApiKey(this.apiKey);
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
25
|
* Creates a new {@link LicensesClient} instance and returns it
|
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": "1.
|
|
7
|
+
"version": "2.1.1",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"doc": "typedoc ./src/index.ts ./src/**/index.ts",
|
|
15
15
|
"lint": "eslint ./{src,tests}/**/*.ts && prettier --list-different ./{src,tests}/**/*.ts",
|
|
16
16
|
"lint:fix": "eslint ./{src,tests}/**/*.ts --fix && prettier --write ./{src,tests}/**/*.ts",
|
|
17
|
-
"
|
|
17
|
+
"prepare": "npm run clean && npm run build",
|
|
18
18
|
"test": "mocha -r ts-node/register \"tests/**/*.ts\"",
|
|
19
19
|
"test:watch": "mocha --watch -r ts-node/register \"tests/**/*.ts\"",
|
|
20
20
|
"test:coverage": "nyc --check-coverage npm run test",
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
-
/**
|
|
3
|
-
* Fields that can be present in License response and request data.
|
|
4
|
-
*/
|
|
5
|
-
export declare enum LicenseFields {
|
|
6
|
-
COLUMN_ACCEPT_EULA = "accept_eula",
|
|
7
|
-
COLUMN_AUTO_RENEW = "auto_renew",
|
|
8
|
-
COLUMN_BASE_SEAT = "base_seat",
|
|
9
|
-
COLUMN_CATEGORY = "category",
|
|
10
|
-
COLUMN_CLOUD_TYPE = "cloud_type",
|
|
11
|
-
COLUMN_CUSTOMER_NAME = "customer_name",
|
|
12
|
-
COLUMN_CUSTOMER_REF = "customer_ref",
|
|
13
|
-
COLUMN_END_DATE = "end_date",
|
|
14
|
-
COLUMN_FRIENDLY_NAME = "friendly_name",
|
|
15
|
-
COLUMN_ID = "id",
|
|
16
|
-
COLUMN_IS_ENABLED = "isEnabled",
|
|
17
|
-
COLUMN_LAST_UPDATE = "lastUpdate",
|
|
18
|
-
COLUMN_PARENT_LINE_ID = "parent_line_id",
|
|
19
|
-
COLUMN_MARKETPLACE = "marketplace",
|
|
20
|
-
COLUMN_MESSAGE = "message",
|
|
21
|
-
COLUMN_OFFER = "offer",
|
|
22
|
-
COLUMN_PARENT_ORDER_REF = "parent_order_ref",
|
|
23
|
-
COLUMN_PARTNER_REF = "partner_ref",
|
|
24
|
-
COLUMN_PERIODICITY = "periodicity",
|
|
25
|
-
COLUMN_RESELLER_NAME = "reseller_name",
|
|
26
|
-
COLUMN_RESELLER_REF = "reseller_ref",
|
|
27
|
-
COLUMN_SEAT = "seat",
|
|
28
|
-
COLUMN_SERVICE_REF = "service_ref",
|
|
29
|
-
COLUMN_SKU = "sku",
|
|
30
|
-
COLUMN_START_DATE = "start_date",
|
|
31
|
-
COLUMN_STATUS_CODE = "status_code",
|
|
32
|
-
COLUMN_STATUS_LABEL = "status_label",
|
|
33
|
-
COLUMN_SUBSCRIPTION_ID = "subscription_id",
|
|
34
|
-
COLUMN_SUBSIDIARY_NAME = "subsidiary_name",
|
|
35
|
-
COLUMN_TERM = "term",
|
|
36
|
-
COLUMN_TRIAL = "trial",
|
|
37
|
-
COLUMN_TYPE = "type",
|
|
38
|
-
COLUMN_UOM = "uom",
|
|
39
|
-
COLUMN_VENDOR_CODE = "vendor_code",
|
|
40
|
-
COLUMN_VENDOR_NAME = "vendor_name",
|
|
41
|
-
COLUMN_VENDOR_SUBSCRIPTION_ID = "vendor_subscription_id",
|
|
42
|
-
COLUMN_PRICE = "price",
|
|
43
|
-
PRICE_BUY_PRICE = "buy_price",
|
|
44
|
-
PRICE_LIST_PRICE = "list_price",
|
|
45
|
-
PRICE_CURRENCY = "currency",
|
|
46
|
-
COLUMN_ACTIVE_SEATS = "active_seats",
|
|
47
|
-
ACTIVE_SEATS_LAST_UPDATE = "lastUpdate",
|
|
48
|
-
ACTIVE_SEATS_NUMBER = "number"
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* License data fields and their corresponding types
|
|
52
|
-
*/
|
|
53
|
-
export declare type LicenseData = {
|
|
54
|
-
[LicenseFields.COLUMN_ID]: number;
|
|
55
|
-
[LicenseFields.COLUMN_ACCEPT_EULA]: boolean;
|
|
56
|
-
[LicenseFields.COLUMN_ACTIVE_SEATS]: {
|
|
57
|
-
[LicenseFields.ACTIVE_SEATS_LAST_UPDATE]: string | null;
|
|
58
|
-
[LicenseFields.ACTIVE_SEATS_NUMBER]: number | null;
|
|
59
|
-
};
|
|
60
|
-
[LicenseFields.COLUMN_AUTO_RENEW]: boolean;
|
|
61
|
-
[LicenseFields.COLUMN_BASE_SEAT]: number;
|
|
62
|
-
[LicenseFields.COLUMN_CATEGORY]: string;
|
|
63
|
-
[LicenseFields.COLUMN_CLOUD_TYPE]: string;
|
|
64
|
-
[LicenseFields.COLUMN_CUSTOMER_NAME]: string;
|
|
65
|
-
[LicenseFields.COLUMN_CUSTOMER_REF]: string;
|
|
66
|
-
[LicenseFields.COLUMN_END_DATE]: string;
|
|
67
|
-
[LicenseFields.COLUMN_FRIENDLY_NAME]: string | null;
|
|
68
|
-
[LicenseFields.COLUMN_IS_ENABLED]: boolean;
|
|
69
|
-
[LicenseFields.COLUMN_LAST_UPDATE]: string | null;
|
|
70
|
-
[LicenseFields.COLUMN_MARKETPLACE]: string;
|
|
71
|
-
[LicenseFields.COLUMN_MESSAGE]: string;
|
|
72
|
-
[LicenseFields.COLUMN_OFFER]: string;
|
|
73
|
-
[LicenseFields.COLUMN_PARENT_LINE_ID]: number | null;
|
|
74
|
-
[LicenseFields.COLUMN_PARENT_ORDER_REF]: string | null;
|
|
75
|
-
[LicenseFields.COLUMN_PARTNER_REF]: string;
|
|
76
|
-
[LicenseFields.COLUMN_PERIODICITY]: number;
|
|
77
|
-
[LicenseFields.COLUMN_PRICE]: {
|
|
78
|
-
[LicenseFields.PRICE_BUY_PRICE]: number;
|
|
79
|
-
[LicenseFields.PRICE_LIST_PRICE]: number;
|
|
80
|
-
[LicenseFields.PRICE_CURRENCY]: string | null;
|
|
81
|
-
};
|
|
82
|
-
[LicenseFields.COLUMN_RESELLER_NAME]: string;
|
|
83
|
-
[LicenseFields.COLUMN_RESELLER_REF]: string;
|
|
84
|
-
[LicenseFields.COLUMN_SEAT]: number;
|
|
85
|
-
[LicenseFields.COLUMN_SERVICE_REF]: string;
|
|
86
|
-
[LicenseFields.COLUMN_SKU]: string;
|
|
87
|
-
[LicenseFields.COLUMN_START_DATE]: string;
|
|
88
|
-
[LicenseFields.COLUMN_STATUS_CODE]: number;
|
|
89
|
-
[LicenseFields.COLUMN_STATUS_LABEL]: string;
|
|
90
|
-
[LicenseFields.COLUMN_SUBSCRIPTION_ID]: string;
|
|
91
|
-
[LicenseFields.COLUMN_SUBSIDIARY_NAME]: string;
|
|
92
|
-
[LicenseFields.COLUMN_TERM]: number;
|
|
93
|
-
[LicenseFields.COLUMN_TRIAL]: boolean;
|
|
94
|
-
[LicenseFields.COLUMN_TYPE]: string;
|
|
95
|
-
[LicenseFields.COLUMN_UOM]: string;
|
|
96
|
-
[LicenseFields.COLUMN_VENDOR_CODE]: string;
|
|
97
|
-
[LicenseFields.COLUMN_VENDOR_NAME]: string;
|
|
98
|
-
[LicenseFields.COLUMN_VENDOR_SUBSCRIPTION_ID]: string | null;
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* Abstract class of a License entity. Can only be instantiated through a {@link LicenseFindResult} object class
|
|
102
|
-
*/
|
|
103
|
-
export declare abstract class AbstractLicense extends AbstractEntity<LicenseData> {
|
|
104
|
-
#private;
|
|
105
|
-
protected VALIDATION_RULES: {
|
|
106
|
-
[x: string]: string;
|
|
107
|
-
id: string;
|
|
108
|
-
subscription_id: string;
|
|
109
|
-
vendor_name: string;
|
|
110
|
-
vendor_code: string;
|
|
111
|
-
subsidiary_name: string;
|
|
112
|
-
partner_ref: string;
|
|
113
|
-
status_code: string;
|
|
114
|
-
status_label: string;
|
|
115
|
-
sku: string;
|
|
116
|
-
cloud_type: string;
|
|
117
|
-
base_seat: string;
|
|
118
|
-
seat: string;
|
|
119
|
-
trial: string;
|
|
120
|
-
auto_renew: string;
|
|
121
|
-
offer: string;
|
|
122
|
-
accept_eula: string;
|
|
123
|
-
price: string;
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* AbstractLicense constructor.
|
|
127
|
-
*
|
|
128
|
-
* @param data - License data to construct the entity with.
|
|
129
|
-
*/
|
|
130
|
-
protected constructor(data: LicenseData);
|
|
131
|
-
get id(): number;
|
|
132
|
-
get acceptEula(): boolean;
|
|
133
|
-
get activeSeatsLastUpdate(): string | null;
|
|
134
|
-
get activeSeatsNumber(): number | null;
|
|
135
|
-
get autoRenew(): boolean;
|
|
136
|
-
get baseSeat(): number;
|
|
137
|
-
get buyPrice(): number;
|
|
138
|
-
get category(): string;
|
|
139
|
-
get classification(): string;
|
|
140
|
-
get currency(): string | null;
|
|
141
|
-
get customerName(): string;
|
|
142
|
-
get customerRef(): string;
|
|
143
|
-
get endDate(): string;
|
|
144
|
-
get friendlyName(): string | null;
|
|
145
|
-
get enabled(): boolean;
|
|
146
|
-
get lastUpdate(): string | null;
|
|
147
|
-
get listPrice(): number;
|
|
148
|
-
get marketplace(): string;
|
|
149
|
-
get message(): string;
|
|
150
|
-
get offer(): string;
|
|
151
|
-
get parentLineId(): number | null;
|
|
152
|
-
get parentOrderRef(): string | null;
|
|
153
|
-
get partnerRef(): string;
|
|
154
|
-
get periodicity(): number;
|
|
155
|
-
get resellerName(): string;
|
|
156
|
-
get resellerRef(): string;
|
|
157
|
-
get seat(): number;
|
|
158
|
-
get serviceRef(): string;
|
|
159
|
-
get sku(): string;
|
|
160
|
-
get startDate(): string;
|
|
161
|
-
get statusCode(): number;
|
|
162
|
-
get statusLabel(): string;
|
|
163
|
-
get subscriptionId(): string;
|
|
164
|
-
get subsidiaryName(): string;
|
|
165
|
-
get term(): number;
|
|
166
|
-
isTrial(): boolean;
|
|
167
|
-
get type(): string;
|
|
168
|
-
get uom(): string;
|
|
169
|
-
get vendorCode(): string;
|
|
170
|
-
get vendorName(): string;
|
|
171
|
-
get vendorSubscriptionId(): string | null;
|
|
172
|
-
/**
|
|
173
|
-
* Plain JSON object representation of the license entity.
|
|
174
|
-
* @returns {@link LicenseData}
|
|
175
|
-
*/
|
|
176
|
-
toJSON(): LicenseData;
|
|
177
|
-
}
|
|
@@ -1,363 +0,0 @@
|
|
|
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 _acceptEula, _activeSeatsLastUpdate, _activeSeatsNumber, _autoRenew, _baseSeat, _buyPrice, _category, _classification, _currency, _customerName, _customerRef, _endDate, _friendlyName, _id, _enabled, _lastUpdate, _listPrice, _marketplace, _message, _offer, _parentLineId, _parentOrderRef, _partnerRef, _periodicity, _resellerName, _resellerRef, _seat, _serviceRef, _sku, _startDate, _statusCode, _statusLabel, _subscriptionId, _subsidiaryName, _term, _trial, _type, _uom, _vendorCode, _vendorName, _vendorSubscriptionId;
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.AbstractLicense = exports.LicenseFields = void 0;
|
|
18
|
-
const abstractEntity_1 = require("../../../abstractEntity");
|
|
19
|
-
/**
|
|
20
|
-
* Fields that can be present in License response and request data.
|
|
21
|
-
*/
|
|
22
|
-
var LicenseFields;
|
|
23
|
-
(function (LicenseFields) {
|
|
24
|
-
LicenseFields["COLUMN_ACCEPT_EULA"] = "accept_eula";
|
|
25
|
-
LicenseFields["COLUMN_AUTO_RENEW"] = "auto_renew";
|
|
26
|
-
LicenseFields["COLUMN_BASE_SEAT"] = "base_seat";
|
|
27
|
-
LicenseFields["COLUMN_CATEGORY"] = "category";
|
|
28
|
-
LicenseFields["COLUMN_CLOUD_TYPE"] = "cloud_type";
|
|
29
|
-
LicenseFields["COLUMN_CUSTOMER_NAME"] = "customer_name";
|
|
30
|
-
LicenseFields["COLUMN_CUSTOMER_REF"] = "customer_ref";
|
|
31
|
-
LicenseFields["COLUMN_END_DATE"] = "end_date";
|
|
32
|
-
LicenseFields["COLUMN_FRIENDLY_NAME"] = "friendly_name";
|
|
33
|
-
LicenseFields["COLUMN_ID"] = "id";
|
|
34
|
-
LicenseFields["COLUMN_IS_ENABLED"] = "isEnabled";
|
|
35
|
-
LicenseFields["COLUMN_LAST_UPDATE"] = "lastUpdate";
|
|
36
|
-
LicenseFields["COLUMN_PARENT_LINE_ID"] = "parent_line_id";
|
|
37
|
-
LicenseFields["COLUMN_MARKETPLACE"] = "marketplace";
|
|
38
|
-
LicenseFields["COLUMN_MESSAGE"] = "message";
|
|
39
|
-
LicenseFields["COLUMN_OFFER"] = "offer";
|
|
40
|
-
LicenseFields["COLUMN_PARENT_ORDER_REF"] = "parent_order_ref";
|
|
41
|
-
LicenseFields["COLUMN_PARTNER_REF"] = "partner_ref";
|
|
42
|
-
LicenseFields["COLUMN_PERIODICITY"] = "periodicity";
|
|
43
|
-
LicenseFields["COLUMN_RESELLER_NAME"] = "reseller_name";
|
|
44
|
-
LicenseFields["COLUMN_RESELLER_REF"] = "reseller_ref";
|
|
45
|
-
LicenseFields["COLUMN_SEAT"] = "seat";
|
|
46
|
-
LicenseFields["COLUMN_SERVICE_REF"] = "service_ref";
|
|
47
|
-
LicenseFields["COLUMN_SKU"] = "sku";
|
|
48
|
-
LicenseFields["COLUMN_START_DATE"] = "start_date";
|
|
49
|
-
LicenseFields["COLUMN_STATUS_CODE"] = "status_code";
|
|
50
|
-
LicenseFields["COLUMN_STATUS_LABEL"] = "status_label";
|
|
51
|
-
LicenseFields["COLUMN_SUBSCRIPTION_ID"] = "subscription_id";
|
|
52
|
-
LicenseFields["COLUMN_SUBSIDIARY_NAME"] = "subsidiary_name";
|
|
53
|
-
LicenseFields["COLUMN_TERM"] = "term";
|
|
54
|
-
LicenseFields["COLUMN_TRIAL"] = "trial";
|
|
55
|
-
LicenseFields["COLUMN_TYPE"] = "type";
|
|
56
|
-
LicenseFields["COLUMN_UOM"] = "uom";
|
|
57
|
-
LicenseFields["COLUMN_VENDOR_CODE"] = "vendor_code";
|
|
58
|
-
LicenseFields["COLUMN_VENDOR_NAME"] = "vendor_name";
|
|
59
|
-
LicenseFields["COLUMN_VENDOR_SUBSCRIPTION_ID"] = "vendor_subscription_id";
|
|
60
|
-
LicenseFields["COLUMN_PRICE"] = "price";
|
|
61
|
-
LicenseFields["PRICE_BUY_PRICE"] = "buy_price";
|
|
62
|
-
LicenseFields["PRICE_LIST_PRICE"] = "list_price";
|
|
63
|
-
LicenseFields["PRICE_CURRENCY"] = "currency";
|
|
64
|
-
LicenseFields["COLUMN_ACTIVE_SEATS"] = "active_seats";
|
|
65
|
-
LicenseFields["ACTIVE_SEATS_LAST_UPDATE"] = "lastUpdate";
|
|
66
|
-
LicenseFields["ACTIVE_SEATS_NUMBER"] = "number";
|
|
67
|
-
})(LicenseFields = exports.LicenseFields || (exports.LicenseFields = {}));
|
|
68
|
-
/**
|
|
69
|
-
* Abstract class of a License entity. Can only be instantiated through a {@link LicenseFindResult} object class
|
|
70
|
-
*/
|
|
71
|
-
class AbstractLicense extends abstractEntity_1.AbstractEntity {
|
|
72
|
-
/**
|
|
73
|
-
* AbstractLicense constructor.
|
|
74
|
-
*
|
|
75
|
-
* @param data - License data to construct the entity with.
|
|
76
|
-
*/
|
|
77
|
-
constructor(data) {
|
|
78
|
-
super(data);
|
|
79
|
-
this.VALIDATION_RULES = {
|
|
80
|
-
[LicenseFields.COLUMN_ID]: 'required|numeric',
|
|
81
|
-
[LicenseFields.COLUMN_SUBSCRIPTION_ID]: 'required',
|
|
82
|
-
[LicenseFields.COLUMN_VENDOR_NAME]: 'required',
|
|
83
|
-
[LicenseFields.COLUMN_VENDOR_CODE]: 'required',
|
|
84
|
-
[LicenseFields.COLUMN_SUBSIDIARY_NAME]: 'required',
|
|
85
|
-
[LicenseFields.COLUMN_PARTNER_REF]: 'required',
|
|
86
|
-
[LicenseFields.COLUMN_STATUS_CODE]: 'required|numeric',
|
|
87
|
-
[LicenseFields.COLUMN_STATUS_LABEL]: 'required',
|
|
88
|
-
[LicenseFields.COLUMN_SKU]: 'required',
|
|
89
|
-
[LicenseFields.COLUMN_CLOUD_TYPE]: 'required',
|
|
90
|
-
[LicenseFields.COLUMN_BASE_SEAT]: 'present|numeric',
|
|
91
|
-
[LicenseFields.COLUMN_SEAT]: 'present|numeric',
|
|
92
|
-
[LicenseFields.COLUMN_TRIAL]: 'present|boolean',
|
|
93
|
-
[LicenseFields.COLUMN_AUTO_RENEW]: 'present|boolean',
|
|
94
|
-
[LicenseFields.COLUMN_OFFER]: 'required',
|
|
95
|
-
[LicenseFields.COLUMN_ACCEPT_EULA]: 'present|boolean',
|
|
96
|
-
[LicenseFields.COLUMN_PRICE]: 'required|object',
|
|
97
|
-
[`${LicenseFields.COLUMN_PRICE}.${LicenseFields.PRICE_BUY_PRICE}`]: 'present|numeric',
|
|
98
|
-
[`${LicenseFields.COLUMN_PRICE}.${LicenseFields.PRICE_LIST_PRICE}`]: 'present|numeric',
|
|
99
|
-
[`${LicenseFields.COLUMN_PRICE}.${LicenseFields.PRICE_CURRENCY}`]: 'present',
|
|
100
|
-
};
|
|
101
|
-
_acceptEula.set(this, void 0);
|
|
102
|
-
_activeSeatsLastUpdate.set(this, void 0);
|
|
103
|
-
_activeSeatsNumber.set(this, void 0);
|
|
104
|
-
_autoRenew.set(this, void 0);
|
|
105
|
-
_baseSeat.set(this, void 0);
|
|
106
|
-
_buyPrice.set(this, void 0);
|
|
107
|
-
_category.set(this, void 0);
|
|
108
|
-
_classification.set(this, void 0);
|
|
109
|
-
_currency.set(this, void 0);
|
|
110
|
-
_customerName.set(this, void 0);
|
|
111
|
-
_customerRef.set(this, void 0);
|
|
112
|
-
_endDate.set(this, void 0);
|
|
113
|
-
_friendlyName.set(this, void 0);
|
|
114
|
-
_id.set(this, void 0);
|
|
115
|
-
_enabled.set(this, void 0);
|
|
116
|
-
_lastUpdate.set(this, void 0);
|
|
117
|
-
_listPrice.set(this, void 0);
|
|
118
|
-
_marketplace.set(this, void 0);
|
|
119
|
-
_message.set(this, void 0);
|
|
120
|
-
_offer.set(this, void 0);
|
|
121
|
-
_parentLineId.set(this, void 0);
|
|
122
|
-
_parentOrderRef.set(this, void 0);
|
|
123
|
-
_partnerRef.set(this, void 0);
|
|
124
|
-
_periodicity.set(this, void 0);
|
|
125
|
-
_resellerName.set(this, void 0);
|
|
126
|
-
_resellerRef.set(this, void 0);
|
|
127
|
-
_seat.set(this, void 0);
|
|
128
|
-
_serviceRef.set(this, void 0);
|
|
129
|
-
_sku.set(this, void 0);
|
|
130
|
-
_startDate.set(this, void 0);
|
|
131
|
-
_statusCode.set(this, void 0);
|
|
132
|
-
_statusLabel.set(this, void 0);
|
|
133
|
-
_subscriptionId.set(this, void 0);
|
|
134
|
-
_subsidiaryName.set(this, void 0);
|
|
135
|
-
_term.set(this, void 0);
|
|
136
|
-
_trial.set(this, void 0);
|
|
137
|
-
_type.set(this, void 0);
|
|
138
|
-
_uom.set(this, void 0);
|
|
139
|
-
_vendorCode.set(this, void 0);
|
|
140
|
-
_vendorName.set(this, void 0);
|
|
141
|
-
_vendorSubscriptionId.set(this, void 0);
|
|
142
|
-
__classPrivateFieldSet(this, _acceptEula, data[LicenseFields.COLUMN_ACCEPT_EULA]);
|
|
143
|
-
__classPrivateFieldSet(this, _activeSeatsLastUpdate, data[LicenseFields.COLUMN_ACTIVE_SEATS][LicenseFields.ACTIVE_SEATS_LAST_UPDATE]);
|
|
144
|
-
__classPrivateFieldSet(this, _activeSeatsNumber, data[LicenseFields.COLUMN_ACTIVE_SEATS][LicenseFields.ACTIVE_SEATS_NUMBER]);
|
|
145
|
-
__classPrivateFieldSet(this, _autoRenew, data[LicenseFields.COLUMN_AUTO_RENEW]);
|
|
146
|
-
__classPrivateFieldSet(this, _baseSeat, data[LicenseFields.COLUMN_BASE_SEAT]);
|
|
147
|
-
__classPrivateFieldSet(this, _buyPrice, data[LicenseFields.COLUMN_PRICE][LicenseFields.PRICE_BUY_PRICE]);
|
|
148
|
-
__classPrivateFieldSet(this, _category, data[LicenseFields.COLUMN_CATEGORY]);
|
|
149
|
-
__classPrivateFieldSet(this, _classification, data[LicenseFields.COLUMN_CLOUD_TYPE]);
|
|
150
|
-
__classPrivateFieldSet(this, _currency, data[LicenseFields.COLUMN_PRICE][LicenseFields.PRICE_CURRENCY]);
|
|
151
|
-
__classPrivateFieldSet(this, _customerName, data[LicenseFields.COLUMN_CUSTOMER_NAME]);
|
|
152
|
-
__classPrivateFieldSet(this, _customerRef, data[LicenseFields.COLUMN_CUSTOMER_REF]);
|
|
153
|
-
__classPrivateFieldSet(this, _endDate, data[LicenseFields.COLUMN_END_DATE]);
|
|
154
|
-
__classPrivateFieldSet(this, _friendlyName, data[LicenseFields.COLUMN_FRIENDLY_NAME]);
|
|
155
|
-
__classPrivateFieldSet(this, _id, data[LicenseFields.COLUMN_ID]);
|
|
156
|
-
__classPrivateFieldSet(this, _enabled, data[LicenseFields.COLUMN_IS_ENABLED]);
|
|
157
|
-
__classPrivateFieldSet(this, _lastUpdate, data[LicenseFields.COLUMN_LAST_UPDATE]);
|
|
158
|
-
__classPrivateFieldSet(this, _listPrice, data[LicenseFields.COLUMN_PRICE][LicenseFields.PRICE_LIST_PRICE]);
|
|
159
|
-
__classPrivateFieldSet(this, _marketplace, data[LicenseFields.COLUMN_MARKETPLACE]);
|
|
160
|
-
__classPrivateFieldSet(this, _message, data[LicenseFields.COLUMN_MESSAGE]);
|
|
161
|
-
__classPrivateFieldSet(this, _offer, data[LicenseFields.COLUMN_OFFER]);
|
|
162
|
-
__classPrivateFieldSet(this, _parentLineId, data[LicenseFields.COLUMN_PARENT_LINE_ID]);
|
|
163
|
-
__classPrivateFieldSet(this, _parentOrderRef, data[LicenseFields.COLUMN_PARENT_ORDER_REF]);
|
|
164
|
-
__classPrivateFieldSet(this, _partnerRef, data[LicenseFields.COLUMN_PARTNER_REF]);
|
|
165
|
-
__classPrivateFieldSet(this, _periodicity, data[LicenseFields.COLUMN_PERIODICITY]);
|
|
166
|
-
__classPrivateFieldSet(this, _resellerName, data[LicenseFields.COLUMN_RESELLER_NAME]);
|
|
167
|
-
__classPrivateFieldSet(this, _resellerRef, data[LicenseFields.COLUMN_RESELLER_REF]);
|
|
168
|
-
__classPrivateFieldSet(this, _seat, data[LicenseFields.COLUMN_SEAT]);
|
|
169
|
-
__classPrivateFieldSet(this, _serviceRef, data[LicenseFields.COLUMN_SERVICE_REF]);
|
|
170
|
-
__classPrivateFieldSet(this, _sku, data[LicenseFields.COLUMN_SKU]);
|
|
171
|
-
__classPrivateFieldSet(this, _startDate, data[LicenseFields.COLUMN_START_DATE]);
|
|
172
|
-
__classPrivateFieldSet(this, _statusCode, data[LicenseFields.COLUMN_STATUS_CODE]);
|
|
173
|
-
__classPrivateFieldSet(this, _statusLabel, data[LicenseFields.COLUMN_STATUS_LABEL]);
|
|
174
|
-
__classPrivateFieldSet(this, _subscriptionId, data[LicenseFields.COLUMN_SUBSCRIPTION_ID]);
|
|
175
|
-
__classPrivateFieldSet(this, _subsidiaryName, data[LicenseFields.COLUMN_SUBSIDIARY_NAME]);
|
|
176
|
-
__classPrivateFieldSet(this, _term, data[LicenseFields.COLUMN_TERM]);
|
|
177
|
-
__classPrivateFieldSet(this, _trial, data[LicenseFields.COLUMN_TRIAL]);
|
|
178
|
-
__classPrivateFieldSet(this, _type, data[LicenseFields.COLUMN_TYPE]);
|
|
179
|
-
__classPrivateFieldSet(this, _uom, data[LicenseFields.COLUMN_UOM]);
|
|
180
|
-
__classPrivateFieldSet(this, _vendorCode, data[LicenseFields.COLUMN_VENDOR_CODE]);
|
|
181
|
-
__classPrivateFieldSet(this, _vendorName, data[LicenseFields.COLUMN_VENDOR_NAME]);
|
|
182
|
-
__classPrivateFieldSet(this, _vendorSubscriptionId, data[LicenseFields.COLUMN_VENDOR_SUBSCRIPTION_ID]);
|
|
183
|
-
}
|
|
184
|
-
get id() {
|
|
185
|
-
return __classPrivateFieldGet(this, _id);
|
|
186
|
-
}
|
|
187
|
-
get acceptEula() {
|
|
188
|
-
return __classPrivateFieldGet(this, _acceptEula);
|
|
189
|
-
}
|
|
190
|
-
get activeSeatsLastUpdate() {
|
|
191
|
-
return __classPrivateFieldGet(this, _activeSeatsLastUpdate);
|
|
192
|
-
}
|
|
193
|
-
get activeSeatsNumber() {
|
|
194
|
-
return __classPrivateFieldGet(this, _activeSeatsNumber);
|
|
195
|
-
}
|
|
196
|
-
get autoRenew() {
|
|
197
|
-
return __classPrivateFieldGet(this, _autoRenew);
|
|
198
|
-
}
|
|
199
|
-
get baseSeat() {
|
|
200
|
-
return __classPrivateFieldGet(this, _baseSeat);
|
|
201
|
-
}
|
|
202
|
-
get buyPrice() {
|
|
203
|
-
return __classPrivateFieldGet(this, _buyPrice);
|
|
204
|
-
}
|
|
205
|
-
get category() {
|
|
206
|
-
return __classPrivateFieldGet(this, _category);
|
|
207
|
-
}
|
|
208
|
-
get classification() {
|
|
209
|
-
return __classPrivateFieldGet(this, _classification);
|
|
210
|
-
}
|
|
211
|
-
get currency() {
|
|
212
|
-
return __classPrivateFieldGet(this, _currency);
|
|
213
|
-
}
|
|
214
|
-
get customerName() {
|
|
215
|
-
return __classPrivateFieldGet(this, _customerName);
|
|
216
|
-
}
|
|
217
|
-
get customerRef() {
|
|
218
|
-
return __classPrivateFieldGet(this, _customerRef);
|
|
219
|
-
}
|
|
220
|
-
get endDate() {
|
|
221
|
-
return __classPrivateFieldGet(this, _endDate);
|
|
222
|
-
}
|
|
223
|
-
get friendlyName() {
|
|
224
|
-
return __classPrivateFieldGet(this, _friendlyName);
|
|
225
|
-
}
|
|
226
|
-
get enabled() {
|
|
227
|
-
return __classPrivateFieldGet(this, _enabled);
|
|
228
|
-
}
|
|
229
|
-
get lastUpdate() {
|
|
230
|
-
return __classPrivateFieldGet(this, _lastUpdate);
|
|
231
|
-
}
|
|
232
|
-
get listPrice() {
|
|
233
|
-
return __classPrivateFieldGet(this, _listPrice);
|
|
234
|
-
}
|
|
235
|
-
get marketplace() {
|
|
236
|
-
return __classPrivateFieldGet(this, _marketplace);
|
|
237
|
-
}
|
|
238
|
-
get message() {
|
|
239
|
-
return __classPrivateFieldGet(this, _message);
|
|
240
|
-
}
|
|
241
|
-
get offer() {
|
|
242
|
-
return __classPrivateFieldGet(this, _offer);
|
|
243
|
-
}
|
|
244
|
-
get parentLineId() {
|
|
245
|
-
return __classPrivateFieldGet(this, _parentLineId);
|
|
246
|
-
}
|
|
247
|
-
get parentOrderRef() {
|
|
248
|
-
return __classPrivateFieldGet(this, _parentOrderRef);
|
|
249
|
-
}
|
|
250
|
-
get partnerRef() {
|
|
251
|
-
return __classPrivateFieldGet(this, _partnerRef);
|
|
252
|
-
}
|
|
253
|
-
get periodicity() {
|
|
254
|
-
return __classPrivateFieldGet(this, _periodicity);
|
|
255
|
-
}
|
|
256
|
-
get resellerName() {
|
|
257
|
-
return __classPrivateFieldGet(this, _resellerName);
|
|
258
|
-
}
|
|
259
|
-
get resellerRef() {
|
|
260
|
-
return __classPrivateFieldGet(this, _resellerRef);
|
|
261
|
-
}
|
|
262
|
-
get seat() {
|
|
263
|
-
return __classPrivateFieldGet(this, _seat);
|
|
264
|
-
}
|
|
265
|
-
get serviceRef() {
|
|
266
|
-
return __classPrivateFieldGet(this, _serviceRef);
|
|
267
|
-
}
|
|
268
|
-
get sku() {
|
|
269
|
-
return __classPrivateFieldGet(this, _sku);
|
|
270
|
-
}
|
|
271
|
-
get startDate() {
|
|
272
|
-
return __classPrivateFieldGet(this, _startDate);
|
|
273
|
-
}
|
|
274
|
-
get statusCode() {
|
|
275
|
-
return __classPrivateFieldGet(this, _statusCode);
|
|
276
|
-
}
|
|
277
|
-
get statusLabel() {
|
|
278
|
-
return __classPrivateFieldGet(this, _statusLabel);
|
|
279
|
-
}
|
|
280
|
-
get subscriptionId() {
|
|
281
|
-
return __classPrivateFieldGet(this, _subscriptionId);
|
|
282
|
-
}
|
|
283
|
-
get subsidiaryName() {
|
|
284
|
-
return __classPrivateFieldGet(this, _subsidiaryName);
|
|
285
|
-
}
|
|
286
|
-
get term() {
|
|
287
|
-
return __classPrivateFieldGet(this, _term);
|
|
288
|
-
}
|
|
289
|
-
isTrial() {
|
|
290
|
-
return __classPrivateFieldGet(this, _trial);
|
|
291
|
-
}
|
|
292
|
-
get type() {
|
|
293
|
-
return __classPrivateFieldGet(this, _type);
|
|
294
|
-
}
|
|
295
|
-
get uom() {
|
|
296
|
-
return __classPrivateFieldGet(this, _uom);
|
|
297
|
-
}
|
|
298
|
-
get vendorCode() {
|
|
299
|
-
return __classPrivateFieldGet(this, _vendorCode);
|
|
300
|
-
}
|
|
301
|
-
get vendorName() {
|
|
302
|
-
return __classPrivateFieldGet(this, _vendorName);
|
|
303
|
-
}
|
|
304
|
-
get vendorSubscriptionId() {
|
|
305
|
-
return __classPrivateFieldGet(this, _vendorSubscriptionId);
|
|
306
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
* Plain JSON object representation of the license entity.
|
|
309
|
-
* @returns {@link LicenseData}
|
|
310
|
-
*/
|
|
311
|
-
toJSON() {
|
|
312
|
-
return {
|
|
313
|
-
[LicenseFields.COLUMN_ID]: this.id,
|
|
314
|
-
[LicenseFields.COLUMN_ACCEPT_EULA]: this.acceptEula,
|
|
315
|
-
[LicenseFields.COLUMN_ACTIVE_SEATS]: {
|
|
316
|
-
[LicenseFields.ACTIVE_SEATS_NUMBER]: this.activeSeatsNumber,
|
|
317
|
-
[LicenseFields.ACTIVE_SEATS_LAST_UPDATE]: this.activeSeatsLastUpdate,
|
|
318
|
-
},
|
|
319
|
-
[LicenseFields.COLUMN_AUTO_RENEW]: this.autoRenew,
|
|
320
|
-
[LicenseFields.COLUMN_BASE_SEAT]: this.baseSeat,
|
|
321
|
-
[LicenseFields.COLUMN_CATEGORY]: this.category,
|
|
322
|
-
[LicenseFields.COLUMN_CLOUD_TYPE]: this.classification,
|
|
323
|
-
[LicenseFields.COLUMN_CUSTOMER_NAME]: this.customerName,
|
|
324
|
-
[LicenseFields.COLUMN_CUSTOMER_REF]: this.customerRef,
|
|
325
|
-
[LicenseFields.COLUMN_END_DATE]: this.endDate,
|
|
326
|
-
[LicenseFields.COLUMN_FRIENDLY_NAME]: this.friendlyName,
|
|
327
|
-
[LicenseFields.COLUMN_IS_ENABLED]: this.enabled,
|
|
328
|
-
[LicenseFields.COLUMN_LAST_UPDATE]: this.lastUpdate,
|
|
329
|
-
[LicenseFields.COLUMN_MARKETPLACE]: this.marketplace,
|
|
330
|
-
[LicenseFields.COLUMN_MESSAGE]: this.message,
|
|
331
|
-
[LicenseFields.COLUMN_OFFER]: this.offer,
|
|
332
|
-
[LicenseFields.COLUMN_PARENT_LINE_ID]: this.parentLineId,
|
|
333
|
-
[LicenseFields.COLUMN_PARENT_ORDER_REF]: this.parentOrderRef,
|
|
334
|
-
[LicenseFields.COLUMN_PARTNER_REF]: this.partnerRef,
|
|
335
|
-
[LicenseFields.COLUMN_PERIODICITY]: this.periodicity,
|
|
336
|
-
[LicenseFields.COLUMN_PRICE]: {
|
|
337
|
-
[LicenseFields.PRICE_BUY_PRICE]: this.buyPrice,
|
|
338
|
-
[LicenseFields.PRICE_LIST_PRICE]: this.listPrice,
|
|
339
|
-
[LicenseFields.PRICE_CURRENCY]: this.currency,
|
|
340
|
-
},
|
|
341
|
-
[LicenseFields.COLUMN_RESELLER_NAME]: this.resellerName,
|
|
342
|
-
[LicenseFields.COLUMN_RESELLER_REF]: this.resellerRef,
|
|
343
|
-
[LicenseFields.COLUMN_SEAT]: this.seat,
|
|
344
|
-
[LicenseFields.COLUMN_SERVICE_REF]: this.serviceRef,
|
|
345
|
-
[LicenseFields.COLUMN_SKU]: this.sku,
|
|
346
|
-
[LicenseFields.COLUMN_START_DATE]: this.startDate,
|
|
347
|
-
[LicenseFields.COLUMN_STATUS_CODE]: this.statusCode,
|
|
348
|
-
[LicenseFields.COLUMN_STATUS_LABEL]: this.statusLabel,
|
|
349
|
-
[LicenseFields.COLUMN_SUBSCRIPTION_ID]: this.subscriptionId,
|
|
350
|
-
[LicenseFields.COLUMN_SUBSIDIARY_NAME]: this.subsidiaryName,
|
|
351
|
-
[LicenseFields.COLUMN_TERM]: this.term,
|
|
352
|
-
[LicenseFields.COLUMN_TRIAL]: this.isTrial(),
|
|
353
|
-
[LicenseFields.COLUMN_TYPE]: this.type,
|
|
354
|
-
[LicenseFields.COLUMN_UOM]: this.uom,
|
|
355
|
-
[LicenseFields.COLUMN_VENDOR_CODE]: this.vendorCode,
|
|
356
|
-
[LicenseFields.COLUMN_VENDOR_NAME]: this.vendorName,
|
|
357
|
-
[LicenseFields.COLUMN_VENDOR_SUBSCRIPTION_ID]: this.vendorSubscriptionId,
|
|
358
|
-
};
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
exports.AbstractLicense = AbstractLicense;
|
|
362
|
-
_acceptEula = new WeakMap(), _activeSeatsLastUpdate = new WeakMap(), _activeSeatsNumber = new WeakMap(), _autoRenew = new WeakMap(), _baseSeat = new WeakMap(), _buyPrice = new WeakMap(), _category = new WeakMap(), _classification = new WeakMap(), _currency = new WeakMap(), _customerName = new WeakMap(), _customerRef = new WeakMap(), _endDate = new WeakMap(), _friendlyName = new WeakMap(), _id = new WeakMap(), _enabled = new WeakMap(), _lastUpdate = new WeakMap(), _listPrice = new WeakMap(), _marketplace = new WeakMap(), _message = new WeakMap(), _offer = new WeakMap(), _parentLineId = new WeakMap(), _parentOrderRef = new WeakMap(), _partnerRef = new WeakMap(), _periodicity = new WeakMap(), _resellerName = new WeakMap(), _resellerRef = new WeakMap(), _seat = new WeakMap(), _serviceRef = new WeakMap(), _sku = new WeakMap(), _startDate = new WeakMap(), _statusCode = new WeakMap(), _statusLabel = new WeakMap(), _subscriptionId = new WeakMap(), _subsidiaryName = new WeakMap(), _term = new WeakMap(), _trial = new WeakMap(), _type = new WeakMap(), _uom = new WeakMap(), _vendorCode = new WeakMap(), _vendorName = new WeakMap(), _vendorSubscriptionId = new WeakMap();
|
|
363
|
-
//# sourceMappingURL=abstractLicense.js.map
|