@ikas/storefront-models 6.1.0-beta.17 → 6.1.0-beta.170

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 (129) hide show
  1. package/build/index.d.ts +9 -0
  2. package/build/index.js +1 -1
  3. package/build/models/checkout-settings/index.d.ts +1 -0
  4. package/build/models/customer/review/index.d.ts +22 -0
  5. package/build/models/customer/review/index.js +1 -1
  6. package/build/models/merchant-settings/index.d.ts +1 -0
  7. package/build/models/order/gift-card-line/index.d.ts +5 -0
  8. package/build/models/order/gift-card-line/index.js +1 -0
  9. package/build/models/order/index.d.ts +2 -1
  10. package/build/models/order/index.js +1 -1
  11. package/build/models/order/line-item/bundle-product-settings/index.d.ts +5 -0
  12. package/build/models/order/line-item/index.d.ts +4 -0
  13. package/build/models/order/line-item/order-line-subscription-plan/index.d.ts +6 -0
  14. package/build/models/order/line-item/order-line-subscription-plan/order-line-item-subscription-plan-discount/index.d.ts +8 -0
  15. package/build/models/order/line-item/order-line-subscription-plan/order-line-item-subscription-plan-discount/index.js +1 -0
  16. package/build/models/order/line-item/order-line-subscription-plan/order-line-item-subscription-plan-period/index.d.ts +22 -0
  17. package/build/models/order/line-item/order-line-subscription-plan/order-line-item-subscription-plan-period/index.js +1 -0
  18. package/build/models/product/campaign-offer/index.d.ts +2 -0
  19. package/build/models/product/filter/index.d.ts +2 -1
  20. package/build/models/product/filter/index.js +1 -1
  21. package/build/models/product/index.d.ts +2 -0
  22. package/build/models/product/translations/index.d.ts +5 -0
  23. package/build/models/product/variant/subscription-plan/index.d.ts +14 -0
  24. package/build/models/product/variant/subscription-plan/product-subscription-plan-discount/index.d.ts +8 -0
  25. package/build/models/product/variant/subscription-plan/product-subscription-plan-discount/index.js +1 -0
  26. package/build/models/product/variant/subscription-plan/product-subscription-plan-period/index.d.ts +28 -0
  27. package/build/models/product/variant/subscription-plan/product-subscription-plan-period/index.js +1 -0
  28. package/build/models/store-credit-balance/index.d.ts +24 -0
  29. package/build/models/store-credit-balance/index.js +1 -0
  30. package/build/models/theme-json/component/prop/index.d.ts +1 -0
  31. package/build/models/theme-json/custom-data/index.d.ts +1 -0
  32. package/build-cjs/_virtual/_tslib.js.map +1 -0
  33. package/build-cjs/index.d.ts +9 -0
  34. package/build-cjs/index.js +1 -1
  35. package/build-cjs/index.js.map +1 -0
  36. package/build-cjs/models/base/init.js.map +1 -0
  37. package/build-cjs/models/blog/category/init.js.map +1 -0
  38. package/build-cjs/models/blog/init.js.map +1 -0
  39. package/build-cjs/models/blog/meta-data/index.js.map +1 -0
  40. package/build-cjs/models/brand/index.js.map +1 -0
  41. package/build-cjs/models/brand/init.js.map +1 -0
  42. package/build-cjs/models/campaign-offer/index.js.map +1 -0
  43. package/build-cjs/models/campaign-offer/product/index.js.map +1 -0
  44. package/build-cjs/models/cart/available-shipping-method/index.js.map +1 -0
  45. package/build-cjs/models/cart/campaign-offer/index.js.map +1 -0
  46. package/build-cjs/models/category/index.js.map +1 -0
  47. package/build-cjs/models/category/init.js.map +1 -0
  48. package/build-cjs/models/category/path-item/init.js.map +1 -0
  49. package/build-cjs/models/checkout-settings/index.d.ts +1 -0
  50. package/build-cjs/models/checkout-settings/index.js.map +1 -0
  51. package/build-cjs/models/country/init.js.map +1 -0
  52. package/build-cjs/models/customer/attribute/index.js.map +1 -0
  53. package/build-cjs/models/customer/attribute/init.js.map +1 -0
  54. package/build-cjs/models/customer/attribute/sales-channel/index.js.map +1 -0
  55. package/build-cjs/models/customer/index.js.map +1 -0
  56. package/build-cjs/models/customer/review/index.d.ts +22 -0
  57. package/build-cjs/models/customer/review/index.js +1 -1
  58. package/build-cjs/models/customer/review/index.js.map +1 -0
  59. package/build-cjs/models/customer/review/init.js.map +1 -0
  60. package/build-cjs/models/html-meta-data/index.js.map +1 -0
  61. package/build-cjs/models/html-meta-data/init.js.map +1 -0
  62. package/build-cjs/models/merchant-settings/address/type/index.js.map +1 -0
  63. package/build-cjs/models/merchant-settings/index.d.ts +1 -0
  64. package/build-cjs/models/merchant-settings/index.js.map +1 -0
  65. package/build-cjs/models/merchant-settings/init.js.map +1 -0
  66. package/build-cjs/models/order/adjustment/index.js.map +1 -0
  67. package/build-cjs/models/order/gift-card-line/index.d.ts +5 -0
  68. package/build-cjs/models/order/gift-card-line/index.js +1 -0
  69. package/build-cjs/models/order/index.d.ts +2 -1
  70. package/build-cjs/models/order/index.js +1 -1
  71. package/build-cjs/models/order/index.js.map +1 -0
  72. package/build-cjs/models/order/invoice/index.js.map +1 -0
  73. package/build-cjs/models/order/line-item/base-unit/index.js.map +1 -0
  74. package/build-cjs/models/order/line-item/bundle-product-settings/index.d.ts +5 -0
  75. package/build-cjs/models/order/line-item/index.d.ts +4 -0
  76. package/build-cjs/models/order/line-item/index.js.map +1 -0
  77. package/build-cjs/models/order/line-item/order-line-subscription-plan/index.d.ts +6 -0
  78. package/build-cjs/models/order/line-item/order-line-subscription-plan/order-line-item-subscription-plan-discount/index.d.ts +8 -0
  79. package/build-cjs/models/order/line-item/order-line-subscription-plan/order-line-item-subscription-plan-discount/index.js +1 -0
  80. package/build-cjs/models/order/line-item/order-line-subscription-plan/order-line-item-subscription-plan-period/index.d.ts +22 -0
  81. package/build-cjs/models/order/line-item/order-line-subscription-plan/order-line-item-subscription-plan-period/index.js +1 -0
  82. package/build-cjs/models/order/package/index.js.map +1 -0
  83. package/build-cjs/models/order/transaction/index.js.map +1 -0
  84. package/build-cjs/models/order/transaction/payment-method-detail/index.js.map +1 -0
  85. package/build-cjs/models/payment-gateway/additional-price/index.js.map +1 -0
  86. package/build-cjs/models/payment-gateway/index.js.map +1 -0
  87. package/build-cjs/models/payment-gateway/init.js.map +1 -0
  88. package/build-cjs/models/payment-gateway/settings/index.js.map +1 -0
  89. package/build-cjs/models/product/attribute/index.js.map +1 -0
  90. package/build-cjs/models/product/attribute/init.js.map +1 -0
  91. package/build-cjs/models/product/attribute-value/init.js.map +1 -0
  92. package/build-cjs/models/product/campaign/data/index.js.map +1 -0
  93. package/build-cjs/models/product/campaign/filter/index.js.map +1 -0
  94. package/build-cjs/models/product/campaign-offer/index.d.ts +2 -0
  95. package/build-cjs/models/product/filter/index.d.ts +2 -1
  96. package/build-cjs/models/product/filter/index.js +1 -1
  97. package/build-cjs/models/product/filter/index.js.map +1 -0
  98. package/build-cjs/models/product/image/init.js.map +1 -0
  99. package/build-cjs/models/product/index.d.ts +2 -0
  100. package/build-cjs/models/product/index.js.map +1 -0
  101. package/build-cjs/models/product/init.js.map +1 -0
  102. package/build-cjs/models/product/option-set/init.js.map +1 -0
  103. package/build-cjs/models/product/option-set/option/index.js.map +1 -0
  104. package/build-cjs/models/product/option-set/option/init.js.map +1 -0
  105. package/build-cjs/models/product/translations/index.d.ts +5 -0
  106. package/build-cjs/models/product/variant/init.js.map +1 -0
  107. package/build-cjs/models/product/variant/subscription-plan/index.d.ts +14 -0
  108. package/build-cjs/models/product/variant/subscription-plan/product-subscription-plan-discount/index.d.ts +8 -0
  109. package/build-cjs/models/product/variant/subscription-plan/product-subscription-plan-discount/index.js +1 -0
  110. package/build-cjs/models/product/variant/subscription-plan/product-subscription-plan-period/index.d.ts +28 -0
  111. package/build-cjs/models/product/variant/subscription-plan/product-subscription-plan-period/index.js +1 -0
  112. package/build-cjs/models/product/variant-type/init.js.map +1 -0
  113. package/build-cjs/models/raffle/index.js.map +1 -0
  114. package/build-cjs/models/raffle/init.js.map +1 -0
  115. package/build-cjs/models/stock-location/index.js.map +1 -0
  116. package/build-cjs/models/store-credit-balance/index.d.ts +24 -0
  117. package/build-cjs/models/store-credit-balance/index.js +1 -0
  118. package/build-cjs/models/storefront/index.js.map +1 -0
  119. package/build-cjs/models/storefront/meta-templates/index.js.map +1 -0
  120. package/build-cjs/models/storefront/theme/index.js.map +1 -0
  121. package/build-cjs/models/theme-json/component/prop/index.d.ts +1 -0
  122. package/build-cjs/models/theme-json/component/prop/index.js.map +1 -0
  123. package/build-cjs/models/theme-json/custom-data/index.d.ts +1 -0
  124. package/build-cjs/models/theme-json/page/index.js.map +1 -0
  125. package/build-cjs/models/theme-json/settings/index.js.map +1 -0
  126. package/build-cjs/models/variant-type/index.js.map +1 -0
  127. package/build-cjs/models/variant-type/init.js.map +1 -0
  128. package/build-cjs/models/variant-type/variant-value/init.js.map +1 -0
  129. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sources":["../../../../src/models/product/variant-type/init.ts"],"sourcesContent":["import { IkasProductVariantType } from \".\";\nimport { IkasVariantValue } from \"../../variant-type/variant-value\";\n\nexport function initIkasProductVariantType(\n variantType: IkasProductVariantType\n) {\n const orderedVariantValues: IkasVariantValue[] = [];\n variantType.variantValueIds.forEach((vvId) => {\n const variantValue = variantType.variantType.values.find(\n (vv) => vv.id === vvId\n );\n if (variantValue) orderedVariantValues.push(variantValue);\n });\n variantType.variantType.values = orderedVariantValues;\n}\n"],"names":["variantType","orderedVariantValues","variantValueIds","forEach","vvId","variantValue","values","find","vv","id","push"],"mappings":"uGAGM,SACJA,GAEA,IAAMC,EAA2C,GACjDD,EAAYE,gBAAgBC,SAAQ,SAACC,GACnC,IAAMC,EAAeL,EAAYA,YAAYM,OAAOC,MAClD,SAACC,GAAO,OAAAA,EAAGC,KAAOL,KAEhBC,GAAcJ,EAAqBS,KAAKL,MAE9CL,EAAYA,YAAYM,OAASL"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/models/raffle/index.ts"],"sourcesContent":["import { IkasProduct } from \"../product\";\n\nexport type IkasRaffleDateRangeField = {\n start: number | null;\n end: number | null;\n};\n\nexport enum IkasRaffleVerificationType {\n EMAIL = \"EMAIL\",\n MERSIS = \"MERSIS\",\n}\n\nexport type IkasRaffle = {\n id: string;\n createdAt: number;\n updatedAt: number;\n deleted: boolean | null;\n dateRange: IkasRaffleDateRangeField | null;\n metadata: IkasRaffleMetaData | null;\n name: string;\n requiredCustomerAccount: boolean;\n status: boolean;\n variants: IkasRaffleAppliedProduct[] | null;\n products: IkasProduct[];\n verificationType: IkasRaffleVerificationType;\n};\n\nexport enum IkasRaffleMetadataTargetType {\n RAFFLE = \"RAFFLE\",\n}\n\nexport type IkasRaffleMetaData = {\n id: string;\n createdAt: number;\n updatedAt: number;\n deleted: boolean | null;\n description: string | null;\n pageTitle: string | null;\n slug: string;\n targetId: string | null;\n targetType: IkasRaffleMetadataTargetType | null;\n canonicals: string[] | null;\n disableIndex: boolean | null;\n};\n\nexport type IkasRaffleParticipant = {\n id: string | null;\n createdAt: number | null;\n updatedAt: number | null;\n deleted: boolean | null;\n customerId: string | null;\n raffleId: string;\n firstName: string;\n lastName: string;\n fullName: string | null;\n email: string;\n applicationDate: number;\n phone: string | null;\n isDeliveredCargo: boolean | null;\n\n raffle: IkasRaffle | null;\n status: IkasRaffleParticipantStatus | null;\n extraData: Record<string, any> | null;\n appliedProduct: IkasRaffleAppliedProduct;\n};\n\nexport type IkasRaffleAppliedProduct = {\n productId: string;\n variantId: string;\n};\n\nexport enum IkasRaffleParticipantStatus {\n COMPLETED = \"COMPLETED\",\n IN_PROGRESS = \"IN_PROGRESS\",\n LOSER = \"LOSER\",\n WINNER = \"WINNER\",\n}\n"],"names":["IkasRaffleVerificationType","IkasRaffleParticipantStatus","IkasRaffleMetadataTargetType"],"mappings":"aAOA,IAAYA,EAgEAC,yDAhEAD,QAGXA,gCAAA,GAHWA,EAAAA,qCAAAA,QAAAA,2BAGX,KAFC,MAAA,QACAA,EAAA,OAAA,SAkBUE,QAEXA,kCAAA,GAFWA,uCAAAA,QAAAA,6BAEX,KADC,OAAA,SA2CUD,QAKXA,iCAAA,GALWA,EAAAA,QAA2BA,8BAA3BA,oCAKX,KAJC,UAAA,YACAA,EAAA,YAAA,cACAA,EAAA,MAAA,QACAA,EAAA,OAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sources":["../../../src/models/raffle/init.ts"],"sourcesContent":["import { IkasRaffle } from \".\";\nimport { initIkasProduct } from \"../product/init\";\n\nexport function initIkasRaffle(raffle: IkasRaffle, locale: string | null) {\n raffle.products?.map((p) => initIkasProduct(p, locale));\n}\n"],"names":["raffle","locale","_a","products","map","p","initIkasProduct"],"mappings":"+HAGgB,SAAeA,EAAoBC,iBACjDC,EAAAF,EAAOG,yBAAUC,KAAI,SAACC,GAAM,OAAAC,EAAAA,gBAAgBD,EAAGJ"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/models/stock-location/index.ts"],"sourcesContent":["import { IkasStockLocationAddress } from \"./address\";\n\nexport type IkasStockLocation = {\n address: IkasStockLocationAddress | null;\n deliveryTime: IkasStockLocationDeliveryTime | null;\n description: string | null;\n isRemindOutOfStockEnabled: boolean | null;\n name: string;\n outOfStockMailList: string[] | null;\n type: IkasStockLocationType | null;\n id: string;\n};\n\nexport enum IkasStockLocationDeliveryTime {\n TWO_IN_FOUR_DAYS = \"TWO_IN_FOUR_DAYS\",\n WITHIN_FOUR_HOURS = \"WITHIN_FOUR_HOURS\",\n WITHIN_ONE_HOUR = \"WITHIN_ONE_HOUR\",\n WITHIN_PLUS_FIVE_DAYS = \"WITHIN_PLUS_FIVE_DAYS\",\n WITHIN_TWENTY_FOUR_HOURS = \"WITHIN_TWENTY_FOUR_HOURS\",\n WITHIN_TWO_HOURS = \"WITHIN_TWO_HOURS\",\n}\n\nexport enum IkasStockLocationType {\n PHYSICAL = \"PHYSICAL\",\n VIRTUAL = \"VIRTUAL\",\n}\n"],"names":["IkasStockLocationDeliveryTime","IkasStockLocationType"],"mappings":"aAaA,IAAYA,EASAC,yDATAD,QAOXA,mCAAA,GAPWA,EAAAA,wCAAAA,QAAAA,8BAOX,KANC,iBAAA,mBACAA,EAAA,kBAAA,oBACAA,EAAA,gBAAA,kBACAA,EAAA,sBAAA,wBACAA,EAAA,yBAAA,2BACAA,EAAA,iBAAA,mBAGUC,QAGXA,2BAAA,GAHWA,EAAAA,QAAqBA,wBAArBA,8BAGX,KAFC,SAAA,WACAA,EAAA,QAAA"}
