@ikas/storefront 0.0.14 → 0.0.16-0.alpha-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/build/__generated__/global-types.d.ts +214 -8
  2. package/build/analytics/analytics.d.ts +22 -0
  3. package/build/analytics/facebookPixel.d.ts +15 -0
  4. package/build/analytics/googleTagManager.d.ts +201 -0
  5. package/build/analytics/head/index.d.ts +7 -0
  6. package/build/analytics/index.d.ts +2 -0
  7. package/build/api/blog/__generated__/getBlog.d.ts +83 -0
  8. package/build/api/blog/__generated__/listBlog.d.ts +86 -0
  9. package/build/api/blog/__generated__/listBlogCategory.d.ts +38 -0
  10. package/build/api/blog/__generated__/listBlogMetaData.d.ts +29 -0
  11. package/build/api/blog/index.d.ts +32 -0
  12. package/build/api/brand/__generated__/listProductBrand.d.ts +3 -2
  13. package/build/api/brand/index.d.ts +1 -0
  14. package/build/api/cart/__generated__/getCart.d.ts +7 -3
  15. package/build/api/cart/__generated__/saveItemToCart.d.ts +6 -3
  16. package/build/api/category/__generated__/listCategory.d.ts +4 -2
  17. package/build/api/category/__generated__/listCategoryPaths.d.ts +23 -0
  18. package/build/api/category/index.d.ts +3 -0
  19. package/build/api/checkout/__generated__/checkStocks.d.ts +3 -3
  20. package/build/api/checkout/__generated__/getCheckoutByCartId.d.ts +1 -1
  21. package/build/api/checkout/__generated__/getCheckoutById.d.ts +5 -4
  22. package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +26 -0
  23. package/build/api/checkout/__generated__/listPaymentGateway.d.ts +14 -2
  24. package/build/api/checkout/__generated__/saveCheckout.d.ts +1 -1
  25. package/build/api/checkout/index.d.ts +11 -3
  26. package/build/api/city/__generated__/listCity.d.ts +1 -1
  27. package/build/api/contact-form/__generated__/sendContactFormToMerchant.d.ts +9 -0
  28. package/build/api/contact-form/index.d.ts +10 -0
  29. package/build/api/country/__generated__/getAvailableShippingCountries.d.ts +3 -0
  30. package/build/api/country/__generated__/getMyCountry.d.ts +3 -0
  31. package/build/api/country/__generated__/listCountry.d.ts +8 -1
  32. package/build/api/country/index.d.ts +3 -2
  33. package/build/api/customer/__generated__/createCustomerEmailSubscription.d.ts +11 -0
  34. package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +215 -0
  35. package/build/api/customer/__generated__/customerLogin.d.ts +5 -3
  36. package/build/api/customer/__generated__/getCustomerOrders.d.ts +3 -4
  37. package/build/api/customer/__generated__/getLastViewedProducts.d.ts +15 -0
  38. package/build/api/customer/__generated__/getMyCustomer.d.ts +3 -2
  39. package/build/api/customer/__generated__/listOrderTransactions.d.ts +1 -1
  40. package/build/api/customer/__generated__/registerCustomer.d.ts +2 -2
  41. package/build/api/customer/__generated__/saveLastViewedProducts.d.ts +11 -0
  42. package/build/api/customer/__generated__/saveMyCustomer.d.ts +3 -2
  43. package/build/api/customer/index.d.ts +15 -0
  44. package/build/api/district/__generated__/listDistrict.d.ts +1 -1
  45. package/build/api/favorite-product/__generated__/isFavoriteProduct.d.ts +6 -0
  46. package/build/api/favorite-product/__generated__/listFavoriteProducts.d.ts +12 -0
  47. package/build/api/favorite-product/__generated__/saveFavoriteProduct.d.ts +7 -0
  48. package/build/api/favorite-product/index.d.ts +6 -0
  49. package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +2 -1
  50. package/build/api/html-meta-data/index.d.ts +1 -1
  51. package/build/api/index.d.ts +4 -3
  52. package/build/api/merchant/__generated__/listMerchantSettings.d.ts +1 -1
  53. package/build/api/product-attribute/__generated__/listProductAttribute.d.ts +2 -2
  54. package/build/api/product-search/__generated__/getProductFilterData.d.ts +50 -0
  55. package/build/api/product-search/__generated__/searchProducts.d.ts +26 -0
  56. package/build/api/product-search/index.d.ts +20 -0
  57. package/build/api/state/__generated__/listState.d.ts +1 -1
  58. package/build/api/stock-location/__generated__/listStockLocation.d.ts +1 -1
  59. package/build/api/storefront/__generated__/getStorefront.d.ts +41 -12
  60. package/build/api/storefront/index.d.ts +1 -1
  61. package/build/api/variant-type/__generated__/listVariantType.d.ts +2 -2
  62. package/build/components/checkout/components/address-form/index.d.ts +3 -0
  63. package/build/components/checkout/components/address-form/model.d.ts +13 -2
  64. package/build/components/checkout/components/button/index.d.ts +4 -1
  65. package/build/components/checkout/components/cart-summary/cross.d.ts +6 -0
  66. package/build/components/checkout/components/cart-summary/tag.d.ts +6 -0
  67. package/build/components/checkout/components/checkbox/index.d.ts +2 -1
  68. package/build/components/checkout/components/error-container/customer-login-required-error/index.d.ts +6 -0
  69. package/build/components/checkout/components/error-container/payment-error/index.d.ts +2 -0
  70. package/build/components/checkout/components/form-item/model.d.ts +11 -2
  71. package/build/components/checkout/index.d.ts +5 -0
  72. package/build/components/checkout/model.d.ts +23 -10
  73. package/build/components/hoc/ThemeComponent.d.ts +2 -2
  74. package/build/components/image/index.d.ts +35 -0
  75. package/build/components/index.d.ts +1 -2
  76. package/build/components/page/head.d.ts +5 -0
  77. package/build/components/page/index.d.ts +6 -1
  78. package/build/components/page-editor/model.d.ts +6 -2
  79. package/build/index.d.ts +1 -0
  80. package/build/index.es.js +17677 -9251
  81. package/build/index.js +18351 -9889
  82. package/build/models/data/blog/index.d.ts +67 -0
  83. package/build/models/data/brand/index.d.ts +1 -1
  84. package/build/models/data/cart/index.d.ts +9 -0
  85. package/build/models/data/category/index.d.ts +22 -1
  86. package/build/models/data/checkout/index.d.ts +5 -0
  87. package/build/models/data/checkout-settings/index.d.ts +18 -0
  88. package/build/models/data/contact-form/index.d.ts +7 -0
  89. package/build/models/data/country/index.d.ts +2 -0
  90. package/build/models/data/customer/index.d.ts +7 -0
  91. package/build/models/data/favorite-product/index.d.ts +6 -0
  92. package/build/models/data/image/index.d.ts +1 -0
  93. package/build/models/data/index.d.ts +5 -1
  94. package/build/models/data/order/address/index.d.ts +6 -0
  95. package/build/models/data/order/index.d.ts +19 -1
  96. package/build/models/data/order/line-item/index.d.ts +18 -0
  97. package/build/models/data/order/refund/index.d.ts +6 -0
  98. package/build/models/data/order/refund/refund-line-item/index.d.ts +5 -0
  99. package/build/models/data/payment-gateway/index.d.ts +26 -2
  100. package/build/models/data/product/attribute-value/index.d.ts +15 -1
  101. package/build/models/data/product/index.d.ts +2 -1
  102. package/build/models/data/product/variant/index.d.ts +1 -0
  103. package/build/models/data/product/variant/price/index.d.ts +2 -0
  104. package/build/models/data/product-attribute/index.d.ts +5 -2
  105. package/build/models/data/product-attribute/product-attribute-table-cell/index.d.ts +5 -0
  106. package/build/models/data/product-attribute/product-attribute-table-template/index.d.ts +6 -0
  107. package/build/models/data/product-filter/index.d.ts +102 -0
  108. package/build/models/data/product-tag/index.d.ts +5 -0
  109. package/build/models/data/sales-channel/index.d.ts +18 -0
  110. package/build/models/data/simple-product/index.d.ts +135 -0
  111. package/build/models/data/storefront/{storefront-domain → domain}/index.d.ts +1 -0
  112. package/build/models/data/storefront/index.d.ts +17 -6
  113. package/build/models/data/storefront/localization/index.d.ts +7 -0
  114. package/build/models/data/storefront/routing/index.d.ts +9 -0
  115. package/build/models/data/storefront/theme/index.d.ts +13 -0
  116. package/build/models/data/storefront/theme-localization/index.d.ts +12 -0
  117. package/build/models/data/variant-type/variant-value/index.d.ts +1 -1
  118. package/build/models/theme/component/prop/index.d.ts +17 -1
  119. package/build/models/theme/custom-data/index.d.ts +24 -0
  120. package/build/models/theme/index.d.ts +4 -0
  121. package/build/models/theme/page/component/prop-value/attribute-list.d.ts +7 -0
  122. package/build/models/theme/page/component/prop-value/attribute.d.ts +7 -0
  123. package/build/models/theme/page/component/prop-value/blog-list.d.ts +9 -0
  124. package/build/models/theme/page/component/prop-value/blog.d.ts +5 -0
  125. package/build/models/theme/page/component/prop-value/product-list.d.ts +2 -0
  126. package/build/models/theme/page/index.d.ts +14 -1
  127. package/build/models/theme/settings/index.d.ts +7 -0
  128. package/build/models/theme/settings/prop/color/index.d.ts +7 -0
  129. package/build/models/theme/settings/prop/favicon/index.d.ts +4 -0
  130. package/build/models/theme/theme.d.ts +4 -0
  131. package/build/models/ui/blog-list/index.d.ts +56 -0
  132. package/build/models/ui/brand-list/index.d.ts +3 -0
  133. package/build/models/ui/category-list/index.d.ts +3 -0
  134. package/build/models/ui/component-renderer/index.d.ts +7 -0
  135. package/build/models/ui/index.d.ts +12 -2
  136. package/build/models/ui/product-detail/index.d.ts +14 -3
  137. package/build/models/ui/product-list/index.d.ts +62 -14
  138. package/build/models/ui/validator/form/account-info.d.ts +40 -0
  139. package/build/models/ui/validator/form/address.d.ts +75 -0
  140. package/build/models/ui/validator/form/contact-form.d.ts +45 -0
  141. package/build/models/ui/validator/form/forgot-password.d.ts +29 -0
  142. package/build/models/ui/validator/form/login.d.ts +35 -0
  143. package/build/models/ui/validator/form/recover-password.d.ts +36 -0
  144. package/build/models/ui/validator/form/register.d.ts +45 -0
  145. package/build/models/ui/validator/index.d.ts +27 -0
  146. package/build/models/ui/validator/rules/index.d.ts +87 -0
  147. package/build/pages/404.d.ts +13 -0
  148. package/build/pages/[slug]/index.d.ts +9 -3
  149. package/build/pages/account/addresses.d.ts +2 -0
  150. package/build/pages/account/favorite-products.d.ts +12 -0
  151. package/build/pages/account/forgot-password.d.ts +3 -0
  152. package/build/pages/account/index.d.ts +2 -0
  153. package/build/pages/account/login.d.ts +3 -0
  154. package/build/pages/account/orders/[id].d.ts +2 -0
  155. package/build/pages/account/orders/index.d.ts +2 -0
  156. package/build/pages/account/recover-password.d.ts +3 -0
  157. package/build/pages/account/register.d.ts +3 -0
  158. package/build/pages/blog/[slug].d.ts +18 -0
  159. package/build/pages/blog/index.d.ts +13 -0
  160. package/build/pages/cart.d.ts +12 -0
  161. package/build/pages/checkout/[id].d.ts +5 -0
  162. package/build/pages/home.d.ts +3 -0
  163. package/build/pages/index.d.ts +8 -2
  164. package/build/pages/{[slug]/[secondSlug].d.ts → pages/[slug].d.ts} +2 -0
  165. package/build/pages/search.d.ts +13 -0
  166. package/build/store/base.d.ts +17 -0
  167. package/build/store/customer.d.ts +31 -1
  168. package/build/storefront/index.d.ts +29 -3
  169. package/build/utils/helper.d.ts +1 -0
  170. package/build/utils/index.d.ts +1 -0
  171. package/build/utils/providers/page-data.d.ts +62 -5
  172. package/build/utils/providers/placeholders.d.ts +5 -0
  173. package/build/utils/providers/prop-value/attribute-list.d.ts +9 -0
  174. package/build/utils/providers/prop-value/attribute.d.ts +9 -0
  175. package/build/utils/providers/prop-value/blog-list.d.ts +9 -0
  176. package/build/utils/providers/prop-value/blog.d.ts +8 -0
  177. package/build/utils/providers/prop-value/boolean.d.ts +1 -1
  178. package/build/utils/providers/prop-value/category.d.ts +2 -2
  179. package/build/utils/providers/prop-value/color.d.ts +6 -0
  180. package/build/utils/providers/prop-value/custom.d.ts +40 -0
  181. package/build/utils/providers/prop-value/product-detail.d.ts +2 -2
  182. package/build/utils/providers/prop-value/product-list.d.ts +1 -3
  183. package/build/utils/providers/prop-value/rich-text.d.ts +6 -0
  184. package/build/utils/settings.d.ts +168 -0
  185. package/package.json +3 -3
  186. package/build/api/product/__generated__/listProduct.d.ts +0 -90
  187. package/build/api/product/index.d.ts +0 -15
  188. package/build/api/product-stock-location/__generated__/listProductStockLocation.d.ts +0 -13
  189. package/build/api/product-stock-location/index.d.ts +0 -4
  190. package/build/api/theme/index.d.ts +0 -4
  191. package/build/components/gtm/functions.d.ts +0 -164
  192. package/build/components/gtm/index.d.ts +0 -7
  193. package/build/models/data/storefront/stockfront-location/index.d.ts +0 -5
  194. package/build/models/data/storefront/stockfront-route/index.d.ts +0 -5
  195. package/build/models/data/storefront/storefront-region/index.d.ts +0 -18
  196. package/build/models/ui/product-list/filter.d.ts +0 -18
