@sprucelabs/spruce-calendar-components 26.0.25 → 26.0.26

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.
@@ -708,6 +708,122 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
708
708
  interface UpsertThemeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Heartwood.v2021_02_11.UpsertThemeEmitPayloadSchema> {
709
709
  }
710
710
  }
711
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
712
+ interface CancelCalendarEventEmitTarget {
713
+ 'locationId': string;
714
+ 'calendarEventId': string;
715
+ }
716
+ interface CancelCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
717
+ id: 'cancelCalendarEventEmitTarget';
718
+ version: 'v2021_05_19';
719
+ namespace: 'Calendar';
720
+ name: '';
721
+ fields: {
722
+ /** . */
723
+ 'locationId': {
724
+ type: 'id';
725
+ isRequired: true;
726
+ options: undefined;
727
+ };
728
+ /** . */
729
+ 'calendarEventId': {
730
+ type: 'id';
731
+ isRequired: true;
732
+ options: undefined;
733
+ };
734
+ };
735
+ }
736
+ interface CancelCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetSchema> {
737
+ }
738
+ }
739
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
740
+ interface CancelCalendarEventEmitPayload {
741
+ 'dateToCancel'?: number | undefined | null;
742
+ 'shouldCancelAllEventsGoingForward'?: boolean | undefined | null;
743
+ }
744
+ interface CancelCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
745
+ id: 'cancelCalendarEventEmitPayload';
746
+ version: 'v2021_05_19';
747
+ namespace: 'Calendar';
748
+ name: '';
749
+ fields: {
750
+ /** . */
751
+ 'dateToCancel': {
752
+ type: 'number';
753
+ options: undefined;
754
+ };
755
+ /** . */
756
+ 'shouldCancelAllEventsGoingForward': {
757
+ type: 'boolean';
758
+ options: undefined;
759
+ };
760
+ };
761
+ }
762
+ interface CancelCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayloadSchema> {
763
+ }
764
+ }
765
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
766
+ interface CancelCalendarEventEmitTargetAndPayload {
767
+ /** Source. */
768
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
769
+ 'target': SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTarget;
770
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayload | undefined | null;
771
+ }
772
+ interface CancelCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
773
+ id: 'cancelCalendarEventEmitTargetAndPayload';
774
+ version: 'v2021_05_19';
775
+ namespace: 'Calendar';
776
+ name: '';
777
+ fields: {
778
+ /** Source. */
779
+ 'source': {
780
+ label: 'Source';
781
+ type: 'schema';
782
+ options: {
783
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
784
+ };
785
+ };
786
+ /** . */
787
+ 'target': {
788
+ type: 'schema';
789
+ isRequired: true;
790
+ options: {
791
+ schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetSchema;
792
+ };
793
+ };
794
+ /** . */
795
+ 'payload': {
796
+ type: 'schema';
797
+ options: {
798
+ schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayloadSchema;
799
+ };
800
+ };
801
+ };
802
+ }
803
+ interface CancelCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetAndPayloadSchema> {
804
+ }
805
+ }
806
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
807
+ interface CancelCalendarEventResponsePayload {
808
+ 'totalDeleted': number;
809
+ }
810
+ interface CancelCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
811
+ id: 'cancelCalendarEventResponsePayload';
812
+ version: 'v2021_05_19';
813
+ namespace: 'Calendar';
814
+ name: '';
815
+ fields: {
816
+ /** . */
817
+ 'totalDeleted': {
818
+ type: 'number';
819
+ isRequired: true;
820
+ options: undefined;
821
+ };
822
+ };
823
+ }
824
+ interface CancelCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventResponsePayloadSchema> {
825
+ }
826
+ }
711
827
  namespace SpruceSchemas.Calendar.v2021_05_19 {
712
828
  interface CreateCalendarEmitTarget {
713
829
  'organizationId': string;
@@ -845,68 +961,41 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
845
961
  }
846
962
  }
