@ikas/storefront 0.1.24-alpha.8 → 0.2.0-alpha.10
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.
- package/build/__generated__/global-types.d.ts +45 -0
- package/build/analytics/analytics.d.ts +3 -2
- package/build/analytics/events.d.ts +1 -0
- package/build/analytics/ikas.d.ts +133 -0
- package/build/api/back-in-stock-reminder/__generated__/listProductBackInStockRemind.d.ts +24 -0
- package/build/api/back-in-stock-reminder/__generated__/saveProductBackInStockRemind.d.ts +19 -0
- package/build/api/back-in-stock-reminder/index.d.ts +23 -0
- package/build/api/checkout/__generated__/getCheckoutById.d.ts +0 -4
- package/build/api/checkout/__generated__/listPaymentGateway.d.ts +1 -3
- package/build/api/customer/__generated__/customerForgotPassword.d.ts +0 -1
- package/build/api/customer/__generated__/registerCustomer.d.ts +0 -1
- package/build/api/customer-review/__generated__/createCustomerReview.d.ts +11 -0
- package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +25 -0
- package/build/api/customer-review/index.d.ts +24 -0
- package/build/api/index.d.ts +3 -0
- package/build/api/merchant/__generated__/listMerchantSettings.d.ts +0 -4
- package/build/api/merchant/index.d.ts +1 -1
- package/build/api/product-option-set/__generated__/ListProductOptionSet.d.ts +90 -0
- package/build/api/product-option-set/index.d.ts +6 -0
- package/build/components/page/index.d.ts +1 -0
- package/build/index.es.js +1569 -293
- package/build/index.js +1584 -293
- package/build/models/data/cart/index.d.ts +0 -1
- package/build/models/data/customer-review/index.d.ts +23 -0
- package/build/models/data/customer-review-settings/index.d.ts +4 -0
- package/build/models/data/index.d.ts +4 -1
- package/build/models/data/order/index.d.ts +0 -1
- package/build/models/data/order/line-item/index.d.ts +0 -1
- package/build/models/data/order-transaction/index.d.ts +0 -1
- package/build/models/data/product/index.d.ts +4 -0
- package/build/models/data/product/variant/index.d.ts +7 -0
- package/build/models/data/product/variant/price/index.d.ts +0 -1
- package/build/models/data/product-back-in-stock-settings/index.d.ts +3 -0
- package/build/models/data/product-option-set/index.d.ts +85 -0
- package/build/models/data/simple-product/index.d.ts +1 -0
- package/build/models/ui/customer-review-list/index.d.ts +43 -0
- package/build/models/ui/index.d.ts +2 -0
- package/build/models/ui/product-detail/index.d.ts +4 -1
- package/build/models/ui/validator/form/customer-review.d.ts +37 -0
- package/build/pages/editor.d.ts +1 -0
- package/build/pages/index.d.ts +19 -20
- package/build/providers/page-data-get.d.ts +2 -0
- package/build/providers/page-data-init.d.ts +1 -1
- package/build/providers/page-data-next.d.ts +18 -2
- package/build/store/customer.d.ts +7 -0
- package/build/storefront/index.d.ts +8 -2
- package/build/utils/currency.d.ts +0 -6
- package/package.json +5 -2
- package/build/providers/prop-value/checkout.d.ts +0 -4
|
@@ -248,6 +248,21 @@ export declare enum ProductFilterTypeEnum {
|
|
|
248
248
|
TAG = "TAG",
|
|
249
249
|
VARIANT_TYPE = "VARIANT_TYPE"
|
|
250
250
|
}
|
|
251
|
+
export declare enum ProductOptionSelectTypeEnum {
|
|
252
|
+
BOX = "BOX",
|
|
253
|
+
SELECT = "SELECT",
|
|
254
|
+
SWATCH = "SWATCH"
|
|
255
|
+
}
|
|
256
|
+
export declare enum ProductOptionTypeEnum {
|
|
257
|
+
CHECKBOX = "CHECKBOX",
|
|
258
|
+
CHOICE = "CHOICE",
|
|
259
|
+
COLOR_PICKER = "COLOR_PICKER",
|
|
260
|
+
DATE_PICKER = "DATE_PICKER",
|
|
261
|
+
FILE = "FILE",
|
|
262
|
+
IMAGE = "IMAGE",
|
|
263
|
+
TEXT = "TEXT",
|
|
264
|
+
TEXT_AREA = "TEXT_AREA"
|
|
265
|
+
}
|
|
251
266
|
export declare enum ProductSearchShowStockOptionEnum {
|
|
252
267
|
HIDE_OUT_OF_STOCK = "HIDE_OUT_OF_STOCK",
|
|
253
268
|
SHOW_ALL = "SHOW_ALL",
|
|
@@ -362,6 +377,20 @@ export interface CreateCustomerEmailSubscriptionInput {
|
|
|
362
377
|
id?: string | null;
|
|
363
378
|
updatedAt?: any | null;
|
|
364
379
|
}
|
|
380
|
+
export interface CreateCustomerReviewInput {
|
|
381
|
+
comment?: string | null;
|
|
382
|
+
createdAt?: any | null;
|
|
383
|
+
customerId?: string | null;
|
|
384
|
+
deleted?: boolean | null;
|
|
385
|
+
id?: string | null;
|
|
386
|
+
orderId?: string | null;
|
|
387
|
+
orderNumber?: string | null;
|
|
388
|
+
productId: string;
|
|
389
|
+
salesChannelId: string;
|
|
390
|
+
star: number;
|
|
391
|
+
title?: string | null;
|
|
392
|
+
updatedAt?: any | null;
|
|
393
|
+
}
|
|
365
394
|
export interface CreateSaleTransactionWithCheckoutInput {
|
|
366
395
|
checkoutId: string;
|
|
367
396
|
paymentGatewayId: string;
|
|
@@ -387,10 +416,21 @@ export interface CustomerAddressStateInput {
|
|
|
387
416
|
id?: string | null;
|
|
388
417
|
name?: string | null;
|
|
389
418
|
}
|
|
419
|
+
export interface DateFilterInput {
|
|
420
|
+
eq?: any | null;
|
|
421
|
+
gt?: any | null;
|
|
422
|
+
gte?: any | null;
|
|
423
|
+
in?: any[] | null;
|
|
424
|
+
lt?: any | null;
|
|
425
|
+
lte?: any | null;
|
|
426
|
+
}
|
|
390
427
|
export interface HTMLMetaDataTargetTypeEnumFilter {
|
|
391
428
|
eq?: HTMLMetaDataTargetTypeEnum | null;
|
|
392
429
|
in?: HTMLMetaDataTargetTypeEnum[] | null;
|
|
393
430
|
}
|
|
431
|
+
export interface ListCustomerReviewInput {
|
|
432
|
+
salesChannelId: string;
|
|
433
|
+
}
|
|
394
434
|
export interface OrderAddressCityInput {
|
|
395
435
|
code?: string | null;
|
|
396
436
|
id?: string | null;
|
|
@@ -462,6 +502,11 @@ export interface PaymentMethodDetailInput {
|
|
|
462
502
|
installmentCount: number;
|
|
463
503
|
threeDSecure: boolean;
|
|
464
504
|
}
|
|
505
|
+
export interface ProductBackInStockRemindInput {
|
|
506
|
+
email: string;
|
|
507
|
+
productId: string;
|
|
508
|
+
variantId: string;
|
|
509
|
+
}
|
|
465
510
|
export interface ProductItemInput {
|
|
466
511
|
createdAt?: any | null;
|
|
467
512
|
deleted?: boolean | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasProductDetail, IkasOrderLineItem, IkasCheckout, IkasCategory, IkasThemePageType, IkasOrderTransaction } from "../models/index";
|
|
1
|
+
import { IkasProductDetail, IkasOrderLineItem, IkasCheckout, IkasCategory, IkasThemePageType, IkasOrderTransaction, IkasBrand } from "../models/index";
|
|
2
2
|
import { CheckoutStep } from "../components/checkout/model";
|
|
3
3
|
import { IkasCart } from "../models/data/cart/index";
|
|
4
4
|
import { IkasEventSubscriber } from "./events";
|
|
@@ -24,12 +24,13 @@ export declare class Analytics {
|
|
|
24
24
|
static disableHTML(): void;
|
|
25
25
|
static addToWishlist(productId: string): void;
|
|
26
26
|
static search(searchKeyword: string): void;
|
|
27
|
-
static completeRegistration(email: string): void;
|
|
27
|
+
static completeRegistration(email: string, customerId?: string): void;
|
|
28
28
|
static customerLogin(): Promise<void>;
|
|
29
29
|
static customerLogout(): Promise<void>;
|
|
30
30
|
static customerVisit(): Promise<void>;
|
|
31
31
|
static viewCart(cart: IkasCart | null | undefined): void;
|
|
32
32
|
static viewCategory(categoryPath: string, category: IkasCategory): void;
|
|
33
|
+
static viewBrand(brand: IkasBrand): void;
|
|
33
34
|
static viewSearchResults(searchKeyword: string, productDetails: IkasProductDetail[]): void;
|
|
34
35
|
static viewListing(productDetails: IkasProductDetail[]): void;
|
|
35
36
|
static contactForm(form: IkasContactForm): void;
|
|
@@ -21,6 +21,7 @@ export declare enum IkasEventType {
|
|
|
21
21
|
CUSTOMER_VISIT = "CUSTOMER_VISIT",
|
|
22
22
|
VIEW_CART = "VIEW_CART",
|
|
23
23
|
VIEW_CATEGORY = "VIEW_CATEGORY",
|
|
24
|
+
VIEW_BRAND = "VIEW_BRAND",
|
|
24
25
|
VIEW_SEARCH_RESULTS = "VIEW_SEARCH_RESULTS",
|
|
25
26
|
VIEW_LISTING = "VIEW_LISTING",
|
|
26
27
|
CONTACT_FORM = "CONTACT_FORM"
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { CheckoutStep } from "../components/checkout/model";
|
|
2
|
+
import { IkasBrand, IkasCategory, IkasCheckout, IkasOrderLineItem, IkasProductDetail, IkasThemePageType } from "../models/index";
|
|
3
|
+
import { IkasCart } from "../models/data/cart/index";
|
|
4
|
+
declare enum StorefrontEventType {
|
|
5
|
+
SESSION_START = 1,
|
|
6
|
+
PAGE_VIEW = 2,
|
|
7
|
+
PRODUCT_VIEW = 3,
|
|
8
|
+
ADD_TO_CART = 4,
|
|
9
|
+
VIEW_CART = 5,
|
|
10
|
+
ORDER_SUCCESS = 6,
|
|
11
|
+
BEGIN_CHECKOUT = 7,
|
|
12
|
+
CHECKOUT_STEP = 8,
|
|
13
|
+
CUSTOMER_REGISTER = 9,
|
|
14
|
+
CUSTOMER_VISIT = 10,
|
|
15
|
+
CUSTOMER_LOGIN = 11,
|
|
16
|
+
BRAND_VIEW = 12,
|
|
17
|
+
CATEGORY_VIEW = 13
|
|
18
|
+
}
|
|
19
|
+
declare enum StorefrontEventPageType {
|
|
20
|
+
INDEX = 1,
|
|
21
|
+
CATEGORY = 2,
|
|
22
|
+
BRAND = 3,
|
|
23
|
+
PRODUCT = 4,
|
|
24
|
+
CUSTOM = 5,
|
|
25
|
+
ACCOUNT = 6,
|
|
26
|
+
ADDRESSES = 7,
|
|
27
|
+
ORDERS = 8,
|
|
28
|
+
ORDER_DETAIL = 9,
|
|
29
|
+
LOGIN = 10,
|
|
30
|
+
REGISTER = 11,
|
|
31
|
+
FORGOT_PASSWORD = 12,
|
|
32
|
+
RECOVER_PASSWORD = 13,
|
|
33
|
+
CART = 14,
|
|
34
|
+
FAVORITE_PRODUCTS = 15,
|
|
35
|
+
SEARCH = 16,
|
|
36
|
+
NOT_FOUND = 17,
|
|
37
|
+
BLOG = 18,
|
|
38
|
+
BLOG_INDEX = 19,
|
|
39
|
+
BLOG_CATEGORY = 20,
|
|
40
|
+
CHECKOUT = 21
|
|
41
|
+
}
|
|
42
|
+
interface Event {
|
|
43
|
+
t: StorefrontEventType;
|
|
44
|
+
d: EventPayload;
|
|
45
|
+
ts: number;
|
|
46
|
+
}
|
|
47
|
+
interface EventPayload {
|
|
48
|
+
u: string;
|
|
49
|
+
r?: string;
|
|
50
|
+
utm?: UTMData;
|
|
51
|
+
pt?: StorefrontEventPageType;
|
|
52
|
+
d?: EventPayloadDetail;
|
|
53
|
+
m?: Record<string, string>;
|
|
54
|
+
}
|
|
55
|
+
interface UTMData {
|
|
56
|
+
ca?: string;
|
|
57
|
+
c?: string;
|
|
58
|
+
m?: string;
|
|
59
|
+
s?: string;
|
|
60
|
+
t?: string;
|
|
61
|
+
}
|
|
62
|
+
interface EventPayloadDetail {
|
|
63
|
+
br?: BrandDetail;
|
|
64
|
+
ctg?: CategoryDetail;
|
|
65
|
+
pr?: ProductDetail;
|
|
66
|
+
crt?: CartDetail;
|
|
67
|
+
crtItm?: CartItemDetail;
|
|
68
|
+
chk?: CheckoutDetail;
|
|
69
|
+
cst?: CustomerDetail;
|
|
70
|
+
}
|
|
71
|
+
interface BrandDetail {
|
|
72
|
+
id: string;
|
|
73
|
+
}
|
|
74
|
+
interface CategoryDetail {
|
|
75
|
+
id: string;
|
|
76
|
+
}
|
|
77
|
+
interface ProductDetail {
|
|
78
|
+
id: string;
|
|
79
|
+
vid: string;
|
|
80
|
+
}
|
|
81
|
+
interface CartDetail {
|
|
82
|
+
id: string;
|
|
83
|
+
c: number;
|
|
84
|
+
}
|
|
85
|
+
interface CartItemDetail {
|
|
86
|
+
id: string;
|
|
87
|
+
c: number;
|
|
88
|
+
}
|
|
89
|
+
interface CheckoutDetail {
|
|
90
|
+
id: string;
|
|
91
|
+
s?: string;
|
|
92
|
+
}
|
|
93
|
+
interface CustomerDetail {
|
|
94
|
+
id?: string;
|
|
95
|
+
e?: string;
|
|
96
|
+
c?: boolean;
|
|
97
|
+
}
|
|
98
|
+
export default class IkasAnalytics {
|
|
99
|
+
static SESSION_ID_KEY: string;
|
|
100
|
+
static VISITOR_ID_KEY: string;
|
|
101
|
+
static EXPIRY_LENGTH: number;
|
|
102
|
+
static sessionId?: string | null;
|
|
103
|
+
static visitorId?: string | null;
|
|
104
|
+
static createSessionId(): void;
|
|
105
|
+
static checkSessionId(): void;
|
|
106
|
+
static checkVisitorId(): void;
|
|
107
|
+
static getPageType(pageType: IkasThemePageType): StorefrontEventPageType | undefined;
|
|
108
|
+
static getCustomerData(): {
|
|
109
|
+
id: string | undefined;
|
|
110
|
+
e: string | undefined;
|
|
111
|
+
c: boolean;
|
|
112
|
+
};
|
|
113
|
+
static getCommonEventData(): {
|
|
114
|
+
u: string;
|
|
115
|
+
r: string;
|
|
116
|
+
pt: StorefrontEventPageType | undefined;
|
|
117
|
+
};
|
|
118
|
+
static sendEvents(events: Event[]): Promise<void>;
|
|
119
|
+
static sessionStart(): Promise<void>;
|
|
120
|
+
static pageView(pageType: IkasThemePageType): Promise<void>;
|
|
121
|
+
static productView(productDetail: IkasProductDetail): Promise<void>;
|
|
122
|
+
static addToCart(item: IkasOrderLineItem, quantity: number, cart: IkasCart): Promise<void>;
|
|
123
|
+
static viewCart(cart: IkasCart): Promise<void>;
|
|
124
|
+
static orderSuccess(checkout: IkasCheckout): Promise<void>;
|
|
125
|
+
static beginCheckout(checkout: IkasCheckout): Promise<void>;
|
|
126
|
+
static checkoutStep(checkout: IkasCheckout, step: CheckoutStep): Promise<void>;
|
|
127
|
+
static customerRegister(): Promise<void>;
|
|
128
|
+
static customerLogin(): Promise<void>;
|
|
129
|
+
static customerVisit(): Promise<void>;
|
|
130
|
+
static viewBrand(brand: IkasBrand): Promise<void>;
|
|
131
|
+
static viewCategory(category: IkasCategory): Promise<void>;
|
|
132
|
+
}
|
|
133
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 {};
|
|
@@ -18,8 +18,6 @@ export interface getCheckoutById_getCheckoutById_billingAddress_country {
|
|
|
18
18
|
code: string | null;
|
|
19
19
|
id: string | null;
|
|
20
20
|
name: string;
|
|
21
|
-
iso2: string | null;
|
|
22
|
-
iso3: string | null;
|
|
23
21
|
}
|
|
24
22
|
export interface getCheckoutById_getCheckoutById_billingAddress_district {
|
|
25
23
|
__typename: "OrderAddressDistrict";
|
|
@@ -71,8 +69,6 @@ export interface getCheckoutById_getCheckoutById_shippingAddress_country {
|
|
|
71
69
|
id: string | null;
|
|
72
70
|
code: string | null;
|
|
73
71
|
name: string;
|
|
74
|
-
iso2: string | null;
|
|
75
|
-
iso3: string | null;
|
|
76
72
|
}
|
|
77
73
|
export interface getCheckoutById_getCheckoutById_shippingAddress_district {
|
|
78
74
|
__typename: "OrderAddressDistrict";
|
|
@@ -14,7 +14,7 @@ export interface listPaymentGateway_listPaymentGateway_additionalPrices {
|
|
|
14
14
|
export interface listPaymentGateway_listPaymentGateway_translations {
|
|
15
15
|
__typename: "PaymentGatewayTranslation";
|
|
16
16
|
description: string | null;
|
|
17
|
-
locale: string
|
|
17
|
+
locale: string;
|
|
18
18
|
name: string | null;
|
|
19
19
|
}
|
|
20
20
|
export interface listPaymentGateway_listPaymentGateway {
|
|
@@ -30,8 +30,6 @@ export interface listPaymentGateway_listPaymentGateway {
|
|
|
30
30
|
logoUrl: string | null;
|
|
31
31
|
additionalPrices: listPaymentGateway_listPaymentGateway_additionalPrices[] | null;
|
|
32
32
|
translations: listPaymentGateway_listPaymentGateway_translations[] | null;
|
|
33
|
-
supportedCurrencies: string[] | null;
|
|
34
|
-
availableCountries: string[] | null;
|
|
35
33
|
}
|
|
36
34
|
export interface listPaymentGateway {
|
|
37
35
|
listPaymentGateway: listPaymentGateway_listPaymentGateway[];
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 {};
|
package/build/api/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { IkasCheckoutAPI } from "./checkout/index";
|
|
|
6
6
|
export { IkasCityAPI } from "./city/index";
|
|
7
7
|
export { IkasCountryAPI } from "./country/index";
|
|
8
8
|
export { IkasCustomerAPI } from "./customer/index";
|
|
9
|
+
export { IkasCustomerReviewAPI } from "./customer-review/index";
|
|
9
10
|
export { IkasDistrictAPI } from "./district/index";
|
|
10
11
|
export { IkasHTMLMetaDataAPI } from "./html-meta-data/index";
|
|
11
12
|
export { IkasMerchantAPI } from "./merchant/index";
|
|
@@ -15,4 +16,6 @@ export { IkasFavoriteProductAPI } from "./favorite-product/index";
|
|
|
15
16
|
export { IkasContactFormAPI } from "./contact-form/index";
|
|
16
17
|
export { IkasStateAPI } from "./state/index";
|
|
17
18
|
export { IkasVariantTypeAPI } from "./variant-type/index";
|
|
19
|
+
export { IkasProductOptionSetAPI } from "./product-option-set/index";
|
|
20
|
+
export { IkasProductBackInStockReminderAPI } from "./back-in-stock-reminder/index";
|
|
18
21
|
export { apollo } from "./apollo";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { StringFilterInput } from "../../../__generated__/global-types";
|
|
2
1
|
export interface listMerchantSettings_listMerchantSettings {
|
|
3
2
|
__typename: "MerchantSettings";
|
|
4
3
|
id: string;
|
|
@@ -8,6 +7,3 @@ export interface listMerchantSettings_listMerchantSettings {
|
|
|
8
7
|
export interface listMerchantSettings {
|
|
9
8
|
listMerchantSettings: listMerchantSettings_listMerchantSettings[];
|
|
10
9
|
}
|
|
11
|
-
export interface listMerchantSettingsVariables {
|
|
12
|
-
merchantId: StringFilterInput;
|
|
13
|
-
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IkasMerchantSettings } from "../../models/index";
|
|
2
2
|
export declare class IkasMerchantAPI {
|
|
3
|
-
static listMerchantSettings(
|
|
3
|
+
static listMerchantSettings(): Promise<IkasMerchantSettings | undefined>;
|
|
4
4
|
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { StringFilterInput, DateFilterInput, ProductOptionSelectTypeEnum, ProductOptionTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface ListProductOptionSet_listProductOptionSet_options_dateSettings {
|
|
3
|
+
__typename: "ProductOptionDateSettings";
|
|
4
|
+
max: any | null;
|
|
5
|
+
min: any | null;
|
|
6
|
+
}
|
|
7
|
+
export interface ListProductOptionSet_listProductOptionSet_options_fileSettings {
|
|
8
|
+
__typename: "ProductOptionFileSettings";
|
|
9
|
+
allowedExtensions: string[] | null;
|
|
10
|
+
maxQuantity: number | null;
|
|
11
|
+
minQuantity: number | null;
|
|
12
|
+
}
|
|
13
|
+
export interface ListProductOptionSet_listProductOptionSet_options_selectSettings_values {
|
|
14
|
+
__typename: "ProductOptionSelectValue";
|
|
15
|
+
createdAt: any | null;
|
|
16
|
+
deleted: boolean | null;
|
|
17
|
+
id: string;
|
|
18
|
+
order: number;
|
|
19
|
+
price: number | null;
|
|
20
|
+
updatedAt: any | null;
|
|
21
|
+
value: string;
|
|
22
|
+
thumbnailImageId: string | null;
|
|
23
|
+
colorCode: string | null;
|
|
24
|
+
}
|
|
25
|
+
export interface ListProductOptionSet_listProductOptionSet_options_selectSettings {
|
|
26
|
+
__typename: "ProductOptionSelectSettings";
|
|
27
|
+
maxSelect: number | null;
|
|
28
|
+
minSelect: number | null;
|
|
29
|
+
type: ProductOptionSelectTypeEnum;
|
|
30
|
+
values: ListProductOptionSet_listProductOptionSet_options_selectSettings_values[];
|
|
31
|
+
}
|
|
32
|
+
export interface ListProductOptionSet_listProductOptionSet_options_textSettings {
|
|
33
|
+
__typename: "ProductOptionTextSettings";
|
|
34
|
+
max: number | null;
|
|
35
|
+
min: number | null;
|
|
36
|
+
}
|
|
37
|
+
export interface ListProductOptionSet_listProductOptionSet_options {
|
|
38
|
+
__typename: "ProductOption";
|
|
39
|
+
createdAt: any | null;
|
|
40
|
+
dateSettings: ListProductOptionSet_listProductOptionSet_options_dateSettings | null;
|
|
41
|
+
deleted: boolean | null;
|
|
42
|
+
fileSettings: ListProductOptionSet_listProductOptionSet_options_fileSettings | null;
|
|
43
|
+
id: string;
|
|
44
|
+
isOptional: boolean | null;
|
|
45
|
+
name: string;
|
|
46
|
+
optionalText: string | null;
|
|
47
|
+
requiredOptionId: string | null;
|
|
48
|
+
requiredOptionValueIds: string[] | null;
|
|
49
|
+
order: number;
|
|
50
|
+
price: number | null;
|
|
51
|
+
selectSettings: ListProductOptionSet_listProductOptionSet_options_selectSettings | null;
|
|
52
|
+
textSettings: ListProductOptionSet_listProductOptionSet_options_textSettings | null;
|
|
53
|
+
type: ProductOptionTypeEnum;
|
|
54
|
+
updatedAt: any | null;
|
|
55
|
+
}
|
|
56
|
+
export interface ListProductOptionSet_listProductOptionSet_translations_options_values {
|
|
57
|
+
__typename: "ProductOptionSelectValueTranslations";
|
|
58
|
+
id: string;
|
|
59
|
+
value: string | null;
|
|
60
|
+
}
|
|
61
|
+
export interface ListProductOptionSet_listProductOptionSet_translations_options {
|
|
62
|
+
__typename: "ProductOptionTranslations";
|
|
63
|
+
id: string;
|
|
64
|
+
name: string | null;
|
|
65
|
+
optionalText: string | null;
|
|
66
|
+
values: ListProductOptionSet_listProductOptionSet_translations_options_values[] | null;
|
|
67
|
+
}
|
|
68
|
+
export interface ListProductOptionSet_listProductOptionSet_translations {
|
|
69
|
+
__typename: "ProductOptionSetTranslations";
|
|
70
|
+
locale: string;
|
|
71
|
+
options: ListProductOptionSet_listProductOptionSet_translations_options[] | null;
|
|
72
|
+
}
|
|
73
|
+
export interface ListProductOptionSet_listProductOptionSet {
|
|
74
|
+
__typename: "ProductOptionSet";
|
|
75
|
+
createdAt: any | null;
|
|
76
|
+
deleted: boolean | null;
|
|
77
|
+
id: string;
|
|
78
|
+
name: string;
|
|
79
|
+
options: ListProductOptionSet_listProductOptionSet_options[];
|
|
80
|
+
translations: ListProductOptionSet_listProductOptionSet_translations[] | null;
|
|
81
|
+
updatedAt: any | null;
|
|
82
|
+
}
|
|
83
|
+
export interface ListProductOptionSet {
|
|
84
|
+
listProductOptionSet: ListProductOptionSet_listProductOptionSet[];
|
|
85
|
+
}
|
|
86
|
+
export interface ListProductOptionSetVariables {
|
|
87
|
+
id: StringFilterInput;
|
|
88
|
+
updatedAt?: DateFilterInput | null;
|
|
89
|
+
includeDeleted: boolean;
|
|
90
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IkasProductOptionSet } from "../../models/data/product-option-set/index";
|
|
2
|
+
export declare class IkasProductOptionSetAPI {
|
|
3
|
+
static list(searchId: string, updatedAt?: number, includeDeleted?: boolean): Promise<{
|
|
4
|
+
data: IkasProductOptionSet[];
|
|
5
|
+
} | undefined>;
|
|
6
|
+
}
|
|
@@ -12,6 +12,7 @@ export declare type IkasPageProps = {
|
|
|
12
12
|
configJson: Record<string, any>;
|
|
13
13
|
reInitOnBrowser?: boolean;
|
|
14
14
|
addOgpMetas?: boolean;
|
|
15
|
+
components?: Record<string, any>;
|
|
15
16
|
};
|
|
16
17
|
export declare const IkasPage: React.FC<IkasPageProps>;
|
|
17
18
|
export declare const renderComponent: (pageComponentPropValue: IkasPageComponentPropValue, settings: IkasThemeSettings, index: number) => JSX.Element;
|