diff --git a/packages/api/src/__generated__/schema.ts b/packages/api/src/__generated__/schema.ts index 48e7356649..d65444fefd 100644 --- a/packages/api/src/__generated__/schema.ts +++ b/packages/api/src/__generated__/schema.ts @@ -698,7 +698,7 @@ export type StoreCart = { __typename?: 'StoreCart'; /** List of shopping cart messages. */ messages: Array; - /** Order information, including `orderNumber` and `acceptedOffer`. */ + /** Order information, including `orderNumber`, `acceptedOffer` and `shouldSplitItem`. */ order: StoreOrder; }; @@ -928,6 +928,8 @@ export type StoreOrder = { acceptedOffer: Array; /** ID of the order in [VTEX order management](https://help.vtex.com/en/tutorial/license-manager-resources-oms--60QcBsvWeum02cFi3GjBzg#). */ orderNumber: Scalars['String']; + /** Indicates whether or not items with attachments should be split. */ + shouldSplitItem?: Maybe; }; /** Organization. */ diff --git a/packages/api/src/typeDefs/cart.graphql b/packages/api/src/typeDefs/cart.graphql index 9067b0bdd0..79e4a5fcde 100644 --- a/packages/api/src/typeDefs/cart.graphql +++ b/packages/api/src/typeDefs/cart.graphql @@ -17,7 +17,7 @@ Shopping cart information. """ type StoreCart { """ - Order information, including `orderNumber` and `acceptedOffer`. + Order information, including `orderNumber`, `acceptedOffer` and `shouldSplitItem`. """ order: StoreOrder! """ diff --git a/packages/api/src/typeDefs/order.graphql b/packages/api/src/typeDefs/order.graphql index f9ef7b928e..88d29520c1 100644 --- a/packages/api/src/typeDefs/order.graphql +++ b/packages/api/src/typeDefs/order.graphql @@ -10,6 +10,10 @@ type StoreOrder { Array with information on each accepted offer. """ acceptedOffer: [StoreOffer!]! + """ + Indicates whether or not items with attachments should be split. + """ + shouldSplitItem: Boolean } """ diff --git a/packages/core/@generated/gql.ts b/packages/core/@generated/gql.ts index acc84a5177..f499ff8e2c 100644 --- a/packages/core/@generated/gql.ts +++ b/packages/core/@generated/gql.ts @@ -38,7 +38,7 @@ const documents = { types.ServerCollectionPageQueryDocument, '\n query ServerProductQuery($locator: [IStoreSelectedFacet!]!) {\n ...ServerProduct\n product(locator: $locator) {\n id: productID\n\n seo {\n title\n description\n canonical\n }\n\n brand {\n name\n }\n\n sku\n gtin\n name\n description\n releaseDate\n\n breadcrumbList {\n itemListElement {\n item\n name\n position\n }\n }\n\n image {\n url\n alternateName\n }\n\n offers {\n lowPrice\n highPrice\n lowPriceWithTaxes\n priceCurrency\n offers {\n availability\n price\n priceValidUntil\n priceCurrency\n itemCondition\n seller {\n identifier\n }\n }\n }\n\n isVariantOf {\n productGroupID\n }\n\n ...ProductDetailsFragment_product\n }\n }\n': types.ServerProductQueryDocument, - '\n mutation ValidateCartMutation($cart: IStoreCart!, $session: IStoreSession!) {\n validateCart(cart: $cart, session: $session) {\n order {\n orderNumber\n acceptedOffer {\n ...CartItem\n }\n }\n messages {\n ...CartMessage\n }\n }\n }\n\n fragment CartMessage on StoreCartMessage {\n text\n status\n }\n\n fragment CartItem on StoreOffer {\n seller {\n identifier\n }\n quantity\n price\n priceWithTaxes\n listPrice\n listPriceWithTaxes\n itemOffered {\n ...CartProductItem\n }\n }\n\n fragment CartProductItem on StoreProduct {\n sku\n name\n unitMultiplier\n image {\n url\n alternateName\n }\n brand {\n name\n }\n isVariantOf {\n productGroupID\n name\n skuVariants {\n activeVariations\n slugsMap\n availableVariations\n }\n }\n gtin\n additionalProperty {\n propertyID\n name\n value\n valueReference\n }\n }\n': + '\n mutation ValidateCartMutation($cart: IStoreCart!, $session: IStoreSession!) {\n validateCart(cart: $cart, session: $session) {\n order {\n orderNumber\n acceptedOffer {\n ...CartItem\n }\n shouldSplitItem\n }\n messages {\n ...CartMessage\n }\n }\n }\n\n fragment CartMessage on StoreCartMessage {\n text\n status\n }\n\n fragment CartItem on StoreOffer {\n seller {\n identifier\n }\n quantity\n price\n priceWithTaxes\n listPrice\n listPriceWithTaxes\n itemOffered {\n ...CartProductItem\n }\n }\n\n fragment CartProductItem on StoreProduct {\n sku\n name\n unitMultiplier\n image {\n url\n alternateName\n }\n brand {\n name\n }\n isVariantOf {\n productGroupID\n name\n skuVariants {\n activeVariations\n slugsMap\n availableVariations\n }\n }\n gtin\n additionalProperty {\n propertyID\n name\n value\n valueReference\n }\n }\n': types.ValidateCartMutationDocument, '\n mutation SubscribeToNewsletter($data: IPersonNewsletter!) {\n subscribeToNewsletter(data: $data) {\n id\n }\n }\n': types.SubscribeToNewsletterDocument, @@ -140,7 +140,7 @@ export function gql( * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql( - source: '\n mutation ValidateCartMutation($cart: IStoreCart!, $session: IStoreSession!) {\n validateCart(cart: $cart, session: $session) {\n order {\n orderNumber\n acceptedOffer {\n ...CartItem\n }\n }\n messages {\n ...CartMessage\n }\n }\n }\n\n fragment CartMessage on StoreCartMessage {\n text\n status\n }\n\n fragment CartItem on StoreOffer {\n seller {\n identifier\n }\n quantity\n price\n priceWithTaxes\n listPrice\n listPriceWithTaxes\n itemOffered {\n ...CartProductItem\n }\n }\n\n fragment CartProductItem on StoreProduct {\n sku\n name\n unitMultiplier\n image {\n url\n alternateName\n }\n brand {\n name\n }\n isVariantOf {\n productGroupID\n name\n skuVariants {\n activeVariations\n slugsMap\n availableVariations\n }\n }\n gtin\n additionalProperty {\n propertyID\n name\n value\n valueReference\n }\n }\n' + source: '\n mutation ValidateCartMutation($cart: IStoreCart!, $session: IStoreSession!) {\n validateCart(cart: $cart, session: $session) {\n order {\n orderNumber\n acceptedOffer {\n ...CartItem\n }\n shouldSplitItem\n }\n messages {\n ...CartMessage\n }\n }\n }\n\n fragment CartMessage on StoreCartMessage {\n text\n status\n }\n\n fragment CartItem on StoreOffer {\n seller {\n identifier\n }\n quantity\n price\n priceWithTaxes\n listPrice\n listPriceWithTaxes\n itemOffered {\n ...CartProductItem\n }\n }\n\n fragment CartProductItem on StoreProduct {\n sku\n name\n unitMultiplier\n image {\n url\n alternateName\n }\n brand {\n name\n }\n isVariantOf {\n productGroupID\n name\n skuVariants {\n activeVariations\n slugsMap\n availableVariations\n }\n }\n gtin\n additionalProperty {\n propertyID\n name\n value\n valueReference\n }\n }\n' ): typeof import('./graphql').ValidateCartMutationDocument /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. diff --git a/packages/core/@generated/graphql.ts b/packages/core/@generated/graphql.ts index feeba2639b..b2c736af6e 100644 --- a/packages/core/@generated/graphql.ts +++ b/packages/core/@generated/graphql.ts @@ -677,7 +677,7 @@ export type StoreBreadcrumbList = { export type StoreCart = { /** List of shopping cart messages. */ messages: Array - /** Order information, including `orderNumber` and `acceptedOffer`. */ + /** Order information, including `orderNumber`, `acceptedOffer` and `shouldSplitItem`. */ order: StoreOrder } @@ -887,6 +887,8 @@ export type StoreOrder = { acceptedOffer: Array /** ID of the order in [VTEX order management](https://help.vtex.com/en/tutorial/license-manager-resources-oms--60QcBsvWeum02cFi3GjBzg#). */ orderNumber: Scalars['String']['output'] + /** Indicates whether or not items with attachments should be split. */ + shouldSplitItem: Maybe } /** Organization. */ @@ -1320,6 +1322,7 @@ export type ValidateCartMutationMutation = { validateCart: { order: { orderNumber: string + shouldSplitItem: boolean | null acceptedOffer: Array<{ quantity: number price: number @@ -2069,7 +2072,7 @@ export const ServerProductQueryDocument = { export const ValidateCartMutationDocument = { __meta__: { operationName: 'ValidateCartMutation', - operationHash: '324471076994dca94a47adcaf1c6b8f7896e1b4f', + operationHash: 'c2b3f8bff73ebf6ac79d758c66cabbc21ba9fcc0', }, } as unknown as TypedDocumentString< ValidateCartMutationMutation,