847
963
  namespace SpruceSchemas.Calendar.v2021_05_19 {
848
- interface CancelCalendarEventEmitTarget {
849
- 'locationId': string;
850
- 'calendarEventId': string;
964
+ interface DeleteCalendarEmitTarget {
965
+ 'organizationId': string;
966
+ 'calendarId': string;
851
967
  }
852
- interface CancelCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
853
- id: 'cancelCalendarEventEmitTarget';
968
+ interface DeleteCalendarEmitTargetSchema extends SpruceSchema.Schema {
969
+ id: 'deleteCalendarEmitTarget';
854
970
  version: 'v2021_05_19';
855
971
  namespace: 'Calendar';
856
972
  name: '';
857
973
  fields: {
858
974
  /** . */
859
- 'locationId': {
975
+ 'organizationId': {
860
976
  type: 'id';
861
977
  isRequired: true;
862
978
  options: undefined;
863
979
  };
864
980
  /** . */
865
- 'calendarEventId': {
981
+ 'calendarId': {
866
982
  type: 'id';
867
983
  isRequired: true;
868
984
  options: undefined;
869
985
  };
870
986
  };
871
987
  }
872
- interface CancelCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetSchema> {
873
- }
874
- }
875
- namespace SpruceSchemas.Calendar.v2021_05_19 {
876
- interface CancelCalendarEventEmitPayload {
877
- 'dateToCancel'?: number | undefined | null;
878
- 'shouldCancelAllEventsGoingForward'?: boolean | undefined | null;
879
- }
880
- interface CancelCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
881
- id: 'cancelCalendarEventEmitPayload';
882
- version: 'v2021_05_19';
883
- namespace: 'Calendar';
884
- name: '';
885
- fields: {
886
- /** . */
887
- 'dateToCancel': {
888
- type: 'number';
889
- options: undefined;
890
- };
891
- /** . */
892
- 'shouldCancelAllEventsGoingForward': {
893
- type: 'boolean';
894
- options: undefined;
895
- };
896
- };
897
- }
898
- interface CancelCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayloadSchema> {
988
+ interface DeleteCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema> {
899
989
  }
900
990
  }
901
991
  namespace SpruceSchemas.Calendar.v2021_05_19 {
902
- interface CancelCalendarEventEmitTargetAndPayload {
992
+ interface DeleteCalendarEmitTargetAndPayload {
903
993
  /** Source. */
904
994
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
905
- 'target': SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTarget;
906
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayload | undefined | null;
995
+ 'target': SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTarget;
907
996
  }
908
- interface CancelCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
909
- id: 'cancelCalendarEventEmitTargetAndPayload';
997
+ interface DeleteCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
998
+ id: 'deleteCalendarEmitTargetAndPayload';
910
999
  version: 'v2021_05_19';
911
1000
  namespace: 'Calendar';
912
1001
  name: '';
@@ -924,27 +1013,20 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
924
1013
  type: 'schema';
925
1014
  isRequired: true;
926
1015
  options: {
927
- schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetSchema;
928
- };
929
- };
930
- /** . */
931
- 'payload': {
932
- type: 'schema';
933
- options: {
934
- schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayloadSchema;
1016
+ schema: SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema;
935
1017
  };
936
1018
  };
937
1019
  };
938
1020
  }
939
- interface CancelCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetAndPayloadSchema> {
1021
+ interface DeleteCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetAndPayloadSchema> {
940
1022
  }
941
1023
  }
942
1024
  namespace SpruceSchemas.Calendar.v2021_05_19 {
943
- interface CancelCalendarEventResponsePayload {
944
- 'totalDeleted': number;
1025
+ interface DeleteCalendarResponsePayload {
1026
+ 'totalDeleted'?: number | undefined | null;
945
1027
  }
946
- interface CancelCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
947
- id: 'cancelCalendarEventResponsePayload';
1028
+ interface DeleteCalendarResponsePayloadSchema extends SpruceSchema.Schema {
1029
+ id: 'deleteCalendarResponsePayload';
948
1030
  version: 'v2021_05_19';
949
1031
  namespace: 'Calendar';
950
1032
  name: '';
@@ -952,619 +1034,69 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
952
1034
  /** . */
953
1035
  'totalDeleted': {
954
1036
  type: 'number';
955
- isRequired: true;
956
1037
  options: undefined;
957
1038
  };
958
1039
  };
959
1040
  }
960
- interface CancelCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventResponsePayloadSchema> {
1041
+ interface DeleteCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarResponsePayloadSchema> {
961
1042
  }
962
1043
  }
963
1044
  namespace SpruceSchemas.Calendar.v2021_05_19 {
964
- interface CreateCalendarEventTypeEmitPayload {
965
- 'name': string;
966
- 'slug': string;
967
- 'viewControllerId'?: string | undefined | null;
968
- 'lineIcon'?: ("sprucebot" | "add-circle" | "chevron-left" | "document-text" | "link-angle" | "play-circle" | "star" | "add-square" | "chevron-right" | "download-cloud" | "link-flat" | "present" | "sun" | "add" | "chevron-up" | "download" | "loader" | "refresh-circle" | "tag" | "alarm" | "clipboard" | "edit-box" | "location-pin" | "refresh" | "time" | "arrow-back" | "clock" | "edit-line" | "lock" | "repeat" | "tool" | "arrow-down-circle" | "close-circle" | "email" | "map" | "restricted" | "trending-down" | "arrow-down" | "close-square" | "emoji-happy" | "message-circle" | "rotate" | "trending-up" | "arrow-next" | "close" | "emoji-sad" | "message-square" | "search-no" | "triangle" | "arrow-up-circle" | "code" | "external-link" | "mic-off" | "search" | "unlock" | "arrow-up" | "coffee" | "fav-heart" | "mic-on" | "selector-checked" | "upload-cloud" | "attachment" | "command" | "flag" | "minus-circle" | "selector-circle-filled" | "upload" | "award-badge" | "corner-down-left" | "flip-01" | "minus-square" | "selector-circle" | "user-add" | "binoculars" | "corner-down-right" | "flip-02" | "money-sign" | "send" | "user-delete" | "bolt" | "corner-left-down" | "folder" | "more-horizontal" | "settings-filled" | "user" | "book-open" | "corner-left-up" | "globe" | "more-vertical" | "settings" | "users" | "book" | "corner-right-down" | "hash-tag" | "notification-off" | "share" | "video-off" | "bookmark" | "corner-right-up" | "headphones" | "notification-on" | "shopping-bag" | "video" | "calendar-add" | "corner-up-left" | "help-buoy" | "object" | "shopping-cart" | "warning" | "calendar" | "corner-up-right" | "help-circle" | "pause-circle" | "sort-filter-down" | "wifi" | "camera" | "crop" | "home" | "phone-unavailable" | "sort-filter-up" | "zoom-in" | "cellphone" | "delete" | "info" | "phone" | "sound-off" | "zoom-out" | "checkmark" | "document-blank" | "jump" | "photo" | "sound-on" | "chevron-down" | "document-new" | "layers" | "picked" | "star-filled") | undefined | null;
1045
+ interface DidCancelCalendarEventEmitPayload {
1046
+ 'cancelStrategy': ("only-this-one" | "all-going-forward" | "all");
1047
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
969
1048
  }
970
- interface CreateCalendarEventTypeEmitPayloadSchema extends SpruceSchema.Schema {
971
- id: 'createCalendarEventTypeEmitPayload';
1049
+ interface DidCancelCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
1050
+ id: 'didCancelCalendarEventEmitPayload';
972
1051
  version: 'v2021_05_19';
973
1052
  namespace: 'Calendar';
974
1053
  name: '';
975
1054
  fields: {
976
1055
  /** . */
977
- 'name': {
978
- type: 'text';
1056
+ 'cancelStrategy': {
1057
+ type: 'select';
979
1058
  isRequired: true;
980
- options: undefined;
1059
+ options: {
1060
+ choices: [{
1061
+ "value": "only-this-one";
1062
+ "label": "Specific dates";
1063
+ }, {
1064
+ "value": "all-going-forward";
1065
+ "label": "This and all going forward";
1066
+ }, {
1067
+ "value": "all";
1068
+ "label": "All";
1069
+ }];
1070
+ };
981
1071
  };
982
1072
  /** . */
983
- 'slug': {
984
- type: 'text';
1073
+ 'calendarEvent': {
1074
+ type: 'schema';
985
1075
  isRequired: true;
986
- options: undefined;
1076
+ options: {
1077
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1078
+ };
987
1079
  };
1080
+ };
1081
+ }
1082
+ interface DidCancelCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema> {
1083
+ }
1084
+ }
1085
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1086
+ interface DidCancelCalendarEventEmitTarget {
1087
+ 'locationId': string;
1088
+ 'calendarEventId': string;
1089
+ }
1090
+ interface DidCancelCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
1091
+ id: 'didCancelCalendarEventEmitTarget';
1092
+ version: 'v2021_05_19';
1093
+ namespace: 'Calendar';
1094
+ name: '';
1095
+ fields: {
988
1096
  /** . */
989
- 'viewControllerId': {
1097
+ 'locationId': {
990
1098
  type: 'id';
991
- options: undefined;
992
- };
993
- /** . */
994
- 'lineIcon': {
995
- type: 'select';
996
- options: {
997
- choices: [{
998
- "value": "sprucebot";
999
- "label": "sprucebot";
1000
- }, {
1001
- "value": "add-circle";
1002
- "label": "add-circle";
1003
- }, {
1004
- "value": "chevron-left";
1005
- "label": "chevron-left";
1006
- }, {
1007
- "value": "document-text";
1008
- "label": "document-text";
1009
- }, {
1010
- "value": "link-angle";
1011
- "label": "link-angle";
1012
- }, {
1013
- "value": "play-circle";
1014
- "label": "play-circle";
1015
- }, {
1016
- "value": "star";
1017
- "label": "star";
1018
- }, {
1019
- "value": "add-square";
1020
- "label": "add-square";
1021
- }, {
1022
- "value": "chevron-right";
1023
- "label": "chevron-right";
1024
- }, {
1025
- "value": "download-cloud";
1026
- "label": "download-cloud";
1027
- }, {
1028
- "value": "link-flat";
1029
- "label": "link-flat";
1030
- }, {
1031
- "value": "present";
1032
- "label": "present";
1033
- }, {
1034
- "value": "sun";
1035
- "label": "sun";
1036
- }, {
1037
- "value": "add";
1038
- "label": "add";
1039
- }, {
1040
- "value": "chevron-up";
1041
- "label": "chevron-up";
1042
- }, {
1043
- "value": "download";
1044
- "label": "download";
1045
- }, {
1046
- "value": "loader";
1047
- "label": "loader";
1048
- }, {
1049
- "value": "refresh-circle";
1050
- "label": "refresh-circle";
1051
- }, {
1052
- "value": "tag";
1053
- "label": "tag";
1054
- }, {
1055
- "value": "alarm";
1056
- "label": "alarm";
1057
- }, {
1058
- "value": "clipboard";
1059
- "label": "clipboard";
1060
- }, {
1061
- "value": "edit-box";
1062
- "label": "edit-box";
1063
- }, {
1064
- "value": "location-pin";
1065
- "label": "location-pin";
1066
- }, {
1067
- "value": "refresh";
1068
- "label": "refresh";
1069
- }, {
1070
- "value": "time";
1071
- "label": "time";
1072
- }, {
1073
- "value": "arrow-back";
1074
- "label": "arrow-back";
1075
- }, {
1076
- "value": "clock";
1077
- "label": "clock";
1078
- }, {
1079
- "value": "edit-line";
1080
- "label": "edit-line";
1081
- }, {
1082
- "value": "lock";
1083
- "label": "lock";
1084
- }, {
1085
- "value": "repeat";
1086
- "label": "repeat";
1087
- }, {
1088
- "value": "tool";
1089
- "label": "tool";
1090
- }, {
1091
- "value": "arrow-down-circle";
1092
- "label": "arrow-down-circle";
1093
- }, {
1094
- "value": "close-circle";
1095
- "label": "close-circle";
1096
- }, {
1097
- "value": "email";
1098
- "label": "email";
1099
- }, {
1100
- "value": "map";
1101
- "label": "map";
1102
- }, {
1103
- "value": "restricted";
1104
- "label": "restricted";
1105
- }, {
1106
- "value": "trending-down";
1107
- "label": "trending-down";
1108
- }, {
1109
- "value": "arrow-down";
1110
- "label": "arrow-down";
1111
- }, {
1112
- "value": "close-square";
1113
- "label": "close-square";
1114
- }, {
1115
- "value": "emoji-happy";
1116
- "label": "emoji-happy";
1117
- }, {
1118
- "value": "message-circle";
1119
- "label": "message-circle";
1120
- }, {
1121
- "value": "rotate";
1122
- "label": "rotate";
1123
- }, {
1124
- "value": "trending-up";
1125
- "label": "trending-up";
1126
- }, {
1127
- "value": "arrow-next";
1128
- "label": "arrow-next";
1129
- }, {
1130
- "value": "close";
1131
- "label": "close";
1132
- }, {
1133
- "value": "emoji-sad";
1134
- "label": "emoji-sad";
1135
- }, {
1136
- "value": "message-square";
1137
- "label": "message-square";
1138
- }, {
1139
- "value": "search-no";
1140
- "label": "search-no";
1141
- }, {
1142
- "value": "triangle";
1143
- "label": "triangle";
1144
- }, {
1145
- "value": "arrow-up-circle";
1146
- "label": "arrow-up-circle";
1147
- }, {
1148
- "value": "code";
1149
- "label": "code";
1150
- }, {
1151
- "value": "external-link";
1152
- "label": "external-link";
1153
- }, {
1154
- "value": "mic-off";
1155
- "label": "mic-off";
1156
- }, {
1157
- "value": "search";
1158
- "label": "search";
1159
- }, {
1160
- "value": "unlock";
1161
- "label": "unlock";
1162
- }, {
1163
- "value": "arrow-up";
1164
- "label": "arrow-up";
1165
- }, {
1166
- "value": "coffee";
1167
- "label": "coffee";
1168
- }, {
1169
- "value": "fav-heart";
1170
- "label": "fav-heart";
1171
- }, {
1172
- "value": "mic-on";
1173
- "label": "mic-on";
1174
- }, {
1175
- "value": "selector-checked";
1176
- "label": "selector-checked";
1177
- }, {
1178
- "value": "upload-cloud";
1179
- "label": "upload-cloud";
1180
- }, {
1181
- "value": "attachment";
1182
- "label": "attachment";
1183
- }, {
1184
- "value": "command";
1185
- "label": "command";
1186
- }, {
1187
- "value": "flag";
1188
- "label": "flag";
1189
- }, {
1190
- "value": "minus-circle";
1191
- "label": "minus-circle";
1192
- }, {
1193
- "value": "selector-circle-filled";
1194
- "label": "selector-circle-filled";
1195
- }, {
1196
- "value": "upload";
1197
- "label": "upload";
1198
- }, {
1199
- "value": "award-badge";
1200
- "label": "award-badge";
1201
- }, {
1202
- "value": "corner-down-left";
1203
- "label": "corner-down-left";
1204
- }, {
1205
- "value": "flip-01";
1206
- "label": "flip-01";
1207
- }, {
1208
- "value": "minus-square";
1209
- "label": "minus-square";
1210
- }, {
1211
- "value": "selector-circle";
1212
- "label": "selector-circle";
1213
- }, {
1214
- "value": "user-add";
1215
- "label": "user-add";
1216
- }, {
1217
- "value": "binoculars";
1218
- "label": "binoculars";
1219
- }, {
1220
- "value": "corner-down-right";
1221
- "label": "corner-down-right";
1222
- }, {
1223
- "value": "flip-02";
1224
- "label": "flip-02";
1225
- }, {
1226
- "value": "money-sign";
1227
- "label": "money-sign";
1228
- }, {
1229
- "value": "send";
1230
- "label": "send";
1231
- }, {
1232
- "value": "user-delete";
1233
- "label": "user-delete";
1234
- }, {
1235
- "value": "bolt";
1236
- "label": "bolt";
1237
- }, {
1238
- "value": "corner-left-down";
1239
- "label": "corner-left-down";
1240
- }, {
1241
- "value": "folder";
1242
- "label": "folder";
1243
- }, {
1244
- "value": "more-horizontal";
1245
- "label": "more-horizontal";
1246
- }, {
1247
- "value": "settings-filled";
1248
- "label": "settings-filled";
1249
- }, {
1250
- "value": "user";
1251
- "label": "user";
1252
- }, {
1253
- "value": "book-open";
1254
- "label": "book-open";
1255
- }, {
1256
- "value": "corner-left-up";
1257
- "label": "corner-left-up";
1258
- }, {
1259
- "value": "globe";
1260
- "label": "globe";
1261
- }, {
1262
- "value": "more-vertical";
1263
- "label": "more-vertical";
1264
- }, {
1265
- "value": "settings";
1266
- "label": "settings";
1267
- }, {
1268
- "value": "users";
1269
- "label": "users";
1270
- }, {
1271
- "value": "book";
1272
- "label": "book";
1273
- }, {
1274
- "value": "corner-right-down";
1275
- "label": "corner-right-down";
1276
- }, {
1277
- "value": "hash-tag";
1278
- "label": "hash-tag";
1279
- }, {
1280
- "value": "notification-off";
1281
- "label": "notification-off";
1282
- }, {
1283
- "value": "share";
1284
- "label": "share";
1285
- }, {
1286
- "value": "video-off";
1287
- "label": "video-off";
1288
- }, {
1289
- "value": "bookmark";
1290
- "label": "bookmark";
1291
- }, {
1292
- "value": "corner-right-up";
1293
- "label": "corner-right-up";
1294
- }, {
1295
- "value": "headphones";
1296
- "label": "headphones";
1297
- }, {
1298
- "value": "notification-on";
1299
- "label": "notification-on";
1300
- }, {
1301
- "value": "shopping-bag";
1302
- "label": "shopping-bag";
1303
- }, {
1304
- "value": "video";
1305
- "label": "video";
1306
- }, {
1307
- "value": "calendar-add";
1308
- "label": "calendar-add";
1309
- }, {
1310
- "value": "corner-up-left";
1311
- "label": "corner-up-left";
1312
- }, {
1313
- "value": "help-buoy";
1314
- "label": "help-buoy";
1315
- }, {
1316
- "value": "object";
1317
- "label": "object";
1318
- }, {
1319
- "value": "shopping-cart";
1320
- "label": "shopping-cart";
1321
- }, {
1322
- "value": "warning";
1323
- "label": "warning";
1324
- }, {
1325
- "value": "calendar";
1326
- "label": "calendar";
1327
- }, {
1328
- "value": "corner-up-right";
1329
- "label": "corner-up-right";
1330
- }, {
1331
- "value": "help-circle";
1332
- "label": "help-circle";
1333
- }, {
1334
- "value": "pause-circle";
1335
- "label": "pause-circle";
1336
- }, {
1337
- "value": "sort-filter-down";
1338
- "label": "sort-filter-down";
1339
- }, {
1340
- "value": "wifi";
1341
- "label": "wifi";
1342
- }, {
1343
- "value": "camera";
1344
- "label": "camera";
1345
- }, {
1346
- "value": "crop";
1347
- "label": "crop";
1348
- }, {
1349
- "value": "home";
1350
- "label": "home";
1351
- }, {
1352
- "value": "phone-unavailable";
1353
- "label": "phone-unavailable";
1354
- }, {
1355
- "value": "sort-filter-up";
1356
- "label": "sort-filter-up";
1357
- }, {
1358
- "value": "zoom-in";
1359
- "label": "zoom-in";
1360
- }, {
1361
- "value": "cellphone";
1362
- "label": "cellphone";
1363
- }, {
1364
- "value": "delete";
1365
- "label": "delete";
1366
- }, {
1367
- "value": "info";
1368
- "label": "info";
1369
- }, {
1370
- "value": "phone";
1371
- "label": "phone";
1372
- }, {
1373
- "value": "sound-off";
1374
- "label": "sound-off";
1375
- }, {
1376
- "value": "zoom-out";
1377
- "label": "zoom-out";
1378
- }, {
1379
- "value": "checkmark";
1380
- "label": "checkmark";
1381
- }, {
1382
- "value": "document-blank";
1383
- "label": "document-blank";
1384
- }, {
1385
- "value": "jump";
1386
- "label": "jump";
1387
- }, {
1388
- "value": "photo";
1389
- "label": "photo";
1390
- }, {
1391
- "value": "sound-on";
1392
- "label": "sound-on";
1393
- }, {
1394
- "value": "chevron-down";
1395
- "label": "chevron-down";
1396
- }, {
1397
- "value": "document-new";
1398
- "label": "document-new";
1399
- }, {
1400
- "value": "layers";
1401
- "label": "layers";
1402
- }, {
1403
- "value": "picked";
1404
- "label": "picked";
1405
- }, {
1406
- "value": "star-filled";
1407
- "label": "star-filled";
1408
- }];
1409
- };
1410
- };
1411
- };
1412
- }
1413
- interface CreateCalendarEventTypeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventTypeEmitPayloadSchema> {
1414
- }
1415
- }
1416
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1417
- interface CreateCalendarEventTypeEmitTargetAndPayload {
1418
- /** Source. */
1419
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1420
- 'payload': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventTypeEmitPayload;
1421
- }
1422
- interface CreateCalendarEventTypeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1423
- id: 'createCalendarEventTypeEmitTargetAndPayload';
1424
- version: 'v2021_05_19';
1425
- namespace: 'Calendar';
1426
- name: '';
1427
- fields: {
1428
- /** Source. */
1429
- 'source': {
1430
- label: 'Source';
1431
- type: 'schema';
1432
- options: {
1433
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1434
- };
1435
- };
1436
- /** . */
1437
- 'payload': {
1438
- type: 'schema';
1439
- isRequired: true;
1440
- options: {
1441
- schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventTypeEmitPayloadSchema;
1442
- };
1443
- };
1444
- };
1445
- }
1446
- interface CreateCalendarEventTypeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventTypeEmitTargetAndPayloadSchema> {
1447
- }
1448
- }
1449
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1450
- interface CreateCalendarEventTypeResponsePayload {
1451
- 'calendarEventType': SpruceSchemas.Calendar.v2021_05_19.CalendarEventType;
1452
- }
1453
- interface CreateCalendarEventTypeResponsePayloadSchema extends SpruceSchema.Schema {
1454
- id: 'createCalendarEventTypeResponsePayload';
1455
- version: 'v2021_05_19';
1456
- namespace: 'Calendar';
1457
- name: '';
1458
- fields: {
1459
- /** . */
1460
- 'calendarEventType': {
1461
- type: 'schema';
1462
- isRequired: true;
1463
- options: {
1464
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema;
1465
- };
1466
- };
1467
- };
1468
- }
1469
- interface CreateCalendarEventTypeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventTypeResponsePayloadSchema> {
1470
- }
1471
- }
1472
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1473
- interface DeleteCalendarEmitTarget {
1474
- 'organizationId': string;
1475
- 'calendarId': string;
1476
- }
1477
- interface DeleteCalendarEmitTargetSchema extends SpruceSchema.Schema {
1478
- id: 'deleteCalendarEmitTarget';
1479
- version: 'v2021_05_19';
1480
- namespace: 'Calendar';
1481
- name: '';
1482
- fields: {
1483
- /** . */
1484
- 'organizationId': {
1485
- type: 'id';
1486
- isRequired: true;
1487
- options: undefined;
1488
- };
1489
- /** . */
1490
- 'calendarId': {
1491
- type: 'id';
1492
- isRequired: true;
1493
- options: undefined;
1494
- };
1495
- };
1496
- }
1497
- interface DeleteCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema> {
1498
- }
1499
- }
1500
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1501
- interface DeleteCalendarEmitTargetAndPayload {
1502
- /** Source. */
1503
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1504
- 'target': SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTarget;
1505
- }
1506
- interface DeleteCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1507
- id: 'deleteCalendarEmitTargetAndPayload';
1508
- version: 'v2021_05_19';
1509
- namespace: 'Calendar';
1510
- name: '';
1511
- fields: {
1512
- /** Source. */
1513
- 'source': {
1514
- label: 'Source';
1515
- type: 'schema';
1516
- options: {
1517
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1518
- };
1519
- };
1520
- /** . */
1521
- 'target': {
1522
- type: 'schema';
1523
- isRequired: true;
1524
- options: {
1525
- schema: SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema;
1526
- };
1527
- };
1528
- };
1529
- }
1530
- interface DeleteCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetAndPayloadSchema> {
1531
- }
1532
- }
1533
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1534
- interface DeleteCalendarResponsePayload {
1535
- 'totalDeleted'?: number | undefined | null;
1536
- }
1537
- interface DeleteCalendarResponsePayloadSchema extends SpruceSchema.Schema {
1538
- id: 'deleteCalendarResponsePayload';
1539
- version: 'v2021_05_19';
1540
- namespace: 'Calendar';
1541
- name: '';
1542
- fields: {
1543
- /** . */
1544
- 'totalDeleted': {
1545
- type: 'number';
1546
- options: undefined;
1547
- };
1548
- };
1549
- }
1550
- interface DeleteCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarResponsePayloadSchema> {
1551
- }
1552
- }
1553
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1554
- interface DidCancelCalendarEventEmitTarget {
1555
- 'locationId': string;
1556
- 'calendarEventId': string;
1557
- }
1558
- interface DidCancelCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
1559
- id: 'didCancelCalendarEventEmitTarget';
1560
- version: 'v2021_05_19';
1561
- namespace: 'Calendar';
1562
- name: '';
1563
- fields: {
1564
- /** . */
1565
- 'locationId': {
1566
- type: 'id';
1567
- isRequired: true;
1099
+ isRequired: true;
1568
1100
  options: undefined;
1569
1101
  };
1570
1102
  /** . */
@@ -1578,47 +1110,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1578
1110
  interface DidCancelCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetSchema> {
1579
1111
  }
1580
1112
  }
