@arrowsphere/api-client 1.0.1 → 2.0.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +70 -2
  2. package/UPGRADING.md +43 -0
  3. package/build/licenses/entities/filterFindResult.d.ts +2 -2
  4. package/build/licenses/entities/findResult.d.ts +17 -9
  5. package/build/licenses/entities/findResult.js +4 -4
  6. package/build/licenses/entities/license/activeSeatsFindResult.d.ts +29 -0
  7. package/build/licenses/entities/license/activeSeatsFindResult.js +47 -0
  8. package/build/licenses/entities/license/configFindResult.d.ts +37 -0
  9. package/build/licenses/entities/license/configFindResult.js +59 -0
  10. package/build/licenses/entities/license/licenseFindResult.d.ts +266 -13
  11. package/build/licenses/entities/license/licenseFindResult.js +324 -13
  12. package/build/licenses/entities/license/priceFindResult.d.ts +54 -0
  13. package/build/licenses/entities/license/priceFindResult.js +76 -0
  14. package/build/licenses/entities/license/warningFindResult.d.ts +33 -0
  15. package/build/licenses/entities/license/warningFindResult.js +51 -0
  16. package/build/licenses/entities/offer/actionFlagsFindResult.d.ts +37 -0
  17. package/build/licenses/entities/offer/actionFlagsFindResult.js +59 -0
  18. package/build/licenses/entities/offer/offerFindResult.d.ts +63 -0
  19. package/build/licenses/entities/offer/offerFindResult.js +109 -0
  20. package/build/licenses/entities/offer/priceBandFindResult.d.ts +72 -0
  21. package/build/licenses/entities/offer/priceBandFindResult.js +131 -0
  22. package/build/licenses/entities/offer/priceband/billingFindResult.d.ts +37 -0
  23. package/build/licenses/entities/offer/priceband/billingFindResult.js +59 -0
  24. package/build/licenses/entities/offer/priceband/identifiers/arrowsphereFindResult.d.ts +25 -0
  25. package/build/licenses/entities/offer/priceband/identifiers/arrowsphereFindResult.js +43 -0
  26. package/build/licenses/entities/offer/priceband/identifiersFindResult.d.ts +25 -0
  27. package/build/licenses/entities/offer/priceband/identifiersFindResult.js +47 -0
  28. package/build/licenses/entities/offer/priceband/priceBandActionFlagsFindResult.d.ts +49 -0
  29. package/build/licenses/entities/offer/priceband/priceBandActionFlagsFindResult.js +80 -0
  30. package/build/licenses/entities/offer/priceband/priceBandPriceFindResult.d.ts +37 -0
  31. package/build/licenses/entities/offer/priceband/priceBandPriceFindResult.js +59 -0
  32. package/build/licenses/entities/offer/priceband/saleConstraintsFindResult.d.ts +29 -0
  33. package/build/licenses/entities/offer/priceband/saleConstraintsFindResult.js +47 -0
  34. package/build/licenses/index.d.ts +14 -3
  35. package/build/licenses/index.js +14 -3
  36. package/build/licenses/licensesClient.d.ts +96 -18
  37. package/build/licenses/licensesClient.js +95 -3
  38. package/build/publicApiClient.js +3 -1
  39. package/package.json +2 -2
  40. package/build/licenses/entities/license/abstractLicense.d.ts +0 -177
  41. package/build/licenses/entities/license/abstractLicense.js +0 -363
  42. package/build/licenses/entities/offer/licenseOfferFindResult.d.ts +0 -108
  43. package/build/licenses/entities/offer/licenseOfferFindResult.js +0 -232
