@arrowsphere/api-client 3.403.0 → 3.404.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,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.404.0] - 2026.09.16
7
+ ### Added
8
+ - [orders] Add `preferredCurrency` fields to `PricesType`
9
+
6
10
  ## [3.403.0] - 2026.09.16
7
11
  ### Added
8
12
  - [orders] Add `quoteRef` fields to `OrderType`
@@ -1,3 +1,4 @@
1
+ import { ConversionRulesType } from '../../shared/preferredCurrency/conversionRules';
1
2
  export declare type GetProductsType = {
2
3
  getProducts?: PaginatedProductsType;
3
4
  };
@@ -257,18 +258,20 @@ export declare enum PricesTypeKeys {
257
258
  ARROW_KEY = "arrow",
258
259
  PARTNER_KEY = "partner",
259
260
  ENDCUSTOMER_KEY = "endCustomer",
260
- RETAIL_KEY = "public",
261
- VENDOR_PRICING_SOURCE_KEY = "vendorPricingSource"
261
+ RETAIL_KEY = "retail",
262
+ VENDOR_PRICING_SOURCE_KEY = "vendorPricingSource",
263
+ PREFERRED_CURRENCY = "preferredCurrency"
262
264
  }
263
265
  export declare type PricesType = {
264
266
  [PricesTypeKeys.BUY_KEY]?: string;
265
267
  [PricesTypeKeys.SELL_KEY]?: string;
266
268
  [PricesTypeKeys.PUBLIC_KEY]?: string;
267
- [PricesTypeKeys.ARROW_KEY]?: string;
268
- [PricesTypeKeys.PARTNER_KEY]?: string;
269
- [PricesTypeKeys.ENDCUSTOMER_KEY]?: string;
270
- [PricesTypeKeys.RETAIL_KEY]?: string;
269
+ [PricesTypeKeys.ARROW_KEY]?: number;
270
+ [PricesTypeKeys.PARTNER_KEY]?: number;
271
+ [PricesTypeKeys.ENDCUSTOMER_KEY]?: number;
272
+ [PricesTypeKeys.RETAIL_KEY]?: number;
271
273
  [PricesTypeKeys.VENDOR_PRICING_SOURCE_KEY]?: VendorPricingSourceType;
274
+ [PricesTypeKeys.PREFERRED_CURRENCY]?: PreferredCurrencyType;
272
275
  };
273
276
  export declare type PriceBandSaleConstraintsType = {
274
277
  availableDate?: string;
@@ -300,6 +303,28 @@ export declare type VendorPricingSourceType = {
300
303
  changeRate?: number;
301
304
  prices?: PricesType;
302
305
  };
306
+ export declare type PreferredCurrencyType = {
307
+ conversionRules: ConversionRulesType;
308
+ values: PreferredCurrencyValuesType;
309
+ };
310
+ export declare enum PreferredCurrencyValuesTypeKeys {
311
+ BUY_KEY = "buy",
312
+ SELL_KEY = "sell",
313
+ PUBLIC_KEY = "public",
314
+ ARROW_KEY = "arrow",
315
+ PARTNER_KEY = "partner",
316
+ ENDCUSTOMER_KEY = "endCustomer",
317
+ RETAIL_KEY = "retail"
318
+ }
319
+ export declare type PreferredCurrencyValuesType = {
320
+ [PreferredCurrencyValuesTypeKeys.BUY_KEY]?: string;
321
+ [PreferredCurrencyValuesTypeKeys.SELL_KEY]?: string;
322
+ [PreferredCurrencyValuesTypeKeys.PUBLIC_KEY]?: string;
323
+ [PreferredCurrencyValuesTypeKeys.ARROW_KEY]?: number;
324
+ [PreferredCurrencyValuesTypeKeys.PARTNER_KEY]?: number;
325
+ [PreferredCurrencyValuesTypeKeys.ENDCUSTOMER_KEY]?: number;
326
+ [PreferredCurrencyValuesTypeKeys.RETAIL_KEY]?: number;
327
+ };
303
328
  export declare type PromotionPricesFull = Omit<PromotionType, 'billing'> & {
304
329
  prices?: PricesType;
305
330
  attributes?: Array<AttributeType>;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Here are the types, they are useful to have exact types of the responses
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.AttributesParameterType = exports.PricesTypeKeys = void 0;
4
+ exports.AttributesParameterType = exports.PreferredCurrencyValuesTypeKeys = exports.PricesTypeKeys = void 0;
5
5
  var PricesTypeKeys;
6
6
  (function (PricesTypeKeys) {
7
7
  PricesTypeKeys["BUY_KEY"] = "buy";
@@ -10,9 +10,20 @@ var PricesTypeKeys;
10
10
  PricesTypeKeys["ARROW_KEY"] = "arrow";
11
11
  PricesTypeKeys["PARTNER_KEY"] = "partner";
12
12
  PricesTypeKeys["ENDCUSTOMER_KEY"] = "endCustomer";
13
- PricesTypeKeys["RETAIL_KEY"] = "public";
13
+ PricesTypeKeys["RETAIL_KEY"] = "retail";
14
14
  PricesTypeKeys["VENDOR_PRICING_SOURCE_KEY"] = "vendorPricingSource";
15
+ PricesTypeKeys["PREFERRED_CURRENCY"] = "preferredCurrency";
15
16
  })(PricesTypeKeys = exports.PricesTypeKeys || (exports.PricesTypeKeys = {}));
17
+ var PreferredCurrencyValuesTypeKeys;
18
+ (function (PreferredCurrencyValuesTypeKeys) {
19
+ PreferredCurrencyValuesTypeKeys["BUY_KEY"] = "buy";
20
+ PreferredCurrencyValuesTypeKeys["SELL_KEY"] = "sell";
21
+ PreferredCurrencyValuesTypeKeys["PUBLIC_KEY"] = "public";
22
+ PreferredCurrencyValuesTypeKeys["ARROW_KEY"] = "arrow";
23
+ PreferredCurrencyValuesTypeKeys["PARTNER_KEY"] = "partner";
24
+ PreferredCurrencyValuesTypeKeys["ENDCUSTOMER_KEY"] = "endCustomer";
25
+ PreferredCurrencyValuesTypeKeys["RETAIL_KEY"] = "retail";
26
+ })(PreferredCurrencyValuesTypeKeys = exports.PreferredCurrencyValuesTypeKeys || (exports.PreferredCurrencyValuesTypeKeys = {}));
16
27
  var AttributesParameterType;
17
28
  (function (AttributesParameterType) {
18
29
  AttributesParameterType["STANDARD"] = "STANDARD";
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.403.0",
7
+ "version": "3.404.0",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",