1581
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1582
- interface DidCancelCalendarEventEmitPayload {
1583
- 'cancelStrategy': ("only-this-one" | "all-going-forward" | "all");
1584
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
1585
- }
1586
- interface DidCancelCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
1587
- id: 'didCancelCalendarEventEmitPayload';
1588
- version: 'v2021_05_19';
1589
- namespace: 'Calendar';
1590
- name: '';
1591
- fields: {
1592
- /** . */
1593
- 'cancelStrategy': {
1594
- type: 'select';
1595
- isRequired: true;
1596
- options: {
1597
- choices: [{
1598
- "value": "only-this-one";
1599
- "label": "Specific dates";
1600
- }, {
1601
- "value": "all-going-forward";
1602
- "label": "This and all going forward";
1603
- }, {
1604
- "value": "all";
1605
- "label": "All";
1606
- }];
1607
- };
1608
- };
1609
- /** . */
1610
- 'calendarEvent': {
1611
- type: 'schema';
1612
- isRequired: true;
1613
- options: {
1614
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1615
- };
1616
- };
1617
- };
1618
- }
1619
- interface DidCancelCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema> {
1620
- }
1621
- }
1622
1113
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1623
1114
  interface DidCancelCalendarEventEmitTargetAndPayload {
1624
1115
  /** Source. */
@@ -1748,13 +1239,13 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1748
1239
  }
1749
1240
  }
