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

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 +91 -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 +10494 -18886
  58. package/build/index.js +10456 -18884
  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,27 +0,0 @@
1
- import { ValidatorErrorType, ValidationRule } from "./rules/index";
2
- export declare type ValidationResults = {
3
- [fieldKey: string]: ValidationResult;
4
- };
5
- export declare type ValidationStatus = "success" | "warning" | "error" | "validating";
6
- export declare class Validator<T = any> {
7
- model: T;
8
- rules: ValidationRule[];
9
- results: ValidationResults;
10
- constructor(model: T, rules: ValidationRule[]);
11
- get hasError(): boolean;
12
- onValueChange: (validationRule: ValidationRule) => void;
13
- setRules(rules: ValidationRule[]): void;
14
- validateAll(): Promise<boolean>;
15
- validateFieldRules(fieldKey: string): Promise<void>;
16
- private runRules;
17
- }
18
- declare class ValidationResult {
19
- fieldKey: string;
20
- status?: ValidationStatus;
21
- messages: string[];
22
- errorTypes: ValidatorErrorType[];
23
- constructor(fieldKey: string, status?: ValidationStatus, messages?: string[], errorTypes?: ValidatorErrorType[]);
24
- get errorMessage(): string | undefined;
25
- get errorType(): ValidatorErrorType | undefined;
26
- }
27
- export {};
@@ -1,87 +0,0 @@
1
- export declare enum ValidatorErrorType {
2
- "REQUIRED_RULE" = "REQUIRED_RULE",
3
- "EMAIl_RULE" = "EMAIl_RULE",
4
- "MIN_RULE" = "MIN_RULE"
5
- }
6
- declare type ValueGetter<T> = (model: T) => any;
7
- declare type ValuePath<T> = string | ValueGetter<T>;
8
- export interface IValidationRuleParams<T = any> {
9
- model?: T;
10
- fieldKey: string;
11
- fieldName?: string;
12
- message?: ((model: T) => string) | string;
13
- errorType?: ValidatorErrorType;
14
- valuePath: ValuePath<T>;
15
- onValueChange?: (rule: ValidationRule) => void;
16
- }
17
- export declare abstract class ValidationRule<T = any> {
18
- model?: T;
19
- fieldKey: string;
20
- fieldName?: string;
21
- message?: ((model: T) => string) | string;
22
- errorType?: ValidatorErrorType;
23
- valuePath: ValuePath<T>;
24
- onValueChange?: (rule: ValidationRule) => void;
25
- disposer?: () => void;
26
- constructor(data: IValidationRuleParams<T>);
27
- get value(): any;
28
- protected getValue(valuePath: ValuePath<T>): any;
29
- abstract run(): Promise<boolean>;
30
- abstract get errorMessage(): string;
31
- }
32
- export interface IMinRuleParams<T> extends IValidationRuleParams<T> {
33
- minValue: number;
34
- }
35
- export declare class MinRule<T> extends ValidationRule<T> {
36
- minValue: number;
37
- errorType: ValidatorErrorType;
38
- constructor(data: IMinRuleParams<T>);
39
- get errorMessage(): string;
40
- run(): Promise<boolean>;
41
- }
42
- export interface IMaxRuleParams extends IValidationRuleParams {
43
- maxValue: number;
44
- }
45
- export declare class MaxRule<T> extends ValidationRule<T> {
46
- maxValue: number;
47
- constructor(data: IMaxRuleParams);
48
- get errorMessage(): string;
49
- run(): Promise<boolean>;
50
- }
51
- export declare class RequiredRule<T> extends ValidationRule<T> {
52
- constructor(data: IValidationRuleParams<T>);
53
- get errorMessage(): string;
54
- run(): Promise<boolean>;
55
- }
56
- interface ILessThanRuleParams<T> extends IValidationRuleParams<T> {
57
- otherFieldValuePath: ValuePath<T>;
58
- otherFieldName?: string;
59
- }
60
- export declare class LessThanRule<T> extends ValidationRule<T> {
61
- otherFieldName?: string;
62
- otherFieldValuePath: ValuePath<T>;
63
- constructor(data: ILessThanRuleParams<T>);
64
- get otherValue(): any;
65
- get errorMessage(): string;
66
- run(): Promise<boolean>;
67
- }
68
- export declare class EmailRule<T> extends ValidationRule<T> {
69
- errorType: ValidatorErrorType;
70
- get errorMessage(): string;
71
- run(): Promise<boolean>;
72
- }
73
- export declare class PhoneRule<T> extends ValidationRule<T> {
74
- get errorMessage(): string;
75
- run(): Promise<boolean>;
76
- }
77
- export interface IEqualsRuleParams<T> extends IValidationRuleParams<T> {
78
- equalsValuePath: ValuePath<T>;
79
- }
80
- export declare class EqualsRule<T> extends ValidationRule<T> {
81
- equalsValuePath: ValuePath<T>;
82
- constructor(data: IEqualsRuleParams<T>);
83
- get equalsValue(): any;
84
- get errorMessage(): string;
85
- run(): Promise<boolean>;
86
- }
87
- export {};
@@ -1,13 +0,0 @@
1
- import * as React from "react";
2
- import { GetStaticProps } from "next";
3
- import { IkasThemePage } from "../models/index";
4
- declare type Props = {
5
- propValuesStr: string;
6
- page: IkasThemePage;
7
- settingsStr: string;
8
- merchantSettings: string;
9
- configJson: Record<string, any>;
10
- };
11
- declare const Page: React.FC<Props>;
12
- export default Page;
13
- export declare const getStaticProps: GetStaticProps;
@@ -1,12 +0,0 @@
1
- import * as React from "react";
2
- import { GetStaticProps } from "next";
3
- import { IkasThemePage } from "../../models/index";
4
- declare type Props = {
5
- propValuesStr: string;
6
- page: IkasThemePage;
7
- settingsStr: string;
8
- configJson: Record<string, any>;
9
- };
10
- declare const Page: React.FC<Props>;
11
- export default Page;
12
- export declare const getStaticProps: GetStaticProps;
@@ -1,18 +0,0 @@
1
- /// <reference types="node" />
2
- import * as React from "react";
3
- import { GetStaticPaths, GetStaticProps } from "next";
4
- import { IkasThemePage } from "../../models/index";
5
- import { ParsedUrlQuery } from "querystring";
6
- declare type Props = {
7
- propValuesStr: string;
8
- pageSpecificDataStr: string;
9
- page: IkasThemePage;
10
- queryParams?: ParsedUrlQuery;
11
- settingsStr: string;
12
- merchantSettings: string;
13
- configJson: Record<string, any>;
14
- };
15
- declare const _default: React.FunctionComponent<Props>;
16
- export default _default;
17
- export declare const getStaticPaths: GetStaticPaths;
18
- export declare const getStaticProps: GetStaticProps;
@@ -1,13 +0,0 @@
1
- import * as React from "react";
2
- import { GetStaticProps } from "next";
3
- import { IkasThemePage } from "../../models/index";
4
- declare type Props = {
5
- propValuesStr: string;
6
- page: IkasThemePage;
7
- settingsStr: string;
8
- merchantSettings: string;
9
- configJson: Record<string, any>;
10
- };
11
- declare const Page: React.FC<Props>;
12
- export default Page;
13
- export declare const getStaticProps: GetStaticProps;
@@ -1,12 +0,0 @@
1
- import * as React from "react";
2
- import { GetStaticProps } from "next";
3
- import { IkasThemePage } from "../models/index";
4
- declare type Props = {
5
- propValuesStr: string;
6
- page: IkasThemePage;
7
- settingsStr: string;
8
- configJson: Record<string, any>;
9
- };
10
- declare const Page: React.FC<Props>;
11
- export default Page;
12
- export declare const getStaticProps: GetStaticProps;
@@ -1,13 +0,0 @@
1
- import * as React from "react";
2
- import { GetStaticProps } from "next";
3
- import { IkasThemePage } from "../models/index";
4
- declare type Props = {
5
- propValuesStr: string;
6
- page: IkasThemePage;
7
- settingsStr: string;
8
- merchantSettings: string;
9
- configJson: Record<string, any>;
10
- };
11
- declare const Page: React.FC<Props>;
12
- export default Page;
13
- export declare const getStaticProps: GetStaticProps;
@@ -1,5 +0,0 @@
1
- import { IkasBlog, IkasBrand, IkasCategory, IkasProductDetail } from "../../models/index";
2
- export declare function getPlaceholderProduct(): IkasProductDetail;
3
- export declare function getPlaceholderCategory(): IkasCategory;
4
- export declare function getPlaceholderBrand(): IkasBrand;
5
- export declare function getPlaceholderBlog(): IkasBlog;
@@ -1,9 +0,0 @@
1
- import IkasPropValueProvider from "./index";
2
- import { IkasAttributeListPropValue } from "../../../models/theme/page/component/prop-value/attribute-list";
3
- import { IkasProductAttributeMap } from "../../../models/data/product/attribute-value/index";
4
- export declare class IkasAttributeListPropValueProvider implements IkasPropValueProvider<IkasProductAttributeMap[]> {
5
- private attributeListPropValue;
6
- private pageSpecificData?;
7
- constructor(prop: IkasAttributeListPropValue, pageSpecificData?: any);
8
- getValue(): Promise<IkasProductAttributeMap[]>;
9
- }
@@ -1,9 +0,0 @@
1
- import { IkasProductAttributeValue } from "../../../models/index";
2
- import IkasPropValueProvider from "./index";
3
- import { IkasAttributePropValue } from "../../../models/theme/page/component/prop-value/attribute";
4
- export declare class IkasAttributePropValueProvider implements IkasPropValueProvider<IkasProductAttributeValue[]> {
5
- private attributePropValue;
6
- private pageSpecificData?;
7
- constructor(prop: IkasAttributePropValue, pageSpecificData?: any);
8
- getValue(): Promise<IkasProductAttributeValue[]>;
9
- }
@@ -1,9 +0,0 @@
1
- import { IkasBlogList, IkasBlogListPropValue, IkasThemePageType } from "../../../models/index";
2
- import IkasPropValueProvider from "./index";
3
- export declare class IkasBlogListPropValueProvider implements IkasPropValueProvider<IkasBlogList> {
4
- private pageType;
5
- private blogListPropValue;
6
- private pageSpecificData?;
7
- constructor(pageType: IkasThemePageType, brandListPropValue: IkasBlogListPropValue, pageSpecificData?: any);
8
- getValue(): Promise<IkasBlogList>;
9
- }
@@ -1,8 +0,0 @@
1
- import { IkasBlog, IkasBlogPropValue } from "../../../models/index";
2
- import IkasPropValueProvider from "./index";
3
- export declare class IkasBlogPropValueProvider implements IkasPropValueProvider<IkasBlog | null> {
4
- private blogPropValue;
5
- private pageSpecificData?;
6
- constructor(propValue: IkasBlogPropValue, pageSpecificData?: any);
7
- getValue(): Promise<IkasBlog | null>;
8
- }
@@ -1,6 +0,0 @@
1
- import IkasPropValueProvider from "./index";
2
- export declare class IkasColorPropValueProvider implements IkasPropValueProvider<string> {
3
- private color;
4
- constructor(colorPropValue: string);
5
- getValue(): Promise<string>;
6
- }
@@ -1,40 +0,0 @@
1
- import { IkasTheme, IkasThemeCustomData, IkasThemePageType } from "../../../models/index";
2
- import IkasPropValueProvider from "./index";
3
- import { IkasPageDataProvider } from "../page-data";
4
- export declare class IkasCustomPropValueProvider implements IkasPropValueProvider<CustomDataValue | undefined> {
5
- private value;
6
- private customData;
7
- private theme;
8
- private pageType;
9
- private pageSpecificData?;
10
- private pageParams?;
11
- private pageDataProvider;
12
- constructor(value: any, customData: IkasThemeCustomData, theme: IkasTheme, pageType: IkasThemePageType, pageDataProvider: IkasPageDataProvider, pageSpecificData?: any, pageParams?: Record<string, any>);
13
- getValue(): Promise<CustomDataValue | undefined>;
14
- private getBooleanValue;
15
- private getBrandListPropValue;
16
- private getBrandPropValue;
17
- private getCategoryListPropValue;
18
- private getCategoryPropValue;
19
- private getColorPropValue;
20
- private getRichTextPropValue;
21
- private getImageListPropValue;
22
- private getImagePropValue;
23
- private getLinkPropValue;
24
- private getProductDetailPropValue;
25
- private getProductListPropValue;
26
- private getProductAttributePropValue;
27
- private getProductAttributeListPropValue;
28
- private getTextValue;
29
- private getObjectValue;
30
- private getArrayValue;
31
- private getEnumValue;
32
- private getCustomDataValue;
33
- private getComponentListValue;
34
- private getBlogValue;
35
- private getBlogListValue;
36
- }
37
- export declare type CustomDataValue = {
38
- value: any;
39
- customData: IkasThemeCustomData;
40
- };
@@ -1,6 +0,0 @@
1
- import IkasPropValueProvider from "./index";
2
- export declare class IkasRichTextPropValueProvider implements IkasPropValueProvider<string> {
3
- private text;
4
- constructor(textPropValue: string);
5
- getValue(): Promise<string>;
6
- }
@@ -1,168 +0,0 @@
1
- /// <reference types="node" />
2
- import { GetServerSidePropsContext, GetStaticPropsContext } from "next";
3
- import { ParsedUrlQuery } from "querystring";
4
- import { IkasTheme, IkasThemePageType } from "../models/index";
5
- import { IkasStorefront } from "../models/data/storefront/index";
6
- import { IkasSalesChannel } from "../models/data/sales-channel/index";
7
- import { IkasStorefrontRouting } from "../models/data/storefront/routing/index";
8
- import { IkasStorefrontThemeLocalization } from "../models/data/storefront/theme-localization/index";
9
- import { IkasThemeFavicon } from "../models/theme/settings/prop/favicon/index";
10
- export declare class SettingsHelper {
11
- static readLocalTheme(): Promise<IkasTheme>;
12
- static readSettingsFile(): Promise<any>;
13
- static getSettings(locale: string): Promise<SettingsData | null>;
14
- static getPageData(context: GetStaticPropsContext<ParsedUrlQuery> | GetServerSidePropsContext<ParsedUrlQuery>, isServer: boolean, pageType?: IkasThemePageType, possiblePageTypes?: IkasThemePageType[]): Promise<{
15
- props: {
16
- propValuesStr: string;
17
- pageSpecificDataStr: string;
18
- page: import("../models/index").IkasThemePage | null;
19
- settingsStr: string;
20
- merchantSettings: string | null;
21
- configJson: {
22
- storefrontId: string | null;
23
- storefrontRoutingId: string | null;
24
- storefrontThemeId: string | null;
25
- salesChannelId: string | null;
26
- priceListId: string | null;
27
- stockLocationIds: string[] | null;
28
- routings: any;
29
- paymentGateways: any;
30
- gtmId: string | null;
31
- fbpId: string | null;
32
- favicon: any;
33
- };
34
- };
35
- } | {
36
- props: {};
37
- notFound: boolean;
38
- revalidate?: undefined;
39
- } | {
40
- props: {
41
- propValuesStr: string;
42
- pageSpecificDataStr: string;
43
- page: import("../models/index").IkasThemePage | null;
44
- settingsStr: string;
45
- merchantSettings: string | null;
46
- configJson: {
47
- storefrontId: string | null;
48
- storefrontRoutingId: string | null;
49
- storefrontThemeId: string | null;
50
- salesChannelId: string | null;
51
- priceListId: string | null;
52
- stockLocationIds: string[] | null;
53
- routings: any;
54
- paymentGateways: any;
55
- gtmId: string | null;
56
- fbpId: string | null;
57
- favicon: any;
58
- };
59
- };
60
- revalidate: number;
61
- notFound?: undefined;
62
- }>;
63
- static getStaticProps(context: GetStaticPropsContext<ParsedUrlQuery>, pageType?: IkasThemePageType, possiblePageTypes?: IkasThemePageType[]): Promise<{
64
- props: {
65
- propValuesStr: string;
66
- pageSpecificDataStr: string;
67
- page: import("../models/index").IkasThemePage | null;
68
- settingsStr: string;
69
- merchantSettings: string | null;
70
- configJson: {
71
- storefrontId: string | null;
72
- storefrontRoutingId: string | null;
73
- storefrontThemeId: string | null;
74
- salesChannelId: string | null;
75
- priceListId: string | null;
76
- stockLocationIds: string[] | null;
77
- routings: any;
78
- paymentGateways: any;
79
- gtmId: string | null;
80
- fbpId: string | null;
81
- favicon: any;
82
- };
83
- };
84
- } | {
85
- props: {};
86
- notFound: boolean;
87
- revalidate?: undefined;
88
- } | {
89
- props: {
90
- propValuesStr: string;
91
- pageSpecificDataStr: string;
92
- page: import("../models/index").IkasThemePage | null;
93
- settingsStr: string;
94
- merchantSettings: string | null;
95
- configJson: {
96
- storefrontId: string | null;
97
- storefrontRoutingId: string | null;
98
- storefrontThemeId: string | null;
99
- salesChannelId: string | null;
100
- priceListId: string | null;
101
- stockLocationIds: string[] | null;
102
- routings: any;
103
- paymentGateways: any;
104
- gtmId: string | null;
105
- fbpId: string | null;
106
- favicon: any;
107
- };
108
- };
109
- revalidate: number;
110
- notFound?: undefined;
111
- }>;
112
- static getServerSideProps(context: GetServerSidePropsContext<ParsedUrlQuery>, pageType?: IkasThemePageType): Promise<{
113
- props: {
114
- propValuesStr: string;
115
- pageSpecificDataStr: string;
116
- page: import("../models/index").IkasThemePage | null;
117
- settingsStr: string;
118
- merchantSettings: string | null;
119
- configJson: {
120
- storefrontId: string | null;
121
- storefrontRoutingId: string | null;
122
- storefrontThemeId: string | null;
123
- salesChannelId: string | null;
124
- priceListId: string | null;
125
- stockLocationIds: string[] | null;
126
- routings: any;
127
- paymentGateways: any;
128
- gtmId: string | null;
129
- fbpId: string | null;
130
- favicon: any;
131
- };
132
- };
133
- } | {
134
- props: {};
135
- notFound: boolean;
136
- revalidate?: undefined;
137
- } | {
138
- props: {
139
- propValuesStr: string;
140
- pageSpecificDataStr: string;
141
- page: import("../models/index").IkasThemePage | null;
142
- settingsStr: string;
143
- merchantSettings: string | null;
144
- configJson: {
145
- storefrontId: string | null;
146
- storefrontRoutingId: string | null;
147
- storefrontThemeId: string | null;
148
- salesChannelId: string | null;
149
- priceListId: string | null;
150
- stockLocationIds: string[] | null;
151
- routings: any;
152
- paymentGateways: any;
153
- gtmId: string | null;
154
- fbpId: string | null;
155
- favicon: any;
156
- };
157
- };
158
- revalidate: number;
159
- notFound?: undefined;
160
- }>;
161
- }
162
- export declare type SettingsData = {
163
- storefront: IkasStorefront;
164
- themeLocalization: IkasStorefrontThemeLocalization;
165
- salesChannel: IkasSalesChannel;
166
- routing: IkasStorefrontRouting;
167
- favicon: IkasThemeFavicon;
168
- };