@sp-api-sdk/vendor-direct-fulfillment-shipping-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 VendorDirectFulfillmentShippingApiAxiosParamCreator = function (configurat
38
38
  // verify required parameter 'purchaseOrderNumber' is not null or undefined
39
39
  (0, common_1.assertParamExists)('getCustomerInvoice', 'purchaseOrderNumber', purchaseOrderNumber);
40
40
  const localVarPath = `/vendor/directFulfillment/shipping/v1/customerInvoices/{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;
@@ -124,7 +124,7 @@ const VendorDirectFulfillmentShippingApiAxiosParamCreator = function (configurat
124
124
  // verify required parameter 'purchaseOrderNumber' is not null or undefined
125
125
  (0, common_1.assertParamExists)('getPackingSlip', 'purchaseOrderNumber', purchaseOrderNumber);
126
126
  const localVarPath = `/vendor/directFulfillment/shipping/v1/packingSlips/{purchaseOrderNumber}`
127
- .replace(`{${"purchaseOrderNumber"}}`, encodeURIComponent(String(purchaseOrderNumber)));
127
+ .replace('{purchaseOrderNumber}', encodeURIComponent(String(purchaseOrderNumber)));
128
128
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
129
129
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
130
130
  let baseOptions;
@@ -210,7 +210,7 @@ const VendorDirectFulfillmentShippingApiAxiosParamCreator = function (configurat
210
210
  // verify required parameter 'purchaseOrderNumber' is not null or undefined
211
211
  (0, common_1.assertParamExists)('getShippingLabel', 'purchaseOrderNumber', purchaseOrderNumber);
212
212
  const localVarPath = `/vendor/directFulfillment/shipping/v1/shippingLabels/{purchaseOrderNumber}`
213
- .replace(`{${"purchaseOrderNumber"}}`, encodeURIComponent(String(purchaseOrderNumber)));
213
+ .replace('{purchaseOrderNumber}', encodeURIComponent(String(purchaseOrderNumber)));
214
214
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
215
215
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
216
216
  let baseOptions;
@@ -690,13 +690,13 @@ class VendorDirectFulfillmentShippingApi extends base_1.BaseAPI {
690
690
  exports.VendorDirectFulfillmentShippingApi = VendorDirectFulfillmentShippingApi;
691
691
  exports.GetCustomerInvoicesSortOrderEnum = {
692
692
  Asc: 'ASC',
693
- Desc: 'DESC'
693
+ Desc: 'DESC',
694
694
  };
695
695
  exports.GetPackingSlipsSortOrderEnum = {
696
696
  Asc: 'ASC',
697
- Desc: 'DESC'
697
+ Desc: 'DESC',
698
698
  };
699
699
  exports.GetShippingLabelsSortOrderEnum = {
700
700
  Asc: 'ASC',
701
- Desc: 'DESC'
701
+ Desc: 'DESC',
702
702
  };
@@ -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;
@@ -16,5 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ContainerContainerTypeEnum = void 0;
17
17
  exports.ContainerContainerTypeEnum = {
18
18
  Carton: 'carton',
19
- Pallet: 'pallet'
19
+ Pallet: 'pallet',
20
20
  };
@@ -16,5 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.DimensionsUnitOfMeasureEnum = void 0;
17
17
  exports.DimensionsUnitOfMeasureEnum = {
18
18
  In: 'IN',
19
- Cm: 'CM'
19
+ Cm: 'CM',
20
20
  };
@@ -15,5 +15,5 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PackingSlipContentTypeEnum = void 0;
17
17
  exports.PackingSlipContentTypeEnum = {
18
- ApplicationPdf: 'application/pdf'
18
+ ApplicationPdf: 'application/pdf',
19
19
  };
@@ -16,5 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ShipmentDetailsShipmentStatusEnum = void 0;
17
17
  exports.ShipmentDetailsShipmentStatusEnum = {
18
18
  Shipped: 'SHIPPED',
19
- FloorDenial: 'FLOOR_DENIAL'
19
+ FloorDenial: 'FLOOR_DENIAL',
20
20
  };
@@ -16,5 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ShippingLabelLabelFormatEnum = void 0;
17
17
  exports.ShippingLabelLabelFormatEnum = {
18
18
  Png: 'PNG',
19
- Zpl: 'ZPL'
19
+ Zpl: 'ZPL',
20
20
  };
@@ -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
  };
@@ -16,5 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.WeightUnitOfMeasureEnum = void 0;
17
17
  exports.WeightUnitOfMeasureEnum = {
18
18
  Kg: 'KG',
19
- Lb: 'LB'
19
+ Lb: 'LB',
20
20
  };
@@ -32,7 +32,7 @@ export const VendorDirectFulfillmentShippingApiAxiosParamCreator = function (con
32
32
  // verify required parameter 'purchaseOrderNumber' is not null or undefined
33
33
  assertParamExists('getCustomerInvoice', 'purchaseOrderNumber', purchaseOrderNumber);
34
34
  const localVarPath = `/vendor/directFulfillment/shipping/v1/customerInvoices/{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;
@@ -118,7 +118,7 @@ export const VendorDirectFulfillmentShippingApiAxiosParamCreator = function (con
118
118
  // verify required parameter 'purchaseOrderNumber' is not null or undefined
119
119
  assertParamExists('getPackingSlip', 'purchaseOrderNumber', purchaseOrderNumber);
120
120
  const localVarPath = `/vendor/directFulfillment/shipping/v1/packingSlips/{purchaseOrderNumber}`
121
- .replace(`{${"purchaseOrderNumber"}}`, encodeURIComponent(String(purchaseOrderNumber)));
121
+ .replace('{purchaseOrderNumber}', encodeURIComponent(String(purchaseOrderNumber)));
122
122
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
123
123
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
124
124
  let baseOptions;
@@ -204,7 +204,7 @@ export const VendorDirectFulfillmentShippingApiAxiosParamCreator = function (con
204
204
  // verify required parameter 'purchaseOrderNumber' is not null or undefined
205
205
  assertParamExists('getShippingLabel', 'purchaseOrderNumber', purchaseOrderNumber);
206
206
  const localVarPath = `/vendor/directFulfillment/shipping/v1/shippingLabels/{purchaseOrderNumber}`
207
- .replace(`{${"purchaseOrderNumber"}}`, encodeURIComponent(String(purchaseOrderNumber)));
207
+ .replace('{purchaseOrderNumber}', encodeURIComponent(String(purchaseOrderNumber)));
208
208
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
209
209
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
210
210
  let baseOptions;
@@ -680,13 +680,13 @@ export class VendorDirectFulfillmentShippingApi extends BaseAPI {
680
680
  }
681
681
  export const GetCustomerInvoicesSortOrderEnum = {
682
682
  Asc: 'ASC',
683
- Desc: 'DESC'
683
+ Desc: 'DESC',
684
684
  };
685
685
  export const GetPackingSlipsSortOrderEnum = {
686
686
  Asc: 'ASC',
687
- Desc: 'DESC'
687
+ Desc: 'DESC',
688
688
  };
689
689
  export const GetShippingLabelsSortOrderEnum = {
690
690
  Asc: 'ASC',
691
- Desc: 'DESC'
691
+ Desc: 'DESC',
692
692
  };
@@ -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
  }
@@ -13,5 +13,5 @@
13
13
  */
14
14
  export const ContainerContainerTypeEnum = {
15
15
  Carton: 'carton',
16
- Pallet: 'pallet'
16
+ Pallet: 'pallet',
17
17
  };
@@ -13,5 +13,5 @@
13
13
  */
14
14
  export const DimensionsUnitOfMeasureEnum = {
15
15
  In: 'IN',
16
- Cm: 'CM'
16
+ Cm: 'CM',
17
17
  };
@@ -12,5 +12,5 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  export const PackingSlipContentTypeEnum = {
15
- ApplicationPdf: 'application/pdf'
15
+ ApplicationPdf: 'application/pdf',
16
16
  };
@@ -13,5 +13,5 @@
13
13
  */
14
14
  export const ShipmentDetailsShipmentStatusEnum = {
15
15
  Shipped: 'SHIPPED',
16
- FloorDenial: 'FLOOR_DENIAL'
16
+ FloorDenial: 'FLOOR_DENIAL',
17
17
  };
@@ -13,5 +13,5 @@
13
13
  */
14
14
  export const ShippingLabelLabelFormatEnum = {
15
15
  Png: 'PNG',
16
- Zpl: 'ZPL'
16
+ Zpl: 'ZPL',
17
17
  };
@@ -13,5 +13,5 @@
13
13
  */
14
14
  export const TaxRegistrationDetailsTaxRegistrationTypeEnum = {
15
15
  Vat: 'VAT',
16
- Gst: 'GST'
16
+ Gst: 'GST',
17
17
  };
@@ -13,5 +13,5 @@
13
13
  */
14
14
  export const WeightUnitOfMeasureEnum = {
15
15
  Kg: 'KG',
16
- Lb: 'LB'
16
+ Lb: 'LB',
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-shipping-api-v1",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping 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 shipping api"
42
42
  ],
43
- "gitHead": "2c1fe783fb7c2204e7e19d4f85fa2bdf822e4593"
43
+ "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
44
44
  }