@sprucelabs/spruce-core-schemas 28.0.2 → 29.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.
@@ -114,6 +114,130 @@ 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'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
128
+ 'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choice[] | 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: 'schema';
223
+ isArray: true;
224
+ minArrayLength: 0;
225
+ options: {
226
+ schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
227
+ };
228
+ };
229
+ /** . */
230
+ 'choices': {
231
+ type: 'schema';
232
+ isArray: true;
233
+ options: {
234
+ schema: SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema;
235
+ };
236
+ };
237
+ };
238
+ }
239
+ type SendMessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.SendMessageSchema>;
240
+ }
117
241
  export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
118
242
  /** 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. */
119
243
  interface Role {
@@ -492,6 +616,34 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
492
616
  }
493
617
  type OrganizationEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.OrganizationSchema>;
494
618
  }
619
+ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
620
+ interface Choice {
621
+ 'value': string;
622
+ 'label': string;
623
+ }
624
+ interface ChoiceSchema extends SpruceSchema.Schema {
625
+ id: 'choice';
626
+ version: 'v2020_07_22';
627
+ namespace: 'Spruce';
628
+ name: '';
629
+ moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
630
+ fields: {
631
+ /** . */
632
+ 'value': {
633
+ type: 'text';
634
+ isRequired: true;
635
+ options: undefined;
636
+ };
637
+ /** . */
638
+ 'label': {
639
+ type: 'text';
640
+ isRequired: true;
641
+ options: undefined;
642
+ };
643
+ };
644
+ }
645
+ type ChoiceEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema>;
646
+ }
495
647
  export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
496
648
  interface MessageSource {
497
649
  'locationId'?: string | undefined | null;
@@ -592,130 +744,6 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
592
744
  }
593
745
  type MessageTargetEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema>;
594
746
  }
595
- export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
596
- interface SendMessage {
597
- 'dateSent'?: number | undefined | null;
598
- 'target': SpruceSchemas.Spruce.v2020_07_22.MessageTarget;
599
- 'errors'?: string[] | undefined | null;
600
- 'classification': ("auth" | "transactional" | "promotional" | "incoming");
601
- 'status'?: ("pending" | "processing" | "sent" | "failed" | "ignored") | undefined | null;
602
- 'body': string;
603
- 'context'?: (Record<string, any>) | undefined | null;
604
- 'topicId'?: string | undefined | null;
605
- 'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
606
- 'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choices[] | undefined | null;
607
- }
608
- interface SendMessageSchema extends SpruceSchema.Schema {
609
- id: 'sendMessage';
610
- version: 'v2020_07_22';
611
- namespace: 'Spruce';
612
- name: '';
613
- moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
614
- fields: {
615
- /** . */
616
- 'dateSent': {
617
- type: 'number';
618
- options: undefined;
619
- };
620
- /** . */
621
- 'target': {
622
- type: 'schema';
623
- isRequired: true;
624
- options: {
625
- schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
626
- };
627
- };
628
- /** . */
629
- 'errors': {
630
- type: 'text';
631
- isPrivate: true;
632
- isArray: true;
633
- options: undefined;
634
- };
635
- /** . */
636
- 'classification': {
637
- type: 'select';
638
- isRequired: true;
639
- options: {
640
- choices: [{
641
- "value": "auth";
642
- "label": "Auth";
643
- }, {
644
- "value": "transactional";
645
- "label": "transactional";
646
- }, {
647
- "value": "promotional";
648
- "label": "Promotional";
649
- }, {
650
- "value": "incoming";
651
- "label": "incoming";
652
- }];
653
- };
654
- };
655
- /** . */
656
- 'status': {
657
- type: 'select';
658
- isPrivate: true;
659
- defaultValue: "pending";
660
- options: {
661
- choices: [{
662
- "value": "pending";
663
- "label": "Pending";
664
- }, {
665
- "value": "processing";
666
- "label": "Processing";
667
- }, {
668
- "value": "sent";
669
- "label": "Sent";
670
- }, {
671
- "value": "failed";
672
- "label": "Failed";
673
- }, {
674
- "value": "ignored";
675
- "label": "Ignored";
676
- }];
677
- };
678
- };
679
- /** . */
680
- 'body': {
681
- type: 'text';
682
- isRequired: true;
683
- options: undefined;
684
- };
685
- /** . */
686
- 'context': {
687
- type: 'raw';
688
- isPrivate: true;
689
- options: {
690
- valueType: `Record<string, any>`;
691
- };
692
- };
693
- /** . */
694
- 'topicId': {
695
- type: 'id';
696
- options: undefined;
697
- };
698
- /** . */
699
- 'links': {
700
- type: 'schema';
701
- isArray: true;
702
- minArrayLength: 0;
703
- options: {
704
- schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
705
- };
706
- };
707
- /** . */
708
- 'choices': {
709
- type: 'schema';
710
- isArray: true;
711
- options: {
712
- schema: SpruceSchemas.Spruce.v2020_07_22.ChoicesSchema;
713
- };
714
- };
715
- };
716
- }
717
- type SendMessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.SendMessageSchema>;
718
- }
719
747
  export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
