@sprucelabs/spruce-core-schemas 40.0.9 → 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 (39) 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 +8 -8
  39. package/tsconfig.json +1 -1
@@ -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,66 +10,56 @@ 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: {
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
- },
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" }], }
42
32
  },
43
33
  /** Description. */
44
- description: {
34
+ 'description': {
45
35
  label: 'Description',
46
36
  type: 'text',
47
- options: undefined,
37
+ options: undefined
48
38
  },
49
39
  /** . */
50
- dateCreated: {
40
+ 'dateCreated': {
51
41
  type: 'number',
52
42
  isRequired: true,
53
- options: undefined,
43
+ options: undefined
54
44
  },
55
45
  /** . */
56
- dateDeleted: {
46
+ 'dateDeleted': {
57
47
  type: 'number',
58
- options: undefined,
48
+ options: undefined
59
49
  },
60
50
  /** . */
61
- organizationId: {
51
+ 'organizationId': {
62
52
  type: 'id',
63
- options: undefined,
53
+ options: undefined
64
54
  },
65
55
  /** Public. Should I let people that are not part of this organization this role? */
66
- isPublic: {
56
+ 'isPublic': {
67
57
  label: 'Public',
68
58
  type: 'boolean',
69
59
  hint: 'Should I let people that are not part of this organization this role?',
70
- options: undefined,
60
+ options: undefined
71
61
  },
72
- },
62
+ }
73
63
  };
74
64
  schema_1.SchemaRegistry.getInstance().trackSchema(roleSchema);
75
65
  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 choice_schema_1 = __importDefault(require("./choice.schema"));
8
- const link_schema_1 = __importDefault(require("./link.schema"));
9
7
  const messageTarget_schema_1 = __importDefault(require("./messageTarget.schema"));
8
+ const link_schema_1 = __importDefault(require("./link.schema"));
9
+ const choice_schema_1 = __importDefault(require("./choice.schema"));
10
10
  const sendMessageSchema = {
11
11
  id: 'sendMessage',
12
12
  version: 'v2020_07_22',
@@ -15,88 +15,73 @@ 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: {
46
- choices: [
47
- { value: 'auth', label: 'Auth' },
48
- { value: 'transactional', label: 'transactional' },
49
- { value: 'promotional', label: 'Promotional' },
50
- { value: 'incoming', label: 'incoming' },
51
- ],
52
- },
45
+ options: { choices: [{ "value": "auth", "label": "Auth" }, { "value": "transactional", "label": "transactional" }, { "value": "promotional", "label": "Promotional" }, { "value": "incoming", "label": "incoming" }], }
53
46
  },
54
47
  /** . */
55
- status: {
48
+ 'status': {
56
49
  type: 'select',
57
50
  isPrivate: true,
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
- },
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" }], }
68
53
  },
69
54
  /** . */
70
- body: {
55
+ 'body': {
71
56
  type: 'text',
72
57
  isRequired: true,
73
- options: undefined,
58
+ options: undefined
74
59
  },
75
60
  /** . */
76
- context: {
61
+ 'context': {
77
62
  type: 'raw',
78
63
  isPrivate: true,
79
- options: { valueType: `Record<string, any>` },
64
+ options: { valueType: `Record<string, any>`, }
80
65
  },
81
66
  /** . */
82
- topicId: {
67
+ 'topicId': {
83
68
  type: 'id',
84
- options: undefined,
69
+ options: undefined
85
70
  },
86
71
  /** . */
87
- links: {
72
+ 'links': {
88
73
  type: 'schema',
89
74
  isArray: true,
90
75
  minArrayLength: 0,
91
- options: { schema: link_schema_1.default },
76
+ options: { schema: link_schema_1.default, }
92
77
  },
93
78
  /** . */
94
- choices: {
79
+ 'choices': {
95
80
  type: 'schema',
96
81
  isArray: true,
97
- options: { schema: choice_schema_1.default },
82
+ options: { schema: choice_schema_1.default, }
98
83
  },
99
- },
84
+ }
100
85
  };
101
86
  schema_1.SchemaRegistry.getInstance().trackSchema(sendMessageSchema);
102
87
  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;