@@ -0,0 +1,24 @@
1
+ export declare type IkasStoreCreditBalance = {
2
+ amount: number;
3
+ storeCredits: IkasStoreCredit[];
4
+ };
5
+ export declare type IkasStoreCredit = {
6
+ usedAmount: number;
7
+ usedAllAmount: boolean | null;
8
+ type: IkasStoreCreditType;
9
+ salesChannels: IkasStoreCreditSalesChannel[];
10
+ minimumRequiredCartAmount: number | null;
11
+ customerId: string | null;
12
+ code: string;
13
+ amount: number;
14
+ active: boolean;
15
+ };
16
+ export declare type IkasStoreCreditSalesChannel = {
17
+ salesChannelId: string;
18
+ storefrontId: string | null;
19
+ storefrontRoutingId: string | null;
20
+ };
21
+ export declare enum IkasStoreCreditType {
22
+ GIFT_CARD = "GIFT_CARD",
23
+ STORE_CREDIT = "STORE_CREDIT"
24
+ }
@@ -0,0 +1 @@
1
+ "use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasStoreCreditType=void 0,(e=exports.IkasStoreCreditType||(exports.IkasStoreCreditType={})).GIFT_CARD="GIFT_CARD",e.STORE_CREDIT="STORE_CREDIT";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/models/storefront/index.ts"],"sourcesContent":["import { IkasStorefrontLocalization } from \"./localization\";\nimport { IkasStorefrontDomain } from \"./domain\";\nimport { IkasStorefrontRouting } from \"./routing\";\nimport { IkasStorefrontTheme } from \"./theme\";\nimport { IkasStorefontMetaTemplates } from \"./meta-templates\";\n\nexport enum IkasStorefrontStatus {\n WAITING = \"WAITING\",\n READY = \"READY\",\n}\n\nexport type IkasStorefront = {\n id: string;\n name: string;\n status: IkasStorefrontStatus;\n\n mainStorefrontThemeId: string | null;\n pickUpStockLocationIds: string[] | null;\n emailSettingsId: string | null;\n salesChannelId: string | null;\n fbpId: string | null;\n gtmId: string | null;\n analytics4Id: string | null;\n universalAnalyticsId: string | null;\n tiktokPixelId: string | null;\n token: string | null;\n metaTemplates: IkasStorefontMetaTemplates[] | null;\n robotsTxt: string | null;\n localizations: IkasStorefrontLocalization[];\n routings: IkasStorefrontRouting[];\n domains: IkasStorefrontDomain[];\n themes: IkasStorefrontTheme[];\n};\n"],"names":["IkasStorefrontStatus"],"mappings":"aAMA,IAAYA,yDAAAA,QAGXA,0BAAA,GAHWA,EAAAA,QAAoBA,uBAApBA,6BAGX,KAFC,QAAA,UACAA,EAAA,MAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/models/storefront/meta-templates/index.ts"],"sourcesContent":["export type IkasStorefontMetaTemplates = {\n descriptionTemplate: string | null;\n locale: string | null;\n pageType: StorefrontPageTypesEnum | null;\n titleTemplate: string | null;\n};\n\nexport enum StorefrontPageTypesEnum {\n BLOG = \"BLOG\",\n BLOG_CATEGORY = \"BLOG_CATEGORY\",\n BRAND = \"BRAND\",\n CATEGORY = \"CATEGORY\",\n CUSTOM = \"CUSTOM\",\n PRODUCT = \"PRODUCT\",\n}\n"],"names":["StorefrontPageTypesEnum"],"mappings":"aAOA,IAAYA,yDAAAA,QAOXA,6BAAA,GAPWA,EAAAA,QAAuBA,0BAAvBA,gCAOX,KANC,KAAA,OACAA,EAAA,cAAA,gBACAA,EAAA,MAAA,QACAA,EAAA,SAAA,WACAA,EAAA,OAAA,SACAA,EAAA,QAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/models/storefront/theme/index.tsx"],"sourcesContent":["export enum IkasStorefrontThemeStatus {\n WAITING = \"WAITING\",\n READY = \"READY\",\n}\n\nexport type IkasStorefrontTheme = {\n id: string;\n isMainTheme: boolean;\n name: string;\n status: IkasStorefrontThemeStatus;\n themeId: string;\n themeVersionId: string;\n};\n"],"names":["IkasStorefrontThemeStatus"],"mappings":"aAAA,IAAYA,yDAAAA,QAGXA,+BAAA,GAHWA,EAAAA,QAAyBA,4BAAzBA,kCAGX,KAFC,QAAA,UACAA,EAAA,MAAA"}
@@ -18,6 +18,7 @@ export declare type IkasThemeJsonComponentProp = {
18
18
  };
