@sprucelabs/spruce-core-schemas 23.2.0 → 23.2.1

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.
@@ -1,32 +1,92 @@
1
- export declare const EMPLOYED_BASE_ROLES: {
2
- name: string;
3
- slug: string;
4
- }[];
5
- export declare const GUEST_BASE_ROLES: {
6
- name: string;
7
- slug: string;
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
- }[];
17
- export declare const EMPLOYED_BASE_ROLE_CHOICES: {
18
- label: string;
19
- value: string;
20
- }[];
21
- export declare const GUEST_ROLE_CHOICES: {
22
- label: string;
23
- value: string;
24
- }[];
25
- export declare const META_BASE_ROLE_CHOICES: {
26
- label: string;
27
- value: string;
28
- }[];
29
- export declare const ROLE_CHOICES: {
30
- label: string;
31
- value: string;
32
- }[];
1
+ export declare const EMPLOYED_BASE_ROLES: readonly [{
2
+ readonly name: "Owner";
3
+ readonly slug: "owner";
4
+ }, {
5
+ readonly name: "Group manager";
6
+ readonly slug: "groupManager";
7
+ }, {
8
+ readonly name: "Manager";
9
+ readonly slug: "manager";
10
+ }, {
11
+ readonly name: "Teammate";
12
+ readonly slug: "teammate";
13
+ }];
14
+ export declare const GUEST_BASE_ROLES: readonly [{
15
+ readonly name: "Guest";
16
+ readonly slug: "guest";
17
+ }];
18
+ export declare const META_BASE_ROLES: readonly [{
19
+ readonly name: "Anonymous";
20
+ readonly slug: "anonymous";
21
+ }, {
22
+ readonly name: "Logged in";
23
+ readonly slug: "loggedIn";
24
+ }];
25
+ export declare const BASE_ROLES: readonly [{
26
+ readonly name: "Owner";
27
+ readonly slug: "owner";
28
+ }, {
29
+ readonly name: "Group manager";
30
+ readonly slug: "groupManager";
31
+ }, {
32
+ readonly name: "Manager";
33
+ readonly slug: "manager";
34
+ }, {
35
+ readonly name: "Teammate";
36
+ readonly slug: "teammate";
37
+ }, {
38
+ readonly name: "Guest";
39
+ readonly slug: "guest";
40
+ }, {
41
+ readonly name: "Anonymous";
42
+ readonly slug: "anonymous";
43
+ }, {
44
+ readonly name: "Logged in";
45
+ readonly slug: "loggedIn";
46
+ }];
47
+ export declare const EMPLOYED_BASE_ROLE_CHOICES: readonly [{
48
+ readonly label: "Owner";
49
+ readonly value: "owner";
50
+ }, {
51
+ readonly label: "Group manager";
52
+ readonly value: "groupManager";
53
+ }, {
54
+ readonly label: "Manager";
55
+ readonly value: "manager";
56
+ }, {
57
+ readonly label: "Teammate";
58
+ readonly value: "teammate";
59
+ }];
60
+ export declare const GUEST_ROLE_CHOICES: readonly [{
61
+ readonly label: "Guest";
62
+ readonly value: "guest";
63
+ }];
64
+ export declare const META_BASE_ROLE_CHOICES: readonly [{
65
+ readonly label: "Anonymous";
66
+ readonly value: "anonymous";
67
+ }, {
68
+ readonly label: "Logged in";
69
+ readonly value: "loggedIn";
70
+ }];
71
+ export declare const ROLE_CHOICES: readonly [{
72
+ readonly label: "Owner";
73
+ readonly value: "owner";
74
+ }, {
75
+ readonly label: "Group manager";
76
+ readonly value: "groupManager";
77
+ }, {
78
+ readonly label: "Manager";
79
+ readonly value: "manager";
80
+ }, {
81
+ readonly label: "Teammate";
82
+ readonly value: "teammate";
83
+ }, {
84
+ readonly label: "Anonymous";
85
+ readonly value: "anonymous";
86
+ }, {
87
+ readonly label: "Logged in";
88
+ readonly value: "loggedIn";
89
+ }, {
90
+ readonly label: "Guest";
91
+ readonly value: "guest";
92
+ }];
@@ -17,12 +17,17 @@ exports.BASE_ROLES = [
17
17
  ...exports.GUEST_BASE_ROLES,
18
18
  ...exports.META_BASE_ROLES,
19
19
  ];
