@ikas/storefront 0.0.127 → 0.0.129
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 +13 -0
- package/build/api/blog/__generated__/getBlog.d.ts +81 -0
- package/build/api/blog/__generated__/listBlog.d.ts +75 -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 +1 -0
- package/build/api/brand/index.d.ts +1 -0
- package/build/api/category/__generated__/listCategory.d.ts +1 -0
- package/build/api/category/index.d.ts +1 -0
- package/build/api/index.d.ts +1 -0
- package/build/index.es.js +1624 -307
- package/build/index.js +1639 -309
- package/build/models/data/blog/index.d.ts +54 -0
- package/build/models/data/brand/index.d.ts +1 -1
- package/build/models/data/category/index.d.ts +1 -1
- package/build/models/data/index.d.ts +1 -0
- package/build/models/theme/component/prop/index.d.ts +3 -1
- package/build/models/theme/custom-data/index.d.ts +2 -0
- package/build/models/theme/index.d.ts +2 -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/index.d.ts +4 -1
- package/build/models/ui/blog-list/index.d.ts +55 -0
- package/build/models/ui/brand-list/index.d.ts +2 -0
- package/build/models/ui/category-list/index.d.ts +2 -0
- package/build/models/ui/index.d.ts +1 -0
- package/build/models/ui/product-detail/index.d.ts +1 -2
- package/build/models/ui/product-list/index.d.ts +5 -5
- package/build/pages/blog/[slug].d.ts +18 -0
- package/build/pages/blog/index.d.ts +13 -0
- package/build/pages/index.d.ts +3 -1
- package/build/store/customer.d.ts +1 -0
- package/build/utils/index.d.ts +1 -0
- package/build/utils/providers/page-data.d.ts +7 -1
- package/build/utils/providers/placeholders.d.ts +5 -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/custom.d.ts +2 -0
- package/build/utils/providers/prop-value/product-list.d.ts +1 -3
- package/build/utils/settings.d.ts +2 -2
- package/package.json +1 -1
|
@@ -12,6 +12,13 @@ export declare enum AmountTypeEnum {
|
|
|
12
12
|
AMOUNT = "AMOUNT",
|
|
13
13
|
RATIO = "RATIO"
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Url Slug Target Type Enum Codes
|
|
17
|
+
*/
|
|
18
|
+
export declare enum BlogMetadataTargetTypeEnum {
|
|
19
|
+
BLOG = "BLOG",
|
|
20
|
+
BLOG_CATEGORY = "BLOG_CATEGORY"
|
|
21
|
+
}
|
|
15
22
|
/**
|
|
16
23
|
* Cancelled Reason Enum
|
|
17
24
|
*/
|
|
@@ -226,6 +233,7 @@ export declare enum SortByDirectionEnum {
|
|
|
226
233
|
export declare enum SortByTypeEnum {
|
|
227
234
|
CREATED_AT = "CREATED_AT",
|
|
228
235
|
DISCOUNT_RATIO = "DISCOUNT_RATIO",
|
|
236
|
+
NAME = "NAME",
|
|
229
237
|
PRICE = "PRICE"
|
|
230
238
|
}
|
|
231
239
|
/**
|
|
@@ -287,6 +295,10 @@ export declare enum VariantSelectionTypeEnum {
|
|
|
287
295
|
CHOICE = "CHOICE",
|
|
288
296
|
COLOR = "COLOR"
|
|
289
297
|
}
|
|
298
|
+
export interface BlogMetadataTargetTypeEnumFilter {
|
|
299
|
+
eq?: BlogMetadataTargetTypeEnum | null;
|
|
300
|
+
in?: BlogMetadataTargetTypeEnum[] | null;
|
|
301
|
+
}
|
|
290
302
|
export interface CartLineItemInput {
|
|
291
303
|
id?: string | null;
|
|
292
304
|
quantity: number;
|
|
@@ -411,6 +423,7 @@ export interface OrderRefundOrderLineInput {
|
|
|
411
423
|
export interface OrderRefundRequestInput {
|
|
412
424
|
orderId: string;
|
|
413
425
|
orderLineItems: OrderRefundOrderLineInput[];
|
|
426
|
+
reason?: string | null;
|
|
414
427
|
}
|
|
415
428
|
export interface PaginationInput {
|
|
416
429
|
limit?: number | null;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { StringFilterInput, PaginationInput, BlogMetadataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface getBlog_listBlog_data_blogContent {
|
|
3
|
+
__typename: "BlogContent";
|
|
4
|
+
content: string;
|
|
5
|
+
createdAt: any | null;
|
|
6
|
+
deleted: boolean | null;
|
|
7
|
+
id: string;
|
|
8
|
+
updatedAt: any | null;
|
|
9
|
+
}
|
|
10
|
+
export interface getBlog_listBlog_data_category_metadata {
|
|
11
|
+
__typename: "BlogMetadata";
|
|
12
|
+
createdAt: any | null;
|
|
13
|
+
deleted: boolean | null;
|
|
14
|
+
description: string | null;
|
|
15
|
+
id: string;
|
|
16
|
+
pageTitle: string | null;
|
|
17
|
+
slug: string;
|
|
18
|
+
targetId: string | null;
|
|
19
|
+
targetType: BlogMetadataTargetTypeEnum | null;
|
|
20
|
+
updatedAt: any | null;
|
|
21
|
+
}
|
|
22
|
+
export interface getBlog_listBlog_data_category {
|
|
23
|
+
__typename: "BlogCategory";
|
|
24
|
+
createdAt: any | null;
|
|
25
|
+
deleted: boolean | null;
|
|
26
|
+
id: string;
|
|
27
|
+
imageId: string;
|
|
28
|
+
metadata: getBlog_listBlog_data_category_metadata;
|
|
29
|
+
}
|
|
30
|
+
export interface getBlog_listBlog_data_metadata {
|
|
31
|
+
__typename: "BlogMetadata";
|
|
32
|
+
createdAt: any | null;
|
|
33
|
+
deleted: boolean | null;
|
|
34
|
+
description: string | null;
|
|
35
|
+
id: string;
|
|
36
|
+
pageTitle: string | null;
|
|
37
|
+
slug: string;
|
|
38
|
+
targetId: string | null;
|
|
39
|
+
targetType: BlogMetadataTargetTypeEnum | null;
|
|
40
|
+
updatedAt: any | null;
|
|
41
|
+
}
|
|
42
|
+
export interface getBlog_listBlog_data_writer {
|
|
43
|
+
__typename: "BlogWriter";
|
|
44
|
+
firstName: string;
|
|
45
|
+
lastName: string;
|
|
46
|
+
}
|
|
47
|
+
export interface getBlog_listBlog_data {
|
|
48
|
+
__typename: "Blog";
|
|
49
|
+
title: string;
|
|
50
|
+
blogContent: getBlog_listBlog_data_blogContent;
|
|
51
|
+
categoryId: string;
|
|
52
|
+
category: getBlog_listBlog_data_category;
|
|
53
|
+
createdAt: any | null;
|
|
54
|
+
deleted: boolean | null;
|
|
55
|
+
id: string;
|
|
56
|
+
imageId: string;
|
|
57
|
+
isPublished: boolean;
|
|
58
|
+
metadata: getBlog_listBlog_data_metadata;
|
|
59
|
+
writer: getBlog_listBlog_data_writer;
|
|
60
|
+
publishedAt: any | null;
|
|
61
|
+
shortDescription: string;
|
|
62
|
+
storefrontId: string;
|
|
63
|
+
tagIds: string[] | null;
|
|
64
|
+
updatedAt: any | null;
|
|
65
|
+
}
|
|
66
|
+
export interface getBlog_listBlog {
|
|
67
|
+
__typename: "BlogPaginationResponse";
|
|
68
|
+
count: number;
|
|
69
|
+
data: getBlog_listBlog_data[];
|
|
70
|
+
hasNext: boolean;
|
|
71
|
+
limit: number;
|
|
72
|
+
page: number;
|
|
73
|
+
}
|
|
74
|
+
export interface getBlog {
|
|
75
|
+
listBlog: getBlog_listBlog;
|
|
76
|
+
}
|
|
77
|
+
export interface getBlogVariables {
|
|
78
|
+
id?: StringFilterInput | null;
|
|
79
|
+
pagination?: PaginationInput | null;
|
|
80
|
+
storefrontId?: StringFilterInput | null;
|
|
81
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
deleted: boolean | null;
|
|
18
|
+
id: string;
|
|
19
|
+
imageId: string;
|
|
20
|
+
metadata: listBlog_listBlog_data_category_metadata;
|
|
21
|
+
}
|
|
22
|
+
export interface listBlog_listBlog_data_metadata {
|
|
23
|
+
__typename: "BlogMetadata";
|
|
24
|
+
createdAt: any | null;
|
|
25
|
+
deleted: boolean | null;
|
|
26
|
+
description: string | null;
|
|
27
|
+
id: string;
|
|
28
|
+
pageTitle: string | null;
|
|
29
|
+
slug: string;
|
|
30
|
+
targetId: string | null;
|
|
31
|
+
targetType: BlogMetadataTargetTypeEnum | null;
|
|
32
|
+
updatedAt: any | null;
|
|
33
|
+
}
|
|
34
|
+
export interface listBlog_listBlog_data_writer {
|
|
35
|
+
__typename: "BlogWriter";
|
|
36
|
+
firstName: string;
|
|
37
|
+
lastName: string;
|
|
38
|
+
}
|
|
39
|
+
export interface listBlog_listBlog_data {
|
|
40
|
+
__typename: "Blog";
|
|
41
|
+
title: string;
|
|
42
|
+
categoryId: string;
|
|
43
|
+
category: listBlog_listBlog_data_category;
|
|
44
|
+
createdAt: any | null;
|
|
45
|
+
deleted: boolean | null;
|
|
46
|
+
id: string;
|
|
47
|
+
imageId: string;
|
|
48
|
+
isPublished: boolean;
|
|
49
|
+
metadata: listBlog_listBlog_data_metadata;
|
|
50
|
+
writer: listBlog_listBlog_data_writer;
|
|
51
|
+
publishedAt: any | null;
|
|
52
|
+
shortDescription: string;
|
|
53
|
+
storefrontId: string;
|
|
54
|
+
tagIds: string[] | null;
|
|
55
|
+
updatedAt: any | null;
|
|
56
|
+
}
|
|
57
|
+
export interface listBlog_listBlog {
|
|
58
|
+
__typename: "BlogPaginationResponse";
|
|
59
|
+
count: number;
|
|
60
|
+
data: listBlog_listBlog_data[];
|
|
61
|
+
hasNext: boolean;
|
|
62
|
+
limit: number;
|
|
63
|
+
page: number;
|
|
64
|
+
}
|
|
65
|
+
export interface listBlog {
|
|
66
|
+
listBlog: listBlog_listBlog;
|
|
67
|
+
}
|
|
68
|
+
export interface listBlogVariables {
|
|
69
|
+
id?: StringFilterInput | null;
|
|
70
|
+
categoryId?: StringFilterInput | null;
|
|
71
|
+
pagination?: PaginationInput | null;
|
|
72
|
+
storefrontId?: StringFilterInput | null;
|
|
73
|
+
tagId?: StringFilterInput | null;
|
|
74
|
+
title?: StringFilterInput | null;
|
|
75
|
+
}
|
|
@@ -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 {};
|
package/build/api/index.d.ts
CHANGED