@ikas/storefront 0.0.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 (197) hide show
  1. package/build/__generated__/global-types.d.ts +343 -0
  2. package/build/api/apollo.d.ts +10 -0
  3. package/build/api/brand/__generated__/listProductBrand.d.ts +30 -0
  4. package/build/api/brand/index.d.ts +15 -0
  5. package/build/api/cart/__generated__/getCart.d.ts +67 -0
  6. package/build/api/cart/__generated__/saveItemToCart.d.ts +65 -0
  7. package/build/api/cart/index.d.ts +5 -0
  8. package/build/api/category/__generated__/listCategory.d.ts +34 -0
  9. package/build/api/category/index.d.ts +15 -0
  10. package/build/api/checkout/__generated__/checkStocks.d.ts +18 -0
  11. package/build/api/checkout/__generated__/createSaleTransactionWithCheckout.d.ts +22 -0
  12. package/build/api/checkout/__generated__/getCheckoutByCartId.d.ts +10 -0
  13. package/build/api/checkout/__generated__/getCheckoutById.d.ts +206 -0
  14. package/build/api/checkout/__generated__/listPaymentGateway.d.ts +17 -0
  15. package/build/api/checkout/__generated__/retrieveInstallmentInfo.d.ts +23 -0
  16. package/build/api/checkout/__generated__/saveCheckout.d.ts +11 -0
  17. package/build/api/checkout/index.d.ts +19 -0
  18. package/build/api/city/__generated__/listCity.d.ts +14 -0
  19. package/build/api/city/index.d.ts +4 -0
  20. package/build/api/country/__generated__/getAvailableShippingCountries.d.ts +3 -0
  21. package/build/api/country/__generated__/listCountry.d.ts +16 -0
  22. package/build/api/country/index.d.ts +5 -0
  23. package/build/api/customer/__generated__/checkCustomerEmail.d.ts +10 -0
  24. package/build/api/customer/__generated__/customerForgotPassword.d.ts +6 -0
  25. package/build/api/customer/__generated__/customerLogin.d.ts +68 -0
  26. package/build/api/customer/__generated__/customerRecoverPassword.d.ts +8 -0
  27. package/build/api/customer/__generated__/customerRefreshToken.d.ts +11 -0
  28. package/build/api/customer/__generated__/getCustomerOrders.d.ts +216 -0
  29. package/build/api/customer/__generated__/getMyCustomer.d.ts +58 -0
  30. package/build/api/customer/__generated__/listOrderTransactions.d.ts +53 -0
  31. package/build/api/customer/__generated__/registerCustomer.d.ts +70 -0
  32. package/build/api/customer/__generated__/saveMyCustomer.d.ts +61 -0
  33. package/build/api/customer/index.d.ts +28 -0
  34. package/build/api/district/__generated__/listDistrict.d.ts +13 -0
  35. package/build/api/district/index.d.ts +4 -0
  36. package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +17 -0
  37. package/build/api/html-meta-data/index.d.ts +4 -0
  38. package/build/api/index.d.ts +17 -0
  39. package/build/api/merchant/__generated__/listMerchantSettings.d.ts +13 -0
  40. package/build/api/merchant/index.d.ts +4 -0
  41. package/build/api/product/__generated__/listProduct.d.ts +91 -0
  42. package/build/api/product/index.d.ts +15 -0
  43. package/build/api/product-attribute/__generated__/listProductAttribute.d.ts +26 -0
  44. package/build/api/product-attribute/index.d.ts +4 -0
  45. package/build/api/product-stock-location/__generated__/listProductStockLocation.d.ts +13 -0
  46. package/build/api/product-stock-location/index.d.ts +4 -0
  47. package/build/api/state/__generated__/listState.d.ts +13 -0
  48. package/build/api/state/index.d.ts +4 -0
  49. package/build/api/stock-location/__generated__/listStockLocation.d.ts +7 -0
  50. package/build/api/stock-location/index.d.ts +4 -0
  51. package/build/api/storefront/__generated__/getStorefront.d.ts +23 -0
  52. package/build/api/storefront/index.d.ts +4 -0
  53. package/build/api/theme/index.d.ts +4 -0
  54. package/build/api/variant-type/__generated__/listVariantType.d.ts +27 -0
  55. package/build/api/variant-type/index.d.ts +4 -0
  56. package/build/components/checkout/components/address-form/index.d.ts +12 -0
  57. package/build/components/checkout/components/address-form/model.d.ts +76 -0
  58. package/build/components/checkout/components/arrow-left.d.ts +6 -0
  59. package/build/components/checkout/components/breadcrumbs/index.d.ts +7 -0
  60. package/build/components/checkout/components/button/index.d.ts +8 -0
  61. package/build/components/checkout/components/cart-summary/arrow-down.d.ts +6 -0
  62. package/build/components/checkout/components/cart-summary/arrow-right.d.ts +6 -0
  63. package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +8 -0
  64. package/build/components/checkout/components/cart-summary/index.d.ts +8 -0
  65. package/build/components/checkout/components/cart-summary/shopping-cart.d.ts +6 -0
  66. package/build/components/checkout/components/checkbox/check.d.ts +6 -0
  67. package/build/components/checkout/components/checkbox/index.d.ts +8 -0
  68. package/build/components/checkout/components/credit-card-form/index.d.ts +7 -0
  69. package/build/components/checkout/components/credit-card-form/model.d.ts +26 -0
  70. package/build/components/checkout/components/cross.d.ts +6 -0
  71. package/build/components/checkout/components/error-container/index.d.ts +6 -0
  72. package/build/components/checkout/components/error-container/no-shipping-error/index.d.ts +6 -0
  73. package/build/components/checkout/components/error-container/payment-error/index.d.ts +6 -0
  74. package/build/components/checkout/components/error-container/stock-error/index.d.ts +8 -0
  75. package/build/components/checkout/components/error-container/unknown-error/index.d.ts +6 -0
  76. package/build/components/checkout/components/expandable-list/index.d.ts +13 -0
  77. package/build/components/checkout/components/form-item/caret-down.d.ts +6 -0
  78. package/build/components/checkout/components/form-item/index.d.ts +3 -0
  79. package/build/components/checkout/components/form-item/model.d.ts +34 -0
  80. package/build/components/checkout/components/info-box/index.d.ts +8 -0
  81. package/build/components/checkout/components/policy-modal/index.d.ts +8 -0
  82. package/build/components/checkout/components/step-action-buttons/index.d.ts +10 -0
  83. package/build/components/checkout/components/text-button/index.d.ts +7 -0
  84. package/build/components/checkout/components/toggle/index.d.ts +7 -0
  85. package/build/components/checkout/index.d.ts +10 -0
  86. package/build/components/checkout/model.d.ts +101 -0
  87. package/build/components/checkout/steps/step-info/index.d.ts +7 -0
  88. package/build/components/checkout/steps/step-payment/billing-address/index.d.ts +7 -0
  89. package/build/components/checkout/steps/step-payment/index.d.ts +7 -0
  90. package/build/components/checkout/steps/step-payment/payment-gateways/index.d.ts +7 -0
  91. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.d.ts +7 -0
  92. package/build/components/checkout/steps/step-shipping/index.d.ts +7 -0
  93. package/build/components/checkout/steps/step-success/index.d.ts +7 -0
  94. package/build/components/error/index.d.ts +5 -0
  95. package/build/components/gtm/functions.d.ts +164 -0
  96. package/build/components/gtm/index.d.ts +7 -0
  97. package/build/components/hoc/ThemeComponent.d.ts +9 -0
  98. package/build/components/hoc/ThemeComponentEditor.d.ts +9 -0
  99. package/build/components/index.d.ts +6 -0
  100. package/build/components/page/head.d.ts +7 -0
  101. package/build/components/page/index.d.ts +9 -0
  102. package/build/components/page-editor/index.d.ts +2 -0
  103. package/build/components/page-editor/model.d.ts +59 -0
  104. package/build/index.d.ts +7 -0
  105. package/build/index.es.js +23583 -0
  106. package/build/index.js +23655 -0
  107. package/build/models/data/brand/index.d.ts +10 -0
  108. package/build/models/data/cart/index.d.ts +30 -0
  109. package/build/models/data/category/index.d.ts +11 -0
  110. package/build/models/data/checkout/index.d.ts +87 -0
  111. package/build/models/data/city/index.d.ts +4 -0
  112. package/build/models/data/country/index.d.ts +6 -0
  113. package/build/models/data/customer/address/index.d.ts +44 -0
  114. package/build/models/data/customer/index.d.ts +19 -0
  115. package/build/models/data/district/index.d.ts +4 -0
  116. package/build/models/data/html-meta-data/index.d.ts +15 -0
  117. package/build/models/data/image/index.d.ts +7 -0
  118. package/build/models/data/index.d.ts +25 -0
  119. package/build/models/data/installment-info/index.d.ts +30 -0
  120. package/build/models/data/merchant-settings/index.d.ts +8 -0
  121. package/build/models/data/order/address/index.d.ts +41 -0
  122. package/build/models/data/order/adjustment/index.d.ts +16 -0
  123. package/build/models/data/order/index.d.ts +109 -0
  124. package/build/models/data/order/line-item/discount/index.d.ts +11 -0
  125. package/build/models/data/order/line-item/index.d.ts +19 -0
  126. package/build/models/data/order/line-item/variant/index.d.ts +25 -0
  127. package/build/models/data/order/shipping-line/index.d.ts +7 -0
  128. package/build/models/data/order-transaction/index.d.ts +72 -0
  129. package/build/models/data/payment-gateway/index.d.ts +20 -0
  130. package/build/models/data/product/attribute-value/index.d.ts +6 -0
  131. package/build/models/data/product/index.d.ts +29 -0
  132. package/build/models/data/product/variant/index.d.ts +16 -0
  133. package/build/models/data/product/variant/price/index.d.ts +8 -0
  134. package/build/models/data/product/variant-type/index.d.ts +6 -0
  135. package/build/models/data/product-attribute/index.d.ts +17 -0
  136. package/build/models/data/product-attribute/product-attribute-option/index.d.ts +5 -0
  137. package/build/models/data/state/index.d.ts +5 -0
  138. package/build/models/data/storefront/index.d.ts +12 -0
  139. package/build/models/data/storefront/stockfront-location/index.d.ts +5 -0
  140. package/build/models/data/storefront/stockfront-route/index.d.ts +5 -0
  141. package/build/models/data/storefront/storefront-domain/index.d.ts +7 -0
  142. package/build/models/data/storefront/storefront-region/index.d.ts +18 -0
  143. package/build/models/data/variant-type/index.d.ts +14 -0
  144. package/build/models/data/variant-type/variant-value/index.d.ts +11 -0
  145. package/build/models/index.d.ts +3 -0
  146. package/build/models/theme/component/index.d.ts +10 -0
  147. package/build/models/theme/component/prop/index.d.ts +19 -0
  148. package/build/models/theme/component/prop/value/index.d.ts +14 -0
  149. package/build/models/theme/index.d.ts +10 -0
  150. package/build/models/theme/page/component/index.d.ts +6 -0
  151. package/build/models/theme/page/component/prop-value/brand-list.d.ts +9 -0
  152. package/build/models/theme/page/component/prop-value/brand.d.ts +5 -0
  153. package/build/models/theme/page/component/prop-value/link.d.ts +19 -0
  154. package/build/models/theme/page/component/prop-value/product-detail.d.ts +6 -0
  155. package/build/models/theme/page/component/prop-value/product-list.d.ts +15 -0
  156. package/build/models/theme/page/index.d.ts +26 -0
  157. package/build/models/theme/theme.d.ts +10 -0
  158. package/build/models/ui/brand-list/index.d.ts +58 -0
  159. package/build/models/ui/index.d.ts +6 -0
  160. package/build/models/ui/navigation-link/index.d.ts +7 -0
  161. package/build/models/ui/product-detail/index.d.ts +13 -0
  162. package/build/models/ui/product-list/filter.d.ts +18 -0
  163. package/build/models/ui/product-list/index.d.ts +76 -0
  164. package/build/pages/[slug]/[secondSlug].d.ts +11 -0
  165. package/build/pages/[slug]/index.d.ts +12 -0
  166. package/build/pages/account/addresses.d.ts +10 -0
  167. package/build/pages/account/forgot-password.d.ts +10 -0
  168. package/build/pages/account/index.d.ts +10 -0
  169. package/build/pages/account/login.d.ts +10 -0
  170. package/build/pages/account/orders/[id].d.ts +10 -0
  171. package/build/pages/account/orders/index.d.ts +10 -0
  172. package/build/pages/account/recover-password.d.ts +10 -0
  173. package/build/pages/account/register.d.ts +10 -0
  174. package/build/pages/api/getComponentDirs.d.ts +3 -0
  175. package/build/pages/api/getTheme.d.ts +3 -0
  176. package/build/pages/api/updateTheme.d.ts +10 -0
  177. package/build/pages/api/uploadTheme.d.ts +3 -0
  178. package/build/pages/checkout/[id].d.ts +11 -0
  179. package/build/pages/editor.d.ts +5 -0
  180. package/build/pages/home.d.ts +10 -0
  181. package/build/pages/index.d.ts +14 -0
  182. package/build/store/base.d.ts +7 -0
  183. package/build/store/cart.d.ts +25 -0
  184. package/build/store/customer.d.ts +32 -0
  185. package/build/store/index.d.ts +1 -0
  186. package/build/storefront/index.d.ts +9 -0
  187. package/build/utils/currency.d.ts +1 -0
  188. package/build/utils/helper.d.ts +4 -0
  189. package/build/utils/index.d.ts +3 -0
  190. package/build/utils/providers/page-data.d.ts +35 -0
  191. package/build/utils/providers/prop-value/brand-list.d.ts +7 -0
  192. package/build/utils/providers/prop-value/brand.d.ts +8 -0
  193. package/build/utils/providers/prop-value/index.d.ts +3 -0
  194. package/build/utils/providers/prop-value/link.d.ts +9 -0
  195. package/build/utils/providers/prop-value/product-detail.d.ts +8 -0
  196. package/build/utils/providers/prop-value/product-list.d.ts +11 -0
  197. package/package.json +118 -0
