@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
@@ -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 _arrowsphere;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.IdentifiersFindResult = exports.IdentifiersFindResultFields = void 0;
18
+ const abstractEntity_1 = require("../../../../abstractEntity");
19
+ const arrowsphereFindResult_1 = require("./identifiers/arrowsphereFindResult");
20
+ var IdentifiersFindResultFields;
21
+ (function (IdentifiersFindResultFields) {
22
+ IdentifiersFindResultFields["COLUMN_ARROWSPHERE"] = "arrowsphere";
23
+ })(IdentifiersFindResultFields = exports.IdentifiersFindResultFields || (exports.IdentifiersFindResultFields = {}));
24
+ class IdentifiersFindResult extends abstractEntity_1.AbstractEntity {
25
+ constructor(data) {
26
+ super(data);
27
+ this.VALIDATION_RULES = {
28
+ [IdentifiersFindResultFields.COLUMN_ARROWSPHERE]: 'present|array',
29
+ };
30
+ _arrowsphere.set(this, void 0);
31
+ const arrowsphere = {
32
+ [arrowsphereFindResult_1.ArrowsphereFindResultFields.COLUMN_SKU]: data[IdentifiersFindResultFields.COLUMN_ARROWSPHERE][arrowsphereFindResult_1.ArrowsphereFindResultFields.COLUMN_SKU],
33
+ };
34
+ __classPrivateFieldSet(this, _arrowsphere, new arrowsphereFindResult_1.ArrowsphereFindResult(arrowsphere));
35
+ }
36
+ get arrowsphere() {
37
+ return __classPrivateFieldGet(this, _arrowsphere);
38
+ }
39
+ toJSON() {
40
+ return {
41
+ [IdentifiersFindResultFields.COLUMN_ARROWSPHERE]: this.arrowsphere.toJSON(),
42
+ };
43
+ }
44
+ }
45
+ exports.IdentifiersFindResult = IdentifiersFindResult;
46
+ _arrowsphere = new WeakMap();
47
+ //# sourceMappingURL=identifiersFindResult.js.map
@@ -0,0 +1,49 @@
1
+ import { DataKeywords, FiltersParameters, SortParameters } from '../../../licensesClient';
2
+ import { AbstractEntity } from '../../../../abstractEntity';
3
+ import { Rules } from 'validatorjs';
4
+ export declare enum PriceBandActionFlagsFindResultFields {
5
+ COLUMN_CAN_BE_CANCELLED = "canBeCancelled",
6
+ COLUMN_CAN_BE_REACTIVATED = "canBeReactivated",
7
+ COLUMN_CAN_BE_SUSPENDED = "canBeSuspended",
8
+ COLUMN_CAN_DECREASE_SEATS = "canDecreaseSeats",
9
+ COLUMN_CAN_INCREASE_SEATS = "canIncreaseSeats"
10
+ }
11
+ export declare type PriceBandActionFlagsFindResultData = {
12
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_CANCELLED]: boolean;
13
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_REACTIVATED]: boolean;
14
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_SUSPENDED]: boolean;
15
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_DECREASE_SEATS]: boolean;
16
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_INCREASE_SEATS]: boolean;
17
+ };
18
+ export declare type PriceBandActionFlagsFindResultDataKeywords = {
19
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_CANCELLED]?: DataKeywords;
20
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_REACTIVATED]?: DataKeywords;
21
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_SUSPENDED]?: DataKeywords;
22
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_DECREASE_SEATS]?: DataKeywords;
23
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_INCREASE_SEATS]?: DataKeywords;
24
+ };
25
+ export declare type PriceBandActionFlagsDataFindResultSortParameters = {
26
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_CANCELLED]?: SortParameters;
27
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_REACTIVATED]?: SortParameters;
28
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_SUSPENDED]?: SortParameters;
29
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_DECREASE_SEATS]?: SortParameters;
30
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_INCREASE_SEATS]?: SortParameters;
31
+ };
32
+ export declare type PriceBandActionFlagsFindResultDataFiltersParameters = {
33
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_CANCELLED]?: FiltersParameters;
34
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_REACTIVATED]?: FiltersParameters;
35
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_SUSPENDED]?: FiltersParameters;
36
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_DECREASE_SEATS]?: FiltersParameters;
37
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_INCREASE_SEATS]?: FiltersParameters;
38
+ };
39
+ export declare class PriceBandActionFlagsFindResult extends AbstractEntity<PriceBandActionFlagsFindResultData> {
40
+ #private;
41
+ protected VALIDATION_RULES: Rules;
42
+ constructor(data: PriceBandActionFlagsFindResultData);
43
+ get canBeCancelled(): boolean;
44
+ get canBeReactivated(): boolean;
45
+ get canBeSuspended(): boolean;
46
+ get canDecreaseSeats(): boolean;
47
+ get canIncreaseSeats(): boolean;
48
+ toJSON(): PriceBandActionFlagsFindResultData;
49
+ }
@@ -0,0 +1,80 @@
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 _canBeCancelled, _canBeReactivated, _canBeSuspended, _canDecreaseSeats, _canIncreaseSeats;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.PriceBandActionFlagsFindResult = exports.PriceBandActionFlagsFindResultFields = void 0;
18
+ const abstractEntity_1 = require("../../../../abstractEntity");
19
+ var PriceBandActionFlagsFindResultFields;
20
+ (function (PriceBandActionFlagsFindResultFields) {
21
+ PriceBandActionFlagsFindResultFields["COLUMN_CAN_BE_CANCELLED"] = "canBeCancelled";
22
+ PriceBandActionFlagsFindResultFields["COLUMN_CAN_BE_REACTIVATED"] = "canBeReactivated";
23
+ PriceBandActionFlagsFindResultFields["COLUMN_CAN_BE_SUSPENDED"] = "canBeSuspended";
24
+ PriceBandActionFlagsFindResultFields["COLUMN_CAN_DECREASE_SEATS"] = "canDecreaseSeats";
25
+ PriceBandActionFlagsFindResultFields["COLUMN_CAN_INCREASE_SEATS"] = "canIncreaseSeats";
26
+ })(PriceBandActionFlagsFindResultFields = exports.PriceBandActionFlagsFindResultFields || (exports.PriceBandActionFlagsFindResultFields = {}));
27
+ class PriceBandActionFlagsFindResult extends abstractEntity_1.AbstractEntity {
28
+ constructor(data) {
29
+ super(data);
30
+ this.VALIDATION_RULES = {
31
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_CANCELLED]: 'required|boolean',
32
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_REACTIVATED]: 'required|boolean',
33
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_SUSPENDED]: 'required|boolean',
34
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_DECREASE_SEATS]: 'required|boolean',
35
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_INCREASE_SEATS]: 'required|boolean',
36
+ };
37
+ _canBeCancelled.set(this, void 0);
38
+ _canBeReactivated.set(this, void 0);
39
+ _canBeSuspended.set(this, void 0);
40
+ _canDecreaseSeats.set(this, void 0);
41
+ _canIncreaseSeats.set(this, void 0);
42
+ __classPrivateFieldSet(this, _canBeCancelled, data[PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_CANCELLED]);
43
+ __classPrivateFieldSet(this, _canBeReactivated, data[PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_REACTIVATED]);
44
+ __classPrivateFieldSet(this, _canBeSuspended, data[PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_SUSPENDED]);
45
+ __classPrivateFieldSet(this, _canDecreaseSeats, data[PriceBandActionFlagsFindResultFields.COLUMN_CAN_DECREASE_SEATS]);
46
+ __classPrivateFieldSet(this, _canIncreaseSeats, data[PriceBandActionFlagsFindResultFields.COLUMN_CAN_INCREASE_SEATS]);
47
+ }
48
+ get canBeCancelled() {
49
+ return __classPrivateFieldGet(this, _canBeCancelled);
50
+ }
51
+ get canBeReactivated() {
52
+ return __classPrivateFieldGet(this, _canBeReactivated);
53
+ }
54
+ get canBeSuspended() {
55
+ return __classPrivateFieldGet(this, _canBeSuspended);
56
+ }
57
+ get canDecreaseSeats() {
58
+ return __classPrivateFieldGet(this, _canDecreaseSeats);
59
+ }
60
+ get canIncreaseSeats() {
61
+ return __classPrivateFieldGet(this, _canIncreaseSeats);
62
+ }
63
+ toJSON() {
64
+ return {
65
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_CANCELLED]: this
66
+ .canBeCancelled,
67
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_REACTIVATED]: this
68
+ .canBeReactivated,
69
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_SUSPENDED]: this
70
+ .canBeSuspended,
71
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_DECREASE_SEATS]: this
72
+ .canDecreaseSeats,
73
+ [PriceBandActionFlagsFindResultFields.COLUMN_CAN_INCREASE_SEATS]: this
74
+ .canIncreaseSeats,
75
+ };
76
+ }
77
+ }
78
+ exports.PriceBandActionFlagsFindResult = PriceBandActionFlagsFindResult;
79
+ _canBeCancelled = new WeakMap(), _canBeReactivated = new WeakMap(), _canBeSuspended = new WeakMap(), _canDecreaseSeats = new WeakMap(), _canIncreaseSeats = new WeakMap();
80
+ //# sourceMappingURL=priceBandActionFlagsFindResult.js.map
@@ -0,0 +1,37 @@
1
+ import { AbstractEntity } from '../../../../abstractEntity';
2
+ import { Rules } from 'validatorjs';
3
+ import { DataKeywords, FiltersParameters, SortParameters } from '../../../licensesClient';
4
+ export declare enum PriceBandPriceFindResultFields {
5
+ COLUMN_BUY = "buy",
6
+ COLUMN_SELL = "sell",
7
+ COLUMN_PUBLIC = "public"
8
+ }
9
+ export declare type PriceBandPriceFindResultData = {
10
+ [PriceBandPriceFindResultFields.COLUMN_BUY]: number;
11
+ [PriceBandPriceFindResultFields.COLUMN_SELL]: number;
12
+ [PriceBandPriceFindResultFields.COLUMN_PUBLIC]: number;
13
+ };
14
+ export declare type PriceBandPriceFindResultDataKeywords = {
15
+ [PriceBandPriceFindResultFields.COLUMN_BUY]?: DataKeywords;
16
+ [PriceBandPriceFindResultFields.COLUMN_SELL]?: DataKeywords;
17
+ [PriceBandPriceFindResultFields.COLUMN_PUBLIC]?: DataKeywords;
18
+ };
19
+ export declare type PriceBandPriceFindResultDataSortParameters = {
20
+ [PriceBandPriceFindResultFields.COLUMN_BUY]?: SortParameters;
21
+ [PriceBandPriceFindResultFields.COLUMN_SELL]?: SortParameters;
22
+ [PriceBandPriceFindResultFields.COLUMN_PUBLIC]?: SortParameters;
23
+ };
24
+ export declare type PriceBandPriceFindResultDataFiltersParameters = {
25
+ [PriceBandPriceFindResultFields.COLUMN_BUY]?: FiltersParameters;
26
+ [PriceBandPriceFindResultFields.COLUMN_SELL]?: FiltersParameters;
27
+ [PriceBandPriceFindResultFields.COLUMN_PUBLIC]?: FiltersParameters;
28
+ };
29
+ export declare class PriceBandPriceFindResult extends AbstractEntity<PriceBandPriceFindResultData> {
30
+ #private;
31
+ protected VALIDATION_RULES: Rules;
32
+ constructor(data: PriceBandPriceFindResultData);
33
+ get buy(): number;
34
+ get sell(): number;
35
+ get public(): number;
36
+ toJSON(): PriceBandPriceFindResultData;
37
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
3
+ if (!privateMap.has(receiver)) {
4
+ throw new TypeError("attempted to set private field on non-instance");
5
+ }
6
+ privateMap.set(receiver, value);
7
+ return value;
8
+ };
9
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
10
+ if (!privateMap.has(receiver)) {
11
+ throw new TypeError("attempted to get private field on non-instance");
12
+ }
13
+ return privateMap.get(receiver);
14
+ };
15
+ var _buy, _sell, _public;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.PriceBandPriceFindResult = exports.PriceBandPriceFindResultFields = void 0;
18
+ const abstractEntity_1 = require("../../../../abstractEntity");
19
+ var PriceBandPriceFindResultFields;
20
+ (function (PriceBandPriceFindResultFields) {
21
+ PriceBandPriceFindResultFields["COLUMN_BUY"] = "buy";
22
+ PriceBandPriceFindResultFields["COLUMN_SELL"] = "sell";
23
+ PriceBandPriceFindResultFields["COLUMN_PUBLIC"] = "public";
24
+ })(PriceBandPriceFindResultFields = exports.PriceBandPriceFindResultFields || (exports.PriceBandPriceFindResultFields = {}));
25
+ class PriceBandPriceFindResult extends abstractEntity_1.AbstractEntity {
26
+ constructor(data) {
27
+ super(data);
28
+ this.VALIDATION_RULES = {
29
+ [PriceBandPriceFindResultFields.COLUMN_BUY]: 'required|numeric',
30
+ [PriceBandPriceFindResultFields.COLUMN_SELL]: 'required|numeric',
31
+ [PriceBandPriceFindResultFields.COLUMN_PUBLIC]: 'required|numeric',
32
+ };
33
+ _buy.set(this, void 0);
34
+ _sell.set(this, void 0);
35
+ _public.set(this, void 0);
36
+ __classPrivateFieldSet(this, _buy, data[PriceBandPriceFindResultFields.COLUMN_BUY]);
37
+ __classPrivateFieldSet(this, _sell, data[PriceBandPriceFindResultFields.COLUMN_SELL]);
38
+ __classPrivateFieldSet(this, _public, data[PriceBandPriceFindResultFields.COLUMN_PUBLIC]);
39
+ }
40
+ get buy() {
41
+ return __classPrivateFieldGet(this, _buy);
42
+ }
43
+ get sell() {
44
+ return __classPrivateFieldGet(this, _sell);
45
+ }
46
+ get public() {
47
+ return __classPrivateFieldGet(this, _public);
48
+ }
49
+ toJSON() {
50
+ return {
51
+ [PriceBandPriceFindResultFields.COLUMN_BUY]: this.buy,
52
+ [PriceBandPriceFindResultFields.COLUMN_SELL]: this.sell,
53
+ [PriceBandPriceFindResultFields.COLUMN_PUBLIC]: this.public,
54
+ };
55
+ }
56
+ }
57
+ exports.PriceBandPriceFindResult = PriceBandPriceFindResult;
58
+ _buy = new WeakMap(), _sell = new WeakMap(), _public = new WeakMap();
59
+ //# sourceMappingURL=priceBandPriceFindResult.js.map
@@ -0,0 +1,29 @@
1
+ import { DataKeywords, FiltersParameters, SortParameters } from '../../../licensesClient';
2
+ import { AbstractEntity } from '../../../../abstractEntity';
3
+ export declare enum SaleConstraintsFindResultFields {
4
+ COLUMN_MIN_QUANTITY = "minQuantity",
5
+ COLUMN_MAX_QUANTITY = "maxQuantity"
6
+ }
7
+ export declare type SaleConstraintsFindResultData = {
8
+ [SaleConstraintsFindResultFields.COLUMN_MIN_QUANTITY]: number | null;
9
+ [SaleConstraintsFindResultFields.COLUMN_MAX_QUANTITY]: number | null;
10
+ };
11
+ export declare type SaleConstraintsFindResultDataKeywords = {
12
+ [SaleConstraintsFindResultFields.COLUMN_MIN_QUANTITY]?: DataKeywords;
13
+ [SaleConstraintsFindResultFields.COLUMN_MAX_QUANTITY]?: DataKeywords;
14
+ };
15
+ export declare type SaleConstraintsFindResultDataSortParameters = {
16
+ [SaleConstraintsFindResultFields.COLUMN_MIN_QUANTITY]?: SortParameters;
17
+ [SaleConstraintsFindResultFields.COLUMN_MAX_QUANTITY]?: SortParameters;
18
+ };
19
+ export declare type SaleConstraintsFindResultDataFiltersParameters = {
20
+ [SaleConstraintsFindResultFields.COLUMN_MIN_QUANTITY]?: FiltersParameters;
21
+ [SaleConstraintsFindResultFields.COLUMN_MAX_QUANTITY]?: FiltersParameters;
22
+ };
23
+ export declare class SaleConstraintsFindResult extends AbstractEntity<SaleConstraintsFindResultData> {
24
+ #private;
25
+ constructor(data: SaleConstraintsFindResultData);
26
+ get minQuantity(): number | null;
27
+ get maxQuantity(): number | null;
28
+ toJSON(): SaleConstraintsFindResultData;
29
+ }
@@ -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 _minQuantity, _maxQuantity;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.SaleConstraintsFindResult = exports.SaleConstraintsFindResultFields = void 0;
18
+ const abstractEntity_1 = require("../../../../abstractEntity");
19
+ var SaleConstraintsFindResultFields;
20
+ (function (SaleConstraintsFindResultFields) {
21
+ SaleConstraintsFindResultFields["COLUMN_MIN_QUANTITY"] = "minQuantity";
22
+ SaleConstraintsFindResultFields["COLUMN_MAX_QUANTITY"] = "maxQuantity";
23
+ })(SaleConstraintsFindResultFields = exports.SaleConstraintsFindResultFields || (exports.SaleConstraintsFindResultFields = {}));
24
+ class SaleConstraintsFindResult extends abstractEntity_1.AbstractEntity {
25
+ constructor(data) {
26
+ super(data);
27
+ _minQuantity.set(this, void 0);
28
+ _maxQuantity.set(this, void 0);
29
+ __classPrivateFieldSet(this, _minQuantity, data[SaleConstraintsFindResultFields.COLUMN_MIN_QUANTITY]);
30
+ __classPrivateFieldSet(this, _maxQuantity, data[SaleConstraintsFindResultFields.COLUMN_MAX_QUANTITY]);
31
+ }
32
+ get minQuantity() {
33
+ return __classPrivateFieldGet(this, _minQuantity);
34
+ }
35
+ get maxQuantity() {
36
+ return __classPrivateFieldGet(this, _maxQuantity);
37
+ }
38
+ toJSON() {
39
+ return {
40
+ [SaleConstraintsFindResultFields.COLUMN_MIN_QUANTITY]: this.minQuantity,
41
+ [SaleConstraintsFindResultFields.COLUMN_MAX_QUANTITY]: this.maxQuantity,
42
+ };
43
+ }
44
+ }
45
+ exports.SaleConstraintsFindResult = SaleConstraintsFindResult;
46
+ _minQuantity = new WeakMap(), _maxQuantity = new WeakMap();
47
+ //# sourceMappingURL=saleConstraintsFindResult.js.map
@@ -1,6 +1,24 @@
1
1
  export * from './licensesClient';
