@sp-api-sdk/sellers-api-v1 1.8.4 → 1.8.7

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.
@@ -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, options.query);
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, options.query);
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';
@@ -17,31 +17,31 @@ import { GetMarketplaceParticipationsResponse } from '../models';
17
17
  * SellersApi - axios parameter creator
18
18
  * @export
19
19
  */
20
- export declare const SellersApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
20
+ export declare const SellersApiAxiosParamCreator: (configuration?: Configuration) => {
21
21
  /**
22
22
  * Returns a list of marketplaces that the seller submitting the request can sell in and information about the seller\'s participation in those marketplaces. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .016 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
23
23
  * @param {*} [options] Override http request option.
24
24
  * @throws {RequiredError}
25
25
  */
26
- getMarketplaceParticipations: (options?: any) => Promise<RequestArgs>;
26
+ getMarketplaceParticipations: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
27
27
  };
28
28
  /**
29
29
  * SellersApi - functional programming interface
30
30
  * @export
31
31
  */
32
- export declare const SellersApiFp: (configuration?: Configuration | undefined) => {
32
+ export declare const SellersApiFp: (configuration?: Configuration) => {
33
33
  /**
34
34
  * Returns a list of marketplaces that the seller submitting the request can sell in and information about the seller\'s participation in those marketplaces. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .016 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
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): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMarketplaceParticipationsResponse>>;
39
39
  };
40
40
  /**
41
41
  * SellersApi - factory interface
42
42
  * @export
43
43
  */
44
- export declare const SellersApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
44
+ export declare const SellersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
45
45
  /**
46
46
  * Returns a list of marketplaces that the seller submitting the request can sell in and information about the seller\'s participation in those marketplaces. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .016 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
47
47
  * @param {*} [options] Override http request option.
@@ -62,5 +62,5 @@ export declare class SellersApi extends BaseAPI {
62
62
  * @throws {RequiredError}
63
63
  * @memberof SellersApi
64
64
  */
65
- getMarketplaceParticipations(options?: any): Promise<import("axios").AxiosResponse<GetMarketplaceParticipationsResponse, any>>;
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: any;
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
@@ -27,22 +27,22 @@ export declare const assertParamExists: (functionName: string, paramName: string
27
27
  *
28
28
  * @export
29
29
  */
30
- export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration | undefined) => Promise<void>;
30
+ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
31
  /**
32
32
  *
33
33
  * @export
34
34
  */
35
- export declare const setBasicAuthToObject: (object: any, configuration?: Configuration | undefined) => void;
35
+ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
36
  /**
37
37
  *
38
38
  * @export
39
39
  */
40
- export declare const setBearerAuthToObject: (object: any, configuration?: Configuration | undefined) => Promise<void>;
40
+ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
41
  /**
42
42
  *
43
43
  * @export
44
44
  */
45
- export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration | undefined) => Promise<void>;
45
+ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
46
  /**
47
47
  *
48
48
  * @export
@@ -52,7 +52,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
52
52
  *
53
53
  * @export
54
54
  */
55
- export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration | undefined) => any;
55
+ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
56
  /**
57
57
  *
58
58
  * @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<import("axios").AxiosResponse<any, any>>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <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.4",
5
+ "version": "1.8.7",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -27,8 +27,8 @@
27
27
  "test": "jest"
28
28
  },
29
29
  "dependencies": {
30
- "@sp-api-sdk/auth": "^1.9.17",
31
- "@sp-api-sdk/common": "^1.9.3",
30
+ "@sp-api-sdk/auth": "^1.9.19",
31
+ "@sp-api-sdk/common": "^1.9.5",
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": "a91680c9bce217db7412c5ad7c17aa6e918ada8e"
53
+ "gitHead": "72808979582d663f043688f24d519b604f7fd2df"
54
54
  }