@@ -0,0 +1,135 @@
1
+ import { ProductAttributeTypeEnum, VariantSelectionTypeEnum } from "../../../__generated__/global-types";
2
+ import { IkasProductAttributeTableTemplate } from "../product-attribute/product-attribute-table-template/index";
3
+ export interface ISimpleProduct {
4
+ id: string;
5
+ createdAt?: Date;
6
+ updatedAt?: Date;
7
+ deleted: boolean;
8
+ name: string;
9
+ shortDescription?: string | null;
10
+ description?: string | null;
11
+ taxValue?: number | null;
12
+ weight?: number | null;
13
+ productVariantTypes: ISimpleProductVariantType[];
14
+ categories?: ISimpleCategory[] | null;
15
+ variants: ISimpleVariant[];
16
+ attributes?: ISimpleProductAttributeValue[] | null;
17
+ tags?: ISimpleProductTag[] | null;
18
+ brand?: ISimpleProductBrand | null;
19
+ metaData?: ISimpleHTMLMetaData | null;
20
+ }
21
+ export interface ISimpleVariantType {
22
+ id: string;
23
+ name: string;
24
+ selectionType: VariantSelectionTypeEnum;
25
+ values: ISimpleVariantValue[];
26
+ }
27
+ export interface ISimpleProductVariantType {
28
+ order: number;
29
+ variantType: ISimpleVariantType;
30
+ variantValueIds: string[];
31
+ }
32
+ export interface ISimpleVariant {
33
+ id: string;
34
+ deleted: boolean;
35
+ sku?: string | null;
36
+ barcodeList?: string[] | null;
37
+ weight?: number | null;
38
+ isActive: boolean;
39
+ variantValues?: ISimpleVariationValueRelation[] | null;
40
+ attributes?: ISimpleProductAttributeValue[] | null;
41
+ images?: ISimpleProductImage[] | null;
42
+ prices?: ISimpleProductPrice[];
43
+ stocks: ISimpleProductStockLocation[];
44
+ }
45
+ export interface ISimpleProductPrice {
46
+ sellPrice: number;
47
+ discountPrice: number | null;
48
+ buyPrice: number | null;
49
+ currency: string | null;
50
+ priceListId?: string | null;
51
+ }
52
+ export interface ISimpleProductImage {
53
+ order: number;
54
+ isMain: boolean;
55
+ id: string;
56
+ }
57
+ export interface ISimpleVariationValueRelation {
58
+ variantTypeId: string;
59
+ variantValueId: string;
60
+ }
61
+ export interface ISimpleVariantValue {
62
+ id: string;
63
+ name: string;
64
+ thumbnailImageId?: string | null;
65
+ colorCode?: string;
66
+ }
67
+ export interface ISimpleProductAttributeOption {
68
+ id: string;
69
+ name: string;
70
+ }
71
+ export interface ISimpleProductAttribute {
72
+ id: string;
73
+ name: string;
74
+ type: ProductAttributeTypeEnum;
75
+ tableTemplate: IkasProductAttributeTableTemplate | null;
76
+ }
77
+ export interface ISimpleProductAttributeValue {
78
+ value?: string | number | Date | boolean | null;
79
+ productAttribute?: ISimpleProductAttribute | null;
80
+ productAttributeOption?: ISimpleProductAttributeOption | null;
81
+ }
82
+ export interface ISimpleHTMLMetaData {
83
+ slug: string;
84
+ pageTitle?: string | null;
85
+ description?: string | null;
86
+ redirectTo?: string | null;
87
+ metadataOverrides?: ISimpleHTMLMetaDataOverride[] | null;
88
+ }
89
+ export interface ISimpleHTMLMetaDataOverride {
90
+ pageTitle: string;
91
+ description: string;
92
+ language?: string | null;
93
+ storefrontId?: string | null;
94
+ storefrontRegionId?: string | null;
95
+ }
96
+ export interface ISimpleCategoryPath {
97
+ id: string;
98
+ name: string;
99
+ slug?: string | null;
100
+ }
101
+ export interface ISimpleCategory {
102
+ id: string;
103
+ name: string;
104
+ path: ISimpleCategoryPath[];
105
+ slug?: string | null;
106
+ }
107
+ export interface ISimpleProductTag {
108
+ id: string;
109
+ name: string;
110
+ }
111
+ export interface ISimpleProductBrand {
112
+ id: string;
113
+ name: string;
114
+ slug?: string | null;
115
+ }
116
+ export interface ISimpleProductStockLocation {
117
+ stockCount: number;
118
+ stockLocationId: string;
119
+ }
120
+ export declare class FilterStockStatusId {
121
+ static IN_STOCK: string;
122
+ static OUT_OF_STOCK: string;
123
+ static ALL_LIST: string[];
124
+ }
125
+ export declare class FilterBooleanId {
126
+ static TRUE: string;
127
+ static FALSE: string;
128
+ }
129
+ export declare const PRODUCT_FILTER: {
130
+ STOCK_STATUS: string;
131
+ DISCOUNT_RATIO: string;
132
+ PRICE: string;
133
+ TAG: string;
134
+ BRAND: string;
135
+ };
@@ -3,5 +3,6 @@ export declare class IkasStorefrontDomain {
3
3
  merchantDomainId: string;
4
4
  name: string;
5
5
  redirectDomainName: string | null;
6
+ isDefault?: boolean | false;
6
7
  constructor(data?: Partial<IkasStorefrontDomain>);
7
8
  }