@@ -0,0 +1,29 @@
1
+ import { IkasCategory } from "../category/index";
2
+ import { IkasProductVariant } from "./variant/index";
3
+ import { IkasProductAttributeValue } from "./attribute-value/index";
4
+ import { IkasProductVariantType } from "./variant-type/index";
5
+ import { IkasBrand } from "../brand/index";
6
+ import { IkasHTMLMetaData } from "../html-meta-data/index";
7
+ export declare class IkasProduct {
8
+ id: string;
9
+ name: string;
10
+ type: IkasProductType;
11
+ description: string;
12
+ shortDescription: string;
13
+ taxValue: number | null;
14
+ metaData?: IkasHTMLMetaData;
15
+ brand: IkasBrand | null;
16
+ categories: IkasCategory[];
17
+ variants: IkasProductVariant[];
18
+ attributes: IkasProductAttributeValue[];
19
+ variantTypes: IkasProductVariantType[];
20
+ constructor(data?: Partial<IkasProduct>);
21
+ get hasVariant(): boolean;
22
+ get mainVariantType(): import("../index").IkasVariantType;
23
+ get href(): string;
24
+ }
25
+ export declare enum IkasProductType {
26
+ PHYSICAL = "PHYSICAL",
27
+ DIGITAL = "DIGITAL",
28
+ MEMBERSHIP = "MEMBERSHIP"
29
+ }
@@ -0,0 +1,16 @@
1
+ import { IkasProductPrice } from "./price/index";
2
+ import { IkasVariantValue } from "../../variant-type/variant-value/index";
3
+ import { IkasProductAttributeValue } from "../attribute-value/index";
4
+ import { IkasImage } from "../../image/index";
5
+ export declare class IkasProductVariant {
6
+ id: string;
7
+ sku: string | null;
8
+ barcodeList: string[];
9
+ variantValues: IkasVariantValue[];
10
+ images: IkasImage[];
11
+ attributes: IkasProductAttributeValue[];
12
+ price: IkasProductPrice;
13
+ stock: number;
14
+ constructor(data?: Partial<IkasProductVariant>);
15
+ get mainImage(): IkasImage;
16
+ }
@@ -0,0 +1,8 @@
1
+ export declare class IkasProductPrice {
2
+ sellPrice: number;
3
+ discountPrice: number | null;
4
+ currency: string;
5
+ constructor(data?: Partial<IkasProductPrice>);
6
+ get finalPrice(): number;
7
+ get hasDiscount(): boolean;
8
+ }
@@ -0,0 +1,6 @@
1
+ import { IkasVariantType } from "../../variant-type/index";
2
+ export declare class IkasProductVariantType {
3
+ variantType: IkasVariantType;
4
+ variantValueIds: string[];
5
+ constructor(data: Partial<IkasProductVariantType>);
6
+ }
@@ -0,0 +1,17 @@
1
+ import IkasProductAttributeOption from "./product-attribute-option/index";
2
+ export declare class IkasProductAttribute {
3
+ id: string;
4
+ name: string;
5
+ type: IkasProductAttributeType;
6
+ options: IkasProductAttributeOption[] | null;
7
+ constructor(data: Partial<IkasProductAttribute>);
8
+ }
9
+ export declare enum IkasProductAttributeType {
10
+ CHOICE = "CHOICE",
11
+ MULTIPLE_CHOICE = "MULTIPLE_CHOICE",
12
+ TEXT = "TEXT",
13
+ BOOLEAN = "BOOLEAN",
14
+ NUMERIC = "NUMERIC",
15
+ DATETIME = "DATETIME",
16
+ HTML = "HTML"
17
+ }
@@ -0,0 +1,5 @@
1
+ export default class IkasProductAttributeOption {
2
+ id: string;
3
+ name: string;
4
+ constructor(data?: Partial<IkasProductAttributeOption>);
5
+ }
@@ -0,0 +1,5 @@
1
+ export declare type IkasState = {
2
+ id: string;
3
+ name: string;
4
+ stateCode?: string;
5
+ };
@@ -0,0 +1,12 @@
1
+ import { IkasStorefrontDomain } from "./storefront-domain/index";
2
+ import { IkasStorefrontRegion } from "./storefront-region/index";
3
+ export declare class IkasStorefront {
4
+ id: string;
5
+ name: string;
6
+ themeId: string;
7
+ themeVersionId: string;
8
+ userId: string;
9
+ domains: IkasStorefrontDomain[];
10
+ regions: IkasStorefrontRegion[];
11
+ constructor(data?: Partial<IkasStorefront>);
12
+ }
@@ -0,0 +1,5 @@
1
+ export declare class IkasStorefrontLocation {
2
+ countryId: string;
3
+ stateId: string | null;
4
+ constructor(data?: Partial<IkasStorefrontLocation>);
5
+ }
@@ -0,0 +1,5 @@
1
+ export declare class IkasStorefrontRoute {
2
+ domainId: string;
3
+ useSubPath: boolean;
4
+ constructor(data?: Partial<IkasStorefrontRoute>);
5
+ }
@@ -0,0 +1,7 @@
1
+ export declare class IkasStorefrontDomain {
2
+ id: string;
3
+ merchantDomainId: string;
4
+ name: string;
5
+ redirectDomainName: string | null;
6
+ constructor(data?: Partial<IkasStorefrontDomain>);
7
+ }
@@ -0,0 +1,18 @@
1
+ import { IkasStorefrontLocation } from "../stockfront-location/index";
2
+ import { IkasStorefrontRoute } from "../stockfront-route/index";
3
+ import { IkasTheme } from "../../../theme/index";
4
+ export declare class IkasStorefrontRegion {
5
+ id: string;
6
+ locale: string;
7
+ themeJSON: string | null;
8
+ shipping: string | null;
9
+ paymentSettingsId: string | null;
10
+ priceListId: string | null;
11
+ locations: IkasStorefrontLocation[] | null;
12
+ routes: IkasStorefrontRoute[] | null;
13
+ termsOfService: string;
14
+ privacyPolicy: string;
15
+ returnPolicy: string;
16
+ theme: IkasTheme;
17
+ constructor(data?: Partial<IkasStorefrontRegion>);
18
+ }
@@ -0,0 +1,14 @@
1
+ import { IkasVariantValue } from "./variant-value/index";
2
+ export declare class IkasVariantType {
3
+ id: string;
4
+ name: string;
5
+ selectionType: IkasVariantSelectionType;
6
+ values: IkasVariantValue[];
7
+ constructor(data?: Partial<IkasVariantType>);
8
+ get isColorSelection(): boolean;
9
+ get slug(): string;
10
+ }
11
+ export declare enum IkasVariantSelectionType {
12
+ CHOICE = "CHOICE",
13
+ COLOR = "COLOR"
14
+ }
@@ -0,0 +1,11 @@
1
+ import { IkasImage } from "../../image/index";
2
+ export declare class IkasVariantValue {
3
+ id: string;
4
+ name: string;
5
+ colorCode: string | null;
6
+ thumbnilImageId: string | null;
7
+ variantTypeId: string;
8
+ constructor(data: Partial<IkasVariantValue>);
9
+ get slug(): string;
10
+ get thumbnailImage(): IkasImage;
11
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./data/index";
2
+ export * from "./theme/index";
3
+ export * from "./ui/index";
@@ -0,0 +1,10 @@
1
+ import { IkasThemeComponentProp } from "./prop/index";
2
+ export declare class IkasThemeComponent {
3
+ id: string;
4
+ dir: string;
5
+ displayName: string;
6
+ props: IkasThemeComponentProp[];
7
+ isHeader: boolean;
8
+ isFooter: boolean;
9
+ constructor(data: Partial<IkasThemeComponent>);
10
+ }
@@ -0,0 +1,19 @@
1
+ export declare class IkasThemeComponentProp {
2
+ name: string;
3
+ displayName: string;
4
+ type: IkasThemeComponentPropType;
5
+ constructor(data: Partial<IkasThemeComponentProp>);
6
+ }
7
+ export declare enum IkasThemeComponentPropType {
8
+ IMAGE = "IMAGE",
9
+ TEXT = "TEXT",
10
+ BOOLEAN = "BOOLEAN",
11
+ LINK = "LINK",
12
+ LIST_OF_LINK = "LIST_OF_LINK",
13
+ PRODUCT_DETAIL = "PRODUCT_DETAIL",
14
+ PRODUCT_LIST = "PRODUCT_LIST",
15
+ BRAND = "BRAND",
16
+ BRAND_LIST = "BRAND_LIST",
17
+ CATEGORY = "CATEGORY",
18
+ CATEGORY_LIST = "CATEGORY_LIST"
19
+ }
@@ -0,0 +1,14 @@
1
+ import { IkasNavigationLink } from "../../../../ui/navigation-link/index";
2
+ import { IkasProductDetail } from "../../../../ui/product-detail/index";
3
+ import { IkasBrand } from "../../../../data/brand/index";
4
+ import { IkasCategory } from "../../../../data/category/index";
5
+ export declare type IkasText = string;
6
+ export declare type IkasBoolean = boolean;
7
+ export declare class IkasLink extends IkasNavigationLink {
8
+ }
9
+ export declare type IkasLinkList = IkasLink[];
10
+ export declare class IkasProduct extends IkasProductDetail {
11
+ }
12
+ export declare type IkasProductList = IkasProduct[];
13
+ export declare type IkasBrandList = IkasBrand[];
14
+ export declare type IkasCategoryList = IkasCategory[];
@@ -0,0 +1,10 @@
1
+ export { IkasTheme } from "./theme";
2
+ export { IkasThemePage, IkasThemePageType } from "./page/index";
3
+ export { IkasThemePageComponent } from "./page/component/index";
4
+ export { IkasThemeComponent } from "./component/index";
5
+ export { IkasThemeComponentProp, IkasThemeComponentPropType, } from "./component/prop/index";
6
+ export { IkasLinkPropValue, IkasLinkType, } from "./page/component/prop-value/link";
7
+ export { IkasBrandPropValue } from "./page/component/prop-value/brand";
8
+ export { IkasBrandListPropValue } from "./page/component/prop-value/brand-list";
9
+ export { IkasProductListPropValue } from "./page/component/prop-value/product-list";
10
+ export { IkasProductDetailPropValue } from "./page/component/prop-value/product-detail";
@@ -0,0 +1,6 @@
1
+ export declare class IkasThemePageComponent {
2
+ id: string;
3
+ componentId: string;
4
+ propValues: Record<string, any>;
5
+ constructor(data: Partial<IkasThemePageComponent>);
6
+ }
@@ -0,0 +1,9 @@
1
+ import { IkasBrandListSortType, IkasBrandListType } from "../../../../ui/brand-list/index";
2
+ export declare class IkasBrandListPropValue {
3
+ brandListType: IkasBrandListType;
4
+ initialSort?: IkasBrandListSortType;
5
+ initialLimit?: number;
6
+ brandCount?: number;
7
+ brandIds?: string[];
8
+ constructor(data: Partial<IkasBrandListPropValue>);
9
+ }
@@ -0,0 +1,5 @@
1
+ export declare class IkasBrandPropValue {
2
+ brandId?: string;
3
+ usePageData?: boolean;
4
+ constructor(data: Partial<IkasBrandPropValue>);
5
+ }
@@ -0,0 +1,19 @@
1
+ import { IkasThemePageType } from "../../index";
2
+ export declare class IkasLinkPropValue {
3
+ id?: string;
4
+ linkType?: IkasLinkType;
5
+ label?: string;
6
+ pageId?: string;
7
+ pageType?: IkasThemePageType;
8
+ itemId?: string;
9
+ externalLink?: string;
10
+ fileUrl?: string;
11
+ pageComponentId?: string;
12
+ subLinks: IkasLinkPropValue[];
13
+ constructor(data?: Partial<IkasLinkPropValue>);
14
+ }
15
+ export declare enum IkasLinkType {
16
+ PAGE = "PAGE",
17
+ EXTERNAL = "EXTERNAL",
18
+ FILE = "FILE"
19
+ }
@@ -0,0 +1,6 @@
1
+ export declare class IkasProductDetailPropValue {
2
+ productId?: string;
3
+ variantId?: string;
4
+ usePageData?: boolean;
5
+ constructor(data: Partial<IkasProductDetailPropValue>);
6
+ }
@@ -0,0 +1,15 @@
1
+ import { IkasProductListSortType, IkasProductListType } from "../../../../ui/index";
2
+ export declare class IkasProductListPropValue {
3
+ productListType: IkasProductListType;
4
+ initialSort?: IkasProductListSortType;
5
+ initialLimit?: number;
6
+ productCount?: number;
7
+ productIds?: IkasProductVariantId[];
8
+ usePageFilter?: boolean;
9
+ constructor(data: Partial<IkasProductListPropValue>);
10
+ }
11
+ declare type IkasProductVariantId = {
12
+ productId: string;
13
+ variantId: string;
14
+ };
15
+ export {};
@@ -0,0 +1,26 @@
1
+ import { IkasThemePageComponent } from "./component/index";
2
+ export declare class IkasThemePage {
3
+ id: string;
4
+ name: string | null;
5
+ type: IkasThemePageType;
6
+ slug: string | null;
7
+ pageTitle: string | null;
8
+ description: string | null;
9
+ components: IkasThemePageComponent[];
10
+ constructor(data: Partial<IkasThemePage>);
11
+ }
12
+ export declare enum IkasThemePageType {
13
+ INDEX = "INDEX",
14
+ CATEGORY = "CATEGORY",
15
+ BRAND = "BRAND",
16
+ PRODUCT = "PRODUCT",
17
+ CUSTOM = "CUSTOM",
18
+ ACCOUNT = "ACCOUNT",
19
+ ADDRESSES = "ADDRESSES",
20
+ ORDERS = "ORDERS",
21
+ ORDER_DETAIL = "ORDER_DETAIL",
22
+ LOGIN = "LOGIN",
23
+ REGISTER = "REGISTER",
24
+ FORGOT_PASSWORD = "FORGOT_PASSWORD",
25
+ RECOVER_PASSWORD = "RECOVER_PASSWORD"
26
+ }
@@ -0,0 +1,10 @@
1
+ import { IkasThemeComponent } from "./component/index";
2
+ import { IkasThemePage } from "./page/index";
3
+ export declare class IkasTheme {
4
+ name: string;
5
+ components: IkasThemeComponent[];
6
+ pages: IkasThemePage[];
7
+ constructor(data?: Partial<IkasTheme>);
8
+ get headerComponent(): IkasThemeComponent;
9
+ get footerComponent(): IkasThemeComponent;
10
+ }
@@ -0,0 +1,58 @@
1
+ import { IkasBrand } from "../../data/index";
2
+ import { IkasBrandListPropValue } from "../../theme/page/component/prop-value/brand-list";
3
+ export declare class IkasBrandList {
4
+ data: IkasBrand[];
5
+ private _type;
6
+ private _sort;
7
+ private _limit;
8
+ private _page;
9
+ private _count;
10
+ private _initialized;
11
+ private _minPage?;
12
+ private _brandListPropValue;
13
+ private _isLoading;
14
+ constructor(data: IkasBrandListParams);
15
+ get sort(): IkasBrandListSortType;
16
+ get limit(): number;
17
+ get page(): number;
18
+ get count(): number;
19
+ get isInitialized(): boolean;
20
+ get isStatic(): boolean;
21
+ get hasPrev(): boolean;
22
+ get hasNext(): boolean;
23
+ get isLoading(): boolean;
24
+ getInitial: () => Promise<void>;
25
+ getPrev: () => Promise<void>;
26
+ getNext: () => Promise<void>;
27
+ getPage: (page: number) => Promise<void>;
28
+ toJSON(): {
29
+ data: IkasBrand[];
30
+ type: IkasBrandListType;
31
+ sort: IkasBrandListSortType;
32
+ limit: number;
33
+ page: number;
34
+ count: number;
35
+ initialized: boolean;
36
+ minPage: number;
37
+ brandListPropValue: IkasBrandListPropValue;
38
+ };
39
+ }
40
+ export declare type IkasBrandListParams = {
41
+ data?: IkasBrand[];
42
+ type?: IkasBrandListType;
43
+ sort?: IkasBrandListSortType;
44
+ limit?: number;
45
+ page?: number;
46
+ count?: number;
47
+ initialized?: boolean;
48
+ minPage?: number;
49
+ brandListPropValue: IkasBrandListPropValue;
50
+ };
51
+ export declare enum IkasBrandListType {
52
+ ALL = "ALL",
53
+ STATIC = "STATIC"
54
+ }
55
+ export declare enum IkasBrandListSortType {
56
+ A_Z = "A_Z",
57
+ Z_A = "Z_A"
58
+ }
@@ -0,0 +1,6 @@
1
+ export { IkasBrandList, IkasBrandListType, IkasBrandListSortType, } from "./brand-list/index";
2
+ export type { IkasBrandListParams } from "./brand-list/index";
3
+ export { IkasNavigationLink } from "./navigation-link/index";
4
+ export { IkasProductDetail } from "./product-detail/index";
5
+ export { IkasProductList, IkasProductListType, IkasProductListSortType, } from "./product-list/index";
6
+ export { IkasProductListFilter } from "./product-list/filter";
@@ -0,0 +1,7 @@
1
+ export declare class IkasNavigationLink {
2
+ href: string;
3
+ label: string;
4
+ subLinks: IkasNavigationLink[];
5
+ isExternal?: boolean;
6
+ constructor(href: string, label: string, subLinks: IkasNavigationLink[], isExternal?: boolean);
7
+ }
@@ -0,0 +1,13 @@
1
+ import { IkasProduct, IkasVariantValue } from "../../index";
2
+ import { NextRouter } from "next/router";
3
+ export declare class IkasProductDetail {
4
+ product: IkasProduct;
5
+ selectedVariantValues: IkasVariantValue[];
6
+ private usePageData?;
7
+ private router?;
8
+ constructor(product: IkasProduct, selectedVariantValues: IkasVariantValue[], usePageData?: boolean, router?: NextRouter);
9
+ get mainVariantValue(): IkasVariantValue;
10
+ get selectedVariant(): import("../../index").IkasProductVariant;
11
+ get href(): string;
12
+ selectVariantValue(variantValue: IkasVariantValue): void;
13
+ }
@@ -0,0 +1,18 @@
1
+ export declare class IkasProductListFilter {
2
+ category?: string;
3
+ brand?: string;
4
+ categories: string[];
5
+ brands: string[];
6
+ variantValues: VariantValueFilter[];
7
+ attributes: AttributeFilter[];
8
+ constructor(data?: Partial<IkasProductListFilter>);
9
+ }
10
+ declare type VariantValueFilter = {
11
+ variantType: string;
12
+ values: string[];
13
+ };
14
+ declare type AttributeFilter = {
15
+ attribute: string;
16
+ values: string[];
17
+ };
18
+ export {};
@@ -0,0 +1,76 @@
1
+ import { IkasProductListPropValue } from "../../theme/index";
2
+ import { IkasProductDetail } from "../product-detail/index";
3
+ import { IkasProductListFilter } from "./filter";
4
+ export declare class IkasProductList {
5
+ data: IkasProductDetail[];
6
+ private _type;
7
+ private _sort;
8
+ private _limit;
9
+ private _page;
10
+ private _count;
11
+ private _initialized;
12
+ private _minPage?;
13
+ private _productListPropValue;
14
+ private _filters?;
15
+ private _recommendFor?;
16
+ private _isLoading;
17
+ constructor(data: IkasProductListParams);
18
+ get sort(): IkasProductListSortType;
19
+ get limit(): number;
20
+ get page(): number;
21
+ get count(): number;
22
+ get isInitialized(): boolean;
23
+ get isStatic(): boolean;
24
+ get isDiscounted(): boolean;
25
+ get isRecommended(): boolean;
26
+ get hasPrev(): boolean;
27
+ get hasNext(): boolean;
28
+ get isLoading(): boolean;
29
+ getInitial: () => Promise<void>;
30
+ getPrev: () => Promise<void>;
31
+ getNext: () => Promise<void>;
32
+ getPage: (page: number) => Promise<void>;
33
+ applyFilters(): void;
34
+ toJSON(): {
35
+ data: IkasProductDetail[];
36
+ type: IkasProductListType;
37
+ sort: IkasProductListSortType;
38
+ limit: number;
39
+ page: number;
40
+ count: number;
41
+ initialized: boolean;
42
+ minPage: number;
43
+ filters: IkasProductListFilter;
44
+ recommendFor: string;
45
+ productListPropValue: IkasProductListPropValue;
46
+ };
47
+ }
48
+ export declare type IkasProductListParams = {
49
+ data?: IkasProductDetail[];
50
+ type?: IkasProductListType;
51
+ sort?: IkasProductListSortType;
52
+ limit?: number;
53
+ page?: number;
54
+ count?: number;
55
+ initialized?: boolean;
56
+ minPage?: number;
57
+ filters?: IkasProductListFilter;
58
+ recommendFor?: string;
59
+ productListPropValue: IkasProductListPropValue;
60
+ };
61
+ export declare enum IkasProductListType {
62
+ ALL = "ALL",
63
+ STATIC = "STATIC",
64
+ DISCOUNTED = "DISCOUNTED",
65
+ RECOMMENDED = "RECOMMENDED"
66
+ }
67
+ export declare enum IkasProductListSortType {
68
+ MOST_SOLD = "MOST_SOLD",
69
+ FEATURED = "FEATURED",
70
+ INCREASING_PRICE = "INCREASING_PRICE",
71
+ DECREASING_PRICE = "DECREASING_PRICE",
72
+ A_Z = "A_Z",
73
+ Z_A = "Z_A",
74
+ LAST_ADDED = "LAST_ADDED",
75
+ FIRST_ADDED = "FIRST_ADDED"
76
+ }
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import { GetStaticProps, GetStaticPaths } from "next";
3
+ import { IkasThemePage } from "../../models/index";
4
+ declare type Props = {
5
+ propValuesStr: string;
6
+ page: IkasThemePage;
7
+ };
8
+ declare const Page: React.FC<Props>;
9
+ export default Page;
10
+ export declare const getStaticPaths: GetStaticPaths;
11
+ export declare const getStaticProps: GetStaticProps;
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import { GetStaticProps, GetStaticPaths } from "next";
3
+ import { IkasThemePage } from "../../models/index";
4
+ declare type Props = {
5
+ propValuesStr: string;
6
+ pageSpecificDataStr: string;
7
+ page: IkasThemePage;
8
+ };
9
+ declare const Page: React.FC<Props>;
10
+ export default Page;
11
+ export declare const getStaticPaths: GetStaticPaths;
12
+ export declare const getStaticProps: GetStaticProps;
@@ -0,0 +1,10 @@
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
+ };
8
+ declare const Page: React.FC<Props>;
9
+ export default Page;
10
+ export declare const getStaticProps: GetStaticProps;
@@ -0,0 +1,10 @@
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
+ };
8
+ declare const Page: React.FC<Props>;
9
+ export default Page;
10
+ export declare const getStaticProps: GetStaticProps;
@@ -0,0 +1,10 @@
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
+ };
8
+ declare const Page: React.FC<Props>;
9
+ export default Page;
10
+ export declare const getStaticProps: GetStaticProps;
@@ -0,0 +1,10 @@
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
+ };
8
+ declare const Page: React.FC<Props>;
9
+ export default Page;
10
+ export declare const getStaticProps: GetStaticProps;
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import { GetServerSideProps } from "next";
3
+ import { IkasThemePage } from "../../../models/index";
4
+ declare type Props = {
5
+ propValuesStr: string;
6
+ page: IkasThemePage;
7
+ };
8
+ declare const Page: React.FC<Props>;
9
+ export default Page;
10
+ export declare const getServerSideProps: GetServerSideProps;
@@ -0,0 +1,10 @@
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
+ };
8
+ declare const Page: React.FC<Props>;
9
+ export default Page;
10
+ export declare const getStaticProps: GetStaticProps;
@@ -0,0 +1,10 @@
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
+ };
8
+ declare const Page: React.FC<Props>;
9
+ export default Page;
10
+ export declare const getStaticProps: GetStaticProps;