720
748
  /** A discrete communication between two humans or a human and a machine. */
721
749
  interface Message {
@@ -731,7 +759,7 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
731
759
  'context'?: (Record<string, any>) | undefined | null;
732
760
  'topicId'?: string | undefined | null;
733
761
  'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
734
- 'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choices[] | undefined | null;
762
+ 'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choice[] | undefined | null;
735
763
  }
736
764
  interface MessageSchema extends SpruceSchema.Schema {
737
765
  id: 'message';
@@ -858,7 +886,7 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
858
886
  type: 'schema';
859
887
  isArray: true;
860
888
  options: {
861
- schema: SpruceSchemas.Spruce.v2020_07_22.ChoicesSchema;
889
+ schema: SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema;
862
890
  };
863
891
  };
864
892
  };
@@ -1155,29 +1183,12 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
1155
1183
  }
1156
1184
  export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
1157
1185
  interface Choices {
1158
- 'value': string;
1159
- 'label': string;
1160
1186
  }
1161
1187
  interface ChoicesSchema extends SpruceSchema.Schema {
1162
1188
  id: 'choices';
1163
1189
  version: 'v2020_07_22';
1164
1190
  namespace: 'Spruce';
1165
1191
  name: '';
1166
- moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
1167
- fields: {
1168
- /** . */
1169
- 'value': {
1170
- type: 'text';
1171
- isRequired: true;
1172
- options: undefined;
1173
- };
1174
- /** . */
1175
- 'label': {
1176
- type: 'text';
1177
- isRequired: true;
1178
- options: undefined;
1179
- };
1180
- };
1181
1192
  }
1182
1193
  type ChoicesEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.ChoicesSchema>;
1183
1194
  }
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../core.schemas.types';
2
+ declare const choiceSchema: SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema;
3
+ export default choiceSchema;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schema_1 = require("@sprucelabs/schema");
4
+ const choiceSchema = {
5
+ id: 'choice',
6
+ version: 'v2020_07_22',
7
+ namespace: 'Spruce',
8
+ name: '',
9
+ moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
10
+ fields: {
11
+ /** . */
12
+ 'value': {
13
+ type: 'text',
14
+ isRequired: true,
15
+ options: undefined
16
+ },
17
+ /** . */
18
+ 'label': {
19
+ type: 'text',
20
+ isRequired: true,
21
+ options: undefined
22
+ },
23
+ }
24
+ };
25
+ schema_1.SchemaRegistry.getInstance().trackSchema(choiceSchema);
26
+ exports.default = choiceSchema;
@@ -6,21 +6,6 @@ const choicesSchema = {
6
6
  version: 'v2020_07_22',
7
7
  namespace: 'Spruce',
8
8
  name: '',
9
- moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
10
- fields: {
11
- /** . */
12
- 'value': {
13
- type: 'text',
14
- isRequired: true,
15
- options: undefined
16
- },
17
- /** . */
18
- 'label': {
19
- type: 'text',
20
- isRequired: true,
21
- options: undefined
22
- },
23
- }
24
9
  };
25
10
  schema_1.SchemaRegistry.getInstance().trackSchema(choicesSchema);
26
11
  exports.default = choicesSchema;
@@ -7,7 +7,7 @@ const schema_1 = require("@sprucelabs/schema");
7
7
  const messageTarget_schema_1 = __importDefault(require("./messageTarget.schema"));
8
8
  const messageSource_schema_1 = __importDefault(require("./messageSource.schema"));
9
9
  const link_schema_1 = __importDefault(require("./link.schema"));
