Merge branch 'release-stable' of https://github.com/KieIO/grocery-vercel-commerce into feature/m1-get-product-detail

This commit is contained in:
Tan Le
2021-09-30 15:56:50 +07:00
57 changed files with 1531 additions and 619 deletions

View File

@@ -3095,6 +3095,36 @@ export type LoginMutation = { __typename?: 'Mutation' } & {
>)
}
export type VerifyCustomerAccountVariables = Exact<{
token: Scalars['String']
password?: Maybe<Scalars['String']>
}>
export type VerifyCustomerAccountMutation = { __typename?: 'Mutation' } & {
verifyCustomerAccount:
| ({ __typename: 'CurrentUser' } & Pick<CurrentUser, 'id'>)
| ({ __typename: 'VerificationTokenInvalidError' } & Pick<
VerificationTokenInvalidError,
'errorCode' | 'message'
>)
| ({ __typename: 'VerificationTokenExpiredError' } & Pick<
VerificationTokenExpiredError,
'errorCode' | 'message'
>)
| ({ __typename: 'MissingPasswordError' } & Pick<
MissingPasswordError,
'errorCode' | 'message'
>)
| ({ __typename: 'PasswordAlreadySetError' } & Pick<
PasswordAlreadySetError,
'errorCode' | 'message'
>)
| ({ __typename: 'NativeAuthStrategyError' } & Pick<
NativeAuthStrategyError,
'errorCode' | 'message'
>)
}
export type LogoutMutationVariables = Exact<{ [key: string]: never }>
export type LogoutMutation = { __typename?: 'Mutation' } & {

View File

@@ -0,0 +1,15 @@
export const verifyCustomerAccountMutaton = /* GraphQL */ `
mutation verifyCustomerAccount($token: String!, $password: String) {
verifyCustomerAccount( token: $token, password: $password) {
__typename
...on CurrentUser {
id
identifier
}
... on ErrorResult {
errorCode
message
}
}
}
`