@sprucelabs/spruce-calendar-components 38.1.2 → 38.1.3

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.
@@ -719,6 +719,122 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
719
719
  interface UpsertThemeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Heartwood.v2021_02_11.UpsertThemeResponsePayloadSchema> {
720
720
  }
721
721
  }
722
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
723
+ interface CancelCalendarEventEmitTarget {
724
+ 'locationId': string;
725
+ 'calendarEventId': string;
726
+ }
727
+ interface CancelCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
728
+ id: 'cancelCalendarEventEmitTarget';
729
+ version: 'v2021_05_19';
730
+ namespace: 'Calendar';
731
+ name: '';
732
+ fields: {
733
+ /** . */
734
+ 'locationId': {
735
+ type: 'id';
736
+ isRequired: true;
737
+ options: undefined;
738
+ };
739
+ /** . */
740
+ 'calendarEventId': {
741
+ type: 'id';
742
+ isRequired: true;
743
+ options: undefined;
744
+ };
745
+ };
746
+ }
747
+ interface CancelCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetSchema> {
748
+ }
749
+ }
750
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
751
+ interface CancelCalendarEventEmitPayload {
752
+ 'dateToCancel'?: number | undefined | null;
753
+ 'shouldCancelAllEventsGoingForward'?: boolean | undefined | null;
754
+ }
755
+ interface CancelCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
756
+ id: 'cancelCalendarEventEmitPayload';
757
+ version: 'v2021_05_19';
758
+ namespace: 'Calendar';
759
+ name: '';
760
+ fields: {
761
+ /** . */
762
+ 'dateToCancel': {
763
+ type: 'number';
764
+ options: undefined;
765
+ };
766
+ /** . */
767
+ 'shouldCancelAllEventsGoingForward': {
768
+ type: 'boolean';
769
+ options: undefined;
770
+ };
771
+ };
772
+ }
773
+ interface CancelCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayloadSchema> {
774
+ }
775
+ }
776
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
777
+ interface CancelCalendarEventEmitTargetAndPayload {
778
+ /** Source. */
779
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
780
+ 'target': SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTarget;
781
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayload | undefined | null;
782
+ }
783
+ interface CancelCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
784
+ id: 'cancelCalendarEventEmitTargetAndPayload';
785
+ version: 'v2021_05_19';
786
+ namespace: 'Calendar';
787
+ name: '';
788
+ fields: {
789
+ /** Source. */
790
+ 'source': {
791
+ label: 'Source';
792
+ type: 'schema';
793
+ options: {
794
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
795
+ };
796
+ };
797
+ /** . */
798
+ 'target': {
799
+ type: 'schema';
800
+ isRequired: true;
801
+ options: {
802
+ schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetSchema;
803
+ };
804
+ };
805
+ /** . */
806
+ 'payload': {
807
+ type: 'schema';
808
+ options: {
809
+ schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayloadSchema;
810
+ };
811
+ };
812
+ };
813
+ }
814
+ interface CancelCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetAndPayloadSchema> {
815
+ }
816
+ }
817
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
818
+ interface CancelCalendarEventResponsePayload {
819
+ 'totalDeleted': number;
820
+ }
821
+ interface CancelCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
822
+ id: 'cancelCalendarEventResponsePayload';
823
+ version: 'v2021_05_19';
824
+ namespace: 'Calendar';
825
+ name: '';
826
+ fields: {
827
+ /** . */
828
+ 'totalDeleted': {
829
+ type: 'number';
830
+ isRequired: true;
831
+ options: undefined;
832
+ };
833
+ };
834
+ }
835
+ interface CancelCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventResponsePayloadSchema> {
836
+ }
837
+ }
722
838
  namespace SpruceSchemas.Calendar.v2021_05_19 {
723
839
  interface CreateCalendarEmitTarget {
724
840
  'organizationId': string;
@@ -856,68 +972,41 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
856
972
  }
857
973
  }
