@sp-api-sdk/vendor-direct-fulfillment-orders-api-v1 4.0.15 → 4.0.17

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.
@@ -38,7 +38,7 @@ const VendorDirectFulfillmentOrdersApiAxiosParamCreator = function (configuratio
38
38
  // verify required parameter 'purchaseOrderNumber' is not null or undefined
39
39
  (0, common_1.assertParamExists)('getOrder', 'purchaseOrderNumber', purchaseOrderNumber);
40
40
  const localVarPath = `/vendor/directFulfillment/orders/v1/purchaseOrders/{purchaseOrderNumber}`
41
- .replace(`{${"purchaseOrderNumber"}}`, encodeURIComponent(String(purchaseOrderNumber)));
41
+ .replace('{purchaseOrderNumber}', encodeURIComponent(String(purchaseOrderNumber)));
42
42
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
43
43
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
44
44
  let baseOptions;
@@ -280,9 +280,9 @@ exports.GetOrdersStatusEnum = {
280
280
  New: 'NEW',
281
281
  Shipped: 'SHIPPED',
282
282
  Accepted: 'ACCEPTED',
283
- Cancelled: 'CANCELLED'
283
+ Cancelled: 'CANCELLED',
284
284
  };
285
285
  exports.GetOrdersSortOrderEnum = {
286
286
  Asc: 'ASC',
287
- Desc: 'DESC'
287
+ Desc: 'DESC',
288
288
  };
@@ -90,6 +90,7 @@ exports.setSearchParams = setSearchParams;
90
90
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
91
91
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
92
92
  */
93
+ // @ts-ignore
93
94
  const replaceWithSerializableTypeIfNeeded = function (key, value) {
94
95
  if (value instanceof Set) {
95
96
  return Array.from(value);
@@ -91,8 +91,8 @@ class Configuration {
91
91
  * @return True if the given MIME is JSON, false otherwise.
92
92
  */
93
93
  isJsonMime(mime) {
94
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
95
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
94
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
95
+ return mime !== null && jsonMime.test(mime);
96
96
  }
97
97
  }
98
98
  exports.Configuration = Configuration;
@@ -15,5 +15,5 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ItemQuantityUnitOfMeasureEnum = void 0;
17
17
  exports.ItemQuantityUnitOfMeasureEnum = {
18
- Each: 'Each'
18
+ Each: 'Each',
19
19
  };
@@ -18,5 +18,5 @@ exports.OrderDetailsOrderStatusEnum = {
18
18
  New: 'NEW',
19
19
  Shipped: 'SHIPPED',
20
20
  Accepted: 'ACCEPTED',
21
- Cancelled: 'CANCELLED'
21
+ Cancelled: 'CANCELLED',
22
22
  };
@@ -21,5 +21,5 @@ exports.TaxDetailsTypeEnum = {
21
21
  Pst: 'PST',
22
22
  Total: 'TOTAL',
23
23
  Tva: 'TVA',
24
- Vat: 'VAT'
24
+ Vat: 'VAT',
25
25
  };
@@ -16,5 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.TaxRegistrationDetailsTaxRegistrationTypeEnum = void 0;
17
17
  exports.TaxRegistrationDetailsTaxRegistrationTypeEnum = {
18
18
  Vat: 'VAT',
19
- Gst: 'GST'
19
+ Gst: 'GST',
20
20
  };
@@ -32,7 +32,7 @@ export const VendorDirectFulfillmentOrdersApiAxiosParamCreator = function (confi
32
32
  // verify required parameter 'purchaseOrderNumber' is not null or undefined
33
33
  assertParamExists('getOrder', 'purchaseOrderNumber', purchaseOrderNumber);
34
34
  const localVarPath = `/vendor/directFulfillment/orders/v1/purchaseOrders/{purchaseOrderNumber}`
35
- .replace(`{${"purchaseOrderNumber"}}`, encodeURIComponent(String(purchaseOrderNumber)));
35
+ .replace('{purchaseOrderNumber}', encodeURIComponent(String(purchaseOrderNumber)));
36
36
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
37
37
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38
38
  let baseOptions;
@@ -270,9 +270,9 @@ export const GetOrdersStatusEnum = {
270
270
  New: 'NEW',
271
271
  Shipped: 'SHIPPED',
272
272
  Accepted: 'ACCEPTED',
273
- Cancelled: 'CANCELLED'
273
+ Cancelled: 'CANCELLED',
274
274
  };
275
275
  export const GetOrdersSortOrderEnum = {
276
276
  Asc: 'ASC',
277
- Desc: 'DESC'
277
+ Desc: 'DESC',
278
278
  };
@@ -81,6 +81,7 @@ export const setSearchParams = function (url, ...objects) {
81
81
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
82
82
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
83
83
  */
84
+ // @ts-ignore
84
85
  export const replaceWithSerializableTypeIfNeeded = function (key, value) {
85
86
  if (value instanceof Set) {
86
87
  return Array.from(value);
@@ -88,7 +88,7 @@ export class Configuration {
88
88
  * @return True if the given MIME is JSON, false otherwise.
89
89
  */
90
90
  isJsonMime(mime) {
91
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
92
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
91
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
92
+ return mime !== null && jsonMime.test(mime);
93
93
  }
94
94
  }
@@ -12,5 +12,5 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  export const ItemQuantityUnitOfMeasureEnum = {
15
- Each: 'Each'
15
+ Each: 'Each',
16
16
  };
@@ -15,5 +15,5 @@ export const OrderDetailsOrderStatusEnum = {
15
15
  New: 'NEW',
16
16
  Shipped: 'SHIPPED',
17
17
  Accepted: 'ACCEPTED',
18
- Cancelled: 'CANCELLED'
18
+ Cancelled: 'CANCELLED',
19
19
  };
@@ -18,5 +18,5 @@ export const TaxDetailsTypeEnum = {
18
18
  Pst: 'PST',
19
19
  Total: 'TOTAL',
20
20
  Tva: 'TVA',
21
- Vat: 'VAT'
21
+ Vat: 'VAT',
22
22
  };
@@ -13,5 +13,5 @@
13
13
  */
14
14
  export const TaxRegistrationDetailsTaxRegistrationTypeEnum = {
15
15
  Vat: 'VAT',
16
- Gst: 'GST'
16
+ Gst: 'GST',
17
17
  };
@@ -28,7 +28,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
28
28
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
29
29
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
30
30
  */
31
- export declare const replaceWithSerializableTypeIfNeeded: (key: any, value: any) => any;
31
+ export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
32
32
  export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
33
33
  export declare const toPathString: (url: URL) => string;
34
34
  export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/vendor-direct-fulfillment-orders-api-v1",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data.",
5
- "version": "4.0.15",
5
+ "version": "4.0.17",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "dist/**/*.d.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@sp-api-sdk/common": "2.1.29",
22
- "axios": "^1.13.5"
21
+ "@sp-api-sdk/common": "2.1.31",
22
+ "axios": "^1.15.2"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "vendor direct fulfillment orders api"
42
42
  ],
43
- "gitHead": "2c1fe783fb7c2204e7e19d4f85fa2bdf822e4593"
43
+ "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
44
44
  }