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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/build/__generated__/global-types.d.ts +214 -8
  2. package/build/analytics/analytics.d.ts +22 -0
  3. package/build/analytics/facebookPixel.d.ts +15 -0
  4. package/build/analytics/googleTagManager.d.ts +201 -0
  5. package/build/analytics/head/index.d.ts +7 -0
  6. package/build/analytics/index.d.ts +2 -0
  7. package/build/api/blog/__generated__/getBlog.d.ts +83 -0
  8. package/build/api/blog/__generated__/listBlog.d.ts +86 -0
  9. package/build/api/blog/__generated__/listBlogCategory.d.ts +38 -0
  10. package/build/api/blog/__generated__/listBlogMetaData.d.ts +29 -0
  11. package/build/api/blog/index.d.ts +32 -0
  12. package/build/api/brand/__generated__/listProductBrand.d.ts +3 -2
  13. package/build/api/brand/index.d.ts +1 -0
  14. package/build/api/cart/__generated__/getCart.d.ts +7 -3
  15. package/build/api/cart/__generated__/saveItemToCart.d.ts +6 -3
  16. package/build/api/category/__generated__/listCategory.d.ts +4 -2
  17. package/build/api/category/__generated__/listCategoryPaths.d.ts +23 -0
  18. package/build/api/category/index.d.ts +3 -0
  19. package/build/api/checkout/__generated__/checkStocks.d.ts +3 -3
  20. package/build/api/checkout/__generated__/getCheckoutByCartId.d.ts +1 -1
  21. package/build/api/checkout/__generated__/getCheckoutById.d.ts +5 -4
  22. package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +26 -0
  23. package/build/api/checkout/__generated__/listPaymentGateway.d.ts +14 -2
  24. package/build/api/checkout/__generated__/saveCheckout.d.ts +1 -1
  25. package/build/api/checkout/index.d.ts +11 -3
  26. package/build/api/city/__generated__/listCity.d.ts +1 -1
  27. package/build/api/contact-form/__generated__/sendContactFormToMerchant.d.ts +9 -0
  28. package/build/api/contact-form/index.d.ts +10 -0
  29. package/build/api/country/__generated__/getAvailableShippingCountries.d.ts +3 -0
  30. package/build/api/country/__generated__/getMyCountry.d.ts +3 -0
  31. package/build/api/country/__generated__/listCountry.d.ts +8 -1
  32. package/build/api/country/index.d.ts +3 -2
  33. package/build/api/customer/__generated__/createCustomerEmailSubscription.d.ts +11 -0
  34. package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +215 -0
  35. package/build/api/customer/__generated__/customerLogin.d.ts +5 -3
  36. package/build/api/customer/__generated__/getCustomerOrders.d.ts +3 -4
  37. package/build/api/customer/__generated__/getLastViewedProducts.d.ts +15 -0
  38. package/build/api/customer/__generated__/getMyCustomer.d.ts +3 -2
  39. package/build/api/customer/__generated__/listOrderTransactions.d.ts +1 -1
  40. package/build/api/customer/__generated__/registerCustomer.d.ts +2 -2
  41. package/build/api/customer/__generated__/saveLastViewedProducts.d.ts +11 -0
  42. package/build/api/customer/__generated__/saveMyCustomer.d.ts +3 -2
  43. package/build/api/customer/index.d.ts +15 -0
  44. package/build/api/district/__generated__/listDistrict.d.ts +1 -1
  45. package/build/api/favorite-product/__generated__/isFavoriteProduct.d.ts +6 -0
  46. package/build/api/favorite-product/__generated__/listFavoriteProducts.d.ts +12 -0
  47. package/build/api/favorite-product/__generated__/saveFavoriteProduct.d.ts +7 -0
  48. package/build/api/favorite-product/index.d.ts +6 -0
  49. package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +2 -1
  50. package/build/api/html-meta-data/index.d.ts +1 -1
  51. package/build/api/index.d.ts +4 -3
  52. package/build/api/merchant/__generated__/listMerchantSettings.d.ts +1 -1
  53. package/build/api/product-attribute/__generated__/listProductAttribute.d.ts +2 -2
  54. package/build/api/product-search/__generated__/getProductFilterData.d.ts +50 -0
  55. package/build/api/product-search/__generated__/searchProducts.d.ts +26 -0
  56. package/build/api/product-search/index.d.ts +20 -0
  57. package/build/api/state/__generated__/listState.d.ts +1 -1
  58. package/build/api/stock-location/__generated__/listStockLocation.d.ts +1 -1
  59. package/build/api/storefront/__generated__/getStorefront.d.ts +41 -12
  60. package/build/api/storefront/index.d.ts +1 -1
  61. package/build/api/variant-type/__generated__/listVariantType.d.ts +2 -2
  62. package/build/components/checkout/components/address-form/index.d.ts +3 -0
  63. package/build/components/checkout/components/address-form/model.d.ts +13 -2
  64. package/build/components/checkout/components/button/index.d.ts +4 -1
  65. package/build/components/checkout/components/cart-summary/cross.d.ts +6 -0
  66. package/build/components/checkout/components/cart-summary/tag.d.ts +6 -0
  67. package/build/components/checkout/components/checkbox/index.d.ts +2 -1
  68. package/build/components/checkout/components/error-container/customer-login-required-error/index.d.ts +6 -0
  69. package/build/components/checkout/components/error-container/payment-error/index.d.ts +2 -0
  70. package/build/components/checkout/components/form-item/model.d.ts +11 -2
  71. package/build/components/checkout/index.d.ts +5 -0
  72. package/build/components/checkout/model.d.ts +23 -10
  73. package/build/components/hoc/ThemeComponent.d.ts +2 -2
  74. package/build/components/image/index.d.ts +35 -0
  75. package/build/components/index.d.ts +1 -2
  76. package/build/components/page/head.d.ts +5 -0
  77. package/build/components/page/index.d.ts +6 -1
  78. package/build/components/page-editor/model.d.ts +6 -2
  79. package/build/index.d.ts +1 -0
  80. package/build/index.es.js +17677 -9251
  81. package/build/index.js +18351 -9889
  82. package/build/models/data/blog/index.d.ts +67 -0
  83. package/build/models/data/brand/index.d.ts +1 -1
  84. package/build/models/data/cart/index.d.ts +9 -0
  85. package/build/models/data/category/index.d.ts +22 -1
  86. package/build/models/data/checkout/index.d.ts +5 -0
  87. package/build/models/data/checkout-settings/index.d.ts +18 -0
  88. package/build/models/data/contact-form/index.d.ts +7 -0
  89. package/build/models/data/country/index.d.ts +2 -0
  90. package/build/models/data/customer/index.d.ts +7 -0
  91. package/build/models/data/favorite-product/index.d.ts +6 -0
  92. package/build/models/data/image/index.d.ts +1 -0
  93. package/build/models/data/index.d.ts +5 -1
  94. package/build/models/data/order/address/index.d.ts +6 -0
  95. package/build/models/data/order/index.d.ts +19 -1
  96. package/build/models/data/order/line-item/index.d.ts +18 -0
  97. package/build/models/data/order/refund/index.d.ts +6 -0
  98. package/build/models/data/order/refund/refund-line-item/index.d.ts +5 -0
  99. package/build/models/data/payment-gateway/index.d.ts +26 -2
  100. package/build/models/data/product/attribute-value/index.d.ts +15 -1
  101. package/build/models/data/product/index.d.ts +2 -1
  102. package/build/models/data/product/variant/index.d.ts +1 -0
  103. package/build/models/data/product/variant/price/index.d.ts +2 -0
  104. package/build/models/data/product-attribute/index.d.ts +5 -2
  105. package/build/models/data/product-attribute/product-attribute-table-cell/index.d.ts +5 -0
  106. package/build/models/data/product-attribute/product-attribute-table-template/index.d.ts +6 -0
  107. package/build/models/data/product-filter/index.d.ts +102 -0
  108. package/build/models/data/product-tag/index.d.ts +5 -0
  109. package/build/models/data/sales-channel/index.d.ts +18 -0
  110. package/build/models/data/simple-product/index.d.ts +135 -0
  111. package/build/models/data/storefront/{storefront-domain → domain}/index.d.ts +1 -0
  112. package/build/models/data/storefront/index.d.ts +17 -6
  113. package/build/models/data/storefront/localization/index.d.ts +7 -0
  114. package/build/models/data/storefront/routing/index.d.ts +9 -0
  115. package/build/models/data/storefront/theme/index.d.ts +13 -0
  116. package/build/models/data/storefront/theme-localization/index.d.ts +12 -0
  117. package/build/models/data/variant-type/variant-value/index.d.ts +1 -1
  118. package/build/models/theme/component/prop/index.d.ts +17 -1
  119. package/build/models/theme/custom-data/index.d.ts +24 -0
  120. package/build/models/theme/index.d.ts +4 -0
  121. package/build/models/theme/page/component/prop-value/attribute-list.d.ts +7 -0
  122. package/build/models/theme/page/component/prop-value/attribute.d.ts +7 -0
  123. package/build/models/theme/page/component/prop-value/blog-list.d.ts +9 -0
  124. package/build/models/theme/page/component/prop-value/blog.d.ts +5 -0
  125. package/build/models/theme/page/component/prop-value/product-list.d.ts +2 -0
  126. package/build/models/theme/page/index.d.ts +14 -1
  127. package/build/models/theme/settings/index.d.ts +7 -0
  128. package/build/models/theme/settings/prop/color/index.d.ts +7 -0
  129. package/build/models/theme/settings/prop/favicon/index.d.ts +4 -0
  130. package/build/models/theme/theme.d.ts +4 -0
  131. package/build/models/ui/blog-list/index.d.ts +56 -0
  132. package/build/models/ui/brand-list/index.d.ts +3 -0
  133. package/build/models/ui/category-list/index.d.ts +3 -0
  134. package/build/models/ui/component-renderer/index.d.ts +7 -0
  135. package/build/models/ui/index.d.ts +12 -2
  136. package/build/models/ui/product-detail/index.d.ts +14 -3
  137. package/build/models/ui/product-list/index.d.ts +62 -14
  138. package/build/models/ui/validator/form/account-info.d.ts +40 -0
  139. package/build/models/ui/validator/form/address.d.ts +75 -0
  140. package/build/models/ui/validator/form/contact-form.d.ts +45 -0
  141. package/build/models/ui/validator/form/forgot-password.d.ts +29 -0
  142. package/build/models/ui/validator/form/login.d.ts +35 -0
  143. package/build/models/ui/validator/form/recover-password.d.ts +36 -0
  144. package/build/models/ui/validator/form/register.d.ts +45 -0
  145. package/build/models/ui/validator/index.d.ts +27 -0
  146. package/build/models/ui/validator/rules/index.d.ts +87 -0
  147. package/build/pages/404.d.ts +13 -0
  148. package/build/pages/[slug]/index.d.ts +9 -3
  149. package/build/pages/account/addresses.d.ts +2 -0
  150. package/build/pages/account/favorite-products.d.ts +12 -0
  151. package/build/pages/account/forgot-password.d.ts +3 -0
  152. package/build/pages/account/index.d.ts +2 -0
  153. package/build/pages/account/login.d.ts +3 -0
  154. package/build/pages/account/orders/[id].d.ts +2 -0
  155. package/build/pages/account/orders/index.d.ts +2 -0
  156. package/build/pages/account/recover-password.d.ts +3 -0
  157. package/build/pages/account/register.d.ts +3 -0
  158. package/build/pages/blog/[slug].d.ts +18 -0
  159. package/build/pages/blog/index.d.ts +13 -0
  160. package/build/pages/cart.d.ts +12 -0
  161. package/build/pages/checkout/[id].d.ts +5 -0
  162. package/build/pages/home.d.ts +3 -0
  163. package/build/pages/index.d.ts +8 -2
  164. package/build/pages/{[slug]/[secondSlug].d.ts → pages/[slug].d.ts} +2 -0
  165. package/build/pages/search.d.ts +13 -0
  166. package/build/store/base.d.ts +17 -0
  167. package/build/store/customer.d.ts +31 -1
  168. package/build/storefront/index.d.ts +29 -3
  169. package/build/utils/helper.d.ts +1 -0
  170. package/build/utils/index.d.ts +1 -0
  171. package/build/utils/providers/page-data.d.ts +62 -5
  172. package/build/utils/providers/placeholders.d.ts +5 -0
  173. package/build/utils/providers/prop-value/attribute-list.d.ts +9 -0
  174. package/build/utils/providers/prop-value/attribute.d.ts +9 -0
  175. package/build/utils/providers/prop-value/blog-list.d.ts +9 -0
  176. package/build/utils/providers/prop-value/blog.d.ts +8 -0
  177. package/build/utils/providers/prop-value/boolean.d.ts +1 -1
  178. package/build/utils/providers/prop-value/category.d.ts +2 -2
  179. package/build/utils/providers/prop-value/color.d.ts +6 -0
  180. package/build/utils/providers/prop-value/custom.d.ts +40 -0
  181. package/build/utils/providers/prop-value/product-detail.d.ts +2 -2
  182. package/build/utils/providers/prop-value/product-list.d.ts +1 -3
  183. package/build/utils/providers/prop-value/rich-text.d.ts +6 -0
  184. package/build/utils/settings.d.ts +168 -0
  185. package/package.json +3 -3
  186. package/build/api/product/__generated__/listProduct.d.ts +0 -90
  187. package/build/api/product/index.d.ts +0 -15
  188. package/build/api/product-stock-location/__generated__/listProductStockLocation.d.ts +0 -13
  189. package/build/api/product-stock-location/index.d.ts +0 -4
  190. package/build/api/theme/index.d.ts +0 -4
  191. package/build/components/gtm/functions.d.ts +0 -164
  192. package/build/components/gtm/index.d.ts +0 -7
  193. package/build/models/data/storefront/stockfront-location/index.d.ts +0 -5
  194. package/build/models/data/storefront/stockfront-route/index.d.ts +0 -5
  195. package/build/models/data/storefront/storefront-region/index.d.ts +0 -18
  196. package/build/models/ui/product-list/filter.d.ts +0 -18
