@arrowsphere/api-client 1.0.1 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/CHANGELOG.md +70 -2
  2. package/UPGRADING.md +43 -0
  3. package/build/licenses/entities/filterFindResult.d.ts +2 -2
  4. package/build/licenses/entities/findResult.d.ts +17 -9
  5. package/build/licenses/entities/findResult.js +4 -4
  6. package/build/licenses/entities/license/activeSeatsFindResult.d.ts +29 -0
  7. package/build/licenses/entities/license/activeSeatsFindResult.js +47 -0
  8. package/build/licenses/entities/license/configFindResult.d.ts +37 -0
  9. package/build/licenses/entities/license/configFindResult.js +59 -0
  10. package/build/licenses/entities/license/licenseFindResult.d.ts +266 -13
  11. package/build/licenses/entities/license/licenseFindResult.js +324 -13
  12. package/build/licenses/entities/license/priceFindResult.d.ts +54 -0
  13. package/build/licenses/entities/license/priceFindResult.js +76 -0
  14. package/build/licenses/entities/license/warningFindResult.d.ts +33 -0
  15. package/build/licenses/entities/license/warningFindResult.js +51 -0
  16. package/build/licenses/entities/offer/actionFlagsFindResult.d.ts +37 -0
  17. package/build/licenses/entities/offer/actionFlagsFindResult.js +59 -0
  18. package/build/licenses/entities/offer/offerFindResult.d.ts +63 -0
  19. package/build/licenses/entities/offer/offerFindResult.js +109 -0
  20. package/build/licenses/entities/offer/priceBandFindResult.d.ts +72 -0
  21. package/build/licenses/entities/offer/priceBandFindResult.js +131 -0
  22. package/build/licenses/entities/offer/priceband/billingFindResult.d.ts +37 -0
  23. package/build/licenses/entities/offer/priceband/billingFindResult.js +59 -0
  24. package/build/licenses/entities/offer/priceband/identifiers/arrowsphereFindResult.d.ts +25 -0
  25. package/build/licenses/entities/offer/priceband/identifiers/arrowsphereFindResult.js +43 -0
  26. package/build/licenses/entities/offer/priceband/identifiersFindResult.d.ts +25 -0
  27. package/build/licenses/entities/offer/priceband/identifiersFindResult.js +47 -0
  28. package/build/licenses/entities/offer/priceband/priceBandActionFlagsFindResult.d.ts +49 -0
  29. package/build/licenses/entities/offer/priceband/priceBandActionFlagsFindResult.js +80 -0
  30. package/build/licenses/entities/offer/priceband/priceBandPriceFindResult.d.ts +37 -0
  31. package/build/licenses/entities/offer/priceband/priceBandPriceFindResult.js +59 -0
  32. package/build/licenses/entities/offer/priceband/saleConstraintsFindResult.d.ts +29 -0
  33. package/build/licenses/entities/offer/priceband/saleConstraintsFindResult.js +47 -0
  34. package/build/licenses/index.d.ts +14 -3
  35. package/build/licenses/index.js +14 -3
  36. package/build/licenses/licensesClient.d.ts +96 -18
  37. package/build/licenses/licensesClient.js +95 -3
  38. package/build/publicApiClient.js +3 -1
  39. package/package.json +2 -2
  40. package/build/licenses/entities/license/abstractLicense.d.ts +0 -177
  41. package/build/licenses/entities/license/abstractLicense.js +0 -363
  42. package/build/licenses/entities/offer/licenseOfferFindResult.d.ts +0 -108
  43. package/build/licenses/entities/offer/licenseOfferFindResult.js +0 -232
@@ -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,17 @@
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';
3
16
  export * from './entities/filterFindResult';
4
17
  export * from './entities/findResult';
5
- export * from './entities/license/licenseFindResult';
6
- export * from './entities/offer/licenseOfferFindResult';
@@ -11,9 +11,20 @@ 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);
15
28
  __exportStar(require("./entities/filterFindResult"), exports);
16
29
  __exportStar(require("./entities/findResult"), exports);
17
- __exportStar(require("./entities/license/licenseFindResult"), exports);
18
- __exportStar(require("./entities/offer/licenseOfferFindResult"), exports);
19
30
  //# sourceMappingURL=index.js.map
