@sprucelabs/spruce-core-schemas 23.1.1 → 23.2.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.
@@ -6,6 +6,14 @@ export declare const GUEST_BASE_ROLES: {
6
6
  name: string;
7
7
  slug: string;
8
8
  }[];
9
+ export declare const META_BASE_ROLES: {
10
+ name: string;
11
+ slug: string;
12
+ }[];
13
+ export declare const BASE_ROLES: {
14
+ name: string;
15
+ slug: string;
16
+ }[];
9
17
  export declare const EMPLOYED_BASE_ROLE_CHOICES: {
10
18
  label: string;
11
19
  value: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ROLE_CHOICES = exports.META_BASE_ROLE_CHOICES = exports.GUEST_ROLE_CHOICES = exports.EMPLOYED_BASE_ROLE_CHOICES = exports.GUEST_BASE_ROLES = exports.EMPLOYED_BASE_ROLES = void 0;
3
+ exports.ROLE_CHOICES = exports.META_BASE_ROLE_CHOICES = exports.GUEST_ROLE_CHOICES = exports.EMPLOYED_BASE_ROLE_CHOICES = exports.BASE_ROLES = exports.META_BASE_ROLES = exports.GUEST_BASE_ROLES = exports.EMPLOYED_BASE_ROLES = void 0;
4
4
  exports.EMPLOYED_BASE_ROLES = [
5
5
  { name: 'Owner', slug: 'owner' },
6
6
  { name: 'Group manager', slug: 'groupManager' },
@@ -8,16 +8,21 @@ exports.EMPLOYED_BASE_ROLES = [
8
8
  { name: 'Teammate', slug: 'teammate' },
9
9
  ];
10
10
  exports.GUEST_BASE_ROLES = [{ name: 'Guest', slug: 'guest' }];
11
- const META_BASE_ROLES = [
11
+ exports.META_BASE_ROLES = [
12
12
  { name: 'Anonymous', slug: 'anonymous' },
13
13
  { name: 'Logged in', slug: 'loggedIn' },
14
14
  ];
15
+ exports.BASE_ROLES = [
16
+ ...exports.EMPLOYED_BASE_ROLES,
17
+ ...exports.GUEST_BASE_ROLES,
18
+ ...exports.META_BASE_ROLES,
19
+ ];
15
20
  const mapBaseToChoice = (br) => ({ label: br.name, value: br.slug });
16
21
  exports.EMPLOYED_BASE_ROLE_CHOICES = [
17
22
  ...exports.EMPLOYED_BASE_ROLES.map(mapBaseToChoice),
18
23
  ];
19
24
  exports.GUEST_ROLE_CHOICES = exports.GUEST_BASE_ROLES.map(mapBaseToChoice);
20
- exports.META_BASE_ROLE_CHOICES = META_BASE_ROLES.map(mapBaseToChoice);
25
+ exports.META_BASE_ROLE_CHOICES = exports.META_BASE_ROLES.map(mapBaseToChoice);
21
26
  exports.ROLE_CHOICES = [
22
27
  ...exports.EMPLOYED_BASE_ROLE_CHOICES,
23
28
  ...exports.META_BASE_ROLE_CHOICES,
@@ -6,6 +6,14 @@ export declare const GUEST_BASE_ROLES: {
6
6
  name: string;
7
7
  slug: string;
8
8
  }[];
9
+ export declare const META_BASE_ROLES: {
10
+ name: string;
11
+ slug: string;
12
+ }[];
13
+ export declare const BASE_ROLES: {
14
+ name: string;
15
+ slug: string;
16
+ }[];
9
17
  export declare const EMPLOYED_BASE_ROLE_CHOICES: {
10
18
  label: string;
11
19
  value: string;
@@ -5,10 +5,15 @@ export const EMPLOYED_BASE_ROLES = [
5
5
  { name: 'Teammate', slug: 'teammate' },
6
6
  ];
7
7
  export const GUEST_BASE_ROLES = [{ name: 'Guest', slug: 'guest' }];
8
- const META_BASE_ROLES = [
8
+ export const META_BASE_ROLES = [
9
9
  { name: 'Anonymous', slug: 'anonymous' },
10
10
  { name: 'Logged in', slug: 'loggedIn' },
11
11
  ];
12
+ export const BASE_ROLES = [
13
+ ...EMPLOYED_BASE_ROLES,
14
+ ...GUEST_BASE_ROLES,
15
+ ...META_BASE_ROLES,
16
+ ];
12
17
  const mapBaseToChoice = (br) => ({ label: br.name, value: br.slug });
13
18
  export const EMPLOYED_BASE_ROLE_CHOICES = [
14
19
  ...EMPLOYED_BASE_ROLES.map(mapBaseToChoice),
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "23.1.1",
6
+ "version": "23.2.0",
7
7
  "files": [
8
8
  "build/**/*",
9
9
  "tsconfig.json"