@ikas/storefront 0.0.168-alpha.2 → 0.0.168-alpha.20
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 +37 -24
- package/build/analytics/analytics.d.ts +23 -10
- package/build/analytics/events.d.ts +34 -0
- package/build/api/brand/__generated__/listProductBrand.d.ts +7 -0
- package/build/api/cart/__generated__/saveItemToCart.d.ts +6 -0
- package/build/api/category/__generated__/listCategory.d.ts +7 -0
- package/build/api/checkout/__generated__/getCheckoutById.d.ts +8 -2
- package/build/api/checkout/__generated__/getOrder.d.ts +2 -2
- package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +1 -0
- package/build/api/checkout/__generated__/listPaymentGateway.d.ts +3 -1
- package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +2 -2
- package/build/api/customer/__generated__/customerLogin.d.ts +1 -1
- package/build/api/customer/__generated__/getCustomerOrders.d.ts +2 -2
- package/build/api/customer/__generated__/getLastViewedProducts.d.ts +1 -1
- package/build/api/customer/__generated__/getMyCustomer.d.ts +1 -1
- package/build/api/customer/__generated__/registerCustomer.d.ts +1 -1
- package/build/api/customer/__generated__/saveMyCustomer.d.ts +1 -1
- package/build/api/storefront/__generated__/getStorefront.d.ts +1 -1
- package/build/assets/translations/checkout/en.js +1 -0
- package/build/assets/translations/checkout/tr.js +1 -0
- package/build/components/checkout/components/external.d.ts +6 -0
- package/build/components/{hoc → page}/ThemeComponent.d.ts +1 -1
- package/build/components/page/index.d.ts +1 -1
- package/build/components/{hoc → page-editor}/ThemeComponentEditor.d.ts +2 -2
- package/build/components/page-editor/model.d.ts +2 -2
- package/build/index.es.js +17101 -16428
- package/build/index.js +13135 -12466
- package/build/models/data/checkout-settings/index.d.ts +1 -0
- package/build/models/data/customer/address/index.d.ts +0 -1
- package/build/models/data/customer/index.d.ts +7 -0
- package/build/models/data/order/address/index.d.ts +0 -1
- package/build/models/data/payment-gateway/index.d.ts +6 -0
- package/build/models/ui/index.d.ts +2 -0
- package/build/models/ui/product-attribute-detail/index.d.ts +8 -0
- package/build/models/ui/product-attribute-list/index.d.ts +9 -0
- package/build/models/ui/product-list/index.d.ts +2 -1
- package/build/providers/page-data-get.d.ts +55 -0
- package/build/providers/page-data-init.d.ts +58 -0
- package/build/{utils/settings.d.ts → providers/page-data-next.d.ts} +1 -1
- package/build/{utils/providers → providers}/placeholders.d.ts +1 -1
- package/build/providers/prop-value/attribute-list.d.ts +12 -0
- package/build/providers/prop-value/attribute.d.ts +12 -0
- package/build/{utils/providers → providers}/prop-value/blog-category-list.d.ts +1 -1
- package/build/providers/prop-value/blog-category.d.ts +11 -0
- package/build/{utils/providers → providers}/prop-value/blog-list.d.ts +1 -1
- package/build/providers/prop-value/blog.d.ts +11 -0
- package/build/{utils/providers → providers}/prop-value/boolean.d.ts +0 -0
- package/build/{utils/providers → providers}/prop-value/brand-list.d.ts +1 -1
- package/build/providers/prop-value/brand.d.ts +11 -0
- package/build/{utils/providers → providers}/prop-value/category-list.d.ts +1 -1
- package/build/providers/prop-value/category.d.ts +11 -0
- package/build/{utils/providers → providers}/prop-value/checkout.d.ts +1 -1
- package/build/{utils/providers → providers}/prop-value/color.d.ts +0 -0
- package/build/{utils/providers → providers}/prop-value/custom.d.ts +2 -2
- package/build/{utils/providers → providers}/prop-value/image-list.d.ts +1 -1
- package/build/{utils/providers → providers}/prop-value/image.d.ts +1 -1
- package/build/{utils/providers → providers}/prop-value/index.d.ts +0 -0
- package/build/{utils/providers → providers}/prop-value/link.d.ts +1 -1
- package/build/providers/prop-value/product-detail.d.ts +11 -0
- package/build/{utils/providers → providers}/prop-value/product-list.d.ts +1 -1
- package/build/{utils/providers → providers}/prop-value/rich-text.d.ts +0 -0
- package/build/{utils/providers → providers}/prop-value/text.d.ts +0 -0
- package/build/store/cart.d.ts +1 -0
- package/build/store/customer.d.ts +2 -3
- package/build/utils/helper.d.ts +1 -0
- package/build/utils/index.d.ts +0 -2
- package/package.json +1 -1
- package/build/utils/providers/page-data.d.ts +0 -104
- package/build/utils/providers/prop-value/attribute-list.d.ts +0 -9
- package/build/utils/providers/prop-value/attribute.d.ts +0 -9
- package/build/utils/providers/prop-value/blog-category.d.ts +0 -8
- package/build/utils/providers/prop-value/blog.d.ts +0 -8
- package/build/utils/providers/prop-value/brand.d.ts +0 -8
- package/build/utils/providers/prop-value/category.d.ts +0 -8
- package/build/utils/providers/prop-value/product-detail.d.ts +0 -8
|
@@ -75,6 +75,7 @@ export declare enum CheckoutRequirementEnum {
|
|
|
75
75
|
*/
|
|
76
76
|
export declare enum CheckoutStatusEnum {
|
|
77
77
|
COMPLETED = "COMPLETED",
|
|
78
|
+
KILLED = "KILLED",
|
|
78
79
|
OPEN = "OPEN"
|
|
79
80
|
}
|
|
80
81
|
/**
|
|
@@ -184,6 +185,11 @@ export declare enum PaymentGatewayTransactionFeeTypeEnum {
|
|
|
184
185
|
AMOUNT = "AMOUNT",
|
|
185
186
|
RATIO = "RATIO"
|
|
186
187
|
}
|
|
188
|
+
export declare enum PaymentGatewayTypeEnum {
|
|
189
|
+
EXTERNAL = "EXTERNAL",
|
|
190
|
+
INTERNAL = "INTERNAL",
|
|
191
|
+
THIRD_PARTY = "THIRD_PARTY"
|
|
192
|
+
}
|
|
187
193
|
export declare enum PaymentMethodEnum {
|
|
188
194
|
APP_PAYMENT = "APP_PAYMENT",
|
|
189
195
|
BUY_ONLINE_PAY_AT_STORE = "BUY_ONLINE_PAY_AT_STORE",
|
|
@@ -205,6 +211,7 @@ export declare enum ProductAttributeTypeEnum {
|
|
|
205
211
|
HTML = "HTML",
|
|
206
212
|
MULTIPLE_CHOICE = "MULTIPLE_CHOICE",
|
|
207
213
|
NUMERIC = "NUMERIC",
|
|
214
|
+
PRODUCT = "PRODUCT",
|
|
208
215
|
TABLE = "TABLE",
|
|
209
216
|
TEXT = "TEXT"
|
|
210
217
|
}
|
|
@@ -327,6 +334,11 @@ export interface CartLineItemInput {
|
|
|
327
334
|
quantity: number;
|
|
328
335
|
variant: CartLineVariantInput;
|
|
329
336
|
}
|
|
337
|
+
export interface CartLineOptionInput {
|
|
338
|
+
productOptionId: string;
|
|
339
|
+
productOptionsSetId: string;
|
|
340
|
+
values: string[];
|
|
341
|
+
}
|
|
330
342
|
export interface CartLineVariantInput {
|
|
331
343
|
id?: string | null;
|
|
332
344
|
name?: string | null;
|
|
@@ -369,28 +381,6 @@ export interface CustomerAddressDistrictInput {
|
|
|
369
381
|
id?: string | null;
|
|
370
382
|
name?: string | null;
|
|
371
383
|
}
|
|
372
|
-
export interface CustomerAddressInput {
|
|
373
|
-
addressLine1: string;
|
|
374
|
-
addressLine2?: string | null;
|
|
375
|
-
city: CustomerAddressCityInput;
|
|
376
|
-
company?: string | null;
|
|
377
|
-
country: CustomerAddressCountryInput;
|
|
378
|
-
createdAt?: any | null;
|
|
379
|
-
deleted?: boolean | null;
|
|
380
|
-
district?: CustomerAddressDistrictInput | null;
|
|
381
|
-
firstName: string;
|
|
382
|
-
id?: string | null;
|
|
383
|
-
identityNumber?: string | null;
|
|
384
|
-
isDefault?: boolean | null;
|
|
385
|
-
lastName: string;
|
|
386
|
-
phone?: string | null;
|
|
387
|
-
postalCode: string;
|
|
388
|
-
state?: CustomerAddressStateInput | null;
|
|
389
|
-
taxNumber?: string | null;
|
|
390
|
-
taxOffice?: string | null;
|
|
391
|
-
title: string;
|
|
392
|
-
updatedAt?: any | null;
|
|
393
|
-
}
|
|
394
384
|
export interface CustomerAddressStateInput {
|
|
395
385
|
code?: string | null;
|
|
396
386
|
id?: string | null;
|
|
@@ -428,7 +418,7 @@ export interface OrderAddressInput {
|
|
|
428
418
|
isDefault: boolean;
|
|
429
419
|
lastName: string;
|
|
430
420
|
phone?: string | null;
|
|
431
|
-
postalCode
|
|
421
|
+
postalCode?: string | null;
|
|
432
422
|
state?: OrderAddressStateInput | null;
|
|
433
423
|
taxNumber?: string | null;
|
|
434
424
|
taxOffice?: string | null;
|
|
@@ -512,14 +502,37 @@ export interface SaveItemToCartInput {
|
|
|
512
502
|
cartId?: string | null;
|
|
513
503
|
customerId?: string | null;
|
|
514
504
|
item: CartLineItemInput;
|
|
505
|
+
options?: CartLineOptionInput[] | null;
|
|
515
506
|
priceListId?: string | null;
|
|
516
507
|
salesChannelId: string;
|
|
517
508
|
storefrontId: string;
|
|
518
509
|
storefrontRoutingId: string;
|
|
519
510
|
storefrontThemeId: string;
|
|
520
511
|
}
|
|
512
|
+
export interface SaveMyCustomerAddressInput {
|
|
513
|
+
addressLine1: string;
|
|
514
|
+
addressLine2?: string | null;
|
|
515
|
+
city: CustomerAddressCityInput;
|
|
516
|
+
company?: string | null;
|
|
517
|
+
country: CustomerAddressCountryInput;
|
|
518
|
+
createdAt?: any | null;
|
|
519
|
+
deleted?: boolean | null;
|
|
520
|
+
district?: CustomerAddressDistrictInput | null;
|
|
521
|
+
firstName: string;
|
|
522
|
+
id?: string | null;
|
|
523
|
+
identityNumber?: string | null;
|
|
524
|
+
isDefault?: boolean | null;
|
|
525
|
+
lastName: string;
|
|
526
|
+
phone?: string | null;
|
|
527
|
+
postalCode?: string | null;
|
|
528
|
+
state?: CustomerAddressStateInput | null;
|
|
529
|
+
taxNumber?: string | null;
|
|
530
|
+
taxOffice?: string | null;
|
|
531
|
+
title: string;
|
|
532
|
+
updatedAt?: any | null;
|
|
533
|
+
}
|
|
521
534
|
export interface SaveMyCustomerInput {
|
|
522
|
-
addresses?:
|
|
535
|
+
addresses?: SaveMyCustomerAddressInput[] | null;
|
|
523
536
|
firstName: string;
|
|
524
537
|
lastName: string;
|
|
525
538
|
phone?: string | null;
|
|
@@ -1,22 +1,35 @@
|
|
|
1
|
-
import { IkasProductDetail, IkasOrderLineItem, IkasCheckout, IkasCategory } from "../models/index";
|
|
1
|
+
import { IkasProductDetail, IkasOrderLineItem, IkasCheckout, IkasCategory, IkasThemePageType, IkasOrderTransaction } from "../models/index";
|
|
2
2
|
import { CheckoutStep } from "../components/checkout/model";
|
|
3
3
|
import { IkasCart } from "../models/data/cart/index";
|
|
4
|
+
import { IkasEventSubscriber } from "./events";
|
|
5
|
+
import { IkasContactForm } from "../store/customer";
|
|
4
6
|
export declare class Analytics {
|
|
7
|
+
static subscribers: IkasEventSubscriber[];
|
|
5
8
|
constructor();
|
|
6
|
-
static
|
|
9
|
+
static getCustomerInfo(): Promise<{
|
|
10
|
+
consentGranted: boolean;
|
|
11
|
+
id: string;
|
|
12
|
+
firstName: string;
|
|
13
|
+
lastName: string;
|
|
14
|
+
email: string;
|
|
15
|
+
phone: string | null | undefined;
|
|
16
|
+
} | null>;
|
|
17
|
+
static pageView(pageType: IkasThemePageType): Promise<void>;
|
|
7
18
|
static productView(productDetail: IkasProductDetail): void;
|
|
8
|
-
static addToCart(item: IkasOrderLineItem, quantity: number, eventId: string): void;
|
|
9
|
-
static removeFromCart(item: IkasProductDetail | IkasOrderLineItem, quantity: number): void;
|
|
19
|
+
static addToCart(item: IkasOrderLineItem, quantity: number, eventId: string, cart: IkasCart): void;
|
|
20
|
+
static removeFromCart(item: IkasProductDetail | IkasOrderLineItem, quantity: number, cart: IkasCart): void;
|
|
10
21
|
static beginCheckout(checkout: IkasCheckout): void;
|
|
11
|
-
static purchase(checkout: IkasCheckout,
|
|
22
|
+
static purchase(checkout: IkasCheckout, transaction: IkasOrderTransaction): void;
|
|
12
23
|
static checkoutStep(checkout: IkasCheckout, step: CheckoutStep): void;
|
|
13
24
|
static disableHTML(): void;
|
|
14
|
-
static addToWishlist(
|
|
25
|
+
static addToWishlist(productId: string): void;
|
|
15
26
|
static search(searchKeyword: string): void;
|
|
16
|
-
static completeRegistration(): void;
|
|
17
|
-
static customerLogin(
|
|
18
|
-
static
|
|
27
|
+
static completeRegistration(email: string): void;
|
|
28
|
+
static customerLogin(): Promise<void>;
|
|
29
|
+
static customerLogout(): Promise<void>;
|
|
30
|
+
static customerVisit(): Promise<void>;
|
|
19
31
|
static viewCart(cart: IkasCart | null | undefined): void;
|
|
20
32
|
static viewCategory(categoryPath: string, category: IkasCategory): void;
|
|
21
|
-
static
|
|
33
|
+
static viewSearchResults(searchKeyword: string, productDetails: IkasProductDetail[]): void;
|
|
34
|
+
static contactForm(form: IkasContactForm): void;
|
|
22
35
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare function IkasEvents(initialSubscribers: IkasEventSubscriber[]): {
|
|
2
|
+
subscribe: (subscriber: any) => void;
|
|
3
|
+
unsubscribe: (id: string) => void;
|
|
4
|
+
};
|
|
5
|
+
export declare function initIkasEvents(): void;
|
|
6
|
+
export declare function getIkasEventsScript(): string;
|
|
7
|
+
export declare function isValidIkasEventSubscriber(data: any): boolean;
|
|
8
|
+
export declare enum IkasEventType {
|
|
9
|
+
PAGE_VIEW = "PAGE_VIEW",
|
|
10
|
+
PRODUCT_VIEW = "PRODUCT_VIEW",
|
|
11
|
+
ADD_TO_CART = "ADD_TO_CART",
|
|
12
|
+
REMOVE_FROM_CART = "REMOVE_FROM_CART",
|
|
13
|
+
BEGIN_CHECKOUT = "BEGIN_CHECKOUT",
|
|
14
|
+
CHECKOUT_STEP = "CHECKOUT_STEP",
|
|
15
|
+
COMPLETE_CHECKOUT = "COMPLETE_CHECKOUT",
|
|
16
|
+
ADD_TO_WISHLIST = "ADD_TO_WISHLIST",
|
|
17
|
+
SEARCH = "SEARCH",
|
|
18
|
+
CUSTOMER_REGISTER = "CUSTOMER_REGISTER",
|
|
19
|
+
CUSTOMER_LOGIN = "CUSTOMER_LOGIN",
|
|
20
|
+
CUSTOMER_LOGOUT = "CUSTOMER_LOGOUT",
|
|
21
|
+
CUSTOMER_VISIT = "CUSTOMER_VISIT",
|
|
22
|
+
VIEW_CART = "VIEW_CART",
|
|
23
|
+
VIEW_CATEGORY = "VIEW_CATEGORY",
|
|
24
|
+
VIEW_SEARCH_RESULTS = "VIEW_SEARCH_RESULTS",
|
|
25
|
+
CONTACT_FORM = "CONTACT_FORM"
|
|
26
|
+
}
|
|
27
|
+
export declare type IkasEventSubscriber = {
|
|
28
|
+
id: string;
|
|
29
|
+
callback: (event: IkasEvent) => void;
|
|
30
|
+
};
|
|
31
|
+
export declare type IkasEvent = {
|
|
32
|
+
type: IkasEventType;
|
|
33
|
+
data: any;
|
|
34
|
+
};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { StringFilterInput, PaginationInput, CategoryProductsOrderTypeEnum, HTMLMetaDataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listProductBrand_listProductBrand_data_metaData_translations {
|
|
3
|
+
__typename: "HTMLMetaDataTranslation";
|
|
4
|
+
description: string | null;
|
|
5
|
+
locale: string;
|
|
6
|
+
pageTitle: string | null;
|
|
7
|
+
}
|
|
2
8
|
export interface listProductBrand_listProductBrand_data_metaData {
|
|
3
9
|
__typename: "HTMLMetaData";
|
|
4
10
|
slug: string;
|
|
@@ -7,6 +13,7 @@ export interface listProductBrand_listProductBrand_data_metaData {
|
|
|
7
13
|
targetId: string | null;
|
|
8
14
|
targetType: HTMLMetaDataTargetTypeEnum | null;
|
|
9
15
|
redirectTo: string | null;
|
|
16
|
+
translations: listProductBrand_listProductBrand_data_metaData_translations[] | null;
|
|
10
17
|
}
|
|
11
18
|
export interface listProductBrand_listProductBrand_data_translations {
|
|
12
19
|
__typename: "ProductBrandTranslation";
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { SaveItemToCartInput, AmountTypeEnum, OrderLineItemStatusEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface saveItemToCart_saveItemToCart_taxLines {
|
|
3
|
+
__typename: "OrderTaxLine";
|
|
4
|
+
price: number;
|
|
5
|
+
rate: number;
|
|
6
|
+
}
|
|
2
7
|
export interface saveItemToCart_saveItemToCart_items_discount {
|
|
3
8
|
__typename: "OrderLineDiscount";
|
|
4
9
|
amount: number;
|
|
@@ -58,6 +63,7 @@ export interface saveItemToCart_saveItemToCart {
|
|
|
58
63
|
storefrontId: string | null;
|
|
59
64
|
storefrontRoutingId: string | null;
|
|
60
65
|
storefrontThemeId: string | null;
|
|
66
|
+
taxLines: saveItemToCart_saveItemToCart_taxLines[] | null;
|
|
61
67
|
items: saveItemToCart_saveItemToCart_items[];
|
|
62
68
|
}
|
|
63
69
|
export interface saveItemToCart {
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { StringFilterInput, PaginationInput, CategoryProductsOrderTypeEnum, HTMLMetaDataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listCategory_listCategory_data_metaData_translations {
|
|
3
|
+
__typename: "HTMLMetaDataTranslation";
|
|
4
|
+
description: string | null;
|
|
5
|
+
locale: string;
|
|
6
|
+
pageTitle: string | null;
|
|
7
|
+
}
|
|
2
8
|
export interface listCategory_listCategory_data_metaData {
|
|
3
9
|
__typename: "HTMLMetaData";
|
|
4
10
|
slug: string;
|
|
@@ -7,6 +13,7 @@ export interface listCategory_listCategory_data_metaData {
|
|
|
7
13
|
targetId: string | null;
|
|
8
14
|
targetType: HTMLMetaDataTargetTypeEnum | null;
|
|
9
15
|
redirectTo: string | null;
|
|
16
|
+
translations: listCategory_listCategory_data_metaData_translations[] | null;
|
|
10
17
|
}
|
|
11
18
|
export interface listCategory_listCategory_data_translations {
|
|
12
19
|
__typename: "CategoryTranslation";
|
|
@@ -45,7 +45,7 @@ export interface getCheckoutById_getCheckoutById_billingAddress {
|
|
|
45
45
|
isDefault: boolean;
|
|
46
46
|
lastName: string;
|
|
47
47
|
phone: string | null;
|
|
48
|
-
postalCode: string;
|
|
48
|
+
postalCode: string | null;
|
|
49
49
|
state: getCheckoutById_getCheckoutById_billingAddress_state | null;
|
|
50
50
|
taxNumber: string | null;
|
|
51
51
|
taxOffice: string | null;
|
|
@@ -95,7 +95,7 @@ export interface getCheckoutById_getCheckoutById_shippingAddress {
|
|
|
95
95
|
isDefault: boolean;
|
|
96
96
|
lastName: string;
|
|
97
97
|
phone: string | null;
|
|
98
|
-
postalCode: string;
|
|
98
|
+
postalCode: string | null;
|
|
99
99
|
state: getCheckoutById_getCheckoutById_shippingAddress_state | null;
|
|
100
100
|
taxNumber: string | null;
|
|
101
101
|
taxOffice: string | null;
|
|
@@ -108,6 +108,11 @@ export interface getCheckoutById_getCheckoutById_shippingLines {
|
|
|
108
108
|
shippingSettingsId: string | null;
|
|
109
109
|
shippingZoneRateId: string | null;
|
|
110
110
|
}
|
|
111
|
+
export interface getCheckoutById_getCheckoutById_cart_taxLines {
|
|
112
|
+
__typename: "OrderTaxLine";
|
|
113
|
+
price: number;
|
|
114
|
+
rate: number;
|
|
115
|
+
}
|
|
111
116
|
export interface getCheckoutById_getCheckoutById_cart_items_discount {
|
|
112
117
|
__typename: "OrderLineDiscount";
|
|
113
118
|
amount: number;
|
|
@@ -160,6 +165,7 @@ export interface getCheckoutById_getCheckoutById_cart {
|
|
|
160
165
|
dueDate: any;
|
|
161
166
|
id: string;
|
|
162
167
|
itemCount: number;
|
|
168
|
+
taxLines: getCheckoutById_getCheckoutById_cart_taxLines[] | null;
|
|
163
169
|
items: getCheckoutById_getCheckoutById_cart_items[];
|
|
164
170
|
merchantId: string;
|
|
165
171
|
status: CartStatusEnum;
|
|
@@ -36,7 +36,7 @@ export interface getOrder_getOrder_billingAddress {
|
|
|
36
36
|
isDefault: boolean;
|
|
37
37
|
lastName: string;
|
|
38
38
|
phone: string | null;
|
|
39
|
-
postalCode: string;
|
|
39
|
+
postalCode: string | null;
|
|
40
40
|
state: getOrder_getOrder_billingAddress_state | null;
|
|
41
41
|
taxNumber: string | null;
|
|
42
42
|
taxOffice: string | null;
|
|
@@ -153,7 +153,7 @@ export interface getOrder_getOrder_shippingAddress {
|
|
|
153
153
|
taxOffice: string | null;
|
|
154
154
|
taxNumber: string | null;
|
|
155
155
|
state: getOrder_getOrder_shippingAddress_state | null;
|
|
156
|
-
postalCode: string;
|
|
156
|
+
postalCode: string | null;
|
|
157
157
|
phone: string | null;
|
|
158
158
|
lastName: string;
|
|
159
159
|
isDefault: boolean;
|
|
@@ -24,6 +24,7 @@ export interface listCheckoutSettings_listCheckoutSettings {
|
|
|
24
24
|
updatedAt: any | null;
|
|
25
25
|
isGiftPackageEnabled: boolean | null;
|
|
26
26
|
giftPackagePriceList: listCheckoutSettings_listCheckoutSettings_giftPackagePriceList[] | null;
|
|
27
|
+
isShowPostalCode: boolean | null;
|
|
27
28
|
}
|
|
28
29
|
export interface listCheckoutSettings {
|
|
29
30
|
listCheckoutSettings: listCheckoutSettings_listCheckoutSettings[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StringFilterInput, PaymentMethodEnum, PaymentGatewayTransactionFeeTypeEnum, PaymentGatewayAdditionalPriceTypeEnum } from "../../../__generated__/global-types";
|
|
1
|
+
import { StringFilterInput, PaymentMethodEnum, PaymentGatewayTypeEnum, PaymentGatewayTransactionFeeTypeEnum, PaymentGatewayAdditionalPriceTypeEnum } from "../../../__generated__/global-types";
|
|
2
2
|
export interface listPaymentGateway_listPaymentGateway_paymentMethods {
|
|
3
3
|
__typename: "PaymentGatewayPaymentMethod";
|
|
4
4
|
name: string;
|
|
@@ -26,6 +26,8 @@ export interface listPaymentGateway_listPaymentGateway {
|
|
|
26
26
|
description: string | null;
|
|
27
27
|
testMode: boolean | null;
|
|
28
28
|
code: string;
|
|
29
|
+
type: PaymentGatewayTypeEnum;
|
|
30
|
+
logoUrl: string | null;
|
|
29
31
|
additionalPrices: listPaymentGateway_listPaymentGateway_additionalPrices[] | null;
|
|
30
32
|
translations: listPaymentGateway_listPaymentGateway_translations[] | null;
|
|
31
33
|
}
|
|
@@ -36,7 +36,7 @@ export interface createOrderRefundRequest_createOrderRefundRequest_billingAddres
|
|
|
36
36
|
isDefault: boolean;
|
|
37
37
|
lastName: string;
|
|
38
38
|
phone: string | null;
|
|
39
|
-
postalCode: string;
|
|
39
|
+
postalCode: string | null;
|
|
40
40
|
state: createOrderRefundRequest_createOrderRefundRequest_billingAddress_state | null;
|
|
41
41
|
taxNumber: string | null;
|
|
42
42
|
taxOffice: string | null;
|
|
@@ -153,7 +153,7 @@ export interface createOrderRefundRequest_createOrderRefundRequest_shippingAddre
|
|
|
153
153
|
taxOffice: string | null;
|
|
154
154
|
taxNumber: string | null;
|
|
155
155
|
state: createOrderRefundRequest_createOrderRefundRequest_shippingAddress_state | null;
|
|
156
|
-
postalCode: string;
|
|
156
|
+
postalCode: string | null;
|
|
157
157
|
phone: string | null;
|
|
158
158
|
lastName: string;
|
|
159
159
|
isDefault: boolean;
|
|
@@ -36,7 +36,7 @@ export interface customerLogin_customerLogin_customer_addresses {
|
|
|
36
36
|
firstName: string;
|
|
37
37
|
isDefault: boolean | null;
|
|
38
38
|
lastName: string;
|
|
39
|
-
postalCode: string;
|
|
39
|
+
postalCode: string | null;
|
|
40
40
|
state: customerLogin_customerLogin_customer_addresses_state | null;
|
|
41
41
|
taxNumber: string | null;
|
|
42
42
|
taxOffice: string | null;
|
|
@@ -36,7 +36,7 @@ export interface getCustomerOrders_getCustomerOrders_billingAddress {
|
|
|
36
36
|
isDefault: boolean;
|
|
37
37
|
lastName: string;
|
|
38
38
|
phone: string | null;
|
|
39
|
-
postalCode: string;
|
|
39
|
+
postalCode: string | null;
|
|
40
40
|
state: getCustomerOrders_getCustomerOrders_billingAddress_state | null;
|
|
41
41
|
taxNumber: string | null;
|
|
42
42
|
taxOffice: string | null;
|
|
@@ -153,7 +153,7 @@ export interface getCustomerOrders_getCustomerOrders_shippingAddress {
|
|
|
153
153
|
taxOffice: string | null;
|
|
154
154
|
taxNumber: string | null;
|
|
155
155
|
state: getCustomerOrders_getCustomerOrders_shippingAddress_state | null;
|
|
156
|
-
postalCode: string;
|
|
156
|
+
postalCode: string | null;
|
|
157
157
|
phone: string | null;
|
|
158
158
|
lastName: string;
|
|
159
159
|
isDefault: boolean;
|
|
@@ -8,7 +8,7 @@ export interface getLastViewedProducts_getLastViewedProducts {
|
|
|
8
8
|
products: getLastViewedProducts_getLastViewedProducts_products[];
|
|
9
9
|
}
|
|
10
10
|
export interface getLastViewedProducts {
|
|
11
|
-
getLastViewedProducts: getLastViewedProducts_getLastViewedProducts;
|
|
11
|
+
getLastViewedProducts: getLastViewedProducts_getLastViewedProducts | null;
|
|
12
12
|
}
|
|
13
13
|
export interface getLastViewedProductsVariables {
|
|
14
14
|
customerId?: string | null;
|
|
@@ -35,7 +35,7 @@ export interface getMyCustomer_getMyCustomer_addresses {
|
|
|
35
35
|
firstName: string;
|
|
36
36
|
isDefault: boolean | null;
|
|
37
37
|
lastName: string;
|
|
38
|
-
postalCode: string;
|
|
38
|
+
postalCode: string | null;
|
|
39
39
|
state: getMyCustomer_getMyCustomer_addresses_state | null;
|
|
40
40
|
taxNumber: string | null;
|
|
41
41
|
taxOffice: string | null;
|
|
@@ -35,7 +35,7 @@ export interface registerCustomer_registerCustomer_customer_addresses {
|
|
|
35
35
|
firstName: string;
|
|
36
36
|
isDefault: boolean | null;
|
|
37
37
|
lastName: string;
|
|
38
|
-
postalCode: string;
|
|
38
|
+
postalCode: string | null;
|
|
39
39
|
state: registerCustomer_registerCustomer_customer_addresses_state | null;
|
|
40
40
|
taxNumber: string | null;
|
|
41
41
|
taxOffice: string | null;
|
|
@@ -35,7 +35,7 @@ export interface saveMyCustomer_saveMyCustomer_addresses {
|
|
|
35
35
|
firstName: string;
|
|
36
36
|
isDefault: boolean | null;
|
|
37
37
|
lastName: string;
|
|
38
|
-
postalCode: string;
|
|
38
|
+
postalCode: string | null;
|
|
39
39
|
state: saveMyCustomer_saveMyCustomer_addresses_state | null;
|
|
40
40
|
identityNumber: string | null;
|
|
41
41
|
taxNumber: string | null;
|
|
@@ -45,7 +45,7 @@ export interface getStorefront_getStorefront {
|
|
|
45
45
|
themes: getStorefront_getStorefront_themes[];
|
|
46
46
|
}
|
|
47
47
|
export interface getStorefront {
|
|
48
|
-
getStorefront: getStorefront_getStorefront;
|
|
48
|
+
getStorefront: getStorefront_getStorefront | null;
|
|
49
49
|
}
|
|
50
50
|
export interface getStorefrontVariables {
|
|
51
51
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { IkasThemeSettings } from "../../models/index";
|
|
3
|
-
import { IkasPageComponentPropValue } from "../../
|
|
3
|
+
import { IkasPageComponentPropValue } from "../../providers/page-data-get";
|
|
4
4
|
declare type Props = {
|
|
5
5
|
pageComponentPropValue: IkasPageComponentPropValue;
|
|
6
6
|
index: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { IkasThemePageType, IkasThemeSettings } from "../../models/index";
|
|
3
|
-
import { IkasPageComponentPropValue } from "../../
|
|
3
|
+
import { IkasPageComponentPropValue } from "../../providers/page-data-get";
|
|
4
4
|
export declare type IkasPageProps = {
|
|
5
5
|
propValuesStr: string;
|
|
6
6
|
pageSpecificDataStr: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import IkasPageEditorViewModel from "./model";
|
|
3
3
|
import { IkasThemePageComponent } from "../../models/index";
|
|
4
4
|
declare type Props = {
|
|
5
|
-
vm:
|
|
5
|
+
vm: IkasPageEditorViewModel;
|
|
6
6
|
pageComponent: IkasThemePageComponent;
|
|
7
7
|
};
|
|
8
8
|
export declare const ThemeEditorComponent: React.FC<Props>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { NextRouter } from "next/router";
|
|
2
2
|
import { IkasThemePage, IkasThemePageComponent, IkasTheme, IkasThemeComponent } from "../../models/index";
|
|
3
|
-
import { IkasPageDataProvider } from "../../
|
|
3
|
+
import { IkasPageDataProvider } from "../../providers/page-data-get";
|
|
4
4
|
import { IkasThemePageSpecification } from "../../models/theme/page/index";
|
|
5
|
-
export default class
|
|
5
|
+
export default class IkasPageEditorViewModel {
|
|
6
6
|
theme?: IkasTheme | null;
|
|
7
7
|
page?: IkasThemePage | null;
|
|
8
8
|
selectedPageComponentId?: string | null;
|