20
- const mapBaseToChoice = (br) => ({ label: br.name, value: br.slug });
21
20
  exports.EMPLOYED_BASE_ROLE_CHOICES = [
22
- ...exports.EMPLOYED_BASE_ROLES.map(mapBaseToChoice),
21
+ { label: 'Owner', value: 'owner' },
22
+ { label: 'Group manager', value: 'groupManager' },
23
+ { label: 'Manager', value: 'manager' },
24
+ { label: 'Teammate', value: 'teammate' },
25
+ ];
26
+ exports.GUEST_ROLE_CHOICES = [{ label: 'Guest', value: 'guest' }];
27
+ exports.META_BASE_ROLE_CHOICES = [
28
+ { label: 'Anonymous', value: 'anonymous' },
29
+ { label: 'Logged in', value: 'loggedIn' },
23
30
  ];
24
- exports.GUEST_ROLE_CHOICES = exports.GUEST_BASE_ROLES.map(mapBaseToChoice);
25
- exports.META_BASE_ROLE_CHOICES = exports.META_BASE_ROLES.map(mapBaseToChoice);
26
31
  exports.ROLE_CHOICES = [
27
32
  ...exports.EMPLOYED_BASE_ROLE_CHOICES,
28
33
  ...exports.META_BASE_ROLE_CHOICES,
@@ -1,32 +1,92 @@
1
- export declare const EMPLOYED_BASE_ROLES: {
2
- name: string;
3
- slug: string;
4
- }[];
5
- export declare const GUEST_BASE_ROLES: {
6
- name: string;
7
- slug: string;
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
- }[];
17
- export declare const EMPLOYED_BASE_ROLE_CHOICES: {
18
- label: string;
19
- value: string;
20
- }[];
21
- export declare const GUEST_ROLE_CHOICES: {
22
- label: string;
23
- value: string;
24
- }[];
25
- export declare const META_BASE_ROLE_CHOICES: {
26
- label: string;
27
- value: string;
28
- }[];
29
- export declare const ROLE_CHOICES: {
30
- label: string;
31
- value: string;
32
- }[];
1
+ export declare const EMPLOYED_BASE_ROLES: readonly [{
2
+ readonly name: "Owner";
3
+ readonly slug: "owner";
4
+ }, {
5
+ readonly name: "Group manager";
6
+ readonly slug: "groupManager";
7
+ }, {
8
+ readonly name: "Manager";
9
+ readonly slug: "manager";
10
+ }, {
11
+ readonly name: "Teammate";
12
+ readonly slug: "teammate";
13
+ }];
14
+ export declare const GUEST_BASE_ROLES: readonly [{
15
+ readonly name: "Guest";
16
+ readonly slug: "guest";
17
+ }];
18
+ export declare const META_BASE_ROLES: readonly [{
19
+ readonly name: "Anonymous";
20
+ readonly slug: "anonymous";
21
+ }, {
22
+ readonly name: "Logged in";
23
+ readonly slug: "loggedIn";
24
+ }];
25
+ export declare const BASE_ROLES: readonly [{
26
+ readonly name: "Owner";
27
+ readonly slug: "owner";
28
+ }, {
29
+ readonly name: "Group manager";
30
+ readonly slug: "groupManager";
31
+ }, {
32
+ readonly name: "Manager";
33
+ readonly slug: "manager";
34
+ }, {
35
+ readonly name: "Teammate";
36
+ readonly slug: "teammate";
37
+ }, {
38
+ readonly name: "Guest";
39
+ readonly slug: "guest";
40
+ }, {
41
+ readonly name: "Anonymous";
42
+ readonly slug: "anonymous";
43
+ }, {
44
+ readonly name: "Logged in";
45
+ readonly slug: "loggedIn";
46
+ }];
47
+ export declare const EMPLOYED_BASE_ROLE_CHOICES: readonly [{
48
+ readonly label: "Owner";
49
+ readonly value: "owner";
50
+ }, {
51
+ readonly label: "Group manager";
52
+ readonly value: "groupManager";
53
+ }, {
54
+ readonly label: "Manager";
55
+ readonly value: "manager";
56
+ }, {
57
+ readonly label: "Teammate";
58
+ readonly value: "teammate";
59
+ }];
60
+ export declare const GUEST_ROLE_CHOICES: readonly [{
61
+ readonly label: "Guest";
62
+ readonly value: "guest";
63
+ }];
64
+ export declare const META_BASE_ROLE_CHOICES: readonly [{
65
+ readonly label: "Anonymous";
66
+ readonly value: "anonymous";
67
+ }, {
68
+ readonly label: "Logged in";
69
+ readonly value: "loggedIn";
70
+ }];
71
+ export declare const ROLE_CHOICES: readonly [{
72
+ readonly label: "Owner";
73
+ readonly value: "owner";
74
+ }, {
75
+ readonly label: "Group manager";
76
+ readonly value: "groupManager";
77
+ }, {
78
+ readonly label: "Manager";
79
+ readonly value: "manager";
80
+ }, {
81
+ readonly label: "Teammate";
82
+ readonly value: "teammate";
83
+ }, {
84
+ readonly label: "Anonymous";
85
+ readonly value: "anonymous";
86
+ }, {
87
+ readonly label: "Logged in";
88
+ readonly value: "loggedIn";
89
+ }, {
90
+ readonly label: "Guest";
91
+ readonly value: "guest";
92
+ }];
@@ -14,12 +14,17 @@ export const BASE_ROLES = [
14
14
  ...GUEST_BASE_ROLES,
15
15
  ...META_BASE_ROLES,
16
16
  ];
17
- const mapBaseToChoice = (br) => ({ label: br.name, value: br.slug });
18
17
  export const EMPLOYED_BASE_ROLE_CHOICES = [
19
- ...EMPLOYED_BASE_ROLES.map(mapBaseToChoice),
18
+ { label: 'Owner', value: 'owner' },
19
+ { label: 'Group manager', value: 'groupManager' },
20
+ { label: 'Manager', value: 'manager' },
21
+ { label: 'Teammate', value: 'teammate' },
22
+ ];
23
+ export const GUEST_ROLE_CHOICES = [{ label: 'Guest', value: 'guest' }];
24
+ export const META_BASE_ROLE_CHOICES = [
25
+ { label: 'Anonymous', value: 'anonymous' },
26
+ { label: 'Logged in', value: 'loggedIn' },
20
27
  ];
21
- export const GUEST_ROLE_CHOICES = GUEST_BASE_ROLES.map(mapBaseToChoice);
22
- export const META_BASE_ROLE_CHOICES = META_BASE_ROLES.map(mapBaseToChoice);
23
28
  export const ROLE_CHOICES = [
24
29
  ...EMPLOYED_BASE_ROLE_CHOICES,
25
30
  ...META_BASE_ROLE_CHOICES,
@@ -18,10 +18,7 @@ declare const _default: {
18
18
  type: "select";
19
19
  hint: string;
20
20
  options: {
21
- choices: {
22
- label: string;
23
- value: string;
24
- }[];
21
+ choices: any;
25
22
  };
26
23
  };
27
24
  description: {
@@ -18,10 +18,7 @@ declare const _default: {
18
18
  type: "select";
19
19
  hint: string;
20
20
  options: {
21
- choices: {
22
- label: string;
23
- value: string;
24
- }[];
21
+ choices: any;
25
22
  };
26
23
  };
27
24
  description: {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "23.2.0",
6
+ "version": "23.2.1",
7
7
  "files": [
8
8
  "build/**/*",
9
9
  "tsconfig.json"