@sp-api-sdk/shipping-api-v1 2.3.8 → 3.0.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.
|
@@ -78,7 +78,13 @@ class Configuration {
|
|
|
78
78
|
this.accessToken = param.accessToken;
|
|
79
79
|
this.basePath = param.basePath;
|
|
80
80
|
this.serverIndex = param.serverIndex;
|
|
81
|
-
this.baseOptions =
|
|
81
|
+
this.baseOptions = {
|
|
82
|
+
headers: {
|
|
83
|
+
...param.baseOptions?.headers,
|
|
84
|
+
'User-Agent': "OpenAPI-Generator/typescript-axios"
|
|
85
|
+
},
|
|
86
|
+
...param.baseOptions
|
|
87
|
+
};
|
|
82
88
|
this.formDataCtor = param.formDataCtor;
|
|
83
89
|
}
|
|
84
90
|
/**
|
|
@@ -20,7 +20,7 @@ exports.ServiceType = void 0;
|
|
|
20
20
|
* @enum {string}
|
|
21
21
|
*/
|
|
22
22
|
exports.ServiceType = {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
AmazonShippingGround: 'Amazon Shipping Ground',
|
|
24
|
+
AmazonShippingStandard: 'Amazon Shipping Standard',
|
|
25
|
+
AmazonShippingPremium: 'Amazon Shipping Premium'
|
|
26
26
|
};
|
|
@@ -75,7 +75,13 @@ export class Configuration {
|
|
|
75
75
|
this.accessToken = param.accessToken;
|
|
76
76
|
this.basePath = param.basePath;
|
|
77
77
|
this.serverIndex = param.serverIndex;
|
|
78
|
-
this.baseOptions =
|
|
78
|
+
this.baseOptions = {
|
|
79
|
+
headers: {
|
|
80
|
+
...param.baseOptions?.headers,
|
|
81
|
+
'User-Agent': "OpenAPI-Generator/typescript-axios"
|
|
82
|
+
},
|
|
83
|
+
...param.baseOptions
|
|
84
|
+
};
|
|
79
85
|
this.formDataCtor = param.formDataCtor;
|
|
80
86
|
}
|
|
81
87
|
/**
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* @enum {string}
|
|
18
18
|
*/
|
|
19
19
|
export const ServiceType = {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
AmazonShippingGround: 'Amazon Shipping Ground',
|
|
21
|
+
AmazonShippingStandard: 'Amazon Shipping Standard',
|
|
22
|
+
AmazonShippingPremium: 'Amazon Shipping Premium'
|
|
23
23
|
};
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* @enum {string}
|
|
16
16
|
*/
|
|
17
17
|
export declare const ServiceType: {
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
18
|
+
readonly AmazonShippingGround: "Amazon Shipping Ground";
|
|
19
|
+
readonly AmazonShippingStandard: "Amazon Shipping Standard";
|
|
20
|
+
readonly AmazonShippingPremium: "Amazon Shipping Premium";
|
|
21
21
|
};
|
|
22
22
|
export type ServiceType = typeof ServiceType[keyof typeof ServiceType];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/shipping-api-v1",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "Provides programmatic access to Amazon Shipping APIs. Note: If you are new to the Amazon Shipping API, refer to the latest version of Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site.",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "3.0.0",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.1.
|
|
21
|
+
"@sp-api-sdk/common": "2.1.9",
|
|
22
22
|
"axios": "^1.7.9"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"shipping api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "00dfa4e5e7dd2f486f00e85e5dab73ea2685eb0f"
|
|
44
44
|
}
|