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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/build/__generated__/global-types.d.ts +214 -8
  2. package/build/analytics/analytics.d.ts +22 -0
  3. package/build/analytics/facebookPixel.d.ts +15 -0
  4. package/build/analytics/googleTagManager.d.ts +201 -0
  5. package/build/analytics/head/index.d.ts +7 -0
  6. package/build/analytics/index.d.ts +2 -0
  7. package/build/api/blog/__generated__/getBlog.d.ts +83 -0
  8. package/build/api/blog/__generated__/listBlog.d.ts +86 -0
  9. package/build/api/blog/__generated__/listBlogCategory.d.ts +38 -0
  10. package/build/api/blog/__generated__/listBlogMetaData.d.ts +29 -0
  11. package/build/api/blog/index.d.ts +32 -0
  12. package/build/api/brand/__generated__/listProductBrand.d.ts +3 -2
  13. package/build/api/brand/index.d.ts +1 -0
  14. package/build/api/cart/__generated__/getCart.d.ts +7 -3
  15. package/build/api/cart/__generated__/saveItemToCart.d.ts +6 -3
  16. package/build/api/category/__generated__/listCategory.d.ts +4 -2
  17. package/build/api/category/__generated__/listCategoryPaths.d.ts +23 -0
  18. package/build/api/category/index.d.ts +3 -0
  19. package/build/api/checkout/__generated__/checkStocks.d.ts +3 -3
  20. package/build/api/checkout/__generated__/getCheckoutByCartId.d.ts +1 -1
  21. package/build/api/checkout/__generated__/getCheckoutById.d.ts +5 -4
  22. package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +26 -0
  23. package/build/api/checkout/__generated__/listPaymentGateway.d.ts +14 -2
  24. package/build/api/checkout/__generated__/saveCheckout.d.ts +1 -1
  25. package/build/api/checkout/index.d.ts +11 -3
  26. package/build/api/city/__generated__/listCity.d.ts +1 -1
  27. package/build/api/contact-form/__generated__/sendContactFormToMerchant.d.ts +9 -0
  28. package/build/api/contact-form/index.d.ts +10 -0
  29. package/build/api/country/__generated__/getAvailableShippingCountries.d.ts +3 -0
  30. package/build/api/country/__generated__/getMyCountry.d.ts +3 -0
  31. package/build/api/country/__generated__/listCountry.d.ts +8 -1
  32. package/build/api/country/index.d.ts +3 -2
  33. package/build/api/customer/__generated__/createCustomerEmailSubscription.d.ts +11 -0
  34. package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +215 -0
  35. package/build/api/customer/__generated__/customerLogin.d.ts +5 -3
  36. package/build/api/customer/__generated__/getCustomerOrders.d.ts +3 -4
  37. package/build/api/customer/__generated__/getLastViewedProducts.d.ts +15 -0
  38. package/build/api/customer/__generated__/getMyCustomer.d.ts +3 -2
  39. package/build/api/customer/__generated__/listOrderTransactions.d.ts +1 -1
  40. package/build/api/customer/__generated__/registerCustomer.d.ts +2 -2
  41. package/build/api/customer/__generated__/saveLastViewedProducts.d.ts +11 -0
  42. package/build/api/customer/__generated__/saveMyCustomer.d.ts +3 -2
  43. package/build/api/customer/index.d.ts +15 -0
  44. package/build/api/district/__generated__/listDistrict.d.ts +1 -1
  45. package/build/api/favorite-product/__generated__/isFavoriteProduct.d.ts +6 -0
  46. package/build/api/favorite-product/__generated__/listFavoriteProducts.d.ts +12 -0
  47. package/build/api/favorite-product/__generated__/saveFavoriteProduct.d.ts +7 -0
  48. package/build/api/favorite-product/index.d.ts +6 -0
  49. package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +2 -1
  50. package/build/api/html-meta-data/index.d.ts +1 -1
  51. package/build/api/index.d.ts +4 -3
  52. package/build/api/merchant/__generated__/listMerchantSettings.d.ts +1 -1
  53. package/build/api/product-attribute/__generated__/listProductAttribute.d.ts +2 -2
  54. package/build/api/product-search/__generated__/getProductFilterData.d.ts +50 -0
  55. package/build/api/product-search/__generated__/searchProducts.d.ts +26 -0
  56. package/build/api/product-search/index.d.ts +20 -0
  57. package/build/api/state/__generated__/listState.d.ts +1 -1
  58. package/build/api/stock-location/__generated__/listStockLocation.d.ts +1 -1
  59. package/build/api/storefront/__generated__/getStorefront.d.ts +41 -12
  60. package/build/api/storefront/index.d.ts +1 -1
  61. package/build/api/variant-type/__generated__/listVariantType.d.ts +2 -2
  62. package/build/components/checkout/components/address-form/index.d.ts +3 -0
  63. package/build/components/checkout/components/address-form/model.d.ts +13 -2
  64. package/build/components/checkout/components/button/index.d.ts +4 -1
  65. package/build/components/checkout/components/cart-summary/cross.d.ts +6 -0
  66. package/build/components/checkout/components/cart-summary/tag.d.ts +6 -0
  67. package/build/components/checkout/components/checkbox/index.d.ts +2 -1
  68. package/build/components/checkout/components/error-container/customer-login-required-error/index.d.ts +6 -0
  69. package/build/components/checkout/components/error-container/payment-error/index.d.ts +2 -0
  70. package/build/components/checkout/components/form-item/model.d.ts +11 -2
  71. package/build/components/checkout/index.d.ts +5 -0
  72. package/build/components/checkout/model.d.ts +23 -10
  73. package/build/components/hoc/ThemeComponent.d.ts +2 -2
  74. package/build/components/image/index.d.ts +35 -0
  75. package/build/components/index.d.ts +1 -2
  76. package/build/components/page/head.d.ts +5 -0
  77. package/build/components/page/index.d.ts +6 -1
  78. package/build/components/page-editor/model.d.ts +6 -2
  79. package/build/index.d.ts +1 -0
  80. package/build/index.es.js +17665 -9253
  81. package/build/index.js +18346 -9898
  82. package/build/models/data/blog/index.d.ts +67 -0
  83. package/build/models/data/brand/index.d.ts +1 -1
  84. package/build/models/data/cart/index.d.ts +9 -0
  85. package/build/models/data/category/index.d.ts +22 -1
  86. package/build/models/data/checkout/index.d.ts +5 -0
  87. package/build/models/data/checkout-settings/index.d.ts +18 -0
  88. package/build/models/data/contact-form/index.d.ts +7 -0
  89. package/build/models/data/country/index.d.ts +2 -0
  90. package/build/models/data/customer/index.d.ts +7 -0
  91. package/build/models/data/favorite-product/index.d.ts +6 -0
  92. package/build/models/data/image/index.d.ts +1 -0
  93. package/build/models/data/index.d.ts +5 -1
  94. package/build/models/data/order/address/index.d.ts +6 -0
  95. package/build/models/data/order/index.d.ts +19 -1
  96. package/build/models/data/order/line-item/index.d.ts +18 -0
  97. package/build/models/data/order/refund/index.d.ts +6 -0
  98. package/build/models/data/order/refund/refund-line-item/index.d.ts +5 -0
  99. package/build/models/data/payment-gateway/index.d.ts +26 -2
  100. package/build/models/data/product/attribute-value/index.d.ts +15 -1
  101. package/build/models/data/product/index.d.ts +2 -1
  102. package/build/models/data/product/variant/index.d.ts +1 -0
  103. package/build/models/data/product/variant/price/index.d.ts +2 -0
  104. package/build/models/data/product-attribute/index.d.ts +5 -2
  105. package/build/models/data/product-attribute/product-attribute-table-cell/index.d.ts +5 -0
  106. package/build/models/data/product-attribute/product-attribute-table-template/index.d.ts +6 -0
  107. package/build/models/data/product-filter/index.d.ts +102 -0
  108. package/build/models/data/product-tag/index.d.ts +5 -0
  109. package/build/models/data/sales-channel/index.d.ts +18 -0
  110. package/build/models/data/simple-product/index.d.ts +135 -0
  111. package/build/models/data/storefront/{storefront-domain → domain}/index.d.ts +1 -0
  112. package/build/models/data/storefront/index.d.ts +17 -6
  113. package/build/models/data/storefront/localization/index.d.ts +7 -0
  114. package/build/models/data/storefront/routing/index.d.ts +9 -0
  115. package/build/models/data/storefront/theme/index.d.ts +13 -0
  116. package/build/models/data/storefront/theme-localization/index.d.ts +12 -0
  117. package/build/models/data/variant-type/variant-value/index.d.ts +1 -1
  118. package/build/models/theme/component/prop/index.d.ts +17 -1
  119. package/build/models/theme/custom-data/index.d.ts +24 -0
  120. package/build/models/theme/index.d.ts +4 -0
  121. package/build/models/theme/page/component/prop-value/attribute-list.d.ts +7 -0
  122. package/build/models/theme/page/component/prop-value/attribute.d.ts +7 -0
  123. package/build/models/theme/page/component/prop-value/blog-list.d.ts +9 -0
  124. package/build/models/theme/page/component/prop-value/blog.d.ts +5 -0
  125. package/build/models/theme/page/component/prop-value/product-list.d.ts +2 -0
  126. package/build/models/theme/page/index.d.ts +14 -1
  127. package/build/models/theme/settings/index.d.ts +7 -0
  128. package/build/models/theme/settings/prop/color/index.d.ts +7 -0
  129. package/build/models/theme/settings/prop/favicon/index.d.ts +4 -0
  130. package/build/models/theme/theme.d.ts +4 -0
  131. package/build/models/ui/blog-list/index.d.ts +56 -0
  132. package/build/models/ui/brand-list/index.d.ts +3 -0
  133. package/build/models/ui/category-list/index.d.ts +3 -0
  134. package/build/models/ui/component-renderer/index.d.ts +7 -0
  135. package/build/models/ui/index.d.ts +12 -2
  136. package/build/models/ui/product-detail/index.d.ts +14 -3
  137. package/build/models/ui/product-list/index.d.ts +62 -14
  138. package/build/models/ui/validator/form/account-info.d.ts +40 -0
  139. package/build/models/ui/validator/form/address.d.ts +75 -0
  140. package/build/models/ui/validator/form/contact-form.d.ts +45 -0
  141. package/build/models/ui/validator/form/forgot-password.d.ts +29 -0
  142. package/build/models/ui/validator/form/login.d.ts +35 -0
  143. package/build/models/ui/validator/form/recover-password.d.ts +36 -0
  144. package/build/models/ui/validator/form/register.d.ts +45 -0
  145. package/build/models/ui/validator/index.d.ts +27 -0
  146. package/build/models/ui/validator/rules/index.d.ts +87 -0
  147. package/build/pages/404.d.ts +13 -0
  148. package/build/pages/[slug]/index.d.ts +9 -3
  149. package/build/pages/account/addresses.d.ts +2 -0
  150. package/build/pages/account/favorite-products.d.ts +12 -0
  151. package/build/pages/account/forgot-password.d.ts +3 -0
  152. package/build/pages/account/index.d.ts +2 -0
  153. package/build/pages/account/login.d.ts +3 -0
  154. package/build/pages/account/orders/[id].d.ts +2 -0
  155. package/build/pages/account/orders/index.d.ts +2 -0
  156. package/build/pages/account/recover-password.d.ts +3 -0
  157. package/build/pages/account/register.d.ts +3 -0
  158. package/build/pages/blog/[slug].d.ts +18 -0
  159. package/build/pages/blog/index.d.ts +13 -0
  160. package/build/pages/cart.d.ts +12 -0
  161. package/build/pages/checkout/[id].d.ts +5 -0
  162. package/build/pages/home.d.ts +3 -0
  163. package/build/pages/index.d.ts +8 -2
  164. package/build/pages/{[slug]/[secondSlug].d.ts → pages/[slug].d.ts} +2 -0
  165. package/build/pages/search.d.ts +13 -0
  166. package/build/store/base.d.ts +17 -0
  167. package/build/store/customer.d.ts +31 -1
  168. package/build/storefront/index.d.ts +29 -3
  169. package/build/utils/helper.d.ts +1 -0
  170. package/build/utils/index.d.ts +1 -0
  171. package/build/utils/providers/page-data.d.ts +60 -5
  172. package/build/utils/providers/placeholders.d.ts +5 -0
  173. package/build/utils/providers/prop-value/attribute-list.d.ts +9 -0
  174. package/build/utils/providers/prop-value/attribute.d.ts +9 -0
  175. package/build/utils/providers/prop-value/blog-list.d.ts +9 -0
  176. package/build/utils/providers/prop-value/blog.d.ts +8 -0
  177. package/build/utils/providers/prop-value/boolean.d.ts +1 -1
  178. package/build/utils/providers/prop-value/category.d.ts +2 -2
  179. package/build/utils/providers/prop-value/color.d.ts +6 -0
  180. package/build/utils/providers/prop-value/custom.d.ts +40 -0
  181. package/build/utils/providers/prop-value/product-detail.d.ts +2 -2
  182. package/build/utils/providers/prop-value/product-list.d.ts +1 -3
  183. package/build/utils/providers/prop-value/rich-text.d.ts +6 -0
  184. package/build/utils/settings.d.ts +168 -0
  185. package/package.json +3 -3
  186. package/build/api/product/__generated__/listProduct.d.ts +0 -90
  187. package/build/api/product/index.d.ts +0 -15
  188. package/build/api/product-stock-location/__generated__/listProductStockLocation.d.ts +0 -13
  189. package/build/api/product-stock-location/index.d.ts +0 -4
  190. package/build/api/theme/index.d.ts +0 -4
  191. package/build/components/gtm/functions.d.ts +0 -164
  192. package/build/components/gtm/index.d.ts +0 -7
  193. package/build/models/data/storefront/stockfront-location/index.d.ts +0 -5
  194. package/build/models/data/storefront/stockfront-route/index.d.ts +0 -5
  195. package/build/models/data/storefront/storefront-region/index.d.ts +0 -18
  196. package/build/models/ui/product-list/filter.d.ts +0 -18
