@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
@@ -9,40 +9,40 @@ const personLocationSchema = {
9
9
  moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
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
  /** Location id. */
19
- 'locationId': {
19
+ locationId: {
20
20
  label: 'Location id',
21
21
  type: 'id',
22
22
  isRequired: true,
23
- options: undefined
23
+ options: undefined,
24
24
  },
25
25
  /** Person id. */
26
- 'personId': {
26
+ personId: {
27
27
  label: 'Person id',
28
28
  type: 'id',
29
29
  isRequired: true,
30
- options: undefined
30
+ options: undefined,
31
31
  },
32
32
  /** Date created. */
33
- 'dateCreated': {
33
+ dateCreated: {
34
34
  label: 'Date created',
35
35
  type: 'dateTime',
36
36
  isRequired: true,
37
- options: undefined
37
+ options: undefined,
38
38
  },
39
39
  /** Date deleted. */
40
- 'dateDeleted': {
40
+ dateDeleted: {
41
41
  label: 'Date deleted',
42
42
  type: 'dateTime',
43
- options: undefined
43
+ options: undefined,
44
44
  },
45
- }
45
+ },
46
46
  };
47
47
  schema_1.SchemaRegistry.getInstance().trackSchema(personLocationSchema);
48
48
  exports.default = personLocationSchema;
@@ -9,40 +9,40 @@ const personOrganizationSchema = {
9
9
  moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
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
  /** Organization id. */
19
- 'organizationId': {
19
+ organizationId: {
20
20
  label: 'Organization id',
21
21
  type: 'id',
22
22
  isRequired: true,
23
- options: undefined
23
+ options: undefined,
24
24
  },
25
25
  /** Person id. */
26
- 'personId': {
26
+ personId: {
27
27
  label: 'Person id',
28
28
  type: 'id',
29
29
  isRequired: true,
30
- options: undefined
30
+ options: undefined,
31
31
  },
32
32
  /** Date created. */
33
- 'dateCreated': {
33
+ dateCreated: {
34
34
  label: 'Date created',
35
35
  type: 'dateTime',
36
36
  isRequired: true,
37
- options: undefined
37
+ options: undefined,
38
38
  },
39
39
  /** Date deleted. */
40
- 'dateDeleted': {
40
+ dateDeleted: {
41
41
  label: 'Date deleted',
42
42
  type: 'dateTime',
43
- options: undefined
43
+ options: undefined,
44
44
  },
45
- }
45
+ },
46
46
  };
47
47
  schema_1.SchemaRegistry.getInstance().trackSchema(personOrganizationSchema);
48
48
  exports.default = personOrganizationSchema;
@@ -10,56 +10,66 @@ const roleSchema = {
10
10
  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.',
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
  /** Base. A best practices starting point for a role based on the generalized roles at a company. */
27
- 'base': {
27
+ base: {
28
28
  label: 'Base',
29
29
  type: 'select',
30
30
  hint: 'A best practices starting point for a role based on the generalized roles at a company.',
31
- 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" }], }
31
+ options: {
32
+ choices: [
33
+ { label: 'Owner', value: 'owner' },
34
+ { label: 'Group manager', value: 'groupManager' },
35
+ { label: 'Manager', value: 'manager' },
36
+ { label: 'Teammate', value: 'teammate' },
37
+ { label: 'Anonymous', value: 'anonymous' },
38
+ { label: 'Logged in', value: 'loggedIn' },
39
+ { label: 'Guest', value: 'guest' },
40
+ ],
41
+ },
32
42
  },
33
43
  /** Description. */
34
- 'description': {
44
+ description: {
35
45
  label: 'Description',
36
46
  type: 'text',
37
- options: undefined
47
+ options: undefined,
38
48
  },
39
49
  /** . */
40
- 'dateCreated': {
50
+ dateCreated: {
41
51
  type: 'number',
42
52
  isRequired: true,
43
- options: undefined
53
+ options: undefined,
44
54
  },
45
55
  /** . */
46
- 'dateDeleted': {
56
+ dateDeleted: {
47
57
  type: 'number',
48
- options: undefined
58
+ options: undefined,
49
59
  },
50
60
  /** . */
51
- 'organizationId': {
61
+ organizationId: {
52
62
  type: 'id',
53
- options: undefined
63
+ options: undefined,
54
64
  },
55
65
  /** Public. Should I let people that are not part of this organization this role? */
56
- 'isPublic': {
66
+ isPublic: {
57
67
  label: 'Public',
58
68
  type: 'boolean',
59
69
  hint: 'Should I let people that are not part of this organization this role?',
60
- options: undefined
70
+ options: undefined,
61
71
  },
62
- }
72
+ },
63
73
  };
64
74
  schema_1.SchemaRegistry.getInstance().trackSchema(roleSchema);
65
75
  exports.default = roleSchema;
@@ -4,9 +4,9 @@ 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 link_schema_1 = __importDefault(require("./link.schema"));
9
7
  const choice_schema_1 = __importDefault(require("./choice.schema"));
8
+ const link_schema_1 = __importDefault(require("./link.schema"));
9
+ const messageTarget_schema_1 = __importDefault(require("./messageTarget.schema"));
10
10
  const sendMessageSchema = {
11
11
  id: 'sendMessage',
12
12
  version: 'v2020_07_22',
@@ -15,73 +15,88 @@ const sendMessageSchema = {
15
15
  moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
16
16
  fields: {
17
17
  /** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
18
- 'trackingId': {
18
+ trackingId: {
19
19
  type: 'id',
20
20
  hint: 'An arbitrary id that can be used to track this message when being sent and not yet assigned an Id.',
21
- options: undefined
21
+ options: undefined,
22
22
  },
23
23
  /** . */
24
- 'dateSent': {
24
+ dateSent: {
25
25
  type: 'number',
26
- options: undefined
26
+ options: undefined,
27
27
  },
28
28
  /** . */
29
- 'target': {
29
+ target: {
30
30
  type: 'schema',
31
31
  isRequired: true,
32
- options: { schema: messageTarget_schema_1.default, }
32
+ options: { schema: messageTarget_schema_1.default },
33
33
  },
34
34
  /** . */
35
- 'errors': {
35
+ errors: {
36
36
  type: 'text',
37
37
  isPrivate: true,
38
38
  isArray: true,
39
- options: undefined
39
+ options: undefined,
40
40
  },
41
41
  /** . */
42
- 'classification': {
42
+ classification: {
43
43
  type: 'select',
44
44
  isRequired: true,
45
- options: { choices: [{ "value": "auth", "label": "Auth" }, { "value": "transactional", "label": "transactional" }, { "value": "promotional", "label": "Promotional" }, { "value": "incoming", "label": "incoming" }], }
45
+ options: {
46
+ choices: [
47
+ { value: 'auth', label: 'Auth' },
48
+ { value: 'transactional', label: 'transactional' },
49
+ { value: 'promotional', label: 'Promotional' },
50
+ { value: 'incoming', label: 'incoming' },
51
+ ],
52
+ },
46
53
  },
47
54
  /** . */
48
- 'status': {
55
+ status: {
49
56
  type: 'select',
50
57
  isPrivate: true,
51
- defaultValue: "pending",
52
- options: { choices: [{ "value": "pending", "label": "Pending" }, { "value": "processing", "label": "Processing" }, { "value": "sent", "label": "Sent" }, { "value": "failed", "label": "Failed" }, { "value": "ignored", "label": "Ignored" }], }
58
+ defaultValue: 'pending',
59
+ options: {
60
+ choices: [
61
+ { value: 'pending', label: 'Pending' },
62
+ { value: 'processing', label: 'Processing' },
63
+ { value: 'sent', label: 'Sent' },
64
+ { value: 'failed', label: 'Failed' },
65
+ { value: 'ignored', label: 'Ignored' },
66
+ ],
67
+ },
53
68
  },
54
69
  /** . */
55
- 'body': {
70
+ body: {
56
71
  type: 'text',
57
72
  isRequired: true,
58
- options: undefined
73
+ options: undefined,
59
74
  },
60
75
  /** . */
61
- 'context': {
76
+ context: {
62
77
  type: 'raw',
63
78
  isPrivate: true,
64
- options: { valueType: `Record<string, any>`, }
79
+ options: { valueType: `Record<string, any>` },
65
80
  },
66
81
  /** . */
67
- 'topicId': {
82
+ topicId: {
68
83
  type: 'id',
69
- options: undefined
84
+ options: undefined,
70
85
  },
71
86
  /** . */
72
- 'links': {
87
+ links: {
73
88
  type: 'schema',
74
89
  isArray: true,
75
90
  minArrayLength: 0,
76
- options: { schema: link_schema_1.default, }
91
+ options: { schema: link_schema_1.default },
77
92
  },
78
93
  /** . */
79
- 'choices': {
94
+ choices: {
80
95
  type: 'schema',
81
96
  isArray: true,
82
- options: { schema: choice_schema_1.default, }
97
+ options: { schema: choice_schema_1.default },
83
98
  },
84
- }
99
+ },
85
100
  };
86
101
  schema_1.SchemaRegistry.getInstance().trackSchema(sendMessageSchema);
87
102
  exports.default = sendMessageSchema;
@@ -14,77 +14,77 @@ const skillSchema = {
14
14
  description: 'An ability Sprucebot has learned.',
15
15
  fields: {
16
16
  /** Id. */
17
- 'id': {
17
+ id: {
18
18
  label: 'Id',
19
19
  type: 'id',
20
20
  isRequired: true,
21
- options: undefined
21
+ options: undefined,
22
22
  },
23
23
  /** Id. */
24
- 'apiKey': {
24
+ apiKey: {
25
25
  label: 'Id',
26
26
  type: 'id',
27
27
  isPrivate: true,
28
28
  isRequired: true,
29
- options: undefined
29
+ options: undefined,
30
30
  },
31
31
  /** Name. */
32
- 'name': {
32
+ name: {
33
33
  label: 'Name',
34
34
  type: 'text',
35
35
  isRequired: true,
36
- options: undefined
36
+ options: undefined,
37
37
  },
38
38
  /** Description. */
39
- 'description': {
39
+ description: {
40
40
  label: 'Description',
41
41
  type: 'text',
42
- options: undefined
42
+ options: undefined,
43
43
  },
44
44
  /** Namespace. */
45
- 'slug': {
45
+ slug: {
46
46
  label: 'Namespace',
47
47
  type: 'text',
48
48
  isRequired: true,
49
- options: undefined
49
+ options: undefined,
50
50
  },
51
51
  /** Published. Does this skill show up in the marketplace and can other devs use it as a dependency? */
52
- 'isPublished': {
52
+ isPublished: {
53
53
  label: 'Published',
54
54
  type: 'boolean',
55
55
  hint: 'Does this skill show up in the marketplace and can other devs use it as a dependency?',
56
- options: undefined
56
+ options: undefined,
57
57
  },
58
58
  /** Global. Does this skill require needing to be installed anywhere. */
59
- 'canBeInstalled': {
59
+ canBeInstalled: {
60
60
  label: 'Global',
61
61
  type: 'boolean',
62
62
  hint: 'Does this skill require needing to be installed anywhere.',
63
63
  defaultValue: true,
64
- options: undefined
64
+ options: undefined,
65
65
  },
66
66
  /** Creators. The people or skills who created and own this skill. */
67
- 'creators': {
67
+ creators: {
68
68
  label: 'Creators',
69
69
  type: 'schema',
70
70
  isPrivate: true,
71
71
  isRequired: true,
72
72
  hint: 'The people or skills who created and own this skill.',
73
73
  isArray: true,
74
- options: { schema: skillCreator_schema_1.default, }
74
+ options: { schema: skillCreator_schema_1.default },
75
75
  },
76
76
  /** . */
77
- 'dateCreated': {
77
+ dateCreated: {
78
78
  type: 'dateTime',
79
79
  isRequired: true,
80
- options: undefined
80
+ options: undefined,
81
81
  },
82
82
  /** . */
83
- 'dateDeleted': {
83
+ dateDeleted: {
84
84
  type: 'dateTime',
85
- options: undefined
85
+ options: undefined,
86
86
  },
87
- }
87
+ },
88
88
  };
89
89
  schema_1.SchemaRegistry.getInstance().trackSchema(skillSchema);
90
90
  exports.default = skillSchema;
@@ -9,16 +9,16 @@ const skillCreatorSchema = {
9
9
  moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
10
10
  fields: {
11
11
  /** . */
12
- 'skillId': {
12
+ skillId: {
13
13
  type: 'text',
14
- options: undefined
14
+ options: undefined,
15
15
  },
16
16
  /** . */
17
- 'personId': {
17
+ personId: {
18
18
  type: 'text',
19
- options: undefined
19
+ options: undefined,
20
20
  },
21
- }
21
+ },
22
22
  };
23
23
  schema_1.SchemaRegistry.getInstance().trackSchema(skillCreatorSchema);
24
24
  exports.default = skillCreatorSchema;