1750
1241
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1751
- interface GetCalendarEmitTarget {
1752
- 'organizationId': string;
1753
- 'slug'?: string | undefined | null;
1754
- 'calendarId'?: string | undefined | null;
1242
+ interface GetAvailableTimeSlotsEmitTarget {
1243
+ 'organizationId'?: string | undefined | null;
1244
+ 'locationId'?: string | undefined | null;
1245
+ 'calendarIds': string[];
1755
1246
  }
1756
- interface GetCalendarEmitTargetSchema extends SpruceSchema.Schema {
1757
- id: 'getCalendarEmitTarget';
1247
+ interface GetAvailableTimeSlotsEmitTargetSchema extends SpruceSchema.Schema {
1248
+ id: 'getAvailableTimeSlotsEmitTarget';
1758
1249
  version: 'v2021_05_19';
1759
1250
  namespace: 'Calendar';
1760
1251
  name: '';
@@ -1762,32 +1253,34 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1762
1253
  /** . */
1763
1254
  'organizationId': {
1764
1255
  type: 'id';
1765
- isRequired: true;
1766
1256
  options: undefined;
1767
1257
  };
1768
1258
  /** . */
1769
- 'slug': {
1259
+ 'locationId': {
1770
1260
  type: 'id';
1771
1261
  options: undefined;
1772
1262
  };
1773
1263
  /** . */
1774
- 'calendarId': {
1264
+ 'calendarIds': {
1775
1265
  type: 'id';
1266
+ isRequired: true;
1267
+ isArray: true;
1776
1268
  options: undefined;
1777
1269
  };
1778
1270
  };
1779
1271
  }
1780
- interface GetCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema> {
1272
+ interface GetAvailableTimeSlotsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema> {
1781
1273
  }
1782
1274
  }
1783
1275
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1784
- interface GetCalendarEmitTargetAndPayload {
1276
+ interface GetAvailableTimeSlotsEmitTargetAndPayload {
1785
1277
  /** Source. */
1786
1278
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1787
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTarget;
1279
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTarget;
1280
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayload;
1788
1281
  }
1789
- interface GetCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1790
- id: 'getCalendarEmitTargetAndPayload';
1282
+ interface GetAvailableTimeSlotsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1283
+ id: 'getAvailableTimeSlotsEmitTargetAndPayload';
1791
1284
  version: 'v2021_05_19';
1792
1285
  namespace: 'Calendar';
1793
1286
  name: '';
@@ -1805,45 +1298,188 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1805
1298
  type: 'schema';
1806
1299
  isRequired: true;
1807
1300
  options: {
1808
- schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema;
1301
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema;
1302
+ };
1303
+ };
1304
+ /** . */
1305
+ 'payload': {
1306
+ type: 'schema';
1307
+ isRequired: true;
1308
+ options: {
1309
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema;
1809
1310
  };
1810
1311
  };
1811
1312
  };
1812
1313
  }
1813
- interface GetCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetAndPayloadSchema> {
1314
+ interface GetAvailableTimeSlotsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetAndPayloadSchema> {
1814
1315
  }
1815
1316
  }
1816
1317
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1817
- interface GetCalendarResponsePayload {
1818
- 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
1318
+ interface Teammates {
1319
+ 'personId': string;
1320
+ 'durationMinutes': number;
1819
1321
  }
1820
- interface GetCalendarResponsePayloadSchema extends SpruceSchema.Schema {
1821
- id: 'getCalendarResponsePayload';
1322
+ interface TeammatesSchema extends SpruceSchema.Schema {
1323
+ id: 'teammates';
1822
1324
  version: 'v2021_05_19';
1823
1325
  namespace: 'Calendar';
1824
1326
  name: '';
1825
1327
  fields: {
1826
1328
  /** . */
1827
- 'calendar': {
1329
+ 'personId': {
1330
+ type: 'id';
1331
+ isRequired: true;
1332
+ options: undefined;
1333
+ };
1334
+ /** . */
1335
+ 'durationMinutes': {
1336
+ type: 'number';
1337
+ isRequired: true;
1338
+ options: undefined;
1339
+ };
1340
+ };
1341
+ }
1342
+ interface TeammatesEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema> {
1343
+ }
1344
+ }
1345
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1346
+ interface GetAvailableTimeSlotsEmitPayload {
1347
+ 'startDateTimeMs': number;
1348
+ 'endDateTimeMs': number;
1349
+ 'calculationMode': ("intersect" | "contiguous");
1350
+ 'teammates': SpruceSchemas.Calendar.v2021_05_19.Teammates[];
1351
+ }
1352
+ interface GetAvailableTimeSlotsEmitPayloadSchema extends SpruceSchema.Schema {
1353
+ id: 'getAvailableTimeSlotsEmitPayload';
1354
+ version: 'v2021_05_19';
1355
+ namespace: 'Calendar';
1356
+ name: '';
1357
+ fields: {
1358
+ /** . */
1359
+ 'startDateTimeMs': {
1360
+ type: 'number';
1361
+ isRequired: true;
1362
+ options: undefined;
1363
+ };
1364
+ /** . */
1365
+ 'endDateTimeMs': {
1366
+ type: 'number';
1367
+ isRequired: true;
1368
+ options: undefined;
1369
+ };
1370
+ /** . */
1371
+ 'calculationMode': {
1372
+ type: 'select';
1373
+ isRequired: true;
1374
+ options: {
1375
+ choices: [{
1376
+ "value": "intersect";
1377
+ "label": "Intersect";
1378
+ }, {
1379
+ "value": "contiguous";
1380
+ "label": "Contiguous";
1381
+ }];
1382
+ };
1383
+ };
1384
+ /** . */
1385
+ 'teammates': {
1828
1386
  type: 'schema';
1829
1387
  isRequired: true;
1388
+ isArray: true;
1830
1389
  options: {
1831
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
1390
+ schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema;
1832
1391
  };
1833
1392
  };
1834
1393
  };
1835
1394
  }
1836
- interface GetCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarResponsePayloadSchema> {
1395
+ interface GetAvailableTimeSlotsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema> {
1837
1396
  }
1838
1397
  }
1839
1398
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1840
- interface GetAvailableTimeSlotsEmitTarget {
1841
- 'organizationId'?: string | undefined | null;
1842
- 'locationId'?: string | undefined | null;
1843
- 'calendarIds': string[];
1399
+ interface TeammatesTimeslots {
1400
+ 'personId': string;
1401
+ 'startDateTimeMs': number;
1402
+ }
1403
+ interface TeammatesTimeslotsSchema extends SpruceSchema.Schema {
1404
+ id: 'teammatesTimeslots';
1405
+ version: 'v2021_05_19';
1406
+ namespace: 'Calendar';
1407
+ name: '';
1408
+ fields: {
1409
+ /** . */
1410
+ 'personId': {
1411
+ type: 'id';
1412
+ isRequired: true;
1413
+ options: undefined;
1414
+ };
1415
+ /** . */
1416
+ 'startDateTimeMs': {
1417
+ type: 'number';
1418
+ isRequired: true;
1419
+ options: undefined;
1420
+ };
1421
+ };
1422
+ }
1423
+ interface TeammatesTimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema> {
1424
+ }
1425
+ }
1426
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1427
+ interface Timeslots {
1428
+ 'slots': SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslots[];
1429
+ }
1430
+ interface TimeslotsSchema extends SpruceSchema.Schema {
1431
+ id: 'timeslots';
1432
+ version: 'v2021_05_19';
1433
+ namespace: 'Calendar';
1434
+ name: '';
1435
+ fields: {
1436
+ /** . */
1437
+ 'slots': {
1438
+ type: 'schema';
1439
+ isRequired: true;
1440
+ isArray: true;
1441
+ options: {
1442
+ schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema;
1443
+ };
1444
+ };
1445
+ };
1446
+ }
1447
+ interface TimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema> {
1448
+ }
1449
+ }
1450
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1451
+ interface GetAvailableTimeSlotsResponsePayload {
1452
+ 'times': SpruceSchemas.Calendar.v2021_05_19.Timeslots[];
1453
+ }
1454
+ interface GetAvailableTimeSlotsResponsePayloadSchema extends SpruceSchema.Schema {
1455
+ id: 'getAvailableTimeSlotsResponsePayload';
1456
+ version: 'v2021_05_19';
1457
+ namespace: 'Calendar';
1458
+ name: '';
1459
+ fields: {
1460
+ /** . */
1461
+ 'times': {
1462
+ type: 'schema';
1463
+ isRequired: true;
1464
+ isArray: true;
1465
+ minArrayLength: 0;
1466
+ options: {
1467
+ schema: SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema;
1468
+ };
1469
+ };
1470
+ };
1471
+ }
1472
+ interface GetAvailableTimeSlotsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsResponsePayloadSchema> {
1473
+ }
1474
+ }
1475
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1476
+ interface GetCalendarEmitTarget {
1477
+ 'organizationId': string;
1478
+ 'slug'?: string | undefined | null;
1479
+ 'calendarId'?: string | undefined | null;
1844
1480
  }
1845
- interface GetAvailableTimeSlotsEmitTargetSchema extends SpruceSchema.Schema {
1846
- id: 'getAvailableTimeSlotsEmitTarget';
1481
+ interface GetCalendarEmitTargetSchema extends SpruceSchema.Schema {
1482
+ id: 'getCalendarEmitTarget';
1847
1483
  version: 'v2021_05_19';
1848
1484
  namespace: 'Calendar';
1849
1485
  name: '';
@@ -1851,34 +1487,32 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1851
1487
  /** . */
1852
1488
  'organizationId': {
1853
1489
  type: 'id';
1490
+ isRequired: true;
1854
1491
  options: undefined;
1855
1492
  };
1856
1493
  /** . */
1857
- 'locationId': {
1494
+ 'slug': {
1858
1495
  type: 'id';
1859
1496
  options: undefined;
1860
1497
  };
1861
1498
  /** . */
1862
- 'calendarIds': {
1499
+ 'calendarId': {
1863
1500
  type: 'id';
1864
- isRequired: true;
1865
- isArray: true;
1866
1501
  options: undefined;
1867
1502
  };
1868
1503
  };
1869
1504
  }
1870
- interface GetAvailableTimeSlotsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema> {
1505
+ interface GetCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema> {
1871
1506
  }
1872
1507
  }
1873
1508
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1874
- interface GetAvailableTimeSlotsEmitTargetAndPayload {
1509
+ interface GetCalendarEmitTargetAndPayload {
1875
1510
  /** Source. */
1876
1511
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1877
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTarget;
1878
- 'payload': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayload;
1512
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTarget;
1879
1513
  }
1880
- interface GetAvailableTimeSlotsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1881
- id: 'getAvailableTimeSlotsEmitTargetAndPayload';
1514
+ interface GetCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1515
+ id: 'getCalendarEmitTargetAndPayload';
1882
1516
  version: 'v2021_05_19';
1883
1517
  namespace: 'Calendar';
1884
1518
  name: '';
@@ -1896,178 +1530,544 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1896
1530
  type: 'schema';
1897
1531
  isRequired: true;
1898
1532
  options: {
1899
- schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema;
1900
- };
1901
- };
1902
- /** . */
1903
- 'payload': {
1904
- type: 'schema';
1905
- isRequired: true;
1906
- options: {
1907
- schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema;
1533
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema;
1908
1534
  };
1909
1535
  };
1910
1536
  };
1911
1537
  }
1912
- interface GetAvailableTimeSlotsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetAndPayloadSchema> {
1538
+ interface GetCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetAndPayloadSchema> {
1913
1539
  }
1914
1540
  }
1915
1541
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1916
- interface Teammates {
1917
- 'personId': string;
1918
- 'durationMinutes': number;
1542
+ interface GetCalendarResponsePayload {
1543
+ 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
1919
1544
  }
1920
- interface TeammatesSchema extends SpruceSchema.Schema {
1921
- id: 'teammates';
1545
+ interface GetCalendarResponsePayloadSchema extends SpruceSchema.Schema {
1546
+ id: 'getCalendarResponsePayload';
1922
1547
  version: 'v2021_05_19';
1923
1548
  namespace: 'Calendar';
1924
1549
  name: '';
1925
1550
  fields: {
1926
1551
  /** . */
1927
- 'personId': {
1928
- type: 'id';
1929
- isRequired: true;
1930
- options: undefined;
1931
- };
1932
- /** . */
1933
- 'durationMinutes': {
1934
- type: 'number';
1552
+ 'calendar': {
1553
+ type: 'schema';
1935
1554
  isRequired: true;
1936
- options: undefined;
1555
+ options: {
1556
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
1557
+ };
1937
1558
  };
1938
1559
  };
1939
1560
  }
1940
- interface TeammatesEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema> {
1561
+ interface GetCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarResponsePayloadSchema> {
1941
1562
  }
1942
1563
  }
1943
1564
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1944
- interface GetAvailableTimeSlotsEmitPayload {
1945
- 'startDateTimeMs': number;
1946
- 'endDateTimeMs': number;
1947
- 'calculationMode': ("intersect" | "contiguous");
1948
- 'teammates': SpruceSchemas.Calendar.v2021_05_19.Teammates[];
1565
+ interface CreateCalendarEventTypeEmitPayload {
1566
+ 'name': string;
1567
+ 'slug': string;
1568
+ 'viewControllerId'?: string | undefined | null;
1569
+ 'lineIcon'?: ("sprucebot" | "add-circle" | "chevron-left" | "document-text" | "link-angle" | "play-circle" | "star" | "add-square" | "chevron-right" | "download-cloud" | "link-flat" | "present" | "sun" | "add" | "chevron-up" | "download" | "loader" | "refresh-circle" | "tag" | "alarm" | "clipboard" | "edit-box" | "location-pin" | "refresh" | "time" | "arrow-back" | "clock" | "edit-line" | "lock" | "repeat" | "tool" | "arrow-down-circle" | "close-circle" | "email" | "map" | "restricted" | "trending-down" | "arrow-down" | "close-square" | "emoji-happy" | "message-circle" | "rotate" | "trending-up" | "arrow-next" | "close" | "emoji-sad" | "message-square" | "search-no" | "triangle" | "arrow-up-circle" | "code" | "external-link" | "mic-off" | "search" | "unlock" | "arrow-up" | "coffee" | "fav-heart" | "mic-on" | "selector-checked" | "upload-cloud" | "attachment" | "command" | "flag" | "minus-circle" | "selector-circle-filled" | "upload" | "award-badge" | "corner-down-left" | "flip-01" | "minus-square" | "selector-circle" | "user-add" | "binoculars" | "corner-down-right" | "flip-02" | "money-sign" | "send" | "user-delete" | "bolt" | "corner-left-down" | "folder" | "more-horizontal" | "settings-filled" | "user" | "book-open" | "corner-left-up" | "globe" | "more-vertical" | "settings" | "users" | "book" | "corner-right-down" | "hash-tag" | "notification-off" | "share" | "video-off" | "bookmark" | "corner-right-up" | "headphones" | "notification-on" | "shopping-bag" | "video" | "calendar-add" | "corner-up-left" | "help-buoy" | "object" | "shopping-cart" | "warning" | "calendar" | "corner-up-right" | "help-circle" | "pause-circle" | "sort-filter-down" | "wifi" | "camera" | "crop" | "home" | "phone-unavailable" | "sort-filter-up" | "zoom-in" | "cellphone" | "delete" | "info" | "phone" | "sound-off" | "zoom-out" | "checkmark" | "document-blank" | "jump" | "photo" | "sound-on" | "chevron-down" | "document-new" | "layers" | "picked" | "star-filled") | undefined | null;
1949
1570
  }
1950
- interface GetAvailableTimeSlotsEmitPayloadSchema extends SpruceSchema.Schema {
1951
- id: 'getAvailableTimeSlotsEmitPayload';
1571
+ interface CreateCalendarEventTypeEmitPayloadSchema extends SpruceSchema.Schema {
1572
+ id: 'createCalendarEventTypeEmitPayload';
1952
1573
  version: 'v2021_05_19';
1953
1574
  namespace: 'Calendar';
1954
1575
  name: '';
1955
1576
  fields: {
1956
1577
  /** . */
1957
- 'startDateTimeMs': {
1958
- type: 'number';
1578
+ 'name': {
1579
+ type: 'text';
1959
1580
  isRequired: true;
1960
1581
  options: undefined;
1961
1582
  };
1962
1583
  /** . */
1963
- 'endDateTimeMs': {
1964
- type: 'number';
1584
+ 'slug': {
1585
+ type: 'text';
1965
1586
  isRequired: true;
1966
1587
  options: undefined;
1967
1588
  };
1968
1589
  /** . */
1969
- 'calculationMode': {
1590
+ 'viewControllerId': {
1591
+ type: 'id';
1592
+ options: undefined;
1593
+ };
1594
+ /** . */
1595
+ 'lineIcon': {
1970
1596
  type: 'select';
1971
- isRequired: true;
1972
1597
  options: {
1973
1598
  choices: [{
1974
- "value": "intersect";
1975
- "label": "Intersect";
1599
+ "value": "sprucebot";
1600
+ "label": "sprucebot";
1601
+ }, {
1602
+ "value": "add-circle";
1603
+ "label": "add-circle";
1604
+ }, {
1605
+ "value": "chevron-left";
1606
+ "label": "chevron-left";
1607
+ }, {
1608
+ "value": "document-text";
1609
+ "label": "document-text";
1610
+ }, {
1611
+ "value": "link-angle";
1612
+ "label": "link-angle";
1613
+ }, {
1614
+ "value": "play-circle";
1615
+ "label": "play-circle";
1616
+ }, {
1617
+ "value": "star";
1618
+ "label": "star";
1619
+ }, {
1620
+ "value": "add-square";
1621
+ "label": "add-square";
1622
+ }, {
1623
+ "value": "chevron-right";
1624
+ "label": "chevron-right";
1625
+ }, {
1626
+ "value": "download-cloud";
1627
+ "label": "download-cloud";
1628
+ }, {
1629
+ "value": "link-flat";
1630
+ "label": "link-flat";
1631
+ }, {
1632
+ "value": "present";
1633
+ "label": "present";
1634
+ }, {
1635
+ "value": "sun";
1636
+ "label": "sun";
1637
+ }, {
1638
+ "value": "add";
1639
+ "label": "add";
1640
+ }, {
1641
+ "value": "chevron-up";
1642
+ "label": "chevron-up";
1643
+ }, {
1644
+ "value": "download";
1645
+ "label": "download";
1646
+ }, {
1647
+ "value": "loader";
1648
+ "label": "loader";
1649
+ }, {
1650
+ "value": "refresh-circle";
1651
+ "label": "refresh-circle";
1652
+ }, {
1653
+ "value": "tag";
1654
+ "label": "tag";
1655
+ }, {
1656
+ "value": "alarm";
1657
+ "label": "alarm";
1658
+ }, {
1659
+ "value": "clipboard";
1660
+ "label": "clipboard";
1661
+ }, {
1662
+ "value": "edit-box";
1663
+ "label": "edit-box";
1664
+ }, {
1665
+ "value": "location-pin";
1666
+ "label": "location-pin";
1667
+ }, {
1668
+ "value": "refresh";
1669
+ "label": "refresh";
1670
+ }, {
1671
+ "value": "time";
1672
+ "label": "time";
1673
+ }, {
1674
+ "value": "arrow-back";
1675
+ "label": "arrow-back";
1676
+ }, {
1677
+ "value": "clock";
1678
+ "label": "clock";
1679
+ }, {
1680
+ "value": "edit-line";
1681
+ "label": "edit-line";
1682
+ }, {
1683
+ "value": "lock";
1684
+ "label": "lock";
1685
+ }, {
1686
+ "value": "repeat";
1687
+ "label": "repeat";
1688
+ }, {
1689
+ "value": "tool";
1690
+ "label": "tool";
1691
+ }, {
1692
+ "value": "arrow-down-circle";
1693
+ "label": "arrow-down-circle";
1694
+ }, {
1695
+ "value": "close-circle";
1696
+ "label": "close-circle";
1697
+ }, {
1698
+ "value": "email";
1699
+ "label": "email";
1700
+ }, {
1701
+ "value": "map";
1702
+ "label": "map";
1703
+ }, {
1704
+ "value": "restricted";
1705
+ "label": "restricted";
1706
+ }, {
1707
+ "value": "trending-down";
1708
+ "label": "trending-down";
1709
+ }, {
1710
+ "value": "arrow-down";
1711
+ "label": "arrow-down";
1712
+ }, {
1713
+ "value": "close-square";
1714
+ "label": "close-square";
1715
+ }, {
1716
+ "value": "emoji-happy";
1717
+ "label": "emoji-happy";
1718
+ }, {
1719
+ "value": "message-circle";
1720
+ "label": "message-circle";
1721
+ }, {
1722
+ "value": "rotate";
1723
+ "label": "rotate";
1724
+ }, {
1725
+ "value": "trending-up";
1726
+ "label": "trending-up";
1727
+ }, {
1728
+ "value": "arrow-next";
1729
+ "label": "arrow-next";
1730
+ }, {
1731
+ "value": "close";
1732
+ "label": "close";
1733
+ }, {
1734
+ "value": "emoji-sad";
1735
+ "label": "emoji-sad";
1736
+ }, {
1737
+ "value": "message-square";
1738
+ "label": "message-square";
1739
+ }, {
1740
+ "value": "search-no";
1741
+ "label": "search-no";
1742
+ }, {
1743
+ "value": "triangle";
1744
+ "label": "triangle";
1745
+ }, {
1746
+ "value": "arrow-up-circle";
1747
+ "label": "arrow-up-circle";
1748
+ }, {
1749
+ "value": "code";
1750
+ "label": "code";
1751
+ }, {
1752
+ "value": "external-link";
1753
+ "label": "external-link";
1754
+ }, {
1755
+ "value": "mic-off";
1756
+ "label": "mic-off";
1757
+ }, {
1758
+ "value": "search";
1759
+ "label": "search";
1760
+ }, {
1761
+ "value": "unlock";
1762
+ "label": "unlock";
1976
1763
  }, {
1977
- "value": "contiguous";
1978
- "label": "Contiguous";
1979
- }];
1980
- };
1981
- };
1982
- /** . */
1983
- 'teammates': {
1984
- type: 'schema';
1985
- isRequired: true;
1986
- isArray: true;
1987
- options: {
1988
- schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema;
1764
+ "value": "arrow-up";
1765
+ "label": "arrow-up";
1766
+ }, {
1767
+ "value": "coffee";
1768
+ "label": "coffee";
1769
+ }, {
1770
+ "value": "fav-heart";
1771
+ "label": "fav-heart";
1772
+ }, {
1773
+ "value": "mic-on";
1774
+ "label": "mic-on";
1775
+ }, {
1776
+ "value": "selector-checked";
1777
+ "label": "selector-checked";
1778
+ }, {
1779
+ "value": "upload-cloud";
1780
+ "label": "upload-cloud";
1781
+ }, {
1782
+ "value": "attachment";
1783
+ "label": "attachment";
1784
+ }, {
1785
+ "value": "command";
1786
+ "label": "command";
1787
+ }, {
1788
+ "value": "flag";
1789
+ "label": "flag";
1790
+ }, {
1791
+ "value": "minus-circle";
1792
+ "label": "minus-circle";
1793
+ }, {
1794
+ "value": "selector-circle-filled";
1795
+ "label": "selector-circle-filled";
1796
+ }, {
1797
+ "value": "upload";
1798
+ "label": "upload";
1799
+ }, {
1800
+ "value": "award-badge";
1801
+ "label": "award-badge";
1802
+ }, {
1803
+ "value": "corner-down-left";
1804
+ "label": "corner-down-left";
1805
+ }, {
1806
+ "value": "flip-01";
1807
+ "label": "flip-01";
1808
+ }, {
1809
+ "value": "minus-square";
1810
+ "label": "minus-square";
1811
+ }, {
1812
+ "value": "selector-circle";
1813
+ "label": "selector-circle";
1814
+ }, {
1815
+ "value": "user-add";
1816
+ "label": "user-add";
1817
+ }, {
1818
+ "value": "binoculars";
1819
+ "label": "binoculars";
1820
+ }, {
1821
+ "value": "corner-down-right";
1822
+ "label": "corner-down-right";
1823
+ }, {
1824
+ "value": "flip-02";
1825
+ "label": "flip-02";
1826
+ }, {
1827
+ "value": "money-sign";
1828
+ "label": "money-sign";
1829
+ }, {
1830
+ "value": "send";
1831
+ "label": "send";
1832
+ }, {
1833
+ "value": "user-delete";
1834
+ "label": "user-delete";
1835
+ }, {
1836
+ "value": "bolt";
1837
+ "label": "bolt";
1838
+ }, {
1839
+ "value": "corner-left-down";
1840
+ "label": "corner-left-down";
1841
+ }, {
1842
+ "value": "folder";
1843
+ "label": "folder";
1844
+ }, {
1845
+ "value": "more-horizontal";
1846
+ "label": "more-horizontal";
1847
+ }, {
1848
+ "value": "settings-filled";
1849
+ "label": "settings-filled";
1850
+ }, {
1851
+ "value": "user";
1852
+ "label": "user";
1853
+ }, {
1854
+ "value": "book-open";
1855
+ "label": "book-open";
1856
+ }, {
1857
+ "value": "corner-left-up";
1858
+ "label": "corner-left-up";
1859
+ }, {
1860
+ "value": "globe";
1861
+ "label": "globe";
1862
+ }, {
1863
+ "value": "more-vertical";
1864
+ "label": "more-vertical";
1865
+ }, {
1866
+ "value": "settings";
1867
+ "label": "settings";
1868
+ }, {
1869
+ "value": "users";
1870
+ "label": "users";
1871
+ }, {
1872
+ "value": "book";
1873
+ "label": "book";
1874
+ }, {
1875
+ "value": "corner-right-down";
1876
+ "label": "corner-right-down";
1877
+ }, {
1878
+ "value": "hash-tag";
1879
+ "label": "hash-tag";
1880
+ }, {
1881
+ "value": "notification-off";
1882
+ "label": "notification-off";
1883
+ }, {
1884
+ "value": "share";
1885
+ "label": "share";
1886
+ }, {
1887
+ "value": "video-off";
1888
+ "label": "video-off";
1889
+ }, {
1890
+ "value": "bookmark";
1891
+ "label": "bookmark";
1892
+ }, {
1893
+ "value": "corner-right-up";
1894
+ "label": "corner-right-up";
1895
+ }, {
1896
+ "value": "headphones";
1897
+ "label": "headphones";
1898
+ }, {
1899
+ "value": "notification-on";
1900
+ "label": "notification-on";
1901
+ }, {
1902
+ "value": "shopping-bag";
1903
+ "label": "shopping-bag";
1904
+ }, {
1905
+ "value": "video";
1906
+ "label": "video";
1907
+ }, {
1908
+ "value": "calendar-add";
1909
+ "label": "calendar-add";
1910
+ }, {
1911
+ "value": "corner-up-left";
1912
+ "label": "corner-up-left";
1913
+ }, {
1914
+ "value": "help-buoy";
1915
+ "label": "help-buoy";
1916
+ }, {
1917
+ "value": "object";
1918
+ "label": "object";
1919
+ }, {
1920
+ "value": "shopping-cart";
1921
+ "label": "shopping-cart";
1922
+ }, {
1923
+ "value": "warning";
1924
+ "label": "warning";
1925
+ }, {
1926
+ "value": "calendar";
1927
+ "label": "calendar";
1928
+ }, {
1929
+ "value": "corner-up-right";
1930
+ "label": "corner-up-right";
1931
+ }, {
1932
+ "value": "help-circle";
1933
+ "label": "help-circle";
1934
+ }, {
1935
+ "value": "pause-circle";
1936
+ "label": "pause-circle";
1937
+ }, {
1938
+ "value": "sort-filter-down";
1939
+ "label": "sort-filter-down";
1940
+ }, {
1941
+ "value": "wifi";
1942
+ "label": "wifi";
1943
+ }, {
1944
+ "value": "camera";
1945
+ "label": "camera";
1946
+ }, {
1947
+ "value": "crop";
1948
+ "label": "crop";
1949
+ }, {
1950
+ "value": "home";
1951
+ "label": "home";
1952
+ }, {
1953
+ "value": "phone-unavailable";
1954
+ "label": "phone-unavailable";
1955
+ }, {
1956
+ "value": "sort-filter-up";
1957
+ "label": "sort-filter-up";
1958
+ }, {
1959
+ "value": "zoom-in";
1960
+ "label": "zoom-in";
1961
+ }, {
1962
+ "value": "cellphone";
1963
+ "label": "cellphone";
1964
+ }, {
1965
+ "value": "delete";
1966
+ "label": "delete";
1967
+ }, {
1968
+ "value": "info";
1969
+ "label": "info";
1970
+ }, {
1971
+ "value": "phone";
1972
+ "label": "phone";
1973
+ }, {
1974
+ "value": "sound-off";
1975
+ "label": "sound-off";
1976
+ }, {
1977
+ "value": "zoom-out";
1978
+ "label": "zoom-out";
1979
+ }, {
1980
+ "value": "checkmark";
1981
+ "label": "checkmark";
1982
+ }, {
1983
+ "value": "document-blank";
1984
+ "label": "document-blank";
1985
+ }, {
1986
+ "value": "jump";
1987
+ "label": "jump";
1988
+ }, {
1989
+ "value": "photo";
1990
+ "label": "photo";
1991
+ }, {
1992
+ "value": "sound-on";
1993
+ "label": "sound-on";
1994
+ }, {
1995
+ "value": "chevron-down";
1996
+ "label": "chevron-down";
1997
+ }, {
1998
+ "value": "document-new";
1999
+ "label": "document-new";
2000
+ }, {
2001
+ "value": "layers";
2002
+ "label": "layers";
2003
+ }, {
2004
+ "value": "picked";
2005
+ "label": "picked";
2006
+ }, {
2007
+ "value": "star-filled";
2008
+ "label": "star-filled";
2009
+ }];
1989
2010
  };
1990
2011
  };
1991
2012
  };
1992
2013
  }
1993
- interface GetAvailableTimeSlotsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema> {
2014
+ interface CreateCalendarEventTypeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventTypeEmitPayloadSchema> {
1994
2015
  }
1995
2016
  }
1996
2017
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1997
- interface GetAvailableTimeSlotsResponsePayload {
1998
- 'times': SpruceSchemas.Calendar.v2021_05_19.Timeslots[];
2018
+ interface CreateCalendarEventTypeEmitTargetAndPayload {
2019
+ /** Source. */
2020
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2021
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventTypeEmitPayload;
1999
2022
  }
2000
- interface GetAvailableTimeSlotsResponsePayloadSchema extends SpruceSchema.Schema {
2001
- id: 'getAvailableTimeSlotsResponsePayload';
2023
+ interface CreateCalendarEventTypeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2024
+ id: 'createCalendarEventTypeEmitTargetAndPayload';
2002
2025
  version: 'v2021_05_19';
2003
2026
  namespace: 'Calendar';
2004
2027
  name: '';
2005
2028
  fields: {
2006
- /** . */
2007
- 'times': {
2029
+ /** Source. */
2030
+ 'source': {
2031
+ label: 'Source';
2008
2032
  type: 'schema';
2009
- isRequired: true;
2010
- isArray: true;
2011
- minArrayLength: 0;
2012
2033
  options: {
2013
- schema: SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema;
2034
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2014
2035
  };
2015
2036
  };
2016
- };
2017
- }
2018
- interface GetAvailableTimeSlotsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsResponsePayloadSchema> {
2019
- }
2020
- }
2021
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2022
- interface TeammatesTimeslots {
2023
- 'personId': string;
2024
- 'startDateTimeMs': number;
2025
- }
2026
- interface TeammatesTimeslotsSchema extends SpruceSchema.Schema {
2027
- id: 'teammatesTimeslots';
2028
- version: 'v2021_05_19';
2029
- namespace: 'Calendar';
2030
- name: '';
2031
- fields: {
2032
- /** . */
2033
- 'personId': {
2034
- type: 'id';
2035
- isRequired: true;
2036
- options: undefined;
2037
- };
2038
2037
  /** . */
2039
- 'startDateTimeMs': {
2040
- type: 'number';
2038
+ 'payload': {
2039
+ type: 'schema';
2041
2040
  isRequired: true;
2042
- options: undefined;
2041
+ options: {
2042
+ schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventTypeEmitPayloadSchema;
2043
+ };
2043
2044
  };
2044
2045
  };
2045
2046
  }
2046
- interface TeammatesTimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema> {
2047
+ interface CreateCalendarEventTypeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventTypeEmitTargetAndPayloadSchema> {
2047
2048
  }
2048
2049
  }
2049
2050
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2050
- interface Timeslots {
2051
- 'slots': SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslots[];
2051
+ interface CreateCalendarEventTypeResponsePayload {
2052
+ 'calendarEventType': SpruceSchemas.Calendar.v2021_05_19.CalendarEventType;
2052
2053
  }
2053
- interface TimeslotsSchema extends SpruceSchema.Schema {
2054
- id: 'timeslots';
2054
+ interface CreateCalendarEventTypeResponsePayloadSchema extends SpruceSchema.Schema {
2055
+ id: 'createCalendarEventTypeResponsePayload';
2055
2056
  version: 'v2021_05_19';
2056
2057
  namespace: 'Calendar';
2057
2058
  name: '';
2058
2059
  fields: {
2059
2060
  /** . */
2060
- 'slots': {
2061
+ 'calendarEventType': {
2061
2062
  type: 'schema';
2062
2063
  isRequired: true;
2063
- isArray: true;
2064
2064
  options: {
2065
- schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema;
2065
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema;
2066
2066
  };
2067
2067
  };
2068
2068
  };
2069
2069
  }
2070
- interface TimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema> {
2070
+ interface CreateCalendarEventTypeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventTypeResponsePayloadSchema> {
2071
2071
  }
2072
2072
  }
2073
2073
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -2371,7 +2371,191 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2371
2371
  };
2372
2372
  };
2373
2373
  }
2374
- interface GetSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesResponsePayloadSchema> {
2374
+ interface GetSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesResponsePayloadSchema> {
2375
+ }
2376
+ }
2377
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2378
+ interface GetPreferencesEmitTarget {
2379
+ 'organizationId': string;
2380
+ }
2381
+ interface GetPreferencesEmitTargetSchema extends SpruceSchema.Schema {
2382
+ id: 'getPreferencesEmitTarget';
2383
+ version: 'v2021_05_19';
2384
+ namespace: 'Calendar';
2385
+ name: '';
2386
+ fields: {
2387
+ /** . */
2388
+ 'organizationId': {
2389
+ type: 'id';
2390
+ isRequired: true;
2391
+ options: undefined;
2392
+ };
2393
+ };
2394
+ }
2395
+ interface GetPreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema> {
2396
+ }
2397
+ }
2398
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2399
+ interface GetPreferencesEmitTargetAndPayload {
2400
+ /** Source. */
2401
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2402
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTarget;
2403
+ }
2404
+ interface GetPreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2405
+ id: 'getPreferencesEmitTargetAndPayload';
2406
+ version: 'v2021_05_19';
2407
+ namespace: 'Calendar';
2408
+ name: '';
2409
+ fields: {
2410
+ /** Source. */
2411
+ 'source': {
2412
+ label: 'Source';
2413
+ type: 'schema';
2414
+ options: {
2415
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2416
+ };
2417
+ };
2418
+ /** . */
2419
+ 'target': {
2420
+ type: 'schema';
2421
+ isRequired: true;
2422
+ options: {
2423
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema;
2424
+ };
2425
+ };
2426
+ };
2427
+ }
2428
+ interface GetPreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetAndPayloadSchema> {
2429
+ }
2430
+ }
2431
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2432
+ interface GetPreferencesResponsePayload {
2433
+ 'selectedCalendarIds'?: string[] | undefined | null;
2434
+ 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
2435
+ 'visiblePeopleIds'?: string[] | undefined | null;
2436
+ }
2437
+ interface GetPreferencesResponsePayloadSchema extends SpruceSchema.Schema {
2438
+ id: 'getPreferencesResponsePayload';
2439
+ version: 'v2021_05_19';
2440
+ namespace: 'Calendar';
2441
+ name: '';
2442
+ fields: {
2443
+ /** . */
2444
+ 'selectedCalendarIds': {
2445
+ type: 'id';
2446
+ isArray: true;
2447
+ minArrayLength: 0;
2448
+ options: undefined;
2449
+ };
2450
+ /** . */
2451
+ 'visiblePeopleMode': {
2452
+ type: 'select';
2453
+ options: {
2454
+ choices: [{
2455
+ "value": "me";
2456
+ "label": "Me";
2457
+ }, {
2458
+ "value": "working";
2459
+ "label": "Working";
2460
+ }, {
2461
+ "value": "custom";
2462
+ "label": "Custom";
2463
+ }];
2464
+ };
2465
+ };
2466
+ /** . */
2467
+ 'visiblePeopleIds': {
2468
+ type: 'text';
2469
+ isArray: true;
2470
+ options: undefined;
2471
+ };
2472
+ };
2473
+ }
2474
+ interface GetPreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesResponsePayloadSchema> {
2475
+ }
2476
+ }
2477
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2478
+ interface ListCalendarEventTypesEmitPayload {
2479
+ 'shouldShowOnlyMine'?: boolean | undefined | null;
2480
+ }
2481
+ interface ListCalendarEventTypesEmitPayloadSchema extends SpruceSchema.Schema {
2482
+ id: 'listCalendarEventTypesEmitPayload';
2483
+ version: 'v2021_05_19';
2484
+ namespace: 'Calendar';
2485
+ name: '';
2486
+ fields: {
2487
+ /** . */
2488
+ 'shouldShowOnlyMine': {
2489
+ type: 'boolean';
2490
+ options: undefined;
2491
+ };
2492
+ };
2493
+ }
2494
+ interface ListCalendarEventTypesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayloadSchema> {
2495
+ }
2496
+ }
2497
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2498
+ interface ListCalendarEventTypesEmitTargetAndPayload {
2499
+ /** Source. */
2500
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2501
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayload | undefined | null;
2502
+ }
2503
+ interface ListCalendarEventTypesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2504
+ id: 'listCalendarEventTypesEmitTargetAndPayload';
2505
+ version: 'v2021_05_19';
2506
+ namespace: 'Calendar';
2507
+ name: '';
2508
+ fields: {
2509
+ /** Source. */
2510
+ 'source': {
2511
+ label: 'Source';
2512
+ type: 'schema';
2513
+ options: {
2514
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2515
+ };
2516
+ };
2517
+ /** . */
2518
+ 'payload': {
2519
+ type: 'schema';
2520
+ options: {
2521
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayloadSchema;
2522
+ };
2523
+ };
2524
+ };
2525
+ }
2526
+ interface ListCalendarEventTypesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitTargetAndPayloadSchema> {
2527
+ }
2528
+ }
2529
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2530
+ interface ListCalendarEventTypesResponsePayload {
2531
+ 'calendarEventTypes': SpruceSchemas.Calendar.v2021_05_19.CalendarEventType[];
2532
+ 'count': number;
2533
+ }
2534
+ interface ListCalendarEventTypesResponsePayloadSchema extends SpruceSchema.Schema {
2535
+ id: 'listCalendarEventTypesResponsePayload';
2536
+ version: 'v2021_05_19';
2537
+ namespace: 'Calendar';
2538
+ name: '';
2539
+ fields: {
2540
+ /** . */
2541
+ 'calendarEventTypes': {
2542
+ type: 'schema';
2543
+ isRequired: true;
2544
+ isArray: true;
2545
+ minArrayLength: 0;
2546
+ options: {
2547
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema;
2548
+ };
2549
+ };
2550
+ /** . */
2551
+ 'count': {
2552
+ type: 'number';
2553
+ isRequired: true;
2554
+ options: undefined;
2555
+ };
2556
+ };
2557
+ }
2558
+ interface ListCalendarEventTypesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesResponsePayloadSchema> {
2375
2559
  }
2376
2560
  }
2377
2561
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -2459,11 +2643,12 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2459
2643
  }
