@sprucelabs/spruce-core-schemas 39.0.294 → 40.0.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.
Files changed (46) hide show
  1. package/build/.spruce/schemas/core.schemas.types.d.ts +3060 -2350
  2. package/build/.spruce/schemas/core.schemas.types.js +0 -2
  3. package/build/.spruce/schemas/fields/fields.types.d.ts +1 -1
  4. package/build/.spruce/schemas/spruce/v2020_07_22/choice.schema.js +5 -5
  5. package/build/.spruce/schemas/spruce/v2020_07_22/feed.schema.js +3 -3
  6. package/build/.spruce/schemas/spruce/v2020_07_22/feedItem.schema.js +20 -20
  7. package/build/.spruce/schemas/spruce/v2020_07_22/feedItemTarget.schema.js +13 -13
  8. package/build/.spruce/schemas/spruce/v2020_07_22/link.schema.js +5 -5
  9. package/build/.spruce/schemas/spruce/v2020_07_22/location.schema.js +1073 -23
  10. package/build/.spruce/schemas/spruce/v2020_07_22/message.schema.js +48 -33
  11. package/build/.spruce/schemas/spruce/v2020_07_22/messageSource.schema.js +13 -13
  12. package/build/.spruce/schemas/spruce/v2020_07_22/messageTarget.schema.js +13 -13
  13. package/build/.spruce/schemas/spruce/v2020_07_22/organization.schema.js +15 -15
  14. package/build/.spruce/schemas/spruce/v2020_07_22/person.schema.js +1071 -21
  15. package/build/.spruce/schemas/spruce/v2020_07_22/personLocation.schema.js +11 -11
  16. package/build/.spruce/schemas/spruce/v2020_07_22/personOrganization.schema.js +11 -11
  17. package/build/.spruce/schemas/spruce/v2020_07_22/role.schema.js +27 -17
  18. package/build/.spruce/schemas/spruce/v2020_07_22/sendMessage.schema.js +41 -26
  19. package/build/.spruce/schemas/spruce/v2020_07_22/skill.schema.js +21 -21
  20. package/build/.spruce/schemas/spruce/v2020_07_22/skillCreator.schema.js +5 -5
  21. package/build/esm/.spruce/schemas/core.schemas.types.d.ts +3060 -2350
  22. package/build/esm/.spruce/schemas/core.schemas.types.js +0 -2
  23. package/build/esm/.spruce/schemas/spruce/v2020_07_22/choice.schema.js +5 -5
  24. package/build/esm/.spruce/schemas/spruce/v2020_07_22/feed.schema.js +3 -3
  25. package/build/esm/.spruce/schemas/spruce/v2020_07_22/feedItem.schema.js +20 -20
  26. package/build/esm/.spruce/schemas/spruce/v2020_07_22/feedItemTarget.schema.js +13 -13
  27. package/build/esm/.spruce/schemas/spruce/v2020_07_22/link.schema.js +5 -5
  28. package/build/esm/.spruce/schemas/spruce/v2020_07_22/location.schema.js +1073 -23
  29. package/build/esm/.spruce/schemas/spruce/v2020_07_22/message.schema.js +48 -33
  30. package/build/esm/.spruce/schemas/spruce/v2020_07_22/messageSource.schema.js +13 -13
  31. package/build/esm/.spruce/schemas/spruce/v2020_07_22/messageTarget.schema.js +13 -13
  32. package/build/esm/.spruce/schemas/spruce/v2020_07_22/organization.schema.js +15 -15
  33. package/build/esm/.spruce/schemas/spruce/v2020_07_22/person.schema.js +1071 -21
  34. package/build/esm/.spruce/schemas/spruce/v2020_07_22/personLocation.schema.js +11 -11
  35. package/build/esm/.spruce/schemas/spruce/v2020_07_22/personOrganization.schema.js +11 -11
  36. package/build/esm/.spruce/schemas/spruce/v2020_07_22/role.schema.js +27 -17
  37. package/build/esm/.spruce/schemas/spruce/v2020_07_22/sendMessage.schema.js +41 -26
  38. package/build/esm/.spruce/schemas/spruce/v2020_07_22/skill.schema.js +21 -21
  39. package/build/esm/.spruce/schemas/spruce/v2020_07_22/skillCreator.schema.js +5 -5
  40. package/build/esm/schemas/v2020_07_22/sendMessage.builder.d.ts +50 -50
  41. package/build/esm/timezoneChoices.js +20 -5
  42. package/build/schemas/v2020_07_22/message.builder.js +10 -4
  43. package/build/schemas/v2020_07_22/sendMessage.builder.js +3 -1
  44. package/build/timezoneChoices.js +20 -5
  45. package/package.json +13 -13
  46. package/tsconfig.json +3 -4
