From f6727febffc46c3b2a9c0d0f47ac0c98e3403887 Mon Sep 17 00:00:00 2001 From: Lucas Bebber Date: Thu, 1 Jul 2021 15:48:53 -0300 Subject: [PATCH] Sets isDisposable as true on setRegion mutation --- .../sdk/region/__generated__/SetRegionMutation.graphql.ts | 5 ++--- packages/gatsby-theme-store/src/sdk/region/setRegion.ts | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/gatsby-theme-store/src/sdk/region/__generated__/SetRegionMutation.graphql.ts b/packages/gatsby-theme-store/src/sdk/region/__generated__/SetRegionMutation.graphql.ts index 8003455c1c..56555d6036 100644 --- a/packages/gatsby-theme-store/src/sdk/region/__generated__/SetRegionMutation.graphql.ts +++ b/packages/gatsby-theme-store/src/sdk/region/__generated__/SetRegionMutation.graphql.ts @@ -1,4 +1,3 @@ - /** * Warning: This is an autogenerated file. * @@ -31,8 +30,8 @@ export type SetRegionMutationMutation = { updateSelectedAddress: { id: string, c // Query Related Code export const SetRegionMutation = { - query: process.env.NODE_ENV === 'production' ? undefined : "mutation SetRegionMutation($postalCode: String, $country: String = \"BRA\", $addressType: VTEX_AddressType = residential, $orderFormId: ID) {\n updateSelectedAddress(\n input: {postalCode: $postalCode, country: $country, addressType: $addressType}\n orderFormId: $orderFormId\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: "10a3b3ae9b956bbcd20a135cae11542eb9d60b209bf857c2465feb0ae120c446", + query: process.env.NODE_ENV === 'production' ? undefined : "mutation SetRegionMutation($postalCode: String, $country: String = \"BRA\", $addressType: VTEX_AddressType = residential, $orderFormId: ID) {\n updateSelectedAddress(\n input: {postalCode: $postalCode, country: $country, addressType: $addressType, isDisposable: true}\n orderFormId: $orderFormId\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: "195a0053d3cb0c725785674e312ccb79636dd40d10043886fcffb8348bb5c280", operationName: "SetRegionMutation", } diff --git a/packages/gatsby-theme-store/src/sdk/region/setRegion.ts b/packages/gatsby-theme-store/src/sdk/region/setRegion.ts index 762cb23e1f..69f2940745 100644 --- a/packages/gatsby-theme-store/src/sdk/region/setRegion.ts +++ b/packages/gatsby-theme-store/src/sdk/region/setRegion.ts @@ -47,6 +47,7 @@ export const mutation = gql` postalCode: $postalCode country: $country addressType: $addressType + isDisposable: true } orderFormId: $orderFormId ) {