@ikas/storefront 0.2.0-alpha.3 → 0.2.0-alpha.5
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/ikas.d.ts +18 -11
- 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/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/components/checkout/components/address-form/model.d.ts +8 -0
- package/build/index.css +9 -4
- package/build/index.es.css +9 -4
- package/build/index.es.js +822 -61
- package/build/index.js +826 -60
- 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/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-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/customer.d.ts +7 -0
- package/build/storefront/index.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;
|
|
@@ -5,17 +5,16 @@ declare enum StorefrontEventType {
|
|
|
5
5
|
SESSION_START = 1,
|
|
6
6
|
PAGE_VIEW = 2,
|
|
7
7
|
PRODUCT_VIEW = 3,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
CATEGORY_VIEW = 14
|
|
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
|
|
19
18
|
}
|
|
20
19
|
declare enum StorefrontEventPageType {
|
|
21
20
|
INDEX = 1,
|
|
@@ -48,10 +47,18 @@ interface Event {
|
|
|
48
47
|
interface EventPayload {
|
|
49
48
|
u: string;
|
|
50
49
|
r?: string;
|
|
50
|
+
utm?: UTMData;
|
|
51
51
|
pt?: StorefrontEventPageType;
|
|
52
52
|
d?: EventPayloadDetail;
|
|
53
53
|
m?: Record<string, string>;
|
|
54
54
|
}
|
|
55
|
+
interface UTMData {
|
|
56
|
+
ca?: string;
|
|
57
|
+
c?: string;
|
|
58
|
+
m?: string;
|
|
59
|
+
s?: string;
|
|
60
|
+
t?: string;
|
|
61
|
+
}
|
|
55
62
|
interface EventPayloadDetail {
|
|
56
63
|
br?: BrandDetail;
|
|
57
64
|
ctg?: CategoryDetail;
|
|
@@ -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
|
+
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";
|
|
@@ -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;
|
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; }
|