@sprucelabs/spruce-calendar-components 28.2.37 → 28.2.38

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,47 +719,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
719
719
  interface UpsertThemeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Heartwood.v2021_02_11.UpsertThemeEmitPayloadSchema> {
720
720
  }
721
721
  }
722
- namespace SpruceSchemas.Calendar.v2021_05_19 {
723
- interface ListCalendarEventsEmitTargetAndPayload {
724
- /** Source. */
725
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
726
- 'target': SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTarget;
727
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayload | undefined | null;
728
- }
729
- interface ListCalendarEventsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
730
- id: 'listCalendarEventsEmitTargetAndPayload';
731
- version: 'v2021_05_19';
732
- namespace: 'Calendar';
733
- name: '';
734
- fields: {
735
- /** Source. */
736
- 'source': {
737
- label: 'Source';
738
- type: 'schema';
739
- options: {
740
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
741
- };
742
- };
743
- /** . */
744
- 'target': {
745
- type: 'schema';
746
- isRequired: true;
747
- options: {
748
- schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetSchema;
749
- };
750
- };
751
- /** . */
752
- 'payload': {
753
- type: 'schema';
754
- options: {
755
- schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayloadSchema;
756
- };
757
- };
758
- };
759
- }
760
- interface ListCalendarEventsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetAndPayloadSchema> {
761
- }
762
- }
763
722
  namespace SpruceSchemas.Calendar.v2021_05_19 {
764
723
  interface CancelCalendarEventEmitTarget {
765
724
  'locationId': string;
@@ -1012,6 +971,221 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1012
971
  interface CreateCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarResponsePayloadSchema> {
1013
972
  }
1014
973
  }
974
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
975
+ interface DeleteCalendarEmitTarget {
976
+ 'organizationId': string;
977
+ 'calendarId': string;
978
+ }
979
+ interface DeleteCalendarEmitTargetSchema extends SpruceSchema.Schema {
980
+ id: 'deleteCalendarEmitTarget';
981
+ version: 'v2021_05_19';
982
+ namespace: 'Calendar';
983
+ name: '';
984
+ fields: {
985
+ /** . */
986
+ 'organizationId': {
987
+ type: 'id';
988
+ isRequired: true;
989
+ options: undefined;
990
+ };
991
+ /** . */
992
+ 'calendarId': {
993
+ type: 'id';
994
+ isRequired: true;
995
+ options: undefined;
996
+ };
997
+ };
998
+ }
999
+ interface DeleteCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema> {
1000
+ }
1001
+ }
1002
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1003
+ interface DeleteCalendarEmitTargetAndPayload {
1004
+ /** Source. */
1005
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1006
+ 'target': SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTarget;
1007
+ }
1008
+ interface DeleteCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1009
+ id: 'deleteCalendarEmitTargetAndPayload';
1010
+ version: 'v2021_05_19';
1011
+ namespace: 'Calendar';
1012
+ name: '';
1013
+ fields: {
1014
+ /** Source. */
1015
+ 'source': {
1016
+ label: 'Source';
1017
+ type: 'schema';
1018
+ options: {
1019
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1020
+ };
1021
+ };
1022
+ /** . */
1023
+ 'target': {
1024
+ type: 'schema';
1025
+ isRequired: true;
1026
+ options: {
1027
+ schema: SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema;
1028
+ };
1029
+ };
1030
+ };
1031
+ }
1032
+ interface DeleteCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetAndPayloadSchema> {
1033
+ }
1034
+ }
1035
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1036
+ interface DeleteCalendarResponsePayload {
1037
+ 'totalDeleted'?: number | undefined | null;
1038
+ }
1039
+ interface DeleteCalendarResponsePayloadSchema extends SpruceSchema.Schema {
1040
+ id: 'deleteCalendarResponsePayload';
1041
+ version: 'v2021_05_19';
1042
+ namespace: 'Calendar';
1043
+ name: '';
1044
+ fields: {
1045
+ /** . */
1046
+ 'totalDeleted': {
1047
+ type: 'number';
1048
+ options: undefined;
1049
+ };
1050
+ };
1051
+ }
1052
+ interface DeleteCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarResponsePayloadSchema> {
1053
+ }
1054
+ }
1055
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1056
+ interface GetCalendarEventResponsePayload {
1057
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
1058
+ }
1059
+ interface GetCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
1060
+ id: 'getCalendarEventResponsePayload';
1061
+ version: 'v2021_05_19';
1062
+ namespace: 'Calendar';
1063
+ name: '';
1064
+ fields: {
1065
+ /** . */
1066
+ 'calendarEvent': {
1067
+ type: 'schema';
1068
+ isRequired: true;
1069
+ options: {
1070
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1071
+ };
1072
+ };
1073
+ };
1074
+ }
1075
+ interface GetCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventResponsePayloadSchema> {
1076
+ }
1077
+ }
1078
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1079
+ interface DidCancelCalendarEventEmitPayload {
1080
+ 'cancelStrategy': ("only-this-one" | "all-going-forward" | "all");
1081
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
1082
+ }
1083
+ interface DidCancelCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
1084
+ id: 'didCancelCalendarEventEmitPayload';
1085
+ version: 'v2021_05_19';
1086
+ namespace: 'Calendar';
1087
+ name: '';
1088
+ fields: {
1089
+ /** . */
1090
+ 'cancelStrategy': {
1091
+ type: 'select';
1092
+ isRequired: true;
1093
+ options: {
1094
+ choices: [{
1095
+ "value": "only-this-one";
1096
+ "label": "Specific dates";
1097
+ }, {
1098
+ "value": "all-going-forward";
1099
+ "label": "This and all going forward";
1100
+ }, {
1101
+ "value": "all";
1102
+ "label": "All";
1103
+ }];
1104
+ };
1105
+ };
1106
+ /** . */
1107
+ 'calendarEvent': {
1108
+ type: 'schema';
1109
+ isRequired: true;
1110
+ options: {
1111
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1112
+ };
1113
+ };
1114
+ };
1115
+ }
1116
+ interface DidCancelCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema> {
1117
+ }
1118
+ }
1119
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1120
+ interface DidCancelCalendarEventEmitTarget {
1121
+ 'locationId': string;
1122
+ 'calendarEventId': string;
1123
+ }
1124
+ interface DidCancelCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
1125
+ id: 'didCancelCalendarEventEmitTarget';
1126
+ version: 'v2021_05_19';
1127
+ namespace: 'Calendar';
1128
+ name: '';
1129
+ fields: {
1130
+ /** . */
1131
+ 'locationId': {
1132
+ type: 'id';
1133
+ isRequired: true;
1134
+ options: undefined;
1135
+ };
1136
+ /** . */
1137
+ 'calendarEventId': {
1138
+ type: 'id';
1139
+ isRequired: true;
1140
+ options: undefined;
1141
+ };
1142
+ };
1143
+ }
1144
+ interface DidCancelCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetSchema> {
1145
+ }
1146
+ }
1147
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1148
+ interface DidCancelCalendarEventEmitTargetAndPayload {
1149
+ /** Source. */
1150
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1151
+ 'target': SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTarget;
1152
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayload;
1153
+ }
1154
+ interface DidCancelCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1155
+ id: 'didCancelCalendarEventEmitTargetAndPayload';
1156
+ version: 'v2021_05_19';
1157
+ namespace: 'Calendar';
1158
+ name: '';
1159
+ fields: {
1160
+ /** Source. */
1161
+ 'source': {
1162
+ label: 'Source';
1163
+ type: 'schema';
1164
+ options: {
1165
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1166
+ };
1167
+ };
1168
+ /** . */
1169
+ 'target': {
1170
+ type: 'schema';
1171
+ isRequired: true;
1172
+ options: {
1173
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetSchema;
1174
+ };
1175
+ };
1176
+ /** . */
1177
+ 'payload': {
1178
+ type: 'schema';
1179
+ isRequired: true;
1180
+ options: {
1181
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema;
1182
+ };
1183
+ };
1184
+ };
1185
+ }
1186
+ interface DidCancelCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetAndPayloadSchema> {
1187
+ }
1188
+ }
1015
1189
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1016
1190
  interface CreateCalendarEventTypeEmitPayload {
1017
1191
  'name': string;
@@ -1522,12 +1696,13 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1522
1696
  }
1523
1697
  }
