@anker-in/shopify-sdk 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -206,6 +206,8 @@ var cartFragment = (
206
206
  }
207
207
  buyerIdentity {
208
208
  email
209
+ phone
210
+ countryCode
209
211
  customer {
210
212
  email
211
213
  id
@@ -215,8 +217,11 @@ var cartFragment = (
215
217
  address1
216
218
  address2
217
219
  city
220
+ province
218
221
  country
219
222
  zip
223
+ firstName
224
+ lastName
220
225
  }
221
226
  }
222
227
  }
@@ -564,9 +569,34 @@ var updateCartDeliveryOptionsMutation = (
564
569
  `
565
570
  );
566
571
 
572
+ // src/mutations/cart/update-buyer-identity.ts
573
+ var updateBuyerIdentityMutation = (
574
+ /* GraphQL */
575
+ `
576
+ mutation cartBuyerIdentityUpdate(
577
+ $buyerIdentity: CartBuyerIdentityInput!
578
+ $cartId: ID!
579
+ $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []
580
+ $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []
581
+ ) {
582
+ cartBuyerIdentityUpdate(cartId: $cartId, buyerIdentity: $buyerIdentity) {
583
+ cart {
584
+ ...cart
585
+ }
586
+ userErrors {
587
+ field
588
+ message
589
+ }
590
+ }
591
+ }
592
+ ${cartFragment}
593
+ `
594
+ );
595
+
567
596
  exports.addCartItemsMutation = addCartItemsMutation;
568
597
  exports.createCartMutation = createCartMutation;
569
598
  exports.removeCartItemsMutation = removeCartItemsMutation;
599
+ exports.updateBuyerIdentityMutation = updateBuyerIdentityMutation;
570
600
  exports.updateCartAttributesMutation = updateCartAttributesMutation;
571
601
  exports.updateCartDeliveryOptionsMutation = updateCartDeliveryOptionsMutation;
572
602
  exports.updateCartDiscountCodeMutation = updateCartDiscountCodeMutation;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/fragments/image.ts","../../src/fragments/seo.ts","../../src/fragments/metafield.ts","../../src/fragments/product.ts","../../src/fragments/cart.ts","../../src/mutations/cart/create-cart.ts","../../src/mutations/cart/add-cart-items.ts","../../src/mutations/cart/update-cart-items.ts","../../src/mutations/cart/remove-cart-items.ts","../../src/mutations/cart/update-cart-discount-code.ts","../../src/mutations/cart/update-cart-attributes.ts","../../src/mutations/cart/update-cart-delivery-options.ts"],"names":[],"mappings":";;;AAAO,IAAM,aAAA;AAAA;AAAA,EAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACApC,IAAM,WAAA;AAAA;AAAA,EAA4B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACAlC,IAAM,iBAAA;AAAA;AAAA,EAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACGxC,IAAM,eAAA;AAAA;AAAA,EAAgC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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A;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAiBtD,YAAY;AAAA;AAAA;;;ACjBT,IAAM,iCAAA;AAAA;AAAA,EAAkD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAoB3D,YAAY;AAAA;AAAA","file":"index.js","sourcesContent":["export const imageFragment = /* GraphQL */ `\n fragment image on Image {\n url\n altText\n width\n height\n }\n`\n","export const seoFragment = /* GraphQL */ `\n fragment seo on SEO {\n description\n title\n }\n`\n","export const metafieldFragment = /* GraphQL */ `\n fragment metafield on Metafield {\n value\n type\n description\n namespace\n key\n }\n`\n\nexport const metafieldFragmentStr = `\n value\n type\n description\n namespace\n key\n`\n","/**\n * Product GraphQL Fragment\n */\nexport const productFragment = /* GraphQL */ `\n fragment product on Product {\n id\n handle\n availableForSale\n title\n description\n descriptionHtml\n options {\n id\n name\n values\n }\n productType\n vendor\n priceRange {\n maxVariantPrice {\n amount\n currencyCode\n }\n minVariantPrice {\n amount\n currencyCode\n }\n }\n compareAtPriceRange {\n minVariantPrice {\n amount\n currencyCode\n }\n }\n featuredImage {\n ...image\n }\n images(first: 250) {\n edges {\n node {\n ...image\n }\n }\n }\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n media(first: 250) {\n edges {\n node {\n id\n mediaContentType\n ... on Video {\n id\n sources {\n format\n height\n mimeType\n url\n width\n }\n }\n ... on MediaImage {\n id\n image {\n altText\n url\n }\n }\n }\n }\n }\n seo {\n ...seo\n }\n tags\n createdAt\n updatedAt\n publishedAt\n requiresSellingPlan\n sellingPlanGroups(first: 250) {\n edges {\n node {\n name\n sellingPlans(first: 250) {\n edges {\n node {\n id\n name\n priceAdjustments {\n adjustmentValue {\n ... on SellingPlanFixedAmountPriceAdjustment {\n __typename\n adjustmentAmount {\n amount\n currencyCode\n }\n }\n ... on SellingPlanFixedPriceAdjustment {\n __typename\n price {\n amount\n currencyCode\n }\n }\n ... on SellingPlanPercentagePriceAdjustment {\n __typename\n adjustmentPercentage\n }\n }\n }\n options {\n name\n value\n }\n }\n }\n }\n }\n }\n }\n }\n`\n","import { imageFragment } from './image'\nimport { metafieldFragment } from './metafield'\nimport { productFragment } from './product'\nimport { seoFragment } from './seo'\n\nexport const cartFragment = /* GraphQL */ `\n fragment cart on Cart {\n id\n totalQuantity\n updatedAt\n createdAt\n checkoutUrl\n note\n attributes {\n key\n value\n }\n cost {\n checkoutChargeAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n totalTaxAmount {\n amount\n currencyCode\n }\n totalDutyAmount {\n amount\n currencyCode\n }\n totalAmountEstimated\n totalTaxAmountEstimated\n totalDutyAmountEstimated\n subtotalAmountEstimated\n }\n buyerIdentity {\n email\n customer {\n email\n id\n }\n deliveryAddressPreferences {\n ... on MailingAddress {\n address1\n address2\n city\n country\n zip\n }\n }\n }\n discountCodes {\n applicable\n code\n }\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n deliveryGroups(first: 10) {\n nodes {\n ... on CartDeliveryGroup {\n id\n deliveryOptions {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n deliveryAddress {\n ... on MailingAddress {\n address1\n address2\n city\n country\n zip\n }\n }\n selectedDeliveryOption {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n lines(first: 100) {\n edges {\n node {\n id\n quantity\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n attributes {\n key\n value\n }\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n }\n merchandise {\n ... on ProductVariant {\n id\n sku\n title\n quantityAvailable\n currentlyNotInStock\n availableForSale\n barcode\n weight\n selectedOptions {\n name\n value\n }\n image {\n ...image\n }\n price {\n amount\n currencyCode\n }\n compareAtPrice {\n amount\n currencyCode\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n product {\n ...product\n }\n }\n }\n }\n }\n }\n totalQuantity\n }\n ${productFragment}\n ${imageFragment}\n ${seoFragment}\n ${metafieldFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const createCartMutation = /* GraphQL */ `\n mutation createCart(\n $lines: [CartLineInput!]\n $discountCodes: [String!]\n $attributes: [AttributeInput!] = []\n $buyerIdentity: CartBuyerIdentityInput\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartCreate(\n input: {\n lines: $lines\n discountCodes: $discountCodes\n attributes: $attributes\n buyerIdentity: $buyerIdentity\n }\n ) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const addCartItemsMutation = /* GraphQL */ `\n mutation addToCart(\n $cartId: ID!\n $lines: [CartLineInput!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartLinesAdd(cartId: $cartId, lines: $lines) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const updateCartItemsMutation = /* GraphQL */ `\n mutation editCartItems(\n $cartId: ID!\n $lines: [CartLineUpdateInput!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartLinesUpdate(cartId: $cartId, lines: $lines) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const removeCartItemsMutation = /* GraphQL */ `\n mutation removeFromCart(\n $cartId: ID!\n $lineIds: [ID!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartLinesRemove(cartId: $cartId, lineIds: $lineIds) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const updateCartDiscountCodeMutation = /* GraphQL */ `\n mutation cartDiscountCodesUpdate(\n $cartId: ID!\n $discountCodes: [String!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartDiscountCodesUpdate(cartId: $cartId, discountCodes: $discountCodes) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const updateCartAttributesMutation = /* GraphQL */ `\n mutation cartAttributesUpdate(\n $attributes: [AttributeInput!]!\n $cartId: ID!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartAttributesUpdate(cartId: $cartId, attributes: $attributes) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const updateCartDeliveryOptionsMutation = /* GraphQL */ `\n mutation updateCartDeliveryOptions(\n $cartId: ID!\n $selectedDeliveryOptions: [CartSelectedDeliveryOptionInput!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartSelectedDeliveryOptionsUpdate(\n cartId: $cartId\n selectedDeliveryOptions: $selectedDeliveryOptions\n ) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`"]}
1
+ {"version":3,"sources":["../../src/fragments/image.ts","../../src/fragments/seo.ts","../../src/fragments/metafield.ts","../../src/fragments/product.ts","../../src/fragments/cart.ts","../../src/mutations/cart/create-cart.ts","../../src/mutations/cart/add-cart-items.ts","../../src/mutations/cart/update-cart-items.ts","../../src/mutations/cart/remove-cart-items.ts","../../src/mutations/cart/update-cart-discount-code.ts","../../src/mutations/cart/update-cart-attributes.ts","../../src/mutations/cart/update-cart-delivery-options.ts","../../src/mutations/cart/update-buyer-identity.ts"],"names":[],"mappings":";;;AAAO,IAAM,aAAA;AAAA;AAAA,EAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACApC,IAAM,WAAA;AAAA;AAAA,EAA4B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACAlC,IAAM,iBAAA;AAAA;AAAA,EAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACGxC,IAAM,eAAA;AAAA;AAAA,EAAgC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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AA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAiBjD,YAAY;AAAA;AAAA;;;ACjBT,IAAM,uBAAA;AAAA;AAAA,EAAwC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAiBjD,YAAY;AAAA;AAAA;;;ACjBT,IAAM,8BAAA;AAAA;AAAA,EAA+C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAiBxD,YAAY;AAAA;AAAA;;;ACjBT,IAAM,4BAAA;AAAA;AAAA,EAA6C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAiBtD,YAAY;AAAA;AAAA;;;ACjBT,IAAM,iCAAA;AAAA;AAAA,EAAkD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAoB3D,YAAY;AAAA;AAAA;;;ACpBT,IAAM,2BAAA;AAAA;AAAA,EAA4C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAiBrD,YAAY;AAAA;AAAA","file":"index.js","sourcesContent":["export const imageFragment = /* GraphQL */ `\n fragment image on Image {\n url\n altText\n width\n height\n }\n`\n","export const seoFragment = /* GraphQL */ `\n fragment seo on SEO {\n description\n title\n }\n`\n","export const metafieldFragment = /* GraphQL */ `\n fragment metafield on Metafield {\n value\n type\n description\n namespace\n key\n }\n`\n\nexport const metafieldFragmentStr = `\n value\n type\n description\n namespace\n key\n`\n","/**\n * Product GraphQL Fragment\n */\nexport const productFragment = /* GraphQL */ `\n fragment product on Product {\n id\n handle\n availableForSale\n title\n description\n descriptionHtml\n options {\n id\n name\n values\n }\n productType\n vendor\n priceRange {\n maxVariantPrice {\n amount\n currencyCode\n }\n minVariantPrice {\n amount\n currencyCode\n }\n }\n compareAtPriceRange {\n minVariantPrice {\n amount\n currencyCode\n }\n }\n featuredImage {\n ...image\n }\n images(first: 250) {\n edges {\n node {\n ...image\n }\n }\n }\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n media(first: 250) {\n edges {\n node {\n id\n mediaContentType\n ... on Video {\n id\n sources {\n format\n height\n mimeType\n url\n width\n }\n }\n ... on MediaImage {\n id\n image {\n altText\n url\n }\n }\n }\n }\n }\n seo {\n ...seo\n }\n tags\n createdAt\n updatedAt\n publishedAt\n requiresSellingPlan\n sellingPlanGroups(first: 250) {\n edges {\n node {\n name\n sellingPlans(first: 250) {\n edges {\n node {\n id\n name\n priceAdjustments {\n adjustmentValue {\n ... on SellingPlanFixedAmountPriceAdjustment {\n __typename\n adjustmentAmount {\n amount\n currencyCode\n }\n }\n ... on SellingPlanFixedPriceAdjustment {\n __typename\n price {\n amount\n currencyCode\n }\n }\n ... on SellingPlanPercentagePriceAdjustment {\n __typename\n adjustmentPercentage\n }\n }\n }\n options {\n name\n value\n }\n }\n }\n }\n }\n }\n }\n }\n`\n","import { imageFragment } from './image'\nimport { metafieldFragment } from './metafield'\nimport { productFragment } from './product'\nimport { seoFragment } from './seo'\n\nexport const cartFragment = /* GraphQL */ `\n fragment cart on Cart {\n id\n totalQuantity\n updatedAt\n createdAt\n checkoutUrl\n note\n attributes {\n key\n value\n }\n cost {\n checkoutChargeAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n totalTaxAmount {\n amount\n currencyCode\n }\n totalDutyAmount {\n amount\n currencyCode\n }\n totalAmountEstimated\n totalTaxAmountEstimated\n totalDutyAmountEstimated\n subtotalAmountEstimated\n }\n buyerIdentity {\n email\n phone\n countryCode\n customer {\n email\n id\n }\n deliveryAddressPreferences {\n ... on MailingAddress {\n address1\n address2\n city\n province\n country\n zip\n firstName\n lastName\n }\n }\n }\n discountCodes {\n applicable\n code\n }\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n deliveryGroups(first: 10) {\n nodes {\n ... on CartDeliveryGroup {\n id\n deliveryOptions {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n deliveryAddress {\n ... on MailingAddress {\n address1\n address2\n city\n country\n zip\n }\n }\n selectedDeliveryOption {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n lines(first: 100) {\n edges {\n node {\n id\n quantity\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n attributes {\n key\n value\n }\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n }\n merchandise {\n ... on ProductVariant {\n id\n sku\n title\n quantityAvailable\n currentlyNotInStock\n availableForSale\n barcode\n weight\n selectedOptions {\n name\n value\n }\n image {\n ...image\n }\n price {\n amount\n currencyCode\n }\n compareAtPrice {\n amount\n currencyCode\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n product {\n ...product\n }\n }\n }\n }\n }\n }\n totalQuantity\n }\n ${productFragment}\n ${imageFragment}\n ${seoFragment}\n ${metafieldFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const createCartMutation = /* GraphQL */ `\n mutation createCart(\n $lines: [CartLineInput!]\n $discountCodes: [String!]\n $attributes: [AttributeInput!] = []\n $buyerIdentity: CartBuyerIdentityInput\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartCreate(\n input: {\n lines: $lines\n discountCodes: $discountCodes\n attributes: $attributes\n buyerIdentity: $buyerIdentity\n }\n ) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const addCartItemsMutation = /* GraphQL */ `\n mutation addToCart(\n $cartId: ID!\n $lines: [CartLineInput!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartLinesAdd(cartId: $cartId, lines: $lines) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const updateCartItemsMutation = /* GraphQL */ `\n mutation editCartItems(\n $cartId: ID!\n $lines: [CartLineUpdateInput!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartLinesUpdate(cartId: $cartId, lines: $lines) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const removeCartItemsMutation = /* GraphQL */ `\n mutation removeFromCart(\n $cartId: ID!\n $lineIds: [ID!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartLinesRemove(cartId: $cartId, lineIds: $lineIds) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const updateCartDiscountCodeMutation = /* GraphQL */ `\n mutation cartDiscountCodesUpdate(\n $cartId: ID!\n $discountCodes: [String!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartDiscountCodesUpdate(cartId: $cartId, discountCodes: $discountCodes) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const updateCartAttributesMutation = /* GraphQL */ `\n mutation cartAttributesUpdate(\n $attributes: [AttributeInput!]!\n $cartId: ID!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartAttributesUpdate(cartId: $cartId, attributes: $attributes) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const updateCartDeliveryOptionsMutation = /* GraphQL */ `\n mutation updateCartDeliveryOptions(\n $cartId: ID!\n $selectedDeliveryOptions: [CartSelectedDeliveryOptionInput!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartSelectedDeliveryOptionsUpdate(\n cartId: $cartId\n selectedDeliveryOptions: $selectedDeliveryOptions\n ) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`","import { cartFragment } from '../../fragments'\n\nexport const updateBuyerIdentityMutation = /* GraphQL */ `\n mutation cartBuyerIdentityUpdate(\n $buyerIdentity: CartBuyerIdentityInput!\n $cartId: ID!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartBuyerIdentityUpdate(cartId: $cartId, buyerIdentity: $buyerIdentity) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n"]}
@@ -204,6 +204,8 @@ var cartFragment = (
204
204
  }
205
205
  buyerIdentity {
206
206
  email
207
+ phone
208
+ countryCode
207
209
  customer {
208
210
  email
209
211
  id
@@ -213,8 +215,11 @@ var cartFragment = (
213
215
  address1
214
216
  address2
215
217
  city
218
+ province
216
219
  country
217
220
  zip
221
+ firstName
222
+ lastName
218
223
  }
219
224
  }
220
225
  }
@@ -562,6 +567,30 @@ var updateCartDeliveryOptionsMutation = (
562
567
  `
563
568
  );
564
569
 
565
- export { addCartItemsMutation, createCartMutation, removeCartItemsMutation, updateCartAttributesMutation, updateCartDeliveryOptionsMutation, updateCartDiscountCodeMutation, updateCartItemsMutation };
570
+ // src/mutations/cart/update-buyer-identity.ts
571
+ var updateBuyerIdentityMutation = (
572
+ /* GraphQL */
573
+ `
574
+ mutation cartBuyerIdentityUpdate(
575
+ $buyerIdentity: CartBuyerIdentityInput!
576
+ $cartId: ID!
577
+ $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []
578
+ $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []
579
+ ) {
580
+ cartBuyerIdentityUpdate(cartId: $cartId, buyerIdentity: $buyerIdentity) {
581
+ cart {
582
+ ...cart
583
+ }
584
+ userErrors {
585
+ field
586
+ message
587
+ }
588
+ }
589
+ }
590
+ ${cartFragment}
591
+ `
592
+ );
593
+
594
+ export { addCartItemsMutation, createCartMutation, removeCartItemsMutation, updateBuyerIdentityMutation, updateCartAttributesMutation, updateCartDeliveryOptionsMutation, updateCartDiscountCodeMutation, updateCartItemsMutation };
566
595
  //# sourceMappingURL=index.mjs.map
567
596
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/fragments/image.ts","../../src/fragments/seo.ts","../../src/fragments/metafield.ts","../../src/fragments/product.ts","../../src/fragments/cart.ts","../../src/mutations/cart/create-cart.ts","../../src/mutations/cart/add-cart-items.ts","../../src/mutations/cart/update-cart-items.ts","../../src/mutations/cart/remove-cart-items.ts","../../src/mutations/cart/update-cart-discount-code.ts","../../src/mutations/cart/update-cart-attributes.ts","../../src/mutations/cart/update-cart-delivery-options.ts"],"names":[],"mappings":";AAAO,IAAM,aAAA;AAAA;AAAA,EAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACApC,IAAM,WAAA;AAAA;AAAA,EAA4B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACAlC,IAAM,iBAAA;AAAA;AAAA,EAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACGxC,IAAM,eAAA;AAAA;AAAA,EAAgC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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YAAY;AAAA;AAAA;;;ACjBT,IAAM,4BAAA;AAAA;AAAA,EAA6C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAiBtD,YAAY;AAAA;AAAA;;;ACjBT,IAAM,iCAAA;AAAA;AAAA,EAAkD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAoB3D,YAAY;AAAA;AAAA","file":"index.mjs","sourcesContent":["export const imageFragment = /* GraphQL */ `\n fragment image on Image {\n url\n altText\n width\n height\n }\n`\n","export const seoFragment = /* GraphQL */ `\n fragment seo on SEO {\n description\n title\n }\n`\n","export const metafieldFragment = /* GraphQL */ `\n fragment metafield on Metafield {\n value\n type\n description\n namespace\n key\n }\n`\n\nexport const metafieldFragmentStr = `\n value\n type\n description\n namespace\n key\n`\n","/**\n * Product GraphQL Fragment\n */\nexport const productFragment = /* GraphQL */ `\n fragment product on Product {\n id\n handle\n availableForSale\n title\n description\n descriptionHtml\n options {\n id\n name\n values\n }\n productType\n vendor\n priceRange {\n maxVariantPrice {\n amount\n currencyCode\n }\n minVariantPrice {\n amount\n currencyCode\n }\n }\n compareAtPriceRange {\n minVariantPrice {\n amount\n currencyCode\n }\n }\n featuredImage {\n ...image\n }\n images(first: 250) {\n edges {\n node {\n ...image\n }\n }\n }\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n media(first: 250) {\n edges {\n node {\n id\n mediaContentType\n ... on Video {\n id\n sources {\n format\n height\n mimeType\n url\n width\n }\n }\n ... on MediaImage {\n id\n image {\n altText\n url\n }\n }\n }\n }\n }\n seo {\n ...seo\n }\n tags\n createdAt\n updatedAt\n publishedAt\n requiresSellingPlan\n sellingPlanGroups(first: 250) {\n edges {\n node {\n name\n sellingPlans(first: 250) {\n edges {\n node {\n id\n name\n priceAdjustments {\n adjustmentValue {\n ... on SellingPlanFixedAmountPriceAdjustment {\n __typename\n adjustmentAmount {\n amount\n currencyCode\n }\n }\n ... on SellingPlanFixedPriceAdjustment {\n __typename\n price {\n amount\n currencyCode\n }\n }\n ... on SellingPlanPercentagePriceAdjustment {\n __typename\n adjustmentPercentage\n }\n }\n }\n options {\n name\n value\n }\n }\n }\n }\n }\n }\n }\n }\n`\n","import { imageFragment } from './image'\nimport { metafieldFragment } from './metafield'\nimport { productFragment } from './product'\nimport { seoFragment } from './seo'\n\nexport const cartFragment = /* GraphQL */ `\n fragment cart on Cart {\n id\n totalQuantity\n updatedAt\n createdAt\n checkoutUrl\n note\n attributes {\n key\n value\n }\n cost {\n checkoutChargeAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n totalTaxAmount {\n amount\n currencyCode\n }\n totalDutyAmount {\n amount\n currencyCode\n }\n totalAmountEstimated\n totalTaxAmountEstimated\n totalDutyAmountEstimated\n subtotalAmountEstimated\n }\n buyerIdentity {\n email\n customer {\n email\n id\n }\n deliveryAddressPreferences {\n ... on MailingAddress {\n address1\n address2\n city\n country\n zip\n }\n }\n }\n discountCodes {\n applicable\n code\n }\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n deliveryGroups(first: 10) {\n nodes {\n ... on CartDeliveryGroup {\n id\n deliveryOptions {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n deliveryAddress {\n ... on MailingAddress {\n address1\n address2\n city\n country\n zip\n }\n }\n selectedDeliveryOption {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n lines(first: 100) {\n edges {\n node {\n id\n quantity\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n attributes {\n key\n value\n }\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n }\n merchandise {\n ... on ProductVariant {\n id\n sku\n title\n quantityAvailable\n currentlyNotInStock\n availableForSale\n barcode\n weight\n selectedOptions {\n name\n value\n }\n image {\n ...image\n }\n price {\n amount\n currencyCode\n }\n compareAtPrice {\n amount\n currencyCode\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n product {\n ...product\n }\n }\n }\n }\n }\n }\n totalQuantity\n }\n ${productFragment}\n ${imageFragment}\n ${seoFragment}\n ${metafieldFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const createCartMutation = /* GraphQL */ `\n mutation createCart(\n $lines: [CartLineInput!]\n $discountCodes: [String!]\n $attributes: [AttributeInput!] = []\n $buyerIdentity: CartBuyerIdentityInput\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartCreate(\n input: {\n lines: $lines\n discountCodes: $discountCodes\n attributes: $attributes\n buyerIdentity: $buyerIdentity\n }\n ) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const addCartItemsMutation = /* GraphQL */ `\n mutation addToCart(\n $cartId: ID!\n $lines: [CartLineInput!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartLinesAdd(cartId: $cartId, lines: $lines) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const updateCartItemsMutation = /* GraphQL */ `\n mutation editCartItems(\n $cartId: ID!\n $lines: [CartLineUpdateInput!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartLinesUpdate(cartId: $cartId, lines: $lines) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const removeCartItemsMutation = /* GraphQL */ `\n mutation removeFromCart(\n $cartId: ID!\n $lineIds: [ID!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartLinesRemove(cartId: $cartId, lineIds: $lineIds) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const updateCartDiscountCodeMutation = /* GraphQL */ `\n mutation cartDiscountCodesUpdate(\n $cartId: ID!\n $discountCodes: [String!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartDiscountCodesUpdate(cartId: $cartId, discountCodes: $discountCodes) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const updateCartAttributesMutation = /* GraphQL */ `\n mutation cartAttributesUpdate(\n $attributes: [AttributeInput!]!\n $cartId: ID!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartAttributesUpdate(cartId: $cartId, attributes: $attributes) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const updateCartDeliveryOptionsMutation = /* GraphQL */ `\n mutation updateCartDeliveryOptions(\n $cartId: ID!\n $selectedDeliveryOptions: [CartSelectedDeliveryOptionInput!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartSelectedDeliveryOptionsUpdate(\n cartId: $cartId\n selectedDeliveryOptions: $selectedDeliveryOptions\n ) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`"]}
1
+ {"version":3,"sources":["../../src/fragments/image.ts","../../src/fragments/seo.ts","../../src/fragments/metafield.ts","../../src/fragments/product.ts","../../src/fragments/cart.ts","../../src/mutations/cart/create-cart.ts","../../src/mutations/cart/add-cart-items.ts","../../src/mutations/cart/update-cart-items.ts","../../src/mutations/cart/remove-cart-items.ts","../../src/mutations/cart/update-cart-discount-code.ts","../../src/mutations/cart/update-cart-attributes.ts","../../src/mutations/cart/update-cart-delivery-options.ts","../../src/mutations/cart/update-buyer-identity.ts"],"names":[],"mappings":";AAAO,IAAM,aAAA;AAAA;AAAA,EAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACApC,IAAM,WAAA;AAAA;AAAA,EAA4B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACAlC,IAAM,iBAAA;AAAA;AAAA,EAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACGxC,IAAM,eAAA;AAAA;AAAA,EAAgC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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,YAAY;AAAA;AAAA;;;ACjBT,IAAM,uBAAA;AAAA;AAAA,EAAwC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAiBjD,YAAY;AAAA;AAAA;;;ACjBT,IAAM,uBAAA;AAAA;AAAA,EAAwC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAiBjD,YAAY;AAAA;AAAA;;;ACjBT,IAAM,8BAAA;AAAA;AAAA,EAA+C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAiBxD,YAAY;AAAA;AAAA;;;ACjBT,IAAM,4BAAA;AAAA;AAAA,EAA6C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAiBtD,YAAY;AAAA;AAAA;;;ACjBT,IAAM,iCAAA;AAAA;AAAA,EAAkD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAoB3D,YAAY;AAAA;AAAA;;;ACpBT,IAAM,2BAAA;AAAA;AAAA,EAA4C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAiBrD,YAAY;AAAA;AAAA","file":"index.mjs","sourcesContent":["export const imageFragment = /* GraphQL */ `\n fragment image on Image {\n url\n altText\n width\n height\n }\n`\n","export const seoFragment = /* GraphQL */ `\n fragment seo on SEO {\n description\n title\n }\n`\n","export const metafieldFragment = /* GraphQL */ `\n fragment metafield on Metafield {\n value\n type\n description\n namespace\n key\n }\n`\n\nexport const metafieldFragmentStr = `\n value\n type\n description\n namespace\n key\n`\n","/**\n * Product GraphQL Fragment\n */\nexport const productFragment = /* GraphQL */ `\n fragment product on Product {\n id\n handle\n availableForSale\n title\n description\n descriptionHtml\n options {\n id\n name\n values\n }\n productType\n vendor\n priceRange {\n maxVariantPrice {\n amount\n currencyCode\n }\n minVariantPrice {\n amount\n currencyCode\n }\n }\n compareAtPriceRange {\n minVariantPrice {\n amount\n currencyCode\n }\n }\n featuredImage {\n ...image\n }\n images(first: 250) {\n edges {\n node {\n ...image\n }\n }\n }\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n media(first: 250) {\n edges {\n node {\n id\n mediaContentType\n ... on Video {\n id\n sources {\n format\n height\n mimeType\n url\n width\n }\n }\n ... on MediaImage {\n id\n image {\n altText\n url\n }\n }\n }\n }\n }\n seo {\n ...seo\n }\n tags\n createdAt\n updatedAt\n publishedAt\n requiresSellingPlan\n sellingPlanGroups(first: 250) {\n edges {\n node {\n name\n sellingPlans(first: 250) {\n edges {\n node {\n id\n name\n priceAdjustments {\n adjustmentValue {\n ... on SellingPlanFixedAmountPriceAdjustment {\n __typename\n adjustmentAmount {\n amount\n currencyCode\n }\n }\n ... on SellingPlanFixedPriceAdjustment {\n __typename\n price {\n amount\n currencyCode\n }\n }\n ... on SellingPlanPercentagePriceAdjustment {\n __typename\n adjustmentPercentage\n }\n }\n }\n options {\n name\n value\n }\n }\n }\n }\n }\n }\n }\n }\n`\n","import { imageFragment } from './image'\nimport { metafieldFragment } from './metafield'\nimport { productFragment } from './product'\nimport { seoFragment } from './seo'\n\nexport const cartFragment = /* GraphQL */ `\n fragment cart on Cart {\n id\n totalQuantity\n updatedAt\n createdAt\n checkoutUrl\n note\n attributes {\n key\n value\n }\n cost {\n checkoutChargeAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n totalTaxAmount {\n amount\n currencyCode\n }\n totalDutyAmount {\n amount\n currencyCode\n }\n totalAmountEstimated\n totalTaxAmountEstimated\n totalDutyAmountEstimated\n subtotalAmountEstimated\n }\n buyerIdentity {\n email\n phone\n countryCode\n customer {\n email\n id\n }\n deliveryAddressPreferences {\n ... on MailingAddress {\n address1\n address2\n city\n province\n country\n zip\n firstName\n lastName\n }\n }\n }\n discountCodes {\n applicable\n code\n }\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n deliveryGroups(first: 10) {\n nodes {\n ... on CartDeliveryGroup {\n id\n deliveryOptions {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n deliveryAddress {\n ... on MailingAddress {\n address1\n address2\n city\n country\n zip\n }\n }\n selectedDeliveryOption {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n lines(first: 100) {\n edges {\n node {\n id\n quantity\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n attributes {\n key\n value\n }\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n }\n merchandise {\n ... on ProductVariant {\n id\n sku\n title\n quantityAvailable\n currentlyNotInStock\n availableForSale\n barcode\n weight\n selectedOptions {\n name\n value\n }\n image {\n ...image\n }\n price {\n amount\n currencyCode\n }\n compareAtPrice {\n amount\n currencyCode\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n product {\n ...product\n }\n }\n }\n }\n }\n }\n totalQuantity\n }\n ${productFragment}\n ${imageFragment}\n ${seoFragment}\n ${metafieldFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const createCartMutation = /* GraphQL */ `\n mutation createCart(\n $lines: [CartLineInput!]\n $discountCodes: [String!]\n $attributes: [AttributeInput!] = []\n $buyerIdentity: CartBuyerIdentityInput\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartCreate(\n input: {\n lines: $lines\n discountCodes: $discountCodes\n attributes: $attributes\n buyerIdentity: $buyerIdentity\n }\n ) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const addCartItemsMutation = /* GraphQL */ `\n mutation addToCart(\n $cartId: ID!\n $lines: [CartLineInput!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartLinesAdd(cartId: $cartId, lines: $lines) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const updateCartItemsMutation = /* GraphQL */ `\n mutation editCartItems(\n $cartId: ID!\n $lines: [CartLineUpdateInput!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartLinesUpdate(cartId: $cartId, lines: $lines) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const removeCartItemsMutation = /* GraphQL */ `\n mutation removeFromCart(\n $cartId: ID!\n $lineIds: [ID!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartLinesRemove(cartId: $cartId, lineIds: $lineIds) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const updateCartDiscountCodeMutation = /* GraphQL */ `\n mutation cartDiscountCodesUpdate(\n $cartId: ID!\n $discountCodes: [String!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartDiscountCodesUpdate(cartId: $cartId, discountCodes: $discountCodes) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const updateCartAttributesMutation = /* GraphQL */ `\n mutation cartAttributesUpdate(\n $attributes: [AttributeInput!]!\n $cartId: ID!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartAttributesUpdate(cartId: $cartId, attributes: $attributes) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const updateCartDeliveryOptionsMutation = /* GraphQL */ `\n mutation updateCartDeliveryOptions(\n $cartId: ID!\n $selectedDeliveryOptions: [CartSelectedDeliveryOptionInput!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartSelectedDeliveryOptionsUpdate(\n cartId: $cartId\n selectedDeliveryOptions: $selectedDeliveryOptions\n ) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`","import { cartFragment } from '../../fragments'\n\nexport const updateBuyerIdentityMutation = /* GraphQL */ `\n mutation cartBuyerIdentityUpdate(\n $buyerIdentity: CartBuyerIdentityInput!\n $cartId: ID!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n cartBuyerIdentityUpdate(cartId: $cartId, buyerIdentity: $buyerIdentity) {\n cart {\n ...cart\n }\n userErrors {\n field\n message\n }\n }\n }\n ${cartFragment}\n`\n"]}
@@ -6,6 +6,6 @@ declare const getProductsByHandlesQuery: (handles: string[]) => string;
6
6
 
7
7
  declare const getAllProductsPathsQuery = "\n query getAllProductPaths(\n $first: Int = 250\n $cursor: String\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n products(first: $first, after: $cursor) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n nodes {\n handle\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n }\n }\n }\n \n fragment metafield on Metafield {\n value\n type\n description\n namespace\n key\n }\n\n";
8
8
 
9
- declare const getCartQuery = "\n query getCart(\n $cartId: ID!\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!]!\n ) {\n cart(id: $cartId) {\n ...cart\n }\n }\n \n fragment cart on Cart {\n id\n totalQuantity\n updatedAt\n createdAt\n checkoutUrl\n note\n attributes {\n key\n value\n }\n cost {\n checkoutChargeAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n totalTaxAmount {\n amount\n currencyCode\n }\n totalDutyAmount {\n amount\n currencyCode\n }\n totalAmountEstimated\n totalTaxAmountEstimated\n totalDutyAmountEstimated\n subtotalAmountEstimated\n }\n buyerIdentity {\n email\n customer {\n email\n id\n }\n deliveryAddressPreferences {\n ... on MailingAddress {\n address1\n address2\n city\n country\n zip\n }\n }\n }\n discountCodes {\n applicable\n code\n }\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n deliveryGroups(first: 10) {\n nodes {\n ... on CartDeliveryGroup {\n id\n deliveryOptions {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n deliveryAddress {\n ... on MailingAddress {\n address1\n address2\n city\n country\n zip\n }\n }\n selectedDeliveryOption {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n lines(first: 100) {\n edges {\n node {\n id\n quantity\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n attributes {\n key\n value\n }\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n }\n merchandise {\n ... on ProductVariant {\n id\n sku\n title\n quantityAvailable\n currentlyNotInStock\n availableForSale\n barcode\n weight\n selectedOptions {\n name\n value\n }\n image {\n ...image\n }\n price {\n amount\n currencyCode\n }\n compareAtPrice {\n amount\n currencyCode\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n product {\n ...product\n }\n }\n }\n }\n }\n }\n totalQuantity\n }\n \n fragment product on Product {\n id\n handle\n availableForSale\n title\n description\n descriptionHtml\n options {\n id\n name\n values\n }\n productType\n vendor\n priceRange {\n maxVariantPrice {\n amount\n currencyCode\n }\n minVariantPrice {\n amount\n currencyCode\n }\n }\n compareAtPriceRange {\n minVariantPrice {\n amount\n currencyCode\n }\n }\n featuredImage {\n ...image\n }\n images(first: 250) {\n edges {\n node {\n ...image\n }\n }\n }\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n media(first: 250) {\n edges {\n node {\n id\n mediaContentType\n ... on Video {\n id\n sources {\n format\n height\n mimeType\n url\n width\n }\n }\n ... on MediaImage {\n id\n image {\n altText\n url\n }\n }\n }\n }\n }\n seo {\n ...seo\n }\n tags\n createdAt\n updatedAt\n publishedAt\n requiresSellingPlan\n sellingPlanGroups(first: 250) {\n edges {\n node {\n name\n sellingPlans(first: 250) {\n edges {\n node {\n id\n name\n priceAdjustments {\n adjustmentValue {\n ... on SellingPlanFixedAmountPriceAdjustment {\n __typename\n adjustmentAmount {\n amount\n currencyCode\n }\n }\n ... on SellingPlanFixedPriceAdjustment {\n __typename\n price {\n amount\n currencyCode\n }\n }\n ... on SellingPlanPercentagePriceAdjustment {\n __typename\n adjustmentPercentage\n }\n }\n }\n options {\n name\n value\n }\n }\n }\n }\n }\n }\n }\n }\n\n \n fragment image on Image {\n url\n altText\n width\n height\n }\n\n \n fragment seo on SEO {\n description\n title\n }\n\n \n fragment metafield on Metafield {\n value\n type\n description\n namespace\n key\n }\n\n\n";
9
+ declare const getCartQuery = "\n query getCart(\n $cartId: ID!\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!]!\n ) {\n cart(id: $cartId) {\n ...cart\n }\n }\n \n fragment cart on Cart {\n id\n totalQuantity\n updatedAt\n createdAt\n checkoutUrl\n note\n attributes {\n key\n value\n }\n cost {\n checkoutChargeAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n totalTaxAmount {\n amount\n currencyCode\n }\n totalDutyAmount {\n amount\n currencyCode\n }\n totalAmountEstimated\n totalTaxAmountEstimated\n totalDutyAmountEstimated\n subtotalAmountEstimated\n }\n buyerIdentity {\n email\n phone\n countryCode\n customer {\n email\n id\n }\n deliveryAddressPreferences {\n ... on MailingAddress {\n address1\n address2\n city\n province\n country\n zip\n firstName\n lastName\n }\n }\n }\n discountCodes {\n applicable\n code\n }\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n deliveryGroups(first: 10) {\n nodes {\n ... on CartDeliveryGroup {\n id\n deliveryOptions {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n deliveryAddress {\n ... on MailingAddress {\n address1\n address2\n city\n country\n zip\n }\n }\n selectedDeliveryOption {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n lines(first: 100) {\n edges {\n node {\n id\n quantity\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n attributes {\n key\n value\n }\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n }\n merchandise {\n ... on ProductVariant {\n id\n sku\n title\n quantityAvailable\n currentlyNotInStock\n availableForSale\n barcode\n weight\n selectedOptions {\n name\n value\n }\n image {\n ...image\n }\n price {\n amount\n currencyCode\n }\n compareAtPrice {\n amount\n currencyCode\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n product {\n ...product\n }\n }\n }\n }\n }\n }\n totalQuantity\n }\n \n fragment product on Product {\n id\n handle\n availableForSale\n title\n description\n descriptionHtml\n options {\n id\n name\n values\n }\n productType\n vendor\n priceRange {\n maxVariantPrice {\n amount\n currencyCode\n }\n minVariantPrice {\n amount\n currencyCode\n }\n }\n compareAtPriceRange {\n minVariantPrice {\n amount\n currencyCode\n }\n }\n featuredImage {\n ...image\n }\n images(first: 250) {\n edges {\n node {\n ...image\n }\n }\n }\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n media(first: 250) {\n edges {\n node {\n id\n mediaContentType\n ... on Video {\n id\n sources {\n format\n height\n mimeType\n url\n width\n }\n }\n ... on MediaImage {\n id\n image {\n altText\n url\n }\n }\n }\n }\n }\n seo {\n ...seo\n }\n tags\n createdAt\n updatedAt\n publishedAt\n requiresSellingPlan\n sellingPlanGroups(first: 250) {\n edges {\n node {\n name\n sellingPlans(first: 250) {\n edges {\n node {\n id\n name\n priceAdjustments {\n adjustmentValue {\n ... on SellingPlanFixedAmountPriceAdjustment {\n __typename\n adjustmentAmount {\n amount\n currencyCode\n }\n }\n ... on SellingPlanFixedPriceAdjustment {\n __typename\n price {\n amount\n currencyCode\n }\n }\n ... on SellingPlanPercentagePriceAdjustment {\n __typename\n adjustmentPercentage\n }\n }\n }\n options {\n name\n value\n }\n }\n }\n }\n }\n }\n }\n }\n\n \n fragment image on Image {\n url\n altText\n width\n height\n }\n\n \n fragment seo on SEO {\n description\n title\n }\n\n \n fragment metafield on Metafield {\n value\n type\n description\n namespace\n key\n }\n\n\n";
10
10
 
11
11
  export { getAllProductsPathsQuery, getCartQuery, getProductQuery, getProductsByHandlesQuery, getProductsQuery };
@@ -6,6 +6,6 @@ declare const getProductsByHandlesQuery: (handles: string[]) => string;
6
6
 
7
7
  declare const getAllProductsPathsQuery = "\n query getAllProductPaths(\n $first: Int = 250\n $cursor: String\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n products(first: $first, after: $cursor) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n nodes {\n handle\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n }\n }\n }\n \n fragment metafield on Metafield {\n value\n type\n description\n namespace\n key\n }\n\n";
8
8
 
9
- declare const getCartQuery = "\n query getCart(\n $cartId: ID!\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!]!\n ) {\n cart(id: $cartId) {\n ...cart\n }\n }\n \n fragment cart on Cart {\n id\n totalQuantity\n updatedAt\n createdAt\n checkoutUrl\n note\n attributes {\n key\n value\n }\n cost {\n checkoutChargeAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n totalTaxAmount {\n amount\n currencyCode\n }\n totalDutyAmount {\n amount\n currencyCode\n }\n totalAmountEstimated\n totalTaxAmountEstimated\n totalDutyAmountEstimated\n subtotalAmountEstimated\n }\n buyerIdentity {\n email\n customer {\n email\n id\n }\n deliveryAddressPreferences {\n ... on MailingAddress {\n address1\n address2\n city\n country\n zip\n }\n }\n }\n discountCodes {\n applicable\n code\n }\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n deliveryGroups(first: 10) {\n nodes {\n ... on CartDeliveryGroup {\n id\n deliveryOptions {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n deliveryAddress {\n ... on MailingAddress {\n address1\n address2\n city\n country\n zip\n }\n }\n selectedDeliveryOption {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n lines(first: 100) {\n edges {\n node {\n id\n quantity\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n attributes {\n key\n value\n }\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n }\n merchandise {\n ... on ProductVariant {\n id\n sku\n title\n quantityAvailable\n currentlyNotInStock\n availableForSale\n barcode\n weight\n selectedOptions {\n name\n value\n }\n image {\n ...image\n }\n price {\n amount\n currencyCode\n }\n compareAtPrice {\n amount\n currencyCode\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n product {\n ...product\n }\n }\n }\n }\n }\n }\n totalQuantity\n }\n \n fragment product on Product {\n id\n handle\n availableForSale\n title\n description\n descriptionHtml\n options {\n id\n name\n values\n }\n productType\n vendor\n priceRange {\n maxVariantPrice {\n amount\n currencyCode\n }\n minVariantPrice {\n amount\n currencyCode\n }\n }\n compareAtPriceRange {\n minVariantPrice {\n amount\n currencyCode\n }\n }\n featuredImage {\n ...image\n }\n images(first: 250) {\n edges {\n node {\n ...image\n }\n }\n }\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n media(first: 250) {\n edges {\n node {\n id\n mediaContentType\n ... on Video {\n id\n sources {\n format\n height\n mimeType\n url\n width\n }\n }\n ... on MediaImage {\n id\n image {\n altText\n url\n }\n }\n }\n }\n }\n seo {\n ...seo\n }\n tags\n createdAt\n updatedAt\n publishedAt\n requiresSellingPlan\n sellingPlanGroups(first: 250) {\n edges {\n node {\n name\n sellingPlans(first: 250) {\n edges {\n node {\n id\n name\n priceAdjustments {\n adjustmentValue {\n ... on SellingPlanFixedAmountPriceAdjustment {\n __typename\n adjustmentAmount {\n amount\n currencyCode\n }\n }\n ... on SellingPlanFixedPriceAdjustment {\n __typename\n price {\n amount\n currencyCode\n }\n }\n ... on SellingPlanPercentagePriceAdjustment {\n __typename\n adjustmentPercentage\n }\n }\n }\n options {\n name\n value\n }\n }\n }\n }\n }\n }\n }\n }\n\n \n fragment image on Image {\n url\n altText\n width\n height\n }\n\n \n fragment seo on SEO {\n description\n title\n }\n\n \n fragment metafield on Metafield {\n value\n type\n description\n namespace\n key\n }\n\n\n";
9
+ declare const getCartQuery = "\n query getCart(\n $cartId: ID!\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!]!\n ) {\n cart(id: $cartId) {\n ...cart\n }\n }\n \n fragment cart on Cart {\n id\n totalQuantity\n updatedAt\n createdAt\n checkoutUrl\n note\n attributes {\n key\n value\n }\n cost {\n checkoutChargeAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n totalTaxAmount {\n amount\n currencyCode\n }\n totalDutyAmount {\n amount\n currencyCode\n }\n totalAmountEstimated\n totalTaxAmountEstimated\n totalDutyAmountEstimated\n subtotalAmountEstimated\n }\n buyerIdentity {\n email\n phone\n countryCode\n customer {\n email\n id\n }\n deliveryAddressPreferences {\n ... on MailingAddress {\n address1\n address2\n city\n province\n country\n zip\n firstName\n lastName\n }\n }\n }\n discountCodes {\n applicable\n code\n }\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n deliveryGroups(first: 10) {\n nodes {\n ... on CartDeliveryGroup {\n id\n deliveryOptions {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n deliveryAddress {\n ... on MailingAddress {\n address1\n address2\n city\n country\n zip\n }\n }\n selectedDeliveryOption {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n lines(first: 100) {\n edges {\n node {\n id\n quantity\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n attributes {\n key\n value\n }\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n }\n merchandise {\n ... on ProductVariant {\n id\n sku\n title\n quantityAvailable\n currentlyNotInStock\n availableForSale\n barcode\n weight\n selectedOptions {\n name\n value\n }\n image {\n ...image\n }\n price {\n amount\n currencyCode\n }\n compareAtPrice {\n amount\n currencyCode\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n product {\n ...product\n }\n }\n }\n }\n }\n }\n totalQuantity\n }\n \n fragment product on Product {\n id\n handle\n availableForSale\n title\n description\n descriptionHtml\n options {\n id\n name\n values\n }\n productType\n vendor\n priceRange {\n maxVariantPrice {\n amount\n currencyCode\n }\n minVariantPrice {\n amount\n currencyCode\n }\n }\n compareAtPriceRange {\n minVariantPrice {\n amount\n currencyCode\n }\n }\n featuredImage {\n ...image\n }\n images(first: 250) {\n edges {\n node {\n ...image\n }\n }\n }\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n media(first: 250) {\n edges {\n node {\n id\n mediaContentType\n ... on Video {\n id\n sources {\n format\n height\n mimeType\n url\n width\n }\n }\n ... on MediaImage {\n id\n image {\n altText\n url\n }\n }\n }\n }\n }\n seo {\n ...seo\n }\n tags\n createdAt\n updatedAt\n publishedAt\n requiresSellingPlan\n sellingPlanGroups(first: 250) {\n edges {\n node {\n name\n sellingPlans(first: 250) {\n edges {\n node {\n id\n name\n priceAdjustments {\n adjustmentValue {\n ... on SellingPlanFixedAmountPriceAdjustment {\n __typename\n adjustmentAmount {\n amount\n currencyCode\n }\n }\n ... on SellingPlanFixedPriceAdjustment {\n __typename\n price {\n amount\n currencyCode\n }\n }\n ... on SellingPlanPercentagePriceAdjustment {\n __typename\n adjustmentPercentage\n }\n }\n }\n options {\n name\n value\n }\n }\n }\n }\n }\n }\n }\n }\n\n \n fragment image on Image {\n url\n altText\n width\n height\n }\n\n \n fragment seo on SEO {\n description\n title\n }\n\n \n fragment metafield on Metafield {\n value\n type\n description\n namespace\n key\n }\n\n\n";
10
10
 
11
11
  export { getAllProductsPathsQuery, getCartQuery, getProductQuery, getProductsByHandlesQuery, getProductsQuery };
@@ -270,6 +270,8 @@ var cartFragment = (
270
270
  }
271
271
  buyerIdentity {
272
272
  email
273
+ phone
274
+ countryCode
273
275
  customer {
274
276
  email
275
277
  id
@@ -279,8 +281,11 @@ var cartFragment = (
279
281
  address1
280
282
  address2
281
283
  city
284
+ province
282
285
  country
283
286
  zip
287
+ firstName
288
+ lastName
284
289
  }
285
290
  }
286
291
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/fragments/image.ts","../../src/fragments/seo.ts","../../src/fragments/metafield.ts","../../src/fragments/variant.ts","../../src/fragments/product.ts","../../src/fragments/cart.ts","../../src/fragments/page-info.ts","../../src/queries/product/get-product.ts","../../src/queries/product/get-products.ts","../../src/queries/product/get-products-by-handles.ts","../../src/queries/product/get-all-products-paths.ts","../../src/queries/cart/get-cart.ts"],"names":[],"mappings":";;;AAAO,IAAM,aAAA;AAAA;AAAA,EAA8B;AAAA;AAAA;AAAA;AA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A,EAAA,EAK1E,OAAA,CAAQ,GAAA;AAAA,IACR,CAAC,MAAA,EAAQ,KAAA;AAAA;AAAA,MAAgC;AAAA,WAAA,EAChC,KAAK,sBAAsB,MAAM,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA;AAAA;AAAA,GAe3C;AAAA;AAAA,EAED,eAAe;AAAA,EACf,eAAe;AAAA,EACf,iBAAiB;AAAA,EAAA,EACf,aAAa;AAAA,EAAA,EACb,WAAW;AAAA;AAAA;;;AClCR,IAAM,wBAAA;AAAA;AAAA,EAAyC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAmBlD,iBAAiB;AAAA;AAAA;;;ACnBd,IAAM,YAAA;AAAA;AAAA,EAA6B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAUtC,YAAY;AAAA;AAAA","file":"index.js","sourcesContent":["export const imageFragment = /* GraphQL */ `\n fragment image on Image {\n url\n altText\n width\n height\n }\n`\n","export const seoFragment = /* GraphQL */ `\n fragment seo on SEO {\n description\n title\n }\n`\n","export const metafieldFragment = /* GraphQL */ `\n fragment metafield on Metafield {\n value\n type\n description\n namespace\n key\n }\n`\n\nexport const metafieldFragmentStr = `\n value\n type\n description\n namespace\n key\n`\n","export const variantFragment = /* GraphQL */ `\n fragment variant on ProductVariant {\n id\n sku\n title\n requiresShipping\n quantityAvailable\n currentlyNotInStock\n availableForSale\n barcode\n weight\n selectedOptions {\n name\n value\n }\n image {\n ...image\n }\n price {\n amount\n currencyCode\n }\n compareAtPrice {\n amount\n currencyCode\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n sellingPlanAllocations(first: 10) {\n edges {\n node {\n sellingPlan {\n id\n name\n options {\n name\n value\n }\n }\n priceAdjustments {\n compareAtPrice {\n amount\n currencyCode\n }\n perDeliveryPrice {\n amount\n currencyCode\n }\n price {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n`\n","/**\n * Product GraphQL Fragment\n */\nexport const productFragment = /* GraphQL */ `\n fragment product on Product {\n id\n handle\n availableForSale\n title\n description\n descriptionHtml\n options {\n id\n name\n values\n }\n productType\n vendor\n priceRange {\n maxVariantPrice {\n amount\n currencyCode\n }\n minVariantPrice {\n amount\n currencyCode\n }\n }\n compareAtPriceRange {\n minVariantPrice {\n amount\n currencyCode\n }\n }\n featuredImage {\n ...image\n }\n images(first: 250) {\n edges {\n node {\n ...image\n }\n }\n }\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n media(first: 250) {\n edges {\n node {\n id\n mediaContentType\n ... on Video {\n id\n sources {\n format\n height\n mimeType\n url\n width\n }\n }\n ... on MediaImage {\n id\n image {\n altText\n url\n }\n }\n }\n }\n }\n seo {\n ...seo\n }\n tags\n createdAt\n updatedAt\n publishedAt\n requiresSellingPlan\n sellingPlanGroups(first: 250) {\n edges {\n node {\n name\n sellingPlans(first: 250) {\n edges {\n node {\n id\n name\n priceAdjustments {\n adjustmentValue {\n ... on SellingPlanFixedAmountPriceAdjustment {\n __typename\n adjustmentAmount {\n amount\n currencyCode\n }\n }\n ... on SellingPlanFixedPriceAdjustment {\n __typename\n price {\n amount\n currencyCode\n }\n }\n ... on SellingPlanPercentagePriceAdjustment {\n __typename\n adjustmentPercentage\n }\n }\n }\n options {\n name\n value\n }\n }\n }\n }\n }\n }\n }\n }\n`\n","import { imageFragment } from './image'\nimport { metafieldFragment } from './metafield'\nimport { productFragment } from './product'\nimport { seoFragment } from './seo'\n\nexport const cartFragment = /* GraphQL */ `\n fragment cart on Cart {\n id\n totalQuantity\n updatedAt\n createdAt\n checkoutUrl\n note\n attributes {\n key\n value\n }\n cost {\n checkoutChargeAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n totalTaxAmount {\n amount\n currencyCode\n }\n totalDutyAmount {\n amount\n currencyCode\n }\n totalAmountEstimated\n totalTaxAmountEstimated\n totalDutyAmountEstimated\n subtotalAmountEstimated\n }\n buyerIdentity {\n email\n customer {\n email\n id\n }\n deliveryAddressPreferences {\n ... on MailingAddress {\n address1\n address2\n city\n country\n zip\n }\n }\n }\n discountCodes {\n applicable\n code\n }\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n deliveryGroups(first: 10) {\n nodes {\n ... on CartDeliveryGroup {\n id\n deliveryOptions {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n deliveryAddress {\n ... on MailingAddress {\n address1\n address2\n city\n country\n zip\n }\n }\n selectedDeliveryOption {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n lines(first: 100) {\n edges {\n node {\n id\n quantity\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n attributes {\n key\n value\n }\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n }\n merchandise {\n ... on ProductVariant {\n id\n sku\n title\n quantityAvailable\n currentlyNotInStock\n availableForSale\n barcode\n weight\n selectedOptions {\n name\n value\n }\n image {\n ...image\n }\n price {\n amount\n currencyCode\n }\n compareAtPrice {\n amount\n currencyCode\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n product {\n ...product\n }\n }\n }\n }\n }\n }\n totalQuantity\n }\n ${productFragment}\n ${imageFragment}\n ${seoFragment}\n ${metafieldFragment}\n`\n","export const pageInfoFragment = /* GraphQL */ `\n fragment pageInfo on PageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n`\n","import {\n metafieldFragment,\n productFragment,\n variantFragment,\n imageFragment,\n seoFragment,\n} from '../../fragments'\n\nexport const getProductQuery = /* GraphQL */ `\n query getProductByHandle(\n $handle: String!\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n product(handle: $handle) {\n ...product\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n variants(first: 250) {\n nodes {\n ...variant\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n }\n }\n }\n }\n ${productFragment}\n ${variantFragment}\n ${metafieldFragment}\n ${imageFragment}\n ${seoFragment}\n`\n","import {\n metafieldFragment,\n pageInfoFragment,\n productFragment,\n variantFragment,\n imageFragment,\n seoFragment,\n} from '../../fragments'\n\nexport const getProductsQuery = /* GraphQL */ `\n query getProducts(\n $first: Int = 10\n $after: String\n $query: String = \"\"\n $sortKey: ProductSortKeys = RELEVANCE\n $reverse: Boolean = false\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n products(first: $first, after: $after, sortKey: $sortKey, reverse: $reverse, query: $query) {\n pageInfo {\n ...pageInfo\n }\n nodes {\n ...product\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n variants(first: 250) {\n nodes {\n ...variant\n product {\n ...product\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n }\n }\n }\n }\n }\n ${productFragment}\n ${variantFragment}\n ${pageInfoFragment}\n ${metafieldFragment}\n ${imageFragment}\n ${seoFragment}\n`\n","import {\n metafieldFragment,\n productFragment,\n variantFragment,\n imageFragment,\n seoFragment,\n} from '../../fragments'\n\nexport const getProductsByHandlesQuery = (handles: string[]) => /* GraphQL */ `\nquery GetProductByHandles(\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n) {\n ${handles.map(\n (handle, index: number) => /* GraphQL */ `\n product${index}: product(handle: \"${handle}\") {\n ...product\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n variants(first: 250) {\n nodes {\n ...variant\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n }\n }\n }\n `\n )}\n}\n${productFragment}\n${variantFragment}\n${metafieldFragment}\n ${imageFragment}\n ${seoFragment}\n`\n","import { metafieldFragment } from '../../fragments'\n\nexport const getAllProductsPathsQuery = /* GraphQL */ `\n query getAllProductPaths(\n $first: Int = 250\n $cursor: String\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n products(first: $first, after: $cursor) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n nodes {\n handle\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n }\n }\n }\n ${metafieldFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const getCartQuery = /* GraphQL */ `\n query getCart(\n $cartId: ID!\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!]!\n ) {\n cart(id: $cartId) {\n ...cart\n }\n }\n ${cartFragment}\n`\n"]}
1
+ {"version":3,"sources":["../../src/fragments/image.ts","../../src/fragments/seo.ts","../../src/fragments/metafield.ts","../../src/fragments/variant.ts","../../src/fragments/product.ts","../../src/fragments/cart.ts","../../src/fragments/page-info.ts","../../src/queries/product/get-product.ts","../../src/queries/product/get-products.ts","../../src/queries/product/get-products-by-handles.ts","../../src/queries/product/get-all-products-paths.ts","../../src/queries/cart/get-cart.ts"],"names":[],"mappings":";;;AAAO,IAAM,aAAA;AAAA;AAAA,EAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACApC,IAAM,WAAA;AAAA;AAAA,EAA4B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACAlC,IAAM,iBAAA;AAAA;AAAA,EAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACAxC,IAAM,eAAA;AAAA;AAAA,EAAgC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACGtC,IAAM,eAAA;AAAA;AAAA,EAAgC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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AAA;AAAA;AAAA,EAAA,EAoC1C,eAAe;AAAA,EAAA,EACf,eAAe;AAAA,EAAA,EACf,gBAAgB;AAAA,EAAA,EAChB,iBAAiB;AAAA,EAAA,EACjB,aAAa;AAAA,EAAA,EACb,WAAW;AAAA;AAAA;;;AC1CR,IAAM,4BAA4B,CAAC,OAAA;AAAA;AAAA,EAAoC;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAK1E,OAAA,CAAQ,GAAA;AAAA,IACR,CAAC,MAAA,EAAQ,KAAA;AAAA;AAAA,MAAgC;AAAA,WAAA,EAChC,KAAK,sBAAsB,MAAM,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA;AAAA;AAAA,GAe3C;AAAA;AAAA,EAED,eAAe;AAAA,EACf,eAAe;AAAA,EACf,iBAAiB;AAAA,EAAA,EACf,aAAa;AAAA,EAAA,EACb,WAAW;AAAA;AAAA;;;AClCR,IAAM,wBAAA;AAAA;AAAA,EAAyC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAmBlD,iBAAiB;AAAA;AAAA;;;ACnBd,IAAM,YAAA;AAAA;AAAA,EAA6B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAUtC,YAAY;AAAA;AAAA","file":"index.js","sourcesContent":["export const imageFragment = /* GraphQL */ `\n fragment image on Image {\n url\n altText\n width\n height\n }\n`\n","export const seoFragment = /* GraphQL */ `\n fragment seo on SEO {\n description\n title\n }\n`\n","export const metafieldFragment = /* GraphQL */ `\n fragment metafield on Metafield {\n value\n type\n description\n namespace\n key\n }\n`\n\nexport const metafieldFragmentStr = `\n value\n type\n description\n namespace\n key\n`\n","export const variantFragment = /* GraphQL */ `\n fragment variant on ProductVariant {\n id\n sku\n title\n requiresShipping\n quantityAvailable\n currentlyNotInStock\n availableForSale\n barcode\n weight\n selectedOptions {\n name\n value\n }\n image {\n ...image\n }\n price {\n amount\n currencyCode\n }\n compareAtPrice {\n amount\n currencyCode\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n sellingPlanAllocations(first: 10) {\n edges {\n node {\n sellingPlan {\n id\n name\n options {\n name\n value\n }\n }\n priceAdjustments {\n compareAtPrice {\n amount\n currencyCode\n }\n perDeliveryPrice {\n amount\n currencyCode\n }\n price {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n`\n","/**\n * Product GraphQL Fragment\n */\nexport const productFragment = /* GraphQL */ `\n fragment product on Product {\n id\n handle\n availableForSale\n title\n description\n descriptionHtml\n options {\n id\n name\n values\n }\n productType\n vendor\n priceRange {\n maxVariantPrice {\n amount\n currencyCode\n }\n minVariantPrice {\n amount\n currencyCode\n }\n }\n compareAtPriceRange {\n minVariantPrice {\n amount\n currencyCode\n }\n }\n featuredImage {\n ...image\n }\n images(first: 250) {\n edges {\n node {\n ...image\n }\n }\n }\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n media(first: 250) {\n edges {\n node {\n id\n mediaContentType\n ... on Video {\n id\n sources {\n format\n height\n mimeType\n url\n width\n }\n }\n ... on MediaImage {\n id\n image {\n altText\n url\n }\n }\n }\n }\n }\n seo {\n ...seo\n }\n tags\n createdAt\n updatedAt\n publishedAt\n requiresSellingPlan\n sellingPlanGroups(first: 250) {\n edges {\n node {\n name\n sellingPlans(first: 250) {\n edges {\n node {\n id\n name\n priceAdjustments {\n adjustmentValue {\n ... on SellingPlanFixedAmountPriceAdjustment {\n __typename\n adjustmentAmount {\n amount\n currencyCode\n }\n }\n ... on SellingPlanFixedPriceAdjustment {\n __typename\n price {\n amount\n currencyCode\n }\n }\n ... on SellingPlanPercentagePriceAdjustment {\n __typename\n adjustmentPercentage\n }\n }\n }\n options {\n name\n value\n }\n }\n }\n }\n }\n }\n }\n }\n`\n","import { imageFragment } from './image'\nimport { metafieldFragment } from './metafield'\nimport { productFragment } from './product'\nimport { seoFragment } from './seo'\n\nexport const cartFragment = /* GraphQL */ `\n fragment cart on Cart {\n id\n totalQuantity\n updatedAt\n createdAt\n checkoutUrl\n note\n attributes {\n key\n value\n }\n cost {\n checkoutChargeAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n totalTaxAmount {\n amount\n currencyCode\n }\n totalDutyAmount {\n amount\n currencyCode\n }\n totalAmountEstimated\n totalTaxAmountEstimated\n totalDutyAmountEstimated\n subtotalAmountEstimated\n }\n buyerIdentity {\n email\n phone\n countryCode\n customer {\n email\n id\n }\n deliveryAddressPreferences {\n ... on MailingAddress {\n address1\n address2\n city\n province\n country\n zip\n firstName\n lastName\n }\n }\n }\n discountCodes {\n applicable\n code\n }\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n deliveryGroups(first: 10) {\n nodes {\n ... on CartDeliveryGroup {\n id\n deliveryOptions {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n deliveryAddress {\n ... on MailingAddress {\n address1\n address2\n city\n country\n zip\n }\n }\n selectedDeliveryOption {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n lines(first: 100) {\n edges {\n node {\n id\n quantity\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n attributes {\n key\n value\n }\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n }\n merchandise {\n ... on ProductVariant {\n id\n sku\n title\n quantityAvailable\n currentlyNotInStock\n availableForSale\n barcode\n weight\n selectedOptions {\n name\n value\n }\n image {\n ...image\n }\n price {\n amount\n currencyCode\n }\n compareAtPrice {\n amount\n currencyCode\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n product {\n ...product\n }\n }\n }\n }\n }\n }\n totalQuantity\n }\n ${productFragment}\n ${imageFragment}\n ${seoFragment}\n ${metafieldFragment}\n`\n","export const pageInfoFragment = /* GraphQL */ `\n fragment pageInfo on PageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n`\n","import {\n metafieldFragment,\n productFragment,\n variantFragment,\n imageFragment,\n seoFragment,\n} from '../../fragments'\n\nexport const getProductQuery = /* GraphQL */ `\n query getProductByHandle(\n $handle: String!\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n product(handle: $handle) {\n ...product\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n variants(first: 250) {\n nodes {\n ...variant\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n }\n }\n }\n }\n ${productFragment}\n ${variantFragment}\n ${metafieldFragment}\n ${imageFragment}\n ${seoFragment}\n`\n","import {\n metafieldFragment,\n pageInfoFragment,\n productFragment,\n variantFragment,\n imageFragment,\n seoFragment,\n} from '../../fragments'\n\nexport const getProductsQuery = /* GraphQL */ `\n query getProducts(\n $first: Int = 10\n $after: String\n $query: String = \"\"\n $sortKey: ProductSortKeys = RELEVANCE\n $reverse: Boolean = false\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n products(first: $first, after: $after, sortKey: $sortKey, reverse: $reverse, query: $query) {\n pageInfo {\n ...pageInfo\n }\n nodes {\n ...product\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n variants(first: 250) {\n nodes {\n ...variant\n product {\n ...product\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n }\n }\n }\n }\n }\n ${productFragment}\n ${variantFragment}\n ${pageInfoFragment}\n ${metafieldFragment}\n ${imageFragment}\n ${seoFragment}\n`\n","import {\n metafieldFragment,\n productFragment,\n variantFragment,\n imageFragment,\n seoFragment,\n} from '../../fragments'\n\nexport const getProductsByHandlesQuery = (handles: string[]) => /* GraphQL */ `\nquery GetProductByHandles(\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n) {\n ${handles.map(\n (handle, index: number) => /* GraphQL */ `\n product${index}: product(handle: \"${handle}\") {\n ...product\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n variants(first: 250) {\n nodes {\n ...variant\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n }\n }\n }\n `\n )}\n}\n${productFragment}\n${variantFragment}\n${metafieldFragment}\n ${imageFragment}\n ${seoFragment}\n`\n","import { metafieldFragment } from '../../fragments'\n\nexport const getAllProductsPathsQuery = /* GraphQL */ `\n query getAllProductPaths(\n $first: Int = 250\n $cursor: String\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n products(first: $first, after: $cursor) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n nodes {\n handle\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n }\n }\n }\n ${metafieldFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const getCartQuery = /* GraphQL */ `\n query getCart(\n $cartId: ID!\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!]!\n ) {\n cart(id: $cartId) {\n ...cart\n }\n }\n ${cartFragment}\n`\n"]}
@@ -268,6 +268,8 @@ var cartFragment = (
268
268
  }
269
269
  buyerIdentity {
270
270
  email
271
+ phone
272
+ countryCode
271
273
  customer {
272
274
  email
273
275
  id
@@ -277,8 +279,11 @@ var cartFragment = (
277
279
  address1
278
280
  address2
279
281
  city
282
+ province
280
283
  country
281
284
  zip
285
+ firstName
286
+ lastName
282
287
  }
283
288
  }
284
289
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/fragments/image.ts","../../src/fragments/seo.ts","../../src/fragments/metafield.ts","../../src/fragments/variant.ts","../../src/fragments/product.ts","../../src/fragments/cart.ts","../../src/fragments/page-info.ts","../../src/queries/product/get-product.ts","../../src/queries/product/get-products.ts","../../src/queries/product/get-products-by-handles.ts","../../src/queries/product/get-all-products-paths.ts","../../src/queries/cart/get-cart.ts"],"names":[],"mappings":";AAAO,IAAM,aAAA;AAAA;AAAA,EAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACApC,IAAM,WAAA;AAAA;AAAA,EAA4B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACAlC,IAAM,iBAAA;AAAA;AAAA,EAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACAxC,IAAM,eAAA;AAAA;AAAA,EAAgC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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AAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAmBlD,iBAAiB;AAAA;AAAA;;;ACnBd,IAAM,YAAA;AAAA;AAAA,EAA6B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAUtC,YAAY;AAAA;AAAA","file":"index.mjs","sourcesContent":["export const imageFragment = /* GraphQL */ `\n fragment image on Image {\n url\n altText\n width\n height\n }\n`\n","export const seoFragment = /* GraphQL */ `\n fragment seo on SEO {\n description\n title\n }\n`\n","export const metafieldFragment = /* GraphQL */ `\n fragment metafield on Metafield {\n value\n type\n description\n namespace\n key\n }\n`\n\nexport const metafieldFragmentStr = `\n value\n type\n description\n namespace\n key\n`\n","export const variantFragment = /* GraphQL */ `\n fragment variant on ProductVariant {\n id\n sku\n title\n requiresShipping\n quantityAvailable\n currentlyNotInStock\n availableForSale\n barcode\n weight\n selectedOptions {\n name\n value\n }\n image {\n ...image\n }\n price {\n amount\n currencyCode\n }\n compareAtPrice {\n amount\n currencyCode\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n sellingPlanAllocations(first: 10) {\n edges {\n node {\n sellingPlan {\n id\n name\n options {\n name\n value\n }\n }\n priceAdjustments {\n compareAtPrice {\n amount\n currencyCode\n }\n perDeliveryPrice {\n amount\n currencyCode\n }\n price {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n`\n","/**\n * Product GraphQL Fragment\n */\nexport const productFragment = /* GraphQL */ `\n fragment product on Product {\n id\n handle\n availableForSale\n title\n description\n descriptionHtml\n options {\n id\n name\n values\n }\n productType\n vendor\n priceRange {\n maxVariantPrice {\n amount\n currencyCode\n }\n minVariantPrice {\n amount\n currencyCode\n }\n }\n compareAtPriceRange {\n minVariantPrice {\n amount\n currencyCode\n }\n }\n featuredImage {\n ...image\n }\n images(first: 250) {\n edges {\n node {\n ...image\n }\n }\n }\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n media(first: 250) {\n edges {\n node {\n id\n mediaContentType\n ... on Video {\n id\n sources {\n format\n height\n mimeType\n url\n width\n }\n }\n ... on MediaImage {\n id\n image {\n altText\n url\n }\n }\n }\n }\n }\n seo {\n ...seo\n }\n tags\n createdAt\n updatedAt\n publishedAt\n requiresSellingPlan\n sellingPlanGroups(first: 250) {\n edges {\n node {\n name\n sellingPlans(first: 250) {\n edges {\n node {\n id\n name\n priceAdjustments {\n adjustmentValue {\n ... on SellingPlanFixedAmountPriceAdjustment {\n __typename\n adjustmentAmount {\n amount\n currencyCode\n }\n }\n ... on SellingPlanFixedPriceAdjustment {\n __typename\n price {\n amount\n currencyCode\n }\n }\n ... on SellingPlanPercentagePriceAdjustment {\n __typename\n adjustmentPercentage\n }\n }\n }\n options {\n name\n value\n }\n }\n }\n }\n }\n }\n }\n }\n`\n","import { imageFragment } from './image'\nimport { metafieldFragment } from './metafield'\nimport { productFragment } from './product'\nimport { seoFragment } from './seo'\n\nexport const cartFragment = /* GraphQL */ `\n fragment cart on Cart {\n id\n totalQuantity\n updatedAt\n createdAt\n checkoutUrl\n note\n attributes {\n key\n value\n }\n cost {\n checkoutChargeAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n totalTaxAmount {\n amount\n currencyCode\n }\n totalDutyAmount {\n amount\n currencyCode\n }\n totalAmountEstimated\n totalTaxAmountEstimated\n totalDutyAmountEstimated\n subtotalAmountEstimated\n }\n buyerIdentity {\n email\n customer {\n email\n id\n }\n deliveryAddressPreferences {\n ... on MailingAddress {\n address1\n address2\n city\n country\n zip\n }\n }\n }\n discountCodes {\n applicable\n code\n }\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n deliveryGroups(first: 10) {\n nodes {\n ... on CartDeliveryGroup {\n id\n deliveryOptions {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n deliveryAddress {\n ... on MailingAddress {\n address1\n address2\n city\n country\n zip\n }\n }\n selectedDeliveryOption {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n lines(first: 100) {\n edges {\n node {\n id\n quantity\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n attributes {\n key\n value\n }\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n }\n merchandise {\n ... on ProductVariant {\n id\n sku\n title\n quantityAvailable\n currentlyNotInStock\n availableForSale\n barcode\n weight\n selectedOptions {\n name\n value\n }\n image {\n ...image\n }\n price {\n amount\n currencyCode\n }\n compareAtPrice {\n amount\n currencyCode\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n product {\n ...product\n }\n }\n }\n }\n }\n }\n totalQuantity\n }\n ${productFragment}\n ${imageFragment}\n ${seoFragment}\n ${metafieldFragment}\n`\n","export const pageInfoFragment = /* GraphQL */ `\n fragment pageInfo on PageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n`\n","import {\n metafieldFragment,\n productFragment,\n variantFragment,\n imageFragment,\n seoFragment,\n} from '../../fragments'\n\nexport const getProductQuery = /* GraphQL */ `\n query getProductByHandle(\n $handle: String!\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n product(handle: $handle) {\n ...product\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n variants(first: 250) {\n nodes {\n ...variant\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n }\n }\n }\n }\n ${productFragment}\n ${variantFragment}\n ${metafieldFragment}\n ${imageFragment}\n ${seoFragment}\n`\n","import {\n metafieldFragment,\n pageInfoFragment,\n productFragment,\n variantFragment,\n imageFragment,\n seoFragment,\n} from '../../fragments'\n\nexport const getProductsQuery = /* GraphQL */ `\n query getProducts(\n $first: Int = 10\n $after: String\n $query: String = \"\"\n $sortKey: ProductSortKeys = RELEVANCE\n $reverse: Boolean = false\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n products(first: $first, after: $after, sortKey: $sortKey, reverse: $reverse, query: $query) {\n pageInfo {\n ...pageInfo\n }\n nodes {\n ...product\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n variants(first: 250) {\n nodes {\n ...variant\n product {\n ...product\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n }\n }\n }\n }\n }\n ${productFragment}\n ${variantFragment}\n ${pageInfoFragment}\n ${metafieldFragment}\n ${imageFragment}\n ${seoFragment}\n`\n","import {\n metafieldFragment,\n productFragment,\n variantFragment,\n imageFragment,\n seoFragment,\n} from '../../fragments'\n\nexport const getProductsByHandlesQuery = (handles: string[]) => /* GraphQL */ `\nquery GetProductByHandles(\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n) {\n ${handles.map(\n (handle, index: number) => /* GraphQL */ `\n product${index}: product(handle: \"${handle}\") {\n ...product\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n variants(first: 250) {\n nodes {\n ...variant\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n }\n }\n }\n `\n )}\n}\n${productFragment}\n${variantFragment}\n${metafieldFragment}\n ${imageFragment}\n ${seoFragment}\n`\n","import { metafieldFragment } from '../../fragments'\n\nexport const getAllProductsPathsQuery = /* GraphQL */ `\n query getAllProductPaths(\n $first: Int = 250\n $cursor: String\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n products(first: $first, after: $cursor) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n nodes {\n handle\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n }\n }\n }\n ${metafieldFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const getCartQuery = /* GraphQL */ `\n query getCart(\n $cartId: ID!\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!]!\n ) {\n cart(id: $cartId) {\n ...cart\n }\n }\n ${cartFragment}\n`\n"]}
1
+ {"version":3,"sources":["../../src/fragments/image.ts","../../src/fragments/seo.ts","../../src/fragments/metafield.ts","../../src/fragments/variant.ts","../../src/fragments/product.ts","../../src/fragments/cart.ts","../../src/fragments/page-info.ts","../../src/queries/product/get-product.ts","../../src/queries/product/get-products.ts","../../src/queries/product/get-products-by-handles.ts","../../src/queries/product/get-all-products-paths.ts","../../src/queries/cart/get-cart.ts"],"names":[],"mappings":";AAAO,IAAM,aAAA;AAAA;AAAA,EAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACApC,IAAM,WAAA;AAAA;AAAA,EAA4B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACAlC,IAAM,iBAAA;AAAA;AAAA,EAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;ACAxC,IAAM,eAAA;AAAA;AAA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AA;AAAA;AAAA,GAe3C;AAAA;AAAA,EAED,eAAe;AAAA,EACf,eAAe;AAAA,EACf,iBAAiB;AAAA,EAAA,EACf,aAAa;AAAA,EAAA,EACb,WAAW;AAAA;AAAA;;;AClCR,IAAM,wBAAA;AAAA;AAAA,EAAyC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAmBlD,iBAAiB;AAAA;AAAA;;;ACnBd,IAAM,YAAA;AAAA;AAAA,EAA6B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA,EAUtC,YAAY;AAAA;AAAA","file":"index.mjs","sourcesContent":["export const imageFragment = /* GraphQL */ `\n fragment image on Image {\n url\n altText\n width\n height\n }\n`\n","export const seoFragment = /* GraphQL */ `\n fragment seo on SEO {\n description\n title\n }\n`\n","export const metafieldFragment = /* GraphQL */ `\n fragment metafield on Metafield {\n value\n type\n description\n namespace\n key\n }\n`\n\nexport const metafieldFragmentStr = `\n value\n type\n description\n namespace\n key\n`\n","export const variantFragment = /* GraphQL */ `\n fragment variant on ProductVariant {\n id\n sku\n title\n requiresShipping\n quantityAvailable\n currentlyNotInStock\n availableForSale\n barcode\n weight\n selectedOptions {\n name\n value\n }\n image {\n ...image\n }\n price {\n amount\n currencyCode\n }\n compareAtPrice {\n amount\n currencyCode\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n sellingPlanAllocations(first: 10) {\n edges {\n node {\n sellingPlan {\n id\n name\n options {\n name\n value\n }\n }\n priceAdjustments {\n compareAtPrice {\n amount\n currencyCode\n }\n perDeliveryPrice {\n amount\n currencyCode\n }\n price {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n`\n","/**\n * Product GraphQL Fragment\n */\nexport const productFragment = /* GraphQL */ `\n fragment product on Product {\n id\n handle\n availableForSale\n title\n description\n descriptionHtml\n options {\n id\n name\n values\n }\n productType\n vendor\n priceRange {\n maxVariantPrice {\n amount\n currencyCode\n }\n minVariantPrice {\n amount\n currencyCode\n }\n }\n compareAtPriceRange {\n minVariantPrice {\n amount\n currencyCode\n }\n }\n featuredImage {\n ...image\n }\n images(first: 250) {\n edges {\n node {\n ...image\n }\n }\n }\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n media(first: 250) {\n edges {\n node {\n id\n mediaContentType\n ... on Video {\n id\n sources {\n format\n height\n mimeType\n url\n width\n }\n }\n ... on MediaImage {\n id\n image {\n altText\n url\n }\n }\n }\n }\n }\n seo {\n ...seo\n }\n tags\n createdAt\n updatedAt\n publishedAt\n requiresSellingPlan\n sellingPlanGroups(first: 250) {\n edges {\n node {\n name\n sellingPlans(first: 250) {\n edges {\n node {\n id\n name\n priceAdjustments {\n adjustmentValue {\n ... on SellingPlanFixedAmountPriceAdjustment {\n __typename\n adjustmentAmount {\n amount\n currencyCode\n }\n }\n ... on SellingPlanFixedPriceAdjustment {\n __typename\n price {\n amount\n currencyCode\n }\n }\n ... on SellingPlanPercentagePriceAdjustment {\n __typename\n adjustmentPercentage\n }\n }\n }\n options {\n name\n value\n }\n }\n }\n }\n }\n }\n }\n }\n`\n","import { imageFragment } from './image'\nimport { metafieldFragment } from './metafield'\nimport { productFragment } from './product'\nimport { seoFragment } from './seo'\n\nexport const cartFragment = /* GraphQL */ `\n fragment cart on Cart {\n id\n totalQuantity\n updatedAt\n createdAt\n checkoutUrl\n note\n attributes {\n key\n value\n }\n cost {\n checkoutChargeAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n totalTaxAmount {\n amount\n currencyCode\n }\n totalDutyAmount {\n amount\n currencyCode\n }\n totalAmountEstimated\n totalTaxAmountEstimated\n totalDutyAmountEstimated\n subtotalAmountEstimated\n }\n buyerIdentity {\n email\n phone\n countryCode\n customer {\n email\n id\n }\n deliveryAddressPreferences {\n ... on MailingAddress {\n address1\n address2\n city\n province\n country\n zip\n firstName\n lastName\n }\n }\n }\n discountCodes {\n applicable\n code\n }\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n deliveryGroups(first: 10) {\n nodes {\n ... on CartDeliveryGroup {\n id\n deliveryOptions {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n deliveryAddress {\n ... on MailingAddress {\n address1\n address2\n city\n country\n zip\n }\n }\n selectedDeliveryOption {\n ... on CartDeliveryOption {\n code\n description\n deliveryMethodType\n handle\n title\n estimatedCost {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n lines(first: 100) {\n edges {\n node {\n id\n quantity\n discountAllocations {\n ... on CartCodeDiscountAllocation {\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartAutomaticDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n title\n discountedAmount {\n amount\n currencyCode\n }\n }\n }\n attributes {\n key\n value\n }\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n }\n merchandise {\n ... on ProductVariant {\n id\n sku\n title\n quantityAvailable\n currentlyNotInStock\n availableForSale\n barcode\n weight\n selectedOptions {\n name\n value\n }\n image {\n ...image\n }\n price {\n amount\n currencyCode\n }\n compareAtPrice {\n amount\n currencyCode\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n product {\n ...product\n }\n }\n }\n }\n }\n }\n totalQuantity\n }\n ${productFragment}\n ${imageFragment}\n ${seoFragment}\n ${metafieldFragment}\n`\n","export const pageInfoFragment = /* GraphQL */ `\n fragment pageInfo on PageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n`\n","import {\n metafieldFragment,\n productFragment,\n variantFragment,\n imageFragment,\n seoFragment,\n} from '../../fragments'\n\nexport const getProductQuery = /* GraphQL */ `\n query getProductByHandle(\n $handle: String!\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n product(handle: $handle) {\n ...product\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n variants(first: 250) {\n nodes {\n ...variant\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n }\n }\n }\n }\n ${productFragment}\n ${variantFragment}\n ${metafieldFragment}\n ${imageFragment}\n ${seoFragment}\n`\n","import {\n metafieldFragment,\n pageInfoFragment,\n productFragment,\n variantFragment,\n imageFragment,\n seoFragment,\n} from '../../fragments'\n\nexport const getProductsQuery = /* GraphQL */ `\n query getProducts(\n $first: Int = 10\n $after: String\n $query: String = \"\"\n $sortKey: ProductSortKeys = RELEVANCE\n $reverse: Boolean = false\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n products(first: $first, after: $after, sortKey: $sortKey, reverse: $reverse, query: $query) {\n pageInfo {\n ...pageInfo\n }\n nodes {\n ...product\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n variants(first: 250) {\n nodes {\n ...variant\n product {\n ...product\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n }\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n }\n }\n }\n }\n }\n ${productFragment}\n ${variantFragment}\n ${pageInfoFragment}\n ${metafieldFragment}\n ${imageFragment}\n ${seoFragment}\n`\n","import {\n metafieldFragment,\n productFragment,\n variantFragment,\n imageFragment,\n seoFragment,\n} from '../../fragments'\n\nexport const getProductsByHandlesQuery = (handles: string[]) => /* GraphQL */ `\nquery GetProductByHandles(\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n) {\n ${handles.map(\n (handle, index: number) => /* GraphQL */ `\n product${index}: product(handle: \"${handle}\") {\n ...product\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n variants(first: 250) {\n nodes {\n ...variant\n metafields(identifiers: $variantMetafieldIdentifiers) {\n ...metafield\n }\n }\n }\n }\n `\n )}\n}\n${productFragment}\n${variantFragment}\n${metafieldFragment}\n ${imageFragment}\n ${seoFragment}\n`\n","import { metafieldFragment } from '../../fragments'\n\nexport const getAllProductsPathsQuery = /* GraphQL */ `\n query getAllProductPaths(\n $first: Int = 250\n $cursor: String\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!] = []\n ) {\n products(first: $first, after: $cursor) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n nodes {\n handle\n metafields(identifiers: $productMetafieldIdentifiers) {\n ...metafield\n }\n }\n }\n }\n ${metafieldFragment}\n`\n","import { cartFragment } from '../../fragments'\n\nexport const getCartQuery = /* GraphQL */ `\n query getCart(\n $cartId: ID!\n $productMetafieldIdentifiers: [HasMetafieldsIdentifier!]!\n $variantMetafieldIdentifiers: [HasMetafieldsIdentifier!]!\n ) {\n cart(id: $cartId) {\n ...cart\n }\n }\n ${cartFragment}\n`\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anker-in/shopify-sdk",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "Shopify Storefront API GraphQL client",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",