@sprucelabs/spruce-core-schemas 27.1.27 → 28.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.
- package/build/.spruce/schemas/core.schemas.types.d.ts +199 -146
- package/build/.spruce/schemas/spruce/v2020_07_22/choices.schema.d.ts +3 -0
- package/build/.spruce/schemas/spruce/v2020_07_22/{fullMessageChoices.schema.js → choices.schema.js} +4 -4
- package/build/.spruce/schemas/spruce/v2020_07_22/feedItem.schema.js +18 -0
- package/build/.spruce/schemas/spruce/v2020_07_22/link.schema.d.ts +3 -0
- package/build/.spruce/schemas/spruce/v2020_07_22/link.schema.js +26 -0
- package/build/.spruce/schemas/spruce/v2020_07_22/message.schema.js +6 -4
- package/build/.spruce/schemas/spruce/v2020_07_22/sendMessage.schema.js +6 -4
- package/build/esm/.spruce/schemas/core.schemas.types.d.ts +199 -146
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/choices.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/{fullMessageChoices.schema.js → choices.schema.js} +4 -4
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/feedItem.schema.js +15 -0
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/link.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/link.schema.js +24 -0
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/message.schema.js +6 -4
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/sendMessage.schema.js +6 -4
- package/build/esm/index.d.ts +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/schemas/v2020_07_22/feed.builder.d.ts +30 -0
- package/build/esm/schemas/v2020_07_22/feed.builder.js +16 -0
- package/build/esm/schemas/v2020_07_22/link.builder.d.ts +15 -0
- package/build/esm/schemas/v2020_07_22/link.builder.js +15 -0
- package/build/esm/schemas/v2020_07_22/message.builder.d.ts +18 -1
- package/build/esm/schemas/v2020_07_22/message.builder.js +7 -2
- package/build/esm/schemas/v2020_07_22/sendMessage.builder.d.ts +18 -1
- package/build/index.d.ts +1 -1
- package/build/index.js +3 -3
- package/build/schemas/v2020_07_22/feed.builder.d.ts +30 -0
- package/build/schemas/v2020_07_22/feed.builder.js +19 -0
- package/build/schemas/v2020_07_22/link.builder.d.ts +15 -0
- package/build/schemas/v2020_07_22/link.builder.js +17 -0
- package/build/schemas/v2020_07_22/message.builder.d.ts +18 -1
- package/build/schemas/v2020_07_22/message.builder.js +10 -2
- package/build/schemas/v2020_07_22/sendMessage.builder.d.ts +18 -1
- package/package.json +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/fullMessageChoices.schema.d.ts +0 -3
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/fullMessageChoices.schema.d.ts +0 -3
|
@@ -493,32 +493,104 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
493
493
|
type OrganizationEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.OrganizationSchema>;
|
|
494
494
|
}
|
|
495
495
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
496
|
-
interface
|
|
497
|
-
'
|
|
498
|
-
'
|
|
496
|
+
interface MessageSource {
|
|
497
|
+
'locationId'?: string | undefined | null;
|
|
498
|
+
'personId'?: string | undefined | null;
|
|
499
|
+
'organizationId'?: string | undefined | null;
|
|
500
|
+
'skillId'?: string | undefined | null;
|
|
501
|
+
'roleId'?: string | undefined | null;
|
|
502
|
+
'isCore'?: boolean | undefined | null;
|
|
499
503
|
}
|
|
500
|
-
interface
|
|
501
|
-
id: '
|
|
504
|
+
interface MessageSourceSchema extends SpruceSchema.Schema {
|
|
505
|
+
id: 'messageSource';
|
|
502
506
|
version: 'v2020_07_22';
|
|
503
507
|
namespace: 'Spruce';
|
|
504
508
|
name: '';
|
|
505
509
|
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
506
510
|
fields: {
|
|
507
511
|
/** . */
|
|
508
|
-
'
|
|
509
|
-
type: '
|
|
510
|
-
isRequired: true;
|
|
512
|
+
'locationId': {
|
|
513
|
+
type: 'id';
|
|
511
514
|
options: undefined;
|
|
512
515
|
};
|
|
513
516
|
/** . */
|
|
514
|
-
'
|
|
515
|
-
type: '
|
|
516
|
-
|
|
517
|
+
'personId': {
|
|
518
|
+
type: 'id';
|
|
519
|
+
options: undefined;
|
|
520
|
+
};
|
|
521
|
+
/** . */
|
|
522
|
+
'organizationId': {
|
|
523
|
+
type: 'id';
|
|
524
|
+
options: undefined;
|
|
525
|
+
};
|
|
526
|
+
/** . */
|
|
527
|
+
'skillId': {
|
|
528
|
+
type: 'id';
|
|
529
|
+
options: undefined;
|
|
530
|
+
};
|
|
531
|
+
/** . */
|
|
532
|
+
'roleId': {
|
|
533
|
+
type: 'id';
|
|
534
|
+
options: undefined;
|
|
535
|
+
};
|
|
536
|
+
/** . */
|
|
537
|
+
'isCore': {
|
|
538
|
+
type: 'boolean';
|
|
539
|
+
options: undefined;
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
}
|
|
543
|
+
type MessageSourceEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.MessageSourceSchema>;
|
|
544
|
+
}
|
|
545
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
546
|
+
interface MessageTarget {
|
|
547
|
+
'locationId'?: string | undefined | null;
|
|
548
|
+
'personId'?: string | undefined | null;
|
|
549
|
+
'organizationId'?: string | undefined | null;
|
|
550
|
+
'skillId'?: string | undefined | null;
|
|
551
|
+
'roleId'?: string | undefined | null;
|
|
552
|
+
'phone'?: string | undefined | null;
|
|
553
|
+
}
|
|
554
|
+
interface MessageTargetSchema extends SpruceSchema.Schema {
|
|
555
|
+
id: 'messageTarget';
|
|
556
|
+
version: 'v2020_07_22';
|
|
557
|
+
namespace: 'Spruce';
|
|
558
|
+
name: '';
|
|
559
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
560
|
+
fields: {
|
|
561
|
+
/** . */
|
|
562
|
+
'locationId': {
|
|
563
|
+
type: 'id';
|
|
564
|
+
options: undefined;
|
|
565
|
+
};
|
|
566
|
+
/** . */
|
|
567
|
+
'personId': {
|
|
568
|
+
type: 'id';
|
|
569
|
+
options: undefined;
|
|
570
|
+
};
|
|
571
|
+
/** . */
|
|
572
|
+
'organizationId': {
|
|
573
|
+
type: 'id';
|
|
574
|
+
options: undefined;
|
|
575
|
+
};
|
|
576
|
+
/** . */
|
|
577
|
+
'skillId': {
|
|
578
|
+
type: 'id';
|
|
579
|
+
options: undefined;
|
|
580
|
+
};
|
|
581
|
+
/** . */
|
|
582
|
+
'roleId': {
|
|
583
|
+
type: 'id';
|
|
584
|
+
options: undefined;
|
|
585
|
+
};
|
|
586
|
+
/** . */
|
|
587
|
+
'phone': {
|
|
588
|
+
type: 'phone';
|
|
517
589
|
options: undefined;
|
|
518
590
|
};
|
|
519
591
|
};
|
|
520
592
|
}
|
|
521
|
-
type
|
|
593
|
+
type MessageTargetEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema>;
|
|
522
594
|
}
|
|
523
595
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
524
596
|
interface SendMessage {
|
|
@@ -530,8 +602,8 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
530
602
|
'body': string;
|
|
531
603
|
'context'?: (Record<string, any>) | undefined | null;
|
|
532
604
|
'topicId'?: string | undefined | null;
|
|
533
|
-
'links'?:
|
|
534
|
-
'choices'?: SpruceSchemas.Spruce.v2020_07_22.
|
|
605
|
+
'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
|
|
606
|
+
'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choices[] | undefined | null;
|
|
535
607
|
}
|
|
536
608
|
interface SendMessageSchema extends SpruceSchema.Schema {
|
|
537
609
|
id: 'sendMessage';
|
|
@@ -625,122 +697,25 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
625
697
|
};
|
|
626
698
|
/** . */
|
|
627
699
|
'links': {
|
|
628
|
-
type: '
|
|
700
|
+
type: 'schema';
|
|
629
701
|
isArray: true;
|
|
630
|
-
|
|
702
|
+
minArrayLength: 0;
|
|
703
|
+
options: {
|
|
704
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
|
|
705
|
+
};
|
|
631
706
|
};
|
|
632
707
|
/** . */
|
|
633
708
|
'choices': {
|
|
634
709
|
type: 'schema';
|
|
635
710
|
isArray: true;
|
|
636
711
|
options: {
|
|
637
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.
|
|
712
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.ChoicesSchema;
|
|
638
713
|
};
|
|
639
714
|
};
|
|
640
715
|
};
|
|
641
716
|
}
|
|
642
717
|
type SendMessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.SendMessageSchema>;
|
|
643
718
|
}
|
|
644
|
-
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
645
|
-
interface MessageSource {
|
|
646
|
-
'locationId'?: string | undefined | null;
|
|
647
|
-
'personId'?: string | undefined | null;
|
|
648
|
-
'organizationId'?: string | undefined | null;
|
|
649
|
-
'skillId'?: string | undefined | null;
|
|
650
|
-
'roleId'?: string | undefined | null;
|
|
651
|
-
'isCore'?: boolean | undefined | null;
|
|
652
|
-
}
|
|
653
|
-
interface MessageSourceSchema extends SpruceSchema.Schema {
|
|
654
|
-
id: 'messageSource';
|
|
655
|
-
version: 'v2020_07_22';
|
|
656
|
-
namespace: 'Spruce';
|
|
657
|
-
name: '';
|
|
658
|
-
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
659
|
-
fields: {
|
|
660
|
-
/** . */
|
|
661
|
-
'locationId': {
|
|
662
|
-
type: 'id';
|
|
663
|
-
options: undefined;
|
|
664
|
-
};
|
|
665
|
-
/** . */
|
|
666
|
-
'personId': {
|
|
667
|
-
type: 'id';
|
|
668
|
-
options: undefined;
|
|
669
|
-
};
|
|
670
|
-
/** . */
|
|
671
|
-
'organizationId': {
|
|
672
|
-
type: 'id';
|
|
673
|
-
options: undefined;
|
|
674
|
-
};
|
|
675
|
-
/** . */
|
|
676
|
-
'skillId': {
|
|
677
|
-
type: 'id';
|
|
678
|
-
options: undefined;
|
|
679
|
-
};
|
|
680
|
-
/** . */
|
|
681
|
-
'roleId': {
|
|
682
|
-
type: 'id';
|
|
683
|
-
options: undefined;
|
|
684
|
-
};
|
|
685
|
-
/** . */
|
|
686
|
-
'isCore': {
|
|
687
|
-
type: 'boolean';
|
|
688
|
-
options: undefined;
|
|
689
|
-
};
|
|
690
|
-
};
|
|
691
|
-
}
|
|
692
|
-
type MessageSourceEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.MessageSourceSchema>;
|
|
693
|
-
}
|
|
694
|
-
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
695
|
-
interface MessageTarget {
|
|
696
|
-
'locationId'?: string | undefined | null;
|
|
697
|
-
'personId'?: string | undefined | null;
|
|
698
|
-
'organizationId'?: string | undefined | null;
|
|
699
|
-
'skillId'?: string | undefined | null;
|
|
700
|
-
'roleId'?: string | undefined | null;
|
|
701
|
-
'phone'?: string | undefined | null;
|
|
702
|
-
}
|
|
703
|
-
interface MessageTargetSchema extends SpruceSchema.Schema {
|
|
704
|
-
id: 'messageTarget';
|
|
705
|
-
version: 'v2020_07_22';
|
|
706
|
-
namespace: 'Spruce';
|
|
707
|
-
name: '';
|
|
708
|
-
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
709
|
-
fields: {
|
|
710
|
-
/** . */
|
|
711
|
-
'locationId': {
|
|
712
|
-
type: 'id';
|
|
713
|
-
options: undefined;
|
|
714
|
-
};
|
|
715
|
-
/** . */
|
|
716
|
-
'personId': {
|
|
717
|
-
type: 'id';
|
|
718
|
-
options: undefined;
|
|
719
|
-
};
|
|
720
|
-
/** . */
|
|
721
|
-
'organizationId': {
|
|
722
|
-
type: 'id';
|
|
723
|
-
options: undefined;
|
|
724
|
-
};
|
|
725
|
-
/** . */
|
|
726
|
-
'skillId': {
|
|
727
|
-
type: 'id';
|
|
728
|
-
options: undefined;
|
|
729
|
-
};
|
|
730
|
-
/** . */
|
|
731
|
-
'roleId': {
|
|
732
|
-
type: 'id';
|
|
733
|
-
options: undefined;
|
|
734
|
-
};
|
|
735
|
-
/** . */
|
|
736
|
-
'phone': {
|
|
737
|
-
type: 'phone';
|
|
738
|
-
options: undefined;
|
|
739
|
-
};
|
|
740
|
-
};
|
|
741
|
-
}
|
|
742
|
-
type MessageTargetEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema>;
|
|
743
|
-
}
|
|
744
719
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
745
720
|
/** A discrete communication between two humans or a human and a machine. */
|
|
746
721
|
interface Message {
|
|
@@ -755,8 +730,8 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
755
730
|
'body': string;
|
|
756
731
|
'context'?: (Record<string, any>) | undefined | null;
|
|
757
732
|
'topicId'?: string | undefined | null;
|
|
758
|
-
'links'?:
|
|
759
|
-
'choices'?: SpruceSchemas.Spruce.v2020_07_22.
|
|
733
|
+
'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
|
|
734
|
+
'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choices[] | undefined | null;
|
|
760
735
|
}
|
|
761
736
|
interface MessageSchema extends SpruceSchema.Schema {
|
|
762
737
|
id: 'message';
|
|
@@ -871,16 +846,19 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
871
846
|
};
|
|
872
847
|
/** . */
|
|
873
848
|
'links': {
|
|
874
|
-
type: '
|
|
849
|
+
type: 'schema';
|
|
875
850
|
isArray: true;
|
|
876
|
-
|
|
851
|
+
minArrayLength: 0;
|
|
852
|
+
options: {
|
|
853
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
|
|
854
|
+
};
|
|
877
855
|
};
|
|
878
856
|
/** . */
|
|
879
857
|
'choices': {
|
|
880
858
|
type: 'schema';
|
|
881
859
|
isArray: true;
|
|
882
860
|
options: {
|
|
883
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.
|
|
861
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.ChoicesSchema;
|
|
884
862
|
};
|
|
885
863
|
};
|
|
886
864
|
};
|
|
@@ -1116,6 +1094,93 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1116
1094
|
}
|
|
1117
1095
|
type LocationEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.LocationSchema>;
|
|
1118
1096
|
}
|
|
1097
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1098
|
+
interface Feed {
|
|
1099
|
+
'items': SpruceSchemas.Spruce.v2020_07_22.FeedItem[];
|
|
1100
|
+
'shouldEnableChat'?: boolean | undefined | null;
|
|
1101
|
+
}
|
|
1102
|
+
interface FeedSchema extends SpruceSchema.Schema {
|
|
1103
|
+
id: 'feed';
|
|
1104
|
+
version: 'v2020_07_22';
|
|
1105
|
+
namespace: 'Spruce';
|
|
1106
|
+
name: '';
|
|
1107
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1108
|
+
fields: {
|
|
1109
|
+
/** . */
|
|
1110
|
+
'items': {
|
|
1111
|
+
type: 'schema';
|
|
1112
|
+
isRequired: true;
|
|
1113
|
+
isArray: true;
|
|
1114
|
+
minArrayLength: 0;
|
|
1115
|
+
options: {
|
|
1116
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.FeedItemSchema;
|
|
1117
|
+
};
|
|
1118
|
+
};
|
|
1119
|
+
/** . */
|
|
1120
|
+
'shouldEnableChat': {
|
|
1121
|
+
type: 'boolean';
|
|
1122
|
+
options: undefined;
|
|
1123
|
+
};
|
|
1124
|
+
};
|
|
1125
|
+
}
|
|
1126
|
+
type FeedEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.FeedSchema>;
|
|
1127
|
+
}
|
|
1128
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1129
|
+
interface Link {
|
|
1130
|
+
'label': string;
|
|
1131
|
+
'uri': string;
|
|
1132
|
+
}
|
|
1133
|
+
interface LinkSchema extends SpruceSchema.Schema {
|
|
1134
|
+
id: 'link';
|
|
1135
|
+
version: 'v2020_07_22';
|
|
1136
|
+
namespace: 'Spruce';
|
|
1137
|
+
name: 'Link';
|
|
1138
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1139
|
+
fields: {
|
|
1140
|
+
/** . */
|
|
1141
|
+
'label': {
|
|
1142
|
+
type: 'text';
|
|
1143
|
+
isRequired: true;
|
|
1144
|
+
options: undefined;
|
|
1145
|
+
};
|
|
1146
|
+
/** . */
|
|
1147
|
+
'uri': {
|
|
1148
|
+
type: 'text';
|
|
1149
|
+
isRequired: true;
|
|
1150
|
+
options: undefined;
|
|
1151
|
+
};
|
|
1152
|
+
};
|
|
1153
|
+
}
|
|
1154
|
+
type LinkEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.LinkSchema>;
|
|
1155
|
+
}
|
|
1156
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1157
|
+
interface Choices {
|
|
1158
|
+
'value': string;
|
|
1159
|
+
'label': string;
|
|
1160
|
+
}
|
|
1161
|
+
interface ChoicesSchema extends SpruceSchema.Schema {
|
|
1162
|
+
id: 'choices';
|
|
1163
|
+
version: 'v2020_07_22';
|
|
1164
|
+
namespace: 'Spruce';
|
|
1165
|
+
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
|
+
}
|
|
1182
|
+
type ChoicesEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.ChoicesSchema>;
|
|
1183
|
+
}
|
|
1119
1184
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1120
1185
|
interface FeedItem {
|
|
1121
1186
|
'id': string;
|
|
@@ -1127,6 +1192,8 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1127
1192
|
'source'?: (Record<string, any>) | undefined | null;
|
|
1128
1193
|
'fromCasualName': string;
|
|
1129
1194
|
'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
|
|
1195
|
+
'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choices[] | undefined | null;
|
|
1196
|
+
'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
|
|
1130
1197
|
}
|
|
1131
1198
|
interface FeedItemSchema extends SpruceSchema.Schema {
|
|
1132
1199
|
id: 'feedItem';
|
|
@@ -1188,38 +1255,24 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1188
1255
|
requiredSizes: ["*"];
|
|
1189
1256
|
};
|
|
1190
1257
|
};
|
|
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
1258
|
/** . */
|
|
1208
|
-
'
|
|
1259
|
+
'choices': {
|
|
1209
1260
|
type: 'schema';
|
|
1210
|
-
isRequired: true;
|
|
1211
1261
|
isArray: true;
|
|
1212
|
-
minArrayLength: 0;
|
|
1213
1262
|
options: {
|
|
1214
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.
|
|
1263
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.ChoicesSchema;
|
|
1215
1264
|
};
|
|
1216
1265
|
};
|
|
1217
1266
|
/** . */
|
|
1218
|
-
'
|
|
1219
|
-
type: '
|
|
1220
|
-
|
|
1267
|
+
'links': {
|
|
1268
|
+
type: 'schema';
|
|
1269
|
+
isArray: true;
|
|
1270
|
+
minArrayLength: 0;
|
|
1271
|
+
options: {
|
|
1272
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
|
|
1273
|
+
};
|
|
1221
1274
|
};
|
|
1222
1275
|
};
|
|
1223
1276
|
}
|
|
1224
|
-
type
|
|
1277
|
+
type FeedItemEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.FeedItemSchema>;
|
|
1225
1278
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
-
const
|
|
3
|
-
id: '
|
|
2
|
+
const choicesSchema = {
|
|
3
|
+
id: 'choices',
|
|
4
4
|
version: 'v2020_07_22',
|
|
5
5
|
namespace: 'Spruce',
|
|
6
6
|
name: '',
|
|
@@ -20,5 +20,5 @@ const fullMessageChoicesSchema = {
|
|
|
20
20
|
},
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
SchemaRegistry.getInstance().trackSchema(
|
|
24
|
-
export default
|
|
23
|
+
SchemaRegistry.getInstance().trackSchema(choicesSchema);
|
|
24
|
+
export default choicesSchema;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
import choicesSchema_v2020_07_22 from './choices.schema.js';
|
|
3
|
+
import linkSchema_v2020_07_22 from './link.schema.js';
|
|
2
4
|
const feedItemSchema = {
|
|
3
5
|
id: 'feedItem',
|
|
4
6
|
version: 'v2020_07_22',
|
|
@@ -55,6 +57,19 @@ const feedItemSchema = {
|
|
|
55
57
|
type: 'image',
|
|
56
58
|
options: { requiredSizes: ["*"], }
|
|
57
59
|
},
|
|
60
|
+
/** . */
|
|
61
|
+
'choices': {
|
|
62
|
+
type: 'schema',
|
|
63
|
+
isArray: true,
|
|
64
|
+
options: { schema: choicesSchema_v2020_07_22, }
|
|
65
|
+
},
|
|
66
|
+
/** . */
|
|
67
|
+
'links': {
|
|
68
|
+
type: 'schema',
|
|
69
|
+
isArray: true,
|
|
70
|
+
minArrayLength: 0,
|
|
71
|
+
options: { schema: linkSchema_v2020_07_22, }
|
|
72
|
+
},
|
|
58
73
|
}
|
|
59
74
|
};
|
|
60
75
|
SchemaRegistry.getInstance().trackSchema(feedItemSchema);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
const linkSchema = {
|
|
3
|
+
id: 'link',
|
|
4
|
+
version: 'v2020_07_22',
|
|
5
|
+
namespace: 'Spruce',
|
|
6
|
+
name: 'Link',
|
|
7
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
|
|
8
|
+
fields: {
|
|
9
|
+
/** . */
|
|
10
|
+
'label': {
|
|
11
|
+
type: 'text',
|
|
12
|
+
isRequired: true,
|
|
13
|
+
options: undefined
|
|
14
|
+
},
|
|
15
|
+
/** . */
|
|
16
|
+
'uri': {
|
|
17
|
+
type: 'text',
|
|
18
|
+
isRequired: true,
|
|
19
|
+
options: undefined
|
|
20
|
+
},
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
SchemaRegistry.getInstance().trackSchema(linkSchema);
|
|
24
|
+
export default linkSchema;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
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
|
-
import
|
|
4
|
+
import linkSchema_v2020_07_22 from './link.schema.js';
|
|
5
|
+
import choicesSchema_v2020_07_22 from './choices.schema.js';
|
|
5
6
|
const messageSchema = {
|
|
6
7
|
id: 'message',
|
|
7
8
|
version: 'v2020_07_22',
|
|
@@ -78,15 +79,16 @@ const messageSchema = {
|
|
|
78
79
|
},
|
|
79
80
|
/** . */
|
|
80
81
|
'links': {
|
|
81
|
-
type: '
|
|
82
|
+
type: 'schema',
|
|
82
83
|
isArray: true,
|
|
83
|
-
|
|
84
|
+
minArrayLength: 0,
|
|
85
|
+
options: { schema: linkSchema_v2020_07_22, }
|
|
84
86
|
},
|
|
85
87
|
/** . */
|
|
86
88
|
'choices': {
|
|
87
89
|
type: 'schema',
|
|
88
90
|
isArray: true,
|
|
89
|
-
options: { schema:
|
|
91
|
+
options: { schema: choicesSchema_v2020_07_22, }
|
|
90
92
|
},
|
|
91
93
|
}
|
|
92
94
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
2
|
import messageTargetSchema_v2020_07_22 from './messageTarget.schema.js';
|
|
3
|
-
import
|
|
3
|
+
import linkSchema_v2020_07_22 from './link.schema.js';
|
|
4
|
+
import choicesSchema_v2020_07_22 from './choices.schema.js';
|
|
4
5
|
const sendMessageSchema = {
|
|
5
6
|
id: 'sendMessage',
|
|
6
7
|
version: 'v2020_07_22',
|
|
@@ -58,15 +59,16 @@ const sendMessageSchema = {
|
|
|
58
59
|
},
|
|
59
60
|
/** . */
|
|
60
61
|
'links': {
|
|
61
|
-
type: '
|
|
62
|
+
type: 'schema',
|
|
62
63
|
isArray: true,
|
|
63
|
-
|
|
64
|
+
minArrayLength: 0,
|
|
65
|
+
options: { schema: linkSchema_v2020_07_22, }
|
|
64
66
|
},
|
|
65
67
|
/** . */
|
|
66
68
|
'choices': {
|
|
67
69
|
type: 'schema',
|
|
68
70
|
isArray: true,
|
|
69
|
-
options: { schema:
|
|
71
|
+
options: { schema: choicesSchema_v2020_07_22, }
|
|
70
72
|
},
|
|
71
73
|
}
|
|
72
74
|
};
|
package/build/esm/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ 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
|
|
14
|
+
export { default as choices } from "./.spruce/schemas/spruce/v2020_07_22/choices.schema";
|
|
15
15
|
export { default as feedSchema } from "./.spruce/schemas/spruce/v2020_07_22/feed.schema";
|
|
16
16
|
export { default as feedItemSchema } from "./.spruce/schemas/spruce/v2020_07_22/feedItem.schema";
|
|
17
17
|
export * from './constants';
|
package/build/esm/index.js
CHANGED
|
@@ -11,7 +11,7 @@ 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
|
|
14
|
+
export { default as choices } from './.spruce/schemas/spruce/v2020_07_22/choices.schema.js';
|
|
15
15
|
export { default as feedSchema } from './.spruce/schemas/spruce/v2020_07_22/feed.schema.js';
|
|
16
16
|
export { default as feedItemSchema } from './.spruce/schemas/spruce/v2020_07_22/feedItem.schema.js';
|
|
17
17
|
export * from './constants.js';
|
|
@@ -47,6 +47,36 @@ declare const _default: {
|
|
|
47
47
|
requiredSizes: "*"[];
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
+
choices: {
|
|
51
|
+
type: "schema";
|
|
52
|
+
isArray: true;
|
|
53
|
+
options: {
|
|
54
|
+
schemaId: {
|
|
55
|
+
id: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
links: {
|
|
60
|
+
type: "schema";
|
|
61
|
+
isArray: true;
|
|
62
|
+
minArrayLength: number;
|
|
63
|
+
options: {
|
|
64
|
+
schema: {
|
|
65
|
+
id: string;
|
|
66
|
+
name: string;
|
|
67
|
+
fields: {
|
|
68
|
+
label: {
|
|
69
|
+
type: "text";
|
|
70
|
+
isRequired: true;
|
|
71
|
+
};
|
|
72
|
+
uri: {
|
|
73
|
+
type: "text";
|
|
74
|
+
isRequired: true;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
50
80
|
};
|
|
51
81
|
};
|
|
52
82
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { buildSchema } from '@sprucelabs/schema';
|
|
2
|
+
import linkBuilder from './link.builder.js';
|
|
2
3
|
const feedItemSchema = buildSchema({
|
|
3
4
|
id: 'feedItem',
|
|
4
5
|
fields: {
|
|
@@ -39,6 +40,21 @@ const feedItemSchema = buildSchema({
|
|
|
39
40
|
requiredSizes: ['*'],
|
|
40
41
|
},
|
|
41
42
|
},
|
|
43
|
+
choices: {
|
|
44
|
+
type: 'schema',
|
|
45
|
+
isArray: true,
|
|
46
|
+
options: {
|
|
47
|
+
schemaId: { id: 'choices' },
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
links: {
|
|
51
|
+
type: 'schema',
|
|
52
|
+
isArray: true,
|
|
53
|
+
minArrayLength: 0,
|
|
54
|
+
options: {
|
|
55
|
+
schema: linkBuilder,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
42
58
|
},
|
|
43
59
|
});
|
|
44
60
|
export default buildSchema({
|