@@ -2,9 +2,15 @@
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';
8
14
  /**
9
15
  * Parameters passable to the request for refining search.
10
16
  */
@@ -56,12 +62,52 @@ export declare enum LicenseFindParameters {
56
62
  /**
57
63
  * Use this operator to search for all keywords with values in the range specified (for date ranges)
58
64
  */
59
- OPERATOR_BETWEEN = "BETWEEN"
65
+ OPERATOR_BETWEEN = "BETWEEN",
66
+ /**
67
+ * Use this operator to search with a compare field Equal
68
+ */
69
+ OPERATOR_EQ = "EQ",
70
+ /**
71
+ * Use this operator to search with a compare field Not Equal
72
+ */
73
+ OPERATOR_NEQ = "NEQ",
74
+ /**
75
+ * Use this operator to search with a compare field Greater Than
76
+ */
77
+ OPERATOR_GT = "GT",
78
+ /**
79
+ * Use this operator to search with a compare field Greater Than or Equal
80
+ */
81
+ OPERATOR_GTE = "GTE",
82
+ /**
83
+ * Use this operator to search with a compare field Lower Than
84
+ */
85
+ OPERATOR_LT = "LT",
86
+ /**
87
+ * Use this operator to search with a compare field Lower Than or Equal
88
+ */
89
+ OPERATOR_LTE = "LTE",
90
+ /**
91
+ * Use this filter to compare 2 value with other filter like FILTERS_GTE / FILTERS_LT / FILTERS_LTE
92
+ */
93
+ FILTERS_GT = "gt",
94
+ /**
95
+ * Use this filter to compare 2 value with other filter like FILTERS_GT / FILTERS_LT / FILTERS_LTE
96
+ */
97
+ FILTERS_GTE = "gte",
98
+ /**
99
+ * Use this filter to compare 2 value with other filter like FILTERS_GT / FILTERS_GTE / FILTERS_LTE
100
+ */
101
+ FILTERS_LT = "lt",
102
+ /**
103
+ * Use this filter to compare 2 value with other filter like FILTERS_GT / FILTERS_GTE / FILTERS_LT
104
+ */
105
+ FILTERS_LTE = "lte"
60
106
  }
61
107
  /**
62
108
  * List of keywords to search with.
63
109
  */
