@arrowsphere/api-client 1.0.3 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/README.md +2 -1
  3. package/UPGRADING.md +43 -0
  4. package/build/licenses/entities/filterFindResult.d.ts +2 -2
  5. package/build/licenses/entities/findResult.d.ts +17 -9
  6. package/build/licenses/entities/findResult.js +4 -4
  7. package/build/licenses/entities/getLicense/actionMessagesGetResult.d.ts +25 -0
  8. package/build/licenses/entities/getLicense/actionMessagesGetResult.js +69 -0
  9. package/build/licenses/entities/getLicense/actionsGetResult.d.ts +40 -0
  10. package/build/licenses/entities/getLicense/actionsGetResult.js +103 -0
  11. package/build/licenses/entities/getLicense/buySellFindResult.d.ts +16 -0
  12. package/build/licenses/entities/getLicense/buySellFindResult.js +47 -0
  13. package/build/licenses/entities/getLicense/licenseGetResult.d.ts +93 -0
  14. package/build/licenses/entities/getLicense/licenseGetResult.js +244 -0
  15. package/build/licenses/entities/getLicense/licensePriceGetResult.d.ts +17 -0
  16. package/build/licenses/entities/getLicense/licensePriceGetResult.js +56 -0
  17. package/build/licenses/entities/getLicense/orderGetResult.d.ts +16 -0
  18. package/build/licenses/entities/getLicense/orderGetResult.js +47 -0
  19. package/build/licenses/entities/getResult.d.ts +22 -0
  20. package/build/licenses/entities/getResult.js +42 -0
  21. package/build/licenses/entities/license/activeSeatsFindResult.d.ts +33 -0
  22. package/build/licenses/entities/license/activeSeatsFindResult.js +47 -0
  23. package/build/licenses/entities/license/configFindResult.d.ts +37 -0
  24. package/build/licenses/entities/license/configFindResult.js +59 -0
  25. package/build/licenses/entities/license/licenseFindResult.d.ts +266 -13
  26. package/build/licenses/entities/license/licenseFindResult.js +324 -13
  27. package/build/licenses/entities/license/priceFindResult.d.ts +54 -0
  28. package/build/licenses/entities/license/priceFindResult.js +76 -0
  29. package/build/licenses/entities/license/warningFindResult.d.ts +33 -0
  30. package/build/licenses/entities/license/warningFindResult.js +51 -0
  31. package/build/licenses/entities/offer/actionFlagsFindResult.d.ts +37 -0
  32. package/build/licenses/entities/offer/actionFlagsFindResult.js +59 -0
  33. package/build/licenses/entities/offer/offerFindResult.d.ts +63 -0
  34. package/build/licenses/entities/offer/offerFindResult.js +109 -0
  35. package/build/licenses/entities/offer/priceBandFindResult.d.ts +72 -0
  36. package/build/licenses/entities/offer/priceBandFindResult.js +131 -0
  37. package/build/licenses/entities/offer/priceband/billingFindResult.d.ts +37 -0
  38. package/build/licenses/entities/offer/priceband/billingFindResult.js +59 -0
  39. package/build/licenses/entities/offer/priceband/identifiers/arrowsphereFindResult.d.ts +25 -0
  40. package/build/licenses/entities/offer/priceband/identifiers/arrowsphereFindResult.js +43 -0
  41. package/build/licenses/entities/offer/priceband/identifiersFindResult.d.ts +25 -0
  42. package/build/licenses/entities/offer/priceband/identifiersFindResult.js +47 -0
  43. package/build/licenses/entities/offer/priceband/priceBandActionFlagsFindResult.d.ts +49 -0
  44. package/build/licenses/entities/offer/priceband/priceBandActionFlagsFindResult.js +80 -0
  45. package/build/licenses/entities/offer/priceband/priceBandPriceFindResult.d.ts +37 -0
  46. package/build/licenses/entities/offer/priceband/priceBandPriceFindResult.js +59 -0
  47. package/build/licenses/entities/offer/priceband/saleConstraintsFindResult.d.ts +29 -0
  48. package/build/licenses/entities/offer/priceband/saleConstraintsFindResult.js +47 -0
  49. package/build/licenses/index.d.ts +21 -3
  50. package/build/licenses/index.js +21 -3
  51. package/build/licenses/licensesClient.d.ts +93 -29
  52. package/build/licenses/licensesClient.js +72 -0
  53. package/build/publicApiClient.js +3 -1
  54. package/package.json +2 -2
  55. package/build/licenses/entities/license/abstractLicense.d.ts +0 -177
  56. package/build/licenses/entities/license/abstractLicense.js +0 -363
  57. package/build/licenses/entities/offer/licenseOfferFindResult.d.ts +0 -108
  58. package/build/licenses/entities/offer/licenseOfferFindResult.js +0 -232
