@arrowsphere/api-client 3.234.0-rc-cpe-1 → 3.235.0-rc-abo-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.
- package/CHANGELOG.md +10 -0
- package/build/catalog/types/catalogGraphQLSchemas.d.ts +4 -1
- package/build/catalog/types/catalogGraphQLTypes.d.ts +41 -32
- package/build/licenses/entities/getLicense/licenseGetResult.d.ts +4 -1
- package/build/licenses/entities/getLicense/licenseGetResult.js +10 -3
- package/build/licenses/entities/license/dynamicMappingResult.d.ts +8 -0
- package/build/licenses/entities/license/dynamicMappingResult.js +14 -0
- package/build/licenses/entities/license/licenseFindResult.d.ts +3 -1
- package/build/licenses/entities/license/licenseFindResult.js +1 -0
- package/build/licenses/index.d.ts +1 -0
- package/build/licenses/index.js +1 -0
- package/build/licenses/licensesClient.d.ts +2 -0
- package/build/licenses/licensesClient.js +5 -0
- package/build/orders/entities/orders/products/identifiers/vendor/identifiersVendor.d.ts +1 -8
- package/build/orders/entities/orders/products/identifiers/vendor/identifiersVendor.js +2 -20
- package/build/orders/entities/orders/products/priceBand/priceBand.d.ts +0 -9
- package/build/orders/entities/orders/products/priceBand/priceBand.js +0 -6
- package/build/orders/entities/orders/products/products.d.ts +4 -24
- package/build/orders/entities/orders/products/products.js +4 -48
- package/package.json +1 -1
- package/build/orders/entities/orders/products/family/family.d.ts +0 -13
- package/build/orders/entities/orders/products/family/family.js +0 -38
- package/build/orders/entities/orders/products/identifiers/vendor/attributes/identifiersVendorAttributes.d.ts +0 -13
- package/build/orders/entities/orders/products/identifiers/vendor/attributes/identifiersVendorAttributes.js +0 -39
- package/build/orders/entities/orders/products/pricingRules/pricingRules.d.ts +0 -35
- package/build/orders/entities/orders/products/pricingRules/pricingRules.js +0 -71
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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
|
+
## [3.235.0] - 2026.01.20
|
|
7
|
+
### Added
|
|
8
|
+
- [license] add endpoint to get license dynamic attributes mapping
|
|
9
|
+
|
|
10
|
+
## [3.234.0] - 2025.01.19
|
|
11
|
+
|
|
12
|
+
### Updated
|
|
13
|
+
- Handle the bundles in the Offers
|
|
14
|
+
|
|
15
|
+
|
|
6
16
|
## [3.233.0] - 2025.01.15
|
|
7
17
|
|
|
8
18
|
### Updated
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { AttributesParameters, AttributeType, ExchangeRateType, ExchangeRateValueType, FiltersType, IdentifiersType, PaginationType, PriceBandType, PricesType, ProductType, PromotionType, RelatedOfferType } from './catalogGraphQLTypes';
|
|
1
|
+
import { AttributesParameters, AttributeType, BundleBillingRuleType, ExchangeRateType, ExchangeRateValueType, FiltersType, IdentifiersType, PaginationType, PriceBandType, PricesType, ProductType, PromotionType, RelatedOfferType } from './catalogGraphQLTypes';
|
|
2
2
|
import { Merge, Schema } from 'type-fest';
|
|
3
3
|
export declare type PaginationSchema = Schema<PaginationType, boolean>;
|
|
4
4
|
export declare type FiltersSchema = Schema<FiltersType, boolean>;
|
|
5
5
|
declare type AttributesParametersSchema = Schema<AttributesParameters, boolean>;
|
|
6
|
+
declare type BundleBillingRuleSchema = Schema<BundleBillingRuleType, boolean>;
|
|
6
7
|
declare type IdentifiersSchema = Schema<IdentifiersType, boolean>;
|
|
7
8
|
declare type RelatedOfferSchema = Schema<RelatedOfferType, boolean>;
|
|
8
9
|
declare type PromotionSchema = Schema<PromotionType, boolean>;
|
|
@@ -13,6 +14,8 @@ declare type MissingFieldsOfProductSchema = {
|
|
|
13
14
|
addonPrimaries?: IdentifiersSchema;
|
|
14
15
|
attributesParameters?: AttributesParametersSchema;
|
|
15
16
|
baseOfferPrimaries?: IdentifiersSchema;
|
|
17
|
+
bundleBillingRules?: BundleBillingRuleSchema;
|
|
18
|
+
bundledOfferPrimaries?: IdentifiersSchema;
|
|
16
19
|
conversionOfferPrimaries?: IdentifiersSchema;
|
|
17
20
|
defaultPriceBand?: PriceBandSchema;
|
|
18
21
|
relatedOffers?: RelatedOfferSchema;
|
|
@@ -35,56 +35,65 @@ export declare type FiltersValuesType = {
|
|
|
35
35
|
count?: number;
|
|
36
36
|
};
|
|
37
37
|
export declare type PaginationType = {
|
|
38
|
-
perPage?: number;
|
|
39
38
|
currentPage?: number;
|
|
40
|
-
totalPage?: number;
|
|
41
|
-
total?: number;
|
|
42
39
|
next?: string;
|
|
40
|
+
perPage?: number;
|
|
43
41
|
previous?: string;
|
|
42
|
+
total?: number;
|
|
43
|
+
totalPage?: number;
|
|
44
|
+
};
|
|
45
|
+
export declare type BundleBillingRuleType = {
|
|
46
|
+
billingCycle: number;
|
|
47
|
+
billingTerm: number;
|
|
48
|
+
name: string;
|
|
49
|
+
orderingType: string;
|
|
44
50
|
};
|
|
45
51
|
export declare type ProductType = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
name?: string;
|
|
49
|
-
classification?: string;
|
|
52
|
+
actionFlags?: ActionFlagsType;
|
|
53
|
+
addonPrimaries?: Array<IdentifiersType>;
|
|
50
54
|
arrowCategories?: Array<string>;
|
|
51
55
|
arrowSubCategories?: Array<string>;
|
|
56
|
+
assets?: AssetsType;
|
|
52
57
|
attributesParameters?: Array<AttributesParameters>;
|
|
53
|
-
licenseAgreementType?: string;
|
|
54
|
-
family?: FamilyType;
|
|
55
|
-
isAddon?: boolean;
|
|
56
|
-
hasAddons?: boolean;
|
|
57
|
-
actionFlags?: ActionFlagsType;
|
|
58
|
-
addonPrimaries?: Array<IdentifiersType>;
|
|
59
|
-
conversionOfferPrimaries?: Array<IdentifiersType>;
|
|
60
58
|
baseOfferPrimaries?: Array<IdentifiersType>;
|
|
61
|
-
|
|
59
|
+
billingSets?: Array<string>;
|
|
60
|
+
bundleBillingRules?: Array<BundleBillingRuleType>;
|
|
61
|
+
bundledOfferPrimaries?: Array<IdentifiersType>;
|
|
62
|
+
classification?: string;
|
|
63
|
+
conversionOfferPrimaries?: Array<IdentifiersType>;
|
|
64
|
+
defaultPriceBand?: PriceBandType;
|
|
65
|
+
endCustomerEula?: string;
|
|
66
|
+
endCustomerFeatures?: string;
|
|
67
|
+
endCustomerRequirements?: string;
|
|
62
68
|
environmentAvailability?: string;
|
|
63
|
-
|
|
64
|
-
|
|
69
|
+
eula?: string;
|
|
70
|
+
family?: FamilyType;
|
|
71
|
+
hasAddons?: boolean;
|
|
72
|
+
id?: string;
|
|
73
|
+
identifiers?: IdentifiersType;
|
|
74
|
+
isAddon?: boolean;
|
|
75
|
+
isBundle?: boolean;
|
|
65
76
|
isEnabled?: boolean;
|
|
66
|
-
isTrial?: boolean;
|
|
67
77
|
isIndirectBusiness?: boolean;
|
|
78
|
+
isTrial?: boolean;
|
|
68
79
|
lastUpdate?: string;
|
|
80
|
+
licenseAgreementType?: string;
|
|
69
81
|
marketingText?: MarketingTextType;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
eula?: string;
|
|
73
|
-
endCustomerEula?: string;
|
|
74
|
-
endCustomerRequirements?: string;
|
|
75
|
-
endCustomerFeatures?: string;
|
|
76
|
-
xspUrl?: string;
|
|
77
|
-
saleConstraints?: SaleConstraintsType;
|
|
78
|
-
vendor?: VendorType;
|
|
79
|
-
program?: GraphqlProgramType;
|
|
80
|
-
weightTopSales?: number;
|
|
81
|
-
weightForced?: number;
|
|
82
|
+
marketplace?: string;
|
|
83
|
+
name?: string;
|
|
82
84
|
priceBand?: Array<PriceBandType>;
|
|
83
|
-
|
|
85
|
+
program?: GraphqlProgramType;
|
|
86
|
+
promotions?: Array<PromotionType>;
|
|
84
87
|
relatedOffers?: Array<RelatedOfferType>;
|
|
85
88
|
resellers?: OfferResellersType;
|
|
89
|
+
saleConstraints?: SaleConstraintsType;
|
|
86
90
|
scope?: string;
|
|
87
|
-
|
|
91
|
+
serviceDescription?: string;
|
|
92
|
+
vendor?: VendorType;
|
|
93
|
+
vendorOfferUrl?: string;
|
|
94
|
+
weightForced?: number;
|
|
95
|
+
weightTopSales?: number;
|
|
96
|
+
xspUrl?: string;
|
|
88
97
|
};
|
|
89
98
|
export declare type IdentifiersType = {
|
|
90
99
|
arrowsphere?: ArrowsphereIdentifierType;
|
|
@@ -64,7 +64,8 @@ export declare enum LicenseGetFields {
|
|
|
64
64
|
COLUMN_MARKET_SEGMENT = "marketSegment",
|
|
65
65
|
COLUMN_CONFIGS = "configs",
|
|
66
66
|
COLUMN_WARNINGS = "warnings",
|
|
67
|
-
COLUMN_END_DATE = "endDate"
|
|
67
|
+
COLUMN_END_DATE = "endDate",
|
|
68
|
+
COLUMN_ATTRIBUTES = "attributes"
|
|
68
69
|
}
|
|
69
70
|
export declare type LicenseGetData = {
|
|
70
71
|
[LicenseGetFields.COLUMN_ADDITIONAL_INFORMATION]?: Record<string, unknown>;
|
|
@@ -118,6 +119,7 @@ export declare type LicenseGetData = {
|
|
|
118
119
|
[LicenseGetFields.COLUMN_CONFIGS]?: Array<ConfigFindResultData> | null;
|
|
119
120
|
[LicenseGetFields.COLUMN_WARNINGS]?: Array<WarningFindResultData> | null;
|
|
120
121
|
[LicenseGetFields.COLUMN_END_DATE]: string;
|
|
122
|
+
[LicenseGetFields.COLUMN_ATTRIBUTES]: Record<string, string>;
|
|
121
123
|
};
|
|
122
124
|
export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
|
|
123
125
|
#private;
|
|
@@ -173,5 +175,6 @@ export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
|
|
|
173
175
|
get configs(): Array<ConfigFindResult> | null | undefined;
|
|
174
176
|
get warnings(): Array<WarningFindResult> | null | undefined;
|
|
175
177
|
get endDate(): string;
|
|
178
|
+
get attributes(): Record<string, string>;
|
|
176
179
|
toJSON(): LicenseGetData;
|
|
177
180
|
}
|
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _LicenseGetResult_additionalInformation, _LicenseGetResult_classification, _LicenseGetResult_license_id, _LicenseGetResult_parent_license_id, _LicenseGetResult_friendlyName, _LicenseGetResult_customer_ref, _LicenseGetResult_state, _LicenseGetResult_statusCode, _LicenseGetResult_isTrial, _LicenseGetResult_isAddon, _LicenseGetResult_service_ref, _LicenseGetResult_sku, _LicenseGetResult_name, _LicenseGetResult_seats, _LicenseGetResult_activeSeats, _LicenseGetResult_security, _LicenseGetResult_activation_datetime, _LicenseGetResult_expiry_datetime, _LicenseGetResult_autoRenew, _LicenseGetResult_marketplace, _LicenseGetResult_message, _LicenseGetResult_actions, _LicenseGetResult_actionMessages, _LicenseGetResult_order_reference, _LicenseGetResult_order, _LicenseGetResult_vendor_license_id, _LicenseGetResult_periodicity, _LicenseGetResult_periodicityCode, _LicenseGetResult_term, _LicenseGetResult_termCode, _LicenseGetResult_category, _LicenseGetResult_program, _LicenseGetResult_associatedSubscriptionProgram, _LicenseGetResult_price, _LicenseGetResult_arrowSubCategories, _LicenseGetResult_nextRenewalDate, _LicenseGetResult_promotion, _LicenseGetResult_assets, _LicenseGetResult_vendorBillingId, _LicenseGetResult_extraData, _LicenseGetResult_priceBand, _LicenseGetResult_vendorCode, _LicenseGetResult_vendor_code, _LicenseGetResult_vendorSku, _LicenseGetResult_rates, _LicenseGetResult_organizationUnitId, _LicenseGetResult_relation, _LicenseGetResult_marketSegment, _LicenseGetResult_configs, _LicenseGetResult_warnings, _LicenseGetResult_endDate;
|
|
13
|
+
var _LicenseGetResult_additionalInformation, _LicenseGetResult_classification, _LicenseGetResult_license_id, _LicenseGetResult_parent_license_id, _LicenseGetResult_friendlyName, _LicenseGetResult_customer_ref, _LicenseGetResult_state, _LicenseGetResult_statusCode, _LicenseGetResult_isTrial, _LicenseGetResult_isAddon, _LicenseGetResult_service_ref, _LicenseGetResult_sku, _LicenseGetResult_name, _LicenseGetResult_seats, _LicenseGetResult_activeSeats, _LicenseGetResult_security, _LicenseGetResult_activation_datetime, _LicenseGetResult_expiry_datetime, _LicenseGetResult_autoRenew, _LicenseGetResult_marketplace, _LicenseGetResult_message, _LicenseGetResult_actions, _LicenseGetResult_actionMessages, _LicenseGetResult_order_reference, _LicenseGetResult_order, _LicenseGetResult_vendor_license_id, _LicenseGetResult_periodicity, _LicenseGetResult_periodicityCode, _LicenseGetResult_term, _LicenseGetResult_termCode, _LicenseGetResult_category, _LicenseGetResult_program, _LicenseGetResult_associatedSubscriptionProgram, _LicenseGetResult_price, _LicenseGetResult_arrowSubCategories, _LicenseGetResult_nextRenewalDate, _LicenseGetResult_promotion, _LicenseGetResult_assets, _LicenseGetResult_vendorBillingId, _LicenseGetResult_extraData, _LicenseGetResult_priceBand, _LicenseGetResult_vendorCode, _LicenseGetResult_vendor_code, _LicenseGetResult_vendorSku, _LicenseGetResult_rates, _LicenseGetResult_organizationUnitId, _LicenseGetResult_relation, _LicenseGetResult_marketSegment, _LicenseGetResult_configs, _LicenseGetResult_warnings, _LicenseGetResult_endDate, _LicenseGetResult_attributes;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.LicenseGetResult = exports.LicenseGetFields = void 0;
|
|
16
16
|
const actionsGetResult_1 = require("./actionsGetResult");
|
|
@@ -81,10 +81,11 @@ var LicenseGetFields;
|
|
|
81
81
|
LicenseGetFields["COLUMN_CONFIGS"] = "configs";
|
|
82
82
|
LicenseGetFields["COLUMN_WARNINGS"] = "warnings";
|
|
83
83
|
LicenseGetFields["COLUMN_END_DATE"] = "endDate";
|
|
84
|
+
LicenseGetFields["COLUMN_ATTRIBUTES"] = "attributes";
|
|
84
85
|
})(LicenseGetFields = exports.LicenseGetFields || (exports.LicenseGetFields = {}));
|
|
85
86
|
class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
86
87
|
constructor(licenseGetDataInput) {
|
|
87
|
-
var _a, _b, _c, _d, _e, _f;
|
|
88
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
88
89
|
super(licenseGetDataInput);
|
|
89
90
|
_LicenseGetResult_additionalInformation.set(this, void 0);
|
|
90
91
|
_LicenseGetResult_classification.set(this, void 0);
|
|
@@ -137,6 +138,7 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
137
138
|
_LicenseGetResult_configs.set(this, void 0);
|
|
138
139
|
_LicenseGetResult_warnings.set(this, void 0);
|
|
139
140
|
_LicenseGetResult_endDate.set(this, void 0);
|
|
141
|
+
_LicenseGetResult_attributes.set(this, void 0);
|
|
140
142
|
__classPrivateFieldSet(this, _LicenseGetResult_additionalInformation, licenseGetDataInput[LicenseGetFields.COLUMN_ADDITIONAL_INFORMATION], "f");
|
|
141
143
|
__classPrivateFieldSet(this, _LicenseGetResult_classification, licenseGetDataInput[LicenseGetFields.COLUMN_CLASSIFICATION], "f");
|
|
142
144
|
__classPrivateFieldSet(this, _LicenseGetResult_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_LICENSE_ID], "f");
|
|
@@ -202,6 +204,7 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
202
204
|
__classPrivateFieldSet(this, _LicenseGetResult_configs, (_d = licenseGetDataInput[LicenseGetFields.COLUMN_CONFIGS]) === null || _d === void 0 ? void 0 : _d.map((configData) => new configFindResult_1.ConfigFindResult(configData)), "f");
|
|
203
205
|
__classPrivateFieldSet(this, _LicenseGetResult_warnings, (_e = licenseGetDataInput[LicenseGetFields.COLUMN_WARNINGS]) === null || _e === void 0 ? void 0 : _e.map((warningData) => new warningFindResult_1.WarningFindResult(warningData)), "f");
|
|
204
206
|
__classPrivateFieldSet(this, _LicenseGetResult_endDate, (_f = licenseGetDataInput[LicenseGetFields.COLUMN_END_DATE]) !== null && _f !== void 0 ? _f : '', "f");
|
|
207
|
+
__classPrivateFieldSet(this, _LicenseGetResult_attributes, (_g = licenseGetDataInput[LicenseGetFields.COLUMN_ATTRIBUTES]) !== null && _g !== void 0 ? _g : '', "f");
|
|
205
208
|
}
|
|
206
209
|
get classification() {
|
|
207
210
|
return __classPrivateFieldGet(this, _LicenseGetResult_classification, "f");
|
|
@@ -359,6 +362,9 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
359
362
|
get endDate() {
|
|
360
363
|
return __classPrivateFieldGet(this, _LicenseGetResult_endDate, "f");
|
|
361
364
|
}
|
|
365
|
+
get attributes() {
|
|
366
|
+
return __classPrivateFieldGet(this, _LicenseGetResult_attributes, "f");
|
|
367
|
+
}
|
|
362
368
|
toJSON() {
|
|
363
369
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
364
370
|
return {
|
|
@@ -415,9 +421,10 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
415
421
|
[LicenseGetFields.COLUMN_CONFIGS]: (_k = this.configs) === null || _k === void 0 ? void 0 : _k.map((config) => config.toJSON()),
|
|
416
422
|
[LicenseGetFields.COLUMN_WARNINGS]: (_l = this.warnings) === null || _l === void 0 ? void 0 : _l.map((warning) => warning.toJSON()),
|
|
417
423
|
[LicenseGetFields.COLUMN_END_DATE]: this.endDate,
|
|
424
|
+
[LicenseGetFields.COLUMN_ATTRIBUTES]: this.attributes,
|
|
418
425
|
};
|
|
419
426
|
}
|
|
420
427
|
}
|
|
421
428
|
exports.LicenseGetResult = LicenseGetResult;
|
|
422
|
-
_LicenseGetResult_additionalInformation = new WeakMap(), _LicenseGetResult_classification = new WeakMap(), _LicenseGetResult_license_id = new WeakMap(), _LicenseGetResult_parent_license_id = new WeakMap(), _LicenseGetResult_friendlyName = new WeakMap(), _LicenseGetResult_customer_ref = new WeakMap(), _LicenseGetResult_state = new WeakMap(), _LicenseGetResult_statusCode = new WeakMap(), _LicenseGetResult_isTrial = new WeakMap(), _LicenseGetResult_isAddon = new WeakMap(), _LicenseGetResult_service_ref = new WeakMap(), _LicenseGetResult_sku = new WeakMap(), _LicenseGetResult_name = new WeakMap(), _LicenseGetResult_seats = new WeakMap(), _LicenseGetResult_activeSeats = new WeakMap(), _LicenseGetResult_security = new WeakMap(), _LicenseGetResult_activation_datetime = new WeakMap(), _LicenseGetResult_expiry_datetime = new WeakMap(), _LicenseGetResult_autoRenew = new WeakMap(), _LicenseGetResult_marketplace = new WeakMap(), _LicenseGetResult_message = new WeakMap(), _LicenseGetResult_actions = new WeakMap(), _LicenseGetResult_actionMessages = new WeakMap(), _LicenseGetResult_order_reference = new WeakMap(), _LicenseGetResult_order = new WeakMap(), _LicenseGetResult_vendor_license_id = new WeakMap(), _LicenseGetResult_periodicity = new WeakMap(), _LicenseGetResult_periodicityCode = new WeakMap(), _LicenseGetResult_term = new WeakMap(), _LicenseGetResult_termCode = new WeakMap(), _LicenseGetResult_category = new WeakMap(), _LicenseGetResult_program = new WeakMap(), _LicenseGetResult_associatedSubscriptionProgram = new WeakMap(), _LicenseGetResult_price = new WeakMap(), _LicenseGetResult_arrowSubCategories = new WeakMap(), _LicenseGetResult_nextRenewalDate = new WeakMap(), _LicenseGetResult_promotion = new WeakMap(), _LicenseGetResult_assets = new WeakMap(), _LicenseGetResult_vendorBillingId = new WeakMap(), _LicenseGetResult_extraData = new WeakMap(), _LicenseGetResult_priceBand = new WeakMap(), _LicenseGetResult_vendorCode = new WeakMap(), _LicenseGetResult_vendor_code = new WeakMap(), _LicenseGetResult_vendorSku = new WeakMap(), _LicenseGetResult_rates = new WeakMap(), _LicenseGetResult_organizationUnitId = new WeakMap(), _LicenseGetResult_relation = new WeakMap(), _LicenseGetResult_marketSegment = new WeakMap(), _LicenseGetResult_configs = new WeakMap(), _LicenseGetResult_warnings = new WeakMap(), _LicenseGetResult_endDate = new WeakMap();
|
|
429
|
+
_LicenseGetResult_additionalInformation = new WeakMap(), _LicenseGetResult_classification = new WeakMap(), _LicenseGetResult_license_id = new WeakMap(), _LicenseGetResult_parent_license_id = new WeakMap(), _LicenseGetResult_friendlyName = new WeakMap(), _LicenseGetResult_customer_ref = new WeakMap(), _LicenseGetResult_state = new WeakMap(), _LicenseGetResult_statusCode = new WeakMap(), _LicenseGetResult_isTrial = new WeakMap(), _LicenseGetResult_isAddon = new WeakMap(), _LicenseGetResult_service_ref = new WeakMap(), _LicenseGetResult_sku = new WeakMap(), _LicenseGetResult_name = new WeakMap(), _LicenseGetResult_seats = new WeakMap(), _LicenseGetResult_activeSeats = new WeakMap(), _LicenseGetResult_security = new WeakMap(), _LicenseGetResult_activation_datetime = new WeakMap(), _LicenseGetResult_expiry_datetime = new WeakMap(), _LicenseGetResult_autoRenew = new WeakMap(), _LicenseGetResult_marketplace = new WeakMap(), _LicenseGetResult_message = new WeakMap(), _LicenseGetResult_actions = new WeakMap(), _LicenseGetResult_actionMessages = new WeakMap(), _LicenseGetResult_order_reference = new WeakMap(), _LicenseGetResult_order = new WeakMap(), _LicenseGetResult_vendor_license_id = new WeakMap(), _LicenseGetResult_periodicity = new WeakMap(), _LicenseGetResult_periodicityCode = new WeakMap(), _LicenseGetResult_term = new WeakMap(), _LicenseGetResult_termCode = new WeakMap(), _LicenseGetResult_category = new WeakMap(), _LicenseGetResult_program = new WeakMap(), _LicenseGetResult_associatedSubscriptionProgram = new WeakMap(), _LicenseGetResult_price = new WeakMap(), _LicenseGetResult_arrowSubCategories = new WeakMap(), _LicenseGetResult_nextRenewalDate = new WeakMap(), _LicenseGetResult_promotion = new WeakMap(), _LicenseGetResult_assets = new WeakMap(), _LicenseGetResult_vendorBillingId = new WeakMap(), _LicenseGetResult_extraData = new WeakMap(), _LicenseGetResult_priceBand = new WeakMap(), _LicenseGetResult_vendorCode = new WeakMap(), _LicenseGetResult_vendor_code = new WeakMap(), _LicenseGetResult_vendorSku = new WeakMap(), _LicenseGetResult_rates = new WeakMap(), _LicenseGetResult_organizationUnitId = new WeakMap(), _LicenseGetResult_relation = new WeakMap(), _LicenseGetResult_marketSegment = new WeakMap(), _LicenseGetResult_configs = new WeakMap(), _LicenseGetResult_warnings = new WeakMap(), _LicenseGetResult_endDate = new WeakMap(), _LicenseGetResult_attributes = new WeakMap();
|
|
423
430
|
//# sourceMappingURL=licenseGetResult.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
export declare type DynamicAttributesMappingResultData = {
|
|
3
|
+
[key: string]: string;
|
|
4
|
+
};
|
|
5
|
+
export declare class DynamicAttributesMappingResult extends AbstractEntity<DynamicAttributesMappingResultData> {
|
|
6
|
+
constructor(data: DynamicAttributesMappingResultData);
|
|
7
|
+
toJSON(): DynamicAttributesMappingResultData;
|
|
8
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynamicAttributesMappingResult = void 0;
|
|
4
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
5
|
+
class DynamicAttributesMappingResult extends abstractEntity_1.AbstractEntity {
|
|
6
|
+
constructor(data) {
|
|
7
|
+
super(data);
|
|
8
|
+
}
|
|
9
|
+
toJSON() {
|
|
10
|
+
return this.entityDataInput;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.DynamicAttributesMappingResult = DynamicAttributesMappingResult;
|
|
14
|
+
//# sourceMappingURL=dynamicMappingResult.js.map
|
|
@@ -61,7 +61,8 @@ export declare enum LicenseFindResultFields {
|
|
|
61
61
|
COLUMN_VENDOR_CODE = "vendor_code",
|
|
62
62
|
COLUMN_VENDOR_NAME = "vendor_name",
|
|
63
63
|
COLUMN_VENDOR_SUBSCRIPTION_ID = "vendor_subscription_id",
|
|
64
|
-
COLUMN_HIGHLIGHT = "highlight"
|
|
64
|
+
COLUMN_HIGHLIGHT = "highlight",
|
|
65
|
+
COLUMN_ATTRIBUTES = "attributes"
|
|
65
66
|
}
|
|
66
67
|
/**
|
|
67
68
|
* License data fields and their corresponding types
|
|
@@ -113,6 +114,7 @@ export declare type LicenseFindResultData = {
|
|
|
113
114
|
[LicenseFindResultFields.COLUMN_VENDOR_NAME]: string;
|
|
114
115
|
[LicenseFindResultFields.COLUMN_VENDOR_SUBSCRIPTION_ID]: string | null;
|
|
115
116
|
[LicenseFindResultFields.COLUMN_HIGHLIGHT]?: Highlight;
|
|
117
|
+
[LicenseFindResultFields.COLUMN_ATTRIBUTES]?: Record<string, string>;
|
|
116
118
|
};
|
|
117
119
|
export declare type LicenceFindDataKeywords = {
|
|
118
120
|
[LicenseFindResultFields.COLUMN_ACCEPT_EULA]?: DataKeywords;
|
|
@@ -70,6 +70,7 @@ var LicenseFindResultFields;
|
|
|
70
70
|
LicenseFindResultFields["COLUMN_VENDOR_NAME"] = "vendor_name";
|
|
71
71
|
LicenseFindResultFields["COLUMN_VENDOR_SUBSCRIPTION_ID"] = "vendor_subscription_id";
|
|
72
72
|
LicenseFindResultFields["COLUMN_HIGHLIGHT"] = "highlight";
|
|
73
|
+
LicenseFindResultFields["COLUMN_ATTRIBUTES"] = "attributes";
|
|
73
74
|
})(LicenseFindResultFields = exports.LicenseFindResultFields || (exports.LicenseFindResultFields = {}));
|
|
74
75
|
class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
75
76
|
/**
|
package/build/licenses/index.js
CHANGED
|
@@ -65,4 +65,5 @@ __exportStar(require("./licenseRequestClient"), exports);
|
|
|
65
65
|
__exportStar(require("./licensesClient"), exports);
|
|
66
66
|
__exportStar(require("./licensesEventClient"), exports);
|
|
67
67
|
__exportStar(require("./types/bulkArguments"), exports);
|
|
68
|
+
__exportStar(require("./entities/license/dynamicMappingResult"), exports);
|
|
68
69
|
//# sourceMappingURL=index.js.map
|
|
@@ -28,6 +28,7 @@ import { ConsumptionDailyPrediction } from '../consumption';
|
|
|
28
28
|
import { GetScheduledTasksResult } from './entities/schedule/getScheduledTasksResult';
|
|
29
29
|
import { GetScheduleTaskResult } from './entities/schedule/getScheduleTaskResult';
|
|
30
30
|
import { LicenceCouponCodeHistoryResult } from './entities/history/licenceCouponCodeHistoryResult';
|
|
31
|
+
import { DynamicAttributesMappingResult } from './entities/license/dynamicMappingResult';
|
|
31
32
|
/**
|
|
32
33
|
* Parameters passable to the request for refining search.
|
|
33
34
|
*/
|
|
@@ -433,4 +434,5 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
433
434
|
rewriteRateHistory(licenseReference: string, payload: RewriteRateHistoryInputType, parameters?: Parameters): Promise<void>;
|
|
434
435
|
private createFilters;
|
|
435
436
|
private createKeywords;
|
|
437
|
+
getLicenseDynamicAttributesMapping(parameters?: Parameters): Promise<GetResult<DynamicAttributesMappingResult>>;
|
|
436
438
|
}
|
|
@@ -22,6 +22,7 @@ const consumption_1 = require("../consumption");
|
|
|
22
22
|
const getScheduledTasksResult_1 = require("./entities/schedule/getScheduledTasksResult");
|
|
23
23
|
const getScheduleTaskResult_1 = require("./entities/schedule/getScheduleTaskResult");
|
|
24
24
|
const licenceCouponCodeHistoryResult_1 = require("./entities/history/licenceCouponCodeHistoryResult");
|
|
25
|
+
const dynamicMappingResult_1 = require("./entities/license/dynamicMappingResult");
|
|
25
26
|
/**
|
|
26
27
|
* Parameters passable to the request for refining search.
|
|
27
28
|
*/
|
|
@@ -570,6 +571,10 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
570
571
|
return acc;
|
|
571
572
|
}, {});
|
|
572
573
|
}
|
|
574
|
+
async getLicenseDynamicAttributesMapping(parameters = {}) {
|
|
575
|
+
this.path = '/license-mapping';
|
|
576
|
+
return new getResult_1.GetResult(dynamicMappingResult_1.DynamicAttributesMappingResult, await this.get(parameters));
|
|
577
|
+
}
|
|
573
578
|
}
|
|
574
579
|
exports.LicensesClient = LicensesClient;
|
|
575
580
|
//# sourceMappingURL=licensesClient.js.map
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../../../../../abstractEntity';
|
|
2
|
-
import { IdentifiersVendorAttributes, IdentifiersVendorAttributesType } from './attributes/identifiersVendorAttributes';
|
|
3
2
|
export declare enum IdentifiersVendorFields {
|
|
4
|
-
|
|
5
|
-
COLUMN_SKU = "sku",
|
|
6
|
-
COLUMN_NAME = "name"
|
|
3
|
+
COLUMN_SKU = "sku"
|
|
7
4
|
}
|
|
8
5
|
export declare type IdentifiersVendorType = {
|
|
9
|
-
[IdentifiersVendorFields.COLUMN_ATTRIBUTES]?: IdentifiersVendorAttributesType;
|
|
10
6
|
[IdentifiersVendorFields.COLUMN_SKU]: string;
|
|
11
|
-
[IdentifiersVendorFields.COLUMN_NAME]?: string;
|
|
12
7
|
};
|
|
13
8
|
export declare class IdentifiersVendor extends AbstractEntity<IdentifiersVendorType> {
|
|
14
9
|
#private;
|
|
15
10
|
constructor(vendor: IdentifiersVendorType);
|
|
16
|
-
get attributes(): IdentifiersVendorAttributes | undefined;
|
|
17
|
-
get name(): string | undefined;
|
|
18
11
|
get sku(): string;
|
|
19
12
|
toJSON(): IdentifiersVendorType;
|
|
20
13
|
}
|
|
@@ -10,47 +10,29 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var
|
|
13
|
+
var _IdentifiersVendor_sku;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.IdentifiersVendor = exports.IdentifiersVendorFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../../../../abstractEntity");
|
|
17
|
-
const identifiersVendorAttributes_1 = require("./attributes/identifiersVendorAttributes");
|
|
18
17
|
var IdentifiersVendorFields;
|
|
19
18
|
(function (IdentifiersVendorFields) {
|
|
20
|
-
IdentifiersVendorFields["COLUMN_ATTRIBUTES"] = "attributes";
|
|
21
19
|
IdentifiersVendorFields["COLUMN_SKU"] = "sku";
|
|
22
|
-
IdentifiersVendorFields["COLUMN_NAME"] = "name";
|
|
23
20
|
})(IdentifiersVendorFields = exports.IdentifiersVendorFields || (exports.IdentifiersVendorFields = {}));
|
|
24
21
|
class IdentifiersVendor extends abstractEntity_1.AbstractEntity {
|
|
25
22
|
constructor(vendor) {
|
|
26
23
|
super(vendor);
|
|
27
|
-
_IdentifiersVendor_attributes.set(this, void 0);
|
|
28
|
-
_IdentifiersVendor_name.set(this, void 0);
|
|
29
24
|
_IdentifiersVendor_sku.set(this, void 0);
|
|
30
|
-
__classPrivateFieldSet(this, _IdentifiersVendor_attributes, vendor[IdentifiersVendorFields.COLUMN_ATTRIBUTES]
|
|
31
|
-
? new identifiersVendorAttributes_1.IdentifiersVendorAttributes(vendor[IdentifiersVendorFields.COLUMN_ATTRIBUTES])
|
|
32
|
-
: undefined, "f");
|
|
33
|
-
__classPrivateFieldSet(this, _IdentifiersVendor_name, vendor[IdentifiersVendorFields.COLUMN_NAME], "f");
|
|
34
25
|
__classPrivateFieldSet(this, _IdentifiersVendor_sku, vendor[IdentifiersVendorFields.COLUMN_SKU], "f");
|
|
35
26
|
}
|
|
36
|
-
get attributes() {
|
|
37
|
-
return __classPrivateFieldGet(this, _IdentifiersVendor_attributes, "f");
|
|
38
|
-
}
|
|
39
|
-
get name() {
|
|
40
|
-
return __classPrivateFieldGet(this, _IdentifiersVendor_name, "f");
|
|
41
|
-
}
|
|
42
27
|
get sku() {
|
|
43
28
|
return __classPrivateFieldGet(this, _IdentifiersVendor_sku, "f");
|
|
44
29
|
}
|
|
45
30
|
toJSON() {
|
|
46
|
-
var _a;
|
|
47
31
|
return {
|
|
48
|
-
[IdentifiersVendorFields.COLUMN_ATTRIBUTES]: (_a = this.attributes) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
49
|
-
[IdentifiersVendorFields.COLUMN_NAME]: this.name,
|
|
50
32
|
[IdentifiersVendorFields.COLUMN_SKU]: this.sku,
|
|
51
33
|
};
|
|
52
34
|
}
|
|
53
35
|
}
|
|
54
36
|
exports.IdentifiersVendor = IdentifiersVendor;
|
|
55
|
-
|
|
37
|
+
_IdentifiersVendor_sku = new WeakMap();
|
|
56
38
|
//# sourceMappingURL=identifiersVendor.js.map
|
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
import { PriceBandAttribute } from '../../../../../licenses';
|
|
2
2
|
import { AbstractEntity } from '../../../../../abstractEntity';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Use PriceBandDataFields instead
|
|
5
|
-
*/
|
|
6
3
|
export declare enum PriceBandFields {
|
|
7
4
|
COLUMN_ATTRIBUTES = "attributes"
|
|
8
5
|
}
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated Use PriceBandData instead
|
|
11
|
-
*/
|
|
12
6
|
export declare type PriceBandType = {
|
|
13
7
|
[PriceBandFields.COLUMN_ATTRIBUTES]?: PriceBandAttribute[];
|
|
14
8
|
};
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated Use PriceBandGetResult instead
|
|
17
|
-
*/
|
|
18
9
|
export declare class PriceBand extends AbstractEntity<PriceBandType> {
|
|
19
10
|
#private;
|
|
20
11
|
constructor(data: PriceBand);
|
|
@@ -15,16 +15,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.PriceBand = exports.PriceBandFields = void 0;
|
|
16
16
|
const licenses_1 = require("../../../../../licenses");
|
|
17
17
|
const abstractEntity_1 = require("../../../../../abstractEntity");
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated Use PriceBandDataFields instead
|
|
20
|
-
*/
|
|
21
18
|
var PriceBandFields;
|
|
22
19
|
(function (PriceBandFields) {
|
|
23
20
|
PriceBandFields["COLUMN_ATTRIBUTES"] = "attributes";
|
|
24
21
|
})(PriceBandFields = exports.PriceBandFields || (exports.PriceBandFields = {}));
|
|
25
|
-
/**
|
|
26
|
-
* @deprecated Use PriceBandGetResult instead
|
|
27
|
-
*/
|
|
28
22
|
class PriceBand extends abstractEntity_1.AbstractEntity {
|
|
29
23
|
constructor(data) {
|
|
30
24
|
super(data);
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
-
import { PriceBandData, PriceBandGetResult } from '../../../../licenses';
|
|
3
2
|
import { ReferenceLink, ReferenceLinkType } from '../../referenceLink';
|
|
4
3
|
import { ProductPrices, ProductPricesType } from './prices/productPrices';
|
|
5
4
|
import { ProductProgram, ProductProgramType } from './program/productProgram';
|
|
6
5
|
import { ProductIdentifiers, ProductIdentifiersType } from './identifiers/productIdentifiers';
|
|
6
|
+
import { PriceBand, PriceBandType } from './priceBand/priceBand';
|
|
7
7
|
import { OrganizationUnit, OrganizationUnitType } from './organizationUnit/organizationUnit';
|
|
8
|
-
import { Family, FamilyType } from './family/family';
|
|
9
|
-
import { BusinessRuleEffectType, PricingRules } from './pricingRules/pricingRules';
|
|
10
8
|
export declare enum OrderProductsFields {
|
|
11
9
|
COLUMN_SKU = "sku",
|
|
12
10
|
COLUMN_QUANTITY = "quantity",
|
|
13
11
|
COLUMN_STATUS = "status",
|
|
14
|
-
COLUMN_CREATION_DATE = "creationDate",
|
|
15
12
|
COLUMN_DATESTATUS = "dateStatus",
|
|
16
13
|
COLUMN_DETAILEDSTATUS = "detailedStatus",
|
|
17
|
-
COLUMN_FAMILY = "family",
|
|
18
14
|
COLUMN_IS_ADDON = "isAddon",
|
|
19
15
|
COLUMN_ARROWSUBCATEGORIES = "arrowSubCategories",
|
|
20
16
|
COLUMN_IS_TRIAL = "isTrial",
|
|
@@ -27,20 +23,14 @@ export declare enum OrderProductsFields {
|
|
|
27
23
|
COLUMN_IDENTIFIERS = "identifiers",
|
|
28
24
|
COLUMN_ORGANIZATION_UNIT_REF = "organizationUnitRef",
|
|
29
25
|
COLUMN_ORGANIZATION_UNIT = "organizationUnit",
|
|
30
|
-
COLUMN_PRICE_BAND = "priceBand"
|
|
31
|
-
COLUMN_PRICING_RULES = "pricingRules",
|
|
32
|
-
COLUMN_PROGRAM_NAME = "programName",
|
|
33
|
-
COLUMN_SOURCE = "source",
|
|
34
|
-
COLUMN_VENDOR_NAME = "vendorName"
|
|
26
|
+
COLUMN_PRICE_BAND = "priceBand"
|
|
35
27
|
}
|
|
36
28
|
export declare type OrderProductsType = {
|
|
37
29
|
[OrderProductsFields.COLUMN_SKU]: string;
|
|
38
30
|
[OrderProductsFields.COLUMN_QUANTITY]: number;
|
|
39
31
|
[OrderProductsFields.COLUMN_STATUS]: string;
|
|
40
|
-
[OrderProductsFields.COLUMN_CREATION_DATE]?: string;
|
|
41
32
|
[OrderProductsFields.COLUMN_DATESTATUS]: string;
|
|
42
33
|
[OrderProductsFields.COLUMN_DETAILEDSTATUS]: string;
|
|
43
|
-
[OrderProductsFields.COLUMN_FAMILY]: FamilyType;
|
|
44
34
|
[OrderProductsFields.COLUMN_IS_ADDON]: boolean;
|
|
45
35
|
[OrderProductsFields.COLUMN_ARROWSUBCATEGORIES]?: Array<string>;
|
|
46
36
|
[OrderProductsFields.COLUMN_IS_TRIAL]: boolean;
|
|
@@ -53,11 +43,7 @@ export declare type OrderProductsType = {
|
|
|
53
43
|
[OrderProductsFields.COLUMN_IDENTIFIERS]: ProductIdentifiersType;
|
|
54
44
|
[OrderProductsFields.COLUMN_ORGANIZATION_UNIT_REF]?: string;
|
|
55
45
|
[OrderProductsFields.COLUMN_ORGANIZATION_UNIT]?: OrganizationUnitType;
|
|
56
|
-
[OrderProductsFields.COLUMN_PRICE_BAND]?:
|
|
57
|
-
[OrderProductsFields.COLUMN_PRICING_RULES]: Array<BusinessRuleEffectType>;
|
|
58
|
-
[OrderProductsFields.COLUMN_PROGRAM_NAME]?: string;
|
|
59
|
-
[OrderProductsFields.COLUMN_SOURCE]?: string;
|
|
60
|
-
[OrderProductsFields.COLUMN_VENDOR_NAME]?: string;
|
|
46
|
+
[OrderProductsFields.COLUMN_PRICE_BAND]?: PriceBandType;
|
|
61
47
|
};
|
|
62
48
|
export declare class OrderProduct extends AbstractEntity<OrderProductsType> {
|
|
63
49
|
#private;
|
|
@@ -65,10 +51,8 @@ export declare class OrderProduct extends AbstractEntity<OrderProductsType> {
|
|
|
65
51
|
get sku(): string;
|
|
66
52
|
get quantity(): number;
|
|
67
53
|
get status(): string;
|
|
68
|
-
get creationDate(): string | undefined;
|
|
69
54
|
get dateStatus(): string;
|
|
70
55
|
get detailedStatus(): string;
|
|
71
|
-
get family(): Family;
|
|
72
56
|
get isAddon(): boolean;
|
|
73
57
|
get arrowSubCategories(): Array<string> | undefined;
|
|
74
58
|
get isTrial(): boolean;
|
|
@@ -80,11 +64,7 @@ export declare class OrderProduct extends AbstractEntity<OrderProductsType> {
|
|
|
80
64
|
get program(): ProductProgram;
|
|
81
65
|
get identifier(): ProductIdentifiers;
|
|
82
66
|
get organizationUnitRef(): string | undefined;
|
|
83
|
-
get priceBand():
|
|
67
|
+
get priceBand(): PriceBand | undefined;
|
|
84
68
|
get organizationUnit(): OrganizationUnit | undefined;
|
|
85
|
-
get pricingRules(): Array<PricingRules>;
|
|
86
|
-
get programName(): string | undefined;
|
|
87
|
-
get source(): string | undefined;
|
|
88
|
-
get vendorName(): string | undefined;
|
|
89
69
|
toJSON(): OrderProductsType;
|
|
90
70
|
}
|
|
@@ -10,27 +10,23 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _OrderProduct_sku, _OrderProduct_quantity, _OrderProduct_status,
|
|
13
|
+
var _OrderProduct_sku, _OrderProduct_quantity, _OrderProduct_status, _OrderProduct_dateStatus, _OrderProduct_detailedStatus, _OrderProduct_isAddon, _OrderProduct_arrowSubCategories, _OrderProduct_isTrial, _OrderProduct_prices, _OrderProduct_subscription, _OrderProduct_license, _OrderProduct_name, _OrderProduct_classification, _OrderProduct_program, _OrderProduct_identifier, _OrderProduct_organizationUnitRef, _OrderProduct_organizationUnit, _OrderProduct_priceBand;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.OrderProduct = exports.OrderProductsFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
17
|
-
const licenses_1 = require("../../../../licenses");
|
|
18
17
|
const referenceLink_1 = require("../../referenceLink");
|
|
19
18
|
const productPrices_1 = require("./prices/productPrices");
|
|
20
19
|
const productProgram_1 = require("./program/productProgram");
|
|
21
20
|
const productIdentifiers_1 = require("./identifiers/productIdentifiers");
|
|
21
|
+
const priceBand_1 = require("./priceBand/priceBand");
|
|
22
22
|
const organizationUnit_1 = require("./organizationUnit/organizationUnit");
|
|
23
|
-
const family_1 = require("./family/family");
|
|
24
|
-
const pricingRules_1 = require("./pricingRules/pricingRules");
|
|
25
23
|
var OrderProductsFields;
|
|
26
24
|
(function (OrderProductsFields) {
|
|
27
25
|
OrderProductsFields["COLUMN_SKU"] = "sku";
|
|
28
26
|
OrderProductsFields["COLUMN_QUANTITY"] = "quantity";
|
|
29
27
|
OrderProductsFields["COLUMN_STATUS"] = "status";
|
|
30
|
-
OrderProductsFields["COLUMN_CREATION_DATE"] = "creationDate";
|
|
31
28
|
OrderProductsFields["COLUMN_DATESTATUS"] = "dateStatus";
|
|
32
29
|
OrderProductsFields["COLUMN_DETAILEDSTATUS"] = "detailedStatus";
|
|
33
|
-
OrderProductsFields["COLUMN_FAMILY"] = "family";
|
|
34
30
|
OrderProductsFields["COLUMN_IS_ADDON"] = "isAddon";
|
|
35
31
|
OrderProductsFields["COLUMN_ARROWSUBCATEGORIES"] = "arrowSubCategories";
|
|
36
32
|
OrderProductsFields["COLUMN_IS_TRIAL"] = "isTrial";
|
|
@@ -44,10 +40,6 @@ var OrderProductsFields;
|
|
|
44
40
|
OrderProductsFields["COLUMN_ORGANIZATION_UNIT_REF"] = "organizationUnitRef";
|
|
45
41
|
OrderProductsFields["COLUMN_ORGANIZATION_UNIT"] = "organizationUnit";
|
|
46
42
|
OrderProductsFields["COLUMN_PRICE_BAND"] = "priceBand";
|
|
47
|
-
OrderProductsFields["COLUMN_PRICING_RULES"] = "pricingRules";
|
|
48
|
-
OrderProductsFields["COLUMN_PROGRAM_NAME"] = "programName";
|
|
49
|
-
OrderProductsFields["COLUMN_SOURCE"] = "source";
|
|
50
|
-
OrderProductsFields["COLUMN_VENDOR_NAME"] = "vendorName";
|
|
51
43
|
})(OrderProductsFields = exports.OrderProductsFields || (exports.OrderProductsFields = {}));
|
|
52
44
|
class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
53
45
|
constructor(getOrderProducts) {
|
|
@@ -56,10 +48,8 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
56
48
|
_OrderProduct_sku.set(this, void 0);
|
|
57
49
|
_OrderProduct_quantity.set(this, void 0);
|
|
58
50
|
_OrderProduct_status.set(this, void 0);
|
|
59
|
-
_OrderProduct_creationDate.set(this, void 0);
|
|
60
51
|
_OrderProduct_dateStatus.set(this, void 0);
|
|
61
52
|
_OrderProduct_detailedStatus.set(this, void 0);
|
|
62
|
-
_OrderProduct_family.set(this, void 0);
|
|
63
53
|
_OrderProduct_isAddon.set(this, void 0);
|
|
64
54
|
_OrderProduct_arrowSubCategories.set(this, void 0);
|
|
65
55
|
_OrderProduct_isTrial.set(this, void 0);
|
|
@@ -73,17 +63,11 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
73
63
|
_OrderProduct_organizationUnitRef.set(this, void 0);
|
|
74
64
|
_OrderProduct_organizationUnit.set(this, void 0);
|
|
75
65
|
_OrderProduct_priceBand.set(this, void 0);
|
|
76
|
-
_OrderProduct_pricingRules.set(this, void 0);
|
|
77
|
-
_OrderProduct_programName.set(this, void 0);
|
|
78
|
-
_OrderProduct_source.set(this, void 0);
|
|
79
|
-
_OrderProduct_vendorName.set(this, void 0);
|
|
80
66
|
__classPrivateFieldSet(this, _OrderProduct_sku, getOrderProducts[OrderProductsFields.COLUMN_SKU], "f");
|
|
81
|
-
__classPrivateFieldSet(this, _OrderProduct_creationDate, getOrderProducts[OrderProductsFields.COLUMN_CREATION_DATE], "f");
|
|
82
67
|
__classPrivateFieldSet(this, _OrderProduct_quantity, getOrderProducts[OrderProductsFields.COLUMN_QUANTITY], "f");
|
|
83
68
|
__classPrivateFieldSet(this, _OrderProduct_status, getOrderProducts[OrderProductsFields.COLUMN_STATUS], "f");
|
|
84
69
|
__classPrivateFieldSet(this, _OrderProduct_dateStatus, getOrderProducts[OrderProductsFields.COLUMN_DATESTATUS], "f");
|
|
85
70
|
__classPrivateFieldSet(this, _OrderProduct_detailedStatus, getOrderProducts[OrderProductsFields.COLUMN_DETAILEDSTATUS], "f");
|
|
86
|
-
__classPrivateFieldSet(this, _OrderProduct_family, new family_1.Family(getOrderProducts[OrderProductsFields.COLUMN_FAMILY]), "f");
|
|
87
71
|
__classPrivateFieldSet(this, _OrderProduct_isAddon, getOrderProducts[OrderProductsFields.COLUMN_IS_ADDON], "f");
|
|
88
72
|
__classPrivateFieldSet(this, _OrderProduct_arrowSubCategories, (_a = getOrderProducts[OrderProductsFields.COLUMN_ARROWSUBCATEGORIES]) !== null && _a !== void 0 ? _a : undefined, "f");
|
|
89
73
|
__classPrivateFieldSet(this, _OrderProduct_isTrial, getOrderProducts[OrderProductsFields.COLUMN_IS_TRIAL], "f");
|
|
@@ -101,12 +85,8 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
101
85
|
? new organizationUnit_1.OrganizationUnit(getOrderProducts[OrderProductsFields.COLUMN_ORGANIZATION_UNIT])
|
|
102
86
|
: undefined, "f");
|
|
103
87
|
__classPrivateFieldSet(this, _OrderProduct_priceBand, getOrderProducts[OrderProductsFields.COLUMN_PRICE_BAND]
|
|
104
|
-
? new
|
|
88
|
+
? new priceBand_1.PriceBand(getOrderProducts[OrderProductsFields.COLUMN_PRICE_BAND])
|
|
105
89
|
: undefined, "f");
|
|
106
|
-
__classPrivateFieldSet(this, _OrderProduct_pricingRules, getOrderProducts[OrderProductsFields.COLUMN_PRICING_RULES].map((businessRuleEffect) => new pricingRules_1.PricingRules(businessRuleEffect)), "f");
|
|
107
|
-
__classPrivateFieldSet(this, _OrderProduct_programName, getOrderProducts[OrderProductsFields.COLUMN_PROGRAM_NAME], "f");
|
|
108
|
-
__classPrivateFieldSet(this, _OrderProduct_source, getOrderProducts[OrderProductsFields.COLUMN_SOURCE], "f");
|
|
109
|
-
__classPrivateFieldSet(this, _OrderProduct_vendorName, getOrderProducts[OrderProductsFields.COLUMN_VENDOR_NAME], "f");
|
|
110
90
|
}
|
|
111
91
|
get sku() {
|
|
112
92
|
return __classPrivateFieldGet(this, _OrderProduct_sku, "f");
|
|
@@ -117,18 +97,12 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
117
97
|
get status() {
|
|
118
98
|
return __classPrivateFieldGet(this, _OrderProduct_status, "f");
|
|
119
99
|
}
|
|
120
|
-
get creationDate() {
|
|
121
|
-
return __classPrivateFieldGet(this, _OrderProduct_creationDate, "f");
|
|
122
|
-
}
|
|
123
100
|
get dateStatus() {
|
|
124
101
|
return __classPrivateFieldGet(this, _OrderProduct_dateStatus, "f");
|
|
125
102
|
}
|
|
126
103
|
get detailedStatus() {
|
|
127
104
|
return __classPrivateFieldGet(this, _OrderProduct_detailedStatus, "f");
|
|
128
105
|
}
|
|
129
|
-
get family() {
|
|
130
|
-
return __classPrivateFieldGet(this, _OrderProduct_family, "f");
|
|
131
|
-
}
|
|
132
106
|
get isAddon() {
|
|
133
107
|
return __classPrivateFieldGet(this, _OrderProduct_isAddon, "f");
|
|
134
108
|
}
|
|
@@ -168,28 +142,14 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
168
142
|
get organizationUnit() {
|
|
169
143
|
return __classPrivateFieldGet(this, _OrderProduct_organizationUnit, "f");
|
|
170
144
|
}
|
|
171
|
-
get pricingRules() {
|
|
172
|
-
return __classPrivateFieldGet(this, _OrderProduct_pricingRules, "f");
|
|
173
|
-
}
|
|
174
|
-
get programName() {
|
|
175
|
-
return __classPrivateFieldGet(this, _OrderProduct_programName, "f");
|
|
176
|
-
}
|
|
177
|
-
get source() {
|
|
178
|
-
return __classPrivateFieldGet(this, _OrderProduct_source, "f");
|
|
179
|
-
}
|
|
180
|
-
get vendorName() {
|
|
181
|
-
return __classPrivateFieldGet(this, _OrderProduct_vendorName, "f");
|
|
182
|
-
}
|
|
183
145
|
toJSON() {
|
|
184
146
|
var _a, _b, _c;
|
|
185
147
|
return {
|
|
186
148
|
[OrderProductsFields.COLUMN_SKU]: this.sku,
|
|
187
149
|
[OrderProductsFields.COLUMN_QUANTITY]: this.quantity,
|
|
188
150
|
[OrderProductsFields.COLUMN_STATUS]: this.status,
|
|
189
|
-
[OrderProductsFields.COLUMN_CREATION_DATE]: this.creationDate,
|
|
190
151
|
[OrderProductsFields.COLUMN_DATESTATUS]: this.dateStatus,
|
|
191
152
|
[OrderProductsFields.COLUMN_DETAILEDSTATUS]: this.detailedStatus,
|
|
192
|
-
[OrderProductsFields.COLUMN_FAMILY]: this.family.toJSON(),
|
|
193
153
|
[OrderProductsFields.COLUMN_IS_ADDON]: this.isAddon,
|
|
194
154
|
[OrderProductsFields.COLUMN_ARROWSUBCATEGORIES]: this.arrowSubCategories,
|
|
195
155
|
[OrderProductsFields.COLUMN_IS_TRIAL]: this.isTrial,
|
|
@@ -204,13 +164,9 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
204
164
|
.organizationUnitRef,
|
|
205
165
|
[OrderProductsFields.COLUMN_ORGANIZATION_UNIT]: (_b = this.organizationUnit) === null || _b === void 0 ? void 0 : _b.toJSON(),
|
|
206
166
|
[OrderProductsFields.COLUMN_PRICE_BAND]: (_c = this.priceBand) === null || _c === void 0 ? void 0 : _c.toJSON(),
|
|
207
|
-
[OrderProductsFields.COLUMN_PRICING_RULES]: this.pricingRules.map((pricingRules) => pricingRules.toJSON()),
|
|
208
|
-
[OrderProductsFields.COLUMN_PROGRAM_NAME]: this.programName,
|
|
209
|
-
[OrderProductsFields.COLUMN_SOURCE]: this.source,
|
|
210
|
-
[OrderProductsFields.COLUMN_VENDOR_NAME]: this.vendorName,
|
|
211
167
|
};
|
|
212
168
|
}
|
|
213
169
|
}
|
|
214
170
|
exports.OrderProduct = OrderProduct;
|
|
215
|
-
_OrderProduct_sku = new WeakMap(), _OrderProduct_quantity = new WeakMap(), _OrderProduct_status = new WeakMap(),
|
|
171
|
+
_OrderProduct_sku = new WeakMap(), _OrderProduct_quantity = new WeakMap(), _OrderProduct_status = new WeakMap(), _OrderProduct_dateStatus = new WeakMap(), _OrderProduct_detailedStatus = new WeakMap(), _OrderProduct_isAddon = new WeakMap(), _OrderProduct_arrowSubCategories = new WeakMap(), _OrderProduct_isTrial = new WeakMap(), _OrderProduct_prices = new WeakMap(), _OrderProduct_subscription = new WeakMap(), _OrderProduct_license = new WeakMap(), _OrderProduct_name = new WeakMap(), _OrderProduct_classification = new WeakMap(), _OrderProduct_program = new WeakMap(), _OrderProduct_identifier = new WeakMap(), _OrderProduct_organizationUnitRef = new WeakMap(), _OrderProduct_organizationUnit = new WeakMap(), _OrderProduct_priceBand = new WeakMap();
|
|
216
172
|
//# sourceMappingURL=products.js.map
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "https://github.com/ArrowSphere/nodejs-api-client.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "3.
|
|
7
|
+
"version": "3.235.0-rc-abo-1",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../../../abstractEntity';
|
|
2
|
-
export declare enum FamilyFields {
|
|
3
|
-
COLUMN_NAME = "name"
|
|
4
|
-
}
|
|
5
|
-
export declare type FamilyType = {
|
|
6
|
-
[FamilyFields.COLUMN_NAME]?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare class Family extends AbstractEntity<FamilyType> {
|
|
9
|
-
#private;
|
|
10
|
-
constructor(family: FamilyType);
|
|
11
|
-
get name(): string | undefined;
|
|
12
|
-
toJSON(): FamilyType;
|
|
13
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
|
-
var _Family_name;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.Family = exports.FamilyFields = void 0;
|
|
16
|
-
const abstractEntity_1 = require("../../../../../abstractEntity");
|
|
17
|
-
var FamilyFields;
|
|
18
|
-
(function (FamilyFields) {
|
|
19
|
-
FamilyFields["COLUMN_NAME"] = "name";
|
|
20
|
-
})(FamilyFields = exports.FamilyFields || (exports.FamilyFields = {}));
|
|
21
|
-
class Family extends abstractEntity_1.AbstractEntity {
|
|
22
|
-
constructor(family) {
|
|
23
|
-
super(family);
|
|
24
|
-
_Family_name.set(this, void 0);
|
|
25
|
-
__classPrivateFieldSet(this, _Family_name, family[FamilyFields.COLUMN_NAME], "f");
|
|
26
|
-
}
|
|
27
|
-
get name() {
|
|
28
|
-
return __classPrivateFieldGet(this, _Family_name, "f");
|
|
29
|
-
}
|
|
30
|
-
toJSON() {
|
|
31
|
-
return {
|
|
32
|
-
[FamilyFields.COLUMN_NAME]: this.name,
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.Family = Family;
|
|
37
|
-
_Family_name = new WeakMap();
|
|
38
|
-
//# sourceMappingURL=family.js.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../../../../../abstractEntity';
|
|
2
|
-
export declare enum IdentifiersVendorAttributesFields {
|
|
3
|
-
COLUMN_CAN_SWITCH_AUTO_RENEW = "canSwitchAutoRenew"
|
|
4
|
-
}
|
|
5
|
-
export declare type IdentifiersVendorAttributesType = {
|
|
6
|
-
[IdentifiersVendorAttributesFields.COLUMN_CAN_SWITCH_AUTO_RENEW]?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare class IdentifiersVendorAttributes extends AbstractEntity<IdentifiersVendorAttributesType> {
|
|
9
|
-
#private;
|
|
10
|
-
constructor(attributes: IdentifiersVendorAttributesType);
|
|
11
|
-
get canSwitchAutoRenew(): boolean | undefined;
|
|
12
|
-
toJSON(): IdentifiersVendorAttributesType;
|
|
13
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
|
-
var _IdentifiersVendorAttributes_canSwitchAutoRenew;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.IdentifiersVendorAttributes = exports.IdentifiersVendorAttributesFields = void 0;
|
|
16
|
-
const abstractEntity_1 = require("../../../../../../../abstractEntity");
|
|
17
|
-
var IdentifiersVendorAttributesFields;
|
|
18
|
-
(function (IdentifiersVendorAttributesFields) {
|
|
19
|
-
IdentifiersVendorAttributesFields["COLUMN_CAN_SWITCH_AUTO_RENEW"] = "canSwitchAutoRenew";
|
|
20
|
-
})(IdentifiersVendorAttributesFields = exports.IdentifiersVendorAttributesFields || (exports.IdentifiersVendorAttributesFields = {}));
|
|
21
|
-
class IdentifiersVendorAttributes extends abstractEntity_1.AbstractEntity {
|
|
22
|
-
constructor(attributes) {
|
|
23
|
-
super(attributes);
|
|
24
|
-
_IdentifiersVendorAttributes_canSwitchAutoRenew.set(this, void 0);
|
|
25
|
-
__classPrivateFieldSet(this, _IdentifiersVendorAttributes_canSwitchAutoRenew, attributes[IdentifiersVendorAttributesFields.COLUMN_CAN_SWITCH_AUTO_RENEW], "f");
|
|
26
|
-
}
|
|
27
|
-
get canSwitchAutoRenew() {
|
|
28
|
-
return __classPrivateFieldGet(this, _IdentifiersVendorAttributes_canSwitchAutoRenew, "f");
|
|
29
|
-
}
|
|
30
|
-
toJSON() {
|
|
31
|
-
return {
|
|
32
|
-
[IdentifiersVendorAttributesFields.COLUMN_CAN_SWITCH_AUTO_RENEW]: this
|
|
33
|
-
.canSwitchAutoRenew,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.IdentifiersVendorAttributes = IdentifiersVendorAttributes;
|
|
38
|
-
_IdentifiersVendorAttributes_canSwitchAutoRenew = new WeakMap();
|
|
39
|
-
//# sourceMappingURL=identifiersVendorAttributes.js.map
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../../../abstractEntity';
|
|
2
|
-
export declare enum PricingRulesFields {
|
|
3
|
-
COLUMN_TIER = "tier",
|
|
4
|
-
COLUMN_TYPE = "type",
|
|
5
|
-
COLUMN_RATE_TYPE = "rateType",
|
|
6
|
-
COLUMN_VALUE = "value"
|
|
7
|
-
}
|
|
8
|
-
export declare enum RuleEnum {
|
|
9
|
-
RATE = "rate",
|
|
10
|
-
LINK_TO_DEFAULT = "linkToDefault"
|
|
11
|
-
}
|
|
12
|
-
export declare enum RateEnum {
|
|
13
|
-
UPLIFT = "uplift",
|
|
14
|
-
DISCOUNT = "discount",
|
|
15
|
-
DISCOUNT_ON_SELF = "discountOnSelf",
|
|
16
|
-
UPLIFT_ON_SELF = "upliftOnSelf"
|
|
17
|
-
}
|
|
18
|
-
export declare type Tier = 1 | 2 | 3;
|
|
19
|
-
export declare type RuleType = RuleEnum.RATE | RuleEnum.LINK_TO_DEFAULT;
|
|
20
|
-
export declare type RateType = RateEnum.DISCOUNT | RateEnum.DISCOUNT_ON_SELF | RateEnum.UPLIFT | RateEnum.UPLIFT_ON_SELF;
|
|
21
|
-
export declare type BusinessRuleEffectType = {
|
|
22
|
-
[PricingRulesFields.COLUMN_TIER]: Tier;
|
|
23
|
-
[PricingRulesFields.COLUMN_TYPE]: RuleType;
|
|
24
|
-
[PricingRulesFields.COLUMN_RATE_TYPE]?: RateType;
|
|
25
|
-
[PricingRulesFields.COLUMN_VALUE]?: number;
|
|
26
|
-
};
|
|
27
|
-
export declare class PricingRules extends AbstractEntity<BusinessRuleEffectType> {
|
|
28
|
-
#private;
|
|
29
|
-
constructor(businessRuleEffect: BusinessRuleEffectType);
|
|
30
|
-
get tier(): Tier;
|
|
31
|
-
get type(): RuleType;
|
|
32
|
-
get rateType(): RateType | undefined;
|
|
33
|
-
get value(): number | undefined;
|
|
34
|
-
toJSON(): BusinessRuleEffectType;
|
|
35
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
|
-
var _PricingRules_tier, _PricingRules_type, _PricingRules_rateType, _PricingRules_value;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.PricingRules = exports.RateEnum = exports.RuleEnum = exports.PricingRulesFields = void 0;
|
|
16
|
-
const abstractEntity_1 = require("../../../../../abstractEntity");
|
|
17
|
-
var PricingRulesFields;
|
|
18
|
-
(function (PricingRulesFields) {
|
|
19
|
-
PricingRulesFields["COLUMN_TIER"] = "tier";
|
|
20
|
-
PricingRulesFields["COLUMN_TYPE"] = "type";
|
|
21
|
-
PricingRulesFields["COLUMN_RATE_TYPE"] = "rateType";
|
|
22
|
-
PricingRulesFields["COLUMN_VALUE"] = "value";
|
|
23
|
-
})(PricingRulesFields = exports.PricingRulesFields || (exports.PricingRulesFields = {}));
|
|
24
|
-
var RuleEnum;
|
|
25
|
-
(function (RuleEnum) {
|
|
26
|
-
RuleEnum["RATE"] = "rate";
|
|
27
|
-
RuleEnum["LINK_TO_DEFAULT"] = "linkToDefault";
|
|
28
|
-
})(RuleEnum = exports.RuleEnum || (exports.RuleEnum = {}));
|
|
29
|
-
var RateEnum;
|
|
30
|
-
(function (RateEnum) {
|
|
31
|
-
RateEnum["UPLIFT"] = "uplift";
|
|
32
|
-
RateEnum["DISCOUNT"] = "discount";
|
|
33
|
-
RateEnum["DISCOUNT_ON_SELF"] = "discountOnSelf";
|
|
34
|
-
RateEnum["UPLIFT_ON_SELF"] = "upliftOnSelf";
|
|
35
|
-
})(RateEnum = exports.RateEnum || (exports.RateEnum = {}));
|
|
36
|
-
class PricingRules extends abstractEntity_1.AbstractEntity {
|
|
37
|
-
constructor(businessRuleEffect) {
|
|
38
|
-
super(businessRuleEffect);
|
|
39
|
-
_PricingRules_tier.set(this, void 0);
|
|
40
|
-
_PricingRules_type.set(this, void 0);
|
|
41
|
-
_PricingRules_rateType.set(this, void 0);
|
|
42
|
-
_PricingRules_value.set(this, void 0);
|
|
43
|
-
__classPrivateFieldSet(this, _PricingRules_tier, businessRuleEffect[PricingRulesFields.COLUMN_TIER], "f");
|
|
44
|
-
__classPrivateFieldSet(this, _PricingRules_type, businessRuleEffect[PricingRulesFields.COLUMN_TYPE], "f");
|
|
45
|
-
__classPrivateFieldSet(this, _PricingRules_rateType, businessRuleEffect[PricingRulesFields.COLUMN_RATE_TYPE], "f");
|
|
46
|
-
__classPrivateFieldSet(this, _PricingRules_value, businessRuleEffect[PricingRulesFields.COLUMN_VALUE], "f");
|
|
47
|
-
}
|
|
48
|
-
get tier() {
|
|
49
|
-
return __classPrivateFieldGet(this, _PricingRules_tier, "f");
|
|
50
|
-
}
|
|
51
|
-
get type() {
|
|
52
|
-
return __classPrivateFieldGet(this, _PricingRules_type, "f");
|
|
53
|
-
}
|
|
54
|
-
get rateType() {
|
|
55
|
-
return __classPrivateFieldGet(this, _PricingRules_rateType, "f");
|
|
56
|
-
}
|
|
57
|
-
get value() {
|
|
58
|
-
return __classPrivateFieldGet(this, _PricingRules_value, "f");
|
|
59
|
-
}
|
|
60
|
-
toJSON() {
|
|
61
|
-
return {
|
|
62
|
-
[PricingRulesFields.COLUMN_TIER]: this.tier,
|
|
63
|
-
[PricingRulesFields.COLUMN_TYPE]: this.type,
|
|
64
|
-
[PricingRulesFields.COLUMN_RATE_TYPE]: this.rateType,
|
|
65
|
-
[PricingRulesFields.COLUMN_VALUE]: this.value,
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
exports.PricingRules = PricingRules;
|
|
70
|
-
_PricingRules_tier = new WeakMap(), _PricingRules_type = new WeakMap(), _PricingRules_rateType = new WeakMap(), _PricingRules_value = new WeakMap();
|
|
71
|
-
//# sourceMappingURL=pricingRules.js.map
|