@hed-hog/category 0.0.338 → 0.0.347

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.
@@ -20,13 +20,13 @@ export declare class CategoryController {
20
20
  locale_id: number;
21
21
  }[];
22
22
  } & {
23
+ color: string | null;
24
+ icon: string | null;
25
+ status: import("@prisma/client").$Enums.category_status_d759c60632_enum | null;
23
26
  id: number;
24
27
  created_at: Date;
25
28
  updated_at: Date;
26
29
  slug: string;
27
- status: import("@prisma/client").$Enums.category_status_d759c60632_enum | null;
28
- icon: string | null;
29
- color: string | null;
30
30
  category_id: number | null;
31
31
  }>;
32
32
  getByParent(categoryId: string, locale: string): Promise<any[]>;
@@ -40,23 +40,23 @@ export declare class CategoryController {
40
40
  data: any[];
41
41
  }>;
42
42
  delete(id: number, locale: string): Promise<{
43
+ color: string | null;
44
+ icon: string | null;
45
+ status: import("@prisma/client").$Enums.category_status_d759c60632_enum | null;
43
46
  id: number;
44
47
  created_at: Date;
45
48
  updated_at: Date;
46
49
  slug: string;
47
- status: import("@prisma/client").$Enums.category_status_d759c60632_enum | null;
48
- icon: string | null;
49
- color: string | null;
50
50
  category_id: number | null;
51
51
  }>;
52
52
  create(localeStr: string, { locale, slug, category_id, color, icon, status }: CategoryDTO): Promise<{
53
+ color: string | null;
54
+ icon: string | null;
55
+ status: import("@prisma/client").$Enums.category_status_d759c60632_enum | null;
53
56
  id: number;
54
57
  created_at: Date;
55
58
  updated_at: Date;
56
59
  slug: string;
57
- status: import("@prisma/client").$Enums.category_status_d759c60632_enum | null;
58
- icon: string | null;
59
- color: string | null;
60
60
  category_id: number | null;
61
61
  }>;
62
62
  update(localeStr: string, id: number, { locale, slug, category_id, color, icon, status }: Partial<CategoryDTO>): Promise<{
@@ -69,13 +69,13 @@ export declare class CategoryController {
69
69
  locale_id: number;
70
70
  }[];
71
71
  } & {
72
+ color: string | null;
73
+ icon: string | null;
74
+ status: import("@prisma/client").$Enums.category_status_d759c60632_enum | null;
72
75
  id: number;
73
76
  created_at: Date;
74
77
  updated_at: Date;
75
78
  slug: string;
76
- status: import("@prisma/client").$Enums.category_status_d759c60632_enum | null;
77
- icon: string | null;
78
- color: string | null;
79
79
  category_id: number | null;
80
80
  }>;
81
81
  }
@@ -23,13 +23,13 @@ export declare class CategoryService {
23
23
  locale_id: number;
24
24
  }[];
25
25
  } & {
26
+ color: string | null;
27
+ icon: string | null;
28
+ status: import("@prisma/client").$Enums.category_status_d759c60632_enum | null;
26
29
  id: number;
27
30
  created_at: Date;
28
31
  updated_at: Date;
29
32
  slug: string;
30
- status: import("@prisma/client").$Enums.category_status_d759c60632_enum | null;
31
- icon: string | null;
32
- color: string | null;
33
33
  category_id: number | null;
34
34
  }>;
35
35
  getRootCategories(locale: string): Promise<any[]>;
@@ -44,23 +44,23 @@ export declare class CategoryService {
44
44
  data: any[];
45
45
  }>;
46
46
  delete(id: number, locale?: string): Promise<{
47
+ color: string | null;
48
+ icon: string | null;
49
+ status: import("@prisma/client").$Enums.category_status_d759c60632_enum | null;
47
50
  id: number;
48
51
  created_at: Date;
49
52
  updated_at: Date;
50
53
  slug: string;
51
- status: import("@prisma/client").$Enums.category_status_d759c60632_enum | null;
52
- icon: string | null;
53
- color: string | null;
54
54
  category_id: number | null;
55
55
  }>;
56
56
  create(localeStr: string, { locale, slug, category_id, color, icon, status }: CategoryDTO): Promise<{
57
+ color: string | null;
58
+ icon: string | null;
59
+ status: import("@prisma/client").$Enums.category_status_d759c60632_enum | null;
57
60
  id: number;
58
61
  created_at: Date;
59
62
  updated_at: Date;
60
63
  slug: string;
61
- status: import("@prisma/client").$Enums.category_status_d759c60632_enum | null;
62
- icon: string | null;
63
- color: string | null;
64
64
  category_id: number | null;
65
65
  }>;
66
66
  update(localeStr: string, id: number, { locale, slug, category_id, color, icon, status }: Partial<CategoryDTO>): Promise<{
@@ -73,13 +73,13 @@ export declare class CategoryService {
73
73
  locale_id: number;
74
74
  }[];
75
75
  } & {
76
+ color: string | null;
77
+ icon: string | null;
78
+ status: import("@prisma/client").$Enums.category_status_d759c60632_enum | null;
76
79
  id: number;
77
80
  created_at: Date;
78
81
  updated_at: Date;
79
82
  slug: string;
80
- status: import("@prisma/client").$Enums.category_status_d759c60632_enum | null;
81
- icon: string | null;
82
- color: string | null;
83
83
  category_id: number | null;
84
84
  }>;
85
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hed-hog/category",
3
- "version": "0.0.338",
3
+ "version": "0.0.347",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {
@@ -11,9 +11,9 @@
11
11
  "@nestjs/mapped-types": "*",
12
12
  "@hed-hog/api-locale": "0.0.14",
13
13
  "@hed-hog/api-prisma": "0.0.6",
14
+ "@hed-hog/core": "0.0.347",
14
15
  "@hed-hog/api": "0.0.8",
15
- "@hed-hog/api-pagination": "0.0.7",
16
- "@hed-hog/core": "0.0.338"
16
+ "@hed-hog/api-pagination": "0.0.7"
17
17
  },
18
18
  "exports": {
19
19
  ".": {