package/CHANGELOG.md CHANGED
@@ -3,6 +3,75 @@
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.1] - 2022-01-27
7
+
8
+ ### Changed
9
+
10
+ - Fixed type of `GetLicense` endpoint
11
+
12
+ ## [2.1.0] - 2022-01-25
13
+
14
+ ### Added
15
+
16
+ - Add endpoint get license (warning, `LicenseGet` object is different `LicenseFind` Object)
17
+ - `ActiveSeatsFindresultData` has been renamed to `ActiveSeatsFindResultData` and name `ActiveSeatsFindresultData` is marked deprecated
18
+
19
+ ## [2.0.1] - 2022-01-19
20
+
21
+ ### Changed
22
+
23
+ - Fixed type `SortParameters` and `FiltersParameters`
24
+
25
+ ## [2.0.0] - 2022-01-06
26
+
27
+ ### Changed
28
+
29
+ - bad prettier library configuration, adding semicolon in file needed
30
+ - Update Offer object and Licence object
31
+
32
+ #### LicenseFind
33
+ - Add more objects to define a license:
34
+ - Add object Warning as "warnings" field:
35
+ - key
36
+ - message
37
+ - Add object Config as "configs" field :
38
+ - name
39
+ - scope
40
+ - state
41
+ - Update field active_seat, it's now an object of type ActiveSeatsData:
42
+ - ActiveSeatsData:
43
+ - lastUpdate
44
+ - number
45
+ - Update field price, it's now an object of type PriceData
46
+ - PriceData:
47
+ - priceBandArrowsphereSku
48
+ - buy_price
49
+ - sell_price
50
+ - list_price
51
+ - currency
52
+ #### OfferFind
53
+ - Add more objects to define an offer:
54
+ - Add field "classification"
55
+ - Add field "isEnabled"
56
+ - Add field "lastUpdate"
57
+ - Add field "name"
58
+ - Add field "arrowSubCategories"
59
+ - Add object ActionFlags as "actionFlags" field:
60
+ - ActionFlagsData:
61
+ - isAutoRenew
62
+ - isManualProvisioning
63
+ - renewalSku
64
+ - Add object PriceBand as "priceBand" field:
65
+ - PriceBandData:
66
+ - actionFlags
67
+ - billing
68
+ - currency
69
+ - isEnabled
70
+ - marketplace
71
+ - prices
72
+ - saleConstraints
73
+ - identifiers
74
+
6
75
  ## [1.0.3] - 2021-06-21
7
76
 
