@sprucelabs/spruce-core-schemas 40.0.10 → 40.0.11

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 (38) hide show
  1. package/build/.spruce/schemas/core.schemas.types.d.ts +2350 -3060
  2. package/build/.spruce/schemas/fields/fields.types.d.ts +1 -1
  3. package/build/.spruce/schemas/spruce/v2020_07_22/choice.schema.js +5 -5
  4. package/build/.spruce/schemas/spruce/v2020_07_22/feed.schema.js +3 -3
  5. package/build/.spruce/schemas/spruce/v2020_07_22/feedItem.schema.js +20 -20
  6. package/build/.spruce/schemas/spruce/v2020_07_22/feedItemTarget.schema.js +13 -13
  7. package/build/.spruce/schemas/spruce/v2020_07_22/link.schema.js +5 -5
  8. package/build/.spruce/schemas/spruce/v2020_07_22/location.schema.js +23 -1073
  9. package/build/.spruce/schemas/spruce/v2020_07_22/message.schema.js +33 -48
  10. package/build/.spruce/schemas/spruce/v2020_07_22/messageSource.schema.js +13 -13
  11. package/build/.spruce/schemas/spruce/v2020_07_22/messageTarget.schema.js +13 -13
  12. package/build/.spruce/schemas/spruce/v2020_07_22/organization.schema.js +15 -15
  13. package/build/.spruce/schemas/spruce/v2020_07_22/person.schema.js +21 -1071
  14. package/build/.spruce/schemas/spruce/v2020_07_22/personLocation.schema.js +11 -11
  15. package/build/.spruce/schemas/spruce/v2020_07_22/personOrganization.schema.js +11 -11
  16. package/build/.spruce/schemas/spruce/v2020_07_22/role.schema.js +17 -27
  17. package/build/.spruce/schemas/spruce/v2020_07_22/sendMessage.schema.js +26 -41
  18. package/build/.spruce/schemas/spruce/v2020_07_22/skill.schema.js +21 -21
  19. package/build/.spruce/schemas/spruce/v2020_07_22/skillCreator.schema.js +5 -5
  20. package/build/esm/.spruce/schemas/core.schemas.types.d.ts +2350 -3060
  21. package/build/esm/.spruce/schemas/spruce/v2020_07_22/choice.schema.js +5 -5
  22. package/build/esm/.spruce/schemas/spruce/v2020_07_22/feed.schema.js +3 -3
  23. package/build/esm/.spruce/schemas/spruce/v2020_07_22/feedItem.schema.js +20 -20
  24. package/build/esm/.spruce/schemas/spruce/v2020_07_22/feedItemTarget.schema.js +13 -13
  25. package/build/esm/.spruce/schemas/spruce/v2020_07_22/link.schema.js +5 -5
  26. package/build/esm/.spruce/schemas/spruce/v2020_07_22/location.schema.js +23 -1073
  27. package/build/esm/.spruce/schemas/spruce/v2020_07_22/message.schema.js +33 -48
  28. package/build/esm/.spruce/schemas/spruce/v2020_07_22/messageSource.schema.js +13 -13
  29. package/build/esm/.spruce/schemas/spruce/v2020_07_22/messageTarget.schema.js +13 -13
  30. package/build/esm/.spruce/schemas/spruce/v2020_07_22/organization.schema.js +15 -15
  31. package/build/esm/.spruce/schemas/spruce/v2020_07_22/person.schema.js +21 -1071
  32. package/build/esm/.spruce/schemas/spruce/v2020_07_22/personLocation.schema.js +11 -11
  33. package/build/esm/.spruce/schemas/spruce/v2020_07_22/personOrganization.schema.js +11 -11
  34. package/build/esm/.spruce/schemas/spruce/v2020_07_22/role.schema.js +17 -27
  35. package/build/esm/.spruce/schemas/spruce/v2020_07_22/sendMessage.schema.js +26 -41
  36. package/build/esm/.spruce/schemas/spruce/v2020_07_22/skill.schema.js +21 -21
  37. package/build/esm/.spruce/schemas/spruce/v2020_07_22/skillCreator.schema.js +5 -5
  38. package/package.json +7 -7
@@ -1,8 +1,8 @@
1
1
  import { SchemaRegistry } from '@sprucelabs/schema';
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
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
+ import choiceSchema_v2020_07_22 from './choice.schema.js';
6
6
  const messageSchema = {
7
7
  id: 'message',
8
8
  version: 'v2020_07_22',
@@ -12,106 +12,91 @@ 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: {
61
- choices: [
62
- { value: 'auth', label: 'Auth' },
63
- { value: 'transactional', label: 'transactional' },
64
- { value: 'promotional', label: 'Promotional' },
65
- { value: 'incoming', label: 'incoming' },
66
- ],
67
- },
60
+ options: { choices: [{ "value": "auth", "label": "Auth" }, { "value": "transactional", "label": "transactional" }, { "value": "promotional", "label": "Promotional" }, { "value": "incoming", "label": "incoming" }], }
68
61
  },
69
62
  /** . */
70
- status: {
63
+ 'status': {
71
64
  type: 'select',
72
65
  isPrivate: true,
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
- },
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" }], }
83
68
  },
84
69
  /** . */
85
- body: {
70
+ 'body': {
86
71
  type: 'text',
87
72
  isRequired: true,
88
- options: undefined,
73
+ options: undefined
89
74
  },
90
75
  /** . */
91
- context: {
76
+ 'context': {
92
77
  type: 'raw',
93
78
  isPrivate: true,
94
- options: { valueType: `Record<string, any>` },
79
+ options: { valueType: `Record<string, any>`, }
95
80
  },
96
81
  /** . */
97
- topicId: {
82
+ 'topicId': {
98
83
  type: 'id',
99
- options: undefined,
84
+ options: undefined
100
85
  },
101
86
  /** . */
102
- links: {
87
+ 'links': {
103
88
  type: 'schema',
104
89
  isArray: true,
105
90
  minArrayLength: 0,
106
- options: { schema: linkSchema_v2020_07_22 },
91
+ options: { schema: linkSchema_v2020_07_22, }
107
92
  },
108
93
  /** . */
109
- choices: {
94
+ 'choices': {
110
95
  type: 'schema',
111
96
  isArray: true,
112
- options: { schema: choiceSchema_v2020_07_22 },
97
+ options: { schema: choiceSchema_v2020_07_22, }
113
98
  },
114
- },
99
+ }
115
100
  };
116
101
  SchemaRegistry.getInstance().trackSchema(messageSchema);
117
102
  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;