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