8
77
  ### Changed
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)
package/UPGRADING.md ADDED
@@ -0,0 +1,43 @@
1
+ # Upgrade guide
2
+
3
+ ## 1.0.3 to 2.0.0
4
+
5
+ ### Changes to the licences client
6
+
7
+ The object `LicensesClient` now has more information. Object `LicenseOfferFindResult` has been removed,
8
+ it's replaced by `OfferFindResult` with new fields, and object `AbstractLicense` extends `LicenseFindResult`
9
+ has more fields.
10
+
11
+ - `LicenseFindResultFields.ACTIVE_SEATS_LAST_UPDATE` has been renamed to `ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE`.
12
+ - `LicenseFindResultFields.ACTIVE_SEATS_NUMBER` has been renamed to `ActiveSeatsFindResultFields.COLUMN_NUMBER`
13
+ - `LicenseFindResultFields.PRICE_BUY_PRICE` has been renamed to `PriceFindResultFields.COLUMN_BUY_PRICE`
14
+ - `LicenseFindResultFields.PRICE_LIST_PRICE` has been renamed to `PriceFindResultFields.COLUMN_LIST_PRICE`
15
+ - `LicenseFindResultFields.PRICE_CURRENCY` has been renamed to `PriceFindResultFields.COLUMN_CURRENCY`
16
+
17
+ - `LicenseOfferFields` has been renamed to `OfferFindResultFields`
18
+ - `LicenseOfferFields.COLUMN_IS_AUTO_RENEW` has been renamed to `ActionFlagsFindResultFields.COLUMN_IS_AUTO_RENEW`
19
+ - `LicenseOfferFields.COLUMN_IS_MANUAL_PROVISIONING` has been renamed to `ActionFlagsFindResultFields.COLUMN_MANUAL_PROVISIONING`
20
+ - `LicenseOfferFields.COLUMN_ACTION_FLAGS` has been renamed to `PriceBandFindResultFields.COLUMN_ACTION_FLAGS`
21
+ - `LicenseOfferFields.COLUMN_CAN_BE_CANCELLED` has been renamed to `PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_CANCELLED`
22
+ - `LicenseOfferFields.COLUMN_CAN_BE_REACTIVATED` has been renamed to `PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_REACTIVATED`
23
+ - `LicenseOfferFields.COLUMN_CAN_BE_SUSPENDED` has been renamed to `PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_SUSPENDED`
24
+ - `LicenseOfferFields.COLUMN_CAN_DECREASE_SEATS` has been renamed to `PriceBandActionFlagsFindResultFields.COLUMN_CAN_DECREASE_SEATS`
25
+ - `LicenseOfferFields.COLUMN_CAN_INCREASE_SEATS` has been renamed to `PriceBandActionFlagsFindResultFields.COLUMN_CAN_INCREASE_SEATS`
26
+ - `LicenseOfferFields.COLUMN_MARKETPLACE` has been renamed to `PriceBandFindResultFields.COLUMN_MARKETPLACE`
27
+ - `LicenseOfferFields.COLUMN_IS_ENABLED` has been renamed to `PriceBandFindResultFields.COLUMN_IS_ENABLED`
28
+ - `LicenseOfferFields.COLUMN_CURRENCY` has been renamed to `PriceBandFindResultFields.COLUMN_CURRENCY`
29
+ - `LicenseOfferFields.COLUMN_PRICES` has been renamed to `PriceBandFindResultFields.COLUMN_PRICES`
30
+ - `LicenseOfferFields.COLUMN_PUBLIC` has been renamed to `PriceBandPriceFindResultFields.COLUMN_PUBLIC`
31
+ - `LicenseOfferFields.COLUMN_BUY` has been renamed to `PriceBandPriceFindResultFields.COLUMN_BUY`
32
+ - `LicenseOfferFields.COLUMN_SELL` has been renamed to `PriceBandPriceFindResultFields.COLUMN_SELL`
33
+ - `LicenseOfferFields.COLUMN_BILLING` has been renamed to `PriceBandFindResultFields.COLUMN_BILLING`
34
+ - `LicenseOfferFields.COLUMN_TERM` has been renamed to `BillingFindResultFields.COLUMN_TERM`
35
+ - `LicenseOfferFields.COLUMN_TYPE` has been renamed to `BillingFindResultFields.COLUMN_TYPE`
36
+ - `LicenseOfferFields.COLUMN_CYCLE` has been renamed to `BillingFindResultFields.COLUMN_CYCLE`
37
+
38
+ Different types have been replaced :
39
+
40
+ - `LicenseOfferFindResultData` becomes `OfferFindResultData`
41
+ - `LicenseDataKeywords` becomes `DataKeywords`
42
+ - `LicenseRawKeywordsParameters` becomes `LicenseRawKeywordsParametersLicence` and `LicenseRawKeywordsParametersOffer`
43
+ - `LicenseRawSortParameters` becomes `LicenseRawSortParametersLicense` and `LicenseRawSortParametersOffer`
@@ -1,10 +1,10 @@
1
1
  import { AbstractEntity } from '../../abstractEntity';
2
- import { LicenseFields } from './license/abstractLicense';
2
+ import { LicenseFindResultFields } from './license/licenseFindResult';
3
3
  /**
4
4
  * Filter data values
5
5
  */
6
6
  export declare type FilterFindResultDataValues = {
7
- [field in LicenseFields]?: unknown;
7
+ [field in LicenseFindResultFields]?: unknown;
8
8
  };
