@ikas/storefront 3.0.0-alpha.48 → 3.0.0-alpha.50

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 (112) hide show
  1. package/build/__api/models/{MasterPassTokenResponse.d.ts → MasterpassTokenResponse.d.ts} +0 -0
  2. package/build/__api/models/MerchantAddress.d.ts +27 -0
  3. package/build/__api/models/MerchantAddress.js +1 -0
  4. package/build/__api/models/MerchantAddressCity.d.ts +11 -0
  5. package/build/__api/models/MerchantAddressCity.js +1 -0
  6. package/build/__api/models/MerchantAddressCountry.d.ts +11 -0
  7. package/build/__api/models/MerchantAddressCountry.js +1 -0
  8. package/build/__api/models/MerchantAddressDistrict.d.ts +11 -0
  9. package/build/__api/models/MerchantAddressDistrict.js +1 -0
  10. package/build/__api/models/MerchantAddressState.d.ts +11 -0
  11. package/build/__api/models/MerchantAddressState.js +1 -0
  12. package/build/__api/models/MerchantSettings.d.ts +3 -0
  13. package/build/__api/models/MerchantSettings.js +1 -1
  14. package/build/__api/models/Storefront.d.ts +1 -0
  15. package/build/__api/mutations/addCouponCodeToCheckout.d.ts +1 -1
  16. package/build/__api/mutations/addItemToCart.d.ts +1 -1
  17. package/build/__api/mutations/createCustomerEmailSubscription.d.ts +1 -1
  18. package/build/__api/mutations/createCustomerReview.d.ts +1 -1
  19. package/build/__api/mutations/createOrderRefundRequest.d.ts +1 -1
  20. package/build/__api/mutations/createSaleTransactionWithCart.d.ts +1 -1
  21. package/build/__api/mutations/createSaleTransactionWithCheckout.d.ts +1 -1
  22. package/build/__api/mutations/createStripePaymentIntent.d.ts +1 -1
  23. package/build/__api/mutations/customerLogin.d.ts +1 -1
  24. package/build/__api/mutations/customerRefreshToken.d.ts +1 -1
  25. package/build/__api/mutations/getOrderLineFile.d.ts +1 -1
  26. package/build/__api/mutations/registerCustomer.d.ts +1 -1
  27. package/build/__api/mutations/retrieveInstallmentInfo.d.ts +1 -1
  28. package/build/__api/mutations/saveCart.d.ts +1 -1
  29. package/build/__api/mutations/saveCartCouponCode.d.ts +1 -1
  30. package/build/__api/mutations/saveCheckout.d.ts +1 -1
  31. package/build/__api/mutations/saveItemToCart.d.ts +1 -1
  32. package/build/__api/mutations/saveLastViewedProducts.d.ts +1 -1
  33. package/build/__api/mutations/saveMyCustomer.d.ts +1 -1
  34. package/build/__api/mutations/saveProductBackInStockRemind.d.ts +1 -1
  35. package/build/__api/mutations/saveRaffleParticipant.d.ts +1 -1
  36. package/build/__api/mutations/updateCartCampaignOffer.d.ts +1 -1
  37. package/build/__api/mutations/updateRaffleParticipant.d.ts +1 -1
  38. package/build/__api/queries/checkCustomerEmail.d.ts +1 -1
  39. package/build/__api/queries/checkStocks.d.ts +1 -1
  40. package/build/__api/queries/customerSocialLogin.d.ts +1 -1
  41. package/build/__api/queries/getAvailableShippingCountries.d.ts +1 -1
  42. package/build/__api/queries/getAvailableStockLocations.d.ts +1 -1
  43. package/build/__api/queries/getCart.d.ts +1 -1
  44. package/build/__api/queries/getCartById.d.ts +1 -1
  45. package/build/__api/queries/getCheckoutByCartId.d.ts +1 -1
  46. package/build/__api/queries/getCheckoutById.d.ts +1 -1
  47. package/build/__api/queries/getCurrencyRate.d.ts +1 -1
  48. package/build/__api/queries/getCustomerOrders.d.ts +1 -1
  49. package/build/__api/queries/getLastViewedProducts.d.ts +1 -1
  50. package/build/__api/queries/getMasterpassRequestToken.d.ts +1 -1
  51. package/build/__api/queries/getMyCountry.d.ts +1 -1
  52. package/build/__api/queries/getMyCustomer.d.ts +1 -1
  53. package/build/__api/queries/getOrder.d.ts +1 -1
  54. package/build/__api/queries/getOrderByEmail.d.ts +1 -1
  55. package/build/__api/queries/getProductCampaigns.d.ts +1 -1
  56. package/build/__api/queries/getProductFilterData.d.ts +1 -1
  57. package/build/__api/queries/getProductOptionFileUrl.d.ts +1 -1
  58. package/build/__api/queries/getRaffleParticipants.d.ts +1 -1
  59. package/build/__api/queries/getRafflesByCustomerId.d.ts +1 -1
  60. package/build/__api/queries/getStorefront.d.ts +2 -1
  61. package/build/__api/queries/getStorefront.js +1 -1
  62. package/build/__api/queries/getVariantStockLocations.d.ts +1 -1
  63. package/build/__api/queries/listBlog.d.ts +1 -1
  64. package/build/__api/queries/listBlogCategory.d.ts +1 -1
  65. package/build/__api/queries/listBlogMetadata.d.ts +1 -1
  66. package/build/__api/queries/listCampaignOffer.d.ts +1 -1
  67. package/build/__api/queries/listCategory.d.ts +1 -1
  68. package/build/__api/queries/listCheckoutSettings.d.ts +1 -1
  69. package/build/__api/queries/listCity.d.ts +1 -1
  70. package/build/__api/queries/listCountry.d.ts +1 -1
  71. package/build/__api/queries/listCustomerAttribute.d.ts +1 -1
  72. package/build/__api/queries/listCustomerReviewSummary.d.ts +1 -1
  73. package/build/__api/queries/listCustomerReviews.d.ts +1 -1
  74. package/build/__api/queries/listDistrict.d.ts +1 -1
  75. package/build/__api/queries/listFavoriteProducts.d.ts +1 -1
  76. package/build/__api/queries/listHTMLMetaData.d.ts +1 -1
  77. package/build/__api/queries/listMerchantSettings.d.ts +24 -1
  78. package/build/__api/queries/listMerchantSettings.js +1 -1
  79. package/build/__api/queries/listOrderRefundSettings.d.ts +1 -1
  80. package/build/__api/queries/listOrderTransactions.d.ts +1 -1
  81. package/build/__api/queries/listPaymentGateway.d.ts +1 -1
  82. package/build/__api/queries/listProduct.d.ts +1 -1
  83. package/build/__api/queries/listProductAttribute.d.ts +1 -1
  84. package/build/__api/queries/listProductBackInStockRemind.d.ts +1 -1
  85. package/build/__api/queries/listProductBrand.d.ts +1 -1
  86. package/build/__api/queries/listProductOptionSet.d.ts +1 -1
  87. package/build/__api/queries/listProductStockLocation.d.ts +1 -1
  88. package/build/__api/queries/listRaffle.d.ts +1 -1
  89. package/build/__api/queries/listRaffleMetadata.d.ts +1 -1
  90. package/build/__api/queries/listState.d.ts +1 -1
  91. package/build/__api/queries/listStockLocation.d.ts +1 -1
  92. package/build/__api/queries/listTown.d.ts +1 -1
  93. package/build/__api/queries/listVariantType.d.ts +1 -1
  94. package/build/__api/queries/searchProducts.d.ts +1 -1
  95. package/build/__api/types/index.d.ts +43 -0
  96. package/build/__api/types/index.js +1 -1
  97. package/build/_virtual/index.js_commonjs-proxy13.js +1 -1
  98. package/build/_virtual/index.js_commonjs-proxy14.js +1 -1
  99. package/build/_virtual/index.js_commonjs-proxy2.js +1 -1
  100. package/build/_virtual/index.js_commonjs-proxy3.js +1 -1
  101. package/build/_virtual/index.js_commonjs-proxy4.js +1 -1
  102. package/build/components/checkout/components/offer-product/index.js +1 -1
  103. package/build/components/checkout/model.d.ts +4 -5
  104. package/build/components/checkout/model.js +1 -1
  105. package/build/components/page/head.js +1 -1
  106. package/build/ikas.cjs +1 -1
  107. package/build/models/ui/product-list/index.d.ts +1 -1
  108. package/build/store/checkout/index.d.ts +1 -1
  109. package/build/store/customer/api.d.ts +5 -5
  110. package/build/store/location/index.d.ts +1 -1
  111. package/build/store/product/index.d.ts +1 -1
  112. package/package.json +1 -1
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e}from'../../ext/tslib/tslib.es6.js';import{handleAPIError as i,APIResponse as _}from'../../ext/@ikas/fe-api-client/build/utils/api.js';import n from'../../ext/@ikas/fe-api-client/build/utils/fetch-query.js';var a,d=function(a,d,s){return t(void 0,void 0,void 0,(function(){var t,I,r,A;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,n({operationName:"getStorefront",config:s,variables:a,allReturnFields:o,fields:d,query:function(t){return"\n\t\t\t\tquery getStorefront (\n\t\t\t\t\t$id: String!,\n\t\t\t\t) {\n\t\t\t\t\tgetStorefront (\n\t\t\t\t\t\tid: $id,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),I=t.data,r=t.errors,[2,new _(null==I?void 0:I.getStorefront,r)];case 2:return A=e.sent(),[2,i(A)];case 3:return[2]}}))}))},o="{analytics4Id createdAt deleted domains {createdAt deleted id isDefault merchantDomainId name redirectDomainName updatedAt } emailSettingsId fbAccessToken fbpId gtmId id localizations {createdAt deleted id isDefault locale name updatedAt } mainStorefrontThemeId name pickUpStockLocationIds routings {countryCodes createdAt deleted domain dynamicCurrencySettings {roundingFormat targetCurrencyCode } id locale path priceListId updatedAt } salesChannelId socialLoginSettings {apiKey apiSecret provider } status themes {createdAt deleted id isMainTheme name status themeId themeVersionId updatedAt } tiktokPixelId universalAnalyticsId updatedAt }";!function(t){t.ANALYTICS4_ID="analytics4Id",t.CREATED_AT="createdAt",t.DELETED="deleted",t.DOMAINS__CREATED_AT="domains.createdAt",t.DOMAINS__DELETED="domains.deleted",t.DOMAINS__ID="domains.id",t.DOMAINS__IS_DEFAULT="domains.isDefault",t.DOMAINS__MERCHANT_DOMAIN_ID="domains.merchantDomainId",t.DOMAINS__NAME="domains.name",t.DOMAINS__REDIRECT_DOMAIN_NAME="domains.redirectDomainName",t.DOMAINS__UPDATED_AT="domains.updatedAt",t.EMAIL_SETTINGS_ID="emailSettingsId",t.FB_ACCESS_TOKEN="fbAccessToken",t.FBP_ID="fbpId",t.GTM_ID="gtmId",t.ID="id",t.LOCALIZATIONS__CREATED_AT="localizations.createdAt",t.LOCALIZATIONS__DELETED="localizations.deleted",t.LOCALIZATIONS__ID="localizations.id",t.LOCALIZATIONS__IS_DEFAULT="localizations.isDefault",t.LOCALIZATIONS__LOCALE="localizations.locale",t.LOCALIZATIONS__NAME="localizations.name",t.LOCALIZATIONS__UPDATED_AT="localizations.updatedAt",t.MAIN_STOREFRONT_THEME_ID="mainStorefrontThemeId",t.NAME="name",t.PICK_UP_STOCK_LOCATION_IDS="pickUpStockLocationIds",t.ROUTINGS__COUNTRY_CODES="routings.countryCodes",t.ROUTINGS__CREATED_AT="routings.createdAt",t.ROUTINGS__DELETED="routings.deleted",t.ROUTINGS__DOMAIN="routings.domain",t.ROUTINGS__DYNAMIC_CURRENCY_SETTINGS__ROUNDING_FORMAT="routings.dynamicCurrencySettings.roundingFormat",t.ROUTINGS__DYNAMIC_CURRENCY_SETTINGS__TARGET_CURRENCY_CODE="routings.dynamicCurrencySettings.targetCurrencyCode",t.ROUTINGS__ID="routings.id",t.ROUTINGS__LOCALE="routings.locale",t.ROUTINGS__PATH="routings.path",t.ROUTINGS__PRICE_LIST_ID="routings.priceListId",t.ROUTINGS__UPDATED_AT="routings.updatedAt",t.SALES_CHANNEL_ID="salesChannelId",t.SOCIAL_LOGIN_SETTINGS__API_KEY="socialLoginSettings.apiKey",t.SOCIAL_LOGIN_SETTINGS__API_SECRET="socialLoginSettings.apiSecret",t.SOCIAL_LOGIN_SETTINGS__PROVIDER="socialLoginSettings.provider",t.STATUS="status",t.THEMES__CREATED_AT="themes.createdAt",t.THEMES__DELETED="themes.deleted",t.THEMES__ID="themes.id",t.THEMES__IS_MAIN_THEME="themes.isMainTheme",t.THEMES__NAME="themes.name",t.THEMES__STATUS="themes.status",t.THEMES__THEME_ID="themes.themeId",t.THEMES__THEME_VERSION_ID="themes.themeVersionId",t.THEMES__UPDATED_AT="themes.updatedAt",t.TIKTOK_PIXEL_ID="tiktokPixelId",t.UNIVERSAL_ANALYTICS_ID="universalAnalyticsId",t.UPDATED_AT="updatedAt"}(a||(a={}));export{a as ResponseField,d as default};
1
+ import{__awaiter as t,__generator as e}from'../../ext/tslib/tslib.es6.js';import{handleAPIError as i,APIResponse as _}from'../../ext/@ikas/fe-api-client/build/utils/api.js';import n from'../../ext/@ikas/fe-api-client/build/utils/fetch-query.js';var a,d=function(a,d,s){return t(void 0,void 0,void 0,(function(){var t,I,r,A;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,n({operationName:"getStorefront",config:s,variables:a,allReturnFields:o,fields:d,query:function(t){return"\n\t\t\t\tquery getStorefront (\n\t\t\t\t\t$id: String!,\n\t\t\t\t) {\n\t\t\t\t\tgetStorefront (\n\t\t\t\t\t\tid: $id,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),I=t.data,r=t.errors,[2,new _(null==I?void 0:I.getStorefront,r)];case 2:return A=e.sent(),[2,i(A)];case 3:return[2]}}))}))},o="{analytics4Id createdAt deleted domains {createdAt deleted id isDefault merchantDomainId name redirectDomainName updatedAt } emailSettingsId fbAccessToken fbpId gtmId id localizations {createdAt deleted id isDefault locale name updatedAt } mainStorefrontThemeId name pickUpStockLocationIds routings {countryCodes createdAt deleted domain dynamicCurrencySettings {roundingFormat targetCurrencyCode } id locale path priceListId updatedAt } salesChannelId socialLoginSettings {apiKey apiSecret provider } status themes {createdAt deleted id isMainTheme name status themeId themeVersionId updatedAt } tiktokPixelId token universalAnalyticsId updatedAt }";!function(t){t.ANALYTICS4_ID="analytics4Id",t.CREATED_AT="createdAt",t.DELETED="deleted",t.DOMAINS__CREATED_AT="domains.createdAt",t.DOMAINS__DELETED="domains.deleted",t.DOMAINS__ID="domains.id",t.DOMAINS__IS_DEFAULT="domains.isDefault",t.DOMAINS__MERCHANT_DOMAIN_ID="domains.merchantDomainId",t.DOMAINS__NAME="domains.name",t.DOMAINS__REDIRECT_DOMAIN_NAME="domains.redirectDomainName",t.DOMAINS__UPDATED_AT="domains.updatedAt",t.EMAIL_SETTINGS_ID="emailSettingsId",t.FB_ACCESS_TOKEN="fbAccessToken",t.FBP_ID="fbpId",t.GTM_ID="gtmId",t.ID="id",t.LOCALIZATIONS__CREATED_AT="localizations.createdAt",t.LOCALIZATIONS__DELETED="localizations.deleted",t.LOCALIZATIONS__ID="localizations.id",t.LOCALIZATIONS__IS_DEFAULT="localizations.isDefault",t.LOCALIZATIONS__LOCALE="localizations.locale",t.LOCALIZATIONS__NAME="localizations.name",t.LOCALIZATIONS__UPDATED_AT="localizations.updatedAt",t.MAIN_STOREFRONT_THEME_ID="mainStorefrontThemeId",t.NAME="name",t.PICK_UP_STOCK_LOCATION_IDS="pickUpStockLocationIds",t.ROUTINGS__COUNTRY_CODES="routings.countryCodes",t.ROUTINGS__CREATED_AT="routings.createdAt",t.ROUTINGS__DELETED="routings.deleted",t.ROUTINGS__DOMAIN="routings.domain",t.ROUTINGS__DYNAMIC_CURRENCY_SETTINGS__ROUNDING_FORMAT="routings.dynamicCurrencySettings.roundingFormat",t.ROUTINGS__DYNAMIC_CURRENCY_SETTINGS__TARGET_CURRENCY_CODE="routings.dynamicCurrencySettings.targetCurrencyCode",t.ROUTINGS__ID="routings.id",t.ROUTINGS__LOCALE="routings.locale",t.ROUTINGS__PATH="routings.path",t.ROUTINGS__PRICE_LIST_ID="routings.priceListId",t.ROUTINGS__UPDATED_AT="routings.updatedAt",t.SALES_CHANNEL_ID="salesChannelId",t.SOCIAL_LOGIN_SETTINGS__API_KEY="socialLoginSettings.apiKey",t.SOCIAL_LOGIN_SETTINGS__API_SECRET="socialLoginSettings.apiSecret",t.SOCIAL_LOGIN_SETTINGS__PROVIDER="socialLoginSettings.provider",t.STATUS="status",t.THEMES__CREATED_AT="themes.createdAt",t.THEMES__DELETED="themes.deleted",t.THEMES__ID="themes.id",t.THEMES__IS_MAIN_THEME="themes.isMainTheme",t.THEMES__NAME="themes.name",t.THEMES__STATUS="themes.status",t.THEMES__THEME_ID="themes.themeId",t.THEMES__THEME_VERSION_ID="themes.themeVersionId",t.THEMES__UPDATED_AT="themes.updatedAt",t.TIKTOK_PIXEL_ID="tiktokPixelId",t.TOKEN="token",t.UNIVERSAL_ANALYTICS_ID="universalAnalyticsId",t.UPDATED_AT="updatedAt"}(a||(a={}));export{a as ResponseField,d as default};
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { GetVariantStockLocationListResponse } from "../types";
3
- declare const getVariantStockLocations: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<GetVariantStockLocationListResponse> | APIResponse<undefined>>;
3
+ declare const getVariantStockLocations: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<GetVariantStockLocationListResponse>>;
4
4
  export default getVariantStockLocations;
5
5
  export declare type QueryParams = {
6
6
  stockLocationIdList?: string[] | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, PaginationInput, DateFilterInput, BlogPaginationResponse } from "../types";
3
- declare const listBlog: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<BlogPaginationResponse> | APIResponse<undefined>>;
3
+ declare const listBlog: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<BlogPaginationResponse>>;
4
4
  export default listBlog;
5
5
  export declare type QueryParams = {
6
6
  categoryId?: StringFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, PaginationInput, DateFilterInput, BlogCategoryPaginationResponse } from "../types";
3
- declare const listBlogCategory: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<BlogCategoryPaginationResponse> | APIResponse<undefined>>;
3
+ declare const listBlogCategory: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<BlogCategoryPaginationResponse>>;
4
4
  export default listBlogCategory;
5
5
  export declare type QueryParams = {
6
6
  id?: StringFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, PaginationInput, BlogMetadataTargetTypeEnumFilter, DateFilterInput, BlogMetadataPaginationResponse } from "../types";
3
- declare const listBlogMetadata: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<BlogMetadataPaginationResponse> | APIResponse<undefined>>;
3
+ declare const listBlogMetadata: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<BlogMetadataPaginationResponse>>;
4
4
  export default listBlogMetadata;
5
5
  export declare type QueryParams = {
6
6
  id?: StringFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, CampaignOffer } from "../types";
3
- declare const listCampaignOffer: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<CampaignOffer[]> | APIResponse<undefined>>;
3
+ declare const listCampaignOffer: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<CampaignOffer[]>>;
4
4
  export default listCampaignOffer;
5
5
  export declare type QueryParams = {
6
6
  id?: StringFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { CategoryPathFilterInput, StringFilterInput, PaginationInput, DateFilterInput, CategoryPaginationResponse } from "../types";
3
- declare const listCategory: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<CategoryPaginationResponse> | APIResponse<undefined>>;
3
+ declare const listCategory: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<CategoryPaginationResponse>>;
4
4
  export default listCategory;
5
5
  export declare type QueryParams = {
6
6
  categoryPath?: CategoryPathFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, CheckoutSettings } from "../types";
3
- declare const listCheckoutSettings: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<CheckoutSettings[]> | APIResponse<undefined>>;
3
+ declare const listCheckoutSettings: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<CheckoutSettings[]>>;
4
4
  export default listCheckoutSettings;
5
5
  export declare type QueryParams = {
6
6
  id?: StringFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, DateFilterInput, City } from "../types";
3
- declare const listCity: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<City[]> | APIResponse<undefined>>;
3
+ declare const listCity: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<City[]>>;
4
4
  export default listCity;
5
5
  export declare type QueryParams = {
6
6
  countryId?: StringFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, DateFilterInput, Country } from "../types";
3
- declare const listCountry: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<Country[]> | APIResponse<undefined>>;
3
+ declare const listCountry: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<Country[]>>;
4
4
  export default listCountry;
5
5
  export declare type QueryParams = {
6
6
  id?: StringFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { CustomerAttribute } from "../types";
3
- declare const listCustomerAttribute: (fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<CustomerAttribute[]> | APIResponse<undefined>>;
3
+ declare const listCustomerAttribute: (fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<CustomerAttribute[]>>;
4
4
  export default listCustomerAttribute;
5
5
  export declare enum ResponseField {
6
6
  CREATED_AT = "createdAt",
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { PaginationInput, StringFilterInput, CustomerReviewSummaryPaginationResponse } from "../types";
3
- declare const listCustomerReviewSummary: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<CustomerReviewSummaryPaginationResponse> | APIResponse<undefined>>;
3
+ declare const listCustomerReviewSummary: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<CustomerReviewSummaryPaginationResponse>>;
4
4
  export default listCustomerReviewSummary;
5
5
  export declare type QueryParams = {
6
6
  pagination?: PaginationInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, ListCustomerReviewInput, PaginationInput, CustomerReviewSFPaginationResponse } from "../types";
3
- declare const listCustomerReviews: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<CustomerReviewSFPaginationResponse> | APIResponse<undefined>>;
3
+ declare const listCustomerReviews: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<CustomerReviewSFPaginationResponse>>;
4
4
  export default listCustomerReviews;
5
5
  export declare type QueryParams = {
6
6
  id?: StringFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, DateFilterInput, District } from "../types";
3
- declare const listDistrict: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<District[]> | APIResponse<undefined>>;
3
+ declare const listDistrict: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<District[]>>;
4
4
  export default listDistrict;
5
5
  export declare type QueryParams = {
6
6
  cityId: StringFilterInput;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { CustomerFavoriteProduct } from "../types";
3
- declare const listFavoriteProducts: (fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<CustomerFavoriteProduct[]> | APIResponse<undefined>>;
3
+ declare const listFavoriteProducts: (fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<CustomerFavoriteProduct[]>>;
4
4
  export default listFavoriteProducts;
5
5
  export declare enum ResponseField {
6
6
  CREATED_AT = "createdAt",
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, PaginationInput, HTMLMetaDataTargetTypeEnumFilter, HTMLMetaData } from "../types";
3
- declare const listHTMLMetaData: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<HTMLMetaData[]> | APIResponse<undefined>>;
3
+ declare const listHTMLMetaData: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<HTMLMetaData[]>>;
4
4
  export default listHTMLMetaData;
5
5
  export declare type QueryParams = {
6
6
  id?: StringFilterInput | null;
@@ -1,12 +1,34 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, MerchantSettings } from "../types";
3
- declare const listMerchantSettings: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<MerchantSettings[]> | APIResponse<undefined>>;
3
+ declare const listMerchantSettings: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<MerchantSettings[]>>;
4
4
  export default listMerchantSettings;
5
5
  export declare type QueryParams = {
6
6
  id?: StringFilterInput | null;
7
7
  merchantId?: StringFilterInput | null;
8
8
  };
9
9
  export declare enum ResponseField {
10
+ ADDRESS__ADDRESS_LINE1 = "address.addressLine1",
11
+ ADDRESS__ADDRESS_LINE2 = "address.addressLine2",
12
+ ADDRESS__CITY__CODE = "address.city.code",
13
+ ADDRESS__CITY__ID = "address.city.id",
14
+ ADDRESS__CITY__NAME = "address.city.name",
15
+ ADDRESS__COUNTRY__CODE = "address.country.code",
16
+ ADDRESS__COUNTRY__ID = "address.country.id",
17
+ ADDRESS__COUNTRY__NAME = "address.country.name",
18
+ ADDRESS__DISTRICT__CODE = "address.district.code",
19
+ ADDRESS__DISTRICT__ID = "address.district.id",
20
+ ADDRESS__DISTRICT__NAME = "address.district.name",
21
+ ADDRESS__FIRST_NAME = "address.firstName",
22
+ ADDRESS__IDENTITY_NUMBER = "address.identityNumber",
23
+ ADDRESS__LAST_NAME = "address.lastName",
24
+ ADDRESS__POSTAL_CODE = "address.postalCode",
25
+ ADDRESS__STATE__CODE = "address.state.code",
26
+ ADDRESS__STATE__ID = "address.state.id",
27
+ ADDRESS__STATE__NAME = "address.state.name",
28
+ ADDRESS__TAX_OFFICE = "address.taxOffice",
29
+ ADDRESS__TITLE = "address.title",
30
+ ADDRESS__TYPE = "address.type",
31
+ ADDRESS__VKN = "address.vkn",
10
32
  CREATED_AT = "createdAt",
11
33
  CURRENCY_FORMATS__CURRENCY_CODE = "currencyFormats.currencyCode",
12
34
  CURRENCY_FORMATS__DECIMAL_SEPARATOR = "currencyFormats.decimalSeparator",
@@ -19,5 +41,6 @@ export declare enum ResponseField {
19
41
  LOGO_ID = "logoId",
20
42
  MERCHANT_ID = "merchantId",
21
43
  MERCHANT_NAME = "merchantName",
44
+ PHONE = "phone",
22
45
  UPDATED_AT = "updatedAt"
23
46
  }
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e}from'../../ext/tslib/tslib.es6.js';import{handleAPIError as r,APIResponse as n}from'../../ext/@ikas/fe-api-client/build/utils/api.js';import a from'../../ext/@ikas/fe-api-client/build/utils/fetch-query.js';var o,i=function(o,i,c){return t(void 0,void 0,void 0,(function(){var t,d,u,l;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,a({operationName:"listMerchantSettings",config:c,variables:o,allReturnFields:s,fields:i,query:function(t){return"\n\t\t\t\tquery listMerchantSettings (\n\t\t\t\t\t$id: StringFilterInput,\n\t\t\t\t\t$merchantId: StringFilterInput,\n\t\t\t\t) {\n\t\t\t\t\tlistMerchantSettings (\n\t\t\t\t\t\tid: $id,\n\t\t\t\t\t\tmerchantId: $merchantId,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),d=t.data,u=t.errors,[2,new n(null==d?void 0:d.listMerchantSettings,u)];case 2:return l=e.sent(),[2,r(l)];case 3:return[2]}}))}))},s="{createdAt currencyFormats {currencyCode decimalSeparator omitZeroDecimal symbol symbolPosition thousandSeparator } deleted id logoId merchantId merchantName updatedAt }";!function(t){t.CREATED_AT="createdAt",t.CURRENCY_FORMATS__CURRENCY_CODE="currencyFormats.currencyCode",t.CURRENCY_FORMATS__DECIMAL_SEPARATOR="currencyFormats.decimalSeparator",t.CURRENCY_FORMATS__OMIT_ZERO_DECIMAL="currencyFormats.omitZeroDecimal",t.CURRENCY_FORMATS__SYMBOL="currencyFormats.symbol",t.CURRENCY_FORMATS__SYMBOL_POSITION="currencyFormats.symbolPosition",t.CURRENCY_FORMATS__THOUSAND_SEPARATOR="currencyFormats.thousandSeparator",t.DELETED="deleted",t.ID="id",t.LOGO_ID="logoId",t.MERCHANT_ID="merchantId",t.MERCHANT_NAME="merchantName",t.UPDATED_AT="updatedAt"}(o||(o={}));export{o as ResponseField,i as default};
1
+ import{__awaiter as t,__generator as e}from'../../ext/tslib/tslib.es6.js';import{handleAPIError as r,APIResponse as d}from'../../ext/@ikas/fe-api-client/build/utils/api.js';import s from'../../ext/@ikas/fe-api-client/build/utils/fetch-query.js';var a,_=function(a,_,i){return t(void 0,void 0,void 0,(function(){var t,S,o,D;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,s({operationName:"listMerchantSettings",config:i,variables:a,allReturnFields:n,fields:_,query:function(t){return"\n\t\t\t\tquery listMerchantSettings (\n\t\t\t\t\t$id: StringFilterInput,\n\t\t\t\t\t$merchantId: StringFilterInput,\n\t\t\t\t) {\n\t\t\t\t\tlistMerchantSettings (\n\t\t\t\t\t\tid: $id,\n\t\t\t\t\t\tmerchantId: $merchantId,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),S=t.data,o=t.errors,[2,new d(null==S?void 0:S.listMerchantSettings,o)];case 2:return D=e.sent(),[2,r(D)];case 3:return[2]}}))}))},n="{address {addressLine1 addressLine2 city {code id name } country {code id name } district {code id name } firstName identityNumber lastName postalCode state {code id name } taxOffice title type vkn } createdAt currencyFormats {currencyCode decimalSeparator omitZeroDecimal symbol symbolPosition thousandSeparator } deleted id logoId merchantId merchantName phone updatedAt }";!function(t){t.ADDRESS__ADDRESS_LINE1="address.addressLine1",t.ADDRESS__ADDRESS_LINE2="address.addressLine2",t.ADDRESS__CITY__CODE="address.city.code",t.ADDRESS__CITY__ID="address.city.id",t.ADDRESS__CITY__NAME="address.city.name",t.ADDRESS__COUNTRY__CODE="address.country.code",t.ADDRESS__COUNTRY__ID="address.country.id",t.ADDRESS__COUNTRY__NAME="address.country.name",t.ADDRESS__DISTRICT__CODE="address.district.code",t.ADDRESS__DISTRICT__ID="address.district.id",t.ADDRESS__DISTRICT__NAME="address.district.name",t.ADDRESS__FIRST_NAME="address.firstName",t.ADDRESS__IDENTITY_NUMBER="address.identityNumber",t.ADDRESS__LAST_NAME="address.lastName",t.ADDRESS__POSTAL_CODE="address.postalCode",t.ADDRESS__STATE__CODE="address.state.code",t.ADDRESS__STATE__ID="address.state.id",t.ADDRESS__STATE__NAME="address.state.name",t.ADDRESS__TAX_OFFICE="address.taxOffice",t.ADDRESS__TITLE="address.title",t.ADDRESS__TYPE="address.type",t.ADDRESS__VKN="address.vkn",t.CREATED_AT="createdAt",t.CURRENCY_FORMATS__CURRENCY_CODE="currencyFormats.currencyCode",t.CURRENCY_FORMATS__DECIMAL_SEPARATOR="currencyFormats.decimalSeparator",t.CURRENCY_FORMATS__OMIT_ZERO_DECIMAL="currencyFormats.omitZeroDecimal",t.CURRENCY_FORMATS__SYMBOL="currencyFormats.symbol",t.CURRENCY_FORMATS__SYMBOL_POSITION="currencyFormats.symbolPosition",t.CURRENCY_FORMATS__THOUSAND_SEPARATOR="currencyFormats.thousandSeparator",t.DELETED="deleted",t.ID="id",t.LOGO_ID="logoId",t.MERCHANT_ID="merchantId",t.MERCHANT_NAME="merchantName",t.PHONE="phone",t.UPDATED_AT="updatedAt"}(a||(a={}));export{a as ResponseField,_ as default};
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, DateFilterInput, OrderRefundSettings } from "../types";
3
- declare const listOrderRefundSettings: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<OrderRefundSettings[]> | APIResponse<undefined>>;
3
+ declare const listOrderRefundSettings: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<OrderRefundSettings[]>>;
4
4
  export default listOrderRefundSettings;
5
5
  export declare type QueryParams = {
6
6
  id?: StringFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, StorefrontTransaction } from "../types";
3
- declare const listOrderTransactions: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<StorefrontTransaction[]> | APIResponse<undefined>>;
3
+ declare const listOrderTransactions: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<StorefrontTransaction[]>>;
4
4
  export default listOrderTransactions;
5
5
  export declare type QueryParams = {
6
6
  checkoutId?: StringFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, PaginationInput, PaymentGateway } from "../types";
3
- declare const listPaymentGateway: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<PaymentGateway[]> | APIResponse<undefined>>;
3
+ declare const listPaymentGateway: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<PaymentGateway[]>>;
4
4
  export default listPaymentGateway;
5
5
  export declare type QueryParams = {
6
6
  id?: StringFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, CategoryFilterInput, PaginationInput, DateFilterInput, ProductPaginationResponse } from "../types";
3
- declare const listProduct: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<ProductPaginationResponse> | APIResponse<undefined>>;
3
+ declare const listProduct: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<ProductPaginationResponse>>;
4
4
  export default listProduct;
5
5
  export declare type QueryParams = {
6
6
  brandId?: StringFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, DateFilterInput, ProductAttribute } from "../types";
3
- declare const listProductAttribute: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<ProductAttribute[]> | APIResponse<undefined>>;
3
+ declare const listProductAttribute: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<ProductAttribute[]>>;
4
4
  export default listProductAttribute;
5
5
  export declare type QueryParams = {
6
6
  id?: StringFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, DateFilterInput, ProductBackInStockRemind } from "../types";
3
- declare const listProductBackInStockRemind: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<ProductBackInStockRemind[]> | APIResponse<undefined>>;
3
+ declare const listProductBackInStockRemind: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<ProductBackInStockRemind[]>>;
4
4
  export default listProductBackInStockRemind;
5
5
  export declare type QueryParams = {
6
6
  email?: StringFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, PaginationInput, DateFilterInput, ProductBrandPaginationResponse } from "../types";
3
- declare const listProductBrand: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<ProductBrandPaginationResponse> | APIResponse<undefined>>;
3
+ declare const listProductBrand: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<ProductBrandPaginationResponse>>;
4
4
  export default listProductBrand;
5
5
  export declare type QueryParams = {
6
6
  id?: StringFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, DateFilterInput, ProductOptionSet } from "../types";
3
- declare const listProductOptionSet: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<ProductOptionSet[]> | APIResponse<undefined>>;
3
+ declare const listProductOptionSet: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<ProductOptionSet[]>>;
4
4
  export default listProductOptionSet;
5
5
  export declare type QueryParams = {
6
6
  id?: StringFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { ProductStockLocation } from "../types";
3
- declare const listProductStockLocation: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<ProductStockLocation[]> | APIResponse<undefined>>;
3
+ declare const listProductStockLocation: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<ProductStockLocation[]>>;
4
4
  export default listProductStockLocation;
5
5
  export declare type QueryParams = {
6
6
  stockLocationIdList: string[];
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { DateFilterInput, StringFilterInput, PaginationInput, BooleanFilterInput, RafflePaginationResponse } from "../types";
3
- declare const listRaffle: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<RafflePaginationResponse> | APIResponse<undefined>>;
3
+ declare const listRaffle: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<RafflePaginationResponse>>;
4
4
  export default listRaffle;
5
5
  export declare type QueryParams = {
6
6
  end?: DateFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, PaginationInput, RaffleMetadataTargetTypeEnumFilter, DateFilterInput, RaffleMetadata } from "../types";
3
- declare const listRaffleMetadata: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<RaffleMetadata[]> | APIResponse<undefined>>;
3
+ declare const listRaffleMetadata: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<RaffleMetadata[]>>;
4
4
  export default listRaffleMetadata;
5
5
  export declare type QueryParams = {
6
6
  id?: StringFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, DateFilterInput, State } from "../types";
3
- declare const listState: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<State[]> | APIResponse<undefined>>;
3
+ declare const listState: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<State[]>>;
4
4
  export default listState;
5
5
  export declare type QueryParams = {
6
6
  countryId: StringFilterInput;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, StockLocation } from "../types";
3
- declare const listStockLocation: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<StockLocation[]> | APIResponse<undefined>>;
3
+ declare const listStockLocation: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<StockLocation[]>>;
4
4
  export default listStockLocation;
5
5
  export declare type QueryParams = {
6
6
  id?: StringFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, DateFilterInput, Town } from "../types";
3
- declare const listTown: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<Town[]> | APIResponse<undefined>>;
3
+ declare const listTown: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<Town[]>>;
4
4
  export default listTown;
5
5
  export declare type QueryParams = {
6
6
  districtId: StringFilterInput;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { StringFilterInput, DateFilterInput, VariantType } from "../types";
3
- declare const listVariantType: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<VariantType[]> | APIResponse<undefined>>;
3
+ declare const listVariantType: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<VariantType[]>>;
4
4
  export default listVariantType;
5
5
  export declare type QueryParams = {
6
6
  id?: StringFilterInput | null;
@@ -1,6 +1,6 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
2
  import { SearchInput, ProductSearchResponse } from "../types";
3
- declare const searchProducts: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<ProductSearchResponse> | APIResponse<undefined>>;
3
+ declare const searchProducts: (variables: QueryParams, fields?: string[] | undefined, config?: ConfigType | undefined) => Promise<APIResponse<undefined> | APIResponse<ProductSearchResponse>>;
4
4
  export default searchProducts;
5
5
  export declare type QueryParams = {
6
6
  input: SearchInput;
@@ -186,6 +186,10 @@ export declare enum MasterPassOperationTypeEnum {
186
186
  PURCHASE = "PURCHASE",
187
187
  REGISTER_CARD = "REGISTER_CARD"
188
188
  }
189
+ export declare enum MerchantSettingsAddressTypeEnum {
190
+ CORPORATE = "CORPORATE",
191
+ INDIVIDUAL = "INDIVIDUAL"
192
+ }
189
193
  export declare enum OrderLineItemStatusEnum {
190
194
  CANCELLED = "CANCELLED",
191
195
  CANCEL_REJECTED = "CANCEL_REJECTED",
@@ -1205,7 +1209,44 @@ export interface MasterPassTokenResponse {
1205
1209
  timeZone: string;
1206
1210
  token: string;
1207
1211
  }
1212
+ export interface MerchantAddress {
1213
+ addressLine1: string | null;
1214
+ addressLine2: string | null;
1215
+ city: MerchantAddressCity | null;
1216
+ country: MerchantAddressCountry | null;
1217
+ district: MerchantAddressDistrict | null;
1218
+ firstName: string | null;
1219
+ identityNumber: string | null;
1220
+ lastName: string | null;
1221
+ postalCode: string | null;
1222
+ state: MerchantAddressState | null;
1223
+ taxOffice: string | null;
1224
+ title: string | null;
1225
+ type: MerchantSettingsAddressTypeEnum | null;
1226
+ vkn: string | null;
1227
+ }
1228
+ export interface MerchantAddressCity {
1229
+ code: string | null;
1230
+ id: string | null;
1231
+ name: string | null;
1232
+ }
1233
+ export interface MerchantAddressCountry {
1234
+ code: string | null;
1235
+ id: string | null;
1236
+ name: string | null;
1237
+ }
1238
+ export interface MerchantAddressDistrict {
1239
+ code: string | null;
1240
+ id: string | null;
1241
+ name: string | null;
1242
+ }
1243
+ export interface MerchantAddressState {
1244
+ code: string | null;
1245
+ id: string | null;
1246
+ name: string | null;
1247
+ }
1208
1248
  export interface MerchantSettings {
1249
+ address: MerchantAddress | null;
1209
1250
  createdAt: any | null;
1210
1251
  currencyFormats: MerchantSettingsCurrencyFormat[] | null;
1211
1252
  deleted: boolean | null;
@@ -1213,6 +1254,7 @@ export interface MerchantSettings {
1213
1254
  logoId: string | null;
1214
1255
  merchantId: string;
1215
1256
  merchantName: string;
1257
+ phone: string | null;
1216
1258
  updatedAt: any | null;
1217
1259
  }
1218
1260
  export interface MerchantSettingsCurrencyFormat {
@@ -2047,6 +2089,7 @@ export interface Storefront {
2047
2089
  status: StorefrontStatusTypes;
2048
2090
  themes: StorefrontTheme[];
2049
2091
  tiktokPixelId: string | null;
2092
+ token: string | null;
2050
2093
  universalAnalyticsId: string | null;
2051
2094
  updatedAt: any | null;
2052
2095
  }
@@ -1 +1 @@
1
- var E,T,R,A,C,D,I,_,O,N,L,U,S,P,n,F,H,M,Y,o,V,c,f,B,t,i,u,G,W,K,X,J,Q,e,g,Z,a,l,b,k,r,d,s,p,v,x,h,j,m,q,w,y,z,$,EE,TE,RE,AE,CE,DE,IE,_E,OE,NE,LE,UE,SE,PE;!function(E){E.DECREMENT="DECREMENT",E.INCREMENT="INCREMENT"}(E||(E={})),function(E){E.AMOUNT="AMOUNT",E.RATIO="RATIO"}(T||(T={})),function(E){E.BLOG="BLOG",E.BLOG_CATEGORY="BLOG_CATEGORY"}(R||(R={})),function(E){E.DISCOUNT_PRICE="DISCOUNT_PRICE",E.SELL_PRICE="SELL_PRICE"}(A||(A={})),function(E){E.ABANDONED_CHECKOUT="ABANDONED_CHECKOUT",E.CART="CART",E.CUSTOMER_REVIEW="CUSTOMER_REVIEW"}(C||(C={})),function(E){E.CATEGORY="CATEGORY",E.PRODUCT="PRODUCT",E.PRODUCT_BRAND="PRODUCT_BRAND",E.PRODUCT_TAG="PRODUCT_TAG",E.VARIANT="VARIANT"}(D||(D={})),function(E){E.DO_NOTHING="DO_NOTHING",E.OPEN_CART="OPEN_CART",E.OPEN_CHECKOUT="OPEN_CHECKOUT"}(I||(I={})),function(E){E.PREVIOUS_ACCEPTED="PREVIOUS_ACCEPTED",E.PREVIOUS_REJECTED="PREVIOUS_REJECTED"}(_||(_={})),function(E){E.CHECKOUT="CHECKOUT",E.POST_CHECKOUT="POST_CHECKOUT"}(O||(O={})),function(E){E.ALL_PRODUCTS="ALL_PRODUCTS",E.CATEGORY="CATEGORY",E.PRODUCT="PRODUCT",E.PRODUCT_TAG="PRODUCT_TAG",E.VARIANT="VARIANT"}(N||(N={})),function(E){E.CROSS_SELL="CROSS_SELL",E.UPSELL="UPSELL"}(L||(L={})),function(E){E.BUY_X_THEN_GET_Y="BUY_X_THEN_GET_Y",E.FIXED_AMOUNT="FIXED_AMOUNT",E.FREE_SHIPPING="FREE_SHIPPING",E.RATIO="RATIO"}(U||(U={})),function(E){E.CUSTOMER="CUSTOMER",E.DECLINED="DECLINED",E.INVENTORY="INVENTORY",E.OTHER="OTHER"}(S||(S={})),function(E){E.ACCEPTED="ACCEPTED",E.REJECTED="REJECTED",E.REMOVED="REMOVED",E.WAITING_FOR_ACTION="WAITING_FOR_ACTION"}(P||(P={})),function(E){E.ADMIN="ADMIN",E.CUSTOMER="CUSTOMER"}(n||(n={})),function(E){E.ACTIVE="ACTIVE",E.FREEZE="FREEZE",E.PASSIVE="PASSIVE"}(F||(F={})),function(E){E.COMPLETED="COMPLETED",E.FREEZE="FREEZE",E.KILLED="KILLED",E.OPEN="OPEN"}(H||(H={})),function(E){E.CREATED_AT="CREATED_AT",E.DISCOUNTED_PRODUCTS="DISCOUNTED_PRODUCTS",E.PRODUCT_BRAND="PRODUCT_BRAND",E.PRODUCT_TAG="PRODUCT_TAG",E.VARIANT_VALUE="VARIANT_VALUE"}(M||(M={})),function(E){E.BEST_SELLER="BEST_SELLER",E.HIGHEST_DISCOUNT_RATIO="HIGHEST_DISCOUNT_RATIO",E.HIGHEST_PRICE="HIGHEST_PRICE",E.LOWEST_DISCOUNT_RATIO="LOWEST_DISCOUNT_RATIO",E.LOWEST_PRICE="LOWEST_PRICE",E.MANUALLY="MANUALLY",E.NEWEST="NEWEST",E.OLDEST="OLDEST"}(Y||(Y={})),function(E){E.NOT_SENT="NOT_SENT",E.SENT="SENT"}(o||(o={})),function(E){E.NOT_RECOVERED="NOT_RECOVERED",E.RECOVERED="RECOVERED"}(V||(V={})),function(E){E.INVISIBLE="INVISIBLE",E.MANDATORY="MANDATORY",E.OPTIONAL="OPTIONAL"}(c||(c={})),function(E){E.COMPLETED="COMPLETED",E.FREEZE="FREEZE",E.KILLED="KILLED",E.OPEN="OPEN"}(f||(f={})),function(E){E.LEFT="LEFT",E.RIGHT="RIGHT"}(B||(B={})),function(E){E.ACTIVE_ACCOUNT="ACTIVE_ACCOUNT",E.DECLINED_ACCOUNT_INVITATION="DECLINED_ACCOUNT_INVITATION",E.DISABLED_ACCOUNT="DISABLED_ACCOUNT",E.INVITED_TO_CREATE_ACCOUNT="INVITED_TO_CREATE_ACCOUNT"}(t||(t={})),function(E){E.INVISIBLE="INVISIBLE",E.READ="READ",E.WRITE="WRITE"}(i||(i={})),function(E){E.INVISIBLE="INVISIBLE",E.MANDATORY="MANDATORY",E.OPTIONAL="OPTIONAL"}(u||(u={})),function(E){E.BOOLEAN="BOOLEAN",E.CHOICE="CHOICE",E.DATETIME="DATETIME",E.MULTIPLE_CHOICE="MULTIPLE_CHOICE",E.NUMERIC="NUMERIC",E.TEXT="TEXT"}(G||(G={})),function(E){E.NOT_SUBSCRIBED="NOT_SUBSCRIBED",E.PENDING_CONFIRMATION="PENDING_CONFIRMATION",E.SUBSCRIBED="SUBSCRIBED"}(W||(W={})),function(E){E.credentials="credentials",E.facebook="facebook",E.google="google"}(K||(K={})),function(E){E.APPROVED="APPROVED",E.REJECTED="REJECTED",E.WAITING="WAITING"}(X||(X={})),function(E){E.facebook="facebook",E.google="google"}(J||(J={})),function(E){E.BRAND="BRAND",E.CATEGORY="CATEGORY",E.PAGE="PAGE",E.PRODUCT="PRODUCT"}(Q||(Q={})),function(E){E.COMPANY="COMPANY",E.INDIVIDUAL="INDIVIDUAL",E.OTHER="OTHER"}(e||(e={})),function(E){E.CHECK_MASTER_PASS_USER="CHECK_MASTER_PASS_USER",E.DELETE_CARD="DELETE_CARD",E.DIRECT_PURCHASE="DIRECT_PURCHASE",E.FORGOT_PASSWORD="FORGOT_PASSWORD",E.LIST_CARDS="LIST_CARDS",E.PURCHASE="PURCHASE",E.REGISTER_CARD="REGISTER_CARD"}(g||(g={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.FULFILLED="FULFILLED",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNFULFILLED="UNFULFILLED"}(Z||(Z={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.ERROR="ERROR",E.FULFILLED="FULFILLED",E.READY_FOR_PICK_UP="READY_FOR_PICK_UP",E.READY_FOR_SHIPMENT="READY_FOR_SHIPMENT",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNABLE_TO_DELIVER="UNABLE_TO_DELIVER"}(a||(a={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.FULFILLED="FULFILLED",E.PARTIALLY_CANCELLED="PARTIALLY_CANCELLED",E.PARTIALLY_DELIVERED="PARTIALLY_DELIVERED",E.PARTIALLY_FULFILLED="PARTIALLY_FULFILLED",E.PARTIALLY_REFUNDED="PARTIALLY_REFUNDED",E.READY_FOR_PICK_UP="READY_FOR_PICK_UP",E.READY_FOR_SHIPMENT="READY_FOR_SHIPMENT",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNABLE_TO_DELIVER="UNABLE_TO_DELIVER",E.UNFULFILLED="UNFULFILLED"}(l||(l={})),function(E){E.PAID="PAID",E.PARTIALLY_PAID="PARTIALLY_PAID",E.WAITING="WAITING"}(b||(b={})),function(E){E.CANCELLED="CANCELLED",E.CREATED="CREATED",E.DRAFT="DRAFT",E.PARTIALLY_CANCELLED="PARTIALLY_CANCELLED",E.PARTIALLY_REFUNDED="PARTIALLY_REFUNDED",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED"}(k||(k={})),function(E){E.DECREMENT="DECREMENT",E.INCREMENT="INCREMENT"}(r||(r={})),function(E){E.NUMBER="NUMBER",E.PASSWORD="PASSWORD",E.TEXT="TEXT"}(d||(d={})),function(E){E.AMOUNT="AMOUNT",E.RATIO="RATIO"}(s||(s={})),function(E){E.EXTERNAL="EXTERNAL",E.INTERNAL="INTERNAL",E.THIRD_PARTY="THIRD_PARTY"}(p||(p={})),function(E){E.APP_PAYMENT="APP_PAYMENT",E.BUY_ONLINE_PAY_AT_STORE="BUY_ONLINE_PAY_AT_STORE",E.CASH="CASH",E.CASH_ON_DELIVERY="CASH_ON_DELIVERY",E.CREDIT_CARD="CREDIT_CARD",E.CREDIT_CARD_ON_DELIVERY="CREDIT_CARD_ON_DELIVERY",E.GIFT_CARD="GIFT_CARD",E.MONEY_ORDER="MONEY_ORDER",E.OTHER="OTHER",E.WALLET="WALLET"}(v||(v={})),function(E){E.APP_PAYMENT="APP_PAYMENT",E.BUY_ONLINE_PAY_AT_STORE="BUY_ONLINE_PAY_AT_STORE",E.CASH="CASH",E.CASH_ON_DELIVERY="CASH_ON_DELIVERY",E.CREDIT_CARD="CREDIT_CARD",E.CREDIT_CARD_ON_DELIVERY="CREDIT_CARD_ON_DELIVERY",E.GIFT_CARD="GIFT_CARD",E.MONEY_ORDER="MONEY_ORDER",E.OTHER="OTHER",E.WALLET="WALLET"}(x||(x={})),function(E){E.BOOLEAN="BOOLEAN",E.CHOICE="CHOICE",E.DATETIME="DATETIME",E.HTML="HTML",E.IMAGE="IMAGE",E.MULTIPLE_CHOICE="MULTIPLE_CHOICE",E.NUMERIC="NUMERIC",E.PRODUCT="PRODUCT",E.TABLE="TABLE",E.TEXT="TEXT"}(h||(h={})),function(E){E.BOX="BOX",E.DATE_RANGE="DATE_RANGE",E.LIST="LIST",E.NUMBER_RANGE="NUMBER_RANGE",E.NUMBER_RANGE_LIST="NUMBER_RANGE_LIST",E.SWATCH="SWATCH"}(j||(j={})),function(E){E.ALPHABETICAL_ASC="ALPHABETICAL_ASC",E.ALPHABETICAL_DESC="ALPHABETICAL_DESC",E.CUSTOM_SORT="CUSTOM_SORT",E.PRODUCT_COUNT_ASC="PRODUCT_COUNT_ASC",E.PRODUCT_COUNT_DESC="PRODUCT_COUNT_DESC"}(m||(m={})),function(E){E.ATTRIBUTE="ATTRIBUTE",E.AVAILABLE_VARIANT_VALUE="AVAILABLE_VARIANT_VALUE",E.BRAND="BRAND",E.DISCOUNT_RATIO="DISCOUNT_RATIO",E.PRICE="PRICE",E.STOCK_STATUS="STOCK_STATUS",E.TAG="TAG",E.VARIANT_TYPE="VARIANT_TYPE"}(q||(q={})),function(E){E.BOX="BOX",E.SELECT="SELECT",E.SWATCH="SWATCH"}(w||(w={})),function(E){E.CHECKBOX="CHECKBOX",E.CHOICE="CHOICE",E.COLOR_PICKER="COLOR_PICKER",E.DATE_PICKER="DATE_PICKER",E.FILE="FILE",E.IMAGE="IMAGE",E.TEXT="TEXT",E.TEXT_AREA="TEXT_AREA"}(y||(y={})),function(E){E.HIDE_OUT_OF_STOCK="HIDE_OUT_OF_STOCK",E.SHOW_ALL="SHOW_ALL",E.SHOW_OUT_OF_STOCK_AT_END="SHOW_OUT_OF_STOCK_AT_END"}(z||(z={})),function(E){E.DIGITAL="DIGITAL",E.MEMBERSHIP="MEMBERSHIP",E.PHYSICAL="PHYSICAL"}($||($={})),function(E){E.RAFFLE="RAFFLE"}(EE||(EE={})),function(E){E.CLICK_AND_COLLECT="CLICK_AND_COLLECT",E.NO_SHIPMENT="NO_SHIPMENT",E.SHIPMENT="SHIPMENT"}(TE||(TE={})),function(E){E.ASC="ASC",E.DESC="DESC"}(RE||(RE={})),function(E){E.CREATED_AT="CREATED_AT",E.DISCOUNT_RATIO="DISCOUNT_RATIO",E.MANUAL_SORT="MANUAL_SORT",E.NAME="NAME",E.PRICE="PRICE"}(AE||(AE={})),function(E){E.TWO_IN_FOUR_DAYS="TWO_IN_FOUR_DAYS",E.WITHIN_FOUR_HOURS="WITHIN_FOUR_HOURS",E.WITHIN_ONE_HOUR="WITHIN_ONE_HOUR",E.WITHIN_PLUS_FIVE_DAYS="WITHIN_PLUS_FIVE_DAYS",E.WITHIN_TWENTY_FOUR_HOURS="WITHIN_TWENTY_FOUR_HOURS",E.WITHIN_TWO_HOURS="WITHIN_TWO_HOURS"}(CE||(CE={})),function(E){E.PHYSICAL="PHYSICAL",E.VIRTUAL="VIRTUAL"}(DE||(DE={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(IE||(IE={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(_E||(_E={})),function(E){E.AMERICAN_EXPRESS="AMERICAN_EXPRESS",E.MASTER_CARD="MASTER_CARD",E.TROY="TROY",E.VISA="VISA"}(OE||(OE={})),function(E){E.CREDIT="CREDIT",E.DEBIT="DEBIT",E.PREPAID="PREPAID"}(NE||(NE={})),function(E){E.AUTHORIZED="AUTHORIZED",E.FAILED="FAILED",E.PENDING="PENDING",E.SUCCESS="SUCCESS"}(LE||(LE={})),function(E){E.REFUND="REFUND",E.SALE="SALE",E.VOID="VOID"}(UE||(UE={})),function(E){E.CHOICE="CHOICE",E.COLOR="COLOR"}(SE||(SE={})),function(E){E.EMAIL="EMAIL",E.MERSIS="MERSIS"}(PE||(PE={}));export{E as AdjustmentEnum,T as AmountTypeEnum,R as BlogMetadataTargetTypeEnum,A as CampaignApplicablePriceEnum,C as CampaignCreatedForEnum,D as CampaignFilterTypeEnum,I as CampaignOfferFollowUpActionTypeEnum,_ as CampaignOfferProductShowCriteriaEnum,O as CampaignOfferTargetPageTypeEnum,N as CampaignOfferTriggerFilterTypeEnum,L as CampaignOfferTypeEnum,U as CampaignTypeEnum,S as CancelledReasonEnum,P as CartCampaignOfferStatus,n as CartCreatedByEnum,F as CartStatusEnum,H as CartV2StatusEnum,M as CategoryConditionTypeEnum,Y as CategoryProductsOrderTypeEnum,o as CheckoutRecoveryEmailStatusEnum,V as CheckoutRecoveryStatusEnum,c as CheckoutRequirementEnum,f as CheckoutStatusEnum,B as CurrencyFormatSymbolPosition,t as CustomerAccountStatusEnum,i as CustomerAttributePermissionEnum,u as CustomerAttributeRegisterPageRequirementEnum,G as CustomerAttributeTypeEnum,W as CustomerEmailSubscriptionStatusesEnum,K as CustomerRegistrationSourceEnum,X as CustomerReviewStatusEnum,J as CustomerSocialLoginProviderEnum,Q as HTMLMetaDataTargetTypeEnum,e as InvoiceTypeEnum,g as MasterPassOperationTypeEnum,Z as OrderLineItemStatusEnum,a as OrderPackageFulfillStatusEnum,l as OrderPackageStatusEnum,b as OrderPaymentStatusEnum,k as OrderStatusEnum,r as PaymentGatewayAdditionalPriceTypeEnum,d as PaymentGatewaySettingsTypeEnum,s as PaymentGatewayTransactionFeeTypeEnum,p as PaymentGatewayTypeEnum,v as PaymentMethodEnum,x as PaymentMethodTypeEnum,h as ProductAttributeTypeEnum,j as ProductFilterDisplayTypeEnum,m as ProductFilterSortTypeEnum,q as ProductFilterTypeEnum,w as ProductOptionSelectTypeEnum,y as ProductOptionTypeEnum,z as ProductSearchShowStockOptionEnum,$ as ProductTypeEnum,EE as RaffleMetadataTargetTypeEnum,TE as ShippingMethodEnum,RE as SortByDirectionEnum,AE as SortByTypeEnum,CE as StockLocationDeliveryTimeEnum,DE as StockLocationTypeEnum,IE as StorefrontStatusTypes,_E as StorefrontThemeStatus,OE as TransactionCardAssociationEnum,NE as TransactionCardTypeEnum,LE as TransactionStatusEnum,UE as TransactionTypeEnum,SE as VariantSelectionTypeEnum,PE as VerificationTypeEnum};
1
+ var E,T,R,A,C,D,I,_,O,N,L,U,S,P,n,F,H,M,Y,o,V,c,f,t,B,i,u,G,W,K,X,J,Q,e,g,Z,a,l,b,k,r,d,s,p,v,x,h,j,m,q,w,y,z,$,EE,TE,RE,AE,CE,DE,IE,_E,OE,NE,LE,UE,SE,PE,nE;!function(E){E.DECREMENT="DECREMENT",E.INCREMENT="INCREMENT"}(E||(E={})),function(E){E.AMOUNT="AMOUNT",E.RATIO="RATIO"}(T||(T={})),function(E){E.BLOG="BLOG",E.BLOG_CATEGORY="BLOG_CATEGORY"}(R||(R={})),function(E){E.DISCOUNT_PRICE="DISCOUNT_PRICE",E.SELL_PRICE="SELL_PRICE"}(A||(A={})),function(E){E.ABANDONED_CHECKOUT="ABANDONED_CHECKOUT",E.CART="CART",E.CUSTOMER_REVIEW="CUSTOMER_REVIEW"}(C||(C={})),function(E){E.CATEGORY="CATEGORY",E.PRODUCT="PRODUCT",E.PRODUCT_BRAND="PRODUCT_BRAND",E.PRODUCT_TAG="PRODUCT_TAG",E.VARIANT="VARIANT"}(D||(D={})),function(E){E.DO_NOTHING="DO_NOTHING",E.OPEN_CART="OPEN_CART",E.OPEN_CHECKOUT="OPEN_CHECKOUT"}(I||(I={})),function(E){E.PREVIOUS_ACCEPTED="PREVIOUS_ACCEPTED",E.PREVIOUS_REJECTED="PREVIOUS_REJECTED"}(_||(_={})),function(E){E.CHECKOUT="CHECKOUT",E.POST_CHECKOUT="POST_CHECKOUT"}(O||(O={})),function(E){E.ALL_PRODUCTS="ALL_PRODUCTS",E.CATEGORY="CATEGORY",E.PRODUCT="PRODUCT",E.PRODUCT_TAG="PRODUCT_TAG",E.VARIANT="VARIANT"}(N||(N={})),function(E){E.CROSS_SELL="CROSS_SELL",E.UPSELL="UPSELL"}(L||(L={})),function(E){E.BUY_X_THEN_GET_Y="BUY_X_THEN_GET_Y",E.FIXED_AMOUNT="FIXED_AMOUNT",E.FREE_SHIPPING="FREE_SHIPPING",E.RATIO="RATIO"}(U||(U={})),function(E){E.CUSTOMER="CUSTOMER",E.DECLINED="DECLINED",E.INVENTORY="INVENTORY",E.OTHER="OTHER"}(S||(S={})),function(E){E.ACCEPTED="ACCEPTED",E.REJECTED="REJECTED",E.REMOVED="REMOVED",E.WAITING_FOR_ACTION="WAITING_FOR_ACTION"}(P||(P={})),function(E){E.ADMIN="ADMIN",E.CUSTOMER="CUSTOMER"}(n||(n={})),function(E){E.ACTIVE="ACTIVE",E.FREEZE="FREEZE",E.PASSIVE="PASSIVE"}(F||(F={})),function(E){E.COMPLETED="COMPLETED",E.FREEZE="FREEZE",E.KILLED="KILLED",E.OPEN="OPEN"}(H||(H={})),function(E){E.CREATED_AT="CREATED_AT",E.DISCOUNTED_PRODUCTS="DISCOUNTED_PRODUCTS",E.PRODUCT_BRAND="PRODUCT_BRAND",E.PRODUCT_TAG="PRODUCT_TAG",E.VARIANT_VALUE="VARIANT_VALUE"}(M||(M={})),function(E){E.BEST_SELLER="BEST_SELLER",E.HIGHEST_DISCOUNT_RATIO="HIGHEST_DISCOUNT_RATIO",E.HIGHEST_PRICE="HIGHEST_PRICE",E.LOWEST_DISCOUNT_RATIO="LOWEST_DISCOUNT_RATIO",E.LOWEST_PRICE="LOWEST_PRICE",E.MANUALLY="MANUALLY",E.NEWEST="NEWEST",E.OLDEST="OLDEST"}(Y||(Y={})),function(E){E.NOT_SENT="NOT_SENT",E.SENT="SENT"}(o||(o={})),function(E){E.NOT_RECOVERED="NOT_RECOVERED",E.RECOVERED="RECOVERED"}(V||(V={})),function(E){E.INVISIBLE="INVISIBLE",E.MANDATORY="MANDATORY",E.OPTIONAL="OPTIONAL"}(c||(c={})),function(E){E.COMPLETED="COMPLETED",E.FREEZE="FREEZE",E.KILLED="KILLED",E.OPEN="OPEN"}(f||(f={})),function(E){E.LEFT="LEFT",E.RIGHT="RIGHT"}(t||(t={})),function(E){E.ACTIVE_ACCOUNT="ACTIVE_ACCOUNT",E.DECLINED_ACCOUNT_INVITATION="DECLINED_ACCOUNT_INVITATION",E.DISABLED_ACCOUNT="DISABLED_ACCOUNT",E.INVITED_TO_CREATE_ACCOUNT="INVITED_TO_CREATE_ACCOUNT"}(B||(B={})),function(E){E.INVISIBLE="INVISIBLE",E.READ="READ",E.WRITE="WRITE"}(i||(i={})),function(E){E.INVISIBLE="INVISIBLE",E.MANDATORY="MANDATORY",E.OPTIONAL="OPTIONAL"}(u||(u={})),function(E){E.BOOLEAN="BOOLEAN",E.CHOICE="CHOICE",E.DATETIME="DATETIME",E.MULTIPLE_CHOICE="MULTIPLE_CHOICE",E.NUMERIC="NUMERIC",E.TEXT="TEXT"}(G||(G={})),function(E){E.NOT_SUBSCRIBED="NOT_SUBSCRIBED",E.PENDING_CONFIRMATION="PENDING_CONFIRMATION",E.SUBSCRIBED="SUBSCRIBED"}(W||(W={})),function(E){E.credentials="credentials",E.facebook="facebook",E.google="google"}(K||(K={})),function(E){E.APPROVED="APPROVED",E.REJECTED="REJECTED",E.WAITING="WAITING"}(X||(X={})),function(E){E.facebook="facebook",E.google="google"}(J||(J={})),function(E){E.BRAND="BRAND",E.CATEGORY="CATEGORY",E.PAGE="PAGE",E.PRODUCT="PRODUCT"}(Q||(Q={})),function(E){E.COMPANY="COMPANY",E.INDIVIDUAL="INDIVIDUAL",E.OTHER="OTHER"}(e||(e={})),function(E){E.CHECK_MASTER_PASS_USER="CHECK_MASTER_PASS_USER",E.DELETE_CARD="DELETE_CARD",E.DIRECT_PURCHASE="DIRECT_PURCHASE",E.FORGOT_PASSWORD="FORGOT_PASSWORD",E.LIST_CARDS="LIST_CARDS",E.PURCHASE="PURCHASE",E.REGISTER_CARD="REGISTER_CARD"}(g||(g={})),function(E){E.CORPORATE="CORPORATE",E.INDIVIDUAL="INDIVIDUAL"}(Z||(Z={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.FULFILLED="FULFILLED",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNFULFILLED="UNFULFILLED"}(a||(a={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.ERROR="ERROR",E.FULFILLED="FULFILLED",E.READY_FOR_PICK_UP="READY_FOR_PICK_UP",E.READY_FOR_SHIPMENT="READY_FOR_SHIPMENT",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNABLE_TO_DELIVER="UNABLE_TO_DELIVER"}(l||(l={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.FULFILLED="FULFILLED",E.PARTIALLY_CANCELLED="PARTIALLY_CANCELLED",E.PARTIALLY_DELIVERED="PARTIALLY_DELIVERED",E.PARTIALLY_FULFILLED="PARTIALLY_FULFILLED",E.PARTIALLY_REFUNDED="PARTIALLY_REFUNDED",E.READY_FOR_PICK_UP="READY_FOR_PICK_UP",E.READY_FOR_SHIPMENT="READY_FOR_SHIPMENT",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNABLE_TO_DELIVER="UNABLE_TO_DELIVER",E.UNFULFILLED="UNFULFILLED"}(b||(b={})),function(E){E.PAID="PAID",E.PARTIALLY_PAID="PARTIALLY_PAID",E.WAITING="WAITING"}(k||(k={})),function(E){E.CANCELLED="CANCELLED",E.CREATED="CREATED",E.DRAFT="DRAFT",E.PARTIALLY_CANCELLED="PARTIALLY_CANCELLED",E.PARTIALLY_REFUNDED="PARTIALLY_REFUNDED",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED"}(r||(r={})),function(E){E.DECREMENT="DECREMENT",E.INCREMENT="INCREMENT"}(d||(d={})),function(E){E.NUMBER="NUMBER",E.PASSWORD="PASSWORD",E.TEXT="TEXT"}(s||(s={})),function(E){E.AMOUNT="AMOUNT",E.RATIO="RATIO"}(p||(p={})),function(E){E.EXTERNAL="EXTERNAL",E.INTERNAL="INTERNAL",E.THIRD_PARTY="THIRD_PARTY"}(v||(v={})),function(E){E.APP_PAYMENT="APP_PAYMENT",E.BUY_ONLINE_PAY_AT_STORE="BUY_ONLINE_PAY_AT_STORE",E.CASH="CASH",E.CASH_ON_DELIVERY="CASH_ON_DELIVERY",E.CREDIT_CARD="CREDIT_CARD",E.CREDIT_CARD_ON_DELIVERY="CREDIT_CARD_ON_DELIVERY",E.GIFT_CARD="GIFT_CARD",E.MONEY_ORDER="MONEY_ORDER",E.OTHER="OTHER",E.WALLET="WALLET"}(x||(x={})),function(E){E.APP_PAYMENT="APP_PAYMENT",E.BUY_ONLINE_PAY_AT_STORE="BUY_ONLINE_PAY_AT_STORE",E.CASH="CASH",E.CASH_ON_DELIVERY="CASH_ON_DELIVERY",E.CREDIT_CARD="CREDIT_CARD",E.CREDIT_CARD_ON_DELIVERY="CREDIT_CARD_ON_DELIVERY",E.GIFT_CARD="GIFT_CARD",E.MONEY_ORDER="MONEY_ORDER",E.OTHER="OTHER",E.WALLET="WALLET"}(h||(h={})),function(E){E.BOOLEAN="BOOLEAN",E.CHOICE="CHOICE",E.DATETIME="DATETIME",E.HTML="HTML",E.IMAGE="IMAGE",E.MULTIPLE_CHOICE="MULTIPLE_CHOICE",E.NUMERIC="NUMERIC",E.PRODUCT="PRODUCT",E.TABLE="TABLE",E.TEXT="TEXT"}(j||(j={})),function(E){E.BOX="BOX",E.DATE_RANGE="DATE_RANGE",E.LIST="LIST",E.NUMBER_RANGE="NUMBER_RANGE",E.NUMBER_RANGE_LIST="NUMBER_RANGE_LIST",E.SWATCH="SWATCH"}(m||(m={})),function(E){E.ALPHABETICAL_ASC="ALPHABETICAL_ASC",E.ALPHABETICAL_DESC="ALPHABETICAL_DESC",E.CUSTOM_SORT="CUSTOM_SORT",E.PRODUCT_COUNT_ASC="PRODUCT_COUNT_ASC",E.PRODUCT_COUNT_DESC="PRODUCT_COUNT_DESC"}(q||(q={})),function(E){E.ATTRIBUTE="ATTRIBUTE",E.AVAILABLE_VARIANT_VALUE="AVAILABLE_VARIANT_VALUE",E.BRAND="BRAND",E.DISCOUNT_RATIO="DISCOUNT_RATIO",E.PRICE="PRICE",E.STOCK_STATUS="STOCK_STATUS",E.TAG="TAG",E.VARIANT_TYPE="VARIANT_TYPE"}(w||(w={})),function(E){E.BOX="BOX",E.SELECT="SELECT",E.SWATCH="SWATCH"}(y||(y={})),function(E){E.CHECKBOX="CHECKBOX",E.CHOICE="CHOICE",E.COLOR_PICKER="COLOR_PICKER",E.DATE_PICKER="DATE_PICKER",E.FILE="FILE",E.IMAGE="IMAGE",E.TEXT="TEXT",E.TEXT_AREA="TEXT_AREA"}(z||(z={})),function(E){E.HIDE_OUT_OF_STOCK="HIDE_OUT_OF_STOCK",E.SHOW_ALL="SHOW_ALL",E.SHOW_OUT_OF_STOCK_AT_END="SHOW_OUT_OF_STOCK_AT_END"}($||($={})),function(E){E.DIGITAL="DIGITAL",E.MEMBERSHIP="MEMBERSHIP",E.PHYSICAL="PHYSICAL"}(EE||(EE={})),function(E){E.RAFFLE="RAFFLE"}(TE||(TE={})),function(E){E.CLICK_AND_COLLECT="CLICK_AND_COLLECT",E.NO_SHIPMENT="NO_SHIPMENT",E.SHIPMENT="SHIPMENT"}(RE||(RE={})),function(E){E.ASC="ASC",E.DESC="DESC"}(AE||(AE={})),function(E){E.CREATED_AT="CREATED_AT",E.DISCOUNT_RATIO="DISCOUNT_RATIO",E.MANUAL_SORT="MANUAL_SORT",E.NAME="NAME",E.PRICE="PRICE"}(CE||(CE={})),function(E){E.TWO_IN_FOUR_DAYS="TWO_IN_FOUR_DAYS",E.WITHIN_FOUR_HOURS="WITHIN_FOUR_HOURS",E.WITHIN_ONE_HOUR="WITHIN_ONE_HOUR",E.WITHIN_PLUS_FIVE_DAYS="WITHIN_PLUS_FIVE_DAYS",E.WITHIN_TWENTY_FOUR_HOURS="WITHIN_TWENTY_FOUR_HOURS",E.WITHIN_TWO_HOURS="WITHIN_TWO_HOURS"}(DE||(DE={})),function(E){E.PHYSICAL="PHYSICAL",E.VIRTUAL="VIRTUAL"}(IE||(IE={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(_E||(_E={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(OE||(OE={})),function(E){E.AMERICAN_EXPRESS="AMERICAN_EXPRESS",E.MASTER_CARD="MASTER_CARD",E.TROY="TROY",E.VISA="VISA"}(NE||(NE={})),function(E){E.CREDIT="CREDIT",E.DEBIT="DEBIT",E.PREPAID="PREPAID"}(LE||(LE={})),function(E){E.AUTHORIZED="AUTHORIZED",E.FAILED="FAILED",E.PENDING="PENDING",E.SUCCESS="SUCCESS"}(UE||(UE={})),function(E){E.REFUND="REFUND",E.SALE="SALE",E.VOID="VOID"}(SE||(SE={})),function(E){E.CHOICE="CHOICE",E.COLOR="COLOR"}(PE||(PE={})),function(E){E.EMAIL="EMAIL",E.MERSIS="MERSIS"}(nE||(nE={}));export{E as AdjustmentEnum,T as AmountTypeEnum,R as BlogMetadataTargetTypeEnum,A as CampaignApplicablePriceEnum,C as CampaignCreatedForEnum,D as CampaignFilterTypeEnum,I as CampaignOfferFollowUpActionTypeEnum,_ as CampaignOfferProductShowCriteriaEnum,O as CampaignOfferTargetPageTypeEnum,N as CampaignOfferTriggerFilterTypeEnum,L as CampaignOfferTypeEnum,U as CampaignTypeEnum,S as CancelledReasonEnum,P as CartCampaignOfferStatus,n as CartCreatedByEnum,F as CartStatusEnum,H as CartV2StatusEnum,M as CategoryConditionTypeEnum,Y as CategoryProductsOrderTypeEnum,o as CheckoutRecoveryEmailStatusEnum,V as CheckoutRecoveryStatusEnum,c as CheckoutRequirementEnum,f as CheckoutStatusEnum,t as CurrencyFormatSymbolPosition,B as CustomerAccountStatusEnum,i as CustomerAttributePermissionEnum,u as CustomerAttributeRegisterPageRequirementEnum,G as CustomerAttributeTypeEnum,W as CustomerEmailSubscriptionStatusesEnum,K as CustomerRegistrationSourceEnum,X as CustomerReviewStatusEnum,J as CustomerSocialLoginProviderEnum,Q as HTMLMetaDataTargetTypeEnum,e as InvoiceTypeEnum,g as MasterPassOperationTypeEnum,Z as MerchantSettingsAddressTypeEnum,a as OrderLineItemStatusEnum,l as OrderPackageFulfillStatusEnum,b as OrderPackageStatusEnum,k as OrderPaymentStatusEnum,r as OrderStatusEnum,d as PaymentGatewayAdditionalPriceTypeEnum,s as PaymentGatewaySettingsTypeEnum,p as PaymentGatewayTransactionFeeTypeEnum,v as PaymentGatewayTypeEnum,x as PaymentMethodEnum,h as PaymentMethodTypeEnum,j as ProductAttributeTypeEnum,m as ProductFilterDisplayTypeEnum,q as ProductFilterSortTypeEnum,w as ProductFilterTypeEnum,y as ProductOptionSelectTypeEnum,z as ProductOptionTypeEnum,$ as ProductSearchShowStockOptionEnum,EE as ProductTypeEnum,TE as RaffleMetadataTargetTypeEnum,RE as ShippingMethodEnum,AE as SortByDirectionEnum,CE as SortByTypeEnum,DE as StockLocationDeliveryTimeEnum,IE as StockLocationTypeEnum,_E as StorefrontStatusTypes,OE as StorefrontThemeStatus,NE as TransactionCardAssociationEnum,LE as TransactionCardTypeEnum,UE as TransactionStatusEnum,SE as TransactionTypeEnum,PE as VariantSelectionTypeEnum,nE as VerificationTypeEnum};
@@ -1 +1 @@
1
- import e from'../ext/inline-style-parser/index.js';export{default}from"../node_modules/inline-style-parser/index.js";
1
+ import e from'../ext/safe-buffer/index.js';export{default}from"../node_modules/safe-buffer/index.js";
@@ -1 +1 @@
1
- import e from'../ext/safe-buffer/index.js';export{default}from"../node_modules/safe-buffer/index.js";
1
+ import e from'../ext/inline-style-parser/index.js';export{default}from"../node_modules/inline-style-parser/index.js";
@@ -1 +1 @@
1
- import o from'../ext/split-on-first/index.js';export{default}from"../node_modules/split-on-first/index.js";
1
+ import e from'../ext/strict-uri-encode/index.js';export{default}from"../node_modules/strict-uri-encode/index.js";
@@ -1 +1 @@
1
- import e from'../ext/strict-uri-encode/index.js';export{default}from"../node_modules/strict-uri-encode/index.js";
1
+ import e from'../ext/decode-uri-component/index.js';export{default}from"../node_modules/decode-uri-component/index.js";
@@ -1 +1 @@
1
- import e from'../ext/decode-uri-component/index.js';export{default}from"../node_modules/decode-uri-component/index.js";
1
+ import o from'../ext/split-on-first/index.js';export{default}from"../node_modules/split-on-first/index.js";
@@ -1 +1 @@
1
- import*as e from"react";import{observer as t}from"mobx-react-lite";import"../../../../storefront/index.js";import'../../../../ext/lodash/isArguments.js';import'../../../../ext/lodash/isBuffer.js';import'../../../../ext/lodash/isTypedArray.js';import'../../../../ext/lodash/_baseGetTag.js';import{formatMoney as a}from"../../../../utils/currency.js";import{useTranslation as r}from"../../../../utils/i18n.js";import{Button as n}from"../button/index.js";import c from"./select/index.js";import o from"../svg/cross.js";import i from"./style.module.scss.js";var d=function(t){var a=t.seconds,n=t.rejectOffer,c=r().t,o=e.useState(a),d=o[0],s=o[1];e.useEffect((function(){var e=d>0&&setInterval((function(){return s(d-1)}),1e3);return 0===d&&n(),function(){return clearInterval(e)}}),[d]);return e.createElement("div",{className:i.CountdownContainer},e.createElement("div",{className:i.CountdownText},c("checkout-page:timeRemaining",{value:function(e){var t=Math.floor(e/60/60),a=Math.floor(e/60)-60*t,r=e%60;return 0!==t?t.toString().padStart(2,"0")+":":a.toString().padStart(2,"0")+":"+r.toString().padStart(2,"0")}(d)})))},s=t((function(t){var s,m=t.vm,u=t.campaignOffer,l=r().t,f=e.useState(u.productDetail.selectedVariant),p=f[0],v=f[1],g=function(){m.updateCartCampaignOffer({accepted:!1,cartId:m.checkout.id,campaignOfferId:u.campaignOffer.campaignOfferId,campaignOfferProductId:u.offer.id,productId:u.offer.productId,variantId:p.id})},h=Math.round(((new Date).getTime()-new Date(u.campaignOffer.offerStartDate).getTime())/1e3);return e.createElement("div",{className:i.Container},u.offer.countdownMinutes&&e.createElement(d,{seconds:h>60*u.offer.countdownMinutes?0:60*u.offer.countdownMinutes-h,rejectOffer:g}),e.createElement("div",{className:i.ContentContainer},e.createElement("div",{className:i.Header},e.createElement("div",{className:i.Title},u.offer.title),e.createElement("div",{className:i.RejectButton,onClick:g},e.createElement(o,null))),e.createElement("div",{className:i.ProductContainer},e.createElement("div",{className:i.ImageContainer},e.createElement("img",{className:i.Image,src:null===(s=p.mainImage)||void 0===s?void 0:s.thumbnailSrc})),e.createElement("div",{className:i.ProductDetails},e.createElement("div",{className:i.ProductName},u.productDetail.product.name),u.productDetail.product.brand&&e.createElement("div",{className:i.Brand},u.productDetail.product.brand.name),e.createElement("div",{className:i.ProductPrice},e.createElement("span",{className:i.Discount},a(p.price.finalPrice,m.checkout.currencyCode))," ",a(p.price.finalPrice-p.price.finalPrice*(u.offer.discountAmount||100)/100,m.checkout.currencyCode)),e.createElement("div",{className:i.Actions},u.productDetail.product.hasVariant&&u.productDetail.hasStock&&e.createElement(c,{value:p.id,onSelectChange:function(e){var t=u.productDetail.product.variants.find((function(t){return t.id===e}));t&&v(t)},options:u.productDetail.product.variants.filter((function(e){return e.hasStock})).map((function(e){return{label:e.variantValues.map((function(e){return e.name})).join(", "),value:e.id}}))}),e.createElement(n,{style:{width:"100%",height:44,fontSize:14},isDisabled:!u.productDetail.hasStock,text:l("checkout-page:actions.addToCart"),onClick:function(){m.updateCartCampaignOffer({accepted:!0,cartId:m.checkout.id,campaignOfferId:u.campaignOffer.campaignOfferId,campaignOfferProductId:u.offer.id,productId:u.offer.productId,variantId:p.id})}}))))))}));export{s as default};
1
+ import*as e from"react";import{observer as t}from"mobx-react-lite";import"../../../../storefront/index.js";import'../../../../ext/lodash/isArguments.js';import'../../../../ext/lodash/isBuffer.js';import'../../../../ext/lodash/isTypedArray.js';import'../../../../ext/lodash/_baseGetTag.js';import{formatMoney as a}from"../../../../utils/currency.js";import{useTranslation as r}from"../../../../utils/i18n.js";import{Button as n}from"../button/index.js";import c from"./select/index.js";import o from"../svg/cross.js";import i from"./style.module.scss.js";var d=function(t){var a=t.seconds,n=t.rejectOffer,c=r().t,o=e.useState(a),d=o[0],m=o[1];e.useEffect((function(){var e=d>0&&setInterval((function(){return m(d-1)}),1e3);return 0===d&&n(),function(){return clearInterval(e)}}),[d]);return e.createElement("div",{className:i.CountdownContainer},e.createElement("div",{className:i.CountdownText},c("checkout-page:timeRemaining",{value:function(e){var t=Math.floor(e/60/60),a=Math.floor(e/60)-60*t,r=e%60;return 0!==t?t.toString().padStart(2,"0")+":":a.toString().padStart(2,"0")+":"+r.toString().padStart(2,"0")}(d)})))},m=t((function(t){var m,s=t.vm,u=t.campaignOffer,f=r().t,l=e.useState(u.variants[0]),p=l[0],v=l[1],g=function(){s.updateCartCampaignOffer({accepted:!1,cartId:s.checkout.id,campaignOfferId:u.campaignOffer.campaignOfferId,campaignOfferProductId:u.offer.id,productId:u.offer.productId,variantId:p.id})},E=Math.round(((new Date).getTime()-new Date(u.campaignOffer.offerStartDate).getTime())/1e3);return e.createElement("div",{className:i.Container},u.offer.countdownMinutes&&e.createElement(d,{seconds:E>60*u.offer.countdownMinutes?0:60*u.offer.countdownMinutes-E,rejectOffer:g}),e.createElement("div",{className:i.ContentContainer},e.createElement("div",{className:i.Header},e.createElement("div",{className:i.Title},u.offer.title),e.createElement("div",{className:i.RejectButton,onClick:g},e.createElement(o,null))),e.createElement("div",{className:i.ProductContainer},e.createElement("div",{className:i.ImageContainer},e.createElement("img",{className:i.Image,src:null===(m=p.mainImage)||void 0===m?void 0:m.thumbnailSrc})),e.createElement("div",{className:i.ProductDetails},e.createElement("div",{className:i.ProductName},u.productDetail.product.name),u.productDetail.product.brand&&e.createElement("div",{className:i.Brand},u.productDetail.product.brand.name),e.createElement("div",{className:i.ProductPrice},e.createElement("span",{className:i.Discount},a(p.price.finalPrice,s.checkout.currencyCode))," ",a(p.price.finalPrice-p.price.finalPrice*(u.offer.discountAmount||100)/100,s.checkout.currencyCode)),e.createElement("div",{className:i.Actions},u.variants.length&&e.createElement(c,{value:p.id,onSelectChange:function(e){var t=u.variants.find((function(t){return t.id===e}));t&&v(t)},options:u.variants.map((function(e){return{label:e.variantValues.map((function(e){return e.name})).join(", "),value:e.id}}))}),e.createElement(n,{style:{width:"100%",height:44,fontSize:14},text:f("checkout-page:actions.addToCart"),onClick:function(){s.updateCartCampaignOffer({accepted:!0,cartId:s.checkout.id,campaignOfferId:u.campaignOffer.campaignOfferId,campaignOfferProductId:u.offer.id,productId:u.offer.productId,variantId:p.id})}}))))))}));export{m as default};
@@ -1,5 +1,5 @@
1
1
  import { NextRouter } from "next/router.js";
2
- import { IkasMerchantSettings, IkasAvailableShippingMethod, IkasOrderLineItem, IkasOrderTransaction, IkasProductDetail, IkasCartCampaignOffer } from "../../models";
2
+ import { IkasMerchantSettings, IkasAvailableShippingMethod, IkasOrderLineItem, IkasOrderTransaction, IkasProductDetail, IkasProductVariant } from "../../models";
3
3
  import { IkasPaymentGateway } from "../../models/data/payment-gateway";
4
4
  import { IkasOrderLineVariant } from "../../models/data/order/line-item/variant";
5
5
  import { IkasStorefront } from "../../models/data/storefront";
@@ -125,12 +125,10 @@ export default class CheckoutViewModel {
125
125
  changeStep: (step: CheckoutStep) => Promise<void>;
126
126
  logout: () => Promise<void>;
127
127
  setContactModalVisible: (value: boolean) => void;
128
- getWaitingForActionCampaignOffer: (tagetPage: CampaignOfferTargetPageTypeEnum) => IkasCartCampaignOffer | null;
129
- getOffer: (waitingForActionCampaignOffer: IkasCartCampaignOffer) => import("src/__api/models/CampaignOfferProduct").CampaignOfferProductData | null | undefined;
130
- getProduct: (productId: string) => Promise<IkasProductDetail | null>;
131
128
  getCampaignOfferProducts: (tagetPage: CampaignOfferTargetPageTypeEnum) => Promise<{
132
129
  productDetail: IkasProductDetail;
133
- campaignOffer: IkasCartCampaignOffer;
130
+ variants: IkasProductVariant[];
131
+ campaignOffer: import("../../models").IkasCartCampaignOffer;
134
132
  offer: import("src/__api/models/CampaignOfferProduct").CampaignOfferProductData;
135
133
  } | undefined>;
136
134
  getCampaignOffer: () => Promise<void>;
@@ -160,6 +158,7 @@ export declare type StockErrorData = {
160
158
  };
161
159
  export declare type CampaignOfferType = {
162
160
  productDetail: IkasProductDetail;
161
+ variants: IkasProductVariant[];
163
162
  campaignOffer: CartV2CampaignOffer;
164
163
  offer: CampaignOfferProduct;
165
164
  };