@arrowsphere/api-client 1.0.2 → 2.1.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 +72 -3
- 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/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 +20 -3
- package/build/licenses/index.js +20 -3
- package/build/licenses/licensesClient.d.ts +94 -22
- package/build/licenses/licensesClient.js +90 -6
- 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
|
@@ -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
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
-
/**
|
|
3
|
-
* Fields that can be present in License offer response.
|
|
4
|
-
*/
|
|
5
|
-
export declare enum LicenseOfferFields {
|
|
6
|
-
COLUMN_ACTION_FLAGS = "actionFlags",
|
|
7
|
-
COLUMN_BILLING = "billing",
|
|
8
|
-
COLUMN_BUY = "buy",
|
|
9
|
-
COLUMN_MARKETPLACE = "marketplace",
|
|
10
|
-
COLUMN_CAN_BE_CANCELLED = "canBeCancelled",
|
|
11
|
-
COLUMN_CAN_BE_REACTIVATED = "canBeReactivated",
|
|
12
|
-
COLUMN_CAN_BE_SUSPENDED = "canBeSuspended",
|
|
13
|
-
COLUMN_CAN_DECREASE_SEATS = "canDecreaseSeats",
|
|
14
|
-
COLUMN_CAN_INCREASE_SEATS = "canIncreaseSeats",
|
|
15
|
-
COLUMN_CURRENCY = "currency",
|
|
16
|
-
COLUMN_CYCLE = "cycle",
|
|
17
|
-
COLUMN_IS_AUTO_RENEW = "isAutoRenew",
|
|
18
|
-
COLUMN_IS_ENABLED = "isEnabled",
|
|
19
|
-
COLUMN_IS_MANUAL_PROVISIONING = "isManualProvisioning",
|
|
20
|
-
COLUMN_LAST_UPDATE = "lastUpdate",
|
|
21
|
-
COLUMN_NAME = "name",
|
|
22
|
-
COLUMN_PRICE_BAND = "priceBand",
|
|
23
|
-
COLUMN_PRICES = "prices",
|
|
24
|
-
COLUMN_PUBLIC = "public",
|
|
25
|
-
COLUMN_SELL = "sell",
|
|
26
|
-
COLUMN_TYPE = "type",
|
|
27
|
-
COLUMN_TERM = "term"
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* License data fields and their corresponding types
|
|
31
|
-
*/
|
|
32
|
-
export declare type LicenseOfferFindResultData = {
|
|
33
|
-
[LicenseOfferFields.COLUMN_ACTION_FLAGS]: {
|
|
34
|
-
[LicenseOfferFields.COLUMN_IS_AUTO_RENEW]: boolean;
|
|
35
|
-
[LicenseOfferFields.COLUMN_IS_MANUAL_PROVISIONING]: boolean;
|
|
36
|
-
};
|
|
37
|
-
[LicenseOfferFields.COLUMN_IS_ENABLED]: boolean;
|
|
38
|
-
[LicenseOfferFields.COLUMN_LAST_UPDATE]: string;
|
|
39
|
-
[LicenseOfferFields.COLUMN_NAME]: string;
|
|
40
|
-
[LicenseOfferFields.COLUMN_PRICE_BAND]: {
|
|
41
|
-
[LicenseOfferFields.COLUMN_ACTION_FLAGS]: {
|
|
42
|
-
[LicenseOfferFields.COLUMN_CAN_BE_CANCELLED]: boolean;
|
|
43
|
-
[LicenseOfferFields.COLUMN_CAN_BE_REACTIVATED]: boolean;
|
|
44
|
-
[LicenseOfferFields.COLUMN_CAN_BE_SUSPENDED]: boolean;
|
|
45
|
-
[LicenseOfferFields.COLUMN_CAN_DECREASE_SEATS]: boolean;
|
|
46
|
-
[LicenseOfferFields.COLUMN_CAN_INCREASE_SEATS]: boolean;
|
|
47
|
-
};
|
|
48
|
-
[LicenseOfferFields.COLUMN_MARKETPLACE]: string;
|
|
49
|
-
[LicenseOfferFields.COLUMN_IS_ENABLED]: boolean;
|
|
50
|
-
[LicenseOfferFields.COLUMN_CURRENCY]: string;
|
|
51
|
-
[LicenseOfferFields.COLUMN_PRICES]: {
|
|
52
|
-
[LicenseOfferFields.COLUMN_PUBLIC]: number;
|
|
53
|
-
[LicenseOfferFields.COLUMN_BUY]: number;
|
|
54
|
-
[LicenseOfferFields.COLUMN_SELL]: number;
|
|
55
|
-
};
|
|
56
|
-
[LicenseOfferFields.COLUMN_BILLING]: {
|
|
57
|
-
[LicenseOfferFields.COLUMN_TERM]: number;
|
|
58
|
-
[LicenseOfferFields.COLUMN_TYPE]: string;
|
|
59
|
-
[LicenseOfferFields.COLUMN_CYCLE]: number;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* Class of a License Offer entity.
|
|
65
|
-
*/
|
|
66
|
-
export declare class LicenseOfferFindResult extends AbstractEntity<LicenseOfferFindResultData> {
|
|
67
|
-
#private;
|
|
68
|
-
protected VALIDATION_RULES: {
|
|
69
|
-
[x: string]: string;
|
|
70
|
-
isEnabled: string;
|
|
71
|
-
lastUpdate: string;
|
|
72
|
-
name: string;
|
|
73
|
-
actionFlags: string;
|
|
74
|
-
priceBand: string;
|
|
75
|
-
marketplace: string;
|
|
76
|
-
currency: string;
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* LicenseOfferFindResult constructor.
|
|
80
|
-
*
|
|
81
|
-
* @param data - License offer data to construct the entity with.
|
|
82
|
-
*/
|
|
83
|
-
constructor(data: LicenseOfferFindResultData);
|
|
84
|
-
get isAutoRenew(): boolean;
|
|
85
|
-
get isManualProvisioning(): boolean;
|
|
86
|
-
get isEnabled(): boolean;
|
|
87
|
-
get lastUpdate(): string;
|
|
88
|
-
get name(): string;
|
|
89
|
-
get priceBandCanIncreaseSeats(): boolean;
|
|
90
|
-
get priceBandCanBeCancelled(): boolean;
|
|
91
|
-
get priceBandCanBeReactivated(): boolean;
|
|
92
|
-
get priceBandCanDecreaseSeats(): boolean;
|
|
93
|
-
get priceBandCanBeSuspended(): boolean;
|
|
94
|
-
get priceBandMarketplace(): string;
|
|
95
|
-
get priceBandIsEnabled(): boolean;
|
|
96
|
-
get priceBandCurrency(): string;
|
|
97
|
-
get priceBandPricePublic(): number;
|
|
98
|
-
get priceBandPriceBuy(): number;
|
|
99
|
-
get priceBandPriceSell(): number;
|
|
100
|
-
get priceBandBillingTerm(): number;
|
|
101
|
-
get priceBandBillingType(): string;
|
|
102
|
-
get priceBandBillingCycle(): number;
|
|
103
|
-
/**
|
|
104
|
-
* Plain JSON object representation of the license entity.
|
|
105
|
-
* @returns {@link LicenseData}
|
|
106
|
-
*/
|
|
107
|
-
toJSON(): LicenseOfferFindResultData;
|
|
108
|
-
}
|