@@ -1,12 +1,23 @@
1
- import { IkasStorefrontDomain } from "./storefront-domain/index";
2
- import { IkasStorefrontRegion } from "./storefront-region/index";
1
+ import { IkasStorefrontLocalization } from "./localization/index";
2
+ import { IkasStorefrontDomain } from "./domain/index";
3
+ import { IkasStorefrontRouting } from "./routing/index";
4
+ import { IkasStorefrontTheme } from "./theme/index";
5
+ export declare enum StorefrontStatus {
6
+ WAITING = "WAITING",
7
+ READY = "READY"
8
+ }
3
9
  export declare class IkasStorefront {
4
10
  id: string;
5
11
  name: string;
6
- themeId: string;
7
- themeVersionId: string;
8
- userId: string;
12
+ status: StorefrontStatus;
13
+ mainStorefrontThemeId: string | null;
14
+ emailSettingsId: string | null;
15
+ salesChannelId: string | null;
16
+ fbpId: string | null;
17
+ gtmId: string | null;
18
+ localizations: IkasStorefrontLocalization[];
19
+ routings: IkasStorefrontRouting[];
9
20
  domains: IkasStorefrontDomain[];
10
- regions: IkasStorefrontRegion[];
21
+ themes: IkasStorefrontTheme[];
11
22
  constructor(data?: Partial<IkasStorefront>);
12
23
  }
