Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
refactor: getReportRequestListByNextToken to be the same
Browse files Browse the repository at this point in the history
  • Loading branch information
justinemmanuelmercado authored and moltar committed Jun 28, 2020
1 parent d047af5 commit 36ced8c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/sections/reports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,6 @@ const GetReportRequestListByNextTokenResponse = Codec.interface({
}),
})

export interface GetReportRequestListByNextTokenParameters {
NextToken: NextToken<'GetReportRequestList'>
}

export interface GetReportRequestCountParameters {
ReportTypeList?: ReportType[]
ReportProcessingStatusList?: ReportProcessing[]
Expand Down Expand Up @@ -556,14 +552,14 @@ export class Reports {
}

async getReportRequestListByNextToken(
parameters: GetReportRequestListByNextTokenParameters,
nextToken: NextToken<'GetReportRequestList'>,
): Promise<[GetReportRequestListResult, RequestMeta]> {
const [response, meta] = await this.httpClient.request('POST', {
resource: Resource.Reports,
version: REPORTS_API_VERSION,
action: 'GetReportListByNextToken',
parameters: {
NextToken: parameters.NextToken.token,
NextToken: nextToken.token,
},
})

Expand Down

0 comments on commit 36ced8c

Please sign in to comment.