@sprucelabs/spruce-core-schemas 39.0.293 → 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 +14 -14
  46. package/tsconfig.json +3 -4
@@ -1,8 +1,8 @@
1
1
  import { SchemaRegistry } from '@sprucelabs/schema';
2
- import messageTargetSchema_v2020_07_22 from './messageTarget.schema.js';
3
- import messageSourceSchema_v2020_07_22 from './messageSource.schema.js';
4
- import linkSchema_v2020_07_22 from './link.schema.js';
5
2
  import choiceSchema_v2020_07_22 from './choice.schema.js';
3
+ import linkSchema_v2020_07_22 from './link.schema.js';
4
+ import messageSourceSchema_v2020_07_22 from './messageSource.schema.js';
5
+ import messageTargetSchema_v2020_07_22 from './messageTarget.schema.js';
6
6
  const messageSchema = {
7
7
  id: 'message',
8
8
  version: 'v2020_07_22',
@@ -12,91 +12,106 @@ const messageSchema = {
12
12
  description: 'A discrete communication between two humans or a human and a machine.',
13
13
  fields: {
14
14
  /** . */
15
- 'id': {
15
+ id: {
16
16
  type: 'id',
17
17
  isRequired: true,
18
- options: undefined
18
+ options: undefined,
19
19
  },
20
20
  /** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
21
- 'trackingId': {
21
+ trackingId: {
22
22
  type: 'id',
23
23
  hint: 'An arbitrary id that can be used to track this message when being sent and not yet assigned an Id.',
24
- options: undefined
24
+ options: undefined,
25
25
  },
26
26
  /** . */
27
- 'dateCreated': {
27
+ dateCreated: {
28
28
  type: 'number',
29
29
  isRequired: true,
30
- options: undefined
30
+ options: undefined,
31
31
  },
32
32
  /** . */
33
- 'dateSent': {
33
+ dateSent: {
34
34
  type: 'number',
35
- options: undefined
35
+ options: undefined,
36
36
  },
37
37
  /** . */
38
- 'target': {
38
+ target: {
39
39
  type: 'schema',
40
40
  isRequired: true,
41
- options: { schema: messageTargetSchema_v2020_07_22, }
41
+ options: { schema: messageTargetSchema_v2020_07_22 },
42
42
  },
43
43
  /** . */
44
- 'source': {
44
+ source: {
45
45
  type: 'schema',
46
46
  isRequired: true,
47
- options: { schema: messageSourceSchema_v2020_07_22, }
47
+ options: { schema: messageSourceSchema_v2020_07_22 },
48
48
  },
49
49
  /** . */
50
- 'errors': {
50
+ errors: {
51
51
  type: 'text',
52
52
  isPrivate: true,
53
53
  isArray: true,
54
- options: undefined
54
+ options: undefined,
55
55
  },
56
56
  /** . */
57
- 'classification': {
57
+ classification: {
58
58
  type: 'select',
59
59
  isRequired: true,
60
- options: { choices: [{ "value": "auth", "label": "Auth" }, { "value": "transactional", "label": "transactional" }, { "value": "promotional", "label": "Promotional" }, { "value": "incoming", "label": "incoming" }], }
60
+ options: {
61
+ choices: [
62
+ { value: 'auth', label: 'Auth' },
63
+ { value: 'transactional', label: 'transactional' },
64
+ { value: 'promotional', label: 'Promotional' },
65
+ { value: 'incoming', label: 'incoming' },
66
+ ],
67
+ },
61
68
  },
62
69
  /** . */
63
- 'status': {
70
+ status: {
64
71
  type: 'select',
65
72
  isPrivate: true,
66
- defaultValue: "pending",
67
- options: { choices: [{ "value": "pending", "label": "Pending" }, { "value": "processing", "label": "Processing" }, { "value": "sent", "label": "Sent" }, { "value": "failed", "label": "Failed" }, { "value": "ignored", "label": "Ignored" }], }
73
+ defaultValue: 'pending',
74
+ options: {
75
+ choices: [
76
+ { value: 'pending', label: 'Pending' },
77
+ { value: 'processing', label: 'Processing' },
78
+ { value: 'sent', label: 'Sent' },
79
+ { value: 'failed', label: 'Failed' },
80
+ { value: 'ignored', label: 'Ignored' },
81
+ ],
82
+ },
68
83
  },
69
84
  /** . */
70
- 'body': {
85
+ body: {
71
86
  type: 'text',
72
87
  isRequired: true,
73
- options: undefined
88
+ options: undefined,
74
89
  },
75
90
  /** . */
76
- 'context': {
91
+ context: {
77
92
  type: 'raw',
78
93
  isPrivate: true,
79
- options: { valueType: `Record<string, any>`, }
94
+ options: { valueType: `Record<string, any>` },
80
95
  },
81
96
  /** . */
82
- 'topicId': {
97
+ topicId: {
83
98
  type: 'id',
84
- options: undefined
99
+ options: undefined,
85
100
  },
86
101
  /** . */
87
- 'links': {
102
+ links: {
88
103
  type: 'schema',
89
104
  isArray: true,
90
105
  minArrayLength: 0,
91
- options: { schema: linkSchema_v2020_07_22, }
106
+ options: { schema: linkSchema_v2020_07_22 },
92
107
  },
93
108
  /** . */
94
- 'choices': {
109
+ choices: {
95
110
  type: 'schema',
96
111
  isArray: true,
97
- options: { schema: choiceSchema_v2020_07_22, }
112
+ options: { schema: choiceSchema_v2020_07_22 },
98
113
  },
99
- }
114
+ },
100
115
  };
101
116
  SchemaRegistry.getInstance().trackSchema(messageSchema);
102
117
  export default messageSchema;
@@ -7,36 +7,36 @@ const messageSourceSchema = {
7
7
  moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
8
8
  fields: {
9
9
  /** . */
10
- 'locationId': {
10
+ locationId: {
11
11
  type: 'id',
12
- options: undefined
12
+ options: undefined,
13
13
  },
14
14
  /** . */
15
- 'personId': {
15
+ personId: {
16
16
  type: 'id',
17
- options: undefined
17
+ options: undefined,
18
18
  },
19
19
  /** . */
20
- 'organizationId': {
20
+ organizationId: {
21
21
  type: 'id',
22
- options: undefined
22
+ options: undefined,
23
23
  },
24
24
  /** . */
25
- 'skillId': {
25
+ skillId: {
26
26
  type: 'id',
27
- options: undefined
27
+ options: undefined,
28
28
  },
29
29
  /** . */
30
- 'roleId': {
30
+ roleId: {
31
31
  type: 'id',
32
- options: undefined
32
+ options: undefined,
33
33
  },
34
34
  /** . */
35
- 'isCore': {
35
+ isCore: {
36
36
  type: 'boolean',
37
- options: undefined
37
+ options: undefined,
38
38
  },
39
- }
39
+ },
40
40
  };
41
41
  SchemaRegistry.getInstance().trackSchema(messageSourceSchema);
42
42
  export default messageSourceSchema;
@@ -7,36 +7,36 @@ const messageTargetSchema = {
7
7
  moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
8
8
  fields: {
9
9
  /** . */
10
- 'locationId': {
10
+ locationId: {
11
11
  type: 'id',
12
- options: undefined
12
+ options: undefined,
13
13
  },
14
14
  /** . */
15
- 'personId': {
15
+ personId: {
16
16
  type: 'id',
17
- options: undefined
17
+ options: undefined,
18
18
  },
19
19
  /** . */
20
- 'organizationId': {
20
+ organizationId: {
21
21
  type: 'id',
22
- options: undefined
22
+ options: undefined,
23
23
  },
24
24
  /** . */
25
- 'skillId': {
25
+ skillId: {
26
26
  type: 'id',
27
- options: undefined
27
+ options: undefined,
28
28
  },
29
29
  /** . */
30
- 'roleId': {
30
+ roleId: {
31
31
  type: 'id',
32
- options: undefined
32
+ options: undefined,
33
33
  },
34
34
  /** . */
35
- 'phone': {
35
+ phone: {
36
36
  type: 'phone',
37
- options: undefined
37
+ options: undefined,
38
38
  },
39
- }
39
+ },
40
40
  };
41
41
  SchemaRegistry.getInstance().trackSchema(messageTargetSchema);
42
42
  export default messageTargetSchema;
@@ -8,52 +8,52 @@ const organizationSchema = {
8
8
  description: 'A company or team. Comprises of many people and locations.',
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
  /** Address. */
25
- 'address': {
25
+ address: {
26
26
  label: 'Address',
27
27
  type: 'address',
28
- options: undefined
28
+ options: undefined,
29
29
  },
30
30
  /** Slug. */
31
- 'slug': {
31
+ slug: {
32
32
  label: 'Slug',
33
33
  type: 'text',
34
34
  isRequired: true,
35
- options: undefined
35
+ options: undefined,
36
36
  },
37
37
  /** Public. Is this organization viewable by guests? */
38
- 'isPublic': {
38
+ isPublic: {
39
39
  label: 'Public',
40
40
  type: 'boolean',
41
41
  hint: 'Is this organization viewable by guests?',
42
42
  defaultValue: false,
43
- options: undefined
43
+ options: undefined,
44
44
  },
45
45
  /** . */
46
- 'dateCreated': {
46
+ dateCreated: {
47
47
  type: 'dateTime',
48
48
  isRequired: true,
49
- options: undefined
49
+ options: undefined,
50
50
  },
51
51
  /** . */
52
- 'dateDeleted': {
52
+ dateDeleted: {
53
53
  type: 'dateTime',
54
- options: undefined
54
+ options: undefined,
55
55
  },
56
- }
56
+ },
57
57
  };
58
58
  SchemaRegistry.getInstance().trackSchema(organizationSchema);
59
59
  export default organizationSchema;