@arrowsphere/api-client 2.0.1 → 2.2.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.
Files changed (26) hide show
  1. package/CHANGELOG.md +32 -2
  2. package/README.md +2 -1
  3. package/build/abstractClient.d.ts +1 -0
  4. package/build/abstractClient.js +6 -0
  5. package/build/licenses/entities/getLicense/actionMessagesGetResult.d.ts +25 -0
  6. package/build/licenses/entities/getLicense/actionMessagesGetResult.js +69 -0
  7. package/build/licenses/entities/getLicense/actionsGetResult.d.ts +40 -0
  8. package/build/licenses/entities/getLicense/actionsGetResult.js +103 -0
  9. package/build/licenses/entities/getLicense/buySellFindResult.d.ts +16 -0
  10. package/build/licenses/entities/getLicense/buySellFindResult.js +47 -0
  11. package/build/licenses/entities/getLicense/licenseGetResult.d.ts +93 -0
  12. package/build/licenses/entities/getLicense/licenseGetResult.js +225 -0
  13. package/build/licenses/entities/getLicense/licensePriceGetResult.d.ts +17 -0
  14. package/build/licenses/entities/getLicense/licensePriceGetResult.js +48 -0
  15. package/build/licenses/entities/getLicense/orderGetResult.d.ts +16 -0
  16. package/build/licenses/entities/getLicense/orderGetResult.js +47 -0
  17. package/build/licenses/entities/getResult.d.ts +22 -0
  18. package/build/licenses/entities/getResult.js +42 -0
  19. package/build/licenses/entities/license/activeSeatsFindResult.d.ts +8 -4
  20. package/build/licenses/entities/license/licenseFindResult.d.ts +2 -2
  21. package/build/licenses/entities/license/warningFindResult.d.ts +1 -1
  22. package/build/licenses/index.d.ts +7 -0
  23. package/build/licenses/index.js +7 -0
  24. package/build/licenses/licensesClient.d.ts +11 -0
  25. package/build/licenses/licensesClient.js +14 -0
  26. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
4
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [2.2.0] - 2022-01-04
7
+
8
+ ### Added
9
+
10
+ - Add endpoint update seats
11
+
12
+ ## [2.1.2] - 2022-02-01
13
+
14
+ ### Changed
15
+
16
+ - Fixed type of `GetLicense` endpoint
17
+ - Fixed type of `ActionMessagesGetResult` object
18
+ - Fixed type of `ActionsGetResult` object
19
+ - Fixed type of `BuySellFindResult` object
20
+ - Fixed type of `LicenseGetResult` object
21
+ - Fixed type of `OrderGetResult` object
22
+
23
+ ## [2.1.1] - 2022-01-27
24
+
25
+ ### Changed
26
+
27
+ - Fixed type of `GetLicense` endpoint
28
+
29
+ ## [2.1.0] - 2022-01-25
30
+
31
+ ### Added
32
+
33
+ - Add endpoint get license (warning, `LicenseGet` object is different `LicenseFind` Object)
34
+ - `ActiveSeatsFindresultData` has been renamed to `ActiveSeatsFindResultData` and name `ActiveSeatsFindresultData` is marked deprecated
35
+
6
36
  ## [2.0.1] - 2022-01-19
7
37
 
8
38
  ### Changed
@@ -16,7 +46,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
16
46
  - bad prettier library configuration, adding semicolon in file needed
17
47
  - Update Offer object and Licence object
18
48
 
19
- #### License
49
+ #### LicenseFind
20
50
  - Add more objects to define a license:
21
51
  - Add object Warning as "warnings" field:
22
52
  - key
@@ -36,7 +66,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
36
66
  - sell_price
37
67
  - list_price
38
68
  - currency
39
- #### Offer
69
+ #### OfferFind
40
70
  - Add more objects to define an offer:
41
71
  - Add field "classification"
42
72
  - Add field "isEnabled"
package/README.md CHANGED
@@ -53,4 +53,5 @@ The output documentation should be located in the `docs/` folder, just open the
53
53
 
54
54
  ### Licenses
55
55
 
