/**
 * Selling Partner API for Reports
 * The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
 *
 * The version of the OpenAPI document: 2020-09-04
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */ import { Configuration } from './configuration' ; import globalAxios , { AxiosPromise , AxiosInstance } from 'axios' ; import { DUMMY_BASE_URL , assertParamExists , setApiKeyToObject , setBasicAuthToObject , setBearerAuthToObject , setOAuthToObject , setSearchParams , serializeDataIfNeeded , toPathString , createRequestFunction } from './common' ; import { BASE_PATH , COLLECTION_FORMATS , RequestArgs , BaseAPI , RequiredError } from './base' ; export interface export interface CancelReportResponse { type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface CancelReportScheduleResponse { type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface CreateReportResponse { type { CreateReportResult } memberof payload ? : CreateReportResult ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface CreateReportResult { type { string } memberof reportId : string ; } export interface export interface CreateReportScheduleResponse { type { CreateReportScheduleResult } memberof payload ? : CreateReportScheduleResult ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface CreateReportScheduleResult { type { string } memberof reportScheduleId : string ; } export interface export interface CreateReportScheduleSpecification { type { string } memberof reportType : string ; type { Array < string > } memberof marketplaceIds : Array < string > ; type { { [ key : string ] : string ; } } memberof reportOptions ? : { [ key ] : string ; } ; type { string } memberof period : CreateReportScheduleSpecificationPeriodEnum | 'PT5M' | 'PT15M' | 'PT30M' | 'PT1H' | 'PT2H' | 'PT4H' | 'PT8H' | 'PT12H' | 'P1D' | 'P2D' | 'P3D' | 'PT84H' | 'P7D' | 'P14D' | 'P15D' | 'P18D' | 'P30D' | 'P1M' ; type { string } memberof nextReportCreationTime ? : string ; } export enum { string } export enum CreateReportScheduleSpecificationPeriodEnum { Pt5M = 'PT5M' , Pt15M = 'PT15M' , Pt30M = 'PT30M' , Pt1H = 'PT1H' , Pt2H = 'PT2H' , Pt4H = 'PT4H' , Pt8H = 'PT8H' , Pt12H = 'PT12H' , P1D = 'P1D' , P2D = 'P2D' , P3D = 'P3D' , Pt84H = 'PT84H' , P7D = 'P7D' , P14D = 'P14D' , P15D = 'P15D' , P18D = 'P18D' , P30D = 'P30D' , P1M = 'P1M' } export interface export interface CreateReportSpecification { type { { [ key : string ] : string ; } } memberof reportOptions ? : { [ key ] : string ; } ; type { string } memberof reportType : string ; type { string } memberof dataStartTime ? : string ; type { string } memberof dataEndTime ? : string ; type { Array < string > } memberof marketplaceIds : Array < string > ; } export interface export interface GetReportDocumentResponse { type { ReportDocument } memberof payload ? : ReportDocument ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetReportResponse { type { Report } memberof payload ? : Report ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetReportScheduleResponse { type { ReportSchedule } memberof payload ? : ReportSchedule ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetReportSchedulesResponse { type { Array < ReportSchedule > } memberof payload ? : Array < ReportSchedule > ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetReportsResponse { type { Array < Report > } memberof payload ? : Array < Report > ; type { string } memberof nextToken ? : string ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface ModelError { type { string } memberof code : string ; type { string } memberof message : string ; type { string } memberof details ? : string ; } export interface export interface Report { type { Array < string > } memberof marketplaceIds ? : Array < string > ; type { string } memberof reportId : string ; type { string } memberof reportType : string ; type { string } memberof dataStartTime ? : string ; type { string } memberof dataEndTime ? : string ; type { string } memberof reportScheduleId ? : string ; type { string } memberof createdTime : string ; type { string } memberof processingStatus : ReportProcessingStatusEnum | 'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE' ; type { string } memberof processingStartTime ? : string ; type { string } memberof processingEndTime ? : string ; type { string } memberof reportDocumentId ? : string ; } export enum { string } export enum ReportProcessingStatusEnum { Cancelled = 'CANCELLED' , Done = 'DONE' , Fatal = 'FATAL' , InProgress = 'IN_PROGRESS' , InQueue = 'IN_QUEUE' } export interface export interface ReportDocument { type { string } memberof reportDocumentId : string ; type { string } memberof url : string ; type { ReportDocumentEncryptionDetails } memberof encryptionDetails : ReportDocumentEncryptionDetails ; type { string } memberof compressionAlgorithm ? : ReportDocumentCompressionAlgorithmEnum | 'GZIP' ; } export enum { string } export enum ReportDocumentCompressionAlgorithmEnum { Gzip = 'GZIP' } export interface export interface ReportDocumentEncryptionDetails { type { string } memberof standard : ReportDocumentEncryptionDetailsStandardEnum | 'AES' ; type { string } memberof initializationVector : string ; type { string } memberof key : string ; } export enum { string } export enum ReportDocumentEncryptionDetailsStandardEnum { Aes = 'AES' } export interface export interface ReportSchedule { type { string } memberof reportScheduleId : string ; type { string } memberof reportType : string ; type { Array < string > } memberof marketplaceIds ? : Array < string > ; type { { [ key : string ] : string ; } } memberof reportOptions ? : { [ key ] : string ; } ; type { string } memberof period : string ; type { string } memberof nextReportCreationTime ? : string ; } export export const ReportsApiAxiosParamCreator = function ( configuration ? ) { return { param { string } reportId param { * } options throws cancelReport : async ( reportId , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'cancelReport' , 'reportId' , reportId ) ; const localVarPath = `/reports/2020-09-04/reports/{reportId}` . replace ( `{${ "reportId" }}` , encodeURIComponent ( String ( reportId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'DELETE' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } reportScheduleId param { * } options throws cancelReportSchedule : async ( reportScheduleId , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'cancelReportSchedule' , 'reportScheduleId' , reportScheduleId ) ; const localVarPath = `/reports/2020-09-04/schedules/{reportScheduleId}` . replace ( `{${ "reportScheduleId" }}` , encodeURIComponent ( String ( reportScheduleId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'DELETE' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { CreateReportSpecification } body param { * } options throws createReport : async ( body , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'createReport' , 'body' , body ) ; const localVarPath = `/reports/2020-09-04/reports` ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'POST' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; localVarRequestOptions . data = serializeDataIfNeeded ( body , localVarRequestOptions , configuration ) ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { CreateReportScheduleSpecification } body param { * } options throws createReportSchedule : async ( body , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'createReportSchedule' , 'body' , body ) ; const localVarPath = `/reports/2020-09-04/schedules` ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'POST' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; localVarRequestOptions . data = serializeDataIfNeeded ( body , localVarRequestOptions , configuration ) ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } reportId param { * } options throws getReport : async ( reportId , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'getReport' , 'reportId' , reportId ) ; const localVarPath = `/reports/2020-09-04/reports/{reportId}` . replace ( `{${ "reportId" }}` , encodeURIComponent ( String ( reportId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'GET' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } reportDocumentId param { * } options throws getReportDocument : async ( reportDocumentId , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'getReportDocument' , 'reportDocumentId' , reportDocumentId ) ; const localVarPath = `/reports/2020-09-04/documents/{reportDocumentId}` . replace ( `{${ "reportDocumentId" }}` , encodeURIComponent ( String ( reportDocumentId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'GET' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } reportScheduleId param { * } options throws getReportSchedule : async ( reportScheduleId , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'getReportSchedule' , 'reportScheduleId' , reportScheduleId ) ; const localVarPath = `/reports/2020-09-04/schedules/{reportScheduleId}` . replace ( `{${ "reportScheduleId" }}` , encodeURIComponent ( String ( reportScheduleId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'GET' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { Array < string > } reportTypes param { * } options throws getReportSchedules : async ( reportTypes , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'getReportSchedules' , 'reportTypes' , reportTypes ) ; const localVarPath = `/reports/2020-09-04/schedules` ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'GET' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( reportTypes ) { localVarQueryParameter [ 'reportTypes' ] = reportTypes . join ( COLLECTION_FORMATS . csv ) ; } setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { Array < string > } reportTypes param { Array < 'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE' > } processingStatuses param { Array < string > } marketplaceIds param { number } pageSize param { string } createdSince param { string } createdUntil param { string } nextToken param { * } options throws getReports : async ( reportTypes ? , processingStatuses ? , marketplaceIds ? , pageSize ? , createdSince ? , createdUntil ? , nextToken ? , options = { } ) : Promise < RequestArgs > => { const localVarPath = `/reports/2020-09-04/reports` ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'GET' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( reportTypes ) { localVarQueryParameter [ 'reportTypes' ] = reportTypes . join ( COLLECTION_FORMATS . csv ) ; } if ( processingStatuses ) { localVarQueryParameter [ 'processingStatuses' ] = processingStatuses . join ( COLLECTION_FORMATS . csv ) ; } if ( marketplaceIds ) { localVarQueryParameter [ 'marketplaceIds' ] = marketplaceIds . join ( COLLECTION_FORMATS . csv ) ; } if ( pageSize !== undefined ) { localVarQueryParameter [ 'pageSize' ] = pageSize ; } if ( createdSince !== undefined ) { localVarQueryParameter [ 'createdSince' ] = ( createdSince as any instanceof Date ) ? ( createdSince as any ) . toISOString ( ) : createdSince ; } if ( createdUntil !== undefined ) { localVarQueryParameter [ 'createdUntil' ] = ( createdUntil as any instanceof Date ) ? ( createdUntil as any ) . toISOString ( ) : createdUntil ; } if ( nextToken !== undefined ) { localVarQueryParameter [ 'nextToken' ] = nextToken ; } setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , } ; } ; export export const ReportsApiFp = function ( configuration ? ) { const localVarAxiosParamCreator = ReportsApiAxiosParamCreator ( configuration ) ; return { param { string } reportId param { * } options throws async cancelReport ( reportId , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . cancelReport ( reportId , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } reportScheduleId param { * } options throws async cancelReportSchedule ( reportScheduleId , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . cancelReportSchedule ( reportScheduleId , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { CreateReportSpecification } body param { * } options throws async createReport ( body , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . createReport ( body , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { CreateReportScheduleSpecification } body param { * } options throws async createReportSchedule ( body , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . createReportSchedule ( body , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } reportId param { * } options throws async getReport ( reportId , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getReport ( reportId , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } reportDocumentId param { * } options throws async getReportDocument ( reportDocumentId , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getReportDocument ( reportDocumentId , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } reportScheduleId param { * } options throws async getReportSchedule ( reportScheduleId , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getReportSchedule ( reportScheduleId , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { Array < string > } reportTypes param { * } options throws async getReportSchedules ( reportTypes , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getReportSchedules ( reportTypes , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { Array < string > } reportTypes param { Array < 'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE' > } processingStatuses param { Array < string > } marketplaceIds param { number } pageSize param { string } createdSince param { string } createdUntil param { string } nextToken param { * } options throws async getReports ( reportTypes ? , processingStatuses ? , marketplaceIds ? , pageSize ? , createdSince ? , createdUntil ? , nextToken ? , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getReports ( reportTypes , processingStatuses , marketplaceIds , pageSize , createdSince , createdUntil , nextToken , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , } ; } ; export export const ReportsApiFactory = function ( configuration ? , basePath ? , axios ? ) { const localVarFp = ReportsApiFp ( configuration ) ; return { param { string } reportId param { * } options throws cancelReport ( reportId , options ? ) { return localVarFp . cancelReport ( reportId , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } reportScheduleId param { * } options throws cancelReportSchedule ( reportScheduleId , options ? ) { return localVarFp . cancelReportSchedule ( reportScheduleId , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { CreateReportSpecification } body param { * } options throws createReport ( body , options ? ) { return localVarFp . createReport ( body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { CreateReportScheduleSpecification } body param { * } options throws createReportSchedule ( body , options ? ) { return localVarFp . createReportSchedule ( body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } reportId param { * } options throws getReport ( reportId , options ? ) { return localVarFp . getReport ( reportId , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } reportDocumentId param { * } options throws getReportDocument ( reportDocumentId , options ? ) { return localVarFp . getReportDocument ( reportDocumentId , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } reportScheduleId param { * } options throws getReportSchedule ( reportScheduleId , options ? ) { return localVarFp . getReportSchedule ( reportScheduleId , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { Array < string > } reportTypes param { * } options throws getReportSchedules ( reportTypes , options ? ) { return localVarFp . getReportSchedules ( reportTypes , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { Array < string > } reportTypes param { Array < 'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE' > } processingStatuses param { Array < string > } marketplaceIds param { number } pageSize param { string } createdSince param { string } createdUntil param { string } nextToken param { * } options throws getReports ( reportTypes ? , processingStatuses ? , marketplaceIds ? , pageSize ? , createdSince ? , createdUntil ? , nextToken ? , options ? ) { return localVarFp . getReports ( reportTypes , processingStatuses , marketplaceIds , pageSize , createdSince , createdUntil , nextToken , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , } ; } ; export interface export interface ReportsApiCancelReportRequest { type { string } memberof readonly reportId : string ; } export interface export interface ReportsApiCancelReportScheduleRequest { type { string } memberof readonly reportScheduleId : string ; } export interface export interface ReportsApiCreateReportRequest { type { CreateReportSpecification } memberof readonly body : CreateReportSpecification ; } export interface export interface ReportsApiCreateReportScheduleRequest { type { CreateReportScheduleSpecification } memberof readonly body : CreateReportScheduleSpecification ; } export interface export interface ReportsApiGetReportRequest { type { string } memberof readonly reportId : string ; } export interface export interface ReportsApiGetReportDocumentRequest { type { string } memberof readonly reportDocumentId : string ; } export interface export interface ReportsApiGetReportScheduleRequest { type { string } memberof readonly reportScheduleId : string ; } export interface export interface ReportsApiGetReportSchedulesRequest { type { Array < string > } memberof readonly reportTypes : Array < string > ; } export interface export interface ReportsApiGetReportsRequest { type { Array < string > } memberof readonly reportTypes ? : Array < string > ; type { Array < 'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE' > } memberof readonly processingStatuses ? : Array < 'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE' > ; type { Array < string > } memberof readonly marketplaceIds ? : Array < string > ; type { number } memberof readonly pageSize ? : number ; type { string } memberof readonly createdSince ? : string ; type { string } memberof readonly createdUntil ? : string ; type { string } memberof readonly nextToken ? : string ; } export class extends BaseAPI export class ReportsApi extends BaseAPI { param { ReportsApiCancelReportRequest } requestParameters param { * } options throws memberof public cancelReport ( requestParameters , options ? ) { return ReportsApiFp ( this . configuration ) . cancelReport ( requestParameters . reportId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { ReportsApiCancelReportScheduleRequest } requestParameters param { * } options throws memberof public cancelReportSchedule ( requestParameters , options ? ) { return ReportsApiFp ( this . configuration ) . cancelReportSchedule ( requestParameters . reportScheduleId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { ReportsApiCreateReportRequest } requestParameters param { * } options throws memberof public createReport ( requestParameters , options ? ) { return ReportsApiFp ( this . configuration ) . createReport ( requestParameters . body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { ReportsApiCreateReportScheduleRequest } requestParameters param { * } options throws memberof public createReportSchedule ( requestParameters , options ? ) { return ReportsApiFp ( this . configuration ) . createReportSchedule ( requestParameters . body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { ReportsApiGetReportRequest } requestParameters param { * } options throws memberof public getReport ( requestParameters , options ? ) { return ReportsApiFp ( this . configuration ) . getReport ( requestParameters . reportId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { ReportsApiGetReportDocumentRequest } requestParameters param { * } options throws memberof public getReportDocument ( requestParameters , options ? ) { return ReportsApiFp ( this . configuration ) . getReportDocument ( requestParameters . reportDocumentId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { ReportsApiGetReportScheduleRequest } requestParameters param { * } options throws memberof public getReportSchedule ( requestParameters , options ? ) { return ReportsApiFp ( this . configuration ) . getReportSchedule ( requestParameters . reportScheduleId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { ReportsApiGetReportSchedulesRequest } requestParameters param { * } options throws memberof public getReportSchedules ( requestParameters , options ? ) { return ReportsApiFp ( this . configuration ) . getReportSchedules ( requestParameters . reportTypes , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { ReportsApiGetReportsRequest } requestParameters param { * } options throws memberof public getReports ( requestParameters = { } , options ? ) { return ReportsApiFp ( this . configuration ) . getReports ( requestParameters . reportTypes , requestParameters . processingStatuses , requestParameters . marketplaceIds , requestParameters . pageSize , requestParameters . createdSince , requestParameters . createdUntil , requestParameters . nextToken , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } }