@ikas/storefront 0.0.168-alpha.9 → 0.0.169-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/__generated__/global-types.d.ts +39 -24
- package/build/analytics/analytics.d.ts +1 -0
- package/build/analytics/events.d.ts +1 -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/components/checkout/components/external.d.ts +6 -0
- package/build/components/image/index.d.ts +1 -0
- package/build/index.es.js +205 -100
- package/build/index.js +205 -99
- package/build/models/data/payment-gateway/index.d.ts +6 -0
- package/build/models/ui/index.d.ts +1 -0
- package/build/models/ui/product-list/index.d.ts +1 -1
- package/build/store/cart.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -408,6 +398,8 @@ export interface OrderAddressCityInput {
|
|
|
408
398
|
export interface OrderAddressCountryInput {
|
|
409
399
|
code?: string | null;
|
|
410
400
|
id?: string | null;
|
|
401
|
+
iso2?: string | null;
|
|
402
|
+
iso3?: string | null;
|
|
411
403
|
name: string;
|
|
412
404
|
}
|
|
413
405
|
export interface OrderAddressDistrictInput {
|
|
@@ -428,7 +420,7 @@ export interface OrderAddressInput {
|
|
|
428
420
|
isDefault: boolean;
|
|
429
421
|
lastName: string;
|
|
430
422
|
phone?: string | null;
|
|
431
|
-
postalCode
|
|
423
|
+
postalCode?: string | null;
|
|
432
424
|
state?: OrderAddressStateInput | null;
|
|
433
425
|
taxNumber?: string | null;
|
|
434
426
|
taxOffice?: string | null;
|
|
@@ -512,14 +504,37 @@ export interface SaveItemToCartInput {
|
|
|
512
504
|
cartId?: string | null;
|
|
513
505
|
customerId?: string | null;
|
|
514
506
|
item: CartLineItemInput;
|
|
507
|
+
options?: CartLineOptionInput[] | null;
|
|
515
508
|
priceListId?: string | null;
|
|
516
509
|
salesChannelId: string;
|
|
517
510
|
storefrontId: string;
|
|
518
511
|
storefrontRoutingId: string;
|
|
519
512
|
storefrontThemeId: string;
|
|
520
513
|
}
|
|
514
|
+
export interface SaveMyCustomerAddressInput {
|
|
515
|
+
addressLine1: string;
|
|
516
|
+
addressLine2?: string | null;
|
|
517
|
+
city: CustomerAddressCityInput;
|
|
518
|
+
company?: string | null;
|
|
519
|
+
country: CustomerAddressCountryInput;
|
|
520
|
+
createdAt?: any | null;
|
|
521
|
+
deleted?: boolean | null;
|
|
522
|
+
district?: CustomerAddressDistrictInput | null;
|
|
523
|
+
firstName: string;
|
|
524
|
+
id?: string | null;
|
|
525
|
+
identityNumber?: string | null;
|
|
526
|
+
isDefault?: boolean | null;
|
|
527
|
+
lastName: string;
|
|
528
|
+
phone?: string | null;
|
|
529
|
+
postalCode?: string | null;
|
|
530
|
+
state?: CustomerAddressStateInput | null;
|
|
531
|
+
taxNumber?: string | null;
|
|
532
|
+
taxOffice?: string | null;
|
|
533
|
+
title: string;
|
|
534
|
+
updatedAt?: any | null;
|
|
535
|
+
}
|
|
521
536
|
export interface SaveMyCustomerInput {
|
|
522
|
-
addresses?:
|
|
537
|
+
addresses?: SaveMyCustomerAddressInput[] | null;
|
|
523
538
|
firstName: string;
|
|
524
539
|
lastName: string;
|
|
525
540
|
phone?: string | null;
|
|
@@ -31,5 +31,6 @@ export declare class Analytics {
|
|
|
31
31
|
static viewCart(cart: IkasCart | null | undefined): void;
|
|
32
32
|
static viewCategory(categoryPath: string, category: IkasCategory): void;
|
|
33
33
|
static viewSearchResults(searchKeyword: string, productDetails: IkasProductDetail[]): void;
|
|
34
|
+
static viewListing(productDetails: IkasProductDetail[]): void;
|
|
34
35
|
static contactForm(form: IkasContactForm): void;
|
|
35
36
|
}
|
|
@@ -22,6 +22,7 @@ export declare enum IkasEventType {
|
|
|
22
22
|
VIEW_CART = "VIEW_CART",
|
|
23
23
|
VIEW_CATEGORY = "VIEW_CATEGORY",
|
|
24
24
|
VIEW_SEARCH_RESULTS = "VIEW_SEARCH_RESULTS",
|
|
25
|
+
VIEW_LISTING = "VIEW_LISTING",
|
|
25
26
|
CONTACT_FORM = "CONTACT_FORM"
|
|
26
27
|
}
|
|
27
28
|
export declare type IkasEventSubscriber = {
|
|
@@ -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;
|