@@ -0,0 +1,168 @@
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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.14",
3
+ "version": "0.0.160.alpha-1",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",
@@ -18,7 +18,7 @@
18
18
  "peerDependencies": {
19
19
  "mobx": "^6.1.3",
20
20
  "mobx-react-lite": "^3.1.5",
21
- "next": "10.0.3",
21
+ "next": "10.0.6",
22
22
  "react": "17.0.1",
23
23
  "react-dom": "17.0.1"
24
24
  },
@@ -68,7 +68,7 @@
68
68
  "jest": "^26.4.2",
69
69
  "mobx": "^6.1.3",
70
70
  "mobx-react-lite": "^3.1.5",
71
- "next": "10.0.3",
71
+ "next": "10.0.6",
72
72
  "node-sass": "^5.0.0",
73
73
  "postcss": "^8.2.4",
74
74
  "prettier": "^2.2.1",
@@ -1,90 +0,0 @@
1
- import { StringFilterInput, PaginationInput, ProductTypeEnum, HTMLMetaDataTargetTypeEnum } from "../../../__generated__/global-types";
2
- export interface listProduct_listProduct_data_metaData {
3
- __typename: "HTMLMetaData";
4
- slug: string;
5
- pageTitle: string | null;
6
- description: string | null;
7
- targetId: string | null;
8
- targetType: HTMLMetaDataTargetTypeEnum | null;
9
- redirectTo: string | null;
10
- }
11
- export interface listProduct_listProduct_data_productVariantTypes {
12
- __typename: "ProductVariantType";
13
- order: number;
14
- variantTypeId: string;
15
- variantValueIds: string[] | null;
16
- }
17
- export interface listProduct_listProduct_data_variants_variantValueIds {
18
- __typename: "VariantValueRelation";
19
- variantTypeId: string;
20
- variantValueId: string;
21
- }
22
- export interface listProduct_listProduct_data_variants_attributes {
23
- __typename: "ProductAttributeValue";
24
- value: string | null;
25
- productAttributeId: string | null;
26
- productAttributeOptionId: string | null;
27
- }
28
- export interface listProduct_listProduct_data_variants_images {
29
- __typename: "ProductImage";
30
- order: number;
31
- isMain: boolean;
32
- imageId: string | null;
33
- }
34
- export interface listProduct_listProduct_data_variants_prices {
35
- __typename: "ProductPrice";
36
- sellPrice: number;
37
- discountPrice: number | null;
38
- buyPrice: number | null;
39
- currency: string | null;
40
- }
41
- export interface listProduct_listProduct_data_variants {
42
- __typename: "Variant";
43
- id: string | null;
44
- createdAt: any | null;
45
- updatedAt: any | null;
46
- deleted: boolean | null;
47
- sku: string | null;
48
- barcodeList: string[] | null;
49
- isActive: boolean | null;
50
- variantValueIds: listProduct_listProduct_data_variants_variantValueIds[] | null;
51
- attributes: listProduct_listProduct_data_variants_attributes[] | null;
52
- images: listProduct_listProduct_data_variants_images[] | null;
53
- prices: listProduct_listProduct_data_variants_prices[];
54
- }
55
- export interface listProduct_listProduct_data_attributes {
56
- __typename: "ProductAttributeValue";
57
- value: string | null;
58
- productAttributeId: string | null;
59
- productAttributeOptionId: string | null;
60
- }
61
- export interface listProduct_listProduct_data {
62
- __typename: "Product";
63
- id: string | null;
64
- createdAt: any | null;
65
- updatedAt: any | null;
66
- deleted: boolean | null;
67
- name: string;
68
- type: ProductTypeEnum;
69
- shortDescription: string | null;
70
- description: string | null;
71
- taxValue: number | null;
72
- metaData: listProduct_listProduct_data_metaData | null;
73
- categoryIds: string[] | null;
74
- productVariantTypes: listProduct_listProduct_data_productVariantTypes[] | null;
75
- variants: listProduct_listProduct_data_variants[];
76
- attributes: listProduct_listProduct_data_attributes[] | null;
77
- }
78
- export interface listProduct_listProduct {
79
- __typename: "ProductPaginationResponse";
80
- data: listProduct_listProduct_data[];
81
- count: number;
82
- }
83
- export interface listProduct {
84
- listProduct: listProduct_listProduct;
85
- }
86
- export interface listProductVariables {
87
- id?: StringFilterInput | null;
88
- paginationInput?: PaginationInput | null;
89
- search?: string | null;
90
- }
@@ -1,15 +0,0 @@
1
- import { IkasProduct } from "../../models/index";
2
- export declare class IkasProductAPI {
3
- static listProducts(params?: ListProductsParams): Promise<ListProductsResponse>;
4
- }
5
- declare type ListProductsParams = {
6
- idList?: string[];
7
- page?: number;
8
- limit?: number;
9
- search?: string;
10
- };
11
- declare type ListProductsResponse = {
12
- products: IkasProduct[];
13
- count: number;
14
- };
15
- export {};
@@ -1,13 +0,0 @@
1
- export interface listProductStockLocation_listProductStockLocation {
2
- __typename: "ProductStockLocation";
3
- variantId: string;
4
- stockLocationId: string;
5
- stockCount: number;
6
- }
7
- export interface listProductStockLocation {
8
- listProductStockLocation: listProductStockLocation_listProductStockLocation[];
9
- }
10
- export interface listProductStockLocationVariables {
11
- stockLocationIdList: string[];
12
- variantIdList: string[];
13
- }
@@ -1,4 +0,0 @@
1
- import * as ListProductStockLocationTypes from "./__generated__/listProductStockLocation";
2
- export declare class IkasProductStockLocationAPI {
3
- static listProductStockLocation(stockLocationIdList: string[], variantIdList: string[]): Promise<ListProductStockLocationTypes.listProductStockLocation_listProductStockLocation[] | undefined>;
4
- }
@@ -1,4 +0,0 @@
1
- import { IkasTheme } from "../../models/index";
2
- export declare class IkasThemeAPI {
3
- static fetchTheme(): Promise<IkasTheme>;
4
- }
@@ -1,164 +0,0 @@
1
- import { IkasProductDetail, IkasOrderLineItem, IkasCheckout } from "../../models/index";
2
- import { CheckoutStep } from "../checkout/model";
3
- export declare function GTMPageView(url: string): {
4
- event: string;
5
- page: string;
6
- } | undefined;
7
- export declare function GTMProductView(productDetail: IkasProductDetail): {
8
- event: string;
9
- ecommerce: {
10
- items: {
11
- item_name: string;
12
- item_id: string;
13
- price: number;
14
- item_brand: string;
15
- item_category: string;
16
- item_category_2: string;
17
- item_category_3: string;
18
- item_category_4: string;
19
- item_variant: string;
20
- item_list_name: string;
21
- item_list_id: string;
22
- index: number;
23
- quantity: number;
24
- }[];
25
- };
26
- } | undefined;
27
- export declare function GTMAddToCart(item: IkasProductDetail | IkasOrderLineItem, quantity: number): {
28
- event: string;
29
- ecommerce: {
30
- items: ({
31
- item_name: string;
32
- item_id: string;
33
- price: number;
34
- item_brand: string;
35
- item_category: string;
36
- item_category_2: string;
37
- item_category_3: string;
38
- item_category_4: string;
39
- item_variant: string;
40
- item_list_name: string;
41
- item_list_id: string;
42
- index: number;
43
- quantity: number;
44
- } | {
45
- item_name: string;
46
- item_id: string;
47
- price: string;
48
- item_brand: string;
49
- item_category: string;
50
- item_category_2: string;
51
- item_category_3: string;
52
- item_category_4: string;
53
- item_variant: string;
54
- item_list_name: string;
55
- item_list_id: string;
56
- index: number;
57
- quantity: number;
58
- })[];
59
- };
60
- } | undefined;
61
- export declare function GTMRemoveFromCart(item: IkasProductDetail | IkasOrderLineItem, quantity: number): {
62
- event: string;
63
- ecommerce: {
64
- items: ({
65
- item_name: string;
66
- item_id: string;
67
- price: number;
68
- item_brand: string;
69
- item_category: string;
70
- item_category_2: string;
71
- item_category_3: string;
72
- item_category_4: string;
73
- item_variant: string;
74
- item_list_name: string;
75
- item_list_id: string;
76
- index: number;
77
- quantity: number;
78
- } | {
79
- item_name: string;
80
- item_id: string;
81
- price: string;
82
- item_brand: string;
83
- item_category: string;
84
- item_category_2: string;
85
- item_category_3: string;
86
- item_category_4: string;
87
- item_variant: string;
88
- item_list_name: string;
89
- item_list_id: string;
90
- index: number;
91
- quantity: number;
92
- })[];
93
- };
94
- } | undefined;
95
- export declare function GTMBeginCheckout(checkout: IkasCheckout): {
96
- event: string;
97
- ecommerce: {
98
- items: {
99
- item_name: string;
100
- item_id: string;
101
- price: string;
102
- item_brand: string;
103
- item_category: string;
104
- item_category_2: string;
105
- item_category_3: string;
106
- item_category_4: string;
107
- item_variant: string;
108
- item_list_name: string;
109
- item_list_id: string;
110
- index: number;
111
- quantity: number;
112
- }[] | undefined;
113
- };
114
- } | undefined;
115
- export declare function GTMPurchase(checkout: IkasCheckout, orderId: string): {
116
- event: string;
117
- ecommerce: {
118
- purchase: {
119
- transaction_id: string;
120
- affiliation: string;
121
- value: string;
122
- tax: string;
123
- shipping: string;
124
- currency: string | undefined;
125
- coupon: string | null | undefined;
126
- items: {
127
- item_name: string;
128
- item_id: string;
129
- price: string;
130
- item_brand: string;
131
- item_category: string;
132
- item_category_2: string;
133
- item_category_3: string;
134
- item_category_4: string;
135
- item_variant: string;
136
- item_list_name: string;
137
- item_list_id: string;
138
- index: number;
139
- quantity: number;
140
- }[] | undefined;
141
- };
142
- };
143
- } | undefined;
144
- export declare function GTMCheckoutStep(checkout: IkasCheckout, step: CheckoutStep): {
145
- event: string;
146
- ecommerce: {
147
- items: {
148
- item_name: string;
149
- item_id: string;
150
- price: string;
151
- item_brand: string;
152
- item_category: string;
153
- item_category_2: string;
154
- item_category_3: string;
155
- item_category_4: string;
156
- item_variant: string;
157
- item_list_name: string;
158
- item_list_id: string;
159
- index: number;
160
- quantity: number;
161
- }[] | undefined;
162
- };
163
- } | undefined;
164
- export declare function GTMDisableHTML(): void;
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- declare type GTMHeadProps = {
3
- blockHTML?: boolean;
4
- };
5
- export declare const GTMHead: React.FC<GTMHeadProps>;
6
- export declare const GTMBody: React.FC;
7
- export {};
@@ -1,5 +0,0 @@
1
- export declare class IkasStorefrontLocation {
2
- countryId: string;
3
- stateId: string | null;
4
- constructor(data?: Partial<IkasStorefrontLocation>);
5
- }
@@ -1,5 +0,0 @@
1
- export declare class IkasStorefrontRoute {
2
- domainId: string;
3
- useSubPath: boolean;
4
- constructor(data?: Partial<IkasStorefrontRoute>);
5
- }
@@ -1,18 +0,0 @@
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
- }
@@ -1,18 +0,0 @@
1
- export declare class IkasProductListFilter {
2
- category?: string | null;
3
- brand?: string | null;
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 {};