@yongdall/organization-rbac 0.4.5 → 0.5.0
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/package.json +8 -7
- package/yongdall/migration.mjs +15 -0
- package/yongdall/migration.mjs.map +1 -0
- package/yongdall/model.mjs +15 -0
- package/yongdall/model.mjs.map +1 -0
- package/yongdall/user.mjs +16 -0
- package/yongdall/user.mjs.map +1 -0
- package/yongdall.plugin.yml +1 -0
- package/hooks.yongdall.mjs +0 -30
- package/hooks.yongdall.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yongdall/organization-rbac",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -11,13 +11,14 @@
|
|
|
11
11
|
"author": "",
|
|
12
12
|
"license": "ISC",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@yongdall/connection": "^0.
|
|
15
|
-
"@yongdall/context": "^0.
|
|
16
|
-
"@yongdall/core": "^0.
|
|
17
|
-
"@yongdall/model": "^0.
|
|
18
|
-
"@yongdall/role": "^0.
|
|
14
|
+
"@yongdall/connection": "^0.5.0",
|
|
15
|
+
"@yongdall/context": "^0.5.0",
|
|
16
|
+
"@yongdall/core": "^0.5.0",
|
|
17
|
+
"@yongdall/model": "^0.5.0",
|
|
18
|
+
"@yongdall/role": "^0.5.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@yongdall/
|
|
21
|
+
"@yongdall/migrate": "^0.5.0",
|
|
22
|
+
"@yongdall/types": "^0.5.0"
|
|
22
23
|
}
|
|
23
24
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { a as OrganizationMember, s as OrganizationAppointment } from "../organization-rbac-B8x_aDQj.mjs";
|
|
2
|
+
import { Role } from "@yongdall/role";
|
|
3
|
+
|
|
4
|
+
//#region plugins/organization-rbac/yongdall/migration.mjs
|
|
5
|
+
/** @import { Profile } from '@yongdall/migrate' */
|
|
6
|
+
/** @type {Profile['models']} */
|
|
7
|
+
const models = [
|
|
8
|
+
OrganizationAppointment,
|
|
9
|
+
OrganizationMember,
|
|
10
|
+
Role
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { models };
|
|
15
|
+
//# sourceMappingURL=migration.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration.mjs","names":[],"sources":["../../../plugins/organization-rbac/yongdall/migration.mjs"],"sourcesContent":["/** @import { Profile } from '@yongdall/migrate' */\nimport { Role } from '@yongdall/role';\nimport { OrganizationAppointment, OrganizationMember } from '../index.mjs';\n\n\n/** @type {Profile['models']} */\nexport const models = [\n\tOrganizationAppointment,\n\tOrganizationMember,\n\tRole,\n];\n"],"mappings":";;;;;;AAMA,MAAa,SAAS;CACrB;CACA;CACA;CACA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { a as OrganizationMember, s as OrganizationAppointment } from "../organization-rbac-B8x_aDQj.mjs";
|
|
2
|
+
import { Role } from "@yongdall/role";
|
|
3
|
+
|
|
4
|
+
//#region plugins/organization-rbac/yongdall/model.mjs
|
|
5
|
+
/** @import { ModelProfile } from '@yongdall/core' */
|
|
6
|
+
/** @type {ModelProfile['models']} */
|
|
7
|
+
const models = {
|
|
8
|
+
organizationAppointment: OrganizationAppointment,
|
|
9
|
+
organizationMember: OrganizationMember,
|
|
10
|
+
role: Role
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { models };
|
|
15
|
+
//# sourceMappingURL=model.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.mjs","names":[],"sources":["../../../plugins/organization-rbac/yongdall/model.mjs"],"sourcesContent":["/** @import { ModelProfile } from '@yongdall/core' */\nimport { Role } from '@yongdall/role';\nimport { OrganizationAppointment, OrganizationMember } from '../index.mjs';\n\n/** @type {ModelProfile['models']} */\nexport const models = {\n\torganizationAppointment: OrganizationAppointment,\n\torganizationMember: OrganizationMember,\n\trole: Role,\n};\n"],"mappings":";;;;;;AAKA,MAAa,SAAS;CACrB,yBAAyB;CACzB,oBAAoB;CACpB,MAAM;CACN"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { n as useOrganizationPermissions, t as useOrganizationAllPermissions } from "../organization-rbac-B8x_aDQj.mjs";
|
|
2
|
+
|
|
3
|
+
//#region plugins/organization-rbac/yongdall/user.mjs
|
|
4
|
+
/** @import { UserManager } from '@yongdall/core' */
|
|
5
|
+
/** @type {UserManager['getOrganizationAllPermissions']} */
|
|
6
|
+
const getOrganizationAllPermissions = () => {
|
|
7
|
+
return useOrganizationAllPermissions();
|
|
8
|
+
};
|
|
9
|
+
/** @type {UserManager['getOrganizationAllPermissions']} */
|
|
10
|
+
const getOrganizationPermissions = () => {
|
|
11
|
+
return useOrganizationPermissions();
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { getOrganizationAllPermissions, getOrganizationPermissions };
|
|
16
|
+
//# sourceMappingURL=user.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.mjs","names":[],"sources":["../../../plugins/organization-rbac/yongdall/user.mjs"],"sourcesContent":["/** @import { UserManager } from '@yongdall/core' */\nimport { useOrganizationAllPermissions, useOrganizationPermissions } from '../index.mjs';\n\n\n/** @type {UserManager['getOrganizationAllPermissions']} */\nexport const getOrganizationAllPermissions = () => {\n\treturn useOrganizationAllPermissions();\n};\n/** @type {UserManager['getOrganizationAllPermissions']} */\nexport const getOrganizationPermissions = () => {\n\treturn useOrganizationPermissions();\n};\n"],"mappings":";;;;;AAKA,MAAa,sCAAsC;AAClD,QAAO,+BAA+B;;;AAGvC,MAAa,mCAAmC;AAC/C,QAAO,4BAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
label: 组织权限
|
package/hooks.yongdall.mjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { a as OrganizationMember, n as useOrganizationPermissions, s as OrganizationAppointment, t as useOrganizationAllPermissions } from "./organization-rbac-B8x_aDQj.mjs";
|
|
2
|
-
import { Role } from "@yongdall/role";
|
|
3
|
-
|
|
4
|
-
//#region plugins/organization-rbac/hooks.yongdall.mjs
|
|
5
|
-
/** @import { Hooks, UserManager } from '@yongdall/core' */
|
|
6
|
-
/** @type {Hooks.Define['models']} */
|
|
7
|
-
const models = {
|
|
8
|
-
organizationAppointment: OrganizationAppointment,
|
|
9
|
-
organizationMember: OrganizationMember,
|
|
10
|
-
role: Role
|
|
11
|
-
};
|
|
12
|
-
/** @type {Hooks.Define['migrationModels']} */
|
|
13
|
-
const migrationModels = [
|
|
14
|
-
OrganizationAppointment,
|
|
15
|
-
OrganizationMember,
|
|
16
|
-
Role
|
|
17
|
-
];
|
|
18
|
-
/** @type {Partial<UserManager>} */
|
|
19
|
-
const userManager = {
|
|
20
|
-
getOrganizationAllPermissions() {
|
|
21
|
-
return useOrganizationAllPermissions();
|
|
22
|
-
},
|
|
23
|
-
getOrganizationPermissions() {
|
|
24
|
-
return useOrganizationPermissions();
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
//#endregion
|
|
29
|
-
export { migrationModels, models, userManager };
|
|
30
|
-
//# sourceMappingURL=hooks.yongdall.mjs.map
|
package/hooks.yongdall.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.yongdall.mjs","names":[],"sources":["../../plugins/organization-rbac/hooks.yongdall.mjs"],"sourcesContent":["/** @import { Hooks, UserManager } from '@yongdall/core' */\nimport { Role } from '@yongdall/role';\nimport { OrganizationAppointment, OrganizationMember, useOrganizationAllPermissions, useOrganizationPermissions } from './index.mjs';\n\n/** @type {Hooks.Define['models']} */\nexport const models = {\n\torganizationAppointment: OrganizationAppointment,\n\torganizationMember: OrganizationMember,\n\trole: Role,\n};\n\n/** @type {Hooks.Define['migrationModels']} */\nexport const migrationModels = [\n\tOrganizationAppointment,\n\tOrganizationMember,\n\tRole,\n];\n\n\n/** @type {Partial<UserManager>} */\nexport const userManager = {\n\tgetOrganizationAllPermissions() {\n\t\treturn useOrganizationAllPermissions()\n\t},\n\tgetOrganizationPermissions() {\n\t\treturn useOrganizationPermissions()\n\t},\n}\n"],"mappings":";;;;;;AAKA,MAAa,SAAS;CACrB,yBAAyB;CACzB,oBAAoB;CACpB,MAAM;CACN;;AAGD,MAAa,kBAAkB;CAC9B;CACA;CACA;CACA;;AAID,MAAa,cAAc;CAC1B,gCAAgC;AAC/B,SAAO,+BAA+B;;CAEvC,6BAA6B;AAC5B,SAAO,4BAA4B;;CAEpC"}
|