@@ -0,0 +1,67 @@
1
+ import { IkasImage } from "../image/index";
2
+ export declare class IkasBlog {
3
+ id: string;
4
+ createdAt: number;
5
+ updatedAt: number;
6
+ categoryId: string | null;
7
+ category: IkasBlogCategory | null;
8
+ imageId: string | null;
9
+ title: string | null;
10
+ shortDescription: string | null;
11
+ isPublished: boolean;
12
+ storefrontId: string;
13
+ tagIds: string[] | null;
14
+ tags: IkasBlogTag[] | null;
15
+ writer: IkasBlogWriter;
16
+ blogContent: IkasBlogContent;
17
+ metadata: IkasBlogMetaData | null;
18
+ image: IkasImage | null;
19
+ constructor(data?: Partial<IkasBlog>);
20
+ get href(): string;
21
+ }
22
+ export declare class IkasBlogContent {
23
+ id: string;
24
+ createdAt: number;
25
+ updatedAt: number;
26
+ content: string;
27
+ constructor(data?: Partial<IkasBlogContent>);
28
+ }
29
+ export declare class IkasBlogWriter {
30
+ firstName: string;
31
+ lastName: string;
32
+ constructor(data?: Partial<IkasBlogWriter>);
33
+ }
34
+ export declare enum IkasBlogMetadataTargetType {
35
+ BLOG = "BLOG",
36
+ BLOG_CATEGORY = "BLOG_CATEGORY"
37
+ }
38
+ export declare class IkasBlogMetaData {
39
+ id: string;
40
+ createdAt: number;
41
+ updatedAt: number;
42
+ pageTitle: string | null;
43
+ description: string | null;
44
+ slug: string;
45
+ targetId: string;
46
+ targetType: IkasBlogMetadataTargetType;
47
+ constructor(data?: Partial<IkasBlogMetaData>);
48
+ }
49
+ export declare class IkasBlogCategory {
50
+ id: string;
51
+ createdAt: number;
52
+ updatedAt: number;
53
+ deleted: boolean;
54
+ name: string;
55
+ imageId: string;
56
+ metadata: IkasBlogMetaData | null;
57
+ constructor(data?: Partial<IkasBlogCategory>);
58
+ get href(): string;
59
+ }
60
+ export declare class IkasBlogTag {
61
+ id: string;
62
+ createdAt: number;
63
+ updatedAt: number;
64
+ deleted: boolean;
65
+ name: string | null;
66
+ constructor(data?: Partial<IkasBlogTag>);
67
+ }
@@ -5,6 +5,6 @@ export declare class IkasBrand {
5
5
  name: string;
6
6
  metaData?: IkasHTMLMetaData | null;
7
7
  image?: IkasImage | null;
8
- constructor(data: Partial<IkasBrand>);
8
+ constructor(data?: Partial<IkasBrand>);
9
9
  get href(): string;
10
10
  }
