@ikas/storefront 1.0.7 → 1.0.8
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 +3 -0
- package/build/api/blog/__generated__/getBlog.d.ts +25 -0
- package/build/api/blog/__generated__/listBlog.d.ts +25 -0
- package/build/api/blog/__generated__/listBlogCategory.d.ts +25 -0
- package/build/api/blog/__generated__/listBlogMetaData.d.ts +27 -1
- package/build/api/blog/index.d.ts +1 -1
- package/build/api/brand/__generated__/listProductBrand.d.ts +41 -0
- package/build/api/cart/__generated__/getCart.d.ts +92 -0
- package/build/api/cart/__generated__/saveItemToCart.d.ts +114 -1
- package/build/api/category/__generated__/listCategory.d.ts +47 -0
- package/build/api/category/__generated__/listCategoryPaths.d.ts +9 -0
- package/build/api/checkout/__generated__/getCheckoutById.d.ts +339 -1
- package/build/api/checkout/__generated__/getOrder.d.ts +406 -1
- package/build/api/city/__generated__/listCity.d.ts +6 -0
- package/build/api/country/__generated__/listCountry.d.ts +18 -0
- package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +375 -0
- package/build/api/customer/__generated__/customerLogin.d.ts +85 -0
- package/build/api/customer/__generated__/getCustomerOrders.d.ts +406 -1
- package/build/api/customer/__generated__/getMyCustomer.d.ts +82 -0
- package/build/api/customer/__generated__/registerCustomer.d.ts +79 -0
- package/build/api/customer/__generated__/saveMyCustomer.d.ts +85 -0
- package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +25 -0
- package/build/api/district/__generated__/listDistrict.d.ts +3 -0
- package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +11 -1
- package/build/api/html-meta-data/index.d.ts +1 -1
- package/build/api/product-attribute/__generated__/listProductAttribute.d.ts +33 -0
- package/build/api/product-search/__generated__/getProductFilterData.d.ts +9 -0
- package/build/api/state/__generated__/listState.d.ts +6 -0
- package/build/api/variant-type/__generated__/listVariantType.d.ts +37 -0
- package/build/index.es.js +462 -316
- package/build/index.js +462 -316
- package/build/models/ui/navigation-link/index.d.ts +1 -0
- package/build/providers/page-data-get.d.ts +4 -0
- package/build/providers/prop-value/link.d.ts +8 -1
- package/package.json +1 -1
|
@@ -587,6 +587,7 @@ export interface SaveMyCustomerInput {
|
|
|
587
587
|
}
|
|
588
588
|
export interface SearchInput {
|
|
589
589
|
brandId?: string | null;
|
|
590
|
+
brandIdList?: string[] | null;
|
|
590
591
|
categoryIdList?: string[] | null;
|
|
591
592
|
facetList?: SearchInputFacetListInput[] | null;
|
|
592
593
|
filterList?: SearchInputFilterListInput[] | null;
|
|
@@ -600,6 +601,8 @@ export interface SearchInput {
|
|
|
600
601
|
salesChannelId?: string | null;
|
|
601
602
|
showStockOption?: ProductSearchShowStockOptionEnum | null;
|
|
602
603
|
slug?: string | null;
|
|
604
|
+
tagIdList?: string[] | null;
|
|
605
|
+
vendorIdList?: string[] | null;
|
|
603
606
|
}
|
|
604
607
|
export interface SearchInputFacetListInput {
|
|
605
608
|
displayType: ProductFilterDisplayTypeEnum;
|
|
@@ -67,10 +67,35 @@ export interface getBlog_listBlog_data {
|
|
|
67
67
|
}
|
|
68
68
|
export interface getBlog_listBlog {
|
|
69
69
|
__typename: "BlogPaginationResponse";
|
|
70
|
+
/**
|
|
71
|
+
* Returns the first three records of each page in the records returned as a
|
|
72
|
+
* response. For example, ***let's say page = 3, limit = 30, count = 3.*** The
|
|
73
|
+
* records that will return as a response are the records ***between 60-62.***
|
|
74
|
+
*/
|
|
70
75
|
count: number;
|
|
71
76
|
data: getBlog_listBlog_data[];
|
|
77
|
+
/**
|
|
78
|
+
* In the records returned as Response, it shows whether there are any more
|
|
79
|
+
* records or not. For example, let's say our page field is three and our limit
|
|
80
|
+
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
81
|
+
* ```true``` despite these records, ***it means there are more records.*** If
|
|
82
|
+
* hasNext is ```false```, it means there are a total of ***90 records.***
|
|
83
|
+
*/
|
|
72
84
|
hasNext: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* The maximum number of data you want to see on a page in the records returned
|
|
87
|
+
* as a response. For example, if the limit is ***20***, the data will be
|
|
88
|
+
* displayed ***as 20 each.***<br />:::note<br />min 1, max 200 values can be
|
|
89
|
+
* given. If no value is entered, default 50 is accepted.<br />:::
|
|
90
|
+
*/
|
|
73
91
|
limit: number;
|
|
92
|
+
/**
|
|
93
|
+
* The number of the page you want to see in the records that return as response.
|
|
94
|
+
* For example: We entered the page field as ***3***.And let our limit field be
|
|
95
|
+
* ***30***. The records that will return as a response are the records
|
|
96
|
+
* ***between 60-90.***<br />:::note<br />If no value is entered, default 1 is
|
|
97
|
+
* accepted.<br /> :::
|
|
98
|
+
*/
|
|
74
99
|
page: number;
|
|
75
100
|
}
|
|
76
101
|
export interface getBlog {
|
|
@@ -67,10 +67,35 @@ export interface listBlog_listBlog_data {
|
|
|
67
67
|
}
|
|
68
68
|
export interface listBlog_listBlog {
|
|
69
69
|
__typename: "BlogPaginationResponse";
|
|
70
|
+
/**
|
|
71
|
+
* Returns the first three records of each page in the records returned as a
|
|
72
|
+
* response. For example, ***let's say page = 3, limit = 30, count = 3.*** The
|
|
73
|
+
* records that will return as a response are the records ***between 60-62.***
|
|
74
|
+
*/
|
|
70
75
|
count: number;
|
|
71
76
|
data: listBlog_listBlog_data[];
|
|
77
|
+
/**
|
|
78
|
+
* In the records returned as Response, it shows whether there are any more
|
|
79
|
+
* records or not. For example, let's say our page field is three and our limit
|
|
80
|
+
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
81
|
+
* ```true``` despite these records, ***it means there are more records.*** If
|
|
82
|
+
* hasNext is ```false```, it means there are a total of ***90 records.***
|
|
83
|
+
*/
|
|
72
84
|
hasNext: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* The maximum number of data you want to see on a page in the records returned
|
|
87
|
+
* as a response. For example, if the limit is ***20***, the data will be
|
|
88
|
+
* displayed ***as 20 each.***<br />:::note<br />min 1, max 200 values can be
|
|
89
|
+
* given. If no value is entered, default 50 is accepted.<br />:::
|
|
90
|
+
*/
|
|
73
91
|
limit: number;
|
|
92
|
+
/**
|
|
93
|
+
* The number of the page you want to see in the records that return as response.
|
|
94
|
+
* For example: We entered the page field as ***3***.And let our limit field be
|
|
95
|
+
* ***30***. The records that will return as a response are the records
|
|
96
|
+
* ***between 60-90.***<br />:::note<br />If no value is entered, default 1 is
|
|
97
|
+
* accepted.<br /> :::
|
|
98
|
+
*/
|
|
74
99
|
page: number;
|
|
75
100
|
}
|
|
76
101
|
export interface listBlog {
|
|
@@ -23,10 +23,35 @@ export interface listBlogCategory_listBlogCategory_data {
|
|
|
23
23
|
}
|
|
24
24
|
export interface listBlogCategory_listBlogCategory {
|
|
25
25
|
__typename: "BlogCategoryPaginationResponse";
|
|
26
|
+
/**
|
|
27
|
+
* Returns the first three records of each page in the records returned as a
|
|
28
|
+
* response. For example, ***let's say page = 3, limit = 30, count = 3.*** The
|
|
29
|
+
* records that will return as a response are the records ***between 60-62.***
|
|
30
|
+
*/
|
|
26
31
|
count: number;
|
|
27
32
|
data: listBlogCategory_listBlogCategory_data[];
|
|
33
|
+
/**
|
|
34
|
+
* In the records returned as Response, it shows whether there are any more
|
|
35
|
+
* records or not. For example, let's say our page field is three and our limit
|
|
36
|
+
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
37
|
+
* ```true``` despite these records, ***it means there are more records.*** If
|
|
38
|
+
* hasNext is ```false```, it means there are a total of ***90 records.***
|
|
39
|
+
*/
|
|
28
40
|
hasNext: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The maximum number of data you want to see on a page in the records returned
|
|
43
|
+
* as a response. For example, if the limit is ***20***, the data will be
|
|
44
|
+
* displayed ***as 20 each.***<br />:::note<br />min 1, max 200 values can be
|
|
45
|
+
* given. If no value is entered, default 50 is accepted.<br />:::
|
|
46
|
+
*/
|
|
29
47
|
limit: number;
|
|
48
|
+
/**
|
|
49
|
+
* The number of the page you want to see in the records that return as response.
|
|
50
|
+
* For example: We entered the page field as ***3***.And let our limit field be
|
|
51
|
+
* ***30***. The records that will return as a response are the records
|
|
52
|
+
* ***between 60-90.***<br />:::note<br />If no value is entered, default 1 is
|
|
53
|
+
* accepted.<br /> :::
|
|
54
|
+
*/
|
|
30
55
|
page: number;
|
|
31
56
|
}
|
|
32
57
|
export interface listBlogCategory {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StringFilterInput, BlogMetadataTargetTypeEnumFilter, BlogMetadataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
1
|
+
import { StringFilterInput, BlogMetadataTargetTypeEnumFilter, PaginationInput, BlogMetadataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
2
|
export interface listBlogMetaData_listBlogMetadata_data {
|
|
3
3
|
__typename: "BlogMetadata";
|
|
4
4
|
createdAt: any | null;
|
|
@@ -13,10 +13,35 @@ export interface listBlogMetaData_listBlogMetadata_data {
|
|
|
13
13
|
}
|
|
14
14
|
export interface listBlogMetaData_listBlogMetadata {
|
|
15
15
|
__typename: "BlogMetadataPaginationResponse";
|
|
16
|
+
/**
|
|
17
|
+
* Returns the first three records of each page in the records returned as a
|
|
18
|
+
* response. For example, ***let's say page = 3, limit = 30, count = 3.*** The
|
|
19
|
+
* records that will return as a response are the records ***between 60-62.***
|
|
20
|
+
*/
|
|
16
21
|
count: number;
|
|
17
22
|
data: listBlogMetaData_listBlogMetadata_data[];
|
|
23
|
+
/**
|
|
24
|
+
* In the records returned as Response, it shows whether there are any more
|
|
25
|
+
* records or not. For example, let's say our page field is three and our limit
|
|
26
|
+
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
27
|
+
* ```true``` despite these records, ***it means there are more records.*** If
|
|
28
|
+
* hasNext is ```false```, it means there are a total of ***90 records.***
|
|
29
|
+
*/
|
|
18
30
|
hasNext: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The maximum number of data you want to see on a page in the records returned
|
|
33
|
+
* as a response. For example, if the limit is ***20***, the data will be
|
|
34
|
+
* displayed ***as 20 each.***<br />:::note<br />min 1, max 200 values can be
|
|
35
|
+
* given. If no value is entered, default 50 is accepted.<br />:::
|
|
36
|
+
*/
|
|
19
37
|
limit: number;
|
|
38
|
+
/**
|
|
39
|
+
* The number of the page you want to see in the records that return as response.
|
|
40
|
+
* For example: We entered the page field as ***3***.And let our limit field be
|
|
41
|
+
* ***30***. The records that will return as a response are the records
|
|
42
|
+
* ***between 60-90.***<br />:::note<br />If no value is entered, default 1 is
|
|
43
|
+
* accepted.<br /> :::
|
|
44
|
+
*/
|
|
20
45
|
page: number;
|
|
21
46
|
}
|
|
22
47
|
export interface listBlogMetaData {
|
|
@@ -26,4 +51,5 @@ export interface listBlogMetaDataVariables {
|
|
|
26
51
|
slug?: StringFilterInput | null;
|
|
27
52
|
targetId?: StringFilterInput | null;
|
|
28
53
|
targetType?: BlogMetadataTargetTypeEnumFilter | null;
|
|
54
|
+
pagination?: PaginationInput | null;
|
|
29
55
|
}
|
|
@@ -2,7 +2,7 @@ import { IkasBlog, IkasBlogCategory, IkasBlogMetaData } from "../../models/data/
|
|
|
2
2
|
export declare class IkasBlogAPI {
|
|
3
3
|
static listBlog(params: ListBlogParams): Promise<ListBlogResponse>;
|
|
4
4
|
static getBlog(params: GetBlogParams): Promise<IkasBlog | undefined>;
|
|
5
|
-
static listBlogMetaData(slug?: string,
|
|
5
|
+
static listBlogMetaData(slug?: string, targetIds?: string[], targetType?: string[], page?: number, limit?: number): Promise<IkasBlogMetaData[]>;
|
|
6
6
|
static listBlogCategory(params: ListBlogCategoryParams): Promise<{
|
|
7
7
|
blogCategories: IkasBlogCategory[];
|
|
8
8
|
count: number;
|
|
@@ -7,33 +7,74 @@ export interface listProductBrand_listProductBrand_data_metaData_translations {
|
|
|
7
7
|
}
|
|
8
8
|
export interface listProductBrand_listProductBrand_data_metaData {
|
|
9
9
|
__typename: "HTMLMetaData";
|
|
10
|
+
/**
|
|
11
|
+
* The token of the metadata. It is saved as completely unique.
|
|
12
|
+
*/
|
|
10
13
|
slug: string;
|
|
14
|
+
/**
|
|
15
|
+
* The page title of the metadata.
|
|
16
|
+
*/
|
|
11
17
|
pageTitle: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* The description of the metadata.
|
|
20
|
+
*/
|
|
12
21
|
description: string | null;
|
|
13
22
|
targetId: string | null;
|
|
14
23
|
targetType: HTMLMetaDataTargetTypeEnum | null;
|
|
15
24
|
redirectTo: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* The translations information of the metadata.
|
|
27
|
+
*/
|
|
16
28
|
translations: listProductBrand_listProductBrand_data_metaData_translations[] | null;
|
|
17
29
|
}
|
|
18
30
|
export interface listProductBrand_listProductBrand_data_translations {
|
|
19
31
|
__typename: "ProductBrandTranslation";
|
|
32
|
+
/**
|
|
33
|
+
* It is the description information of the translation.
|
|
34
|
+
*/
|
|
20
35
|
description: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* It is the name information of the translation.
|
|
38
|
+
*/
|
|
21
39
|
locale: string;
|
|
40
|
+
/**
|
|
41
|
+
* It is the information in which language the translation is saved.
|
|
42
|
+
*/
|
|
22
43
|
name: string | null;
|
|
23
44
|
}
|
|
24
45
|
export interface listProductBrand_listProductBrand_data {
|
|
25
46
|
__typename: "ProductBrand";
|
|
26
47
|
id: string;
|
|
48
|
+
/**
|
|
49
|
+
* The name of the product's brand.
|
|
50
|
+
*/
|
|
27
51
|
name: string;
|
|
52
|
+
/**
|
|
53
|
+
* The description of the product's brand.
|
|
54
|
+
*/
|
|
28
55
|
description: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* The image information of the product's brand.
|
|
58
|
+
*/
|
|
29
59
|
imageId: string | null;
|
|
30
60
|
orderType: CategoryProductsOrderTypeEnum | null;
|
|
61
|
+
/**
|
|
62
|
+
* It is the metadata information of the product brand.
|
|
63
|
+
*/
|
|
31
64
|
metaData: listProductBrand_listProductBrand_data_metaData | null;
|
|
65
|
+
/**
|
|
66
|
+
* It is the translation information of the product brand.
|
|
67
|
+
*/
|
|
32
68
|
translations: listProductBrand_listProductBrand_data_translations[] | null;
|
|
33
69
|
}
|
|
34
70
|
export interface listProductBrand_listProductBrand {
|
|
35
71
|
__typename: "ProductBrandPaginationResponse";
|
|
36
72
|
data: listProductBrand_listProductBrand_data[];
|
|
73
|
+
/**
|
|
74
|
+
* Returns the first three records of each page in the records returned as a
|
|
75
|
+
* response. For example, ***let's say page = 3, limit = 30, count = 3.*** The
|
|
76
|
+
* records that will return as a response are the records ***between 60-62.***
|
|
77
|
+
*/
|
|
37
78
|
count: number;
|
|
38
79
|
}
|
|
39
80
|
export interface listProductBrand {
|
|
@@ -13,49 +13,141 @@ export interface getCart_getCart_items_options_values {
|
|
|
13
13
|
}
|
|
14
14
|
export interface getCart_getCart_items_options {
|
|
15
15
|
__typename: "OrderLineOption";
|
|
16
|
+
/**
|
|
17
|
+
* It is the name of order line option in the order line item.
|
|
18
|
+
*/
|
|
16
19
|
name: string;
|
|
20
|
+
/**
|
|
21
|
+
* It is the product option id of the product in the order line item.
|
|
22
|
+
*/
|
|
17
23
|
productOptionId: string;
|
|
24
|
+
/**
|
|
25
|
+
* It is the product option set id of the product in the order line item.
|
|
26
|
+
*/
|
|
18
27
|
productOptionsSetId: string;
|
|
28
|
+
/**
|
|
29
|
+
* It is the type of the order line option.
|
|
30
|
+
*/
|
|
19
31
|
type: ProductOptionTypeEnum;
|
|
20
32
|
values: getCart_getCart_items_options_values[];
|
|
21
33
|
}
|
|
22
34
|
export interface getCart_getCart_items_variant_variantValues {
|
|
23
35
|
__typename: "OrderLineVariantVariantValues";
|
|
36
|
+
/**
|
|
37
|
+
* It is the order of variant value. The variant value order starts from 0.
|
|
38
|
+
*/
|
|
24
39
|
order: number;
|
|
40
|
+
/**
|
|
41
|
+
* It is the order of variant value. The variant value order starts from 0.
|
|
42
|
+
*/
|
|
25
43
|
variantTypeId: string;
|
|
44
|
+
/**
|
|
45
|
+
* It is the order of variant value. The variant value order starts from 0.
|
|
46
|
+
*/
|
|
26
47
|
variantTypeName: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* It is the order of variant value. The variant value order starts from 0.
|
|
50
|
+
*/
|
|
27
51
|
variantValueId: string;
|
|
52
|
+
/**
|
|
53
|
+
* It is the order of variant value. The variant value order starts from 0.
|
|
54
|
+
*/
|
|
28
55
|
variantValueName: string | null;
|
|
29
56
|
}
|
|
30
57
|
export interface getCart_getCart_items_variant {
|
|
31
58
|
__typename: "OrderLineVariant";
|
|
59
|
+
/**
|
|
60
|
+
* It is the slug of the variant. The slug value is unique each variant and product.
|
|
61
|
+
*/
|
|
32
62
|
slug: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* It is the barcode list of the variant.
|
|
65
|
+
*/
|
|
33
66
|
barcodeList: string[] | null;
|
|
67
|
+
/**
|
|
68
|
+
* It is the id of the variant.
|
|
69
|
+
*/
|
|
34
70
|
id: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* It is the main image id of the variant.
|
|
73
|
+
*/
|
|
35
74
|
mainImageId: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* It is the name of the variant.
|
|
77
|
+
*/
|
|
36
78
|
name: string;
|
|
79
|
+
/**
|
|
80
|
+
* It is the product id of the variant.
|
|
81
|
+
*/
|
|
37
82
|
productId: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* It is the sku of the variant.
|
|
85
|
+
*/
|
|
38
86
|
sku: string | null;
|
|
87
|
+
/**
|
|
88
|
+
* It is the variant values of the variant.
|
|
89
|
+
*/
|
|
39
90
|
variantValues: getCart_getCart_items_variant_variantValues[] | null;
|
|
40
91
|
}
|
|
41
92
|
export interface getCart_getCart_items {
|
|
42
93
|
__typename: "OrderLineItem";
|
|
43
94
|
createdAt: any | null;
|
|
95
|
+
/**
|
|
96
|
+
* It is the currency code of the order line item.
|
|
97
|
+
*/
|
|
44
98
|
currencyCode: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Information about the discount. Shows the details of the discount applied to the order line item.
|
|
101
|
+
*/
|
|
45
102
|
discount: getCart_getCart_items_discount | null;
|
|
103
|
+
/**
|
|
104
|
+
* It is the discount price of the order line item.
|
|
105
|
+
*/
|
|
46
106
|
discountPrice: number | null;
|
|
107
|
+
/**
|
|
108
|
+
* It is the final price of the order line item. If the discount price is less
|
|
109
|
+
* than the sell price, the final price is equal to the discount price.
|
|
110
|
+
*/
|
|
47
111
|
finalPrice: number | null;
|
|
48
112
|
id: string;
|
|
113
|
+
/**
|
|
114
|
+
* It is the option information of the variant value in the order line item.
|
|
115
|
+
*/
|
|
49
116
|
options: getCart_getCart_items_options[] | null;
|
|
117
|
+
/**
|
|
118
|
+
* It is the original order line item id of the line item. If the line item is
|
|
119
|
+
* derived from another line item, this field is filled.
|
|
120
|
+
*/
|
|
50
121
|
originalOrderLineItemId: string | null;
|
|
122
|
+
/**
|
|
123
|
+
* It is the selling price of the order line item.
|
|
124
|
+
*/
|
|
51
125
|
price: number;
|
|
126
|
+
/**
|
|
127
|
+
* It is the quantity of variant in the order line item.
|
|
128
|
+
*/
|
|
52
129
|
quantity: number;
|
|
130
|
+
/**
|
|
131
|
+
* It is the status enum of the order line item
|
|
132
|
+
*/
|
|
53
133
|
status: OrderLineItemStatusEnum;
|
|
54
134
|
deleted: boolean | null;
|
|
135
|
+
/**
|
|
136
|
+
* It is the date when the last status of the order line item was updated.
|
|
137
|
+
*/
|
|
55
138
|
statusUpdatedAt: any | null;
|
|
139
|
+
/**
|
|
140
|
+
* It is the stock location id of the variant value in the order line item.
|
|
141
|
+
*/
|
|
56
142
|
stockLocationId: string | null;
|
|
143
|
+
/**
|
|
144
|
+
* It is the tax value of the order line item.
|
|
145
|
+
*/
|
|
57
146
|
taxValue: number | null;
|
|
58
147
|
updatedAt: any | null;
|
|
148
|
+
/**
|
|
149
|
+
* Information about the variant of the order line item.
|
|
150
|
+
*/
|
|
59
151
|
variant: getCart_getCart_items_variant;
|
|
60
152
|
}
|
|
61
153
|
export interface getCart_getCart {
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { SaveItemToCartInput, AmountTypeEnum, OrderLineItemStatusEnum } from "../../../__generated__/global-types";
|
|
1
|
+
import { SaveItemToCartInput, AmountTypeEnum, ProductOptionTypeEnum, OrderLineItemStatusEnum } from "../../../__generated__/global-types";
|
|
2
2
|
export interface saveItemToCart_saveItemToCart_taxLines {
|
|
3
3
|
__typename: "OrderTaxLine";
|
|
4
|
+
/**
|
|
5
|
+
* It is the price of the order tax.
|
|
6
|
+
*/
|
|
4
7
|
price: number;
|
|
8
|
+
/**
|
|
9
|
+
* It is the percentage of the slice to which the calculated tax amount belongs.
|
|
10
|
+
*/
|
|
5
11
|
rate: number;
|
|
6
12
|
}
|
|
7
13
|
export interface saveItemToCart_saveItemToCart_items_discount {
|
|
@@ -10,42 +16,149 @@ export interface saveItemToCart_saveItemToCart_items_discount {
|
|
|
10
16
|
amountType: AmountTypeEnum;
|
|
11
17
|
reason: string | null;
|
|
12
18
|
}
|
|
19
|
+
export interface saveItemToCart_saveItemToCart_items_options_values {
|
|
20
|
+
__typename: "OrderLineOptionValue";
|
|
21
|
+
name: string | null;
|
|
22
|
+
price: number | null;
|
|
23
|
+
value: string;
|
|
24
|
+
}
|
|
25
|
+
export interface saveItemToCart_saveItemToCart_items_options {
|
|
26
|
+
__typename: "OrderLineOption";
|
|
27
|
+
/**
|
|
28
|
+
* It is the name of order line option in the order line item.
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* It is the product option set id of the product in the order line item.
|
|
33
|
+
*/
|
|
34
|
+
productOptionsSetId: string;
|
|
35
|
+
/**
|
|
36
|
+
* It is the product option id of the product in the order line item.
|
|
37
|
+
*/
|
|
38
|
+
productOptionId: string;
|
|
39
|
+
/**
|
|
40
|
+
* It is the type of the order line option.
|
|
41
|
+
*/
|
|
42
|
+
type: ProductOptionTypeEnum;
|
|
43
|
+
values: saveItemToCart_saveItemToCart_items_options_values[];
|
|
44
|
+
}
|
|
13
45
|
export interface saveItemToCart_saveItemToCart_items_variant_variantValues {
|
|
14
46
|
__typename: "OrderLineVariantVariantValues";
|
|
47
|
+
/**
|
|
48
|
+
* It is the order of variant value. The variant value order starts from 0.
|
|
49
|
+
*/
|
|
15
50
|
order: number;
|
|
51
|
+
/**
|
|
52
|
+
* It is the order of variant value. The variant value order starts from 0.
|
|
53
|
+
*/
|
|
16
54
|
variantTypeId: string;
|
|
55
|
+
/**
|
|
56
|
+
* It is the order of variant value. The variant value order starts from 0.
|
|
57
|
+
*/
|
|
17
58
|
variantTypeName: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* It is the order of variant value. The variant value order starts from 0.
|
|
61
|
+
*/
|
|
18
62
|
variantValueId: string;
|
|
63
|
+
/**
|
|
64
|
+
* It is the order of variant value. The variant value order starts from 0.
|
|
65
|
+
*/
|
|
19
66
|
variantValueName: string | null;
|
|
20
67
|
}
|
|
21
68
|
export interface saveItemToCart_saveItemToCart_items_variant {
|
|
22
69
|
__typename: "OrderLineVariant";
|
|
70
|
+
/**
|
|
71
|
+
* It is the id of the variant.
|
|
72
|
+
*/
|
|
23
73
|
id: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* It is the name of the variant.
|
|
76
|
+
*/
|
|
24
77
|
name: string;
|
|
78
|
+
/**
|
|
79
|
+
* It is the sku of the variant.
|
|
80
|
+
*/
|
|
25
81
|
sku: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* It is the slug of the variant. The slug value is unique each variant and product.
|
|
84
|
+
*/
|
|
26
85
|
slug: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* It is the barcode list of the variant.
|
|
88
|
+
*/
|
|
27
89
|
barcodeList: string[] | null;
|
|
90
|
+
/**
|
|
91
|
+
* It is the main image id of the variant.
|
|
92
|
+
*/
|
|
28
93
|
mainImageId: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* It is the product id of the variant.
|
|
96
|
+
*/
|
|
29
97
|
productId: string | null;
|
|
98
|
+
/**
|
|
99
|
+
* It is the variant values of the variant.
|
|
100
|
+
*/
|
|
30
101
|
variantValues: saveItemToCart_saveItemToCart_items_variant_variantValues[] | null;
|
|
31
102
|
}
|
|
32
103
|
export interface saveItemToCart_saveItemToCart_items {
|
|
33
104
|
__typename: "OrderLineItem";
|
|
34
105
|
createdAt: any | null;
|
|
106
|
+
/**
|
|
107
|
+
* It is the currency code of the order line item.
|
|
108
|
+
*/
|
|
35
109
|
currencyCode: string | null;
|
|
36
110
|
deleted: boolean | null;
|
|
111
|
+
/**
|
|
112
|
+
* Information about the discount. Shows the details of the discount applied to the order line item.
|
|
113
|
+
*/
|
|
37
114
|
discount: saveItemToCart_saveItemToCart_items_discount | null;
|
|
115
|
+
/**
|
|
116
|
+
* It is the discount price of the order line item.
|
|
117
|
+
*/
|
|
38
118
|
discountPrice: number | null;
|
|
119
|
+
/**
|
|
120
|
+
* It is the final price of the order line item. If the discount price is less
|
|
121
|
+
* than the sell price, the final price is equal to the discount price.
|
|
122
|
+
*/
|
|
39
123
|
finalPrice: number | null;
|
|
40
124
|
id: string;
|
|
125
|
+
/**
|
|
126
|
+
* It is the option information of the variant value in the order line item.
|
|
127
|
+
*/
|
|
128
|
+
options: saveItemToCart_saveItemToCart_items_options[] | null;
|
|
129
|
+
/**
|
|
130
|
+
* It is the original order line item id of the line item. If the line item is
|
|
131
|
+
* derived from another line item, this field is filled.
|
|
132
|
+
*/
|
|
41
133
|
originalOrderLineItemId: string | null;
|
|
134
|
+
/**
|
|
135
|
+
* It is the selling price of the order line item.
|
|
136
|
+
*/
|
|
42
137
|
price: number;
|
|
138
|
+
/**
|
|
139
|
+
* It is the quantity of variant in the order line item.
|
|
140
|
+
*/
|
|
43
141
|
quantity: number;
|
|
142
|
+
/**
|
|
143
|
+
* It is the status enum of the order line item
|
|
144
|
+
*/
|
|
44
145
|
status: OrderLineItemStatusEnum;
|
|
146
|
+
/**
|
|
147
|
+
* It is the date when the last status of the order line item was updated.
|
|
148
|
+
*/
|
|
45
149
|
statusUpdatedAt: any | null;
|
|
150
|
+
/**
|
|
151
|
+
* It is the stock location id of the variant value in the order line item.
|
|
152
|
+
*/
|
|
46
153
|
stockLocationId: string | null;
|
|
154
|
+
/**
|
|
155
|
+
* It is the tax value of the order line item.
|
|
156
|
+
*/
|
|
47
157
|
taxValue: number | null;
|
|
48
158
|
updatedAt: any | null;
|
|
159
|
+
/**
|
|
160
|
+
* Information about the variant of the order line item.
|
|
161
|
+
*/
|
|
49
162
|
variant: saveItemToCart_saveItemToCart_items_variant;
|
|
50
163
|
}
|
|
51
164
|
export interface saveItemToCart_saveItemToCart {
|
|
@@ -7,18 +7,39 @@ export interface listCategory_listCategory_data_metaData_translations {
|
|
|
7
7
|
}
|
|
8
8
|
export interface listCategory_listCategory_data_metaData {
|
|
9
9
|
__typename: "HTMLMetaData";
|
|
10
|
+
/**
|
|
11
|
+
* The token of the metadata. It is saved as completely unique.
|
|
12
|
+
*/
|
|
10
13
|
slug: string;
|
|
14
|
+
/**
|
|
15
|
+
* The page title of the metadata.
|
|
16
|
+
*/
|
|
11
17
|
pageTitle: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* The description of the metadata.
|
|
20
|
+
*/
|
|
12
21
|
description: string | null;
|
|
13
22
|
targetId: string | null;
|
|
14
23
|
targetType: HTMLMetaDataTargetTypeEnum | null;
|
|
15
24
|
redirectTo: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* The translations information of the metadata.
|
|
27
|
+
*/
|
|
16
28
|
translations: listCategory_listCategory_data_metaData_translations[] | null;
|
|
17
29
|
}
|
|
18
30
|
export interface listCategory_listCategory_data_translations {
|
|
19
31
|
__typename: "CategoryTranslation";
|
|
32
|
+
/**
|
|
33
|
+
* It is the description information of the translation.
|
|
34
|
+
*/
|
|
20
35
|
description: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* It is the name information of the translation.
|
|
38
|
+
*/
|
|
21
39
|
locale: string;
|
|
40
|
+
/**
|
|
41
|
+
* It is the information in which language the translation is saved.
|
|
42
|
+
*/
|
|
22
43
|
name: string | null;
|
|
23
44
|
}
|
|
24
45
|
export interface listCategory_listCategory_data {
|
|
@@ -27,18 +48,44 @@ export interface listCategory_listCategory_data {
|
|
|
27
48
|
createdAt: any | null;
|
|
28
49
|
updatedAt: any | null;
|
|
29
50
|
deleted: boolean | null;
|
|
51
|
+
/**
|
|
52
|
+
* It is the name of the category in which the product is located.
|
|
53
|
+
*/
|
|
30
54
|
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* It is the description of the category of the product.
|
|
57
|
+
*/
|
|
31
58
|
description: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* It is the id of the superclass category of the category.
|
|
61
|
+
*/
|
|
32
62
|
parentId: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* It is the id where the picture of the category is kept in the system.
|
|
65
|
+
*/
|
|
33
66
|
imageId: string | null;
|
|
34
67
|
orderType: CategoryProductsOrderTypeEnum | null;
|
|
68
|
+
/**
|
|
69
|
+
* It is the metadata information of the product category.
|
|
70
|
+
*/
|
|
35
71
|
metaData: listCategory_listCategory_data_metaData | null;
|
|
72
|
+
/**
|
|
73
|
+
* It is the translation information of the product category.
|
|
74
|
+
*/
|
|
36
75
|
translations: listCategory_listCategory_data_translations[] | null;
|
|
76
|
+
/**
|
|
77
|
+
* It is the id list information where the ids of all the superclasses of the category are found.
|
|
78
|
+
*/
|
|
37
79
|
categoryPath: string[] | null;
|
|
38
80
|
}
|
|
39
81
|
export interface listCategory_listCategory {
|
|
40
82
|
__typename: "CategoryPaginationResponse";
|
|
41
83
|
data: listCategory_listCategory_data[];
|
|
84
|
+
/**
|
|
85
|
+
* Returns the first three records of each page in the records returned as a
|
|
86
|
+
* response. For example, ***let's say page = 3, limit = 30, count = 3.*** The
|
|
87
|
+
* records that will return as a response are the records ***between 60-62.***
|
|
88
|
+
*/
|
|
42
89
|
count: number;
|
|
43
90
|
}
|
|
44
91
|
export interface listCategory {
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import { StringFilterInput, PaginationInput } from "../../../__generated__/global-types";
|
|
2
2
|
export interface listCategoryPaths_listCategory_data_metaData {
|
|
3
3
|
__typename: "HTMLMetaData";
|
|
4
|
+
/**
|
|
5
|
+
* The token of the metadata. It is saved as completely unique.
|
|
6
|
+
*/
|
|
4
7
|
slug: string;
|
|
5
8
|
}
|
|
6
9
|
export interface listCategoryPaths_listCategory_data {
|
|
7
10
|
__typename: "Category";
|
|
8
11
|
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* It is the name of the category in which the product is located.
|
|
14
|
+
*/
|
|
9
15
|
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* It is the metadata information of the product category.
|
|
18
|
+
*/
|
|
10
19
|
metaData: listCategoryPaths_listCategory_data_metaData | null;
|
|
11
20
|
}
|
|
12
21
|
export interface listCategoryPaths_listCategory {
|