mirror of
https://github.com/vercel/commerce.git
synced 2025-07-26 19:51:23 +00:00
✨ feat: setCustomerForOrder
:%s
This commit is contained in:
485
framework/vendure/schema.d.ts
vendored
485
framework/vendure/schema.d.ts
vendored
@@ -306,9 +306,52 @@ export type MutationResetPasswordArgs = {
|
||||
password: Scalars['String']
|
||||
}
|
||||
|
||||
export type ActiveOrderCustomerFragment = Pick<Order, 'id'> & {
|
||||
customer?: Maybe<Pick<Customer, 'id' | 'emailAddress' | 'firstName' | 'lastName'>>;
|
||||
lines: Array<Pick<OrderLine, 'id'>>;
|
||||
};
|
||||
|
||||
export type SetCustomerForOrderMutationVariables = Exact<{
|
||||
input: CreateCustomerInput;
|
||||
}>;
|
||||
|
||||
export type SetCustomerForOrderMutation = { __typename?: 'Mutation' } & {
|
||||
setCustomerForOrder:
|
||||
| ({ __typename: 'ActiveOrderCustomerFragment' } & Pick<ActiveOrderCustomerFragment, 'customer', 'lines'>)
|
||||
| ({ __typename: 'AlreadyLoggedInError' } & Pick<
|
||||
AlreadyLoggedInError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'EmailAddressConflictError' } & Pick<
|
||||
EmailAddressConflictError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'NoActiveOrderError' } & Pick<
|
||||
NoActiveOrderError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
}
|
||||
|
||||
export type SetCustomerForOrderMutation = { __typename?: 'Mutation' } & {
|
||||
setCustomerForOrder:
|
||||
| ({ __typename: 'ActiveOrderCustomerFragment' } & Pick<ActiveOrderCustomerFragment, 'customer', 'lines'>)
|
||||
| ({ __typename: 'AlreadyLoggedInError' } & Pick<
|
||||
AlreadyLoggedInError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'EmailAddressConflictError' } & Pick<
|
||||
EmailAddressConflictError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'NoActiveOrderError' } & Pick<
|
||||
NoActiveOrderError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
}
|
||||
|
||||
export type Address = Node & {
|
||||
updateCustomerAddress:
|
||||
| {
|
||||
| {
|
||||
__typename?: 'Address'
|
||||
id: Scalars['ID']
|
||||
}
|
||||
@@ -1471,7 +1514,7 @@ export type CustomerListOptions = {
|
||||
|
||||
export type Customer = Node & {
|
||||
updateCustomer:
|
||||
| {
|
||||
| {
|
||||
__typename?: 'Customer'
|
||||
id: Scalars['ID']
|
||||
}
|
||||
@@ -1482,7 +1525,7 @@ export type Customer = Node & {
|
||||
title?: Maybe<Scalars['String']>
|
||||
firstName: Scalars['String']
|
||||
lastName: Scalars['String']
|
||||
phoneNumber?: Maybe<Scalars['String']>
|
||||
phoneNumber?: Maybe<Scalars['String']>
|
||||
emailAddress: Scalars['String']
|
||||
addresses?: Maybe<Array<Address>>
|
||||
orders: OrderList
|
||||
@@ -3017,56 +3060,56 @@ export type CartFragment = { __typename?: 'Order' } & Pick<
|
||||
| 'totalWithTax'
|
||||
| 'currencyCode'
|
||||
> & {
|
||||
customer?: Maybe<{ __typename?: 'Customer' } & Pick<Customer, 'id'>>
|
||||
lines: Array<
|
||||
{ __typename?: 'OrderLine' } & Pick<
|
||||
OrderLine,
|
||||
customer?: Maybe<{ __typename?: 'Customer' } & Pick<Customer, 'id'>>
|
||||
lines: Array<
|
||||
{ __typename?: 'OrderLine' } & Pick<
|
||||
OrderLine,
|
||||
| 'id'
|
||||
| 'quantity'
|
||||
| 'linePriceWithTax'
|
||||
| 'discountedLinePriceWithTax'
|
||||
| 'unitPriceWithTax'
|
||||
| 'discountedUnitPriceWithTax'
|
||||
> & {
|
||||
featuredAsset?: Maybe<
|
||||
{ __typename?: 'Asset' } & Pick<Asset, 'id' | 'preview'>
|
||||
>
|
||||
discounts: Array<
|
||||
{ __typename?: 'Discount' } & Pick<
|
||||
Discount,
|
||||
'description' | 'amount'
|
||||
>
|
||||
>
|
||||
productVariant: { __typename?: 'ProductVariant' } & Pick<
|
||||
ProductVariant,
|
||||
| 'id'
|
||||
| 'quantity'
|
||||
| 'linePriceWithTax'
|
||||
| 'discountedLinePriceWithTax'
|
||||
| 'unitPriceWithTax'
|
||||
| 'discountedUnitPriceWithTax'
|
||||
> & {
|
||||
featuredAsset?: Maybe<
|
||||
{ __typename?: 'Asset' } & Pick<Asset, 'id' | 'preview'>
|
||||
>
|
||||
discounts: Array<
|
||||
{ __typename?: 'Discount' } & Pick<
|
||||
Discount,
|
||||
'description' | 'amount'
|
||||
>
|
||||
>
|
||||
productVariant: { __typename?: 'ProductVariant' } & Pick<
|
||||
ProductVariant,
|
||||
| 'id'
|
||||
| 'name'
|
||||
| 'sku'
|
||||
| 'price'
|
||||
| 'priceWithTax'
|
||||
| 'stockLevel'
|
||||
| 'productId'
|
||||
> & { product: { __typename?: 'Product' } & Pick<Product, 'slug'> }
|
||||
}
|
||||
>
|
||||
}
|
||||
| 'name'
|
||||
| 'sku'
|
||||
| 'price'
|
||||
| 'priceWithTax'
|
||||
| 'stockLevel'
|
||||
| 'productId'
|
||||
> & { product: { __typename?: 'Product' } & Pick<Product, 'slug'> }
|
||||
}
|
||||
>
|
||||
}
|
||||
|
||||
export type SearchResultFragment = { __typename?: 'SearchResult' } & Pick<
|
||||
SearchResult,
|
||||
'productId' | 'sku' | 'productName' | 'description' | 'slug' | 'sku' | 'currencyCode'
|
||||
| 'productAsset' | 'price' | 'priceWithTax' | 'currencyCode'
|
||||
| 'productAsset' | 'price' | 'priceWithTax' | 'currencyCode'
|
||||
| 'collectionIds' | 'productVariantId' | 'facetValueIds' | "productVariantName"
|
||||
> & {
|
||||
productAsset?: Maybe<
|
||||
{ __typename?: 'SearchResultAsset' } & Pick<
|
||||
SearchResultAsset,
|
||||
'id' | 'preview'
|
||||
>
|
||||
productAsset?: Maybe<
|
||||
{ __typename?: 'SearchResultAsset' } & Pick<
|
||||
SearchResultAsset,
|
||||
'id' | 'preview'
|
||||
>
|
||||
priceWithTax:
|
||||
| ({ __typename?: 'PriceRange' } & Pick<PriceRange, 'min' | 'max'>)
|
||||
| ({ __typename?: 'SinglePrice' } & Pick<SinglePrice, 'value'>)
|
||||
}
|
||||
>
|
||||
priceWithTax:
|
||||
| ({ __typename?: 'PriceRange' } & Pick<PriceRange, 'min' | 'max'>)
|
||||
| ({ __typename?: 'SinglePrice' } & Pick<SinglePrice, 'value'>)
|
||||
}
|
||||
|
||||
export type AddItemToOrderMutationVariables = Exact<{
|
||||
variantId: Scalars['ID']
|
||||
@@ -3075,23 +3118,23 @@ export type AddItemToOrderMutationVariables = Exact<{
|
||||
|
||||
export type AddItemToOrderMutation = { __typename?: 'Mutation' } & {
|
||||
addItemToOrder:
|
||||
| ({ __typename: 'Order' } & CartFragment)
|
||||
| ({ __typename: 'OrderModificationError' } & Pick<
|
||||
OrderModificationError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'OrderLimitError' } & Pick<
|
||||
OrderLimitError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'NegativeQuantityError' } & Pick<
|
||||
NegativeQuantityError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'InsufficientStockError' } & Pick<
|
||||
InsufficientStockError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'Order' } & CartFragment)
|
||||
| ({ __typename: 'OrderModificationError' } & Pick<
|
||||
OrderModificationError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'OrderLimitError' } & Pick<
|
||||
OrderLimitError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'NegativeQuantityError' } & Pick<
|
||||
NegativeQuantityError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'InsufficientStockError' } & Pick<
|
||||
InsufficientStockError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
}
|
||||
|
||||
export type AdjustOrderLineMutationVariables = Exact<{
|
||||
@@ -3101,23 +3144,23 @@ export type AdjustOrderLineMutationVariables = Exact<{
|
||||
|
||||
export type AdjustOrderLineMutation = { __typename?: 'Mutation' } & {
|
||||
adjustOrderLine:
|
||||
| ({ __typename: 'Order' } & CartFragment)
|
||||
| ({ __typename: 'OrderModificationError' } & Pick<
|
||||
OrderModificationError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'OrderLimitError' } & Pick<
|
||||
OrderLimitError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'NegativeQuantityError' } & Pick<
|
||||
NegativeQuantityError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'InsufficientStockError' } & Pick<
|
||||
InsufficientStockError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'Order' } & CartFragment)
|
||||
| ({ __typename: 'OrderModificationError' } & Pick<
|
||||
OrderModificationError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'OrderLimitError' } & Pick<
|
||||
OrderLimitError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'NegativeQuantityError' } & Pick<
|
||||
NegativeQuantityError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'InsufficientStockError' } & Pick<
|
||||
InsufficientStockError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
}
|
||||
|
||||
export type LoginMutationVariables = Exact<{
|
||||
@@ -3127,49 +3170,49 @@ export type LoginMutationVariables = Exact<{
|
||||
|
||||
export type LoginMutation = { __typename?: 'Mutation' } & {
|
||||
login:
|
||||
| ({ __typename: 'CurrentUser' } & Pick<CurrentUser, 'id'>)
|
||||
| ({ __typename: 'InvalidCredentialsError' } & Pick<
|
||||
InvalidCredentialsError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'NotVerifiedError' } & Pick<
|
||||
NotVerifiedError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'NativeAuthStrategyError' } & Pick<
|
||||
NativeAuthStrategyError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'CurrentUser' } & Pick<CurrentUser, 'id'>)
|
||||
| ({ __typename: 'InvalidCredentialsError' } & Pick<
|
||||
InvalidCredentialsError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'NotVerifiedError' } & Pick<
|
||||
NotVerifiedError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'NativeAuthStrategyError' } & Pick<
|
||||
NativeAuthStrategyError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
}
|
||||
|
||||
export type ResetPasswordMutation = { __typename?: 'Mutation' } & {
|
||||
resetPassword:
|
||||
| ({ __typename: 'CurrentUser' } & Pick<CurrentUser, 'id'>)
|
||||
| ({ __typename: 'PasswordResetTokenInvalidError' } & Pick<
|
||||
PasswordResetTokenInvalidError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'PasswordResetTokenExpiredError' } & Pick<
|
||||
PasswordResetTokenExpiredError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'NativeAuthStrategyError' } & Pick<
|
||||
NativeAuthStrategyError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'CurrentUser' } & Pick<CurrentUser, 'id'>)
|
||||
| ({ __typename: 'PasswordResetTokenInvalidError' } & Pick<
|
||||
PasswordResetTokenInvalidError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'PasswordResetTokenExpiredError' } & Pick<
|
||||
PasswordResetTokenExpiredError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'NativeAuthStrategyError' } & Pick<
|
||||
NativeAuthStrategyError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
}
|
||||
|
||||
export type SignupMutation = { __typename?: 'Mutation' } & {
|
||||
registerCustomerAccount:
|
||||
| ({ __typename: 'Success' } & Pick<Success, 'success'>)
|
||||
| ({ __typename: 'MissingPasswordError' } & Pick<
|
||||
MissingPasswordError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'NativeAuthStrategyError' } & Pick<
|
||||
NativeAuthStrategyError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'Success' } & Pick<Success, 'success'>)
|
||||
| ({ __typename: 'MissingPasswordError' } & Pick<
|
||||
MissingPasswordError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'NativeAuthStrategyError' } & Pick<
|
||||
NativeAuthStrategyError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
}
|
||||
|
||||
export type VerifyCustomerAccountVariables = Exact<{
|
||||
@@ -3179,27 +3222,27 @@ export type VerifyCustomerAccountVariables = Exact<{
|
||||
|
||||
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'
|
||||
>)
|
||||
| ({ __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 }>
|
||||
@@ -3214,11 +3257,11 @@ export type RemoveOrderLineMutationVariables = Exact<{
|
||||
|
||||
export type RemoveOrderLineMutation = { __typename?: 'Mutation' } & {
|
||||
removeOrderLine:
|
||||
| ({ __typename: 'Order' } & CartFragment)
|
||||
| ({ __typename: 'OrderModificationError' } & Pick<
|
||||
OrderModificationError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'Order' } & CartFragment)
|
||||
| ({ __typename: 'OrderModificationError' } & Pick<
|
||||
OrderModificationError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
}
|
||||
|
||||
export type SignupMutationVariables = Exact<{
|
||||
@@ -3228,15 +3271,15 @@ export type SignupMutationVariables = Exact<{
|
||||
|
||||
export type RequestPasswordReset = { __typename?: 'Mutation' } & {
|
||||
requestPasswordReset:
|
||||
| ({ __typename: 'Success' } & Pick<Success, 'success'>)
|
||||
| ({ __typename: 'MissingPasswordError' } & Pick<
|
||||
MissingPasswordError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'NativeAuthStrategyError' } & Pick<
|
||||
NativeAuthStrategyError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'Success' } & Pick<Success, 'success'>)
|
||||
| ({ __typename: 'MissingPasswordError' } & Pick<
|
||||
MissingPasswordError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
| ({ __typename: 'NativeAuthStrategyError' } & Pick<
|
||||
NativeAuthStrategyError,
|
||||
'errorCode' | 'message'
|
||||
>)
|
||||
}
|
||||
|
||||
|
||||
@@ -3248,7 +3291,7 @@ export type ActiveCustomerQuery = { __typename?: 'Query' } & {
|
||||
{ __typename?: 'Customer' } & Pick<
|
||||
Customer,
|
||||
Favorite,
|
||||
'id' | 'firstName' | 'lastName' | 'emailAddress' | 'addresses' | 'phoneNumber'| 'orders'
|
||||
'id' | 'firstName' | 'lastName' | 'emailAddress' | 'addresses' | 'phoneNumber' | 'orders'
|
||||
>
|
||||
>
|
||||
}
|
||||
@@ -3267,7 +3310,7 @@ export type FavoriteList = PaginatedList & {
|
||||
totalItems: Int!
|
||||
}
|
||||
|
||||
type Favorite = Node & {
|
||||
type Favorite = Node & {
|
||||
id: ID!
|
||||
createdAt: DateTime!
|
||||
updatedAt: DateTime!
|
||||
@@ -3277,7 +3320,7 @@ type Favorite = Node & {
|
||||
|
||||
|
||||
|
||||
type FavouriteOption = Customer & {
|
||||
type FavouriteOption = Customer & {
|
||||
favorites(options: FavoriteListOptions): FavoriteList!
|
||||
}
|
||||
|
||||
@@ -3308,13 +3351,13 @@ export type GetAllFacetsQuery = { __typename?: 'Query' } & {
|
||||
{ __typename?: 'Facet' } & Pick<
|
||||
Facet,
|
||||
'id' | 'name' | 'code' | 'values'
|
||||
>
|
||||
>
|
||||
& {
|
||||
parent?: Maybe<{ __typename?: 'Facet' } & Pick<Facet, 'id'>>
|
||||
children?: Maybe<
|
||||
Array<{ __typename?: 'Facet' } & Pick<Facet, 'id'>>
|
||||
>
|
||||
}
|
||||
parent?: Maybe<{ __typename?: 'Facet' } & Pick<Facet, 'id'>>
|
||||
children?: Maybe<
|
||||
Array<{ __typename?: 'Facet' } & Pick<Facet, 'id'>>
|
||||
>
|
||||
}
|
||||
>,
|
||||
'totalItems'
|
||||
}
|
||||
@@ -3327,11 +3370,11 @@ export type GetAllCollectionsQuery = { __typename?: 'Query' } & {
|
||||
Collection,
|
||||
'id' | 'name' | 'slug'
|
||||
> & {
|
||||
parent?: Maybe<{ __typename?: 'Collection' } & Pick<Collection, 'id'>>
|
||||
children?: Maybe<
|
||||
Array<{ __typename?: 'Collection' } & Pick<Collection, 'id'>>
|
||||
>
|
||||
}
|
||||
parent?: Maybe<{ __typename?: 'Collection' } & Pick<Collection, 'id'>>
|
||||
children?: Maybe<
|
||||
Array<{ __typename?: 'Collection' } & Pick<Collection, 'id'>>
|
||||
>
|
||||
}
|
||||
>,
|
||||
'totalItems'
|
||||
}
|
||||
@@ -3352,15 +3395,15 @@ export type GetCollectionsQuery = { __typename?: 'Query' } & {
|
||||
Collection,
|
||||
'id' | 'name' | 'description' | 'slug'
|
||||
> & {
|
||||
productVariants: { __typename?: 'ProductVariantList' } & Pick<
|
||||
ProductVariantList,
|
||||
'totalItems'
|
||||
>
|
||||
parent?: Maybe<{ __typename?: 'Collection' } & Pick<Collection, 'id'>>
|
||||
children?: Maybe<
|
||||
Array<{ __typename?: 'Collection' } & Pick<Collection, 'id'>>
|
||||
>
|
||||
}
|
||||
productVariants: { __typename?: 'ProductVariantList' } & Pick<
|
||||
ProductVariantList,
|
||||
'totalItems'
|
||||
>
|
||||
parent?: Maybe<{ __typename?: 'Collection' } & Pick<Collection, 'id'>>
|
||||
children?: Maybe<
|
||||
Array<{ __typename?: 'Collection' } & Pick<Collection, 'id'>>
|
||||
>
|
||||
}
|
||||
>
|
||||
}
|
||||
}
|
||||
@@ -3375,60 +3418,60 @@ export type GetProductQuery = { __typename?: 'Query' } & {
|
||||
Product,
|
||||
'id' | 'name' | 'slug' | 'description'
|
||||
> & {
|
||||
assets: Array<
|
||||
{ __typename?: 'Asset' } & Pick<Asset, 'id' | 'preview' | 'name'>
|
||||
>
|
||||
variants: Array<
|
||||
{ __typename?: 'ProductVariant' } & Pick<
|
||||
ProductVariant,
|
||||
'id' | 'priceWithTax' | 'currencyCode' | 'price' | "name"
|
||||
> & {
|
||||
options: Array<
|
||||
{ __typename?: 'ProductOption' } & Pick<
|
||||
ProductOption,
|
||||
'id' | 'name' | 'code' | 'groupId'
|
||||
> & {
|
||||
group: { __typename?: 'ProductOptionGroup' } & Pick<
|
||||
ProductOptionGroup,
|
||||
'id'
|
||||
> & {
|
||||
options: Array<
|
||||
{ __typename?: 'ProductOption' } & Pick<
|
||||
ProductOption,
|
||||
'name'
|
||||
>
|
||||
>
|
||||
}
|
||||
}
|
||||
>
|
||||
}
|
||||
>
|
||||
optionGroups: Array<
|
||||
{ __typename?: 'ProductOptionGroup' } & Pick<
|
||||
ProductOptionGroup,
|
||||
'id' | 'code' | 'name'
|
||||
> & {
|
||||
options: Array<
|
||||
{ __typename?: 'ProductOption' } & Pick<
|
||||
ProductOption,
|
||||
'id' | 'name'
|
||||
assets: Array<
|
||||
{ __typename?: 'Asset' } & Pick<Asset, 'id' | 'preview' | 'name'>
|
||||
>
|
||||
variants: Array<
|
||||
{ __typename?: 'ProductVariant' } & Pick<
|
||||
ProductVariant,
|
||||
'id' | 'priceWithTax' | 'currencyCode' | 'price' | "name"
|
||||
> & {
|
||||
options: Array<
|
||||
{ __typename?: 'ProductOption' } & Pick<
|
||||
ProductOption,
|
||||
'id' | 'name' | 'code' | 'groupId'
|
||||
> & {
|
||||
group: { __typename?: 'ProductOptionGroup' } & Pick<
|
||||
ProductOptionGroup,
|
||||
'id'
|
||||
> & {
|
||||
options: Array<
|
||||
{ __typename?: 'ProductOption' } & Pick<
|
||||
ProductOption,
|
||||
'name'
|
||||
>
|
||||
>
|
||||
>
|
||||
}
|
||||
}
|
||||
>
|
||||
facetValues: Array<
|
||||
{ __typename?: 'FacetValue' } & Pick<
|
||||
FacetValue,
|
||||
'id'
|
||||
>
|
||||
>
|
||||
collections: Array<
|
||||
{ __typename?: 'Collection' } & Pick<
|
||||
Collection,
|
||||
'id'|"name"
|
||||
}
|
||||
>
|
||||
optionGroups: Array<
|
||||
{ __typename?: 'ProductOptionGroup' } & Pick<
|
||||
ProductOptionGroup,
|
||||
'id' | 'code' | 'name'
|
||||
> & {
|
||||
options: Array<
|
||||
{ __typename?: 'ProductOption' } & Pick<
|
||||
ProductOption,
|
||||
'id' | 'name'
|
||||
>
|
||||
>
|
||||
}
|
||||
>
|
||||
facetValues: Array<
|
||||
{ __typename?: 'FacetValue' } & Pick<
|
||||
FacetValue,
|
||||
'id'
|
||||
>
|
||||
}
|
||||
>
|
||||
collections: Array<
|
||||
{ __typename?: 'Collection' } & Pick<
|
||||
Collection,
|
||||
'id' | "name"
|
||||
>
|
||||
>
|
||||
}
|
||||
>
|
||||
}
|
||||
|
||||
|
@@ -0,0 +1,24 @@
|
||||
export const setCustomerForOrderMutation = /* GraphQL */ `
|
||||
mutation setCustomerForOrder($input: CreateCustomerInput!) {
|
||||
setCustomerForOrder(input: $input) {
|
||||
__typename
|
||||
... on Order {
|
||||
id
|
||||
createdAt
|
||||
updatedAt
|
||||
code
|
||||
customer {
|
||||
id
|
||||
firstName
|
||||
lastName
|
||||
emailAddress
|
||||
phoneNumber
|
||||
}
|
||||
}
|
||||
... on ErrorResult {
|
||||
errorCode
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
Reference in New Issue
Block a user