10
- const choices_schema_1 = __importDefault(require("./choices.schema"));
10
+ const choice_schema_1 = __importDefault(require("./choice.schema"));
11
11
  const messageSchema = {
12
12
  id: 'message',
13
13
  version: 'v2020_07_22',
@@ -93,7 +93,7 @@ const messageSchema = {
93
93
  'choices': {
94
94
  type: 'schema',
95
95
  isArray: true,
96
- options: { schema: choices_schema_1.default, }
96
+ options: { schema: choice_schema_1.default, }
97
97
  },
98
98
  }
99
99
  };
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const schema_1 = require("@sprucelabs/schema");
7
7
  const messageTarget_schema_1 = __importDefault(require("./messageTarget.schema"));
8
8
  const link_schema_1 = __importDefault(require("./link.schema"));
9
- const choices_schema_1 = __importDefault(require("./choices.schema"));
9
+ const choice_schema_1 = __importDefault(require("./choice.schema"));
10
10
  const sendMessageSchema = {
11
11
  id: 'sendMessage',
12
12
  version: 'v2020_07_22',
@@ -73,7 +73,7 @@ const sendMessageSchema = {
73
73
  'choices': {
74
74
  type: 'schema',
75
75
  isArray: true,
76
- options: { schema: choices_schema_1.default, }
76
+ options: { schema: choice_schema_1.default, }
77
77
  },
78
78
  }
79
79
  };
@@ -114,6 +114,130 @@ 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'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
128
+ 'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choice[] | 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: 'schema';
223
+ isArray: true;
224
+ minArrayLength: 0;
225
+ options: {
226
+ schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
227
+ };
228
+ };
229
+ /** . */
230
+ 'choices': {
231
+ type: 'schema';
232
+ isArray: true;
233
+ options: {
234
+ schema: SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema;
235
+ };
236
+ };
237
+ };
238
+ }
239
+ type SendMessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.SendMessageSchema>;
240
+ }
117
241
  export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
118
242
  /** 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. */
119
243
  interface Role {
@@ -492,6 +616,34 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
492
616
  }
493
617
  type OrganizationEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.OrganizationSchema>;
494
618
  }
619
+ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
620
+ interface Choice {
621
+ 'value': string;
622
+ 'label': string;
623
+ }
624
+ interface ChoiceSchema extends SpruceSchema.Schema {
625
+ id: 'choice';
626
+ version: 'v2020_07_22';
627
+ namespace: 'Spruce';
628
+ name: '';
629
+ moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
630
+ fields: {
631
+ /** . */
632
+ 'value': {
633
+ type: 'text';
634
+ isRequired: true;
635
+ options: undefined;
636
+ };
637
+ /** . */
638
+ 'label': {
639
+ type: 'text';
640
+ isRequired: true;
641
+ options: undefined;
642
+ };
643
+ };
644
+ }
645
+ type ChoiceEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema>;
646
+ }
495
647
  export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
496
648
  interface MessageSource {
497
649
  'locationId'?: string | undefined | null;
@@ -592,130 +744,6 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
592
744
  }
593
745
  type MessageTargetEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema>;
594
746
  }