2
- export * from './entities/license/abstractLicense';
2
+ export * from './entities/license/activeSeatsFindResult';
3
+ export * from './entities/license/configFindResult';
4
+ export * from './entities/license/licenseFindResult';
5
+ export * from './entities/license/priceFindResult';
6
+ export * from './entities/license/warningFindResult';
7
+ export * from './entities/offer/priceband/identifiers/arrowsphereFindResult';
8
+ export * from './entities/offer/priceband/billingFindResult';
9
+ export * from './entities/offer/priceband/identifiersFindResult';
10
+ export * from './entities/offer/priceband/priceBandActionFlagsFindResult';
11
+ export * from './entities/offer/priceband/priceBandPriceFindResult';
12
+ export * from './entities/offer/priceband/saleConstraintsFindResult';
13
+ export * from './entities/offer/actionFlagsFindResult';
14
+ export * from './entities/offer/offerFindResult';
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';
3
22
  export * from './entities/filterFindResult';
4
23
  export * from './entities/findResult';
5
- export * from './entities/license/licenseFindResult';
6
- export * from './entities/offer/licenseOfferFindResult';
24
+ export * from './entities/getResult';
@@ -11,9 +11,27 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./licensesClient"), exports);
14
- __exportStar(require("./entities/license/abstractLicense"), exports);
14
+ __exportStar(require("./entities/license/activeSeatsFindResult"), exports);
15
+ __exportStar(require("./entities/license/configFindResult"), exports);
16
+ __exportStar(require("./entities/license/licenseFindResult"), exports);
17
+ __exportStar(require("./entities/license/priceFindResult"), exports);
18
+ __exportStar(require("./entities/license/warningFindResult"), exports);
19
+ __exportStar(require("./entities/offer/priceband/identifiers/arrowsphereFindResult"), exports);
20
+ __exportStar(require("./entities/offer/priceband/billingFindResult"), exports);
21
+ __exportStar(require("./entities/offer/priceband/identifiersFindResult"), exports);
22
+ __exportStar(require("./entities/offer/priceband/priceBandActionFlagsFindResult"), exports);
23
+ __exportStar(require("./entities/offer/priceband/priceBandPriceFindResult"), exports);
24
+ __exportStar(require("./entities/offer/priceband/saleConstraintsFindResult"), exports);
25
+ __exportStar(require("./entities/offer/actionFlagsFindResult"), exports);
26
+ __exportStar(require("./entities/offer/offerFindResult"), exports);
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);
15
34
  __exportStar(require("./entities/filterFindResult"), exports);
