@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
|
@@ -0,0 +1,244 @@
|
|
|
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 _license_id, _parent_license_id, _friendlyName, _customer_ref, _state, _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;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.LicenseGetResult = exports.LicenseGetFields = void 0;
|
|
18
|
+
const actionsGetResult_1 = require("./actionsGetResult");
|
|
19
|
+
const orderGetResult_1 = require("./orderGetResult");
|
|
20
|
+
const licensePriceGetResult_1 = require("./licensePriceGetResult");
|
|
21
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
22
|
+
const activeSeatsFindResult_1 = require("../license/activeSeatsFindResult");
|
|
23
|
+
var LicenseGetFields;
|
|
24
|
+
(function (LicenseGetFields) {
|
|
25
|
+
LicenseGetFields["COLUMN_LICENSE_ID"] = "license_id";
|
|
26
|
+
LicenseGetFields["COLUMN_PARENT_LICENSE_ID"] = "parent_license_id";
|
|
27
|
+
LicenseGetFields["COLUMN_FRIENDLY_NAME"] = "friendlyName";
|
|
28
|
+
LicenseGetFields["COLUMN_CUSTOMER_REF"] = "customer_ref";
|
|
29
|
+
LicenseGetFields["COLUMN_STATE"] = "state";
|
|
30
|
+
LicenseGetFields["COLUMN_SERVICE_REF"] = "service_ref";
|
|
31
|
+
LicenseGetFields["COLUMN_SKU"] = "sku";
|
|
32
|
+
LicenseGetFields["COLUMN_NAME"] = "name";
|
|
33
|
+
LicenseGetFields["COLUMN_SEATS"] = "seats";
|
|
34
|
+
LicenseGetFields["COLUMN_ACTIVE_SEATS"] = "activeSeats";
|
|
35
|
+
LicenseGetFields["COLUMN_ACTIVATION_DATETIME"] = "activation_datetime";
|
|
36
|
+
LicenseGetFields["COLUMN_EXPIRY_DATETIME"] = "expiry_datetime";
|
|
37
|
+
LicenseGetFields["COLUMN_AUTO_RENEW"] = "autoRenew";
|
|
38
|
+
LicenseGetFields["COLUMN_MESSAGE"] = "message";
|
|
39
|
+
LicenseGetFields["COLUMN_ACTIONS"] = "actions";
|
|
40
|
+
LicenseGetFields["COLUMN_ACTION_MESSAGES"] = "actionMessages";
|
|
41
|
+
LicenseGetFields["COLUMN_ORDER_REFERENCE"] = "order_reference";
|
|
42
|
+
LicenseGetFields["COLUMN_ORDER"] = "order";
|
|
43
|
+
LicenseGetFields["COLUMN_VENDOR_LICENSE_ID"] = "vendor_license_id";
|
|
44
|
+
LicenseGetFields["COLUMN_PERIODICITY"] = "periodicity";
|
|
45
|
+
LicenseGetFields["COLUMN_TERM"] = "term";
|
|
46
|
+
LicenseGetFields["COLUMN_CATEGORY"] = "category";
|
|
47
|
+
LicenseGetFields["COLUMN_PROGRAM"] = "program";
|
|
48
|
+
LicenseGetFields["COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM"] = "associatedSubscriptionProgram";
|
|
49
|
+
LicenseGetFields["COLUMN_PRICE"] = "price";
|
|
50
|
+
LicenseGetFields["COLUMN_ARROW_SUB_CATEGORIES"] = "arrowSubCategories";
|
|
51
|
+
})(LicenseGetFields = exports.LicenseGetFields || (exports.LicenseGetFields = {}));
|
|
52
|
+
class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
53
|
+
constructor(data) {
|
|
54
|
+
super(data);
|
|
55
|
+
_license_id.set(this, void 0);
|
|
56
|
+
_parent_license_id.set(this, void 0);
|
|
57
|
+
_friendlyName.set(this, void 0);
|
|
58
|
+
_customer_ref.set(this, void 0);
|
|
59
|
+
_state.set(this, void 0);
|
|
60
|
+
_service_ref.set(this, void 0);
|
|
61
|
+
_sku.set(this, void 0);
|
|
62
|
+
_name.set(this, void 0);
|
|
63
|
+
_seats.set(this, void 0);
|
|
64
|
+
_activeSeats.set(this, void 0);
|
|
65
|
+
_activation_datetime.set(this, void 0);
|
|
66
|
+
_expiry_datetime.set(this, void 0);
|
|
67
|
+
_autoRenew.set(this, void 0);
|
|
68
|
+
_message.set(this, void 0);
|
|
69
|
+
_actions.set(this, void 0);
|
|
70
|
+
_actionMessages.set(this, void 0);
|
|
71
|
+
_order_reference.set(this, void 0);
|
|
72
|
+
_order.set(this, void 0);
|
|
73
|
+
_vendor_license_id.set(this, void 0);
|
|
74
|
+
_periodicity.set(this, void 0);
|
|
75
|
+
_term.set(this, void 0);
|
|
76
|
+
_category.set(this, void 0);
|
|
77
|
+
_program.set(this, void 0);
|
|
78
|
+
_associatedSubscriptionProgram.set(this, void 0);
|
|
79
|
+
_price.set(this, void 0);
|
|
80
|
+
_arrowSubCategories.set(this, void 0);
|
|
81
|
+
__classPrivateFieldSet(this, _license_id, data[LicenseGetFields.COLUMN_LICENSE_ID]);
|
|
82
|
+
__classPrivateFieldSet(this, _parent_license_id, data[LicenseGetFields.COLUMN_PARENT_LICENSE_ID]);
|
|
83
|
+
__classPrivateFieldSet(this, _friendlyName, data[LicenseGetFields.COLUMN_FRIENDLY_NAME]);
|
|
84
|
+
__classPrivateFieldSet(this, _customer_ref, data[LicenseGetFields.COLUMN_CUSTOMER_REF]);
|
|
85
|
+
__classPrivateFieldSet(this, _state, data[LicenseGetFields.COLUMN_STATE]);
|
|
86
|
+
__classPrivateFieldSet(this, _service_ref, data[LicenseGetFields.COLUMN_SERVICE_REF]);
|
|
87
|
+
__classPrivateFieldSet(this, _sku, data[LicenseGetFields.COLUMN_SKU]);
|
|
88
|
+
__classPrivateFieldSet(this, _name, data[LicenseGetFields.COLUMN_NAME]);
|
|
89
|
+
__classPrivateFieldSet(this, _seats, data[LicenseGetFields.COLUMN_SEATS]);
|
|
90
|
+
const activeSeats = {
|
|
91
|
+
[activeSeatsFindResult_1.ActiveSeatsFindResultFields.COLUMN_NUMBER]: data[LicenseGetFields.COLUMN_ACTIVE_SEATS][activeSeatsFindResult_1.ActiveSeatsFindResultFields.COLUMN_NUMBER],
|
|
92
|
+
[activeSeatsFindResult_1.ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE]: data[LicenseGetFields.COLUMN_ACTIVE_SEATS][activeSeatsFindResult_1.ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE],
|
|
93
|
+
};
|
|
94
|
+
__classPrivateFieldSet(this, _activeSeats, new activeSeatsFindResult_1.ActiveSeatsFindResult(activeSeats));
|
|
95
|
+
__classPrivateFieldSet(this, _activation_datetime, data[LicenseGetFields.COLUMN_ACTIVATION_DATETIME]);
|
|
96
|
+
__classPrivateFieldSet(this, _expiry_datetime, data[LicenseGetFields.COLUMN_EXPIRY_DATETIME]);
|
|
97
|
+
__classPrivateFieldSet(this, _autoRenew, data[LicenseGetFields.COLUMN_AUTO_RENEW]);
|
|
98
|
+
__classPrivateFieldSet(this, _message, data[LicenseGetFields.COLUMN_MESSAGE]);
|
|
99
|
+
const actions = {
|
|
100
|
+
[actionsGetResult_1.ActionsGetFields.COLUMN_HISTORY]: data[LicenseGetFields.COLUMN_ACTIONS][actionsGetResult_1.ActionsGetFields.COLUMN_HISTORY],
|
|
101
|
+
[actionsGetResult_1.ActionsGetFields.COLUMN_UPDATE]: data[LicenseGetFields.COLUMN_ACTIONS][actionsGetResult_1.ActionsGetFields.COLUMN_UPDATE],
|
|
102
|
+
[actionsGetResult_1.ActionsGetFields.COLUMN_INCREASE_SEATS]: data[LicenseGetFields.COLUMN_ACTIONS][actionsGetResult_1.ActionsGetFields.COLUMN_INCREASE_SEATS],
|
|
103
|
+
[actionsGetResult_1.ActionsGetFields.COLUMN_DECREASE_SEATS]: data[LicenseGetFields.COLUMN_ACTIONS][actionsGetResult_1.ActionsGetFields.COLUMN_DECREASE_SEATS],
|
|
104
|
+
[actionsGetResult_1.ActionsGetFields.COLUMN_ADDONS_CATALOG]: data[LicenseGetFields.COLUMN_ACTIONS][actionsGetResult_1.ActionsGetFields.COLUMN_ADDONS_CATALOG],
|
|
105
|
+
[actionsGetResult_1.ActionsGetFields.COLUMN_SUSPEND]: data[LicenseGetFields.COLUMN_ACTIONS][actionsGetResult_1.ActionsGetFields.COLUMN_SUSPEND],
|
|
106
|
+
[actionsGetResult_1.ActionsGetFields.COLUMN_REACTIVATE]: data[LicenseGetFields.COLUMN_ACTIONS][actionsGetResult_1.ActionsGetFields.COLUMN_REACTIVATE],
|
|
107
|
+
[actionsGetResult_1.ActionsGetFields.COLUMN_AUTO_RENEW_OFF]: data[LicenseGetFields.COLUMN_ACTIONS][actionsGetResult_1.ActionsGetFields.COLUMN_AUTO_RENEW_OFF],
|
|
108
|
+
[actionsGetResult_1.ActionsGetFields.COLUMN_AUTO_RENEW_ON]: data[LicenseGetFields.COLUMN_ACTIONS][actionsGetResult_1.ActionsGetFields.COLUMN_AUTO_RENEW_ON],
|
|
109
|
+
[actionsGetResult_1.ActionsGetFields.COLUMN_CANCEL]: data[LicenseGetFields.COLUMN_ACTIONS][actionsGetResult_1.ActionsGetFields.COLUMN_CANCEL],
|
|
110
|
+
};
|
|
111
|
+
__classPrivateFieldSet(this, _actions, new actionsGetResult_1.ActionsGetResult(actions));
|
|
112
|
+
__classPrivateFieldSet(this, _actionMessages, data[LicenseGetFields.COLUMN_ACTION_MESSAGES]);
|
|
113
|
+
const order = {
|
|
114
|
+
[orderGetResult_1.OrderGetFields.COLUMN_REFERENCE]: data[LicenseGetFields.COLUMN_ORDER][orderGetResult_1.OrderGetFields.COLUMN_REFERENCE],
|
|
115
|
+
[orderGetResult_1.OrderGetFields.COLUMN_LINK]: data[LicenseGetFields.COLUMN_ORDER][orderGetResult_1.OrderGetFields.COLUMN_LINK],
|
|
116
|
+
};
|
|
117
|
+
__classPrivateFieldSet(this, _order_reference, data[LicenseGetFields.COLUMN_ORDER_REFERENCE]);
|
|
118
|
+
__classPrivateFieldSet(this, _order, new orderGetResult_1.OrderGetResult(order));
|
|
119
|
+
__classPrivateFieldSet(this, _vendor_license_id, data[LicenseGetFields.COLUMN_VENDOR_LICENSE_ID]);
|
|
120
|
+
__classPrivateFieldSet(this, _periodicity, data[LicenseGetFields.COLUMN_PERIODICITY]);
|
|
121
|
+
__classPrivateFieldSet(this, _term, data[LicenseGetFields.COLUMN_TERM]);
|
|
122
|
+
__classPrivateFieldSet(this, _category, data[LicenseGetFields.COLUMN_CATEGORY]);
|
|
123
|
+
__classPrivateFieldSet(this, _program, data[LicenseGetFields.COLUMN_PROGRAM]);
|
|
124
|
+
__classPrivateFieldSet(this, _associatedSubscriptionProgram, data[LicenseGetFields.COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM]);
|
|
125
|
+
const price = {
|
|
126
|
+
[licensePriceGetResult_1.LicensePriceGetFields.COLUMN_UNIT]: data[LicenseGetFields.COLUMN_PRICE][licensePriceGetResult_1.LicensePriceGetFields.COLUMN_UNIT],
|
|
127
|
+
[licensePriceGetResult_1.LicensePriceGetFields.COLUMN_TOTAL]: data[LicenseGetFields.COLUMN_PRICE][licensePriceGetResult_1.LicensePriceGetFields.COLUMN_TOTAL],
|
|
128
|
+
};
|
|
129
|
+
__classPrivateFieldSet(this, _price, new licensePriceGetResult_1.LicensePriceGetResult(price));
|
|
130
|
+
__classPrivateFieldSet(this, _arrowSubCategories, data[LicenseGetFields.COLUMN_ARROW_SUB_CATEGORIES]);
|
|
131
|
+
}
|
|
132
|
+
get id() {
|
|
133
|
+
return __classPrivateFieldGet(this, _license_id);
|
|
134
|
+
}
|
|
135
|
+
get parentLicenseId() {
|
|
136
|
+
return __classPrivateFieldGet(this, _parent_license_id);
|
|
137
|
+
}
|
|
138
|
+
get friendlyName() {
|
|
139
|
+
return __classPrivateFieldGet(this, _friendlyName);
|
|
140
|
+
}
|
|
141
|
+
get customerRef() {
|
|
142
|
+
return __classPrivateFieldGet(this, _customer_ref);
|
|
143
|
+
}
|
|
144
|
+
get state() {
|
|
145
|
+
return __classPrivateFieldGet(this, _state);
|
|
146
|
+
}
|
|
147
|
+
get serviceRef() {
|
|
148
|
+
return __classPrivateFieldGet(this, _service_ref);
|
|
149
|
+
}
|
|
150
|
+
get sku() {
|
|
151
|
+
return __classPrivateFieldGet(this, _sku);
|
|
152
|
+
}
|
|
153
|
+
get name() {
|
|
154
|
+
return __classPrivateFieldGet(this, _name);
|
|
155
|
+
}
|
|
156
|
+
get seats() {
|
|
157
|
+
return __classPrivateFieldGet(this, _seats);
|
|
158
|
+
}
|
|
159
|
+
get activeSeats() {
|
|
160
|
+
return __classPrivateFieldGet(this, _activeSeats);
|
|
161
|
+
}
|
|
162
|
+
get activationDatetime() {
|
|
163
|
+
return __classPrivateFieldGet(this, _activation_datetime);
|
|
164
|
+
}
|
|
165
|
+
get expiryDatetime() {
|
|
166
|
+
return __classPrivateFieldGet(this, _expiry_datetime);
|
|
167
|
+
}
|
|
168
|
+
get autoRenew() {
|
|
169
|
+
return __classPrivateFieldGet(this, _autoRenew);
|
|
170
|
+
}
|
|
171
|
+
get message() {
|
|
172
|
+
return __classPrivateFieldGet(this, _message);
|
|
173
|
+
}
|
|
174
|
+
get actions() {
|
|
175
|
+
return __classPrivateFieldGet(this, _actions);
|
|
176
|
+
}
|
|
177
|
+
get actionMessages() {
|
|
178
|
+
return __classPrivateFieldGet(this, _actionMessages);
|
|
179
|
+
}
|
|
180
|
+
get orderReference() {
|
|
181
|
+
return __classPrivateFieldGet(this, _order_reference);
|
|
182
|
+
}
|
|
183
|
+
get order() {
|
|
184
|
+
return __classPrivateFieldGet(this, _order);
|
|
185
|
+
}
|
|
186
|
+
get vendorLicenseId() {
|
|
187
|
+
return __classPrivateFieldGet(this, _vendor_license_id);
|
|
188
|
+
}
|
|
189
|
+
get periodicity() {
|
|
190
|
+
return __classPrivateFieldGet(this, _periodicity);
|
|
191
|
+
}
|
|
192
|
+
get term() {
|
|
193
|
+
return __classPrivateFieldGet(this, _term);
|
|
194
|
+
}
|
|
195
|
+
get category() {
|
|
196
|
+
return __classPrivateFieldGet(this, _category);
|
|
197
|
+
}
|
|
198
|
+
get program() {
|
|
199
|
+
return __classPrivateFieldGet(this, _program);
|
|
200
|
+
}
|
|
201
|
+
get associatedSubscriptionProgram() {
|
|
202
|
+
return __classPrivateFieldGet(this, _associatedSubscriptionProgram);
|
|
203
|
+
}
|
|
204
|
+
get price() {
|
|
205
|
+
return __classPrivateFieldGet(this, _price);
|
|
206
|
+
}
|
|
207
|
+
get arrowSubCategories() {
|
|
208
|
+
return __classPrivateFieldGet(this, _arrowSubCategories);
|
|
209
|
+
}
|
|
210
|
+
toJSON() {
|
|
211
|
+
return {
|
|
212
|
+
[LicenseGetFields.COLUMN_LICENSE_ID]: this.id,
|
|
213
|
+
[LicenseGetFields.COLUMN_PARENT_LICENSE_ID]: this.parentLicenseId,
|
|
214
|
+
[LicenseGetFields.COLUMN_FRIENDLY_NAME]: this.friendlyName,
|
|
215
|
+
[LicenseGetFields.COLUMN_CUSTOMER_REF]: this.customerRef,
|
|
216
|
+
[LicenseGetFields.COLUMN_STATE]: this.state,
|
|
217
|
+
[LicenseGetFields.COLUMN_SERVICE_REF]: this.serviceRef,
|
|
218
|
+
[LicenseGetFields.COLUMN_SKU]: this.sku,
|
|
219
|
+
[LicenseGetFields.COLUMN_NAME]: this.name,
|
|
220
|
+
[LicenseGetFields.COLUMN_SEATS]: this.seats,
|
|
221
|
+
[LicenseGetFields.COLUMN_ACTIVE_SEATS]: this.activeSeats.toJSON(),
|
|
222
|
+
[LicenseGetFields.COLUMN_ACTIVATION_DATETIME]: this.activationDatetime,
|
|
223
|
+
[LicenseGetFields.COLUMN_EXPIRY_DATETIME]: this.expiryDatetime,
|
|
224
|
+
[LicenseGetFields.COLUMN_AUTO_RENEW]: this.autoRenew,
|
|
225
|
+
[LicenseGetFields.COLUMN_MESSAGE]: this.message,
|
|
226
|
+
[LicenseGetFields.COLUMN_ACTIONS]: this.actions.toJSON(),
|
|
227
|
+
[LicenseGetFields.COLUMN_ACTION_MESSAGES]: this.actionMessages,
|
|
228
|
+
[LicenseGetFields.COLUMN_ORDER_REFERENCE]: this.orderReference,
|
|
229
|
+
[LicenseGetFields.COLUMN_ORDER]: this.order.toJSON(),
|
|
230
|
+
[LicenseGetFields.COLUMN_VENDOR_LICENSE_ID]: this.vendorLicenseId,
|
|
231
|
+
[LicenseGetFields.COLUMN_PERIODICITY]: this.periodicity,
|
|
232
|
+
[LicenseGetFields.COLUMN_TERM]: this.term,
|
|
233
|
+
[LicenseGetFields.COLUMN_CATEGORY]: this.category,
|
|
234
|
+
[LicenseGetFields.COLUMN_PROGRAM]: this.program,
|
|
235
|
+
[LicenseGetFields.COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM]: this
|
|
236
|
+
.associatedSubscriptionProgram,
|
|
237
|
+
[LicenseGetFields.COLUMN_PRICE]: this.price.toJSON(),
|
|
238
|
+
[LicenseGetFields.COLUMN_ARROW_SUB_CATEGORIES]: this.arrowSubCategories,
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
exports.LicenseGetResult = LicenseGetResult;
|
|
243
|
+
_license_id = new WeakMap(), _parent_license_id = new WeakMap(), _friendlyName = new WeakMap(), _customer_ref = new WeakMap(), _state = 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();
|
|
244
|
+
//# sourceMappingURL=licenseGetResult.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BuySellData, BuySellFindResult } from './buySellFindResult';
|
|
2
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
3
|
+
export declare enum LicensePriceGetFields {
|
|
4
|
+
COLUMN_UNIT = "unit",
|
|
5
|
+
COLUMN_TOTAL = "total"
|
|
6
|
+
}
|
|
7
|
+
export declare type LicensePriceGetData = {
|
|
8
|
+
[LicensePriceGetFields.COLUMN_UNIT]: BuySellData;
|
|
9
|
+
[LicensePriceGetFields.COLUMN_TOTAL]: BuySellData;
|
|
10
|
+
};
|
|
11
|
+
export declare class LicensePriceGetResult extends AbstractEntity<LicensePriceGetData> {
|
|
12
|
+
#private;
|
|
13
|
+
constructor(data: LicensePriceGetData);
|
|
14
|
+
get unit(): BuySellFindResult;
|
|
15
|
+
get total(): BuySellFindResult;
|
|
16
|
+
toJSON(): LicensePriceGetData;
|
|
17
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 _unit, _total;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.LicensePriceGetResult = exports.LicensePriceGetFields = void 0;
|
|
18
|
+
const buySellFindResult_1 = require("./buySellFindResult");
|
|
19
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
20
|
+
var LicensePriceGetFields;
|
|
21
|
+
(function (LicensePriceGetFields) {
|
|
22
|
+
LicensePriceGetFields["COLUMN_UNIT"] = "unit";
|
|
23
|
+
LicensePriceGetFields["COLUMN_TOTAL"] = "total";
|
|
24
|
+
})(LicensePriceGetFields = exports.LicensePriceGetFields || (exports.LicensePriceGetFields = {}));
|
|
25
|
+
class LicensePriceGetResult extends abstractEntity_1.AbstractEntity {
|
|
26
|
+
constructor(data) {
|
|
27
|
+
super(data);
|
|
28
|
+
_unit.set(this, void 0);
|
|
29
|
+
_total.set(this, void 0);
|
|
30
|
+
const unit = {
|
|
31
|
+
[buySellFindResult_1.BuySellFields.COLUMN_BUY]: data[LicensePriceGetFields.COLUMN_UNIT][buySellFindResult_1.BuySellFields.COLUMN_BUY],
|
|
32
|
+
[buySellFindResult_1.BuySellFields.COLUMN_SELL]: data[LicensePriceGetFields.COLUMN_UNIT][buySellFindResult_1.BuySellFields.COLUMN_SELL],
|
|
33
|
+
};
|
|
34
|
+
__classPrivateFieldSet(this, _unit, new buySellFindResult_1.BuySellFindResult(unit));
|
|
35
|
+
const total = {
|
|
36
|
+
[buySellFindResult_1.BuySellFields.COLUMN_BUY]: data[LicensePriceGetFields.COLUMN_TOTAL][buySellFindResult_1.BuySellFields.COLUMN_BUY],
|
|
37
|
+
[buySellFindResult_1.BuySellFields.COLUMN_SELL]: data[LicensePriceGetFields.COLUMN_TOTAL][buySellFindResult_1.BuySellFields.COLUMN_SELL],
|
|
38
|
+
};
|
|
39
|
+
__classPrivateFieldSet(this, _total, new buySellFindResult_1.BuySellFindResult(total));
|
|
40
|
+
}
|
|
41
|
+
get unit() {
|
|
42
|
+
return __classPrivateFieldGet(this, _unit);
|
|
43
|
+
}
|
|
44
|
+
get total() {
|
|
45
|
+
return __classPrivateFieldGet(this, _total);
|
|
46
|
+
}
|
|
47
|
+
toJSON() {
|
|
48
|
+
return {
|
|
49
|
+
[LicensePriceGetFields.COLUMN_UNIT]: this.unit.toJSON(),
|
|
50
|
+
[LicensePriceGetFields.COLUMN_TOTAL]: this.total.toJSON(),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.LicensePriceGetResult = LicensePriceGetResult;
|
|
55
|
+
_unit = new WeakMap(), _total = new WeakMap();
|
|
56
|
+
//# sourceMappingURL=licensePriceGetResult.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
export declare enum OrderGetFields {
|
|
3
|
+
COLUMN_REFERENCE = "reference",
|
|
4
|
+
COLUMN_LINK = "link"
|
|
5
|
+
}
|
|
6
|
+
export declare type OrderGetData = {
|
|
7
|
+
[OrderGetFields.COLUMN_REFERENCE]: string;
|
|
8
|
+
[OrderGetFields.COLUMN_LINK]: string;
|
|
9
|
+
};
|
|
10
|
+
export declare class OrderGetResult extends AbstractEntity<OrderGetData> {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(data: OrderGetData);
|
|
13
|
+
get reference(): string;
|
|
14
|
+
get link(): string;
|
|
15
|
+
toJSON(): OrderGetData;
|
|
16
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 _reference, _link;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.OrderGetResult = exports.OrderGetFields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
19
|
+
var OrderGetFields;
|
|
20
|
+
(function (OrderGetFields) {
|
|
21
|
+
OrderGetFields["COLUMN_REFERENCE"] = "reference";
|
|
22
|
+
OrderGetFields["COLUMN_LINK"] = "link";
|
|
23
|
+
})(OrderGetFields = exports.OrderGetFields || (exports.OrderGetFields = {}));
|
|
24
|
+
class OrderGetResult extends abstractEntity_1.AbstractEntity {
|
|
25
|
+
constructor(data) {
|
|
26
|
+
super(data);
|
|
27
|
+
_reference.set(this, void 0);
|
|
28
|
+
_link.set(this, void 0);
|
|
29
|
+
__classPrivateFieldSet(this, _reference, data[OrderGetFields.COLUMN_REFERENCE]);
|
|
30
|
+
__classPrivateFieldSet(this, _link, data[OrderGetFields.COLUMN_LINK]);
|
|
31
|
+
}
|
|
32
|
+
get reference() {
|
|
33
|
+
return __classPrivateFieldGet(this, _reference);
|
|
34
|
+
}
|
|
35
|
+
get link() {
|
|
36
|
+
return __classPrivateFieldGet(this, _link);
|
|
37
|
+
}
|
|
38
|
+
toJSON() {
|
|
39
|
+
return {
|
|
40
|
+
[OrderGetFields.COLUMN_REFERENCE]: this.reference,
|
|
41
|
+
[OrderGetFields.COLUMN_LINK]: this.link,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.OrderGetResult = OrderGetResult;
|
|
46
|
+
_reference = new WeakMap(), _link = new WeakMap();
|
|
47
|
+
//# sourceMappingURL=orderGetResult.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DataKeywords, FiltersParameters, SortParameters } from '../../licensesClient';
|
|
2
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
3
|
+
export declare enum ActiveSeatsFindResultFields {
|
|
4
|
+
COLUMN_LAST_UPDATE = "lastUpdate",
|
|
5
|
+
COLUMN_NUMBER = "number"
|
|
6
|
+
}
|
|
7
|
+
export declare type ActiveSeatsFindResultData = {
|
|
8
|
+
[ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE]?: string | null;
|
|
9
|
+
[ActiveSeatsFindResultFields.COLUMN_NUMBER]?: number | null;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated type, please use ActiveSeatsFindResultData instead
|
|
13
|
+
*/
|
|
14
|
+
export declare type ActiveSeatsFindresultData = ActiveSeatsFindResultData;
|
|
15
|
+
export declare type ActiveSeatsFindResultDataKeywords = {
|
|
16
|
+
[ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE]?: DataKeywords;
|
|
17
|
+
[ActiveSeatsFindResultFields.COLUMN_NUMBER]?: DataKeywords;
|
|
18
|
+
};
|
|
19
|
+
export declare type ActiveSeatsFindResultDataSortParameters = {
|
|
20
|
+
[ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE]?: SortParameters;
|
|
21
|
+
[ActiveSeatsFindResultFields.COLUMN_NUMBER]?: SortParameters;
|
|
22
|
+
};
|
|
23
|
+
export declare type ActiveSeatsFindResultDataFiltersParameters = {
|
|
24
|
+
[ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE]?: FiltersParameters;
|
|
25
|
+
[ActiveSeatsFindResultFields.COLUMN_NUMBER]?: FiltersParameters;
|
|
26
|
+
};
|
|
27
|
+
export declare class ActiveSeatsFindResult extends AbstractEntity<ActiveSeatsFindResultData> {
|
|
28
|
+
#private;
|
|
29
|
+
constructor(data: ActiveSeatsFindResultData);
|
|
30
|
+
get lastUpdate(): string | null | undefined;
|
|
31
|
+
get number(): number | null | undefined;
|
|
32
|
+
toJSON(): ActiveSeatsFindResultData;
|
|
33
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 _lastUpdate, _number;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ActiveSeatsFindResult = exports.ActiveSeatsFindResultFields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
19
|
+
var ActiveSeatsFindResultFields;
|
|
20
|
+
(function (ActiveSeatsFindResultFields) {
|
|
21
|
+
ActiveSeatsFindResultFields["COLUMN_LAST_UPDATE"] = "lastUpdate";
|
|
22
|
+
ActiveSeatsFindResultFields["COLUMN_NUMBER"] = "number";
|
|
23
|
+
})(ActiveSeatsFindResultFields = exports.ActiveSeatsFindResultFields || (exports.ActiveSeatsFindResultFields = {}));
|
|
24
|
+
class ActiveSeatsFindResult extends abstractEntity_1.AbstractEntity {
|
|
25
|
+
constructor(data) {
|
|
26
|
+
super(data);
|
|
27
|
+
_lastUpdate.set(this, void 0);
|
|
28
|
+
_number.set(this, void 0);
|
|
29
|
+
__classPrivateFieldSet(this, _lastUpdate, data[ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE]);
|
|
30
|
+
__classPrivateFieldSet(this, _number, data[ActiveSeatsFindResultFields.COLUMN_NUMBER]);
|
|
31
|
+
}
|
|
32
|
+
get lastUpdate() {
|
|
33
|
+
return __classPrivateFieldGet(this, _lastUpdate);
|
|
34
|
+
}
|
|
35
|
+
get number() {
|
|
36
|
+
return __classPrivateFieldGet(this, _number);
|
|
37
|
+
}
|
|
38
|
+
toJSON() {
|
|
39
|
+
return {
|
|
40
|
+
[ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE]: this.lastUpdate,
|
|
41
|
+
[ActiveSeatsFindResultFields.COLUMN_NUMBER]: this.number,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ActiveSeatsFindResult = ActiveSeatsFindResult;
|
|
46
|
+
_lastUpdate = new WeakMap(), _number = new WeakMap();
|
|
47
|
+
//# sourceMappingURL=activeSeatsFindResult.js.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DataKeywords, FiltersParameters, SortParameters } from '../../licensesClient';
|
|
2
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
3
|
+
import { Rules } from 'validatorjs';
|
|
4
|
+
export declare enum ConfigFindResultFields {
|
|
5
|
+
COLUMN_NAME = "name",
|
|
6
|
+
COLUMN_SCOPE = "scope",
|
|
7
|
+
COLUMN_STATE = "state"
|
|
8
|
+
}
|
|
9
|
+
export declare type ConfigFindResultData = {
|
|
10
|
+
[ConfigFindResultFields.COLUMN_NAME]: string | undefined;
|
|
11
|
+
[ConfigFindResultFields.COLUMN_SCOPE]: string | undefined;
|
|
12
|
+
[ConfigFindResultFields.COLUMN_STATE]: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export declare type ConfigFindResultDataKeywords = {
|
|
15
|
+
[ConfigFindResultFields.COLUMN_NAME]?: DataKeywords;
|
|
16
|
+
[ConfigFindResultFields.COLUMN_SCOPE]?: DataKeywords;
|
|
17
|
+
[ConfigFindResultFields.COLUMN_STATE]?: DataKeywords;
|
|
18
|
+
};
|
|
19
|
+
export declare type ConfigFindResultDataSortParameters = {
|
|
20
|
+
[ConfigFindResultFields.COLUMN_NAME]?: SortParameters;
|
|
21
|
+
[ConfigFindResultFields.COLUMN_SCOPE]?: SortParameters;
|
|
22
|
+
[ConfigFindResultFields.COLUMN_STATE]?: SortParameters;
|
|
23
|
+
};
|
|
24
|
+
export declare type ConfigFindResultDataFiltersParameters = {
|
|
25
|
+
[ConfigFindResultFields.COLUMN_NAME]?: FiltersParameters;
|
|
26
|
+
[ConfigFindResultFields.COLUMN_SCOPE]?: FiltersParameters;
|
|
27
|
+
[ConfigFindResultFields.COLUMN_STATE]?: FiltersParameters;
|
|
28
|
+
};
|
|
29
|
+
export declare class ConfigFindResult extends AbstractEntity<ConfigFindResultData> {
|
|
30
|
+
#private;
|
|
31
|
+
protected VALIDATION_RULES: Rules;
|
|
32
|
+
constructor(data: ConfigFindResultData);
|
|
33
|
+
get name(): string | undefined;
|
|
34
|
+
get scope(): string | undefined;
|
|
35
|
+
get state(): string | undefined;
|
|
36
|
+
toJSON(): ConfigFindResultData;
|
|
37
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 _name, _scope, _state;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ConfigFindResult = exports.ConfigFindResultFields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
19
|
+
var ConfigFindResultFields;
|
|
20
|
+
(function (ConfigFindResultFields) {
|
|
21
|
+
ConfigFindResultFields["COLUMN_NAME"] = "name";
|
|
22
|
+
ConfigFindResultFields["COLUMN_SCOPE"] = "scope";
|
|
23
|
+
ConfigFindResultFields["COLUMN_STATE"] = "state";
|
|
24
|
+
})(ConfigFindResultFields = exports.ConfigFindResultFields || (exports.ConfigFindResultFields = {}));
|
|
25
|
+
class ConfigFindResult extends abstractEntity_1.AbstractEntity {
|
|
26
|
+
constructor(data) {
|
|
27
|
+
super(data);
|
|
28
|
+
this.VALIDATION_RULES = {
|
|
29
|
+
[ConfigFindResultFields.COLUMN_NAME]: 'required|string',
|
|
30
|
+
[ConfigFindResultFields.COLUMN_SCOPE]: 'required|string',
|
|
31
|
+
[ConfigFindResultFields.COLUMN_STATE]: 'required|string',
|
|
32
|
+
};
|
|
33
|
+
_name.set(this, void 0);
|
|
34
|
+
_scope.set(this, void 0);
|
|
35
|
+
_state.set(this, void 0);
|
|
36
|
+
__classPrivateFieldSet(this, _name, data[ConfigFindResultFields.COLUMN_NAME]);
|
|
37
|
+
__classPrivateFieldSet(this, _scope, data[ConfigFindResultFields.COLUMN_SCOPE]);
|
|
38
|
+
__classPrivateFieldSet(this, _state, data[ConfigFindResultFields.COLUMN_STATE]);
|
|
39
|
+
}
|
|
40
|
+
get name() {
|
|
41
|
+
return __classPrivateFieldGet(this, _name);
|
|
42
|
+
}
|
|
43
|
+
get scope() {
|
|
44
|
+
return __classPrivateFieldGet(this, _scope);
|
|
45
|
+
}
|
|
46
|
+
get state() {
|
|
47
|
+
return __classPrivateFieldGet(this, _state);
|
|
48
|
+
}
|
|
49
|
+
toJSON() {
|
|
50
|
+
return {
|
|
51
|
+
[ConfigFindResultFields.COLUMN_NAME]: this.name,
|
|
52
|
+
[ConfigFindResultFields.COLUMN_SCOPE]: this.scope,
|
|
53
|
+
[ConfigFindResultFields.COLUMN_STATE]: this.state,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.ConfigFindResult = ConfigFindResult;
|
|
58
|
+
_name = new WeakMap(), _scope = new WeakMap(), _state = new WeakMap();
|
|
59
|
+
//# sourceMappingURL=configFindResult.js.map
|