@ikas/storefront 0.0.126 → 0.0.128

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.
Files changed (42) hide show
  1. package/build/__generated__/global-types.d.ts +13 -0
  2. package/build/api/blog/__generated__/getBlog.d.ts +81 -0
  3. package/build/api/blog/__generated__/listBlog.d.ts +75 -0
  4. package/build/api/blog/__generated__/listBlogCategory.d.ts +38 -0
  5. package/build/api/blog/__generated__/listBlogMetaData.d.ts +29 -0
  6. package/build/api/blog/index.d.ts +32 -0
  7. package/build/api/brand/__generated__/listProductBrand.d.ts +1 -0
  8. package/build/api/brand/index.d.ts +1 -0
  9. package/build/api/category/__generated__/listCategory.d.ts +1 -0
  10. package/build/api/category/index.d.ts +1 -0
  11. package/build/api/index.d.ts +1 -0
  12. package/build/components/checkout/components/checkbox/index.d.ts +1 -0
  13. package/build/index.es.js +1585 -334
  14. package/build/index.js +1595 -333
  15. package/build/models/data/blog/index.d.ts +54 -0
  16. package/build/models/data/brand/index.d.ts +1 -1
  17. package/build/models/data/category/index.d.ts +1 -1
  18. package/build/models/data/index.d.ts +1 -0
  19. package/build/models/theme/component/prop/index.d.ts +3 -1
  20. package/build/models/theme/custom-data/index.d.ts +2 -0
  21. package/build/models/theme/index.d.ts +2 -0
  22. package/build/models/theme/page/component/prop-value/blog-list.d.ts +9 -0
  23. package/build/models/theme/page/component/prop-value/blog.d.ts +5 -0
  24. package/build/models/theme/page/index.d.ts +4 -1
  25. package/build/models/ui/blog-list/index.d.ts +55 -0
  26. package/build/models/ui/brand-list/index.d.ts +2 -0
  27. package/build/models/ui/category-list/index.d.ts +2 -0
  28. package/build/models/ui/index.d.ts +1 -0
  29. package/build/models/ui/product-detail/index.d.ts +1 -2
  30. package/build/models/ui/product-list/index.d.ts +5 -5
  31. package/build/pages/blog/[slug].d.ts +18 -0
  32. package/build/pages/blog/index.d.ts +13 -0
  33. package/build/store/customer.d.ts +1 -0
  34. package/build/utils/index.d.ts +1 -0
  35. package/build/utils/providers/page-data.d.ts +7 -1
  36. package/build/utils/providers/placeholders.d.ts +5 -0
  37. package/build/utils/providers/prop-value/blog-list.d.ts +9 -0
  38. package/build/utils/providers/prop-value/blog.d.ts +8 -0
  39. package/build/utils/providers/prop-value/custom.d.ts +2 -0
  40. package/build/utils/providers/prop-value/product-list.d.ts +1 -3
  41. package/build/utils/settings.d.ts +2 -2
  42. 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 {};
@@ -27,4 +27,5 @@ export interface listProductBrandVariables {
27
27
  id?: StringFilterInput | null;
28
28
  pagination?: PaginationInput | null;
29
29
  name?: StringFilterInput | null;
30
+ sort?: string | null;
30
31
  }
@@ -7,6 +7,7 @@ declare type ListBrandsParams = {
7
7
  page?: number;
8
8
  limit?: number;
9
9
  search?: string;
10
+ sort?: string;
10
11
  };
11
12
  declare type ListBrandsResponse = {
12
13
  brands: IkasBrand[];
@@ -32,4 +32,5 @@ export interface listCategoryVariables {
32
32
  id?: StringFilterInput | null;
33
33
  pagination?: PaginationInput | null;
34
34
  name?: StringFilterInput | null;
35
+ sort?: string | null;
35
36
  }
@@ -9,6 +9,7 @@ declare type ListCategoriesParams = {
9
9
  page?: number;
10
10
  limit?: number;
11
11
  search?: string;
12
+ sort?: string;
12
13
  };
13
14
  declare type ListCategoriesResponse = {
14
15
  categories: IkasCategory[];
@@ -1,3 +1,4 @@
1
+ export { IkasBlogAPI } from "./blog/index";
1
2
  export { IkasBrandAPI } from "./brand/index";
2
3
  export { IkasCartAPI } from "./cart/index";
3
4
  export { IkasCategoryAPI } from "./category/index";
@@ -2,6 +2,7 @@ import * as React from "react";
2
2
  declare type Props = {
3
3
  value: boolean;
4
4
  label?: string | React.ReactElement;
5
+ hasError?: boolean;
5
6
  onChange: (value: boolean) => void;
6
7
  };
7
8
  export declare const Checkbox: React.FC<Props>;