@ikas/storefront 0.0.16-0.alpha-1 → 0.0.16
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 +8 -214
- package/build/api/brand/__generated__/listProductBrand.d.ts +2 -3
- package/build/api/brand/index.d.ts +0 -1
- package/build/api/cart/__generated__/getCart.d.ts +3 -7
- package/build/api/cart/__generated__/saveItemToCart.d.ts +3 -6
- package/build/api/category/__generated__/listCategory.d.ts +2 -4
- package/build/api/category/index.d.ts +0 -3
- package/build/api/checkout/__generated__/checkStocks.d.ts +3 -3
- package/build/api/checkout/__generated__/getCheckoutByCartId.d.ts +1 -1
- package/build/api/checkout/__generated__/getCheckoutById.d.ts +4 -5
- package/build/api/checkout/__generated__/listPaymentGateway.d.ts +2 -14
- package/build/api/checkout/__generated__/saveCheckout.d.ts +1 -1
- package/build/api/checkout/index.d.ts +3 -11
- package/build/api/city/__generated__/listCity.d.ts +1 -1
- package/build/api/country/__generated__/getAvailableShippingCountries.d.ts +0 -3
- package/build/api/country/__generated__/listCountry.d.ts +1 -8
- package/build/api/country/index.d.ts +2 -3
- package/build/api/customer/__generated__/customerLogin.d.ts +3 -5
- package/build/api/customer/__generated__/getCustomerOrders.d.ts +4 -3
- package/build/api/customer/__generated__/getMyCustomer.d.ts +2 -3
- package/build/api/customer/__generated__/listOrderTransactions.d.ts +1 -1
- package/build/api/customer/__generated__/registerCustomer.d.ts +2 -2
- package/build/api/customer/__generated__/saveMyCustomer.d.ts +2 -3
- package/build/api/customer/index.d.ts +0 -15
- package/build/api/district/__generated__/listDistrict.d.ts +1 -1
- package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +1 -2
- package/build/api/html-meta-data/index.d.ts +1 -1
- package/build/api/index.d.ts +3 -4
- package/build/api/merchant/__generated__/listMerchantSettings.d.ts +1 -1
- package/build/api/product/__generated__/listProduct.d.ts +90 -0
- package/build/api/product/index.d.ts +15 -0
- package/build/api/product-attribute/__generated__/listProductAttribute.d.ts +2 -2
- package/build/api/product-stock-location/__generated__/listProductStockLocation.d.ts +13 -0
- package/build/api/product-stock-location/index.d.ts +4 -0
- package/build/api/state/__generated__/listState.d.ts +1 -1
- package/build/api/stock-location/__generated__/listStockLocation.d.ts +1 -1
- package/build/api/storefront/__generated__/getStorefront.d.ts +12 -41
- package/build/api/storefront/index.d.ts +1 -1
- package/build/api/theme/index.d.ts +4 -0
- package/build/api/variant-type/__generated__/listVariantType.d.ts +2 -2
- package/build/components/checkout/components/address-form/index.d.ts +0 -3
- package/build/components/checkout/components/address-form/model.d.ts +0 -11
- package/build/components/checkout/components/button/index.d.ts +1 -4
- package/build/components/checkout/components/checkbox/index.d.ts +1 -2
- package/build/components/checkout/components/error-container/payment-error/index.d.ts +0 -2
- package/build/components/checkout/components/form-item/model.d.ts +2 -11
- package/build/components/checkout/index.d.ts +0 -5
- package/build/components/checkout/model.d.ts +5 -18
- package/build/components/gtm/functions.d.ts +164 -0
- package/build/components/gtm/index.d.ts +7 -0
- package/build/components/hoc/ThemeComponent.d.ts +2 -2
- package/build/components/index.d.ts +2 -1
- package/build/components/page/head.d.ts +0 -5
- package/build/components/page/index.d.ts +1 -6
- package/build/components/page-editor/model.d.ts +2 -6
- package/build/index.d.ts +0 -1
- package/build/index.es.js +10449 -18854
- package/build/index.js +10441 -18882
- package/build/models/data/brand/index.d.ts +1 -1
- package/build/models/data/cart/index.d.ts +0 -9
- package/build/models/data/category/index.d.ts +1 -22
- package/build/models/data/checkout/index.d.ts +0 -5
- package/build/models/data/country/index.d.ts +0 -2
- package/build/models/data/customer/index.d.ts +0 -7
- package/build/models/data/image/index.d.ts +0 -1
- package/build/models/data/index.d.ts +1 -5
- package/build/models/data/order/address/index.d.ts +0 -6
- package/build/models/data/order/index.d.ts +1 -19
- package/build/models/data/order/line-item/index.d.ts +0 -18
- package/build/models/data/payment-gateway/index.d.ts +2 -26
- package/build/models/data/product/attribute-value/index.d.ts +1 -15
- package/build/models/data/product/index.d.ts +1 -2
- package/build/models/data/product/variant/index.d.ts +0 -1
- package/build/models/data/product/variant/price/index.d.ts +0 -2
- package/build/models/data/product-attribute/index.d.ts +2 -5
- package/build/models/data/storefront/index.d.ts +6 -17
- package/build/models/data/storefront/stockfront-location/index.d.ts +5 -0
- package/build/models/data/storefront/stockfront-route/index.d.ts +5 -0
- package/build/models/data/storefront/{domain → storefront-domain}/index.d.ts +0 -1
- package/build/models/data/storefront/storefront-region/index.d.ts +18 -0
- package/build/models/data/variant-type/variant-value/index.d.ts +1 -1
- package/build/models/theme/component/prop/index.d.ts +1 -17
- package/build/models/theme/index.d.ts +0 -4
- package/build/models/theme/page/component/prop-value/product-list.d.ts +0 -2
- package/build/models/theme/page/index.d.ts +1 -14
- package/build/models/theme/theme.d.ts +0 -4
- package/build/models/ui/brand-list/index.d.ts +0 -3
- package/build/models/ui/category-list/index.d.ts +0 -3
- package/build/models/ui/index.d.ts +2 -12
- package/build/models/ui/product-detail/index.d.ts +3 -14
- package/build/models/ui/product-list/filter.d.ts +18 -0
- package/build/models/ui/product-list/index.d.ts +14 -62
- package/build/pages/{pages/[slug].d.ts → [slug]/[secondSlug].d.ts} +0 -2
- package/build/pages/[slug]/index.d.ts +3 -9
- package/build/pages/account/addresses.d.ts +0 -2
- package/build/pages/account/forgot-password.d.ts +0 -3
- package/build/pages/account/index.d.ts +0 -2
- package/build/pages/account/login.d.ts +0 -3
- package/build/pages/account/orders/[id].d.ts +0 -2
- package/build/pages/account/orders/index.d.ts +0 -2
- package/build/pages/account/recover-password.d.ts +0 -3
- package/build/pages/account/register.d.ts +0 -3
- package/build/pages/checkout/[id].d.ts +0 -5
- package/build/pages/home.d.ts +0 -3
- package/build/pages/index.d.ts +2 -8
- package/build/store/base.d.ts +0 -17
- package/build/store/customer.d.ts +1 -31
- package/build/storefront/index.d.ts +3 -29
- package/build/utils/helper.d.ts +0 -1
- package/build/utils/index.d.ts +0 -1
- package/build/utils/providers/page-data.d.ts +5 -60
- package/build/utils/providers/prop-value/boolean.d.ts +1 -1
- package/build/utils/providers/prop-value/category.d.ts +2 -2
- package/build/utils/providers/prop-value/product-detail.d.ts +2 -2
- package/build/utils/providers/prop-value/product-list.d.ts +3 -1
- package/package.json +3 -3
- package/build/analytics/analytics.d.ts +0 -22
- package/build/analytics/facebookPixel.d.ts +0 -15
- package/build/analytics/googleTagManager.d.ts +0 -201
- package/build/analytics/head/index.d.ts +0 -7
- package/build/analytics/index.d.ts +0 -2
- package/build/api/blog/__generated__/getBlog.d.ts +0 -83
- package/build/api/blog/__generated__/listBlog.d.ts +0 -86
- package/build/api/blog/__generated__/listBlogCategory.d.ts +0 -38
- package/build/api/blog/__generated__/listBlogMetaData.d.ts +0 -29
- package/build/api/blog/index.d.ts +0 -32
- package/build/api/category/__generated__/listCategoryPaths.d.ts +0 -23
- package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +0 -26
- package/build/api/contact-form/__generated__/sendContactFormToMerchant.d.ts +0 -9
- package/build/api/contact-form/index.d.ts +0 -10
- package/build/api/country/__generated__/getMyCountry.d.ts +0 -3
- package/build/api/customer/__generated__/createCustomerEmailSubscription.d.ts +0 -11
- package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +0 -215
- package/build/api/customer/__generated__/getLastViewedProducts.d.ts +0 -15
- package/build/api/customer/__generated__/saveLastViewedProducts.d.ts +0 -11
- package/build/api/favorite-product/__generated__/isFavoriteProduct.d.ts +0 -6
- package/build/api/favorite-product/__generated__/listFavoriteProducts.d.ts +0 -12
- package/build/api/favorite-product/__generated__/saveFavoriteProduct.d.ts +0 -7
- package/build/api/favorite-product/index.d.ts +0 -6
- package/build/api/product-search/__generated__/getProductFilterData.d.ts +0 -50
- package/build/api/product-search/__generated__/searchProducts.d.ts +0 -26
- package/build/api/product-search/index.d.ts +0 -20
- package/build/components/checkout/components/cart-summary/cross.d.ts +0 -6
- package/build/components/checkout/components/cart-summary/tag.d.ts +0 -6
- package/build/components/checkout/components/error-container/customer-login-required-error/index.d.ts +0 -6
- package/build/components/image/index.d.ts +0 -35
- package/build/models/data/blog/index.d.ts +0 -67
- package/build/models/data/checkout-settings/index.d.ts +0 -18
- package/build/models/data/contact-form/index.d.ts +0 -7
- package/build/models/data/favorite-product/index.d.ts +0 -6
- package/build/models/data/order/refund/index.d.ts +0 -6
- package/build/models/data/order/refund/refund-line-item/index.d.ts +0 -5
- package/build/models/data/product-attribute/product-attribute-table-cell/index.d.ts +0 -5
- package/build/models/data/product-attribute/product-attribute-table-template/index.d.ts +0 -6
- package/build/models/data/product-filter/index.d.ts +0 -102
- package/build/models/data/product-tag/index.d.ts +0 -5
- package/build/models/data/sales-channel/index.d.ts +0 -18
- package/build/models/data/simple-product/index.d.ts +0 -135
- package/build/models/data/storefront/localization/index.d.ts +0 -7
- package/build/models/data/storefront/routing/index.d.ts +0 -9
- package/build/models/data/storefront/theme/index.d.ts +0 -13
- package/build/models/data/storefront/theme-localization/index.d.ts +0 -12
- package/build/models/theme/custom-data/index.d.ts +0 -24
- package/build/models/theme/page/component/prop-value/attribute-list.d.ts +0 -7
- package/build/models/theme/page/component/prop-value/attribute.d.ts +0 -7
- package/build/models/theme/page/component/prop-value/blog-list.d.ts +0 -9
- package/build/models/theme/page/component/prop-value/blog.d.ts +0 -5
- package/build/models/theme/settings/index.d.ts +0 -7
- package/build/models/theme/settings/prop/color/index.d.ts +0 -7
- package/build/models/theme/settings/prop/favicon/index.d.ts +0 -4
- package/build/models/ui/blog-list/index.d.ts +0 -56
- package/build/models/ui/component-renderer/index.d.ts +0 -7
- package/build/models/ui/validator/form/account-info.d.ts +0 -40
- package/build/models/ui/validator/form/address.d.ts +0 -75
- package/build/models/ui/validator/form/contact-form.d.ts +0 -45
- package/build/models/ui/validator/form/forgot-password.d.ts +0 -29
- package/build/models/ui/validator/form/login.d.ts +0 -35
- package/build/models/ui/validator/form/recover-password.d.ts +0 -36
- package/build/models/ui/validator/form/register.d.ts +0 -45
- package/build/models/ui/validator/index.d.ts +0 -27
- package/build/models/ui/validator/rules/index.d.ts +0 -87
- package/build/pages/404.d.ts +0 -13
- package/build/pages/account/favorite-products.d.ts +0 -12
- package/build/pages/blog/[slug].d.ts +0 -18
- package/build/pages/blog/index.d.ts +0 -13
- package/build/pages/cart.d.ts +0 -12
- package/build/pages/search.d.ts +0 -13
- package/build/utils/providers/placeholders.d.ts +0 -5
- 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-list.d.ts +0 -9
- package/build/utils/providers/prop-value/blog.d.ts +0 -8
- package/build/utils/providers/prop-value/color.d.ts +0 -6
- package/build/utils/providers/prop-value/custom.d.ts +0 -40
- package/build/utils/providers/prop-value/rich-text.d.ts +0 -6
- package/build/utils/settings.d.ts +0 -168
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { StringFilterInput } from "../../../__generated__/global-types";
|
|
2
1
|
export interface listCountry_listCountry_locationTranslations {
|
|
3
2
|
__typename: "LocationTranslations";
|
|
4
3
|
tr: string;
|
|
@@ -6,10 +5,8 @@ export interface listCountry_listCountry_locationTranslations {
|
|
|
6
5
|
}
|
|
7
6
|
export interface listCountry_listCountry {
|
|
8
7
|
__typename: "Country";
|
|
9
|
-
id: string;
|
|
8
|
+
id: string | null;
|
|
10
9
|
name: string;
|
|
11
|
-
native: string | null;
|
|
12
|
-
iso2: string | null;
|
|
13
10
|
iso3: string | null;
|
|
14
11
|
phoneCode: string | null;
|
|
15
12
|
locationTranslations: listCountry_listCountry_locationTranslations;
|
|
@@ -17,7 +14,3 @@ export interface listCountry_listCountry {
|
|
|
17
14
|
export interface listCountry {
|
|
18
15
|
listCountry: listCountry_listCountry[];
|
|
19
16
|
}
|
|
20
|
-
export interface listCountryVariables {
|
|
21
|
-
iso2?: StringFilterInput | null;
|
|
22
|
-
id?: StringFilterInput | null;
|
|
23
|
-
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IkasCountry } from "../../models/index";
|
|
2
2
|
export declare class IkasCountryAPI {
|
|
3
|
-
static listCountries(
|
|
4
|
-
static listShippingCountries(
|
|
5
|
-
static getMyCountry(): Promise<string | null | undefined>;
|
|
3
|
+
static listCountries(): Promise<IkasCountry[]>;
|
|
4
|
+
static listShippingCountries(): Promise<string[]>;
|
|
6
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomerAccountStatusesEnum
|
|
1
|
+
import { CustomerAccountStatusesEnum } from "../../../__generated__/global-types";
|
|
2
2
|
export interface customerLogin_customerLogin_customer_addresses_city {
|
|
3
3
|
__typename: "CustomerAddressCity";
|
|
4
4
|
code: string | null;
|
|
@@ -27,12 +27,11 @@ export interface customerLogin_customerLogin_customer_addresses {
|
|
|
27
27
|
__typename: "CustomerAddress";
|
|
28
28
|
addressLine1: string;
|
|
29
29
|
addressLine2: string | null;
|
|
30
|
-
identityNumber: string | null;
|
|
31
30
|
city: customerLogin_customerLogin_customer_addresses_city;
|
|
32
31
|
company: string | null;
|
|
33
32
|
country: customerLogin_customerLogin_customer_addresses_country;
|
|
34
33
|
district: customerLogin_customerLogin_customer_addresses_district | null;
|
|
35
|
-
id: string;
|
|
34
|
+
id: string | null;
|
|
36
35
|
firstName: string;
|
|
37
36
|
isDefault: boolean | null;
|
|
38
37
|
lastName: string;
|
|
@@ -44,7 +43,7 @@ export interface customerLogin_customerLogin_customer_addresses {
|
|
|
44
43
|
}
|
|
45
44
|
export interface customerLogin_customerLogin_customer {
|
|
46
45
|
__typename: "Customer";
|
|
47
|
-
id: string;
|
|
46
|
+
id: string | null;
|
|
48
47
|
isEmailVerified: boolean | null;
|
|
49
48
|
isPhoneVerified: boolean | null;
|
|
50
49
|
lastName: string | null;
|
|
@@ -53,7 +52,6 @@ export interface customerLogin_customerLogin_customer {
|
|
|
53
52
|
accountStatus: CustomerAccountStatusesEnum | null;
|
|
54
53
|
email: string | null;
|
|
55
54
|
firstName: string;
|
|
56
|
-
subscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
57
55
|
}
|
|
58
56
|
export interface customerLogin_customerLogin {
|
|
59
57
|
__typename: "CustomerLoginResponse";
|
|
@@ -84,6 +84,7 @@ export interface getCustomerOrders_getCustomerOrders_orderLineItems_variant {
|
|
|
84
84
|
name: string;
|
|
85
85
|
productId: string | null;
|
|
86
86
|
sku: string | null;
|
|
87
|
+
taxValue: number | null;
|
|
87
88
|
variantValues: getCustomerOrders_getCustomerOrders_orderLineItems_variant_variantValues[] | null;
|
|
88
89
|
}
|
|
89
90
|
export interface getCustomerOrders_getCustomerOrders_orderLineItems {
|
|
@@ -94,7 +95,7 @@ export interface getCustomerOrders_getCustomerOrders_orderLineItems {
|
|
|
94
95
|
discount: getCustomerOrders_getCustomerOrders_orderLineItems_discount | null;
|
|
95
96
|
discountPrice: number | null;
|
|
96
97
|
finalPrice: number | null;
|
|
97
|
-
id: string;
|
|
98
|
+
id: string | null;
|
|
98
99
|
originalOrderLineItemId: string | null;
|
|
99
100
|
price: number;
|
|
100
101
|
quantity: number;
|
|
@@ -120,7 +121,7 @@ export interface getCustomerOrders_getCustomerOrders_orderPackages {
|
|
|
120
121
|
orderPackageNumber: string;
|
|
121
122
|
orderPackageFulfillStatus: OrderPackageFulfillStatusEnum;
|
|
122
123
|
orderLineItemIds: string[];
|
|
123
|
-
id: string;
|
|
124
|
+
id: string | null;
|
|
124
125
|
deleted: boolean | null;
|
|
125
126
|
createdAt: any | null;
|
|
126
127
|
}
|
|
@@ -187,7 +188,7 @@ export interface getCustomerOrders_getCustomerOrders {
|
|
|
187
188
|
currencyRates: getCustomerOrders_getCustomerOrders_currencyRates[];
|
|
188
189
|
customer: getCustomerOrders_getCustomerOrders_customer | null;
|
|
189
190
|
deleted: boolean | null;
|
|
190
|
-
id: string;
|
|
191
|
+
id: string | null;
|
|
191
192
|
merchantId: string;
|
|
192
193
|
note: string | null;
|
|
193
194
|
orderedAt: any | null;
|
|
@@ -31,7 +31,7 @@ export interface getMyCustomer_getMyCustomer_addresses {
|
|
|
31
31
|
company: string | null;
|
|
32
32
|
country: getMyCustomer_getMyCustomer_addresses_country;
|
|
33
33
|
district: getMyCustomer_getMyCustomer_addresses_district | null;
|
|
34
|
-
id: string;
|
|
34
|
+
id: string | null;
|
|
35
35
|
firstName: string;
|
|
36
36
|
isDefault: boolean | null;
|
|
37
37
|
lastName: string;
|
|
@@ -40,11 +40,10 @@ export interface getMyCustomer_getMyCustomer_addresses {
|
|
|
40
40
|
taxNumber: string | null;
|
|
41
41
|
taxOffice: string | null;
|
|
42
42
|
title: string;
|
|
43
|
-
phone: string | null;
|
|
44
43
|
}
|
|
45
44
|
export interface getMyCustomer_getMyCustomer {
|
|
46
45
|
__typename: "Customer";
|
|
47
|
-
id: string;
|
|
46
|
+
id: string | null;
|
|
48
47
|
isEmailVerified: boolean | null;
|
|
49
48
|
isPhoneVerified: boolean | null;
|
|
50
49
|
lastName: string | null;
|
|
@@ -31,7 +31,7 @@ export interface listOrderTransactions_listOrderTransactions {
|
|
|
31
31
|
customerId: string | null;
|
|
32
32
|
deleted: boolean | null;
|
|
33
33
|
error: listOrderTransactions_listOrderTransactions_error | null;
|
|
34
|
-
id: string;
|
|
34
|
+
id: string | null;
|
|
35
35
|
orderId: string | null;
|
|
36
36
|
paymentGatewayId: string;
|
|
37
37
|
paymentGatewayName: string;
|
|
@@ -31,7 +31,7 @@ export interface registerCustomer_registerCustomer_customer_addresses {
|
|
|
31
31
|
company: string | null;
|
|
32
32
|
country: registerCustomer_registerCustomer_customer_addresses_country;
|
|
33
33
|
district: registerCustomer_registerCustomer_customer_addresses_district | null;
|
|
34
|
-
id: string;
|
|
34
|
+
id: string | null;
|
|
35
35
|
firstName: string;
|
|
36
36
|
isDefault: boolean | null;
|
|
37
37
|
lastName: string;
|
|
@@ -43,7 +43,7 @@ export interface registerCustomer_registerCustomer_customer_addresses {
|
|
|
43
43
|
}
|
|
44
44
|
export interface registerCustomer_registerCustomer_customer {
|
|
45
45
|
__typename: "Customer";
|
|
46
|
-
id: string;
|
|
46
|
+
id: string | null;
|
|
47
47
|
isEmailVerified: boolean | null;
|
|
48
48
|
isPhoneVerified: boolean | null;
|
|
49
49
|
lastName: string | null;
|
|
@@ -31,7 +31,7 @@ export interface saveMyCustomer_saveMyCustomer_addresses {
|
|
|
31
31
|
company: string | null;
|
|
32
32
|
country: saveMyCustomer_saveMyCustomer_addresses_country;
|
|
33
33
|
district: saveMyCustomer_saveMyCustomer_addresses_district | null;
|
|
34
|
-
id: string;
|
|
34
|
+
id: string | null;
|
|
35
35
|
firstName: string;
|
|
36
36
|
isDefault: boolean | null;
|
|
37
37
|
lastName: string;
|
|
@@ -40,11 +40,10 @@ export interface saveMyCustomer_saveMyCustomer_addresses {
|
|
|
40
40
|
taxNumber: string | null;
|
|
41
41
|
taxOffice: string | null;
|
|
42
42
|
title: string;
|
|
43
|
-
phone: string | null;
|
|
44
43
|
}
|
|
45
44
|
export interface saveMyCustomer_saveMyCustomer {
|
|
46
45
|
__typename: "Customer";
|
|
47
|
-
id: string;
|
|
46
|
+
id: string | null;
|
|
48
47
|
isEmailVerified: boolean | null;
|
|
49
48
|
isPhoneVerified: boolean | null;
|
|
50
49
|
lastName: string | null;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { IkasCustomer, IkasOrder } from "../../models/index";
|
|
2
|
-
import { IkasRefund } from "../../models/data/order/refund/index";
|
|
3
2
|
import * as RefreshTokenTypes from "./__generated__/customerRefreshToken";
|
|
4
|
-
import * as GetLastViewedProductsTypes from "./__generated__/getLastViewedProducts";
|
|
5
3
|
export declare class IkasCustomerAPI {
|
|
6
4
|
static login(email: string, password: string): Promise<{
|
|
7
5
|
customer: IkasCustomer;
|
|
@@ -27,17 +25,4 @@ export declare class IkasCustomerAPI {
|
|
|
27
25
|
id?: string;
|
|
28
26
|
orderId?: string;
|
|
29
27
|
}): Promise<any>;
|
|
30
|
-
static saveIkasOrderRefund(input: IkasRefund): Promise<IkasOrder | undefined>;
|
|
31
|
-
static createCustomerEmailSubscription(email: string): Promise<boolean>;
|
|
32
|
-
static getLastViewedProducts(customerId: string): Promise<GetLastViewedProductsTypes.getLastViewedProducts_getLastViewedProducts_products[]>;
|
|
33
|
-
static saveLastViewedProducts(input: LastViewedProductInput): Promise<boolean>;
|
|
34
28
|
}
|
|
35
|
-
declare type LastViewedProduct = {
|
|
36
|
-
productId: string;
|
|
37
|
-
variantId: string;
|
|
38
|
-
};
|
|
39
|
-
declare type LastViewedProductInput = {
|
|
40
|
-
customerId: string;
|
|
41
|
-
products: LastViewedProduct[];
|
|
42
|
-
};
|
|
43
|
-
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StringFilterInput,
|
|
1
|
+
import { StringFilterInput, HTMLMetaDataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
2
|
export interface listHTMLMetaData_listHTMLMetaData {
|
|
3
3
|
__typename: "HTMLMetaData";
|
|
4
4
|
slug: string;
|
|
@@ -14,5 +14,4 @@ export interface listHTMLMetaData {
|
|
|
14
14
|
export interface listHTMLMetaDataVariables {
|
|
15
15
|
slug?: StringFilterInput | null;
|
|
16
16
|
targetId?: StringFilterInput | null;
|
|
17
|
-
targetType?: HTMLMetaDataTargetTypeEnumFilter | null;
|
|
18
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IkasHTMLMetaData } from "../../models/index";
|
|
2
2
|
export declare class IkasHTMLMetaDataAPI {
|
|
3
|
-
static listHTMLMetaData(slug?: string, targetId?: string
|
|
3
|
+
static listHTMLMetaData(slug?: string, targetId?: string): Promise<IkasHTMLMetaData[]>;
|
|
4
4
|
}
|
package/build/api/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { IkasBlogAPI } from "./blog/index";
|
|
2
1
|
export { IkasBrandAPI } from "./brand/index";
|
|
3
2
|
export { IkasCartAPI } from "./cart/index";
|
|
4
3
|
export { IkasCategoryAPI } from "./category/index";
|
|
@@ -9,10 +8,10 @@ export { IkasCustomerAPI } from "./customer/index";
|
|
|
9
8
|
export { IkasDistrictAPI } from "./district/index";
|
|
10
9
|
export { IkasHTMLMetaDataAPI } from "./html-meta-data/index";
|
|
11
10
|
export { IkasMerchantAPI } from "./merchant/index";
|
|
12
|
-
export {
|
|
11
|
+
export { IkasProductAPI } from "./product/index";
|
|
13
12
|
export { IkasProductAttributeAPI } from "./product-attribute/index";
|
|
14
|
-
export { IkasFavoriteProductAPI } from "./favorite-product/index";
|
|
15
|
-
export { IkasContactFormAPI } from "./contact-form/index";
|
|
16
13
|
export { IkasStateAPI } from "./state/index";
|
|
14
|
+
export { IkasStorefrontAPI } from "./storefront/index";
|
|
15
|
+
export { IkasThemeAPI } from "./theme/index";
|
|
17
16
|
export { IkasVariantTypeAPI } from "./variant-type/index";
|
|
18
17
|
export { apollo } from "./apollo";
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { StringFilterInput, PaginationInput, ProductTypeEnum, HTMLMetaDataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listProduct_listProduct_data_metaData {
|
|
3
|
+
__typename: "HTMLMetaData";
|
|
4
|
+
slug: string;
|
|
5
|
+
pageTitle: string | null;
|
|
6
|
+
description: string | null;
|
|
7
|
+
targetId: string | null;
|
|
8
|
+
targetType: HTMLMetaDataTargetTypeEnum | null;
|
|
9
|
+
redirectTo: string | null;
|
|
10
|
+
}
|
|
11
|
+
export interface listProduct_listProduct_data_productVariantTypes {
|
|
12
|
+
__typename: "ProductVariantType";
|
|
13
|
+
order: number;
|
|
14
|
+
variantTypeId: string;
|
|
15
|
+
variantValueIds: string[] | null;
|
|
16
|
+
}
|
|
17
|
+
export interface listProduct_listProduct_data_variants_variantValueIds {
|
|
18
|
+
__typename: "VariantValueRelation";
|
|
19
|
+
variantTypeId: string;
|
|
20
|
+
variantValueId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface listProduct_listProduct_data_variants_attributes {
|
|
23
|
+
__typename: "ProductAttributeValue";
|
|
24
|
+
value: string | null;
|
|
25
|
+
productAttributeId: string | null;
|
|
26
|
+
productAttributeOptionId: string | null;
|
|
27
|
+
}
|
|
28
|
+
export interface listProduct_listProduct_data_variants_images {
|
|
29
|
+
__typename: "ProductImage";
|
|
30
|
+
order: number;
|
|
31
|
+
isMain: boolean;
|
|
32
|
+
imageId: string | null;
|
|
33
|
+
}
|
|
34
|
+
export interface listProduct_listProduct_data_variants_prices {
|
|
35
|
+
__typename: "ProductPrice";
|
|
36
|
+
sellPrice: number;
|
|
37
|
+
discountPrice: number | null;
|
|
38
|
+
buyPrice: number | null;
|
|
39
|
+
currency: string | null;
|
|
40
|
+
}
|
|
41
|
+
export interface listProduct_listProduct_data_variants {
|
|
42
|
+
__typename: "Variant";
|
|
43
|
+
id: string | null;
|
|
44
|
+
createdAt: any | null;
|
|
45
|
+
updatedAt: any | null;
|
|
46
|
+
deleted: boolean | null;
|
|
47
|
+
sku: string | null;
|
|
48
|
+
barcodeList: string[] | null;
|
|
49
|
+
isActive: boolean | null;
|
|
50
|
+
variantValueIds: listProduct_listProduct_data_variants_variantValueIds[] | null;
|
|
51
|
+
attributes: listProduct_listProduct_data_variants_attributes[] | null;
|
|
52
|
+
images: listProduct_listProduct_data_variants_images[] | null;
|
|
53
|
+
prices: listProduct_listProduct_data_variants_prices[];
|
|
54
|
+
}
|
|
55
|
+
export interface listProduct_listProduct_data_attributes {
|
|
56
|
+
__typename: "ProductAttributeValue";
|
|
57
|
+
value: string | null;
|
|
58
|
+
productAttributeId: string | null;
|
|
59
|
+
productAttributeOptionId: string | null;
|
|
60
|
+
}
|
|
61
|
+
export interface listProduct_listProduct_data {
|
|
62
|
+
__typename: "Product";
|
|
63
|
+
id: string | null;
|
|
64
|
+
createdAt: any | null;
|
|
65
|
+
updatedAt: any | null;
|
|
66
|
+
deleted: boolean | null;
|
|
67
|
+
name: string;
|
|
68
|
+
type: ProductTypeEnum;
|
|
69
|
+
shortDescription: string | null;
|
|
70
|
+
description: string | null;
|
|
71
|
+
taxValue: number | null;
|
|
72
|
+
metaData: listProduct_listProduct_data_metaData | null;
|
|
73
|
+
categoryIds: string[] | null;
|
|
74
|
+
productVariantTypes: listProduct_listProduct_data_productVariantTypes[] | null;
|
|
75
|
+
variants: listProduct_listProduct_data_variants[];
|
|
76
|
+
attributes: listProduct_listProduct_data_attributes[] | null;
|
|
77
|
+
}
|
|
78
|
+
export interface listProduct_listProduct {
|
|
79
|
+
__typename: "ProductPaginationResponse";
|
|
80
|
+
data: listProduct_listProduct_data[];
|
|
81
|
+
count: number;
|
|
82
|
+
}
|
|
83
|
+
export interface listProduct {
|
|
84
|
+
listProduct: listProduct_listProduct;
|
|
85
|
+
}
|
|
86
|
+
export interface listProductVariables {
|
|
87
|
+
id?: StringFilterInput | null;
|
|
88
|
+
paginationInput?: PaginationInput | null;
|
|
89
|
+
search?: string | null;
|
|
90
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IkasProduct } from "../../models/index";
|
|
2
|
+
export declare class IkasProductAPI {
|
|
3
|
+
static listProducts(params?: ListProductsParams): Promise<ListProductsResponse>;
|
|
4
|
+
}
|
|
5
|
+
declare type ListProductsParams = {
|
|
6
|
+
idList?: string[];
|
|
7
|
+
page?: number;
|
|
8
|
+
limit?: number;
|
|
9
|
+
search?: string;
|
|
10
|
+
};
|
|
11
|
+
declare type ListProductsResponse = {
|
|
12
|
+
products: IkasProduct[];
|
|
13
|
+
count: number;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StringFilterInput, ProductAttributeTypeEnum } from "../../../__generated__/global-types";
|
|
2
2
|
export interface listProductAttribute_listProductAttribute_options {
|
|
3
3
|
__typename: "ProductAttributeOption";
|
|
4
|
-
id: string;
|
|
4
|
+
id: string | null;
|
|
5
5
|
createdAt: any | null;
|
|
6
6
|
updatedAt: any | null;
|
|
7
7
|
deleted: boolean | null;
|
|
@@ -9,7 +9,7 @@ export interface listProductAttribute_listProductAttribute_options {
|
|
|
9
9
|
}
|
|
10
10
|
export interface listProductAttribute_listProductAttribute {
|
|
11
11
|
__typename: "ProductAttribute";
|
|
12
|
-
id: string;
|
|
12
|
+
id: string | null;
|
|
13
13
|
createdAt: any | null;
|
|
14
14
|
updatedAt: any | null;
|
|
15
15
|
deleted: boolean | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface listProductStockLocation_listProductStockLocation {
|
|
2
|
+
__typename: "ProductStockLocation";
|
|
3
|
+
variantId: string;
|
|
4
|
+
stockLocationId: string;
|
|
5
|
+
stockCount: number;
|
|
6
|
+
}
|
|
7
|
+
export interface listProductStockLocation {
|
|
8
|
+
listProductStockLocation: listProductStockLocation_listProductStockLocation[];
|
|
9
|
+
}
|
|
10
|
+
export interface listProductStockLocationVariables {
|
|
11
|
+
stockLocationIdList: string[];
|
|
12
|
+
variantIdList: string[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as ListProductStockLocationTypes from "./__generated__/listProductStockLocation";
|
|
2
|
+
export declare class IkasProductStockLocationAPI {
|
|
3
|
+
static listProductStockLocation(stockLocationIdList: string[], variantIdList: string[]): Promise<ListProductStockLocationTypes.listProductStockLocation_listProductStockLocation[] | undefined>;
|
|
4
|
+
}
|
|
@@ -1,52 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
createdAt: any | null;
|
|
5
|
-
id: string;
|
|
6
|
-
isDefault: boolean;
|
|
1
|
+
export interface getStorefront_getStorefront_regions {
|
|
2
|
+
__typename: "StorefrontRegion";
|
|
3
|
+
id: string | null;
|
|
7
4
|
locale: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
__typename: "StorefrontRouting";
|
|
12
|
-
countryCodes: string[] | null;
|
|
13
|
-
createdAt: any | null;
|
|
14
|
-
domain: string | null;
|
|
15
|
-
id: string;
|
|
16
|
-
locale: string;
|
|
17
|
-
path: string | null;
|
|
18
|
-
priceListId: string | null;
|
|
19
|
-
updatedAt: any | null;
|
|
20
|
-
}
|
|
21
|
-
export interface getStorefront_getStorefront_themes {
|
|
22
|
-
__typename: "StorefrontTheme";
|
|
23
|
-
createdAt: any | null;
|
|
24
|
-
id: string;
|
|
25
|
-
isMainTheme: boolean;
|
|
26
|
-
name: string;
|
|
27
|
-
status: StorefrontThemeStatus;
|
|
28
|
-
themeId: string;
|
|
29
|
-
themeVersionId: string;
|
|
30
|
-
updatedAt: any | null;
|
|
5
|
+
privacyPolicy: string | null;
|
|
6
|
+
returnPolicy: string | null;
|
|
7
|
+
termsOfService: string | null;
|
|
31
8
|
}
|
|
32
9
|
export interface getStorefront_getStorefront {
|
|
33
10
|
__typename: "Storefront";
|
|
34
|
-
|
|
35
|
-
emailSettingsId: string | null;
|
|
36
|
-
fbpId: string | null;
|
|
37
|
-
gtmId: string | null;
|
|
38
|
-
id: string;
|
|
39
|
-
localizations: getStorefront_getStorefront_localizations[];
|
|
40
|
-
mainStorefrontThemeId: string | null;
|
|
11
|
+
id: string | null;
|
|
41
12
|
name: string;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
13
|
+
themeId: string;
|
|
14
|
+
themeVersionId: string;
|
|
15
|
+
userId: string;
|
|
16
|
+
regions: getStorefront_getStorefront_regions[];
|
|
46
17
|
}
|
|
47
18
|
export interface getStorefront {
|
|
48
19
|
getStorefront: getStorefront_getStorefront;
|
|
49
20
|
}
|
|
50
21
|
export interface getStorefrontVariables {
|
|
51
|
-
|
|
22
|
+
storefrontId: string;
|
|
52
23
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StringFilterInput, VariantSelectionTypeEnum } from "../../../__generated__/global-types";
|
|
2
2
|
export interface listVariantType_listVariantType_values {
|
|
3
3
|
__typename: "VariantValue";
|
|
4
|
-
id: string;
|
|
4
|
+
id: string | null;
|
|
5
5
|
createdAt: any | null;
|
|
6
6
|
updatedAt: any | null;
|
|
7
7
|
deleted: boolean | null;
|
|
@@ -11,7 +11,7 @@ export interface listVariantType_listVariantType_values {
|
|
|
11
11
|
}
|
|
12
12
|
export interface listVariantType_listVariantType {
|
|
13
13
|
__typename: "VariantType";
|
|
14
|
-
id: string;
|
|
14
|
+
id: string | null;
|
|
15
15
|
createdAt: any | null;
|
|
16
16
|
updatedAt: any | null;
|
|
17
17
|
deleted: boolean | null;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { IkasOrderAddress, IkasAddressValidationResult } from "../../../../models/data/order/address/index";
|
|
3
3
|
import { IkasCheckoutCustomer } from "../../../../models/index";
|
|
4
|
-
import CheckoutViewModel from "../../model";
|
|
5
4
|
declare type Props = {
|
|
6
|
-
vm: CheckoutViewModel;
|
|
7
5
|
address: IkasOrderAddress;
|
|
8
6
|
allowedCountryIds?: string[];
|
|
9
7
|
customer?: IkasCheckoutCustomer;
|
|
10
8
|
isErrorsVisible: boolean;
|
|
11
9
|
validationResult: IkasAddressValidationResult;
|
|
12
|
-
isBilling?: boolean;
|
|
13
10
|
};
|
|
14
11
|
export declare const AddressForm: React.FC<Props>;
|
|
15
12
|
export {};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { IkasOrderAddress } from "../../../../models/data/order/address/index";
|
|
2
2
|
import { IkasCountry, IkasState, IkasCity, IkasDistrict, IkasCheckoutCustomer } from "../../../../models/index";
|
|
3
|
-
import CheckoutViewModel from "../../model";
|
|
4
3
|
export default class AddressFormViewModel {
|
|
5
|
-
vm: CheckoutViewModel;
|
|
6
4
|
address: IkasOrderAddress;
|
|
7
5
|
customer?: IkasCheckoutCustomer | null;
|
|
8
6
|
countries: IkasCountry[];
|
|
@@ -10,12 +8,10 @@ export default class AddressFormViewModel {
|
|
|
10
8
|
cities: IkasCity[];
|
|
11
9
|
districts: IkasDistrict[];
|
|
12
10
|
allowedCountryIds?: string[] | null;
|
|
13
|
-
isCorporate: boolean;
|
|
14
11
|
constructor(data: AddressFormViewModelParams);
|
|
15
12
|
get firstName(): string | null | undefined;
|
|
16
13
|
get lastName(): string | null | undefined;
|
|
17
14
|
get phone(): string | null | undefined;
|
|
18
|
-
get identityNumber(): string | null | undefined;
|
|
19
15
|
get country(): {
|
|
20
16
|
id?: string | undefined;
|
|
21
17
|
name?: string | undefined;
|
|
@@ -65,7 +61,6 @@ export default class AddressFormViewModel {
|
|
|
65
61
|
onFirstNameChange: (value: string) => void;
|
|
66
62
|
onLastNameChange: (value: string) => void;
|
|
67
63
|
onPhoneChange: (value: string) => void;
|
|
68
|
-
onIdentityNumberChange: (value: string) => void;
|
|
69
64
|
onAddressLine1Change: (value: string) => void;
|
|
70
65
|
onAddressLine2Change: (value: string) => void;
|
|
71
66
|
onAddressPostalCodeChange: (value: string) => void;
|
|
@@ -74,14 +69,8 @@ export default class AddressFormViewModel {
|
|
|
74
69
|
onCityChange: (cityId: string) => void;
|
|
75
70
|
onDistrictChange: (districtId: string) => void;
|
|
76
71
|
onDistrictInputChange: (value: string) => void;
|
|
77
|
-
onCorporateChange: (value: boolean) => void;
|
|
78
|
-
onCompanyChange: (value: string) => void;
|
|
79
|
-
onTaxNumberChange: (value: string) => void;
|
|
80
|
-
onTaxOfficeChange: (value: string) => void;
|
|
81
72
|
}
|
|
82
73
|
interface AddressFormViewModelParams extends Partial<AddressFormViewModel> {
|
|
83
|
-
vm: CheckoutViewModel;
|
|
84
74
|
address: IkasOrderAddress;
|
|
85
|
-
isCorporate?: boolean;
|
|
86
75
|
}
|
|
87
76
|
export {};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
declare type Props = {
|
|
3
|
-
text: string
|
|
3
|
+
text: string;
|
|
4
4
|
isLoading?: boolean;
|
|
5
|
-
isDisabled?: boolean;
|
|
6
|
-
size?: "large" | "medium";
|
|
7
|
-
style?: React.CSSProperties;
|
|
8
5
|
onClick: () => void;
|
|
9
6
|
};
|
|
10
7
|
export declare const Button: React.FC<Props>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export default class FormItemViewModel implements Props {
|
|
2
2
|
type: FormItemType;
|
|
3
|
-
inputType?: FormItemInputType;
|
|
4
3
|
options?: FormItemSelectOption[];
|
|
5
4
|
label: string;
|
|
6
5
|
value?: string;
|
|
@@ -12,12 +11,10 @@ export default class FormItemViewModel implements Props {
|
|
|
12
11
|
get labelStyle(): string;
|
|
13
12
|
get inputStyle(): string;
|
|
14
13
|
onValueChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
15
|
-
onTextAreaValueChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
16
14
|
onSelectChange: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
17
15
|
}
|
|
18
16
|
export interface Props {
|
|
19
17
|
type: FormItemType;
|
|
20
|
-
inputType?: FormItemInputType;
|
|
21
18
|
options?: FormItemSelectOption[];
|
|
22
19
|
label: string;
|
|
23
20
|
value?: string;
|
|
@@ -28,16 +25,10 @@ export interface Props {
|
|
|
28
25
|
}
|
|
29
26
|
export declare enum FormItemType {
|
|
30
27
|
TEXT = 0,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
TEL = 3
|
|
28
|
+
SELECT = 1,
|
|
29
|
+
TEL = 2
|
|
34
30
|
}
|
|
35
31
|
export declare type FormItemSelectOption = {
|
|
36
32
|
value: string;
|
|
37
33
|
label: string;
|
|
38
34
|
};
|
|
39
|
-
export declare enum FormItemInputType {
|
|
40
|
-
NUMERIC = "numeric",
|
|
41
|
-
TEL = "tel",
|
|
42
|
-
EMAIL = "email"
|
|
43
|
-
}
|