@budibase/backend-core 2.32.2 → 2.32.4

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.js CHANGED
@@ -62040,10 +62040,11 @@ var RoleIDVersion = {
62040
62040
  NAME: "name"
62041
62041
  };
62042
62042
  var Role = class {
62043
- constructor(id, name, permissionId) {
62043
+ constructor(id, name, permissionId, uiMetadata) {
62044
62044
  this.permissions = {};
62045
62045
  this._id = id;
62046
62046
  this.name = name;
62047
+ this.uiMetadata = uiMetadata;
62047
62048
  this.permissionId = permissionId;
62048
62049
  this.version = RoleIDVersion.NAME;
62049
62050
  }
@@ -62055,21 +62056,54 @@ var Role = class {
62055
62056
  var BUILTIN_ROLES = {
62056
62057
  ADMIN: new Role(
62057
62058
  BUILTIN_IDS.ADMIN,
62058
- "Admin",
62059
- "admin" /* ADMIN */
62059
+ BUILTIN_IDS.ADMIN,
62060
+ "admin" /* ADMIN */,
62061
+ {
62062
+ displayName: "App admin",
62063
+ description: "Can do everything",
62064
+ color: "var(--spectrum-global-color-static-red-400)" /* ADMIN */
62065
+ }
62060
62066
  ).addInheritance(BUILTIN_IDS.POWER),
62061
62067
  POWER: new Role(
62062
62068
  BUILTIN_IDS.POWER,
62063
- "Power",
62064
- "power" /* POWER */
62069
+ BUILTIN_IDS.POWER,
62070
+ "power" /* POWER */,
62071
+ {
62072
+ displayName: "App power user",
62073
+ description: "An app user with more access",
62074
+ color: "var(--spectrum-global-color-static-orange-400)" /* POWER */
62075
+ }
62065
62076
  ).addInheritance(BUILTIN_IDS.BASIC),
62066
62077
  BASIC: new Role(
62067
62078
  BUILTIN_IDS.BASIC,
62068
- "Basic",
62069
- "write" /* WRITE */
62079
+ BUILTIN_IDS.BASIC,
62080
+ "write" /* WRITE */,
62081
+ {
62082
+ displayName: "App user",
62083
+ description: "Any logged in user",
62084
+ color: "var(--spectrum-global-color-static-green-400)" /* BASIC */
62085
+ }
62070
62086
  ).addInheritance(BUILTIN_IDS.PUBLIC),
62071
- PUBLIC: new Role(BUILTIN_IDS.PUBLIC, "Public", "public" /* PUBLIC */),
62072
- BUILDER: new Role(BUILTIN_IDS.BUILDER, "Builder", "admin" /* ADMIN */)
62087
+ PUBLIC: new Role(
62088
+ BUILTIN_IDS.PUBLIC,
62089
+ BUILTIN_IDS.PUBLIC,
62090
+ "public" /* PUBLIC */,
62091
+ {
62092
+ displayName: "Public user",
62093
+ description: "Accessible to anyone",
62094
+ color: "var(--spectrum-global-color-static-blue-400)" /* PUBLIC */
62095
+ }
62096
+ ),
62097
+ BUILDER: new Role(
62098
+ BUILTIN_IDS.BUILDER,
62099
+ BUILTIN_IDS.BUILDER,
62100
+ "admin" /* ADMIN */,
62101
+ {
62102
+ displayName: "Builder user",
62103
+ description: "Users that can edit this app",
62104
+ color: "var(--spectrum-global-color-static-magenta-600)" /* BUILDER */
62105
+ }
62106
+ )
62073
62107
  };
62074
62108
  function getBuiltinRoles() {
62075
62109
  return (0, import_cloneDeep2.default)(BUILTIN_ROLES);