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

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 +8 -214
  2. package/build/api/brand/__generated__/listProductBrand.d.ts +2 -3
  3. package/build/api/brand/index.d.ts +0 -1
  4. package/build/api/cart/__generated__/getCart.d.ts +3 -7
  5. package/build/api/cart/__generated__/saveItemToCart.d.ts +3 -6
  6. package/build/api/category/__generated__/listCategory.d.ts +2 -4
  7. package/build/api/category/index.d.ts +0 -3
  8. package/build/api/checkout/__generated__/checkStocks.d.ts +3 -3
  9. package/build/api/checkout/__generated__/getCheckoutByCartId.d.ts +1 -1
  10. package/build/api/checkout/__generated__/getCheckoutById.d.ts +4 -5
  11. package/build/api/checkout/__generated__/listPaymentGateway.d.ts +2 -14
  12. package/build/api/checkout/__generated__/saveCheckout.d.ts +1 -1
  13. package/build/api/checkout/index.d.ts +3 -11
  14. package/build/api/city/__generated__/listCity.d.ts +1 -1
  15. package/build/api/country/__generated__/getAvailableShippingCountries.d.ts +0 -3
  16. package/build/api/country/__generated__/listCountry.d.ts +1 -8
  17. package/build/api/country/index.d.ts +2 -3
  18. package/build/api/customer/__generated__/customerLogin.d.ts +3 -5
  19. package/build/api/customer/__generated__/getCustomerOrders.d.ts +4 -3
  20. package/build/api/customer/__generated__/getMyCustomer.d.ts +2 -3
  21. package/build/api/customer/__generated__/listOrderTransactions.d.ts +1 -1
  22. package/build/api/customer/__generated__/registerCustomer.d.ts +2 -2
  23. package/build/api/customer/__generated__/saveMyCustomer.d.ts +2 -3
  24. package/build/api/customer/index.d.ts +0 -15
  25. package/build/api/district/__generated__/listDistrict.d.ts +1 -1
  26. package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +1 -2
  27. package/build/api/html-meta-data/index.d.ts +1 -1
  28. package/build/api/index.d.ts +3 -4
  29. package/build/api/merchant/__generated__/listMerchantSettings.d.ts +1 -1
  30. package/build/api/product/__generated__/listProduct.d.ts +90 -0
  31. package/build/api/product/index.d.ts +15 -0
  32. package/build/api/product-attribute/__generated__/listProductAttribute.d.ts +2 -2
  33. package/build/api/product-stock-location/__generated__/listProductStockLocation.d.ts +13 -0
  34. package/build/api/product-stock-location/index.d.ts +4 -0
  35. package/build/api/state/__generated__/listState.d.ts +1 -1
  36. package/build/api/stock-location/__generated__/listStockLocation.d.ts +1 -1
  37. package/build/api/storefront/__generated__/getStorefront.d.ts +12 -41
  38. package/build/api/storefront/index.d.ts +1 -1
  39. package/build/api/theme/index.d.ts +4 -0
  40. package/build/api/variant-type/__generated__/listVariantType.d.ts +2 -2
  41. package/build/components/checkout/components/address-form/index.d.ts +0 -3
  42. package/build/components/checkout/components/address-form/model.d.ts +0 -11
  43. package/build/components/checkout/components/button/index.d.ts +1 -4
  44. package/build/components/checkout/components/checkbox/index.d.ts +1 -2
  45. package/build/components/checkout/components/error-container/payment-error/index.d.ts +0 -2
  46. package/build/components/checkout/components/form-item/model.d.ts +2 -11
  47. package/build/components/checkout/index.d.ts +0 -5
  48. package/build/components/checkout/model.d.ts +5 -18
  49. package/build/components/gtm/functions.d.ts +164 -0
  50. package/build/components/gtm/index.d.ts +7 -0
  51. package/build/components/hoc/ThemeComponent.d.ts +2 -2
  52. package/build/components/index.d.ts +2 -1
  53. package/build/components/page/head.d.ts +0 -5
  54. package/build/components/page/index.d.ts +1 -6
  55. package/build/components/page-editor/model.d.ts +2 -6
  56. package/build/index.d.ts +0 -1
  57. package/build/index.es.js +10449 -18854
  58. package/build/index.js +10441 -18882
  59. package/build/models/data/brand/index.d.ts +1 -1
  60. package/build/models/data/cart/index.d.ts +0 -9
  61. package/build/models/data/category/index.d.ts +1 -22
  62. package/build/models/data/checkout/index.d.ts +0 -5
  63. package/build/models/data/country/index.d.ts +0 -2
  64. package/build/models/data/customer/index.d.ts +0 -7
  65. package/build/models/data/image/index.d.ts +0 -1
  66. package/build/models/data/index.d.ts +1 -5
  67. package/build/models/data/order/address/index.d.ts +0 -6
  68. package/build/models/data/order/index.d.ts +1 -19
  69. package/build/models/data/order/line-item/index.d.ts +0 -18
  70. package/build/models/data/payment-gateway/index.d.ts +2 -26
  71. package/build/models/data/product/attribute-value/index.d.ts +1 -15
  72. package/build/models/data/product/index.d.ts +1 -2
  73. package/build/models/data/product/variant/index.d.ts +0 -1
  74. package/build/models/data/product/variant/price/index.d.ts +0 -2
  75. package/build/models/data/product-attribute/index.d.ts +2 -5
  76. package/build/models/data/storefront/index.d.ts +6 -17
  77. package/build/models/data/storefront/stockfront-location/index.d.ts +5 -0
  78. package/build/models/data/storefront/stockfront-route/index.d.ts +5 -0
  79. package/build/models/data/storefront/{domain → storefront-domain}/index.d.ts +0 -1
  80. package/build/models/data/storefront/storefront-region/index.d.ts +18 -0
  81. package/build/models/data/variant-type/variant-value/index.d.ts +1 -1
  82. package/build/models/theme/component/prop/index.d.ts +1 -17
  83. package/build/models/theme/index.d.ts +0 -4
  84. package/build/models/theme/page/component/prop-value/product-list.d.ts +0 -2
  85. package/build/models/theme/page/index.d.ts +1 -14
  86. package/build/models/theme/theme.d.ts +0 -4
  87. package/build/models/ui/brand-list/index.d.ts +0 -3
  88. package/build/models/ui/category-list/index.d.ts +0 -3
  89. package/build/models/ui/index.d.ts +2 -12
  90. package/build/models/ui/product-detail/index.d.ts +3 -14
  91. package/build/models/ui/product-list/filter.d.ts +18 -0
  92. package/build/models/ui/product-list/index.d.ts +14 -62
  93. package/build/pages/{pages/[slug].d.ts → [slug]/[secondSlug].d.ts} +0 -2
  94. package/build/pages/[slug]/index.d.ts +3 -9
  95. package/build/pages/account/addresses.d.ts +0 -2
  96. package/build/pages/account/forgot-password.d.ts +0 -3
  97. package/build/pages/account/index.d.ts +0 -2
  98. package/build/pages/account/login.d.ts +0 -3
  99. package/build/pages/account/orders/[id].d.ts +0 -2
  100. package/build/pages/account/orders/index.d.ts +0 -2
  101. package/build/pages/account/recover-password.d.ts +0 -3
  102. package/build/pages/account/register.d.ts +0 -3
  103. package/build/pages/checkout/[id].d.ts +0 -5
  104. package/build/pages/home.d.ts +0 -3
  105. package/build/pages/index.d.ts +2 -8
  106. package/build/store/base.d.ts +0 -17
  107. package/build/store/customer.d.ts +1 -31
  108. package/build/storefront/index.d.ts +3 -29
  109. package/build/utils/helper.d.ts +0 -1
  110. package/build/utils/index.d.ts +0 -1
  111. package/build/utils/providers/page-data.d.ts +5 -60
  112. package/build/utils/providers/prop-value/boolean.d.ts +1 -1
  113. package/build/utils/providers/prop-value/category.d.ts +2 -2
  114. package/build/utils/providers/prop-value/product-detail.d.ts +2 -2
  115. package/build/utils/providers/prop-value/product-list.d.ts +3 -1
  116. package/package.json +3 -3
  117. package/build/analytics/analytics.d.ts +0 -22
  118. package/build/analytics/facebookPixel.d.ts +0 -15
  119. package/build/analytics/googleTagManager.d.ts +0 -201
  120. package/build/analytics/head/index.d.ts +0 -7
  121. package/build/analytics/index.d.ts +0 -2
  122. package/build/api/blog/__generated__/getBlog.d.ts +0 -83
  123. package/build/api/blog/__generated__/listBlog.d.ts +0 -86
  124. package/build/api/blog/__generated__/listBlogCategory.d.ts +0 -38
  125. package/build/api/blog/__generated__/listBlogMetaData.d.ts +0 -29
  126. package/build/api/blog/index.d.ts +0 -32
  127. package/build/api/category/__generated__/listCategoryPaths.d.ts +0 -23
  128. package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +0 -26
  129. package/build/api/contact-form/__generated__/sendContactFormToMerchant.d.ts +0 -9
  130. package/build/api/contact-form/index.d.ts +0 -10
  131. package/build/api/country/__generated__/getMyCountry.d.ts +0 -3
  132. package/build/api/customer/__generated__/createCustomerEmailSubscription.d.ts +0 -11
  133. package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +0 -215
  134. package/build/api/customer/__generated__/getLastViewedProducts.d.ts +0 -15
  135. package/build/api/customer/__generated__/saveLastViewedProducts.d.ts +0 -11
  136. package/build/api/favorite-product/__generated__/isFavoriteProduct.d.ts +0 -6
  137. package/build/api/favorite-product/__generated__/listFavoriteProducts.d.ts +0 -12
  138. package/build/api/favorite-product/__generated__/saveFavoriteProduct.d.ts +0 -7
  139. package/build/api/favorite-product/index.d.ts +0 -6
  140. package/build/api/product-search/__generated__/getProductFilterData.d.ts +0 -50
  141. package/build/api/product-search/__generated__/searchProducts.d.ts +0 -26
  142. package/build/api/product-search/index.d.ts +0 -20
  143. package/build/components/checkout/components/cart-summary/cross.d.ts +0 -6
  144. package/build/components/checkout/components/cart-summary/tag.d.ts +0 -6
  145. package/build/components/checkout/components/error-container/customer-login-required-error/index.d.ts +0 -6
  146. package/build/components/image/index.d.ts +0 -35
  147. package/build/models/data/blog/index.d.ts +0 -67
  148. package/build/models/data/checkout-settings/index.d.ts +0 -18
  149. package/build/models/data/contact-form/index.d.ts +0 -7
  150. package/build/models/data/favorite-product/index.d.ts +0 -6
  151. package/build/models/data/order/refund/index.d.ts +0 -6
  152. package/build/models/data/order/refund/refund-line-item/index.d.ts +0 -5
  153. package/build/models/data/product-attribute/product-attribute-table-cell/index.d.ts +0 -5
  154. package/build/models/data/product-attribute/product-attribute-table-template/index.d.ts +0 -6
  155. package/build/models/data/product-filter/index.d.ts +0 -102
  156. package/build/models/data/product-tag/index.d.ts +0 -5
  157. package/build/models/data/sales-channel/index.d.ts +0 -18
  158. package/build/models/data/simple-product/index.d.ts +0 -135
  159. package/build/models/data/storefront/localization/index.d.ts +0 -7
  160. package/build/models/data/storefront/routing/index.d.ts +0 -9
  161. package/build/models/data/storefront/theme/index.d.ts +0 -13
  162. package/build/models/data/storefront/theme-localization/index.d.ts +0 -12
  163. package/build/models/theme/custom-data/index.d.ts +0 -24
  164. package/build/models/theme/page/component/prop-value/attribute-list.d.ts +0 -7
  165. package/build/models/theme/page/component/prop-value/attribute.d.ts +0 -7
  166. package/build/models/theme/page/component/prop-value/blog-list.d.ts +0 -9
  167. package/build/models/theme/page/component/prop-value/blog.d.ts +0 -5
  168. package/build/models/theme/settings/index.d.ts +0 -7
  169. package/build/models/theme/settings/prop/color/index.d.ts +0 -7
  170. package/build/models/theme/settings/prop/favicon/index.d.ts +0 -4
  171. package/build/models/ui/blog-list/index.d.ts +0 -56
  172. package/build/models/ui/component-renderer/index.d.ts +0 -7
  173. package/build/models/ui/validator/form/account-info.d.ts +0 -40
  174. package/build/models/ui/validator/form/address.d.ts +0 -75
  175. package/build/models/ui/validator/form/contact-form.d.ts +0 -45
  176. package/build/models/ui/validator/form/forgot-password.d.ts +0 -29
  177. package/build/models/ui/validator/form/login.d.ts +0 -35
  178. package/build/models/ui/validator/form/recover-password.d.ts +0 -36
  179. package/build/models/ui/validator/form/register.d.ts +0 -45
  180. package/build/models/ui/validator/index.d.ts +0 -27
  181. package/build/models/ui/validator/rules/index.d.ts +0 -87
  182. package/build/pages/404.d.ts +0 -13
  183. package/build/pages/account/favorite-products.d.ts +0 -12
  184. package/build/pages/blog/[slug].d.ts +0 -18
  185. package/build/pages/blog/index.d.ts +0 -13
  186. package/build/pages/cart.d.ts +0 -12
  187. package/build/pages/search.d.ts +0 -13
  188. package/build/utils/providers/placeholders.d.ts +0 -5
  189. package/build/utils/providers/prop-value/attribute-list.d.ts +0 -9
  190. package/build/utils/providers/prop-value/attribute.d.ts +0 -9
  191. package/build/utils/providers/prop-value/blog-list.d.ts +0 -9
  192. package/build/utils/providers/prop-value/blog.d.ts +0 -8
  193. package/build/utils/providers/prop-value/color.d.ts +0 -6
  194. package/build/utils/providers/prop-value/custom.d.ts +0 -40
  195. package/build/utils/providers/prop-value/rich-text.d.ts +0 -6
  196. package/build/utils/settings.d.ts +0 -168