595
- export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
596
- interface SendMessage {
597
- 'dateSent'?: number | undefined | null;
598
- 'target': SpruceSchemas.Spruce.v2020_07_22.MessageTarget;
599
- 'errors'?: string[] | undefined | null;
600
- 'classification': ("auth" | "transactional" | "promotional" | "incoming");
601
- 'status'?: ("pending" | "processing" | "sent" | "failed" | "ignored") | undefined | null;
602
- 'body': string;
603
- 'context'?: (Record<string, any>) | undefined | null;
604
- 'topicId'?: string | undefined | null;
605
- 'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
606
- 'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choices[] | undefined | null;
607
- }
608
- interface SendMessageSchema extends SpruceSchema.Schema {
609
- id: 'sendMessage';
610
- version: 'v2020_07_22';
611
- namespace: 'Spruce';
612
- name: '';
613
- moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
614
- fields: {
615
- /** . */
616
- 'dateSent': {
617
- type: 'number';
618
- options: undefined;
619
- };
620
- /** . */
621
- 'target': {
622
- type: 'schema';
623
- isRequired: true;
624
- options: {
625
- schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
626
- };
627
- };
628
- /** . */
629
- 'errors': {
630
- type: 'text';
631
- isPrivate: true;
632
- isArray: true;
633
- options: undefined;
634
- };
635
- /** . */
636
- 'classification': {
637
- type: 'select';
638
- isRequired: true;
639
- options: {
640
- choices: [{
641
- "value": "auth";
642
- "label": "Auth";
643
- }, {
644
- "value": "transactional";
645
- "label": "transactional";
646
- }, {
647
- "value": "promotional";
648
- "label": "Promotional";
649
- }, {
650
- "value": "incoming";
651
- "label": "incoming";
652
- }];
653
- };
654
- };
655
- /** . */
656
- 'status': {
657
- type: 'select';
658
- isPrivate: true;
659
- defaultValue: "pending";
660
- options: {
661
- choices: [{
662
- "value": "pending";
663
- "label": "Pending";
664
- }, {
665
- "value": "processing";
666
- "label": "Processing";
667
- }, {
668
- "value": "sent";
669
- "label": "Sent";
670
- }, {
671
- "value": "failed";
672
- "label": "Failed";
673
- }, {
674
- "value": "ignored";
675
- "label": "Ignored";
676
- }];
677
- };
678
- };
679
- /** . */
680
- 'body': {
681
- type: 'text';
682
- isRequired: true;
683
- options: undefined;
684
- };
685
- /** . */
686
- 'context': {
687
- type: 'raw';
688
- isPrivate: true;
689
- options: {
690
- valueType: `Record<string, any>`;
691
- };
692
- };
693
- /** . */
694
- 'topicId': {
695
- type: 'id';
696
- options: undefined;
697
- };
698
- /** . */
699
- 'links': {
700
- type: 'schema';
701
- isArray: true;
702
- minArrayLength: 0;
703
- options: {
704
- schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
705
- };
706
- };
707
- /** . */
708
- 'choices': {
709
- type: 'schema';
710
- isArray: true;
711
- options: {
712
- schema: SpruceSchemas.Spruce.v2020_07_22.ChoicesSchema;
713
- };
714
- };
715
- };
716
- }
717
- type SendMessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.SendMessageSchema>;
718
- }
719
747
  export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
720
748
  /** A discrete communication between two humans or a human and a machine. */
721
749
  interface Message {
@@ -731,7 +759,7 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
731
759
  'context'?: (Record<string, any>) | undefined | null;
732
760
  'topicId'?: string | undefined | null;
733
761
  'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
734
- 'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choices[] | undefined | null;
762
+ 'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choice[] | undefined | null;
735
763
  }
736
764
  interface MessageSchema extends SpruceSchema.Schema {
737
765
  id: 'message';
@@ -858,7 +886,7 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
858
886
  type: 'schema';
859
887
  isArray: true;
860
888
  options: {
861
- schema: SpruceSchemas.Spruce.v2020_07_22.ChoicesSchema;
889
+ schema: SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema;
862
890
  };
863
891
  };
864
892
  };
@@ -1155,29 +1183,12 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
1155
1183
  }
1156
1184
  export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
1157
1185
  interface Choices {
1158
- 'value': string;
1159
- 'label': string;
1160
1186
  }
1161
1187
  interface ChoicesSchema extends SpruceSchema.Schema {
1162
1188
  id: 'choices';
1163
1189
  version: 'v2020_07_22';
1164
1190
  namespace: 'Spruce';
1165
1191
  name: '';
1166
- moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
1167
- fields: {
1168
- /** . */
1169
- 'value': {
1170
- type: 'text';
1171
- isRequired: true;
1172
- options: undefined;
1173
- };
1174
- /** . */
1175
- 'label': {
1176
- type: 'text';
1177
- isRequired: true;
1178
- options: undefined;
1179
- };
1180
- };
1181
1192
  }
1182
1193
  type ChoicesEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.ChoicesSchema>;
1183
1194
  }
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../core.schemas.types';
2
+ declare const choiceSchema: SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema;
3
+ export default choiceSchema;
@@ -0,0 +1,24 @@
1
+ import { SchemaRegistry } from '@sprucelabs/schema';
2
+ const choiceSchema = {
3
+ id: 'choice',
4
+ version: 'v2020_07_22',
5
+ namespace: 'Spruce',
6
+ name: '',
7
+ moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
8
+ fields: {
9
+ /** . */
10
+ 'value': {
11
+ type: 'text',
12
+ isRequired: true,
13
+ options: undefined
14
+ },
15
+ /** . */
16
+ 'label': {
17
+ type: 'text',
18
+ isRequired: true,
19
+ options: undefined
20
+ },
21
+ }
22
+ };
23
+ SchemaRegistry.getInstance().trackSchema(choiceSchema);
24
+ export default choiceSchema;
@@ -4,21 +4,6 @@ const choicesSchema = {
4
4
  version: 'v2020_07_22',
5
5
  namespace: 'Spruce',
6
6
  name: '',
7
- moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
8
- fields: {
9
- /** . */
10
- 'value': {
11
- type: 'text',
12
- isRequired: true,
13
- options: undefined
14
- },
15
- /** . */
16
- 'label': {
17
- type: 'text',
18
- isRequired: true,
19
- options: undefined
20
- },
21
- }
22
7
  };
