mirror of
https://github.com/vercel/commerce.git
synced 2025-05-19 16:07:01 +00:00
59 lines
1.1 KiB
TypeScript
59 lines
1.1 KiB
TypeScript
export const CUSTOMER_CREATE_MUTATION = `#graphql
|
|
mutation customerCreate($input: CustomerCreateInput!) {
|
|
customerCreate(input: $input) {
|
|
customer {
|
|
id
|
|
}
|
|
customerUserErrors {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const LOGIN_MUTATION = `#graphql
|
|
mutation customerAccessTokenCreate($input: CustomerAccessTokenCreateInput!) {
|
|
customerAccessTokenCreate(input: $input) {
|
|
customerUserErrors {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
customerAccessToken {
|
|
accessToken
|
|
expiresAt
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const CUSTOMER_RECOVER_MUTATION = `#graphql
|
|
mutation customerRecover($email: String!) {
|
|
customerRecover(email: $email) {
|
|
customerUserErrors {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const CUSTOMER_RESET_MUTATION = `#graphql
|
|
mutation customerReset($id: ID!, $input: CustomerResetInput!) {
|
|
customerReset(id: $id, input: $input) {
|
|
customerAccessToken {
|
|
accessToken
|
|
expiresAt
|
|
}
|
|
customerUserErrors {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
}
|
|
}
|
|
`;
|