@@ -10,6 +10,10 @@ export declare class IkasCart {
10
10
  items: IkasOrderLineItem[];
11
11
  merchantId: string;
12
12
  totalPrice: number;
13
+ salesChannelId: string;
14
+ storefrontId: string | null;
15
+ storefrontRoutingId: string | null;
16
+ storefrontThemeId: string | null;
13
17
  constructor(data: Partial<IkasCart>);
14
18
  get totalTax(): number;
15
19
  }
@@ -26,5 +30,10 @@ export declare type IkasSaveItemToCartInput = {
26
30
  cartId: string | null;
27
31
  customerId: string | null;
28
32
  item: IkasCartLineItemInput;
33
+ priceListId: string | null;
34
+ salesChannelId: string;
35
+ storefrontId: string;
36
+ storefrontRoutingId: string;
37
+ storefrontThemeId: string;
29
38
  };
30
39
  export {};
@@ -6,6 +6,27 @@ export declare class IkasCategory {
6
6
  parentId: string | null;
7
7
  metaData?: IkasHTMLMetaData | null;
8
8
  image?: IkasImage | null;
9
- constructor(data: Partial<IkasCategory>);
9
+ path: IkasCategoryPath[];
10
+ constructor(data?: Partial<IkasCategory>);
10
11
  get href(): string;
11
12
  }
