Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sp-api-sdk/tokens-api-2021-03-01

Package Overview
Dependencies
Maintainers
2
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sp-api-sdk/tokens-api-2021-03-01 - npm Package Compare versions

Comparing version 1.10.4 to 1.10.5

2

dist/cjs/src/api-model/api/tokens-api.js

@@ -50,3 +50,3 @@ "use strict";

localVarHeaderParameter['Content-Type'] = 'application/json';
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};

@@ -53,0 +53,0 @@ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };

@@ -17,12 +17,7 @@ "use strict";

exports.RestrictedResourceMethodEnum = void 0;
/**
* @export
* @enum {string}
*/
var RestrictedResourceMethodEnum;
(function (RestrictedResourceMethodEnum) {
RestrictedResourceMethodEnum["Get"] = "GET";
RestrictedResourceMethodEnum["Put"] = "PUT";
RestrictedResourceMethodEnum["Post"] = "POST";
RestrictedResourceMethodEnum["Delete"] = "DELETE";
})(RestrictedResourceMethodEnum = exports.RestrictedResourceMethodEnum || (exports.RestrictedResourceMethodEnum = {}));
exports.RestrictedResourceMethodEnum = {
Get: 'GET',
Put: 'PUT',
Post: 'POST',
Delete: 'DELETE'
};

@@ -46,3 +46,3 @@ /* tslint:disable */

localVarHeaderParameter['Content-Type'] = 'application/json';
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};

@@ -49,0 +49,0 @@ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };

@@ -14,12 +14,7 @@ /* tslint:disable */

*/
/**
* @export
* @enum {string}
*/
export var RestrictedResourceMethodEnum;
(function (RestrictedResourceMethodEnum) {
RestrictedResourceMethodEnum["Get"] = "GET";
RestrictedResourceMethodEnum["Put"] = "PUT";
RestrictedResourceMethodEnum["Post"] = "POST";
RestrictedResourceMethodEnum["Delete"] = "DELETE";
})(RestrictedResourceMethodEnum || (RestrictedResourceMethodEnum = {}));
export const RestrictedResourceMethodEnum = {
Get: 'GET',
Put: 'PUT',
Post: 'POST',
Delete: 'DELETE'
};

@@ -12,3 +12,3 @@ /**

*/
import { AxiosPromise, AxiosInstance } from 'axios';
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
import { Configuration } from '../configuration';

@@ -29,3 +29,3 @@ import { RequestArgs, BaseAPI } from '../base';

*/
createRestrictedDataToken: (body: CreateRestrictedDataTokenRequest, options?: any) => Promise<RequestArgs>;
createRestrictedDataToken: (body: CreateRestrictedDataTokenRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
};

@@ -43,3 +43,3 @@ /**

*/
createRestrictedDataToken(body: CreateRestrictedDataTokenRequest, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<CreateRestrictedDataTokenResponse>>;
createRestrictedDataToken(body: CreateRestrictedDataTokenRequest, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<CreateRestrictedDataTokenResponse>>;
};

@@ -86,3 +86,3 @@ /**

*/
createRestrictedDataToken(requestParameters: TokensApiCreateRestrictedDataTokenRequest, options?: any): Promise<import("axios").AxiosResponse<CreateRestrictedDataTokenResponse, any>>;
createRestrictedDataToken(requestParameters: TokensApiCreateRestrictedDataTokenRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateRestrictedDataTokenResponse, any>>;
}

@@ -13,3 +13,3 @@ /**

import { Configuration } from "./configuration";
import { AxiosInstance } from 'axios';
import { AxiosInstance, AxiosRequestConfig } from 'axios';
export declare const BASE_PATH: string;

@@ -33,3 +33,3 @@ /**

url: string;
options: any;
options: AxiosRequestConfig;
}

@@ -36,0 +36,0 @@ /**

@@ -14,3 +14,3 @@ /**

import { RequestArgs } from "./base";
import { AxiosInstance } from 'axios';
import { AxiosInstance, AxiosResponse } from 'axios';
/**

@@ -66,2 +66,2 @@ *

*/
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any, any>>;
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>;

@@ -24,3 +24,3 @@ /**

*/
targetApplication?: string;
'targetApplication'?: string;
/**

@@ -31,3 +31,3 @@ * A list of restricted resources. Maximum: 50

*/
restrictedResources: Array<RestrictedResource>;
'restrictedResources': Array<RestrictedResource>;
}

