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

Commit

Permalink
fix: missed an enum
Browse files Browse the repository at this point in the history
  • Loading branch information
justinemmanuelmercado committed Jun 26, 2020
1 parent e2ded78 commit e56109d
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/sections/feeds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
array,
boolean,
Codec,
enumeration,
exactly,
GetInterface,
Left,
Expand All @@ -20,17 +21,28 @@ const FEEDS_API_VERSION = '2009-01-01'
export interface GetFeedSubmissionListParameters {
FeedSubmissionIdList?: string[]
MaxCount?: number
FeedTypeList?: string[]
FeedProcessingStatusList?: string[]
FeedTypeList?: FeedType[]
FeedProcessingStatusList?: FeedProcessingStatus[]
SubmittedFromDate?: Date
SubmittedToDate?: Date
}
enum FeedProcessingStatusEnum {
_AWAITING_ASYNCHRONOUS_REPLY_ = '_AWAITING_ASYNCHRONOUS_REPLY_',
_CANCELLED_ = '_CANCELLED_',
_DONE_ = '_DONE_',
_IN_PROGRESS_ = '_IN_PROGRESS_',
_IN_SAFETY_NET_ = '_IN_SAFETY_NET_',
_SUBMITTED_ = '_SUBMITTED_',
_UNCONFIRMED_ = '_UNCONFIRMED_',
}

const FeedProcessingStatusCodec = enumeration(FeedProcessingStatusEnum)

const FeedSubmissionInfo = Codec.interface({
FeedSubmissionId: ensureString,
FeedType: string,
SubmittedDate: mwsDate,
FeedProcessingStatus: string,
FeedProcessingStatus: FeedProcessingStatusCodec,
StartedProcessingDate: optional(mwsDate),
CompletedProcessingDate: optional(mwsDate),
})
Expand Down Expand Up @@ -120,7 +132,7 @@ const GetFeedSubmissionCountResponse = Codec.interface({

export interface CancelFeedSubmissionsParameters {
FeedSubmissionIdList?: string[]
FeedTypeList?: string[]
FeedTypeList?: FeedType[]
SubmittedFromDate?: Date
SubmittedToDate?: Date
}
Expand Down

0 comments on commit e56109d

Please sign in to comment.