@ikas/storefront 0.2.0-alpha.13 → 0.2.0-alpha.2

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 (41) hide show
  1. package/build/__generated__/global-types.d.ts +0 -22
  2. package/build/analytics/ikas.d.ts +11 -18
  3. package/build/api/checkout/__generated__/getCheckoutById.d.ts +0 -4
  4. package/build/api/checkout/__generated__/listPaymentGateway.d.ts +1 -3
  5. package/build/api/customer/__generated__/customerForgotPassword.d.ts +0 -1
  6. package/build/api/customer/__generated__/registerCustomer.d.ts +0 -1
  7. package/build/api/index.d.ts +0 -2
  8. package/build/components/checkout/components/address-form/model.d.ts +0 -8
  9. package/build/index.css +4 -9
  10. package/build/index.es.css +4 -9
  11. package/build/index.es.js +10173 -11150
  12. package/build/index.js +10404 -11387
  13. package/build/models/data/cart/index.d.ts +0 -1
  14. package/build/models/data/index.d.ts +0 -2
  15. package/build/models/data/order/address/index.d.ts +0 -2
  16. package/build/models/data/order/index.d.ts +2 -1
  17. package/build/models/data/order/line-item/index.d.ts +0 -1
  18. package/build/models/data/order-transaction/index.d.ts +0 -1
  19. package/build/models/data/payment-gateway/index.d.ts +0 -2
  20. package/build/models/data/product/index.d.ts +0 -1
  21. package/build/models/data/product/variant/index.d.ts +0 -7
  22. package/build/models/data/product/variant/price/index.d.ts +0 -1
  23. package/build/models/ui/index.d.ts +0 -2
  24. package/build/models/ui/product-detail/index.d.ts +1 -4
  25. package/build/providers/page-data-get.d.ts +0 -2
  26. package/build/providers/page-data-next.d.ts +2 -18
  27. package/build/store/customer.d.ts +0 -7
  28. package/build/storefront/index.d.ts +0 -6
  29. package/build/utils/currency.d.ts +0 -6
  30. package/package.json +1 -1
  31. package/build/api/back-in-stock-reminder/__generated__/listProductBackInStockRemind.d.ts +0 -24
  32. package/build/api/back-in-stock-reminder/__generated__/saveProductBackInStockRemind.d.ts +0 -19
  33. package/build/api/back-in-stock-reminder/index.d.ts +0 -23
  34. package/build/api/customer-review/__generated__/createCustomerReview.d.ts +0 -11
  35. package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +0 -25
  36. package/build/api/customer-review/index.d.ts +0 -24
  37. package/build/models/data/customer-review/index.d.ts +0 -23
  38. package/build/models/data/customer-review-settings/index.d.ts +0 -4
  39. package/build/models/data/product-back-in-stock-settings/index.d.ts +0 -3
  40. package/build/models/ui/customer-review-list/index.d.ts +0 -43
  41. package/build/models/ui/validator/form/customer-review.d.ts +0 -37