2460
2644
  }
2461
2645
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2462
- interface GetPreferencesEmitTarget {
2646
+ interface UpdateCalendarEmitTarget {
2463
2647
  'organizationId': string;
2648
+ 'calendarId': string;
2464
2649
  }
2465
- interface GetPreferencesEmitTargetSchema extends SpruceSchema.Schema {
2466
- id: 'getPreferencesEmitTarget';
2650
+ interface UpdateCalendarEmitTargetSchema extends SpruceSchema.Schema {
2651
+ id: 'updateCalendarEmitTarget';
2467
2652
  version: 'v2021_05_19';
2468
2653
  namespace: 'Calendar';
2469
2654
  name: '';
@@ -2474,124 +2659,88 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2474
2659
  isRequired: true;
2475
2660
  options: undefined;
2476
2661
  };
2477
- };
2478
- }
2479
- interface GetPreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema> {
2480
- }
2481
- }
2482
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2483
- interface GetPreferencesEmitTargetAndPayload {
2484
- /** Source. */
2485
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2486
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTarget;
2487
- }
2488
- interface GetPreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2489
- id: 'getPreferencesEmitTargetAndPayload';
2490
- version: 'v2021_05_19';
2491
- namespace: 'Calendar';
2492
- name: '';
2493
- fields: {
2494
- /** Source. */
2495
- 'source': {
2496
- label: 'Source';
2497
- type: 'schema';
2498
- options: {
2499
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2500
- };
2501
- };
2502
2662
  /** . */
2503
- 'target': {
2504
- type: 'schema';
2663
+ 'calendarId': {
2664
+ type: 'id';
2505
2665
  isRequired: true;
2506
- options: {
2507
- schema: SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema;
2508
- };
2666
+ options: undefined;
2509
2667
  };
2510
2668
  };
2511
2669
  }