56
- - [Licenses](./src/licenses/README.md)
56
+ - Find [Licenses](./src/licenses/README.md#LicenseFind)
57
+ - Get [License](./src/licenses/README.md#LicenseGet)
@@ -109,6 +109,7 @@ export declare abstract class AbstractClient {
109
109
  * @param headers - Headers to be sent in the request
110
110
  */
111
111
  protected post(payload?: Payload, parameters?: Parameters, headers?: Headers, options?: Options): Promise<AxiosResponse['data']>;
112
+ protected put(payload?: Payload, parameters?: Parameters, headers?: Headers, options?: Options): Promise<void>;
112
113
  /**
113
114
  * Generates the full url for request
114
115
  * @param parameters - Parameters to serialize
@@ -149,6 +149,12 @@ class AbstractClient {
149
149
  });
150
150
  return this.getResponse(response);
151
151
  }
152
+ async put(payload = {}, parameters = {}, headers = {}, options = {}) {
153
+ const response = await this.client.put(this.generateUrl(parameters, options), payload, {
154
+ headers: this.prepareHeaders(headers),
155
+ });
156
+ return this.getResponse(response);
157
+ }
152
158
  /**
153
159
  * Generates the full url for request
154
160
  * @param parameters - Parameters to serialize
@@ -0,0 +1,25 @@
1
+ import { AbstractEntity } from '../../../abstractEntity';
2
+ export declare enum ActionMessagesGetResultFields {
3
+ COLUMN_ACTION = "action",
4
+ COLUMN_MESSAGE = "message",
5
+ COLUMN_MAX_DECREASE = "maxDecrease",
6
+ COLUMN_SUPPORTED_UNTIL = "supportedUntil",
7
+ COLUMN_SUSPEND_DATE = "suspendDate"
8
+ }
9
+ export declare type ActionMessagesGetResultData = {
10
+ [ActionMessagesGetResultFields.COLUMN_ACTION]: string;
11
+ [ActionMessagesGetResultFields.COLUMN_MESSAGE]?: string;
12
+ [ActionMessagesGetResultFields.COLUMN_MAX_DECREASE]?: number;
13
+ [ActionMessagesGetResultFields.COLUMN_SUPPORTED_UNTIL]?: string;
14
+ [ActionMessagesGetResultFields.COLUMN_SUSPEND_DATE]?: string;
15
+ };
16
+ export declare class ActionMessagesGetResult extends AbstractEntity<ActionMessagesGetResultData> {
17
+ #private;
18
+ constructor(data: ActionMessagesGetResultData);
19
+ get action(): string;
20
+ get message(): string | undefined;
21
+ get maxDecrease(): number | undefined;
22
+ get supportedUntil(): string | undefined;
23
+ get suspendDate(): string | undefined;
24
+ toJSON(): ActionMessagesGetResultData;
25
+ }
@@ -0,0 +1,69 @@
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 _action, _message, _maxDecrease, _supportedUntil, _suspendDate;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.ActionMessagesGetResult = exports.ActionMessagesGetResultFields = void 0;
18
+ const abstractEntity_1 = require("../../../abstractEntity");
19
+ var ActionMessagesGetResultFields;
20
+ (function (ActionMessagesGetResultFields) {
21
+ ActionMessagesGetResultFields["COLUMN_ACTION"] = "action";
22
+ ActionMessagesGetResultFields["COLUMN_MESSAGE"] = "message";
23
+ ActionMessagesGetResultFields["COLUMN_MAX_DECREASE"] = "maxDecrease";
24
+ ActionMessagesGetResultFields["COLUMN_SUPPORTED_UNTIL"] = "supportedUntil";
25
+ ActionMessagesGetResultFields["COLUMN_SUSPEND_DATE"] = "suspendDate";
26
+ })(ActionMessagesGetResultFields = exports.ActionMessagesGetResultFields || (exports.ActionMessagesGetResultFields = {}));
27
+ class ActionMessagesGetResult extends abstractEntity_1.AbstractEntity {
28
+ constructor(data) {
29
+ super(data);
30
+ _action.set(this, void 0);
31
+ _message.set(this, void 0);
32
+ _maxDecrease.set(this, void 0);
33
+ _supportedUntil.set(this, void 0);
34
+ _suspendDate.set(this, void 0);
35
+ __classPrivateFieldSet(this, _action, data[ActionMessagesGetResultFields.COLUMN_ACTION]);
36
+ __classPrivateFieldSet(this, _message, data[ActionMessagesGetResultFields.COLUMN_MESSAGE]);
37
+ __classPrivateFieldSet(this, _maxDecrease, data[ActionMessagesGetResultFields.COLUMN_MAX_DECREASE]);
38
+ __classPrivateFieldSet(this, _supportedUntil, data[ActionMessagesGetResultFields.COLUMN_SUPPORTED_UNTIL]);
39
+ __classPrivateFieldSet(this, _suspendDate, data[ActionMessagesGetResultFields.COLUMN_SUSPEND_DATE]);
40
+ }
41
+ get action() {
42
+ return __classPrivateFieldGet(this, _action);
43
+ }
44
+ get message() {
45
+ return __classPrivateFieldGet(this, _message);
46
+ }
47
+ get maxDecrease() {
48
+ return __classPrivateFieldGet(this, _maxDecrease);
49
+ }
50
+ get supportedUntil() {
51
+ return __classPrivateFieldGet(this, _supportedUntil);
52
+ }
53
+ get suspendDate() {
54
+ return __classPrivateFieldGet(this, _suspendDate);
55
+ }
56
+ toJSON() {
57
+ return {
58
+ [ActionMessagesGetResultFields.COLUMN_ACTION]: this.action,
59
+ [ActionMessagesGetResultFields.COLUMN_MESSAGE]: this.message,
60
+ [ActionMessagesGetResultFields.COLUMN_MAX_DECREASE]: this.maxDecrease,
61
+ [ActionMessagesGetResultFields.COLUMN_SUPPORTED_UNTIL]: this
62
+ .supportedUntil,
63
+ [ActionMessagesGetResultFields.COLUMN_SUSPEND_DATE]: this.suspendDate,
64
+ };
65
+ }
66
+ }
67
+ exports.ActionMessagesGetResult = ActionMessagesGetResult;
68
+ _action = new WeakMap(), _message = new WeakMap(), _maxDecrease = new WeakMap(), _supportedUntil = new WeakMap(), _suspendDate = new WeakMap();
69
+ //# sourceMappingURL=actionMessagesGetResult.js.map
@@ -0,0 +1,40 @@
1
+ import { AbstractEntity } from '../../../abstractEntity';
2
+ export declare enum ActionsGetFields {
3
+ COLUMN_HISTORY = "history",
4
+ COLUMN_UPDATE = "update",
5
+ COLUMN_INCREASE_SEATS = "increaseSeats",
6
+ COLUMN_DECREASE_SEATS = "decreaseSeats",
7
+ COLUMN_ADDONS_CATALOG = "addons catalog",
8
+ COLUMN_SUSPEND = "suspend",
9
+ COLUMN_REACTIVATE = "reactivate",
10
+ COLUMN_AUTO_RENEW_OFF = "autoRenewOff",
11
+ COLUMN_AUTO_RENEW_ON = "autoRenewOn",
12
+ COLUMN_CANCEL = "cancel"
13
+ }
14
+ export declare type ActionsGetData = {
15
+ [ActionsGetFields.COLUMN_HISTORY]: string;
16
+ [ActionsGetFields.COLUMN_UPDATE]?: string;
17
+ [ActionsGetFields.COLUMN_INCREASE_SEATS]?: string;
18
+ [ActionsGetFields.COLUMN_DECREASE_SEATS]?: string;
19
+ [ActionsGetFields.COLUMN_ADDONS_CATALOG]?: string;
20
+ [ActionsGetFields.COLUMN_SUSPEND]?: string;
21
+ [ActionsGetFields.COLUMN_REACTIVATE]?: string;
22
+ [ActionsGetFields.COLUMN_AUTO_RENEW_OFF]?: string;
23
+ [ActionsGetFields.COLUMN_AUTO_RENEW_ON]?: string;
24
+ [ActionsGetFields.COLUMN_CANCEL]?: string;
25
+ };
26
+ export declare class ActionsGetResult extends AbstractEntity<ActionsGetData> {
27
+ #private;
28
+ constructor(data: ActionsGetData);
29
+ get history(): string;
30
+ get update(): string | undefined;
31
+ get increaseSeats(): string | undefined;
32
+ get decreaseSeats(): string | undefined;
33
+ get addonsCatalog(): string | undefined;
34
+ get suspend(): string | undefined;
35
+ get reactivate(): string | undefined;
36
+ get autoRenewOff(): string | undefined;
37
+ get autoRenewOn(): string | undefined;
38
+ get cancel(): string | undefined;
39
+ toJSON(): ActionsGetData;
40
+ }
@@ -0,0 +1,103 @@
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 _history, _update, _increaseSeats, _decreaseSeats, _addons_catalog, _suspend, _reactivate, _autoRenewOff, _autoRenewOn, _cancel;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.ActionsGetResult = exports.ActionsGetFields = void 0;
18
+ const abstractEntity_1 = require("../../../abstractEntity");
19
+ var ActionsGetFields;
20
+ (function (ActionsGetFields) {
21
+ ActionsGetFields["COLUMN_HISTORY"] = "history";
22
+ ActionsGetFields["COLUMN_UPDATE"] = "update";
23
+ ActionsGetFields["COLUMN_INCREASE_SEATS"] = "increaseSeats";
24
+ ActionsGetFields["COLUMN_DECREASE_SEATS"] = "decreaseSeats";
25
+ ActionsGetFields["COLUMN_ADDONS_CATALOG"] = "addons catalog";
26
+ ActionsGetFields["COLUMN_SUSPEND"] = "suspend";
27
+ ActionsGetFields["COLUMN_REACTIVATE"] = "reactivate";
28
+ ActionsGetFields["COLUMN_AUTO_RENEW_OFF"] = "autoRenewOff";
29
+ ActionsGetFields["COLUMN_AUTO_RENEW_ON"] = "autoRenewOn";
30
+ ActionsGetFields["COLUMN_CANCEL"] = "cancel";
31
+ })(ActionsGetFields = exports.ActionsGetFields || (exports.ActionsGetFields = {}));
32
+ class ActionsGetResult extends abstractEntity_1.AbstractEntity {
33
+ constructor(data) {
34
+ super(data);
35
+ _history.set(this, void 0);
36
+ _update.set(this, void 0);
37
+ _increaseSeats.set(this, void 0);
38
+ _decreaseSeats.set(this, void 0);
39
+ _addons_catalog.set(this, void 0);
40
+ _suspend.set(this, void 0);
41
+ _reactivate.set(this, void 0);
42
+ _autoRenewOff.set(this, void 0);
43
+ _autoRenewOn.set(this, void 0);
44
+ _cancel.set(this, void 0);
45
+ __classPrivateFieldSet(this, _history, data[ActionsGetFields.COLUMN_HISTORY]);
46
+ __classPrivateFieldSet(this, _update, data[ActionsGetFields.COLUMN_UPDATE]);
47
+ __classPrivateFieldSet(this, _increaseSeats, data[ActionsGetFields.COLUMN_INCREASE_SEATS]);
48
+ __classPrivateFieldSet(this, _decreaseSeats, data[ActionsGetFields.COLUMN_DECREASE_SEATS]);
49
+ __classPrivateFieldSet(this, _addons_catalog, data[ActionsGetFields.COLUMN_ADDONS_CATALOG]);
50
+ __classPrivateFieldSet(this, _suspend, data[ActionsGetFields.COLUMN_SUSPEND]);
51
+ __classPrivateFieldSet(this, _reactivate, data[ActionsGetFields.COLUMN_REACTIVATE]);
52
+ __classPrivateFieldSet(this, _autoRenewOff, data[ActionsGetFields.COLUMN_AUTO_RENEW_OFF]);
53
+ __classPrivateFieldSet(this, _autoRenewOn, data[ActionsGetFields.COLUMN_AUTO_RENEW_ON]);
54
+ __classPrivateFieldSet(this, _cancel, data[ActionsGetFields.COLUMN_CANCEL]);
55
+ }
56
+ get history() {
57
+ return __classPrivateFieldGet(this, _history);
58
+ }
59
+ get update() {
60
+ return __classPrivateFieldGet(this, _update);
61
+ }
62
+ get increaseSeats() {
63
+ return __classPrivateFieldGet(this, _increaseSeats);
64
+ }
65
+ get decreaseSeats() {
66
+ return __classPrivateFieldGet(this, _decreaseSeats);
67
+ }
68
+ get addonsCatalog() {
69
+ return __classPrivateFieldGet(this, _addons_catalog);
70
+ }
71
+ get suspend() {
72
+ return __classPrivateFieldGet(this, _suspend);
73
+ }
74
+ get reactivate() {
75
+ return __classPrivateFieldGet(this, _reactivate);
76
+ }
77
+ get autoRenewOff() {
78
+ return __classPrivateFieldGet(this, _autoRenewOff);
79
+ }
80
+ get autoRenewOn() {
81
+ return __classPrivateFieldGet(this, _autoRenewOn);
82
+ }
83
+ get cancel() {
84
+ return __classPrivateFieldGet(this, _cancel);
85
+ }
86
+ toJSON() {
87
+ return {
88
+ [ActionsGetFields.COLUMN_HISTORY]: this.history,
89
+ [ActionsGetFields.COLUMN_UPDATE]: this.update,
90
+ [ActionsGetFields.COLUMN_INCREASE_SEATS]: this.increaseSeats,
91
+ [ActionsGetFields.COLUMN_DECREASE_SEATS]: this.decreaseSeats,
92
+ [ActionsGetFields.COLUMN_ADDONS_CATALOG]: this.addonsCatalog,
93
+ [ActionsGetFields.COLUMN_SUSPEND]: this.suspend,
94
+ [ActionsGetFields.COLUMN_REACTIVATE]: this.reactivate,
95
+ [ActionsGetFields.COLUMN_AUTO_RENEW_OFF]: this.autoRenewOff,
96
+ [ActionsGetFields.COLUMN_AUTO_RENEW_ON]: this.autoRenewOn,
97
+ [ActionsGetFields.COLUMN_CANCEL]: this.cancel,
98
+ };
99
+ }
100
+ }
101
+ exports.ActionsGetResult = ActionsGetResult;
102
+ _history = new WeakMap(), _update = new WeakMap(), _increaseSeats = new WeakMap(), _decreaseSeats = new WeakMap(), _addons_catalog = new WeakMap(), _suspend = new WeakMap(), _reactivate = new WeakMap(), _autoRenewOff = new WeakMap(), _autoRenewOn = new WeakMap(), _cancel = new WeakMap();
103
+ //# sourceMappingURL=actionsGetResult.js.map
@@ -0,0 +1,16 @@
1
+ import { AbstractEntity } from '../../../abstractEntity';
2
+ export declare enum BuySellFields {
3
+ COLUMN_BUY = "buy",
4
+ COLUMN_SELL = "sell"
5
+ }
6
+ export declare type BuySellData = {
7
+ [BuySellFields.COLUMN_BUY]?: number;
8
+ [BuySellFields.COLUMN_SELL]?: number;
9
+ };
10
+ export declare class BuySellFindResult extends AbstractEntity<BuySellData> {
11
+ #private;
12
+ constructor(data: BuySellData);
13
+ get buy(): number | undefined;
14
+ get sell(): number | undefined;
15
+ toJSON(): BuySellData;
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 _buy, _sell;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.BuySellFindResult = exports.BuySellFields = void 0;
18
+ const abstractEntity_1 = require("../../../abstractEntity");
19
+ var BuySellFields;
20
+ (function (BuySellFields) {
21
+ BuySellFields["COLUMN_BUY"] = "buy";
22
+ BuySellFields["COLUMN_SELL"] = "sell";
23
+ })(BuySellFields = exports.BuySellFields || (exports.BuySellFields = {}));
24
+ class BuySellFindResult extends abstractEntity_1.AbstractEntity {
25
+ constructor(data) {
26
+ super(data);
27
+ _buy.set(this, void 0);
28
+ _sell.set(this, void 0);
29
+ __classPrivateFieldSet(this, _buy, data[BuySellFields.COLUMN_BUY]);
30
+ __classPrivateFieldSet(this, _sell, data[BuySellFields.COLUMN_SELL]);
31
+ }
32
+ get buy() {
33
+ return __classPrivateFieldGet(this, _buy);
34
+ }
35
+ get sell() {
36
+ return __classPrivateFieldGet(this, _sell);
37
+ }
38
+ toJSON() {
39
+ return {
40
+ [BuySellFields.COLUMN_BUY]: this.buy,
41
+ [BuySellFields.COLUMN_SELL]: this.sell,
42
+ };
43
+ }
44
+ }
45
+ exports.BuySellFindResult = BuySellFindResult;
46
+ _buy = new WeakMap(), _sell = new WeakMap();
47
+ //# sourceMappingURL=buySellFindResult.js.map
@@ -0,0 +1,93 @@
1
+ import { ActionsGetData, ActionsGetResult } from './actionsGetResult';
2
+ import { ActionMessagesGetResult, ActionMessagesGetResultData } from './actionMessagesGetResult';
3
+ import { OrderGetData, OrderGetResult } from './orderGetResult';
4
+ import { LicensePriceGetData, LicensePriceGetResult } from './licensePriceGetResult';
5
+ import { AbstractEntity } from '../../../abstractEntity';
6
+ import { ActiveSeatsFindResult, ActiveSeatsFindResultData } from '../license/activeSeatsFindResult';
7
+ export declare enum LicenseGetFields {
8
+ COLUMN_LICENSE_ID = "license_id",
9
+ COLUMN_PARENT_LICENSE_ID = "parent_license_id",
10
+ COLUMN_FRIENDLY_NAME = "friendlyName",
11
+ COLUMN_CUSTOMER_REF = "customer_ref",
12
+ COLUMN_STATE = "state",
13
+ COLUMN_SERVICE_REF = "service_ref",
14
+ COLUMN_SKU = "sku",
15
+ COLUMN_NAME = "name",
16
+ COLUMN_SEATS = "seats",
17
+ COLUMN_ACTIVE_SEATS = "activeSeats",
18
+ COLUMN_ACTIVATION_DATETIME = "activation_datetime",
19
+ COLUMN_EXPIRY_DATETIME = "expiry_datetime",
20
+ COLUMN_AUTO_RENEW = "autoRenew",
21
+ COLUMN_MESSAGE = "message",
22
+ COLUMN_ACTIONS = "actions",
23
+ COLUMN_ACTION_MESSAGES = "actionMessages",
24
+ COLUMN_ORDER_REFERENCE = "order_reference",
25
+ COLUMN_ORDER = "order",
26
+ COLUMN_VENDOR_LICENSE_ID = "vendor_license_id",
27
+ COLUMN_PERIODICITY = "periodicity",
28
+ COLUMN_TERM = "term",
29
+ COLUMN_CATEGORY = "category",
30
+ COLUMN_PROGRAM = "program",
31
+ COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM = "associatedSubscriptionProgram",
32
+ COLUMN_PRICE = "price",
33
+ COLUMN_ARROW_SUB_CATEGORIES = "arrowSubCategories"
34
+ }
35
+ export declare type LicenseGetData = {
36
+ [LicenseGetFields.COLUMN_LICENSE_ID]: string;
37
+ [LicenseGetFields.COLUMN_PARENT_LICENSE_ID]: string | null;
38
+ [LicenseGetFields.COLUMN_FRIENDLY_NAME]: string | null;
39
+ [LicenseGetFields.COLUMN_CUSTOMER_REF]: string;
40
+ [LicenseGetFields.COLUMN_STATE]: string;
41
+ [LicenseGetFields.COLUMN_SERVICE_REF]: string;
42
+ [LicenseGetFields.COLUMN_SKU]: string;
43
+ [LicenseGetFields.COLUMN_NAME]: string;
44
+ [LicenseGetFields.COLUMN_SEATS]: number;
45
+ [LicenseGetFields.COLUMN_ACTIVE_SEATS]: ActiveSeatsFindResultData;
46
+ [LicenseGetFields.COLUMN_ACTIVATION_DATETIME]: string | null;
47
+ [LicenseGetFields.COLUMN_EXPIRY_DATETIME]: string | null;
48
+ [LicenseGetFields.COLUMN_AUTO_RENEW]?: boolean;
49
+ [LicenseGetFields.COLUMN_MESSAGE]: string;
50
+ [LicenseGetFields.COLUMN_ACTIONS]?: ActionsGetData;
51
+ [LicenseGetFields.COLUMN_ACTION_MESSAGES]?: Array<ActionMessagesGetResultData>;
52
+ [LicenseGetFields.COLUMN_ORDER_REFERENCE]: string;
53
+ [LicenseGetFields.COLUMN_ORDER]: OrderGetData;
54
+ [LicenseGetFields.COLUMN_VENDOR_LICENSE_ID]: string | null;
55
+ [LicenseGetFields.COLUMN_PERIODICITY]: string;
56
+ [LicenseGetFields.COLUMN_TERM]: string;
57
+ [LicenseGetFields.COLUMN_CATEGORY]: string;
58
+ [LicenseGetFields.COLUMN_PROGRAM]: string;
59
+ [LicenseGetFields.COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM]: string;
60
+ [LicenseGetFields.COLUMN_PRICE]: LicensePriceGetData;
61
+ [LicenseGetFields.COLUMN_ARROW_SUB_CATEGORIES]?: Array<string> | null;
62
+ };
63
+ export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
64
+ #private;
65
+ constructor(data: LicenseGetData);
66
+ get id(): string;
67
+ get parentLicenseId(): string | null;
68
+ get friendlyName(): string | null;
69
+ get customerRef(): string;
70
+ get state(): string;
71
+ get serviceRef(): string;
72
+ get sku(): string;
73
+ get name(): string;
74
+ get seats(): number;
75
+ get activeSeats(): ActiveSeatsFindResult;
76
+ get activationDatetime(): string | null;
77
+ get expiryDatetime(): string | null;
78
+ get autoRenew(): boolean | undefined;
79
+ get message(): string;
80
+ get actions(): ActionsGetResult | undefined;
81
+ get actionMessages(): Array<ActionMessagesGetResult> | undefined;
82
+ get orderReference(): string;
83
+ get order(): OrderGetResult;
84
+ get vendorLicenseId(): string | null;
85
+ get periodicity(): string;
86
+ get term(): string;
87
+ get category(): string;
88
+ get program(): string;
89
+ get associatedSubscriptionProgram(): string;
90
+ get price(): LicensePriceGetResult;
91
+ get arrowSubCategories(): Array<string> | null | undefined;
92
+ toJSON(): LicenseGetData;
93
+ }
@@ -0,0 +1,225 @@
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 actionMessagesGetResult_1 = require("./actionMessagesGetResult");
20
+ const orderGetResult_1 = require("./orderGetResult");
21
+ const licensePriceGetResult_1 = require("./licensePriceGetResult");
22
+ const abstractEntity_1 = require("../../../abstractEntity");
23
+ const activeSeatsFindResult_1 = require("../license/activeSeatsFindResult");
24
+ var LicenseGetFields;
25
+ (function (LicenseGetFields) {
26
+ LicenseGetFields["COLUMN_LICENSE_ID"] = "license_id";
27
+ LicenseGetFields["COLUMN_PARENT_LICENSE_ID"] = "parent_license_id";
28
+ LicenseGetFields["COLUMN_FRIENDLY_NAME"] = "friendlyName";
29
+ LicenseGetFields["COLUMN_CUSTOMER_REF"] = "customer_ref";
30
+ LicenseGetFields["COLUMN_STATE"] = "state";
31
+ LicenseGetFields["COLUMN_SERVICE_REF"] = "service_ref";
32
+ LicenseGetFields["COLUMN_SKU"] = "sku";
33
+ LicenseGetFields["COLUMN_NAME"] = "name";
34
+ LicenseGetFields["COLUMN_SEATS"] = "seats";
35
+ LicenseGetFields["COLUMN_ACTIVE_SEATS"] = "activeSeats";
36
+ LicenseGetFields["COLUMN_ACTIVATION_DATETIME"] = "activation_datetime";
37
+ LicenseGetFields["COLUMN_EXPIRY_DATETIME"] = "expiry_datetime";
38
+ LicenseGetFields["COLUMN_AUTO_RENEW"] = "autoRenew";
39
+ LicenseGetFields["COLUMN_MESSAGE"] = "message";
40
+ LicenseGetFields["COLUMN_ACTIONS"] = "actions";
41
+ LicenseGetFields["COLUMN_ACTION_MESSAGES"] = "actionMessages";
42
+ LicenseGetFields["COLUMN_ORDER_REFERENCE"] = "order_reference";
43
+ LicenseGetFields["COLUMN_ORDER"] = "order";
44
+ LicenseGetFields["COLUMN_VENDOR_LICENSE_ID"] = "vendor_license_id";
45
+ LicenseGetFields["COLUMN_PERIODICITY"] = "periodicity";
46
+ LicenseGetFields["COLUMN_TERM"] = "term";
47
+ LicenseGetFields["COLUMN_CATEGORY"] = "category";
48
+ LicenseGetFields["COLUMN_PROGRAM"] = "program";
49
+ LicenseGetFields["COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM"] = "associatedSubscriptionProgram";
50
+ LicenseGetFields["COLUMN_PRICE"] = "price";
51
+ LicenseGetFields["COLUMN_ARROW_SUB_CATEGORIES"] = "arrowSubCategories";
52
+ })(LicenseGetFields = exports.LicenseGetFields || (exports.LicenseGetFields = {}));
53
+ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
54
+ constructor(data) {
55
+ var _a;
56
+ super(data);
57
+ _license_id.set(this, void 0);
58
+ _parent_license_id.set(this, void 0);
59
+ _friendlyName.set(this, void 0);
60
+ _customer_ref.set(this, void 0);
61
+ _state.set(this, void 0);
62
+ _service_ref.set(this, void 0);
63
+ _sku.set(this, void 0);
64
+ _name.set(this, void 0);
65
+ _seats.set(this, void 0);
66
+ _activeSeats.set(this, void 0);
67
+ _activation_datetime.set(this, void 0);
68
+ _expiry_datetime.set(this, void 0);
69
+ _autoRenew.set(this, void 0);
70
+ _message.set(this, void 0);
71
+ _actions.set(this, void 0);
72
+ _actionMessages.set(this, void 0);
73
+ _order_reference.set(this, void 0);
74
+ _order.set(this, void 0);
75
+ _vendor_license_id.set(this, void 0);
76
+ _periodicity.set(this, void 0);
77
+ _term.set(this, void 0);
78
+ _category.set(this, void 0);
79
+ _program.set(this, void 0);
80
+ _associatedSubscriptionProgram.set(this, void 0);
81
+ _price.set(this, void 0);
82
+ _arrowSubCategories.set(this, void 0);
83
+ __classPrivateFieldSet(this, _license_id, data[LicenseGetFields.COLUMN_LICENSE_ID]);
84
+ __classPrivateFieldSet(this, _parent_license_id, data[LicenseGetFields.COLUMN_PARENT_LICENSE_ID]);
85
+ __classPrivateFieldSet(this, _friendlyName, data[LicenseGetFields.COLUMN_FRIENDLY_NAME]);
86
+ __classPrivateFieldSet(this, _customer_ref, data[LicenseGetFields.COLUMN_CUSTOMER_REF]);
87
+ __classPrivateFieldSet(this, _state, data[LicenseGetFields.COLUMN_STATE]);
88
+ __classPrivateFieldSet(this, _service_ref, data[LicenseGetFields.COLUMN_SERVICE_REF]);
89
+ __classPrivateFieldSet(this, _sku, data[LicenseGetFields.COLUMN_SKU]);
90
+ __classPrivateFieldSet(this, _name, data[LicenseGetFields.COLUMN_NAME]);
91
+ __classPrivateFieldSet(this, _seats, data[LicenseGetFields.COLUMN_SEATS]);
92
+ __classPrivateFieldSet(this, _activeSeats, new activeSeatsFindResult_1.ActiveSeatsFindResult(data[LicenseGetFields.COLUMN_ACTIVE_SEATS]));
93
+ __classPrivateFieldSet(this, _activation_datetime, data[LicenseGetFields.COLUMN_ACTIVATION_DATETIME]);
94
+ __classPrivateFieldSet(this, _expiry_datetime, data[LicenseGetFields.COLUMN_EXPIRY_DATETIME]);
95
+ __classPrivateFieldSet(this, _autoRenew, data[LicenseGetFields.COLUMN_AUTO_RENEW]);
96
+ __classPrivateFieldSet(this, _message, data[LicenseGetFields.COLUMN_MESSAGE]);
97
+ __classPrivateFieldSet(this, _actions, data[LicenseGetFields.COLUMN_ACTIONS]
98
+ ? new actionsGetResult_1.ActionsGetResult(data[LicenseGetFields.COLUMN_ACTIONS])
99
+ : undefined);
100
+ __classPrivateFieldSet(this, _actionMessages, (_a = data[LicenseGetFields.COLUMN_ACTION_MESSAGES]) === null || _a === void 0 ? void 0 : _a.map((result) => new actionMessagesGetResult_1.ActionMessagesGetResult(result)));
101
+ __classPrivateFieldSet(this, _order_reference, data[LicenseGetFields.COLUMN_ORDER_REFERENCE]);
102
+ __classPrivateFieldSet(this, _order, new orderGetResult_1.OrderGetResult(data[LicenseGetFields.COLUMN_ORDER]));
103
+ __classPrivateFieldSet(this, _vendor_license_id, data[LicenseGetFields.COLUMN_VENDOR_LICENSE_ID]);
104
+ __classPrivateFieldSet(this, _periodicity, data[LicenseGetFields.COLUMN_PERIODICITY]);
105
+ __classPrivateFieldSet(this, _term, data[LicenseGetFields.COLUMN_TERM]);
106
+ __classPrivateFieldSet(this, _category, data[LicenseGetFields.COLUMN_CATEGORY]);
107
+ __classPrivateFieldSet(this, _program, data[LicenseGetFields.COLUMN_PROGRAM]);
108
+ __classPrivateFieldSet(this, _associatedSubscriptionProgram, data[LicenseGetFields.COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM]);
109
+ __classPrivateFieldSet(this, _price, new licensePriceGetResult_1.LicensePriceGetResult(data[LicenseGetFields.COLUMN_PRICE]));
110
+ __classPrivateFieldSet(this, _arrowSubCategories, data[LicenseGetFields.COLUMN_ARROW_SUB_CATEGORIES]);
111
+ }
112
+ get id() {
113
+ return __classPrivateFieldGet(this, _license_id);
114
+ }
115
+ get parentLicenseId() {
116
+ return __classPrivateFieldGet(this, _parent_license_id);
117
+ }
118
+ get friendlyName() {
119
+ return __classPrivateFieldGet(this, _friendlyName);
120
+ }
121
+ get customerRef() {
122
+ return __classPrivateFieldGet(this, _customer_ref);
123
+ }
124
+ get state() {
125
+ return __classPrivateFieldGet(this, _state);
126
+ }
127
+ get serviceRef() {
128
+ return __classPrivateFieldGet(this, _service_ref);
129
+ }
130
+ get sku() {
131
+ return __classPrivateFieldGet(this, _sku);
132
+ }
133
+ get name() {
134
+ return __classPrivateFieldGet(this, _name);
135
+ }
136
+ get seats() {
137
+ return __classPrivateFieldGet(this, _seats);
138
+ }
139
+ get activeSeats() {
140
+ return __classPrivateFieldGet(this, _activeSeats);
141
+ }
142
+ get activationDatetime() {
143
+ return __classPrivateFieldGet(this, _activation_datetime);
144
+ }
145
+ get expiryDatetime() {
146
+ return __classPrivateFieldGet(this, _expiry_datetime);
147
+ }
148
+ get autoRenew() {
149
+ return __classPrivateFieldGet(this, _autoRenew);
150
+ }
151
+ get message() {
152
+ return __classPrivateFieldGet(this, _message);
153
+ }
154
+ get actions() {
155
+ return __classPrivateFieldGet(this, _actions);
156
+ }
157
+ get actionMessages() {
158
+ return __classPrivateFieldGet(this, _actionMessages);
159
+ }
160
+ get orderReference() {
161
+ return __classPrivateFieldGet(this, _order_reference);
162
+ }
163
+ get order() {
164
+ return __classPrivateFieldGet(this, _order);
165
+ }
166
+ get vendorLicenseId() {
167
+ return __classPrivateFieldGet(this, _vendor_license_id);
168
+ }
169
+ get periodicity() {
170
+ return __classPrivateFieldGet(this, _periodicity);
171
+ }
172
+ get term() {
173
+ return __classPrivateFieldGet(this, _term);
174
+ }
175
+ get category() {
176
+ return __classPrivateFieldGet(this, _category);
177
+ }
178
+ get program() {
179
+ return __classPrivateFieldGet(this, _program);
180
+ }
181
+ get associatedSubscriptionProgram() {
182
+ return __classPrivateFieldGet(this, _associatedSubscriptionProgram);
183
+ }
184
+ get price() {
185
+ return __classPrivateFieldGet(this, _price);
186
+ }
187
+ get arrowSubCategories() {
188
+ return __classPrivateFieldGet(this, _arrowSubCategories);
189
+ }
190
+ toJSON() {
191
+ var _a, _b;
192
+ return {
193
+ [LicenseGetFields.COLUMN_LICENSE_ID]: this.id,
194
+ [LicenseGetFields.COLUMN_PARENT_LICENSE_ID]: this.parentLicenseId,
195
+ [LicenseGetFields.COLUMN_FRIENDLY_NAME]: this.friendlyName,
196
+ [LicenseGetFields.COLUMN_CUSTOMER_REF]: this.customerRef,
197
+ [LicenseGetFields.COLUMN_STATE]: this.state,
198
+ [LicenseGetFields.COLUMN_SERVICE_REF]: this.serviceRef,
199
+ [LicenseGetFields.COLUMN_SKU]: this.sku,
200
+ [LicenseGetFields.COLUMN_NAME]: this.name,
201
+ [LicenseGetFields.COLUMN_SEATS]: this.seats,
202
+ [LicenseGetFields.COLUMN_ACTIVE_SEATS]: this.activeSeats.toJSON(),
203
+ [LicenseGetFields.COLUMN_ACTIVATION_DATETIME]: this.activationDatetime,
204
+ [LicenseGetFields.COLUMN_EXPIRY_DATETIME]: this.expiryDatetime,
205
+ [LicenseGetFields.COLUMN_AUTO_RENEW]: this.autoRenew,
206
+ [LicenseGetFields.COLUMN_MESSAGE]: this.message,
207
+ [LicenseGetFields.COLUMN_ACTIONS]: (_a = this.actions) === null || _a === void 0 ? void 0 : _a.toJSON(),
208
+ [LicenseGetFields.COLUMN_ACTION_MESSAGES]: (_b = this.actionMessages) === null || _b === void 0 ? void 0 : _b.map((result) => result.toJSON()),
209
+ [LicenseGetFields.COLUMN_ORDER_REFERENCE]: this.orderReference,
210
+ [LicenseGetFields.COLUMN_ORDER]: this.order.toJSON(),
211
+ [LicenseGetFields.COLUMN_VENDOR_LICENSE_ID]: this.vendorLicenseId,
212
+ [LicenseGetFields.COLUMN_PERIODICITY]: this.periodicity,
213
+ [LicenseGetFields.COLUMN_TERM]: this.term,
214
+ [LicenseGetFields.COLUMN_CATEGORY]: this.category,
215
+ [LicenseGetFields.COLUMN_PROGRAM]: this.program,
216
+ [LicenseGetFields.COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM]: this
217
+ .associatedSubscriptionProgram,
218
+ [LicenseGetFields.COLUMN_PRICE]: this.price.toJSON(),
219
+ [LicenseGetFields.COLUMN_ARROW_SUB_CATEGORIES]: this.arrowSubCategories,
220
+ };
221
+ }
222
+ }
223
+ exports.LicenseGetResult = LicenseGetResult;
224
+ _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();
225
+ //# 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,48 @@
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
+ __classPrivateFieldSet(this, _unit, new buySellFindResult_1.BuySellFindResult(data[LicensePriceGetFields.COLUMN_UNIT]));
31
+ __classPrivateFieldSet(this, _total, new buySellFindResult_1.BuySellFindResult(data[LicensePriceGetFields.COLUMN_TOTAL]));
32
+ }
33
+ get unit() {
34
+ return __classPrivateFieldGet(this, _unit);
35
+ }
36
+ get total() {
37
+ return __classPrivateFieldGet(this, _total);
38
+ }
39
+ toJSON() {
40
+ return {
41
+ [LicensePriceGetFields.COLUMN_UNIT]: this.unit.toJSON(),
42
+ [LicensePriceGetFields.COLUMN_TOTAL]: this.total.toJSON(),
43
+ };
44
+ }
45
+ }
46
+ exports.LicensePriceGetResult = LicensePriceGetResult;
47
+ _unit = new WeakMap(), _total = new WeakMap();
48
+ //# 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 | null;
8
+ [OrderGetFields.COLUMN_LINK]: string;
9
+ };
10
+ export declare class OrderGetResult extends AbstractEntity<OrderGetData> {
11
+ #private;
12
+ constructor(data: OrderGetData);
13
+ get reference(): string | null;
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,22 @@
1
+ import { LicenseGetData } from './getLicense/licenseGetResult';
2
+ import { AbstractEntity } from '../../abstractEntity';
3
+ /**
4
+ * For future get endpoint, create type like LicenseGet
5
+ * and add this type to TypesGet type
6
+ */
7
+ export declare type LicenseGet = {
8
+ license: LicenseGetData;
9
+ };
10
+ declare type TypesGet = LicenseGet;
11
+ export declare type GetData<TypesGet> = {
12
+ status: number;
13
+ data: TypesGet;
14
+ };
15
+ export declare class GetResult extends AbstractEntity<GetData<TypesGet>> {
16
+ #private;
17
+ constructor(data: GetData<TypesGet>);
18
+ get status(): number;
19
+ get data(): TypesGet;
20
+ toJSON(): GetData<TypesGet>;
21
+ }
22
+ export {};
@@ -0,0 +1,42 @@
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 _status, _data;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.GetResult = void 0;
18
+ const abstractEntity_1 = require("../../abstractEntity");
19
+ class GetResult extends abstractEntity_1.AbstractEntity {
20
+ constructor(data) {
21
+ super(data);
22
+ _status.set(this, void 0);
23
+ _data.set(this, void 0);
24
+ __classPrivateFieldSet(this, _status, data.status);
25
+ __classPrivateFieldSet(this, _data, data.data);
26
+ }
27
+ get status() {
28
+ return __classPrivateFieldGet(this, _status);
29
+ }
30
+ get data() {
31
+ return __classPrivateFieldGet(this, _data);
32
+ }
33
+ toJSON() {
34
+ return {
35
+ status: this.status,
36
+ data: this.data,
37
+ };
38
+ }
39
+ }
40
+ exports.GetResult = GetResult;
41
+ _status = new WeakMap(), _data = new WeakMap();
42
+ //# sourceMappingURL=getResult.js.map
@@ -4,10 +4,14 @@ export declare enum ActiveSeatsFindResultFields {
4
4
  COLUMN_LAST_UPDATE = "lastUpdate",
5
5
  COLUMN_NUMBER = "number"
6
6
  }
7
- export declare type ActiveSeatsFindresultData = {
7
+ export declare type ActiveSeatsFindResultData = {
8
8
  [ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE]?: string | null;
9
9
  [ActiveSeatsFindResultFields.COLUMN_NUMBER]?: number | null;
10
10
  };
11
+ /**
12
+ * @deprecated type, please use ActiveSeatsFindResultData instead
13
+ */
14
+ export declare type ActiveSeatsFindresultData = ActiveSeatsFindResultData;
11
15
  export declare type ActiveSeatsFindResultDataKeywords = {
12
16
  [ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE]?: DataKeywords;
13
17
  [ActiveSeatsFindResultFields.COLUMN_NUMBER]?: DataKeywords;
@@ -20,10 +24,10 @@ export declare type ActiveSeatsFindResultDataFiltersParameters = {
20
24
  [ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE]?: FiltersParameters;
21
25
  [ActiveSeatsFindResultFields.COLUMN_NUMBER]?: FiltersParameters;
22
26
  };
23
- export declare class ActiveSeatsFindResult extends AbstractEntity<ActiveSeatsFindresultData> {
27
+ export declare class ActiveSeatsFindResult extends AbstractEntity<ActiveSeatsFindResultData> {
24
28
  #private;
25
- constructor(data: ActiveSeatsFindresultData);
29
+ constructor(data: ActiveSeatsFindResultData);
26
30
  get lastUpdate(): string | null | undefined;
27
31
  get number(): number | null | undefined;
28
- toJSON(): ActiveSeatsFindresultData;
32
+ toJSON(): ActiveSeatsFindResultData;
29
33
  }
@@ -1,4 +1,4 @@
1
- import { ActiveSeatsFindresultData, ActiveSeatsFindResultDataKeywords, ActiveSeatsFindResultDataSortParameters, ActiveSeatsFindResult, ActiveSeatsFindResultDataFiltersParameters } from './activeSeatsFindResult';
1
+ import { ActiveSeatsFindResultData, ActiveSeatsFindResultDataKeywords, ActiveSeatsFindResultDataSortParameters, ActiveSeatsFindResult, ActiveSeatsFindResultDataFiltersParameters } from './activeSeatsFindResult';
2
2
  import { AbstractEntity } from '../../../abstractEntity';
3
3
  import { Rules } from 'validatorjs';
4
4
  import { ConfigFindResultData, ConfigFindResultDataFiltersParameters, ConfigFindResultDataKeywords, ConfigFindResultDataSortParameters } from './configFindResult';
@@ -62,7 +62,7 @@ export declare enum LicenseFindResultFields {
62
62
  */
63
63
  export declare type LicenseFindResultData = {
64
64
  [LicenseFindResultFields.COLUMN_ACCEPT_EULA]: boolean;
65
- [LicenseFindResultFields.COLUMN_ACTIVE_SEATS]: ActiveSeatsFindresultData;
65
+ [LicenseFindResultFields.COLUMN_ACTIVE_SEATS]: ActiveSeatsFindResultData;
66
66
  [LicenseFindResultFields.COLUMN_AUTO_RENEW]: boolean;
67
67
  [LicenseFindResultFields.COLUMN_BASE_SEAT]: number;
68
68
  [LicenseFindResultFields.COLUMN_CATEGORY]: string;
@@ -26,7 +26,7 @@ export declare class WarningFindResult extends AbstractEntity<WarningFindResultD
26
26
  key: string;
27
27
  message: string;
28
28
  };
29
- protected constructor(data: WarningFindResultData);
29
+ constructor(data: WarningFindResultData);
30
30
  get key(): string | undefined;
31
31
  get message(): string | undefined;
32
32
  toJSON(): WarningFindResultData;
@@ -13,5 +13,12 @@ export * from './entities/offer/priceband/saleConstraintsFindResult';
13
13
  export * from './entities/offer/actionFlagsFindResult';
14
14
  export * from './entities/offer/offerFindResult';
15
15
  export * from './entities/offer/priceBandFindResult';
16
+ export * from '../licenses/entities/getLicense/actionMessagesGetResult';
17
+ export * from '../licenses/entities/getLicense/actionsGetResult';
18
+ export * from '../licenses/entities/getLicense/buySellFindResult';
19
+ export * from '../licenses/entities/getLicense/licenseGetResult';
20
+ export * from '../licenses/entities/getLicense/licensePriceGetResult';
21
+ export * from '../licenses/entities/getLicense/orderGetResult';
16
22
  export * from './entities/filterFindResult';
17
23
  export * from './entities/findResult';
24
+ export * from './entities/getResult';
@@ -25,6 +25,13 @@ __exportStar(require("./entities/offer/priceband/saleConstraintsFindResult"), ex
25
25
  __exportStar(require("./entities/offer/actionFlagsFindResult"), exports);
26
26
  __exportStar(require("./entities/offer/offerFindResult"), exports);
27
27
  __exportStar(require("./entities/offer/priceBandFindResult"), exports);
28
+ __exportStar(require("../licenses/entities/getLicense/actionMessagesGetResult"), exports);
29
+ __exportStar(require("../licenses/entities/getLicense/actionsGetResult"), exports);
30
+ __exportStar(require("../licenses/entities/getLicense/buySellFindResult"), exports);
31
+ __exportStar(require("../licenses/entities/getLicense/licenseGetResult"), exports);
32
+ __exportStar(require("../licenses/entities/getLicense/licensePriceGetResult"), exports);
33
+ __exportStar(require("../licenses/entities/getLicense/orderGetResult"), exports);
28
34
  __exportStar(require("./entities/filterFindResult"), exports);
29
35
  __exportStar(require("./entities/findResult"), exports);
36
+ __exportStar(require("./entities/getResult"), exports);
30
37
  //# sourceMappingURL=index.js.map
@@ -11,6 +11,8 @@ import { PriceFindResultDataKeywords, PriceFindResutDataSortParameters } from '.
11
11
  import { OfferFindResultDataFiltersParameters, OfferFindResultDataKeywords, OfferFindResultDataSortParameters } from './entities/offer/offerFindResult';
12
12
  import { ActionFlagsFindResultDataKeywords, ActionFlagsFindResultDataSortParameters } from './entities/offer/actionFlagsFindResult';
13
13
  import { PriceBandFindResultDataKeywords, PriceBandFindResultDataSortParameters } from './entities/offer/priceBandFindResult';
14
+ import { GetData, LicenseGet } from './entities/getResult';
15
+ import { LicenseGetFields } from './entities/getLicense/licenseGetResult';
14
16
  /**
15
17
  * Parameters passable to the request for refining search.
16
18
  */
@@ -178,6 +180,9 @@ export declare type LicenseFindRawPayload = {
178
180
  };
179
181
  [LicenseFindParameters.DATA_HIGHLIGHT]?: boolean;
180
182
  };
183
+ export declare type UpdateSeatsData = {
184
+ [LicenseGetFields.COLUMN_SEATS]: number;
185
+ };
181
186
  export declare class LicensesClient extends AbstractClient {
182
187
  /**
183
188
  * The base path of the Licenses API
@@ -195,6 +200,10 @@ export declare class LicensesClient extends AbstractClient {
195
200
  * The path of the Configs endpoint
196
201
  */
197
202
  private CONFIGS_PATH;
203
+ /**
204
+ * The path of the Seats endpoint
205
+ */
206
+ private SEATS_PATH;
198
207
  /**
199
208
  * Returns the raw result from the find endpoint call
200
209
  *
@@ -220,4 +229,6 @@ export declare class LicensesClient extends AbstractClient {
220
229
  getConfigs(reference: string): AsyncGenerator<ConfigFindResultData>;
221
230
  updateConfigRaw(reference: string, config: ConfigFindResult): Promise<ConfigFindResultData>;
222
231
  updateConfig(reference: string, config: ConfigFindResult): Promise<ConfigFindResult>;
232
+ getLicense(licenseReference: string, parameters?: Parameters): Promise<GetData<LicenseGet>>;
233
+ updateSeats(licenseReference: string, putData: UpdateSeatsData, parameters?: Parameters): Promise<void>;
223
234
  }
@@ -7,6 +7,8 @@ exports.LicensesClient = exports.LicenseFindParameters = void 0;
7
7
  const abstractClient_1 = require("../abstractClient");
8
8
  const findResult_1 = require("./entities/findResult");
9
9
  const configFindResult_1 = require("./entities/license/configFindResult");
10
+ const getResult_1 = require("./entities/getResult");
11
+ const licenseGetResult_1 = require("./entities/getLicense/licenseGetResult");
10
12
  /**
11
13
  * Parameters passable to the request for refining search.
12
14
  */
@@ -120,6 +122,10 @@ class LicensesClient extends abstractClient_1.AbstractClient {
120
122
  * The path of the Configs endpoint
121
123
  */
122
124
  this.CONFIGS_PATH = '/configs';
125
+ /**
126
+ * The path of the Seats endpoint
127
+ */
128
+ this.SEATS_PATH = '/seats';
123
129
  }
124
130
  /**
125
131
  * Returns the raw result from the find endpoint call
@@ -217,6 +223,14 @@ class LicensesClient extends abstractClient_1.AbstractClient {
217
223
  const rawResponse = await this.updateConfigRaw(reference, config);
218
224
  return new configFindResult_1.ConfigFindResult(rawResponse);
219
225
  }
226
+ async getLicense(licenseReference, parameters = {}) {
227
+ this.path = licenseReference;
228
+ return new getResult_1.GetResult(await this.get(parameters)).toJSON();
229
+ }
230
+ updateSeats(licenseReference, putData, parameters = {}) {
231
+ this.path = licenseReference + this.SEATS_PATH;
232
+ return this.put(putData, parameters);
233
+ }
220
234
  }
221
235
  exports.LicensesClient = LicensesClient;
222
236
  //# sourceMappingURL=licensesClient.js.map
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": "2.0.1",
7
+ "version": "2.2.0",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",