@ikas/storefront 0.2.0-alpha.1 → 0.2.0-alpha.11
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 +22 -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__/addCouponCodeToCheckout.d.ts +11 -0
- package/build/api/checkout/__generated__/getCheckoutById.d.ts +4 -0
- package/build/api/checkout/__generated__/listPaymentGateway.d.ts +3 -1
- package/build/api/checkout/index.d.ts +1 -0
- package/build/api/customer/__generated__/customerForgotPassword.d.ts +1 -0
- package/build/api/customer/__generated__/registerCustomer.d.ts +1 -0
- 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 +2 -0
- package/build/api/merchant/__generated__/listMerchantSettings.d.ts +0 -4
- package/build/api/merchant/index.d.ts +1 -1
- package/build/components/checkout/components/address-form/model.d.ts +8 -0
- package/build/components/checkout/model.d.ts +2 -2
- package/build/index.css +9 -4
- package/build/index.es.css +9 -4
- package/build/index.es.js +17387 -15804
- package/build/index.js +17368 -15779
- package/build/models/data/cart/index.d.ts +1 -0
- 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 +2 -0
- package/build/models/data/order/address/index.d.ts +2 -0
- package/build/models/data/order/index.d.ts +1 -2
- package/build/models/data/order/line-item/index.d.ts +1 -0
- package/build/models/data/order-transaction/index.d.ts +1 -0
- package/build/models/data/payment-gateway/index.d.ts +2 -0
- package/build/models/data/product/index.d.ts +1 -0
- package/build/models/data/product/variant/index.d.ts +7 -0
- package/build/models/data/product/variant/price/index.d.ts +1 -0
- package/build/models/data/product-back-in-stock-settings/index.d.ts +3 -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/providers/page-data-get.d.ts +2 -0
- package/build/providers/page-data-next.d.ts +18 -2
- package/build/store/cart.d.ts +1 -0
- package/build/store/customer.d.ts +8 -0
- package/build/storefront/index.d.ts +6 -0
- package/build/utils/currency.d.ts +6 -0
- package/package.json +1 -1
|
@@ -377,6 +377,20 @@ export interface CreateCustomerEmailSubscriptionInput {
|
|
|
377
377
|
id?: string | null;
|
|
378
378
|
updatedAt?: any | null;
|
|
379
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
|
+
}
|
|
380
394
|
export interface CreateSaleTransactionWithCheckoutInput {
|
|
381
395
|
checkoutId: string;
|
|
382
396
|
paymentGatewayId: string;
|
|
@@ -414,6 +428,9 @@ export interface HTMLMetaDataTargetTypeEnumFilter {
|
|
|
414
428
|
eq?: HTMLMetaDataTargetTypeEnum | null;
|
|
415
429
|
in?: HTMLMetaDataTargetTypeEnum[] | null;
|
|
416
430
|
}
|
|
431
|
+
export interface ListCustomerReviewInput {
|
|
432
|
+
salesChannelId: string;
|
|
433
|
+
}
|
|
417
434
|
export interface OrderAddressCityInput {
|
|
418
435
|
code?: string | null;
|
|
419
436
|
id?: string | null;
|
|
@@ -485,6 +502,11 @@ export interface PaymentMethodDetailInput {
|
|
|
485
502
|
installmentCount: number;
|
|
486
503
|
threeDSecure: boolean;
|
|
487
504
|
}
|
|
505
|
+
export interface ProductBackInStockRemindInput {
|
|
506
|
+
email: string;
|
|
507
|
+
productId: string;
|
|
508
|
+
variantId: string;
|
|
509
|
+
}
|
|
488
510
|
export interface ProductItemInput {
|
|
489
511
|
createdAt?: any | null;
|
|
490
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 {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface addCouponCodeToCheckout_addCouponCodeToCheckout {
|
|
2
|
+
__typename: "Checkout";
|
|
3
|
+
id: string;
|
|
4
|
+
}
|
|
5
|
+
export interface addCouponCodeToCheckout {
|
|
6
|
+
addCouponCodeToCheckout: addCouponCodeToCheckout_addCouponCodeToCheckout;
|
|
7
|
+
}
|
|
8
|
+
export interface addCouponCodeToCheckoutVariables {
|
|
9
|
+
checkoutId: string;
|
|
10
|
+
couponCode: string;
|
|
11
|
+
}
|
|
@@ -18,6 +18,8 @@ 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;
|
|
21
23
|
}
|
|
22
24
|
export interface getCheckoutById_getCheckoutById_billingAddress_district {
|
|
23
25
|
__typename: "OrderAddressDistrict";
|
|
@@ -69,6 +71,8 @@ export interface getCheckoutById_getCheckoutById_shippingAddress_country {
|
|
|
69
71
|
id: string | null;
|
|
70
72
|
code: string | null;
|
|
71
73
|
name: string;
|
|
74
|
+
iso2: string | null;
|
|
75
|
+
iso3: string | null;
|
|
72
76
|
}
|
|
73
77
|
export interface getCheckoutById_getCheckoutById_shippingAddress_district {
|
|
74
78
|
__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 | null;
|
|
18
18
|
name: string | null;
|
|
19
19
|
}
|
|
20
20
|
export interface listPaymentGateway_listPaymentGateway {
|
|
@@ -30,6 +30,8 @@ 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;
|
|
33
35
|
}
|
|
34
36
|
export interface listPaymentGateway {
|
|
35
37
|
listPaymentGateway: listPaymentGateway_listPaymentGateway[];
|
|
@@ -14,6 +14,7 @@ export declare class IkasCheckoutAPI {
|
|
|
14
14
|
static retrieveInstallmentInfo(input: IkasInstallmentInfoInput): Promise<IkasInstallmentInfo | undefined>;
|
|
15
15
|
static checkStocks(lines: CheckStocksLineInput[], stockLocationIdList: string[]): Promise<CheckStocksTypes.checkStocks_checkStocks | undefined>;
|
|
16
16
|
static listCheckoutSettings(): Promise<IkasCheckoutSettings[] | undefined>;
|
|
17
|
+
static addCouponCodeToCheckout(checkoutId: string, couponCode: string): Promise<true | undefined>;
|
|
17
18
|
}
|
|
18
19
|
declare type CheckStocksLineInput = {
|
|
19
20
|
quantity: number;
|
|
@@ -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";
|
|
@@ -16,4 +17,5 @@ export { IkasContactFormAPI } from "./contact-form/index";
|
|
|
16
17
|
export { IkasStateAPI } from "./state/index";
|
|
17
18
|
export { IkasVariantTypeAPI } from "./variant-type/index";
|
|
18
19
|
export { IkasProductOptionSetAPI } from "./product-option-set/index";
|
|
20
|
+
export { IkasProductBackInStockReminderAPI } from "./back-in-stock-reminder/index";
|
|
19
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
|
}
|
|
@@ -36,6 +36,8 @@ export default class AddressFormViewModel {
|
|
|
36
36
|
id?: string | undefined;
|
|
37
37
|
name?: string | undefined;
|
|
38
38
|
code?: string | undefined;
|
|
39
|
+
iso2?: string | undefined;
|
|
40
|
+
iso3?: string | undefined;
|
|
39
41
|
} | {
|
|
40
42
|
id?: string | undefined;
|
|
41
43
|
name?: string | undefined;
|
|
@@ -45,6 +47,8 @@ export default class AddressFormViewModel {
|
|
|
45
47
|
id?: string | undefined;
|
|
46
48
|
name?: string | undefined;
|
|
47
49
|
code?: string | undefined;
|
|
50
|
+
iso2?: string | undefined;
|
|
51
|
+
iso3?: string | undefined;
|
|
48
52
|
} | {
|
|
49
53
|
id?: string | undefined;
|
|
50
54
|
name?: string | undefined;
|
|
@@ -54,6 +58,8 @@ export default class AddressFormViewModel {
|
|
|
54
58
|
id?: string | undefined;
|
|
55
59
|
name?: string | undefined;
|
|
56
60
|
code?: string | undefined;
|
|
61
|
+
iso2?: string | undefined;
|
|
62
|
+
iso3?: string | undefined;
|
|
57
63
|
} | {
|
|
58
64
|
id?: string | undefined;
|
|
59
65
|
name?: string | undefined;
|
|
@@ -63,6 +69,8 @@ export default class AddressFormViewModel {
|
|
|
63
69
|
id?: string | undefined;
|
|
64
70
|
name?: string | undefined;
|
|
65
71
|
code?: string | undefined;
|
|
72
|
+
iso2?: string | undefined;
|
|
73
|
+
iso3?: string | undefined;
|
|
66
74
|
} | {
|
|
67
75
|
id?: string | undefined;
|
|
68
76
|
name?: string | undefined;
|
|
@@ -5,13 +5,12 @@ import { IkasOrderLineVariant } from "../../models/data/order/line-item/variant/
|
|
|
5
5
|
import { IkasStorefront } from "../../models/data/storefront/index";
|
|
6
6
|
import CreditCardData from "./components/credit-card-form/model";
|
|
7
7
|
import { IkasCheckoutSettings } from "../../models/data/checkout-settings/index";
|
|
8
|
-
import { IkasBaseStore } from "../../store/index";
|
|
9
8
|
import { TFunction } from "../../utils/i18n";
|
|
10
9
|
export default class CheckoutViewModel {
|
|
11
10
|
checkout: IkasCheckout;
|
|
12
11
|
checkoutSettings: IkasCheckoutSettings;
|
|
13
12
|
storefront?: IkasStorefront | null;
|
|
14
|
-
store: IkasBaseStore;
|
|
13
|
+
store: import("../../index").IkasBaseStore;
|
|
15
14
|
router: NextRouter;
|
|
16
15
|
isCheckoutLoaded: boolean;
|
|
17
16
|
isErrorsVisible: boolean;
|
|
@@ -70,6 +69,7 @@ export default class CheckoutViewModel {
|
|
|
70
69
|
createBillingAddress: () => void;
|
|
71
70
|
onShippingMethodChange: (shippingMethod: IkasAvailableShippingMethod) => Promise<void>;
|
|
72
71
|
onCouponCodeApply: () => Promise<void>;
|
|
72
|
+
onCouponCodeDelete: () => Promise<void>;
|
|
73
73
|
onSelectedShippingAddressIdChange: (value: string) => void;
|
|
74
74
|
onSelectedBillingAddressIdChange: (value: string) => void;
|
|
75
75
|
onTermsAndConditionsCheckedChange: (value: boolean) => void;
|
package/build/index.css
CHANGED
|
@@ -589,9 +589,13 @@
|
|
|
589
589
|
padding-bottom: 0; }
|
|
590
590
|
.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_LoginText__3FSC9 .style-module_LoginCta__2sZZF {
|
|
591
591
|
display: none; } }
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
592
|
+
.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {
|
|
593
|
+
position: sticky;
|
|
594
|
+
top: 0;
|
|
595
|
+
z-index: 10; }
|
|
596
|
+
@media only screen and (min-width: 1000px) {
|
|
597
|
+
.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {
|
|
598
|
+
display: none; } }
|
|
595
599
|
.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_RowPB__3M7Tz {
|
|
596
600
|
padding-bottom: 16px; }
|
|
597
601
|
@media only screen and (max-width: 1000px) {
|
|
@@ -1085,7 +1089,8 @@
|
|
|
1085
1089
|
transition: height .3s ease-in-out; }
|
|
1086
1090
|
@media only screen and (max-width: 1000px) {
|
|
1087
1091
|
.style-module_CartSummary__30RcF .style-module_DetailsContainer__FBBIP {
|
|
1088
|
-
padding: 0 24px;
|
|
1092
|
+
padding: 0 24px;
|
|
1093
|
+
box-shadow: 1px 2px 5px 0px rgba(0, 0, 0, 0.2); } }
|
|
1089
1094
|
|
|
1090
1095
|
.style-module_CartSummary__30RcF .style-module_Details__3-X_i {
|
|
1091
1096
|
overflow: hidden; }
|
package/build/index.es.css
CHANGED
|
@@ -589,9 +589,13 @@
|
|
|
589
589
|
padding-bottom: 0; }
|
|
590
590
|
.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_LoginText__3FSC9 .style-module_LoginCta__2sZZF {
|
|
591
591
|
display: none; } }
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
592
|
+
.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {
|
|
593
|
+
position: sticky;
|
|
594
|
+
top: 0;
|
|
595
|
+
z-index: 10; }
|
|
596
|
+
@media only screen and (min-width: 1000px) {
|
|
597
|
+
.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {
|
|
598
|
+
display: none; } }
|
|
595
599
|
.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_RowPB__3M7Tz {
|
|
596
600
|
padding-bottom: 16px; }
|
|
597
601
|
@media only screen and (max-width: 1000px) {
|
|
@@ -1085,7 +1089,8 @@
|
|
|
1085
1089
|
transition: height .3s ease-in-out; }
|
|
1086
1090
|
@media only screen and (max-width: 1000px) {
|
|
1087
1091
|
.style-module_CartSummary__30RcF .style-module_DetailsContainer__FBBIP {
|
|
1088
|
-
padding: 0 24px;
|
|
1092
|
+
padding: 0 24px;
|
|
1093
|
+
box-shadow: 1px 2px 5px 0px rgba(0, 0, 0, 0.2); } }
|
|
1089
1094
|
|
|
1090
1095
|
.style-module_CartSummary__30RcF .style-module_Details__3-X_i {
|
|
1091
1096
|
overflow: hidden; }
|