16
35
  __exportStar(require("./entities/findResult"), exports);
17
- __exportStar(require("./entities/license/licenseFindResult"), exports);
18
- __exportStar(require("./entities/offer/licenseOfferFindResult"), exports);
36
+ __exportStar(require("./entities/getResult"), exports);
19
37
  //# sourceMappingURL=index.js.map
@@ -2,9 +2,16 @@
2
2
  * Class LicensesClient
3
3
  */
4
4
  import { AbstractClient, Parameters } from '../abstractClient';
5
- import { FindData, FindResult } from './entities/findResult';
6
- import { LicenseFields } from './entities/license/abstractLicense';
7
- import { LicenseOfferFields } from './entities/offer/licenseOfferFindResult';
5
+ import { FindConfig, FindData, FindResult } from './entities/findResult';
6
+ import { ConfigFindResult, ConfigFindResultData, ConfigFindResultDataKeywords, ConfigFindResultDataSortParameters } from './entities/license/configFindResult';
7
+ import { LicenceFindDataFiltersParameters, LicenceFindDataKeywords, LicenceFindDataSortParameters } from './entities/license/licenseFindResult';
8
+ import { ActiveSeatsFindResultDataKeywords, ActiveSeatsFindResultDataSortParameters } from './entities/license/activeSeatsFindResult';
9
+ import { WarningFindResultDataKeywords, WarningFindResultDataSortParameters } from './entities/license/warningFindResult';
10
+ import { PriceFindResultDataKeywords, PriceFindResutDataSortParameters } from './entities/license/priceFindResult';
11
+ import { OfferFindResultDataFiltersParameters, OfferFindResultDataKeywords, OfferFindResultDataSortParameters } from './entities/offer/offerFindResult';
12
+ import { ActionFlagsFindResultDataKeywords, ActionFlagsFindResultDataSortParameters } from './entities/offer/actionFlagsFindResult';
13
+ import { PriceBandFindResultDataKeywords, PriceBandFindResultDataSortParameters } from './entities/offer/priceBandFindResult';
14
+ import { GetData, LicenseGet } from './entities/getResult';
8
15
  /**
9
16
  * Parameters passable to the request for refining search.
10
17
  */
