mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 23:46:58 +00:00
42 lines
964 B
TypeScript
42 lines
964 B
TypeScript
|
|
const registerUserMutation = /* GraphQL */`
|
|
mutation registerUser($customerAccountInput: CustomerAccountInput!) {
|
|
account:createCustomerAccount(customerAccountInput:$customerAccountInput) {
|
|
emailAddress
|
|
userName
|
|
firstName
|
|
lastName
|
|
localeCode
|
|
userId
|
|
id
|
|
isAnonymous
|
|
attributes {
|
|
values
|
|
fullyQualifiedName
|
|
}
|
|
}
|
|
}`;
|
|
|
|
const registerUserLoginMutation = /* GraphQL */`
|
|
mutation registerUserLogin($accountId: Int!, $customerLoginInfoInput: CustomerLoginInfoInput!) {
|
|
account:createCustomerAccountLogin(accountId:$accountId, customerLoginInfoInput:$customerLoginInfoInput) {
|
|
accessToken
|
|
accessTokenExpiration
|
|
refreshToken
|
|
refreshTokenExpiration
|
|
userId
|
|
customerAccount {
|
|
id
|
|
emailAddress
|
|
firstName
|
|
userName
|
|
}
|
|
}
|
|
}`;
|
|
|
|
export {
|
|
registerUserMutation,
|
|
registerUserLoginMutation
|
|
};
|
|
|