From d62b4f3d3d35962b43d1093ae0a276b59cc5afc2 Mon Sep 17 00:00:00 2001 From: EJ Mercado Date: Thu, 25 Jun 2020 17:32:16 +0800 Subject: [PATCH] fix: api extractor for feeds api --- src/sections/feeds.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/sections/feeds.ts b/src/sections/feeds.ts index ee757594..0ed4d8f8 100644 --- a/src/sections/feeds.ts +++ b/src/sections/feeds.ts @@ -17,7 +17,7 @@ import { HttpClient, RequestMeta, Resource } from '../http' import { ensureString, mwsDate, NextToken, nextToken as nextTokenCodec } from '../parsing' const FEEDS_API_VERSION = '2009-01-01' -interface GetFeedSubmissionListParameters { +export interface GetFeedSubmissionListParameters { FeedSubmissionIdList?: string[] MaxCount?: number FeedTypeList?: string[] @@ -35,13 +35,13 @@ const FeedSubmissionInfo = Codec.interface({ CompletedProcessingDate: optional(mwsDate), }) -const GetFeedSubmissionList = Codec.interface({ +export const GetFeedSubmissionList = Codec.interface({ HasToken: optional(boolean), NextToken: optional(nextTokenCodec('GetFeedSubmissionList')), FeedSubmissionInfo: optional(oneOf([FeedSubmissionInfo, array(FeedSubmissionInfo), exactly('')])), }) -type GetFeedSubmissionList = GetInterface +export type GetFeedSubmissionList = GetInterface const GetFeedSubmissionListResponse = Codec.interface({ GetFeedSubmissionListResponse: Codec.interface({ @@ -106,7 +106,7 @@ export interface GetFeedSubmissionCountParameters { SubmittedToDate?: Date } -const GetFeedSubmissionCount = Codec.interface({ +export const GetFeedSubmissionCount = Codec.interface({ Count: number, }) @@ -125,7 +125,7 @@ export interface CancelFeedSubmissionsParameters { SubmittedToDate?: Date } -const CancelFeedSubmissions = Codec.interface({ +export const CancelFeedSubmissions = Codec.interface({ Count: number, FeedSubmissionInfo: optional(oneOf([FeedSubmissionInfo, array(FeedSubmissionInfo), exactly('')])), }) @@ -138,7 +138,7 @@ const CancelFeedSubmissionsResponse = Codec.interface({ }), }) -const FeedSubmission = string +export const FeedSubmission = string export type FeedSubmission = GetInterface @@ -153,7 +153,7 @@ const GetFeedSubmissionResultResponse = Codec.custom({ encode: (feed) => feed, }) -interface GetFeedSubmissionResultParameters { +export interface GetFeedSubmissionResultParameters { FeedSubmissionId: string } @@ -166,7 +166,7 @@ export interface SubmitFeedParameters { DocumentId?: string } -const SubmitFeed = Codec.interface({ +export const SubmitFeed = Codec.interface({ FeedSubmissionInfo: optional(oneOf([FeedSubmissionInfo, array(FeedSubmissionInfo), exactly('')])), })