-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer-accountapi.generated.d.ts
62 lines (55 loc) · 2.01 KB
/
customer-accountapi.generated.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/* eslint-disable eslint-comments/disable-enable-pair */
/* eslint-disable eslint-comments/no-unlimited-disable */
/* eslint-disable */
import * as CustomerAccountAPI from '@shopify/hydrogen/customer-account-api-types';
export type GetCustomerQueryVariables = CustomerAccountAPI.Exact<{
[key: string]: never;
}>;
export type GetCustomerQuery = {
customer: Pick<
CustomerAccountAPI.Customer,
'id' | 'firstName' | 'lastName'
> & {
emailAddress?: CustomerAccountAPI.Maybe<
Pick<
CustomerAccountAPI.CustomerEmailAddress,
'emailAddress' | 'marketingState'
>
>;
phoneNumber?: CustomerAccountAPI.Maybe<
Pick<
CustomerAccountAPI.CustomerPhoneNumber,
'phoneNumber' | 'marketingState'
>
>;
};
};
export type CustomerUpdateMutationVariables = CustomerAccountAPI.Exact<{
customer: CustomerAccountAPI.CustomerUpdateInput;
}>;
export type CustomerUpdateMutation = {
customerUpdate?: CustomerAccountAPI.Maybe<{
userErrors: Array<
Pick<
CustomerAccountAPI.UserErrorsCustomerUserErrors,
'code' | 'field' | 'message'
>
>;
}>;
};
interface GeneratedQueryTypes {
'#graphql\n query getCustomer {\n customer {\n id\n firstName\n lastName\n emailAddress{\n emailAddress\n marketingState\n }\n phoneNumber {\n phoneNumber\n marketingState\n }\n }\n }\n': {
return: GetCustomerQuery;
variables: GetCustomerQueryVariables;
};
}
interface GeneratedMutationTypes {
'#graphql\nmutation customerUpdate($customer: CustomerUpdateInput!) {\n customerUpdate(input: $customer) {\n userErrors {\n code\n field\n message\n }\n }\n}\n': {
return: CustomerUpdateMutation;
variables: CustomerUpdateMutationVariables;
};
}
declare module '@shopify/hydrogen' {
interface CustomerAccountQueries extends GeneratedQueryTypes {}
interface CustomerAccountMutations extends GeneratedMutationTypes {}
}