@ikas/storefront 2.0.0-alpha.9 → 2.0.1

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.
Files changed (166) hide show
  1. package/build/__generated__/global-types.d.ts +9 -2
  2. package/build/__generated__/global-types.js +1 -1
  3. package/build/_virtual/index.js_commonjs-proxy2.js +1 -1
  4. package/build/_virtual/index.js_commonjs-proxy3.js +1 -1
  5. package/build/analytics/facebookPixel.js +1 -1
  6. package/build/analytics/googleTagManager.js +1 -1
  7. package/build/analytics/head/index.js +1 -1
  8. package/build/analytics/ikas.js +1 -1
  9. package/build/api/apollo.js +1 -1
  10. package/build/api/blog/__generated__/getBlog.d.ts +14 -16
  11. package/build/api/blog/__generated__/listBlog.d.ts +14 -16
  12. package/build/api/blog/__generated__/listBlogCategory.d.ts +14 -16
  13. package/build/api/blog/__generated__/listBlogMetaData.d.ts +14 -16
  14. package/build/api/brand/__generated__/listProductBrand.d.ts +3 -3
  15. package/build/api/cart/__generated__/getCart.d.ts +2 -4
  16. package/build/api/cart/__generated__/saveItemToCart.d.ts +2 -4
  17. package/build/api/category/__generated__/listCategory.d.ts +3 -3
  18. package/build/api/checkout/__generated__/getCheckoutById.d.ts +2 -4
  19. package/build/api/checkout/__generated__/getOrder.d.ts +5 -11
  20. package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +1 -1
  21. package/build/api/checkout/index.js +1 -1
  22. package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +5 -11
  23. package/build/api/customer/__generated__/customerLogin.d.ts +12 -5
  24. package/build/api/customer/__generated__/customerSocialLogin.d.ts +161 -0
  25. package/build/api/customer/__generated__/getCustomerOrders.d.ts +5 -11
  26. package/build/api/customer/__generated__/getMyCustomer.d.ts +4 -5
  27. package/build/api/customer/__generated__/registerCustomer.d.ts +12 -5
  28. package/build/api/customer/__generated__/saveMyCustomer.d.ts +12 -5
  29. package/build/api/customer/index.d.ts +5 -0
  30. package/build/api/customer/index.js +1 -1
  31. package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +14 -16
  32. package/build/api/product-option-set/index.js +1 -1
  33. package/build/api/raffle/__generated__/listRaffle.d.ts +14 -16
  34. package/build/api/raffle/__generated__/saveRaffleParticipant.d.ts +2 -2
  35. package/build/api/raffle/index.js +1 -1
  36. package/build/api/variant-type/__generated__/listVariantType.d.ts +3 -7
  37. package/build/components/checkout/components/address-form/index.js +1 -1
  38. package/build/components/checkout/components/address-form/model.d.ts +8 -0
  39. package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -1
  40. package/build/components/checkout/components/cart-summary/index.js +1 -1
  41. package/build/components/checkout/components/cart-summary/style.module.scss.js +1 -1
  42. package/build/components/checkout/components/step-container/index.js +1 -1
  43. package/build/components/checkout/index.js +1 -1
  44. package/build/components/checkout/model.d.ts +2 -0
  45. package/build/components/checkout/model.js +1 -1
  46. package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -1
  47. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +1 -1
  48. package/build/components/checkout/steps/step-shipping/index.js +1 -1
  49. package/build/components/checkout/steps/step-success/index.js +1 -1
  50. package/build/components/index.d.ts +1 -1
  51. package/build/components/page/ThemeComponent.js +1 -1
  52. package/build/components/page/head.js +1 -1
  53. package/build/components/page/index.js +1 -1
  54. package/build/components/page-editor/ThemeComponentEditor.d.ts +1 -2
  55. package/build/components/page-editor/ThemeComponentEditor.js +1 -1
  56. package/build/components/page-editor/index.d.ts +3 -1
  57. package/build/components/page-editor/index.js +1 -1
  58. package/build/components/page-editor/loader/index.d.ts +5 -1
  59. package/build/components/page-editor/loader/index.js +1 -1
  60. package/build/components/page-editor/loader/style.module.scss.js +1 -1
  61. package/build/components/page-editor/model.d.ts +8 -4
  62. package/build/components/page-editor/model.js +1 -1
  63. package/build/ext/@apollo/client/cache/inmemory/entityStore.js +1 -1
  64. package/build/ext/@apollo/client/cache/inmemory/inMemoryCache.js +1 -1
  65. package/build/ext/@apollo/client/cache/inmemory/policies.js +1 -1
  66. package/build/ext/@apollo/client/cache/inmemory/readFromStore.js +1 -1
  67. package/build/ext/@apollo/client/cache/inmemory/writeToStore.js +1 -1
  68. package/build/ext/@apollo/client/core/ApolloClient.js +1 -1
  69. package/build/ext/@apollo/client/core/LocalState.js +1 -1
  70. package/build/ext/@apollo/client/core/ObservableQuery.js +1 -1
  71. package/build/ext/@apollo/client/core/QueryManager.js +1 -1
  72. package/build/ext/@apollo/client/errors/index.js +1 -1
  73. package/build/ext/@apollo/client/ext/tslib/tslib.es6.js +15 -0
  74. package/build/ext/@apollo/client/link/context/index.js +1 -1
  75. package/build/ext/@apollo/client/link/core/ApolloLink.js +1 -1
  76. package/build/ext/@apollo/client/link/error/index.js +1 -1
  77. package/build/ext/@apollo/client/link/http/HttpLink.js +1 -1
  78. package/build/ext/@apollo/client/link/http/createHttpLink.js +1 -1
  79. package/build/ext/@apollo/client/link/http/selectHttpOptionsAndBody.js +1 -1
  80. package/build/ext/@apollo/client/link/utils/createOperation.js +1 -1
  81. package/build/ext/@apollo/client/utilities/common/mergeDeep.js +1 -1
  82. package/build/ext/@apollo/client/utilities/graphql/fragments.js +1 -1
  83. package/build/ext/@apollo/client/utilities/graphql/transform.js +1 -1
  84. package/build/ext/@apollo/client/utilities/observables/Concast.js +1 -1
  85. package/build/ext/ts-invariant/ext/tslib/tslib.es6.js +15 -0
  86. package/build/ext/ts-invariant/lib/invariant.esm.js +1 -1
  87. package/build/ext/tslib/tslib.es6.js +1 -1
  88. package/build/ikas.js +67 -2
  89. package/build/index.js +1 -1
  90. package/build/models/data/blog/index.js +1 -1
  91. package/build/models/data/brand/index.js +1 -1
  92. package/build/models/data/category/index.js +1 -1
  93. package/build/models/data/checkout/index.js +1 -1
  94. package/build/models/data/checkout-settings/index.d.ts +1 -1
  95. package/build/models/data/checkout-settings/index.js +1 -1
  96. package/build/models/data/customer/address/index.d.ts +4 -1
  97. package/build/models/data/customer/address/index.js +1 -1
  98. package/build/models/data/image/index.js +1 -1
  99. package/build/models/data/index.d.ts +1 -0
  100. package/build/models/data/language/index.d.ts +6 -0
  101. package/build/models/data/order/address/index.d.ts +2 -1
  102. package/build/models/data/order/address/index.js +1 -1
  103. package/build/models/data/order/line-item/variant/index.js +1 -1
  104. package/build/models/data/product/index.js +1 -1
  105. package/build/models/data/product-filter/index.js +1 -1
  106. package/build/models/data/product-option-set/index.d.ts +4 -0
  107. package/build/models/data/product-option-set/index.js +1 -1
  108. package/build/models/data/raffle/index.d.ts +1 -1
  109. package/build/models/data/raffle/index.js +1 -1
  110. package/build/models/data/slider/index.d.ts +5 -0
  111. package/build/models/data/slider/index.js +1 -0
  112. package/build/models/theme/component/index.d.ts +9 -0
  113. package/build/models/theme/component/index.js +1 -1
  114. package/build/models/theme/component/prop/index.d.ts +21 -0
  115. package/build/models/theme/component/prop/index.js +1 -1
  116. package/build/models/theme/custom-data/index.d.ts +20 -1
  117. package/build/models/theme/custom-data/index.js +1 -1
  118. package/build/models/theme/settings/color/index.d.ts +14 -0
  119. package/build/models/theme/settings/color/index.js +1 -0
  120. package/build/models/theme/settings/{prop/favicon → favicon}/index.d.ts +0 -0
  121. package/build/models/theme/settings/{prop/favicon → favicon}/index.js +0 -0
  122. package/build/models/theme/settings/font-family/index.d.ts +5 -0
  123. package/build/models/theme/settings/font-family/index.js +1 -0
  124. package/build/models/theme/settings/index.d.ts +4 -2
  125. package/build/models/theme/settings/index.js +1 -1
  126. package/build/models/ui/product-detail/index.js +1 -1
  127. package/build/models/ui/product-list/index.d.ts +1 -1
  128. package/build/models/ui/product-list/index.js +1 -1
  129. package/build/models/ui/validator/form/account-info.js +1 -1
  130. package/build/models/ui/validator/form/address.js +1 -1
  131. package/build/models/ui/validator/form/register.js +1 -1
  132. package/build/pages/checkout.js +1 -1
  133. package/build/pages/editor.d.ts +4 -3
  134. package/build/pages/editor.js +1 -1
  135. package/build/providers/page-data-get.d.ts +1 -1
  136. package/build/providers/page-data-get.js +1 -1
  137. package/build/providers/page-data-init.d.ts +3 -1
  138. package/build/providers/page-data-init.js +1 -1
  139. package/build/providers/page-data-next.d.ts +2 -1
  140. package/build/providers/page-data-next.js +1 -1
  141. package/build/providers/prop-value/custom.d.ts +1 -0
  142. package/build/providers/prop-value/custom.js +1 -1
  143. package/build/providers/prop-value/slider.d.ts +11 -0
  144. package/build/providers/prop-value/slider.js +1 -0
  145. package/build/scripts/generators/components/index.js +1 -1
  146. package/build/scripts/generators/config/content.d.ts +2 -3
  147. package/build/scripts/generators/config/content.js +1 -1
  148. package/build/scripts/generators/config/index.js +1 -1
  149. package/build/scripts/generators/index.d.ts +1 -0
  150. package/build/scripts/generators/pages/index.js +1 -1
  151. package/build/scripts/generators/store/index.js +1 -1
  152. package/build/scripts/generators/theme/index.js +1 -1
  153. package/build/scripts/generators/types/index.d.ts +15 -0
  154. package/build/scripts/generators/types/index.js +1 -0
  155. package/build/store/cart.d.ts +6 -7
  156. package/build/store/cart.js +1 -1
  157. package/build/store/customer.d.ts +19 -0
  158. package/build/store/customer.js +1 -1
  159. package/build/storefront/index.d.ts +5 -3
  160. package/build/storefront/index.js +1 -1
  161. package/build/utils/fs.js +1 -1
  162. package/build/utils/google-fonts.d.ts +2 -0
  163. package/build/utils/google-fonts.js +1 -0
  164. package/package.json +9 -9
  165. package/build/models/theme/settings/prop/color/index.d.ts +0 -7
  166. package/build/models/theme/settings/prop/color/index.js +0 -1
