@eeplatform/basic-edu 1.10.40 → 1.10.42

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/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
- type: roleType,
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
  );
@@ -35211,7 +35210,7 @@ function useSchoolService() {
35211
35210
  name: `${user.firstName} ${user.lastName}`,
35212
35211
  role: roleId.toString(),
35213
35212
  roleName,
35214
- type: roleType
35213
+ app: roleType
35215
35214
  },
35216
35215
  session
35217
35216
  );
@@ -35245,12 +35244,11 @@ function useSchoolService() {
35245
35244
  const roleName = "Admin";
35246
35245
  const roleId = await addRole(
35247
35246
  {
35248
- id: schoolId.toString(),
35249
- type: roleType,
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
  );
@@ -35269,7 +35267,7 @@ function useSchoolService() {
35269
35267
  name: `${user.firstName} ${user.lastName}`,
35270
35268
  role: roleId.toString(),
35271
35269
  roleName,
35272
- type: roleType
35270
+ app: roleType
35273
35271
  },
35274
35272
  session
35275
35273
  );
@@ -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
- id: schoolId.toString(),
35409
- type: "basic-edu-school",
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
- id: division.toString(),
36911
+ org: division.toString(),
36915
36912
  name: "Admin",
36916
- type: "basic-edu-sdo",
36913
+ app: "basic-edu-sdo",
36917
36914
  permissions: ["*"],
36918
- status: "active",
36919
- default: true
36915
+ status: "active"
36920
36916
  },
36921
36917
  session
36922
36918
  );