@@ -1,5 +0,0 @@
1
- export declare class IkasProductTag {
2
- id: string;
3
- name: string;
4
- constructor(data: Partial<IkasProductTag>);
5
- }
@@ -1,18 +0,0 @@
1
- export declare class IkasSalesChannel {
2
- id: string;
3
- name: string;
4
- priceListId: string | null;
5
- stockLocations: IkasSalesChannelStockLocation[] | null;
6
- paymentGateways: IkasSalesChannelPaymentGateway[] | null;
7
- constructor(data?: Partial<IkasSalesChannel>);
8
- }
9
- export declare class IkasSalesChannelStockLocation {
10
- id: string;
11
- order: number;
12
- constructor(data: Partial<IkasSalesChannelStockLocation>);
13
- }
14
- export declare class IkasSalesChannelPaymentGateway {
15
- id: string;
16
- order: number;
17
- constructor(data: Partial<IkasSalesChannelPaymentGateway>);
18
- }
@@ -1,135 +0,0 @@
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
- };
@@ -1,7 +0,0 @@
1
- export declare class IkasStorefrontLocalization {
2
- id: string;
3
- isDefault: boolean;
4
- locale: string;
5
- name: string;
6
- constructor(data: Partial<IkasStorefrontLocalization>);
7
- }
@@ -1,9 +0,0 @@
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
- }
@@ -1,13 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
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
- }
@@ -1,24 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
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
- }
@@ -1,9 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
1
- export declare class IkasBlogPropValue {
2
- blogId?: string | null;
3
- usePageData?: boolean | null;
4
- constructor(data: Partial<IkasBlogPropValue>);
5
- }
@@ -1,7 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
1
- export declare class IkasThemeColor {
2
- id: string;
3
- displayName: string;
4
- key: string;
5
- color: string;
6
- constructor(data: Partial<IkasThemeColor>);
7
- }
@@ -1,4 +0,0 @@
1
- export declare class IkasThemeFavicon {
2
- id: string | null;
3
- constructor(data?: Partial<IkasThemeFavicon>);
4
- }
@@ -1,56 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
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,40 +0,0 @@
1
- import { PhoneRule, RequiredRule } from "../rules/index";
2
- import { IkasBaseStore } from "../../../../store/index";
3
- import { IkasCustomer } from "../../../index";
4
- declare type AccountInfoFormPropsValidatorMessage<T> = {
5
- requiredRule: ((model: T) => string) | string;
6
- phoneRule?: ((model: T) => string) | string;
7
- };
8
- declare type AccountInfoFormProps<T> = {
9
- message: AccountInfoFormPropsValidatorMessage<T>;
10
- customer: IkasCustomer;
11
- store: IkasBaseStore;
12
- };
13
- export declare class AccountInfoForm {
14
- private customer;
15
- private validator;
16
- private store;
17
- private message;
18
- constructor(props: AccountInfoFormProps<IkasCustomer>);
19
- validatorRules: (includePhoneRule?: boolean) => (RequiredRule<IkasCustomer> | PhoneRule<IkasCustomer>)[];
20
- get hasError(): boolean;
21
- get email(): string;
22
- get firstName(): string;
23
- set firstName(value: string);
24
- get lastName(): string;
25
- set lastName(value: string);
26
- get phone(): string;
27
- set phone(value: string);
28
- get firstNameErrorMessage(): string | undefined;
29
- get lastNameErrorMessage(): string | undefined;
30
- get phoneErrorMessage(): string | undefined;
31
- onFirstNameChange: (value: string) => void;
32
- onLastNameChange: (value: string) => void;
33
- onPhoneChange: (value: string) => void;
34
- validateAll(): Promise<boolean>;
35
- submit(): Promise<{
36
- isFormError: boolean;
37
- isSuccess: boolean;
38
- }>;
39
- }
40
- export {};
@@ -1,75 +0,0 @@
1
- import { IkasCity, IkasCountry, IkasCustomerAddress, IkasDistrict, IkasState } from "../../../data/index";
2
- import { IkasBaseStore } from "../../../../store/index";
3
- import { PhoneRule, RequiredRule } from "../rules/index";
4
- declare type AddressFormPropsValidatorMessage<T> = {
5
- requiredRule: ((model: T) => string) | string;
6
- phoneRule?: ((model: T) => string) | string;
7
- };
8
- declare type AddressFormProps<T> = {
9
- message: AddressFormPropsValidatorMessage<T>;
10
- address: IkasCustomerAddress;
11
- store: IkasBaseStore;
12
- };
13
- export declare class AddressForm {
14
- address: IkasCustomerAddress;
15
- countries: IkasCountry[];
16
- states: IkasState[];
17
- cities: IkasCity[];
18
- districts: IkasDistrict[];
19
- private _isCountriesPending;
20
- private _isStatesPending;
21
- private _isCitiesPending;
22
- private _isDistrictsPending;
23
- private store;
24
- private validator;
25
- private message;
26
- constructor(props: AddressFormProps<IkasCustomerAddress>);
27
- validatorRules: (includePhoneRule?: boolean) => (RequiredRule<IkasCustomerAddress> | PhoneRule<IkasCustomerAddress>)[];
28
- onTitleChange: (value: string) => void;
29
- onFirstNameChange: (value: string) => void;
30
- onLastNameChange: (value: string) => void;
31
- onPhoneChange: (value: string) => void;
32
- onAddressLine1Change: (value: string) => void;
33
- onAddressLine2Change: (value: string) => void;
34
- onAddressPostalCodeChange: (value: string) => void;
35
- onCountryChange: (countryId: string) => void;
36
- onStateChange: (stateId: string) => void;
37
- onCityChange: (cityId: string) => void;
38
- onDistrictChange: (districtId: string) => void;
39
- onDistrictInputChange: (value: string) => void;
40
- listCountries: () => Promise<void>;
41
- listStates: () => Promise<void>;
42
- listCities: () => Promise<void>;
43
- listDistricts: () => Promise<void>;
44
- get isEdit(): boolean;
45
- private get editingAddressIndex();
46
- get countryOptions(): {
47
- label: string;
48
- value: string;
49
- }[];
50
- get stateOptions(): {
51
- label: string;
52
- value: string;
53
- }[];
54
- get cityOptions(): {
55
- label: string;
56
- value: string;
57
- }[];
58
- get districtOptions(): {
59
- label: string;
60
- value: string;
61
- }[];
62
- get hasState(): boolean;
63
- get isCountriesPending(): boolean;
64
- get isStatesPending(): boolean;
65
- get isCitiesPending(): boolean;
66
- get isDistrictsPending(): boolean;
67
- get hasValidatorError(): boolean;
68
- get results(): import("../index").ValidationResults;
69
- validateAll: () => Promise<boolean>;
70
- submit: () => Promise<{
71
- isFormError: boolean;
72
- isSuccess: boolean;
73
- }>;
74
- }
75
- export {};
@@ -1,45 +0,0 @@
1
- import { IkasBaseStore } from "../../../../store/index";
2
- declare type ContactFormProps<T> = {
3
- message: {
4
- requiredRule: ((model: T) => string) | string;
5
- emailRule: ((model: T) => string) | string;
6
- minRule: ((model: T) => string) | string;
7
- };
8
- store: IkasBaseStore;
9
- };
10
- declare type ContactFormModel = {
11
- firstName: string;
12
- lastName: string;
13
- email: string;
14
- message: string;
15
- };
16
- export declare class ContactForm {
17
- private model;
18
- private validator;
19
- private store;
20
- constructor(props: ContactFormProps<ContactFormModel>);
21
- get firstName(): string;
22
- set firstName(value: string);
23
- get lastName(): string;
24
- set lastName(value: string);
25
- get email(): string;
26
- set email(value: string);
27
- get message(): string;
28
- set message(value: string);
29
- get hasError(): boolean;
30
- get firstNameErrorMessage(): string | undefined;
31
- get lastNameErrorMessage(): string | undefined;
32
- get emailErrorMessage(): string | undefined;
33
- get messageErrorMessage(): string | undefined;
34
- get redirect(): string | null | undefined;
35
- onFirstNameChange: (value: string) => void;
36
- onLastNameChange: (value: string) => void;
37
- onEmailChange: (value: string) => void;
38
- onMessageChange: (value: string) => void;
39
- validateAll(): Promise<boolean>;
40
- saveContactForm(): Promise<{
41
- isFormError: boolean;
42
- isSuccess: boolean;
43
- }>;
44
- }
45
- export {};
@@ -1,29 +0,0 @@
1
- import { IkasBaseStore } from "../../../../store/index";
2
- declare type ForgotPasswordProps<T> = {
3
- message: {
4
- requiredRule: ((model: T) => string) | string;
5
- emailRule: ((model: T) => string) | string;
6
- };
7
- store: IkasBaseStore;
8
- };
9
- declare type ForgotPasswordFormModel = {
10
- email: string;
11
- };
12
- export declare class ForgotPasswordForm {
13
- private model;
14
- private validator;
15
- private store;
16
- constructor(props: ForgotPasswordProps<ForgotPasswordFormModel>);
17
- get email(): string;
18
- set email(value: string);
19
- onEmailChange: (value: string) => void;
20
- get hasValidatorError(): boolean;
21
- get emailErrorMessage(): string | undefined;
22
- get redirect(): string | null | undefined;
23
- validateAll(): Promise<boolean>;
24
- submit(): Promise<{
25
- isFormError: boolean;
26
- isSuccess: boolean;
27
- }>;
28
- }
29
- export {};
@@ -1,35 +0,0 @@
1
- import { IkasBaseStore } from "../../../../store/index";
2
- declare type LoginFormProps<T> = {
3
- message: {
4
- requiredRule: ((model: T) => string) | string;
5
- emailRule: ((model: T) => string) | string;
6
- minRule: ((model: T) => string) | string;
7
- };
8
- store: IkasBaseStore;
9
- };
10
- declare type LoginFormModel = {
11
- email: string;
12
- password: string;
13
- };
14
- export declare class LoginForm {
15
- private model;
16
- private validator;
17
- private store;
18
- constructor(props: LoginFormProps<LoginFormModel>);
19
- get hasError(): boolean;
20
- get email(): string;
21
- set email(value: string);
22
- get password(): string;
23
- set password(value: string);
24
- get emailErrorMessage(): string | undefined;
25
- get passwordErrorMessage(): string | undefined;
26
- get redirect(): string | null | undefined;
27
- onEmailChange: (value: string) => void;
28
- onPasswordChange: (value: string) => void;
29
- validateAll(): Promise<boolean>;
30
- logIn(): Promise<{
31
- isFormError: boolean;
32
- isSuccess: boolean;
33
- }>;
34
- }
35
- export {};
@@ -1,36 +0,0 @@
1
- import { IkasBaseStore } from "../../../../store/index";
2
- declare type RecoverPasswordFormProps<T> = {
3
- message: {
4
- requiredRule: ((model: T) => string) | string;
5
- minRule: ((model: T) => string) | string;
6
- equalsRule: ((model: T) => string) | string;
7
- };
8
- store: IkasBaseStore;
9
- };
10
- declare type RecoverPasswordFormModel = {
11
- password: string;
12
- passwordAgain: string;
13
- };
14
- export declare class RecoverPasswordForm {
15
- private model;
16
- private validator;
17
- private store;
18
- constructor(props: RecoverPasswordFormProps<RecoverPasswordFormModel>);
19
- resetModel(): void;
20
- get password(): string;
21
- set password(value: string);
22
- get passwordAgain(): string;
23
- set passwordAgain(value: string);
24
- get hasError(): boolean;
25
- get passwordErrorMessage(): string | undefined;
26
- get passwordAgainErrorMessage(): string | undefined;
27
- get redirect(): string | null | undefined;
28
- onPasswordChange: (value: string) => void;
29
- onPasswordAgainChange: (value: string) => void;
30
- validateAll(): Promise<boolean>;
31
- submit(): Promise<{
32
- isFormError: boolean;
33
- isSuccess: boolean;
34
- }>;
35
- }
36
- export {};
@@ -1,45 +0,0 @@
1
- import { IkasBaseStore } from "../../../../store/index";
2
- declare type RegisterFormProps<T> = {
3
- message: {
4
- requiredRule: ((model: T) => string) | string;
5
- emailRule: ((model: T) => string) | string;
6
- minRule: ((model: T) => string) | string;
7
- };
8
- store: IkasBaseStore;
9
- };
10
- declare type RegisterFormModel = {
11
- firstName: string;
12
- lastName: string;
13
- email: string;
14
- password: string;
15
- };
16
- export declare class RegisterForm {
17
- private model;
18
- private validator;
19
- private store;
20
- constructor(props: RegisterFormProps<RegisterFormModel>);
21
- get firstName(): string;
22
- set firstName(value: string);
23
- get lastName(): string;
24
- set lastName(value: string);
25
- get email(): string;
26
- set email(value: string);
27
- get password(): string;
28
- set password(value: string);
29
- get hasError(): boolean;
30
- get firstNameErrorMessage(): string | undefined;
31
- get lastNameErrorMessage(): string | undefined;
32
- get emailErrorMessage(): string | undefined;
33
- get passwordErrorMessage(): string | undefined;
34
- get redirect(): string | null | undefined;
35
- onFirstNameChange: (value: string) => void;
36
- onLastNameChange: (value: string) => void;
37
- onEmailChange: (value: string) => void;
38
- onPasswordChange: (value: string) => void;
39
- validateAll(): Promise<boolean>;
40
- register(): Promise<{
41
- isFormError: boolean;
42
- isSuccess: boolean;
43
- }>;
44
- }
45
- export {};