@@ -1 +1 @@
1
- import{__awaiter as n,__generator as e,__makeTemplateObject as t}from'../../ext/tslib/tslib.es6.js';import i from'../../ext/graphql-tag/src/index.js';import{apollo as a}from"../apollo.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import{IkasCheckout as r}from"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import{IkasOrder as o}from"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"mobx";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{IkasPaymentGateway as d}from"../../models/data/payment-gateway/index.js";import{IkasStorefrontConfig as s}from"../../storefront/index.js";import{IkasCheckoutSettings as c}from"../../models/data/checkout-settings/index.js";var u,l,m,p,g,h,y,I,f,v,C=function(){function C(){}return C.getCheckoutId=function(r){return n(this,void 0,void 0,(function(){var n,o,d,s,c;return e(this,(function(e){switch(e.label){case 0:n=i(u||(u=t(["\n query getCheckoutByCartId($cartId: String!) {\n getCheckoutByCartId(cartId: $cartId) {\n id\n }\n }\n "],["\n query getCheckoutByCartId($cartId: String!) {\n getCheckoutByCartId(cartId: $cartId) {\n id\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().query({query:n,variables:{cartId:r}})];case 2:return o=e.sent(),d=o.data,(s=o.errors)&&s.length&&console.log(s),d?[2,d.getCheckoutByCartId.id]:[3,4];case 3:return c=e.sent(),console.log(c),[3,4];case 4:return[2]}}))}))},C.getCheckoutById=function(o){return n(this,void 0,void 0,(function(){var n,d,s,c,u;return e(this,(function(e){switch(e.label){case 0:n=i(l||(l=t(["\n query getCheckoutById($id: String!) {\n getCheckoutById(id: $id) {\n totalFinalPrice\n note\n availableShippingMethods {\n price\n rateName\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n }\n billingAddress {\n id\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n code\n id\n name\n iso2\n iso3\n }\n district {\n code\n id\n name\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n code\n id\n name\n }\n taxNumber\n taxOffice\n }\n cartId\n couponCode\n createdAt\n customer {\n email\n firstName\n id\n lastName\n notificationsAccepted\n }\n deleted\n id\n merchantId\n orderId\n orderNumber\n recoverEmailStatus\n recoveryStatus\n shippingAddress {\n id\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n id\n code\n name\n iso2\n iso3\n }\n district {\n name\n id\n code\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n name\n id\n code\n }\n taxNumber\n taxOffice\n }\n shippingLines {\n title\n taxValue\n price\n shippingSettingsId\n shippingZoneRateId\n }\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n status\n updatedAt\n cart {\n createdAt\n currencyCode\n customerId\n dueDate\n id\n itemCount\n taxLines {\n price\n rate\n }\n items {\n createdAt\n currencyCode\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n deleted\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n slug\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n options {\n name\n productOptionId\n productOptionsSetId\n type\n values {\n name\n price\n value\n }\n }\n }\n merchantId\n status\n totalPrice\n updatedAt\n }\n adjustments {\n amount\n amountType\n name\n order\n type\n couponId\n appliedOrderLines {\n amount\n appliedQuantity\n orderLineId\n }\n }\n giftPackageLines {\n price\n taxValue\n }\n isGiftPackage\n giftPackageNote\n }\n }\n "],["\n query getCheckoutById($id: String!) {\n getCheckoutById(id: $id) {\n totalFinalPrice\n note\n availableShippingMethods {\n price\n rateName\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n }\n billingAddress {\n id\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n code\n id\n name\n iso2\n iso3\n }\n district {\n code\n id\n name\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n code\n id\n name\n }\n taxNumber\n taxOffice\n }\n cartId\n couponCode\n createdAt\n customer {\n email\n firstName\n id\n lastName\n notificationsAccepted\n }\n deleted\n id\n merchantId\n orderId\n orderNumber\n recoverEmailStatus\n recoveryStatus\n shippingAddress {\n id\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n id\n code\n name\n iso2\n iso3\n }\n district {\n name\n id\n code\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n name\n id\n code\n }\n taxNumber\n taxOffice\n }\n shippingLines {\n title\n taxValue\n price\n shippingSettingsId\n shippingZoneRateId\n }\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n status\n updatedAt\n cart {\n createdAt\n currencyCode\n customerId\n dueDate\n id\n itemCount\n taxLines {\n price\n rate\n }\n items {\n createdAt\n currencyCode\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n deleted\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n slug\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n options {\n name\n productOptionId\n productOptionsSetId\n type\n values {\n name\n price\n value\n }\n }\n }\n merchantId\n status\n totalPrice\n updatedAt\n }\n adjustments {\n amount\n amountType\n name\n order\n type\n couponId\n appliedOrderLines {\n amount\n appliedQuantity\n orderLineId\n }\n }\n giftPackageLines {\n price\n taxValue\n }\n isGiftPackage\n giftPackageNote\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().query({query:n,variables:{id:o}})];case 2:return d=e.sent(),s=d.data,(c=d.errors)&&c.length&&console.log(c),s?[2,new r(s.getCheckoutById)]:[3,4];case 3:return u=e.sent(),console.log(u),[3,4];case 4:return[2]}}))}))},C.getOrder=function(r){return n(this,void 0,void 0,(function(){var n,d,s;return e(this,(function(e){switch(e.label){case 0:n=i(m||(m=t(["\n query getOrder($orderId: String!) {\n getOrder(orderId: $orderId) {\n billingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n name\n id\n code\n }\n district {\n name\n id\n code\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n name\n id\n code\n }\n taxNumber\n taxOffice\n }\n cancelledAt\n cancelReason\n createdAt\n currencyCode\n currencyRates {\n rate\n originalRate\n code\n }\n customer {\n lastName\n firstName\n email\n id\n }\n deleted\n id\n merchantId\n note\n orderedAt\n orderAdjustments {\n type\n order\n name\n amountType\n amount\n }\n orderLineItems {\n createdAt\n currencyCode\n deleted\n discount {\n reason\n amountType\n amount\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n variantValues {\n variantValueName\n variantValueId\n variantTypeName\n variantTypeId\n order\n }\n }\n options {\n name\n productOptionId\n productOptionsSetId\n type\n values {\n name\n price\n value\n }\n }\n }\n orderNumber\n orderPackages {\n updatedAt\n trackingInfo {\n trackingNumber\n trackingLink\n isSendNotification\n cargoCompany\n }\n stockLocationId\n orderPackageNumber\n orderPackageFulfillStatus\n orderLineItemIds\n id\n deleted\n createdAt\n }\n orderPackageStatus\n orderPaymentStatus\n orderTagIds\n shippingAddress {\n taxOffice\n taxNumber\n state {\n name\n id\n code\n }\n postalCode\n phone\n lastName\n isDefault\n identityNumber\n firstName\n district {\n name\n id\n code\n }\n country {\n name\n id\n code\n }\n company\n city {\n id\n code\n name\n }\n addressLine2\n addressLine1\n }\n shippingLines {\n title\n taxValue\n price\n }\n shippingMethod\n status\n taxLines {\n rate\n price\n }\n totalFinalPrice\n totalPrice\n updatedAt\n }\n }\n "],["\n query getOrder($orderId: String!) {\n getOrder(orderId: $orderId) {\n billingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n name\n id\n code\n }\n district {\n name\n id\n code\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n name\n id\n code\n }\n taxNumber\n taxOffice\n }\n cancelledAt\n cancelReason\n createdAt\n currencyCode\n currencyRates {\n rate\n originalRate\n code\n }\n customer {\n lastName\n firstName\n email\n id\n }\n deleted\n id\n merchantId\n note\n orderedAt\n orderAdjustments {\n type\n order\n name\n amountType\n amount\n }\n orderLineItems {\n createdAt\n currencyCode\n deleted\n discount {\n reason\n amountType\n amount\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n variantValues {\n variantValueName\n variantValueId\n variantTypeName\n variantTypeId\n order\n }\n }\n options {\n name\n productOptionId\n productOptionsSetId\n type\n values {\n name\n price\n value\n }\n }\n }\n orderNumber\n orderPackages {\n updatedAt\n trackingInfo {\n trackingNumber\n trackingLink\n isSendNotification\n cargoCompany\n }\n stockLocationId\n orderPackageNumber\n orderPackageFulfillStatus\n orderLineItemIds\n id\n deleted\n createdAt\n }\n orderPackageStatus\n orderPaymentStatus\n orderTagIds\n shippingAddress {\n taxOffice\n taxNumber\n state {\n name\n id\n code\n }\n postalCode\n phone\n lastName\n isDefault\n identityNumber\n firstName\n district {\n name\n id\n code\n }\n country {\n name\n id\n code\n }\n company\n city {\n id\n code\n name\n }\n addressLine2\n addressLine1\n }\n shippingLines {\n title\n taxValue\n price\n }\n shippingMethod\n status\n taxLines {\n rate\n price\n }\n totalFinalPrice\n totalPrice\n updatedAt\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().query({query:n,variables:{orderId:r}})];case 2:return d=e.sent(),(s=d.data)&&s.getOrder?[2,new o(s.getOrder)]:[3,4];case 3:return e.sent(),[3,4];case 4:return[2]}}))}))},C.saveCheckout=function(r){var o,d,s,c;return n(this,void 0,void 0,(function(){var n,u,l,m,g;return e(this,(function(e){switch(e.label){case 0:n=i(p||(p=t(["\n mutation saveCheckout($input: SaveCheckoutInput!) {\n saveCheckout(input: $input) {\n id\n }\n }\n "],["\n mutation saveCheckout($input: SaveCheckoutInput!) {\n saveCheckout(input: $input) {\n id\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().mutate({mutation:n,variables:{input:{id:r.id,cartId:r.cartId,shippingMethod:r.shippingMethod,shippingSettingsId:r.shippingSettingsId,shippingZoneRateId:r.shippingZoneRateId,billingAddress:r.billingAddress&&r.billingAddress.addressLine1?{id:r.billingAddress.id,addressLine1:r.billingAddress.addressLine1||"",addressLine2:r.billingAddress.addressLine2||null,city:r.billingAddress.city,country:r.billingAddress.country,state:r.billingAddress.state,district:r.billingAddress.district||null,firstName:r.billingAddress.firstName,lastName:r.billingAddress.lastName,postalCode:r.billingAddress.postalCode,company:r.billingAddress.company||null,phone:r.billingAddress.phone||null,taxNumber:r.billingAddress.taxNumber||null,taxOffice:r.billingAddress.taxOffice||null,isDefault:r.billingAddress.isDefault||!1,identityNumber:r.billingAddress.identityNumber||null}:null,shippingAddress:r.shippingAddress&&r.shippingAddress.addressLine1?{id:r.shippingAddress.id,addressLine1:r.shippingAddress.addressLine1||"",addressLine2:r.shippingAddress.addressLine2||null,city:r.shippingAddress.city,country:r.shippingAddress.country,state:r.shippingAddress.state,district:r.shippingAddress.district||null,firstName:r.shippingAddress.firstName,lastName:r.shippingAddress.lastName,postalCode:r.shippingAddress.postalCode,company:r.shippingAddress.company||null,phone:r.shippingAddress.phone||null,taxNumber:r.shippingAddress.taxNumber||null,taxOffice:r.shippingAddress.taxOffice||null,isDefault:r.shippingAddress.isDefault||!1,identityNumber:r.shippingAddress.identityNumber||null}:null,couponCode:r.couponCode||null,customer:r.customer?{id:null===(o=r.customer)||void 0===o?void 0:o.id,email:null===(d=r.customer)||void 0===d?void 0:d.email,firstName:null===(s=r.customer)||void 0===s?void 0:s.firstName,lastName:null===(c=r.customer)||void 0===c?void 0:c.lastName,notificationsAccepted:r.customer.notificationsAccepted||!1}:null,note:r.note,isGiftPackage:r.isGiftPackage,giftPackageNote:r.giftPackageNote}}})];case 2:return u=e.sent(),l=u.data,m=u.errors,[2,{data:(null==l?void 0:l.saveCheckout.id)||void 0,errors:m}];case 3:return g=e.sent(),console.log(g),g&&g.graphQLErrors?[2,{data:void 0,errors:g.graphQLErrors}]:[3,4];case 4:return[2]}}))}))},C.createSaleTransactionWithCheckout=function(r,o,d){return n(this,void 0,void 0,(function(){var n,s,c,u,l;return e(this,(function(e){switch(e.label){case 0:n=i(g||(g=t(["\n mutation createSaleTransactionWithCheckout(\n $input: CreateSaleTransactionWithCheckoutInput!\n ) {\n createSaleTransactionWithCheckout(input: $input) {\n orderId\n orderNumber\n transactionId\n transactionStatus\n returnSlug\n error {\n code\n declineCode\n message\n }\n }\n }\n "],["\n mutation createSaleTransactionWithCheckout(\n $input: CreateSaleTransactionWithCheckoutInput!\n ) {\n createSaleTransactionWithCheckout(input: $input) {\n orderId\n orderNumber\n transactionId\n transactionStatus\n returnSlug\n error {\n code\n declineCode\n message\n }\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().mutate({mutation:n,variables:{input:{checkoutId:r,paymentGatewayId:o,paymentMethodDetail:d}}})];case 2:return s=e.sent(),c=s.data,(u=s.errors)&&u.length?[2]:c?[2,c.createSaleTransactionWithCheckout]:[3,4];case 3:return l=e.sent(),console.log(l),[3,4];case 4:return[2]}}))}))},C.listPaymentGateway=function(r){return n(this,void 0,void 0,(function(){var n,o,c,u,l;return e(this,(function(e){switch(e.label){case 0:n=i(h||(h=t(["\n query listPaymentGateway($id: StringFilterInput, $locale: String) {\n listPaymentGateway(id: $id, locale: $locale) {\n paymentMethods {\n name\n logoUrl\n }\n paymentMethodType\n id\n name\n description\n testMode\n code\n type\n logoUrl\n additionalPrices {\n amount\n amountType\n name\n type\n }\n translations {\n description\n locale\n name\n }\n supportedCurrencies\n availableCountries\n }\n }\n "],["\n query listPaymentGateway($id: StringFilterInput, $locale: String) {\n listPaymentGateway(id: $id, locale: $locale) {\n paymentMethods {\n name\n logoUrl\n }\n paymentMethodType\n id\n name\n description\n testMode\n code\n type\n logoUrl\n additionalPrices {\n amount\n amountType\n name\n type\n }\n translations {\n description\n locale\n name\n }\n supportedCurrencies\n availableCountries\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().query({query:n,variables:{id:r?{in:r}:void 0,locale:s.getCurrentLocale()}})];case 2:return o=e.sent(),c=o.data,(u=o.errors)&&u.length&&console.log(u),c?[2,c.listPaymentGateway.map((function(n){return new d(n)}))]:[3,4];case 3:return l=e.sent(),console.log(l),[3,4];case 4:return[2]}}))}))},C.retrieveInstallmentInfo=function(r){return n(this,void 0,void 0,(function(){var n,o,d,s,c;return e(this,(function(e){switch(e.label){case 0:n=i(y||(y=t(["\n mutation retrieveInstallmentInfo($input: RetrieveInstallmentInfoInput!) {\n retrieveInstallmentInfo(input: $input) {\n bankName\n binNumber\n cardAssociation\n cardFamily\n cardType\n installmentPrices {\n totalPrice\n installmentPrice\n installmentCount\n }\n price\n }\n }\n "],["\n mutation retrieveInstallmentInfo($input: RetrieveInstallmentInfoInput!) {\n retrieveInstallmentInfo(input: $input) {\n bankName\n binNumber\n cardAssociation\n cardFamily\n cardType\n installmentPrices {\n totalPrice\n installmentPrice\n installmentCount\n }\n price\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().mutate({mutation:n,variables:{input:r}})];case 2:return o=e.sent(),d=o.data,(s=o.errors)&&s.length&&console.log(s),d?[2,d.retrieveInstallmentInfo]:[3,4];case 3:return c=e.sent(),console.log(c),[3,4];case 4:return[2]}}))}))},C.checkStocks=function(r,o){return n(this,void 0,void 0,(function(){var n,d,s,c,u;return e(this,(function(e){switch(e.label){case 0:n=i(I||(I=t(["\n query checkStocks(\n $lines: [CheckStocksLineInput!]!\n $stockLocationIdList: [String!]\n ) {\n checkStocks(lines: $lines, stockLocationIdList: $stockLocationIdList) {\n lines {\n stockCount\n isAvailable\n variantId\n }\n }\n }\n "],["\n query checkStocks(\n $lines: [CheckStocksLineInput!]!\n $stockLocationIdList: [String!]\n ) {\n checkStocks(lines: $lines, stockLocationIdList: $stockLocationIdList) {\n lines {\n stockCount\n isAvailable\n variantId\n }\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().query({query:n,variables:{lines:r,stockLocationIdList:o.length?o:null}})];case 2:return d=e.sent(),s=d.data,(c=d.errors)&&c.length&&console.log(c),s?[2,s.checkStocks]:[3,4];case 3:return u=e.sent(),console.log(u),[3,4];case 4:return[2]}}))}))},C.listCheckoutSettings=function(){return n(this,void 0,void 0,(function(){var n,r,o,d,u;return e(this,(function(e){switch(e.label){case 0:n=i(f||(f=t(["\n query listCheckoutSettings($storefrontId: StringFilterInput!) {\n listCheckoutSettings(storefrontId: $storefrontId) {\n createdAt\n id\n identityNumberRequirement\n isAccountRequired\n isTermsAndConditionsDefaultChecked\n options {\n name\n required\n }\n phoneRequirement\n showCheckoutNote\n showTermsAndConditionsCheckbox\n storefrontId\n updatedAt\n isGiftPackageEnabled\n giftPackagePriceList {\n currencyCode\n price\n }\n isShowPostalCode\n }\n }\n "],["\n query listCheckoutSettings($storefrontId: StringFilterInput!) {\n listCheckoutSettings(storefrontId: $storefrontId) {\n createdAt\n id\n identityNumberRequirement\n isAccountRequired\n isTermsAndConditionsDefaultChecked\n options {\n name\n required\n }\n phoneRequirement\n showCheckoutNote\n showTermsAndConditionsCheckbox\n storefrontId\n updatedAt\n isGiftPackageEnabled\n giftPackagePriceList {\n currencyCode\n price\n }\n isShowPostalCode\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().query({query:n,variables:{storefrontId:{eq:s.storefrontId}}})];case 2:return r=e.sent(),o=r.data,(d=r.errors)&&d.length&&console.log(d),o?[2,o.listCheckoutSettings.map((function(n){return new c(n)}))]:[3,4];case 3:return u=e.sent(),console.log(u),[3,4];case 4:return[2]}}))}))},C.addCouponCodeToCheckout=function(r,o){return n(this,void 0,void 0,(function(){var n,d;return e(this,(function(e){switch(e.label){case 0:n=i(v||(v=t(["\n mutation addCouponCodeToCheckout(\n $checkoutId: String!\n $couponCode: String!\n ) {\n addCouponCodeToCheckout(\n checkoutId: $checkoutId\n couponCode: $couponCode\n ) {\n id\n }\n }\n "],["\n mutation addCouponCodeToCheckout(\n $checkoutId: String!\n $couponCode: String!\n ) {\n addCouponCodeToCheckout(\n checkoutId: $checkoutId\n couponCode: $couponCode\n ) {\n id\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().query({query:n,variables:{checkoutId:r,couponCode:o}})];case 2:return(d=e.sent().data)&&d.addCouponCodeToCheckout.id?[2,!0]:[3,4];case 3:return e.sent(),[3,4];case 4:return[2]}}))}))},C}();export{C as IkasCheckoutAPI};
1
+ import{__awaiter as n,__generator as e,__makeTemplateObject as t}from'../../ext/tslib/tslib.es6.js';import i from'../../ext/graphql-tag/src/index.js';import{apollo as a}from"../apollo.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import{IkasCheckout as r}from"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import{IkasOrder as o}from"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"mobx";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{IkasPaymentGateway as d}from"../../models/data/payment-gateway/index.js";import{IkasStorefrontConfig as s}from"../../storefront/index.js";import{IkasCheckoutSettings as c}from"../../models/data/checkout-settings/index.js";var u,l,m,p,g,h,y,I,f,v,C=function(){function C(){}return C.getCheckoutId=function(r){return n(this,void 0,void 0,(function(){var n,o,d,s,c;return e(this,(function(e){switch(e.label){case 0:n=i(u||(u=t(["\n query getCheckoutByCartId($cartId: String!) {\n getCheckoutByCartId(cartId: $cartId) {\n id\n }\n }\n "],["\n query getCheckoutByCartId($cartId: String!) {\n getCheckoutByCartId(cartId: $cartId) {\n id\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().query({query:n,variables:{cartId:r}})];case 2:return o=e.sent(),d=o.data,(s=o.errors)&&s.length&&console.log(s),d?[2,d.getCheckoutByCartId.id]:[3,4];case 3:return c=e.sent(),console.log(c),[3,4];case 4:return[2]}}))}))},C.getCheckoutById=function(o){return n(this,void 0,void 0,(function(){var n,d,s,c,u;return e(this,(function(e){switch(e.label){case 0:n=i(l||(l=t(["\n query getCheckoutById($id: String!) {\n getCheckoutById(id: $id) {\n totalFinalPrice\n note\n availableShippingMethods {\n price\n rateName\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n }\n billingAddress {\n id\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n code\n id\n name\n iso2\n iso3\n }\n district {\n code\n id\n name\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n code\n id\n name\n }\n taxNumber\n taxOffice\n }\n cartId\n couponCode\n createdAt\n customer {\n email\n firstName\n id\n lastName\n notificationsAccepted\n }\n deleted\n id\n merchantId\n orderId\n orderNumber\n recoverEmailStatus\n recoveryStatus\n shippingAddress {\n id\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n id\n code\n name\n iso2\n iso3\n }\n district {\n name\n id\n code\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n name\n id\n code\n }\n taxNumber\n taxOffice\n }\n shippingLines {\n title\n taxValue\n price\n shippingSettingsId\n shippingZoneRateId\n }\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n status\n updatedAt\n cart {\n createdAt\n currencyCode\n customerId\n dueDate\n id\n itemCount\n taxLines {\n price\n rate\n }\n items {\n createdAt\n currencyCode\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n deleted\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n slug\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n options {\n name\n productOptionId\n productOptionsSetId\n type\n values {\n name\n price\n value\n }\n }\n }\n merchantId\n status\n totalPrice\n updatedAt\n }\n adjustments {\n amount\n amountType\n name\n order\n type\n couponId\n appliedOrderLines {\n amount\n appliedQuantity\n orderLineId\n }\n }\n giftPackageLines {\n price\n taxValue\n }\n isGiftPackage\n giftPackageNote\n }\n }\n "],["\n query getCheckoutById($id: String!) {\n getCheckoutById(id: $id) {\n totalFinalPrice\n note\n availableShippingMethods {\n price\n rateName\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n }\n billingAddress {\n id\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n code\n id\n name\n iso2\n iso3\n }\n district {\n code\n id\n name\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n code\n id\n name\n }\n taxNumber\n taxOffice\n }\n cartId\n couponCode\n createdAt\n customer {\n email\n firstName\n id\n lastName\n notificationsAccepted\n }\n deleted\n id\n merchantId\n orderId\n orderNumber\n recoverEmailStatus\n recoveryStatus\n shippingAddress {\n id\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n id\n code\n name\n iso2\n iso3\n }\n district {\n name\n id\n code\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n name\n id\n code\n }\n taxNumber\n taxOffice\n }\n shippingLines {\n title\n taxValue\n price\n shippingSettingsId\n shippingZoneRateId\n }\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n status\n updatedAt\n cart {\n createdAt\n currencyCode\n customerId\n dueDate\n id\n itemCount\n taxLines {\n price\n rate\n }\n items {\n createdAt\n currencyCode\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n deleted\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n slug\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n options {\n name\n productOptionId\n productOptionsSetId\n type\n values {\n name\n price\n value\n }\n }\n }\n merchantId\n status\n totalPrice\n updatedAt\n }\n adjustments {\n amount\n amountType\n name\n order\n type\n couponId\n appliedOrderLines {\n amount\n appliedQuantity\n orderLineId\n }\n }\n giftPackageLines {\n price\n taxValue\n }\n isGiftPackage\n giftPackageNote\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().query({query:n,variables:{id:o}})];case 2:return d=e.sent(),s=d.data,(c=d.errors)&&c.length&&console.log(c),s?[2,new r(s.getCheckoutById)]:[3,4];case 3:return u=e.sent(),console.log(u),[3,4];case 4:return[2]}}))}))},C.getOrder=function(r){return n(this,void 0,void 0,(function(){var n,d,s;return e(this,(function(e){switch(e.label){case 0:n=i(m||(m=t(["\n query getOrder($orderId: String!) {\n getOrder(orderId: $orderId) {\n billingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n name\n id\n code\n }\n district {\n name\n id\n code\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n name\n id\n code\n }\n taxNumber\n taxOffice\n }\n cancelledAt\n cancelReason\n createdAt\n currencyCode\n currencyRates {\n rate\n originalRate\n code\n }\n customer {\n lastName\n firstName\n email\n id\n }\n deleted\n id\n merchantId\n note\n orderedAt\n orderAdjustments {\n type\n order\n name\n amountType\n amount\n }\n orderLineItems {\n createdAt\n currencyCode\n deleted\n discount {\n reason\n amountType\n amount\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n variantValues {\n variantValueName\n variantValueId\n variantTypeName\n variantTypeId\n order\n }\n }\n options {\n name\n productOptionId\n productOptionsSetId\n type\n values {\n name\n price\n value\n }\n }\n }\n orderNumber\n orderPackages {\n updatedAt\n trackingInfo {\n trackingNumber\n trackingLink\n isSendNotification\n cargoCompany\n }\n stockLocationId\n orderPackageNumber\n orderPackageFulfillStatus\n orderLineItemIds\n id\n deleted\n createdAt\n }\n orderPackageStatus\n orderPaymentStatus\n orderTagIds\n shippingAddress {\n taxOffice\n taxNumber\n state {\n name\n id\n code\n }\n postalCode\n phone\n lastName\n isDefault\n identityNumber\n firstName\n district {\n name\n id\n code\n }\n country {\n name\n id\n code\n }\n company\n city {\n id\n code\n name\n }\n addressLine2\n addressLine1\n }\n shippingLines {\n title\n taxValue\n price\n }\n shippingMethod\n status\n taxLines {\n rate\n price\n }\n totalFinalPrice\n totalPrice\n updatedAt\n }\n }\n "],["\n query getOrder($orderId: String!) {\n getOrder(orderId: $orderId) {\n billingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n name\n id\n code\n }\n district {\n name\n id\n code\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n name\n id\n code\n }\n taxNumber\n taxOffice\n }\n cancelledAt\n cancelReason\n createdAt\n currencyCode\n currencyRates {\n rate\n originalRate\n code\n }\n customer {\n lastName\n firstName\n email\n id\n }\n deleted\n id\n merchantId\n note\n orderedAt\n orderAdjustments {\n type\n order\n name\n amountType\n amount\n }\n orderLineItems {\n createdAt\n currencyCode\n deleted\n discount {\n reason\n amountType\n amount\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n variantValues {\n variantValueName\n variantValueId\n variantTypeName\n variantTypeId\n order\n }\n }\n options {\n name\n productOptionId\n productOptionsSetId\n type\n values {\n name\n price\n value\n }\n }\n }\n orderNumber\n orderPackages {\n updatedAt\n trackingInfo {\n trackingNumber\n trackingLink\n isSendNotification\n cargoCompany\n }\n stockLocationId\n orderPackageNumber\n orderPackageFulfillStatus\n orderLineItemIds\n id\n deleted\n createdAt\n }\n orderPackageStatus\n orderPaymentStatus\n orderTagIds\n shippingAddress {\n taxOffice\n taxNumber\n state {\n name\n id\n code\n }\n postalCode\n phone\n lastName\n isDefault\n identityNumber\n firstName\n district {\n name\n id\n code\n }\n country {\n name\n id\n code\n }\n company\n city {\n id\n code\n name\n }\n addressLine2\n addressLine1\n }\n shippingLines {\n title\n taxValue\n price\n }\n shippingMethod\n status\n taxLines {\n rate\n price\n }\n totalFinalPrice\n totalPrice\n updatedAt\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().query({query:n,variables:{orderId:r}})];case 2:return d=e.sent(),(s=d.data)&&s.getOrder?[2,new o(s.getOrder)]:[3,4];case 3:return e.sent(),[3,4];case 4:return[2]}}))}))},C.saveCheckout=function(r){var o,d,s,c;return n(this,void 0,void 0,(function(){var n,u,l,m,g;return e(this,(function(e){switch(e.label){case 0:n=i(p||(p=t(["\n mutation saveCheckout($input: SaveCheckoutInput!) {\n saveCheckout(input: $input) {\n id\n }\n }\n "],["\n mutation saveCheckout($input: SaveCheckoutInput!) {\n saveCheckout(input: $input) {\n id\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().mutate({mutation:n,variables:{input:{id:r.id,cartId:r.cartId,shippingMethod:r.shippingMethod,shippingSettingsId:r.shippingSettingsId,shippingZoneRateId:r.shippingZoneRateId,billingAddress:r.billingAddress&&r.billingAddress.addressLine1?{id:r.billingAddress.id,addressLine1:r.billingAddress.addressLine1||"",addressLine2:r.billingAddress.addressLine2||null,city:r.billingAddress.city,country:r.billingAddress.country,state:r.billingAddress.state,district:r.billingAddress.district||null,firstName:r.billingAddress.firstName,lastName:r.billingAddress.lastName,postalCode:r.billingAddress.postalCode,company:r.billingAddress.company||null,phone:r.billingAddress.phone||null,taxNumber:r.billingAddress.taxNumber||null,taxOffice:r.billingAddress.taxOffice||null,isDefault:r.billingAddress.isDefault||!1,identityNumber:r.billingAddress.identityNumber||null}:null,shippingAddress:r.shippingAddress&&r.shippingAddress.addressLine1?{id:r.shippingAddress.id,addressLine1:r.shippingAddress.addressLine1||"",addressLine2:r.shippingAddress.addressLine2||null,city:r.shippingAddress.city,country:r.shippingAddress.country,state:r.shippingAddress.state,district:r.shippingAddress.district||null,firstName:r.shippingAddress.firstName,lastName:r.shippingAddress.lastName,postalCode:r.shippingAddress.postalCode,company:r.shippingAddress.company||null,phone:r.shippingAddress.phone||null,taxNumber:r.shippingAddress.taxNumber||null,taxOffice:r.shippingAddress.taxOffice||null,isDefault:r.shippingAddress.isDefault||!1,identityNumber:r.shippingAddress.identityNumber||null}:null,couponCode:r.couponCode||null,customer:r.customer?{id:null===(o=r.customer)||void 0===o?void 0:o.id,email:null===(d=r.customer)||void 0===d?void 0:d.email,firstName:null===(s=r.customer)||void 0===s?void 0:s.firstName,lastName:null===(c=r.customer)||void 0===c?void 0:c.lastName,notificationsAccepted:r.customer.notificationsAccepted||!1}:null,note:r.note,isGiftPackage:r.isGiftPackage,giftPackageNote:r.giftPackageNote}}})];case 2:return u=e.sent(),l=u.data,m=u.errors,[2,{data:(null==l?void 0:l.saveCheckout.id)||void 0,errors:m}];case 3:return g=e.sent(),console.log(g),g&&g.graphQLErrors?[2,{data:void 0,errors:g.graphQLErrors}]:[3,4];case 4:return[2]}}))}))},C.createSaleTransactionWithCheckout=function(r,o,d){return n(this,void 0,void 0,(function(){var n,s,c,u,l;return e(this,(function(e){switch(e.label){case 0:n=i(g||(g=t(["\n mutation createSaleTransactionWithCheckout(\n $input: CreateSaleTransactionWithCheckoutInput!\n ) {\n createSaleTransactionWithCheckout(input: $input) {\n orderId\n orderNumber\n transactionId\n transactionStatus\n returnSlug\n error {\n code\n declineCode\n message\n }\n }\n }\n "],["\n mutation createSaleTransactionWithCheckout(\n $input: CreateSaleTransactionWithCheckoutInput!\n ) {\n createSaleTransactionWithCheckout(input: $input) {\n orderId\n orderNumber\n transactionId\n transactionStatus\n returnSlug\n error {\n code\n declineCode\n message\n }\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().mutate({mutation:n,variables:{input:{checkoutId:r,paymentGatewayId:o,paymentMethodDetail:d}}})];case 2:return s=e.sent(),c=s.data,(u=s.errors)&&u.length?[2]:c?[2,c.createSaleTransactionWithCheckout]:[3,4];case 3:return l=e.sent(),console.log(l),[3,4];case 4:return[2]}}))}))},C.listPaymentGateway=function(r){return n(this,void 0,void 0,(function(){var n,o,c,u,l;return e(this,(function(e){switch(e.label){case 0:n=i(h||(h=t(["\n query listPaymentGateway($id: StringFilterInput, $locale: String) {\n listPaymentGateway(id: $id, locale: $locale) {\n paymentMethods {\n name\n logoUrl\n }\n paymentMethodType\n id\n name\n description\n testMode\n code\n type\n logoUrl\n additionalPrices {\n amount\n amountType\n name\n type\n }\n translations {\n description\n locale\n name\n }\n supportedCurrencies\n availableCountries\n }\n }\n "],["\n query listPaymentGateway($id: StringFilterInput, $locale: String) {\n listPaymentGateway(id: $id, locale: $locale) {\n paymentMethods {\n name\n logoUrl\n }\n paymentMethodType\n id\n name\n description\n testMode\n code\n type\n logoUrl\n additionalPrices {\n amount\n amountType\n name\n type\n }\n translations {\n description\n locale\n name\n }\n supportedCurrencies\n availableCountries\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().query({query:n,variables:{id:r?{in:r}:void 0,locale:s.getCurrentLocale()}})];case 2:return o=e.sent(),c=o.data,(u=o.errors)&&u.length&&console.log(u),c?[2,c.listPaymentGateway.map((function(n){return new d(n)}))]:[3,4];case 3:return l=e.sent(),console.log(l),[3,4];case 4:return[2]}}))}))},C.retrieveInstallmentInfo=function(r){return n(this,void 0,void 0,(function(){var n,o,d,s,c;return e(this,(function(e){switch(e.label){case 0:n=i(y||(y=t(["\n mutation retrieveInstallmentInfo($input: RetrieveInstallmentInfoInput!) {\n retrieveInstallmentInfo(input: $input) {\n bankName\n binNumber\n cardAssociation\n cardFamily\n cardType\n installmentPrices {\n totalPrice\n installmentPrice\n installmentCount\n }\n price\n }\n }\n "],["\n mutation retrieveInstallmentInfo($input: RetrieveInstallmentInfoInput!) {\n retrieveInstallmentInfo(input: $input) {\n bankName\n binNumber\n cardAssociation\n cardFamily\n cardType\n installmentPrices {\n totalPrice\n installmentPrice\n installmentCount\n }\n price\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().mutate({mutation:n,variables:{input:r}})];case 2:return o=e.sent(),d=o.data,(s=o.errors)&&s.length&&console.log(s),d?[2,d.retrieveInstallmentInfo]:[3,4];case 3:return c=e.sent(),console.log(c),[3,4];case 4:return[2]}}))}))},C.checkStocks=function(r,o){return n(this,void 0,void 0,(function(){var n,d,s,c,u;return e(this,(function(e){switch(e.label){case 0:n=i(I||(I=t(["\n query checkStocks(\n $lines: [CheckStocksLineInput!]!\n $stockLocationIdList: [String!]\n ) {\n checkStocks(lines: $lines, stockLocationIdList: $stockLocationIdList) {\n lines {\n stockCount\n isAvailable\n variantId\n }\n }\n }\n "],["\n query checkStocks(\n $lines: [CheckStocksLineInput!]!\n $stockLocationIdList: [String!]\n ) {\n checkStocks(lines: $lines, stockLocationIdList: $stockLocationIdList) {\n lines {\n stockCount\n isAvailable\n variantId\n }\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().query({query:n,variables:{lines:r,stockLocationIdList:o.length?o:null}})];case 2:return d=e.sent(),s=d.data,(c=d.errors)&&c.length&&console.log(c),s?[2,s.checkStocks]:[3,4];case 3:return u=e.sent(),console.log(u),[3,4];case 4:return[2]}}))}))},C.listCheckoutSettings=function(){return n(this,void 0,void 0,(function(){var n,r,o,d,u;return e(this,(function(e){switch(e.label){case 0:n=i(f||(f=t(["\n query listCheckoutSettings($storefrontId: StringFilterInput!) {\n listCheckoutSettings(storefrontId: $storefrontId) {\n createdAt\n id\n identityNumberRequirement\n isAccountRequired\n isTermsAndConditionsDefaultChecked\n options {\n name\n required\n }\n phoneRequirement\n showCheckoutNote\n showTermsAndConditionsCheckbox\n storefrontId\n updatedAt\n isGiftPackageEnabled\n giftPackagePriceList {\n currencyCode\n price\n }\n postalCodeRequirement\n }\n }\n "],["\n query listCheckoutSettings($storefrontId: StringFilterInput!) {\n listCheckoutSettings(storefrontId: $storefrontId) {\n createdAt\n id\n identityNumberRequirement\n isAccountRequired\n isTermsAndConditionsDefaultChecked\n options {\n name\n required\n }\n phoneRequirement\n showCheckoutNote\n showTermsAndConditionsCheckbox\n storefrontId\n updatedAt\n isGiftPackageEnabled\n giftPackagePriceList {\n currencyCode\n price\n }\n postalCodeRequirement\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().query({query:n,variables:{storefrontId:{eq:s.storefrontId}}})];case 2:return r=e.sent(),o=r.data,(d=r.errors)&&d.length&&console.log(d),o?[2,o.listCheckoutSettings.map((function(n){return new c(n)}))]:[3,4];case 3:return u=e.sent(),console.log(u),[3,4];case 4:return[2]}}))}))},C.addCouponCodeToCheckout=function(r,o){return n(this,void 0,void 0,(function(){var n,d;return e(this,(function(e){switch(e.label){case 0:n=i(v||(v=t(["\n mutation addCouponCodeToCheckout(\n $checkoutId: String!\n $couponCode: String!\n ) {\n addCouponCodeToCheckout(\n checkoutId: $checkoutId\n couponCode: $couponCode\n ) {\n id\n }\n }\n "],["\n mutation addCouponCodeToCheckout(\n $checkoutId: String!\n $couponCode: String!\n ) {\n addCouponCodeToCheckout(\n checkoutId: $checkoutId\n couponCode: $couponCode\n ) {\n id\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().query({query:n,variables:{checkoutId:r,couponCode:o}})];case 2:return(d=e.sent().data)&&d.addCouponCodeToCheckout.id?[2,!0]:[3,4];case 3:return e.sent(),[3,4];case 4:return[2]}}))}))},C}();export{C as IkasCheckoutAPI};
@@ -250,14 +250,12 @@ export interface createOrderRefundRequest_createOrderRefundRequest_orderLineItem
250
250
  */
251
251
  discountPrice: number | null;
252
252
  /**
253
- * It is the final price of the order line item. If the discount price is less
254
- * than the sell price, the final price is equal to the discount price.
253
+ * It is the final price of the order line item. If the discount price is less than the sell price, the final price is equal to the discount price.
255
254
  */
256
255
  finalPrice: number | null;
257
256
  id: string;
258
257
  /**
259
- * It is the original order line item id of the line item. If the line item is
260
- * derived from another line item, this field is filled.
258
+ * It is the original order line item id of the line item. If the line item is derived from another line item, this field is filled.
261
259
  */
262
260
  originalOrderLineItemId: string | null;
263
261
  /**
@@ -301,8 +299,7 @@ export interface createOrderRefundRequest_createOrderRefundRequest_orderPackages
301
299
  */
302
300
  trackingLink: string | null;
303
301
  /**
304
- * Indicates whether the notification is sent to the customer after the cargo is
305
- * delivered. ***isSendNotification*** returns true if the notification is sent.
302
+ * Indicates whether the notification is sent to the customer after the cargo is delivered. **isSendNotification** returns true if the notification is sent.
306
303
  */
307
304
  isSendNotification: boolean | null;
308
305
  /**
@@ -507,8 +504,7 @@ export interface createOrderRefundRequest_createOrderRefundRequest {
507
504
  */
508
505
  currencyRates: createOrderRefundRequest_createOrderRefundRequest_currencyRates[];
509
506
  /**
510
- * Information about the customer. The order does not have to be a customer
511
- * information. If the order was created by ikasPOS, the customer information may be null.
507
+ * Information about the customer. The order does not have to be a customer information. If the order was created by ikasPOS, the customer information may be null.
512
508
  */
513
509
  customer: createOrderRefundRequest_createOrderRefundRequest_customer | null;
514
510
  deleted: boolean | null;
@@ -571,9 +567,7 @@ export interface createOrderRefundRequest_createOrderRefundRequest {
571
567
  */
572
568
  taxLines: createOrderRefundRequest_createOrderRefundRequest_taxLines[] | null;
573
569
  /**
574
- * The total final price of the order resulting from the apply of
575
- * ``orderAdjustments`` , ```shippingLines```, and ```giftPackageLines```
576
- * pricing to the order total price.
570
+ * The total final price of the order resulting from the apply of `orderAdjustments` , `shippingLines`, and `giftPackageLines` pricing to the order total price.
577
571
  */
578
572
  totalFinalPrice: number;
579
573
  /**
@@ -22,6 +22,14 @@ export interface customerLogin_customerLogin_customer_addresses_country {
22
22
  * The customer's normalized country name.
23
23
  */
24
24
  name: string;
25
+ /**
26
+ * The two-letter country code corresponding to the customer's country.
27
+ */
28
+ iso2: string | null;
29
+ /**
30
+ * The two-letter country code corresponding to the customer's country.
31
+ */
32
+ iso3: string | null;
25
33
  }
26
34
  export interface customerLogin_customerLogin_customer_addresses_district {
27
35
  __typename: "CustomerAddressDistrict";
@@ -77,7 +85,7 @@ export interface customerLogin_customerLogin_customer_addresses {
77
85
  */
78
86
  firstName: string;
79
87
  /**
80
- * Whether this address is the default address for the customer. Returns ```true``` for each default address.
88
+ * Whether this address is the default address for the customer. Returns `true` for each default address.
81
89
  */
82
90
  isDefault: boolean | null;
83
91
  /**
@@ -103,11 +111,11 @@ export interface customerLogin_customerLogin_customer {
103
111
  __typename: "Customer";
104
112
  id: string;
105
113
  /**
106
- * Email verification status. ***isEmailVerified*** returns ```true``` if the email is verified.
114
+ * Email verification status. **isEmailVerified** returns `true` if the email is verified.
107
115
  */
108
116
  isEmailVerified: boolean | null;
109
117
  /**
110
- * Phone verification status. ***isPhoneVerified*** returns ```true``` if the email is verified.
118
+ * Phone verification status. **isPhoneVerified** returns `true` if the email is verified.
111
119
  */
112
120
  isPhoneVerified: boolean | null;
113
121
  /**
@@ -127,8 +135,7 @@ export interface customerLogin_customerLogin_customer {
127
135
  */
128
136
  accountStatus: CustomerAccountStatusEnum | null;
129
137
  /**
130
- * The unique email address of the customer. Attempting to assign the same email
131
- * address to multiple customers returns an error.
138
+ * The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.
132
139
  */
133
140
  email: string | null;
134
141
  /**
@@ -0,0 +1,161 @@
1
+ import { CustomerAccountStatusEnum, CustomerEmailSubscriptionStatusesEnum } from "./../../../__generated__/global-types";
2
+ export interface customerSocialLogin_customerSocialLogin_customer_addresses_city {
3
+ __typename: "CustomerAddressCity";
4
+ /**
5
+ * The two-letter country code corresponding to the customer's country.
6
+ */
7
+ code: string | null;
8
+ id: string | null;
9
+ /**
10
+ * The customer's normalized city name.
11
+ */
12
+ name: string;
13
+ }
14
+ export interface customerSocialLogin_customerSocialLogin_customer_addresses_country {
15
+ __typename: "CustomerAddressCountry";
16
+ /**
17
+ * The two-letter country code corresponding to the customer's country.
18
+ */
19
+ code: string | null;
20
+ id: string | null;
21
+ /**
22
+ * The customer's normalized country name.
23
+ */
24
+ name: string;
25
+ /**
26
+ * The two-letter country code corresponding to the customer's country.
27
+ */
28
+ iso2: string | null;
29
+ /**
30
+ * The two-letter country code corresponding to the customer's country.
31
+ */
32
+ iso3: string | null;
33
+ }
34
+ export interface customerSocialLogin_customerSocialLogin_customer_addresses_district {
35
+ __typename: "CustomerAddressDistrict";
36
+ id: string | null;
37
+ /**
38
+ * The customer's normalized district name.
39
+ */
40
+ name: string | null;
41
+ /**
42
+ * The two-letter district code corresponding to the customer's district.
43
+ */
44
+ code: string | null;
45
+ }
46
+ export interface customerSocialLogin_customerSocialLogin_customer_addresses_state {
47
+ __typename: "CustomerAddressState";
48
+ name: string | null;
49
+ id: string | null;
50
+ code: string | null;
51
+ }
52
+ export interface customerSocialLogin_customerSocialLogin_customer_addresses {
53
+ __typename: "CustomerAddress";
54
+ /**
55
+ * The customer's mailing address.
56
+ */
57
+ addressLine1: string;
58
+ /**
59
+ * An additional field for the customer's mailing address.
60
+ */
61
+ addressLine2: string | null;
62
+ /**
63
+ * The customer's identity numbers.
64
+ */
65
+ identityNumber: string | null;
66
+ /**
67
+ * The customer's city.
68
+ */
69
+ city: customerSocialLogin_customerSocialLogin_customer_addresses_city;
70
+ /**
71
+ * The customer's company.
72
+ */
73
+ company: string | null;
74
+ /**
75
+ * The customer's country.
76
+ */
77
+ country: customerSocialLogin_customerSocialLogin_customer_addresses_country;
78
+ /**
79
+ * The customer's district in city.
80
+ */
81
+ district: customerSocialLogin_customerSocialLogin_customer_addresses_district | null;
82
+ id: string;
83
+ /**
84
+ * The customer's first name.
85
+ */
86
+ firstName: string;
87
+ /**
88
+ * Whether this address is the default address for the customer. Returns `true` for each default address.
89
+ */
90
+ isDefault: boolean | null;
91
+ /**
92
+ * The customer's last name.
93
+ */
94
+ lastName: string;
95
+ /**
96
+ * The customer's postal code, also known as zip, postcode, etc.
97
+ */
98
+ postalCode: string | null;
99
+ state: customerSocialLogin_customerSocialLogin_customer_addresses_state | null;
100
+ /**
101
+ * Tax number that the customer will use for orders
102
+ */
103
+ taxNumber: string | null;
104
+ /**
105
+ * If customer is corporate, customer can use that field to fill their Tax Office name.
106
+ */
107
+ taxOffice: string | null;
108
+ title: string;
109
+ }
110
+ export interface customerSocialLogin_customerSocialLogin_customer {
111
+ __typename: "Customer";
112
+ id: string;
113
+ /**
114
+ * Email verification status. **isEmailVerified** returns `true` if the email is verified.
115
+ */
116
+ isEmailVerified: boolean | null;
117
+ /**
118
+ * Phone verification status. **isPhoneVerified** returns `true` if the email is verified.
119
+ */
120
+ isPhoneVerified: boolean | null;
121
+ /**
122
+ * The customer's last name.
123
+ */
124
+ lastName: string | null;
125
+ /**
126
+ * A list of the ten most recently updated addresses for the customer.
127
+ */
128
+ addresses: customerSocialLogin_customerSocialLogin_customer_addresses[] | null;
129
+ /**
130
+ * The customer's phone number
131
+ */
132
+ phone: string | null;
133
+ /**
134
+ * CustomerAccountStatusEnum
135
+ */
136
+ accountStatus: CustomerAccountStatusEnum | null;
137
+ /**
138
+ * The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.
139
+ */
140
+ email: string | null;
141
+ /**
142
+ * The customer's first name.
143
+ */
144
+ firstName: string;
145
+ /**
146
+ * CustomerEmailSubscriptionStatusesEnum
147
+ */
148
+ subscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
149
+ }
150
+ export interface customerSocialLogin_customerSocialLogin {
151
+ __typename: "CustomerLoginResponse";
152
+ token: string;
153
+ tokenExpiry: number;
154
+ customer: customerSocialLogin_customerSocialLogin_customer | null;
155
+ }
156
+ export interface customerSocialLogin {
157
+ customerSocialLogin: customerSocialLogin_customerSocialLogin;
158
+ }
159
+ export interface customerSocialLoginVariables {
160
+ code: string;
161
+ }
@@ -276,14 +276,12 @@ export interface getCustomerOrders_getCustomerOrders_orderLineItems {
276
276
  */
277
277
  discountPrice: number | null;
278
278
  /**
279
- * It is the final price of the order line item. If the discount price is less
280
- * than the sell price, the final price is equal to the discount price.
279
+ * It is the final price of the order line item. If the discount price is less than the sell price, the final price is equal to the discount price.
281
280
  */
282
281
  finalPrice: number | null;
283
282
  id: string;
284
283
  /**
285
- * It is the original order line item id of the line item. If the line item is
286
- * derived from another line item, this field is filled.
284
+ * It is the original order line item id of the line item. If the line item is derived from another line item, this field is filled.
287
285
  */
288
286
  originalOrderLineItemId: string | null;
289
287
  /**
@@ -331,8 +329,7 @@ export interface getCustomerOrders_getCustomerOrders_orderPackages_trackingInfo
331
329
  */
332
330
  trackingLink: string | null;
333
331
  /**
334
- * Indicates whether the notification is sent to the customer after the cargo is
335
- * delivered. ***isSendNotification*** returns true if the notification is sent.
332
+ * Indicates whether the notification is sent to the customer after the cargo is delivered. **isSendNotification** returns true if the notification is sent.
336
333
  */
337
334
  isSendNotification: boolean | null;
338
335
  /**
@@ -537,8 +534,7 @@ export interface getCustomerOrders_getCustomerOrders {
537
534
  */
538
535
  currencyRates: getCustomerOrders_getCustomerOrders_currencyRates[];
539
536
  /**
540
- * Information about the customer. The order does not have to be a customer
541
- * information. If the order was created by ikasPOS, the customer information may be null.
537
+ * Information about the customer. The order does not have to be a customer information. If the order was created by ikasPOS, the customer information may be null.
542
538
  */
543
539
  customer: getCustomerOrders_getCustomerOrders_customer | null;
544
540
  deleted: boolean | null;
@@ -601,9 +597,7 @@ export interface getCustomerOrders_getCustomerOrders {
601
597
  */
602
598
  taxLines: getCustomerOrders_getCustomerOrders_taxLines[] | null;
603
599
  /**
604
- * The total final price of the order resulting from the apply of
605
- * ``orderAdjustments`` , ```shippingLines```, and ```giftPackageLines```
606
- * pricing to the order total price.
600
+ * The total final price of the order resulting from the apply of `orderAdjustments` , `shippingLines`, and `giftPackageLines` pricing to the order total price.
607
601
  */
608
602
  totalFinalPrice: number;
609
603
  /**
@@ -73,7 +73,7 @@ export interface getMyCustomer_getMyCustomer_addresses {
73
73
  */
74
74
  firstName: string;
75
75
  /**
76
- * Whether this address is the default address for the customer. Returns ```true``` for each default address.
76
+ * Whether this address is the default address for the customer. Returns `true` for each default address.
77
77
  */
78
78
  isDefault: boolean | null;
79
79
  /**
@@ -103,11 +103,11 @@ export interface getMyCustomer_getMyCustomer {
103
103
  __typename: "Customer";
104
104
  id: string;
105
105
  /**
106
- * Email verification status. ***isEmailVerified*** returns ```true``` if the email is verified.
106
+ * Email verification status. **isEmailVerified** returns `true` if the email is verified.
107
107
  */
108
108
  isEmailVerified: boolean | null;
109
109
  /**
110
- * Phone verification status. ***isPhoneVerified*** returns ```true``` if the email is verified.
110
+ * Phone verification status. **isPhoneVerified** returns `true` if the email is verified.
111
111
  */
112
112
  isPhoneVerified: boolean | null;
113
113
  /**
@@ -127,8 +127,7 @@ export interface getMyCustomer_getMyCustomer {
127
127
  */
128
128
  accountStatus: CustomerAccountStatusEnum | null;
129
129
  /**
130
- * The unique email address of the customer. Attempting to assign the same email
131
- * address to multiple customers returns an error.
130
+ * The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.
132
131
  */
133
132
  email: string | null;
134
133
  /**
@@ -22,6 +22,14 @@ export interface registerCustomer_registerCustomer_customer_addresses_country {
22
22
  * The customer's normalized country name.
23
23
  */
24
24
  name: string;
25
+ /**
26
+ * The two-letter country code corresponding to the customer's country.
27
+ */
28
+ iso2: string | null;
29
+ /**
30
+ * The two-letter country code corresponding to the customer's country.
31
+ */
32
+ iso3: string | null;
25
33
  }
26
34
  export interface registerCustomer_registerCustomer_customer_addresses_district {
27
35
  __typename: "CustomerAddressDistrict";
@@ -73,7 +81,7 @@ export interface registerCustomer_registerCustomer_customer_addresses {
73
81
  */
74
82
  firstName: string;
75
83
  /**
76
- * Whether this address is the default address for the customer. Returns ```true``` for each default address.
84
+ * Whether this address is the default address for the customer. Returns `true` for each default address.
77
85
  */
78
86
  isDefault: boolean | null;
79
87
  /**
@@ -99,11 +107,11 @@ export interface registerCustomer_registerCustomer_customer {
99
107
  __typename: "Customer";
100
108
  id: string;
101
109
  /**
102
- * Email verification status. ***isEmailVerified*** returns ```true``` if the email is verified.
110
+ * Email verification status. **isEmailVerified** returns `true` if the email is verified.
103
111
  */
104
112
  isEmailVerified: boolean | null;
105
113
  /**
106
- * Phone verification status. ***isPhoneVerified*** returns ```true``` if the email is verified.
114
+ * Phone verification status. **isPhoneVerified** returns `true` if the email is verified.
107
115
  */
108
116
  isPhoneVerified: boolean | null;
109
117
  /**
@@ -123,8 +131,7 @@ export interface registerCustomer_registerCustomer_customer {
123
131
  */
124
132
  accountStatus: CustomerAccountStatusEnum | null;
125
133
  /**
126
- * The unique email address of the customer. Attempting to assign the same email
127
- * address to multiple customers returns an error.
134
+ * The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.
128
135
  */
129
136
  email: string | null;
130
137
  /**
@@ -22,6 +22,14 @@ export interface saveMyCustomer_saveMyCustomer_addresses_country {
22
22
  * The customer's normalized country name.
23
23
  */
24
24
  name: string;
25
+ /**
26
+ * The two-letter country code corresponding to the customer's country.
27
+ */
28
+ iso2: string | null;
29
+ /**
30
+ * The two-letter country code corresponding to the customer's country.
31
+ */
32
+ iso3: string | null;
25
33
  }
26
34
  export interface saveMyCustomer_saveMyCustomer_addresses_district {
27
35
  __typename: "CustomerAddressDistrict";
@@ -73,7 +81,7 @@ export interface saveMyCustomer_saveMyCustomer_addresses {
73
81
  */
74
82
  firstName: string;
75
83
  /**
76
- * Whether this address is the default address for the customer. Returns ```true``` for each default address.
84
+ * Whether this address is the default address for the customer. Returns `true` for each default address.
77
85
  */
78
86
  isDefault: boolean | null;
79
87
  /**
@@ -107,11 +115,11 @@ export interface saveMyCustomer_saveMyCustomer {
107
115
  __typename: "Customer";
108
116
  id: string;
109
117
  /**
110
- * Email verification status. ***isEmailVerified*** returns ```true``` if the email is verified.
118
+ * Email verification status. **isEmailVerified** returns `true` if the email is verified.
111
119
  */
112
120
  isEmailVerified: boolean | null;
113
121
  /**
114
- * Phone verification status. ***isPhoneVerified*** returns ```true``` if the email is verified.
122
+ * Phone verification status. **isPhoneVerified** returns `true` if the email is verified.
115
123
  */
116
124
  isPhoneVerified: boolean | null;
117
125
  /**
@@ -131,8 +139,7 @@ export interface saveMyCustomer_saveMyCustomer {
131
139
  */
132
140
  accountStatus: CustomerAccountStatusEnum | null;
133
141
  /**
134
- * The unique email address of the customer. Attempting to assign the same email
135
- * address to multiple customers returns an error.
142
+ * The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.
136
143
  */
137
144
  email: string | null;
138
145
  /**
@@ -9,6 +9,11 @@ export declare class IkasCustomerAPI {
9
9
  token: string;
10
10
  tokenExpiry: number;
11
11
  } | undefined>;
12
+ static socialLogin(code: string): Promise<{
13
+ customer: IkasCustomer;
14
+ token: string;
15
+ tokenExpiry: number;
16
+ } | undefined>;
12
17
  static register(email: string, password: string, firstName: string, lastName: string, isAcceptMarketing?: boolean): Promise<{
13
18
  customer: IkasCustomer;
14
19
  __typename: "CustomerLoginResponse";