@goweekdays/core 2.1.1 → 2.1.3
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/CHANGELOG.md +12 -0
- package/dist/index.d.ts +9 -4
- package/dist/index.js +862 -308
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +839 -283
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @goweekdays/core
|
|
2
2
|
|
|
3
|
+
## 2.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 42707d4: App management - Fix running adding default records execution
|
|
8
|
+
|
|
9
|
+
## 2.1.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 24c975f: Fix app and permission management
|
|
14
|
+
|
|
3
15
|
## 2.1.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -796,6 +796,7 @@ type TApp = {
|
|
|
796
796
|
code: string;
|
|
797
797
|
name: string;
|
|
798
798
|
description: string;
|
|
799
|
+
type?: string;
|
|
799
800
|
status?: string;
|
|
800
801
|
createdAt?: string | Date;
|
|
801
802
|
updatedAt?: string | Date;
|
|
@@ -808,15 +809,16 @@ declare function modelApp(value: TApp): TApp;
|
|
|
808
809
|
declare function useAppRepo(): {
|
|
809
810
|
createIndexes: () => Promise<void>;
|
|
810
811
|
add: (value: TApp, session?: ClientSession) => Promise<ObjectId>;
|
|
811
|
-
getAll: ({ search, page, limit, sort,
|
|
812
|
+
getAll: ({ search, page, limit, sort, status, type, }?: {
|
|
812
813
|
search?: string | undefined;
|
|
813
814
|
page?: number | undefined;
|
|
814
815
|
limit?: number | undefined;
|
|
815
|
-
sort?:
|
|
816
|
-
school?: string | undefined;
|
|
816
|
+
sort?: Record<string, any> | undefined;
|
|
817
817
|
status?: string | undefined;
|
|
818
|
+
type?: string | string[] | undefined;
|
|
818
819
|
}) => Promise<Record<string, any>>;
|
|
819
820
|
getById: (_id: string | ObjectId) => Promise<TApp | null>;
|
|
821
|
+
getByCode: (code: string) => Promise<TApp | null>;
|
|
820
822
|
updateById: (_id: ObjectId | string, value: {
|
|
821
823
|
name: string;
|
|
822
824
|
description: string;
|
|
@@ -842,7 +844,7 @@ type TPermission = {
|
|
|
842
844
|
key: string;
|
|
843
845
|
group: string;
|
|
844
846
|
description: string;
|
|
845
|
-
deprecated
|
|
847
|
+
deprecated?: boolean;
|
|
846
848
|
status?: string;
|
|
847
849
|
createdAt?: string | Date;
|
|
848
850
|
updatedAt?: string | Date;
|
|
@@ -864,6 +866,7 @@ declare function usePermissionRepo(): {
|
|
|
864
866
|
status?: string | undefined;
|
|
865
867
|
}) => Promise<Record<string, any>>;
|
|
866
868
|
getById: (_id: string | ObjectId) => Promise<TPermission | null>;
|
|
869
|
+
getByKey: (key: string, group?: string, app?: string) => Promise<TPermission | null>;
|
|
867
870
|
updateById: (_id: ObjectId | string, value: {
|
|
868
871
|
key?: string;
|
|
869
872
|
group?: string;
|
|
@@ -912,6 +915,7 @@ declare function usePermissionGroupRepo(): {
|
|
|
912
915
|
status?: string | undefined;
|
|
913
916
|
}) => Promise<Record<string, any>>;
|
|
914
917
|
getById: (_id: string | ObjectId) => Promise<TPermissionGroup | null>;
|
|
918
|
+
getByKey: (key: string, app?: string) => Promise<TPermissionGroup | null>;
|
|
915
919
|
updateById: (_id: ObjectId | string, value: {
|
|
916
920
|
name: string;
|
|
917
921
|
serial: string;
|
|
@@ -921,6 +925,7 @@ declare function usePermissionGroupRepo(): {
|
|
|
921
925
|
};
|
|
922
926
|
|
|
923
927
|
declare function usePermissionGroupService(): {
|
|
928
|
+
addDefaultModule: () => Promise<void>;
|
|
924
929
|
deleteById: (id: string) => Promise<string>;
|
|
925
930
|
};
|
|
926
931
|
|