2512
- interface GetPreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetAndPayloadSchema> {
2670
+ interface UpdateCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema> {
2513
2671
  }
2514
2672
  }
2515
2673
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2516
- interface GetPreferencesResponsePayload {
2517
- 'selectedCalendarIds'?: string[] | undefined | null;
2518
- 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
2519
- 'visiblePeopleIds'?: string[] | undefined | null;
2674
+ interface UpdateCalendarEmitPayload {
2675
+ 'slug'?: string | undefined | null;
2676
+ 'title'?: string | undefined | null;
2677
+ 'eventTypes'?: string[] | undefined | null;
2678
+ 'target'?: SpruceSchemas.Calendar.v2021_05_19.CalendarTarget | undefined | null;
2679
+ 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
2680
+ 'availableTimeSlotBehavior'?: ("include" | "exclude") | undefined | null;
2520
2681
  }
2521
- interface GetPreferencesResponsePayloadSchema extends SpruceSchema.Schema {
2522
- id: 'getPreferencesResponsePayload';
2682
+ interface UpdateCalendarEmitPayloadSchema extends SpruceSchema.Schema {
2683
+ id: 'updateCalendarEmitPayload';
2523
2684
  version: 'v2021_05_19';
2524
2685
  namespace: 'Calendar';
2525
2686
  name: '';
2526
2687
  fields: {
2527
2688
  /** . */
2528
- 'selectedCalendarIds': {
2689
+ 'slug': {
2529
2690
  type: 'id';
2530
- isArray: true;
2531
- minArrayLength: 0;
2532
2691
  options: undefined;
2533
2692
  };
2534
2693
  /** . */
2535
- 'visiblePeopleMode': {
2536
- type: 'select';
2537
- options: {
2538
- choices: [{
2539
- "value": "me";
2540
- "label": "Me";
2541
- }, {
2542
- "value": "working";
2543
- "label": "Working";
2544
- }, {
2545
- "value": "custom";
2546
- "label": "Custom";
2547
- }];
2548
- };
2694
+ 'title': {
2695
+ type: 'text';
2696
+ options: undefined;
2549
2697
  };
2550
2698
  /** . */
2551
- 'visiblePeopleIds': {
2699
+ 'eventTypes': {
2552
2700
  type: 'text';
2553
2701
  isArray: true;
2702
+ minArrayLength: 0;
2554
2703
  options: undefined;
2555
2704
  };
2556
- };
2557
- }
2558
- interface GetPreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesResponsePayloadSchema> {
2559
- }
2560
- }
2561
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2562
- interface ListCalendarsEmitTarget {
2563
- 'organizationId'?: string | undefined | null;
2564
- 'calendarPersonId'?: string | undefined | null;
2565
- }
2566
- interface ListCalendarsEmitTargetSchema extends SpruceSchema.Schema {
2567
- id: 'listCalendarsEmitTarget';
2568
- version: 'v2021_05_19';
2569
- namespace: 'Calendar';
2570
- name: '';
2571
- fields: {
2572
2705
  /** . */
2573
- 'organizationId': {
2574
- type: 'id';
2575
- options: undefined;
2706
+ 'target': {
2707
+ type: 'schema';
2708
+ options: {
2709
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarTargetSchema;
2710
+ };
2576
2711
  };
2577
2712
  /** . */
2578
- 'calendarPersonId': {
2579
- type: 'id';
2713
+ 'dateDeleted': {
2714
+ type: 'dateTime';
2580
2715
  options: undefined;
2581
2716
  };
2717
+ /** . */
2718
+ 'availableTimeSlotBehavior': {
2719
+ type: 'select';
2720
+ options: {
2721
+ choices: [{
2722
+ "value": "include";
2723
+ "label": "Include";
2724
+ }, {
2725
+ "value": "exclude";
2726
+ "label": "Exclude";
2727
+ }];
2728
+ };
2729
+ };
2582
2730
  };
2583
2731
  }
2584
- interface ListCalendarsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetSchema> {
2732
+ interface UpdateCalendarEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema> {
2585
2733
  }
2586
2734
  }
2587
2735
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2588
- interface ListCalendarsEmitTargetAndPayload {
2736
+ interface UpdateCalendarEmitTargetAndPayload {
2589
2737
  /** Source. */
2590
2738
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2591
- 'target'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTarget | undefined | null;
2739
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTarget;
2740
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayload | undefined | null;
2592
2741
  }
2593
- interface ListCalendarsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2594
- id: 'listCalendarsEmitTargetAndPayload';
2742
+ interface UpdateCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2743
+ id: 'updateCalendarEmitTargetAndPayload';
2595
2744
  version: 'v2021_05_19';
2596
2745
  namespace: 'Calendar';
2597
2746
  name: '';
@@ -2606,46 +2755,45 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2606
2755
  };
2607
2756
  /** . */
2608
2757
  'target': {
2758
+ type: 'schema';
2759
+ isRequired: true;
2760
+ options: {
2761
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema;
2762
+ };
2763
+ };
2764
+ /** . */
2765
+ 'payload': {
2609
2766
  type: 'schema';
2610
2767
  options: {
2611
- schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetSchema;
2768
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema;
2612
2769
  };
2613
2770
  };
2614
2771
  };
2615
2772
  }
2616
- interface ListCalendarsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetAndPayloadSchema> {
2773
+ interface UpdateCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetAndPayloadSchema> {
2617
2774
  }
2618
2775
  }
2619
2776
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2620
- interface ListCalendarsResponsePayload {
2621
- 'calendars': SpruceSchemas.Calendar.v2021_05_19.Calendar[];
2622
- 'count': number;
2777
+ interface UpdateCalendarResponsePayload {
2778
+ 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
2623
2779
  }
2624
- interface ListCalendarsResponsePayloadSchema extends SpruceSchema.Schema {
2625
- id: 'listCalendarsResponsePayload';
2780
+ interface UpdateCalendarResponsePayloadSchema extends SpruceSchema.Schema {
2781
+ id: 'updateCalendarResponsePayload';
2626
2782
  version: 'v2021_05_19';
2627
2783
  namespace: 'Calendar';
2628
2784
  name: '';
2629
2785
  fields: {
2630
2786
  /** . */
2631
- 'calendars': {
2787
+ 'calendar': {
2632
2788
  type: 'schema';
2633
2789
  isRequired: true;
2634
- isArray: true;
2635
- minArrayLength: 0;
2636
2790
  options: {
2637
2791
  schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
2638
2792
  };
2639
2793
  };
2640
- /** . */
2641
- 'count': {
2642
- type: 'number';
2643
- isRequired: true;
2644
- options: undefined;
2645
- };
2646
2794
  };
2647
2795
  }
2648
- interface ListCalendarsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsResponsePayloadSchema> {
2796
+ interface UpdateCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarResponsePayloadSchema> {
2649
2797
  }
2650
2798
  }
2651
2799
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -2775,133 +2923,50 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2775
2923
  options: undefined;
2776
2924
  };
2777
2925
  /** . */
2778
- 'calendarEventId': {
2779
- type: 'id';
2780
- isRequired: true;
2781
- options: undefined;
2782
- };
2783
- /** . */
2784
- 'locationId': {
2785
- type: 'id';
2786
- options: undefined;
2787
- };
2788
- };
2789
- }
2790
- interface RegisterEventToolsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetSchema> {
2791
- }
2792
- }
2793
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2794
- interface RegisterEventToolsEmitPayload {
2795
- 'eventTypeSlug'?: string | undefined | null;
2796
- }
2797
- interface RegisterEventToolsEmitPayloadSchema extends SpruceSchema.Schema {
2798
- id: 'registerEventToolsEmitPayload';
2799
- version: 'v2021_05_19';
2800
- namespace: 'Calendar';
2801
- name: '';
2802
- fields: {
2803
- /** . */
2804
- 'eventTypeSlug': {
2805
- type: 'id';
2806
- options: undefined;
2807
- };
2808
- };
2809
- }
2810
- interface RegisterEventToolsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayloadSchema> {
2811
- }
2812
- }
2813
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2814
- interface RegisterEventToolsEmitTargetAndPayload {
2815
- /** Source. */
2816
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2817
- 'target': SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTarget;
2818
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayload | undefined | null;
2819
- }
2820
- interface RegisterEventToolsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2821
- id: 'registerEventToolsEmitTargetAndPayload';
2822
- version: 'v2021_05_19';
2823
- namespace: 'Calendar';
2824
- name: '';
2825
- fields: {
2826
- /** Source. */
2827
- 'source': {
2828
- label: 'Source';
2829
- type: 'schema';
2830
- options: {
2831
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2832
- };
2833
- };
2834
- /** . */
2835
- 'target': {
2836
- type: 'schema';
2837
- isRequired: true;
2838
- options: {
2839
- schema: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetSchema;
2840
- };
2841
- };
2842
- /** . */
2843
- 'payload': {
2844
- type: 'schema';
2845
- options: {
2846
- schema: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayloadSchema;
2847
- };
2848
- };
2849
- };
2850
- }
2851
- interface RegisterEventToolsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetAndPayloadSchema> {
2852
- }
2853
- }
2854
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2855
- interface RegisterEventToolsResponsePayload {
2856
- 'vcIds': string[];
2857
- }
2858
- interface RegisterEventToolsResponsePayloadSchema extends SpruceSchema.Schema {
2859
- id: 'registerEventToolsResponsePayload';
2860
- version: 'v2021_05_19';
2861
- namespace: 'Calendar';
2862
- name: '';
2863
- fields: {
2864
- /** . */
2865
- 'vcIds': {
2926
+ 'calendarEventId': {
2866
2927
  type: 'id';
2867
2928
  isRequired: true;
2868
- isArray: true;
2869
- minArrayLength: 0;
2929
+ options: undefined;
2930
+ };
2931
+ /** . */
2932
+ 'locationId': {
2933
+ type: 'id';
2870
2934
  options: undefined;
2871
2935
  };
2872
2936
  };
2873
2937
  }
2874
- interface RegisterEventToolsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsResponsePayloadSchema> {
2938
+ interface RegisterEventToolsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetSchema> {
2875
2939
  }
2876
2940
  }
2877
2941
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2878
- interface ListCalendarEventTypesEmitPayload {
2879
- 'shouldShowOnlyMine'?: boolean | undefined | null;
2942
+ interface RegisterEventToolsEmitPayload {
2943
+ 'eventTypeSlug'?: string | undefined | null;
2880
2944
  }
2881
- interface ListCalendarEventTypesEmitPayloadSchema extends SpruceSchema.Schema {
2882
- id: 'listCalendarEventTypesEmitPayload';
2945
+ interface RegisterEventToolsEmitPayloadSchema extends SpruceSchema.Schema {
2946
+ id: 'registerEventToolsEmitPayload';
2883
2947
  version: 'v2021_05_19';
2884
2948
  namespace: 'Calendar';
2885
2949
  name: '';
2886
2950
  fields: {
2887
2951
  /** . */
2888
- 'shouldShowOnlyMine': {
2889
- type: 'boolean';
2952
+ 'eventTypeSlug': {
2953
+ type: 'id';
2890
2954
  options: undefined;
2891
2955
  };
2892
2956
  };
2893
2957
  }
2894
- interface ListCalendarEventTypesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayloadSchema> {
2958
+ interface RegisterEventToolsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayloadSchema> {
2895
2959
  }
2896
2960
  }
2897
2961
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2898
- interface ListCalendarEventTypesEmitTargetAndPayload {
2962
+ interface RegisterEventToolsEmitTargetAndPayload {
2899
2963
  /** Source. */
2900
2964
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2901
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayload | undefined | null;
2965
+ 'target': SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTarget;
2966
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayload | undefined | null;
2902
2967
  }
2903
- interface ListCalendarEventTypesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2904
- id: 'listCalendarEventTypesEmitTargetAndPayload';
2968
+ interface RegisterEventToolsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2969
+ id: 'registerEventToolsEmitTargetAndPayload';
2905
2970
  version: 'v2021_05_19';
2906
2971
  namespace: 'Calendar';
2907
2972
  name: '';
@@ -2915,47 +2980,46 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2915
2980
  };
2916
2981
  };
2917
2982
  /** . */
2983
+ 'target': {
2984
+ type: 'schema';
2985
+ isRequired: true;
2986
+ options: {
2987
+ schema: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetSchema;
2988
+ };
2989
+ };
2990
+ /** . */
2918
2991
  'payload': {
2919
2992
  type: 'schema';
2920
2993
  options: {
2921
- schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayloadSchema;
2994
+ schema: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayloadSchema;
2922
2995
  };
2923
2996
  };
2924
2997
  };
2925
2998
  }
2926
- interface ListCalendarEventTypesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitTargetAndPayloadSchema> {
2999
+ interface RegisterEventToolsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetAndPayloadSchema> {
2927
3000
  }
2928
3001
  }
2929
3002
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2930
- interface ListCalendarEventTypesResponsePayload {
2931
- 'calendarEventTypes': SpruceSchemas.Calendar.v2021_05_19.CalendarEventType[];
2932
- 'count': number;
3003
+ interface RegisterEventToolsResponsePayload {
3004
+ 'vcIds': string[];
2933
3005
  }
2934
- interface ListCalendarEventTypesResponsePayloadSchema extends SpruceSchema.Schema {
2935
- id: 'listCalendarEventTypesResponsePayload';
3006
+ interface RegisterEventToolsResponsePayloadSchema extends SpruceSchema.Schema {
3007
+ id: 'registerEventToolsResponsePayload';
2936
3008
  version: 'v2021_05_19';
2937
3009
  namespace: 'Calendar';
2938
3010
  name: '';
2939
3011
  fields: {
2940
3012
  /** . */
2941
- 'calendarEventTypes': {
2942
- type: 'schema';
3013
+ 'vcIds': {
3014
+ type: 'id';
2943
3015
  isRequired: true;
2944
3016
  isArray: true;
2945
3017
  minArrayLength: 0;
2946
- options: {
2947
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema;
2948
- };
2949
- };
2950
- /** . */
2951
- 'count': {
2952
- type: 'number';
2953
- isRequired: true;
2954
3018
  options: undefined;
2955
3019
  };
2956
3020
  };
2957
3021
  }
2958
- interface ListCalendarEventTypesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesResponsePayloadSchema> {
3022
+ interface RegisterEventToolsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsResponsePayloadSchema> {
2959
3023
  }
2960
3024
  }
2961
3025
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -3216,266 +3280,84 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3216
3280
  }, {
3217
3281
  "value": "15";
3218
3282
  "label": "15";
3219
- }, {
3220
- "value": "16";
3221
- "label": "16";
3222
- }, {
3223
- "value": "17";
3224
- "label": "17";
3225
- }, {
3226
- "value": "18";
3227
- "label": "18";
3228
- }, {
3229
- "value": "19";
3230
- "label": "19";
3231
- }, {
3232
- "value": "20";
3233
- "label": "20";
3234
- }, {
3235
- "value": "21";
3236
- "label": "21";
3237
- }, {
3238
- "value": "22";
3239
- "label": "22";
3240
- }, {
3241
- "value": "23";
3242
- "label": "23";
3243
- }, {
3244
- "value": "24";
3245
- "label": "24";
3246
- }, {
3247
- "value": "25";
3248
- "label": "25";
3249
- }, {
3250
- "value": "26";
3251
- "label": "26";
3252
- }, {
3253
- "value": "27";
3254
- "label": "27";
3255
- }, {
3256
- "value": "28";
3257
- "label": "28";
3258
- }, {
3259
- "value": "29";
3260
- "label": "29";
3261
- }, {
3262
- "value": "30";
3263
- "label": "30";
3264
- }, {
3265
- "value": "31";
3266
- "label": "31";
3267
- }];
3268
- };
3269
- };
3270
- /** . */
3271
- 'repeatsUntil': {
3272
- type: 'dateTime';
3273
- options: undefined;
3274
- };
3275
- /** . */
3276
- 'occurrences': {
3277
- type: 'number';
3278
- options: undefined;
3279
- };
3280
- /** . */
3281
- 'interval': {
3282
- type: 'number';
3283
- options: undefined;
3284
- };
3285
- /** . */
3286
- 'nthOccurrences': {
3287
- type: 'number';
3288
- isArray: true;
3289
- options: undefined;
3290
- };
3291
- /** . */
3292
- 'exclusionDates': {
3293
- type: 'schema';
3294
- isArray: true;
3295
- options: {
3296
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
3297
- };
3298
- };
3299
- /** . */
3300
- 'dateDeleted': {
3301
- type: 'dateTime';
3302
- options: undefined;
3303
- };
3304
- /** . */
3305
- 'nthInRepeating': {
3306
- type: 'number';
3307
- options: undefined;
3308
- };
3309
- /** . */
3310
- 'totalInRepeating': {
3311
- type: 'number';
3312
- options: undefined;
3313
- };
3314
- /** . */
3315
- 'meta': {
3316
- type: 'raw';
3317
- options: {
3318
- valueType: `Record<string, any>`;
3319
- };
3320
- };
3321
- /** . */
3322
- 'addToExclusionDates': {
3323
- type: 'schema';
3324
- isArray: true;
3325
- options: {
3326
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
3327
- };
3328
- };
3329
- /** . */
3330
- 'dateToUpdate': {
3331
- type: 'number';
3332
- options: undefined;
3333
- };
3334
- /** . */
3335
- 'shouldUpdateAllEventsGoingForward': {
3336
- type: 'boolean';
3337
- options: undefined;
3338
- };
3339
- /** . It will show on this person's calendar going forward! */
3340
- 'newTargetPersonId': {
3341
- type: 'id';
3342
- hint: 'It will show on this person\'s calendar going forward!';
3343
- options: undefined;
3344
- };
3345
- };
3346
- }
3347
- interface UpdateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema> {
3348
- }
3349
- }
3350
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3351
- interface UpdateCalendarEventEmitTargetAndPayload {
3352
- /** Source. */
3353
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3354
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTarget;
3355
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayload | undefined | null;
3356
- }
3357
- interface UpdateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3358
- id: 'updateCalendarEventEmitTargetAndPayload';
3359
- version: 'v2021_05_19';
3360
- namespace: 'Calendar';
3361
- name: '';
3362
- fields: {
3363
- /** Source. */
3364
- 'source': {
3365
- label: 'Source';
3366
- type: 'schema';
3367
- options: {
3368
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3369
- };
3370
- };
3371
- /** . */
3372
- 'target': {
3373
- type: 'schema';
3374
- isRequired: true;
3375
- options: {
3376
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema;
3377
- };
3378
- };
3379
- /** . */
3380
- 'payload': {
3381
- type: 'schema';
3382
- options: {
3383
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema;
3384
- };
3385
- };
3386
- };
3387
- }
3388
- interface UpdateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetAndPayloadSchema> {
3389
- }
3390
- }
3391
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3392
- interface UpdateCalendarEventResponsePayload {
3393
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
3394
- }
3395
- interface UpdateCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
3396
- id: 'updateCalendarEventResponsePayload';
3397
- version: 'v2021_05_19';
3398
- namespace: 'Calendar';
3399
- name: '';
3400
- fields: {
3401
- /** . */
3402
- 'calendarEvent': {
3403
- type: 'schema';
3404
- isRequired: true;
3405
- options: {
3406
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
3283
+ }, {
3284
+ "value": "16";
3285
+ "label": "16";
3286
+ }, {
3287
+ "value": "17";
3288
+ "label": "17";
3289
+ }, {
3290
+ "value": "18";
3291
+ "label": "18";
3292
+ }, {
3293
+ "value": "19";
3294
+ "label": "19";
3295
+ }, {
3296
+ "value": "20";
3297
+ "label": "20";
3298
+ }, {
3299
+ "value": "21";
3300
+ "label": "21";
3301
+ }, {
3302
+ "value": "22";
3303
+ "label": "22";
3304
+ }, {
3305
+ "value": "23";
3306
+ "label": "23";
3307
+ }, {
3308
+ "value": "24";
3309
+ "label": "24";
3310
+ }, {
3311
+ "value": "25";
3312
+ "label": "25";
3313
+ }, {
3314
+ "value": "26";
3315
+ "label": "26";
3316
+ }, {
3317
+ "value": "27";
3318
+ "label": "27";
3319
+ }, {
3320
+ "value": "28";
3321
+ "label": "28";
3322
+ }, {
3323
+ "value": "29";
3324
+ "label": "29";
3325
+ }, {
3326
+ "value": "30";
3327
+ "label": "30";
3328
+ }, {
3329
+ "value": "31";
3330
+ "label": "31";
3331
+ }];
3407
3332
  };