@@ -7,40 +7,40 @@ const personLocationSchema = {
7
7
  moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
8
8
  fields: {
9
9
  /** Id. */
10
- 'id': {
10
+ id: {
11
11
  label: 'Id',
12
12
  type: 'id',
13
13
  isRequired: true,
14
- options: undefined
14
+ options: undefined,
15
15
  },
16
16
  /** Location id. */
17
- 'locationId': {
17
+ locationId: {
18
18
  label: 'Location id',
19
19
  type: 'id',
20
20
  isRequired: true,
21
- options: undefined
21
+ options: undefined,
22
22
  },
23
23
  /** Person id. */
24
- 'personId': {
24
+ personId: {
25
25
  label: 'Person id',
26
26
  type: 'id',
27
27
  isRequired: true,
28
- options: undefined
28
+ options: undefined,
29
29
  },
30
30
  /** Date created. */
31
- 'dateCreated': {
31
+ dateCreated: {
32
32
  label: 'Date created',
33
33
  type: 'dateTime',
34
34
  isRequired: true,
35
- options: undefined
35
+ options: undefined,
36
36
  },
37
37
  /** Date deleted. */
38
- 'dateDeleted': {
38
+ dateDeleted: {
39
39
  label: 'Date deleted',
40
40
  type: 'dateTime',
41
- options: undefined
41
+ options: undefined,
42
42
  },
43
- }
43
+ },
44
44
  };
45
45
  SchemaRegistry.getInstance().trackSchema(personLocationSchema);
46
46
  export default personLocationSchema;
@@ -7,40 +7,40 @@ const personOrganizationSchema = {
7
7
  moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
8
8
  fields: {
9
9
  /** Id. */
10
- 'id': {
10
+ id: {
11
11
  label: 'Id',
12
12
  type: 'id',
13
13
  isRequired: true,
14
- options: undefined
14
+ options: undefined,
15
15
  },
16
16
  /** Organization id. */
17
- 'organizationId': {
17
+ organizationId: {
18
18
  label: 'Organization id',
19
19
  type: 'id',
20
20
  isRequired: true,
21
- options: undefined
21
+ options: undefined,
22
22
  },
23
23
  /** Person id. */
24
- 'personId': {
24
+ personId: {
25
25
  label: 'Person id',
26
26
  type: 'id',
27
27
  isRequired: true,
28
- options: undefined
28
+ options: undefined,
29
29
  },
30
30
  /** Date created. */
31
- 'dateCreated': {
31
+ dateCreated: {
32
32
  label: 'Date created',
33
33
  type: 'dateTime',
34
34
  isRequired: true,
35
- options: undefined
35
+ options: undefined,
36
36
  },
37
37
  /** Date deleted. */
38
- 'dateDeleted': {
38
+ dateDeleted: {
39
39
  label: 'Date deleted',
40
40
  type: 'dateTime',
41
- options: undefined
41
+ options: undefined,
42
42
  },
43
- }
43
+ },
44
44
  };
45
45
  SchemaRegistry.getInstance().trackSchema(personOrganizationSchema);
46
46
  export default personOrganizationSchema;
@@ -8,56 +8,66 @@ const roleSchema = {
8
8
  description: 'Every role in Spruce inherits from 5 bases. Anon, Logged in (person not associated with any org), Org Owner, Group Manager, Manager, Teammate, and Guest.',
9
9
  fields: {
10
10
  /** Id. */
11
- 'id': {
11
+ id: {
12
12
  label: 'Id',
13
13
  type: 'id',
14
14
  isRequired: true,
15
- options: undefined
15
+ options: undefined,
16
16
  },
17
17
  /** Name. */
18
- 'name': {
18
+ name: {
19
19
  label: 'Name',
20
20
  type: 'text',
21
21
  isRequired: true,
22
- options: undefined
22
+ options: undefined,
23
23
  },
24
24
  /** Base. A best practices starting point for a role based on the generalized roles at a company. */
25
- 'base': {
25
+ base: {
26
26
  label: 'Base',
27
27
  type: 'select',
28
28
  hint: 'A best practices starting point for a role based on the generalized roles at a company.',
29
- options: { choices: [{ "label": "Owner", "value": "owner" }, { "label": "Group manager", "value": "groupManager" }, { "label": "Manager", "value": "manager" }, { "label": "Teammate", "value": "teammate" }, { "label": "Anonymous", "value": "anonymous" }, { "label": "Logged in", "value": "loggedIn" }, { "label": "Guest", "value": "guest" }], }
29
+ options: {
30
+ choices: [
31
+ { label: 'Owner', value: 'owner' },
32
+ { label: 'Group manager', value: 'groupManager' },
33
+ { label: 'Manager', value: 'manager' },
34
+ { label: 'Teammate', value: 'teammate' },
35
+ { label: 'Anonymous', value: 'anonymous' },
36
+ { label: 'Logged in', value: 'loggedIn' },
37
+ { label: 'Guest', value: 'guest' },
38
+ ],
39
+ },
30
40
  },
31
41
  /** Description. */
32
- 'description': {
42
+ description: {
33
43
  label: 'Description',
34
44
  type: 'text',
35
- options: undefined
45
+ options: undefined,
36
46
  },
37
47
  /** . */
38
- 'dateCreated': {
48
+ dateCreated: {
39
49
  type: 'number',
40
50
  isRequired: true,
41
- options: undefined
51
+ options: undefined,
42
52
  },
43
53
  /** . */
44
- 'dateDeleted': {
54
+ dateDeleted: {
45
55
  type: 'number',
46
- options: undefined
56
+ options: undefined,
47
57
  },
48
58
  /** . */
49
- 'organizationId': {
59
+ organizationId: {
50
60
  type: 'id',
51
- options: undefined
61
+ options: undefined,
52
62
  },
53
63
  /** Public. Should I let people that are not part of this organization this role? */
54
- 'isPublic': {
64
+ isPublic: {
55
65
  label: 'Public',
56
66
  type: 'boolean',
57
67
  hint: 'Should I let people that are not part of this organization this role?',
58
- options: undefined
68
+ options: undefined,
59
69
  },
60
- }
70
+ },
61
71
  };
62
72
  SchemaRegistry.getInstance().trackSchema(roleSchema);
63
73
  export default roleSchema;
@@ -1,7 +1,7 @@
1
1
  import { SchemaRegistry } from '@sprucelabs/schema';
2
- import messageTargetSchema_v2020_07_22 from './messageTarget.schema.js';
3
- import linkSchema_v2020_07_22 from './link.schema.js';
4
2
  import choiceSchema_v2020_07_22 from './choice.schema.js';
3
+ import linkSchema_v2020_07_22 from './link.schema.js';
4
+ import messageTargetSchema_v2020_07_22 from './messageTarget.schema.js';
5
5
  const sendMessageSchema = {
6
6
  id: 'sendMessage',
7
7
  version: 'v2020_07_22',
@@ -10,73 +10,88 @@ const sendMessageSchema = {
10
10
  moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
11
11
  fields: {
12
12
  /** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
13
- 'trackingId': {
13
+ trackingId: {
14
14
  type: 'id',
15
15
  hint: 'An arbitrary id that can be used to track this message when being sent and not yet assigned an Id.',
16
- options: undefined
16
+ options: undefined,
17
17
  },
18
18
  /** . */
19
- 'dateSent': {
19
+ dateSent: {
20
20
  type: 'number',
21
- options: undefined
21
+ options: undefined,
22
22
  },
23
23
  /** . */
24
- 'target': {
24
+ target: {
25
25
  type: 'schema',
26
26
  isRequired: true,
27
- options: { schema: messageTargetSchema_v2020_07_22, }
27
+ options: { schema: messageTargetSchema_v2020_07_22 },
28
28
  },
29
29
  /** . */
30
- 'errors': {
30
+ errors: {
31
31
  type: 'text',
32
32
  isPrivate: true,
33
33
  isArray: true,
34
- options: undefined
34
+ options: undefined,
35
35
  },
36
36
  /** . */
37
- 'classification': {
37
+ classification: {
38
38
  type: 'select',
39
39
  isRequired: true,
40
- options: { choices: [{ "value": "auth", "label": "Auth" }, { "value": "transactional", "label": "transactional" }, { "value": "promotional", "label": "Promotional" }, { "value": "incoming", "label": "incoming" }], }
40
+ options: {
41
+ choices: [
42
+ { value: 'auth', label: 'Auth' },
43
+ { value: 'transactional', label: 'transactional' },
44
+ { value: 'promotional', label: 'Promotional' },
45
+ { value: 'incoming', label: 'incoming' },
46
+ ],
47
+ },
41
48
  },
42
49
  /** . */
43
- 'status': {
50
+ status: {
44
51
  type: 'select',
45
52
  isPrivate: true,
46
- defaultValue: "pending",
47
- options: { choices: [{ "value": "pending", "label": "Pending" }, { "value": "processing", "label": "Processing" }, { "value": "sent", "label": "Sent" }, { "value": "failed", "label": "Failed" }, { "value": "ignored", "label": "Ignored" }], }
53
+ defaultValue: 'pending',
54
+ options: {
55
+ choices: [
56
+ { value: 'pending', label: 'Pending' },
57
+ { value: 'processing', label: 'Processing' },
58
+ { value: 'sent', label: 'Sent' },
59
+ { value: 'failed', label: 'Failed' },
60
+ { value: 'ignored', label: 'Ignored' },
61
+ ],
62
+ },
48
63
  },
49
64
  /** . */
50
- 'body': {
65
+ body: {
51
66
  type: 'text',
52
67
  isRequired: true,
53
- options: undefined
68
+ options: undefined,
54
69
  },
55
70
  /** . */
56
- 'context': {
71
+ context: {
57
72
  type: 'raw',
58
73
  isPrivate: true,
59
- options: { valueType: `Record<string, any>`, }
74
+ options: { valueType: `Record<string, any>` },
60
75
  },
61
76
  /** . */
62
- 'topicId': {
77
+ topicId: {
63
78
  type: 'id',
64
- options: undefined
79
+ options: undefined,
65
80
  },
66
81
  /** . */
67
- 'links': {
82
+ links: {
68
83
  type: 'schema',
69
84
  isArray: true,
70
85
  minArrayLength: 0,
71
- options: { schema: linkSchema_v2020_07_22, }
86
+ options: { schema: linkSchema_v2020_07_22 },
72
87
  },
73
88
  /** . */
74
- 'choices': {
89
+ choices: {
75
90
  type: 'schema',
76
91
  isArray: true,
77
- options: { schema: choiceSchema_v2020_07_22, }
92
+ options: { schema: choiceSchema_v2020_07_22 },
78
93
  },
79
- }
94
+ },
80
95
  };
81
96
  SchemaRegistry.getInstance().trackSchema(sendMessageSchema);
82
97
  export default sendMessageSchema;
@@ -9,77 +9,77 @@ const skillSchema = {
9
9
  description: 'An ability Sprucebot has learned.',
10
10
  fields: {
11
11
  /** Id. */
12
- 'id': {
12
+ id: {
13
13
  label: 'Id',
14
14
  type: 'id',
15
15
  isRequired: true,
16
- options: undefined
16
+ options: undefined,
17
17
  },
18
18
  /** Id. */
19
- 'apiKey': {
19
+ apiKey: {
20
20
  label: 'Id',
21
21
  type: 'id',
22
22
  isPrivate: true,
23
23
  isRequired: true,
24
- options: undefined
24
+ options: undefined,
25
25
  },
26
26
  /** Name. */
27
- 'name': {
27
+ name: {
28
28
  label: 'Name',
29
29
  type: 'text',
30
30
  isRequired: true,
31
- options: undefined
31
+ options: undefined,
32
32
  },
33
33
  /** Description. */
34
- 'description': {
34
+ description: {
35
35
  label: 'Description',
36
36
  type: 'text',
37
- options: undefined
37
+ options: undefined,
38
38
  },
39
39
  /** Namespace. */
40
- 'slug': {
40
+ slug: {
41
41
  label: 'Namespace',
42
42
  type: 'text',
43
43
  isRequired: true,
44
- options: undefined
44
+ options: undefined,
45
45
  },
46
46
  /** Published. Does this skill show up in the marketplace and can other devs use it as a dependency? */
47
- 'isPublished': {
47
+ isPublished: {
48
48
  label: 'Published',
49
49
  type: 'boolean',
50
50
  hint: 'Does this skill show up in the marketplace and can other devs use it as a dependency?',
51
- options: undefined
51
+ options: undefined,
52
52
  },
53
53
  /** Global. Does this skill require needing to be installed anywhere. */
54
- 'canBeInstalled': {
54
+ canBeInstalled: {
55
55
  label: 'Global',
56
56
  type: 'boolean',
57
57
  hint: 'Does this skill require needing to be installed anywhere.',
58
58
  defaultValue: true,
59
- options: undefined
59
+ options: undefined,
60
60
  },
61
61
  /** Creators. The people or skills who created and own this skill. */
62
- 'creators': {
62
+ creators: {
63
63
  label: 'Creators',
64
64
  type: 'schema',
65
65
  isPrivate: true,
66
66
  isRequired: true,
67
67
  hint: 'The people or skills who created and own this skill.',
68
68
  isArray: true,
69
- options: { schema: skillCreatorSchema_v2020_07_22, }
69
+ options: { schema: skillCreatorSchema_v2020_07_22 },
70
70
  },
71
71
  /** . */
72
- 'dateCreated': {
72
+ dateCreated: {
73
73
  type: 'dateTime',
74
74
  isRequired: true,
75
- options: undefined
75
+ options: undefined,
76
76
  },
77
77
  /** . */
78
- 'dateDeleted': {
78
+ dateDeleted: {
79
79
  type: 'dateTime',
80
- options: undefined
80
+ options: undefined,
81
81
  },
82
- }
82
+ },
83
83
  };
84
84
  SchemaRegistry.getInstance().trackSchema(skillSchema);
85
85
  export default skillSchema;
@@ -7,16 +7,16 @@ const skillCreatorSchema = {
7
7
  moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
8
8
  fields: {
9
9
  /** . */
10
- 'skillId': {
10
+ skillId: {
11
11
  type: 'text',
12
- options: undefined
12
+ options: undefined,
13
13
  },
14
14
  /** . */
15
- 'personId': {
15
+ personId: {
16
16
  type: 'text',
17
- options: undefined
17
+ options: undefined,
18
18
  },
19
- }
19
+ },
20
20
  };
21
21
  SchemaRegistry.getInstance().trackSchema(skillCreatorSchema);
22
22
  export default skillCreatorSchema;
@@ -1,9 +1,12 @@
1
1
  declare const _default: {
2
2
  id: string;
3
3
  fields: {
4
- body: {
5
- type: "text";
6
- isRequired: true;
4
+ trackingId: {
5
+ type: "id";
6
+ hint: string;
7
+ };
8
+ dateSent: {
9
+ type: "number";
7
10
  };
8
11
  target: {
9
12
  type: "schema";
@@ -34,6 +37,30 @@ declare const _default: {
34
37
  };
35
38
  };
36
39
  };
40
+ errors: {
41
+ type: "text";
42
+ isArray: true;
43
+ isPrivate: true;
44
+ };
45
+ classification: {
46
+ type: "select";
47
+ isRequired: true;
48
+ options: {
49
+ choices: ({
50
+ readonly value: "auth";
51
+ readonly label: "Auth";
52
+ } | {
53
+ readonly value: "transactional";
54
+ readonly label: "transactional";
55
+ } | {
56
+ readonly value: "promotional";
57
+ readonly label: "Promotional";
58
+ } | {
59
+ readonly value: "incoming";
60
+ readonly label: "incoming";
61
+ })[];
62
+ };
63
+ };
37
64
  status: {
38
65
  type: "select";
39
66
  defaultValue: string;
@@ -57,55 +84,9 @@ declare const _default: {
57
84
  })[];
58
85
  };
59
86
  };
60
- choices: {
61
- type: "schema";
62
- isArray: true;
63
- options: {
64
- schema: {
65
- id: string;
66
- fields: {
67
- value: {
68
- type: "text";
69
- isRequired: true;
70
- };
71
- label: {
72
- type: "text";
73
- isRequired: true;
74
- };
75
- };
76
- };
77
- };
78
- };
79
- trackingId: {
80
- type: "id";
81
- hint: string;
82
- };
83
- dateSent: {
84
- type: "number";
85
- };
86
- errors: {
87
+ body: {
87
88
  type: "text";
88
- isArray: true;
89
- isPrivate: true;
90
- };
91
- classification: {
92
- type: "select";
93
89
  isRequired: true;
94
- options: {
95
- choices: ({
96
- readonly value: "auth";
97
- readonly label: "Auth";
98
- } | {
99
- readonly value: "transactional";
100
- readonly label: "transactional";
101
- } | {
102
- readonly value: "promotional";
103
- readonly label: "Promotional";
104
- } | {
105
- readonly value: "incoming";
106
- readonly label: "incoming";
107
- })[];
108
- };
109
90
  };
110
91
  context: {
111
92
  type: "raw";
@@ -138,6 +119,25 @@ declare const _default: {
138
119
  };
139
120
  };
140
121
  };
122
+ choices: {
123
+ type: "schema";
124
+ isArray: true;
125
+ options: {
126
+ schema: {
127
+ id: string;
128
+ fields: {
129
+ value: {
130
+ type: "text";
131
+ isRequired: true;
132
+ };
133
+ label: {
134
+ type: "text";
135
+ isRequired: true;
136
+ };
137
+ };
138
+ };
139
+ };
140
+ };
141
141
  };
142
142
  };
143
143
  export default _default;
@@ -30,7 +30,10 @@ export const timezoneChoices = [
30
30
  { value: 'America/Dawson', label: 'Yukon Time - Dawson' },
31
31
  { value: 'America/Whitehorse', label: 'Yukon Time - Whitehorse' },
32
32
  { value: 'America/Belize', label: 'Central Standard Time - Belize' },
33
- { value: 'America/Costa_Rica', label: 'Central Standard Time - Costa Rica' },
33
+ {
34
+ value: 'America/Costa_Rica',
35
+ label: 'Central Standard Time - Costa Rica',
36
+ },
34
37
  {
35
38
  value: 'America/El_Salvador',
36
39
  label: 'Central Standard Time - El Salvador',
@@ -100,9 +103,15 @@ export const timezoneChoices = [
100
103
  },
101
104
  { value: 'America/Cuiaba', label: 'Amazon Standard Time - Cuiaba' },
102
105
  { value: 'America/Manaus', label: 'Amazon Standard Time - Manaus' },
103
- { value: 'America/Porto_Velho', label: 'Amazon Standard Time - Porto Velho' },
106
+ {
107
+ value: 'America/Porto_Velho',
108
+ label: 'Amazon Standard Time - Porto Velho',
109
+ },
104
110
  { value: 'America/Barbados', label: 'Atlantic Standard Time - Barbados' },
105
- { value: 'America/Martinique', label: 'Atlantic Standard Time - Martinique' },
111
+ {
112
+ value: 'America/Martinique',
113
+ label: 'Atlantic Standard Time - Martinique',
114
+ },
106
115
  {
107
116
  value: 'America/Puerto_Rico',
108
117
  label: 'Atlantic Standard Time - Puerto Rico',
@@ -121,7 +130,10 @@ export const timezoneChoices = [
121
130
  label: 'Eastern Time - Indianapolis',
122
131
  },
123
132
  { value: 'America/Iqaluit', label: 'Eastern Time - Iqaluit' },
124
- { value: 'America/Kentucky/Louisville', label: 'Eastern Time - Louisville' },
133
+ {
134
+ value: 'America/Kentucky/Louisville',
135
+ label: 'Eastern Time - Louisville',
136
+ },
125
137
  {
126
138
  value: 'America/Indiana/Marengo',
127
139
  label: 'Eastern Time - Marengo, Indiana',
@@ -464,7 +476,10 @@ export const timezoneChoices = [
464
476
  { value: 'Pacific/Majuro', label: 'Marshall Islands Time - Majuro' },
465
477
  { value: 'Pacific/Nauru', label: 'Nauru Time' },
466
478
  { value: 'Pacific/Auckland', label: 'New Zealand Time' },
467
- { value: 'Asia/Kamchatka', label: 'Petropavlovsk-Kamchatski Standard Time' },
479
+ {
480
+ value: 'Asia/Kamchatka',
481
+ label: 'Petropavlovsk-Kamchatski Standard Time',
482
+ },
468
483
  { value: 'Pacific/Funafuti', label: 'Tuvalu Time' },
469
484
  { value: 'Pacific/Wake', label: 'Wake Island Time' },
470
485
  { value: 'Pacific/Wallis', label: 'Wallis & Futuna Time' },
@@ -26,15 +26,21 @@ const eventTargetFields = {
26
26
  };
27
27
  exports.messageTargetSchema = (0, schema_1.buildSchema)({
28
28
  id: 'messageTarget',
29
- fields: Object.assign(Object.assign({}, eventTargetFields), { phone: {
29
+ fields: {
30
+ ...eventTargetFields,
31
+ phone: {
30
32
  type: 'phone',
31
- } }),
33
+ },
34
+ },
32
35
  });
33
36
  exports.messageSourceSchema = (0, schema_1.buildSchema)({
34
37
  id: 'messageSource',
35
- fields: Object.assign(Object.assign({}, eventTargetFields), { isCore: {
38
+ fields: {
39
+ ...eventTargetFields,
40
+ isCore: {
36
41
  type: 'boolean',
37
- } }),
42
+ },
43
+ },
38
44
  });
39
45
  exports.default = (0, schema_1.buildSchema)({
40
46
  id: 'message',
@@ -7,5 +7,7 @@ const schema_1 = require("@sprucelabs/schema");
7
7
  const message_builder_1 = __importDefault(require("./message.builder"));
8
8
  exports.default = (0, schema_1.buildSchema)({
9
9
  id: 'sendMessage',
10
- fields: Object.assign({}, (0, schema_1.dropFields)(message_builder_1.default.fields, ['id', 'dateCreated', 'source'])),
10
+ fields: {
11
+ ...(0, schema_1.dropFields)(message_builder_1.default.fields, ['id', 'dateCreated', 'source']),
12
+ },
11
13
  });