@arrowsphere/api-client 2.0.1 → 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 CHANGED
@@ -3,6 +3,13 @@
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.1.0] - 2022-01-25
7
+
8
+ ### Added
9
+
10
+ - Add endpoint get license (warning, `LicenseGet` object is different `LicenseFind` Object)
11
+ - `ActiveSeatsFindresultData` has been renamed to `ActiveSeatsFindResultData` and name `ActiveSeatsFindresultData` is marked deprecated
12
+
6
13
  ## [2.0.1] - 2022-01-19
7
14
 
8
15
  ### Changed
@@ -16,7 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
16
23
  - bad prettier library configuration, adding semicolon in file needed
17
24
  - Update Offer object and Licence object
18
25
 
19
- #### License
26
+ #### LicenseFind
20
27
  - Add more objects to define a license:
21
28
  - Add object Warning as "warnings" field:
22
29
  - key
@@ -36,7 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
36
43
  - sell_price
37
44
  - list_price
38
45
  - currency
39
- #### Offer
46
+ #### OfferFind
40
47
  - Add more objects to define an offer:
41
48
  - Add field "classification"
42
49
  - 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)
@@ -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;
21
+ get maxDecrease(): number;
22
+ get supportedUntil(): string;
23
+ get suspendDate(): string;
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;
31
+ get increaseSeats(): string;
32
+ get decreaseSeats(): string;
33
+ get addonsCatalog(): string;
34
+ get suspend(): string;
35
+ get reactivate(): string;
36
+ get autoRenewOff(): string;
37
+ get autoRenewOn(): string;
38
+ get cancel(): string;
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;
14
+ get sell(): number;
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 { 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;
38
+ [LicenseGetFields.COLUMN_FRIENDLY_NAME]: string;
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;
47
+ [LicenseGetFields.COLUMN_EXPIRY_DATETIME]: string;
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;
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>;
62
+ };
63
+ export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
64
+ #private;
65
+ constructor(data: LicenseGetData);
66
+ get id(): string;
67
+ get parentLicenseId(): string;
68
+ get friendlyName(): string;
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;
77
+ get expiryDatetime(): string;
78
+ get autoRenew(): boolean;
79
+ get message(): string;
80
+ get actions(): ActionsGetResult;
81
+ get actionMessages(): Array<ActionMessagesGetResultData>;
82
+ get orderReference(): string;
83
+ get order(): OrderGetResult;
84
+ get vendorLicenseId(): string;
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>;
92
+ toJSON(): LicenseGetData;
93
+ }
@@ -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
@@ -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,11 @@ 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';
@@ -25,6 +25,12 @@ __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);
30
36
  //# sourceMappingURL=index.js.map
@@ -11,6 +11,7 @@ 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 { LicenseGetData } from './entities/getLicense/licenseGetResult';
14
15
  /**
15
16
  * Parameters passable to the request for refining search.
16
17
  */
@@ -220,4 +221,5 @@ export declare class LicensesClient extends AbstractClient {
220
221
  getConfigs(reference: string): AsyncGenerator<ConfigFindResultData>;
221
222
  updateConfigRaw(reference: string, config: ConfigFindResult): Promise<ConfigFindResultData>;
222
223
  updateConfig(reference: string, config: ConfigFindResult): Promise<ConfigFindResult>;
224
+ getLicense(licenseReference: string, parameters?: Parameters): Promise<LicenseGetData>;
223
225
  }
@@ -217,6 +217,10 @@ class LicensesClient extends abstractClient_1.AbstractClient {
217
217
  const rawResponse = await this.updateConfigRaw(reference, config);
218
218
  return new configFindResult_1.ConfigFindResult(rawResponse);
219
219
  }
220
+ getLicense(licenseReference, parameters = {}) {
221
+ this.path = licenseReference;
222
+ return this.get(parameters);
223
+ }
220
224
  }
221
225
  exports.LicensesClient = LicensesClient;
222
226
  //# 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.1.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",