23
8
  SchemaRegistry.getInstance().trackSchema(choicesSchema);
24
9
  export default choicesSchema;
@@ -2,7 +2,7 @@ import { SchemaRegistry } from '@sprucelabs/schema';
2
2
  import messageTargetSchema_v2020_07_22 from './messageTarget.schema.js';
3
3
  import messageSourceSchema_v2020_07_22 from './messageSource.schema.js';
4
4
  import linkSchema_v2020_07_22 from './link.schema.js';
5
- import choicesSchema_v2020_07_22 from './choices.schema.js';
5
+ import choiceSchema_v2020_07_22 from './choice.schema.js';
6
6
  const messageSchema = {
7
7
  id: 'message',
8
8
  version: 'v2020_07_22',
@@ -88,7 +88,7 @@ const messageSchema = {
88
88
  'choices': {
89
89
  type: 'schema',
90
90
  isArray: true,
91
- options: { schema: choicesSchema_v2020_07_22, }
91
+ options: { schema: choiceSchema_v2020_07_22, }
92
92
  },
93
93
  }
94
94
  };
@@ -1,7 +1,7 @@
1
1
  import { SchemaRegistry } from '@sprucelabs/schema';
2
2
  import messageTargetSchema_v2020_07_22 from './messageTarget.schema.js';
3
3
  import linkSchema_v2020_07_22 from './link.schema.js';
4
- import choicesSchema_v2020_07_22 from './choices.schema.js';
4
+ import choiceSchema_v2020_07_22 from './choice.schema.js';
5
5
  const sendMessageSchema = {
6
6
  id: 'sendMessage',
7
7
  version: 'v2020_07_22',
@@ -68,7 +68,7 @@ const sendMessageSchema = {
68
68
  'choices': {
69
69
  type: 'schema',
70
70
  isArray: true,
71
- options: { schema: choicesSchema_v2020_07_22, }
71
+ options: { schema: choiceSchema_v2020_07_22, }
72
72
  },
73
73
  }
74
74
  };
@@ -11,9 +11,8 @@ export { default as messageSchema } from "./.spruce/schemas/spruce/v2020_07_22/m
11
11
  export { default as messageSourceSchema } from "./.spruce/schemas/spruce/v2020_07_22/messageSource.schema";
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
- export { default as choices } from "./.spruce/schemas/spruce/v2020_07_22/choices.schema";
15
14
  export { default as feedSchema } from "./.spruce/schemas/spruce/v2020_07_22/feed.schema";
16
15
  export { default as linkSchema } from "./.spruce/schemas/spruce/v2020_07_22/link.schema";
17
- export { default as choicesSchema } from "./.spruce/schemas/spruce/v2020_07_22/choices.schema";
18
16
  export { default as feedItemSchema } from "./.spruce/schemas/spruce/v2020_07_22/feedItem.schema";
17
+ export { default as choiceSchema } from "./.spruce/schemas/spruce/v2020_07_22/choice.schema";
19
18
  export * from './constants';
@@ -11,9 +11,8 @@ export { default as messageSchema } from './.spruce/schemas/spruce/v2020_07_22/m
11
11
  export { default as messageSourceSchema } from './.spruce/schemas/spruce/v2020_07_22/messageSource.schema.js';
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
- export { default as choices } from './.spruce/schemas/spruce/v2020_07_22/choices.schema.js';
15
14
  export { default as feedSchema } from './.spruce/schemas/spruce/v2020_07_22/feed.schema.js';
16
15
  export { default as linkSchema } from './.spruce/schemas/spruce/v2020_07_22/link.schema.js';
17
- export { default as choicesSchema } from './.spruce/schemas/spruce/v2020_07_22/choices.schema.js';
18
16
  export { default as feedItemSchema } from './.spruce/schemas/spruce/v2020_07_22/feedItem.schema.js';