9
9
  /**
10
10
  * Filter data
@@ -1,9 +1,9 @@
1
- import { AbstractEntity } from '../../abstractEntity';
2
- import { LicenseFindRawPayload, LicensesClient } from '../licensesClient';
3
- import { Parameters } from '../../abstractClient';
4
1
  import { LicenseFindResultData } from './license/licenseFindResult';
5
2
  import { FilterFindResultData } from './filterFindResult';
6
- import { LicenseOfferFindResultData } from './offer/licenseOfferFindResult';
3
+ import { AbstractEntity } from '../../abstractEntity';
4
+ import { LicensesClient, LicenseFindRawPayload } from '../licensesClient';
5
+ import { OfferFindResultData } from './offer/offerFindResult';
6
+ import { Parameters } from '../../abstractClient';
7
7
  export declare type FindData = {
8
8
  pagination: {
9
9
  currentPage: number;
@@ -12,19 +12,27 @@ export declare type FindData = {
12
12
  };
13
13
  results: Array<{
14
14
  license: LicenseFindResultData;
15
- offer?: LicenseOfferFindResultData;
15
+ offer?: OfferFindResultData;
16
16
  }>;
17
17
  filters: Array<FilterFindResultData>;
18
18
  };
19
19
  export declare type FindResultData = {
20
20
  results: AsyncGenerator<{
21
21
  license: LicenseFindResultData;
22
- offer?: LicenseOfferFindResultData;
22
+ offer?: OfferFindResultData;
23
23
  }, void, undefined>;
24
24
  filters: FilterFindResultData[];
25
25
  totalPage: number;
26
26
  nbResults: number;
27
27
  };
28
+ export declare type FindConfig = {
29
+ status: number;
30
+ data: Array<{
31
+ name: string;
32
+ scope: string;
33
+ state: string;
34
+ }>;
35
+ };
28
36
  export declare class FindResult extends AbstractEntity<FindData> {
29
37
  #private;
30
38
  /**
@@ -42,7 +50,7 @@ export declare class FindResult extends AbstractEntity<FindData> {
42
50
  */
43
51
  getResultsForCurrentPage(): Generator<{
44
52
  license: LicenseFindResultData;
45
- offer?: LicenseOfferFindResultData;
53
+ offer?: OfferFindResultData;
46
54
  }, void, undefined>;
47
55
  /**
48
56
  * Gets all the licenses from the result, page per page.
@@ -51,11 +59,11 @@ export declare class FindResult extends AbstractEntity<FindData> {
51
59
  */
52
60
  getResults(): AsyncGenerator<{
53
61
  license: LicenseFindResultData;
54
- offer?: LicenseOfferFindResultData;
62
+ offer?: OfferFindResultData;
55
63
  }, void, undefined>;
56
64
  get results(): AsyncGenerator<{
57
65
  license: LicenseFindResultData;
58
- offer?: LicenseOfferFindResultData;
66
+ offer?: OfferFindResultData;
59
67
  }, void, undefined>;
60
68
  get filters(): Array<FilterFindResultData>;
61
69
  get nbResults(): number;
@@ -15,10 +15,10 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
15
15
  var _results, _filters, _client, _postData, _parameters, _currentPage, _totalPage, _nbResults;
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.FindResult = void 0;
18
- const abstractEntity_1 = require("../../abstractEntity");
19
18
  const licenseFindResult_1 = require("./license/licenseFindResult");
20
19
  const filterFindResult_1 = require("./filterFindResult");
21
- const licenseOfferFindResult_1 = require("./offer/licenseOfferFindResult");
20
+ const abstractEntity_1 = require("../../abstractEntity");
21
+ const offerFindResult_1 = require("./offer/offerFindResult");
22
22
  class FindResult extends abstractEntity_1.AbstractEntity {
23
23
  /**
24
24
  * FindResult constructor. Uses the client and request data to go through the pages.
@@ -47,7 +47,7 @@ class FindResult extends abstractEntity_1.AbstractEntity {
47
47
  __classPrivateFieldSet(this, _results, data.results.map((result) => ({
48
48
  license: new licenseFindResult_1.LicenseFindResult(result.license).toJSON(),
49
49
  offer: result.offer
50
- ? new licenseOfferFindResult_1.LicenseOfferFindResult(result.offer).toJSON()
50
+ ? new offerFindResult_1.OfferFindResult(result.offer).toJSON()
51
51
  : undefined,
52
52
  })));
53
53
  __classPrivateFieldSet(this, _filters, data.filters.map((filter) => new filterFindResult_1.FilterFindResult(filter).toJSON()));
@@ -81,7 +81,7 @@ class FindResult extends abstractEntity_1.AbstractEntity {
81
81
  yield {
82
82
  license: new licenseFindResult_1.LicenseFindResult(result.license).toJSON(),
83
83
  offer: result.offer
84
- ? new licenseOfferFindResult_1.LicenseOfferFindResult(result.offer).toJSON()
84
+ ? new offerFindResult_1.OfferFindResult(result.offer).toJSON()
85
85
  : undefined,
86
86
  };
87
87
  }
@@ -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
+ }