1524
1698
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1525
- interface DeleteCalendarEmitTarget {
1526
- 'organizationId': string;
1527
- 'calendarId': string;
1699
+ interface GetAvailableTimeSlotsEmitTarget {
1700
+ 'organizationId'?: string | undefined | null;
1701
+ 'locationId'?: string | undefined | null;
1702
+ 'calendarIds': string[];
1528
1703
  }
1529
- interface DeleteCalendarEmitTargetSchema extends SpruceSchema.Schema {
1530
- id: 'deleteCalendarEmitTarget';
1704
+ interface GetAvailableTimeSlotsEmitTargetSchema extends SpruceSchema.Schema {
1705
+ id: 'getAvailableTimeSlotsEmitTarget';
1531
1706
  version: 'v2021_05_19';
1532
1707
  namespace: 'Calendar';
1533
1708
  name: '';
@@ -1535,151 +1710,115 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1535
1710
  /** . */
1536
1711
  'organizationId': {
1537
1712
  type: 'id';
1538
- isRequired: true;
1539
1713
  options: undefined;
1540
1714
  };
1541
1715
  /** . */
1542
- 'calendarId': {
1716
+ 'locationId': {
1717
+ type: 'id';
1718
+ options: undefined;
1719
+ };
1720
+ /** . */
1721
+ 'calendarIds': {
1543
1722
  type: 'id';
1544
1723
  isRequired: true;
1724
+ isArray: true;
1545
1725
  options: undefined;
1546
1726
  };
1547
1727
  };
1548
1728
  }
1549
- interface DeleteCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema> {
1729
+ interface GetAvailableTimeSlotsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema> {
1550
1730
  }
1551
1731
  }
1552
1732
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1553
- interface DeleteCalendarEmitTargetAndPayload {
1554
- /** Source. */
1555
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1556
- 'target': SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTarget;
1733
+ interface Teammates {
1734
+ 'personId': string;
1735
+ 'durationMinutes': number;
1557
1736
  }
1558
- interface DeleteCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1559
- id: 'deleteCalendarEmitTargetAndPayload';
1737
+ interface TeammatesSchema extends SpruceSchema.Schema {
1738
+ id: 'teammates';
1560
1739
  version: 'v2021_05_19';
1561
1740
  namespace: 'Calendar';
1562
1741
  name: '';
1563
1742
  fields: {
1564
- /** Source. */
1565
- 'source': {
1566
- label: 'Source';
1567
- type: 'schema';
1568
- options: {
1569
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1570
- };
1571
- };
1572
1743
  /** . */
1573
- 'target': {
1574
- type: 'schema';
1744
+ 'personId': {
1745
+ type: 'id';
1575
1746
  isRequired: true;
1576
- options: {
1577
- schema: SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema;
1578
- };
1747
+ options: undefined;
1579
1748
  };
1580
- };
1581
- }
1582
- interface DeleteCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetAndPayloadSchema> {
1583
- }
1584
- }
1585
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1586
- interface DeleteCalendarResponsePayload {
1587
- 'totalDeleted'?: number | undefined | null;
1588
- }
1589
- interface DeleteCalendarResponsePayloadSchema extends SpruceSchema.Schema {
1590
- id: 'deleteCalendarResponsePayload';
1591
- version: 'v2021_05_19';
1592
- namespace: 'Calendar';
1593
- name: '';
1594
- fields: {
1595
1749
  /** . */
1596
- 'totalDeleted': {
1750
+ 'durationMinutes': {
1597
1751
  type: 'number';
1752
+ isRequired: true;
1598
1753
  options: undefined;
1599
1754
  };
1600
1755
  };
1601
1756
  }
1602
- interface DeleteCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarResponsePayloadSchema> {
1757
+ interface TeammatesEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema> {
1603
1758
  }
1604
1759
  }
1605
1760
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1606
- interface DidCancelCalendarEventEmitTarget {
1607
- 'locationId': string;
1608
- 'calendarEventId': string;
1761
+ interface GetAvailableTimeSlotsEmitPayload {
1762
+ 'startDateTimeMs': number;
1763
+ 'endDateTimeMs': number;
1764
+ 'calculationMode': ("intersect" | "contiguous");
1765
+ 'teammates': SpruceSchemas.Calendar.v2021_05_19.Teammates[];
1609
1766
  }
1610
- interface DidCancelCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
1611
- id: 'didCancelCalendarEventEmitTarget';
1767
+ interface GetAvailableTimeSlotsEmitPayloadSchema extends SpruceSchema.Schema {
1768
+ id: 'getAvailableTimeSlotsEmitPayload';
1612
1769
  version: 'v2021_05_19';
1613
1770
  namespace: 'Calendar';
1614
1771
  name: '';
1615
1772
  fields: {
1616
1773
  /** . */
1617
- 'locationId': {
1618
- type: 'id';
1774
+ 'startDateTimeMs': {
1775
+ type: 'number';
1619
1776
  isRequired: true;
1620
1777
  options: undefined;
1621
1778
  };
1622
1779
  /** . */
1623
- 'calendarEventId': {
1624
- type: 'id';
1780
+ 'endDateTimeMs': {
1781
+ type: 'number';
1625
1782
  isRequired: true;
1626
1783
  options: undefined;
1627
1784
  };
1628
- };
1629
- }
1630
- interface DidCancelCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetSchema> {
1631
- }
1632
- }
1633
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1634
- interface DidCancelCalendarEventEmitPayload {
1635
- 'cancelStrategy': ("only-this-one" | "all-going-forward" | "all");
1636
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
1637
- }
1638
- interface DidCancelCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
1639
- id: 'didCancelCalendarEventEmitPayload';
1640
- version: 'v2021_05_19';
1641
- namespace: 'Calendar';
1642
- name: '';
1643
- fields: {
1644
1785
  /** . */
1645
- 'cancelStrategy': {
1786
+ 'calculationMode': {
1646
1787
  type: 'select';
1647
1788
  isRequired: true;
1648
1789
  options: {
1649
1790
  choices: [{
1650
- "value": "only-this-one";
1651
- "label": "Specific dates";
1652
- }, {
1653
- "value": "all-going-forward";
1654
- "label": "This and all going forward";
1791
+ "value": "intersect";
1792
+ "label": "Intersect";
1655
1793
  }, {
1656
- "value": "all";
1657
- "label": "All";
1794
+ "value": "contiguous";
1795
+ "label": "Contiguous";
1658
1796
  }];
1659
1797
  };
1660
1798
  };
1661
1799
  /** . */
1662
- 'calendarEvent': {
1800
+ 'teammates': {
1663
1801
  type: 'schema';
1664
1802
  isRequired: true;
1803
+ isArray: true;
1665
1804
  options: {
1666
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1805
+ schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema;
1667
1806
  };
1668
1807
  };
1669
1808
  };
1670
1809
  }
1671
- interface DidCancelCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema> {
1810
+ interface GetAvailableTimeSlotsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema> {
1672
1811
  }
1673
1812
  }
1674
1813
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1675
- interface DidCancelCalendarEventEmitTargetAndPayload {
1814
+ interface GetAvailableTimeSlotsEmitTargetAndPayload {
1676
1815
  /** Source. */
1677
1816
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1678
- 'target': SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTarget;
1679
- 'payload': SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayload;
1817
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTarget;
1818
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayload;
1680
1819
  }
1681
- interface DidCancelCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1682
- id: 'didCancelCalendarEventEmitTargetAndPayload';
1820
+ interface GetAvailableTimeSlotsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1821
+ id: 'getAvailableTimeSlotsEmitTargetAndPayload';
1683
1822
  version: 'v2021_05_19';
1684
1823
  namespace: 'Calendar';
1685
1824
  name: '';
@@ -1697,7 +1836,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1697
1836
  type: 'schema';
1698
1837
  isRequired: true;
1699
1838
  options: {
1700
- schema: SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetSchema;
1839
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema;
1701
1840
  };
1702
1841
  };
1703
1842
  /** . */
@@ -1705,108 +1844,99 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1705
1844
  type: 'schema';
1706
1845
  isRequired: true;
1707
1846
  options: {
1708
- schema: SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema;
1847
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema;
1709
1848
  };
1710
1849
  };
1711
1850
  };
1712
1851
  }
1713
- interface DidCancelCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetAndPayloadSchema> {
1852
+ interface GetAvailableTimeSlotsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetAndPayloadSchema> {
1714
1853
  }
1715
1854
  }
1716
1855
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1717
- interface DidUpdateCalendarEventEmitTarget {
1718
- 'locationId': string;
1856
+ interface TeammatesTimeslots {
1857
+ 'personId': string;
1858
+ 'startDateTimeMs': number;
1719
1859
  }
1720
- interface DidUpdateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
1721
- id: 'didUpdateCalendarEventEmitTarget';
1860
+ interface TeammatesTimeslotsSchema extends SpruceSchema.Schema {
1861
+ id: 'teammatesTimeslots';
1722
1862
  version: 'v2021_05_19';
1723
1863
  namespace: 'Calendar';
1724
1864
  name: '';
1725
1865
  fields: {
1726
1866
  /** . */
1727
- 'locationId': {
1867
+ 'personId': {
1728
1868
  type: 'id';
1729
1869
  isRequired: true;
1730
1870
  options: undefined;
1731
1871
  };
1872
+ /** . */
1873
+ 'startDateTimeMs': {
1874
+ type: 'number';
1875
+ isRequired: true;
1876
+ options: undefined;
1877
+ };
1732
1878
  };
1733
1879
  }
1734
- interface DidUpdateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetSchema> {
1880
+ interface TeammatesTimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema> {
1735
1881
  }
1736
1882
  }
1737
1883
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1738
- interface DidUpdateCalendarEventEmitPayload {
1739
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
1884
+ interface Timeslots {
1885
+ 'slots': SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslots[];
1740
1886
  }
1741
- interface DidUpdateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
1742
- id: 'didUpdateCalendarEventEmitPayload';
1887
+ interface TimeslotsSchema extends SpruceSchema.Schema {
1888
+ id: 'timeslots';
1743
1889
  version: 'v2021_05_19';
1744
1890
  namespace: 'Calendar';
1745
1891
  name: '';
1746
1892
  fields: {
1747
1893
  /** . */
1748
- 'calendarEvent': {
1894
+ 'slots': {
1749
1895
  type: 'schema';
1750
1896
  isRequired: true;
1897
+ isArray: true;
1751
1898
  options: {
1752
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1899
+ schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema;
1753
1900
  };
1754
1901
  };
1755
1902
  };
1756
1903
  }
1757
- interface DidUpdateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayloadSchema> {
1904
+ interface TimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema> {
1758
1905
  }
1759
1906
  }
1760
1907
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1761
- interface DidUpdateCalendarEventEmitTargetAndPayload {
1762
- /** Source. */
1763
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1764
- 'target': SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTarget;
1765
- 'payload': SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayload;
1908
+ interface GetAvailableTimeSlotsResponsePayload {
1909
+ 'times': SpruceSchemas.Calendar.v2021_05_19.Timeslots[];
1766
1910
  }
1767
- interface DidUpdateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1768
- id: 'didUpdateCalendarEventEmitTargetAndPayload';
1911
+ interface GetAvailableTimeSlotsResponsePayloadSchema extends SpruceSchema.Schema {
1912
+ id: 'getAvailableTimeSlotsResponsePayload';
1769
1913
  version: 'v2021_05_19';
1770
1914
  namespace: 'Calendar';
1771
1915
  name: '';
1772
1916
  fields: {
1773
- /** Source. */
1774
- 'source': {
1775
- label: 'Source';
1776
- type: 'schema';
1777
- options: {
1778
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1779
- };
1780
- };
1781
- /** . */
1782
- 'target': {
1783
- type: 'schema';
1784
- isRequired: true;
1785
- options: {
1786
- schema: SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetSchema;
1787
- };
1788
- };
1789
1917
  /** . */
1790
- 'payload': {
1918
+ 'times': {
1791
1919
  type: 'schema';
1792
1920
  isRequired: true;
1921
+ isArray: true;
1922
+ minArrayLength: 0;
1793
1923
  options: {
1794
- schema: SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayloadSchema;
1924
+ schema: SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema;
1795
1925
  };
1796
1926
  };
1797
1927
  };
1798
1928
  }
1799
- interface DidUpdateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetAndPayloadSchema> {
1929
+ interface GetAvailableTimeSlotsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsResponsePayloadSchema> {
1800
1930
  }
1801
1931
  }
1802
1932
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1803
- interface GetAvailableTimeSlotsEmitTarget {
1804
- 'organizationId'?: string | undefined | null;
1805
- 'locationId'?: string | undefined | null;
1806
- 'calendarIds': string[];
1933
+ interface GetCalendarEmitTarget {
1934
+ 'organizationId': string;
1935
+ 'slug'?: string | undefined | null;
1936
+ 'calendarId'?: string | undefined | null;
1807
1937
  }
1808
- interface GetAvailableTimeSlotsEmitTargetSchema extends SpruceSchema.Schema {
1809
- id: 'getAvailableTimeSlotsEmitTarget';
1938
+ interface GetCalendarEmitTargetSchema extends SpruceSchema.Schema {
1939
+ id: 'getCalendarEmitTarget';
1810
1940
  version: 'v2021_05_19';
1811
1941
  namespace: 'Calendar';
1812
1942
  name: '';
@@ -1814,34 +1944,32 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1814
1944
  /** . */
1815
1945
  'organizationId': {
1816
1946
  type: 'id';
1947
+ isRequired: true;
1817
1948
  options: undefined;
1818
1949
  };
1819
1950
  /** . */
1820
- 'locationId': {
1951
+ 'slug': {
1821
1952
  type: 'id';
1822
1953
  options: undefined;
1823
1954
  };
1824
1955
  /** . */
1825
- 'calendarIds': {
1956
+ 'calendarId': {
1826
1957
  type: 'id';
1827
- isRequired: true;
1828
- isArray: true;
1829
1958
  options: undefined;
1830
1959
  };
1831
1960
  };
1832
1961
  }
1833
- interface GetAvailableTimeSlotsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema> {
1962
+ interface GetCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema> {
1834
1963
  }
1835
1964
  }
1836
1965
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1837
- interface GetAvailableTimeSlotsEmitTargetAndPayload {
1966
+ interface GetCalendarEmitTargetAndPayload {
1838
1967
  /** Source. */
1839
1968
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1840
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTarget;
1841
- 'payload': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayload;
1969
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTarget;
1842
1970
  }
1843
- interface GetAvailableTimeSlotsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1844
- id: 'getAvailableTimeSlotsEmitTargetAndPayload';
1971
+ interface GetCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1972
+ id: 'getCalendarEmitTargetAndPayload';
1845
1973
  version: 'v2021_05_19';
1846
1974
  namespace: 'Calendar';
1847
1975
  name: '';
@@ -1859,221 +1987,194 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1859
1987
  type: 'schema';
1860
1988
  isRequired: true;
1861
1989
  options: {
1862
- schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema;
1863
- };
1864
- };
1865
- /** . */
1866
- 'payload': {
1867
- type: 'schema';
1868
- isRequired: true;
1869
- options: {
1870
- schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema;
1990
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema;
1871
1991
  };
1872
1992
  };
1873
1993
  };
1874
1994
  }
1875
- interface GetAvailableTimeSlotsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetAndPayloadSchema> {
1995
+ interface GetCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetAndPayloadSchema> {
1876
1996
  }
1877
1997
  }
1878
1998
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1879
- interface Teammates {
1880
- 'personId': string;
1881
- 'durationMinutes': number;
1882
- }
1883
- interface TeammatesSchema extends SpruceSchema.Schema {
1884
- id: 'teammates';
1999
+ interface GetCalendarResponsePayload {
2000
+ 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
2001
+ }
2002
+ interface GetCalendarResponsePayloadSchema extends SpruceSchema.Schema {
2003
+ id: 'getCalendarResponsePayload';
1885
2004
  version: 'v2021_05_19';
1886
2005
  namespace: 'Calendar';
1887
2006
  name: '';
1888
2007
  fields: {
1889
2008
  /** . */
1890
- 'personId': {
1891
- type: 'id';
1892
- isRequired: true;
1893
- options: undefined;
1894
- };
1895
- /** . */
1896
- 'durationMinutes': {
1897
- type: 'number';
2009
+ 'calendar': {
2010
+ type: 'schema';
1898
2011
  isRequired: true;
1899
- options: undefined;
2012
+ options: {
2013
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
2014
+ };
1900
2015
  };
1901
2016
  };
1902
2017
  }
1903
- interface TeammatesEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema> {
2018
+ interface GetCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarResponsePayloadSchema> {
1904
2019
  }
1905
2020
  }
1906
2021
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1907
- interface GetAvailableTimeSlotsEmitPayload {
1908
- 'startDateTimeMs': number;
1909
- 'endDateTimeMs': number;
1910
- 'calculationMode': ("intersect" | "contiguous");
1911
- 'teammates': SpruceSchemas.Calendar.v2021_05_19.Teammates[];
2022
+ interface GetCalendarEventEmitTarget {
2023
+ 'locationId': string;
2024
+ 'calendarEventId': string;
1912
2025
  }
1913
- interface GetAvailableTimeSlotsEmitPayloadSchema extends SpruceSchema.Schema {
1914
- id: 'getAvailableTimeSlotsEmitPayload';
2026
+ interface GetCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
2027
+ id: 'getCalendarEventEmitTarget';
1915
2028
  version: 'v2021_05_19';
1916
2029
  namespace: 'Calendar';
1917
2030
  name: '';
1918
2031
  fields: {
1919
2032
  /** . */
1920
- 'startDateTimeMs': {
1921
- type: 'number';
2033
+ 'locationId': {
2034
+ type: 'id';
1922
2035
  isRequired: true;
1923
2036
  options: undefined;
1924
2037
  };
1925
2038
  /** . */
1926
- 'endDateTimeMs': {
1927
- type: 'number';
2039
+ 'calendarEventId': {
2040
+ type: 'id';
1928
2041
  isRequired: true;
1929
2042
  options: undefined;
1930
2043
  };
1931
- /** . */
1932
- 'calculationMode': {
1933
- type: 'select';
1934
- isRequired: true;
2044
+ };
2045
+ }
2046
+ interface GetCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetSchema> {
2047
+ }
2048
+ }
2049
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2050
+ interface GetCalendarEventEmitTargetAndPayload {
2051
+ /** Source. */
2052
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2053
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTarget;
2054
+ }
2055
+ interface GetCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2056
+ id: 'getCalendarEventEmitTargetAndPayload';
2057
+ version: 'v2021_05_19';
2058
+ namespace: 'Calendar';
2059
+ name: '';
2060
+ fields: {
2061
+ /** Source. */
2062
+ 'source': {
2063
+ label: 'Source';
2064
+ type: 'schema';
1935
2065
  options: {
1936
- choices: [{
1937
- "value": "intersect";
1938
- "label": "Intersect";
1939
- }, {
1940
- "value": "contiguous";
1941
- "label": "Contiguous";
1942
- }];
2066
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1943
2067
  };
1944
2068
  };
1945
2069
  /** . */
1946
- 'teammates': {
2070
+ 'target': {
1947
2071
  type: 'schema';
1948
2072
  isRequired: true;
1949
- isArray: true;
1950
2073
  options: {
1951
- schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema;
2074
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetSchema;
1952
2075
  };
1953
2076
  };
1954
2077
  };
1955
2078
  }
1956
- interface GetAvailableTimeSlotsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema> {
2079
+ interface GetCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetAndPayloadSchema> {
1957
2080
  }
1958
2081
  }
1959
2082
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1960
- interface TeammatesTimeslots {
1961
- 'personId': string;
1962
- 'startDateTimeMs': number;
2083
+ interface GetConflictsForTimeRangeEmitTarget {
2084
+ 'organizationId': string;
2085
+ 'calendarIds': string[];
1963
2086
  }
1964
- interface TeammatesTimeslotsSchema extends SpruceSchema.Schema {
1965
- id: 'teammatesTimeslots';
2087
+ interface GetConflictsForTimeRangeEmitTargetSchema extends SpruceSchema.Schema {
2088
+ id: 'getConflictsForTimeRangeEmitTarget';
1966
2089
  version: 'v2021_05_19';
1967
2090
  namespace: 'Calendar';
1968
2091
  name: '';
1969
2092
  fields: {
1970
2093
  /** . */
1971
- 'personId': {
2094
+ 'organizationId': {
1972
2095
  type: 'id';
1973
2096
  isRequired: true;
1974
2097
  options: undefined;
1975
2098
  };
1976
2099
  /** . */
1977
- 'startDateTimeMs': {
1978
- type: 'number';
2100
+ 'calendarIds': {
2101
+ type: 'id';
1979
2102
  isRequired: true;
2103
+ isArray: true;
1980
2104
  options: undefined;
1981
2105
  };
1982
2106
  };
1983
2107
  }
1984
- interface TeammatesTimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema> {
2108
+ interface GetConflictsForTimeRangeEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema> {
1985
2109
  }
1986
2110
  }
1987
2111
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1988
- interface Timeslots {
1989
- 'slots': SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslots[];
2112
+ interface Teammate {
2113
+ 'personId': string;
2114
+ 'durationMinutes': number;
1990
2115
  }
1991
- interface TimeslotsSchema extends SpruceSchema.Schema {
1992
- id: 'timeslots';
2116
+ interface TeammateSchema extends SpruceSchema.Schema {
2117
+ id: 'teammate';
1993
2118
  version: 'v2021_05_19';
1994
2119
  namespace: 'Calendar';
1995
2120
  name: '';
1996
2121
  fields: {
1997
2122
  /** . */
1998
- 'slots': {
1999
- type: 'schema';
2123
+ 'personId': {
2124
+ type: 'id';
2000
2125
  isRequired: true;
2001
- isArray: true;
2002
- options: {
2003
- schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema;
2004
- };
2126
+ options: undefined;
2005
2127
  };
2006
- };
2007
- }
2008
- interface TimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema> {
2009
- }
2010
- }
2011
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2012
- interface GetAvailableTimeSlotsResponsePayload {
2013
- 'times': SpruceSchemas.Calendar.v2021_05_19.Timeslots[];
2014
- }
2015
- interface GetAvailableTimeSlotsResponsePayloadSchema extends SpruceSchema.Schema {
2016
- id: 'getAvailableTimeSlotsResponsePayload';
2017
- version: 'v2021_05_19';
2018
- namespace: 'Calendar';
2019
- name: '';
2020
- fields: {
2021
2128
  /** . */
2022
- 'times': {
2023
- type: 'schema';
2129
+ 'durationMinutes': {
2130
+ type: 'number';
2024
2131
  isRequired: true;
2025
- isArray: true;
2026
- minArrayLength: 0;
2027
- options: {
2028
- schema: SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema;
2029
- };
2132
+ options: undefined;
2030
2133
  };
2031
2134
  };
2032
2135
  }
2033
- interface GetAvailableTimeSlotsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsResponsePayloadSchema> {
2136
+ interface TeammateEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammateSchema> {
2034
2137
  }
2035
2138
  }
2036
2139
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2037
- interface GetCalendarEmitTarget {
2038
- 'organizationId': string;
2039
- 'slug'?: string | undefined | null;
2040
- 'calendarId'?: string | undefined | null;
2140
+ interface GetConflictsForTimeRangeEmitPayload {
2141
+ 'startDateTimeMs': number;
2142
+ 'teammate': SpruceSchemas.Calendar.v2021_05_19.Teammate;
2041
2143
  }
2042
- interface GetCalendarEmitTargetSchema extends SpruceSchema.Schema {
2043
- id: 'getCalendarEmitTarget';
2144
+ interface GetConflictsForTimeRangeEmitPayloadSchema extends SpruceSchema.Schema {
2145
+ id: 'getConflictsForTimeRangeEmitPayload';
2044
2146
  version: 'v2021_05_19';
2045
2147
  namespace: 'Calendar';
2046
2148
  name: '';
2047
2149
  fields: {
2048
2150
  /** . */
2049
- 'organizationId': {
2050
- type: 'id';
2151
+ 'startDateTimeMs': {
2152
+ type: 'number';
2051
2153
  isRequired: true;
2052
2154
  options: undefined;
2053
2155
  };
2054
2156
  /** . */
2055
- 'slug': {
2056
- type: 'id';
2057
- options: undefined;
2058
- };
2059
- /** . */
2060
- 'calendarId': {
2061
- type: 'id';
2062
- options: undefined;
2157
+ 'teammate': {
2158
+ type: 'schema';
2159
+ isRequired: true;
2160
+ options: {
2161
+ schema: SpruceSchemas.Calendar.v2021_05_19.TeammateSchema;
2162
+ };
2063
2163
  };
2064
2164
  };
2065
2165
  }
2066
- interface GetCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema> {
2166
+ interface GetConflictsForTimeRangeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema> {
2067
2167
  }
2068
2168
  }
2069
2169
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2070
- interface GetCalendarEmitTargetAndPayload {
2170
+ interface GetConflictsForTimeRangeEmitTargetAndPayload {
2071
2171
  /** Source. */
2072
2172
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2073
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTarget;
2173
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTarget;
2174
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayload;
2074
2175
  }
2075
- interface GetCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2076
- id: 'getCalendarEmitTargetAndPayload';
2176
+ interface GetConflictsForTimeRangeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2177
+ id: 'getConflictsForTimeRangeEmitTargetAndPayload';
2077
2178
  version: 'v2021_05_19';
2078
2179
  namespace: 'Calendar';
2079
2180
  name: '';
@@ -2091,73 +2192,90 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2091
2192
  type: 'schema';
2092
2193
  isRequired: true;
2093
2194
  options: {
2094
- schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema;
2195
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema;
2196
+ };
2197
+ };
2198
+ /** . */
2199
+ 'payload': {
2200
+ type: 'schema';
2201
+ isRequired: true;
2202
+ options: {
2203
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema;
2095
2204
  };
2096
2205
  };
2097
2206
  };
2098
2207
  }
2099
- interface GetCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetAndPayloadSchema> {
2208
+ interface GetConflictsForTimeRangeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetAndPayloadSchema> {
2100
2209
  }
2101
2210
  }
2102
2211
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2103
- interface GetCalendarResponsePayload {
2104
- 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
2212
+ interface GetConflictsForTimeRangeResponsePayload {
2213
+ 'isAvailable': boolean;
2214
+ 'excludedBy'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2215
+ 'overlapsWith'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2105
2216
  }
2106
- interface GetCalendarResponsePayloadSchema extends SpruceSchema.Schema {
2107
- id: 'getCalendarResponsePayload';
2217
+ interface GetConflictsForTimeRangeResponsePayloadSchema extends SpruceSchema.Schema {
2218
+ id: 'getConflictsForTimeRangeResponsePayload';
2108
2219
  version: 'v2021_05_19';
2109
2220
  namespace: 'Calendar';
2110
2221
  name: '';
2111
2222
  fields: {
2112
2223
  /** . */
2113
- 'calendar': {
2114
- type: 'schema';
2224
+ 'isAvailable': {
2225
+ type: 'boolean';
2115
2226
  isRequired: true;
2227
+ options: undefined;
2228
+ };
2229
+ /** . */
2230
+ 'excludedBy': {
2231
+ type: 'schema';
2232
+ isArray: true;
2116
2233
  options: {
2117
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
2234
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2235
+ };
2236
+ };
2237
+ /** . */
2238
+ 'overlapsWith': {
2239
+ type: 'schema';
2240
+ isArray: true;
2241
+ options: {
2242
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2118
2243
  };
2119
2244
  };
2120
2245
  };
2121
2246
  }
2122
- interface GetCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarResponsePayloadSchema> {
2247
+ interface GetConflictsForTimeRangeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeResponsePayloadSchema> {
2123
2248
  }
2124
2249
  }
2125
2250
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2126
- interface GetCalendarEventEmitTarget {
2127
- 'locationId': string;
2128
- 'calendarEventId': string;
2251
+ interface GetPreferencesEmitTarget {
2252
+ 'organizationId': string;
2129
2253
  }
2130
- interface GetCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
2131
- id: 'getCalendarEventEmitTarget';
2254
+ interface GetPreferencesEmitTargetSchema extends SpruceSchema.Schema {
2255
+ id: 'getPreferencesEmitTarget';
2132
2256
  version: 'v2021_05_19';
2133
2257
  namespace: 'Calendar';
2134
2258
  name: '';
2135
2259
  fields: {
2136
2260
  /** . */
2137
- 'locationId': {
2138
- type: 'id';
2139
- isRequired: true;
2140
- options: undefined;
2141
- };
2142
- /** . */
2143
- 'calendarEventId': {
2261
+ 'organizationId': {
2144
2262
  type: 'id';
2145
2263
  isRequired: true;
2146
2264
  options: undefined;
2147
2265
  };
2148
2266
  };
2149
2267
  }
2150
- interface GetCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetSchema> {
2268
+ interface GetPreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema> {
2151
2269
  }
2152
2270
  }
2153
2271
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2154
- interface GetCalendarEventEmitTargetAndPayload {
2272
+ interface GetPreferencesEmitTargetAndPayload {
2155
2273
  /** Source. */
2156
2274
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2157
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTarget;
2275
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTarget;
2158
2276
  }
2159
- interface GetCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2160
- id: 'getCalendarEventEmitTargetAndPayload';
2277
+ interface GetPreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2278
+ id: 'getPreferencesEmitTargetAndPayload';
2161
2279
  version: 'v2021_05_19';
2162
2280
  namespace: 'Calendar';
2163
2281
  name: '';
@@ -2175,75 +2293,111 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2175
2293
  type: 'schema';
2176
2294
  isRequired: true;
2177
2295
  options: {
2178
- schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetSchema;
2296
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema;
2179
2297
  };
2180
2298
  };
2181
2299
  };
2182
2300
  }
2183
- interface GetCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetAndPayloadSchema> {
2301
+ interface GetPreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetAndPayloadSchema> {
2184
2302
  }
2185
2303
  }
2186
2304
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2187
- interface GetCalendarEventResponsePayload {
2188
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
2305
+ interface GetPreferencesResponsePayload {
2306
+ 'selectedCalendarIds'?: string[] | undefined | null;
2307
+ 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
2308
+ 'visiblePeopleIds'?: string[] | undefined | null;
2189
2309
  }
2190
- interface GetCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
2191
- id: 'getCalendarEventResponsePayload';
2310
+ interface GetPreferencesResponsePayloadSchema extends SpruceSchema.Schema {
2311
+ id: 'getPreferencesResponsePayload';
2192
2312
  version: 'v2021_05_19';
2193
2313
  namespace: 'Calendar';
2194
2314
  name: '';
2195
2315
  fields: {
2196
2316
  /** . */
2197
- 'calendarEvent': {
2198
- type: 'schema';
2199
- isRequired: true;
2317
+ 'selectedCalendarIds': {
2318
+ type: 'id';
2319
+ isArray: true;
2320
+ minArrayLength: 0;
2321
+ options: undefined;
2322
+ };
2323
+ /** . */
2324
+ 'visiblePeopleMode': {
2325
+ type: 'select';
2200
2326
  options: {
2201
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2327
+ choices: [{
2328
+ "value": "me";
2329
+ "label": "Me";
2330
+ }, {
2331
+ "value": "working";
2332
+ "label": "Working";
2333
+ }, {
2334
+ "value": "custom";
2335
+ "label": "Custom";
2336
+ }];
2202
2337
  };
2203
2338
  };
2339
+ /** . */
2340
+ 'visiblePeopleIds': {
2341
+ type: 'text';
2342
+ isArray: true;
2343
+ options: undefined;
2344
+ };
2204
2345
  };
2205
2346
  }
2206
- interface GetCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventResponsePayloadSchema> {
2347
+ interface GetPreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesResponsePayloadSchema> {
2207
2348
  }
2208
2349
  }
2209
2350
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2210
- interface GetConflictsForTimeRangeEmitTarget {
2211
- 'organizationId': string;
2212
- 'calendarIds': string[];
2351
+ interface ListCalendarEventsEmitTarget {
2352
+ 'locationId': string;
2213
2353
  }
2214
- interface GetConflictsForTimeRangeEmitTargetSchema extends SpruceSchema.Schema {
2215
- id: 'getConflictsForTimeRangeEmitTarget';
2354
+ interface ListCalendarEventsEmitTargetSchema extends SpruceSchema.Schema {
2355
+ id: 'listCalendarEventsEmitTarget';
2216
2356
  version: 'v2021_05_19';
2217
2357
  namespace: 'Calendar';
2218
2358
  name: '';
2219
2359
  fields: {
2220
2360
  /** . */
2221
- 'organizationId': {
2361
+ 'locationId': {
2222
2362
  type: 'id';
2223
2363
  isRequired: true;
2224
2364
  options: undefined;
2225
2365
  };
2366
+ };
2367
+ }
2368
+ interface ListCalendarEventsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetSchema> {
2369
+ }
2370
+ }
2371
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2372
+ interface ListCalendarEventsEmitPayload {
2373
+ 'groupIds'?: string[] | undefined | null;
2374
+ }
2375
+ interface ListCalendarEventsEmitPayloadSchema extends SpruceSchema.Schema {
2376
+ id: 'listCalendarEventsEmitPayload';
2377
+ version: 'v2021_05_19';
2378
+ namespace: 'Calendar';
2379
+ name: '';
2380
+ fields: {
2226
2381
  /** . */
2227
- 'calendarIds': {
2382
+ 'groupIds': {
2228
2383
  type: 'id';
2229
- isRequired: true;
2230
2384
  isArray: true;
2231
2385
  options: undefined;
2232
2386
  };
2233
2387
  };
2234
2388
  }
2235
- interface GetConflictsForTimeRangeEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema> {
2389
+ interface ListCalendarEventsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayloadSchema> {
2236
2390
  }
2237
2391
  }
2238
2392
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2239
- interface GetConflictsForTimeRangeEmitTargetAndPayload {
2393
+ interface ListCalendarEventsEmitTargetAndPayload {
2240
2394
  /** Source. */
2241
2395
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2242
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTarget;
2243
- 'payload': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayload;
2396
+ 'target': SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTarget;
2397
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayload | undefined | null;
2244
2398
  }
2245
- interface GetConflictsForTimeRangeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2246
- id: 'getConflictsForTimeRangeEmitTargetAndPayload';
2399
+ interface ListCalendarEventsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2400
+ id: 'listCalendarEventsEmitTargetAndPayload';
2247
2401
  version: 'v2021_05_19';
2248
2402
  namespace: 'Calendar';
2249
2403
  name: '';
@@ -2261,148 +2415,109 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2261
2415
  type: 'schema';
2262
2416
  isRequired: true;
2263
2417
  options: {
2264
- schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema;
2418
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetSchema;
2265
2419
  };
2266
2420
  };
2267
2421
  /** . */
2268
2422
  'payload': {
2269
2423
  type: 'schema';
2270
- isRequired: true;
2271
2424
  options: {
2272
- schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema;
2425
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayloadSchema;
2273
2426
  };
2274
2427
  };
2275
2428
  };
2276
2429
  }
2277
- interface GetConflictsForTimeRangeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetAndPayloadSchema> {
2278
- }
2279
- }
2280
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2281
- interface Teammate {
2282
- 'personId': string;
2283
- 'durationMinutes': number;
2284
- }
2285
- interface TeammateSchema extends SpruceSchema.Schema {
2286
- id: 'teammate';
2287
- version: 'v2021_05_19';
2288
- namespace: 'Calendar';
2289
- name: '';
2290
- fields: {
2291
- /** . */
2292
- 'personId': {
2293
- type: 'id';
2294
- isRequired: true;
2295
- options: undefined;
2296
- };
2297
- /** . */
2298
- 'durationMinutes': {
2299
- type: 'number';
2300
- isRequired: true;
2301
- options: undefined;
2302
- };
2303
- };
2304
- }
2305
- interface TeammateEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammateSchema> {
2430
+ interface ListCalendarEventsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetAndPayloadSchema> {
2306
2431
  }
2307
2432
  }
2308
2433
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2309
- interface GetConflictsForTimeRangeEmitPayload {
2310
- 'startDateTimeMs': number;
2311
- 'teammate': SpruceSchemas.Calendar.v2021_05_19.Teammate;
2434
+ interface ListCalendarEventsResponsePayload {
2435
+ 'calendarEvents': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
2312
2436
  }
2313
- interface GetConflictsForTimeRangeEmitPayloadSchema extends SpruceSchema.Schema {
2314
- id: 'getConflictsForTimeRangeEmitPayload';
2437
+ interface ListCalendarEventsResponsePayloadSchema extends SpruceSchema.Schema {
2438
+ id: 'listCalendarEventsResponsePayload';
2315
2439
  version: 'v2021_05_19';
2316
2440
  namespace: 'Calendar';
2317
2441
  name: '';
2318
2442
  fields: {
2319
2443
  /** . */
2320
- 'startDateTimeMs': {
2321
- type: 'number';
2322
- isRequired: true;
2323
- options: undefined;
2324
- };
2325
- /** . */
2326
- 'teammate': {
2444
+ 'calendarEvents': {
2327
2445
  type: 'schema';
2328
2446
  isRequired: true;
2447
+ isArray: true;
2448
+ minArrayLength: 0;
2329
2449
  options: {
2330
- schema: SpruceSchemas.Calendar.v2021_05_19.TeammateSchema;
2450
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2331
2451
  };
2332
2452
  };
2333
2453
  };
2334
2454
  }
2335
- interface GetConflictsForTimeRangeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema> {
2455
+ interface ListCalendarEventsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsResponsePayloadSchema> {
2336
2456
  }
2337
2457
  }
2338
2458
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2339
- interface GetConflictsForTimeRangeResponsePayload {
2340
- 'isAvailable': boolean;
2341
- 'excludedBy'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2342
- 'overlapsWith'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2459
+ interface RegisterEventToolsEmitTarget {
2460
+ 'organizationId': string;
2461
+ 'calendarEventId': string;
2462
+ 'locationId'?: string | undefined | null;
2343
2463
  }
2344
- interface GetConflictsForTimeRangeResponsePayloadSchema extends SpruceSchema.Schema {
2345
- id: 'getConflictsForTimeRangeResponsePayload';
2464
+ interface RegisterEventToolsEmitTargetSchema extends SpruceSchema.Schema {
2465
+ id: 'registerEventToolsEmitTarget';
2346
2466
  version: 'v2021_05_19';
2347
2467
  namespace: 'Calendar';
2348
2468
  name: '';
2349
2469
  fields: {
2350
2470
  /** . */
2351
- 'isAvailable': {
2352
- type: 'boolean';
2471
+ 'organizationId': {
2472
+ type: 'id';
2353
2473
  isRequired: true;
2354
2474
  options: undefined;
2355
2475
  };
2356
2476
  /** . */
2357
- 'excludedBy': {
2358
- type: 'schema';
2359
- isArray: true;
2360
- options: {
2361
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2362
- };
2477
+ 'calendarEventId': {
2478
+ type: 'id';
2479
+ isRequired: true;
2480
+ options: undefined;
2363
2481
  };
2364
2482
  /** . */
2365
- 'overlapsWith': {
2366
- type: 'schema';
2367
- isArray: true;
2368
- options: {
2369
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2370
- };
2483
+ 'locationId': {
2484
+ type: 'id';
2485
+ options: undefined;
2371
2486
  };
2372
2487
  };
2373
2488
  }
2374
- interface GetConflictsForTimeRangeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeResponsePayloadSchema> {
2489
+ interface RegisterEventToolsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetSchema> {
2375
2490
  }
2376
2491
  }
2377
2492
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2378
- interface GetPreferencesEmitTarget {
2379
- 'organizationId': string;
2493
+ interface RegisterEventToolsEmitPayload {
2494
+ 'eventTypeSlug'?: string | undefined | null;
2380
2495
  }
2381
- interface GetPreferencesEmitTargetSchema extends SpruceSchema.Schema {
2382
- id: 'getPreferencesEmitTarget';
2496
+ interface RegisterEventToolsEmitPayloadSchema extends SpruceSchema.Schema {
2497
+ id: 'registerEventToolsEmitPayload';
2383
2498
  version: 'v2021_05_19';
2384
2499
  namespace: 'Calendar';
2385
2500
  name: '';
2386
2501
  fields: {
2387
2502
  /** . */
2388
- 'organizationId': {
2503
+ 'eventTypeSlug': {
2389
2504
  type: 'id';
2390
- isRequired: true;
2391
2505
  options: undefined;
2392
2506
  };
2393
2507
  };
2394
2508
  }
2395
- interface GetPreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema> {
2509
+ interface RegisterEventToolsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayloadSchema> {
2396
2510
  }
2397
2511
  }
2398
2512
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2399
- interface GetPreferencesEmitTargetAndPayload {
2513
+ interface RegisterEventToolsEmitTargetAndPayload {
2400
2514
  /** Source. */
2401
2515
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2402
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTarget;
2516
+ 'target': SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTarget;
2517
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayload | undefined | null;
2403
2518
  }
2404
- interface GetPreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2405
- id: 'getPreferencesEmitTargetAndPayload';
2519
+ interface RegisterEventToolsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2520
+ id: 'registerEventToolsEmitTargetAndPayload';
2406
2521
  version: 'v2021_05_19';
2407
2522
  namespace: 'Calendar';
2408
2523
  name: '';
@@ -2420,155 +2535,93 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2420
2535
  type: 'schema';
2421
2536
  isRequired: true;
2422
2537
  options: {
2423
- schema: SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema;
2538
+ schema: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetSchema;
2539
+ };
2540
+ };
2541
+ /** . */
2542
+ 'payload': {
2543
+ type: 'schema';
2544
+ options: {
2545
+ schema: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayloadSchema;
2424
2546
  };
2425
2547
  };
2426
2548
  };
2427
2549
  }
2428
- interface GetPreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetAndPayloadSchema> {
2550
+ interface RegisterEventToolsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetAndPayloadSchema> {
2429
2551
  }
2430
2552
  }
2431
2553
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2432
- interface GetPreferencesResponsePayload {
2433
- 'selectedCalendarIds'?: string[] | undefined | null;
2434
- 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
2435
- 'visiblePeopleIds'?: string[] | undefined | null;
2554
+ interface RegisterEventToolsResponsePayload {
2555
+ 'vcIds': string[];
2436
2556
  }
2437
- interface GetPreferencesResponsePayloadSchema extends SpruceSchema.Schema {
2438
- id: 'getPreferencesResponsePayload';
2557
+ interface RegisterEventToolsResponsePayloadSchema extends SpruceSchema.Schema {
2558
+ id: 'registerEventToolsResponsePayload';
2439
2559
  version: 'v2021_05_19';
2440
2560
  namespace: 'Calendar';
2441
2561
  name: '';
2442
2562
  fields: {
2443
2563
  /** . */
2444
- 'selectedCalendarIds': {
2564
+ 'vcIds': {
2445
2565
  type: 'id';
2566
+ isRequired: true;
2446
2567
  isArray: true;
2447
2568
  minArrayLength: 0;
2448
2569
  options: undefined;
2449
2570
  };
2450
- /** . */
2451
- 'visiblePeopleMode': {
2452
- type: 'select';
2453
- options: {
2454
- choices: [{
2455
- "value": "me";
2456
- "label": "Me";
2457
- }, {
2458
- "value": "working";
2459
- "label": "Working";
2460
- }, {
2461
- "value": "custom";
2462
- "label": "Custom";
2463
- }];
2464
- };
2465
- };
2466
- /** . */
2467
- 'visiblePeopleIds': {
2468
- type: 'text';
2469
- isArray: true;
2470
- options: undefined;
2471
- };
2472
2571
  };
2473
2572
  }
2474
- interface GetPreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesResponsePayloadSchema> {
2573
+ interface RegisterEventToolsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsResponsePayloadSchema> {
2475
2574
  }
2476
2575
  }
2477
2576
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2478
- interface ListCalendarEventsEmitTarget {
2479
- 'locationId': string;
2480
- }
2481
- interface ListCalendarEventsEmitTargetSchema extends SpruceSchema.Schema {
2482
- id: 'listCalendarEventsEmitTarget';
2577
+ interface UpdateCalendarEventEmitTarget {
2578
+ 'organizationId'?: string | undefined | null;
2579
+ 'locationId'?: string | undefined | null;
2580
+ 'calendarEventId': string;
2581
+ 'calendarEventPersonId': string;
2582
+ }
2583
+ interface UpdateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
2584
+ id: 'updateCalendarEventEmitTarget';
2483
2585
  version: 'v2021_05_19';
2484
2586
  namespace: 'Calendar';
2485
2587
  name: '';
2486
2588
  fields: {
2487
2589
  /** . */
2488
- 'locationId': {
2590
+ 'organizationId': {
2489
2591
  type: 'id';
2490
- isRequired: true;
2491
2592
  options: undefined;
2492
2593
  };
2493
- };
2494
- }
2495
- interface ListCalendarEventsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetSchema> {
2496
- }
2497
- }
2498
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2499
- interface ListCalendarEventsEmitPayload {
2500
- 'groupIds'?: string[] | undefined | null;
2501
- }
2502
- interface ListCalendarEventsEmitPayloadSchema extends SpruceSchema.Schema {
2503
- id: 'listCalendarEventsEmitPayload';
2504
- version: 'v2021_05_19';
2505
- namespace: 'Calendar';
2506
- name: '';
2507
- fields: {
2508
2594
  /** . */
2509
- 'groupIds': {
2595
+ 'locationId': {
2510
2596
  type: 'id';
2511
- isArray: true;
2512
2597
  options: undefined;
2513
2598
  };
2514
- };
2515
- }
2516
- interface ListCalendarEventsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayloadSchema> {
2517
- }
2518
- }
2519
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2520
- interface ListCalendarEventsResponsePayload {
2521
- 'calendarEvents': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
2522
- }
2523
- interface ListCalendarEventsResponsePayloadSchema extends SpruceSchema.Schema {
2524
- id: 'listCalendarEventsResponsePayload';
2525
- version: 'v2021_05_19';
2526
- namespace: 'Calendar';
2527
- name: '';
2528
- fields: {
2529
2599
  /** . */
2530
- 'calendarEvents': {
2531
- type: 'schema';
2600
+ 'calendarEventId': {
2601
+ type: 'id';
2532
2602
  isRequired: true;
2533
- isArray: true;
2534
- minArrayLength: 0;
2535
- options: {
2536
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2537
- };
2603
+ options: undefined;
2538
2604
  };
2539
- };
2540
- }
2541
- interface ListCalendarEventsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsResponsePayloadSchema> {
2542
- }
2543
- }
2544
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2545
- interface ListCalendarEventTypesEmitPayload {
2546
- 'shouldShowOnlyMine'?: boolean | undefined | null;
2547
- }
2548
- interface ListCalendarEventTypesEmitPayloadSchema extends SpruceSchema.Schema {
2549
- id: 'listCalendarEventTypesEmitPayload';
2550
- version: 'v2021_05_19';
2551
- namespace: 'Calendar';
2552
- name: '';
2553
- fields: {
2554
2605
  /** . */
2555
- 'shouldShowOnlyMine': {
2556
- type: 'boolean';
2606
+ 'calendarEventPersonId': {
2607
+ type: 'id';
2608
+ isRequired: true;
2557
2609
  options: undefined;
2558
2610
  };
2559
2611
  };
2560
2612
  }
2561
- interface ListCalendarEventTypesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayloadSchema> {
2613
+ interface UpdateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema> {
2562
2614
  }
2563
2615
  }
2564
2616
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2565
- interface ListCalendarEventTypesEmitTargetAndPayload {
2617
+ interface UpdateCalendarEventEmitTargetAndPayload {
2566
2618
  /** Source. */
2567
2619
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2568
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayload | undefined | null;
2620
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTarget;
2621
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayload | undefined | null;
2569
2622
  }
2570
- interface ListCalendarEventTypesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2571
- id: 'listCalendarEventTypesEmitTargetAndPayload';
2623
+ interface UpdateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2624
+ id: 'updateCalendarEventEmitTargetAndPayload';
2572
2625
  version: 'v2021_05_19';
2573
2626
  namespace: 'Calendar';
2574
2627
  name: '';
@@ -2582,715 +2635,103 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2582
2635
  };
2583
2636
  };
2584
2637
  /** . */
2638
+ 'target': {
2639
+ type: 'schema';
2640
+ isRequired: true;
2641
+ options: {
2642
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema;
2643
+ };
2644
+ };
2645
+ /** . */
2585
2646
  'payload': {
2586
2647
  type: 'schema';
2587
2648
  options: {
2588
- schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayloadSchema;
2649
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema;
2589
2650
  };
2590
2651
  };
2591
2652
  };
2592
2653
  }
2593
- interface ListCalendarEventTypesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitTargetAndPayloadSchema> {
2654
+ interface UpdateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetAndPayloadSchema> {
2594
2655
  }
2595
2656
  }
2596
2657
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2597
- interface ListCalendarEventTypesResponsePayload {
2598
- 'calendarEventTypes': SpruceSchemas.Calendar.v2021_05_19.CalendarEventType[];
2599
- 'count': number;
2658
+ interface UpdateCalendarEventEmitPayload {
2659
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2660
+ 'target'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTarget | undefined | null;
2661
+ 'calendarId'?: string | undefined | null;
2662
+ 'eventTypeSlug'?: string | undefined | null;
2663
+ 'startDateTimeMs'?: SpruceSchema.DateTimeFieldValue | undefined | null;
2664
+ 'isBusy'?: boolean | undefined | null;
2665
+ 'isResizeable'?: boolean | undefined | null;
2666
+ 'style'?: ("draft" | "tentative" | "upcoming" | "unavailable" | "blocked" | "active" | "past" | "warn" | "critical") | undefined | null;
2667
+ 'groupId'?: string | undefined | null;
2668
+ 'timeBlocks'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlock[] | undefined | null;
2669
+ 'repeats'?: ("weekly" | "monthly" | "daily") | undefined | null;
2670
+ 'daysOfWeek'?: ("sun" | "mon" | "tue" | "wed" | "thur" | "fri" | "sat")[] | undefined | null;
2671
+ '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;
2672
+ 'repeatsUntil'?: SpruceSchema.DateTimeFieldValue | undefined | null;
2673
+ 'occurrences'?: number | undefined | null;
2674
+ 'interval'?: number | undefined | null;
2675
+ 'nthOccurrences'?: number[] | undefined | null;
2676
+ 'exclusionDates'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDate[] | undefined | null;
2677
+ 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
2678
+ 'nthInRepeating'?: number | undefined | null;
2679
+ 'totalInRepeating'?: number | undefined | null;
2680
+ 'meta'?: (Record<string, any>) | undefined | null;
2681
+ 'addToExclusionDates'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDate[] | undefined | null;
2682
+ 'dateToUpdate'?: number | undefined | null;
2683
+ 'shouldUpdateAllEventsGoingForward'?: boolean | undefined | null;
2684
+ /** . It will show on this person's calendar going forward! */
2685
+ 'newTargetPersonId'?: string | undefined | null;
2600
2686
  }
2601
- interface ListCalendarEventTypesResponsePayloadSchema extends SpruceSchema.Schema {
2602
- id: 'listCalendarEventTypesResponsePayload';
2687
+ interface UpdateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
2688
+ id: 'updateCalendarEventEmitPayload';
2603
2689
  version: 'v2021_05_19';
2604
2690
  namespace: 'Calendar';
2605
2691
  name: '';
2606
2692
  fields: {
2607
2693
  /** . */
2608
- 'calendarEventTypes': {
2694
+ 'source': {
2609
2695
  type: 'schema';
2610
- isRequired: true;
2611
- isArray: true;
2612
- minArrayLength: 0;
2613
2696
  options: {
2614
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema;
2697
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2615
2698
  };
2616
2699
  };
2617
2700
  /** . */
2618
- 'count': {
2619
- type: 'number';
2620
- isRequired: true;
2621
- options: undefined;
2701
+ 'target': {
2702
+ type: 'schema';
2703
+ options: {
2704
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTargetSchema;
2705
+ };
2622
2706
  };
2623
- };
2624
- }
2625
- interface ListCalendarEventTypesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesResponsePayloadSchema> {
2626
- }
2627
- }
2628
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2629
- interface RegisterEventToolsEmitTarget {
2630
- 'organizationId': string;
2631
- 'calendarEventId': string;
2632
- 'locationId'?: string | undefined | null;
2633
- }
2634
- interface RegisterEventToolsEmitTargetSchema extends SpruceSchema.Schema {
2635
- id: 'registerEventToolsEmitTarget';
2636
- version: 'v2021_05_19';
2637
- namespace: 'Calendar';
2638
- name: '';
2639
- fields: {
2640
2707
  /** . */
2641
- 'organizationId': {
2708
+ 'calendarId': {
2642
2709
  type: 'id';
2643
- isRequired: true;
2644
2710
  options: undefined;
2645
2711
  };
2646
2712
  /** . */
2647
- 'calendarEventId': {
2648
- type: 'id';
2649
- isRequired: true;
2713
+ 'eventTypeSlug': {
2714
+ type: 'text';
2650
2715
  options: undefined;
2651
2716
  };
2652
2717
  /** . */
2653
- 'locationId': {
2654
- type: 'id';
2718
+ 'startDateTimeMs': {
2719
+ type: 'dateTime';
2655
2720
  options: undefined;
2656
2721
  };
2657
- };
2658
- }
2659
- interface RegisterEventToolsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetSchema> {
2660
- }
2661
- }
2662
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2663
- interface RegisterEventToolsEmitPayload {
2664
- 'eventTypeSlug'?: string | undefined | null;
2665
- }
2666
- interface RegisterEventToolsEmitPayloadSchema extends SpruceSchema.Schema {
2667
- id: 'registerEventToolsEmitPayload';
2668
- version: 'v2021_05_19';
2669
- namespace: 'Calendar';
2670
- name: '';
2671
- fields: {
2672
2722
  /** . */
2673
- 'eventTypeSlug': {
2674
- type: 'id';
2723
+ 'isBusy': {
2724
+ type: 'boolean';
2675
2725
  options: undefined;
2676
2726
  };
2677
- };
2678
- }
2679
- interface RegisterEventToolsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayloadSchema> {
2680
- }
2681
- }
2682
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2683
- interface RegisterEventToolsEmitTargetAndPayload {
2684
- /** Source. */
2685
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2686
- 'target': SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTarget;
2687
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayload | undefined | null;
2688
- }
2689
- interface RegisterEventToolsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2690
- id: 'registerEventToolsEmitTargetAndPayload';
2691
- version: 'v2021_05_19';
2692
- namespace: 'Calendar';
2693
- name: '';
2694
- fields: {
2695
- /** Source. */
2696
- 'source': {
2697
- label: 'Source';
2698
- type: 'schema';
2699
- options: {
2700
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2701
- };
2702
- };
2703
2727
  /** . */
2704
- 'target': {
2705
- type: 'schema';
2706
- isRequired: true;
2707
- options: {
2708
- schema: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetSchema;
2709
- };
2728
+ 'isResizeable': {
2729
+ type: 'boolean';
2730
+ options: undefined;
2710
2731
  };
2711
2732
  /** . */
2712
- 'payload': {
2713
- type: 'schema';
2714
- options: {
2715
- schema: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayloadSchema;
2716
- };
2717
- };
2718
- };
2719
- }
2720
- interface RegisterEventToolsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetAndPayloadSchema> {
2721
- }
2722
- }
2723
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2724
- interface RegisterEventToolsResponsePayload {
2725
- 'vcIds': string[];
2726
- }
2727
- interface RegisterEventToolsResponsePayloadSchema extends SpruceSchema.Schema {
2728
- id: 'registerEventToolsResponsePayload';
2729
- version: 'v2021_05_19';
2730
- namespace: 'Calendar';
2731
- name: '';
2732
- fields: {
2733
- /** . */
2734
- 'vcIds': {
2735
- type: 'id';
2736
- isRequired: true;
2737
- isArray: true;
2738
- minArrayLength: 0;
2739
- options: undefined;
2740
- };
2741
- };
2742
- }
2743
- interface RegisterEventToolsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsResponsePayloadSchema> {
2744
- }
2745
- }
2746
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2747
- interface ListCalendarsEmitTarget {
2748
- 'organizationId'?: string | undefined | null;
2749
- 'calendarPersonId'?: string | undefined | null;
2750
- }
2751
- interface ListCalendarsEmitTargetSchema extends SpruceSchema.Schema {
2752
- id: 'listCalendarsEmitTarget';
2753
- version: 'v2021_05_19';
2754
- namespace: 'Calendar';
2755
- name: '';
2756
- fields: {
2757
- /** . */
2758
- 'organizationId': {
2759
- type: 'id';
2760
- options: undefined;
2761
- };
2762
- /** . */
2763
- 'calendarPersonId': {
2764
- type: 'id';
2765
- options: undefined;
2766
- };
2767
- };
2768
- }
2769
- interface ListCalendarsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetSchema> {
2770
- }
2771
- }
2772
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2773
- interface ListCalendarsEmitTargetAndPayload {
2774
- /** Source. */
2775
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2776
- 'target'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTarget | undefined | null;
2777
- }
2778
- interface ListCalendarsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2779
- id: 'listCalendarsEmitTargetAndPayload';
2780
- version: 'v2021_05_19';
2781
- namespace: 'Calendar';
2782
- name: '';
2783
- fields: {
2784
- /** Source. */
2785
- 'source': {
2786
- label: 'Source';
2787
- type: 'schema';
2788
- options: {
2789
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2790
- };
2791
- };
2792
- /** . */
2793
- 'target': {
2794
- type: 'schema';
2795
- options: {
2796
- schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetSchema;
2797
- };
2798
- };
2799
- };
2800
- }
2801
- interface ListCalendarsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetAndPayloadSchema> {
2802
- }
2803
- }
2804
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2805
- interface ListCalendarsResponsePayload {
2806
- 'calendars': SpruceSchemas.Calendar.v2021_05_19.Calendar[];
2807
- 'count': number;
2808
- }
2809
- interface ListCalendarsResponsePayloadSchema extends SpruceSchema.Schema {
2810
- id: 'listCalendarsResponsePayload';
2811
- version: 'v2021_05_19';
2812
- namespace: 'Calendar';
2813
- name: '';
2814
- fields: {
2815
- /** . */
2816
- 'calendars': {
2817
- type: 'schema';
2818
- isRequired: true;
2819
- isArray: true;
2820
- minArrayLength: 0;
2821
- options: {
2822
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
2823
- };
2824
- };
2825
- /** . */
2826
- 'count': {
2827
- type: 'number';
2828
- isRequired: true;
2829
- options: undefined;
2830
- };
2831
- };
2832
- }
2833
- interface ListCalendarsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsResponsePayloadSchema> {
2834
- }
2835
- }
2836
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2837
- interface StreamSchedulesEmitTarget {
2838
- 'locationId': string;
2839
- 'organizationId'?: string | undefined | null;
2840
- 'personId': string;
2841
- }
2842
- interface StreamSchedulesEmitTargetSchema extends SpruceSchema.Schema {
2843
- id: 'streamSchedulesEmitTarget';
2844
- version: 'v2021_05_19';
2845
- namespace: 'Calendar';
2846
- name: '';
2847
- fields: {
2848
- /** . */
2849
- 'locationId': {
2850
- type: 'id';
2851
- isRequired: true;
2852
- options: undefined;
2853
- };
2854
- /** . */
2855
- 'organizationId': {
2856
- type: 'id';
2857
- options: undefined;
2858
- };
2859
- /** . */
2860
- 'personId': {
2861
- type: 'id';
2862
- isRequired: true;
2863
- options: undefined;
2864
- };
2865
- };
2866
- }
2867
- interface StreamSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetSchema> {
2868
- }
2869
- }
2870
- namespace SpruceSchemas.MercuryChunkingEmitter.v2023_10_21 {
2871
- interface ChunkPaging {
2872
- 'total': number;
2873
- 'current': number;
2874
- }
2875
- interface ChunkPagingSchema extends SpruceSchema.Schema {
2876
- id: 'chunkPaging';
2877
- version: 'v2023_10_21';
2878
- namespace: 'MercuryChunkingEmitter';
2879
- name: 'Chunk Paging';
2880
- fields: {
2881
- /** . */
2882
- 'total': {
2883
- type: 'number';
2884
- isRequired: true;
2885
- options: undefined;
2886
- };
2887
- /** . */
2888
- 'current': {
2889
- type: 'number';
2890
- isRequired: true;
2891
- options: undefined;
2892
- };
2893
- };
2894
- }
2895
- interface ChunkPagingEntity extends SchemaEntity<SpruceSchemas.MercuryChunkingEmitter.v2023_10_21.ChunkPagingSchema> {
2896
- }
2897
- }
2898
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2899
- interface StreamSchedulesEmitPayload {
2900
- 'chunkingId': string;
2901
- 'events': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
2902
- 'chunk': SpruceSchemas.MercuryChunkingEmitter.v2023_10_21.ChunkPaging;
2903
- }
2904
- interface StreamSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
2905
- id: 'streamSchedulesEmitPayload';
2906
- version: 'v2021_05_19';
2907
- namespace: 'Calendar';
2908
- name: '';
2909
- fields: {
2910
- /** . */
2911
- 'chunkingId': {
2912
- type: 'id';
2913
- isRequired: true;
2914
- options: undefined;
2915
- };
2916
- /** . */
2917
- 'events': {
2918
- type: 'schema';
2919
- isRequired: true;
2920
- isArray: true;
2921
- minArrayLength: 0;
2922
- options: {
2923
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2924
- };
2925
- };
2926
- /** . */
2927
- 'chunk': {
2928
- type: 'schema';
2929
- isRequired: true;
2930
- options: {
2931
- schema: SpruceSchemas.MercuryChunkingEmitter.v2023_10_21.ChunkPagingSchema;
2932
- };
2933
- };
2934
- };
2935
- }
2936
- interface StreamSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayloadSchema> {
2937
- }
2938
- }
2939
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2940
- interface StreamSchedulesEmitTargetAndPayload {
2941
- /** Source. */
2942
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2943
- 'target': SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTarget;
2944
- 'payload': SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayload;
2945
- }
2946
- interface StreamSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2947
- id: 'streamSchedulesEmitTargetAndPayload';
2948
- version: 'v2021_05_19';
2949
- namespace: 'Calendar';
2950
- name: '';
2951
- fields: {
2952
- /** Source. */
2953
- 'source': {
2954
- label: 'Source';
2955
- type: 'schema';
2956
- options: {
2957
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2958
- };
2959
- };
2960
- /** . */
2961
- 'target': {
2962
- type: 'schema';
2963
- isRequired: true;
2964
- options: {
2965
- schema: SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetSchema;
2966
- };
2967
- };
2968
- /** . */
2969
- 'payload': {
2970
- type: 'schema';
2971
- isRequired: true;
2972
- options: {
2973
- schema: SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayloadSchema;
2974
- };
2975
- };
2976
- };
2977
- }
2978
- interface StreamSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetAndPayloadSchema> {
2979
- }
2980
- }
2981
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2982
- interface UpdateCalendarEmitTarget {
2983
- 'organizationId': string;
2984
- 'calendarId': string;
2985
- }
2986
- interface UpdateCalendarEmitTargetSchema extends SpruceSchema.Schema {
2987
- id: 'updateCalendarEmitTarget';
2988
- version: 'v2021_05_19';
2989
- namespace: 'Calendar';
2990
- name: '';
2991
- fields: {
2992
- /** . */
2993
- 'organizationId': {
2994
- type: 'id';
2995
- isRequired: true;
2996
- options: undefined;
2997
- };
2998
- /** . */
2999
- 'calendarId': {
3000
- type: 'id';
3001
- isRequired: true;
3002
- options: undefined;
3003
- };
3004
- };
3005
- }
3006
- interface UpdateCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema> {
3007
- }
3008
- }
3009
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3010
- interface UpdateCalendarEmitPayload {
3011
- 'slug'?: string | undefined | null;
3012
- 'title'?: string | undefined | null;
3013
- 'eventTypes'?: string[] | undefined | null;
3014
- 'target'?: SpruceSchemas.Calendar.v2021_05_19.CalendarTarget | undefined | null;
3015
- 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3016
- 'availableTimeSlotBehavior'?: ("include" | "exclude") | undefined | null;
3017
- }
3018
- interface UpdateCalendarEmitPayloadSchema extends SpruceSchema.Schema {
3019
- id: 'updateCalendarEmitPayload';
3020
- version: 'v2021_05_19';
3021
- namespace: 'Calendar';
3022
- name: '';
3023
- fields: {
3024
- /** . */
3025
- 'slug': {
3026
- type: 'id';
3027
- options: undefined;
3028
- };
3029
- /** . */
3030
- 'title': {
3031
- type: 'text';
3032
- options: undefined;
3033
- };
3034
- /** . */
3035
- 'eventTypes': {
3036
- type: 'text';
3037
- isArray: true;
3038
- minArrayLength: 0;
3039
- options: undefined;
3040
- };
3041
- /** . */
3042
- 'target': {
3043
- type: 'schema';
3044
- options: {
3045
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarTargetSchema;
3046
- };
3047
- };
3048
- /** . */
3049
- 'dateDeleted': {
3050
- type: 'dateTime';
3051
- options: undefined;
3052
- };
3053
- /** . */
3054
- 'availableTimeSlotBehavior': {
3055
- type: 'select';
3056
- options: {
3057
- choices: [{
3058
- "value": "include";
3059
- "label": "Include";
3060
- }, {
3061
- "value": "exclude";
3062
- "label": "Exclude";
3063
- }];
3064
- };
3065
- };
3066
- };
3067
- }
3068
- interface UpdateCalendarEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema> {
3069
- }
3070
- }
3071
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3072
- interface UpdateCalendarEmitTargetAndPayload {
3073
- /** Source. */
3074
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3075
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTarget;
3076
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayload | undefined | null;
3077
- }
3078
- interface UpdateCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3079
- id: 'updateCalendarEmitTargetAndPayload';
3080
- version: 'v2021_05_19';
3081
- namespace: 'Calendar';
3082
- name: '';
3083
- fields: {
3084
- /** Source. */
3085
- 'source': {
3086
- label: 'Source';
3087
- type: 'schema';
3088
- options: {
3089
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3090
- };
3091
- };
3092
- /** . */
3093
- 'target': {
3094
- type: 'schema';
3095
- isRequired: true;
3096
- options: {
3097
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema;
3098
- };
3099
- };
3100
- /** . */
3101
- 'payload': {
3102
- type: 'schema';
3103
- options: {
3104
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema;
3105
- };
3106
- };
3107
- };
3108
- }
3109
- interface UpdateCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetAndPayloadSchema> {
3110
- }
3111
- }
3112
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3113
- interface UpdateCalendarResponsePayload {
3114
- 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
3115
- }
3116
- interface UpdateCalendarResponsePayloadSchema extends SpruceSchema.Schema {
3117
- id: 'updateCalendarResponsePayload';
3118
- version: 'v2021_05_19';
3119
- namespace: 'Calendar';
3120
- name: '';
3121
- fields: {
3122
- /** . */
3123
- 'calendar': {
3124
- type: 'schema';
3125
- isRequired: true;
3126
- options: {
3127
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
3128
- };
3129
- };
3130
- };
3131
- }
3132
- interface UpdateCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarResponsePayloadSchema> {
3133
- }
3134
- }
3135
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3136
- interface UpdateCalendarEventEmitTarget {
3137
- 'organizationId'?: string | undefined | null;
3138
- 'locationId'?: string | undefined | null;
3139
- 'calendarEventId': string;
3140
- 'calendarEventPersonId': string;
3141
- }
3142
- interface UpdateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
3143
- id: 'updateCalendarEventEmitTarget';
3144
- version: 'v2021_05_19';
3145
- namespace: 'Calendar';
3146
- name: '';
3147
- fields: {
3148
- /** . */
3149
- 'organizationId': {
3150
- type: 'id';
3151
- options: undefined;
3152
- };
3153
- /** . */
3154
- 'locationId': {
3155
- type: 'id';
3156
- options: undefined;
3157
- };
3158
- /** . */
3159
- 'calendarEventId': {
3160
- type: 'id';
3161
- isRequired: true;
3162
- options: undefined;
3163
- };
3164
- /** . */
3165
- 'calendarEventPersonId': {
3166
- type: 'id';
3167
- isRequired: true;
3168
- options: undefined;
3169
- };
3170
- };
3171
- }
3172
- interface UpdateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema> {
3173
- }
3174
- }
3175
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3176
- interface UpdateCalendarEventEmitTargetAndPayload {
3177
- /** Source. */
3178
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3179
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTarget;
3180
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayload | undefined | null;
3181
- }
3182
- interface UpdateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3183
- id: 'updateCalendarEventEmitTargetAndPayload';
3184
- version: 'v2021_05_19';
3185
- namespace: 'Calendar';
3186
- name: '';
3187
- fields: {
3188
- /** Source. */
3189
- 'source': {
3190
- label: 'Source';
3191
- type: 'schema';
3192
- options: {
3193
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3194
- };
3195
- };
3196
- /** . */
3197
- 'target': {
3198
- type: 'schema';
3199
- isRequired: true;
3200
- options: {
3201
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema;
3202
- };
3203
- };
3204
- /** . */
3205
- 'payload': {
3206
- type: 'schema';
3207
- options: {
3208
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema;
3209
- };
3210
- };
3211
- };
3212
- }
3213
- interface UpdateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetAndPayloadSchema> {
3214
- }
3215
- }
3216
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3217
- interface UpdateCalendarEventEmitPayload {
3218
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3219
- 'target'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTarget | undefined | null;
3220
- 'calendarId'?: string | undefined | null;
3221
- 'eventTypeSlug'?: string | undefined | null;
3222
- 'startDateTimeMs'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3223
- 'isBusy'?: boolean | undefined | null;
3224
- 'isResizeable'?: boolean | undefined | null;
3225
- 'style'?: ("draft" | "tentative" | "upcoming" | "unavailable" | "blocked" | "active" | "past" | "warn" | "critical") | undefined | null;
3226
- 'groupId'?: string | undefined | null;
3227
- 'timeBlocks'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlock[] | undefined | null;
3228
- 'repeats'?: ("weekly" | "monthly" | "daily") | undefined | null;
3229
- 'daysOfWeek'?: ("sun" | "mon" | "tue" | "wed" | "thur" | "fri" | "sat")[] | undefined | null;
3230
- '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;
3231
- 'repeatsUntil'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3232
- 'occurrences'?: number | undefined | null;
3233
- 'interval'?: number | undefined | null;
3234
- 'nthOccurrences'?: number[] | undefined | null;
3235
- 'exclusionDates'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDate[] | undefined | null;
3236
- 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3237
- 'nthInRepeating'?: number | undefined | null;
3238
- 'totalInRepeating'?: number | undefined | null;
3239
- 'meta'?: (Record<string, any>) | undefined | null;
3240
- 'addToExclusionDates'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDate[] | undefined | null;
3241
- 'dateToUpdate'?: number | undefined | null;
3242
- 'shouldUpdateAllEventsGoingForward'?: boolean | undefined | null;
3243
- /** . It will show on this person's calendar going forward! */
3244
- 'newTargetPersonId'?: string | undefined | null;
3245
- }
3246
- interface UpdateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
3247
- id: 'updateCalendarEventEmitPayload';
3248
- version: 'v2021_05_19';
3249
- namespace: 'Calendar';
3250
- name: '';
3251
- fields: {
3252
- /** . */
3253
- 'source': {
3254
- type: 'schema';
3255
- options: {
3256
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3257
- };
3258
- };
3259
- /** . */
3260
- 'target': {
3261
- type: 'schema';
3262
- options: {
3263
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTargetSchema;
3264
- };
3265
- };
3266
- /** . */
3267
- 'calendarId': {
3268
- type: 'id';
3269
- options: undefined;
3270
- };
3271
- /** . */
3272
- 'eventTypeSlug': {
3273
- type: 'text';
3274
- options: undefined;
3275
- };
3276
- /** . */
3277
- 'startDateTimeMs': {
3278
- type: 'dateTime';
3279
- options: undefined;
3280
- };
3281
- /** . */
3282
- 'isBusy': {
3283
- type: 'boolean';
3284
- options: undefined;
3285
- };
3286
- /** . */
3287
- 'isResizeable': {
3288
- type: 'boolean';
3289
- options: undefined;
3290
- };
3291
- /** . */
3292
- 'style': {
3293
- type: 'select';
2733
+ 'style': {
2734
+ type: 'select';
3294
2735
  options: {
3295
2736
  choices: [{
3296
2737
  "value": "draft";
@@ -3508,7 +2949,148 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3508
2949
  type: 'schema';
3509
2950
  isArray: true;
3510
2951
  options: {
3511
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
2952
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
2953
+ };
2954
+ };
2955
+ /** . */
2956
+ 'dateDeleted': {
2957
+ type: 'dateTime';
2958
+ options: undefined;
2959
+ };
2960
+ /** . */
2961
+ 'nthInRepeating': {
2962
+ type: 'number';
2963
+ options: undefined;
2964
+ };
2965
+ /** . */
2966
+ 'totalInRepeating': {
2967
+ type: 'number';
2968
+ options: undefined;
2969
+ };
2970
+ /** . */
2971
+ 'meta': {
2972
+ type: 'raw';
2973
+ options: {
2974
+ valueType: `Record<string, any>`;
2975
+ };
2976
+ };
2977
+ /** . */
2978
+ 'addToExclusionDates': {
2979
+ type: 'schema';
2980
+ isArray: true;
2981
+ options: {
2982
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
2983
+ };
2984
+ };
2985
+ /** . */
2986
+ 'dateToUpdate': {
2987
+ type: 'number';
2988
+ options: undefined;
2989
+ };
2990
+ /** . */
2991
+ 'shouldUpdateAllEventsGoingForward': {
2992
+ type: 'boolean';
2993
+ options: undefined;
2994
+ };
2995
+ /** . It will show on this person's calendar going forward! */
2996
+ 'newTargetPersonId': {
2997
+ type: 'id';
2998
+ hint: 'It will show on this person\'s calendar going forward!';
2999
+ options: undefined;
3000
+ };
3001
+ };
3002
+ }
3003
+ interface UpdateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema> {
3004
+ }
3005
+ }
3006
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3007
+ interface UpdateCalendarEventResponsePayload {
3008
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
3009
+ }
3010
+ interface UpdateCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
3011
+ id: 'updateCalendarEventResponsePayload';
3012
+ version: 'v2021_05_19';
3013
+ namespace: 'Calendar';
3014
+ name: '';
3015
+ fields: {
3016
+ /** . */
3017
+ 'calendarEvent': {
3018
+ type: 'schema';
3019
+ isRequired: true;
3020
+ options: {
3021
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
3022
+ };
3023
+ };
3024
+ };
3025
+ }
3026
+ interface UpdateCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventResponsePayloadSchema> {
3027
+ }
3028
+ }
3029
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3030
+ interface UpdateCalendarEmitTarget {
3031
+ 'organizationId': string;
3032
+ 'calendarId': string;
3033
+ }
3034
+ interface UpdateCalendarEmitTargetSchema extends SpruceSchema.Schema {
3035
+ id: 'updateCalendarEmitTarget';
3036
+ version: 'v2021_05_19';
3037
+ namespace: 'Calendar';
3038
+ name: '';
3039
+ fields: {
3040
+ /** . */
3041
+ 'organizationId': {
3042
+ type: 'id';
3043
+ isRequired: true;
3044
+ options: undefined;
3045
+ };
3046
+ /** . */
3047
+ 'calendarId': {
3048
+ type: 'id';
3049
+ isRequired: true;
3050
+ options: undefined;
3051
+ };
3052
+ };
3053
+ }
3054
+ interface UpdateCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema> {
3055
+ }
3056
+ }
3057
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3058
+ interface UpdateCalendarEmitPayload {
3059
+ 'slug'?: string | undefined | null;
3060
+ 'title'?: string | undefined | null;
3061
+ 'eventTypes'?: string[] | undefined | null;
3062
+ 'target'?: SpruceSchemas.Calendar.v2021_05_19.CalendarTarget | undefined | null;
3063
+ 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3064
+ 'availableTimeSlotBehavior'?: ("include" | "exclude") | undefined | null;
3065
+ }
3066
+ interface UpdateCalendarEmitPayloadSchema extends SpruceSchema.Schema {
3067
+ id: 'updateCalendarEmitPayload';
3068
+ version: 'v2021_05_19';
3069
+ namespace: 'Calendar';
3070
+ name: '';
3071
+ fields: {
3072
+ /** . */
3073
+ 'slug': {
3074
+ type: 'id';
3075
+ options: undefined;
3076
+ };
3077
+ /** . */
3078
+ 'title': {
3079
+ type: 'text';
3080
+ options: undefined;
3081
+ };
3082
+ /** . */
3083
+ 'eventTypes': {
3084
+ type: 'text';
3085
+ isArray: true;
3086
+ minArrayLength: 0;
3087
+ options: undefined;
3088
+ };
3089
+ /** . */
3090
+ 'target': {
3091
+ type: 'schema';
3092
+ options: {
3093
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarTargetSchema;
3512
3094
  };
3513
3095
  };
3514
3096
  /** . */
@@ -3517,72 +3099,169 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3517
3099
  options: undefined;
3518
3100
  };
3519
3101
  /** . */
3520
- 'nthInRepeating': {
3521
- type: 'number';
3522
- options: undefined;
3102
+ 'availableTimeSlotBehavior': {
3103
+ type: 'select';
3104
+ options: {
3105
+ choices: [{
3106
+ "value": "include";
3107
+ "label": "Include";
3108
+ }, {
3109
+ "value": "exclude";
3110
+ "label": "Exclude";
3111
+ }];
3112
+ };
3523
3113
  };
3524
- /** . */
3525
- 'totalInRepeating': {
3526
- type: 'number';
3527
- options: undefined;
3114
+ };
3115
+ }
3116
+ interface UpdateCalendarEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema> {
3117
+ }
3118
+ }
3119
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3120
+ interface UpdateCalendarEmitTargetAndPayload {
3121
+ /** Source. */
3122
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3123
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTarget;
3124
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayload | undefined | null;
3125
+ }
3126
+ interface UpdateCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3127
+ id: 'updateCalendarEmitTargetAndPayload';
3128
+ version: 'v2021_05_19';
3129
+ namespace: 'Calendar';
3130
+ name: '';
3131
+ fields: {
3132
+ /** Source. */
3133
+ 'source': {
3134
+ label: 'Source';
3135
+ type: 'schema';
3136
+ options: {
3137
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3138
+ };
3528
3139
  };
3529
3140
  /** . */
3530
- 'meta': {
3531
- type: 'raw';
3141
+ 'target': {
3142
+ type: 'schema';
3143
+ isRequired: true;
3532
3144
  options: {
3533
- valueType: `Record<string, any>`;
3145
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema;
3534
3146
  };
3535
3147
  };
3536
3148
  /** . */
3537
- 'addToExclusionDates': {
3149
+ 'payload': {
3538
3150
  type: 'schema';
3539
- isArray: true;
3540
3151
  options: {
3541
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
3152
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema;
3542
3153
  };
3543
3154
  };
3155
+ };
3156
+ }
3157
+ interface UpdateCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetAndPayloadSchema> {
3158
+ }
3159
+ }
3160
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3161
+ interface UpdateCalendarResponsePayload {
3162
+ 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
3163
+ }
3164
+ interface UpdateCalendarResponsePayloadSchema extends SpruceSchema.Schema {
3165
+ id: 'updateCalendarResponsePayload';
3166
+ version: 'v2021_05_19';
3167
+ namespace: 'Calendar';
3168
+ name: '';
3169
+ fields: {
3544
3170
  /** . */
3545
- 'dateToUpdate': {
3546
- type: 'number';
3547
- options: undefined;
3171
+ 'calendar': {
3172
+ type: 'schema';
3173
+ isRequired: true;
3174
+ options: {
3175
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
3176
+ };
3548
3177
  };
3178
+ };
3179
+ }
3180
+ interface UpdateCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarResponsePayloadSchema> {
3181
+ }
3182
+ }
3183
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3184
+ interface ListCalendarEventTypesEmitPayload {
3185
+ 'shouldShowOnlyMine'?: boolean | undefined | null;
3186
+ }
3187
+ interface ListCalendarEventTypesEmitPayloadSchema extends SpruceSchema.Schema {
3188
+ id: 'listCalendarEventTypesEmitPayload';
3189
+ version: 'v2021_05_19';
3190
+ namespace: 'Calendar';
3191
+ name: '';
3192
+ fields: {
3549
3193
  /** . */
3550
- 'shouldUpdateAllEventsGoingForward': {
3194
+ 'shouldShowOnlyMine': {
3551
3195
  type: 'boolean';
3552
3196
  options: undefined;
3553
3197
  };
3554
- /** . It will show on this person's calendar going forward! */
3555
- 'newTargetPersonId': {
3556
- type: 'id';
3557
- hint: 'It will show on this person\'s calendar going forward!';
3558
- options: undefined;
3198
+ };
3199
+ }
3200
+ interface ListCalendarEventTypesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayloadSchema> {
3201
+ }
3202
+ }
3203
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3204
+ interface ListCalendarEventTypesEmitTargetAndPayload {
3205
+ /** Source. */
3206
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3207
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayload | undefined | null;
3208
+ }
3209
+ interface ListCalendarEventTypesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3210
+ id: 'listCalendarEventTypesEmitTargetAndPayload';
3211
+ version: 'v2021_05_19';
3212
+ namespace: 'Calendar';
3213
+ name: '';
3214
+ fields: {
3215
+ /** Source. */
3216
+ 'source': {
3217
+ label: 'Source';
3218
+ type: 'schema';
3219
+ options: {
3220
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3221
+ };
3222
+ };
3223
+ /** . */
3224
+ 'payload': {
3225
+ type: 'schema';
3226
+ options: {
3227
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayloadSchema;
3228
+ };
3559
3229
  };
3560
3230
  };
3561
3231
  }
3562
- interface UpdateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema> {
3232
+ interface ListCalendarEventTypesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitTargetAndPayloadSchema> {
3563
3233
  }
3564
3234
  }
3565
3235
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3566
- interface UpdateCalendarEventResponsePayload {
3567
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
3236
+ interface ListCalendarEventTypesResponsePayload {
3237
+ 'calendarEventTypes': SpruceSchemas.Calendar.v2021_05_19.CalendarEventType[];
3238
+ 'count': number;
3568
3239
  }
3569
- interface UpdateCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
3570
- id: 'updateCalendarEventResponsePayload';
3240
+ interface ListCalendarEventTypesResponsePayloadSchema extends SpruceSchema.Schema {
3241
+ id: 'listCalendarEventTypesResponsePayload';
3571
3242
  version: 'v2021_05_19';
3572
3243
  namespace: 'Calendar';
3573
3244
  name: '';
3574
3245
  fields: {
3575
3246
  /** . */
3576
- 'calendarEvent': {
3247
+ 'calendarEventTypes': {
3577
3248
  type: 'schema';
3578
3249
  isRequired: true;
3250
+ isArray: true;
3251
+ minArrayLength: 0;
3579
3252
  options: {
3580
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
3253
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema;
3581
3254
  };
3582
3255
  };
3256
+ /** . */
3257
+ 'count': {
3258
+ type: 'number';
3259
+ isRequired: true;
3260
+ options: undefined;
3261
+ };
3583
3262
  };
3584
3263
  }
3585
- interface UpdateCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventResponsePayloadSchema> {
3264
+ interface ListCalendarEventTypesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesResponsePayloadSchema> {
3586
3265
  }
3587
3266
  }
3588
3267
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -4183,18 +3862,185 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4183
3862
  };
4184
3863
  };
4185
3864
  }
4186
- interface UpsertCalendarEventTypeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitPayloadSchema> {
3865
+ interface UpsertCalendarEventTypeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitPayloadSchema> {
3866
+ }
3867
+ }
3868
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3869
+ interface UpsertCalendarEventTypeEmitTargetAndPayload {
3870
+ /** Source. */
3871
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3872
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitTarget;
3873
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitPayload | undefined | null;
3874
+ }
3875
+ interface UpsertCalendarEventTypeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3876
+ id: 'upsertCalendarEventTypeEmitTargetAndPayload';
3877
+ version: 'v2021_05_19';
3878
+ namespace: 'Calendar';
3879
+ name: '';
3880
+ fields: {
3881
+ /** Source. */
3882
+ 'source': {
3883
+ label: 'Source';
3884
+ type: 'schema';
3885
+ options: {
3886
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3887
+ };
3888
+ };
3889
+ /** . */
3890
+ 'target': {
3891
+ type: 'schema';
3892
+ isRequired: true;
3893
+ options: {
3894
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitTargetSchema;
3895
+ };
3896
+ };
3897
+ /** . */
3898
+ 'payload': {
3899
+ type: 'schema';
3900
+ options: {
3901
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitPayloadSchema;
3902
+ };
3903
+ };
3904
+ };
3905
+ }
3906
+ interface UpsertCalendarEventTypeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitTargetAndPayloadSchema> {
3907
+ }
3908
+ }
3909
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3910
+ interface UpsertCalendarEventTypeResponsePayload {
3911
+ 'calendarEventType': SpruceSchemas.Calendar.v2021_05_19.CalendarEventType;
3912
+ }
3913
+ interface UpsertCalendarEventTypeResponsePayloadSchema extends SpruceSchema.Schema {
3914
+ id: 'upsertCalendarEventTypeResponsePayload';
3915
+ version: 'v2021_05_19';
3916
+ namespace: 'Calendar';
3917
+ name: '';
3918
+ fields: {
3919
+ /** . */
3920
+ 'calendarEventType': {
3921
+ type: 'schema';
3922
+ isRequired: true;
3923
+ options: {
3924
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema;
3925
+ };
3926
+ };
3927
+ };
3928
+ }
3929
+ interface UpsertCalendarEventTypeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeResponsePayloadSchema> {
3930
+ }
3931
+ }
3932
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3933
+ interface StreamSchedulesEmitTarget {
3934
+ 'locationId': string;
3935
+ 'organizationId'?: string | undefined | null;
3936
+ 'personId': string;
3937
+ }
3938
+ interface StreamSchedulesEmitTargetSchema extends SpruceSchema.Schema {
3939
+ id: 'streamSchedulesEmitTarget';
3940
+ version: 'v2021_05_19';
3941
+ namespace: 'Calendar';
3942
+ name: '';
3943
+ fields: {
3944
+ /** . */
3945
+ 'locationId': {
3946
+ type: 'id';
3947
+ isRequired: true;
3948
+ options: undefined;
3949
+ };
3950
+ /** . */
3951
+ 'organizationId': {
3952
+ type: 'id';
3953
+ options: undefined;
3954
+ };
3955
+ /** . */
3956
+ 'personId': {
3957
+ type: 'id';
3958
+ isRequired: true;
3959
+ options: undefined;
3960
+ };
3961
+ };
3962
+ }
3963
+ interface StreamSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetSchema> {
3964
+ }
3965
+ }
3966
+ namespace SpruceSchemas.MercuryChunkingEmitter.v2023_10_21 {
3967
+ interface ChunkPaging {
3968
+ 'total': number;
3969
+ 'current': number;
3970
+ }
3971
+ interface ChunkPagingSchema extends SpruceSchema.Schema {
3972
+ id: 'chunkPaging';
3973
+ version: 'v2023_10_21';
3974
+ namespace: 'MercuryChunkingEmitter';
3975
+ name: 'Chunk Paging';
3976
+ fields: {
3977
+ /** . */
3978
+ 'total': {
3979
+ type: 'number';
3980
+ isRequired: true;
3981
+ options: undefined;
3982
+ };
3983
+ /** . */
3984
+ 'current': {
3985
+ type: 'number';
3986
+ isRequired: true;
3987
+ options: undefined;
3988
+ };
3989
+ };
3990
+ }
3991
+ interface ChunkPagingEntity extends SchemaEntity<SpruceSchemas.MercuryChunkingEmitter.v2023_10_21.ChunkPagingSchema> {
3992
+ }
3993
+ }
3994
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3995
+ interface StreamSchedulesEmitPayload {
3996
+ 'chunkingId': string;
3997
+ 'events': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
3998
+ 'chunk': SpruceSchemas.MercuryChunkingEmitter.v2023_10_21.ChunkPaging;
3999
+ }
4000
+ interface StreamSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
4001
+ id: 'streamSchedulesEmitPayload';
4002
+ version: 'v2021_05_19';
4003
+ namespace: 'Calendar';
4004
+ name: '';
4005
+ fields: {
4006
+ /** . */
4007
+ 'chunkingId': {
4008
+ type: 'id';
4009
+ isRequired: true;
4010
+ options: undefined;
4011
+ };
4012
+ /** . */
4013
+ 'events': {
4014
+ type: 'schema';
4015
+ isRequired: true;
4016
+ isArray: true;
4017
+ minArrayLength: 0;
4018
+ options: {
4019
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
4020
+ };
4021
+ };
4022
+ /** . */
4023
+ 'chunk': {
4024
+ type: 'schema';
4025
+ isRequired: true;
4026
+ options: {
4027
+ schema: SpruceSchemas.MercuryChunkingEmitter.v2023_10_21.ChunkPagingSchema;
4028
+ };
4029
+ };
4030
+ };
4031
+ }
4032
+ interface StreamSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayloadSchema> {
4187
4033
  }
4188
4034
  }
4189
4035
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4190
- interface UpsertCalendarEventTypeEmitTargetAndPayload {
4036
+ interface StreamSchedulesEmitTargetAndPayload {
4191
4037
  /** Source. */
4192
4038
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4193
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitTarget;
4194
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitPayload | undefined | null;
4039
+ 'target': SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTarget;
4040
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayload;
4195
4041
  }
4196
- interface UpsertCalendarEventTypeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4197
- id: 'upsertCalendarEventTypeEmitTargetAndPayload';
4042
+ interface StreamSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4043
+ id: 'streamSchedulesEmitTargetAndPayload';
4198
4044
  version: 'v2021_05_19';
4199
4045
  namespace: 'Calendar';
4200
4046
  name: '';
@@ -4212,42 +4058,196 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4212
4058
  type: 'schema';
4213
4059
  isRequired: true;
4214
4060
  options: {
4215
- schema: SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitTargetSchema;
4061
+ schema: SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetSchema;
4216
4062
  };
4217
4063
  };
4218
4064
  /** . */
4219
4065
  'payload': {
4220
4066
  type: 'schema';
4067
+ isRequired: true;
4221
4068
  options: {
4222
- schema: SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitPayloadSchema;
4069
+ schema: SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayloadSchema;
4223
4070
  };
4224
4071
  };
4225
4072
  };
4226
4073
  }
4227
- interface UpsertCalendarEventTypeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitTargetAndPayloadSchema> {
4074
+ interface StreamSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetAndPayloadSchema> {
4228
4075
  }
4229
4076
  }
4230
4077
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4231
- interface UpsertCalendarEventTypeResponsePayload {
4232
- 'calendarEventType': SpruceSchemas.Calendar.v2021_05_19.CalendarEventType;
4078
+ interface ListCalendarsEmitTarget {
4079
+ 'organizationId'?: string | undefined | null;
4080
+ 'calendarPersonId'?: string | undefined | null;
4233
4081
  }
4234
- interface UpsertCalendarEventTypeResponsePayloadSchema extends SpruceSchema.Schema {
4235
- id: 'upsertCalendarEventTypeResponsePayload';
4082
+ interface ListCalendarsEmitTargetSchema extends SpruceSchema.Schema {
4083
+ id: 'listCalendarsEmitTarget';
4236
4084
  version: 'v2021_05_19';
4237
4085
  namespace: 'Calendar';
4238
4086
  name: '';
4239
4087
  fields: {
4240
4088
  /** . */
4241
- 'calendarEventType': {
4089
+ 'organizationId': {
4090
+ type: 'id';
4091
+ options: undefined;
4092
+ };
4093
+ /** . */
4094
+ 'calendarPersonId': {
4095
+ type: 'id';
4096
+ options: undefined;
4097
+ };
4098
+ };
4099
+ }
4100
+ interface ListCalendarsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetSchema> {
4101
+ }
4102
+ }
4103
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4104
+ interface ListCalendarsEmitTargetAndPayload {
4105
+ /** Source. */
4106
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4107
+ 'target'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTarget | undefined | null;
4108
+ }
4109
+ interface ListCalendarsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4110
+ id: 'listCalendarsEmitTargetAndPayload';
4111
+ version: 'v2021_05_19';
4112
+ namespace: 'Calendar';
4113
+ name: '';
4114
+ fields: {
4115
+ /** Source. */
4116
+ 'source': {
4117
+ label: 'Source';
4118
+ type: 'schema';
4119
+ options: {
4120
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
4121
+ };
4122
+ };
4123
+ /** . */
4124
+ 'target': {
4125
+ type: 'schema';
4126
+ options: {
4127
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetSchema;
4128
+ };
4129
+ };
4130
+ };
4131
+ }
4132
+ interface ListCalendarsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetAndPayloadSchema> {
4133
+ }
4134
+ }
4135
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4136
+ interface ListCalendarsResponsePayload {
4137
+ 'calendars': SpruceSchemas.Calendar.v2021_05_19.Calendar[];
4138
+ 'count': number;
4139
+ }
4140
+ interface ListCalendarsResponsePayloadSchema extends SpruceSchema.Schema {
4141
+ id: 'listCalendarsResponsePayload';
4142
+ version: 'v2021_05_19';
4143
+ namespace: 'Calendar';
4144
+ name: '';
4145
+ fields: {
4146
+ /** . */
4147
+ 'calendars': {
4242
4148
  type: 'schema';
4243
4149
  isRequired: true;
4150
+ isArray: true;
4151
+ minArrayLength: 0;
4244
4152
  options: {
4245
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema;
4153
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
4246
4154
  };
4247
4155
  };
4156
+ /** . */
4157
+ 'count': {
4158
+ type: 'number';
4159
+ isRequired: true;
4160
+ options: undefined;
4161
+ };
4248
4162
  };
4249
4163
  }
4250
- interface UpsertCalendarEventTypeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeResponsePayloadSchema> {
4164
+ interface ListCalendarsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsResponsePayloadSchema> {
4165
+ }
4166
+ }
4167
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4168
+ interface DidUpdateCalendarEventEmitTarget {
4169
+ 'locationId': string;
4170
+ }
4171
+ interface DidUpdateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
4172
+ id: 'didUpdateCalendarEventEmitTarget';
4173
+ version: 'v2021_05_19';
4174
+ namespace: 'Calendar';
4175
+ name: '';
4176
+ fields: {
4177
+ /** . */
4178
+ 'locationId': {
4179
+ type: 'id';
4180
+ isRequired: true;
4181
+ options: undefined;
4182
+ };
4183
+ };
4184
+ }
4185
+ interface DidUpdateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetSchema> {
4186
+ }
4187
+ }
4188
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4189
+ interface DidUpdateCalendarEventEmitPayload {
4190
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
4191
+ }
4192
+ interface DidUpdateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
4193
+ id: 'didUpdateCalendarEventEmitPayload';
4194
+ version: 'v2021_05_19';
4195
+ namespace: 'Calendar';
4196
+ name: '';
4197
+ fields: {
4198
+ /** . */
4199
+ 'calendarEvent': {
4200
+ type: 'schema';
4201
+ isRequired: true;
4202
+ options: {
4203
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
4204
+ };
4205
+ };
4206
+ };
4207
+ }
4208
+ interface DidUpdateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayloadSchema> {
4209
+ }
4210
+ }
4211
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4212
+ interface DidUpdateCalendarEventEmitTargetAndPayload {
4213
+ /** Source. */
4214
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4215
+ 'target': SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTarget;
4216
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayload;
4217
+ }
4218
+ interface DidUpdateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4219
+ id: 'didUpdateCalendarEventEmitTargetAndPayload';
4220
+ version: 'v2021_05_19';
4221
+ namespace: 'Calendar';
4222
+ name: '';
4223
+ fields: {
4224
+ /** Source. */
4225
+ 'source': {
4226
+ label: 'Source';
4227
+ type: 'schema';
4228
+ options: {
4229
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
4230
+ };
4231
+ };
4232
+ /** . */
4233
+ 'target': {
4234
+ type: 'schema';
4235
+ isRequired: true;
4236
+ options: {
4237
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetSchema;
4238
+ };
4239
+ };
4240
+ /** . */
4241
+ 'payload': {
4242
+ type: 'schema';
4243
+ isRequired: true;
4244
+ options: {
4245
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayloadSchema;
4246
+ };
4247
+ };
4248
+ };
4249
+ }
4250
+ interface DidUpdateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetAndPayloadSchema> {
4251
4251
  }
4252
4252
  }
4253
4253
  namespace SpruceSchemas.Calendar.v2021_05_19 {