858
974
  namespace SpruceSchemas.Calendar.v2021_05_19 {
859
- interface CancelCalendarEventEmitTarget {
860
- 'locationId': string;
861
- 'calendarEventId': string;
975
+ interface DeleteCalendarEmitTarget {
976
+ 'organizationId': string;
977
+ 'calendarId': string;
862
978
  }
863
- interface CancelCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
864
- id: 'cancelCalendarEventEmitTarget';
979
+ interface DeleteCalendarEmitTargetSchema extends SpruceSchema.Schema {
980
+ id: 'deleteCalendarEmitTarget';
865
981
  version: 'v2021_05_19';
866
982
  namespace: 'Calendar';
867
983
  name: '';
868
984
  fields: {
869
985
  /** . */
870
- 'locationId': {
986
+ 'organizationId': {
871
987
  type: 'id';
872
988
  isRequired: true;
873
989
  options: undefined;
874
990
  };
875
991
  /** . */
876
- 'calendarEventId': {
992
+ 'calendarId': {
877
993
  type: 'id';
878
994
  isRequired: true;
879
995
  options: undefined;
880
996
  };
881
997
  };
882
998
  }
883
- interface CancelCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetSchema> {
884
- }
885
- }
886
- namespace SpruceSchemas.Calendar.v2021_05_19 {
887
- interface CancelCalendarEventEmitPayload {
888
- 'dateToCancel'?: number | undefined | null;
889
- 'shouldCancelAllEventsGoingForward'?: boolean | undefined | null;
890
- }
891
- interface CancelCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
892
- id: 'cancelCalendarEventEmitPayload';
893
- version: 'v2021_05_19';
894
- namespace: 'Calendar';
895
- name: '';
896
- fields: {
897
- /** . */
898
- 'dateToCancel': {
899
- type: 'number';
900
- options: undefined;
901
- };
902
- /** . */
903
- 'shouldCancelAllEventsGoingForward': {
904
- type: 'boolean';
905
- options: undefined;
906
- };
907
- };
908
- }
909
- interface CancelCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayloadSchema> {
999
+ interface DeleteCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema> {
910
1000
  }
911
1001
  }
912
1002
  namespace SpruceSchemas.Calendar.v2021_05_19 {
913
- interface CancelCalendarEventEmitTargetAndPayload {
1003
+ interface DeleteCalendarEmitTargetAndPayload {
914
1004
  /** Source. */
915
1005
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
916
- 'target': SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTarget;
917
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayload | undefined | null;
1006
+ 'target': SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTarget;
918
1007
  }
919
- interface CancelCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
920
- id: 'cancelCalendarEventEmitTargetAndPayload';
1008
+ interface DeleteCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1009
+ id: 'deleteCalendarEmitTargetAndPayload';
921
1010
  version: 'v2021_05_19';
922
1011
  namespace: 'Calendar';
923
1012
  name: '';
@@ -935,27 +1024,20 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
935
1024
  type: 'schema';
936
1025
  isRequired: true;
937
1026
  options: {
938
- schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetSchema;
939
- };
940
- };
941
- /** . */
942
- 'payload': {
943
- type: 'schema';
944
- options: {
945
- schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayloadSchema;
1027
+ schema: SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema;
946
1028
  };
947
1029
  };
948
1030
  };
949
1031
  }
950
- interface CancelCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetAndPayloadSchema> {
1032
+ interface DeleteCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetAndPayloadSchema> {
951
1033
  }
952
1034
  }
953
1035
  namespace SpruceSchemas.Calendar.v2021_05_19 {
954
- interface CancelCalendarEventResponsePayload {
955
- 'totalDeleted': number;
1036
+ interface DeleteCalendarResponsePayload {
1037
+ 'totalDeleted'?: number | undefined | null;
956
1038
  }
957
- interface CancelCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
958
- id: 'cancelCalendarEventResponsePayload';
1039
+ interface DeleteCalendarResponsePayloadSchema extends SpruceSchema.Schema {
1040
+ id: 'deleteCalendarResponsePayload';
959
1041
  version: 'v2021_05_19';
960
1042
  namespace: 'Calendar';
961
1043
  name: '';
@@ -963,12 +1045,11 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
963
1045
  /** . */
964
1046
  'totalDeleted': {
965
1047
  type: 'number';
966
- isRequired: true;
967
1048
  options: undefined;
968
1049
  };
969
1050
  };
970
1051
  }
971
- interface CancelCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventResponsePayloadSchema> {
1052
+ interface DeleteCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarResponsePayloadSchema> {
972
1053
  }
973
1054
  }
974
1055
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -1083,442 +1164,38 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1083
1164
  }
1084
1165
  }
1085
1166
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1086
- interface DeleteCalendarEmitTarget {
1087
- 'organizationId': string;
1088
- 'calendarId': string;
1167
+ interface CreateCalendarEventTypeEmitPayload {
1168
+ 'name': string;
1169
+ 'slug': string;
1170
+ 'viewControllerId'?: string | undefined | null;
1171
+ 'lineIcon'?: ("add-circle" | "add-square" | "add" | "alarm" | "arrow-back" | "arrow-down-circle" | "arrow-down" | "arrow-next" | "arrow-up-circle" | "arrow-up" | "attachment" | "award-badge" | "binoculars" | "bolt" | "book-open" | "book" | "bookmark" | "calendar-add" | "calendar" | "camera" | "cellphone" | "checkmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clipboard" | "clock" | "close-circle" | "close-square" | "close" | "code" | "coffee" | "command" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "crop" | "cube" | "delete" | "document-blank" | "document-new" | "document-text" | "download-cloud" | "download" | "edit-box" | "edit-line" | "email" | "emoji-happy" | "emoji-sad" | "external-link" | "fav-heart" | "flag" | "flip-01" | "flip-02" | "folder" | "globe" | "hash-tag" | "headphones" | "help-buoy" | "help-circle" | "home" | "info" | "jump" | "layers" | "bar-graph" | "link-angle" | "link-flat" | "loader" | "location-pin" | "lock" | "logout" | "map" | "message-circle" | "message-square" | "mic-off" | "mic-on" | "minus-circle" | "minus-square" | "money-sign" | "more-horizontal" | "more-vertical" | "notification-off" | "notification-on" | "object" | "pause-circle" | "phone-unavailable" | "phone" | "photo" | "picked" | "pie-chart" | "play-circle" | "present" | "refresh-circle" | "refresh" | "repeat" | "restricted" | "rotate" | "search-no" | "search" | "selector-checked" | "selector-circle-filled" | "selector-circle" | "send" | "settings-filled" | "settings" | "share" | "shopping-bag" | "shopping-cart" | "sort-filter-down" | "sort-filter-up" | "sound-off" | "sound-on" | "sprucebot" | "star-filled" | "star" | "sun" | "tag" | "time" | "tool" | "trending-down" | "trending-up" | "triangle" | "unlock" | "upload-cloud" | "upload" | "user-add" | "user-delete" | "user" | "users" | "video-off" | "video" | "warning" | "wifi" | "zoom-in" | "zoom-out") | undefined | null;
1089
1172
  }
1090
- interface DeleteCalendarEmitTargetSchema extends SpruceSchema.Schema {
1091
- id: 'deleteCalendarEmitTarget';
1173
+ interface CreateCalendarEventTypeEmitPayloadSchema extends SpruceSchema.Schema {
1174
+ id: 'createCalendarEventTypeEmitPayload';
1092
1175
  version: 'v2021_05_19';
1093
1176
  namespace: 'Calendar';
1094
1177
  name: '';
1095
1178
  fields: {
1096
1179
  /** . */
1097
- 'organizationId': {
1098
- type: 'id';
1180
+ 'name': {
1181
+ type: 'text';
1099
1182
  isRequired: true;
1100
1183
  options: undefined;
1101
1184
  };
1102
1185
  /** . */
1103
- 'calendarId': {
1104
- type: 'id';
1186
+ 'slug': {
1187
+ type: 'text';
1105
1188
  isRequired: true;
1106
1189
  options: undefined;
1107
1190
  };
1108
- };
1109
- }
1110
- interface DeleteCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema> {
1111
- }
1112
- }
1113
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1114
- interface DeleteCalendarEmitTargetAndPayload {
1115
- /** Source. */
1116
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1117
- 'target': SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTarget;
1118
- }
1119
- interface DeleteCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1120
- id: 'deleteCalendarEmitTargetAndPayload';
1121
- version: 'v2021_05_19';
1122
- namespace: 'Calendar';
1123
- name: '';
1124
- fields: {
1125
- /** Source. */
1126
- 'source': {
1127
- label: 'Source';
1128
- type: 'schema';
1129
- options: {
1130
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1131
- };
1191
+ /** . */
1192
+ 'viewControllerId': {
1193
+ type: 'id';
1194
+ options: undefined;
1132
1195
  };
1133
1196
  /** . */
1134
- 'target': {
1135
- type: 'schema';
1136
- isRequired: true;
1137
- options: {
1138
- schema: SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema;
1139
- };
1140
- };
1141
- };
1142
- }
1143
- interface DeleteCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetAndPayloadSchema> {
1144
- }
1145
- }
1146
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1147
- interface DeleteCalendarResponsePayload {
1148
- 'totalDeleted'?: number | undefined | null;
1149
- }
1150
- interface DeleteCalendarResponsePayloadSchema extends SpruceSchema.Schema {
1151
- id: 'deleteCalendarResponsePayload';
1152
- version: 'v2021_05_19';
1153
- namespace: 'Calendar';
1154
- name: '';
1155
- fields: {
1156
- /** . */
1157
- 'totalDeleted': {
1158
- type: 'number';
1159
- options: undefined;
1160
- };
1161
- };
1162
- }
1163
- interface DeleteCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarResponsePayloadSchema> {
1164
- }
1165
- }
1166
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1167
- interface GetAvailableTimeSlotsEmitTarget {
1168
- 'organizationId'?: string | undefined | null;
1169
- 'locationId'?: string | undefined | null;
1170
- 'calendarIds': string[];
1171
- }
1172
- interface GetAvailableTimeSlotsEmitTargetSchema extends SpruceSchema.Schema {
1173
- id: 'getAvailableTimeSlotsEmitTarget';
1174
- version: 'v2021_05_19';
1175
- namespace: 'Calendar';
1176
- name: '';
1177
- fields: {
1178
- /** . */
1179
- 'organizationId': {
1180
- type: 'id';
1181
- options: undefined;
1182
- };
1183
- /** . */
1184
- 'locationId': {
1185
- type: 'id';
1186
- options: undefined;
1187
- };
1188
- /** . */
1189
- 'calendarIds': {
1190
- type: 'id';
1191
- isRequired: true;
1192
- isArray: true;
1193
- options: undefined;
1194
- };
1195
- };
1196
- }
1197
- interface GetAvailableTimeSlotsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema> {
1198
- }
1199
- }
1200
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1201
- interface Teammates {
1202
- 'personId': string;
1203
- 'durationMinutes': number;
1204
- }
1205
- interface TeammatesSchema extends SpruceSchema.Schema {
1206
- id: 'teammates';
1207
- version: 'v2021_05_19';
1208
- namespace: 'Calendar';
1209
- name: '';
1210
- fields: {
1211
- /** . */
1212
- 'personId': {
1213
- type: 'id';
1214
- isRequired: true;
1215
- options: undefined;
1216
- };
1217
- /** . */
1218
- 'durationMinutes': {
1219
- type: 'number';
1220
- isRequired: true;
1221
- options: undefined;
1222
- };
1223
- };
1224
- }
1225
- interface TeammatesEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema> {
1226
- }
1227
- }
1228
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1229
- interface GetAvailableTimeSlotsEmitPayload {
1230
- 'startDateTimeMs': number;
1231
- 'endDateTimeMs': number;
1232
- 'calculationMode': ("intersect" | "contiguous");
1233
- 'teammates': SpruceSchemas.Calendar.v2021_05_19.Teammates[];
1234
- }
1235
- interface GetAvailableTimeSlotsEmitPayloadSchema extends SpruceSchema.Schema {
1236
- id: 'getAvailableTimeSlotsEmitPayload';
1237
- version: 'v2021_05_19';
1238
- namespace: 'Calendar';
1239
- name: '';
1240
- fields: {
1241
- /** . */
1242
- 'startDateTimeMs': {
1243
- type: 'number';
1244
- isRequired: true;
1245
- options: undefined;
1246
- };
1247
- /** . */
1248
- 'endDateTimeMs': {
1249
- type: 'number';
1250
- isRequired: true;
1251
- options: undefined;
1252
- };
1253
- /** . */
1254
- 'calculationMode': {
1255
- type: 'select';
1256
- isRequired: true;
1257
- options: {
1258
- choices: [{
1259
- "value": "intersect";
1260
- "label": "Intersect";
1261
- }, {
1262
- "value": "contiguous";
1263
- "label": "Contiguous";
1264
- }];
1265
- };
1266
- };
1267
- /** . */
1268
- 'teammates': {
1269
- type: 'schema';
1270
- isRequired: true;
1271
- isArray: true;
1272
- options: {
1273
- schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema;
1274
- };
1275
- };
1276
- };
1277
- }
1278
- interface GetAvailableTimeSlotsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema> {
1279
- }
1280
- }
1281
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1282
- interface GetAvailableTimeSlotsEmitTargetAndPayload {
1283
- /** Source. */
1284
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1285
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTarget;
1286
- 'payload': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayload;
1287
- }
1288
- interface GetAvailableTimeSlotsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1289
- id: 'getAvailableTimeSlotsEmitTargetAndPayload';
1290
- version: 'v2021_05_19';
1291
- namespace: 'Calendar';
1292
- name: '';
1293
- fields: {
1294
- /** Source. */
1295
- 'source': {
1296
- label: 'Source';
1297
- type: 'schema';
1298
- options: {
1299
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1300
- };
1301
- };
1302
- /** . */
1303
- 'target': {
1304
- type: 'schema';
1305
- isRequired: true;
1306
- options: {
1307
- schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema;
1308
- };
1309
- };
1310
- /** . */
1311
- 'payload': {
1312
- type: 'schema';
1313
- isRequired: true;
1314
- options: {
1315
- schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema;
1316
- };
1317
- };
1318
- };
1319
- }
1320
- interface GetAvailableTimeSlotsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetAndPayloadSchema> {
1321
- }
1322
- }
1323
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1324
- interface TeammatesTimeslots {
1325
- 'personId': string;
1326
- 'startDateTimeMs': number;
1327
- }
1328
- interface TeammatesTimeslotsSchema extends SpruceSchema.Schema {
1329
- id: 'teammatesTimeslots';
1330
- version: 'v2021_05_19';
1331
- namespace: 'Calendar';
1332
- name: '';
1333
- fields: {
1334
- /** . */
1335
- 'personId': {
1336
- type: 'id';
1337
- isRequired: true;
1338
- options: undefined;
1339
- };
1340
- /** . */
1341
- 'startDateTimeMs': {
1342
- type: 'number';
1343
- isRequired: true;
1344
- options: undefined;
1345
- };
1346
- };
1347
- }
1348
- interface TeammatesTimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema> {
1349
- }
1350
- }
1351
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1352
- interface Timeslots {
1353
- 'slots': SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslots[];
1354
- }
1355
- interface TimeslotsSchema extends SpruceSchema.Schema {
1356
- id: 'timeslots';
1357
- version: 'v2021_05_19';
1358
- namespace: 'Calendar';
1359
- name: '';
1360
- fields: {
1361
- /** . */
1362
- 'slots': {
1363
- type: 'schema';
1364
- isRequired: true;
1365
- isArray: true;
1366
- options: {
1367
- schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema;
1368
- };
1369
- };
1370
- };
1371
- }
1372
- interface TimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema> {
1373
- }
1374
- }
1375
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1376
- interface GetAvailableTimeSlotsResponsePayload {
1377
- 'times': SpruceSchemas.Calendar.v2021_05_19.Timeslots[];
1378
- }
1379
- interface GetAvailableTimeSlotsResponsePayloadSchema extends SpruceSchema.Schema {
1380
- id: 'getAvailableTimeSlotsResponsePayload';
1381
- version: 'v2021_05_19';
1382
- namespace: 'Calendar';
1383
- name: '';
1384
- fields: {
1385
- /** . */
1386
- 'times': {
1387
- type: 'schema';
1388
- isRequired: true;
1389
- isArray: true;
1390
- minArrayLength: 0;
1391
- options: {
1392
- schema: SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema;
1393
- };
1394
- };
1395
- };
1396
- }
1397
- interface GetAvailableTimeSlotsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsResponsePayloadSchema> {
1398
- }
1399
- }
1400
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1401
- interface GetCalendarEmitTarget {
1402
- 'organizationId': string;
1403
- 'slug'?: string | undefined | null;
1404
- 'calendarId'?: string | undefined | null;
1405
- }
1406
- interface GetCalendarEmitTargetSchema extends SpruceSchema.Schema {
1407
- id: 'getCalendarEmitTarget';
1408
- version: 'v2021_05_19';
1409
- namespace: 'Calendar';
1410
- name: '';
1411
- fields: {
1412
- /** . */
1413
- 'organizationId': {
1414
- type: 'id';
1415
- isRequired: true;
1416
- options: undefined;
1417
- };
1418
- /** . */
1419
- 'slug': {
1420
- type: 'id';
1421
- options: undefined;
1422
- };
1423
- /** . */
1424
- 'calendarId': {
1425
- type: 'id';
1426
- options: undefined;
1427
- };
1428
- };
1429
- }
1430
- interface GetCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema> {
1431
- }
1432
- }
1433
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1434
- interface GetCalendarEmitTargetAndPayload {
1435
- /** Source. */
1436
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1437
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTarget;
1438
- }
1439
- interface GetCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1440
- id: 'getCalendarEmitTargetAndPayload';
1441
- version: 'v2021_05_19';
1442
- namespace: 'Calendar';
1443
- name: '';
1444
- fields: {
1445
- /** Source. */
1446
- 'source': {
1447
- label: 'Source';
1448
- type: 'schema';
1449
- options: {
1450
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1451
- };
1452
- };
1453
- /** . */
1454
- 'target': {
1455
- type: 'schema';
1456
- isRequired: true;
1457
- options: {
1458
- schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema;
1459
- };
1460
- };
1461
- };
1462
- }
1463
- interface GetCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetAndPayloadSchema> {
1464
- }
1465
- }
1466
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1467
- interface GetCalendarResponsePayload {
1468
- 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
1469
- }
1470
- interface GetCalendarResponsePayloadSchema extends SpruceSchema.Schema {
1471
- id: 'getCalendarResponsePayload';
1472
- version: 'v2021_05_19';
1473
- namespace: 'Calendar';
1474
- name: '';
1475
- fields: {
1476
- /** . */
1477
- 'calendar': {
1478
- type: 'schema';
1479
- isRequired: true;
1480
- options: {
1481
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
1482
- };
1483
- };
1484
- };
1485
- }
1486
- interface GetCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarResponsePayloadSchema> {
1487
- }
1488
- }
1489
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1490
- interface CreateCalendarEventTypeEmitPayload {
1491
- 'name': string;
1492
- 'slug': string;
1493
- 'viewControllerId'?: string | undefined | null;
1494
- 'lineIcon'?: ("add-circle" | "add-square" | "add" | "alarm" | "arrow-back" | "arrow-down-circle" | "arrow-down" | "arrow-next" | "arrow-up-circle" | "arrow-up" | "attachment" | "award-badge" | "binoculars" | "bolt" | "book-open" | "book" | "bookmark" | "calendar-add" | "calendar" | "camera" | "cellphone" | "checkmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clipboard" | "clock" | "close-circle" | "close-square" | "close" | "code" | "coffee" | "command" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "crop" | "cube" | "delete" | "document-blank" | "document-new" | "document-text" | "download-cloud" | "download" | "edit-box" | "edit-line" | "email" | "emoji-happy" | "emoji-sad" | "external-link" | "fav-heart" | "flag" | "flip-01" | "flip-02" | "folder" | "globe" | "hash-tag" | "headphones" | "help-buoy" | "help-circle" | "home" | "info" | "jump" | "layers" | "bar-graph" | "link-angle" | "link-flat" | "loader" | "location-pin" | "lock" | "logout" | "map" | "message-circle" | "message-square" | "mic-off" | "mic-on" | "minus-circle" | "minus-square" | "money-sign" | "more-horizontal" | "more-vertical" | "notification-off" | "notification-on" | "object" | "pause-circle" | "phone-unavailable" | "phone" | "photo" | "picked" | "pie-chart" | "play-circle" | "present" | "refresh-circle" | "refresh" | "repeat" | "restricted" | "rotate" | "search-no" | "search" | "selector-checked" | "selector-circle-filled" | "selector-circle" | "send" | "settings-filled" | "settings" | "share" | "shopping-bag" | "shopping-cart" | "sort-filter-down" | "sort-filter-up" | "sound-off" | "sound-on" | "sprucebot" | "star-filled" | "star" | "sun" | "tag" | "time" | "tool" | "trending-down" | "trending-up" | "triangle" | "unlock" | "upload-cloud" | "upload" | "user-add" | "user-delete" | "user" | "users" | "video-off" | "video" | "warning" | "wifi" | "zoom-in" | "zoom-out") | undefined | null;
1495
- }
1496
- interface CreateCalendarEventTypeEmitPayloadSchema extends SpruceSchema.Schema {
1497
- id: 'createCalendarEventTypeEmitPayload';
1498
- version: 'v2021_05_19';
1499
- namespace: 'Calendar';
1500
- name: '';
1501
- fields: {
1502
- /** . */
1503
- 'name': {
1504
- type: 'text';
1505
- isRequired: true;
1506
- options: undefined;
1507
- };
1508
- /** . */
1509
- 'slug': {
1510
- type: 'text';
1511
- isRequired: true;
1512
- options: undefined;
1513
- };
1514
- /** . */
1515
- 'viewControllerId': {
1516
- type: 'id';
1517
- options: undefined;
1518
- };
1519
- /** . */
1520
- 'lineIcon': {
1521
- type: 'select';
1197
+ 'lineIcon': {
1198
+ type: 'select';
1522
1199
  options: {
1523
1200
  choices: [{
1524
1201
  "value": "add-circle";
@@ -2094,34 +1771,48 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2094
1771
  }
2095
1772
  }
2096
1773
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2097
- interface GetPreferencesEmitTarget {
2098
- 'organizationId': string;
1774
+ interface GetAvailableTimeSlotsEmitTarget {
1775
+ 'organizationId'?: string | undefined | null;
1776
+ 'locationId'?: string | undefined | null;
1777
+ 'calendarIds': string[];
2099
1778
  }
2100
- interface GetPreferencesEmitTargetSchema extends SpruceSchema.Schema {
2101
- id: 'getPreferencesEmitTarget';
1779
+ interface GetAvailableTimeSlotsEmitTargetSchema extends SpruceSchema.Schema {
1780
+ id: 'getAvailableTimeSlotsEmitTarget';
2102
1781
  version: 'v2021_05_19';
2103
1782
  namespace: 'Calendar';
2104
1783
  name: '';
2105
1784
  fields: {
2106
1785
  /** . */
2107
1786
  'organizationId': {
1787
+ type: 'id';
1788
+ options: undefined;
1789
+ };
1790
+ /** . */
1791
+ 'locationId': {
1792
+ type: 'id';
1793
+ options: undefined;
1794
+ };
1795
+ /** . */
1796
+ 'calendarIds': {
2108
1797
  type: 'id';
2109
1798
  isRequired: true;
1799
+ isArray: true;
2110
1800
  options: undefined;
2111
1801
  };
2112
1802
  };
2113
1803
  }
2114
- interface GetPreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema> {
1804
+ interface GetAvailableTimeSlotsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema> {
2115
1805
  }
2116
1806
  }
2117
1807
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2118
- interface GetPreferencesEmitTargetAndPayload {
1808
+ interface GetAvailableTimeSlotsEmitTargetAndPayload {
2119
1809
  /** Source. */
2120
1810
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2121
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTarget;
1811
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTarget;
1812
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayload;
2122
1813
  }
2123
- interface GetPreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2124
- id: 'getPreferencesEmitTargetAndPayload';
1814
+ interface GetAvailableTimeSlotsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1815
+ id: 'getAvailableTimeSlotsEmitTargetAndPayload';
2125
1816
  version: 'v2021_05_19';
2126
1817
  namespace: 'Calendar';
2127
1818
  name: '';
@@ -2139,226 +1830,267 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2139
1830
  type: 'schema';
2140
1831
  isRequired: true;
2141
1832
  options: {
2142
- schema: SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema;
1833
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema;
1834
+ };
1835
+ };
1836
+ /** . */
1837
+ 'payload': {
1838
+ type: 'schema';
1839
+ isRequired: true;
1840
+ options: {
1841
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema;
2143
1842
  };
2144
1843
  };
2145
1844
  };
2146
1845
  }
2147
- interface GetPreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetAndPayloadSchema> {
1846
+ interface GetAvailableTimeSlotsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetAndPayloadSchema> {
2148
1847
  }
2149
1848
  }
2150
1849
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2151
- interface GetPreferencesResponsePayload {
2152
- 'selectedCalendarIds'?: string[] | undefined | null;
2153
- 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
2154
- 'visiblePeopleIds'?: string[] | undefined | null;
1850
+ interface Teammates {
1851
+ 'personId': string;
1852
+ 'durationMinutes': number;
2155
1853
  }
2156
- interface GetPreferencesResponsePayloadSchema extends SpruceSchema.Schema {
2157
- id: 'getPreferencesResponsePayload';
1854
+ interface TeammatesSchema extends SpruceSchema.Schema {
1855
+ id: 'teammates';
2158
1856
  version: 'v2021_05_19';
2159
1857
  namespace: 'Calendar';
2160
1858
  name: '';
2161
1859
  fields: {
2162
1860
  /** . */
2163
- 'selectedCalendarIds': {
1861
+ 'personId': {
2164
1862
  type: 'id';
2165
- isArray: true;
2166
- minArrayLength: 0;
1863
+ isRequired: true;
2167
1864
  options: undefined;
2168
1865
  };
2169
1866
  /** . */
2170
- 'visiblePeopleMode': {
1867
+ 'durationMinutes': {
1868
+ type: 'number';
1869
+ isRequired: true;
1870
+ options: undefined;
1871
+ };
1872
+ };
1873
+ }
1874
+ interface TeammatesEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema> {
1875
+ }
1876
+ }
1877
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1878
+ interface GetAvailableTimeSlotsEmitPayload {
1879
+ 'startDateTimeMs': number;
1880
+ 'endDateTimeMs': number;
1881
+ 'calculationMode': ("intersect" | "contiguous");
1882
+ 'teammates': SpruceSchemas.Calendar.v2021_05_19.Teammates[];
1883
+ }
1884
+ interface GetAvailableTimeSlotsEmitPayloadSchema extends SpruceSchema.Schema {
1885
+ id: 'getAvailableTimeSlotsEmitPayload';
1886
+ version: 'v2021_05_19';
1887
+ namespace: 'Calendar';
1888
+ name: '';
1889
+ fields: {
1890
+ /** . */
1891
+ 'startDateTimeMs': {
1892
+ type: 'number';
1893
+ isRequired: true;
1894
+ options: undefined;
1895
+ };
1896
+ /** . */
1897
+ 'endDateTimeMs': {
1898
+ type: 'number';
1899
+ isRequired: true;
1900
+ options: undefined;
1901
+ };
1902
+ /** . */
1903
+ 'calculationMode': {
2171
1904
  type: 'select';
1905
+ isRequired: true;
2172
1906
  options: {
2173
1907
  choices: [{
2174
- "value": "me";
2175
- "label": "Me";
2176
- }, {
2177
- "value": "working";
2178
- "label": "Working";
1908
+ "value": "intersect";
1909
+ "label": "Intersect";
2179
1910
  }, {
2180
- "value": "custom";
2181
- "label": "Custom";
1911
+ "value": "contiguous";
1912
+ "label": "Contiguous";
2182
1913
  }];
2183
1914
  };
2184
1915
  };
2185
1916
  /** . */
2186
- 'visiblePeopleIds': {
2187
- type: 'text';
1917
+ 'teammates': {
1918
+ type: 'schema';
1919
+ isRequired: true;
2188
1920
  isArray: true;
2189
- options: undefined;
1921
+ options: {
1922
+ schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema;
1923
+ };
2190
1924
  };
2191
1925
  };
2192
1926
  }
2193
- interface GetPreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesResponsePayloadSchema> {
1927
+ interface GetAvailableTimeSlotsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema> {
2194
1928
  }
2195
1929
  }
2196
1930
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2197
- interface GetConflictsForTimeRangeEmitTarget {
2198
- 'organizationId': string;
2199
- 'calendarIds': string[];
1931
+ interface TeammatesTimeslots {
1932
+ 'personId': string;
1933
+ 'startDateTimeMs': number;
2200
1934
  }
2201
- interface GetConflictsForTimeRangeEmitTargetSchema extends SpruceSchema.Schema {
2202
- id: 'getConflictsForTimeRangeEmitTarget';
1935
+ interface TeammatesTimeslotsSchema extends SpruceSchema.Schema {
1936
+ id: 'teammatesTimeslots';
2203
1937
  version: 'v2021_05_19';
2204
1938
  namespace: 'Calendar';
2205
1939
  name: '';
2206
1940
  fields: {
2207
1941
  /** . */
2208
- 'organizationId': {
1942
+ 'personId': {
2209
1943
  type: 'id';
2210
1944
  isRequired: true;
2211
1945
  options: undefined;
2212
1946
  };
2213
1947
  /** . */
2214
- 'calendarIds': {
2215
- type: 'id';
1948
+ 'startDateTimeMs': {
1949
+ type: 'number';
2216
1950
  isRequired: true;
2217
- isArray: true;
2218
1951
  options: undefined;
2219
1952
  };
2220
1953
  };
2221
1954
  }
2222
- interface GetConflictsForTimeRangeEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema> {
1955
+ interface TeammatesTimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema> {
2223
1956
  }
2224
1957
  }
2225
1958
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2226
- interface GetConflictsForTimeRangeEmitTargetAndPayload {
2227
- /** Source. */
2228
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2229
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTarget;
2230
- 'payload': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayload;
1959
+ interface Timeslots {
1960
+ 'slots': SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslots[];
2231
1961
  }
2232
- interface GetConflictsForTimeRangeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2233
- id: 'getConflictsForTimeRangeEmitTargetAndPayload';
1962
+ interface TimeslotsSchema extends SpruceSchema.Schema {
1963
+ id: 'timeslots';
2234
1964
  version: 'v2021_05_19';
2235
1965
  namespace: 'Calendar';
2236
1966
  name: '';
2237
1967
  fields: {
2238
- /** Source. */
2239
- 'source': {
2240
- label: 'Source';
2241
- type: 'schema';
2242
- options: {
2243
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2244
- };
2245
- };
2246
1968
  /** . */
2247
- 'target': {
1969
+ 'slots': {
2248
1970
  type: 'schema';
2249
1971
  isRequired: true;
1972
+ isArray: true;
2250
1973
  options: {
2251
- schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema;
1974
+ schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema;
2252
1975
  };
2253
1976
  };
1977
+ };
1978
+ }
1979
+ interface TimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema> {
1980
+ }
1981
+ }
1982
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1983
+ interface GetAvailableTimeSlotsResponsePayload {
1984
+ 'times': SpruceSchemas.Calendar.v2021_05_19.Timeslots[];
1985
+ }
1986
+ interface GetAvailableTimeSlotsResponsePayloadSchema extends SpruceSchema.Schema {
1987
+ id: 'getAvailableTimeSlotsResponsePayload';
1988
+ version: 'v2021_05_19';
1989
+ namespace: 'Calendar';
1990
+ name: '';
1991
+ fields: {
2254
1992
  /** . */
2255
- 'payload': {
1993
+ 'times': {
2256
1994
  type: 'schema';
2257
1995
  isRequired: true;
1996
+ isArray: true;
1997
+ minArrayLength: 0;
2258
1998
  options: {
2259
- schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema;
1999
+ schema: SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema;
2260
2000
  };
2261
2001
  };
2262
2002
  };
2263
2003
  }
2264
- interface GetConflictsForTimeRangeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetAndPayloadSchema> {
2004
+ interface GetAvailableTimeSlotsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsResponsePayloadSchema> {
2265
2005
  }
2266
2006
  }
2267
2007
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2268
- interface Teammate {
2269
- 'personId': string;
2270
- 'durationMinutes': number;
2008
+ interface GetCalendarEmitTarget {
2009
+ 'organizationId': string;
2010
+ 'slug'?: string | undefined | null;
2011
+ 'calendarId'?: string | undefined | null;
2271
2012
  }
2272
- interface TeammateSchema extends SpruceSchema.Schema {
2273
- id: 'teammate';
2013
+ interface GetCalendarEmitTargetSchema extends SpruceSchema.Schema {
2014
+ id: 'getCalendarEmitTarget';
2274
2015
  version: 'v2021_05_19';
2275
2016
  namespace: 'Calendar';
2276
2017
  name: '';
2277
2018
  fields: {
2278
2019
  /** . */
2279
- 'personId': {
2020
+ 'organizationId': {
2280
2021
  type: 'id';
2281
2022
  isRequired: true;
2282
2023
  options: undefined;
2283
2024
  };
2284
2025
  /** . */
2285
- 'durationMinutes': {
2286
- type: 'number';
2287
- isRequired: true;
2026
+ 'slug': {
2027
+ type: 'id';
2028
+ options: undefined;
2029
+ };
2030
+ /** . */
2031
+ 'calendarId': {
2032
+ type: 'id';
2288
2033
  options: undefined;
2289
2034
  };
2290
2035
  };
2291
2036
  }
2292
- interface TeammateEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammateSchema> {
2037
+ interface GetCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema> {
2293
2038
  }
2294
2039
  }
2295
2040
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2296
- interface GetConflictsForTimeRangeEmitPayload {
2297
- 'startDateTimeMs': number;
2298
- 'teammate': SpruceSchemas.Calendar.v2021_05_19.Teammate;
2041
+ interface GetCalendarEmitTargetAndPayload {
2042
+ /** Source. */
2043
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2044
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTarget;
2299
2045
  }
2300
- interface GetConflictsForTimeRangeEmitPayloadSchema extends SpruceSchema.Schema {
2301
- id: 'getConflictsForTimeRangeEmitPayload';
2046
+ interface GetCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2047
+ id: 'getCalendarEmitTargetAndPayload';
2302
2048
  version: 'v2021_05_19';
2303
2049
  namespace: 'Calendar';
2304
2050
  name: '';
2305
2051
  fields: {
2306
- /** . */
2307
- 'startDateTimeMs': {
2308
- type: 'number';
2309
- isRequired: true;
2310
- options: undefined;
2052
+ /** Source. */
2053
+ 'source': {
2054
+ label: 'Source';
2055
+ type: 'schema';
2056
+ options: {
2057
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2058
+ };
2311
2059
  };
2312
2060
  /** . */
2313
- 'teammate': {
2061
+ 'target': {
2314
2062
  type: 'schema';
2315
2063
  isRequired: true;
2316
2064
  options: {
2317
- schema: SpruceSchemas.Calendar.v2021_05_19.TeammateSchema;
2065
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema;
2318
2066
  };
2319
2067
  };
2320
2068
  };
2321
2069
  }
2322
- interface GetConflictsForTimeRangeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema> {
2070
+ interface GetCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetAndPayloadSchema> {
2323
2071
  }
2324
2072
  }
2325
2073
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2326
- interface GetConflictsForTimeRangeResponsePayload {
2327
- 'isAvailable': boolean;
2328
- 'excludedBy'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2329
- 'overlapsWith'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2074
+ interface GetCalendarResponsePayload {
2075
+ 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
2330
2076
  }
2331
- interface GetConflictsForTimeRangeResponsePayloadSchema extends SpruceSchema.Schema {
2332
- id: 'getConflictsForTimeRangeResponsePayload';
2077
+ interface GetCalendarResponsePayloadSchema extends SpruceSchema.Schema {
2078
+ id: 'getCalendarResponsePayload';
2333
2079
  version: 'v2021_05_19';
2334
2080
  namespace: 'Calendar';
2335
2081
  name: '';
2336
2082
  fields: {
2337
2083
  /** . */
2338
- 'isAvailable': {
2339
- type: 'boolean';
2340
- isRequired: true;
2341
- options: undefined;
2342
- };
2343
- /** . */
2344
- 'excludedBy': {
2345
- type: 'schema';
2346
- isArray: true;
2347
- options: {
2348
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2349
- };
2350
- };
2351
- /** . */
2352
- 'overlapsWith': {
2084
+ 'calendar': {
2353
2085
  type: 'schema';
2354
- isArray: true;
2086
+ isRequired: true;
2355
2087
  options: {
2356
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2088
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
2357
2089
  };
2358
2090
  };
2359
2091
  };
2360
2092
  }
2361
- interface GetConflictsForTimeRangeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeResponsePayloadSchema> {
2093
+ interface GetCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarResponsePayloadSchema> {
2362
2094
  }
2363
2095
  }
2364
2096
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -2446,33 +2178,43 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2446
2178
  }
2447
2179
  }
2448
2180
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2449
- interface ListCalendarEventTypesEmitPayload {
2450
- 'shouldShowOnlyMine'?: boolean | undefined | null;
2181
+ interface GetConflictsForTimeRangeEmitTarget {
2182
+ 'organizationId': string;
2183
+ 'calendarIds': string[];
2451
2184
  }
2452
- interface ListCalendarEventTypesEmitPayloadSchema extends SpruceSchema.Schema {
2453
- id: 'listCalendarEventTypesEmitPayload';
2185
+ interface GetConflictsForTimeRangeEmitTargetSchema extends SpruceSchema.Schema {
2186
+ id: 'getConflictsForTimeRangeEmitTarget';
2454
2187
  version: 'v2021_05_19';
2455
2188
  namespace: 'Calendar';
2456
2189
  name: '';
2457
2190
  fields: {
2458
2191
  /** . */
2459
- 'shouldShowOnlyMine': {
2460
- type: 'boolean';
2192
+ 'organizationId': {
2193
+ type: 'id';
2194
+ isRequired: true;
2195
+ options: undefined;
2196
+ };
2197
+ /** . */
2198
+ 'calendarIds': {
2199
+ type: 'id';
2200
+ isRequired: true;
2201
+ isArray: true;
2461
2202
  options: undefined;
2462
2203
  };
2463
2204
  };
2464
2205
  }
2465
- interface ListCalendarEventTypesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayloadSchema> {
2206
+ interface GetConflictsForTimeRangeEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema> {
2466
2207
  }
2467
2208
  }
2468
2209
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2469
- interface ListCalendarEventTypesEmitTargetAndPayload {
2210
+ interface GetConflictsForTimeRangeEmitTargetAndPayload {
2470
2211
  /** Source. */
2471
2212
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2472
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayload | undefined | null;
2213
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTarget;
2214
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayload;
2473
2215
  }
2474
- interface ListCalendarEventTypesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2475
- id: 'listCalendarEventTypesEmitTargetAndPayload';
2216
+ interface GetConflictsForTimeRangeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2217
+ id: 'getConflictsForTimeRangeEmitTargetAndPayload';
2476
2218
  version: 'v2021_05_19';
2477
2219
  namespace: 'Calendar';
2478
2220
  name: '';
@@ -2486,112 +2228,152 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2486
2228
  };
2487
2229
  };
2488
2230
  /** . */
2231
+ 'target': {
2232
+ type: 'schema';
2233
+ isRequired: true;
2234
+ options: {
2235
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema;
2236
+ };
2237
+ };
2238
+ /** . */
2489
2239
  'payload': {
2490
2240
  type: 'schema';
2241
+ isRequired: true;
2491
2242
  options: {
2492
- schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayloadSchema;
2243
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema;
2493
2244
  };
2494
2245
  };
2495
2246
  };
2496
2247
  }
2497
- interface ListCalendarEventTypesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitTargetAndPayloadSchema> {
2248
+ interface GetConflictsForTimeRangeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetAndPayloadSchema> {
2498
2249
  }
2499
2250
  }
2500
2251
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2501
- interface ListCalendarEventTypesResponsePayload {
2502
- 'calendarEventTypes': SpruceSchemas.Calendar.v2021_05_19.CalendarEventType[];
2503
- 'count': number;
2252
+ interface Teammate {
2253
+ 'personId': string;
2254
+ 'durationMinutes': number;
2504
2255
  }
2505
- interface ListCalendarEventTypesResponsePayloadSchema extends SpruceSchema.Schema {
2506
- id: 'listCalendarEventTypesResponsePayload';
2256
+ interface TeammateSchema extends SpruceSchema.Schema {
2257
+ id: 'teammate';
2507
2258
  version: 'v2021_05_19';
2508
2259
  namespace: 'Calendar';
2509
2260
  name: '';
2510
2261
  fields: {
2511
2262
  /** . */
2512
- 'calendarEventTypes': {
2513
- type: 'schema';
2263
+ 'personId': {
2264
+ type: 'id';
2514
2265
  isRequired: true;
2515
- isArray: true;
2516
- minArrayLength: 0;
2517
- options: {
2518
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema;
2519
- };
2266
+ options: undefined;
2520
2267
  };
2521
2268
  /** . */
2522
- 'count': {
2269
+ 'durationMinutes': {
2523
2270
  type: 'number';
2524
2271
  isRequired: true;
2525
2272
  options: undefined;
2526
2273
  };
2527
2274
  };
2528
2275
  }
2529
- interface ListCalendarEventTypesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesResponsePayloadSchema> {
2276
+ interface TeammateEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammateSchema> {
2530
2277
  }
2531
2278
  }
2532
2279
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2533
- interface RegisterEventToolsEmitTarget {
2534
- 'organizationId': string;
2535
- 'calendarEventId': string;
2536
- 'locationId'?: string | undefined | null;
2280
+ interface GetConflictsForTimeRangeEmitPayload {
2281
+ 'startDateTimeMs': number;
2282
+ 'teammate': SpruceSchemas.Calendar.v2021_05_19.Teammate;
2537
2283
  }
2538
- interface RegisterEventToolsEmitTargetSchema extends SpruceSchema.Schema {
2539
- id: 'registerEventToolsEmitTarget';
2284
+ interface GetConflictsForTimeRangeEmitPayloadSchema extends SpruceSchema.Schema {
2285
+ id: 'getConflictsForTimeRangeEmitPayload';
2540
2286
  version: 'v2021_05_19';
2541
2287
  namespace: 'Calendar';
2542
2288
  name: '';
2543
2289
  fields: {
2544
2290
  /** . */
2545
- 'organizationId': {
2546
- type: 'id';
2291
+ 'startDateTimeMs': {
2292
+ type: 'number';
2547
2293
  isRequired: true;
2548
2294
  options: undefined;
2549
2295
  };
2550
2296
  /** . */
2551
- 'calendarEventId': {
2552
- type: 'id';
2297
+ 'teammate': {
2298
+ type: 'schema';
2553
2299
  isRequired: true;
2554
- options: undefined;
2300
+ options: {
2301
+ schema: SpruceSchemas.Calendar.v2021_05_19.TeammateSchema;
2302
+ };
2555
2303
  };
2304
+ };
2305
+ }
2306
+ interface GetConflictsForTimeRangeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema> {
2307
+ }
2308
+ }
2309
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2310
+ interface GetConflictsForTimeRangeResponsePayload {
2311
+ 'isAvailable': boolean;
2312
+ 'excludedBy'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2313
+ 'overlapsWith'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2314
+ }
2315
+ interface GetConflictsForTimeRangeResponsePayloadSchema extends SpruceSchema.Schema {
2316
+ id: 'getConflictsForTimeRangeResponsePayload';
2317
+ version: 'v2021_05_19';
2318
+ namespace: 'Calendar';
2319
+ name: '';
2320
+ fields: {
2556
2321
  /** . */
2557
- 'locationId': {
2558
- type: 'id';
2322
+ 'isAvailable': {
2323
+ type: 'boolean';
2324
+ isRequired: true;
2559
2325
  options: undefined;
2560
2326
  };
2327
+ /** . */
2328
+ 'excludedBy': {
2329
+ type: 'schema';
2330
+ isArray: true;
2331
+ options: {
2332
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2333
+ };
2334
+ };
2335
+ /** . */
2336
+ 'overlapsWith': {
2337
+ type: 'schema';
2338
+ isArray: true;
2339
+ options: {
2340
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2341
+ };
2342
+ };
2561
2343
  };
2562
2344
  }
2563
- interface RegisterEventToolsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetSchema> {
2345
+ interface GetConflictsForTimeRangeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeResponsePayloadSchema> {
2564
2346
  }
2565
2347
  }
2566
2348
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2567
- interface RegisterEventToolsEmitPayload {
2568
- 'eventTypeSlug'?: string | undefined | null;
2349
+ interface GetPreferencesEmitTarget {
2350
+ 'organizationId': string;
2569
2351
  }
2570
- interface RegisterEventToolsEmitPayloadSchema extends SpruceSchema.Schema {
2571
- id: 'registerEventToolsEmitPayload';
2352
+ interface GetPreferencesEmitTargetSchema extends SpruceSchema.Schema {
2353
+ id: 'getPreferencesEmitTarget';
2572
2354
  version: 'v2021_05_19';
2573
2355
  namespace: 'Calendar';
2574
2356
  name: '';
2575
2357
  fields: {
2576
2358
  /** . */
2577
- 'eventTypeSlug': {
2359
+ 'organizationId': {
2578
2360
  type: 'id';
2361
+ isRequired: true;
2579
2362
  options: undefined;
2580
2363
  };
2581
2364
  };
2582
2365
  }
2583
- interface RegisterEventToolsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayloadSchema> {
2366
+ interface GetPreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema> {
2584
2367
  }
2585
2368
  }
2586
2369
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2587
- interface RegisterEventToolsEmitTargetAndPayload {
2370
+ interface GetPreferencesEmitTargetAndPayload {
2588
2371
  /** Source. */
2589
2372
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2590
- 'target': SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTarget;
2591
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayload | undefined | null;
2373
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTarget;
2592
2374
  }
2593
- interface RegisterEventToolsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2594
- id: 'registerEventToolsEmitTargetAndPayload';
2375
+ interface GetPreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2376
+ id: 'getPreferencesEmitTargetAndPayload';
2595
2377
  version: 'v2021_05_19';
2596
2378
  namespace: 'Calendar';
2597
2379
  name: '';
@@ -2609,78 +2391,88 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2609
2391
  type: 'schema';
2610
2392
  isRequired: true;
2611
2393
  options: {
2612
- schema: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetSchema;
2613
- };
2614
- };
2615
- /** . */
2616
- 'payload': {
2617
- type: 'schema';
2618
- options: {
2619
- schema: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayloadSchema;
2394
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema;
2620
2395
  };
2621
2396
  };
2622
2397
  };
2623
2398
  }
2624
- interface RegisterEventToolsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetAndPayloadSchema> {
2399
+ interface GetPreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetAndPayloadSchema> {
2625
2400
  }
2626
2401
  }
2627
2402
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2628
- interface RegisterEventToolsResponsePayload {
2629
- 'vcIds': string[];
2403
+ interface GetPreferencesResponsePayload {
2404
+ 'selectedCalendarIds'?: string[] | undefined | null;
2405
+ 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
2406
+ 'visiblePeopleIds'?: string[] | undefined | null;
2630
2407
  }
2631
- interface RegisterEventToolsResponsePayloadSchema extends SpruceSchema.Schema {
2632
- id: 'registerEventToolsResponsePayload';
2408
+ interface GetPreferencesResponsePayloadSchema extends SpruceSchema.Schema {
2409
+ id: 'getPreferencesResponsePayload';
2633
2410
  version: 'v2021_05_19';
2634
2411
  namespace: 'Calendar';
2635
2412
  name: '';
2636
2413
  fields: {
2637
2414
  /** . */
2638
- 'vcIds': {
2415
+ 'selectedCalendarIds': {
2639
2416
  type: 'id';
2640
- isRequired: true;
2641
2417
  isArray: true;
2642
2418
  minArrayLength: 0;
2643
2419
  options: undefined;
2644
2420
  };
2421
+ /** . */
2422
+ 'visiblePeopleMode': {
2423
+ type: 'select';
2424
+ options: {
2425
+ choices: [{
2426
+ "value": "me";
2427
+ "label": "Me";
2428
+ }, {
2429
+ "value": "working";
2430
+ "label": "Working";
2431
+ }, {
2432
+ "value": "custom";
2433
+ "label": "Custom";
2434
+ }];
2435
+ };
2436
+ };
2437
+ /** . */
2438
+ 'visiblePeopleIds': {
2439
+ type: 'text';
2440
+ isArray: true;
2441
+ options: undefined;
2442
+ };
2645
2443
  };
2646
2444
  }
2647
- interface RegisterEventToolsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsResponsePayloadSchema> {
2445
+ interface GetPreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesResponsePayloadSchema> {
2648
2446
  }
2649
2447
  }
2650
2448
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2651
- interface ListCalendarsEmitTarget {
2652
- 'organizationId'?: string | undefined | null;
2653
- 'calendarPersonId'?: string | undefined | null;
2449
+ interface ListCalendarEventTypesEmitPayload {
2450
+ 'shouldShowOnlyMine'?: boolean | undefined | null;
2654
2451
  }
2655
- interface ListCalendarsEmitTargetSchema extends SpruceSchema.Schema {
2656
- id: 'listCalendarsEmitTarget';
2452
+ interface ListCalendarEventTypesEmitPayloadSchema extends SpruceSchema.Schema {
2453
+ id: 'listCalendarEventTypesEmitPayload';
2657
2454
  version: 'v2021_05_19';
2658
2455
  namespace: 'Calendar';
2659
2456
  name: '';
2660
2457
  fields: {
2661
2458
  /** . */
2662
- 'organizationId': {
2663
- type: 'id';
2664
- options: undefined;
2665
- };
2666
- /** . */
2667
- 'calendarPersonId': {
2668
- type: 'id';
2459
+ 'shouldShowOnlyMine': {
2460
+ type: 'boolean';
2669
2461
  options: undefined;
2670
2462
  };
2671
2463
  };
2672
2464
  }
2673
- interface ListCalendarsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetSchema> {
2465
+ interface ListCalendarEventTypesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayloadSchema> {
2674
2466
  }
2675
2467
  }
2676
2468
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2677
- interface ListCalendarsEmitTargetAndPayload {
2469
+ interface ListCalendarEventTypesEmitTargetAndPayload {
2678
2470
  /** Source. */
2679
2471
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2680
- 'target'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTarget | undefined | null;
2472
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayload | undefined | null;
2681
2473
  }
2682
- interface ListCalendarsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2683
- id: 'listCalendarsEmitTargetAndPayload';
2474
+ interface ListCalendarEventTypesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2475
+ id: 'listCalendarEventTypesEmitTargetAndPayload';
2684
2476
  version: 'v2021_05_19';
2685
2477
  namespace: 'Calendar';
2686
2478
  name: '';
@@ -2694,36 +2486,36 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2694
2486
  };
2695
2487
  };
2696
2488
  /** . */
2697
- 'target': {
2489
+ 'payload': {
2698
2490
  type: 'schema';
2699
2491
  options: {
2700
- schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetSchema;
2492
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayloadSchema;
2701
2493
  };
2702
2494
  };
2703
2495
  };
2704
2496
  }
2705
- interface ListCalendarsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetAndPayloadSchema> {
2497
+ interface ListCalendarEventTypesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitTargetAndPayloadSchema> {
2706
2498
  }
2707
2499
  }
2708
2500
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2709
- interface ListCalendarsResponsePayload {
2710
- 'calendars': SpruceSchemas.Calendar.v2021_05_19.Calendar[];
2501
+ interface ListCalendarEventTypesResponsePayload {
2502
+ 'calendarEventTypes': SpruceSchemas.Calendar.v2021_05_19.CalendarEventType[];
2711
2503
  'count': number;
2712
2504
  }
2713
- interface ListCalendarsResponsePayloadSchema extends SpruceSchema.Schema {
2714
- id: 'listCalendarsResponsePayload';
2505
+ interface ListCalendarEventTypesResponsePayloadSchema extends SpruceSchema.Schema {
2506
+ id: 'listCalendarEventTypesResponsePayload';
2715
2507
  version: 'v2021_05_19';
2716
2508
  namespace: 'Calendar';
2717
2509
  name: '';
2718
2510
  fields: {
2719
2511
  /** . */
2720
- 'calendars': {
2512
+ 'calendarEventTypes': {
2721
2513
  type: 'schema';
2722
2514
  isRequired: true;
2723
2515
  isArray: true;
2724
2516
  minArrayLength: 0;
2725
2517
  options: {
2726
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
2518
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema;
2727
2519
  };
2728
2520
  };
2729
2521
  /** . */
@@ -2734,415 +2526,354 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2734
2526
  };
2735
2527
  };
2736
2528
  }
2737
- interface ListCalendarsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsResponsePayloadSchema> {
2529
+ interface ListCalendarEventTypesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesResponsePayloadSchema> {
2738
2530
  }
2739
2531
  }
2740
2532
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2741
- interface UpdateCalendarEventEmitTarget {
2742
- 'organizationId'?: string | undefined | null;
2743
- 'locationId'?: string | undefined | null;
2744
- 'calendarEventId': string;
2745
- 'calendarEventPersonId': string;
2533
+ interface ListCalendarEventsEmitTarget {
2534
+ 'locationId': string;
2746
2535
  }
2747
- interface UpdateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
2748
- id: 'updateCalendarEventEmitTarget';
2536
+ interface ListCalendarEventsEmitTargetSchema extends SpruceSchema.Schema {
2537
+ id: 'listCalendarEventsEmitTarget';
2749
2538
  version: 'v2021_05_19';
2750
2539
  namespace: 'Calendar';
2751
2540
  name: '';
2752
2541
  fields: {
2753
- /** . */
2754
- 'organizationId': {
2755
- type: 'id';
2756
- options: undefined;
2757
- };
2758
2542
  /** . */
2759
2543
  'locationId': {
2760
- type: 'id';
2761
- options: undefined;
2762
- };
2763
- /** . */
2764
- 'calendarEventId': {
2765
- type: 'id';
2766
- isRequired: true;
2767
- options: undefined;
2768
- };
2769
- /** . */
2770
- 'calendarEventPersonId': {
2771
2544
  type: 'id';
2772
2545
  isRequired: true;
2773
2546
  options: undefined;
2774
2547
  };
2775
2548
  };
2776
2549
  }
2777
- interface UpdateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema> {
2550
+ interface ListCalendarEventsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetSchema> {
2778
2551
  }
2779
2552
  }
2780
2553
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2781
- interface UpdateCalendarEventEmitPayload {
2782
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2783
- 'target'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTarget | undefined | null;
2784
- 'calendarId'?: string | undefined | null;
2785
- 'eventTypeSlug'?: string | undefined | null;
2786
- 'startDateTimeMs'?: SpruceSchema.DateTimeFieldValue | undefined | null;
2787
- 'isBusy'?: boolean | undefined | null;
2788
- 'isResizeable'?: boolean | undefined | null;
2789
- 'style'?: ("draft" | "tentative" | "upcoming" | "unavailable" | "blocked" | "active" | "past" | "warn" | "critical") | undefined | null;
2790
- 'groupId'?: string | undefined | null;
2791
- 'timeBlocks'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlock[] | undefined | null;
2792
- 'repeats'?: ("weekly" | "monthly" | "daily") | undefined | null;
2793
- 'daysOfWeek'?: ("sun" | "mon" | "tue" | "wed" | "thur" | "fri" | "sat")[] | undefined | null;
2794
- 'daysOfMonth'?: ("1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31")[] | undefined | null;
2795
- 'repeatsUntil'?: SpruceSchema.DateTimeFieldValue | undefined | null;
2796
- 'occurrences'?: number | undefined | null;
2797
- 'interval'?: number | undefined | null;
2798
- 'nthOccurrences'?: number[] | undefined | null;
2799
- 'exclusionDates'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDate[] | undefined | null;
2800
- 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
2801
- 'nthInRepeating'?: number | undefined | null;
2802
- 'totalInRepeating'?: number | undefined | null;
2803
- 'meta'?: (Record<string, any>) | undefined | null;
2804
- 'venue'?: SpruceSchemas.CalendarUtils.v2021_05_19.Venue | undefined | null;
2805
- 'addToExclusionDates'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDate[] | undefined | null;
2806
- 'dateToUpdate'?: number | undefined | null;
2807
- 'shouldUpdateAllEventsGoingForward'?: boolean | undefined | null;
2808
- /** . It will show on this person's calendar going forward! */
2809
- 'newTargetPersonId'?: string | undefined | null;
2554
+ interface ListCalendarEventsEmitPayload {
2555
+ 'groupIds'?: string[] | undefined | null;
2810
2556
  }
2811
- interface UpdateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
2812
- id: 'updateCalendarEventEmitPayload';
2557
+ interface ListCalendarEventsEmitPayloadSchema extends SpruceSchema.Schema {
2558
+ id: 'listCalendarEventsEmitPayload';
2813
2559
  version: 'v2021_05_19';
2814
2560
  namespace: 'Calendar';
2815
2561
  name: '';
2816
2562
  fields: {
2817
2563
  /** . */
2818
- 'source': {
2819
- type: 'schema';
2820
- options: {
2821
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2822
- };
2823
- };
2824
- /** . */
2825
- 'target': {
2826
- type: 'schema';
2827
- options: {
2828
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTargetSchema;
2829
- };
2830
- };
2831
- /** . */
2832
- 'calendarId': {
2833
- type: 'id';
2834
- options: undefined;
2835
- };
2836
- /** . */
2837
- 'eventTypeSlug': {
2838
- type: 'text';
2839
- options: undefined;
2840
- };
2841
- /** . */
2842
- 'startDateTimeMs': {
2843
- type: 'dateTime';
2844
- options: undefined;
2845
- };
2846
- /** . */
2847
- 'isBusy': {
2848
- type: 'boolean';
2849
- options: undefined;
2850
- };
2851
- /** . */
2852
- 'isResizeable': {
2853
- type: 'boolean';
2854
- options: undefined;
2855
- };
2856
- /** . */
2857
- 'style': {
2858
- type: 'select';
2859
- options: {
2860
- choices: [{
2861
- "value": "draft";
2862
- "label": "Draft";
2863
- }, {
2864
- "value": "tentative";
2865
- "label": "Tentative";
2866
- }, {
2867
- "value": "upcoming";
2868
- "label": "Upcoming";
2869
- }, {
2870
- "value": "unavailable";
2871
- "label": "Unavailable";
2872
- }, {
2873
- "value": "blocked";
2874
- "label": "Blocked";
2875
- }, {
2876
- "value": "active";
2877
- "label": "Active";
2878
- }, {
2879
- "value": "past";
2880
- "label": "Past";
2881
- }, {
2882
- "value": "warn";
2883
- "label": "Warning";
2884
- }, {
2885
- "value": "critical";
2886
- "label": "Critical";
2887
- }];
2888
- };
2889
- };
2890
- /** . */
2891
- 'groupId': {
2564
+ 'groupIds': {
2892
2565
  type: 'id';
2566
+ isArray: true;
2893
2567
  options: undefined;
2894
2568
  };
2895
- /** . */
2896
- 'timeBlocks': {
2569
+ };
2570
+ }
2571
+ interface ListCalendarEventsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayloadSchema> {
2572
+ }
2573
+ }
2574
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2575
+ interface ListCalendarEventsEmitTargetAndPayload {
2576
+ /** Source. */
2577
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2578
+ 'target': SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTarget;
2579
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayload | undefined | null;
2580
+ }
2581
+ interface ListCalendarEventsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2582
+ id: 'listCalendarEventsEmitTargetAndPayload';
2583
+ version: 'v2021_05_19';
2584
+ namespace: 'Calendar';
2585
+ name: '';
2586
+ fields: {
2587
+ /** Source. */
2588
+ 'source': {
2589
+ label: 'Source';
2897
2590
  type: 'schema';
2898
- isArray: true;
2899
- minArrayLength: 1;
2900
2591
  options: {
2901
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlockSchema;
2592
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2902
2593
  };
2903
2594
  };
2904
2595
  /** . */
2905
- 'repeats': {
2906
- type: 'select';
2596
+ 'target': {
2597
+ type: 'schema';
2598
+ isRequired: true;
2907
2599
  options: {
2908
- choices: [{
2909
- "value": "weekly";
2910
- "label": "Weekly";
2911
- }, {
2912
- "value": "monthly";
2913
- "label": "Monthly";
2914
- }, {
2915
- "value": "daily";
2916
- "label": "Daily";
2917
- }];
2600
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetSchema;
2918
2601
  };
2919
2602
  };
2920
2603
  /** . */
2921
- 'daysOfWeek': {
2922
- type: 'select';
2923
- isArray: true;
2604
+ 'payload': {
2605
+ type: 'schema';
2924
2606
  options: {
2925
- choices: [{
2926
- "value": "sun";
2927
- "label": "Sunday";
2928
- }, {
2929
- "value": "mon";
2930
- "label": "Monday";
2931
- }, {
2932
- "value": "tue";
2933
- "label": "Tuesday";
2934
- }, {
2935
- "value": "wed";
2936
- "label": "Wednesday";
2937
- }, {
2938
- "value": "thur";
2939
- "label": "Thursday";
2940
- }, {
2941
- "value": "fri";
2942
- "label": "Friday";
2943
- }, {
2944
- "value": "sat";
2945
- "label": "Saturday";
2946
- }];
2607
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayloadSchema;
2947
2608
  };
2948
2609
  };
2610
+ };
2611
+ }
2612
+ interface ListCalendarEventsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetAndPayloadSchema> {
2613
+ }
2614
+ }
2615
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2616
+ interface ListCalendarEventsResponsePayload {
2617
+ 'calendarEvents': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
2618
+ }
2619
+ interface ListCalendarEventsResponsePayloadSchema extends SpruceSchema.Schema {
2620
+ id: 'listCalendarEventsResponsePayload';
2621
+ version: 'v2021_05_19';
2622
+ namespace: 'Calendar';
2623
+ name: '';
2624
+ fields: {
2949
2625
  /** . */
2950
- 'daysOfMonth': {
2951
- type: 'select';
2626
+ 'calendarEvents': {
2627
+ type: 'schema';
2628
+ isRequired: true;
2952
2629
  isArray: true;
2630
+ minArrayLength: 0;
2953
2631
  options: {
2954
- choices: [{
2955
- "value": "1";
2956
- "label": "1";
2957
- }, {
2958
- "value": "2";
2959
- "label": "2";
2960
- }, {
2961
- "value": "3";
2962
- "label": "3";
2963
- }, {
2964
- "value": "4";
2965
- "label": "4";
2966
- }, {
2967
- "value": "5";
2968
- "label": "5";
2969
- }, {
2970
- "value": "6";
2971
- "label": "6";
2972
- }, {
2973
- "value": "7";
2974
- "label": "7";
2975
- }, {
2976
- "value": "8";
2977
- "label": "8";
2978
- }, {
2979
- "value": "9";
2980
- "label": "9";
2981
- }, {
2982
- "value": "10";
2983
- "label": "10";
2984
- }, {
2985
- "value": "11";
2986
- "label": "11";
2987
- }, {
2988
- "value": "12";
2989
- "label": "12";
2990
- }, {
2991
- "value": "13";
2992
- "label": "13";
2993
- }, {
2994
- "value": "14";
2995
- "label": "14";
2996
- }, {
2997
- "value": "15";
2998
- "label": "15";
2999
- }, {
3000
- "value": "16";
3001
- "label": "16";
3002
- }, {
3003
- "value": "17";
3004
- "label": "17";
3005
- }, {
3006
- "value": "18";
3007
- "label": "18";
3008
- }, {
3009
- "value": "19";
3010
- "label": "19";
3011
- }, {
3012
- "value": "20";
3013
- "label": "20";
3014
- }, {
3015
- "value": "21";
3016
- "label": "21";
3017
- }, {
3018
- "value": "22";
3019
- "label": "22";
3020
- }, {
3021
- "value": "23";
3022
- "label": "23";
3023
- }, {
3024
- "value": "24";
3025
- "label": "24";
3026
- }, {
3027
- "value": "25";
3028
- "label": "25";
3029
- }, {
3030
- "value": "26";
3031
- "label": "26";
3032
- }, {
3033
- "value": "27";
3034
- "label": "27";
3035
- }, {
3036
- "value": "28";
3037
- "label": "28";
3038
- }, {
3039
- "value": "29";
3040
- "label": "29";
3041
- }, {
3042
- "value": "30";
3043
- "label": "30";
3044
- }, {
3045
- "value": "31";
3046
- "label": "31";
3047
- }];
2632
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
3048
2633
  };
3049
2634
  };
2635
+ };
2636
+ }
2637
+ interface ListCalendarEventsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsResponsePayloadSchema> {
2638
+ }
2639
+ }
2640
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2641
+ interface ListCalendarsEmitTarget {
2642
+ 'organizationId'?: string | undefined | null;
2643
+ 'calendarPersonId'?: string | undefined | null;
2644
+ }
2645
+ interface ListCalendarsEmitTargetSchema extends SpruceSchema.Schema {
2646
+ id: 'listCalendarsEmitTarget';
2647
+ version: 'v2021_05_19';
2648
+ namespace: 'Calendar';
2649
+ name: '';
2650
+ fields: {
2651
+ /** . */
2652
+ 'organizationId': {
2653
+ type: 'id';
2654
+ options: undefined;
2655
+ };
3050
2656
  /** . */
3051
- 'repeatsUntil': {
3052
- type: 'dateTime';
2657
+ 'calendarPersonId': {
2658
+ type: 'id';
3053
2659
  options: undefined;
3054
2660
  };
2661
+ };
2662
+ }
2663
+ interface ListCalendarsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetSchema> {
2664
+ }
2665
+ }
2666
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2667
+ interface ListCalendarsEmitTargetAndPayload {
2668
+ /** Source. */
2669
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2670
+ 'target'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTarget | undefined | null;
2671
+ }
2672
+ interface ListCalendarsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2673
+ id: 'listCalendarsEmitTargetAndPayload';
2674
+ version: 'v2021_05_19';
2675
+ namespace: 'Calendar';
2676
+ name: '';
2677
+ fields: {
2678
+ /** Source. */
2679
+ 'source': {
2680
+ label: 'Source';
2681
+ type: 'schema';
2682
+ options: {
2683
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2684
+ };
2685
+ };
2686
+ /** . */
2687
+ 'target': {
2688
+ type: 'schema';
2689
+ options: {
2690
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetSchema;
2691
+ };
2692
+ };
2693
+ };
2694
+ }
2695
+ interface ListCalendarsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetAndPayloadSchema> {
2696
+ }
2697
+ }
2698
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2699
+ interface ListCalendarsResponsePayload {
2700
+ 'calendars': SpruceSchemas.Calendar.v2021_05_19.Calendar[];
2701
+ 'count': number;
2702
+ }
2703
+ interface ListCalendarsResponsePayloadSchema extends SpruceSchema.Schema {
2704
+ id: 'listCalendarsResponsePayload';
2705
+ version: 'v2021_05_19';
2706
+ namespace: 'Calendar';
2707
+ name: '';
2708
+ fields: {
3055
2709
  /** . */
3056
- 'occurrences': {
3057
- type: 'number';
3058
- options: undefined;
2710
+ 'calendars': {
2711
+ type: 'schema';
2712
+ isRequired: true;
2713
+ isArray: true;
2714
+ minArrayLength: 0;
2715
+ options: {
2716
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
2717
+ };
3059
2718
  };
3060
2719
  /** . */
3061
- 'interval': {
2720
+ 'count': {
3062
2721
  type: 'number';
2722
+ isRequired: true;
3063
2723
  options: undefined;
3064
2724
  };
2725
+ };
2726
+ }
2727
+ interface ListCalendarsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsResponsePayloadSchema> {
2728
+ }
2729
+ }
2730
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2731
+ interface RegisterEventToolsEmitTarget {
2732
+ 'organizationId': string;
2733
+ 'calendarEventId': string;
2734
+ 'locationId'?: string | undefined | null;
2735
+ }
2736
+ interface RegisterEventToolsEmitTargetSchema extends SpruceSchema.Schema {
2737
+ id: 'registerEventToolsEmitTarget';
2738
+ version: 'v2021_05_19';
2739
+ namespace: 'Calendar';
2740
+ name: '';
2741
+ fields: {
3065
2742
  /** . */
3066
- 'nthOccurrences': {
3067
- type: 'number';
3068
- isArray: true;
2743
+ 'organizationId': {
2744
+ type: 'id';
2745
+ isRequired: true;
3069
2746
  options: undefined;
3070
2747
  };
3071
2748
  /** . */
3072
- 'exclusionDates': {
3073
- type: 'schema';
3074
- isArray: true;
3075
- options: {
3076
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
3077
- };
3078
- };
3079
- /** . */
3080
- 'dateDeleted': {
3081
- type: 'dateTime';
2749
+ 'calendarEventId': {
2750
+ type: 'id';
2751
+ isRequired: true;
3082
2752
  options: undefined;
3083
2753
  };
3084
2754
  /** . */
3085
- 'nthInRepeating': {
3086
- type: 'number';
2755
+ 'locationId': {
2756
+ type: 'id';
3087
2757
  options: undefined;
3088
2758
  };
2759
+ };
2760
+ }
2761
+ interface RegisterEventToolsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetSchema> {
2762
+ }
2763
+ }
2764
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2765
+ interface RegisterEventToolsEmitPayload {
2766
+ 'eventTypeSlug'?: string | undefined | null;
2767
+ }
2768
+ interface RegisterEventToolsEmitPayloadSchema extends SpruceSchema.Schema {
2769
+ id: 'registerEventToolsEmitPayload';
2770
+ version: 'v2021_05_19';
2771
+ namespace: 'Calendar';
2772
+ name: '';
2773
+ fields: {
3089
2774
  /** . */
3090
- 'totalInRepeating': {
3091
- type: 'number';
2775
+ 'eventTypeSlug': {
2776
+ type: 'id';
3092
2777
  options: undefined;
3093
2778
  };
3094
- /** . */
3095
- 'meta': {
3096
- type: 'raw';
2779
+ };
2780
+ }
2781
+ interface RegisterEventToolsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayloadSchema> {
2782
+ }
2783
+ }
2784
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2785
+ interface RegisterEventToolsEmitTargetAndPayload {
2786
+ /** Source. */
2787
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2788
+ 'target': SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTarget;
2789
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayload | undefined | null;
2790
+ }
2791
+ interface RegisterEventToolsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2792
+ id: 'registerEventToolsEmitTargetAndPayload';
2793
+ version: 'v2021_05_19';
2794
+ namespace: 'Calendar';
2795
+ name: '';
2796
+ fields: {
2797
+ /** Source. */
2798
+ 'source': {
2799
+ label: 'Source';
2800
+ type: 'schema';
3097
2801
  options: {
3098
- valueType: `Record<string, any>`;
2802
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3099
2803
  };
3100
2804
  };
3101
2805
  /** . */
3102
- 'venue': {
2806
+ 'target': {
3103
2807
  type: 'schema';
2808
+ isRequired: true;
3104
2809
  options: {
3105
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.VenueSchema;
2810
+ schema: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetSchema;
3106
2811
  };
3107
2812
  };
3108
2813
  /** . */
3109
- 'addToExclusionDates': {
2814
+ 'payload': {
3110
2815
  type: 'schema';
3111
- isArray: true;
3112
2816
  options: {
3113
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
2817
+ schema: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayloadSchema;
3114
2818
  };
3115
2819
  };
2820
+ };
2821
+ }
2822
+ interface RegisterEventToolsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetAndPayloadSchema> {
2823
+ }
2824
+ }
2825
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2826
+ interface RegisterEventToolsResponsePayload {
2827
+ 'vcIds': string[];
2828
+ }
2829
+ interface RegisterEventToolsResponsePayloadSchema extends SpruceSchema.Schema {
2830
+ id: 'registerEventToolsResponsePayload';
2831
+ version: 'v2021_05_19';
2832
+ namespace: 'Calendar';
2833
+ name: '';
2834
+ fields: {
3116
2835
  /** . */
3117
- 'dateToUpdate': {
3118
- type: 'number';
2836
+ 'vcIds': {
2837
+ type: 'id';
2838
+ isRequired: true;
2839
+ isArray: true;
2840
+ minArrayLength: 0;
3119
2841
  options: undefined;
3120
2842
  };
2843
+ };
2844
+ }
2845
+ interface RegisterEventToolsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsResponsePayloadSchema> {
2846
+ }
2847
+ }
2848
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2849
+ interface RegisterVenuesEmitTarget {
2850
+ 'organizationId': string;
2851
+ }
2852
+ interface RegisterVenuesEmitTargetSchema extends SpruceSchema.Schema {
2853
+ id: 'registerVenuesEmitTarget';
2854
+ version: 'v2021_05_19';
2855
+ namespace: 'Calendar';
2856
+ name: '';
2857
+ fields: {
3121
2858
  /** . */
3122
- 'shouldUpdateAllEventsGoingForward': {
3123
- type: 'boolean';
3124
- options: undefined;
3125
- };
3126
- /** . It will show on this person's calendar going forward! */
3127
- 'newTargetPersonId': {
2859
+ 'organizationId': {
3128
2860
  type: 'id';
3129
- hint: 'It will show on this person\'s calendar going forward!';
2861
+ isRequired: true;
3130
2862
  options: undefined;
3131
2863
  };
3132
2864
  };
3133
2865
  }
3134
- interface UpdateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema> {
2866
+ interface RegisterVenuesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterVenuesEmitTargetSchema> {
3135
2867
  }
3136
2868
  }
3137
2869
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3138
- interface UpdateCalendarEventEmitTargetAndPayload {
2870
+ interface RegisterVenuesEmitTargetAndPayload {
3139
2871
  /** Source. */
3140
2872
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3141
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTarget;
3142
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayload | undefined | null;
2873
+ 'target': SpruceSchemas.Calendar.v2021_05_19.RegisterVenuesEmitTarget;
3143
2874
  }
3144
- interface UpdateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3145
- id: 'updateCalendarEventEmitTargetAndPayload';
2875
+ interface RegisterVenuesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2876
+ id: 'registerVenuesEmitTargetAndPayload';
3146
2877
  version: 'v2021_05_19';
3147
2878
  namespace: 'Calendar';
3148
2879
  name: '';
@@ -3160,163 +2891,159 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3160
2891
  type: 'schema';
3161
2892
  isRequired: true;
3162
2893
  options: {
3163
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema;
3164
- };
3165
- };
3166
- /** . */
3167
- 'payload': {
3168
- type: 'schema';
3169
- options: {
3170
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema;
2894
+ schema: SpruceSchemas.Calendar.v2021_05_19.RegisterVenuesEmitTargetSchema;
3171
2895
  };
3172
2896
  };
3173
2897
  };
3174
2898
  }
3175
- interface UpdateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetAndPayloadSchema> {
2899
+ interface RegisterVenuesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterVenuesEmitTargetAndPayloadSchema> {
3176
2900
  }
3177
2901
  }
3178
2902
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3179
- interface UpdateCalendarEventResponsePayload {
3180
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
2903
+ interface RegisterVenuesResponsePayload {
2904
+ 'venues': SpruceSchemas.CalendarUtils.v2021_05_19.Venue[];
3181
2905
  }
3182
- interface UpdateCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
3183
- id: 'updateCalendarEventResponsePayload';
2906
+ interface RegisterVenuesResponsePayloadSchema extends SpruceSchema.Schema {
2907
+ id: 'registerVenuesResponsePayload';
3184
2908
  version: 'v2021_05_19';
3185
2909
  namespace: 'Calendar';
3186
2910
  name: '';
3187
2911
  fields: {
3188
2912
  /** . */
3189
- 'calendarEvent': {
2913
+ 'venues': {
3190
2914
  type: 'schema';
3191
2915
  isRequired: true;
2916
+ isArray: true;
2917
+ minArrayLength: 0;
3192
2918
  options: {
3193
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2919
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.VenueSchema;
3194
2920
  };
3195
2921
  };
3196
2922
  };
3197
2923
  }
3198
- interface UpdateCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventResponsePayloadSchema> {
2924
+ interface RegisterVenuesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterVenuesResponsePayloadSchema> {
3199
2925
  }
3200
2926
  }
3201
2927
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3202
- interface StreamSchedulesEmitTarget {
3203
- 'locationId': string;
2928
+ interface UpdateCalendarEventEmitTarget {
3204
2929
  'organizationId'?: string | undefined | null;
3205
- 'personId': string;
2930
+ 'locationId'?: string | undefined | null;
2931
+ 'calendarEventId': string;
2932
+ 'calendarEventPersonId': string;
3206
2933
  }
3207
- interface StreamSchedulesEmitTargetSchema extends SpruceSchema.Schema {
3208
- id: 'streamSchedulesEmitTarget';
2934
+ interface UpdateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
2935
+ id: 'updateCalendarEventEmitTarget';
3209
2936
  version: 'v2021_05_19';
3210
2937
  namespace: 'Calendar';
3211
2938
  name: '';
3212
2939
  fields: {
3213
- /** . */
3214
- 'locationId': {
3215
- type: 'id';
3216
- isRequired: true;
3217
- options: undefined;
3218
- };
3219
2940
  /** . */
3220
2941
  'organizationId': {
3221
2942
  type: 'id';
3222
2943
  options: undefined;
3223
2944
  };
3224
2945
  /** . */
3225
- 'personId': {
2946
+ 'locationId': {
3226
2947
  type: 'id';
3227
- isRequired: true;
3228
2948
  options: undefined;
3229
2949
  };
3230
- };
3231
- }
3232
- interface StreamSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetSchema> {
3233
- }
3234
- }
3235
- namespace SpruceSchemas.MercuryChunkingEmitter.v2023_10_21 {
3236
- interface ChunkPaging {
3237
- 'total': number;
3238
- 'current': number;
3239
- }
3240
- interface ChunkPagingSchema extends SpruceSchema.Schema {
3241
- id: 'chunkPaging';
3242
- version: 'v2023_10_21';
3243
- namespace: 'MercuryChunkingEmitter';
3244
- name: 'Chunk Paging';
3245
- fields: {
3246
2950
  /** . */
3247
- 'total': {
3248
- type: 'number';
2951
+ 'calendarEventId': {
2952
+ type: 'id';
3249
2953
  isRequired: true;
3250
2954
  options: undefined;
3251
2955
  };
3252
2956
  /** . */
3253
- 'current': {
3254
- type: 'number';
2957
+ 'calendarEventPersonId': {
2958
+ type: 'id';
3255
2959
  isRequired: true;
3256
2960
  options: undefined;
3257
2961
  };
3258
2962
  };
3259
2963
  }
3260
- interface ChunkPagingEntity extends SchemaEntity<SpruceSchemas.MercuryChunkingEmitter.v2023_10_21.ChunkPagingSchema> {
2964
+ interface UpdateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema> {
3261
2965
  }
3262
2966
  }
3263
2967
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3264
- interface StreamSchedulesEmitPayload {
3265
- 'chunkingId': string;
3266
- 'events': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
3267
- 'chunk': SpruceSchemas.MercuryChunkingEmitter.v2023_10_21.ChunkPaging;
3268
- }
3269
- interface StreamSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
3270
- id: 'streamSchedulesEmitPayload';
2968
+ interface UpdateCalendarEventEmitTargetAndPayload {
2969
+ /** Source. */
2970
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2971
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTarget;
2972
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayload | undefined | null;
2973
+ }
2974
+ interface UpdateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2975
+ id: 'updateCalendarEventEmitTargetAndPayload';
3271
2976
  version: 'v2021_05_19';
3272
2977
  namespace: 'Calendar';
3273
2978
  name: '';
3274
2979
  fields: {
3275
- /** . */
3276
- 'chunkingId': {
3277
- type: 'id';
3278
- isRequired: true;
3279
- options: undefined;
2980
+ /** Source. */
2981
+ 'source': {
2982
+ label: 'Source';
2983
+ type: 'schema';
2984
+ options: {
2985
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2986
+ };
3280
2987
  };
3281
2988
  /** . */
3282
- 'events': {
2989
+ 'target': {
3283
2990
  type: 'schema';
3284
2991
  isRequired: true;
3285
- isArray: true;
3286
- minArrayLength: 0;
3287
2992
  options: {
3288
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2993
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema;
3289
2994
  };
3290
2995
  };
3291
2996
  /** . */
3292
- 'chunk': {
2997
+ 'payload': {
3293
2998
  type: 'schema';
3294
- isRequired: true;
3295
2999
  options: {
3296
- schema: SpruceSchemas.MercuryChunkingEmitter.v2023_10_21.ChunkPagingSchema;
3000
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema;
3297
3001
  };
3298
3002
  };
3299
3003
  };
3300
3004
  }
3301
- interface StreamSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayloadSchema> {
3005
+ interface UpdateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetAndPayloadSchema> {
3302
3006
  }
3303
3007
  }
3304
3008
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3305
- interface StreamSchedulesEmitTargetAndPayload {
3306
- /** Source. */
3009
+ interface UpdateCalendarEventEmitPayload {
3307
3010
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3308
- 'target': SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTarget;
3309
- 'payload': SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayload;
3011
+ 'target'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTarget | undefined | null;
3012
+ 'calendarId'?: string | undefined | null;
3013
+ 'eventTypeSlug'?: string | undefined | null;
3014
+ 'startDateTimeMs'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3015
+ 'isBusy'?: boolean | undefined | null;
3016
+ 'isResizeable'?: boolean | undefined | null;
3017
+ 'style'?: ("draft" | "tentative" | "upcoming" | "unavailable" | "blocked" | "active" | "past" | "warn" | "critical") | undefined | null;
3018
+ 'groupId'?: string | undefined | null;
3019
+ 'timeBlocks'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlock[] | undefined | null;
3020
+ 'repeats'?: ("weekly" | "monthly" | "daily") | undefined | null;
3021
+ 'daysOfWeek'?: ("sun" | "mon" | "tue" | "wed" | "thur" | "fri" | "sat")[] | undefined | null;
3022
+ 'daysOfMonth'?: ("1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31")[] | undefined | null;
3023
+ 'repeatsUntil'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3024
+ 'occurrences'?: number | undefined | null;
3025
+ 'interval'?: number | undefined | null;
3026
+ 'nthOccurrences'?: number[] | undefined | null;
3027
+ 'exclusionDates'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDate[] | undefined | null;
3028
+ 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3029
+ 'nthInRepeating'?: number | undefined | null;
3030
+ 'totalInRepeating'?: number | undefined | null;
3031
+ 'meta'?: (Record<string, any>) | undefined | null;
3032
+ 'venue'?: SpruceSchemas.CalendarUtils.v2021_05_19.Venue | undefined | null;
3033
+ 'addToExclusionDates'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDate[] | undefined | null;
3034
+ 'dateToUpdate'?: number | undefined | null;
3035
+ 'shouldUpdateAllEventsGoingForward'?: boolean | undefined | null;
3036
+ /** . It will show on this person's calendar going forward! */
3037
+ 'newTargetPersonId'?: string | undefined | null;
3310
3038
  }
3311
- interface StreamSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3312
- id: 'streamSchedulesEmitTargetAndPayload';
3039
+ interface UpdateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
3040
+ id: 'updateCalendarEventEmitPayload';
3313
3041
  version: 'v2021_05_19';
3314
3042
  namespace: 'Calendar';
3315
3043
  name: '';
3316
3044
  fields: {
3317
- /** Source. */
3045
+ /** . */
3318
3046
  'source': {
3319
- label: 'Source';
3320
3047
  type: 'schema';
3321
3048
  options: {
3322
3049
  schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
@@ -3325,89 +3052,256 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3325
3052
  /** . */
3326
3053
  'target': {
3327
3054
  type: 'schema';
3328
- isRequired: true;
3329
3055
  options: {
3330
- schema: SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetSchema;
3056
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTargetSchema;
3331
3057
  };
3332
3058
  };
3333
3059
  /** . */
3334
- 'payload': {
3060
+ 'calendarId': {
3061
+ type: 'id';
3062
+ options: undefined;
3063
+ };
3064
+ /** . */
3065
+ 'eventTypeSlug': {
3066
+ type: 'text';
3067
+ options: undefined;
3068
+ };
3069
+ /** . */
3070
+ 'startDateTimeMs': {
3071
+ type: 'dateTime';
3072
+ options: undefined;
3073
+ };
3074
+ /** . */
3075
+ 'isBusy': {
3076
+ type: 'boolean';
3077
+ options: undefined;
3078
+ };
3079
+ /** . */
3080
+ 'isResizeable': {
3081
+ type: 'boolean';
3082
+ options: undefined;
3083
+ };
3084
+ /** . */
3085
+ 'style': {
3086
+ type: 'select';
3087
+ options: {
3088
+ choices: [{
3089
+ "value": "draft";
3090
+ "label": "Draft";
3091
+ }, {
3092
+ "value": "tentative";
3093
+ "label": "Tentative";
3094
+ }, {
3095
+ "value": "upcoming";
3096
+ "label": "Upcoming";
3097
+ }, {
3098
+ "value": "unavailable";
3099
+ "label": "Unavailable";
3100
+ }, {
3101
+ "value": "blocked";
3102
+ "label": "Blocked";
3103
+ }, {
3104
+ "value": "active";
3105
+ "label": "Active";
3106
+ }, {
3107
+ "value": "past";
3108
+ "label": "Past";
3109
+ }, {
3110
+ "value": "warn";
3111
+ "label": "Warning";
3112
+ }, {
3113
+ "value": "critical";
3114
+ "label": "Critical";
3115
+ }];
3116
+ };
3117
+ };
3118
+ /** . */
3119
+ 'groupId': {
3120
+ type: 'id';
3121
+ options: undefined;
3122
+ };
3123
+ /** . */
3124
+ 'timeBlocks': {
3335
3125
  type: 'schema';
3336
- isRequired: true;
3126
+ isArray: true;
3127
+ minArrayLength: 1;
3337
3128
  options: {
3338
- schema: SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayloadSchema;
3129
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlockSchema;
3130
+ };
3131
+ };
3132
+ /** . */
3133
+ 'repeats': {
3134
+ type: 'select';
3135
+ options: {
3136
+ choices: [{
3137
+ "value": "weekly";
3138
+ "label": "Weekly";
3139
+ }, {
3140
+ "value": "monthly";
3141
+ "label": "Monthly";
3142
+ }, {
3143
+ "value": "daily";
3144
+ "label": "Daily";
3145
+ }];
3146
+ };
3147
+ };
3148
+ /** . */
3149
+ 'daysOfWeek': {
3150
+ type: 'select';
3151
+ isArray: true;
3152
+ options: {
3153
+ choices: [{
3154
+ "value": "sun";
3155
+ "label": "Sunday";
3156
+ }, {
3157
+ "value": "mon";
3158
+ "label": "Monday";
3159
+ }, {
3160
+ "value": "tue";
3161
+ "label": "Tuesday";
3162
+ }, {
3163
+ "value": "wed";
3164
+ "label": "Wednesday";
3165
+ }, {
3166
+ "value": "thur";
3167
+ "label": "Thursday";
3168
+ }, {
3169
+ "value": "fri";
3170
+ "label": "Friday";
3171
+ }, {
3172
+ "value": "sat";
3173
+ "label": "Saturday";
3174
+ }];
3175
+ };
3176
+ };
3177
+ /** . */
3178
+ 'daysOfMonth': {
3179
+ type: 'select';
3180
+ isArray: true;
3181
+ options: {
3182
+ choices: [{
3183
+ "value": "1";
3184
+ "label": "1";
3185
+ }, {
3186
+ "value": "2";
3187
+ "label": "2";
3188
+ }, {
3189
+ "value": "3";
3190
+ "label": "3";
3191
+ }, {
3192
+ "value": "4";
3193
+ "label": "4";
3194
+ }, {
3195
+ "value": "5";
3196
+ "label": "5";
3197
+ }, {
3198
+ "value": "6";
3199
+ "label": "6";
3200
+ }, {
3201
+ "value": "7";
3202
+ "label": "7";
3203
+ }, {
3204
+ "value": "8";
3205
+ "label": "8";
3206
+ }, {
3207
+ "value": "9";
3208
+ "label": "9";
3209
+ }, {
3210
+ "value": "10";
3211
+ "label": "10";
3212
+ }, {
3213
+ "value": "11";
3214
+ "label": "11";
3215
+ }, {
3216
+ "value": "12";
3217
+ "label": "12";
3218
+ }, {
3219
+ "value": "13";
3220
+ "label": "13";
3221
+ }, {
3222
+ "value": "14";
3223
+ "label": "14";
3224
+ }, {
3225
+ "value": "15";
3226
+ "label": "15";
3227
+ }, {
3228
+ "value": "16";
3229
+ "label": "16";
3230
+ }, {
3231
+ "value": "17";
3232
+ "label": "17";
3233
+ }, {
3234
+ "value": "18";
3235
+ "label": "18";
3236
+ }, {
3237
+ "value": "19";
3238
+ "label": "19";
3239
+ }, {
3240
+ "value": "20";
3241
+ "label": "20";
3242
+ }, {
3243
+ "value": "21";
3244
+ "label": "21";
3245
+ }, {
3246
+ "value": "22";
3247
+ "label": "22";
3248
+ }, {
3249
+ "value": "23";
3250
+ "label": "23";
3251
+ }, {
3252
+ "value": "24";
3253
+ "label": "24";
3254
+ }, {
3255
+ "value": "25";
3256
+ "label": "25";
3257
+ }, {
3258
+ "value": "26";
3259
+ "label": "26";
3260
+ }, {
3261
+ "value": "27";
3262
+ "label": "27";
3263
+ }, {
3264
+ "value": "28";
3265
+ "label": "28";
3266
+ }, {
3267
+ "value": "29";
3268
+ "label": "29";
3269
+ }, {
3270
+ "value": "30";
3271
+ "label": "30";
3272
+ }, {
3273
+ "value": "31";
3274
+ "label": "31";
3275
+ }];
3339
3276
  };
3340
3277
  };
3341
- };
3342
- }
3343
- interface StreamSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetAndPayloadSchema> {
3344
- }
3345
- }
3346
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3347
- interface UpdateCalendarEmitTarget {
3348
- 'organizationId': string;
3349
- 'calendarId': string;
3350
- }
3351
- interface UpdateCalendarEmitTargetSchema extends SpruceSchema.Schema {
3352
- id: 'updateCalendarEmitTarget';
3353
- version: 'v2021_05_19';
3354
- namespace: 'Calendar';
3355
- name: '';
3356
- fields: {
3357
- /** . */
3358
- 'organizationId': {
3359
- type: 'id';
3360
- isRequired: true;
3361
- options: undefined;
3362
- };
3363
3278
  /** . */
3364
- 'calendarId': {
3365
- type: 'id';
3366
- isRequired: true;
3279
+ 'repeatsUntil': {
3280
+ type: 'dateTime';
3367
3281
  options: undefined;
3368
3282
  };
3369
- };
3370
- }
3371
- interface UpdateCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema> {
3372
- }
3373
- }
3374
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3375
- interface UpdateCalendarEmitPayload {
3376
- 'slug'?: string | undefined | null;
3377
- 'title'?: string | undefined | null;
3378
- 'eventTypes'?: string[] | undefined | null;
3379
- 'target'?: SpruceSchemas.Calendar.v2021_05_19.CalendarTarget | undefined | null;
3380
- 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3381
- 'availableTimeSlotBehavior'?: ("include" | "exclude") | undefined | null;
3382
- }
3383
- interface UpdateCalendarEmitPayloadSchema extends SpruceSchema.Schema {
3384
- id: 'updateCalendarEmitPayload';
3385
- version: 'v2021_05_19';
3386
- namespace: 'Calendar';
3387
- name: '';
3388
- fields: {
3389
3283
  /** . */
3390
- 'slug': {
3391
- type: 'id';
3284
+ 'occurrences': {
3285
+ type: 'number';
3392
3286
  options: undefined;
3393
3287
  };
3394
3288
  /** . */
3395
- 'title': {
3396
- type: 'text';
3289
+ 'interval': {
3290
+ type: 'number';
3397
3291
  options: undefined;
3398
3292
  };
3399
3293
  /** . */
3400
- 'eventTypes': {
3401
- type: 'text';
3294
+ 'nthOccurrences': {
3295
+ type: 'number';
3402
3296
  isArray: true;
3403
- minArrayLength: 0;
3404
3297
  options: undefined;
3405
3298
  };
3406
3299
  /** . */
3407
- 'target': {
3300
+ 'exclusionDates': {
3408
3301
  type: 'schema';
3302
+ isArray: true;
3409
3303
  options: {
3410
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarTargetSchema;
3304
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
3411
3305
  };
3412
3306
  };
3413
3307
  /** . */
@@ -3416,224 +3310,180 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3416
3310
  options: undefined;
3417
3311
  };
3418
3312
  /** . */
3419
- 'availableTimeSlotBehavior': {
3420
- type: 'select';
3421
- options: {
3422
- choices: [{
3423
- "value": "include";
3424
- "label": "Include";
3425
- }, {
3426
- "value": "exclude";
3427
- "label": "Exclude";
3428
- }];
3429
- };
3313
+ 'nthInRepeating': {
3314
+ type: 'number';
3315
+ options: undefined;
3430
3316
  };
3431
- };
3432
- }
3433
- interface UpdateCalendarEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema> {
3434
- }
3435
- }
3436
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3437
- interface UpdateCalendarEmitTargetAndPayload {
3438
- /** Source. */
3439
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3440
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTarget;
3441
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayload | undefined | null;
3442
- }
3443
- interface UpdateCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3444
- id: 'updateCalendarEmitTargetAndPayload';
3445
- version: 'v2021_05_19';
3446
- namespace: 'Calendar';
3447
- name: '';
3448
- fields: {
3449
- /** Source. */
3450
- 'source': {
3451
- label: 'Source';
3452
- type: 'schema';
3453
- options: {
3454
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3455
- };
3317
+ /** . */
3318
+ 'totalInRepeating': {
3319
+ type: 'number';
3320
+ options: undefined;
3456
3321
  };
3457
3322
  /** . */
3458
- 'target': {
3459
- type: 'schema';
3460
- isRequired: true;
3323
+ 'meta': {
3324
+ type: 'raw';
3461
3325
  options: {
3462
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema;
3326
+ valueType: `Record<string, any>`;
3463
3327
  };
3464
3328
  };
3465
3329
  /** . */
3466
- 'payload': {
3330
+ 'venue': {
3467
3331
  type: 'schema';
3468
3332
  options: {
3469
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema;
3333
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.VenueSchema;
3470
3334
  };
3471
3335
  };
3472
- };
3473
- }
3474
- interface UpdateCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetAndPayloadSchema> {
3475
- }
3476
- }
3477
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3478
- interface UpdateCalendarResponsePayload {
3479
- 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
3480
- }
3481
- interface UpdateCalendarResponsePayloadSchema extends SpruceSchema.Schema {
3482
- id: 'updateCalendarResponsePayload';
3483
- version: 'v2021_05_19';
3484
- namespace: 'Calendar';
3485
- name: '';
3486
- fields: {
3487
3336
  /** . */
3488
- 'calendar': {
3337
+ 'addToExclusionDates': {
3489
3338
  type: 'schema';
3490
- isRequired: true;
3339
+ isArray: true;
3491
3340
  options: {
3492
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
3341
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
3493
3342
  };
3494
3343
  };
3495
- };
3496
- }
3497
- interface UpdateCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarResponsePayloadSchema> {
3498
- }
3499
- }
3500
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3501
- interface ListCalendarEventsEmitTarget {
3502
- 'locationId': string;
3503
- }
3504
- interface ListCalendarEventsEmitTargetSchema extends SpruceSchema.Schema {
3505
- id: 'listCalendarEventsEmitTarget';
3506
- version: 'v2021_05_19';
3507
- namespace: 'Calendar';
3508
- name: '';
3509
- fields: {
3510
3344
  /** . */
3511
- 'locationId': {
3512
- type: 'id';
3513
- isRequired: true;
3345
+ 'dateToUpdate': {
3346
+ type: 'number';
3514
3347
  options: undefined;
3515
3348
  };
3516
- };
3517
- }
3518
- interface ListCalendarEventsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetSchema> {
3519
- }
3520
- }
3521
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3522
- interface ListCalendarEventsEmitPayload {
3523
- 'groupIds'?: string[] | undefined | null;
3524
- }
3525
- interface ListCalendarEventsEmitPayloadSchema extends SpruceSchema.Schema {
3526
- id: 'listCalendarEventsEmitPayload';
3527
- version: 'v2021_05_19';
3528
- namespace: 'Calendar';
3529
- name: '';
3530
- fields: {
3531
3349
  /** . */
3532
- 'groupIds': {
3350
+ 'shouldUpdateAllEventsGoingForward': {
3351
+ type: 'boolean';
3352
+ options: undefined;
3353
+ };
3354
+ /** . It will show on this person's calendar going forward! */
3355
+ 'newTargetPersonId': {
3533
3356
  type: 'id';
3534
- isArray: true;
3357
+ hint: 'It will show on this person\'s calendar going forward!';
3535
3358
  options: undefined;
3536
3359
  };
3537
3360
  };
3538
3361
  }
3539
- interface ListCalendarEventsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayloadSchema> {
3362
+ interface UpdateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema> {
3540
3363
  }
3541
3364
  }
3542
3365
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3543
- interface ListCalendarEventsEmitTargetAndPayload {
3544
- /** Source. */
3545
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3546
- 'target': SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTarget;
3547
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayload | undefined | null;
3366
+ interface UpdateCalendarEventResponsePayload {
3367
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
3548
3368
  }
3549
- interface ListCalendarEventsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3550
- id: 'listCalendarEventsEmitTargetAndPayload';
3369
+ interface UpdateCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
3370
+ id: 'updateCalendarEventResponsePayload';
3551
3371
  version: 'v2021_05_19';
3552
3372
  namespace: 'Calendar';
3553
3373
  name: '';
3554
3374
  fields: {
3555
- /** Source. */
3556
- 'source': {
3557
- label: 'Source';
3558
- type: 'schema';
3559
- options: {
3560
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3561
- };
3562
- };
3563
3375
  /** . */
3564
- 'target': {
3376
+ 'calendarEvent': {
3565
3377
  type: 'schema';
3566
3378
  isRequired: true;
3567
3379
  options: {
3568
- schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetSchema;
3569
- };
3570
- };
3571
- /** . */
3572
- 'payload': {
3573
- type: 'schema';
3574
- options: {
3575
- schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayloadSchema;
3380
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
3576
3381
  };
3577
3382
  };
3578
3383
  };
3579
3384
  }
3580
- interface ListCalendarEventsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetAndPayloadSchema> {
3385
+ interface UpdateCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventResponsePayloadSchema> {
3581
3386
  }
3582
3387
  }
3583
3388
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3584
- interface ListCalendarEventsResponsePayload {
3585
- 'calendarEvents': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
3389
+ interface UpdateCalendarEmitTarget {
3390
+ 'organizationId': string;
3391
+ 'calendarId': string;
3586
3392
  }
3587
- interface ListCalendarEventsResponsePayloadSchema extends SpruceSchema.Schema {
3588
- id: 'listCalendarEventsResponsePayload';
3393
+ interface UpdateCalendarEmitTargetSchema extends SpruceSchema.Schema {
3394
+ id: 'updateCalendarEmitTarget';
3589
3395
  version: 'v2021_05_19';
3590
3396
  namespace: 'Calendar';
3591
3397
  name: '';
3592
3398
  fields: {
3593
3399
  /** . */
3594
- 'calendarEvents': {
3595
- type: 'schema';
3400
+ 'organizationId': {
3401
+ type: 'id';
3596
3402
  isRequired: true;
3597
- isArray: true;
3598
- minArrayLength: 0;
3599
- options: {
3600
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
3601
- };
3403
+ options: undefined;
3404
+ };
3405
+ /** . */
3406
+ 'calendarId': {
3407
+ type: 'id';
3408
+ isRequired: true;
3409
+ options: undefined;
3602
3410
  };
3603
3411
  };
3604
3412
  }
3605
- interface ListCalendarEventsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsResponsePayloadSchema> {
3413
+ interface UpdateCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema> {
3606
3414
  }
3607
3415
  }
3608
3416
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3609
- interface RegisterVenuesEmitTarget {
3610
- 'organizationId': string;
3417
+ interface UpdateCalendarEmitPayload {
3418
+ 'slug'?: string | undefined | null;
3419
+ 'title'?: string | undefined | null;
3420
+ 'eventTypes'?: string[] | undefined | null;
3421
+ 'target'?: SpruceSchemas.Calendar.v2021_05_19.CalendarTarget | undefined | null;
3422
+ 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3423
+ 'availableTimeSlotBehavior'?: ("include" | "exclude") | undefined | null;
3611
3424
  }
3612
- interface RegisterVenuesEmitTargetSchema extends SpruceSchema.Schema {
3613
- id: 'registerVenuesEmitTarget';
3425
+ interface UpdateCalendarEmitPayloadSchema extends SpruceSchema.Schema {
3426
+ id: 'updateCalendarEmitPayload';
3614
3427
  version: 'v2021_05_19';
3615
3428
  namespace: 'Calendar';
3616
3429
  name: '';
3617
3430
  fields: {
3618
3431
  /** . */
3619
- 'organizationId': {
3432
+ 'slug': {
3620
3433
  type: 'id';
3621
- isRequired: true;
3622
3434
  options: undefined;
3623
3435
  };
3436
+ /** . */
3437
+ 'title': {
3438
+ type: 'text';
3439
+ options: undefined;
3440
+ };
3441
+ /** . */
3442
+ 'eventTypes': {
3443
+ type: 'text';
3444
+ isArray: true;
3445
+ minArrayLength: 0;
3446
+ options: undefined;
3447
+ };
3448
+ /** . */
3449
+ 'target': {
3450
+ type: 'schema';
3451
+ options: {
3452
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarTargetSchema;
3453
+ };
3454
+ };
3455
+ /** . */
3456
+ 'dateDeleted': {
3457
+ type: 'dateTime';
3458
+ options: undefined;
3459
+ };
3460
+ /** . */
3461
+ 'availableTimeSlotBehavior': {
3462
+ type: 'select';
3463
+ options: {
3464
+ choices: [{
3465
+ "value": "include";
3466
+ "label": "Include";
3467
+ }, {
3468
+ "value": "exclude";
3469
+ "label": "Exclude";
3470
+ }];
3471
+ };
3472
+ };
3624
3473
  };
3625
3474
  }
3626
- interface RegisterVenuesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterVenuesEmitTargetSchema> {
3475
+ interface UpdateCalendarEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema> {
3627
3476
  }
3628
3477
  }
3629
3478
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3630
- interface RegisterVenuesEmitTargetAndPayload {
3479
+ interface UpdateCalendarEmitTargetAndPayload {
3631
3480
  /** Source. */
3632
3481
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3633
- 'target': SpruceSchemas.Calendar.v2021_05_19.RegisterVenuesEmitTarget;
3482
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTarget;
3483
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayload | undefined | null;
3634
3484
  }
3635
- interface RegisterVenuesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3636
- id: 'registerVenuesEmitTargetAndPayload';
3485
+ interface UpdateCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3486
+ id: 'updateCalendarEmitTargetAndPayload';
3637
3487
  version: 'v2021_05_19';
3638
3488
  namespace: 'Calendar';
3639
3489
  name: '';
@@ -3651,37 +3501,42 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3651
3501
  type: 'schema';
3652
3502
  isRequired: true;
3653
3503
  options: {
3654
- schema: SpruceSchemas.Calendar.v2021_05_19.RegisterVenuesEmitTargetSchema;
3504
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema;
3505
+ };
3506
+ };
3507
+ /** . */
3508
+ 'payload': {
3509
+ type: 'schema';
3510
+ options: {
3511
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema;
3655
3512
  };
3656
3513
  };
3657
3514
  };
3658
3515
  }
3659
- interface RegisterVenuesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterVenuesEmitTargetAndPayloadSchema> {
3516
+ interface UpdateCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetAndPayloadSchema> {
3660
3517
  }
3661
3518
  }
3662
3519
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3663
- interface RegisterVenuesResponsePayload {
3664
- 'venues': SpruceSchemas.CalendarUtils.v2021_05_19.Venue[];
3520
+ interface UpdateCalendarResponsePayload {
3521
+ 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
3665
3522
  }
3666
- interface RegisterVenuesResponsePayloadSchema extends SpruceSchema.Schema {
3667
- id: 'registerVenuesResponsePayload';
3523
+ interface UpdateCalendarResponsePayloadSchema extends SpruceSchema.Schema {
3524
+ id: 'updateCalendarResponsePayload';
3668
3525
  version: 'v2021_05_19';
3669
3526
  namespace: 'Calendar';
3670
3527
  name: '';
3671
3528
  fields: {
3672
3529
  /** . */
3673
- 'venues': {
3530
+ 'calendar': {
3674
3531
  type: 'schema';
3675
3532
  isRequired: true;
3676
- isArray: true;
3677
- minArrayLength: 0;
3678
3533
  options: {
3679
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.VenueSchema;
3534
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
3680
3535
  };
3681
3536
  };
3682
3537
  };
3683
3538
  }
3684
- interface RegisterVenuesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterVenuesResponsePayloadSchema> {
3539
+ interface UpdateCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarResponsePayloadSchema> {
3685
3540
  }
3686
3541
  }
3687
3542
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -4361,6 +4216,151 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4361
4216
  interface UpsertCalendarEventTypeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeResponsePayloadSchema> {
4362
4217
  }
4363
4218
  }
4219
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4220
+ interface StreamSchedulesEmitTarget {
4221
+ 'locationId': string;
4222
+ 'organizationId'?: string | undefined | null;
4223
+ 'personId': string;
4224
+ }
4225
+ interface StreamSchedulesEmitTargetSchema extends SpruceSchema.Schema {
4226
+ id: 'streamSchedulesEmitTarget';
4227
+ version: 'v2021_05_19';
4228
+ namespace: 'Calendar';
4229
+ name: '';
4230
+ fields: {
4231
+ /** . */
4232
+ 'locationId': {
4233
+ type: 'id';
4234
+ isRequired: true;
4235
+ options: undefined;
4236
+ };
4237
+ /** . */
4238
+ 'organizationId': {
4239
+ type: 'id';
4240
+ options: undefined;
4241
+ };
4242
+ /** . */
4243
+ 'personId': {
4244
+ type: 'id';
4245
+ isRequired: true;
4246
+ options: undefined;
4247
+ };
4248
+ };
4249
+ }
4250
+ interface StreamSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetSchema> {
4251
+ }
4252
+ }
4253
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4254
+ interface StreamSchedulesEmitTargetAndPayload {
4255
+ /** Source. */
4256
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4257
+ 'target': SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTarget;
4258
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayload;
4259
+ }
4260
+ interface StreamSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4261
+ id: 'streamSchedulesEmitTargetAndPayload';
4262
+ version: 'v2021_05_19';
4263
+ namespace: 'Calendar';
4264
+ name: '';
4265
+ fields: {
4266
+ /** Source. */
4267
+ 'source': {
4268
+ label: 'Source';
4269
+ type: 'schema';
4270
+ options: {
4271
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
4272
+ };
4273
+ };
4274
+ /** . */
4275
+ 'target': {
4276
+ type: 'schema';
4277
+ isRequired: true;
4278
+ options: {
4279
+ schema: SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetSchema;
4280
+ };
4281
+ };
4282
+ /** . */
4283
+ 'payload': {
4284
+ type: 'schema';
4285
+ isRequired: true;
4286
+ options: {
4287
+ schema: SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayloadSchema;
4288
+ };
4289
+ };
4290
+ };
4291
+ }
4292
+ interface StreamSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetAndPayloadSchema> {
4293
+ }
4294
+ }
4295
+ namespace SpruceSchemas.MercuryChunkingEmitter.v2023_10_21 {
4296
+ interface ChunkPaging {
4297
+ 'total': number;
4298
+ 'current': number;
4299
+ }
4300
+ interface ChunkPagingSchema extends SpruceSchema.Schema {
4301
+ id: 'chunkPaging';
4302
+ version: 'v2023_10_21';
4303
+ namespace: 'MercuryChunkingEmitter';
4304
+ name: 'Chunk Paging';
4305
+ fields: {
4306
+ /** . */
4307
+ 'total': {
4308
+ type: 'number';
4309
+ isRequired: true;
4310
+ options: undefined;
4311
+ };
4312
+ /** . */
4313
+ 'current': {
4314
+ type: 'number';
4315
+ isRequired: true;
4316
+ options: undefined;
4317
+ };
4318
+ };
4319
+ }
4320
+ interface ChunkPagingEntity extends SchemaEntity<SpruceSchemas.MercuryChunkingEmitter.v2023_10_21.ChunkPagingSchema> {
4321
+ }
4322
+ }
4323
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4324
+ interface StreamSchedulesEmitPayload {
4325
+ 'chunkingId': string;
4326
+ 'events': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
4327
+ 'chunk': SpruceSchemas.MercuryChunkingEmitter.v2023_10_21.ChunkPaging;
4328
+ }
4329
+ interface StreamSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
4330
+ id: 'streamSchedulesEmitPayload';
4331
+ version: 'v2021_05_19';
4332
+ namespace: 'Calendar';
4333
+ name: '';
4334
+ fields: {
4335
+ /** . */
4336
+ 'chunkingId': {
4337
+ type: 'id';
4338
+ isRequired: true;
4339
+ options: undefined;
4340
+ };
4341
+ /** . */
4342
+ 'events': {
4343
+ type: 'schema';
4344
+ isRequired: true;
4345
+ isArray: true;
4346
+ minArrayLength: 0;
4347
+ options: {
4348
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
4349
+ };
4350
+ };
4351
+ /** . */
4352
+ 'chunk': {
4353
+ type: 'schema';
4354
+ isRequired: true;
4355
+ options: {
4356
+ schema: SpruceSchemas.MercuryChunkingEmitter.v2023_10_21.ChunkPagingSchema;
4357
+ };
4358
+ };
4359
+ };
4360
+ }
4361
+ interface StreamSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayloadSchema> {
4362
+ }
4363
+ }
4364
4364
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4365
4365
  interface CreateCalendarEventEmitTarget {
4366
4366
  'organizationId'?: string | undefined | null;