@@ -56,12 +63,52 @@ export declare enum LicenseFindParameters {
56
63
  /**
57
64
  * Use this operator to search for all keywords with values in the range specified (for date ranges)
58
65
  */
59
- OPERATOR_BETWEEN = "BETWEEN"
66
+ OPERATOR_BETWEEN = "BETWEEN",
67
+ /**
68
+ * Use this operator to search with a compare field Equal
69
+ */
70
+ OPERATOR_EQ = "EQ",
71
+ /**
72
+ * Use this operator to search with a compare field Not Equal
73
+ */
74
+ OPERATOR_NEQ = "NEQ",
75
+ /**
76
+ * Use this operator to search with a compare field Greater Than
77
+ */
78
+ OPERATOR_GT = "GT",
79
+ /**
80
+ * Use this operator to search with a compare field Greater Than or Equal
81
+ */
82
+ OPERATOR_GTE = "GTE",
83
+ /**
84
+ * Use this operator to search with a compare field Lower Than
85
+ */
86
+ OPERATOR_LT = "LT",
87
+ /**
88
+ * Use this operator to search with a compare field Lower Than or Equal
89
+ */
90
+ OPERATOR_LTE = "LTE",
91
+ /**
92
+ * Use this filter to compare 2 value with other filter like FILTERS_GTE / FILTERS_LT / FILTERS_LTE
93
+ */
94
+ FILTERS_GT = "gt",
95
+ /**
96
+ * Use this filter to compare 2 value with other filter like FILTERS_GT / FILTERS_LT / FILTERS_LTE
97
+ */
98
+ FILTERS_GTE = "gte",
99
+ /**
100
+ * Use this filter to compare 2 value with other filter like FILTERS_GT / FILTERS_GTE / FILTERS_LTE
101
+ */
102
+ FILTERS_LT = "lt",
103
+ /**
104
+ * Use this filter to compare 2 value with other filter like FILTERS_GT / FILTERS_GTE / FILTERS_LT
105
+ */
106
+ FILTERS_LTE = "lte"
60
107
  }
61
108
  /**
62
109
  * List of keywords to search with.
63
110
  */
64
- export declare type LicenseDataKeywords = {
111
+ export declare type DataKeywords = {
65
112
  [LicenseFindParameters.KEYWORDS_OPERATOR]: LicenseFindParameters.OPERATOR_AND | LicenseFindParameters.OPERATOR_OR | LicenseFindParameters.OPERATOR_BETWEEN;
66
113
  [LicenseFindParameters.KEYWORDS_VALUES]: string[];
67
114
  };
@@ -69,40 +116,42 @@ export declare type LicenseDataKeywords = {
69
116
  * Keywords parameters to pass to the request
70
117
  */
71
118
  export declare type LicenseKeywordsParameters = {
72
- license?: {
73
- [field in LicenseFields]?: LicenseDataKeywords;
74
- };
75
- offer?: {
76
- [field in LicenseOfferFields]?: LicenseDataKeywords;
77
- };
119
+ license?: LicenceFindDataKeywords;
120
+ offer?: OfferFindResultDataKeywords;
121
+ };
122
+ export declare type LicenseRawKeywordsParametersLicence = {
123
+ [field: string]: DataKeywords | ActiveSeatsFindResultDataKeywords | ConfigFindResultDataKeywords | WarningFindResultDataKeywords | PriceFindResultDataKeywords | undefined;
78
124
  };
79
- export declare type LicenseRawKeywordsParameters = {
80
- [field: string]: LicenseDataKeywords | undefined;
125
+ export declare type LicenseRawKeywordsParametersOffer = {
126
+ [field: string]: DataKeywords | ActionFlagsFindResultDataKeywords | PriceBandFindResultDataKeywords | undefined;
81
127
  };
128
+ export declare type SortParameters = LicenseFindParameters.SORT_ASCENDING | LicenseFindParameters.SORT_DESCENDING;
82
129
  /**
83
130
  * Sort parameters to pass to the request
84
131
  */
85
132
  export declare type LicenseSortParameters = {
86
- license?: {
87
- [field in LicenseFields]?: LicenseFindParameters.SORT_ASCENDING | LicenseFindParameters.SORT_DESCENDING;
88
- };
89
- offer?: {
90
- [field in LicenseOfferFields]?: LicenseFindParameters.SORT_ASCENDING | LicenseFindParameters.SORT_DESCENDING;
91
- };
133
+ license?: LicenceFindDataSortParameters;
134
+ offer?: OfferFindResultDataSortParameters;
92
135
  };
93
- export declare type LicenseRawSortParameters = {
94
- [field: string]: string | undefined;
136
+ export declare type LicenseRawSortParametersLicense = {
137
+ [field: string]: SortParameters | ActiveSeatsFindResultDataSortParameters | ConfigFindResultDataSortParameters | WarningFindResultDataSortParameters | PriceFindResutDataSortParameters | undefined;
95
138
  };
139
+ export declare type LicenseRawSortParametersOffer = {
140
+ [field: string]: SortParameters | ActionFlagsFindResultDataSortParameters | PriceBandFindResultDataSortParameters | undefined;
141
+ };
142
+ export declare type FiltersCompareValue = {
143
+ [LicenseFindParameters.FILTERS_GT]?: string | number;
144
+ [LicenseFindParameters.FILTERS_GTE]?: string | number;
145
+ [LicenseFindParameters.FILTERS_LT]?: string | number;
146
+ [LicenseFindParameters.FILTERS_LTE]?: string | number;
147
+ };
148
+ export declare type FiltersParameters = string | string[] | number | number[] | boolean | FiltersCompareValue;
96
149
  /**
97
150
  * Filter parameters to pass to the request.
98
151
  */
99
152
  export declare type LicenseFiltersParameters = {
100
- license?: {
101
- [field in LicenseFields]?: unknown;
102
- };
103
- offer?: {
104
- [field in LicenseOfferFields]?: unknown;
105
- };
153
+ license?: LicenceFindDataFiltersParameters;
154
+ offer?: OfferFindResultDataFiltersParameters;
106
155
  };
107
156
  export declare type LicenseRawFiltersParameters = {
108
157
  [field: string]: unknown;
@@ -119,9 +168,15 @@ export declare type LicenseFindPayload = {
119
168
  };
120
169
  export declare type LicenseFindRawPayload = {
121
170
  [LicenseFindParameters.DATA_KEYWORD]?: string;
122
- [LicenseFindParameters.DATA_KEYWORDS]?: LicenseRawKeywordsParameters;
171
+ [LicenseFindParameters.DATA_KEYWORDS]?: {
172
+ license?: LicenseRawKeywordsParametersLicence;
173
+ offer?: LicenseRawKeywordsParametersOffer;
174
+ };
123
175
  [LicenseFindParameters.DATA_FILTERS]?: LicenseRawFiltersParameters;
124
- [LicenseFindParameters.DATA_SORT]?: LicenseRawSortParameters;
176
+ [LicenseFindParameters.DATA_SORT]?: {
177
+ license?: LicenseRawSortParametersLicense;
178
+ offer?: LicenseRawSortParametersOffer;
179
+ };
125
180
  [LicenseFindParameters.DATA_HIGHLIGHT]?: boolean;
126
181
  };
127
182
  export declare class LicensesClient extends AbstractClient {
@@ -137,6 +192,10 @@ export declare class LicensesClient extends AbstractClient {
137
192
  * The path of the Find endpoint
138
193
  */
139
194
  private FIND_PATH;
195
+ /**
196
+ * The path of the Configs endpoint
197
+ */
198
+ private CONFIGS_PATH;
140
199
  /**
141
200
  * Returns the raw result from the find endpoint call
142
201
  *
@@ -158,4 +217,9 @@ export declare class LicensesClient extends AbstractClient {
158
217
  *
159
218
  */
160
219
  find(postData?: LicenseFindPayload, perPage?: number, page?: number, parameters?: Parameters): Promise<FindResult>;
220
+ getConfigsRaw(reference: string): Promise<FindConfig>;
221
+ getConfigs(reference: string): AsyncGenerator<ConfigFindResultData>;
222
+ updateConfigRaw(reference: string, config: ConfigFindResult): Promise<ConfigFindResultData>;
223
+ updateConfig(reference: string, config: ConfigFindResult): Promise<ConfigFindResult>;
224
+ getLicense(licenseReference: string, parameters?: Parameters): Promise<GetData<LicenseGet>>;
161
225
  }