@arrowsphere/api-client 3.366.0 → 3.367.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.367.0] - 2026.05.11
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- [Cart] Add `isBundle`, `bundleArrowSphereSku`, and `basePriceBands` fields to `ItemType` and `Item` entity
|
|
11
|
+
- [Cart] Add `ItemBundleRequestType` for adding bundle items to cart
|
|
12
|
+
- [Cart] Add `BASE_PRICE_BANDS` and `BUNDLE_ARROWSPHERE_SKU` to `ItemRequestFields` enum
|
|
13
|
+
|
|
6
14
|
## [3.366.0] - 2026.05.11
|
|
7
15
|
### Added
|
|
8
16
|
- [SupportLevel] Add `displayName`, `level` and `priority` to `GraphqlApiSupportLevel`
|
|
@@ -5,6 +5,8 @@ import { GetPromotionCartListResult } from './entities/promotionList';
|
|
|
5
5
|
import { GetPrerequisitesListResult } from './entities/prerequisiteList';
|
|
6
6
|
export declare enum ItemRequestFields {
|
|
7
7
|
ADDITIONAL_DATA = "additionalData",
|
|
8
|
+
BASE_PRICE_BANDS = "basePriceBands",
|
|
9
|
+
BUNDLE_ARROWSPHERE_SKU = "bundleArrowSphereSku",
|
|
8
10
|
COTERM_PRICES = "cotermPrices",
|
|
9
11
|
COTERM_PRICES_WITHOUT_PROMOTION = "cotermPricesWithoutPromotion",
|
|
10
12
|
CURRENCY = "currency",
|
|
@@ -37,7 +39,14 @@ export declare type ItemRequestType = {
|
|
|
37
39
|
[ItemRequestFields.ADDITIONAL_DATA]?: ItemAdditionalDataRequestType[];
|
|
38
40
|
[ItemRequestFields.USERNAME]?: string;
|
|
39
41
|
};
|
|
40
|
-
export declare type
|
|
42
|
+
export declare type ItemBundleRequestType = {
|
|
43
|
+
[ItemRequestFields.BUNDLE_ARROWSPHERE_SKU]: string;
|
|
44
|
+
[ItemRequestFields.OFFER_NAME]: string;
|
|
45
|
+
[ItemRequestFields.QUANTITY]?: 1;
|
|
46
|
+
[ItemRequestFields.BASE_PRICE_BANDS]: ItemRequestType[];
|
|
47
|
+
[ItemRequestFields.ADDITIONAL_DATA]?: ItemAdditionalDataRequestType[];
|
|
48
|
+
};
|
|
49
|
+
export declare type ItemAddRequestType = ItemRequestType | ItemBundleRequestType;
|
|
41
50
|
export declare type ItemUpdateRequestType = {
|
|
42
51
|
[ItemRequestFields.PRICE_BAND_ARROWSPHERE_SKU]: string;
|
|
43
52
|
[ItemRequestFields.QUANTITY]: number;
|
package/build/cart/cartClient.js
CHANGED
|
@@ -9,6 +9,8 @@ const prerequisiteList_1 = require("./entities/prerequisiteList");
|
|
|
9
9
|
var ItemRequestFields;
|
|
10
10
|
(function (ItemRequestFields) {
|
|
11
11
|
ItemRequestFields["ADDITIONAL_DATA"] = "additionalData";
|
|
12
|
+
ItemRequestFields["BASE_PRICE_BANDS"] = "basePriceBands";
|
|
13
|
+
ItemRequestFields["BUNDLE_ARROWSPHERE_SKU"] = "bundleArrowSphereSku";
|
|
12
14
|
ItemRequestFields["COTERM_PRICES"] = "cotermPrices";
|
|
13
15
|
ItemRequestFields["COTERM_PRICES_WITHOUT_PROMOTION"] = "cotermPricesWithoutPromotion";
|
|
14
16
|
ItemRequestFields["CURRENCY"] = "currency";
|
|
@@ -13,10 +13,13 @@ export declare type PricingRuleType = {
|
|
|
13
13
|
};
|
|
14
14
|
export declare enum ItemFields {
|
|
15
15
|
ADDITIONAL_DATA = "additionalData",
|
|
16
|
+
BASE_PRICE_BANDS = "basePriceBands",
|
|
17
|
+
BUNDLE_ARROWSPHERE_SKU = "bundleArrowSphereSku",
|
|
16
18
|
COTERM_PRICES = "cotermPrices",
|
|
17
19
|
COTERM_PRICES_WITHOUT_PROMOTION = "cotermPricesWithoutPromotion",
|
|
18
20
|
CURRENCY = "currency",
|
|
19
21
|
IS_ADDON = "isAddon",
|
|
22
|
+
IS_BUNDLE = "isBundle",
|
|
20
23
|
IS_TRIAL = "isTrial",
|
|
21
24
|
ITEM_ID = "itemId",
|
|
22
25
|
OFFER_NAME = "offerName",
|
|
@@ -32,6 +35,7 @@ export declare type ItemType = {
|
|
|
32
35
|
[ItemFields.COTERM_PRICES_WITHOUT_PROMOTION]?: Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
|
|
33
36
|
[ItemFields.CURRENCY]?: string;
|
|
34
37
|
[ItemFields.IS_ADDON]?: boolean;
|
|
38
|
+
[ItemFields.IS_BUNDLE]?: boolean | undefined;
|
|
35
39
|
[ItemFields.IS_TRIAL]?: boolean;
|
|
36
40
|
[ItemFields.ITEM_ID]: string;
|
|
37
41
|
[ItemFields.OFFER_NAME]: string;
|
|
@@ -40,6 +44,8 @@ export declare type ItemType = {
|
|
|
40
44
|
[ItemFields.PRICES_WITHOUT_PROMOTION]?: Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
|
|
41
45
|
[ItemFields.QUANTITY]: number;
|
|
42
46
|
[ItemFields.RULES]?: Record<string, PricingRuleType> | undefined;
|
|
47
|
+
[ItemFields.BUNDLE_ARROWSPHERE_SKU]?: string | undefined;
|
|
48
|
+
[ItemFields.BASE_PRICE_BANDS]?: ItemType[] | undefined;
|
|
43
49
|
};
|
|
44
50
|
export declare class Item extends AbstractEntity<ItemType> {
|
|
45
51
|
#private;
|
|
@@ -49,6 +55,7 @@ export declare class Item extends AbstractEntity<ItemType> {
|
|
|
49
55
|
get cotermPricesWithoutPromotion(): Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
|
|
50
56
|
get currency(): string | undefined;
|
|
51
57
|
get isAddon(): boolean | undefined;
|
|
58
|
+
get isBundle(): boolean | undefined;
|
|
52
59
|
get isTrial(): boolean | undefined;
|
|
53
60
|
get itemId(): string;
|
|
54
61
|
get offerName(): string;
|
|
@@ -57,5 +64,7 @@ export declare class Item extends AbstractEntity<ItemType> {
|
|
|
57
64
|
get pricesWithoutPromotion(): Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
|
|
58
65
|
get quantity(): number;
|
|
59
66
|
get rules(): Record<string, PricingRuleType> | undefined;
|
|
67
|
+
get bundleArrowSphereSku(): string | undefined;
|
|
68
|
+
get basePriceBands(): Item[] | undefined;
|
|
60
69
|
toJSON(): ItemType;
|
|
61
70
|
}
|
|
@@ -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 _Item_additionalData, _Item_cotermPrices, _Item_cotermPricesWithoutPromotion, _Item_currency, _Item_isAddon, _Item_isTrial, _Item_itemId, _Item_offerName, _Item_priceBandArrowsphereSku, _Item_prices, _Item_pricesWithoutPromotion, _Item_quantity, _Item_rules;
|
|
13
|
+
var _Item_additionalData, _Item_cotermPrices, _Item_cotermPricesWithoutPromotion, _Item_currency, _Item_isAddon, _Item_isBundle, _Item_isTrial, _Item_itemId, _Item_offerName, _Item_priceBandArrowsphereSku, _Item_prices, _Item_pricesWithoutPromotion, _Item_quantity, _Item_rules, _Item_bundleArrowSphereSku, _Item_basePriceBands;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.Item = exports.ItemFields = exports.ItemAdditionalDataFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../abstractEntity");
|
|
@@ -22,10 +22,13 @@ var ItemAdditionalDataFields;
|
|
|
22
22
|
var ItemFields;
|
|
23
23
|
(function (ItemFields) {
|
|
24
24
|
ItemFields["ADDITIONAL_DATA"] = "additionalData";
|
|
25
|
+
ItemFields["BASE_PRICE_BANDS"] = "basePriceBands";
|
|
26
|
+
ItemFields["BUNDLE_ARROWSPHERE_SKU"] = "bundleArrowSphereSku";
|
|
25
27
|
ItemFields["COTERM_PRICES"] = "cotermPrices";
|
|
26
28
|
ItemFields["COTERM_PRICES_WITHOUT_PROMOTION"] = "cotermPricesWithoutPromotion";
|
|
27
29
|
ItemFields["CURRENCY"] = "currency";
|
|
28
30
|
ItemFields["IS_ADDON"] = "isAddon";
|
|
31
|
+
ItemFields["IS_BUNDLE"] = "isBundle";
|
|
29
32
|
ItemFields["IS_TRIAL"] = "isTrial";
|
|
30
33
|
ItemFields["ITEM_ID"] = "itemId";
|
|
31
34
|
ItemFields["OFFER_NAME"] = "offerName";
|
|
@@ -37,12 +40,14 @@ var ItemFields;
|
|
|
37
40
|
})(ItemFields = exports.ItemFields || (exports.ItemFields = {}));
|
|
38
41
|
class Item extends abstractEntity_1.AbstractEntity {
|
|
39
42
|
constructor(itemResponse) {
|
|
43
|
+
var _a;
|
|
40
44
|
super(itemResponse);
|
|
41
45
|
_Item_additionalData.set(this, void 0);
|
|
42
46
|
_Item_cotermPrices.set(this, void 0);
|
|
43
47
|
_Item_cotermPricesWithoutPromotion.set(this, void 0);
|
|
44
48
|
_Item_currency.set(this, void 0);
|
|
45
49
|
_Item_isAddon.set(this, void 0);
|
|
50
|
+
_Item_isBundle.set(this, void 0);
|
|
46
51
|
_Item_isTrial.set(this, void 0);
|
|
47
52
|
_Item_itemId.set(this, void 0);
|
|
48
53
|
_Item_offerName.set(this, void 0);
|
|
@@ -51,11 +56,14 @@ class Item extends abstractEntity_1.AbstractEntity {
|
|
|
51
56
|
_Item_pricesWithoutPromotion.set(this, void 0);
|
|
52
57
|
_Item_quantity.set(this, void 0);
|
|
53
58
|
_Item_rules.set(this, void 0);
|
|
59
|
+
_Item_bundleArrowSphereSku.set(this, void 0);
|
|
60
|
+
_Item_basePriceBands.set(this, void 0);
|
|
54
61
|
__classPrivateFieldSet(this, _Item_additionalData, itemResponse[ItemFields.ADDITIONAL_DATA], "f");
|
|
55
62
|
__classPrivateFieldSet(this, _Item_cotermPrices, itemResponse[ItemFields.COTERM_PRICES], "f");
|
|
56
63
|
__classPrivateFieldSet(this, _Item_cotermPricesWithoutPromotion, itemResponse[ItemFields.COTERM_PRICES_WITHOUT_PROMOTION], "f");
|
|
57
64
|
__classPrivateFieldSet(this, _Item_currency, itemResponse[ItemFields.CURRENCY], "f");
|
|
58
65
|
__classPrivateFieldSet(this, _Item_isAddon, itemResponse[ItemFields.IS_ADDON], "f");
|
|
66
|
+
__classPrivateFieldSet(this, _Item_isBundle, itemResponse[ItemFields.IS_BUNDLE], "f");
|
|
59
67
|
__classPrivateFieldSet(this, _Item_isTrial, itemResponse[ItemFields.IS_TRIAL], "f");
|
|
60
68
|
__classPrivateFieldSet(this, _Item_itemId, itemResponse[ItemFields.ITEM_ID], "f");
|
|
61
69
|
__classPrivateFieldSet(this, _Item_offerName, itemResponse[ItemFields.OFFER_NAME], "f");
|
|
@@ -64,6 +72,8 @@ class Item extends abstractEntity_1.AbstractEntity {
|
|
|
64
72
|
__classPrivateFieldSet(this, _Item_pricesWithoutPromotion, itemResponse[ItemFields.PRICES_WITHOUT_PROMOTION], "f");
|
|
65
73
|
__classPrivateFieldSet(this, _Item_quantity, itemResponse[ItemFields.QUANTITY], "f");
|
|
66
74
|
__classPrivateFieldSet(this, _Item_rules, itemResponse[ItemFields.RULES], "f");
|
|
75
|
+
__classPrivateFieldSet(this, _Item_bundleArrowSphereSku, itemResponse[ItemFields.BUNDLE_ARROWSPHERE_SKU], "f");
|
|
76
|
+
__classPrivateFieldSet(this, _Item_basePriceBands, (_a = itemResponse[ItemFields.BASE_PRICE_BANDS]) === null || _a === void 0 ? void 0 : _a.map((band) => new Item(band)), "f");
|
|
67
77
|
}
|
|
68
78
|
get additionalData() {
|
|
69
79
|
return __classPrivateFieldGet(this, _Item_additionalData, "f");
|
|
@@ -80,6 +90,9 @@ class Item extends abstractEntity_1.AbstractEntity {
|
|
|
80
90
|
get isAddon() {
|
|
81
91
|
return __classPrivateFieldGet(this, _Item_isAddon, "f");
|
|
82
92
|
}
|
|
93
|
+
get isBundle() {
|
|
94
|
+
return __classPrivateFieldGet(this, _Item_isBundle, "f");
|
|
95
|
+
}
|
|
83
96
|
get isTrial() {
|
|
84
97
|
return __classPrivateFieldGet(this, _Item_isTrial, "f");
|
|
85
98
|
}
|
|
@@ -104,7 +117,14 @@ class Item extends abstractEntity_1.AbstractEntity {
|
|
|
104
117
|
get rules() {
|
|
105
118
|
return __classPrivateFieldGet(this, _Item_rules, "f");
|
|
106
119
|
}
|
|
120
|
+
get bundleArrowSphereSku() {
|
|
121
|
+
return __classPrivateFieldGet(this, _Item_bundleArrowSphereSku, "f");
|
|
122
|
+
}
|
|
123
|
+
get basePriceBands() {
|
|
124
|
+
return __classPrivateFieldGet(this, _Item_basePriceBands, "f");
|
|
125
|
+
}
|
|
107
126
|
toJSON() {
|
|
127
|
+
var _a;
|
|
108
128
|
return {
|
|
109
129
|
[ItemFields.ADDITIONAL_DATA]: this.additionalData,
|
|
110
130
|
[ItemFields.COTERM_PRICES]: this.cotermPrices,
|
|
@@ -112,6 +132,7 @@ class Item extends abstractEntity_1.AbstractEntity {
|
|
|
112
132
|
.cotermPricesWithoutPromotion,
|
|
113
133
|
[ItemFields.CURRENCY]: this.currency,
|
|
114
134
|
[ItemFields.IS_ADDON]: this.isAddon,
|
|
135
|
+
[ItemFields.IS_BUNDLE]: this.isBundle,
|
|
115
136
|
[ItemFields.IS_TRIAL]: this.isTrial,
|
|
116
137
|
[ItemFields.ITEM_ID]: this.itemId,
|
|
117
138
|
[ItemFields.OFFER_NAME]: this.offerName,
|
|
@@ -120,9 +141,11 @@ class Item extends abstractEntity_1.AbstractEntity {
|
|
|
120
141
|
[ItemFields.PRICES_WITHOUT_PROMOTION]: this.pricesWithoutPromotion,
|
|
121
142
|
[ItemFields.QUANTITY]: this.quantity,
|
|
122
143
|
[ItemFields.RULES]: this.rules,
|
|
144
|
+
[ItemFields.BUNDLE_ARROWSPHERE_SKU]: this.bundleArrowSphereSku,
|
|
145
|
+
[ItemFields.BASE_PRICE_BANDS]: (_a = this.basePriceBands) === null || _a === void 0 ? void 0 : _a.map((band) => band.toJSON()),
|
|
123
146
|
};
|
|
124
147
|
}
|
|
125
148
|
}
|
|
126
149
|
exports.Item = Item;
|
|
127
|
-
_Item_additionalData = new WeakMap(), _Item_cotermPrices = new WeakMap(), _Item_cotermPricesWithoutPromotion = new WeakMap(), _Item_currency = new WeakMap(), _Item_isAddon = new WeakMap(), _Item_isTrial = new WeakMap(), _Item_itemId = new WeakMap(), _Item_offerName = new WeakMap(), _Item_priceBandArrowsphereSku = new WeakMap(), _Item_prices = new WeakMap(), _Item_pricesWithoutPromotion = new WeakMap(), _Item_quantity = new WeakMap(), _Item_rules = new WeakMap();
|
|
150
|
+
_Item_additionalData = new WeakMap(), _Item_cotermPrices = new WeakMap(), _Item_cotermPricesWithoutPromotion = new WeakMap(), _Item_currency = new WeakMap(), _Item_isAddon = new WeakMap(), _Item_isBundle = new WeakMap(), _Item_isTrial = new WeakMap(), _Item_itemId = new WeakMap(), _Item_offerName = new WeakMap(), _Item_priceBandArrowsphereSku = new WeakMap(), _Item_prices = new WeakMap(), _Item_pricesWithoutPromotion = new WeakMap(), _Item_quantity = new WeakMap(), _Item_rules = new WeakMap(), _Item_bundleArrowSphereSku = new WeakMap(), _Item_basePriceBands = new WeakMap();
|
|
128
151
|
//# sourceMappingURL=item.js.map
|
package/package.json
CHANGED