/** * Warning: This is an autogenerated file. * * Changes in this file won't take effect and will be overwritten */ // Base Types type Exact = { [K in keyof T]: T[K] } type Maybe = T | null | undefined type Scalars = { Boolean: boolean String: string Float: number Int: number ID: string } // Operation related types export type AddToCartMutationMutationVariables = Exact<{ orderFormId: Maybe items: Maybe> | Maybe> marketingData: Maybe allowedOutdatedData: Maybe | Scalars['String']> salesChannel?: Maybe }> export type AddToCartMutationMutation = { addToCart: { id: string canEditData: boolean loggedIn: boolean userProfileId: Maybe userType: Maybe value: number allowManualPrice: Maybe items: Array<{ isGift: boolean parentAssemblyBinding: Maybe sellingPriceWithAssemblies: Maybe availability: Maybe detailUrl: Maybe id: string listPrice: Maybe manualPrice: Maybe measurementUnit: Maybe name: Maybe price: Maybe productCategories: Maybe productCategoryIds: Maybe productRefId: Maybe productId: Maybe quantity: number seller: Maybe sellingPrice: Maybe skuName: Maybe unitMultiplier: Maybe uniqueId: string refId: Maybe additionalInfo: Maybe<{ brandName: Maybe }> attachments: Array<{ name: Maybe; content: Maybe }> attachmentOfferings: Array<{ name: Maybe required: Maybe schema: Maybe }> bundleItems: Array<{ availability: Maybe detailUrl: Maybe id: string listPrice: Maybe measurementUnit: Maybe name: Maybe price: Maybe productCategories: Maybe productCategoryIds: Maybe productRefId: Maybe productId: Maybe quantity: number seller: Maybe sellingPrice: Maybe skuName: Maybe unitMultiplier: Maybe uniqueId: string refId: Maybe additionalInfo: Maybe<{ brandName: Maybe }> attachments: Array<{ name: Maybe; content: Maybe }> attachmentOfferings: Array<{ name: Maybe required: Maybe schema: Maybe }> imageUrls: Maybe<{ at1x: string; at2x: string; at3x: string }> offerings: Array<{ id: string name: string price: number type: string attachmentOfferings: Array<{ name: Maybe required: Maybe schema: Maybe }> }> skuSpecifications: Array<{ fieldName: Maybe fieldValues: Array> }> }> options: Maybe< Array< Maybe<{ assemblyId: string id: Maybe quantity: Maybe seller: Maybe inputValues: Maybe options: Maybe< Array<{ assemblyId: string id: Maybe quantity: Maybe seller: Maybe inputValues: Maybe options: Maybe< Array<{ assemblyId: string id: Maybe quantity: Maybe seller: Maybe inputValues: Maybe }> > }> > }> > > imageUrls: Maybe<{ at1x: string; at2x: string; at3x: string }> offerings: Array<{ id: string name: string price: number type: string attachmentOfferings: Array<{ name: Maybe required: Maybe schema: Maybe }> }> skuSpecifications: Array<{ fieldName: Maybe fieldValues: Array> }> }> marketingData: { coupon: Maybe utmCampaign: Maybe utmMedium: Maybe utmSource: Maybe utmiCampaign: Maybe utmiPart: Maybe utmiPage: Maybe } totalizers: Array<{ id: string; name: Maybe; value: number }> shipping: { countries: Maybe>> isValid: boolean availableAddresses: Maybe< Array< Maybe<{ addressId: Maybe addressType: Maybe city: Maybe complement: Maybe country: Maybe neighborhood: Maybe number: Maybe postalCode: Maybe receiverName: Maybe reference: Maybe state: Maybe street: Maybe isDisposable: Maybe }> > > selectedAddress: Maybe<{ addressId: Maybe addressType: Maybe city: Maybe complement: Maybe country: Maybe neighborhood: Maybe number: Maybe postalCode: Maybe receiverName: Maybe reference: Maybe state: Maybe street: Maybe isDisposable: Maybe }> deliveryOptions: Array<{ id: string price: number estimate: string isSelected: boolean }> } paymentData: { isValid: boolean paymentSystems: Array<{ id: string name: string groupName: string stringId: string requiresDocument: boolean isCustom: boolean description: Maybe requiresAuthentication: Maybe dueDate: Maybe validator: Maybe<{ regex: Maybe mask: Maybe cardCodeRegex: Maybe cardCodeMask: Maybe weights: Maybe>> useCvv: Maybe useExpirationDate: Maybe useCardHolderName: Maybe useBillingAddress: Maybe }> }> payments: Array<{ paymentSystem: Maybe bin: Maybe accountId: Maybe tokenId: Maybe installments: Maybe referenceValue: Maybe value: Maybe }> installmentOptions: Array<{ paymentSystem: string installments: Array<{ count: number hasInterestRate: Maybe interestRate: Maybe value: Maybe total: number }> }> availableAccounts: Array<{ accountId: string paymentSystem: string paymentSystemName: string cardNumber: string bin: string }> } clientProfileData: Maybe<{ email: Maybe firstName: Maybe lastName: Maybe document: Maybe documentType: Maybe phone: Maybe isValid: boolean }> clientPreferencesData: Maybe<{ locale: Maybe optInNewsletter: Maybe }> messages: { couponMessages: Array<{ code: Maybe }> generalMessages: Array<{ code: Maybe text: Maybe status: Maybe }> } } } // Query Related Code export const AddToCartMutation = { query: process.env.NODE_ENV === 'production' ? undefined : 'mutation AddToCartMutation($orderFormId: ID, $items: [VTEX_ItemInput], $marketingData: VTEX_MarketingDataInput, $allowedOutdatedData: [String!], $salesChannel: String) {\n addToCart(\n orderFormId: $orderFormId\n items: $items\n marketingData: $marketingData\n allowedOutdatedData: $allowedOutdatedData\n salesChannel: $salesChannel\n ) {\n id\n items {\n isGift\n additionalInfo {\n brandName\n }\n attachments {\n name\n content\n }\n attachmentOfferings {\n name\n required\n schema\n }\n bundleItems {\n additionalInfo {\n brandName\n }\n attachments {\n name\n content\n }\n attachmentOfferings {\n name\n required\n schema\n }\n availability\n detailUrl\n id\n imageUrls {\n at1x\n at2x\n at3x\n }\n listPrice\n measurementUnit\n name\n offerings {\n id\n name\n price\n type\n attachmentOfferings {\n name\n required\n schema\n }\n }\n price\n productCategories\n productCategoryIds\n productRefId\n productId\n quantity\n seller\n sellingPrice\n skuName\n skuSpecifications {\n fieldName\n fieldValues\n }\n unitMultiplier\n uniqueId\n refId\n }\n parentAssemblyBinding\n sellingPriceWithAssemblies\n options {\n assemblyId\n id\n quantity\n seller\n inputValues\n options {\n assemblyId\n id\n quantity\n seller\n inputValues\n options {\n assemblyId\n id\n quantity\n seller\n inputValues\n }\n }\n }\n availability\n detailUrl\n id\n imageUrls {\n at1x\n at2x\n at3x\n }\n listPrice\n manualPrice\n measurementUnit\n name\n offerings {\n id\n name\n price\n type\n attachmentOfferings {\n name\n required\n schema\n }\n }\n price\n productCategories\n productCategoryIds\n productRefId\n productId\n quantity\n seller\n sellingPrice\n skuName\n skuSpecifications {\n fieldName\n fieldValues\n }\n unitMultiplier\n uniqueId\n refId\n }\n canEditData\n loggedIn\n userProfileId\n userType\n marketingData {\n coupon\n utmCampaign\n utmMedium\n utmSource\n utmiCampaign\n utmiPart\n utmiPage\n }\n totalizers {\n id\n name\n value\n }\n shipping {\n countries\n availableAddresses {\n addressId\n addressType\n city\n complement\n country\n neighborhood\n number\n postalCode\n receiverName\n reference\n state\n street\n isDisposable\n }\n selectedAddress {\n addressId\n addressType\n city\n complement\n country\n neighborhood\n number\n postalCode\n receiverName\n reference\n state\n street\n isDisposable\n }\n deliveryOptions {\n id\n price\n estimate\n isSelected\n }\n isValid\n }\n paymentData {\n paymentSystems {\n id\n name\n groupName\n validator {\n regex\n mask\n cardCodeRegex\n cardCodeMask\n weights\n useCvv\n useExpirationDate\n useCardHolderName\n useBillingAddress\n }\n stringId\n requiresDocument\n isCustom\n description\n requiresAuthentication\n dueDate\n }\n payments {\n paymentSystem\n bin\n accountId\n tokenId\n installments\n referenceValue\n value\n }\n installmentOptions {\n paymentSystem\n installments {\n count\n hasInterestRate\n interestRate\n value\n total\n }\n }\n availableAccounts {\n accountId\n paymentSystem\n paymentSystemName\n cardNumber\n bin\n }\n isValid\n }\n clientProfileData {\n email\n firstName\n lastName\n document\n documentType\n phone\n isValid\n }\n clientPreferencesData {\n locale\n optInNewsletter\n }\n messages {\n couponMessages {\n code\n }\n generalMessages {\n code\n text\n status\n }\n }\n value\n allowManualPrice\n }\n}\n', sha256Hash: '980f043139ea561448c5c1afbb27a0f18ee6d9b2f56bf775e18221b82dbdcf45', operationName: 'AddToCartMutation', }