3408
3333
  };
3409
- };
3410
- }
3411
- interface UpdateCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventResponsePayloadSchema> {
3412
- }
3413
- }
3414
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3415
- interface UpdateCalendarEmitTarget {
3416
- 'organizationId': string;
3417
- 'calendarId': string;
3418
- }
3419
- interface UpdateCalendarEmitTargetSchema extends SpruceSchema.Schema {
3420
- id: 'updateCalendarEmitTarget';
3421
- version: 'v2021_05_19';
3422
- namespace: 'Calendar';
3423
- name: '';
3424
- fields: {
3425
- /** . */
3426
- 'organizationId': {
3427
- type: 'id';
3428
- isRequired: true;
3429
- options: undefined;
3430
- };
3431
3334
  /** . */
3432
- 'calendarId': {
3433
- type: 'id';
3434
- isRequired: true;
3335
+ 'repeatsUntil': {
3336
+ type: 'dateTime';
3435
3337
  options: undefined;
3436
3338
  };
3437
- };
3438
- }
3439
- interface UpdateCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema> {
3440
- }
3441
- }
3442
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3443
- interface UpdateCalendarEmitPayload {
3444
- 'slug'?: string | undefined | null;
3445
- 'title'?: string | undefined | null;
3446
- 'eventTypes'?: string[] | undefined | null;
3447
- 'target'?: SpruceSchemas.Calendar.v2021_05_19.CalendarTarget | undefined | null;
3448
- 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3449
- 'availableTimeSlotBehavior'?: ("include" | "exclude") | undefined | null;
3450
- }
3451
- interface UpdateCalendarEmitPayloadSchema extends SpruceSchema.Schema {
3452
- id: 'updateCalendarEmitPayload';
3453
- version: 'v2021_05_19';
3454
- namespace: 'Calendar';
3455
- name: '';
3456
- fields: {
3457
3339
  /** . */
3458
- 'slug': {
3459
- type: 'id';
3340
+ 'occurrences': {
3341
+ type: 'number';
3460
3342
  options: undefined;
3461
3343
  };
3462
3344
  /** . */
3463
- 'title': {
3464
- type: 'text';
3345
+ 'interval': {
3346
+ type: 'number';
3465
3347
  options: undefined;
3466
3348
  };
3467
3349
  /** . */
3468
- 'eventTypes': {
3469
- type: 'text';
3350
+ 'nthOccurrences': {
3351
+ type: 'number';
3470
3352
  isArray: true;
3471
- minArrayLength: 0;
3472
3353
  options: undefined;
3473
3354
  };
3474
3355
  /** . */
3475
- 'target': {
3356
+ 'exclusionDates': {
3476
3357
  type: 'schema';
3358
+ isArray: true;
3477
3359
  options: {
3478
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarTargetSchema;
3360
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
3479
3361
  };
3480
3362
  };
3481
3363
  /** . */
@@ -3484,163 +3366,60 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3484
3366
  options: undefined;
3485
3367
  };
3486
3368
  /** . */
3487
- 'availableTimeSlotBehavior': {
3488
- type: 'select';
3489
- options: {
3490
- choices: [{
3491
- "value": "include";
3492
- "label": "Include";
3493
- }, {
3494
- "value": "exclude";
3495
- "label": "Exclude";
3496
- }];
3497
- };
3498
- };
3499
- };
3500
- }
3501
- interface UpdateCalendarEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema> {
3502
- }
3503
- }
3504
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3505
- interface UpdateCalendarEmitTargetAndPayload {
3506
- /** Source. */
3507
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3508
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTarget;
3509
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayload | undefined | null;
3510
- }
3511
- interface UpdateCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3512
- id: 'updateCalendarEmitTargetAndPayload';
3513
- version: 'v2021_05_19';
3514
- namespace: 'Calendar';
3515
- name: '';
3516
- fields: {
3517
- /** Source. */
3518
- 'source': {
3519
- label: 'Source';
3520
- type: 'schema';
3521
- options: {
3522
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3523
- };
3369
+ 'nthInRepeating': {
3370
+ type: 'number';
3371
+ options: undefined;
3524
3372
  };
3525
3373
  /** . */
3526
- 'target': {
3527
- type: 'schema';
3528
- isRequired: true;
3529
- options: {
3530
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema;
3531
- };
3374
+ 'totalInRepeating': {
3375
+ type: 'number';
3376
+ options: undefined;
3532
3377
  };
3533
3378
  /** . */
3534
- 'payload': {
3535
- type: 'schema';
3379
+ 'meta': {
3380
+ type: 'raw';
3536
3381
  options: {
3537
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema;
3382
+ valueType: `Record<string, any>`;
3538
3383
  };
3539
3384
  };
3540
- };
3541
- }
3542
- interface UpdateCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetAndPayloadSchema> {
3543
- }
3544
- }
3545
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3546
- interface UpdateCalendarResponsePayload {
3547
- 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
3548
- }
3549
- interface UpdateCalendarResponsePayloadSchema extends SpruceSchema.Schema {
3550
- id: 'updateCalendarResponsePayload';
3551
- version: 'v2021_05_19';
3552
- namespace: 'Calendar';
3553
- name: '';
3554
- fields: {
3555
3385
  /** . */
3556
- 'calendar': {
3386
+ 'addToExclusionDates': {
3557
3387
  type: 'schema';
3558
- isRequired: true;
3388
+ isArray: true;
3559
3389
  options: {
3560
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
3390
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
3561
3391
  };
3562
3392
  };
3563
- };
3564
- }
3565
- interface UpdateCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarResponsePayloadSchema> {
3566
- }
3567
- }
3568
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3569
- interface UpdatePreferencesEmitTarget {
3570
- 'organizationId': string;
3571
- }
3572
- interface UpdatePreferencesEmitTargetSchema extends SpruceSchema.Schema {
3573
- id: 'updatePreferencesEmitTarget';
3574
- version: 'v2021_05_19';
3575
- namespace: 'Calendar';
3576
- name: '';
3577
- fields: {
3578
3393
  /** . */
3579
- 'organizationId': {
3580
- type: 'id';
3581
- isRequired: true;
3394
+ 'dateToUpdate': {
3395
+ type: 'number';
3582
3396
  options: undefined;
3583
3397
  };
3584
- };
3585
- }
3586
- interface UpdatePreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema> {
3587
- }
3588
- }
3589
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3590
- interface UpdatePreferencesEmitPayload {
3591
- 'selectedCalendarIds'?: string[] | undefined | null;
3592
- 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
3593
- 'visiblePeopleIds'?: string[] | undefined | null;
3594
- }
3595
- interface UpdatePreferencesEmitPayloadSchema extends SpruceSchema.Schema {
3596
- id: 'updatePreferencesEmitPayload';
3597
- version: 'v2021_05_19';
3598
- namespace: 'Calendar';
3599
- name: '';
3600
- fields: {
3601
3398
  /** . */
3602
- 'selectedCalendarIds': {
3603
- type: 'id';
3604
- isArray: true;
3605
- minArrayLength: 0;
3399
+ 'shouldUpdateAllEventsGoingForward': {
3400
+ type: 'boolean';
3606
3401
  options: undefined;
3607
3402
  };
3608
- /** . */
3609
- 'visiblePeopleMode': {
3610
- type: 'select';
3611
- options: {
3612
- choices: [{
3613
- "value": "me";
3614
- "label": "Me";
3615
- }, {
3616
- "value": "working";
3617
- "label": "Working";
3618
- }, {
3619
- "value": "custom";
3620
- "label": "Custom";
3621
- }];
3622
- };
3623
- };
3624
- /** . */
3625
- 'visiblePeopleIds': {
3626
- type: 'text';
3627
- isArray: true;
3403
+ /** . It will show on this person's calendar going forward! */
3404
+ 'newTargetPersonId': {
3405
+ type: 'id';
3406
+ hint: 'It will show on this person\'s calendar going forward!';
3628
3407
  options: undefined;
3629
3408
  };
3630
3409
  };
3631
3410
  }
3632
- interface UpdatePreferencesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema> {
3411
+ interface UpdateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema> {
3633
3412
  }
3634
3413
  }
3635
3414
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3636
- interface UpdatePreferencesEmitTargetAndPayload {
3415
+ interface UpdateCalendarEventEmitTargetAndPayload {
3637
3416
  /** Source. */
3638
3417
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3639
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTarget;
3640
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayload | undefined | null;
3418
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTarget;
3419
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayload | undefined | null;
3641
3420
  }
3642
- interface UpdatePreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3643
- id: 'updatePreferencesEmitTargetAndPayload';
3421
+ interface UpdateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3422
+ id: 'updateCalendarEventEmitTargetAndPayload';
3644
3423
  version: 'v2021_05_19';
3645
3424
  namespace: 'Calendar';
3646
3425
  name: '';
@@ -3658,40 +3437,42 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3658
3437
  type: 'schema';
3659
3438
  isRequired: true;
3660
3439
  options: {
3661
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema;
3440
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema;
3662
3441
  };
3663
3442
  };
3664
3443
  /** . */
3665
3444
  'payload': {
3666
3445
  type: 'schema';
3667
3446
  options: {
3668
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema;
3447
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema;
3669
3448
  };
3670
3449
  };
3671
3450
  };
3672
3451
  }
3673
- interface UpdatePreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetAndPayloadSchema> {
3452
+ interface UpdateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetAndPayloadSchema> {
3674
3453
  }
3675
3454
  }
3676
3455
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3677
- interface UpdatePreferencesResponsePayload {
3678
- 'success': boolean;
3456
+ interface UpdateCalendarEventResponsePayload {
3457
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
3679
3458
  }
3680
- interface UpdatePreferencesResponsePayloadSchema extends SpruceSchema.Schema {
3681
- id: 'updatePreferencesResponsePayload';
3459
+ interface UpdateCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
3460
+ id: 'updateCalendarEventResponsePayload';
3682
3461
  version: 'v2021_05_19';
3683
3462
  namespace: 'Calendar';
3684
3463
  name: '';
3685
3464
  fields: {
3686
3465
  /** . */
3687
- 'success': {
3688
- type: 'boolean';
3466
+ 'calendarEvent': {
3467
+ type: 'schema';
3689
3468
  isRequired: true;
3690
- options: undefined;
3469
+ options: {
3470
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
3471
+ };
3691
3472
  };
3692
3473
  };
3693
3474
  }
3694
- interface UpdatePreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesResponsePayloadSchema> {
3475
+ interface UpdateCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventResponsePayloadSchema> {
3695
3476
  }
3696
3477
  }
3697
3478
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -4230,6 +4011,225 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4230
4011
  interface UpsertCalendarEventTypeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeResponsePayloadSchema> {
4231
4012
  }
4232
4013
  }
4014
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4015
+ interface UpdatePreferencesEmitTarget {
4016
+ 'organizationId': string;
4017
+ }
4018
+ interface UpdatePreferencesEmitTargetSchema extends SpruceSchema.Schema {
4019
+ id: 'updatePreferencesEmitTarget';
4020
+ version: 'v2021_05_19';
4021
+ namespace: 'Calendar';
4022
+ name: '';
4023
+ fields: {
4024
+ /** . */
4025
+ 'organizationId': {
4026
+ type: 'id';
4027
+ isRequired: true;
4028
+ options: undefined;
4029
+ };
4030
+ };
4031
+ }
4032
+ interface UpdatePreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema> {
4033
+ }
4034
+ }
4035
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4036
+ interface UpdatePreferencesEmitPayload {
4037
+ 'selectedCalendarIds'?: string[] | undefined | null;
4038
+ 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
4039
+ 'visiblePeopleIds'?: string[] | undefined | null;
4040
+ }
4041
+ interface UpdatePreferencesEmitPayloadSchema extends SpruceSchema.Schema {
4042
+ id: 'updatePreferencesEmitPayload';
4043
+ version: 'v2021_05_19';
4044
+ namespace: 'Calendar';
4045
+ name: '';
4046
+ fields: {
4047
+ /** . */
4048
+ 'selectedCalendarIds': {
4049
+ type: 'id';
4050
+ isArray: true;
4051
+ minArrayLength: 0;
4052
+ options: undefined;
4053
+ };
4054
+ /** . */
4055
+ 'visiblePeopleMode': {
4056
+ type: 'select';
4057
+ options: {
4058
+ choices: [{
4059
+ "value": "me";
4060
+ "label": "Me";
4061
+ }, {
4062
+ "value": "working";
4063
+ "label": "Working";
4064
+ }, {
4065
+ "value": "custom";
4066
+ "label": "Custom";
4067
+ }];
4068
+ };
4069
+ };
4070
+ /** . */
4071
+ 'visiblePeopleIds': {
4072
+ type: 'text';
4073
+ isArray: true;
4074
+ options: undefined;
4075
+ };
4076
+ };
4077
+ }
4078
+ interface UpdatePreferencesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema> {
4079
+ }
4080
+ }
4081
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4082
+ interface UpdatePreferencesEmitTargetAndPayload {
4083
+ /** Source. */
4084
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4085
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTarget;
4086
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayload | undefined | null;
4087
+ }
4088
+ interface UpdatePreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4089
+ id: 'updatePreferencesEmitTargetAndPayload';
4090
+ version: 'v2021_05_19';
4091
+ namespace: 'Calendar';
4092
+ name: '';
4093
+ fields: {
4094
+ /** Source. */
4095
+ 'source': {
4096
+ label: 'Source';
4097
+ type: 'schema';
4098
+ options: {
4099
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
4100
+ };
4101
+ };
4102
+ /** . */
4103
+ 'target': {
4104
+ type: 'schema';
4105
+ isRequired: true;
4106
+ options: {
4107
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema;
4108
+ };
4109
+ };
4110
+ /** . */
4111
+ 'payload': {
4112
+ type: 'schema';
4113
+ options: {
4114
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema;
4115
+ };
4116
+ };
4117
+ };
4118
+ }
4119
+ interface UpdatePreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetAndPayloadSchema> {
4120
+ }
4121
+ }
4122
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4123
+ interface UpdatePreferencesResponsePayload {
4124
+ 'success': boolean;
4125
+ }
4126
+ interface UpdatePreferencesResponsePayloadSchema extends SpruceSchema.Schema {
4127
+ id: 'updatePreferencesResponsePayload';
4128
+ version: 'v2021_05_19';
4129
+ namespace: 'Calendar';
4130
+ name: '';
4131
+ fields: {
4132
+ /** . */
4133
+ 'success': {
4134
+ type: 'boolean';
4135
+ isRequired: true;
4136
+ options: undefined;
4137
+ };
4138
+ };
4139
+ }
4140
+ interface UpdatePreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesResponsePayloadSchema> {
4141
+ }
4142
+ }
4143
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4144
+ interface ListCalendarsEmitTarget {
4145
+ 'organizationId'?: string | undefined | null;
4146
+ 'calendarPersonId'?: string | undefined | null;
4147
+ }
4148
+ interface ListCalendarsEmitTargetSchema extends SpruceSchema.Schema {
4149
+ id: 'listCalendarsEmitTarget';
4150
+ version: 'v2021_05_19';
4151
+ namespace: 'Calendar';
4152
+ name: '';
4153
+ fields: {
4154
+ /** . */
4155
+ 'organizationId': {
4156
+ type: 'id';
4157
+ options: undefined;
4158
+ };
4159
+ /** . */
4160
+ 'calendarPersonId': {
4161
+ type: 'id';
4162
+ options: undefined;
4163
+ };
4164
+ };
4165
+ }
4166
+ interface ListCalendarsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetSchema> {
4167
+ }
4168
+ }
4169
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4170
+ interface ListCalendarsEmitTargetAndPayload {
4171
+ /** Source. */
4172
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4173
+ 'target'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTarget | undefined | null;
4174
+ }
4175
+ interface ListCalendarsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4176
+ id: 'listCalendarsEmitTargetAndPayload';
4177
+ version: 'v2021_05_19';
4178
+ namespace: 'Calendar';
4179
+ name: '';
4180
+ fields: {
4181
+ /** Source. */
4182
+ 'source': {
4183
+ label: 'Source';
4184
+ type: 'schema';
4185
+ options: {
4186
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
4187
+ };
4188
+ };
4189
+ /** . */
4190
+ 'target': {
4191
+ type: 'schema';
4192
+ options: {
4193
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetSchema;
4194
+ };
4195
+ };
4196
+ };
4197
+ }
4198
+ interface ListCalendarsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetAndPayloadSchema> {
4199
+ }
4200
+ }
4201
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4202
+ interface ListCalendarsResponsePayload {
4203
+ 'calendars': SpruceSchemas.Calendar.v2021_05_19.Calendar[];
4204
+ 'count': number;
4205
+ }
4206
+ interface ListCalendarsResponsePayloadSchema extends SpruceSchema.Schema {
4207
+ id: 'listCalendarsResponsePayload';
4208
+ version: 'v2021_05_19';
4209
+ namespace: 'Calendar';
4210
+ name: '';
4211
+ fields: {
4212
+ /** . */
4213
+ 'calendars': {
4214
+ type: 'schema';
4215
+ isRequired: true;
4216
+ isArray: true;
4217
+ minArrayLength: 0;
4218
+ options: {
4219
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
4220
+ };
4221
+ };
4222
+ /** . */
4223
+ 'count': {
4224
+ type: 'number';
4225
+ isRequired: true;
4226
+ options: undefined;
4227
+ };
4228
+ };
4229
+ }
4230
+ interface ListCalendarsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsResponsePayloadSchema> {
4231
+ }
4232
+ }
4233
4233
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4234
4234
  interface CreateCalendarEventEmitTarget {
4235
4235
  'organizationId'?: string | undefined | null;