@sp-api-sdk/vendor-direct-fulfillment-transactions-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.
@@ -47,7 +47,7 @@ const VendorTransactionApiAxiosParamCreator = function (configuration) {
47
47
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
48
48
  const localVarHeaderParameter = {};
49
49
  const localVarQueryParameter = {};
50
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
50
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
51
51
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
52
52
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
53
53
  return {
@@ -14,13 +14,8 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.TransactionStatusEnum = void 0;
17
- /**
18
- * @export
19
- * @enum {string}
20
- */
21
- var TransactionStatusEnum;
22
- (function (TransactionStatusEnum) {
23
- TransactionStatusEnum["Failure"] = "Failure";
24
- TransactionStatusEnum["Processing"] = "Processing";
25
- TransactionStatusEnum["Success"] = "Success";
26
- })(TransactionStatusEnum = exports.TransactionStatusEnum || (exports.TransactionStatusEnum = {}));
17
+ exports.TransactionStatusEnum = {
18
+ Failure: 'Failure',
19
+ Processing: 'Processing',
20
+ Success: 'Success'
21
+ };
@@ -43,7 +43,7 @@ export const VendorTransactionApiAxiosParamCreator = function (configuration) {
43
43
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
44
44
  const localVarHeaderParameter = {};
45
45
  const localVarQueryParameter = {};
46
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
46
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
47
47
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
48
48
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
49
49
  return {
@@ -11,13 +11,8 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- /**
15
- * @export
16
- * @enum {string}
17
- */
18
- export var TransactionStatusEnum;
19
- (function (TransactionStatusEnum) {
20
- TransactionStatusEnum["Failure"] = "Failure";
21
- TransactionStatusEnum["Processing"] = "Processing";
22
- TransactionStatusEnum["Success"] = "Success";
23
- })(TransactionStatusEnum || (TransactionStatusEnum = {}));
14
+ export const TransactionStatusEnum = {
15
+ Failure: 'Failure',
16
+ Processing: 'Processing',
17
+ Success: 'Success'
18
+ };
@@ -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 { GetTransactionResponse } from '../models';
@@ -17,33 +17,33 @@ import { GetTransactionResponse } from '../models';
17
17
  * VendorTransactionApi - axios parameter creator
18
18
  * @export
19
19
  */
20
- export declare const VendorTransactionApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
20
+ export declare const VendorTransactionApiAxiosParamCreator: (configuration?: Configuration) => {
21
21
  /**
22
22
  * Returns the status of the transaction indicated by the specified transactionId. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
23
23
  * @param {string} transactionId Previously returned in the response to the POST request of a specific transaction.
24
24
  * @param {*} [options] Override http request option.
25
25
  * @throws {RequiredError}
26
26
  */
27
- getTransactionStatus: (transactionId: string, options?: any) => Promise<RequestArgs>;
27
+ getTransactionStatus: (transactionId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28
28
  };
29
29
  /**
30
30
  * VendorTransactionApi - functional programming interface
31
31
  * @export
32
32
  */
33
- export declare const VendorTransactionApiFp: (configuration?: Configuration | undefined) => {
33
+ export declare const VendorTransactionApiFp: (configuration?: Configuration) => {
34
34
  /**
35
35
  * Returns the status of the transaction indicated by the specified transactionId. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
36
36
  * @param {string} transactionId Previously returned in the response to the POST request of a specific transaction.
37
37
  * @param {*} [options] Override http request option.
38
38
  * @throws {RequiredError}
39
39
  */
40
- getTransactionStatus(transactionId: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GetTransactionResponse>>;
40
+ getTransactionStatus(transactionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTransactionResponse>>;
41
41
  };
42
42
  /**
43
43
  * VendorTransactionApi - factory interface
44
44
  * @export
45
45
  */
46
- export declare const VendorTransactionApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
46
+ export declare const VendorTransactionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
47
47
  /**
48
48
  * Returns the status of the transaction indicated by the specified transactionId. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
49
49
  * @param {string} transactionId Previously returned in the response to the POST request of a specific transaction.
@@ -79,5 +79,5 @@ export declare class VendorTransactionApi extends BaseAPI {
79
79
  * @throws {RequiredError}
80
80
  * @memberof VendorTransactionApi
81
81
  */
82
- getTransactionStatus(requestParameters: VendorTransactionApiGetTransactionStatusRequest, options?: any): Promise<import("axios").AxiosResponse<GetTransactionResponse, any>>;
82
+ getTransactionStatus(requestParameters: VendorTransactionApiGetTransactionStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetTransactionResponse, any>>;
83
83
  }
@@ -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 GetTransactionResponse {
21
21
  * @type {TransactionStatus}
22
22
  * @memberof GetTransactionResponse
23
23
  */
24
- payload?: TransactionStatus;
24
+ 'payload'?: TransactionStatus;
25
25
  /**
26
26
  * A list of error responses returned when a request is unsuccessful.
27
27
  * @type {Array<Error>}
28
28
  * @memberof GetTransactionResponse
29
29
  */
30
- errors?: Array<Error>;
30
+ 'errors'?: Array<Error>;
31
31
  }
@@ -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.
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
  }
@@ -21,5 +21,5 @@ export interface TransactionStatus {
21
21
  * @type {Transaction}
22
22
  * @memberof TransactionStatus
23
23
  */
24
- transactionStatus?: Transaction;
24
+ 'transactionStatus'?: Transaction;
25
25
  }
@@ -20,26 +20,23 @@ export interface Transaction {
20
20
  * @type {string}
21
21
  * @memberof Transaction
22
22
  */
23
- transactionId: string;
23
+ 'transactionId': string;
24
24
  /**
25
25
  * Current processing status of the transaction.
26
26
  * @type {string}
27
27
  * @memberof Transaction
28
28
  */
29
- status: TransactionStatusEnum;
29
+ 'status': TransactionStatusEnum;
30
30
  /**
31
31
  * A list of error responses returned when a request is unsuccessful.
32
32
  * @type {Array<Error>}
33
33
  * @memberof Transaction
34
34
  */
35
- errors?: Array<Error>;
36
- }
37
- /**
38
- * @export
39
- * @enum {string}
40
- */
41
- export declare enum TransactionStatusEnum {
42
- Failure = "Failure",
43
- Processing = "Processing",
44
- Success = "Success"
35
+ 'errors'?: Array<Error>;
45
36
  }
37
+ export declare const TransactionStatusEnum: {
38
+ readonly Failure: "Failure";
39
+ readonly Processing: "Processing";
40
+ readonly Success: "Success";
41
+ };
42
+ export declare type TransactionStatusEnum = typeof TransactionStatusEnum[keyof typeof TransactionStatusEnum];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/vendor-direct-fulfillment-transactions-api-v1",
3
3
  "author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Direct Fulfillment Transaction Status provides programmatic access to a direct fulfillment vendor's transaction status.",
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
  "vendor direct fulfillment transactions api"
52
52
  ],
53
- "gitHead": "a91680c9bce217db7412c5ad7c17aa6e918ada8e"
53
+ "gitHead": "72808979582d663f043688f24d519b604f7fd2df"
54
54
  }