@sp-api-sdk/sellers-api-v1 1.8.2 → 1.8.5
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/dist/cjs/src/api-model/api/sellers-api.js +1 -1
- package/dist/es/src/api-model/api/sellers-api.js +1 -1
- package/dist/types/src/api-model/api/sellers-api.d.ts +4 -4
- package/dist/types/src/api-model/base.d.ts +2 -2
- package/dist/types/src/api-model/common.d.ts +2 -2
- package/dist/types/src/api-model/models/get-marketplace-participations-response.d.ts +2 -2
- package/dist/types/src/api-model/models/marketplace-participation.d.ts +2 -2
- package/dist/types/src/api-model/models/marketplace.d.ts +6 -6
- package/dist/types/src/api-model/models/model-error.d.ts +3 -3
- package/dist/types/src/api-model/models/participation.d.ts +2 -2
- package/package.json +5 -5
|
@@ -43,7 +43,7 @@ const SellersApiAxiosParamCreator = function (configuration) {
|
|
|
43
43
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
44
44
|
const localVarHeaderParameter = {};
|
|
45
45
|
const localVarQueryParameter = {};
|
|
46
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter
|
|
46
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
47
47
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
48
48
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
49
49
|
return {
|
|
@@ -39,7 +39,7 @@ export const SellersApiAxiosParamCreator = function (configuration) {
|
|
|
39
39
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
40
40
|
const localVarHeaderParameter = {};
|
|
41
41
|
const localVarQueryParameter = {};
|
|
42
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
42
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43
43
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
44
44
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
45
45
|
return {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { AxiosPromise, AxiosInstance } from 'axios';
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { GetMarketplaceParticipationsResponse } from '../models';
|
|
@@ -23,7 +23,7 @@ export declare const SellersApiAxiosParamCreator: (configuration?: Configuration
|
|
|
23
23
|
* @param {*} [options] Override http request option.
|
|
24
24
|
* @throws {RequiredError}
|
|
25
25
|
*/
|
|
26
|
-
getMarketplaceParticipations: (options?:
|
|
26
|
+
getMarketplaceParticipations: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
29
|
* SellersApi - functional programming interface
|
|
@@ -35,7 +35,7 @@ export declare const SellersApiFp: (configuration?: Configuration | undefined) =
|
|
|
35
35
|
* @param {*} [options] Override http request option.
|
|
36
36
|
* @throws {RequiredError}
|
|
37
37
|
*/
|
|
38
|
-
getMarketplaceParticipations(options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GetMarketplaceParticipationsResponse>>;
|
|
38
|
+
getMarketplaceParticipations(options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GetMarketplaceParticipationsResponse>>;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
41
|
* SellersApi - factory interface
|
|
@@ -62,5 +62,5 @@ export declare class SellersApi extends BaseAPI {
|
|
|
62
62
|
* @throws {RequiredError}
|
|
63
63
|
* @memberof SellersApi
|
|
64
64
|
*/
|
|
65
|
-
getMarketplaceParticipations(options?:
|
|
65
|
+
getMarketplaceParticipations(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMarketplaceParticipationsResponse, any>>;
|
|
66
66
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { Configuration } from "./configuration";
|
|
13
|
-
import { AxiosInstance } from 'axios';
|
|
13
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -29,7 +29,7 @@ export declare const COLLECTION_FORMATS: {
|
|
|
29
29
|
*/
|
|
30
30
|
export interface RequestArgs {
|
|
31
31
|
url: string;
|
|
32
|
-
options:
|
|
32
|
+
options: AxiosRequestConfig;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Configuration } from "./configuration";
|
|
13
13
|
import { RequestArgs } from "./base";
|
|
14
|
-
import { AxiosInstance } from 'axios';
|
|
14
|
+
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
62
62
|
*
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => (axios?: AxiosInstance, basePath?: string) => Promise<
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
@@ -21,11 +21,11 @@ export interface GetMarketplaceParticipationsResponse {
|
|
|
21
21
|
* @type {Array<MarketplaceParticipation>}
|
|
22
22
|
* @memberof GetMarketplaceParticipationsResponse
|
|
23
23
|
*/
|
|
24
|
-
payload?: Array<MarketplaceParticipation>;
|
|
24
|
+
'payload'?: Array<MarketplaceParticipation>;
|
|
25
25
|
/**
|
|
26
26
|
* A list of error responses returned when a request is unsuccessful.
|
|
27
27
|
* @type {Array<Error>}
|
|
28
28
|
* @memberof GetMarketplaceParticipationsResponse
|
|
29
29
|
*/
|
|
30
|
-
errors?: Array<Error>;
|
|
30
|
+
'errors'?: Array<Error>;
|
|
31
31
|
}
|
|
@@ -22,11 +22,11 @@ export interface MarketplaceParticipation {
|
|
|
22
22
|
* @type {Marketplace}
|
|
23
23
|
* @memberof MarketplaceParticipation
|
|
24
24
|
*/
|
|
25
|
-
marketplace: Marketplace;
|
|
25
|
+
'marketplace': Marketplace;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @type {Participation}
|
|
29
29
|
* @memberof MarketplaceParticipation
|
|
30
30
|
*/
|
|
31
|
-
participation: Participation;
|
|
31
|
+
'participation': Participation;
|
|
32
32
|
}
|
|
@@ -20,35 +20,35 @@ export interface Marketplace {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof Marketplace
|
|
22
22
|
*/
|
|
23
|
-
id: string;
|
|
23
|
+
'id': string;
|
|
24
24
|
/**
|
|
25
25
|
* Marketplace name.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof Marketplace
|
|
28
28
|
*/
|
|
29
|
-
name: string;
|
|
29
|
+
'name': string;
|
|
30
30
|
/**
|
|
31
31
|
* The ISO 3166-1 alpha-2 format country code of the marketplace.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof Marketplace
|
|
34
34
|
*/
|
|
35
|
-
countryCode: string;
|
|
35
|
+
'countryCode': string;
|
|
36
36
|
/**
|
|
37
37
|
* The ISO 4217 format currency code of the marketplace.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof Marketplace
|
|
40
40
|
*/
|
|
41
|
-
defaultCurrencyCode: string;
|
|
41
|
+
'defaultCurrencyCode': string;
|
|
42
42
|
/**
|
|
43
43
|
* The ISO 639-1 format language code of the marketplace.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof Marketplace
|
|
46
46
|
*/
|
|
47
|
-
defaultLanguageCode: string;
|
|
47
|
+
'defaultLanguageCode': string;
|
|
48
48
|
/**
|
|
49
49
|
* The domain name of the marketplace.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof Marketplace
|
|
52
52
|
*/
|
|
53
|
-
domainName: string;
|
|
53
|
+
'domainName': string;
|
|
54
54
|
}
|
|
@@ -20,17 +20,17 @@ export interface ModelError {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof ModelError
|
|
22
22
|
*/
|
|
23
|
-
code: string;
|
|
23
|
+
'code': string;
|
|
24
24
|
/**
|
|
25
25
|
* A message that describes the error condition in a human-readable form.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ModelError
|
|
28
28
|
*/
|
|
29
|
-
message: string;
|
|
29
|
+
'message': string;
|
|
30
30
|
/**
|
|
31
31
|
* Additional details that can help the caller understand or fix the issue.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ModelError
|
|
34
34
|
*/
|
|
35
|
-
details?: string;
|
|
35
|
+
'details'?: string;
|
|
36
36
|
}
|
|
@@ -20,11 +20,11 @@ export interface Participation {
|
|
|
20
20
|
* @type {boolean}
|
|
21
21
|
* @memberof Participation
|
|
22
22
|
*/
|
|
23
|
-
isParticipating: boolean;
|
|
23
|
+
'isParticipating': boolean;
|
|
24
24
|
/**
|
|
25
25
|
* Specifies if the seller has suspended listings. True if the seller Listing Status is set to Inactive, otherwise False.
|
|
26
26
|
* @type {boolean}
|
|
27
27
|
* @memberof Participation
|
|
28
28
|
*/
|
|
29
|
-
hasSuspendedListings: boolean;
|
|
29
|
+
'hasSuspendedListings': boolean;
|
|
30
30
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/sellers-api-v1",
|
|
3
3
|
"author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Sellers lets you retrieve information on behalf of sellers about their seller account, such as the marketplaces they participate in. Along with listing the marketplaces that a seller can sell in, the API also provides additional information about the marketplace such as the default language and the default currency. The API also provides seller-specific information such as whether the seller has suspended listings in that marketplace.",
|
|
5
|
-
"version": "1.8.
|
|
5
|
+
"version": "1.8.5",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"build:es": "tsc -p tsconfig.es.json",
|
|
25
25
|
"build": "yarn build:cjs && yarn build:es",
|
|
26
26
|
"clean": "rimraf dist",
|
|
27
|
-
"test": "
|
|
27
|
+
"test": "jest"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@sp-api-sdk/auth": "^1.9.
|
|
31
|
-
"@sp-api-sdk/common": "^1.9.
|
|
30
|
+
"@sp-api-sdk/auth": "^1.9.17",
|
|
31
|
+
"@sp-api-sdk/common": "^1.9.3",
|
|
32
32
|
"axios": "^0.27.2"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"sp sdk",
|
|
51
51
|
"sellers api"
|
|
52
52
|
],
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "d4f265d3c6a4e05e45025a46effa023a56a54e9c"
|
|
54
54
|
}
|