@ikas/storefront 0.0.14 → 0.0.16-0.alpha-1
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 +214 -8
- package/build/analytics/analytics.d.ts +22 -0
- package/build/analytics/facebookPixel.d.ts +15 -0
- package/build/analytics/googleTagManager.d.ts +201 -0
- package/build/analytics/head/index.d.ts +7 -0
- package/build/analytics/index.d.ts +2 -0
- package/build/api/blog/__generated__/getBlog.d.ts +83 -0
- package/build/api/blog/__generated__/listBlog.d.ts +86 -0
- package/build/api/blog/__generated__/listBlogCategory.d.ts +38 -0
- package/build/api/blog/__generated__/listBlogMetaData.d.ts +29 -0
- package/build/api/blog/index.d.ts +32 -0
- package/build/api/brand/__generated__/listProductBrand.d.ts +3 -2
- package/build/api/brand/index.d.ts +1 -0
- package/build/api/cart/__generated__/getCart.d.ts +7 -3
- package/build/api/cart/__generated__/saveItemToCart.d.ts +6 -3
- package/build/api/category/__generated__/listCategory.d.ts +4 -2
- package/build/api/category/__generated__/listCategoryPaths.d.ts +23 -0
- package/build/api/category/index.d.ts +3 -0
- 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 +5 -4
- package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +26 -0
- package/build/api/checkout/__generated__/listPaymentGateway.d.ts +14 -2
- package/build/api/checkout/__generated__/saveCheckout.d.ts +1 -1
- package/build/api/checkout/index.d.ts +11 -3
- package/build/api/city/__generated__/listCity.d.ts +1 -1
- package/build/api/contact-form/__generated__/sendContactFormToMerchant.d.ts +9 -0
- package/build/api/contact-form/index.d.ts +10 -0
- package/build/api/country/__generated__/getAvailableShippingCountries.d.ts +3 -0
- package/build/api/country/__generated__/getMyCountry.d.ts +3 -0
- package/build/api/country/__generated__/listCountry.d.ts +8 -1
- package/build/api/country/index.d.ts +3 -2
- package/build/api/customer/__generated__/createCustomerEmailSubscription.d.ts +11 -0
- package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +215 -0
- package/build/api/customer/__generated__/customerLogin.d.ts +5 -3
- package/build/api/customer/__generated__/getCustomerOrders.d.ts +3 -4
- package/build/api/customer/__generated__/getLastViewedProducts.d.ts +15 -0
- package/build/api/customer/__generated__/getMyCustomer.d.ts +3 -2
- 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__/saveLastViewedProducts.d.ts +11 -0
- package/build/api/customer/__generated__/saveMyCustomer.d.ts +3 -2
- package/build/api/customer/index.d.ts +15 -0
- package/build/api/district/__generated__/listDistrict.d.ts +1 -1
- package/build/api/favorite-product/__generated__/isFavoriteProduct.d.ts +6 -0
- package/build/api/favorite-product/__generated__/listFavoriteProducts.d.ts +12 -0
- package/build/api/favorite-product/__generated__/saveFavoriteProduct.d.ts +7 -0
- package/build/api/favorite-product/index.d.ts +6 -0
- package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +2 -1
- package/build/api/html-meta-data/index.d.ts +1 -1
- package/build/api/index.d.ts +4 -3
- package/build/api/merchant/__generated__/listMerchantSettings.d.ts +1 -1
- package/build/api/product-attribute/__generated__/listProductAttribute.d.ts +2 -2
- package/build/api/product-search/__generated__/getProductFilterData.d.ts +50 -0
- package/build/api/product-search/__generated__/searchProducts.d.ts +26 -0
- package/build/api/product-search/index.d.ts +20 -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 +41 -12
- package/build/api/storefront/index.d.ts +1 -1
- package/build/api/variant-type/__generated__/listVariantType.d.ts +2 -2
- package/build/components/checkout/components/address-form/index.d.ts +3 -0
- package/build/components/checkout/components/address-form/model.d.ts +13 -2
- package/build/components/checkout/components/button/index.d.ts +4 -1
- package/build/components/checkout/components/cart-summary/cross.d.ts +6 -0
- package/build/components/checkout/components/cart-summary/tag.d.ts +6 -0
- package/build/components/checkout/components/checkbox/index.d.ts +2 -1
- package/build/components/checkout/components/error-container/customer-login-required-error/index.d.ts +6 -0
- package/build/components/checkout/components/error-container/payment-error/index.d.ts +2 -0
- package/build/components/checkout/components/form-item/model.d.ts +11 -2
- package/build/components/checkout/index.d.ts +5 -0
- package/build/components/checkout/model.d.ts +23 -10
- package/build/components/hoc/ThemeComponent.d.ts +2 -2
- package/build/components/image/index.d.ts +35 -0
- package/build/components/index.d.ts +1 -2
- package/build/components/page/head.d.ts +5 -0
- package/build/components/page/index.d.ts +6 -1
- package/build/components/page-editor/model.d.ts +6 -2
- package/build/index.d.ts +1 -0
- package/build/index.es.js +17677 -9251
- package/build/index.js +18351 -9889
- package/build/models/data/blog/index.d.ts +67 -0
- package/build/models/data/brand/index.d.ts +1 -1
- package/build/models/data/cart/index.d.ts +9 -0
- package/build/models/data/category/index.d.ts +22 -1
- package/build/models/data/checkout/index.d.ts +5 -0
- package/build/models/data/checkout-settings/index.d.ts +18 -0
- package/build/models/data/contact-form/index.d.ts +7 -0
- package/build/models/data/country/index.d.ts +2 -0
- package/build/models/data/customer/index.d.ts +7 -0
- package/build/models/data/favorite-product/index.d.ts +6 -0
- package/build/models/data/image/index.d.ts +1 -0
- package/build/models/data/index.d.ts +5 -1
- package/build/models/data/order/address/index.d.ts +6 -0
- package/build/models/data/order/index.d.ts +19 -1
- package/build/models/data/order/line-item/index.d.ts +18 -0
- package/build/models/data/order/refund/index.d.ts +6 -0
- package/build/models/data/order/refund/refund-line-item/index.d.ts +5 -0
- package/build/models/data/payment-gateway/index.d.ts +26 -2
- package/build/models/data/product/attribute-value/index.d.ts +15 -1
- package/build/models/data/product/index.d.ts +2 -1
- package/build/models/data/product/variant/index.d.ts +1 -0
- package/build/models/data/product/variant/price/index.d.ts +2 -0
- package/build/models/data/product-attribute/index.d.ts +5 -2
- package/build/models/data/product-attribute/product-attribute-table-cell/index.d.ts +5 -0
- package/build/models/data/product-attribute/product-attribute-table-template/index.d.ts +6 -0
- package/build/models/data/product-filter/index.d.ts +102 -0
- package/build/models/data/product-tag/index.d.ts +5 -0
- package/build/models/data/sales-channel/index.d.ts +18 -0
- package/build/models/data/simple-product/index.d.ts +135 -0
- package/build/models/data/storefront/{storefront-domain → domain}/index.d.ts +1 -0
- package/build/models/data/storefront/index.d.ts +17 -6
- package/build/models/data/storefront/localization/index.d.ts +7 -0
- package/build/models/data/storefront/routing/index.d.ts +9 -0
- package/build/models/data/storefront/theme/index.d.ts +13 -0
- package/build/models/data/storefront/theme-localization/index.d.ts +12 -0
- package/build/models/data/variant-type/variant-value/index.d.ts +1 -1
- package/build/models/theme/component/prop/index.d.ts +17 -1
- package/build/models/theme/custom-data/index.d.ts +24 -0
- package/build/models/theme/index.d.ts +4 -0
- package/build/models/theme/page/component/prop-value/attribute-list.d.ts +7 -0
- package/build/models/theme/page/component/prop-value/attribute.d.ts +7 -0
- package/build/models/theme/page/component/prop-value/blog-list.d.ts +9 -0
- package/build/models/theme/page/component/prop-value/blog.d.ts +5 -0
- package/build/models/theme/page/component/prop-value/product-list.d.ts +2 -0
- package/build/models/theme/page/index.d.ts +14 -1
- package/build/models/theme/settings/index.d.ts +7 -0
- package/build/models/theme/settings/prop/color/index.d.ts +7 -0
- package/build/models/theme/settings/prop/favicon/index.d.ts +4 -0
- package/build/models/theme/theme.d.ts +4 -0
- package/build/models/ui/blog-list/index.d.ts +56 -0
- package/build/models/ui/brand-list/index.d.ts +3 -0
- package/build/models/ui/category-list/index.d.ts +3 -0
- package/build/models/ui/component-renderer/index.d.ts +7 -0
- package/build/models/ui/index.d.ts +12 -2
- package/build/models/ui/product-detail/index.d.ts +14 -3
- package/build/models/ui/product-list/index.d.ts +62 -14
- package/build/models/ui/validator/form/account-info.d.ts +40 -0
- package/build/models/ui/validator/form/address.d.ts +75 -0
- package/build/models/ui/validator/form/contact-form.d.ts +45 -0
- package/build/models/ui/validator/form/forgot-password.d.ts +29 -0
- package/build/models/ui/validator/form/login.d.ts +35 -0
- package/build/models/ui/validator/form/recover-password.d.ts +36 -0
- package/build/models/ui/validator/form/register.d.ts +45 -0
- package/build/models/ui/validator/index.d.ts +27 -0
- package/build/models/ui/validator/rules/index.d.ts +87 -0
- package/build/pages/404.d.ts +13 -0
- package/build/pages/[slug]/index.d.ts +9 -3
- package/build/pages/account/addresses.d.ts +2 -0
- package/build/pages/account/favorite-products.d.ts +12 -0
- package/build/pages/account/forgot-password.d.ts +3 -0
- package/build/pages/account/index.d.ts +2 -0
- package/build/pages/account/login.d.ts +3 -0
- package/build/pages/account/orders/[id].d.ts +2 -0
- package/build/pages/account/orders/index.d.ts +2 -0
- package/build/pages/account/recover-password.d.ts +3 -0
- package/build/pages/account/register.d.ts +3 -0
- package/build/pages/blog/[slug].d.ts +18 -0
- package/build/pages/blog/index.d.ts +13 -0
- package/build/pages/cart.d.ts +12 -0
- package/build/pages/checkout/[id].d.ts +5 -0
- package/build/pages/home.d.ts +3 -0
- package/build/pages/index.d.ts +8 -2
- package/build/pages/{[slug]/[secondSlug].d.ts → pages/[slug].d.ts} +2 -0
- package/build/pages/search.d.ts +13 -0
- package/build/store/base.d.ts +17 -0
- package/build/store/customer.d.ts +31 -1
- package/build/storefront/index.d.ts +29 -3
- package/build/utils/helper.d.ts +1 -0
- package/build/utils/index.d.ts +1 -0
- package/build/utils/providers/page-data.d.ts +62 -5
- package/build/utils/providers/placeholders.d.ts +5 -0
- package/build/utils/providers/prop-value/attribute-list.d.ts +9 -0
- package/build/utils/providers/prop-value/attribute.d.ts +9 -0
- package/build/utils/providers/prop-value/blog-list.d.ts +9 -0
- package/build/utils/providers/prop-value/blog.d.ts +8 -0
- 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/color.d.ts +6 -0
- package/build/utils/providers/prop-value/custom.d.ts +40 -0
- package/build/utils/providers/prop-value/product-detail.d.ts +2 -2
- package/build/utils/providers/prop-value/product-list.d.ts +1 -3
- package/build/utils/providers/prop-value/rich-text.d.ts +6 -0
- package/build/utils/settings.d.ts +168 -0
- package/package.json +3 -3
- package/build/api/product/__generated__/listProduct.d.ts +0 -90
- package/build/api/product/index.d.ts +0 -15
- package/build/api/product-stock-location/__generated__/listProductStockLocation.d.ts +0 -13
- package/build/api/product-stock-location/index.d.ts +0 -4
- package/build/api/theme/index.d.ts +0 -4
- package/build/components/gtm/functions.d.ts +0 -164
- package/build/components/gtm/index.d.ts +0 -7
- package/build/models/data/storefront/stockfront-location/index.d.ts +0 -5
- package/build/models/data/storefront/stockfront-route/index.d.ts +0 -5
- package/build/models/data/storefront/storefront-region/index.d.ts +0 -18
- package/build/models/ui/product-list/filter.d.ts +0 -18
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { StringFilterInput, PaginationInput, BlogMetadataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listBlog_listBlog_data_category_metadata {
|
|
3
|
+
__typename: "BlogMetadata";
|
|
4
|
+
createdAt: any | null;
|
|
5
|
+
deleted: boolean | null;
|
|
6
|
+
description: string | null;
|
|
7
|
+
id: string;
|
|
8
|
+
pageTitle: string | null;
|
|
9
|
+
slug: string;
|
|
10
|
+
targetId: string | null;
|
|
11
|
+
targetType: BlogMetadataTargetTypeEnum | null;
|
|
12
|
+
updatedAt: any | null;
|
|
13
|
+
}
|
|
14
|
+
export interface listBlog_listBlog_data_category {
|
|
15
|
+
__typename: "BlogCategory";
|
|
16
|
+
createdAt: any | null;
|
|
17
|
+
updatedAt: any | null;
|
|
18
|
+
deleted: boolean | null;
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
imageId: string;
|
|
22
|
+
metadata: listBlog_listBlog_data_category_metadata;
|
|
23
|
+
}
|
|
24
|
+
export interface listBlog_listBlog_data_tags {
|
|
25
|
+
__typename: "BlogTag";
|
|
26
|
+
createdAt: any | null;
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
deleted: boolean | null;
|
|
30
|
+
updatedAt: any | null;
|
|
31
|
+
}
|
|
32
|
+
export interface listBlog_listBlog_data_metadata {
|
|
33
|
+
__typename: "BlogMetadata";
|
|
34
|
+
createdAt: any | null;
|
|
35
|
+
deleted: boolean | null;
|
|
36
|
+
description: string | null;
|
|
37
|
+
id: string;
|
|
38
|
+
pageTitle: string | null;
|
|
39
|
+
slug: string;
|
|
40
|
+
targetId: string | null;
|
|
41
|
+
targetType: BlogMetadataTargetTypeEnum | null;
|
|
42
|
+
updatedAt: any | null;
|
|
43
|
+
}
|
|
44
|
+
export interface listBlog_listBlog_data_writer {
|
|
45
|
+
__typename: "BlogWriter";
|
|
46
|
+
firstName: string;
|
|
47
|
+
lastName: string;
|
|
48
|
+
}
|
|
49
|
+
export interface listBlog_listBlog_data {
|
|
50
|
+
__typename: "Blog";
|
|
51
|
+
title: string;
|
|
52
|
+
categoryId: string;
|
|
53
|
+
category: listBlog_listBlog_data_category;
|
|
54
|
+
tags: listBlog_listBlog_data_tags[] | null;
|
|
55
|
+
createdAt: any | null;
|
|
56
|
+
deleted: boolean | null;
|
|
57
|
+
id: string;
|
|
58
|
+
imageId: string;
|
|
59
|
+
isPublished: boolean;
|
|
60
|
+
metadata: listBlog_listBlog_data_metadata;
|
|
61
|
+
writer: listBlog_listBlog_data_writer;
|
|
62
|
+
publishedAt: any | null;
|
|
63
|
+
shortDescription: string;
|
|
64
|
+
storefrontId: string;
|
|
65
|
+
tagIds: string[] | null;
|
|
66
|
+
updatedAt: any | null;
|
|
67
|
+
}
|
|
68
|
+
export interface listBlog_listBlog {
|
|
69
|
+
__typename: "BlogPaginationResponse";
|
|
70
|
+
count: number;
|
|
71
|
+
data: listBlog_listBlog_data[];
|
|
72
|
+
hasNext: boolean;
|
|
73
|
+
limit: number;
|
|
74
|
+
page: number;
|
|
75
|
+
}
|
|
76
|
+
export interface listBlog {
|
|
77
|
+
listBlog: listBlog_listBlog;
|
|
78
|
+
}
|
|
79
|
+
export interface listBlogVariables {
|
|
80
|
+
id?: StringFilterInput | null;
|
|
81
|
+
categoryId?: StringFilterInput | null;
|
|
82
|
+
pagination?: PaginationInput | null;
|
|
83
|
+
storefrontId?: StringFilterInput | null;
|
|
84
|
+
tagId?: StringFilterInput | null;
|
|
85
|
+
title?: StringFilterInput | null;
|
|
86
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { StringFilterInput, PaginationInput, BlogMetadataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listBlogCategory_listBlogCategory_data_metadata {
|
|
3
|
+
__typename: "BlogMetadata";
|
|
4
|
+
createdAt: any | null;
|
|
5
|
+
deleted: boolean | null;
|
|
6
|
+
description: string | null;
|
|
7
|
+
id: string;
|
|
8
|
+
pageTitle: string | null;
|
|
9
|
+
slug: string;
|
|
10
|
+
targetId: string | null;
|
|
11
|
+
targetType: BlogMetadataTargetTypeEnum | null;
|
|
12
|
+
updatedAt: any | null;
|
|
13
|
+
}
|
|
14
|
+
export interface listBlogCategory_listBlogCategory_data {
|
|
15
|
+
__typename: "BlogCategory";
|
|
16
|
+
createdAt: any | null;
|
|
17
|
+
deleted: boolean | null;
|
|
18
|
+
id: string;
|
|
19
|
+
imageId: string;
|
|
20
|
+
metadata: listBlogCategory_listBlogCategory_data_metadata;
|
|
21
|
+
name: string;
|
|
22
|
+
updatedAt: any | null;
|
|
23
|
+
}
|
|
24
|
+
export interface listBlogCategory_listBlogCategory {
|
|
25
|
+
__typename: "BlogCategoryPaginationResponse";
|
|
26
|
+
count: number;
|
|
27
|
+
data: listBlogCategory_listBlogCategory_data[];
|
|
28
|
+
hasNext: boolean;
|
|
29
|
+
limit: number;
|
|
30
|
+
page: number;
|
|
31
|
+
}
|
|
32
|
+
export interface listBlogCategory {
|
|
33
|
+
listBlogCategory: listBlogCategory_listBlogCategory;
|
|
34
|
+
}
|
|
35
|
+
export interface listBlogCategoryVariables {
|
|
36
|
+
id?: StringFilterInput | null;
|
|
37
|
+
pagination?: PaginationInput | null;
|
|
38
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { StringFilterInput, BlogMetadataTargetTypeEnumFilter, BlogMetadataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listBlogMetaData_listBlogMetadata_data {
|
|
3
|
+
__typename: "BlogMetadata";
|
|
4
|
+
createdAt: any | null;
|
|
5
|
+
deleted: boolean | null;
|
|
6
|
+
description: string | null;
|
|
7
|
+
id: string;
|
|
8
|
+
pageTitle: string | null;
|
|
9
|
+
slug: string;
|
|
10
|
+
targetId: string | null;
|
|
11
|
+
targetType: BlogMetadataTargetTypeEnum | null;
|
|
12
|
+
updatedAt: any | null;
|
|
13
|
+
}
|
|
14
|
+
export interface listBlogMetaData_listBlogMetadata {
|
|
15
|
+
__typename: "BlogMetadataPaginationResponse";
|
|
16
|
+
count: number;
|
|
17
|
+
data: listBlogMetaData_listBlogMetadata_data[];
|
|
18
|
+
hasNext: boolean;
|
|
19
|
+
limit: number;
|
|
20
|
+
page: number;
|
|
21
|
+
}
|
|
22
|
+
export interface listBlogMetaData {
|
|
23
|
+
listBlogMetadata: listBlogMetaData_listBlogMetadata;
|
|
24
|
+
}
|
|
25
|
+
export interface listBlogMetaDataVariables {
|
|
26
|
+
slug?: StringFilterInput | null;
|
|
27
|
+
targetId?: StringFilterInput | null;
|
|
28
|
+
targetType?: BlogMetadataTargetTypeEnumFilter | null;
|
|
29
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IkasBlog, IkasBlogCategory, IkasBlogMetaData } from "../../models/data/blog/index";
|
|
2
|
+
export declare class IkasBlogAPI {
|
|
3
|
+
static listBlog(params: ListBlogParams): Promise<ListBlogResponse>;
|
|
4
|
+
static getBlog(params: GetBlogParams): Promise<IkasBlog | undefined>;
|
|
5
|
+
static listBlogMetaData(slug?: string, targetId?: string, targetType?: string[]): Promise<IkasBlogMetaData[]>;
|
|
6
|
+
static listBlogCategory(params: ListBlogCategoryParams): Promise<{
|
|
7
|
+
blogCategories: IkasBlogCategory[];
|
|
8
|
+
count: number;
|
|
9
|
+
hasNext: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
declare type ListBlogParams = {
|
|
13
|
+
idList?: string[];
|
|
14
|
+
categoryId?: string;
|
|
15
|
+
page: number;
|
|
16
|
+
limit: number;
|
|
17
|
+
tagId?: string;
|
|
18
|
+
title?: string;
|
|
19
|
+
};
|
|
20
|
+
declare type ListBlogResponse = {
|
|
21
|
+
blogs: IkasBlog[];
|
|
22
|
+
count: number;
|
|
23
|
+
};
|
|
24
|
+
declare type GetBlogParams = {
|
|
25
|
+
id: string;
|
|
26
|
+
};
|
|
27
|
+
declare type ListBlogCategoryParams = {
|
|
28
|
+
idList?: string[];
|
|
29
|
+
page: number;
|
|
30
|
+
limit: number;
|
|
31
|
+
};
|
|
32
|
+
export {};
|
|
@@ -10,7 +10,7 @@ export interface listProductBrand_listProductBrand_data_metaData {
|
|
|
10
10
|
}
|
|
11
11
|
export interface listProductBrand_listProductBrand_data {
|
|
12
12
|
__typename: "ProductBrand";
|
|
13
|
-
id: string
|
|
13
|
+
id: string;
|
|
14
14
|
name: string;
|
|
15
15
|
imageId: string | null;
|
|
16
16
|
metaData: listProductBrand_listProductBrand_data_metaData | null;
|
|
@@ -25,6 +25,7 @@ export interface listProductBrand {
|
|
|
25
25
|
}
|
|
26
26
|
export interface listProductBrandVariables {
|
|
27
27
|
id?: StringFilterInput | null;
|
|
28
|
-
|
|
28
|
+
pagination?: PaginationInput | null;
|
|
29
29
|
name?: StringFilterInput | null;
|
|
30
|
+
sort?: string | null;
|
|
30
31
|
}
|
|
@@ -22,7 +22,6 @@ export interface getCart_getCart_items_variant {
|
|
|
22
22
|
name: string;
|
|
23
23
|
productId: string | null;
|
|
24
24
|
sku: string | null;
|
|
25
|
-
taxValue: number | null;
|
|
26
25
|
variantValues: getCart_getCart_items_variant_variantValues[] | null;
|
|
27
26
|
}
|
|
28
27
|
export interface getCart_getCart_items {
|
|
@@ -32,7 +31,7 @@ export interface getCart_getCart_items {
|
|
|
32
31
|
discount: getCart_getCart_items_discount | null;
|
|
33
32
|
discountPrice: number | null;
|
|
34
33
|
finalPrice: number | null;
|
|
35
|
-
id: string
|
|
34
|
+
id: string;
|
|
36
35
|
originalOrderLineItemId: string | null;
|
|
37
36
|
price: number;
|
|
38
37
|
quantity: number;
|
|
@@ -50,8 +49,12 @@ export interface getCart_getCart {
|
|
|
50
49
|
currencyCode: string | null;
|
|
51
50
|
customerId: string | null;
|
|
52
51
|
dueDate: any;
|
|
53
|
-
id: string
|
|
52
|
+
id: string;
|
|
54
53
|
itemCount: number;
|
|
54
|
+
salesChannelId: string;
|
|
55
|
+
storefrontId: string | null;
|
|
56
|
+
storefrontRoutingId: string | null;
|
|
57
|
+
storefrontThemeId: string | null;
|
|
55
58
|
items: getCart_getCart_items[];
|
|
56
59
|
merchantId: string;
|
|
57
60
|
status: CartStatusEnum;
|
|
@@ -64,4 +67,5 @@ export interface getCart {
|
|
|
64
67
|
export interface getCartVariables {
|
|
65
68
|
cartId?: string | null;
|
|
66
69
|
customerId?: string | null;
|
|
70
|
+
storefrontRoutingId?: string | null;
|
|
67
71
|
}
|
|
@@ -22,7 +22,6 @@ export interface saveItemToCart_saveItemToCart_items_variant {
|
|
|
22
22
|
barcodeList: string[] | null;
|
|
23
23
|
mainImageId: string | null;
|
|
24
24
|
productId: string | null;
|
|
25
|
-
taxValue: number | null;
|
|
26
25
|
variantValues: saveItemToCart_saveItemToCart_items_variant_variantValues[] | null;
|
|
27
26
|
}
|
|
28
27
|
export interface saveItemToCart_saveItemToCart_items {
|
|
@@ -33,7 +32,7 @@ export interface saveItemToCart_saveItemToCart_items {
|
|
|
33
32
|
discount: saveItemToCart_saveItemToCart_items_discount | null;
|
|
34
33
|
discountPrice: number | null;
|
|
35
34
|
finalPrice: number | null;
|
|
36
|
-
id: string
|
|
35
|
+
id: string;
|
|
37
36
|
originalOrderLineItemId: string | null;
|
|
38
37
|
price: number;
|
|
39
38
|
quantity: number;
|
|
@@ -46,7 +45,7 @@ export interface saveItemToCart_saveItemToCart_items {
|
|
|
46
45
|
}
|
|
47
46
|
export interface saveItemToCart_saveItemToCart {
|
|
48
47
|
__typename: "Cart";
|
|
49
|
-
id: string
|
|
48
|
+
id: string;
|
|
50
49
|
createdAt: any | null;
|
|
51
50
|
updatedAt: any | null;
|
|
52
51
|
dueDate: any;
|
|
@@ -55,6 +54,10 @@ export interface saveItemToCart_saveItemToCart {
|
|
|
55
54
|
merchantId: string;
|
|
56
55
|
itemCount: number;
|
|
57
56
|
totalPrice: number;
|
|
57
|
+
salesChannelId: string;
|
|
58
|
+
storefrontId: string | null;
|
|
59
|
+
storefrontRoutingId: string | null;
|
|
60
|
+
storefrontThemeId: string | null;
|
|
58
61
|
items: saveItemToCart_saveItemToCart_items[];
|
|
59
62
|
}
|
|
60
63
|
export interface saveItemToCart {
|
|
@@ -10,7 +10,7 @@ export interface listCategory_listCategory_data_metaData {
|
|
|
10
10
|
}
|
|
11
11
|
export interface listCategory_listCategory_data {
|
|
12
12
|
__typename: "Category";
|
|
13
|
-
id: string
|
|
13
|
+
id: string;
|
|
14
14
|
createdAt: any | null;
|
|
15
15
|
updatedAt: any | null;
|
|
16
16
|
deleted: boolean | null;
|
|
@@ -18,6 +18,7 @@ export interface listCategory_listCategory_data {
|
|
|
18
18
|
parentId: string | null;
|
|
19
19
|
imageId: string | null;
|
|
20
20
|
metaData: listCategory_listCategory_data_metaData | null;
|
|
21
|
+
categoryPath: string[] | null;
|
|
21
22
|
}
|
|
22
23
|
export interface listCategory_listCategory {
|
|
23
24
|
__typename: "CategoryPaginationResponse";
|
|
@@ -29,6 +30,7 @@ export interface listCategory {
|
|
|
29
30
|
}
|
|
30
31
|
export interface listCategoryVariables {
|
|
31
32
|
id?: StringFilterInput | null;
|
|
32
|
-
|
|
33
|
+
pagination?: PaginationInput | null;
|
|
33
34
|
name?: StringFilterInput | null;
|
|
35
|
+
sort?: string | null;
|
|
34
36
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { StringFilterInput, PaginationInput } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listCategoryPaths_listCategory_data_metaData {
|
|
3
|
+
__typename: "HTMLMetaData";
|
|
4
|
+
slug: string;
|
|
5
|
+
}
|
|
6
|
+
export interface listCategoryPaths_listCategory_data {
|
|
7
|
+
__typename: "Category";
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
metaData: listCategoryPaths_listCategory_data_metaData | null;
|
|
11
|
+
}
|
|
12
|
+
export interface listCategoryPaths_listCategory {
|
|
13
|
+
__typename: "CategoryPaginationResponse";
|
|
14
|
+
data: listCategoryPaths_listCategory_data[];
|
|
15
|
+
}
|
|
16
|
+
export interface listCategoryPaths {
|
|
17
|
+
listCategory: listCategoryPaths_listCategory;
|
|
18
|
+
}
|
|
19
|
+
export interface listCategoryPathsVariables {
|
|
20
|
+
id?: StringFilterInput | null;
|
|
21
|
+
pagination?: PaginationInput | null;
|
|
22
|
+
name?: StringFilterInput | null;
|
|
23
|
+
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { IkasCategory } from "../../models/index";
|
|
2
|
+
import { IkasCategoryPath } from "../../models/data/category/index";
|
|
2
3
|
export declare class IkasCategoryAPI {
|
|
3
4
|
static listCategories(params?: ListCategoriesParams): Promise<ListCategoriesResponse>;
|
|
5
|
+
static listCategoryPaths(params?: ListCategoriesParams): Promise<IkasCategoryPath[]>;
|
|
4
6
|
}
|
|
5
7
|
declare type ListCategoriesParams = {
|
|
6
8
|
idList?: string[];
|
|
7
9
|
page?: number;
|
|
8
10
|
limit?: number;
|
|
9
11
|
search?: string;
|
|
12
|
+
sort?: string;
|
|
10
13
|
};
|
|
11
14
|
declare type ListCategoriesResponse = {
|
|
12
15
|
categories: IkasCategory[];
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { CheckStocksLineInput } from "../../../__generated__/global-types";
|
|
2
2
|
export interface checkStocks_checkStocks_lines {
|
|
3
3
|
__typename: "CheckStocksLineResponse";
|
|
4
|
-
|
|
4
|
+
stockCount: number;
|
|
5
5
|
isAvailable: boolean;
|
|
6
|
-
stockLocationId: string | null;
|
|
7
6
|
variantId: string;
|
|
8
7
|
}
|
|
9
8
|
export interface checkStocks_checkStocks {
|
|
10
9
|
__typename: "CheckStocksResponse";
|
|
11
|
-
lines: checkStocks_checkStocks_lines[]
|
|
10
|
+
lines: checkStocks_checkStocks_lines[];
|
|
12
11
|
}
|
|
13
12
|
export interface checkStocks {
|
|
14
13
|
checkStocks: checkStocks_checkStocks;
|
|
15
14
|
}
|
|
16
15
|
export interface checkStocksVariables {
|
|
17
16
|
lines: CheckStocksLineInput[];
|
|
17
|
+
stockLocationIdList?: string[] | null;
|
|
18
18
|
}
|
|
@@ -128,7 +128,6 @@ export interface getCheckoutById_getCheckoutById_cart_items_variant {
|
|
|
128
128
|
name: string;
|
|
129
129
|
productId: string | null;
|
|
130
130
|
sku: string | null;
|
|
131
|
-
taxValue: number | null;
|
|
132
131
|
variantValues: getCheckoutById_getCheckoutById_cart_items_variant_variantValues[] | null;
|
|
133
132
|
}
|
|
134
133
|
export interface getCheckoutById_getCheckoutById_cart_items {
|
|
@@ -138,7 +137,7 @@ export interface getCheckoutById_getCheckoutById_cart_items {
|
|
|
138
137
|
discount: getCheckoutById_getCheckoutById_cart_items_discount | null;
|
|
139
138
|
discountPrice: number | null;
|
|
140
139
|
finalPrice: number | null;
|
|
141
|
-
id: string
|
|
140
|
+
id: string;
|
|
142
141
|
originalOrderLineItemId: string | null;
|
|
143
142
|
price: number;
|
|
144
143
|
quantity: number;
|
|
@@ -156,7 +155,7 @@ export interface getCheckoutById_getCheckoutById_cart {
|
|
|
156
155
|
currencyCode: string | null;
|
|
157
156
|
customerId: string | null;
|
|
158
157
|
dueDate: any;
|
|
159
|
-
id: string
|
|
158
|
+
id: string;
|
|
160
159
|
itemCount: number;
|
|
161
160
|
items: getCheckoutById_getCheckoutById_cart_items[];
|
|
162
161
|
merchantId: string;
|
|
@@ -171,10 +170,12 @@ export interface getCheckoutById_getCheckoutById_adjustments {
|
|
|
171
170
|
name: string;
|
|
172
171
|
order: number;
|
|
173
172
|
type: AdjustmentEnum;
|
|
173
|
+
couponId: string | null;
|
|
174
174
|
}
|
|
175
175
|
export interface getCheckoutById_getCheckoutById {
|
|
176
176
|
__typename: "Checkout";
|
|
177
177
|
totalFinalPrice: number;
|
|
178
|
+
note: string | null;
|
|
178
179
|
availableShippingMethods: getCheckoutById_getCheckoutById_availableShippingMethods[] | null;
|
|
179
180
|
billingAddress: getCheckoutById_getCheckoutById_billingAddress | null;
|
|
180
181
|
cartId: string;
|
|
@@ -182,7 +183,7 @@ export interface getCheckoutById_getCheckoutById {
|
|
|
182
183
|
createdAt: any | null;
|
|
183
184
|
customer: getCheckoutById_getCheckoutById_customer | null;
|
|
184
185
|
deleted: boolean | null;
|
|
185
|
-
id: string
|
|
186
|
+
id: string;
|
|
186
187
|
merchantId: string;
|
|
187
188
|
orderId: string | null;
|
|
188
189
|
orderNumber: string | null;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { StringFilterInput, CheckoutRequirementEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listCheckoutSettings_listCheckoutSettings_options {
|
|
3
|
+
__typename: "CheckoutOption";
|
|
4
|
+
name: string;
|
|
5
|
+
required: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface listCheckoutSettings_listCheckoutSettings {
|
|
8
|
+
__typename: "CheckoutSettings";
|
|
9
|
+
createdAt: any | null;
|
|
10
|
+
id: string;
|
|
11
|
+
identityNumberRequirement: CheckoutRequirementEnum;
|
|
12
|
+
isAccountRequired: boolean;
|
|
13
|
+
isTermsAndConditionsDefaultChecked: boolean | null;
|
|
14
|
+
options: listCheckoutSettings_listCheckoutSettings_options[] | null;
|
|
15
|
+
phoneRequirement: CheckoutRequirementEnum;
|
|
16
|
+
showCheckoutNote: boolean | null;
|
|
17
|
+
showTermsAndConditionsCheckbox: boolean;
|
|
18
|
+
storefrontId: string;
|
|
19
|
+
updatedAt: any | null;
|
|
20
|
+
}
|
|
21
|
+
export interface listCheckoutSettings {
|
|
22
|
+
listCheckoutSettings: listCheckoutSettings_listCheckoutSettings[];
|
|
23
|
+
}
|
|
24
|
+
export interface listCheckoutSettingsVariables {
|
|
25
|
+
storefrontId: StringFilterInput;
|
|
26
|
+
}
|
|
@@ -1,17 +1,29 @@
|
|
|
1
|
-
import { PaymentMethodEnum } from "../../../__generated__/global-types";
|
|
1
|
+
import { StringFilterInput, PaymentMethodEnum, PaymentGatewayTransactionFeeTypeEnum, PaymentGatewayAdditionalPriceTypeEnum } from "../../../__generated__/global-types";
|
|
2
2
|
export interface listPaymentGateway_listPaymentGateway_paymentMethods {
|
|
3
3
|
__typename: "PaymentGatewayPaymentMethod";
|
|
4
4
|
name: string;
|
|
5
5
|
logoUrl: string | null;
|
|
6
6
|
}
|
|
7
|
+
export interface listPaymentGateway_listPaymentGateway_additionalPrices {
|
|
8
|
+
__typename: "AdditionalPrice";
|
|
9
|
+
amount: number;
|
|
10
|
+
amountType: PaymentGatewayTransactionFeeTypeEnum;
|
|
11
|
+
name: string;
|
|
12
|
+
type: PaymentGatewayAdditionalPriceTypeEnum;
|
|
13
|
+
}
|
|
7
14
|
export interface listPaymentGateway_listPaymentGateway {
|
|
8
15
|
__typename: "PaymentGateway";
|
|
9
16
|
paymentMethods: listPaymentGateway_listPaymentGateway_paymentMethods[];
|
|
10
17
|
paymentMethodType: PaymentMethodEnum;
|
|
11
|
-
id: string
|
|
18
|
+
id: string;
|
|
12
19
|
name: string;
|
|
20
|
+
description: string | null;
|
|
13
21
|
testMode: boolean | null;
|
|
22
|
+
additionalPrices: listPaymentGateway_listPaymentGateway_additionalPrices[] | null;
|
|
14
23
|
}
|
|
15
24
|
export interface listPaymentGateway {
|
|
16
25
|
listPaymentGateway: listPaymentGateway_listPaymentGateway[];
|
|
17
26
|
}
|
|
27
|
+
export interface listPaymentGatewayVariables {
|
|
28
|
+
id?: StringFilterInput | null;
|
|
29
|
+
}
|
|
@@ -2,18 +2,26 @@ import { IkasCheckout, IkasPaymentMethodDetail, IkasInstallmentInfo, IkasInstall
|
|
|
2
2
|
import * as SaleTransactionTypes from "./__generated__/createSaleTransactionWithCheckout";
|
|
3
3
|
import * as CheckStocksTypes from "./__generated__/checkStocks";
|
|
4
4
|
import { IkasPaymentGateway } from "../../models/data/payment-gateway/index";
|
|
5
|
+
import { IkasCheckoutSettings } from "../../models/data/checkout-settings/index";
|
|
6
|
+
import { GraphQLError } from "graphql";
|
|
5
7
|
export declare class IkasCheckoutAPI {
|
|
6
8
|
static getCheckoutId(cartId: string): Promise<string | undefined>;
|
|
7
9
|
static getCheckoutById(id: string): Promise<IkasCheckout | undefined>;
|
|
8
|
-
static saveCheckout(checkout: IkasCheckout): Promise<
|
|
10
|
+
static saveCheckout(checkout: IkasCheckout): Promise<SaveCheckoutResponse | undefined>;
|
|
9
11
|
static createSaleTransactionWithCheckout(checkoutId: string, paymentGatewayId: string, paymentMethodDetail?: IkasPaymentMethodDetail): Promise<SaleTransactionTypes.createSaleTransactionWithCheckout_createSaleTransactionWithCheckout | undefined>;
|
|
10
|
-
static listPaymentGateway(): Promise<IkasPaymentGateway[] | undefined>;
|
|
12
|
+
static listPaymentGateway(idList?: string[]): Promise<IkasPaymentGateway[] | undefined>;
|
|
11
13
|
static retrieveInstallmentInfo(input: IkasInstallmentInfoInput): Promise<IkasInstallmentInfo | undefined>;
|
|
12
|
-
static checkStocks(lines: CheckStocksLineInput[]): Promise<CheckStocksTypes.checkStocks_checkStocks | undefined>;
|
|
14
|
+
static checkStocks(lines: CheckStocksLineInput[], stockLocationIdList: string[]): Promise<CheckStocksTypes.checkStocks_checkStocks | undefined>;
|
|
15
|
+
static listCheckoutSettings(): Promise<IkasCheckoutSettings[] | undefined>;
|
|
13
16
|
}
|
|
14
17
|
declare type CheckStocksLineInput = {
|
|
15
18
|
quantity: number;
|
|
16
19
|
stockLocationId?: string | null;
|
|
17
20
|
variantId: string;
|
|
21
|
+
productId: string;
|
|
22
|
+
};
|
|
23
|
+
declare type SaveCheckoutResponse = {
|
|
24
|
+
data: string | undefined;
|
|
25
|
+
errors: readonly GraphQLError[] | undefined;
|
|
18
26
|
};
|
|
19
27
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare type SaveContactForm = {
|
|
2
|
+
firstName: string;
|
|
3
|
+
lastName: string;
|
|
4
|
+
email: string;
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
|
+
export declare class IkasContactFormAPI {
|
|
8
|
+
static sendContactFormToMerchant(input: SaveContactForm): Promise<boolean | undefined>;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { StringFilterInput } from "../../../__generated__/global-types";
|
|
1
2
|
export interface listCountry_listCountry_locationTranslations {
|
|
2
3
|
__typename: "LocationTranslations";
|
|
3
4
|
tr: string;
|
|
@@ -5,8 +6,10 @@ export interface listCountry_listCountry_locationTranslations {
|
|
|
5
6
|
}
|
|
6
7
|
export interface listCountry_listCountry {
|
|
7
8
|
__typename: "Country";
|
|
8
|
-
id: string
|
|
9
|
+
id: string;
|
|
9
10
|
name: string;
|
|
11
|
+
native: string | null;
|
|
12
|
+
iso2: string | null;
|
|
10
13
|
iso3: string | null;
|
|
11
14
|
phoneCode: string | null;
|
|
12
15
|
locationTranslations: listCountry_listCountry_locationTranslations;
|
|
@@ -14,3 +17,7 @@ export interface listCountry_listCountry {
|
|
|
14
17
|
export interface listCountry {
|
|
15
18
|
listCountry: listCountry_listCountry[];
|
|
16
19
|
}
|
|
20
|
+
export interface listCountryVariables {
|
|
21
|
+
iso2?: StringFilterInput | null;
|
|
22
|
+
id?: StringFilterInput | null;
|
|
23
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IkasCountry } from "../../models/index";
|
|
2
2
|
export declare class IkasCountryAPI {
|
|
3
|
-
static listCountries(): Promise<IkasCountry[]>;
|
|
4
|
-
static listShippingCountries(): Promise<string[]>;
|
|
3
|
+
static listCountries(iso2List?: string[], idList?: string[]): Promise<IkasCountry[]>;
|
|
4
|
+
static listShippingCountries(salesChannelId: string): Promise<string[]>;
|
|
5
|
+
static getMyCountry(): Promise<string | null | undefined>;
|
|
5
6
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CreateCustomerEmailSubscriptionInput } from "../../../__generated__/global-types";
|
|
2
|
+
export interface createCustomerEmailSubscription_createCustomerEmailSubscription {
|
|
3
|
+
__typename: "Customer";
|
|
4
|
+
id: string;
|
|
5
|
+
}
|
|
6
|
+
export interface createCustomerEmailSubscription {
|
|
7
|
+
createCustomerEmailSubscription: createCustomerEmailSubscription_createCustomerEmailSubscription;
|
|
8
|
+
}
|
|
9
|
+
export interface createCustomerEmailSubscriptionVariables {
|
|
10
|
+
input: CreateCustomerEmailSubscriptionInput;
|
|
11
|
+
}
|