@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.
- package/build/.spruce/schemas/core.schemas.types.d.ts +2350 -3060
- package/build/.spruce/schemas/fields/fields.types.d.ts +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/choice.schema.js +5 -5
- package/build/.spruce/schemas/spruce/v2020_07_22/feed.schema.js +3 -3
- package/build/.spruce/schemas/spruce/v2020_07_22/feedItem.schema.js +20 -20
- package/build/.spruce/schemas/spruce/v2020_07_22/feedItemTarget.schema.js +13 -13
- package/build/.spruce/schemas/spruce/v2020_07_22/link.schema.js +5 -5
- package/build/.spruce/schemas/spruce/v2020_07_22/location.schema.js +23 -1073
- package/build/.spruce/schemas/spruce/v2020_07_22/message.schema.js +33 -48
- package/build/.spruce/schemas/spruce/v2020_07_22/messageSource.schema.js +13 -13
- package/build/.spruce/schemas/spruce/v2020_07_22/messageTarget.schema.js +13 -13
- package/build/.spruce/schemas/spruce/v2020_07_22/organization.schema.js +15 -15
- package/build/.spruce/schemas/spruce/v2020_07_22/person.schema.js +21 -1071
- package/build/.spruce/schemas/spruce/v2020_07_22/personLocation.schema.js +11 -11
- package/build/.spruce/schemas/spruce/v2020_07_22/personOrganization.schema.js +11 -11
- package/build/.spruce/schemas/spruce/v2020_07_22/role.schema.js +17 -27
- package/build/.spruce/schemas/spruce/v2020_07_22/sendMessage.schema.js +26 -41
- package/build/.spruce/schemas/spruce/v2020_07_22/skill.schema.js +21 -21
- package/build/.spruce/schemas/spruce/v2020_07_22/skillCreator.schema.js +5 -5
- package/build/esm/.spruce/schemas/core.schemas.types.d.ts +2350 -3060
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/choice.schema.js +5 -5
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/feed.schema.js +3 -3
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/feedItem.schema.js +20 -20
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/feedItemTarget.schema.js +13 -13
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/link.schema.js +5 -5
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/location.schema.js +23 -1073
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/message.schema.js +33 -48
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/messageSource.schema.js +13 -13
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/messageTarget.schema.js +13 -13
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/organization.schema.js +15 -15
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/person.schema.js +21 -1071
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/personLocation.schema.js +11 -11
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/personOrganization.schema.js +11 -11
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/role.schema.js +17 -27
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/sendMessage.schema.js +26 -41
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/skill.schema.js +21 -21
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/skillCreator.schema.js +5 -5
- package/package.json +7 -7
|
@@ -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 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
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
|
+
const choice_schema_1 = __importDefault(require("./choice.schema"));
|
|
11
11
|
const messageSchema = {
|
|
12
12
|
id: 'message',
|
|
13
13
|
version: 'v2020_07_22',
|
|
@@ -17,106 +17,91 @@ 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: {
|
|
66
|
-
choices: [
|
|
67
|
-
{ value: 'auth', label: 'Auth' },
|
|
68
|
-
{ value: 'transactional', label: 'transactional' },
|
|
69
|
-
{ value: 'promotional', label: 'Promotional' },
|
|
70
|
-
{ value: 'incoming', label: 'incoming' },
|
|
71
|
-
],
|
|
72
|
-
},
|
|
65
|
+
options: { choices: [{ "value": "auth", "label": "Auth" }, { "value": "transactional", "label": "transactional" }, { "value": "promotional", "label": "Promotional" }, { "value": "incoming", "label": "incoming" }], }
|
|
73
66
|
},
|
|
74
67
|
/** . */
|
|
75
|
-
status: {
|
|
68
|
+
'status': {
|
|
76
69
|
type: 'select',
|
|
77
70
|
isPrivate: true,
|
|
78
|
-
defaultValue:
|
|
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
|
-
},
|
|
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" }], }
|
|
88
73
|
},
|
|
89
74
|
/** . */
|
|
90
|
-
body: {
|
|
75
|
+
'body': {
|
|
91
76
|
type: 'text',
|
|
92
77
|
isRequired: true,
|
|
93
|
-
options: undefined
|
|
78
|
+
options: undefined
|
|
94
79
|
},
|
|
95
80
|
/** . */
|
|
96
|
-
context: {
|
|
81
|
+
'context': {
|
|
97
82
|
type: 'raw',
|
|
98
83
|
isPrivate: true,
|
|
99
|
-
options: { valueType: `Record<string, any
|
|
84
|
+
options: { valueType: `Record<string, any>`, }
|
|
100
85
|
},
|
|
101
86
|
/** . */
|
|
102
|
-
topicId: {
|
|
87
|
+
'topicId': {
|
|
103
88
|
type: 'id',
|
|
104
|
-
options: undefined
|
|
89
|
+
options: undefined
|
|
105
90
|
},
|
|
106
91
|
/** . */
|
|
107
|
-
links: {
|
|
92
|
+
'links': {
|
|
108
93
|
type: 'schema',
|
|
109
94
|
isArray: true,
|
|
110
95
|
minArrayLength: 0,
|
|
111
|
-
options: { schema: link_schema_1.default }
|
|
96
|
+
options: { schema: link_schema_1.default, }
|
|
112
97
|
},
|
|
113
98
|
/** . */
|
|
114
|
-
choices: {
|
|
99
|
+
'choices': {
|
|
115
100
|
type: 'schema',
|
|
116
101
|
isArray: true,
|
|
117
|
-
options: { schema: choice_schema_1.default }
|
|
102
|
+
options: { schema: choice_schema_1.default, }
|
|
118
103
|
},
|
|
119
|
-
}
|
|
104
|
+
}
|
|
120
105
|
};
|
|
121
106
|
schema_1.SchemaRegistry.getInstance().trackSchema(messageSchema);
|
|
122
107
|
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;
|