@chopkola/common 1.0.114 → 1.0.117
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.
|
@@ -12,20 +12,11 @@ export interface CategoryI {
|
|
|
12
12
|
aliases: string[] | null;
|
|
13
13
|
tags: string[] | null;
|
|
14
14
|
metadata: Record<string, unknown> | null;
|
|
15
|
-
parents?: CategoryI[];
|
|
16
|
-
children?: CategoryI[];
|
|
17
15
|
created_at: Date;
|
|
18
16
|
updated_at: Date;
|
|
19
17
|
}
|
|
20
|
-
export interface CategoryTreeNode {
|
|
21
|
-
|
|
22
|
-
name: string;
|
|
23
|
-
slug: string;
|
|
24
|
-
level: number;
|
|
25
|
-
scope: CategoryScopeEnum;
|
|
26
|
-
status: CategoryStatusEnum;
|
|
27
|
-
path: string;
|
|
28
|
-
child_count: number;
|
|
18
|
+
export interface CategoryTreeNode extends CategoryI {
|
|
19
|
+
children: CategoryTreeNode[];
|
|
29
20
|
}
|
|
30
21
|
export type RootCategory = CategoryTreeNode & {
|
|
31
22
|
level: 0;
|
|
@@ -33,7 +24,7 @@ export type RootCategory = CategoryTreeNode & {
|
|
|
33
24
|
export type ChildrenCategoryMap = Record<string, CategoryTreeNode[]>;
|
|
34
25
|
export interface CategoryTreeResponse {
|
|
35
26
|
roots: RootCategory[];
|
|
36
|
-
children
|
|
27
|
+
children?: ChildrenCategoryMap;
|
|
37
28
|
}
|
|
38
29
|
export interface NestedCategoryNode extends CategoryTreeNode {
|
|
39
30
|
children: NestedCategoryNode[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chopkola/common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.117",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "akrosoft technology ltd",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"keywords": [],
|
|
18
18
|
"dependencies": {
|
|
19
|
+
"@chopkola/common": "^1.0.114",
|
|
19
20
|
"@types/express": "^5.0.6",
|
|
20
21
|
"@types/jsonwebtoken": "^9.0.10",
|
|
21
22
|
"@types/multer": "^2.0.0",
|