@sprucelabs/spruce-core-schemas 27.0.3 → 27.1.2
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 +228 -121
- package/build/.spruce/schemas/spruce/v2020_07_22/feed.schema.d.ts +3 -0
- package/build/.spruce/schemas/spruce/v2020_07_22/feed.schema.js +31 -0
- package/build/.spruce/schemas/spruce/v2020_07_22/feedItem.schema.d.ts +3 -0
- package/build/.spruce/schemas/spruce/v2020_07_22/feedItem.schema.js +63 -0
- package/build/esm/.spruce/schemas/core.schemas.types.d.ts +228 -121
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/feed.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/feed.schema.js +26 -0
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/feedItem.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/feedItem.schema.js +61 -0
- package/build/esm/index.d.ts +2 -0
- package/build/esm/index.js +2 -0
- package/build/esm/schemas/v2020_07_22/feed.builder.d.ts +59 -0
- package/build/esm/schemas/v2020_07_22/feed.builder.js +58 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +5 -1
- package/build/schemas/v2020_07_22/feed.builder.d.ts +59 -0
- package/build/schemas/v2020_07_22/feed.builder.js +60 -0
- package/package.json +3 -3
|
@@ -114,127 +114,6 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
114
114
|
}
|
|
115
115
|
type SkillEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.SkillSchema>;
|
|
116
116
|
}
|
|
117
|
-
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
118
|
-
interface SendMessage {
|
|
119
|
-
'dateSent'?: number | undefined | null;
|
|
120
|
-
'target': SpruceSchemas.Spruce.v2020_07_22.MessageTarget;
|
|
121
|
-
'errors'?: string[] | undefined | null;
|
|
122
|
-
'classification': ("auth" | "transactional" | "promotional" | "incoming");
|
|
123
|
-
'status'?: ("pending" | "processing" | "sent" | "failed" | "ignored") | undefined | null;
|
|
124
|
-
'body': string;
|
|
125
|
-
'context'?: (Record<string, any>) | undefined | null;
|
|
126
|
-
'topicId'?: string | undefined | null;
|
|
127
|
-
'links'?: string[] | undefined | null;
|
|
128
|
-
'choices'?: SpruceSchemas.Spruce.v2020_07_22.FullMessageChoices[] | undefined | null;
|
|
129
|
-
}
|
|
130
|
-
interface SendMessageSchema extends SpruceSchema.Schema {
|
|
131
|
-
id: 'sendMessage';
|
|
132
|
-
version: 'v2020_07_22';
|
|
133
|
-
namespace: 'Spruce';
|
|
134
|
-
name: '';
|
|
135
|
-
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
136
|
-
fields: {
|
|
137
|
-
/** . */
|
|
138
|
-
'dateSent': {
|
|
139
|
-
type: 'number';
|
|
140
|
-
options: undefined;
|
|
141
|
-
};
|
|
142
|
-
/** . */
|
|
143
|
-
'target': {
|
|
144
|
-
type: 'schema';
|
|
145
|
-
isRequired: true;
|
|
146
|
-
options: {
|
|
147
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
/** . */
|
|
151
|
-
'errors': {
|
|
152
|
-
type: 'text';
|
|
153
|
-
isPrivate: true;
|
|
154
|
-
isArray: true;
|
|
155
|
-
options: undefined;
|
|
156
|
-
};
|
|
157
|
-
/** . */
|
|
158
|
-
'classification': {
|
|
159
|
-
type: 'select';
|
|
160
|
-
isRequired: true;
|
|
161
|
-
options: {
|
|
162
|
-
choices: [{
|
|
163
|
-
"value": "auth";
|
|
164
|
-
"label": "Auth";
|
|
165
|
-
}, {
|
|
166
|
-
"value": "transactional";
|
|
167
|
-
"label": "transactional";
|
|
168
|
-
}, {
|
|
169
|
-
"value": "promotional";
|
|
170
|
-
"label": "Promotional";
|
|
171
|
-
}, {
|
|
172
|
-
"value": "incoming";
|
|
173
|
-
"label": "incoming";
|
|
174
|
-
}];
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
/** . */
|
|
178
|
-
'status': {
|
|
179
|
-
type: 'select';
|
|
180
|
-
isPrivate: true;
|
|
181
|
-
defaultValue: "pending";
|
|
182
|
-
options: {
|
|
183
|
-
choices: [{
|
|
184
|
-
"value": "pending";
|
|
185
|
-
"label": "Pending";
|
|
186
|
-
}, {
|
|
187
|
-
"value": "processing";
|
|
188
|
-
"label": "Processing";
|
|
189
|
-
}, {
|
|
190
|
-
"value": "sent";
|
|
191
|
-
"label": "Sent";
|
|
192
|
-
}, {
|
|
193
|
-
"value": "failed";
|
|
194
|
-
"label": "Failed";
|
|
195
|
-
}, {
|
|
196
|
-
"value": "ignored";
|
|
197
|
-
"label": "Ignored";
|
|
198
|
-
}];
|
|
199
|
-
};
|
|
200
|
-
};
|
|
201
|
-
/** . */
|
|
202
|
-
'body': {
|
|
203
|
-
type: 'text';
|
|
204
|
-
isRequired: true;
|
|
205
|
-
options: undefined;
|
|
206
|
-
};
|
|
207
|
-
/** . */
|
|
208
|
-
'context': {
|
|
209
|
-
type: 'raw';
|
|
210
|
-
isPrivate: true;
|
|
211
|
-
options: {
|
|
212
|
-
valueType: `Record<string, any>`;
|
|
213
|
-
};
|
|
214
|
-
};
|
|
215
|
-
/** . */
|
|
216
|
-
'topicId': {
|
|
217
|
-
type: 'id';
|
|
218
|
-
options: undefined;
|
|
219
|
-
};
|
|
220
|
-
/** . */
|
|
221
|
-
'links': {
|
|
222
|
-
type: 'text';
|
|
223
|
-
isArray: true;
|
|
224
|
-
options: undefined;
|
|
225
|
-
};
|
|
226
|
-
/** . */
|
|
227
|
-
'choices': {
|
|
228
|
-
type: 'schema';
|
|
229
|
-
isArray: true;
|
|
230
|
-
options: {
|
|
231
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.FullMessageChoicesSchema;
|
|
232
|
-
};
|
|
233
|
-
};
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
type SendMessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.SendMessageSchema>;
|
|
237
|
-
}
|
|
238
117
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
239
118
|
/** 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. */
|
|
240
119
|
interface Role {
|
|
@@ -641,6 +520,127 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
641
520
|
}
|
|
642
521
|
type FullMessageChoicesEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.FullMessageChoicesSchema>;
|
|
643
522
|
}
|
|
523
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
524
|
+
interface SendMessage {
|
|
525
|
+
'dateSent'?: number | undefined | null;
|
|
526
|
+
'target': SpruceSchemas.Spruce.v2020_07_22.MessageTarget;
|
|
527
|
+
'errors'?: string[] | undefined | null;
|
|
528
|
+
'classification': ("auth" | "transactional" | "promotional" | "incoming");
|
|
529
|
+
'status'?: ("pending" | "processing" | "sent" | "failed" | "ignored") | undefined | null;
|
|
530
|
+
'body': string;
|
|
531
|
+
'context'?: (Record<string, any>) | undefined | null;
|
|
532
|
+
'topicId'?: string | undefined | null;
|
|
533
|
+
'links'?: string[] | undefined | null;
|
|
534
|
+
'choices'?: SpruceSchemas.Spruce.v2020_07_22.FullMessageChoices[] | undefined | null;
|
|
535
|
+
}
|
|
536
|
+
interface SendMessageSchema extends SpruceSchema.Schema {
|
|
537
|
+
id: 'sendMessage';
|
|
538
|
+
version: 'v2020_07_22';
|
|
539
|
+
namespace: 'Spruce';
|
|
540
|
+
name: '';
|
|
541
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
542
|
+
fields: {
|
|
543
|
+
/** . */
|
|
544
|
+
'dateSent': {
|
|
545
|
+
type: 'number';
|
|
546
|
+
options: undefined;
|
|
547
|
+
};
|
|
548
|
+
/** . */
|
|
549
|
+
'target': {
|
|
550
|
+
type: 'schema';
|
|
551
|
+
isRequired: true;
|
|
552
|
+
options: {
|
|
553
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
/** . */
|
|
557
|
+
'errors': {
|
|
558
|
+
type: 'text';
|
|
559
|
+
isPrivate: true;
|
|
560
|
+
isArray: true;
|
|
561
|
+
options: undefined;
|
|
562
|
+
};
|
|
563
|
+
/** . */
|
|
564
|
+
'classification': {
|
|
565
|
+
type: 'select';
|
|
566
|
+
isRequired: true;
|
|
567
|
+
options: {
|
|
568
|
+
choices: [{
|
|
569
|
+
"value": "auth";
|
|
570
|
+
"label": "Auth";
|
|
571
|
+
}, {
|
|
572
|
+
"value": "transactional";
|
|
573
|
+
"label": "transactional";
|
|
574
|
+
}, {
|
|
575
|
+
"value": "promotional";
|
|
576
|
+
"label": "Promotional";
|
|
577
|
+
}, {
|
|
578
|
+
"value": "incoming";
|
|
579
|
+
"label": "incoming";
|
|
580
|
+
}];
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
/** . */
|
|
584
|
+
'status': {
|
|
585
|
+
type: 'select';
|
|
586
|
+
isPrivate: true;
|
|
587
|
+
defaultValue: "pending";
|
|
588
|
+
options: {
|
|
589
|
+
choices: [{
|
|
590
|
+
"value": "pending";
|
|
591
|
+
"label": "Pending";
|
|
592
|
+
}, {
|
|
593
|
+
"value": "processing";
|
|
594
|
+
"label": "Processing";
|
|
595
|
+
}, {
|
|
596
|
+
"value": "sent";
|
|
597
|
+
"label": "Sent";
|
|
598
|
+
}, {
|
|
599
|
+
"value": "failed";
|
|
600
|
+
"label": "Failed";
|
|
601
|
+
}, {
|
|
602
|
+
"value": "ignored";
|
|
603
|
+
"label": "Ignored";
|
|
604
|
+
}];
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
/** . */
|
|
608
|
+
'body': {
|
|
609
|
+
type: 'text';
|
|
610
|
+
isRequired: true;
|
|
611
|
+
options: undefined;
|
|
612
|
+
};
|
|
613
|
+
/** . */
|
|
614
|
+
'context': {
|
|
615
|
+
type: 'raw';
|
|
616
|
+
isPrivate: true;
|
|
617
|
+
options: {
|
|
618
|
+
valueType: `Record<string, any>`;
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
/** . */
|
|
622
|
+
'topicId': {
|
|
623
|
+
type: 'id';
|
|
624
|
+
options: undefined;
|
|
625
|
+
};
|
|
626
|
+
/** . */
|
|
627
|
+
'links': {
|
|
628
|
+
type: 'text';
|
|
629
|
+
isArray: true;
|
|
630
|
+
options: undefined;
|
|
631
|
+
};
|
|
632
|
+
/** . */
|
|
633
|
+
'choices': {
|
|
634
|
+
type: 'schema';
|
|
635
|
+
isArray: true;
|
|
636
|
+
options: {
|
|
637
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.FullMessageChoicesSchema;
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
type SendMessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.SendMessageSchema>;
|
|
643
|
+
}
|
|
644
644
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
645
645
|
interface MessageSource {
|
|
646
646
|
'locationId'?: string | undefined | null;
|
|
@@ -1116,3 +1116,110 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
type LocationEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.LocationSchema>;
|
|
1118
1118
|
}
|
|
1119
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1120
|
+
interface FeedItem {
|
|
1121
|
+
'id': string;
|
|
1122
|
+
'isMe'?: boolean | undefined | null;
|
|
1123
|
+
'message': string;
|
|
1124
|
+
'dateCreated': SpruceSchema.DateTimeFieldValue;
|
|
1125
|
+
'note'?: string | undefined | null;
|
|
1126
|
+
'isSprucebot'?: boolean | undefined | null;
|
|
1127
|
+
'source'?: (Record<string, any>) | undefined | null;
|
|
1128
|
+
'fromCasualName': string;
|
|
1129
|
+
'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
|
|
1130
|
+
}
|
|
1131
|
+
interface FeedItemSchema extends SpruceSchema.Schema {
|
|
1132
|
+
id: 'feedItem';
|
|
1133
|
+
version: 'v2020_07_22';
|
|
1134
|
+
namespace: 'Spruce';
|
|
1135
|
+
name: '';
|
|
1136
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1137
|
+
fields: {
|
|
1138
|
+
/** . */
|
|
1139
|
+
'id': {
|
|
1140
|
+
type: 'id';
|
|
1141
|
+
isRequired: true;
|
|
1142
|
+
options: undefined;
|
|
1143
|
+
};
|
|
1144
|
+
/** . */
|
|
1145
|
+
'isMe': {
|
|
1146
|
+
type: 'boolean';
|
|
1147
|
+
options: undefined;
|
|
1148
|
+
};
|
|
1149
|
+
/** . */
|
|
1150
|
+
'message': {
|
|
1151
|
+
type: 'text';
|
|
1152
|
+
isRequired: true;
|
|
1153
|
+
options: undefined;
|
|
1154
|
+
};
|
|
1155
|
+
/** . */
|
|
1156
|
+
'dateCreated': {
|
|
1157
|
+
type: 'dateTime';
|
|
1158
|
+
isRequired: true;
|
|
1159
|
+
options: undefined;
|
|
1160
|
+
};
|
|
1161
|
+
/** . */
|
|
1162
|
+
'note': {
|
|
1163
|
+
type: 'text';
|
|
1164
|
+
options: undefined;
|
|
1165
|
+
};
|
|
1166
|
+
/** . */
|
|
1167
|
+
'isSprucebot': {
|
|
1168
|
+
type: 'boolean';
|
|
1169
|
+
options: undefined;
|
|
1170
|
+
};
|
|
1171
|
+
/** . */
|
|
1172
|
+
'source': {
|
|
1173
|
+
type: 'raw';
|
|
1174
|
+
options: {
|
|
1175
|
+
valueType: `Record<string, any>`;
|
|
1176
|
+
};
|
|
1177
|
+
};
|
|
1178
|
+
/** . */
|
|
1179
|
+
'fromCasualName': {
|
|
1180
|
+
type: 'text';
|
|
1181
|
+
isRequired: true;
|
|
1182
|
+
options: undefined;
|
|
1183
|
+
};
|
|
1184
|
+
/** . */
|
|
1185
|
+
'avatar': {
|
|
1186
|
+
type: 'image';
|
|
1187
|
+
options: {
|
|
1188
|
+
requiredSizes: ["*"];
|
|
1189
|
+
};
|
|
1190
|
+
};
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
type FeedItemEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.FeedItemSchema>;
|
|
1194
|
+
}
|
|
1195
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1196
|
+
interface Feed {
|
|
1197
|
+
'items': SpruceSchemas.Spruce.v2020_07_22.FeedItem[];
|
|
1198
|
+
'shouldEnableChat'?: boolean | undefined | null;
|
|
1199
|
+
}
|
|
1200
|
+
interface FeedSchema extends SpruceSchema.Schema {
|
|
1201
|
+
id: 'feed';
|
|
1202
|
+
version: 'v2020_07_22';
|
|
1203
|
+
namespace: 'Spruce';
|
|
1204
|
+
name: '';
|
|
1205
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1206
|
+
fields: {
|
|
1207
|
+
/** . */
|
|
1208
|
+
'items': {
|
|
1209
|
+
type: 'schema';
|
|
1210
|
+
isRequired: true;
|
|
1211
|
+
isArray: true;
|
|
1212
|
+
minArrayLength: 0;
|
|
1213
|
+
options: {
|
|
1214
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.FeedItemSchema;
|
|
1215
|
+
};
|
|
1216
|
+
};
|
|
1217
|
+
/** . */
|
|
1218
|
+
'shouldEnableChat': {
|
|
1219
|
+
type: 'boolean';
|
|
1220
|
+
options: undefined;
|
|
1221
|
+
};
|
|
1222
|
+
};
|
|
1223
|
+
}
|
|
1224
|
+
type FeedEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.FeedSchema>;
|
|
1225
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
7
|
+
const feedItem_schema_1 = __importDefault(require("./feedItem.schema"));
|
|
8
|
+
const feedSchema = {
|
|
9
|
+
id: 'feed',
|
|
10
|
+
version: 'v2020_07_22',
|
|
11
|
+
namespace: 'Spruce',
|
|
12
|
+
name: '',
|
|
13
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
|
|
14
|
+
fields: {
|
|
15
|
+
/** . */
|
|
16
|
+
'items': {
|
|
17
|
+
type: 'schema',
|
|
18
|
+
isRequired: true,
|
|
19
|
+
isArray: true,
|
|
20
|
+
minArrayLength: 0,
|
|
21
|
+
options: { schema: feedItem_schema_1.default, }
|
|
22
|
+
},
|
|
23
|
+
/** . */
|
|
24
|
+
'shouldEnableChat': {
|
|
25
|
+
type: 'boolean',
|
|
26
|
+
options: undefined
|
|
27
|
+
},
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(feedSchema);
|
|
31
|
+
exports.default = feedSchema;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
+
const feedItemSchema = {
|
|
5
|
+
id: 'feedItem',
|
|
6
|
+
version: 'v2020_07_22',
|
|
7
|
+
namespace: 'Spruce',
|
|
8
|
+
name: '',
|
|
9
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
|
|
10
|
+
fields: {
|
|
11
|
+
/** . */
|
|
12
|
+
'id': {
|
|
13
|
+
type: 'id',
|
|
14
|
+
isRequired: true,
|
|
15
|
+
options: undefined
|
|
16
|
+
},
|
|
17
|
+
/** . */
|
|
18
|
+
'isMe': {
|
|
19
|
+
type: 'boolean',
|
|
20
|
+
options: undefined
|
|
21
|
+
},
|
|
22
|
+
/** . */
|
|
23
|
+
'message': {
|
|
24
|
+
type: 'text',
|
|
25
|
+
isRequired: true,
|
|
26
|
+
options: undefined
|
|
27
|
+
},
|
|
28
|
+
/** . */
|
|
29
|
+
'dateCreated': {
|
|
30
|
+
type: 'dateTime',
|
|
31
|
+
isRequired: true,
|
|
32
|
+
options: undefined
|
|
33
|
+
},
|
|
34
|
+
/** . */
|
|
35
|
+
'note': {
|
|
36
|
+
type: 'text',
|
|
37
|
+
options: undefined
|
|
38
|
+
},
|
|
39
|
+
/** . */
|
|
40
|
+
'isSprucebot': {
|
|
41
|
+
type: 'boolean',
|
|
42
|
+
options: undefined
|
|
43
|
+
},
|
|
44
|
+
/** . */
|
|
45
|
+
'source': {
|
|
46
|
+
type: 'raw',
|
|
47
|
+
options: { valueType: `Record<string, any>`, }
|
|
48
|
+
},
|
|
49
|
+
/** . */
|
|
50
|
+
'fromCasualName': {
|
|
51
|
+
type: 'text',
|
|
52
|
+
isRequired: true,
|
|
53
|
+
options: undefined
|
|
54
|
+
},
|
|
55
|
+
/** . */
|
|
56
|
+
'avatar': {
|
|
57
|
+
type: 'image',
|
|
58
|
+
options: { requiredSizes: ["*"], }
|
|
59
|
+
},
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(feedItemSchema);
|
|
63
|
+
exports.default = feedItemSchema;
|
|
@@ -114,127 +114,6 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
114
114
|
}
|
|
115
115
|
type SkillEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.SkillSchema>;
|
|
116
116
|
}
|
|
117
|
-
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
118
|
-
interface SendMessage {
|
|
119
|
-
'dateSent'?: number | undefined | null;
|
|
120
|
-
'target': SpruceSchemas.Spruce.v2020_07_22.MessageTarget;
|
|
121
|
-
'errors'?: string[] | undefined | null;
|
|
122
|
-
'classification': ("auth" | "transactional" | "promotional" | "incoming");
|
|
123
|
-
'status'?: ("pending" | "processing" | "sent" | "failed" | "ignored") | undefined | null;
|
|
124
|
-
'body': string;
|
|
125
|
-
'context'?: (Record<string, any>) | undefined | null;
|
|
126
|
-
'topicId'?: string | undefined | null;
|
|
127
|
-
'links'?: string[] | undefined | null;
|
|
128
|
-
'choices'?: SpruceSchemas.Spruce.v2020_07_22.FullMessageChoices[] | undefined | null;
|
|
129
|
-
}
|
|
130
|
-
interface SendMessageSchema extends SpruceSchema.Schema {
|
|
131
|
-
id: 'sendMessage';
|
|
132
|
-
version: 'v2020_07_22';
|
|
133
|
-
namespace: 'Spruce';
|
|
134
|
-
name: '';
|
|
135
|
-
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
136
|
-
fields: {
|
|
137
|
-
/** . */
|
|
138
|
-
'dateSent': {
|
|
139
|
-
type: 'number';
|
|
140
|
-
options: undefined;
|
|
141
|
-
};
|
|
142
|
-
/** . */
|
|
143
|
-
'target': {
|
|
144
|
-
type: 'schema';
|
|
145
|
-
isRequired: true;
|
|
146
|
-
options: {
|
|
147
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
/** . */
|
|
151
|
-
'errors': {
|
|
152
|
-
type: 'text';
|
|
153
|
-
isPrivate: true;
|
|
154
|
-
isArray: true;
|
|
155
|
-
options: undefined;
|
|
156
|
-
};
|
|
157
|
-
/** . */
|
|
158
|
-
'classification': {
|
|
159
|
-
type: 'select';
|
|
160
|
-
isRequired: true;
|
|
161
|
-
options: {
|
|
162
|
-
choices: [{
|
|
163
|
-
"value": "auth";
|
|
164
|
-
"label": "Auth";
|
|
165
|
-
}, {
|
|
166
|
-
"value": "transactional";
|
|
167
|
-
"label": "transactional";
|
|
168
|
-
}, {
|
|
169
|
-
"value": "promotional";
|
|
170
|
-
"label": "Promotional";
|
|
171
|
-
}, {
|
|
172
|
-
"value": "incoming";
|
|
173
|
-
"label": "incoming";
|
|
174
|
-
}];
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
/** . */
|
|
178
|
-
'status': {
|
|
179
|
-
type: 'select';
|
|
180
|
-
isPrivate: true;
|
|
181
|
-
defaultValue: "pending";
|
|
182
|
-
options: {
|
|
183
|
-
choices: [{
|
|
184
|
-
"value": "pending";
|
|
185
|
-
"label": "Pending";
|
|
186
|
-
}, {
|
|
187
|
-
"value": "processing";
|
|
188
|
-
"label": "Processing";
|
|
189
|
-
}, {
|
|
190
|
-
"value": "sent";
|
|
191
|
-
"label": "Sent";
|
|
192
|
-
}, {
|
|
193
|
-
"value": "failed";
|
|
194
|
-
"label": "Failed";
|
|
195
|
-
}, {
|
|
196
|
-
"value": "ignored";
|
|
197
|
-
"label": "Ignored";
|
|
198
|
-
}];
|
|
199
|
-
};
|
|
200
|
-
};
|
|
201
|
-
/** . */
|
|
202
|
-
'body': {
|
|
203
|
-
type: 'text';
|
|
204
|
-
isRequired: true;
|
|
205
|
-
options: undefined;
|
|
206
|
-
};
|
|
207
|
-
/** . */
|
|
208
|
-
'context': {
|
|
209
|
-
type: 'raw';
|
|
210
|
-
isPrivate: true;
|
|
211
|
-
options: {
|
|
212
|
-
valueType: `Record<string, any>`;
|
|
213
|
-
};
|
|
214
|
-
};
|
|
215
|
-
/** . */
|
|
216
|
-
'topicId': {
|
|
217
|
-
type: 'id';
|
|
218
|
-
options: undefined;
|
|
219
|
-
};
|
|
220
|
-
/** . */
|
|
221
|
-
'links': {
|
|
222
|
-
type: 'text';
|
|
223
|
-
isArray: true;
|
|
224
|
-
options: undefined;
|
|
225
|
-
};
|
|
226
|
-
/** . */
|
|
227
|
-
'choices': {
|
|
228
|
-
type: 'schema';
|
|
229
|
-
isArray: true;
|
|
230
|
-
options: {
|
|
231
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.FullMessageChoicesSchema;
|
|
232
|
-
};
|
|
233
|
-
};
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
type SendMessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.SendMessageSchema>;
|
|
237
|
-
}
|
|
238
117
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
239
118
|
/** 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. */
|
|
240
119
|
interface Role {
|
|
@@ -641,6 +520,127 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
641
520
|
}
|
|
642
521
|
type FullMessageChoicesEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.FullMessageChoicesSchema>;
|
|
643
522
|
}
|
|
523
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
524
|
+
interface SendMessage {
|
|
525
|
+
'dateSent'?: number | undefined | null;
|
|
526
|
+
'target': SpruceSchemas.Spruce.v2020_07_22.MessageTarget;
|
|
527
|
+
'errors'?: string[] | undefined | null;
|
|
528
|
+
'classification': ("auth" | "transactional" | "promotional" | "incoming");
|
|
529
|
+
'status'?: ("pending" | "processing" | "sent" | "failed" | "ignored") | undefined | null;
|
|
530
|
+
'body': string;
|
|
531
|
+
'context'?: (Record<string, any>) | undefined | null;
|
|
532
|
+
'topicId'?: string | undefined | null;
|
|
533
|
+
'links'?: string[] | undefined | null;
|
|
534
|
+
'choices'?: SpruceSchemas.Spruce.v2020_07_22.FullMessageChoices[] | undefined | null;
|
|
535
|
+
}
|
|
536
|
+
interface SendMessageSchema extends SpruceSchema.Schema {
|
|
537
|
+
id: 'sendMessage';
|
|
538
|
+
version: 'v2020_07_22';
|
|
539
|
+
namespace: 'Spruce';
|
|
540
|
+
name: '';
|
|
541
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
542
|
+
fields: {
|
|
543
|
+
/** . */
|
|
544
|
+
'dateSent': {
|
|
545
|
+
type: 'number';
|
|
546
|
+
options: undefined;
|
|
547
|
+
};
|
|
548
|
+
/** . */
|
|
549
|
+
'target': {
|
|
550
|
+
type: 'schema';
|
|
551
|
+
isRequired: true;
|
|
552
|
+
options: {
|
|
553
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
/** . */
|
|
557
|
+
'errors': {
|
|
558
|
+
type: 'text';
|
|
559
|
+
isPrivate: true;
|
|
560
|
+
isArray: true;
|
|
561
|
+
options: undefined;
|
|
562
|
+
};
|
|
563
|
+
/** . */
|
|
564
|
+
'classification': {
|
|
565
|
+
type: 'select';
|
|
566
|
+
isRequired: true;
|
|
567
|
+
options: {
|
|
568
|
+
choices: [{
|
|
569
|
+
"value": "auth";
|
|
570
|
+
"label": "Auth";
|
|
571
|
+
}, {
|
|
572
|
+
"value": "transactional";
|
|
573
|
+
"label": "transactional";
|
|
574
|
+
}, {
|
|
575
|
+
"value": "promotional";
|
|
576
|
+
"label": "Promotional";
|
|
577
|
+
}, {
|
|
578
|
+
"value": "incoming";
|
|
579
|
+
"label": "incoming";
|
|
580
|
+
}];
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
/** . */
|
|
584
|
+
'status': {
|
|
585
|
+
type: 'select';
|
|
586
|
+
isPrivate: true;
|
|
587
|
+
defaultValue: "pending";
|
|
588
|
+
options: {
|
|
589
|
+
choices: [{
|
|
590
|
+
"value": "pending";
|
|
591
|
+
"label": "Pending";
|
|
592
|
+
}, {
|
|
593
|
+
"value": "processing";
|
|
594
|
+
"label": "Processing";
|
|
595
|
+
}, {
|
|
596
|
+
"value": "sent";
|
|
597
|
+
"label": "Sent";
|
|
598
|
+
}, {
|
|
599
|
+
"value": "failed";
|
|
600
|
+
"label": "Failed";
|
|
601
|
+
}, {
|
|
602
|
+
"value": "ignored";
|
|
603
|
+
"label": "Ignored";
|
|
604
|
+
}];
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
/** . */
|
|
608
|
+
'body': {
|
|
609
|
+
type: 'text';
|
|
610
|
+
isRequired: true;
|
|
611
|
+
options: undefined;
|
|
612
|
+
};
|
|
613
|
+
/** . */
|
|
614
|
+
'context': {
|
|
615
|
+
type: 'raw';
|
|
616
|
+
isPrivate: true;
|
|
617
|
+
options: {
|
|
618
|
+
valueType: `Record<string, any>`;
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
/** . */
|
|
622
|
+
'topicId': {
|
|
623
|
+
type: 'id';
|
|
624
|
+
options: undefined;
|
|
625
|
+
};
|
|
626
|
+
/** . */
|
|
627
|
+
'links': {
|
|
628
|
+
type: 'text';
|
|
629
|
+
isArray: true;
|
|
630
|
+
options: undefined;
|
|
631
|
+
};
|
|
632
|
+
/** . */
|
|
633
|
+
'choices': {
|
|
634
|
+
type: 'schema';
|
|
635
|
+
isArray: true;
|
|
636
|
+
options: {
|
|
637
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.FullMessageChoicesSchema;
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
type SendMessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.SendMessageSchema>;
|
|
643
|
+
}
|
|
644
644
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
645
645
|
interface MessageSource {
|
|
646
646
|
'locationId'?: string | undefined | null;
|
|
@@ -1116,3 +1116,110 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
type LocationEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.LocationSchema>;
|
|
1118
1118
|
}
|
|
1119
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1120
|
+
interface FeedItem {
|
|
1121
|
+
'id': string;
|
|
1122
|
+
'isMe'?: boolean | undefined | null;
|
|
1123
|
+
'message': string;
|
|
1124
|
+
'dateCreated': SpruceSchema.DateTimeFieldValue;
|
|
1125
|
+
'note'?: string | undefined | null;
|
|
1126
|
+
'isSprucebot'?: boolean | undefined | null;
|
|
1127
|
+
'source'?: (Record<string, any>) | undefined | null;
|
|
1128
|
+
'fromCasualName': string;
|
|
1129
|
+
'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
|
|
1130
|
+
}
|
|
1131
|
+
interface FeedItemSchema extends SpruceSchema.Schema {
|
|
1132
|
+
id: 'feedItem';
|
|
1133
|
+
version: 'v2020_07_22';
|
|
1134
|
+
namespace: 'Spruce';
|
|
1135
|
+
name: '';
|
|
1136
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1137
|
+
fields: {
|
|
1138
|
+
/** . */
|
|
1139
|
+
'id': {
|
|
1140
|
+
type: 'id';
|
|
1141
|
+
isRequired: true;
|
|
1142
|
+
options: undefined;
|
|
1143
|
+
};
|
|
1144
|
+
/** . */
|
|
1145
|
+
'isMe': {
|
|
1146
|
+
type: 'boolean';
|
|
1147
|
+
options: undefined;
|
|
1148
|
+
};
|
|
1149
|
+
/** . */
|
|
1150
|
+
'message': {
|
|
1151
|
+
type: 'text';
|
|
1152
|
+
isRequired: true;
|
|
1153
|
+
options: undefined;
|
|
1154
|
+
};
|
|
1155
|
+
/** . */
|
|
1156
|
+
'dateCreated': {
|
|
1157
|
+
type: 'dateTime';
|
|
1158
|
+
isRequired: true;
|
|
1159
|
+
options: undefined;
|
|
1160
|
+
};
|
|
1161
|
+
/** . */
|
|
1162
|
+
'note': {
|
|
1163
|
+
type: 'text';
|
|
1164
|
+
options: undefined;
|
|
1165
|
+
};
|
|
1166
|
+
/** . */
|
|
1167
|
+
'isSprucebot': {
|
|
1168
|
+
type: 'boolean';
|
|
1169
|
+
options: undefined;
|
|
1170
|
+
};
|
|
1171
|
+
/** . */
|
|
1172
|
+
'source': {
|
|
1173
|
+
type: 'raw';
|
|
1174
|
+
options: {
|
|
1175
|
+
valueType: `Record<string, any>`;
|
|
1176
|
+
};
|
|
1177
|
+
};
|
|
1178
|
+
/** . */
|
|
1179
|
+
'fromCasualName': {
|
|
1180
|
+
type: 'text';
|
|
1181
|
+
isRequired: true;
|
|
1182
|
+
options: undefined;
|
|
1183
|
+
};
|
|
1184
|
+
/** . */
|
|
1185
|
+
'avatar': {
|
|
1186
|
+
type: 'image';
|
|
1187
|
+
options: {
|
|
1188
|
+
requiredSizes: ["*"];
|
|
1189
|
+
};
|
|
1190
|
+
};
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
type FeedItemEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.FeedItemSchema>;
|
|
1194
|
+
}
|
|
1195
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1196
|
+
interface Feed {
|
|
1197
|
+
'items': SpruceSchemas.Spruce.v2020_07_22.FeedItem[];
|
|
1198
|
+
'shouldEnableChat'?: boolean | undefined | null;
|
|
1199
|
+
}
|
|
1200
|
+
interface FeedSchema extends SpruceSchema.Schema {
|
|
1201
|
+
id: 'feed';
|
|
1202
|
+
version: 'v2020_07_22';
|
|
1203
|
+
namespace: 'Spruce';
|
|
1204
|
+
name: '';
|
|
1205
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1206
|
+
fields: {
|
|
1207
|
+
/** . */
|
|
1208
|
+
'items': {
|
|
1209
|
+
type: 'schema';
|
|
1210
|
+
isRequired: true;
|
|
1211
|
+
isArray: true;
|
|
1212
|
+
minArrayLength: 0;
|
|
1213
|
+
options: {
|
|
1214
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.FeedItemSchema;
|
|
1215
|
+
};
|
|
1216
|
+
};
|
|
1217
|
+
/** . */
|
|
1218
|
+
'shouldEnableChat': {
|
|
1219
|
+
type: 'boolean';
|
|
1220
|
+
options: undefined;
|
|
1221
|
+
};
|
|
1222
|
+
};
|
|
1223
|
+
}
|
|
1224
|
+
type FeedEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.FeedSchema>;
|
|
1225
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
import feedItemSchema_v2020_07_22 from './feedItem.schema.js';
|
|
3
|
+
const feedSchema = {
|
|
4
|
+
id: 'feed',
|
|
5
|
+
version: 'v2020_07_22',
|
|
6
|
+
namespace: 'Spruce',
|
|
7
|
+
name: '',
|
|
8
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
|
|
9
|
+
fields: {
|
|
10
|
+
/** . */
|
|
11
|
+
'items': {
|
|
12
|
+
type: 'schema',
|
|
13
|
+
isRequired: true,
|
|
14
|
+
isArray: true,
|
|
15
|
+
minArrayLength: 0,
|
|
16
|
+
options: { schema: feedItemSchema_v2020_07_22, }
|
|
17
|
+
},
|
|
18
|
+
/** . */
|
|
19
|
+
'shouldEnableChat': {
|
|
20
|
+
type: 'boolean',
|
|
21
|
+
options: undefined
|
|
22
|
+
},
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
SchemaRegistry.getInstance().trackSchema(feedSchema);
|
|
26
|
+
export default feedSchema;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
const feedItemSchema = {
|
|
3
|
+
id: 'feedItem',
|
|
4
|
+
version: 'v2020_07_22',
|
|
5
|
+
namespace: 'Spruce',
|
|
6
|
+
name: '',
|
|
7
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
|
|
8
|
+
fields: {
|
|
9
|
+
/** . */
|
|
10
|
+
'id': {
|
|
11
|
+
type: 'id',
|
|
12
|
+
isRequired: true,
|
|
13
|
+
options: undefined
|
|
14
|
+
},
|
|
15
|
+
/** . */
|
|
16
|
+
'isMe': {
|
|
17
|
+
type: 'boolean',
|
|
18
|
+
options: undefined
|
|
19
|
+
},
|
|
20
|
+
/** . */
|
|
21
|
+
'message': {
|
|
22
|
+
type: 'text',
|
|
23
|
+
isRequired: true,
|
|
24
|
+
options: undefined
|
|
25
|
+
},
|
|
26
|
+
/** . */
|
|
27
|
+
'dateCreated': {
|
|
28
|
+
type: 'dateTime',
|
|
29
|
+
isRequired: true,
|
|
30
|
+
options: undefined
|
|
31
|
+
},
|
|
32
|
+
/** . */
|
|
33
|
+
'note': {
|
|
34
|
+
type: 'text',
|
|
35
|
+
options: undefined
|
|
36
|
+
},
|
|
37
|
+
/** . */
|
|
38
|
+
'isSprucebot': {
|
|
39
|
+
type: 'boolean',
|
|
40
|
+
options: undefined
|
|
41
|
+
},
|
|
42
|
+
/** . */
|
|
43
|
+
'source': {
|
|
44
|
+
type: 'raw',
|
|
45
|
+
options: { valueType: `Record<string, any>`, }
|
|
46
|
+
},
|
|
47
|
+
/** . */
|
|
48
|
+
'fromCasualName': {
|
|
49
|
+
type: 'text',
|
|
50
|
+
isRequired: true,
|
|
51
|
+
options: undefined
|
|
52
|
+
},
|
|
53
|
+
/** . */
|
|
54
|
+
'avatar': {
|
|
55
|
+
type: 'image',
|
|
56
|
+
options: { requiredSizes: ["*"], }
|
|
57
|
+
},
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
SchemaRegistry.getInstance().trackSchema(feedItemSchema);
|
|
61
|
+
export default feedItemSchema;
|
package/build/esm/index.d.ts
CHANGED
|
@@ -12,4 +12,6 @@ export { default as messageSourceSchema } from "./.spruce/schemas/spruce/v2020_0
|
|
|
12
12
|
export { default as messageTargetSchema } from "./.spruce/schemas/spruce/v2020_07_22/messageTarget.schema";
|
|
13
13
|
export { default as sendMessageSchema } from "./.spruce/schemas/spruce/v2020_07_22/sendMessage.schema";
|
|
14
14
|
export { default as fullMessageChoicesSchema } from "./.spruce/schemas/spruce/v2020_07_22/fullMessageChoices.schema";
|
|
15
|
+
export { default as feedSchema } from "./.spruce/schemas/spruce/v2020_07_22/feed.schema";
|
|
16
|
+
export { default as feedItemSchema } from "./.spruce/schemas/spruce/v2020_07_22/feedItem.schema";
|
|
15
17
|
export * from './constants';
|
package/build/esm/index.js
CHANGED
|
@@ -12,4 +12,6 @@ export { default as messageSourceSchema } from './.spruce/schemas/spruce/v2020_0
|
|
|
12
12
|
export { default as messageTargetSchema } from './.spruce/schemas/spruce/v2020_07_22/messageTarget.schema.js';
|
|
13
13
|
export { default as sendMessageSchema } from './.spruce/schemas/spruce/v2020_07_22/sendMessage.schema.js';
|
|
14
14
|
export { default as fullMessageChoicesSchema } from './.spruce/schemas/spruce/v2020_07_22/fullMessageChoices.schema.js';
|
|
15
|
+
export { default as feedSchema } from './.spruce/schemas/spruce/v2020_07_22/feed.schema.js';
|
|
16
|
+
export { default as feedItemSchema } from './.spruce/schemas/spruce/v2020_07_22/feedItem.schema.js';
|
|
15
17
|
export * from './constants.js';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
id: string;
|
|
3
|
+
fields: {
|
|
4
|
+
items: {
|
|
5
|
+
type: "schema";
|
|
6
|
+
isArray: true;
|
|
7
|
+
isRequired: true;
|
|
8
|
+
minArrayLength: number;
|
|
9
|
+
options: {
|
|
10
|
+
schema: {
|
|
11
|
+
id: string;
|
|
12
|
+
fields: {
|
|
13
|
+
id: {
|
|
14
|
+
type: "id";
|
|
15
|
+
isRequired: true;
|
|
16
|
+
};
|
|
17
|
+
isMe: {
|
|
18
|
+
type: "boolean";
|
|
19
|
+
};
|
|
20
|
+
message: {
|
|
21
|
+
type: "text";
|
|
22
|
+
isRequired: true;
|
|
23
|
+
};
|
|
24
|
+
dateCreated: {
|
|
25
|
+
type: "dateTime";
|
|
26
|
+
isRequired: true;
|
|
27
|
+
};
|
|
28
|
+
note: {
|
|
29
|
+
type: "text";
|
|
30
|
+
};
|
|
31
|
+
isSprucebot: {
|
|
32
|
+
type: "boolean";
|
|
33
|
+
};
|
|
34
|
+
source: {
|
|
35
|
+
type: "raw";
|
|
36
|
+
options: {
|
|
37
|
+
valueType: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
fromCasualName: {
|
|
41
|
+
type: "text";
|
|
42
|
+
isRequired: true;
|
|
43
|
+
};
|
|
44
|
+
avatar: {
|
|
45
|
+
type: "image";
|
|
46
|
+
options: {
|
|
47
|
+
requiredSizes: "*"[];
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
shouldEnableChat: {
|
|
55
|
+
type: "boolean";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export default _default;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { buildSchema } from '@sprucelabs/schema';
|
|
2
|
+
const feedItemSchema = buildSchema({
|
|
3
|
+
id: 'feedItem',
|
|
4
|
+
fields: {
|
|
5
|
+
id: {
|
|
6
|
+
type: 'id',
|
|
7
|
+
isRequired: true,
|
|
8
|
+
},
|
|
9
|
+
isMe: {
|
|
10
|
+
type: 'boolean',
|
|
11
|
+
},
|
|
12
|
+
message: {
|
|
13
|
+
type: 'text',
|
|
14
|
+
isRequired: true,
|
|
15
|
+
},
|
|
16
|
+
dateCreated: {
|
|
17
|
+
type: 'dateTime',
|
|
18
|
+
isRequired: true,
|
|
19
|
+
},
|
|
20
|
+
note: {
|
|
21
|
+
type: 'text',
|
|
22
|
+
},
|
|
23
|
+
isSprucebot: {
|
|
24
|
+
type: 'boolean',
|
|
25
|
+
},
|
|
26
|
+
source: {
|
|
27
|
+
type: 'raw',
|
|
28
|
+
options: {
|
|
29
|
+
valueType: 'Record<string, any>',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
fromCasualName: {
|
|
33
|
+
type: 'text',
|
|
34
|
+
isRequired: true,
|
|
35
|
+
},
|
|
36
|
+
avatar: {
|
|
37
|
+
type: 'image',
|
|
38
|
+
options: {
|
|
39
|
+
requiredSizes: ['*'],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
export default buildSchema({
|
|
45
|
+
id: 'feed',
|
|
46
|
+
fields: {
|
|
47
|
+
items: {
|
|
48
|
+
type: 'schema',
|
|
49
|
+
isArray: true,
|
|
50
|
+
isRequired: true,
|
|
51
|
+
minArrayLength: 0,
|
|
52
|
+
options: {
|
|
53
|
+
schema: feedItemSchema,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
shouldEnableChat: { type: 'boolean' },
|
|
57
|
+
},
|
|
58
|
+
});
|
package/build/index.d.ts
CHANGED
|
@@ -12,4 +12,6 @@ export { default as messageSourceSchema } from "./.spruce/schemas/spruce/v2020_0
|
|
|
12
12
|
export { default as messageTargetSchema } from "./.spruce/schemas/spruce/v2020_07_22/messageTarget.schema";
|
|
13
13
|
export { default as sendMessageSchema } from "./.spruce/schemas/spruce/v2020_07_22/sendMessage.schema";
|
|
14
14
|
export { default as fullMessageChoicesSchema } from "./.spruce/schemas/spruce/v2020_07_22/fullMessageChoices.schema";
|
|
15
|
+
export { default as feedSchema } from "./.spruce/schemas/spruce/v2020_07_22/feed.schema";
|
|
16
|
+
export { default as feedItemSchema } from "./.spruce/schemas/spruce/v2020_07_22/feedItem.schema";
|
|
15
17
|
export * from './constants';
|
package/build/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.fullMessageChoicesSchema = exports.sendMessageSchema = exports.messageTargetSchema = exports.messageSourceSchema = exports.messageSchema = exports.roleSchema = exports.personLocationSchema = exports.personOrganizationSchema = exports.organizationSchema = exports.locationSchema = exports.skillCreatorSchema = exports.skillSchema = exports.personSchema = void 0;
|
|
20
|
+
exports.feedItemSchema = exports.feedSchema = exports.fullMessageChoicesSchema = exports.sendMessageSchema = exports.messageTargetSchema = exports.messageSourceSchema = exports.messageSchema = exports.roleSchema = exports.personLocationSchema = exports.personOrganizationSchema = exports.organizationSchema = exports.locationSchema = exports.skillCreatorSchema = exports.skillSchema = exports.personSchema = void 0;
|
|
21
21
|
__exportStar(require("./.spruce/schemas/core.schemas.types"), exports);
|
|
22
22
|
var person_schema_1 = require("./.spruce/schemas/spruce/v2020_07_22/person.schema");
|
|
23
23
|
Object.defineProperty(exports, "personSchema", { enumerable: true, get: function () { return __importDefault(person_schema_1).default; } });
|
|
@@ -45,4 +45,8 @@ var sendMessage_schema_1 = require("./.spruce/schemas/spruce/v2020_07_22/sendMes
|
|
|
45
45
|
Object.defineProperty(exports, "sendMessageSchema", { enumerable: true, get: function () { return __importDefault(sendMessage_schema_1).default; } });
|
|
46
46
|
var fullMessageChoices_schema_1 = require("./.spruce/schemas/spruce/v2020_07_22/fullMessageChoices.schema");
|
|
47
47
|
Object.defineProperty(exports, "fullMessageChoicesSchema", { enumerable: true, get: function () { return __importDefault(fullMessageChoices_schema_1).default; } });
|
|
48
|
+
var feed_schema_1 = require("./.spruce/schemas/spruce/v2020_07_22/feed.schema");
|
|
49
|
+
Object.defineProperty(exports, "feedSchema", { enumerable: true, get: function () { return __importDefault(feed_schema_1).default; } });
|
|
50
|
+
var feedItem_schema_1 = require("./.spruce/schemas/spruce/v2020_07_22/feedItem.schema");
|
|
51
|
+
Object.defineProperty(exports, "feedItemSchema", { enumerable: true, get: function () { return __importDefault(feedItem_schema_1).default; } });
|
|
48
52
|
__exportStar(require("./constants"), exports);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
id: string;
|
|
3
|
+
fields: {
|
|
4
|
+
items: {
|
|
5
|
+
type: "schema";
|
|
6
|
+
isArray: true;
|
|
7
|
+
isRequired: true;
|
|
8
|
+
minArrayLength: number;
|
|
9
|
+
options: {
|
|
10
|
+
schema: {
|
|
11
|
+
id: string;
|
|
12
|
+
fields: {
|
|
13
|
+
id: {
|
|
14
|
+
type: "id";
|
|
15
|
+
isRequired: true;
|
|
16
|
+
};
|
|
17
|
+
isMe: {
|
|
18
|
+
type: "boolean";
|
|
19
|
+
};
|
|
20
|
+
message: {
|
|
21
|
+
type: "text";
|
|
22
|
+
isRequired: true;
|
|
23
|
+
};
|
|
24
|
+
dateCreated: {
|
|
25
|
+
type: "dateTime";
|
|
26
|
+
isRequired: true;
|
|
27
|
+
};
|
|
28
|
+
note: {
|
|
29
|
+
type: "text";
|
|
30
|
+
};
|
|
31
|
+
isSprucebot: {
|
|
32
|
+
type: "boolean";
|
|
33
|
+
};
|
|
34
|
+
source: {
|
|
35
|
+
type: "raw";
|
|
36
|
+
options: {
|
|
37
|
+
valueType: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
fromCasualName: {
|
|
41
|
+
type: "text";
|
|
42
|
+
isRequired: true;
|
|
43
|
+
};
|
|
44
|
+
avatar: {
|
|
45
|
+
type: "image";
|
|
46
|
+
options: {
|
|
47
|
+
requiredSizes: "*"[];
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
shouldEnableChat: {
|
|
55
|
+
type: "boolean";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export default _default;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
+
const feedItemSchema = (0, schema_1.buildSchema)({
|
|
5
|
+
id: 'feedItem',
|
|
6
|
+
fields: {
|
|
7
|
+
id: {
|
|
8
|
+
type: 'id',
|
|
9
|
+
isRequired: true,
|
|
10
|
+
},
|
|
11
|
+
isMe: {
|
|
12
|
+
type: 'boolean',
|
|
13
|
+
},
|
|
14
|
+
message: {
|
|
15
|
+
type: 'text',
|
|
16
|
+
isRequired: true,
|
|
17
|
+
},
|
|
18
|
+
dateCreated: {
|
|
19
|
+
type: 'dateTime',
|
|
20
|
+
isRequired: true,
|
|
21
|
+
},
|
|
22
|
+
note: {
|
|
23
|
+
type: 'text',
|
|
24
|
+
},
|
|
25
|
+
isSprucebot: {
|
|
26
|
+
type: 'boolean',
|
|
27
|
+
},
|
|
28
|
+
source: {
|
|
29
|
+
type: 'raw',
|
|
30
|
+
options: {
|
|
31
|
+
valueType: 'Record<string, any>',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
fromCasualName: {
|
|
35
|
+
type: 'text',
|
|
36
|
+
isRequired: true,
|
|
37
|
+
},
|
|
38
|
+
avatar: {
|
|
39
|
+
type: 'image',
|
|
40
|
+
options: {
|
|
41
|
+
requiredSizes: ['*'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
exports.default = (0, schema_1.buildSchema)({
|
|
47
|
+
id: 'feed',
|
|
48
|
+
fields: {
|
|
49
|
+
items: {
|
|
50
|
+
type: 'schema',
|
|
51
|
+
isArray: true,
|
|
52
|
+
isRequired: true,
|
|
53
|
+
minArrayLength: 0,
|
|
54
|
+
options: {
|
|
55
|
+
schema: feedItemSchema,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
shouldEnableChat: { type: 'boolean' },
|
|
59
|
+
},
|
|
60
|
+
});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "27.
|
|
6
|
+
"version": "27.1.2",
|
|
7
7
|
"files": [
|
|
8
8
|
"build/**/*",
|
|
9
9
|
"tsconfig.json"
|
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
"watch.rebuild": "yarn clean.all && yarn && yarn watch.build.dev"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@sprucelabs/schema": "^28.
|
|
66
|
+
"@sprucelabs/schema": "^28.1.1"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@sprucelabs/esm-postbuild": "^1.0.
|
|
69
|
+
"@sprucelabs/esm-postbuild": "^1.0.464",
|
|
70
70
|
"@sprucelabs/resolve-path-aliases": "^1.1.40",
|
|
71
71
|
"@sprucelabs/semantic-release": "^4.0.8",
|
|
72
72
|
"@types/node": "^17.0.32",
|