19
19
  excludedFields?: string[] | null;
20
20
  excludedFieldsCategory?: string[] | null;
21
+ isFacetListNotSent?: boolean;
21
22
  };
22
23
  export declare type IkasThemeJsonSliderData = {
23
24
  min?: number;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/models/theme-json/component/prop/index.ts"],"sourcesContent":["import { IkasProductAttributeType } from \"../../../..\";\n\nexport type IkasThemeJsonComponentProp = {\n id: string;\n name: string;\n displayName?: string;\n description?: string;\n type: IkasThemeJsonComponentPropType;\n isRequired: boolean;\n customDataId?: string | null;\n groupId?: string;\n requiredPropId?: string;\n requiredEnumOptionId?: string;\n requiredEnumOptionValue?: string;\n attributeTypes?: IkasProductAttributeType[] | null;\n sliderData: IkasThemeJsonSliderData;\n translations?: {\n [locale: string]: IkasPropTranslation;\n };\n};\n\nexport type IkasThemeJsonSliderData = {\n min?: number;\n max?: number;\n interval?: number;\n unit?: string;\n};\n\nexport enum IkasThemeJsonComponentPropType {\n TEXT = \"TEXT\",\n RICH_TEXT = \"RICH_TEXT\",\n BOOLEAN = \"BOOLEAN\",\n IMAGE = \"IMAGE\",\n IMAGE_LIST = \"IMAGE_LIST\",\n LINK = \"LINK\",\n LIST_OF_LINK = \"LIST_OF_LINK\",\n PRODUCT_DETAIL = \"PRODUCT_DETAIL\",\n PRODUCT_LIST = \"PRODUCT_LIST\",\n PRODUCT_ATTRIBUTE = \"PRODUCT_ATTRIBUTE\",\n PRODUCT_ATTRIBUTE_LIST = \"PRODUCT_ATTRIBUTE_LIST\",\n BRAND = \"BRAND\",\n BRAND_LIST = \"BRAND_LIST\",\n CATEGORY = \"CATEGORY\",\n CATEGORY_LIST = \"CATEGORY_LIST\",\n COLOR = \"COLOR\",\n CUSTOM = \"CUSTOM\",\n COMPONENT = \"COMPONENT\",\n COMPONENT_LIST = \"COMPONENT_LIST\",\n BLOG = \"BLOG\",\n BLOG_LIST = \"BLOG_LIST\",\n BLOG_CATEGORY = \"BLOG_CATEGORY\",\n BLOG_CATEGORY_LIST = \"BLOG_CATEGORY_LIST\",\n RAFFLE = \"RAFFLE\",\n RAFFLE_LIST = \"RAFFLE_LIST\",\n SLIDER = \"SLIDER\",\n\n OBJECT = \"OBJECT\",\n STATIC_LIST = \"STATIC_LIST\",\n DYNAMIC_LIST = \"DYNAMIC_LIST\",\n ENUM = \"ENUM\",\n}\n\nexport type IkasPropTranslation = {\n displayName: string | null;\n description: string | null;\n};\n"],"names":["IkasThemeJsonComponentPropType"],"mappings":"aA4BA,IAAYA,yDAAAA,QAgCXA,oCAAA,GAhCWA,EAAAA,QAA8BA,iCAA9BA,uCAgCX,KA/BC,KAAA,OACAA,EAAA,UAAA,YACAA,EAAA,QAAA,UACAA,EAAA,MAAA,QACAA,EAAA,WAAA,aACAA,EAAA,KAAA,OACAA,EAAA,aAAA,eACAA,EAAA,eAAA,iBACAA,EAAA,aAAA,eACAA,EAAA,kBAAA,oBACAA,EAAA,uBAAA,yBACAA,EAAA,MAAA,QACAA,EAAA,WAAA,aACAA,EAAA,SAAA,WACAA,EAAA,cAAA,gBACAA,EAAA,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,eAAA,iBACAA,EAAA,KAAA,OACAA,EAAA,UAAA,YACAA,EAAA,cAAA,gBACAA,EAAA,mBAAA,qBACAA,EAAA,OAAA,SACAA,EAAA,YAAA,cACAA,EAAA,OAAA,SAEAA,EAAA,OAAA,SACAA,EAAA,YAAA,cACAA,EAAA,aAAA,eACAA,EAAA,KAAA"}