@@ -1,232 +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 _isAutoRenew, _isManualProvisioning, _isEnabled, _lastUpdate, _name, _priceBandCanIncreaseSeats, _priceBandCanBeCancelled, _priceBandCanBeReactivated, _priceBandCanDecreaseSeats, _priceBandCanBeSuspended, _priceBandMarketplace, _priceBandIsEnabled, _priceBandCurrency, _priceBandPricePublic, _priceBandPriceBuy, _priceBandPriceSell, _priceBandBillingTerm, _priceBandBillingType, _priceBandBillingCycle;
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.LicenseOfferFindResult = exports.LicenseOfferFields = void 0;
18
- const abstractEntity_1 = require("../../../abstractEntity");
19
- /**
20
- * Fields that can be present in License offer response.
21
- */
22
- var LicenseOfferFields;
23
- (function (LicenseOfferFields) {
24
- LicenseOfferFields["COLUMN_ACTION_FLAGS"] = "actionFlags";
25
- LicenseOfferFields["COLUMN_BILLING"] = "billing";
26
- LicenseOfferFields["COLUMN_BUY"] = "buy";
27
- LicenseOfferFields["COLUMN_MARKETPLACE"] = "marketplace";
28
- LicenseOfferFields["COLUMN_CAN_BE_CANCELLED"] = "canBeCancelled";
29
- LicenseOfferFields["COLUMN_CAN_BE_REACTIVATED"] = "canBeReactivated";
30
- LicenseOfferFields["COLUMN_CAN_BE_SUSPENDED"] = "canBeSuspended";
31
- LicenseOfferFields["COLUMN_CAN_DECREASE_SEATS"] = "canDecreaseSeats";
32
- LicenseOfferFields["COLUMN_CAN_INCREASE_SEATS"] = "canIncreaseSeats";
33
- LicenseOfferFields["COLUMN_CURRENCY"] = "currency";
34
- LicenseOfferFields["COLUMN_CYCLE"] = "cycle";
35
- LicenseOfferFields["COLUMN_IS_AUTO_RENEW"] = "isAutoRenew";
36
- LicenseOfferFields["COLUMN_IS_ENABLED"] = "isEnabled";
37
- LicenseOfferFields["COLUMN_IS_MANUAL_PROVISIONING"] = "isManualProvisioning";
38
- LicenseOfferFields["COLUMN_LAST_UPDATE"] = "lastUpdate";
39
- LicenseOfferFields["COLUMN_NAME"] = "name";
40
- LicenseOfferFields["COLUMN_PRICE_BAND"] = "priceBand";
41
- LicenseOfferFields["COLUMN_PRICES"] = "prices";
42
- LicenseOfferFields["COLUMN_PUBLIC"] = "public";
43
- LicenseOfferFields["COLUMN_SELL"] = "sell";
44
- LicenseOfferFields["COLUMN_TYPE"] = "type";
45
- LicenseOfferFields["COLUMN_TERM"] = "term";
46
- })(LicenseOfferFields = exports.LicenseOfferFields || (exports.LicenseOfferFields = {}));
47
- /**
48
- * Class of a License Offer entity.
49
- */
50
- class LicenseOfferFindResult extends abstractEntity_1.AbstractEntity {
51
- /**
52
- * LicenseOfferFindResult constructor.
53
- *
54
- * @param data - License offer data to construct the entity with.
55
- */
56
- constructor(data) {
57
- super(data);
58
- this.VALIDATION_RULES = {
59
- // General
60
- [LicenseOfferFields.COLUMN_IS_ENABLED]: 'required|boolean',
61
- [LicenseOfferFields.COLUMN_LAST_UPDATE]: 'required',
62
- [LicenseOfferFields.COLUMN_NAME]: 'required',
63
- // Action flags
64
- [LicenseOfferFields.COLUMN_ACTION_FLAGS]: 'required|object',
65
- [`${LicenseOfferFields.COLUMN_ACTION_FLAGS}.${LicenseOfferFields.COLUMN_IS_AUTO_RENEW}`]: 'required|boolean',
66
- [`${LicenseOfferFields.COLUMN_ACTION_FLAGS}.${LicenseOfferFields.COLUMN_IS_MANUAL_PROVISIONING}`]: 'required|boolean',
67
- // Price band
68
- [LicenseOfferFields.COLUMN_PRICE_BAND]: 'required|object',
69
- [LicenseOfferFields.COLUMN_MARKETPLACE]: 'required',
70
- [LicenseOfferFields.COLUMN_IS_ENABLED]: 'required|boolean',
71
- [LicenseOfferFields.COLUMN_CURRENCY]: 'required',
72
- // Price band action flags
73
- [`${LicenseOfferFields.COLUMN_PRICE_BAND}.${LicenseOfferFields.COLUMN_ACTION_FLAGS}`]: 'required|object',
74
- [`${LicenseOfferFields.COLUMN_PRICE_BAND}.${LicenseOfferFields.COLUMN_ACTION_FLAGS}.${LicenseOfferFields.COLUMN_CAN_BE_CANCELLED}`]: 'required|object',
75
- [`${LicenseOfferFields.COLUMN_PRICE_BAND}.${LicenseOfferFields.COLUMN_ACTION_FLAGS}.${LicenseOfferFields.COLUMN_CAN_BE_REACTIVATED}`]: 'required|object',
76
- [`${LicenseOfferFields.COLUMN_PRICE_BAND}.${LicenseOfferFields.COLUMN_ACTION_FLAGS}.${LicenseOfferFields.COLUMN_CAN_BE_SUSPENDED}`]: 'required|object',
77
- [`${LicenseOfferFields.COLUMN_PRICE_BAND}.${LicenseOfferFields.COLUMN_ACTION_FLAGS}.${LicenseOfferFields.COLUMN_CAN_DECREASE_SEATS}`]: 'required|object',
78
- [`${LicenseOfferFields.COLUMN_PRICE_BAND}.${LicenseOfferFields.COLUMN_ACTION_FLAGS}.${LicenseOfferFields.COLUMN_CAN_INCREASE_SEATS}`]: 'required|object',
79
- // Price band prices
80
- [`${LicenseOfferFields.COLUMN_PRICE_BAND}.${LicenseOfferFields.COLUMN_PRICES}`]: 'required|object',
81
- [`${LicenseOfferFields.COLUMN_PRICE_BAND}.${LicenseOfferFields.COLUMN_PRICES}.${LicenseOfferFields.COLUMN_PUBLIC}`]: 'required|numeric',
82
- [`${LicenseOfferFields.COLUMN_PRICE_BAND}.${LicenseOfferFields.COLUMN_PRICES}.${LicenseOfferFields.COLUMN_BUY}`]: 'required|numeric',
83
- [`${LicenseOfferFields.COLUMN_PRICE_BAND}.${LicenseOfferFields.COLUMN_PRICES}.${LicenseOfferFields.COLUMN_SELL}`]: 'required|numeric',
84
- // Price band billing
85
- [`${LicenseOfferFields.COLUMN_PRICE_BAND}.${LicenseOfferFields.COLUMN_BILLING}`]: 'required|object',
86
- [`${LicenseOfferFields.COLUMN_PRICE_BAND}.${LicenseOfferFields.COLUMN_BILLING}.${LicenseOfferFields.COLUMN_TERM}`]: 'required|numeric',
87
- [`${LicenseOfferFields.COLUMN_PRICE_BAND}.${LicenseOfferFields.COLUMN_BILLING}.${LicenseOfferFields.COLUMN_TYPE}`]: 'required',
88
- [`${LicenseOfferFields.COLUMN_PRICE_BAND}.${LicenseOfferFields.COLUMN_BILLING}.${LicenseOfferFields.COLUMN_CYCLE}`]: 'required|numeric',
89
- };
90
- _isAutoRenew.set(this, void 0);
91
- _isManualProvisioning.set(this, void 0);
92
- _isEnabled.set(this, void 0);
93
- _lastUpdate.set(this, void 0);
94
- _name.set(this, void 0);
95
- _priceBandCanIncreaseSeats.set(this, void 0);
96
- _priceBandCanBeCancelled.set(this, void 0);
97
- _priceBandCanBeReactivated.set(this, void 0);
98
- _priceBandCanDecreaseSeats.set(this, void 0);
99
- _priceBandCanBeSuspended.set(this, void 0);
100
- _priceBandMarketplace.set(this, void 0);
101
- _priceBandIsEnabled.set(this, void 0);
102
- _priceBandCurrency.set(this, void 0);
103
- _priceBandPricePublic.set(this, void 0);
104
- _priceBandPriceBuy.set(this, void 0);
105
- _priceBandPriceSell.set(this, void 0);
106
- _priceBandBillingTerm.set(this, void 0);
107
- _priceBandBillingType.set(this, void 0);
108
- _priceBandBillingCycle.set(this, void 0);
109
- __classPrivateFieldSet(this, _isAutoRenew, data[LicenseOfferFields.COLUMN_ACTION_FLAGS][LicenseOfferFields.COLUMN_IS_AUTO_RENEW]);
110
- __classPrivateFieldSet(this, _isManualProvisioning, data[LicenseOfferFields.COLUMN_ACTION_FLAGS][LicenseOfferFields.COLUMN_IS_MANUAL_PROVISIONING]);
111
- __classPrivateFieldSet(this, _isEnabled, data[LicenseOfferFields.COLUMN_IS_ENABLED]);
112
- __classPrivateFieldSet(this, _lastUpdate, data[LicenseOfferFields.COLUMN_LAST_UPDATE]);
113
- __classPrivateFieldSet(this, _name, data[LicenseOfferFields.COLUMN_NAME]);
114
- __classPrivateFieldSet(this, _priceBandCanIncreaseSeats, data[LicenseOfferFields.COLUMN_PRICE_BAND][LicenseOfferFields.COLUMN_ACTION_FLAGS][LicenseOfferFields.COLUMN_CAN_INCREASE_SEATS]);
115
- __classPrivateFieldSet(this, _priceBandCanBeCancelled, data[LicenseOfferFields.COLUMN_PRICE_BAND][LicenseOfferFields.COLUMN_ACTION_FLAGS][LicenseOfferFields.COLUMN_CAN_BE_CANCELLED]);
116
- __classPrivateFieldSet(this, _priceBandCanBeReactivated, data[LicenseOfferFields.COLUMN_PRICE_BAND][LicenseOfferFields.COLUMN_ACTION_FLAGS][LicenseOfferFields.COLUMN_CAN_BE_REACTIVATED]);
117
- __classPrivateFieldSet(this, _priceBandCanDecreaseSeats, data[LicenseOfferFields.COLUMN_PRICE_BAND][LicenseOfferFields.COLUMN_ACTION_FLAGS][LicenseOfferFields.COLUMN_CAN_DECREASE_SEATS]);
118
- __classPrivateFieldSet(this, _priceBandCanBeSuspended, data[LicenseOfferFields.COLUMN_PRICE_BAND][LicenseOfferFields.COLUMN_ACTION_FLAGS][LicenseOfferFields.COLUMN_CAN_BE_SUSPENDED]);
119
- __classPrivateFieldSet(this, _priceBandMarketplace, data[LicenseOfferFields.COLUMN_PRICE_BAND][LicenseOfferFields.COLUMN_MARKETPLACE]);
120
- __classPrivateFieldSet(this, _priceBandIsEnabled, data[LicenseOfferFields.COLUMN_PRICE_BAND][LicenseOfferFields.COLUMN_IS_ENABLED]);
121
- __classPrivateFieldSet(this, _priceBandCurrency, data[LicenseOfferFields.COLUMN_PRICE_BAND][LicenseOfferFields.COLUMN_CURRENCY]);
122
- __classPrivateFieldSet(this, _priceBandPricePublic, data[LicenseOfferFields.COLUMN_PRICE_BAND][LicenseOfferFields.COLUMN_PRICES][LicenseOfferFields.COLUMN_PUBLIC]);
123
- __classPrivateFieldSet(this, _priceBandPriceBuy, data[LicenseOfferFields.COLUMN_PRICE_BAND][LicenseOfferFields.COLUMN_PRICES][LicenseOfferFields.COLUMN_BUY]);
124
- __classPrivateFieldSet(this, _priceBandPriceSell, data[LicenseOfferFields.COLUMN_PRICE_BAND][LicenseOfferFields.COLUMN_PRICES][LicenseOfferFields.COLUMN_SELL]);
125
- __classPrivateFieldSet(this, _priceBandBillingTerm, data[LicenseOfferFields.COLUMN_PRICE_BAND][LicenseOfferFields.COLUMN_BILLING][LicenseOfferFields.COLUMN_TERM]);
126
- __classPrivateFieldSet(this, _priceBandBillingType, data[LicenseOfferFields.COLUMN_PRICE_BAND][LicenseOfferFields.COLUMN_BILLING][LicenseOfferFields.COLUMN_TYPE]);
127
- __classPrivateFieldSet(this, _priceBandBillingCycle, data[LicenseOfferFields.COLUMN_PRICE_BAND][LicenseOfferFields.COLUMN_BILLING][LicenseOfferFields.COLUMN_CYCLE]);
128
- }
129
- get isAutoRenew() {
130
- return __classPrivateFieldGet(this, _isAutoRenew);
131
- }
132
- get isManualProvisioning() {
133
- return __classPrivateFieldGet(this, _isManualProvisioning);
134
- }
135
- get isEnabled() {
136
- return __classPrivateFieldGet(this, _isEnabled);
137
- }
138
- get lastUpdate() {
139
- return __classPrivateFieldGet(this, _lastUpdate);
140
- }
141
- get name() {
142
- return __classPrivateFieldGet(this, _name);
143
- }
144
- get priceBandCanIncreaseSeats() {
145
- return __classPrivateFieldGet(this, _priceBandCanIncreaseSeats);
146
- }
147
- get priceBandCanBeCancelled() {
148
- return __classPrivateFieldGet(this, _priceBandCanBeCancelled);
149
- }
150
- get priceBandCanBeReactivated() {
151
- return __classPrivateFieldGet(this, _priceBandCanBeReactivated);
152
- }
153
- get priceBandCanDecreaseSeats() {
154
- return __classPrivateFieldGet(this, _priceBandCanDecreaseSeats);
155
- }
156
- get priceBandCanBeSuspended() {
157
- return __classPrivateFieldGet(this, _priceBandCanBeSuspended);
158
- }
159
- get priceBandMarketplace() {
160
- return __classPrivateFieldGet(this, _priceBandMarketplace);
161
- }
162
- get priceBandIsEnabled() {
163
- return __classPrivateFieldGet(this, _priceBandIsEnabled);
164
- }
165
- get priceBandCurrency() {
166
- return __classPrivateFieldGet(this, _priceBandCurrency);
167
- }
168
- get priceBandPricePublic() {
169
- return __classPrivateFieldGet(this, _priceBandPricePublic);
170
- }
171
- get priceBandPriceBuy() {
172
- return __classPrivateFieldGet(this, _priceBandPriceBuy);
173
- }
174
- get priceBandPriceSell() {
175
- return __classPrivateFieldGet(this, _priceBandPriceSell);
176
- }
177
- get priceBandBillingTerm() {
178
- return __classPrivateFieldGet(this, _priceBandBillingTerm);
179
- }
180
- get priceBandBillingType() {
181
- return __classPrivateFieldGet(this, _priceBandBillingType);
182
- }
183
- get priceBandBillingCycle() {
184
- return __classPrivateFieldGet(this, _priceBandBillingCycle);
185
- }
186
- /**
187
- * Plain JSON object representation of the license entity.
188
- * @returns {@link LicenseData}
189
- */
190
- toJSON() {
191
- return {
192
- [LicenseOfferFields.COLUMN_ACTION_FLAGS]: {
193
- [LicenseOfferFields.COLUMN_IS_AUTO_RENEW]: this.isAutoRenew,
194
- [LicenseOfferFields.COLUMN_IS_MANUAL_PROVISIONING]: this
195
- .isManualProvisioning,
196
- },
197
- [LicenseOfferFields.COLUMN_IS_ENABLED]: this.isEnabled,
198
- [LicenseOfferFields.COLUMN_LAST_UPDATE]: this.lastUpdate,
199
- [LicenseOfferFields.COLUMN_NAME]: this.name,
200
- [LicenseOfferFields.COLUMN_PRICE_BAND]: {
201
- [LicenseOfferFields.COLUMN_ACTION_FLAGS]: {
202
- [LicenseOfferFields.COLUMN_CAN_BE_CANCELLED]: this
203
- .priceBandCanBeCancelled,
204
- [LicenseOfferFields.COLUMN_CAN_BE_REACTIVATED]: this
205
- .priceBandCanBeReactivated,
206
- [LicenseOfferFields.COLUMN_CAN_BE_SUSPENDED]: this
207
- .priceBandCanBeSuspended,
208
- [LicenseOfferFields.COLUMN_CAN_DECREASE_SEATS]: this
209
- .priceBandCanDecreaseSeats,
210
- [LicenseOfferFields.COLUMN_CAN_INCREASE_SEATS]: this
211
- .priceBandCanIncreaseSeats,
212
- },
213
- [LicenseOfferFields.COLUMN_MARKETPLACE]: this.priceBandMarketplace,
214
- [LicenseOfferFields.COLUMN_IS_ENABLED]: this.priceBandIsEnabled,
215
- [LicenseOfferFields.COLUMN_CURRENCY]: this.priceBandCurrency,
216
- [LicenseOfferFields.COLUMN_PRICES]: {
217
- [LicenseOfferFields.COLUMN_PUBLIC]: this.priceBandPricePublic,
218
- [LicenseOfferFields.COLUMN_BUY]: this.priceBandPriceBuy,
219
- [LicenseOfferFields.COLUMN_SELL]: this.priceBandPriceSell,
220
- },
221
- [LicenseOfferFields.COLUMN_BILLING]: {
222
- [LicenseOfferFields.COLUMN_TERM]: this.priceBandBillingTerm,
223
- [LicenseOfferFields.COLUMN_TYPE]: this.priceBandBillingType,
224
- [LicenseOfferFields.COLUMN_CYCLE]: this.priceBandBillingCycle,
225
- },
226
- },
227
- };
228
- }
229
- }
230
- exports.LicenseOfferFindResult = LicenseOfferFindResult;
231
- _isAutoRenew = new WeakMap(), _isManualProvisioning = new WeakMap(), _isEnabled = new WeakMap(), _lastUpdate = new WeakMap(), _name = new WeakMap(), _priceBandCanIncreaseSeats = new WeakMap(), _priceBandCanBeCancelled = new WeakMap(), _priceBandCanBeReactivated = new WeakMap(), _priceBandCanDecreaseSeats = new WeakMap(), _priceBandCanBeSuspended = new WeakMap(), _priceBandMarketplace = new WeakMap(), _priceBandIsEnabled = new WeakMap(), _priceBandCurrency = new WeakMap(), _priceBandPricePublic = new WeakMap(), _priceBandPriceBuy = new WeakMap(), _priceBandPriceSell = new WeakMap(), _priceBandBillingTerm = new WeakMap(), _priceBandBillingType = new WeakMap(), _priceBandBillingCycle = new WeakMap();
232
- //# sourceMappingURL=licenseOfferFindResult.js.map