@eeplatform/basic-edu 1.10.40 → 1.10.41
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 +6 -0
- package/dist/index.js +12 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -35187,12 +35187,11 @@ function useSchoolService() {
|
|
|
35187
35187
|
const roleName = "Admin";
|
|
35188
35188
|
const roleId = await addRole(
|
|
35189
35189
|
{
|
|
35190
|
-
id,
|
|
35191
|
-
|
|
35190
|
+
org: id,
|
|
35191
|
+
app: roleType,
|
|
35192
35192
|
name: roleName,
|
|
35193
35193
|
permissions: ["*"],
|
|
35194
|
-
status: "active"
|
|
35195
|
-
default: true
|
|
35194
|
+
status: "active"
|
|
35196
35195
|
},
|
|
35197
35196
|
session
|
|
35198
35197
|
);
|
|
@@ -35245,12 +35244,11 @@ function useSchoolService() {
|
|
|
35245
35244
|
const roleName = "Admin";
|
|
35246
35245
|
const roleId = await addRole(
|
|
35247
35246
|
{
|
|
35248
|
-
|
|
35249
|
-
|
|
35247
|
+
org: schoolId.toString(),
|
|
35248
|
+
app: roleType,
|
|
35250
35249
|
name: roleName,
|
|
35251
35250
|
permissions: ["*"],
|
|
35252
|
-
status: "active"
|
|
35253
|
-
default: true
|
|
35251
|
+
status: "active"
|
|
35254
35252
|
},
|
|
35255
35253
|
session
|
|
35256
35254
|
);
|
|
@@ -35405,12 +35403,11 @@ ${errors.slice(0, 5).join("\n")}${errors.length > 5 ? `
|
|
|
35405
35403
|
const schoolId = await addSchool(school, session, false);
|
|
35406
35404
|
await addRole(
|
|
35407
35405
|
{
|
|
35408
|
-
|
|
35409
|
-
|
|
35406
|
+
org: schoolId.toString(),
|
|
35407
|
+
app: "basic-edu-school",
|
|
35410
35408
|
name: "Admin",
|
|
35411
35409
|
permissions: ["*"],
|
|
35412
|
-
status: "active"
|
|
35413
|
-
default: true
|
|
35410
|
+
status: "active"
|
|
35414
35411
|
},
|
|
35415
35412
|
session,
|
|
35416
35413
|
false
|
|
@@ -36911,12 +36908,11 @@ function useDivisionService() {
|
|
|
36911
36908
|
const division = await _add(value, session);
|
|
36912
36909
|
await addRole(
|
|
36913
36910
|
{
|
|
36914
|
-
|
|
36911
|
+
org: division.toString(),
|
|
36915
36912
|
name: "Admin",
|
|
36916
|
-
|
|
36913
|
+
app: "basic-edu-sdo",
|
|
36917
36914
|
permissions: ["*"],
|
|
36918
|
-
status: "active"
|
|
36919
|
-
default: true
|
|
36915
|
+
status: "active"
|
|
36920
36916
|
},
|
|
36921
36917
|
session
|
|
36922
36918
|
);
|