661 lines
24 KiB
TypeScript
661 lines
24 KiB
TypeScript
/* eslint-disable eslint-comments/disable-enable-pair */
|
|
/* eslint-disable eslint-comments/no-unlimited-disable */
|
|
/* eslint-disable */
|
|
import type * as CustomerAccountAPI from '@shopify/hydrogen/customer-account-api-types';
|
|
|
|
export type AccountOverviewMoneyFragment = Pick<
|
|
CustomerAccountAPI.MoneyV2,
|
|
'amount' | 'currencyCode'
|
|
>;
|
|
|
|
export type AccountOverviewLineFragment = Pick<
|
|
CustomerAccountAPI.LineItem,
|
|
'title' | 'quantity'
|
|
> & {
|
|
price?: CustomerAccountAPI.Maybe<
|
|
Pick<CustomerAccountAPI.MoneyV2, 'amount' | 'currencyCode'>
|
|
>;
|
|
};
|
|
|
|
export type AccountOverviewOrderFragment = Pick<
|
|
CustomerAccountAPI.Order,
|
|
'id' | 'name' | 'confirmationNumber' | 'processedAt' | 'fulfillmentStatus'
|
|
> & {
|
|
totalPrice: Pick<CustomerAccountAPI.MoneyV2, 'amount' | 'currencyCode'>;
|
|
lineItems: {
|
|
nodes: Array<
|
|
Pick<CustomerAccountAPI.LineItem, 'title' | 'quantity'> & {
|
|
price?: CustomerAccountAPI.Maybe<
|
|
Pick<CustomerAccountAPI.MoneyV2, 'amount' | 'currencyCode'>
|
|
>;
|
|
}
|
|
>;
|
|
};
|
|
};
|
|
|
|
export type AccountOverviewQueryVariables = CustomerAccountAPI.Exact<{
|
|
language?: CustomerAccountAPI.InputMaybe<CustomerAccountAPI.LanguageCode>;
|
|
}>;
|
|
|
|
export type AccountOverviewQuery = {
|
|
customer: Pick<CustomerAccountAPI.Customer, 'creationDate'> & {
|
|
orders: {
|
|
pageInfo: Pick<CustomerAccountAPI.PageInfo, 'hasNextPage'>;
|
|
nodes: Array<
|
|
Pick<
|
|
CustomerAccountAPI.Order,
|
|
| 'id'
|
|
| 'name'
|
|
| 'confirmationNumber'
|
|
| 'processedAt'
|
|
| 'fulfillmentStatus'
|
|
> & {
|
|
totalPrice: Pick<
|
|
CustomerAccountAPI.MoneyV2,
|
|
'amount' | 'currencyCode'
|
|
>;
|
|
lineItems: {
|
|
nodes: Array<
|
|
Pick<CustomerAccountAPI.LineItem, 'title' | 'quantity'> & {
|
|
price?: CustomerAccountAPI.Maybe<
|
|
Pick<CustomerAccountAPI.MoneyV2, 'amount' | 'currencyCode'>
|
|
>;
|
|
}
|
|
>;
|
|
};
|
|
}
|
|
>;
|
|
};
|
|
};
|
|
};
|
|
|
|
export type CustomerAddressUpdateMutationVariables = CustomerAccountAPI.Exact<{
|
|
address: CustomerAccountAPI.CustomerAddressInput;
|
|
addressId: CustomerAccountAPI.Scalars['ID']['input'];
|
|
defaultAddress?: CustomerAccountAPI.InputMaybe<
|
|
CustomerAccountAPI.Scalars['Boolean']['input']
|
|
>;
|
|
language?: CustomerAccountAPI.InputMaybe<CustomerAccountAPI.LanguageCode>;
|
|
}>;
|
|
|
|
export type CustomerAddressUpdateMutation = {
|
|
customerAddressUpdate?: CustomerAccountAPI.Maybe<{
|
|
customerAddress?: CustomerAccountAPI.Maybe<
|
|
Pick<CustomerAccountAPI.CustomerAddress, 'id'>
|
|
>;
|
|
userErrors: Array<
|
|
Pick<
|
|
CustomerAccountAPI.UserErrorsCustomerAddressUserErrors,
|
|
'code' | 'field' | 'message'
|
|
>
|
|
>;
|
|
}>;
|
|
};
|
|
|
|
export type CustomerAddressDeleteMutationVariables = CustomerAccountAPI.Exact<{
|
|
addressId: CustomerAccountAPI.Scalars['ID']['input'];
|
|
language?: CustomerAccountAPI.InputMaybe<CustomerAccountAPI.LanguageCode>;
|
|
}>;
|
|
|
|
export type CustomerAddressDeleteMutation = {
|
|
customerAddressDelete?: CustomerAccountAPI.Maybe<
|
|
Pick<
|
|
CustomerAccountAPI.CustomerAddressDeletePayload,
|
|
'deletedAddressId'
|
|
> & {
|
|
userErrors: Array<
|
|
Pick<
|
|
CustomerAccountAPI.UserErrorsCustomerAddressUserErrors,
|
|
'code' | 'field' | 'message'
|
|
>
|
|
>;
|
|
}
|
|
>;
|
|
};
|
|
|
|
export type CustomerAddressCreateMutationVariables = CustomerAccountAPI.Exact<{
|
|
address: CustomerAccountAPI.CustomerAddressInput;
|
|
defaultAddress?: CustomerAccountAPI.InputMaybe<
|
|
CustomerAccountAPI.Scalars['Boolean']['input']
|
|
>;
|
|
language?: CustomerAccountAPI.InputMaybe<CustomerAccountAPI.LanguageCode>;
|
|
}>;
|
|
|
|
export type CustomerAddressCreateMutation = {
|
|
customerAddressCreate?: CustomerAccountAPI.Maybe<{
|
|
customerAddress?: CustomerAccountAPI.Maybe<
|
|
Pick<CustomerAccountAPI.CustomerAddress, 'id'>
|
|
>;
|
|
userErrors: Array<
|
|
Pick<
|
|
CustomerAccountAPI.UserErrorsCustomerAddressUserErrors,
|
|
'code' | 'field' | 'message'
|
|
>
|
|
>;
|
|
}>;
|
|
};
|
|
|
|
export type CustomerFragment = Pick<
|
|
CustomerAccountAPI.Customer,
|
|
'id' | 'firstName' | 'lastName'
|
|
> & {
|
|
emailAddress?: CustomerAccountAPI.Maybe<
|
|
Pick<CustomerAccountAPI.CustomerEmailAddress, 'emailAddress'>
|
|
>;
|
|
defaultAddress?: CustomerAccountAPI.Maybe<
|
|
Pick<
|
|
CustomerAccountAPI.CustomerAddress,
|
|
| 'id'
|
|
| 'formatted'
|
|
| 'firstName'
|
|
| 'lastName'
|
|
| 'company'
|
|
| 'address1'
|
|
| 'address2'
|
|
| 'territoryCode'
|
|
| 'zoneCode'
|
|
| 'city'
|
|
| 'zip'
|
|
| 'phoneNumber'
|
|
>
|
|
>;
|
|
addresses: {
|
|
nodes: Array<
|
|
Pick<
|
|
CustomerAccountAPI.CustomerAddress,
|
|
| 'id'
|
|
| 'formatted'
|
|
| 'firstName'
|
|
| 'lastName'
|
|
| 'company'
|
|
| 'address1'
|
|
| 'address2'
|
|
| 'territoryCode'
|
|
| 'zoneCode'
|
|
| 'city'
|
|
| 'zip'
|
|
| 'phoneNumber'
|
|
>
|
|
>;
|
|
};
|
|
};
|
|
|
|
export type AddressFragment = Pick<
|
|
CustomerAccountAPI.CustomerAddress,
|
|
| 'id'
|
|
| 'formatted'
|
|
| 'firstName'
|
|
| 'lastName'
|
|
| 'company'
|
|
| 'address1'
|
|
| 'address2'
|
|
| 'territoryCode'
|
|
| 'zoneCode'
|
|
| 'city'
|
|
| 'zip'
|
|
| 'phoneNumber'
|
|
>;
|
|
|
|
export type CustomerDetailsQueryVariables = CustomerAccountAPI.Exact<{
|
|
language?: CustomerAccountAPI.InputMaybe<CustomerAccountAPI.LanguageCode>;
|
|
}>;
|
|
|
|
export type CustomerDetailsQuery = {
|
|
customer: Pick<
|
|
CustomerAccountAPI.Customer,
|
|
'id' | 'firstName' | 'lastName'
|
|
> & {
|
|
emailAddress?: CustomerAccountAPI.Maybe<
|
|
Pick<CustomerAccountAPI.CustomerEmailAddress, 'emailAddress'>
|
|
>;
|
|
defaultAddress?: CustomerAccountAPI.Maybe<
|
|
Pick<
|
|
CustomerAccountAPI.CustomerAddress,
|
|
| 'id'
|
|
| 'formatted'
|
|
| 'firstName'
|
|
| 'lastName'
|
|
| 'company'
|
|
| 'address1'
|
|
| 'address2'
|
|
| 'territoryCode'
|
|
| 'zoneCode'
|
|
| 'city'
|
|
| 'zip'
|
|
| 'phoneNumber'
|
|
>
|
|
>;
|
|
addresses: {
|
|
nodes: Array<
|
|
Pick<
|
|
CustomerAccountAPI.CustomerAddress,
|
|
| 'id'
|
|
| 'formatted'
|
|
| 'firstName'
|
|
| 'lastName'
|
|
| 'company'
|
|
| 'address1'
|
|
| 'address2'
|
|
| 'territoryCode'
|
|
| 'zoneCode'
|
|
| 'city'
|
|
| 'zip'
|
|
| 'phoneNumber'
|
|
>
|
|
>;
|
|
};
|
|
};
|
|
};
|
|
|
|
export type OrderMoneyFragment = Pick<
|
|
CustomerAccountAPI.MoneyV2,
|
|
'amount' | 'currencyCode'
|
|
>;
|
|
|
|
export type DiscountApplicationFragment = {
|
|
value:
|
|
| ({__typename: 'MoneyV2'} & Pick<
|
|
CustomerAccountAPI.MoneyV2,
|
|
'amount' | 'currencyCode'
|
|
>)
|
|
| ({__typename: 'PricingPercentageValue'} & Pick<
|
|
CustomerAccountAPI.PricingPercentageValue,
|
|
'percentage'
|
|
>);
|
|
};
|
|
|
|
export type OrderLineItemFullFragment = Pick<
|
|
CustomerAccountAPI.LineItem,
|
|
'id' | 'title' | 'quantity' | 'variantTitle'
|
|
> & {
|
|
price?: CustomerAccountAPI.Maybe<
|
|
Pick<CustomerAccountAPI.MoneyV2, 'amount' | 'currencyCode'>
|
|
>;
|
|
discountAllocations: Array<{
|
|
allocatedAmount: Pick<
|
|
CustomerAccountAPI.MoneyV2,
|
|
'amount' | 'currencyCode'
|
|
>;
|
|
discountApplication: {
|
|
value:
|
|
| ({__typename: 'MoneyV2'} & Pick<
|
|
CustomerAccountAPI.MoneyV2,
|
|
'amount' | 'currencyCode'
|
|
>)
|
|
| ({__typename: 'PricingPercentageValue'} & Pick<
|
|
CustomerAccountAPI.PricingPercentageValue,
|
|
'percentage'
|
|
>);
|
|
};
|
|
}>;
|
|
totalDiscount: Pick<CustomerAccountAPI.MoneyV2, 'amount' | 'currencyCode'>;
|
|
image?: CustomerAccountAPI.Maybe<
|
|
Pick<
|
|
CustomerAccountAPI.Image,
|
|
'altText' | 'height' | 'url' | 'id' | 'width'
|
|
>
|
|
>;
|
|
};
|
|
|
|
export type OrderFragment = Pick<
|
|
CustomerAccountAPI.Order,
|
|
| 'id'
|
|
| 'name'
|
|
| 'confirmationNumber'
|
|
| 'statusPageUrl'
|
|
| 'fulfillmentStatus'
|
|
| 'processedAt'
|
|
> & {
|
|
fulfillments: {nodes: Array<Pick<CustomerAccountAPI.Fulfillment, 'status'>>};
|
|
totalTax?: CustomerAccountAPI.Maybe<
|
|
Pick<CustomerAccountAPI.MoneyV2, 'amount' | 'currencyCode'>
|
|
>;
|
|
totalPrice: Pick<CustomerAccountAPI.MoneyV2, 'amount' | 'currencyCode'>;
|
|
subtotal?: CustomerAccountAPI.Maybe<
|
|
Pick<CustomerAccountAPI.MoneyV2, 'amount' | 'currencyCode'>
|
|
>;
|
|
shippingAddress?: CustomerAccountAPI.Maybe<
|
|
Pick<
|
|
CustomerAccountAPI.CustomerAddress,
|
|
'name' | 'formatted' | 'formattedArea'
|
|
>
|
|
>;
|
|
discountApplications: {
|
|
nodes: Array<{
|
|
value:
|
|
| ({__typename: 'MoneyV2'} & Pick<
|
|
CustomerAccountAPI.MoneyV2,
|
|
'amount' | 'currencyCode'
|
|
>)
|
|
| ({__typename: 'PricingPercentageValue'} & Pick<
|
|
CustomerAccountAPI.PricingPercentageValue,
|
|
'percentage'
|
|
>);
|
|
}>;
|
|
};
|
|
lineItems: {
|
|
nodes: Array<
|
|
Pick<
|
|
CustomerAccountAPI.LineItem,
|
|
'id' | 'title' | 'quantity' | 'variantTitle'
|
|
> & {
|
|
price?: CustomerAccountAPI.Maybe<
|
|
Pick<CustomerAccountAPI.MoneyV2, 'amount' | 'currencyCode'>
|
|
>;
|
|
discountAllocations: Array<{
|
|
allocatedAmount: Pick<
|
|
CustomerAccountAPI.MoneyV2,
|
|
'amount' | 'currencyCode'
|
|
>;
|
|
discountApplication: {
|
|
value:
|
|
| ({__typename: 'MoneyV2'} & Pick<
|
|
CustomerAccountAPI.MoneyV2,
|
|
'amount' | 'currencyCode'
|
|
>)
|
|
| ({__typename: 'PricingPercentageValue'} & Pick<
|
|
CustomerAccountAPI.PricingPercentageValue,
|
|
'percentage'
|
|
>);
|
|
};
|
|
}>;
|
|
totalDiscount: Pick<
|
|
CustomerAccountAPI.MoneyV2,
|
|
'amount' | 'currencyCode'
|
|
>;
|
|
image?: CustomerAccountAPI.Maybe<
|
|
Pick<
|
|
CustomerAccountAPI.Image,
|
|
'altText' | 'height' | 'url' | 'id' | 'width'
|
|
>
|
|
>;
|
|
}
|
|
>;
|
|
};
|
|
};
|
|
|
|
export type OrderQueryVariables = CustomerAccountAPI.Exact<{
|
|
orderId: CustomerAccountAPI.Scalars['ID']['input'];
|
|
language?: CustomerAccountAPI.InputMaybe<CustomerAccountAPI.LanguageCode>;
|
|
}>;
|
|
|
|
export type OrderQuery = {
|
|
order?: CustomerAccountAPI.Maybe<
|
|
Pick<
|
|
CustomerAccountAPI.Order,
|
|
| 'id'
|
|
| 'name'
|
|
| 'confirmationNumber'
|
|
| 'statusPageUrl'
|
|
| 'fulfillmentStatus'
|
|
| 'processedAt'
|
|
> & {
|
|
fulfillments: {
|
|
nodes: Array<Pick<CustomerAccountAPI.Fulfillment, 'status'>>;
|
|
};
|
|
totalTax?: CustomerAccountAPI.Maybe<
|
|
Pick<CustomerAccountAPI.MoneyV2, 'amount' | 'currencyCode'>
|
|
>;
|
|
totalPrice: Pick<CustomerAccountAPI.MoneyV2, 'amount' | 'currencyCode'>;
|
|
subtotal?: CustomerAccountAPI.Maybe<
|
|
Pick<CustomerAccountAPI.MoneyV2, 'amount' | 'currencyCode'>
|
|
>;
|
|
shippingAddress?: CustomerAccountAPI.Maybe<
|
|
Pick<
|
|
CustomerAccountAPI.CustomerAddress,
|
|
'name' | 'formatted' | 'formattedArea'
|
|
>
|
|
>;
|
|
discountApplications: {
|
|
nodes: Array<{
|
|
value:
|
|
| ({__typename: 'MoneyV2'} & Pick<
|
|
CustomerAccountAPI.MoneyV2,
|
|
'amount' | 'currencyCode'
|
|
>)
|
|
| ({__typename: 'PricingPercentageValue'} & Pick<
|
|
CustomerAccountAPI.PricingPercentageValue,
|
|
'percentage'
|
|
>);
|
|
}>;
|
|
};
|
|
lineItems: {
|
|
nodes: Array<
|
|
Pick<
|
|
CustomerAccountAPI.LineItem,
|
|
'id' | 'title' | 'quantity' | 'variantTitle'
|
|
> & {
|
|
price?: CustomerAccountAPI.Maybe<
|
|
Pick<CustomerAccountAPI.MoneyV2, 'amount' | 'currencyCode'>
|
|
>;
|
|
discountAllocations: Array<{
|
|
allocatedAmount: Pick<
|
|
CustomerAccountAPI.MoneyV2,
|
|
'amount' | 'currencyCode'
|
|
>;
|
|
discountApplication: {
|
|
value:
|
|
| ({__typename: 'MoneyV2'} & Pick<
|
|
CustomerAccountAPI.MoneyV2,
|
|
'amount' | 'currencyCode'
|
|
>)
|
|
| ({__typename: 'PricingPercentageValue'} & Pick<
|
|
CustomerAccountAPI.PricingPercentageValue,
|
|
'percentage'
|
|
>);
|
|
};
|
|
}>;
|
|
totalDiscount: Pick<
|
|
CustomerAccountAPI.MoneyV2,
|
|
'amount' | 'currencyCode'
|
|
>;
|
|
image?: CustomerAccountAPI.Maybe<
|
|
Pick<
|
|
CustomerAccountAPI.Image,
|
|
'altText' | 'height' | 'url' | 'id' | 'width'
|
|
>
|
|
>;
|
|
}
|
|
>;
|
|
};
|
|
}
|
|
>;
|
|
};
|
|
|
|
export type OrderItemFragment = Pick<
|
|
CustomerAccountAPI.Order,
|
|
| 'financialStatus'
|
|
| 'fulfillmentStatus'
|
|
| 'id'
|
|
| 'number'
|
|
| 'confirmationNumber'
|
|
| 'processedAt'
|
|
> & {
|
|
totalPrice: Pick<CustomerAccountAPI.MoneyV2, 'amount' | 'currencyCode'>;
|
|
fulfillments: {nodes: Array<Pick<CustomerAccountAPI.Fulfillment, 'status'>>};
|
|
};
|
|
|
|
export type CustomerOrdersFragment = {
|
|
orders: {
|
|
nodes: Array<
|
|
Pick<
|
|
CustomerAccountAPI.Order,
|
|
| 'financialStatus'
|
|
| 'fulfillmentStatus'
|
|
| 'id'
|
|
| 'number'
|
|
| 'confirmationNumber'
|
|
| 'processedAt'
|
|
> & {
|
|
totalPrice: Pick<CustomerAccountAPI.MoneyV2, 'amount' | 'currencyCode'>;
|
|
fulfillments: {
|
|
nodes: Array<Pick<CustomerAccountAPI.Fulfillment, 'status'>>;
|
|
};
|
|
}
|
|
>;
|
|
pageInfo: Pick<
|
|
CustomerAccountAPI.PageInfo,
|
|
'hasPreviousPage' | 'hasNextPage' | 'endCursor' | 'startCursor'
|
|
>;
|
|
};
|
|
};
|
|
|
|
export type CustomerOrdersQueryVariables = CustomerAccountAPI.Exact<{
|
|
endCursor?: CustomerAccountAPI.InputMaybe<
|
|
CustomerAccountAPI.Scalars['String']['input']
|
|
>;
|
|
first?: CustomerAccountAPI.InputMaybe<
|
|
CustomerAccountAPI.Scalars['Int']['input']
|
|
>;
|
|
last?: CustomerAccountAPI.InputMaybe<
|
|
CustomerAccountAPI.Scalars['Int']['input']
|
|
>;
|
|
startCursor?: CustomerAccountAPI.InputMaybe<
|
|
CustomerAccountAPI.Scalars['String']['input']
|
|
>;
|
|
query?: CustomerAccountAPI.InputMaybe<
|
|
CustomerAccountAPI.Scalars['String']['input']
|
|
>;
|
|
language?: CustomerAccountAPI.InputMaybe<CustomerAccountAPI.LanguageCode>;
|
|
}>;
|
|
|
|
export type CustomerOrdersQuery = {
|
|
customer: {
|
|
orders: {
|
|
nodes: Array<
|
|
Pick<
|
|
CustomerAccountAPI.Order,
|
|
| 'financialStatus'
|
|
| 'fulfillmentStatus'
|
|
| 'id'
|
|
| 'number'
|
|
| 'confirmationNumber'
|
|
| 'processedAt'
|
|
> & {
|
|
totalPrice: Pick<
|
|
CustomerAccountAPI.MoneyV2,
|
|
'amount' | 'currencyCode'
|
|
>;
|
|
fulfillments: {
|
|
nodes: Array<Pick<CustomerAccountAPI.Fulfillment, 'status'>>;
|
|
};
|
|
}
|
|
>;
|
|
pageInfo: Pick<
|
|
CustomerAccountAPI.PageInfo,
|
|
'hasPreviousPage' | 'hasNextPage' | 'endCursor' | 'startCursor'
|
|
>;
|
|
};
|
|
};
|
|
};
|
|
|
|
export type CustomerUpdateMutationVariables = CustomerAccountAPI.Exact<{
|
|
customer: CustomerAccountAPI.CustomerUpdateInput;
|
|
language?: CustomerAccountAPI.InputMaybe<CustomerAccountAPI.LanguageCode>;
|
|
}>;
|
|
|
|
export type CustomerUpdateMutation = {
|
|
customerUpdate?: CustomerAccountAPI.Maybe<{
|
|
customer?: CustomerAccountAPI.Maybe<
|
|
Pick<CustomerAccountAPI.Customer, 'firstName' | 'lastName'> & {
|
|
emailAddress?: CustomerAccountAPI.Maybe<
|
|
Pick<CustomerAccountAPI.CustomerEmailAddress, 'emailAddress'>
|
|
>;
|
|
phoneNumber?: CustomerAccountAPI.Maybe<
|
|
Pick<CustomerAccountAPI.CustomerPhoneNumber, 'phoneNumber'>
|
|
>;
|
|
}
|
|
>;
|
|
userErrors: Array<
|
|
Pick<
|
|
CustomerAccountAPI.UserErrorsCustomerUserErrors,
|
|
'code' | 'field' | 'message'
|
|
>
|
|
>;
|
|
}>;
|
|
};
|
|
|
|
export type CustomerWishlistReadQueryVariables = CustomerAccountAPI.Exact<{
|
|
language?: CustomerAccountAPI.InputMaybe<CustomerAccountAPI.LanguageCode>;
|
|
}>;
|
|
|
|
export type CustomerWishlistReadQuery = {
|
|
customer: Pick<CustomerAccountAPI.Customer, 'id'> & {
|
|
metafield?: CustomerAccountAPI.Maybe<
|
|
Pick<CustomerAccountAPI.Metafield, 'value' | 'compareDigest'>
|
|
>;
|
|
};
|
|
};
|
|
|
|
export type WishlistMetafieldSetMutationVariables = CustomerAccountAPI.Exact<{
|
|
language?: CustomerAccountAPI.InputMaybe<CustomerAccountAPI.LanguageCode>;
|
|
metafields:
|
|
| Array<CustomerAccountAPI.MetafieldsSetInput>
|
|
| CustomerAccountAPI.MetafieldsSetInput;
|
|
}>;
|
|
|
|
export type WishlistMetafieldSetMutation = {
|
|
metafieldsSet?: CustomerAccountAPI.Maybe<{
|
|
metafields?: CustomerAccountAPI.Maybe<
|
|
Array<Pick<CustomerAccountAPI.Metafield, 'id'>>
|
|
>;
|
|
userErrors: Array<
|
|
Pick<
|
|
CustomerAccountAPI.MetafieldsSetUserError,
|
|
'code' | 'field' | 'message'
|
|
>
|
|
>;
|
|
}>;
|
|
};
|
|
|
|
interface GeneratedQueryTypes {
|
|
'#graphql\n query AccountOverview($language: LanguageCode)\n @inContext(language: $language) {\n customer {\n creationDate\n orders(first: 100, sortKey: PROCESSED_AT, reverse: true) {\n pageInfo {\n hasNextPage\n }\n nodes {\n ...AccountOverviewOrder\n }\n }\n }\n }\n #graphql\n fragment AccountOverviewMoney on MoneyV2 {\n amount\n currencyCode\n }\n\n #graphql\n fragment AccountOverviewLine on LineItem {\n title\n quantity\n price {\n ...AccountOverviewMoney\n }\n }\n\n #graphql\n fragment AccountOverviewOrder on Order {\n id\n name\n confirmationNumber\n processedAt\n fulfillmentStatus\n totalPrice {\n ...AccountOverviewMoney\n }\n lineItems(first: 6) {\n nodes {\n ...AccountOverviewLine\n }\n }\n }\n\n': {
|
|
return: AccountOverviewQuery;
|
|
variables: AccountOverviewQueryVariables;
|
|
};
|
|
'#graphql\n query CustomerDetails($language: LanguageCode) @inContext(language: $language) {\n customer {\n ...Customer\n }\n }\n #graphql\n fragment Customer on Customer {\n id\n firstName\n lastName\n emailAddress {\n emailAddress\n }\n defaultAddress {\n ...Address\n }\n addresses(first: 6) {\n nodes {\n ...Address\n }\n }\n }\n fragment Address on CustomerAddress {\n id\n formatted\n firstName\n lastName\n company\n address1\n address2\n territoryCode\n zoneCode\n city\n zip\n phoneNumber\n }\n\n': {
|
|
return: CustomerDetailsQuery;
|
|
variables: CustomerDetailsQueryVariables;
|
|
};
|
|
'#graphql\n fragment OrderMoney on MoneyV2 {\n amount\n currencyCode\n }\n fragment DiscountApplication on DiscountApplication {\n value {\n __typename\n ... on MoneyV2 {\n ...OrderMoney\n }\n ... on PricingPercentageValue {\n percentage\n }\n }\n }\n fragment OrderLineItemFull on LineItem {\n id\n title\n quantity\n price {\n ...OrderMoney\n }\n discountAllocations {\n allocatedAmount {\n ...OrderMoney\n }\n discountApplication {\n ...DiscountApplication\n }\n }\n totalDiscount {\n ...OrderMoney\n }\n image {\n altText\n height\n url\n id\n width\n }\n variantTitle\n }\n fragment Order on Order {\n id\n name\n confirmationNumber\n statusPageUrl\n fulfillmentStatus\n processedAt\n fulfillments(first: 1) {\n nodes {\n status\n }\n }\n totalTax {\n ...OrderMoney\n }\n totalPrice {\n ...OrderMoney\n }\n subtotal {\n ...OrderMoney\n }\n shippingAddress {\n name\n formatted(withName: true)\n formattedArea\n }\n discountApplications(first: 100) {\n nodes {\n ...DiscountApplication\n }\n }\n lineItems(first: 100) {\n nodes {\n ...OrderLineItemFull\n }\n }\n }\n query Order($orderId: ID!, $language: LanguageCode)\n @inContext(language: $language) {\n order(id: $orderId) {\n ... on Order {\n ...Order\n }\n }\n }\n': {
|
|
return: OrderQuery;
|
|
variables: OrderQueryVariables;
|
|
};
|
|
'#graphql\n #graphql\n fragment CustomerOrders on Customer {\n orders(\n sortKey: PROCESSED_AT,\n reverse: true,\n first: $first,\n last: $last,\n before: $startCursor,\n after: $endCursor,\n query: $query\n ) {\n nodes {\n ...OrderItem\n }\n pageInfo {\n hasPreviousPage\n hasNextPage\n endCursor\n startCursor\n }\n }\n }\n #graphql\n fragment OrderItem on Order {\n totalPrice {\n amount\n currencyCode\n }\n financialStatus\n fulfillmentStatus\n fulfillments(first: 1) {\n nodes {\n status\n }\n }\n id\n number\n confirmationNumber\n processedAt\n }\n\n\n query CustomerOrders(\n $endCursor: String\n $first: Int\n $last: Int\n $startCursor: String\n $query: String\n $language: LanguageCode\n ) @inContext(language: $language) {\n customer {\n ...CustomerOrders\n }\n }\n': {
|
|
return: CustomerOrdersQuery;
|
|
variables: CustomerOrdersQueryVariables;
|
|
};
|
|
'#graphql\n query CustomerWishlistRead($language: LanguageCode) @inContext(language: $language) {\n customer {\n id\n metafield(namespace: "custom", key: "abiir_wishlist") {\n value\n compareDigest\n }\n }\n }\n': {
|
|
return: CustomerWishlistReadQuery;
|
|
variables: CustomerWishlistReadQueryVariables;
|
|
};
|
|
}
|
|
|
|
interface GeneratedMutationTypes {
|
|
'#graphql\n mutation customerAddressUpdate(\n $address: CustomerAddressInput!\n $addressId: ID!\n $defaultAddress: Boolean\n $language: LanguageCode\n ) @inContext(language: $language) {\n customerAddressUpdate(\n address: $address\n addressId: $addressId\n defaultAddress: $defaultAddress\n ) {\n customerAddress {\n id\n }\n userErrors {\n code\n field\n message\n }\n }\n }\n': {
|
|
return: CustomerAddressUpdateMutation;
|
|
variables: CustomerAddressUpdateMutationVariables;
|
|
};
|
|
'#graphql\n mutation customerAddressDelete(\n $addressId: ID!\n $language: LanguageCode\n ) @inContext(language: $language) {\n customerAddressDelete(addressId: $addressId) {\n deletedAddressId\n userErrors {\n code\n field\n message\n }\n }\n }\n': {
|
|
return: CustomerAddressDeleteMutation;
|
|
variables: CustomerAddressDeleteMutationVariables;
|
|
};
|
|
'#graphql\n mutation customerAddressCreate(\n $address: CustomerAddressInput!\n $defaultAddress: Boolean\n $language: LanguageCode\n ) @inContext(language: $language) {\n customerAddressCreate(\n address: $address\n defaultAddress: $defaultAddress\n ) {\n customerAddress {\n id\n }\n userErrors {\n code\n field\n message\n }\n }\n }\n': {
|
|
return: CustomerAddressCreateMutation;
|
|
variables: CustomerAddressCreateMutationVariables;
|
|
};
|
|
'#graphql\n mutation customerUpdate(\n $customer: CustomerUpdateInput!\n $language: LanguageCode\n ) @inContext(language: $language) {\n customerUpdate(input: $customer) {\n customer {\n firstName\n lastName\n emailAddress {\n emailAddress\n }\n phoneNumber {\n phoneNumber\n }\n }\n userErrors {\n code\n field\n message\n }\n }\n }\n': {
|
|
return: CustomerUpdateMutation;
|
|
variables: CustomerUpdateMutationVariables;
|
|
};
|
|
'#graphql\n mutation WishlistMetafieldSet(\n $language: LanguageCode\n $metafields: [MetafieldsSetInput!]!\n ) @inContext(language: $language) {\n metafieldsSet(metafields: $metafields) {\n metafields {\n id\n }\n userErrors {\n code\n field\n message\n }\n }\n }\n': {
|
|
return: WishlistMetafieldSetMutation;
|
|
variables: WishlistMetafieldSetMutationVariables;
|
|
};
|
|
}
|
|
|
|
declare module '@shopify/hydrogen' {
|
|
interface CustomerAccountQueries extends GeneratedQueryTypes {}
|
|
interface CustomerAccountMutations extends GeneratedMutationTypes {}
|
|
}
|