@@ -5,7 +5,6 @@ export declare class IkasCart {
5
5
  updatedAt: string;
6
6
  dueDate?: string | null;
7
7
  currencyCode: string;
8
- currencySymbol: string;
9
8
  customerId?: string | null;
10
9
  itemCount: number;
11
10
  items: IkasOrderLineItem[];
@@ -5,8 +5,6 @@ export * from "./checkout/index";
5
5
  export type { IkasCity } from "./city/index";
6
6
  export * from "./customer/address/index";
7
7
  export { IkasCustomer } from "./customer/index";
8
- export { IkasCustomerReview } from "./customer-review/index";
9
- export type { IkasCustomerReviewSettings } from "./customer-review-settings/index";
10
8
  export type { IkasCountry } from "./country/index";
11
9
  export type { IkasDistrict } from "./district/index";
12
10
  export { IkasHTMLMetaData, IkasHTMLMetaDataTargetType } from "./html-meta-data/index";
@@ -29,8 +29,6 @@ declare type IkasOrderAddressLocation = {
29
29
  id?: string;
30
30
  name?: string;
31
31
  code?: string;
32
- iso2?: string;
33
- iso3?: string;
34
32
  };
35
33
  export declare type IkasOrderAddressCountry = IkasOrderAddressLocation;
36
34
  export declare type IkasOrderAddressCity = IkasOrderAddressLocation;
@@ -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;
@@ -8,7 +9,6 @@ export declare class IkasOrder {
8
9
  totalPrice: number | null;
9
10
  totalFinalPrice: number | null;
10
11
  currencyCode: string;
11
- currencySymbol: string;
12
12
  orderedAt: number;
13
13
  cancelledAt: number | null;
14
14
  status: IkasOrderStatus;
@@ -25,6 +25,7 @@ export declare class IkasOrder {
25
25
  taxLines: IkasOrderTaxLine[] | null;
26
26
  orderPackages: IkasOrderPackage[] | null;
27
27
  currencyRates: IkasOrderCurrencyRate[] | null;
28
+ customerStore: IkasCustomerStore;
28
29
  private _refundSettings;
29
30
  constructor(data: IkasOrder);
30
31
  get refundableItems(): IkasOrderLineItem[];
@@ -7,7 +7,6 @@ export declare class IkasOrderLineItem {
7
7
  orderedAt: number;
8
8
  deleted: boolean;
9
9
  currencyCode: string;
10
- currencySymbol: string;
11
10
  discount?: IkasOrderLineDiscount | null;
12
11
  discountPrice?: number | null;
13
12
  finalPrice: number;
@@ -3,7 +3,6 @@ export declare class IkasOrderTransaction {
3
3
  checkoutId: string | null;
4
4
  createdAt: number | null;
5
5
  currencyCode: string | null;
6
- currencySymbol: string | null;
7
6
  customerId: string | null;
8
7
  error: IkasTransactionError | null;
9
8
  id: string | null;
@@ -11,8 +11,6 @@ export declare class IkasPaymentGateway {
11
11
  description: string | null;
12
12
  additionalPrices: IkasPaymentGatewayAdditionalPrice[] | null;
13
13
  translations: IkasPaymentGatewayTranslation[] | null;
14
- supportedCurrencies: string[];
15
- availableCountries: string[];
16
14
  constructor(data: Partial<IkasPaymentGateway>);
17
15
  getCalculatedAdditionalPrices(totalFinalPrice: number, shippingLines: IkasOrderShippingLine[] | null): {
18
16
  name: string;
@@ -23,7 +23,6 @@ export declare class IkasProduct {
23
23
  productOptionSet?: IkasProductOptionSet | null;
24
24
  constructor(data?: Partial<IkasProduct>);
25
25
  get hasVariant(): boolean;
26
- get hasStock(): boolean;
27
26
  get mainVariantType(): import("../index").IkasVariantType | undefined;
28
27
  get href(): string;
29
28
  }
@@ -12,13 +12,6 @@ export declare class IkasProductVariant {
12
12
  price: IkasProductPrice;
13
13
  stock: number;
14
14
  isActive: boolean;
15
- productId: string;
16
- private _backInStockReminderSaved;
17
15
  constructor(data?: Partial<IkasProductVariant>);
18
16
  get mainImage(): IkasImage | undefined;
19
- get hasStock(): boolean;
20
- get isBackInStockEnabled(): boolean;
21
- get isBackInStockCustomerLoginRequired(): boolean | null;
22
- get isBackInStockReminderSaved(): boolean;
23
- saveBackInStockReminder(email: string): Promise<boolean>;
24
17
  }
@@ -2,7 +2,6 @@ export declare class IkasProductPrice {
2
2
  sellPrice: number;
3
3
  discountPrice: number | null;
4
4
  currency: string;
5
- currencySymbol: string;
6
5
  constructor(data?: Partial<IkasProductPrice>);
7
6
  get finalPrice(): number;
8
7
  get hasDiscount(): boolean;
@@ -8,7 +8,6 @@ export { IkasProductDetail, IkasDisplayedVariantType, IkasDisplayedVariantValue,
8
8
  export { IkasProductList, IkasProductListType, IkasProductListSortType, } from "./product-list/index";
9
9
  export * from "./product-attribute-detail/index";
10
10
  export * from "./product-attribute-list/index";
11
- export * from "./customer-review-list/index";
12
11
  export { Validator, ValidationStatus } from "./validator/index";
13
12
  export * from "./validator/rules/index";
14
13
  export { LoginForm } from "./validator/form/login";
@@ -18,5 +17,4 @@ export { ContactForm } from "./validator/form/contact-form";
18
17
  export { ForgotPasswordForm } from "./validator/form/forgot-password";
19
18
  export { RecoverPasswordForm } from "./validator/form/recover-password";
20
19
  export { AccountInfoForm } from "./validator/form/account-info";
21
- export { CustomerReviewForm } from "./validator/form/customer-review";
22
20
  export * from "./component-renderer/index";
@@ -1,4 +1,4 @@
1
- import { IkasProduct, IkasVariantValue, IkasCustomerReviewList } from "../../index";
1
+ import { IkasProduct, IkasVariantValue } from "../../index";
2
2
  import { NextRouter } from "next/router";
3
3
  import { IkasProductVariant, IkasVariantType } from "../../data/index";
4
4
  export declare class IkasProductDetail {
@@ -11,9 +11,6 @@ export declare class IkasProductDetail {
11
11
  get href(): string;
12
12
  get hasStock(): boolean;
13
13
  get displayedVariantTypes(): IkasDisplayedVariantType[];
14
- get isCustomerReviewEnabled(): boolean;
15
- get isCustomerReviewLoginRequired(): boolean;
16
- getCustomerReviews(): Promise<IkasCustomerReviewList>;
17
14
  selectVariantValue(variantValue: IkasVariantValue): void;
18
15
  }
19
16
  export declare type IkasDisplayedVariantValue = {
@@ -35,8 +35,6 @@ export declare class IkasPageDataProvider {
35
35
  stockPreference: import("../models/theme/settings/index").IkasThemeStockPreference;
36
36
  storefrontJSScripts: string[];
37
37
  translations: Record<string, any>;
38
- customerReviewSettings: import("../models/index").IkasCustomerReviewSettings | null;
39
- productBackInStockSettings: any;
40
38
  };
41
39
  };
42
40
  };
@@ -1,17 +1,16 @@
1
1
  /// <reference types="node" />
2
2
  import { GetServerSidePropsContext, GetStaticPropsContext } from "next";
3
3
  import { ParsedUrlQuery } from "querystring";
4
- import { IkasTheme, IkasThemePageType, IkasCustomerReviewSettings } from "../models/index";
4
+ import { IkasTheme, IkasThemePageType } from "../models/index";
5
5
  import { IkasStorefront } from "../models/data/storefront/index";
6
6
  import { IkasSalesChannel } from "../models/data/sales-channel/index";
7
7
  import { IkasStorefrontRouting } from "../models/data/storefront/routing/index";
8
8
  import { IkasStorefrontThemeLocalization } from "../models/data/storefront/theme-localization/index";
9
9
  import { IkasThemeFavicon } from "../models/theme/settings/prop/favicon/index";
10
10
  import { IkasThemeSettings, IkasThemeStockPreference } from "../models/theme/settings/index";
11
- import { IkasProductBackInStockSettings } from "../models/data/product-back-in-stock-settings/index";
12
11
  export declare class IkasNextPageDataProvider {
13
12
  static readLocalTheme(): Promise<IkasTheme>;
14
- static readSettingsFile(): Promise<SettingsData | null>;
13
+ static readSettingsFile(): Promise<any>;
15
14
  static getSettings(locale: string): Promise<SettingsData | null>;
16
15
  static getPageData(context: GetStaticPropsContext<ParsedUrlQuery> | GetServerSidePropsContext<ParsedUrlQuery>, isServer: boolean, pageType?: IkasThemePageType, possiblePageTypes?: IkasThemePageType[], isEditor?: boolean): Promise<{
17
16
  props: {};
@@ -42,8 +41,6 @@ export declare class IkasNextPageDataProvider {
42
41
  stockPreference: IkasThemeStockPreference;
43
42
  storefrontJSScripts: string[];
44
43
  translations: Record<string, any>;
45
- customerReviewSettings: IkasCustomerReviewSettings | null;
46
- productBackInStockSettings: any;
47
44
  };
48
45
  };
49
46
  notFound?: undefined;
@@ -73,8 +70,6 @@ export declare class IkasNextPageDataProvider {
73
70
  stockPreference: IkasThemeStockPreference;
74
71
  storefrontJSScripts: string[];
75
72
  translations: Record<string, any>;
76
- customerReviewSettings: IkasCustomerReviewSettings | null;
77
- productBackInStockSettings: any;
78
73
  };
79
74
  };
80
75
  revalidate: number;
@@ -113,8 +108,6 @@ export declare class IkasNextPageDataProvider {
113
108
  stockPreference: IkasThemeStockPreference;
114
109
  storefrontJSScripts: string[];
115
110
  translations: Record<string, any>;
116
- customerReviewSettings: IkasCustomerReviewSettings | null;
117
- productBackInStockSettings: any;
118
111
  };
119
112
  };
120
113
  notFound?: undefined;
@@ -144,8 +137,6 @@ export declare class IkasNextPageDataProvider {
144
137
  stockPreference: IkasThemeStockPreference;
145
138
  storefrontJSScripts: string[];
146
139
  translations: Record<string, any>;
147
- customerReviewSettings: IkasCustomerReviewSettings | null;
148
- productBackInStockSettings: any;
149
140
  };
150
141
  };
151
142
  revalidate: number;
@@ -184,8 +175,6 @@ export declare class IkasNextPageDataProvider {
184
175
  stockPreference: IkasThemeStockPreference;
185
176
  storefrontJSScripts: string[];
186
177
  translations: Record<string, any>;
187
- customerReviewSettings: IkasCustomerReviewSettings | null;
188
- productBackInStockSettings: any;
189
178
  };
190
179
  };
191
180
  notFound?: undefined;
@@ -215,8 +204,6 @@ export declare class IkasNextPageDataProvider {
215
204
  stockPreference: IkasThemeStockPreference;
216
205
  storefrontJSScripts: string[];
217
206
  translations: Record<string, any>;
218
- customerReviewSettings: IkasCustomerReviewSettings | null;
219
- productBackInStockSettings: any;
220
207
  };
221
208
  };
222
209
  revalidate: number;
@@ -233,11 +220,8 @@ export declare type SettingsData = {
233
220
  themeLocalization: IkasStorefrontThemeLocalization;
234
221
  salesChannel: IkasSalesChannel;
235
222
  routing: IkasStorefrontRouting;
236
- localizationMap?: Record<string, any>;
237
223
  favicon: IkasThemeFavicon;
238
224
  stockPreference: IkasThemeStockPreference;
239
225
  storefrontJSScripts: string[];
240
226
  domain: string;
241
- productBackInStockSettings: IkasProductBackInStockSettings | null;
242
- customerReviewSettings: IkasCustomerReviewSettings | null;
243
227
  };
@@ -36,7 +36,6 @@ export declare class IkasCustomerStore {
36
36
  removeItemFromFavorite: (productId: string) => Promise<boolean>;
37
37
  isProductFavorite: (productId: string) => Promise<boolean>;
38
38
  createEmailSubscription: (email: string) => Promise<boolean>;
39
- sendReview: (input: IkasCustomerReviewForm) => Promise<false | import("../api/customer-review/__generated__/createCustomerReview").createCustomerReview_createCustomerReview | undefined>;
40
39
  onCustomerConsentGrant: () => void;
41
40
  waitUntilInitialized: () => Promise<unknown>;
42
41
  private init;
@@ -64,9 +63,3 @@ export declare type IkasContactForm = {
64
63
  email: string;
65
64
  message: string;
66
65
  };
67
- export declare type IkasCustomerReviewForm = {
68
- comment?: string;
69
- productId: string;
70
- star: number;
71
- title?: string;
72
- };
@@ -1,10 +1,8 @@
1
- import { IkasProductBackInStockSettings } from "../models/data/product-back-in-stock-settings/index";
2
1
  import { IkasSalesChannelPaymentGateway } from "../models/data/sales-channel/index";
3
2
  import { IkasStorefrontRouting } from "../models/data/storefront/routing/index";
4
3
  import { IkasThemeStockPreference } from "../models/theme/settings/index";
5
4
  import { IkasThemeFavicon } from "../models/theme/settings/prop/favicon/index";
6
5
  import { IkasBaseStore } from "../store/index";
7
- import { IkasCustomerReviewSettings } from "../models/index";
8
6
  export declare class IkasStorefrontConfig {
9
7
  static store: IkasBaseStore;
10
8
  static components: any;
@@ -26,8 +24,6 @@ export declare class IkasStorefrontConfig {
26
24
  static translations: Record<string, any>;
27
25
  static storefrontJSScripts: string[];
28
26
  static isEditor: boolean;
29
- static customerReviewSettings: IkasCustomerReviewSettings | null;
30
- static productBackInStockSettings: IkasProductBackInStockSettings | null;
31
27
  static init(store: IkasBaseStore, components: any, config: Record<string, any>, apiUrlOverride?: string): void;
32
28
  static initWithJson(json: Record<string, any>): void;
33
29
  static getCurrentLocale(): string;
@@ -47,7 +43,5 @@ export declare class IkasStorefrontConfig {
47
43
  stockPreference: IkasThemeStockPreference;
48
44
  storefrontJSScripts: string[];
49
45
  translations: Record<string, any>;
50
- customerReviewSettings: IkasCustomerReviewSettings | null;
51
- productBackInStockSettings: any;
52
46
  };
53
47
  }
@@ -1,7 +1 @@
1
- /**
2
- *
3
- * @param price Price to format
4
- * @param currency Code for the currency, USD, EUR, TRY, etc..
5
- */
6
1
  export declare const formatMoney: (price: number, currency: string) => string;
7
- export declare function getCurrencySymbol(currencyCode: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.2.0-alpha.13",
3
+ "version": "0.2.0-alpha.2",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",
@@ -1,24 +0,0 @@
1
- import { StringFilterInput, DateFilterInput } from "../../../__generated__/global-types";
2
- export interface listProductBackInStockRemind_listProductBackInStockRemind {
3
- __typename: "ProductBackInStockRemind";
4
- createdAt: any | null;
5
- customerId: string;
6
- deleted: boolean | null;
7
- email: string;
8
- id: string;
9
- productId: string;
10
- storefrontId: string;
11
- updatedAt: any | null;
12
- variantId: string;
13
- }
14
- export interface listProductBackInStockRemind {
15
- listProductBackInStockRemind: listProductBackInStockRemind_listProductBackInStockRemind[];
16
- }
17
- export interface listProductBackInStockRemindVariables {
18
- id?: StringFilterInput | null;
19
- updatedAt?: DateFilterInput | null;
20
- includeDeleted?: boolean | null;
21
- email?: StringFilterInput | null;
22
- productId?: StringFilterInput | null;
23
- variantId?: StringFilterInput | null;
24
- }
@@ -1,19 +0,0 @@
1
- import { ProductBackInStockRemindInput } from "../../../__generated__/global-types";
2
- export interface saveProductBackInStockRemind_saveProductBackInStockRemind {
3
- __typename: "ProductBackInStockRemind";
4
- createdAt: any | null;
5
- customerId: string;
6
- deleted: boolean | null;
7
- email: string;
8
- id: string;
9
- productId: string;
10
- storefrontId: string;
11
- updatedAt: any | null;
12
- variantId: string;
13
- }
14
- export interface saveProductBackInStockRemind {
15
- saveProductBackInStockRemind: saveProductBackInStockRemind_saveProductBackInStockRemind;
16
- }
17
- export interface saveProductBackInStockRemindVariables {
18
- input: ProductBackInStockRemindInput;
19
- }
@@ -1,23 +0,0 @@
1
- import * as ListProductBackInStockRemindTypes from "./__generated__/listProductBackInStockRemind";
2
- import * as SaveProductBackInStockRemindTypes from "./__generated__/saveProductBackInStockRemind";
3
- import { DateFilterInput, StringFilterInput } from "../../__generated__/global-types";
4
- export declare class IkasProductBackInStockReminderAPI {
5
- static list(listParams: ListParams): Promise<{
6
- data: ListProductBackInStockRemindTypes.listProductBackInStockRemind_listProductBackInStockRemind[];
7
- } | undefined>;
8
- static save(input: ProductBackInStockRemindInput): Promise<SaveProductBackInStockRemindTypes.saveProductBackInStockRemind_saveProductBackInStockRemind | undefined>;
9
- }
10
- export declare type ProductBackInStockRemindInput = {
11
- email: string;
12
- productId: string;
13
- variantId: string;
14
- };
15
- declare type ListParams = {
16
- email?: string;
17
- id?: StringFilterInput;
18
- includeDeleted?: boolean;
19
- productId?: string;
20
- updatedAt?: DateFilterInput;
21
- variantId?: string;
22
- };
23
- export {};
@@ -1,11 +0,0 @@
1
- import { CreateCustomerReviewInput } from "../../../__generated__/global-types";
2
- export interface createCustomerReview_createCustomerReview {
3
- __typename: "CustomerReview";
4
- id: string;
5
- }
6
- export interface createCustomerReview {
7
- createCustomerReview: createCustomerReview_createCustomerReview;
8
- }
9
- export interface createCustomerReviewVariables {
10
- input: CreateCustomerReviewInput;
11
- }
@@ -1,25 +0,0 @@
1
- import { ListCustomerReviewInput, PaginationInput } from "../../../__generated__/global-types";
2
- export interface listCustomerReviews_listCustomerReviews_data {
3
- __typename: "CustomerReview";
4
- comment: string | null;
5
- createdAt: any | null;
6
- id: string;
7
- star: number;
8
- title: string | null;
9
- }
10
- export interface listCustomerReviews_listCustomerReviews {
11
- __typename: "CustomerReviewSFPaginationResponse";
12
- count: number;
13
- data: listCustomerReviews_listCustomerReviews_data[];
14
- hasNext: boolean;
15
- limit: number;
16
- page: number;
17
- }
18
- export interface listCustomerReviews {
19
- listCustomerReviews: listCustomerReviews_listCustomerReviews;
20
- }
21
- export interface listCustomerReviewsVariables {
22
- input: ListCustomerReviewInput;
23
- productId?: string | null;
24
- pagination?: PaginationInput | null;
25
- }
@@ -1,24 +0,0 @@
1
- import { IkasCustomerReview } from "../../models/index";
2
- import * as CreateCustomerReviewTypes from "./__generated__/createCustomerReview";
3
- export declare class IkasCustomerReviewAPI {
4
- static listCustomerReviews(params: ListCustomerReviewInput): Promise<{
5
- data: IkasCustomerReview[];
6
- count: number;
7
- }>;
8
- static createCustomerReview(params: CreateCustomerReviewInput): Promise<false | CreateCustomerReviewTypes.createCustomerReview_createCustomerReview | undefined>;
9
- }
10
- declare type ListCustomerReviewInput = {
11
- productId?: string;
12
- salesChannelId: string;
13
- page?: number;
14
- limit?: number;
15
- };
16
- declare type CreateCustomerReviewInput = {
17
- comment?: string;
18
- customerId?: string;
19
- productId: string;
20
- salesChannelId: string;
21
- star: number;
22
- title?: string;
23
- };
24
- export {};
@@ -1,23 +0,0 @@
1
- export declare class IkasCustomerReview {
2
- comment: string;
3
- createdAt: string;
4
- customerId: string;
5
- deleted: boolean;
6
- id: string;
7
- orderId: string;
8
- orderNumber: string;
9
- productId: string;
10
- salesChannelId: string;
11
- star: number;
12
- status: CustomerReviewStatusEnum;
13
- storefrontId: string;
14
- title: string;
15
- updatedAt: string;
16
- constructor(data: Partial<IkasCustomerReview>);
17
- }
18
- declare enum CustomerReviewStatusEnum {
19
- APPROVED = "APPROVED",
20
- REJECTED = "REJECTED",
21
- WAITING = "WAITING"
22
- }
23
- export {};
@@ -1,4 +0,0 @@
1
- export declare type IkasCustomerReviewSettings = {
2
- customerLoginRequired: boolean;
3
- customerPurchaseRequired: boolean;
4
- };
@@ -1,3 +0,0 @@
1
- export declare type IkasProductBackInStockSettings = {
2
- customerLoginRequired: boolean;
3
- };
@@ -1,43 +0,0 @@
1
- import { IkasCustomerReview } from "../../data/customer-review/index";
2
- export declare class IkasCustomerReviewList {
3
- data: IkasCustomerReview[];
4
- private _limit;
5
- private _page;
6
- private _count;
7
- private _initialized;
8
- private _minPage?;
9
- private _productId;
10
- private _isLoading;
11
- constructor(data: IkasCustomerReviewListParams);
12
- get limit(): number;
13
- get page(): number;
14
- get count(): number;
15
- get pageCount(): number;
16
- get isInitialized(): boolean;
17
- get hasPrev(): boolean;
18
- get hasNext(): boolean;
19
- get isLoading(): boolean;
20
- private listCustomerReviews;
21
- private getInitial;
22
- getPrev: () => Promise<void>;
23
- getNext: () => Promise<void>;
24
- getPage: (page: number) => Promise<void>;
25
- toJSON(): {
26
- data: IkasCustomerReview[];
27
- limit: number;
28
- page: number;
29
- count: number;
30
- initialized: boolean;
31
- minPage: number | null | undefined;
32
- productId: string;
33
- };
34
- }
35
- export declare type IkasCustomerReviewListParams = {
36
- data?: IkasCustomerReview[];
37
- limit?: number;
38
- page?: number;
39
- count?: number;
40
- initialized?: boolean;
41
- minPage?: number;
42
- productId: string;
43
- };
@@ -1,37 +0,0 @@
1
- import { IkasBaseStore } from "../../../../store/index";
2
- declare type CustomerReviewFormProps<T> = {
3
- productId: string;
4
- message: {
5
- starRule: ((model: T) => string) | string;
6
- };
7
- store: IkasBaseStore;
8
- };
9
- declare type CustomerReviewFormModel = {
10
- title: string;
11
- comment: string;
12
- star: number;
13
- };
14
- export declare class CustomerReviewForm {
15
- private productId;
16
- private model;
17
- private validator;
18
- private store;
19
- constructor(props: CustomerReviewFormProps<CustomerReviewFormModel>);
20
- get title(): string;
21
- set title(value: string);
22
- get comment(): string;
23
- set comment(value: string);
24
- get star(): number;
25
- set star(value: number);
26
- get hasError(): boolean;
27
- get starErrorMessage(): string | undefined;
28
- onTitleChange: (value: string) => void;
29
- onCommentChange: (value: string) => void;
30
- onStarChange: (value: number) => void;
31
- validateAll(): Promise<boolean>;
32
- submit(): Promise<{
33
- isFormError: boolean;
34
- isSuccess: boolean;
35
- }>;
36
- }
37
- export {};