@@ -0,0 +1,7 @@
1
+ export declare class IkasStorefrontLocalization {
2
+ id: string;
3
+ isDefault: boolean;
4
+ locale: string;
5
+ name: string;
6
+ constructor(data: Partial<IkasStorefrontLocalization>);
7
+ }
@@ -0,0 +1,9 @@
1
+ export declare class IkasStorefrontRouting {
2
+ id: string;
3
+ countryCodes: string[] | null;
4
+ domain: string | null;
5
+ locale: string;
6
+ path: string | null;
7
+ priceListId: string | null;
8
+ constructor(data: Partial<IkasStorefrontRouting>);
9
+ }
@@ -0,0 +1,13 @@
1
+ export declare enum IkasStorefrontThemeStatus {
2
+ WAITING = "WAITING",
3
+ READY = "READY"
4
+ }
5
+ export declare class IkasStorefrontTheme {
6
+ id: string;
7
+ isMainTheme: boolean;
8
+ name: string;
9
+ status: IkasStorefrontThemeStatus;
10
+ themeId: string;
11
+ themeVersionId: string;
12
+ constructor(data: Partial<IkasStorefrontTheme>);
13
+ }
@@ -0,0 +1,12 @@
1
+ import { IkasTheme } from "../../../theme/index";
2
+ export declare class IkasStorefrontThemeLocalization {
3
+ id: string;
4
+ locale: string;
5
+ storefrontId: string;
6
+ storefrontThemeId: string;
7
+ themeJson: IkasTheme;
8
+ privacyPolicy: string | null;
9
+ returnPolicy: string | null;
10
+ termsOfService: string | null;
11
+ constructor(data: Partial<IkasStorefrontThemeLocalization>);
12
+ }
@@ -3,7 +3,7 @@ export declare class IkasVariantValue {
3
3
  id: string;
4
4
  name: string;
5
5
  colorCode: string | null;
6
- thumbnilImageId: string | null;
6
+ thumbnailImageId: string | null;
7
7
  variantTypeId: string;
8
8
  constructor(data: Partial<IkasVariantValue>);
9
9
  get slug(): string;
@@ -1,13 +1,17 @@
1
+ import { IkasProductAttributeType } from "../../../data/product-attribute/index";
1
2
  export declare class IkasThemeComponentProp {
2
3
  id: string;
3
4
  name: string;
4
5
  displayName: string;
5
6
  type: IkasThemeComponentPropType;
6
7
  isRequired: boolean;
8
+ customDataId?: string | null;
9
+ attributeTypes?: IkasProductAttributeType[] | null;
7
10
  constructor(data: Partial<IkasThemeComponentProp>);
8
11
  }
9
12
  export declare enum IkasThemeComponentPropType {
10
13
  TEXT = "TEXT",
14
+ RICH_TEXT = "RICH_TEXT",
11
15
  BOOLEAN = "BOOLEAN",
12
16
  IMAGE = "IMAGE",
13
17
  IMAGE_LIST = "IMAGE_LIST",
@@ -15,8 +19,20 @@ export declare enum IkasThemeComponentPropType {
15
19
  LIST_OF_LINK = "LIST_OF_LINK",
16
20
  PRODUCT_DETAIL = "PRODUCT_DETAIL",
17
21
  PRODUCT_LIST = "PRODUCT_LIST",
22
+ PRODUCT_ATTRIBUTE = "PRODUCT_ATTRIBUTE",
23
+ PRODUCT_ATTRIBUTE_LIST = "PRODUCT_ATTRIBUTE_LIST",
18
24
  BRAND = "BRAND",
19
25
  BRAND_LIST = "BRAND_LIST",
20
26
  CATEGORY = "CATEGORY",
21
- CATEGORY_LIST = "CATEGORY_LIST"
27
+ CATEGORY_LIST = "CATEGORY_LIST",
28
+ COLOR = "COLOR",
29
+ CUSTOM = "CUSTOM",
30
+ COMPONENT = "COMPONENT",
31
+ COMPONENT_LIST = "COMPONENT_LIST",
32
+ BLOG = "BLOG",
33
+ BLOG_LIST = "BLOG_LIST",
34
+ OBJECT = "OBJECT",
35
+ STATIC_LIST = "STATIC_LIST",
36
+ DYNAMIC_LIST = "DYNAMIC_LIST",
37
+ ENUM = "ENUM"
22
38
  }
@@ -0,0 +1,24 @@
1
+ import { IkasProductAttributeType } from "../../data/product-attribute/index";
2
+ import { IkasThemeComponentPropType } from "../component/prop/index";
3
+ export declare class IkasThemeCustomData {
4
+ id: string;
5
+ name?: string | null;
6
+ type: IkasThemeComponentPropType;
7
+ isRequired: boolean;
8
+ key?: string | null;
9
+ nestedData?: IkasThemeCustomData[] | null;
10
+ itemCount?: number | null;
11
+ attributeTypes?: IkasProductAttributeType[] | null;
12
+ enumOptions?: IkasThemeEnumOption[] | null;
13
+ customDataId?: string | null;
14
+ isRoot: boolean;
15
+ parent?: IkasThemeCustomData | null;
16
+ constructor(data?: Partial<IkasThemeCustomData>);
17
+ toJSON(): this;
18
+ }
19
+ export declare class IkasThemeEnumOption {
20
+ id: string;
21
+ displayName: string;
22
+ value: string;
23
+ constructor(data?: Partial<IkasThemeEnumOption>);
24
+ }
@@ -10,3 +10,7 @@ export { IkasProductListPropValue } from "./page/component/prop-value/product-li
10
10
  export { IkasProductDetailPropValue } from "./page/component/prop-value/product-detail";
11
11
  export { IkasCategoryPropValue } from "./page/component/prop-value/category";
12
12
  export { IkasCategoryListPropValue } from "./page/component/prop-value/category-list";
13
+ export { IkasThemeSettings } from "./settings/index";
14
+ export { IkasThemeCustomData } from "./custom-data/index";
15
+ export { IkasBlogPropValue } from "./page/component/prop-value/blog";
16
+ export { IkasBlogListPropValue } from "./page/component/prop-value/blog-list";
@@ -0,0 +1,7 @@
1
+ export declare class IkasAttributeListPropValue {
2
+ attributeIds?: string[] | null;
3
+ productId?: string | null;
4
+ variantId?: string | null;
5
+ usePageData?: boolean | null;
6
+ constructor(data: Partial<IkasAttributeListPropValue>);
7
+ }
@@ -0,0 +1,7 @@
1
+ export declare class IkasAttributePropValue {
2
+ attributeId?: string | null;
3
+ productId?: string | null;
4
+ variantId?: string | null;
5
+ usePageData?: boolean | null;
6
+ constructor(data: Partial<IkasAttributePropValue>);
7
+ }
@@ -0,0 +1,9 @@
1
+ import { IkasBlogListType } from "../../../../ui/blog-list/index";
2
+ export declare class IkasBlogListPropValue {
3
+ blogListType: IkasBlogListType;
4
+ initialLimit?: number | null;
5
+ blogIds?: string[] | null;
6
+ categoryId: string | null;
7
+ usePageFilter?: boolean | null;
8
+ constructor(data: Partial<IkasBlogListPropValue>);
9
+ }
@@ -0,0 +1,5 @@
1
+ export declare class IkasBlogPropValue {
2
+ blogId?: string | null;
3
+ usePageData?: boolean | null;
4
+ constructor(data: Partial<IkasBlogPropValue>);
5
+ }
@@ -1,11 +1,13 @@
1
1
  import { IkasProductListSortType, IkasProductListType } from "../../../../ui/index";
2
2
  export declare class IkasProductListPropValue {
3
+ id: string;
3
4
  productListType: IkasProductListType;
4
5
  initialSort?: IkasProductListSortType | null;
5
6
  initialLimit?: number | null;
6
7
  productCount?: number | null;
7
8
  productIds?: IkasProductVariantId[] | null;
8
9
  usePageFilter?: boolean | null;
10
+ category?: string | null;
9
11
  constructor(data: Partial<IkasProductListPropValue>);
10
12
  }
11
13
  declare type IkasProductVariantId = {
@@ -7,8 +7,14 @@ export declare class IkasThemePage {
7
7
  pageTitle: string | null;
8
8
  description: string | null;
9
9
  components: IkasThemePageComponent[];
10
+ specifications: IkasThemePageSpecification[] | null;
10
11
  constructor(data: Partial<IkasThemePage>);
11
12
  }
13
+ export declare class IkasThemePageSpecification {
14
+ id: string;
15
+ components: IkasThemePageComponent[];
16
+ constructor(data: Partial<IkasThemePageSpecification>);
17
+ }
12
18
  export declare enum IkasThemePageType {
13
19
  INDEX = "INDEX",
14
20
  CATEGORY = "CATEGORY",
@@ -22,5 +28,12 @@ export declare enum IkasThemePageType {
22
28
  LOGIN = "LOGIN",
23
29
  REGISTER = "REGISTER",
24
30
  FORGOT_PASSWORD = "FORGOT_PASSWORD",
25
- RECOVER_PASSWORD = "RECOVER_PASSWORD"
31
+ RECOVER_PASSWORD = "RECOVER_PASSWORD",
32
+ CART = "CART",
33
+ FAVORITE_PRODUCTS = "FAVORITE_PRODUCTS",
34
+ SEARCH = "SEARCH",
35
+ NOT_FOUND = "NOT_FOUND",
36
+ BLOG = "BLOG",
37
+ BLOG_INDEX = "BLOG_INDEX",
38
+ BLOG_CATEGORY = "BLOG_CATEGORY"
26
39
  }
@@ -0,0 +1,7 @@
1
+ import { IkasThemeColor } from "./prop/color/index";
2
+ import { IkasThemeFavicon } from "./prop/favicon/index";
3
+ export declare class IkasThemeSettings {
4
+ colors: IkasThemeColor[];
5
+ favicon: IkasThemeFavicon;
6
+ constructor(data?: Partial<IkasThemeSettings>);
7
+ }
@@ -0,0 +1,7 @@
1
+ export declare class IkasThemeColor {
2
+ id: string;
3
+ displayName: string;
4
+ key: string;
5
+ color: string;
6
+ constructor(data: Partial<IkasThemeColor>);
7
+ }
@@ -0,0 +1,4 @@
1
+ export declare class IkasThemeFavicon {
2
+ id: string | null;
3
+ constructor(data?: Partial<IkasThemeFavicon>);
4
+ }
@@ -1,9 +1,13 @@
1
1
  import { IkasThemeComponent } from "./component/index";
2
+ import { IkasThemeCustomData } from "./custom-data/index";
2
3
  import { IkasThemePage } from "./page/index";
4
+ import { IkasThemeSettings } from "./settings/index";
3
5
  export declare class IkasTheme {
4
6
  name: string;
5
7
  components: IkasThemeComponent[];
6
8
  pages: IkasThemePage[];
9
+ settings: IkasThemeSettings;
10
+ customData: IkasThemeCustomData[];
7
11
  constructor(data?: Partial<IkasTheme>);
8
12
  get headerComponent(): IkasThemeComponent | undefined;
9
13
  get footerComponent(): IkasThemeComponent | undefined;
@@ -0,0 +1,56 @@
1
+ import { IkasBlog } from "../../data/blog/index";
2
+ import { IkasBlogListPropValue } from "../../theme/page/component/prop-value/blog-list";
3
+ export declare class IkasBlogList {
4
+ data: IkasBlog[];
5
+ private _type;
6
+ private _limit;
7
+ private _page;
8
+ private _count;
9
+ private _initialized;
10
+ private _minPage?;
11
+ private _blogListPropValue;
12
+ private _filterCategoryId;
13
+ private _isLoading;
14
+ constructor(data: IkasBlogListParams);
15
+ get limit(): number;
16
+ get page(): number;
17
+ get count(): number;
18
+ get pageCount(): number;
19
+ get isInitialized(): boolean;
20
+ get isStatic(): boolean;
21
+ get hasPrev(): boolean;
22
+ get hasNext(): boolean;
23
+ get isLoading(): boolean;
24
+ private listBlogs;
25
+ private getInitial;
26
+ getPrev: () => Promise<void>;
27
+ getNext: () => Promise<void>;
28
+ getPage: (page: number) => Promise<void>;
29
+ toJSON(): {
30
+ data: IkasBlog[];
31
+ type: IkasBlogListType;
32
+ limit: number;
33
+ page: number;
34
+ count: number;
35
+ initialized: boolean;
36
+ minPage: number | null | undefined;
37
+ blogListPropValue: IkasBlogListPropValue;
38
+ filterCategoryId: string | null;
39
+ };
40
+ }
41
+ export declare type IkasBlogListParams = {
42
+ data?: IkasBlog[];
43
+ type?: IkasBlogListType;
44
+ limit?: number;
45
+ page?: number;
46
+ count?: number;
47
+ initialized?: boolean;
48
+ minPage?: number;
49
+ blogListPropValue: IkasBlogListPropValue;
50
+ filterCategoryId: string | null;
51
+ };
52
+ export declare enum IkasBlogListType {
53
+ ALL = "ALL",
54
+ STATIC = "STATIC",
55
+ CATEGORY = "CATEGORY"
56
+ }
@@ -16,15 +16,18 @@ export declare class IkasBrandList {
16
16
  get limit(): number;
17
17
  get page(): number;
18
18
  get count(): number;
19
+ get pageCount(): number;
19
20
  get isInitialized(): boolean;
20
21
  get isStatic(): boolean;
21
22
  get hasPrev(): boolean;
22
23
  get hasNext(): boolean;
23
24
  get isLoading(): boolean;
25
+ private getSortParams;
24
26
  getInitial: () => Promise<void>;
25
27
  getPrev: () => Promise<void>;
26
28
  getNext: () => Promise<void>;
27
29
  getPage: (page: number) => Promise<void>;
30
+ setSortType(sortType: IkasBrandListSortType): Promise<void>;
28
31
  toJSON(): {
29
32
  data: IkasBrand[];
30
33
  type: IkasBrandListType;
@@ -16,15 +16,18 @@ export declare class IkasCategoryList {
16
16
  get limit(): number;
17
17
  get page(): number;
18
18
  get count(): number;
19
+ get pageCount(): number;
19
20
  get isInitialized(): boolean;
20
21
  get isStatic(): boolean;
21
22
  get hasPrev(): boolean;
22
23
  get hasNext(): boolean;
23
24
  get isLoading(): boolean;
25
+ private getSortParams;
24
26
  getInitial: () => Promise<void>;
25
27
  getPrev: () => Promise<void>;
26
28
  getNext: () => Promise<void>;
27
29
  getPage: (page: number) => Promise<void>;
30
+ setSortType(sortType: IkasCategoryListSortType): Promise<void>;
28
31
  toJSON(): {
29
32
  data: IkasCategory[];
30
33
  type: IkasCategoryListType;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare type RenderFunction = () => React.ReactNode;
3
+ export declare class IkasComponentRenderer {
4
+ render: RenderFunction;
5
+ constructor(render: RenderFunction);
6
+ }
7
+ export {};
@@ -1,7 +1,17 @@
1
+ export * from "./blog-list/index";
1
2
  export { IkasBrandList, IkasBrandListType, IkasBrandListSortType, } from "./brand-list/index";
2
3
  export { IkasCategoryList, IkasCategoryListType, IkasCategoryListSortType, } from "./category-list/index";
3
4
  export type { IkasBrandListParams } from "./brand-list/index";
4
5
  export { IkasNavigationLink } from "./navigation-link/index";
5
- export { IkasProductDetail } from "./product-detail/index";
6
+ export { IkasProductDetail, IkasDisplayedVariantType, IkasDisplayedVariantValue, } from "./product-detail/index";
6
7
  export { IkasProductList, IkasProductListType, IkasProductListSortType, } from "./product-list/index";
7
- export { IkasProductListFilter } from "./product-list/filter";
8
+ export { Validator, ValidationStatus } from "./validator/index";
9
+ export * from "./validator/rules/index";
10
+ export { LoginForm } from "./validator/form/login";
11
+ export { AddressForm } from "./validator/form/address";
12
+ export { RegisterForm } from "./validator/form/register";
13
+ export { ContactForm } from "./validator/form/contact-form";
14
+ export { ForgotPasswordForm } from "./validator/form/forgot-password";
15
+ export { RecoverPasswordForm } from "./validator/form/recover-password";
16
+ export { AccountInfoForm } from "./validator/form/account-info";
17
+ export * from "./component-renderer/index";
@@ -1,13 +1,24 @@
1
1
  import { IkasProduct, IkasVariantValue } from "../../index";
2
2
  import { NextRouter } from "next/router";
3
+ import { IkasProductVariant, IkasVariantType } from "../../data/index";
3
4
  export declare class IkasProductDetail {
4
5
  product: IkasProduct;
5
6
  selectedVariantValues: IkasVariantValue[];
6
- private usePageData?;
7
7
  private router?;
8
- constructor(product: IkasProduct, selectedVariantValues: IkasVariantValue[], usePageData?: boolean, router?: NextRouter);
8
+ constructor(product: IkasProduct, selectedVariantValues: IkasVariantValue[], router?: NextRouter);
9
9
  get mainVariantValue(): IkasVariantValue | undefined;
10
- get selectedVariant(): import("../../index").IkasProductVariant;
10
+ get selectedVariant(): IkasProductVariant;
11
11
  get href(): string;
12
+ get displayedVariantTypes(): IkasDisplayedVariantType[];
12
13
  selectVariantValue(variantValue: IkasVariantValue): void;
13
14
  }
15
+ export declare type IkasDisplayedVariantValue = {
16
+ variant: IkasProductVariant;
17
+ variantValue: IkasVariantValue;
18
+ hasStock: boolean;
19
+ isSelected: boolean;
20
+ };
21
+ export declare type IkasDisplayedVariantType = {
22
+ variantType: IkasVariantType;
23
+ displayedVariantValues: IkasDisplayedVariantValue[];
24
+ };