@arrowsphere/api-client 3.406.0 → 3.407.1-rc-cpe-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 CHANGED
@@ -3,6 +3,10 @@
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.407.0] - 2026.09.28
7
+ ### Added
8
+ - [Cart] Add `pricebandErpSku` field to `ItemRequestType`
9
+
6
10
  ## [3.406.0] - 2026.09.24
7
11
  ### Added
8
12
  - [graphql-api] Add `uuid` field to `GraphqlApiOrderSoftwareType`
@@ -15,6 +15,7 @@ export declare enum ItemRequestFields {
15
15
  ITEM_ID = "itemId",
16
16
  OFFER_NAME = "offerName",
17
17
  PRICE_BAND_ARROWSPHERE_SKU = "priceBandArrowsphereSku",
18
+ PRICE_BAND_ERP_SKU = "pricebandErpSku",
18
19
  PRICE_BAND_VENDOR_SKU = "pricebandVendorSku",
19
20
  PRICES = "prices",
20
21
  PRICES_WITHOUT_PROMOTION = "pricesWithoutPromotion",
@@ -36,6 +37,7 @@ export declare type ItemAdditionalDataRequestType = {
36
37
  export declare type ItemRequestType = {
37
38
  [ItemRequestFields.OFFER_NAME]: string;
38
39
  [ItemRequestFields.PRICE_BAND_ARROWSPHERE_SKU]: string;
40
+ [ItemRequestFields.PRICE_BAND_ERP_SKU]?: string;
39
41
  [ItemRequestFields.PRICE_BAND_VENDOR_SKU]?: string;
40
42
  [ItemRequestFields.QUANTITY]: number;
41
43
  [ItemRequestFields.ADDITIONAL_DATA]?: ItemAdditionalDataRequestType[];
@@ -19,6 +19,7 @@ var ItemRequestFields;
19
19
  ItemRequestFields["ITEM_ID"] = "itemId";
20
20
  ItemRequestFields["OFFER_NAME"] = "offerName";
21
21
  ItemRequestFields["PRICE_BAND_ARROWSPHERE_SKU"] = "priceBandArrowsphereSku";
22
+ ItemRequestFields["PRICE_BAND_ERP_SKU"] = "pricebandErpSku";
22
23
  ItemRequestFields["PRICE_BAND_VENDOR_SKU"] = "pricebandVendorSku";
23
24
  ItemRequestFields["PRICES"] = "prices";
24
25
  ItemRequestFields["PRICES_WITHOUT_PROMOTION"] = "pricesWithoutPromotion";
@@ -24,6 +24,7 @@ export declare enum ItemFields {
24
24
  ITEM_ID = "itemId",
25
25
  OFFER_NAME = "offerName",
26
26
  PRICE_BAND_ARROWSPHERE_SKU = "priceBandArrowsphereSku",
27
+ PRICE_BAND_ERP_SKU = "pricebandErpSku",
27
28
  PRICE_BAND_VENDOR_SKU = "pricebandVendorSku",
28
29
  PRICES = "prices",
29
30
  PRICES_WITHOUT_PROMOTION = "pricesWithoutPromotion",
@@ -41,6 +42,7 @@ export declare type ItemType = {
41
42
  [ItemFields.ITEM_ID]: string;
42
43
  [ItemFields.OFFER_NAME]: string;
43
44
  [ItemFields.PRICE_BAND_ARROWSPHERE_SKU]: string;
45
+ [ItemFields.PRICE_BAND_ERP_SKU]?: string;
44
46
  [ItemFields.PRICE_BAND_VENDOR_SKU]?: string;
45
47
  [ItemFields.PRICES]?: Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
46
48
  [ItemFields.PRICES_WITHOUT_PROMOTION]?: Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
@@ -62,6 +64,7 @@ export declare class Item extends AbstractEntity<ItemType> {
62
64
  get itemId(): string;
63
65
  get offerName(): string;
64
66
  get priceBandArrowsphereSku(): string;
67
+ get pricebandErpSku(): string | undefined;
65
68
  get pricebandVendorSku(): string | undefined;
66
69
  get prices(): Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
67
70
  get pricesWithoutPromotion(): Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
@@ -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_isBundle, _Item_isTrial, _Item_itemId, _Item_offerName, _Item_priceBandArrowsphereSku, _Item_pricebandVendorSku, _Item_prices, _Item_pricesWithoutPromotion, _Item_quantity, _Item_rules, _Item_bundleArrowSphereSku, _Item_basePriceBands;
13
+ var _Item_additionalData, _Item_cotermPrices, _Item_cotermPricesWithoutPromotion, _Item_currency, _Item_isAddon, _Item_isBundle, _Item_isTrial, _Item_itemId, _Item_offerName, _Item_priceBandArrowsphereSku, _Item_pricebandErpSku, _Item_pricebandVendorSku, _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");
@@ -33,6 +33,7 @@ var ItemFields;
33
33
  ItemFields["ITEM_ID"] = "itemId";
34
34
  ItemFields["OFFER_NAME"] = "offerName";
35
35
  ItemFields["PRICE_BAND_ARROWSPHERE_SKU"] = "priceBandArrowsphereSku";
36
+ ItemFields["PRICE_BAND_ERP_SKU"] = "pricebandErpSku";
36
37
  ItemFields["PRICE_BAND_VENDOR_SKU"] = "pricebandVendorSku";
37
38
  ItemFields["PRICES"] = "prices";
38
39
  ItemFields["PRICES_WITHOUT_PROMOTION"] = "pricesWithoutPromotion";
@@ -53,6 +54,7 @@ class Item extends abstractEntity_1.AbstractEntity {
53
54
  _Item_itemId.set(this, void 0);
54
55
  _Item_offerName.set(this, void 0);
55
56
  _Item_priceBandArrowsphereSku.set(this, void 0);
57
+ _Item_pricebandErpSku.set(this, void 0);
56
58
  _Item_pricebandVendorSku.set(this, void 0);
57
59
  _Item_prices.set(this, void 0);
58
60
  _Item_pricesWithoutPromotion.set(this, void 0);
@@ -70,6 +72,7 @@ class Item extends abstractEntity_1.AbstractEntity {
70
72
  __classPrivateFieldSet(this, _Item_itemId, itemResponse[ItemFields.ITEM_ID], "f");
71
73
  __classPrivateFieldSet(this, _Item_offerName, itemResponse[ItemFields.OFFER_NAME], "f");
72
74
  __classPrivateFieldSet(this, _Item_priceBandArrowsphereSku, itemResponse[ItemFields.PRICE_BAND_ARROWSPHERE_SKU], "f");
75
+ __classPrivateFieldSet(this, _Item_pricebandErpSku, itemResponse[ItemFields.PRICE_BAND_ERP_SKU], "f");
73
76
  __classPrivateFieldSet(this, _Item_pricebandVendorSku, itemResponse[ItemFields.PRICE_BAND_VENDOR_SKU], "f");
74
77
  __classPrivateFieldSet(this, _Item_prices, itemResponse[ItemFields.PRICES], "f");
75
78
  __classPrivateFieldSet(this, _Item_pricesWithoutPromotion, itemResponse[ItemFields.PRICES_WITHOUT_PROMOTION], "f");
@@ -108,6 +111,9 @@ class Item extends abstractEntity_1.AbstractEntity {
108
111
  get priceBandArrowsphereSku() {
109
112
  return __classPrivateFieldGet(this, _Item_priceBandArrowsphereSku, "f");
110
113
  }
114
+ get pricebandErpSku() {
115
+ return __classPrivateFieldGet(this, _Item_pricebandErpSku, "f");
116
+ }
111
117
  get pricebandVendorSku() {
112
118
  return __classPrivateFieldGet(this, _Item_pricebandVendorSku, "f");
113
119
  }
@@ -143,6 +149,7 @@ class Item extends abstractEntity_1.AbstractEntity {
143
149
  [ItemFields.ITEM_ID]: this.itemId,
144
150
  [ItemFields.OFFER_NAME]: this.offerName,
145
151
  [ItemFields.PRICE_BAND_ARROWSPHERE_SKU]: this.priceBandArrowsphereSku,
152
+ [ItemFields.PRICE_BAND_ERP_SKU]: this.pricebandErpSku,
146
153
  [ItemFields.PRICE_BAND_VENDOR_SKU]: this.pricebandVendorSku,
147
154
  [ItemFields.PRICES]: this.prices,
148
155
  [ItemFields.PRICES_WITHOUT_PROMOTION]: this.pricesWithoutPromotion,
@@ -154,5 +161,5 @@ class Item extends abstractEntity_1.AbstractEntity {
154
161
  }
155
162
  }
156
163
  exports.Item = Item;
157
- _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_pricebandVendorSku = 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();
164
+ _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_pricebandErpSku = new WeakMap(), _Item_pricebandVendorSku = 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();
158
165
  //# sourceMappingURL=item.js.map
@@ -333,7 +333,9 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
333
333
  ...this.createFilters(postData.sort, 'rates'),
334
334
  };
335
335
  }
336
+ console.log('rawLicensePayload', rawLicensePayload);
336
337
  const response = await this.findRaw(rawLicensePayload, parameters);
338
+ console.log('response', response);
337
339
  return new findResult_1.FindResult(response, this, rawLicensePayload, parameters);
338
340
  }
339
341
  async findAttachments(licenseReference, perPage = 100, page = 1, parameters = {}) {
@@ -570,7 +572,7 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
570
572
  const subAcc = Object.entries(value).reduce((generatedArr, [i, val]) => {
571
573
  let recursiveArr;
572
574
  const newKey = keyParent + '.' + key + '.' + i;
573
- if (typeof val !== 'object') {
575
+ if (typeof val !== 'object' || Array.isArray(val)) {
574
576
  generatedArr[`${newKey}`] = val;
575
577
  return generatedArr;
576
578
  }
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.406.0",
7
+ "version": "3.407.1-rc-cpe-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",