@@ -23,3 +23,3 @@ /**

*/
restrictedDataToken?: string;
'restrictedDataToken'?: string;
/**

@@ -30,3 +30,3 @@ * The lifetime of the Restricted Data Token, in seconds.

*/
expiresIn?: number;
'expiresIn'?: number;
}

@@ -23,3 +23,3 @@ /**

*/
errors?: Array<Error>;
'errors'?: Array<Error>;
}

@@ -23,3 +23,3 @@ /**

*/
code: string;
'code': string;
/**

@@ -30,3 +30,3 @@ * A message that describes the error condition.

*/
message: string;
'message': string;
/**

@@ -37,3 +37,3 @@ * Additional details that can help the caller understand or fix the issue.

*/
details?: string;
'details'?: string;
}

@@ -23,3 +23,3 @@ /**

*/
method: RestrictedResourceMethodEnum;
'method': RestrictedResourceMethodEnum;
/**

@@ -30,3 +30,3 @@ * The path in the restricted resource. Here are some path examples: - ```/orders/v0/orders```. For getting an RDT for the getOrders operation of the Orders API. For bulk orders. - ```/orders/v0/orders/123-1234567-1234567```. For getting an RDT for the getOrder operation of the Orders API. For a specific order. - ```/orders/v0/orders/123-1234567-1234567/orderItems```. For getting an RDT for the getOrderItems operation of the Orders API. For the order items in a specific order. - ```/mfn/v0/shipments/FBA1234ABC5D```. For getting an RDT for the getShipment operation of the Shipping API. For a specific shipment. - ```/mfn/v0/shipments/{shipmentId}```. For getting an RDT for the getShipment operation of the Shipping API. For any of a selling partner\'s shipments that you specify when you call the getShipment operation.

*/
path: string;
'path': string;
/**

@@ -37,13 +37,10 @@ * Indicates the type of Personally Identifiable Information requested. This parameter is required only when getting an RDT for use with the getOrder, getOrders, or getOrderItems operation of the Orders API. For more information, see the [Tokens API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide). Possible values include: - **buyerInfo**. On the order level this includes general identifying information about the buyer and tax-related information. On the order item level this includes gift wrap information and custom order information, if available. - **shippingAddress**. This includes information for fulfilling orders. - **buyerTaxInformation**. This includes information for issuing tax invoices.

*/
dataElements?: Array<string>;
'dataElements'?: Array<string>;
}
/**
* @export
* @enum {string}
*/
export declare enum RestrictedResourceMethodEnum {
Get = "GET",
Put = "PUT",
Post = "POST",
Delete = "DELETE"
}
export declare const RestrictedResourceMethodEnum: {
readonly Get: "GET";
readonly Put: "PUT";
readonly Post: "POST";
readonly Delete: "DELETE";
};
export declare type RestrictedResourceMethodEnum = typeof RestrictedResourceMethodEnum[keyof typeof RestrictedResourceMethodEnum];

@@ -5,3 +5,3 @@ {

"description": "The Selling Partner API for Tokens provides a secure way to access a customer's PII (Personally Identifiable Information). You can call the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. The RDT authorizes subsequent calls to restricted operations that correspond to the restricted resources that you specified. For more information, see the Tokens API Use Case Guide.",
"version": "1.10.4",
"version": "1.10.5",
"main": "dist/cjs/index.js",

@@ -54,3 +54,3 @@ "module": "dist/es/index.js",

],
"gitHead": "a91680c9bce217db7412c5ad7c17aa6e918ada8e"
"gitHead": "d4f265d3c6a4e05e45025a46effa023a56a54e9c"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc