@sp-api-sdk/reports-api-2020-09-04
Advanced tools
Comparing version 2.0.7 to 2.1.0
@@ -19,3 +19,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = void 0; | ||
exports.GetReportsProcessingStatusesEnum = exports.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = void 0; | ||
const axios_1 = __importDefault(require("axios")); | ||
@@ -272,3 +272,3 @@ // Some imports not used depending on template conditions | ||
* @param {Array<string>} [reportTypes] A list of report types used to filter reports. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required. | ||
* @param {Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>} [processingStatuses] A list of processing statuses used to filter reports. | ||
* @param {Array<GetReportsProcessingStatusesEnum>} [processingStatuses] A list of processing statuses used to filter reports. | ||
* @param {Array<string>} [marketplaceIds] A list of marketplace identifiers used to filter reports. The reports returned will match at least one of the marketplaces that you specify. | ||
@@ -346,3 +346,5 @@ * @param {number} [pageSize] The maximum number of reports to return in a single call. | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelReport(reportId, options); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = base_1.operationServerMap['ReportsApi.cancelReport']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
@@ -358,3 +360,5 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelReportSchedule(reportScheduleId, options); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = base_1.operationServerMap['ReportsApi.cancelReportSchedule']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
@@ -370,3 +374,5 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.createReport(body, options); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = base_1.operationServerMap['ReportsApi.createReport']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
@@ -382,3 +388,5 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.createReportSchedule(body, options); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = base_1.operationServerMap['ReportsApi.createReportSchedule']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
@@ -394,3 +402,5 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getReport(reportId, options); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = base_1.operationServerMap['ReportsApi.getReport']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
@@ -406,3 +416,5 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getReportDocument(reportDocumentId, options); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = base_1.operationServerMap['ReportsApi.getReportDocument']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
@@ -418,3 +430,5 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getReportSchedule(reportScheduleId, options); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = base_1.operationServerMap['ReportsApi.getReportSchedule']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
@@ -430,3 +444,5 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getReportSchedules(reportTypes, options); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = base_1.operationServerMap['ReportsApi.getReportSchedules']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
@@ -436,3 +452,3 @@ /** | ||
* @param {Array<string>} [reportTypes] A list of report types used to filter reports. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required. | ||
* @param {Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>} [processingStatuses] A list of processing statuses used to filter reports. | ||
* @param {Array<GetReportsProcessingStatusesEnum>} [processingStatuses] A list of processing statuses used to filter reports. | ||
* @param {Array<string>} [marketplaceIds] A list of marketplace identifiers used to filter reports. The reports returned will match at least one of the marketplaces that you specify. | ||
@@ -449,3 +465,5 @@ * @param {number} [pageSize] The maximum number of reports to return in a single call. | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getReports(reportTypes, processingStatuses, marketplaceIds, pageSize, createdSince, createdUntil, nextToken, options); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = base_1.operationServerMap['ReportsApi.getReports']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
@@ -663,1 +681,11 @@ }; | ||
exports.ReportsApi = ReportsApi; | ||
/** | ||
* @export | ||
*/ | ||
exports.GetReportsProcessingStatusesEnum = { | ||
Cancelled: 'CANCELLED', | ||
Done: 'DONE', | ||
Fatal: 'FATAL', | ||
InProgress: 'IN_PROGRESS', | ||
InQueue: 'IN_QUEUE' | ||
}; |
@@ -19,3 +19,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0; | ||
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0; | ||
const axios_1 = __importDefault(require("axios")); | ||
@@ -47,3 +47,3 @@ exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); | ||
this.configuration = configuration; | ||
this.basePath = configuration.basePath || this.basePath; | ||
this.basePath = configuration.basePath ?? basePath; | ||
} | ||
@@ -69,1 +69,6 @@ } | ||
exports.RequiredError = RequiredError; | ||
/** | ||
* | ||
* @export | ||
*/ | ||
exports.operationServerMap = {}; |
@@ -141,3 +141,3 @@ "use strict"; | ||
return (axios = globalAxios, basePath = BASE_PATH) => { | ||
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url }; | ||
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url }; | ||
return axios.request(axiosRequestArgs); | ||
@@ -144,0 +144,0 @@ }; |
@@ -53,2 +53,9 @@ "use strict"; | ||
/** | ||
* override server index | ||
* | ||
* @type {number} | ||
* @memberof Configuration | ||
*/ | ||
serverIndex; | ||
/** | ||
* base options for axios calls | ||
@@ -74,2 +81,3 @@ * | ||
this.basePath = param.basePath; | ||
this.serverIndex = param.serverIndex; | ||
this.baseOptions = param.baseOptions; | ||
@@ -76,0 +84,0 @@ this.formDataCtor = param.formDataCtor; |
@@ -19,3 +19,3 @@ /* tslint:disable */ | ||
// @ts-ignore | ||
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI } from '../base'; | ||
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, operationServerMap } from '../base'; | ||
/** | ||
@@ -266,3 +266,3 @@ * ReportsApi - axios parameter creator | ||
* @param {Array<string>} [reportTypes] A list of report types used to filter reports. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required. | ||
* @param {Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>} [processingStatuses] A list of processing statuses used to filter reports. | ||
* @param {Array<GetReportsProcessingStatusesEnum>} [processingStatuses] A list of processing statuses used to filter reports. | ||
* @param {Array<string>} [marketplaceIds] A list of marketplace identifiers used to filter reports. The reports returned will match at least one of the marketplaces that you specify. | ||
@@ -339,3 +339,5 @@ * @param {number} [pageSize] The maximum number of reports to return in a single call. | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelReport(reportId, options); | ||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = operationServerMap['ReportsApi.cancelReport']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
@@ -351,3 +353,5 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelReportSchedule(reportScheduleId, options); | ||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = operationServerMap['ReportsApi.cancelReportSchedule']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
@@ -363,3 +367,5 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.createReport(body, options); | ||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = operationServerMap['ReportsApi.createReport']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
@@ -375,3 +381,5 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.createReportSchedule(body, options); | ||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = operationServerMap['ReportsApi.createReportSchedule']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
@@ -387,3 +395,5 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getReport(reportId, options); | ||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = operationServerMap['ReportsApi.getReport']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
@@ -399,3 +409,5 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getReportDocument(reportDocumentId, options); | ||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = operationServerMap['ReportsApi.getReportDocument']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
@@ -411,3 +423,5 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getReportSchedule(reportScheduleId, options); | ||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = operationServerMap['ReportsApi.getReportSchedule']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
@@ -423,3 +437,5 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getReportSchedules(reportTypes, options); | ||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = operationServerMap['ReportsApi.getReportSchedules']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
@@ -429,3 +445,3 @@ /** | ||
* @param {Array<string>} [reportTypes] A list of report types used to filter reports. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required. | ||
* @param {Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>} [processingStatuses] A list of processing statuses used to filter reports. | ||
* @param {Array<GetReportsProcessingStatusesEnum>} [processingStatuses] A list of processing statuses used to filter reports. | ||
* @param {Array<string>} [marketplaceIds] A list of marketplace identifiers used to filter reports. The reports returned will match at least one of the marketplaces that you specify. | ||
@@ -442,3 +458,5 @@ * @param {number} [pageSize] The maximum number of reports to return in a single call. | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getReports(reportTypes, processingStatuses, marketplaceIds, pageSize, createdSince, createdUntil, nextToken, options); | ||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = operationServerMap['ReportsApi.getReports']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
@@ -653,1 +671,11 @@ }; | ||
} | ||
/** | ||
* @export | ||
*/ | ||
export const GetReportsProcessingStatusesEnum = { | ||
Cancelled: 'CANCELLED', | ||
Done: 'DONE', | ||
Fatal: 'FATAL', | ||
InProgress: 'IN_PROGRESS', | ||
InQueue: 'IN_QUEUE' | ||
}; |
@@ -40,3 +40,3 @@ /* tslint:disable */ | ||
this.configuration = configuration; | ||
this.basePath = configuration.basePath || this.basePath; | ||
this.basePath = configuration.basePath ?? basePath; | ||
} | ||
@@ -60,1 +60,6 @@ } | ||
} | ||
/** | ||
* | ||
* @export | ||
*/ | ||
export const operationServerMap = {}; |
@@ -130,5 +130,5 @@ /* tslint:disable */ | ||
return (axios = globalAxios, basePath = BASE_PATH) => { | ||
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url }; | ||
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url }; | ||
return axios.request(axiosRequestArgs); | ||
}; | ||
}; |
@@ -50,2 +50,9 @@ /* tslint:disable */ | ||
/** | ||
* override server index | ||
* | ||
* @type {number} | ||
* @memberof Configuration | ||
*/ | ||
serverIndex; | ||
/** | ||
* base options for axios calls | ||
@@ -71,2 +78,3 @@ * | ||
this.basePath = param.basePath; | ||
this.serverIndex = param.serverIndex; | ||
this.baseOptions = param.baseOptions; | ||
@@ -73,0 +81,0 @@ this.formDataCtor = param.formDataCtor; |
@@ -13,16 +13,16 @@ /** | ||
import type { Configuration } from '../configuration'; | ||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; | ||
import globalAxios from 'axios'; | ||
import { RequestArgs, BaseAPI } from '../base'; | ||
import { CancelReportResponse } from '../models'; | ||
import { CancelReportScheduleResponse } from '../models'; | ||
import { CreateReportResponse } from '../models'; | ||
import { CreateReportScheduleResponse } from '../models'; | ||
import { CreateReportScheduleSpecification } from '../models'; | ||
import { CreateReportSpecification } from '../models'; | ||
import { GetReportDocumentResponse } from '../models'; | ||
import { GetReportResponse } from '../models'; | ||
import { GetReportScheduleResponse } from '../models'; | ||
import { GetReportSchedulesResponse } from '../models'; | ||
import { GetReportsResponse } from '../models'; | ||
import { type RequestArgs, BaseAPI } from '../base'; | ||
import type { CancelReportResponse } from '../models'; | ||
import type { CancelReportScheduleResponse } from '../models'; | ||
import type { CreateReportResponse } from '../models'; | ||
import type { CreateReportScheduleResponse } from '../models'; | ||
import type { CreateReportScheduleSpecification } from '../models'; | ||
import type { CreateReportSpecification } from '../models'; | ||
import type { GetReportDocumentResponse } from '../models'; | ||
import type { GetReportResponse } from '../models'; | ||
import type { GetReportScheduleResponse } from '../models'; | ||
import type { GetReportSchedulesResponse } from '../models'; | ||
import type { GetReportsResponse } from '../models'; | ||
/** | ||
@@ -40,3 +40,3 @@ * ReportsApi - axios parameter creator | ||
*/ | ||
cancelReport: (reportId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
cancelReport: (reportId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
@@ -49,3 +49,3 @@ * Effective **June 27, 2023**, the `cancelReportSchedule` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
cancelReportSchedule: (reportScheduleId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
cancelReportSchedule: (reportScheduleId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
@@ -58,3 +58,3 @@ * Effective **June 27, 2023**, the `createReport` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
createReport: (body: CreateReportSpecification, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
createReport: (body: CreateReportSpecification, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
@@ -67,3 +67,3 @@ * Effective **June 27, 2023**, the `createReportSchedule` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
createReportSchedule: (body: CreateReportScheduleSpecification, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
createReportSchedule: (body: CreateReportScheduleSpecification, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
@@ -76,3 +76,3 @@ * Effective **June 27, 2023**, the `getReport` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
getReport: (reportId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
getReport: (reportId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
@@ -85,3 +85,3 @@ * Effective **June 27, 2023**, the `getReportDocument` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
getReportDocument: (reportDocumentId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
getReportDocument: (reportDocumentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
@@ -94,3 +94,3 @@ * Effective **June 27, 2023**, the `getReportSchedule` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
getReportSchedule: (reportScheduleId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
getReportSchedule: (reportScheduleId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
@@ -103,7 +103,7 @@ * Effective **June 27, 2023**, the `getReportSchedules` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
getReportSchedules: (reportTypes: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
getReportSchedules: (reportTypes: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
* Effective **June 27, 2023**, the `getReports` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
* @param {Array<string>} [reportTypes] A list of report types used to filter reports. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required. | ||
* @param {Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>} [processingStatuses] A list of processing statuses used to filter reports. | ||
* @param {Array<GetReportsProcessingStatusesEnum>} [processingStatuses] A list of processing statuses used to filter reports. | ||
* @param {Array<string>} [marketplaceIds] A list of marketplace identifiers used to filter reports. The reports returned will match at least one of the marketplaces that you specify. | ||
@@ -118,3 +118,3 @@ * @param {number} [pageSize] The maximum number of reports to return in a single call. | ||
*/ | ||
getReports: (reportTypes?: Array<string>, processingStatuses?: Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>, marketplaceIds?: Array<string>, pageSize?: number, createdSince?: string, createdUntil?: string, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
getReports: (reportTypes?: Array<string>, processingStatuses?: Array<GetReportsProcessingStatusesEnum>, marketplaceIds?: Array<string>, pageSize?: number, createdSince?: string, createdUntil?: string, nextToken?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
}; | ||
@@ -133,3 +133,3 @@ /** | ||
*/ | ||
cancelReport(reportId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelReportResponse>>; | ||
cancelReport(reportId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelReportResponse>>; | ||
/** | ||
@@ -142,3 +142,3 @@ * Effective **June 27, 2023**, the `cancelReportSchedule` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
cancelReportSchedule(reportScheduleId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelReportScheduleResponse>>; | ||
cancelReportSchedule(reportScheduleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelReportScheduleResponse>>; | ||
/** | ||
@@ -151,3 +151,3 @@ * Effective **June 27, 2023**, the `createReport` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
createReport(body: CreateReportSpecification, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateReportResponse>>; | ||
createReport(body: CreateReportSpecification, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateReportResponse>>; | ||
/** | ||
@@ -160,3 +160,3 @@ * Effective **June 27, 2023**, the `createReportSchedule` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
createReportSchedule(body: CreateReportScheduleSpecification, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateReportScheduleResponse>>; | ||
createReportSchedule(body: CreateReportScheduleSpecification, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateReportScheduleResponse>>; | ||
/** | ||
@@ -169,3 +169,3 @@ * Effective **June 27, 2023**, the `getReport` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
getReport(reportId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReportResponse>>; | ||
getReport(reportId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReportResponse>>; | ||
/** | ||
@@ -178,3 +178,3 @@ * Effective **June 27, 2023**, the `getReportDocument` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
getReportDocument(reportDocumentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReportDocumentResponse>>; | ||
getReportDocument(reportDocumentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReportDocumentResponse>>; | ||
/** | ||
@@ -187,3 +187,3 @@ * Effective **June 27, 2023**, the `getReportSchedule` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
getReportSchedule(reportScheduleId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReportScheduleResponse>>; | ||
getReportSchedule(reportScheduleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReportScheduleResponse>>; | ||
/** | ||
@@ -196,7 +196,7 @@ * Effective **June 27, 2023**, the `getReportSchedules` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
getReportSchedules(reportTypes: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReportSchedulesResponse>>; | ||
getReportSchedules(reportTypes: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReportSchedulesResponse>>; | ||
/** | ||
* Effective **June 27, 2023**, the `getReports` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
* @param {Array<string>} [reportTypes] A list of report types used to filter reports. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required. | ||
* @param {Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>} [processingStatuses] A list of processing statuses used to filter reports. | ||
* @param {Array<GetReportsProcessingStatusesEnum>} [processingStatuses] A list of processing statuses used to filter reports. | ||
* @param {Array<string>} [marketplaceIds] A list of marketplace identifiers used to filter reports. The reports returned will match at least one of the marketplaces that you specify. | ||
@@ -211,3 +211,3 @@ * @param {number} [pageSize] The maximum number of reports to return in a single call. | ||
*/ | ||
getReports(reportTypes?: Array<string>, processingStatuses?: Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>, marketplaceIds?: Array<string>, pageSize?: number, createdSince?: string, createdUntil?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReportsResponse>>; | ||
getReports(reportTypes?: Array<string>, processingStatuses?: Array<GetReportsProcessingStatusesEnum>, marketplaceIds?: Array<string>, pageSize?: number, createdSince?: string, createdUntil?: string, nextToken?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReportsResponse>>; | ||
}; | ||
@@ -226,3 +226,3 @@ /** | ||
*/ | ||
cancelReport(requestParameters: ReportsApiCancelReportRequest, options?: AxiosRequestConfig): AxiosPromise<CancelReportResponse>; | ||
cancelReport(requestParameters: ReportsApiCancelReportRequest, options?: RawAxiosRequestConfig): AxiosPromise<CancelReportResponse>; | ||
/** | ||
@@ -235,3 +235,3 @@ * Effective **June 27, 2023**, the `cancelReportSchedule` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
cancelReportSchedule(requestParameters: ReportsApiCancelReportScheduleRequest, options?: AxiosRequestConfig): AxiosPromise<CancelReportScheduleResponse>; | ||
cancelReportSchedule(requestParameters: ReportsApiCancelReportScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<CancelReportScheduleResponse>; | ||
/** | ||
@@ -244,3 +244,3 @@ * Effective **June 27, 2023**, the `createReport` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
createReport(requestParameters: ReportsApiCreateReportRequest, options?: AxiosRequestConfig): AxiosPromise<CreateReportResponse>; | ||
createReport(requestParameters: ReportsApiCreateReportRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateReportResponse>; | ||
/** | ||
@@ -253,3 +253,3 @@ * Effective **June 27, 2023**, the `createReportSchedule` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
createReportSchedule(requestParameters: ReportsApiCreateReportScheduleRequest, options?: AxiosRequestConfig): AxiosPromise<CreateReportScheduleResponse>; | ||
createReportSchedule(requestParameters: ReportsApiCreateReportScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateReportScheduleResponse>; | ||
/** | ||
@@ -262,3 +262,3 @@ * Effective **June 27, 2023**, the `getReport` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
getReport(requestParameters: ReportsApiGetReportRequest, options?: AxiosRequestConfig): AxiosPromise<GetReportResponse>; | ||
getReport(requestParameters: ReportsApiGetReportRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetReportResponse>; | ||
/** | ||
@@ -271,3 +271,3 @@ * Effective **June 27, 2023**, the `getReportDocument` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
getReportDocument(requestParameters: ReportsApiGetReportDocumentRequest, options?: AxiosRequestConfig): AxiosPromise<GetReportDocumentResponse>; | ||
getReportDocument(requestParameters: ReportsApiGetReportDocumentRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetReportDocumentResponse>; | ||
/** | ||
@@ -280,3 +280,3 @@ * Effective **June 27, 2023**, the `getReportSchedule` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
getReportSchedule(requestParameters: ReportsApiGetReportScheduleRequest, options?: AxiosRequestConfig): AxiosPromise<GetReportScheduleResponse>; | ||
getReportSchedule(requestParameters: ReportsApiGetReportScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetReportScheduleResponse>; | ||
/** | ||
@@ -289,3 +289,3 @@ * Effective **June 27, 2023**, the `getReportSchedules` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
getReportSchedules(requestParameters: ReportsApiGetReportSchedulesRequest, options?: AxiosRequestConfig): AxiosPromise<GetReportSchedulesResponse>; | ||
getReportSchedules(requestParameters: ReportsApiGetReportSchedulesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetReportSchedulesResponse>; | ||
/** | ||
@@ -298,3 +298,3 @@ * Effective **June 27, 2023**, the `getReports` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
getReports(requestParameters?: ReportsApiGetReportsRequest, options?: AxiosRequestConfig): AxiosPromise<GetReportsResponse>; | ||
getReports(requestParameters?: ReportsApiGetReportsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetReportsResponse>; | ||
}; | ||
@@ -422,3 +422,3 @@ /** | ||
*/ | ||
readonly processingStatuses?: Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>; | ||
readonly processingStatuses?: Array<GetReportsProcessingStatusesEnum>; | ||
/** | ||
@@ -470,3 +470,3 @@ * A list of marketplace identifiers used to filter reports. The reports returned will match at least one of the marketplaces that you specify. | ||
*/ | ||
cancelReport(requestParameters: ReportsApiCancelReportRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<CancelReportResponse, any>>; | ||
cancelReport(requestParameters: ReportsApiCancelReportRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CancelReportResponse, any>>; | ||
/** | ||
@@ -480,3 +480,3 @@ * Effective **June 27, 2023**, the `cancelReportSchedule` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
cancelReportSchedule(requestParameters: ReportsApiCancelReportScheduleRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<CancelReportScheduleResponse, any>>; | ||
cancelReportSchedule(requestParameters: ReportsApiCancelReportScheduleRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CancelReportScheduleResponse, any>>; | ||
/** | ||
@@ -490,3 +490,3 @@ * Effective **June 27, 2023**, the `createReport` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
createReport(requestParameters: ReportsApiCreateReportRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateReportResponse, any>>; | ||
createReport(requestParameters: ReportsApiCreateReportRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateReportResponse, any>>; | ||
/** | ||
@@ -500,3 +500,3 @@ * Effective **June 27, 2023**, the `createReportSchedule` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
createReportSchedule(requestParameters: ReportsApiCreateReportScheduleRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateReportScheduleResponse, any>>; | ||
createReportSchedule(requestParameters: ReportsApiCreateReportScheduleRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateReportScheduleResponse, any>>; | ||
/** | ||
@@ -510,3 +510,3 @@ * Effective **June 27, 2023**, the `getReport` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
getReport(requestParameters: ReportsApiGetReportRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetReportResponse, any>>; | ||
getReport(requestParameters: ReportsApiGetReportRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetReportResponse, any>>; | ||
/** | ||
@@ -520,3 +520,3 @@ * Effective **June 27, 2023**, the `getReportDocument` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
getReportDocument(requestParameters: ReportsApiGetReportDocumentRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetReportDocumentResponse, any>>; | ||
getReportDocument(requestParameters: ReportsApiGetReportDocumentRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetReportDocumentResponse, any>>; | ||
/** | ||
@@ -530,3 +530,3 @@ * Effective **June 27, 2023**, the `getReportSchedule` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
getReportSchedule(requestParameters: ReportsApiGetReportScheduleRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetReportScheduleResponse, any>>; | ||
getReportSchedule(requestParameters: ReportsApiGetReportScheduleRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetReportScheduleResponse, any>>; | ||
/** | ||
@@ -540,3 +540,3 @@ * Effective **June 27, 2023**, the `getReportSchedules` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
getReportSchedules(requestParameters: ReportsApiGetReportSchedulesRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetReportSchedulesResponse, any>>; | ||
getReportSchedules(requestParameters: ReportsApiGetReportSchedulesRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetReportSchedulesResponse, any>>; | ||
/** | ||
@@ -550,3 +550,14 @@ * Effective **June 27, 2023**, the `getReports` operation will no longer be available in the Selling Partner API for Reports v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. | ||
*/ | ||
getReports(requestParameters?: ReportsApiGetReportsRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetReportsResponse, any>>; | ||
getReports(requestParameters?: ReportsApiGetReportsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetReportsResponse, any>>; | ||
} | ||
/** | ||
* @export | ||
*/ | ||
export declare const GetReportsProcessingStatusesEnum: { | ||
readonly Cancelled: "CANCELLED"; | ||
readonly Done: "DONE"; | ||
readonly Fatal: "FATAL"; | ||
readonly InProgress: "IN_PROGRESS"; | ||
readonly InQueue: "IN_QUEUE"; | ||
}; | ||
export type GetReportsProcessingStatusesEnum = typeof GetReportsProcessingStatusesEnum[keyof typeof GetReportsProcessingStatusesEnum]; |
@@ -13,3 +13,3 @@ /** | ||
import type { Configuration } from './configuration'; | ||
import type { AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios'; | ||
export declare const BASE_PATH: string; | ||
@@ -33,3 +33,3 @@ /** | ||
url: string; | ||
options: AxiosRequestConfig; | ||
options: RawAxiosRequestConfig; | ||
} | ||
@@ -57,1 +57,13 @@ /** | ||
} | ||
interface ServerMap { | ||
[key: string]: { | ||
url: string; | ||
description: string; | ||
}[]; | ||
} | ||
/** | ||
* | ||
* @export | ||
*/ | ||
export declare const operationServerMap: ServerMap; | ||
export {}; |
@@ -18,2 +18,3 @@ /** | ||
basePath?: string; | ||
serverIndex?: number; | ||
baseOptions?: any; | ||
@@ -58,2 +59,9 @@ formDataCtor?: new () => any; | ||
/** | ||
* override server index | ||
* | ||
* @type {number} | ||
* @memberof Configuration | ||
*/ | ||
serverIndex?: number; | ||
/** | ||
* base options for axios calls | ||
@@ -60,0 +68,0 @@ * |
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
import { CreateReportResult } from './create-report-result'; | ||
import type { CreateReportResult } from './create-report-result'; | ||
/** | ||
@@ -15,0 +15,0 @@ * The response for the createReport operation. |
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
import { CreateReportScheduleResult } from './create-report-schedule-result'; | ||
import type { CreateReportScheduleResult } from './create-report-schedule-result'; | ||
/** | ||
@@ -15,0 +15,0 @@ * The response for the createReportSchedule operation. |
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
import { ReportDocument } from './report-document'; | ||
import type { ReportDocument } from './report-document'; | ||
/** | ||
@@ -15,0 +15,0 @@ * Response schema. |
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
import { Report } from './report'; | ||
import type { Report } from './report'; | ||
/** | ||
@@ -15,0 +15,0 @@ * The response for the getReport operation. |
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
import { ReportSchedule } from './report-schedule'; | ||
import type { ReportSchedule } from './report-schedule'; | ||
/** | ||
@@ -15,0 +15,0 @@ * The response for the getReportSchedule operation. |
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
import { ReportSchedule } from './report-schedule'; | ||
import type { ReportSchedule } from './report-schedule'; | ||
/** | ||
@@ -15,0 +15,0 @@ * The response for the getReportSchedules operation. |
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
import { Report } from './report'; | ||
import type { Report } from './report'; | ||
/** | ||
@@ -15,0 +15,0 @@ * The response for the getReports operation. |
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
import { ReportDocumentEncryptionDetails } from './report-document-encryption-details'; | ||
import type { ReportDocumentEncryptionDetails } from './report-document-encryption-details'; | ||
/** | ||
@@ -15,0 +15,0 @@ * |
@@ -5,3 +5,3 @@ { | ||
"description": "Effective June 27, 2023, the Selling Partner API for Reports v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Reports API must migrate to Reports v2021-06-30 to avoid service disruption.", | ||
"version": "2.0.7", | ||
"version": "2.1.0", | ||
"main": "dist/cjs/index.js", | ||
@@ -22,4 +22,4 @@ "module": "dist/es/index.js", | ||
"dependencies": { | ||
"@sp-api-sdk/common": "2.0.7", | ||
"axios": "^1.6.8" | ||
"@sp-api-sdk/common": "2.0.8", | ||
"axios": "^1.7.0" | ||
}, | ||
@@ -45,3 +45,3 @@ "repository": { | ||
], | ||
"gitHead": "556cf5234c43b36ddaffa12f795a925b1c7fc63b" | ||
"gitHead": "5a245a25a9f1765c825e2178668d4b0f4e44689b" | ||
} |
232872
4432
+ Added@sp-api-sdk/auth@2.0.8(transitive)
+ Added@sp-api-sdk/common@2.0.8(transitive)
- Removed@sp-api-sdk/auth@2.0.7(transitive)
- Removed@sp-api-sdk/common@2.0.7(transitive)
Updated@sp-api-sdk/common@2.0.8
Updatedaxios@^1.7.0