64
- export declare type LicenseDataKeywords = {
110
+ export declare type DataKeywords = {
65
111
  [LicenseFindParameters.KEYWORDS_OPERATOR]: LicenseFindParameters.OPERATOR_AND | LicenseFindParameters.OPERATOR_OR | LicenseFindParameters.OPERATOR_BETWEEN;
66
112
  [LicenseFindParameters.KEYWORDS_VALUES]: string[];
67
113
  };
@@ -69,27 +115,45 @@ export declare type LicenseDataKeywords = {
69
115
  * Keywords parameters to pass to the request
70
116
  */
71
117
  export declare type LicenseKeywordsParameters = {
72
- license?: {
73
- [field in LicenseFields]?: LicenseDataKeywords;
74
- };
75
- offer?: {
76
- [field in LicenseOfferFields]?: LicenseDataKeywords;
77
- };
118
+ license?: LicenceFindDataKeywords;
119
+ offer?: OfferFindResultDataKeywords;
120
+ };
121
+ export declare type LicenseRawKeywordsParametersLicence = {
122
+ [field: string]: DataKeywords | ActiveSeatsFindResultDataKeywords | ConfigFindResultDataKeywords | WarningFindResultDataKeywords | PriceFindResultDataKeywords | undefined;
78
123
  };
79
- export declare type LicenseRawKeywordsParameters = {
80
- [field: string]: LicenseDataKeywords | undefined;
124
+ export declare type LicenseRawKeywordsParametersOffer = {
125
+ [field: string]: DataKeywords | ActionFlagsFindResultDataKeywords | PriceBandFindResultDataKeywords | undefined;
81
126
  };
127
+ export declare type SortParameters = LicenseFindParameters.SORT_ASCENDING | LicenseFindParameters.SORT_DESCENDING;
82
128
  /**
83
129
  * Sort parameters to pass to the request
84
130
  */
85
131
  export declare type LicenseSortParameters = {
86
- [field in LicenseFields]?: LicenseFindParameters.SORT_ASCENDING | LicenseFindParameters.SORT_DESCENDING;
132
+ license?: LicenceFindDataSortParameters;
133
+ offer?: OfferFindResultDataSortParameters;
134
+ };
135
+ export declare type LicenseRawSortParametersLicense = {
136
+ [field: string]: SortParameters | ActiveSeatsFindResultDataSortParameters | ConfigFindResultDataSortParameters | WarningFindResultDataSortParameters | PriceFindResutDataSortParameters | undefined;
137
+ };
138
+ export declare type LicenseRawSortParametersOffer = {
139
+ [field: string]: SortParameters | ActionFlagsFindResultDataSortParameters | PriceBandFindResultDataSortParameters | undefined;
87
140
  };
141
+ export declare type FiltersCompareValue = {
142
+ [LicenseFindParameters.FILTERS_GT]?: string | number;
143
+ [LicenseFindParameters.FILTERS_GTE]?: string | number;
144
+ [LicenseFindParameters.FILTERS_LT]?: string | number;
145
+ [LicenseFindParameters.FILTERS_LTE]?: string | number;
146
+ };
147
+ export declare type FiltersParameters = string | string[] | number | number[] | boolean | FiltersCompareValue;
88
148
  /**
89
149
  * Filter parameters to pass to the request.
90
150
  */
91
151
  export declare type LicenseFiltersParameters = {
92
- [field in LicenseFields]?: unknown;
152
+ license?: LicenceFindDataFiltersParameters;
153
+ offer?: OfferFindResultDataFiltersParameters;
154
+ };
155
+ export declare type LicenseRawFiltersParameters = {
156
+ [field: string]: unknown;
93
157
  };
94
158
  /**
95
159
  * Payload to pass the find request. Contains keyword(s), sort options, column filters and highlight option.
@@ -103,9 +167,15 @@ export declare type LicenseFindPayload = {
103
167
  };
104
168
  export declare type LicenseFindRawPayload = {
105
169
  [LicenseFindParameters.DATA_KEYWORD]?: string;
106
- [LicenseFindParameters.DATA_KEYWORDS]?: LicenseRawKeywordsParameters;
107
- [LicenseFindParameters.DATA_FILTERS]?: LicenseFiltersParameters;
108
- [LicenseFindParameters.DATA_SORT]?: LicenseSortParameters;
170
+ [LicenseFindParameters.DATA_KEYWORDS]?: {
171
+ license?: LicenseRawKeywordsParametersLicence;
172
+ offer?: LicenseRawKeywordsParametersOffer;
173
+ };
174
+ [LicenseFindParameters.DATA_FILTERS]?: LicenseRawFiltersParameters;
175
+ [LicenseFindParameters.DATA_SORT]?: {
176
+ license?: LicenseRawSortParametersLicense;
177
+ offer?: LicenseRawSortParametersOffer;
178
+ };
109
179
  [LicenseFindParameters.DATA_HIGHLIGHT]?: boolean;
110
180
  };
111
181
  export declare class LicensesClient extends AbstractClient {
@@ -121,6 +191,10 @@ export declare class LicensesClient extends AbstractClient {
121
191
  * The path of the Find endpoint
122
192
  */
123
193
  private FIND_PATH;
194
+ /**
195
+ * The path of the Configs endpoint
196
+ */
197
+ private CONFIGS_PATH;
124
198
  /**
125
199
  * Returns the raw result from the find endpoint call
126
200
  *
@@ -142,4 +216,8 @@ export declare class LicensesClient extends AbstractClient {
142
216
  *
143
217
  */
144
218
  find(postData?: LicenseFindPayload, perPage?: number, page?: number, parameters?: Parameters): Promise<FindResult>;
219
+ getConfigsRaw(reference: string): Promise<FindConfig>;
220
+ getConfigs(reference: string): AsyncGenerator<ConfigFindResultData>;
221
+ updateConfigRaw(reference: string, config: ConfigFindResult): Promise<ConfigFindResultData>;
222
+ updateConfig(reference: string, config: ConfigFindResult): Promise<ConfigFindResult>;
145
223
  }