17
+ export { default as choiceSchema } from './.spruce/schemas/spruce/v2020_07_22/choice.schema.js';
19
18
  export * from './constants.js';
@@ -143,7 +143,7 @@ export default buildSchema({
143
143
  isArray: true,
144
144
  options: {
145
145
  schema: {
146
- id: 'choices',
146
+ id: 'choice',
147
147
  fields: {
148
148
  value: {
149
149
  type: 'text',
package/build/index.d.ts CHANGED
@@ -11,9 +11,8 @@ export { default as messageSchema } from "./.spruce/schemas/spruce/v2020_07_22/m
11
11
  export { default as messageSourceSchema } from "./.spruce/schemas/spruce/v2020_07_22/messageSource.schema";
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
- export { default as choices } from "./.spruce/schemas/spruce/v2020_07_22/choices.schema";
15
14
  export { default as feedSchema } from "./.spruce/schemas/spruce/v2020_07_22/feed.schema";
16
15
  export { default as linkSchema } from "./.spruce/schemas/spruce/v2020_07_22/link.schema";
17
- export { default as choicesSchema } from "./.spruce/schemas/spruce/v2020_07_22/choices.schema";
18
16
  export { default as feedItemSchema } from "./.spruce/schemas/spruce/v2020_07_22/feedItem.schema";
17
+ export { default as choiceSchema } from "./.spruce/schemas/spruce/v2020_07_22/choice.schema";
19
18
  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.feedItemSchema = exports.choicesSchema = exports.linkSchema = exports.feedSchema = exports.choices = 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.choiceSchema = exports.feedItemSchema = exports.linkSchema = exports.feedSchema = 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; } });
@@ -43,14 +43,12 @@ var messageTarget_schema_1 = require("./.spruce/schemas/spruce/v2020_07_22/messa
43
43
  Object.defineProperty(exports, "messageTargetSchema", { enumerable: true, get: function () { return __importDefault(messageTarget_schema_1).default; } });
44
44
  var sendMessage_schema_1 = require("./.spruce/schemas/spruce/v2020_07_22/sendMessage.schema");
45
45
  Object.defineProperty(exports, "sendMessageSchema", { enumerable: true, get: function () { return __importDefault(sendMessage_schema_1).default; } });
46
- var choices_schema_1 = require("./.spruce/schemas/spruce/v2020_07_22/choices.schema");
47
- Object.defineProperty(exports, "choices", { enumerable: true, get: function () { return __importDefault(choices_schema_1).default; } });
48
46
  var feed_schema_1 = require("./.spruce/schemas/spruce/v2020_07_22/feed.schema");
49
47
  Object.defineProperty(exports, "feedSchema", { enumerable: true, get: function () { return __importDefault(feed_schema_1).default; } });
50
48
  var link_schema_1 = require("./.spruce/schemas/spruce/v2020_07_22/link.schema");
51
49
  Object.defineProperty(exports, "linkSchema", { enumerable: true, get: function () { return __importDefault(link_schema_1).default; } });
52
- var choices_schema_2 = require("./.spruce/schemas/spruce/v2020_07_22/choices.schema");
53
- Object.defineProperty(exports, "choicesSchema", { enumerable: true, get: function () { return __importDefault(choices_schema_2).default; } });
54
50
  var feedItem_schema_1 = require("./.spruce/schemas/spruce/v2020_07_22/feedItem.schema");
55
51
  Object.defineProperty(exports, "feedItemSchema", { enumerable: true, get: function () { return __importDefault(feedItem_schema_1).default; } });
52
+ var choice_schema_1 = require("./.spruce/schemas/spruce/v2020_07_22/choice.schema");
53
+ Object.defineProperty(exports, "choiceSchema", { enumerable: true, get: function () { return __importDefault(choice_schema_1).default; } });
56
54
  __exportStar(require("./constants"), exports);
@@ -149,7 +149,7 @@ exports.default = (0, schema_1.buildSchema)({
149
149
  isArray: true,
150
150
  options: {
151
151
  schema: {
152
- id: 'choices',
152
+ id: 'choice',
153
153
  fields: {
154
154
  value: {
155
155
  type: 'text',
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "28.0.2",
6
+ "version": "29.0.0",
7
7
  "files": [
8
8
  "build/**/*",
9
9
  "tsconfig.json"