13
+ export declare class IkasCategoryPath {
14
+ id: string;
15
+ name: string;
16
+ slug?: string | null;
17
+ constructor(data: Partial<IkasCategoryPath>);
18
+ get href(): string;
19
+ }
20
+ export declare class IkasFilterCategory {
21
+ id: string;
22
+ name: string;
23
+ slug?: string | null;
24
+ resultCount?: number | null;
25
+ private _isSelected;
26
+ constructor(data: Partial<IkasFilterCategory>);
27
+ get isSelected(): boolean;
28
+ get href(): string;
29
+ toJSON(): this & {
30
+ isSelected: boolean;
31
+ };
32
+ }
@@ -2,6 +2,7 @@ import { IkasOrderAddress } from "../order/address/index";
2
2
  import { IkasOrderShippingLine } from "../order/shipping-line/index";
3
3
  import { IkasCart } from "../cart/index";
4
4
  import { IkasOrderAdjustment } from "../order/index";
5
+ import { IkasPaymentGateway } from "../payment-gateway/index";
5
6
  export declare class IkasCheckout {
6
7
  id?: string | null;
7
8
  createdAt?: string | null;
@@ -25,12 +26,16 @@ export declare class IkasCheckout {
25
26
  recoveryStatus?: IkasCheckoutRecoveryStatus | null;
26
27
  totalFinalPrice?: number | null;
27
28
  adjustments?: IkasOrderAdjustment[] | null;
29
+ note: string | null;
30
+ appliedCouponCode?: string | null;
31
+ selectedPaymentGateway?: IkasPaymentGateway | null;
28
32
  constructor(data?: Partial<IkasCheckout>);
29
33
  get shippingTotal(): number;
30
34
  get hasCustomer(): boolean;
31
35
  get hasValidCustomer(): boolean;
32
36
  get customerText(): string;
33
37
  get dateStr(): string;
38
+ get $totalFinalPrice(): number;
34
39
  }
35
40
  export declare type IkasCheckoutCustomer = {
36
41
  id?: string;
@@ -0,0 +1,18 @@
1
+ export declare class IkasCheckoutSettings {
2
+ id: string;
3
+ createdAt: number;
4
+ updatedAt: number;
5
+ phoneRequirement: IkasCheckoutRequirementEnum | null;
6
+ identityNumberRequirement: IkasCheckoutRequirementEnum | null;
7
+ isAccountRequired: boolean;
8
+ isTermsAndConditionsDefaultChecked: boolean;
9
+ showTermsAndConditionsCheckbox: boolean;
10
+ showCheckoutNote: boolean;
11
+ storefrontId: string;
12
+ constructor(data?: Partial<IkasCheckoutSettings>);
13
+ }
14
+ export declare enum IkasCheckoutRequirementEnum {
15
+ INVISIBLE = "INVISIBLE",
16
+ MANDATORY = "MANDATORY",
17
+ OPTIONAL = "OPTIONAL"
18
+ }
@@ -0,0 +1,7 @@
1
+ export declare class IkasContactForm {
2
+ email: string;
3
+ firstName: string;
4
+ lastName: string;
5
+ message: string;
6
+ constructor(data: Partial<IkasContactForm>);
7
+ }
@@ -1,6 +1,8 @@
1
1
  export declare type IkasCountry = {
2
2
  id: string;
3
3
  name: string;
4
+ native: string;
5
+ iso2?: string;
4
6
  iso3?: string;
5
7
  phoneCode?: string;
6
8
  };
@@ -9,7 +9,9 @@ export declare class IkasCustomer {
9
9
  isPhoneVerified: boolean;
10
10
  accountStatus: IkasCustomerAccountStatus;
11
11
  addresses: IkasCustomerAddress[];
12
+ subscriptionStatus: IkasCustomerEmailSubscriptionStatus | null;
12
13
  constructor(data: Partial<IkasCustomer>);
14
+ get isSubscribed(): boolean;
13
15
  }
14
16
  export declare enum IkasCustomerAccountStatus {
15
17
  ACTIVE_ACCOUNT = "ACTIVE_ACCOUNT",
@@ -17,3 +19,8 @@ export declare enum IkasCustomerAccountStatus {
17
19
  DISABLED_ACCOUNT = "DISABLED_ACCOUNT",
18
20
  INVITED_TO_CREATE_ACCOUNT = "INVITED_TO_CREATE_ACCOUNT"
19
21
  }
22
+ export declare enum IkasCustomerEmailSubscriptionStatus {
23
+ NOT_SUBSCRIBED = "NOT_SUBSCRIBED",
24
+ PENDING_CONFIRMATION = "PENDING_CONFIRMATION",
25
+ SUBSCRIBED = "SUBSCRIBED"
26
+ }
@@ -0,0 +1,6 @@
1
+ export declare class IkasFavoriteProduct {
2
+ id: string;
3
+ customerId: string;
4
+ productId: string;
5
+ constructor(data: Partial<IkasFavoriteProduct>);
6
+ }
@@ -4,4 +4,5 @@ export declare class IkasImage {
4
4
  get editorApiKey(): any;
5
5
  get src(): string;
6
6
  get thumbnailSrc(): string;
7
+ getSrc(size: number): string;
7
8
  }
@@ -1,3 +1,4 @@
1
+ export * from "./blog/index";
1
2
  export { IkasBrand } from "./brand/index";
2
3
  export { IkasCategory } from "./category/index";
3
4
  export * from "./checkout/index";
@@ -18,7 +19,10 @@ export { IkasProductVariantType } from "./product/variant-type/index";
18
19
  export { IkasProductVariant } from "./product/variant/index";
19
20
  export { IkasProductPrice } from "./product/variant/price/index";
20
21
  export { IkasProductAttribute } from "./product-attribute/index";
21
- export { IkasProductAttributeValue } from "./product/attribute-value/index";
22
+ export { IkasProductAttributeValue, IkasAttributeTableCellValue, IkasProductAttributeMap, } from "./product/attribute-value/index";
23
+ export * from "./product-filter/index";
24
+ export { IkasFavoriteProduct } from "./favorite-product/index";
25
+ export { IkasContactForm } from "./contact-form/index";
22
26
  export type { IkasState } from "./state/index";
23
27
  export * from "./variant-type/index";
24
28
  export { IkasVariantValue } from "./variant-type/variant-value/index";
@@ -1,3 +1,4 @@
1
+ import { IkasCheckoutSettings } from "../../checkout-settings/index";
1
2
  export declare class IkasOrderAddress {
2
3
  addressLine1?: string | null;
3
4
  addressLine2?: string | null;
@@ -14,10 +15,13 @@ export declare class IkasOrderAddress {
14
15
  identityNumber?: string | null;
15
16
  taxNumber?: string | null;
16
17
  taxOffice?: string | null;
18
+ checkoutSettings?: IkasCheckoutSettings;
19
+ isDistrictRequired?: boolean;
17
20
  constructor(data?: Partial<IkasOrderAddress>);
18
21
  get addressText(): string;
19
22
  get validationResult(): IkasAddressValidationResult;
20
23
  get isValid(): boolean;
24
+ toJSON(): this;
21
25
  }
22
26
  declare type IkasOrderAddressLocation = {
23
27
  id?: string;
@@ -36,6 +40,8 @@ export declare type IkasAddressValidationResult = {
36
40
  country: boolean;
37
41
  state: boolean;
38
42
  city: boolean;
43
+ district: boolean;
39
44
  phone: boolean;
45
+ identityNumber: boolean;
40
46
  };
41
47
  export {};
@@ -1,6 +1,7 @@
1
1
  import { IkasOrderAddress } from "./address/index";
2
2
  import { IkasOrderShippingLine } from "./shipping-line/index";
3
3
  import { IkasOrderLineItem } from "./line-item/index";
4
+ import { IkasCustomerStore } from "../../../store/customer";
4
5
  export declare class IkasOrder {
5
6
  id: string;
6
7
  orderNumber: string;
@@ -24,8 +25,12 @@ export declare class IkasOrder {
24
25
  taxLines: IkasOrderTaxLine[] | null;
25
26
  orderPackages: IkasOrderPackage[] | null;
26
27
  currencyRates: IkasOrderCurrencyRate[] | null;
28
+ customerStore: IkasCustomerStore;
27
29
  constructor(data: IkasOrder);
28
- get unfullfilledOrderLineItems(): IkasOrderLineItem[];
30
+ get refundableItems(): IkasOrderLineItem[];
31
+ get unfullfilledItems(): IkasOrderLineItem[];
32
+ get refundedItems(): IkasOrderLineItem[];
33
+ refund: () => Promise<boolean>;
29
34
  }
30
35
  export declare type IkasOrderAdjustment = {
31
36
  amount: number;
@@ -33,6 +38,7 @@ export declare type IkasOrderAdjustment = {
33
38
  name: string;
34
39
  order: number;
35
40
  type: IkasAdjustmentEnum;
41
+ couponId: string | null;
36
42
  };
37
43
  export declare type IkasOrderCustomer = {
38
44
  id: string;
@@ -106,4 +112,16 @@ export declare type IkasOrderCurrencyRate = {
106
112
  originalRate: number;
107
113
  rate: number;
108
114
  };
115
+ export declare enum OrderLineItemStatusEnum {
116
+ FULFILLED = "FULFILLED",
117
+ UNFULFILLED = "UNFULFILLED",
118
+ DELIVERED = "DELIVERED",
119
+ CANCELLED = "CANCELLED",
120
+ CANCEL_REQUESTED = "CANCEL_REQUESTED",
121
+ CANCEL_REJECTED = "CANCEL_REJECTED",
122
+ REFUND_REQUESTED = "REFUND_REQUESTED",
123
+ REFUND_REQUEST_ACCEPTED = "REFUND_REQUEST_ACCEPTED",
124
+ REFUNDED = "REFUNDED",
125
+ REFUND_REJECTED = "REFUND_REJECTED"
126
+ }
109
127
  export {};
@@ -13,7 +13,25 @@ export declare class IkasOrderLineItem {
13
13
  price: number;
14
14
  quantity: number;
15
15
  taxValue?: number | null;
16
+ private _refundQuantity?;
16
17
  variant: IkasOrderLineVariant;
18
+ status: OrderLineItemStatusEnum;
17
19
  constructor(data: Partial<IkasOrderLineItem>);
20
+ get priceWithQuantity(): number;
21
+ get finalPriceWithQuantity(): number;
18
22
  get tax(): number;
23
+ get refundQuantity(): number | null | undefined;
24
+ set refundQuantity(value: number | null | undefined);
25
+ }
26
+ export declare enum OrderLineItemStatusEnum {
27
+ FULFILLED = "FULFILLED",
28
+ UNFULFILLED = "UNFULFILLED",
29
+ DELIVERED = "DELIVERED",
30
+ CANCELLED = "CANCELLED",
31
+ CANCEL_REQUESTED = "CANCEL_REQUESTED",
32
+ CANCEL_REJECTED = "CANCEL_REJECTED",
33
+ REFUND_REQUESTED = "REFUND_REQUESTED",
34
+ REFUND_REQUEST_ACCEPTED = "REFUND_REQUEST_ACCEPTED",
35
+ REFUNDED = "REFUNDED",
36
+ REFUND_REJECTED = "REFUND_REJECTED"
19
37
  }
@@ -0,0 +1,6 @@
1
+ import { IkasOrderRefundOrderLineInput } from "./refund-line-item/index";
2
+ export declare class IkasRefund {
3
+ orderId: string;
4
+ orderLineItems: IkasOrderRefundOrderLineInput[];
5
+ constructor(data: Partial<IkasRefund>);
6
+ }
@@ -0,0 +1,5 @@
1
+ export declare class IkasOrderRefundOrderLineInput {
2
+ quantity: number;
3
+ orderLineItemId: string;
4
+ constructor(data: Partial<IkasOrderRefundOrderLineInput>);
5
+ }
@@ -1,14 +1,30 @@
1
- export declare type IkasPaymentGateway = {
1
+ import { IkasOrderShippingLine } from "../order/shipping-line/index";
2
+ export declare class IkasPaymentGateway {
2
3
  paymentMethods: IkasPaymentMethod[];
3
4
  paymentMethodType: IkasPaymentMethodType;
4
5
  id: string | null;
5
6
  name: string;
6
7
  testMode: boolean | null;
7
- };
8
+ description: string | null;
9
+ additionalPrices: IkasPaymentGatewayAdditionalPrice[] | null;
10
+ constructor(data: Partial<IkasPaymentGateway>);
11
+ getCalculatedAdditionalPrices(totalFinalPrice: number, shippingLines: IkasOrderShippingLine[] | null): {
12
+ name: string;
13
+ amount: number;
14
+ type: IkasPaymentMethodAdditionalPriceType;
15
+ }[] | undefined;
16
+ }
8
17
  export declare type IkasPaymentMethod = {
9
18
  name: string;
10
19
  logoUrl: string | null;
11
20
  };
21
+ export declare class IkasPaymentGatewayAdditionalPrice {
22
+ amount: number;
23
+ amountType: IkasPaymentGatewayAdditionalPriceAmountType;
24
+ name: string;
25
+ type: IkasPaymentMethodAdditionalPriceType;
26
+ constructor(data: Partial<IkasPaymentGatewayAdditionalPrice>);
27
+ }
12
28
  export declare enum IkasPaymentMethodType {
13
29
  BUY_ONLINE_PAY_AT_STORE = "BUY_ONLINE_PAY_AT_STORE",
14
30
  CASH = "CASH",
@@ -18,3 +34,11 @@ export declare enum IkasPaymentMethodType {
18
34
  MONEY_ORDER = "MONEY_ORDER",
19
35
  OTHER = "OTHER"
20
36
  }
37
+ export declare enum IkasPaymentMethodAdditionalPriceType {
38
+ DECREMENT = "DECREMENT",
39
+ INCREMENT = "INCREMENT"
40
+ }
41
+ export declare enum IkasPaymentGatewayAdditionalPriceAmountType {
42
+ AMOUNT = "AMOUNT",
43
+ RATIO = "RATIO"
44
+ }
@@ -1,6 +1,20 @@
1
+ import { IkasProductAttribute } from "../../product-attribute/index";
2
+ import IkasProductAttributeOption from "../../product-attribute/product-attribute-option/index";
1
3
  export declare class IkasProductAttributeValue {
2
- value: string | null;
4
+ value: any;
3
5
  productAttributeId: string | null;
4
6
  productAttributeOptionId: string | null;
7
+ productAttribute?: IkasProductAttribute | null;
8
+ productAttributeOption?: IkasProductAttributeOption | null;
5
9
  constructor(data: Partial<IkasProductAttributeValue>);
10
+ get tableValue(): IkasAttributeTableCellValue[] | undefined;
6
11
  }
12
+ export declare type IkasAttributeTableCellValue = {
13
+ colId: string;
14
+ rowId: string;
15
+ value: string | null;
16
+ };
17
+ export declare type IkasProductAttributeMap = {
18
+ attribute: IkasProductAttribute;
19
+ values: IkasProductAttributeValue[];
20
+ };
@@ -4,16 +4,17 @@ import { IkasProductAttributeValue } from "./attribute-value/index";
4
4
  import { IkasProductVariantType } from "./variant-type/index";
5
5
  import { IkasBrand } from "../brand/index";
6
6
  import { IkasHTMLMetaData } from "../html-meta-data/index";
7
+ import { IkasProductTag } from "../product-tag/index";
7
8
  export declare class IkasProduct {
8
9
  id: string;
9
10
  name: string;
10
11
  type: IkasProductType;
11
12
  description: string;
12
13
  shortDescription: string;
13
- taxValue: number | null;
14
14
  metaData?: IkasHTMLMetaData;
15
15
  brand: IkasBrand | null;
16
16
  categories: IkasCategory[];
17
+ tags: IkasProductTag[] | null;
17
18
  variants: IkasProductVariant[];
18
19
  attributes: IkasProductAttributeValue[];
19
20
  variantTypes: IkasProductVariantType[];
@@ -11,6 +11,7 @@ export declare class IkasProductVariant {
11
11
  attributes: IkasProductAttributeValue[];
12
12
  price: IkasProductPrice;
13
13
  stock: number;
14
+ isActive: boolean;
14
15
  constructor(data?: Partial<IkasProductVariant>);
15
16
  get mainImage(): IkasImage | undefined;
16
17
  }
@@ -5,4 +5,6 @@ export declare class IkasProductPrice {
5
5
  constructor(data?: Partial<IkasProductPrice>);
6
6
  get finalPrice(): number;
7
7
  get hasDiscount(): boolean;
8
+ get discountAmount(): number;
9
+ get discountPercentage(): string | 0;
8
10
  }
@@ -1,9 +1,11 @@
1
1
  import IkasProductAttributeOption from "./product-attribute-option/index";
2
+ import { IkasProductAttributeTableTemplate } from "./product-attribute-table-template/index";
2
3
  export declare class IkasProductAttribute {
3
4
  id: string;
4
5
  name: string;
5
6
  type: IkasProductAttributeType;
6
- options: IkasProductAttributeOption[] | null;
7
+ options?: IkasProductAttributeOption[] | null;
8
+ tableTemplate?: IkasProductAttributeTableTemplate | null;
7
9
  constructor(data: Partial<IkasProductAttribute>);
8
10
  }
9
11
  export declare enum IkasProductAttributeType {
@@ -13,5 +15,6 @@ export declare enum IkasProductAttributeType {
13
15
  BOOLEAN = "BOOLEAN",
14
16
  NUMERIC = "NUMERIC",
15
17
  DATETIME = "DATETIME",
16
- HTML = "HTML"
18
+ HTML = "HTML",
19
+ TABLE = "TABLE"
17
20
  }
@@ -0,0 +1,5 @@
1
+ export declare class IkasProductAttributeTableCell {
2
+ id: string;
3
+ name: string | null;
4
+ constructor(data?: Partial<IkasProductAttributeTableCell>);
5
+ }
@@ -0,0 +1,6 @@
1
+ import { IkasProductAttributeTableCell } from "../product-attribute-table-cell/index";
2
+ export declare class IkasProductAttributeTableTemplate {
3
+ columns: IkasProductAttributeTableCell[] | null;
4
+ rows: IkasProductAttributeTableCell[] | null;
5
+ constructor(data?: Partial<IkasProductAttributeTableTemplate>);
6
+ }
@@ -0,0 +1,102 @@
1
+ import { SearchInputFilterListInput } from "../../../__generated__/global-types";
2
+ import { IkasImage } from "../image/index";
3
+ import { IkasProductList } from "../../ui/index";
4
+ export declare class IkasProductFilter {
5
+ id: string;
6
+ key: string;
7
+ name: string;
8
+ order: number;
9
+ type: IkasProductFilterType;
10
+ displayType: IkasProductFilterDisplayType;
11
+ isMultiSelect: boolean;
12
+ values?: IkasApplicableProductFilterValue[] | null;
13
+ customValues?: string[] | null;
14
+ settings?: IkasProductFilterSettings | null;
15
+ private _numberRange?;
16
+ numberRangeLimit?: RangeValue | null;
17
+ numberRangeListOptions?: NumberRangeListOption[] | null;
18
+ private productList?;
19
+ constructor(data?: Partial<IkasProductFilter>, productList?: IkasProductList | undefined | null);
20
+ get isCustomValueFilter(): boolean;
21
+ get valueList(): string[];
22
+ get keyList(): string[];
23
+ get displayedValues(): IkasApplicableProductFilterValue[];
24
+ get numberRange(): RangeValue | null | undefined;
25
+ onFilterValueClick(filterValue: IkasApplicableProductFilterValue): void;
26
+ onNumberRangeClick(option: NumberRangeListOption): void;
27
+ onNumberRangeChange(numberRange: RangeValue | null): void;
28
+ clear(): void;
29
+ toInput(): SearchInputFilterListInput;
30
+ toJSON(): this;
31
+ applyQueryParam(value: string): void;
32
+ private rangeToId;
33
+ }
34
+ export declare class IkasApplicableProductFilterValue {
35
+ id: string;
36
+ key: string;
37
+ name: string;
38
+ colorCode?: string | null;
39
+ thumbnailImageId?: string | null;
40
+ thumbnailImage?: IkasImage | null;
41
+ resultCount?: number | null;
42
+ private _isSelected?;
43
+ constructor(data?: Partial<IkasApplicableProductFilterValue>);
44
+ get isSelected(): boolean | undefined;
45
+ toJSON(): this & {
46
+ isSelected: boolean | undefined;
47
+ };
48
+ }
49
+ export declare class IkasProductFilterValue {
50
+ id: string;
51
+ type: IkasProductFilterType;
52
+ valueList: string[];
53
+ constructor(data: IkasProductFilterValue);
54
+ }
55
+ export declare class IkasProductFilterSettings {
56
+ useAndFilter?: boolean | null;
57
+ showCollapsedOnDesktop: boolean;
58
+ showCollapsedOnMobile: boolean;
59
+ sortType: IkasProductFilterSortType;
60
+ constructor(data: Partial<IkasProductFilterSettings>);
61
+ }
62
+ export declare enum IkasProductFilterType {
63
+ ATTRIBUTE = "ATTRIBUTE",
64
+ BRAND = "BRAND",
65
+ DISCOUNT_RATIO = "DISCOUNT_RATIO",
66
+ PRICE = "PRICE",
67
+ STOCK_STATUS = "STOCK_STATUS",
68
+ TAG = "TAG",
69
+ VARIANT_TYPE = "VARIANT_TYPE"
70
+ }
71
+ export declare enum IkasProductFilterDisplayType {
72
+ BOX = "BOX",
73
+ DATE_RANGE = "DATE_RANGE",
74
+ LIST = "LIST",
75
+ NUMBER_RANGE_LIST = "NUMBER_RANGE_LIST",
76
+ NUMBER_RANGE = "NUMBER_RANGE",
77
+ SWATCH = "SWATCH"
78
+ }
79
+ export declare enum IkasProductFilterSortType {
80
+ ALPHABETICAL_ASC = "ALPHABETICAL_ASC",
81
+ ALPHABETICAL_DESC = "ALPHABETICAL_DESC",
82
+ PRODUCT_COUNT_ASC = "PRODUCT_COUNT_ASC",
83
+ PRODUCT_COUNT_DESC = "PRODUCT_COUNT_DESC"
84
+ }
85
+ export declare class RangeValue {
86
+ from: number;
87
+ to: number | undefined | null;
88
+ constructor(data: Partial<NumberRangeListOption>);
89
+ }
90
+ declare class NumberRangeListOption {
91
+ from: number;
92
+ to: number | undefined | null;
93
+ key: string;
94
+ private _isSelected;
95
+ constructor(data: Partial<NumberRangeListOption>);
96
+ get isSelected(): boolean;
97
+ toJSON(): this & {
98
+ isSelected: boolean;
99
+ };
100
+ }
101
+ export declare function parseRangeStr(rangeStr: string): RangeValue;
102
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare class IkasProductTag {
2
+ id: string;
3
+ name: string;
4
+ constructor(data: Partial<IkasProductTag>);
5
+ }
@@ -0,0 +1,18 @@
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
+ }