Skip to content

Commit

Permalink
feat: add profile account info sub type field
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyentoanit committed Sep 24, 2020
1 parent be58902 commit ce3040f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 128 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions src/operations/profiles/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ export const AccountInfoType = t.union([
])
export type AccountInfoType = t.TypeOf<typeof AccountInfoType>

/**
* The account subtype.
*/
export const AccountInfoSubType = t.union([
t.literal('KDP_AUTHOR'),
t.literal('AMAZON_ATTRIBUTION'),
])
export type AccountInfoSubType = t.TypeOf<typeof AccountInfoSubType>

export const AccountInfo = t.intersection([
t.type({
/**
Expand All @@ -62,6 +71,11 @@ export const AccountInfo = t.intersection([
* The string identifier for the account name.
*/
name: t.string,

/**
* The account subtype.
*/
subType: AccountInfoSubType,
}),
])
export type AccountInfo = t.TypeOf<typeof AccountInfo>
Expand Down

This file was deleted.

0 comments on commit ce3040f

Please sign in to comment.