@@ -21,6 +21,7 @@ export declare type IkasThemeJsonCustomData = {
21
21
  parent?: IkasThemeJsonCustomData | null;
22
22
  excludedFields?: string[] | null;
23
23
  excludedFieldsCategory?: string[] | null;
24
+ isFacetListNotSent?: boolean;
24
25
  };
25
26
  export declare type IkasThemeJsonEnumOption = {
26
27
  id: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/models/theme-json/page/index.ts"],"sourcesContent":["import { IkasThemeJsonPageComponent } from \"./component\";\n\nexport type IkasThemeJsonPage = {\n id: string;\n name: string | null;\n type: IkasThemeJsonPageType;\n slug: string | null;\n pageTitle: string | null;\n description: string | null;\n components: IkasThemeJsonPageComponent[];\n specifications: IkasThemeJsonPageSpecification[] | null;\n canonicals: string[] | null;\n disableIndex: boolean | null;\n};\n\nexport type IkasThemeJsonPageSpecification = {\n id: string;\n components: IkasThemeJsonPageComponent[];\n};\n\nexport enum IkasThemeJsonPageType {\n INDEX = \"INDEX\",\n CATEGORY = \"CATEGORY\",\n BRAND = \"BRAND\",\n PRODUCT = \"PRODUCT\",\n CUSTOM = \"CUSTOM\",\n ACCOUNT = \"ACCOUNT\",\n ADDRESSES = \"ADDRESSES\",\n ORDERS = \"ORDERS\",\n ORDER_DETAIL = \"ORDER_DETAIL\",\n LOGIN = \"LOGIN\",\n REGISTER = \"REGISTER\",\n FORGOT_PASSWORD = \"FORGOT_PASSWORD\",\n RECOVER_PASSWORD = \"RECOVER_PASSWORD\",\n CART = \"CART\",\n FAVORITE_PRODUCTS = \"FAVORITE_PRODUCTS\",\n SEARCH = \"SEARCH\",\n NOT_FOUND = \"NOT_FOUND\",\n BLOG = \"BLOG\",\n BLOG_INDEX = \"BLOG_INDEX\",\n BLOG_CATEGORY = \"BLOG_CATEGORY\",\n CHECKOUT = \"CHECKOUT\",\n RAFFLE = \"RAFFLE\",\n RAFFLE_DETAIL = \"RAFFLE_DETAIL\",\n RAFFLE_ACCOUNT = \"RAFFLE_ACCOUNT\",\n}\n"],"names":["IkasThemeJsonPageType"],"mappings":"aAoBA,IAAYA,yDAAAA,QAyBXA,2BAAA,GAzBWA,EAAAA,QAAqBA,wBAArBA,8BAyBX,KAxBC,MAAA,QACAA,EAAA,SAAA,WACAA,EAAA,MAAA,QACAA,EAAA,QAAA,UACAA,EAAA,OAAA,SACAA,EAAA,QAAA,UACAA,EAAA,UAAA,YACAA,EAAA,OAAA,SACAA,EAAA,aAAA,eACAA,EAAA,MAAA,QACAA,EAAA,SAAA,WACAA,EAAA,gBAAA,kBACAA,EAAA,iBAAA,mBACAA,EAAA,KAAA,OACAA,EAAA,kBAAA,oBACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,KAAA,OACAA,EAAA,WAAA,aACAA,EAAA,cAAA,gBACAA,EAAA,SAAA,WACAA,EAAA,OAAA,SACAA,EAAA,cAAA,gBACAA,EAAA,eAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/models/theme-json/settings/index.ts"],"sourcesContent":["import { IkasThemeJsonColor } from \"./color\";\nimport { IkasThemeJsonFavicon } from \"./favicon\";\nimport { IkasThemeJsonFontFamily } from \"./font-family\";\n\nexport type IkasThemeJsonSettings = {\n colors: IkasThemeJsonColor[];\n favicon: IkasThemeJsonFavicon;\n stockPreference: IkasThemeJsonStockPreference;\n fontFamily: IkasThemeJsonFontFamily;\n};\n\nexport enum IkasThemeJsonStockPreference {\n HIDE_OUT_OF_STOCK = \"HIDE_OUT_OF_STOCK\",\n SHOW_ALL = \"SHOW_ALL\",\n SHOW_OUT_OF_STOCK_AT_END = \"SHOW_OUT_OF_STOCK_AT_END\",\n}\n"],"names":["IkasThemeJsonStockPreference"],"mappings":"aAWA,IAAYA,yDAAAA,QAIXA,kCAAA,GAJWA,EAAAA,QAA4BA,+BAA5BA,qCAIX,KAHC,kBAAA,oBACAA,EAAA,SAAA,WACAA,EAAA,yBAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/models/variant-type/index.ts"],"sourcesContent":["import { IkasVariantValue } from \"./variant-value\";\n\nexport type IkasVariantType = {\n id: string;\n name: string;\n selectionType: IkasVariantSelectionType;\n values: IkasVariantValue[];\n translations?: IkasVariantTypeTranslation[] | null;\n};\n\nexport enum IkasVariantSelectionType {\n CHOICE = \"CHOICE\",\n COLOR = \"COLOR\",\n}\n\nexport type IkasVariantTypeTranslation = {\n locale: string;\n name: string | null;\n values: IkasVariantValueTranslation[] | null;\n};\n\nexport type IkasVariantValueTranslation = {\n id: string;\n name: string | null;\n};\n"],"names":["IkasVariantSelectionType"],"mappings":"aAUA,IAAYA,yDAAAA,QAGXA,8BAAA,GAHWA,EAAAA,QAAwBA,2BAAxBA,iCAGX,KAFC,OAAA,SACAA,EAAA,MAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sources":["../../../src/models/variant-type/init.ts"],"sourcesContent":["import { IkasVariantType, IkasVariantTypeTranslation } from \".\";\nimport { initIkasVariantValue } from \"./variant-value/init\";\n\nexport function initIkasVariantType(\n variantType: IkasVariantType,\n locale: string | null\n) {\n variantType.values.forEach((v) => {\n v.variantTypeId = variantType.id;\n initIkasVariantValue(v);\n });\n\n if (variantType.translations && locale) {\n setTranslations(variantType, variantType.translations, locale);\n delete variantType.translations;\n }\n}\n\nfunction setTranslations(\n variantType: IkasVariantType,\n translations: IkasVariantTypeTranslation[],\n locale: string\n) {\n if (translations && translations.some((t) => t.locale === locale)) {\n const localeTranslations = translations.find((t) => t.locale === locale);\n\n if (localeTranslations?.name) variantType.name = localeTranslations.name;\n if (localeTranslations?.values) {\n variantType.values.forEach((vv) => {\n const translatedVV = localeTranslations.values?.find(\n (tvv) => tvv.id === vv.id\n );\n if (translatedVV && translatedVV.name) vv.name = translatedVV.name;\n });\n }\n }\n}\n"],"names":["variantType","locale","values","forEach","v","variantTypeId","id","initIkasVariantValue","translations","some","t","localeTranslations_1","find","name","vv","translatedVV","_a","tvv","setTranslations"],"mappings":"yIAGgB,SACdA,EACAC,GAEAD,EAAYE,OAAOC,SAAQ,SAACC,GAC1BA,EAAEC,cAAgBL,EAAYM,GAC9BC,EAAoBA,qBAACH,MAGnBJ,EAAYQ,cAAgBP,KAMlC,SACED,EACAQ,EACAP,GAEA,GAAIO,GAAgBA,EAAaC,MAAK,SAACC,GAAM,OAAAA,EAAET,SAAWA,KAAS,CACjE,IAAMU,EAAqBH,EAAaI,MAAK,SAACF,GAAM,OAAAA,EAAET,SAAWA,MAE7DU,aAAA,EAAAA,EAAoBE,QAAMb,EAAYa,KAAOF,EAAmBE,OAChEF,eAAAA,EAAoBT,SACtBF,EAAYE,OAAOC,SAAQ,SAACW,SACpBC,EAAwC,QAAzBC,EAAAL,EAAmBT,cAAM,IAAAc,OAAA,EAAAA,EAAEJ,MAC9C,SAACK,GAAQ,OAAAA,EAAIX,KAAOQ,EAAGR,MAErBS,GAAgBA,EAAaF,OAAMC,EAAGD,KAAOE,EAAaF,UAnBlEK,CAAgBlB,EAAaA,EAAYQ,aAAcP,UAChDD,EAAYQ"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sources":["../../../../src/models/variant-type/variant-value/init.ts"],"sourcesContent":["import { IkasVariantValue } from \".\";\n\nexport function initIkasVariantValue(variantValue: IkasVariantValue) {\n variantValue.thumbnailImage = { id: variantValue.id, isVideo: false };\n}\n"],"names":["variantValue","thumbnailImage","id","isVideo"],"mappings":"iGAEM,SAA+BA,GACnCA,EAAaC,eAAiB,CAAEC,GAAIF,EAAaE,GAAIC,SAAS"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-models",
3
- "version": "6.1.0-beta.17",
3
+ "version": "6.1.0-beta.170",
4
4
  "author": "ikas",
5
5
  "license": "ISC",
6
6
  "description": "Data models to be used in an ikas storefront application.",