@sprucelabs/spruce-calendar-components 28.2.38 → 28.2.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -719,6 +719,47 @@ 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
+ }
722
763
  namespace SpruceSchemas.Calendar.v2021_05_19 {
723
764
  interface CancelCalendarEventEmitTarget {
724
765
  'locationId': string;
@@ -971,221 +1012,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
971
1012
  interface CreateCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarResponsePayloadSchema> {
972
1013
  }
973
1014
  }
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
- }
1189
1015
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1190
1016
  interface CreateCalendarEventTypeEmitPayload {
1191
1017
  'name': string;
@@ -1696,13 +1522,12 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1696
1522
  }
1697
1523
  }
1698
1524
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1699
- interface GetAvailableTimeSlotsEmitTarget {
1700
- 'organizationId'?: string | undefined | null;
1701
- 'locationId'?: string | undefined | null;
1702
- 'calendarIds': string[];
1525
+ interface DeleteCalendarEmitTarget {
1526
+ 'organizationId': string;
1527
+ 'calendarId': string;
1703
1528
  }
1704
- interface GetAvailableTimeSlotsEmitTargetSchema extends SpruceSchema.Schema {
1705
- id: 'getAvailableTimeSlotsEmitTarget';
1529
+ interface DeleteCalendarEmitTargetSchema extends SpruceSchema.Schema {
1530
+ id: 'deleteCalendarEmitTarget';
1706
1531
  version: 'v2021_05_19';
1707
1532
  namespace: 'Calendar';
1708
1533
  name: '';
@@ -1710,115 +1535,151 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1710
1535
  /** . */
1711
1536
  'organizationId': {
1712
1537
  type: 'id';
1538
+ isRequired: true;
1713
1539
  options: undefined;
1714
1540
  };
1715
1541
  /** . */
1716
- 'locationId': {
1717
- type: 'id';
1718
- options: undefined;
1719
- };
1720
- /** . */
1721
- 'calendarIds': {
1542
+ 'calendarId': {
1722
1543
  type: 'id';
1723
1544
  isRequired: true;
1724
- isArray: true;
1725
1545
  options: undefined;
1726
1546
  };
1727
1547
  };
1728
1548
  }
1729
- interface GetAvailableTimeSlotsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema> {
1549
+ interface DeleteCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema> {
1730
1550
  }
1731
1551
  }
1732
1552
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1733
- interface Teammates {
1734
- 'personId': string;
1735
- 'durationMinutes': number;
1553
+ interface DeleteCalendarEmitTargetAndPayload {
1554
+ /** Source. */
1555
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1556
+ 'target': SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTarget;
1736
1557
  }
1737
- interface TeammatesSchema extends SpruceSchema.Schema {
1738
- id: 'teammates';
1558
+ interface DeleteCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1559
+ id: 'deleteCalendarEmitTargetAndPayload';
1739
1560
  version: 'v2021_05_19';
1740
1561
  namespace: 'Calendar';
1741
1562
  name: '';
1742
1563
  fields: {
1564
+ /** Source. */
1565
+ 'source': {
1566
+ label: 'Source';
1567
+ type: 'schema';
1568
+ options: {
1569
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1570
+ };
1571
+ };
1743
1572
  /** . */
1744
- 'personId': {
1745
- type: 'id';
1573
+ 'target': {
1574
+ type: 'schema';
1746
1575
  isRequired: true;
1747
- options: undefined;
1576
+ options: {
1577
+ schema: SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema;
1578
+ };
1748
1579
  };
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: {
1749
1595
  /** . */
1750
- 'durationMinutes': {
1596
+ 'totalDeleted': {
1751
1597
  type: 'number';
1752
- isRequired: true;
1753
1598
  options: undefined;
1754
1599
  };
1755
1600
  };
1756
1601
  }
1757
- interface TeammatesEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema> {
1602
+ interface DeleteCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarResponsePayloadSchema> {
1758
1603
  }
1759
1604
  }
1760
1605
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1761
- interface GetAvailableTimeSlotsEmitPayload {
1762
- 'startDateTimeMs': number;
1763
- 'endDateTimeMs': number;
1764
- 'calculationMode': ("intersect" | "contiguous");
1765
- 'teammates': SpruceSchemas.Calendar.v2021_05_19.Teammates[];
1606
+ interface DidCancelCalendarEventEmitTarget {
1607
+ 'locationId': string;
1608
+ 'calendarEventId': string;
1766
1609
  }
1767
- interface GetAvailableTimeSlotsEmitPayloadSchema extends SpruceSchema.Schema {
1768
- id: 'getAvailableTimeSlotsEmitPayload';
1610
+ interface DidCancelCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
1611
+ id: 'didCancelCalendarEventEmitTarget';
1769
1612
  version: 'v2021_05_19';
1770
1613
  namespace: 'Calendar';
1771
1614
  name: '';
1772
1615
  fields: {
1773
1616
  /** . */
1774
- 'startDateTimeMs': {
1775
- type: 'number';
1617
+ 'locationId': {
1618
+ type: 'id';
1776
1619
  isRequired: true;
1777
1620
  options: undefined;
1778
1621
  };
1779
1622
  /** . */
1780
- 'endDateTimeMs': {
1781
- type: 'number';
1623
+ 'calendarEventId': {
1624
+ type: 'id';
1782
1625
  isRequired: true;
1783
1626
  options: undefined;
1784
1627
  };
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: {
1785
1644
  /** . */
1786
- 'calculationMode': {
1645
+ 'cancelStrategy': {
1787
1646
  type: 'select';
1788
1647
  isRequired: true;
1789
1648
  options: {
1790
1649
  choices: [{
1791
- "value": "intersect";
1792
- "label": "Intersect";
1650
+ "value": "only-this-one";
1651
+ "label": "Specific dates";
1793
1652
  }, {
1794
- "value": "contiguous";
1795
- "label": "Contiguous";
1653
+ "value": "all-going-forward";
1654
+ "label": "This and all going forward";
1655
+ }, {
1656
+ "value": "all";
1657
+ "label": "All";
1796
1658
  }];
1797
1659
  };
1798
1660
  };
1799
1661
  /** . */
1800
- 'teammates': {
1662
+ 'calendarEvent': {
1801
1663
  type: 'schema';
1802
1664
  isRequired: true;
1803
- isArray: true;
1804
1665
  options: {
1805
- schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema;
1666
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1806
1667
  };
1807
1668
  };
1808
1669
  };
1809
1670
  }
1810
- interface GetAvailableTimeSlotsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema> {
1671
+ interface DidCancelCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema> {
1811
1672
  }
1812
1673
  }
1813
1674
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1814
- interface GetAvailableTimeSlotsEmitTargetAndPayload {
1675
+ interface DidCancelCalendarEventEmitTargetAndPayload {
1815
1676
  /** Source. */
1816
1677
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1817
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTarget;
1818
- 'payload': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayload;
1678
+ 'target': SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTarget;
1679
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayload;
1819
1680
  }
1820
- interface GetAvailableTimeSlotsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1821
- id: 'getAvailableTimeSlotsEmitTargetAndPayload';
1681
+ interface DidCancelCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1682
+ id: 'didCancelCalendarEventEmitTargetAndPayload';
1822
1683
  version: 'v2021_05_19';
1823
1684
  namespace: 'Calendar';
1824
1685
  name: '';
@@ -1836,7 +1697,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1836
1697
  type: 'schema';
1837
1698
  isRequired: true;
1838
1699
  options: {
1839
- schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema;
1700
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetSchema;
1840
1701
  };
1841
1702
  };
1842
1703
  /** . */
@@ -1844,99 +1705,108 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1844
1705
  type: 'schema';
1845
1706
  isRequired: true;
1846
1707
  options: {
1847
- schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema;
1708
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema;
1848
1709
  };
1849
1710
  };
1850
1711
  };
1851
1712
  }
1852
- interface GetAvailableTimeSlotsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetAndPayloadSchema> {
1713
+ interface DidCancelCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetAndPayloadSchema> {
1853
1714
  }
1854
1715
  }
1855
1716
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1856
- interface TeammatesTimeslots {
1857
- 'personId': string;
1858
- 'startDateTimeMs': number;
1717
+ interface DidUpdateCalendarEventEmitTarget {
1718
+ 'locationId': string;
1859
1719
  }
1860
- interface TeammatesTimeslotsSchema extends SpruceSchema.Schema {
1861
- id: 'teammatesTimeslots';
1720
+ interface DidUpdateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
1721
+ id: 'didUpdateCalendarEventEmitTarget';
1862
1722
  version: 'v2021_05_19';
1863
1723
  namespace: 'Calendar';
1864
1724
  name: '';
1865
1725
  fields: {
1866
1726
  /** . */
1867
- 'personId': {
1727
+ 'locationId': {
1868
1728
  type: 'id';
1869
1729
  isRequired: true;
1870
1730
  options: undefined;
1871
1731
  };
1872
- /** . */
1873
- 'startDateTimeMs': {
1874
- type: 'number';
1875
- isRequired: true;
1876
- options: undefined;
1877
- };
1878
1732
  };
1879
1733
  }
1880
- interface TeammatesTimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema> {
1734
+ interface DidUpdateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetSchema> {
1881
1735
  }
1882
1736
  }
1883
1737
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1884
- interface Timeslots {
1885
- 'slots': SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslots[];
1738
+ interface DidUpdateCalendarEventEmitPayload {
1739
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
1886
1740
  }
1887
- interface TimeslotsSchema extends SpruceSchema.Schema {
1888
- id: 'timeslots';
1741
+ interface DidUpdateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
1742
+ id: 'didUpdateCalendarEventEmitPayload';
1889
1743
  version: 'v2021_05_19';
1890
1744
  namespace: 'Calendar';
1891
1745
  name: '';
1892
1746
  fields: {
1893
1747
  /** . */
1894
- 'slots': {
1748
+ 'calendarEvent': {
1895
1749
  type: 'schema';
1896
1750
  isRequired: true;
1897
- isArray: true;
1898
1751
  options: {
1899
- schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema;
1752
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1900
1753
  };
1901
1754
  };
1902
1755
  };
1903
1756
  }
1904
- interface TimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema> {
1757
+ interface DidUpdateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayloadSchema> {
1905
1758
  }
1906
1759
  }
1907
1760
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1908
- interface GetAvailableTimeSlotsResponsePayload {
1909
- 'times': SpruceSchemas.Calendar.v2021_05_19.Timeslots[];
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;
1910
1766
  }
1911
- interface GetAvailableTimeSlotsResponsePayloadSchema extends SpruceSchema.Schema {
1912
- id: 'getAvailableTimeSlotsResponsePayload';
1767
+ interface DidUpdateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1768
+ id: 'didUpdateCalendarEventEmitTargetAndPayload';
1913
1769
  version: 'v2021_05_19';
1914
1770
  namespace: 'Calendar';
1915
1771
  name: '';
1916
1772
  fields: {
1773
+ /** Source. */
1774
+ 'source': {
1775
+ label: 'Source';
1776
+ type: 'schema';
1777
+ options: {
1778
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1779
+ };
1780
+ };
1917
1781
  /** . */
1918
- 'times': {
1782
+ 'target': {
1919
1783
  type: 'schema';
1920
1784
  isRequired: true;
1921
- isArray: true;
1922
- minArrayLength: 0;
1923
1785
  options: {
1924
- schema: SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema;
1786
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetSchema;
1787
+ };
1788
+ };
1789
+ /** . */
1790
+ 'payload': {
1791
+ type: 'schema';
1792
+ isRequired: true;
1793
+ options: {
1794
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayloadSchema;
1925
1795
  };
1926
1796
  };
1927
1797
  };
1928
1798
  }
1929
- interface GetAvailableTimeSlotsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsResponsePayloadSchema> {
1799
+ interface DidUpdateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetAndPayloadSchema> {
1930
1800
  }
1931
1801
  }
1932
1802
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1933
- interface GetCalendarEmitTarget {
1934
- 'organizationId': string;
1935
- 'slug'?: string | undefined | null;
1936
- 'calendarId'?: string | undefined | null;
1803
+ interface GetAvailableTimeSlotsEmitTarget {
1804
+ 'organizationId'?: string | undefined | null;
1805
+ 'locationId'?: string | undefined | null;
1806
+ 'calendarIds': string[];
1937
1807
  }
1938
- interface GetCalendarEmitTargetSchema extends SpruceSchema.Schema {
1939
- id: 'getCalendarEmitTarget';
1808
+ interface GetAvailableTimeSlotsEmitTargetSchema extends SpruceSchema.Schema {
1809
+ id: 'getAvailableTimeSlotsEmitTarget';
1940
1810
  version: 'v2021_05_19';
1941
1811
  namespace: 'Calendar';
1942
1812
  name: '';
@@ -1944,32 +1814,34 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1944
1814
  /** . */
1945
1815
  'organizationId': {
1946
1816
  type: 'id';
1947
- isRequired: true;
1948
1817
  options: undefined;
1949
1818
  };
1950
1819
  /** . */
1951
- 'slug': {
1820
+ 'locationId': {
1952
1821
  type: 'id';
1953
1822
  options: undefined;
1954
1823
  };
1955
1824
  /** . */
1956
- 'calendarId': {
1825
+ 'calendarIds': {
1957
1826
  type: 'id';
1827
+ isRequired: true;
1828
+ isArray: true;
1958
1829
  options: undefined;
1959
1830
  };
1960
1831
  };
1961
1832
  }
1962
- interface GetCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema> {
1833
+ interface GetAvailableTimeSlotsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema> {
1963
1834
  }
1964
1835
  }
1965
1836
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1966
- interface GetCalendarEmitTargetAndPayload {
1837
+ interface GetAvailableTimeSlotsEmitTargetAndPayload {
1967
1838
  /** Source. */
1968
1839
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1969
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTarget;
1840
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTarget;
1841
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayload;
1970
1842
  }
1971
- interface GetCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1972
- id: 'getCalendarEmitTargetAndPayload';
1843
+ interface GetAvailableTimeSlotsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1844
+ id: 'getAvailableTimeSlotsEmitTargetAndPayload';
1973
1845
  version: 'v2021_05_19';
1974
1846
  namespace: 'Calendar';
1975
1847
  name: '';
@@ -1987,194 +1859,221 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1987
1859
  type: 'schema';
1988
1860
  isRequired: true;
1989
1861
  options: {
1990
- schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema;
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;
1991
1871
  };
1992
1872
  };
1993
1873
  };
1994
1874
  }
1995
- interface GetCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetAndPayloadSchema> {
1875
+ interface GetAvailableTimeSlotsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetAndPayloadSchema> {
1996
1876
  }
1997
1877
  }
1998
1878
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1999
- interface GetCalendarResponsePayload {
2000
- 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
2001
- }
2002
- interface GetCalendarResponsePayloadSchema extends SpruceSchema.Schema {
2003
- id: 'getCalendarResponsePayload';
1879
+ interface Teammates {
1880
+ 'personId': string;
1881
+ 'durationMinutes': number;
1882
+ }
1883
+ interface TeammatesSchema extends SpruceSchema.Schema {
1884
+ id: 'teammates';
2004
1885
  version: 'v2021_05_19';
2005
1886
  namespace: 'Calendar';
2006
1887
  name: '';
2007
1888
  fields: {
2008
1889
  /** . */
2009
- 'calendar': {
2010
- type: 'schema';
1890
+ 'personId': {
1891
+ type: 'id';
2011
1892
  isRequired: true;
2012
- options: {
2013
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
2014
- };
1893
+ options: undefined;
1894
+ };
1895
+ /** . */
1896
+ 'durationMinutes': {
1897
+ type: 'number';
1898
+ isRequired: true;
1899
+ options: undefined;
2015
1900
  };
2016
1901
  };
2017
1902
  }
2018
- interface GetCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarResponsePayloadSchema> {
1903
+ interface TeammatesEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema> {
2019
1904
  }
2020
1905
  }
2021
1906
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2022
- interface GetCalendarEventEmitTarget {
2023
- 'locationId': string;
2024
- 'calendarEventId': string;
1907
+ interface GetAvailableTimeSlotsEmitPayload {
1908
+ 'startDateTimeMs': number;
1909
+ 'endDateTimeMs': number;
1910
+ 'calculationMode': ("intersect" | "contiguous");
1911
+ 'teammates': SpruceSchemas.Calendar.v2021_05_19.Teammates[];
2025
1912
  }
2026
- interface GetCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
2027
- id: 'getCalendarEventEmitTarget';
1913
+ interface GetAvailableTimeSlotsEmitPayloadSchema extends SpruceSchema.Schema {
1914
+ id: 'getAvailableTimeSlotsEmitPayload';
2028
1915
  version: 'v2021_05_19';
2029
1916
  namespace: 'Calendar';
2030
1917
  name: '';
2031
1918
  fields: {
2032
1919
  /** . */
2033
- 'locationId': {
2034
- type: 'id';
1920
+ 'startDateTimeMs': {
1921
+ type: 'number';
2035
1922
  isRequired: true;
2036
1923
  options: undefined;
2037
1924
  };
2038
1925
  /** . */
2039
- 'calendarEventId': {
2040
- type: 'id';
1926
+ 'endDateTimeMs': {
1927
+ type: 'number';
2041
1928
  isRequired: true;
2042
1929
  options: undefined;
2043
1930
  };
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';
1931
+ /** . */
1932
+ 'calculationMode': {
1933
+ type: 'select';
1934
+ isRequired: true;
2065
1935
  options: {
2066
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1936
+ choices: [{
1937
+ "value": "intersect";
1938
+ "label": "Intersect";
1939
+ }, {
1940
+ "value": "contiguous";
1941
+ "label": "Contiguous";
1942
+ }];
2067
1943
  };
2068
1944
  };
2069
1945
  /** . */
2070
- 'target': {
1946
+ 'teammates': {
2071
1947
  type: 'schema';
2072
1948
  isRequired: true;
1949
+ isArray: true;
2073
1950
  options: {
2074
- schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetSchema;
1951
+ schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema;
2075
1952
  };
2076
1953
  };
2077
1954
  };
2078
1955
  }
2079
- interface GetCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetAndPayloadSchema> {
1956
+ interface GetAvailableTimeSlotsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema> {
2080
1957
  }
2081
1958
  }
2082
1959
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2083
- interface GetConflictsForTimeRangeEmitTarget {
2084
- 'organizationId': string;
2085
- 'calendarIds': string[];
1960
+ interface TeammatesTimeslots {
1961
+ 'personId': string;
1962
+ 'startDateTimeMs': number;
2086
1963
  }
2087
- interface GetConflictsForTimeRangeEmitTargetSchema extends SpruceSchema.Schema {
2088
- id: 'getConflictsForTimeRangeEmitTarget';
1964
+ interface TeammatesTimeslotsSchema extends SpruceSchema.Schema {
1965
+ id: 'teammatesTimeslots';
2089
1966
  version: 'v2021_05_19';
2090
1967
  namespace: 'Calendar';
2091
1968
  name: '';
2092
1969
  fields: {
2093
1970
  /** . */
2094
- 'organizationId': {
1971
+ 'personId': {
2095
1972
  type: 'id';
2096
1973
  isRequired: true;
2097
1974
  options: undefined;
2098
1975
  };
2099
1976
  /** . */
2100
- 'calendarIds': {
2101
- type: 'id';
1977
+ 'startDateTimeMs': {
1978
+ type: 'number';
2102
1979
  isRequired: true;
2103
- isArray: true;
2104
1980
  options: undefined;
2105
1981
  };
2106
1982
  };
2107
1983
  }
2108
- interface GetConflictsForTimeRangeEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema> {
1984
+ interface TeammatesTimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema> {
2109
1985
  }
2110
1986
  }
2111
1987
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2112
- interface Teammate {
2113
- 'personId': string;
2114
- 'durationMinutes': number;
1988
+ interface Timeslots {
1989
+ 'slots': SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslots[];
2115
1990
  }
2116
- interface TeammateSchema extends SpruceSchema.Schema {
2117
- id: 'teammate';
1991
+ interface TimeslotsSchema extends SpruceSchema.Schema {
1992
+ id: 'timeslots';
2118
1993
  version: 'v2021_05_19';
2119
1994
  namespace: 'Calendar';
2120
1995
  name: '';
2121
1996
  fields: {
2122
1997
  /** . */
2123
- 'personId': {
2124
- type: 'id';
1998
+ 'slots': {
1999
+ type: 'schema';
2125
2000
  isRequired: true;
2126
- options: undefined;
2001
+ isArray: true;
2002
+ options: {
2003
+ schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema;
2004
+ };
2127
2005
  };
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: {
2128
2021
  /** . */
2129
- 'durationMinutes': {
2130
- type: 'number';
2022
+ 'times': {
2023
+ type: 'schema';
2131
2024
  isRequired: true;
2132
- options: undefined;
2025
+ isArray: true;
2026
+ minArrayLength: 0;
2027
+ options: {
2028
+ schema: SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema;
2029
+ };
2133
2030
  };
2134
2031
  };
2135
2032
  }
2136
- interface TeammateEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammateSchema> {
2033
+ interface GetAvailableTimeSlotsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsResponsePayloadSchema> {
2137
2034
  }
2138
2035
  }
2139
2036
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2140
- interface GetConflictsForTimeRangeEmitPayload {
2141
- 'startDateTimeMs': number;
2142
- 'teammate': SpruceSchemas.Calendar.v2021_05_19.Teammate;
2037
+ interface GetCalendarEmitTarget {
2038
+ 'organizationId': string;
2039
+ 'slug'?: string | undefined | null;
2040
+ 'calendarId'?: string | undefined | null;
2143
2041
  }
2144
- interface GetConflictsForTimeRangeEmitPayloadSchema extends SpruceSchema.Schema {
2145
- id: 'getConflictsForTimeRangeEmitPayload';
2042
+ interface GetCalendarEmitTargetSchema extends SpruceSchema.Schema {
2043
+ id: 'getCalendarEmitTarget';
2146
2044
  version: 'v2021_05_19';
2147
2045
  namespace: 'Calendar';
2148
2046
  name: '';
2149
2047
  fields: {
2150
2048
  /** . */
2151
- 'startDateTimeMs': {
2152
- type: 'number';
2049
+ 'organizationId': {
2050
+ type: 'id';
2153
2051
  isRequired: true;
2154
2052
  options: undefined;
2155
2053
  };
2156
2054
  /** . */
2157
- 'teammate': {
2158
- type: 'schema';
2159
- isRequired: true;
2160
- options: {
2161
- schema: SpruceSchemas.Calendar.v2021_05_19.TeammateSchema;
2162
- };
2055
+ 'slug': {
2056
+ type: 'id';
2057
+ options: undefined;
2058
+ };
2059
+ /** . */
2060
+ 'calendarId': {
2061
+ type: 'id';
2062
+ options: undefined;
2163
2063
  };
2164
2064
  };
2165
2065
  }
2166
- interface GetConflictsForTimeRangeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema> {
2066
+ interface GetCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema> {
2167
2067
  }
2168
2068
  }
2169
2069
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2170
- interface GetConflictsForTimeRangeEmitTargetAndPayload {
2070
+ interface GetCalendarEmitTargetAndPayload {
2171
2071
  /** Source. */
2172
2072
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2173
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTarget;
2174
- 'payload': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayload;
2073
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTarget;
2175
2074
  }
2176
- interface GetConflictsForTimeRangeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2177
- id: 'getConflictsForTimeRangeEmitTargetAndPayload';
2075
+ interface GetCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2076
+ id: 'getCalendarEmitTargetAndPayload';
2178
2077
  version: 'v2021_05_19';
2179
2078
  namespace: 'Calendar';
2180
2079
  name: '';
@@ -2192,90 +2091,73 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2192
2091
  type: 'schema';
2193
2092
  isRequired: true;
2194
2093
  options: {
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;
2094
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema;
2204
2095
  };
2205
2096
  };
2206
2097
  };
2207
2098
  }
2208
- interface GetConflictsForTimeRangeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetAndPayloadSchema> {
2099
+ interface GetCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetAndPayloadSchema> {
2209
2100
  }
2210
2101
  }
2211
2102
  namespace SpruceSchemas.Calendar.v2021_05_19 {
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;
2103
+ interface GetCalendarResponsePayload {
2104
+ 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
2216
2105
  }
2217
- interface GetConflictsForTimeRangeResponsePayloadSchema extends SpruceSchema.Schema {
2218
- id: 'getConflictsForTimeRangeResponsePayload';
2106
+ interface GetCalendarResponsePayloadSchema extends SpruceSchema.Schema {
2107
+ id: 'getCalendarResponsePayload';
2219
2108
  version: 'v2021_05_19';
2220
2109
  namespace: 'Calendar';
2221
2110
  name: '';
2222
2111
  fields: {
2223
2112
  /** . */
2224
- 'isAvailable': {
2225
- type: 'boolean';
2226
- isRequired: true;
2227
- options: undefined;
2228
- };
2229
- /** . */
2230
- 'excludedBy': {
2231
- type: 'schema';
2232
- isArray: true;
2233
- options: {
2234
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2235
- };
2236
- };
2237
- /** . */
2238
- 'overlapsWith': {
2113
+ 'calendar': {
2239
2114
  type: 'schema';
2240
- isArray: true;
2115
+ isRequired: true;
2241
2116
  options: {
2242
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2117
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
2243
2118
  };
2244
2119
  };
2245
2120
  };
2246
2121
  }
2247
- interface GetConflictsForTimeRangeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeResponsePayloadSchema> {
2122
+ interface GetCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarResponsePayloadSchema> {
2248
2123
  }
2249
2124
  }
2250
2125
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2251
- interface GetPreferencesEmitTarget {
2252
- 'organizationId': string;
2126
+ interface GetCalendarEventEmitTarget {
2127
+ 'locationId': string;
2128
+ 'calendarEventId': string;
2253
2129
  }
2254
- interface GetPreferencesEmitTargetSchema extends SpruceSchema.Schema {
2255
- id: 'getPreferencesEmitTarget';
2130
+ interface GetCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
2131
+ id: 'getCalendarEventEmitTarget';
2256
2132
  version: 'v2021_05_19';
2257
2133
  namespace: 'Calendar';
2258
2134
  name: '';
2259
2135
  fields: {
2260
2136
  /** . */
2261
- 'organizationId': {
2137
+ 'locationId': {
2138
+ type: 'id';
2139
+ isRequired: true;
2140
+ options: undefined;
2141
+ };
2142
+ /** . */
2143
+ 'calendarEventId': {
2262
2144
  type: 'id';
2263
2145
  isRequired: true;
2264
2146
  options: undefined;
2265
2147
  };
2266
2148
  };
2267
2149
  }
2268
- interface GetPreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema> {
2150
+ interface GetCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetSchema> {
2269
2151
  }
2270
2152
  }
2271
2153
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2272
- interface GetPreferencesEmitTargetAndPayload {
2154
+ interface GetCalendarEventEmitTargetAndPayload {
2273
2155
  /** Source. */
2274
2156
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2275
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTarget;
2157
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTarget;
2276
2158
  }
2277
- interface GetPreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2278
- id: 'getPreferencesEmitTargetAndPayload';
2159
+ interface GetCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2160
+ id: 'getCalendarEventEmitTargetAndPayload';
2279
2161
  version: 'v2021_05_19';
2280
2162
  namespace: 'Calendar';
2281
2163
  name: '';
@@ -2293,111 +2175,75 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2293
2175
  type: 'schema';
2294
2176
  isRequired: true;
2295
2177
  options: {
2296
- schema: SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema;
2178
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetSchema;
2297
2179
  };
2298
2180
  };
2299
2181
  };
2300
2182
  }
2301
- interface GetPreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetAndPayloadSchema> {
2183
+ interface GetCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetAndPayloadSchema> {
2302
2184
  }
2303
2185
  }
2304
2186
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2305
- interface GetPreferencesResponsePayload {
2306
- 'selectedCalendarIds'?: string[] | undefined | null;
2307
- 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
2308
- 'visiblePeopleIds'?: string[] | undefined | null;
2187
+ interface GetCalendarEventResponsePayload {
2188
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
2309
2189
  }
2310
- interface GetPreferencesResponsePayloadSchema extends SpruceSchema.Schema {
2311
- id: 'getPreferencesResponsePayload';
2190
+ interface GetCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
2191
+ id: 'getCalendarEventResponsePayload';
2312
2192
  version: 'v2021_05_19';
2313
2193
  namespace: 'Calendar';
2314
2194
  name: '';
2315
2195
  fields: {
2316
2196
  /** . */
2317
- 'selectedCalendarIds': {
2318
- type: 'id';
2319
- isArray: true;
2320
- minArrayLength: 0;
2321
- options: undefined;
2322
- };
2323
- /** . */
2324
- 'visiblePeopleMode': {
2325
- type: 'select';
2197
+ 'calendarEvent': {
2198
+ type: 'schema';
2199
+ isRequired: true;
2326
2200
  options: {
2327
- choices: [{
2328
- "value": "me";
2329
- "label": "Me";
2330
- }, {
2331
- "value": "working";
2332
- "label": "Working";
2333
- }, {
2334
- "value": "custom";
2335
- "label": "Custom";
2336
- }];
2201
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2337
2202
  };
2338
2203
  };
2339
- /** . */
2340
- 'visiblePeopleIds': {
2341
- type: 'text';
2342
- isArray: true;
2343
- options: undefined;
2344
- };
2345
2204
  };
2346
2205
  }
2347
- interface GetPreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesResponsePayloadSchema> {
2206
+ interface GetCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventResponsePayloadSchema> {
2348
2207
  }
2349
2208
  }
2350
2209
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2351
- interface ListCalendarEventsEmitTarget {
2352
- 'locationId': string;
2210
+ interface GetConflictsForTimeRangeEmitTarget {
2211
+ 'organizationId': string;
2212
+ 'calendarIds': string[];
2353
2213
  }
2354
- interface ListCalendarEventsEmitTargetSchema extends SpruceSchema.Schema {
2355
- id: 'listCalendarEventsEmitTarget';
2214
+ interface GetConflictsForTimeRangeEmitTargetSchema extends SpruceSchema.Schema {
2215
+ id: 'getConflictsForTimeRangeEmitTarget';
2356
2216
  version: 'v2021_05_19';
2357
2217
  namespace: 'Calendar';
2358
2218
  name: '';
2359
2219
  fields: {
2360
2220
  /** . */
2361
- 'locationId': {
2221
+ 'organizationId': {
2362
2222
  type: 'id';
2363
2223
  isRequired: true;
2364
2224
  options: undefined;
2365
2225
  };
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: {
2381
2226
  /** . */
2382
- 'groupIds': {
2227
+ 'calendarIds': {
2383
2228
  type: 'id';
2229
+ isRequired: true;
2384
2230
  isArray: true;
2385
2231
  options: undefined;
2386
2232
  };
2387
2233
  };
2388
2234
  }
2389
- interface ListCalendarEventsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayloadSchema> {
2235
+ interface GetConflictsForTimeRangeEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema> {
2390
2236
  }
2391
2237
  }
2392
2238
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2393
- interface ListCalendarEventsEmitTargetAndPayload {
2239
+ interface GetConflictsForTimeRangeEmitTargetAndPayload {
2394
2240
  /** Source. */
2395
2241
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2396
- 'target': SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTarget;
2397
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayload | undefined | null;
2242
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTarget;
2243
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayload;
2398
2244
  }
2399
- interface ListCalendarEventsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2400
- id: 'listCalendarEventsEmitTargetAndPayload';
2245
+ interface GetConflictsForTimeRangeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2246
+ id: 'getConflictsForTimeRangeEmitTargetAndPayload';
2401
2247
  version: 'v2021_05_19';
2402
2248
  namespace: 'Calendar';
2403
2249
  name: '';
@@ -2415,109 +2261,148 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2415
2261
  type: 'schema';
2416
2262
  isRequired: true;
2417
2263
  options: {
2418
- schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetSchema;
2264
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema;
2419
2265
  };
2420
2266
  };
2421
2267
  /** . */
2422
2268
  'payload': {
2423
2269
  type: 'schema';
2270
+ isRequired: true;
2424
2271
  options: {
2425
- schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayloadSchema;
2272
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema;
2426
2273
  };
2427
2274
  };
2428
2275
  };
2429
2276
  }
2430
- interface ListCalendarEventsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetAndPayloadSchema> {
2277
+ interface GetConflictsForTimeRangeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetAndPayloadSchema> {
2431
2278
  }
2432
2279
  }
2433
2280
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2434
- interface ListCalendarEventsResponsePayload {
2435
- 'calendarEvents': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
2281
+ interface Teammate {
2282
+ 'personId': string;
2283
+ 'durationMinutes': number;
2436
2284
  }
2437
- interface ListCalendarEventsResponsePayloadSchema extends SpruceSchema.Schema {
2438
- id: 'listCalendarEventsResponsePayload';
2285
+ interface TeammateSchema extends SpruceSchema.Schema {
2286
+ id: 'teammate';
2439
2287
  version: 'v2021_05_19';
2440
2288
  namespace: 'Calendar';
2441
2289
  name: '';
2442
2290
  fields: {
2443
2291
  /** . */
2444
- 'calendarEvents': {
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> {
2306
+ }
2307
+ }
2308
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2309
+ interface GetConflictsForTimeRangeEmitPayload {
2310
+ 'startDateTimeMs': number;
2311
+ 'teammate': SpruceSchemas.Calendar.v2021_05_19.Teammate;
2312
+ }
2313
+ interface GetConflictsForTimeRangeEmitPayloadSchema extends SpruceSchema.Schema {
2314
+ id: 'getConflictsForTimeRangeEmitPayload';
2315
+ version: 'v2021_05_19';
2316
+ namespace: 'Calendar';
2317
+ name: '';
2318
+ fields: {
2319
+ /** . */
2320
+ 'startDateTimeMs': {
2321
+ type: 'number';
2322
+ isRequired: true;
2323
+ options: undefined;
2324
+ };
2325
+ /** . */
2326
+ 'teammate': {
2445
2327
  type: 'schema';
2446
2328
  isRequired: true;
2447
- isArray: true;
2448
- minArrayLength: 0;
2449
2329
  options: {
2450
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2330
+ schema: SpruceSchemas.Calendar.v2021_05_19.TeammateSchema;
2451
2331
  };
2452
2332
  };
2453
2333
  };
2454
2334
  }
2455
- interface ListCalendarEventsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsResponsePayloadSchema> {
2335
+ interface GetConflictsForTimeRangeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema> {
2456
2336
  }
2457
2337
  }
2458
2338
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2459
- interface RegisterEventToolsEmitTarget {
2460
- 'organizationId': string;
2461
- 'calendarEventId': string;
2462
- 'locationId'?: string | undefined | null;
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;
2463
2343
  }
2464
- interface RegisterEventToolsEmitTargetSchema extends SpruceSchema.Schema {
2465
- id: 'registerEventToolsEmitTarget';
2344
+ interface GetConflictsForTimeRangeResponsePayloadSchema extends SpruceSchema.Schema {
2345
+ id: 'getConflictsForTimeRangeResponsePayload';
2466
2346
  version: 'v2021_05_19';
2467
2347
  namespace: 'Calendar';
2468
2348
  name: '';
2469
2349
  fields: {
2470
2350
  /** . */
2471
- 'organizationId': {
2472
- type: 'id';
2351
+ 'isAvailable': {
2352
+ type: 'boolean';
2473
2353
  isRequired: true;
2474
2354
  options: undefined;
2475
2355
  };
2476
2356
  /** . */
2477
- 'calendarEventId': {
2478
- type: 'id';
2479
- isRequired: true;
2480
- options: undefined;
2357
+ 'excludedBy': {
2358
+ type: 'schema';
2359
+ isArray: true;
2360
+ options: {
2361
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2362
+ };
2481
2363
  };
2482
2364
  /** . */
2483
- 'locationId': {
2484
- type: 'id';
2485
- options: undefined;
2365
+ 'overlapsWith': {
2366
+ type: 'schema';
2367
+ isArray: true;
2368
+ options: {
2369
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2370
+ };
2486
2371
  };
2487
2372
  };
2488
2373
  }
2489
- interface RegisterEventToolsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetSchema> {
2374
+ interface GetConflictsForTimeRangeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeResponsePayloadSchema> {
2490
2375
  }
2491
2376
  }
2492
2377
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2493
- interface RegisterEventToolsEmitPayload {
2494
- 'eventTypeSlug'?: string | undefined | null;
2378
+ interface GetPreferencesEmitTarget {
2379
+ 'organizationId': string;
2495
2380
  }
2496
- interface RegisterEventToolsEmitPayloadSchema extends SpruceSchema.Schema {
2497
- id: 'registerEventToolsEmitPayload';
2381
+ interface GetPreferencesEmitTargetSchema extends SpruceSchema.Schema {
2382
+ id: 'getPreferencesEmitTarget';
2498
2383
  version: 'v2021_05_19';
2499
2384
  namespace: 'Calendar';
2500
2385
  name: '';
2501
2386
  fields: {
2502
2387
  /** . */
2503
- 'eventTypeSlug': {
2388
+ 'organizationId': {
2504
2389
  type: 'id';
2390
+ isRequired: true;
2505
2391
  options: undefined;
2506
2392
  };
2507
2393
  };
2508
2394
  }
2509
- interface RegisterEventToolsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayloadSchema> {
2395
+ interface GetPreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema> {
2510
2396
  }
2511
2397
  }
2512
2398
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2513
- interface RegisterEventToolsEmitTargetAndPayload {
2399
+ interface GetPreferencesEmitTargetAndPayload {
2514
2400
  /** Source. */
2515
2401
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2516
- 'target': SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTarget;
2517
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayload | undefined | null;
2402
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTarget;
2518
2403
  }
2519
- interface RegisterEventToolsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2520
- id: 'registerEventToolsEmitTargetAndPayload';
2404
+ interface GetPreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2405
+ id: 'getPreferencesEmitTargetAndPayload';
2521
2406
  version: 'v2021_05_19';
2522
2407
  namespace: 'Calendar';
2523
2408
  name: '';
@@ -2535,93 +2420,155 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2535
2420
  type: 'schema';
2536
2421
  isRequired: true;
2537
2422
  options: {
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;
2423
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema;
2546
2424
  };
2547
2425
  };
2548
2426
  };
2549
2427
  }
2550
- interface RegisterEventToolsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetAndPayloadSchema> {
2428
+ interface GetPreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetAndPayloadSchema> {
2551
2429
  }
2552
2430
  }
2553
2431
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2554
- interface RegisterEventToolsResponsePayload {
2555
- 'vcIds': string[];
2432
+ interface GetPreferencesResponsePayload {
2433
+ 'selectedCalendarIds'?: string[] | undefined | null;
2434
+ 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
2435
+ 'visiblePeopleIds'?: string[] | undefined | null;
2556
2436
  }
2557
- interface RegisterEventToolsResponsePayloadSchema extends SpruceSchema.Schema {
2558
- id: 'registerEventToolsResponsePayload';
2437
+ interface GetPreferencesResponsePayloadSchema extends SpruceSchema.Schema {
2438
+ id: 'getPreferencesResponsePayload';
2559
2439
  version: 'v2021_05_19';
2560
2440
  namespace: 'Calendar';
2561
2441
  name: '';
2562
2442
  fields: {
2563
2443
  /** . */
2564
- 'vcIds': {
2444
+ 'selectedCalendarIds': {
2565
2445
  type: 'id';
2566
- isRequired: true;
2567
2446
  isArray: true;
2568
2447
  minArrayLength: 0;
2569
2448
  options: undefined;
2570
2449
  };
2450
+ /** . */
2451
+ 'visiblePeopleMode': {
2452
+ type: 'select';
2453
+ options: {
2454
+ choices: [{
2455
+ "value": "me";
2456
+ "label": "Me";
2457
+ }, {
2458
+ "value": "working";
2459
+ "label": "Working";
2460
+ }, {
2461
+ "value": "custom";
2462
+ "label": "Custom";
2463
+ }];
2464
+ };
2465
+ };
2466
+ /** . */
2467
+ 'visiblePeopleIds': {
2468
+ type: 'text';
2469
+ isArray: true;
2470
+ options: undefined;
2471
+ };
2571
2472
  };
2572
2473
  }
2573
- interface RegisterEventToolsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsResponsePayloadSchema> {
2474
+ interface GetPreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesResponsePayloadSchema> {
2574
2475
  }
2575
2476
  }
2576
2477
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2577
- interface UpdateCalendarEventEmitTarget {
2578
- 'organizationId'?: string | undefined | null;
2579
- 'locationId'?: string | undefined | null;
2580
- 'calendarEventId': string;
2581
- 'calendarEventPersonId': string;
2478
+ interface ListCalendarEventsEmitTarget {
2479
+ 'locationId': string;
2582
2480
  }
2583
- interface UpdateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
2584
- id: 'updateCalendarEventEmitTarget';
2481
+ interface ListCalendarEventsEmitTargetSchema extends SpruceSchema.Schema {
2482
+ id: 'listCalendarEventsEmitTarget';
2585
2483
  version: 'v2021_05_19';
2586
2484
  namespace: 'Calendar';
2587
2485
  name: '';
2588
2486
  fields: {
2589
2487
  /** . */
2590
- 'organizationId': {
2488
+ 'locationId': {
2591
2489
  type: 'id';
2490
+ isRequired: true;
2592
2491
  options: undefined;
2593
2492
  };
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: {
2594
2508
  /** . */
2595
- 'locationId': {
2509
+ 'groupIds': {
2596
2510
  type: 'id';
2511
+ isArray: true;
2597
2512
  options: undefined;
2598
2513
  };
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: {
2599
2529
  /** . */
2600
- 'calendarEventId': {
2601
- type: 'id';
2530
+ 'calendarEvents': {
2531
+ type: 'schema';
2602
2532
  isRequired: true;
2603
- options: undefined;
2533
+ isArray: true;
2534
+ minArrayLength: 0;
2535
+ options: {
2536
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2537
+ };
2604
2538
  };
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: {
2605
2554
  /** . */
2606
- 'calendarEventPersonId': {
2607
- type: 'id';
2608
- isRequired: true;
2555
+ 'shouldShowOnlyMine': {
2556
+ type: 'boolean';
2609
2557
  options: undefined;
2610
2558
  };
2611
2559
  };
2612
2560
  }
2613
- interface UpdateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema> {
2561
+ interface ListCalendarEventTypesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayloadSchema> {
2614
2562
  }
2615
2563
  }
2616
2564
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2617
- interface UpdateCalendarEventEmitTargetAndPayload {
2565
+ interface ListCalendarEventTypesEmitTargetAndPayload {
2618
2566
  /** Source. */
2619
2567
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2620
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTarget;
2621
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayload | undefined | null;
2568
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayload | undefined | null;
2622
2569
  }
2623
- interface UpdateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2624
- id: 'updateCalendarEventEmitTargetAndPayload';
2570
+ interface ListCalendarEventTypesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2571
+ id: 'listCalendarEventTypesEmitTargetAndPayload';
2625
2572
  version: 'v2021_05_19';
2626
2573
  namespace: 'Calendar';
2627
2574
  name: '';
@@ -2635,63 +2582,90 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2635
2582
  };
2636
2583
  };
2637
2584
  /** . */
2638
- 'target': {
2585
+ 'payload': {
2639
2586
  type: 'schema';
2640
- isRequired: true;
2641
2587
  options: {
2642
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema;
2588
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayloadSchema;
2643
2589
  };
2644
2590
  };
2591
+ };
2592
+ }
2593
+ interface ListCalendarEventTypesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitTargetAndPayloadSchema> {
2594
+ }
2595
+ }
2596
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2597
+ interface ListCalendarEventTypesResponsePayload {
2598
+ 'calendarEventTypes': SpruceSchemas.Calendar.v2021_05_19.CalendarEventType[];
2599
+ 'count': number;
2600
+ }
2601
+ interface ListCalendarEventTypesResponsePayloadSchema extends SpruceSchema.Schema {
2602
+ id: 'listCalendarEventTypesResponsePayload';
2603
+ version: 'v2021_05_19';
2604
+ namespace: 'Calendar';
2605
+ name: '';
2606
+ fields: {
2645
2607
  /** . */
2646
- 'payload': {
2608
+ 'calendarEventTypes': {
2647
2609
  type: 'schema';
2610
+ isRequired: true;
2611
+ isArray: true;
2612
+ minArrayLength: 0;
2648
2613
  options: {
2649
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema;
2614
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema;
2650
2615
  };
2651
2616
  };
2617
+ /** . */
2618
+ 'count': {
2619
+ type: 'number';
2620
+ isRequired: true;
2621
+ options: undefined;
2622
+ };
2652
2623
  };
2653
2624
  }
2654
- interface UpdateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetAndPayloadSchema> {
2625
+ interface ListCalendarEventTypesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesResponsePayloadSchema> {
2655
2626
  }
2656
2627
  }
2657
2628
  namespace SpruceSchemas.Calendar.v2021_05_19 {
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;
2629
+ interface ListCalendarsEmitTarget {
2630
+ 'organizationId'?: string | undefined | null;
2631
+ 'calendarPersonId'?: string | undefined | null;
2686
2632
  }
2687
- interface UpdateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
2688
- id: 'updateCalendarEventEmitPayload';
2633
+ interface ListCalendarsEmitTargetSchema extends SpruceSchema.Schema {
2634
+ id: 'listCalendarsEmitTarget';
2689
2635
  version: 'v2021_05_19';
2690
2636
  namespace: 'Calendar';
2691
2637
  name: '';
2692
2638
  fields: {
2693
2639
  /** . */
2640
+ 'organizationId': {
2641
+ type: 'id';
2642
+ options: undefined;
2643
+ };
2644
+ /** . */
2645
+ 'calendarPersonId': {
2646
+ type: 'id';
2647
+ options: undefined;
2648
+ };
2649
+ };
2650
+ }
2651
+ interface ListCalendarsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetSchema> {
2652
+ }
2653
+ }
2654
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2655
+ interface ListCalendarsEmitTargetAndPayload {
2656
+ /** Source. */
2657
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2658
+ 'target'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTarget | undefined | null;
2659
+ }
2660
+ interface ListCalendarsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2661
+ id: 'listCalendarsEmitTargetAndPayload';
2662
+ version: 'v2021_05_19';
2663
+ namespace: 'Calendar';
2664
+ name: '';
2665
+ fields: {
2666
+ /** Source. */
2694
2667
  'source': {
2668
+ label: 'Source';
2695
2669
  type: 'schema';
2696
2670
  options: {
2697
2671
  schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
@@ -2701,41 +2675,626 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2701
2675
  'target': {
2702
2676
  type: 'schema';
2703
2677
  options: {
2704
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTargetSchema;
2678
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetSchema;
2705
2679
  };
2706
2680
  };
2681
+ };
2682
+ }
2683
+ interface ListCalendarsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetAndPayloadSchema> {
2684
+ }
2685
+ }
2686
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2687
+ interface ListCalendarsResponsePayload {
2688
+ 'calendars': SpruceSchemas.Calendar.v2021_05_19.Calendar[];
2689
+ 'count': number;
2690
+ }
2691
+ interface ListCalendarsResponsePayloadSchema extends SpruceSchema.Schema {
2692
+ id: 'listCalendarsResponsePayload';
2693
+ version: 'v2021_05_19';
2694
+ namespace: 'Calendar';
2695
+ name: '';
2696
+ fields: {
2707
2697
  /** . */
2708
- 'calendarId': {
2709
- type: 'id';
2710
- options: undefined;
2698
+ 'calendars': {
2699
+ type: 'schema';
2700
+ isRequired: true;
2701
+ isArray: true;
2702
+ minArrayLength: 0;
2703
+ options: {
2704
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
2705
+ };
2711
2706
  };
2712
2707
  /** . */
2713
- 'eventTypeSlug': {
2714
- type: 'text';
2708
+ 'count': {
2709
+ type: 'number';
2710
+ isRequired: true;
2715
2711
  options: undefined;
2716
2712
  };
2713
+ };
2714
+ }
2715
+ interface ListCalendarsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsResponsePayloadSchema> {
2716
+ }
2717
+ }
2718
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2719
+ interface RegisterEventToolsEmitTarget {
2720
+ 'organizationId': string;
2721
+ 'calendarEventId': string;
2722
+ 'locationId'?: string | undefined | null;
2723
+ }
2724
+ interface RegisterEventToolsEmitTargetSchema extends SpruceSchema.Schema {
2725
+ id: 'registerEventToolsEmitTarget';
2726
+ version: 'v2021_05_19';
2727
+ namespace: 'Calendar';
2728
+ name: '';
2729
+ fields: {
2717
2730
  /** . */
2718
- 'startDateTimeMs': {
2719
- type: 'dateTime';
2731
+ 'organizationId': {
2732
+ type: 'id';
2733
+ isRequired: true;
2720
2734
  options: undefined;
2721
2735
  };
2722
2736
  /** . */
2723
- 'isBusy': {
2724
- type: 'boolean';
2737
+ 'calendarEventId': {
2738
+ type: 'id';
2739
+ isRequired: true;
2725
2740
  options: undefined;
2726
2741
  };
2727
2742
  /** . */
2728
- 'isResizeable': {
2729
- type: 'boolean';
2743
+ 'locationId': {
2744
+ type: 'id';
2730
2745
  options: undefined;
2731
2746
  };
2732
- /** . */
2733
- 'style': {
2734
- type: 'select';
2735
- options: {
2736
- choices: [{
2737
- "value": "draft";
2738
- "label": "Draft";
2747
+ };
2748
+ }
2749
+ interface RegisterEventToolsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetSchema> {
2750
+ }
2751
+ }
2752
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2753
+ interface RegisterEventToolsEmitPayload {
2754
+ 'eventTypeSlug'?: string | undefined | null;
2755
+ }
2756
+ interface RegisterEventToolsEmitPayloadSchema extends SpruceSchema.Schema {
2757
+ id: 'registerEventToolsEmitPayload';
2758
+ version: 'v2021_05_19';
2759
+ namespace: 'Calendar';
2760
+ name: '';
2761
+ fields: {
2762
+ /** . */
2763
+ 'eventTypeSlug': {
2764
+ type: 'id';
2765
+ options: undefined;
2766
+ };
2767
+ };
2768
+ }
2769
+ interface RegisterEventToolsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayloadSchema> {
2770
+ }
2771
+ }
2772
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2773
+ interface RegisterEventToolsEmitTargetAndPayload {
2774
+ /** Source. */
2775
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2776
+ 'target': SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTarget;
2777
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayload | undefined | null;
2778
+ }
2779
+ interface RegisterEventToolsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2780
+ id: 'registerEventToolsEmitTargetAndPayload';
2781
+ version: 'v2021_05_19';
2782
+ namespace: 'Calendar';
2783
+ name: '';
2784
+ fields: {
2785
+ /** Source. */
2786
+ 'source': {
2787
+ label: 'Source';
2788
+ type: 'schema';
2789
+ options: {
2790
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2791
+ };
2792
+ };
2793
+ /** . */
2794
+ 'target': {
2795
+ type: 'schema';
2796
+ isRequired: true;
2797
+ options: {
2798
+ schema: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetSchema;
2799
+ };
2800
+ };
2801
+ /** . */
2802
+ 'payload': {
2803
+ type: 'schema';
2804
+ options: {
2805
+ schema: SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitPayloadSchema;
2806
+ };
2807
+ };
2808
+ };
2809
+ }
2810
+ interface RegisterEventToolsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsEmitTargetAndPayloadSchema> {
2811
+ }
2812
+ }
2813
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2814
+ interface RegisterEventToolsResponsePayload {
2815
+ 'vcIds': string[];
2816
+ }
2817
+ interface RegisterEventToolsResponsePayloadSchema extends SpruceSchema.Schema {
2818
+ id: 'registerEventToolsResponsePayload';
2819
+ version: 'v2021_05_19';
2820
+ namespace: 'Calendar';
2821
+ name: '';
2822
+ fields: {
2823
+ /** . */
2824
+ 'vcIds': {
2825
+ type: 'id';
2826
+ isRequired: true;
2827
+ isArray: true;
2828
+ minArrayLength: 0;
2829
+ options: undefined;
2830
+ };
2831
+ };
2832
+ }
2833
+ interface RegisterEventToolsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsResponsePayloadSchema> {
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';
3294
+ options: {
3295
+ choices: [{
3296
+ "value": "draft";
3297
+ "label": "Draft";
2739
3298
  }, {
2740
3299
  "value": "tentative";
2741
3300
  "label": "Tentative";
@@ -3005,263 +3564,25 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3005
3564
  }
3006
3565
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3007
3566
  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;
3094
- };
3095
- };
3096
- /** . */
3097
- 'dateDeleted': {
3098
- type: 'dateTime';
3099
- options: undefined;
3100
- };
3101
- /** . */
3102
- 'availableTimeSlotBehavior': {
3103
- type: 'select';
3104
- options: {
3105
- choices: [{
3106
- "value": "include";
3107
- "label": "Include";
3108
- }, {
3109
- "value": "exclude";
3110
- "label": "Exclude";
3111
- }];
3112
- };
3113
- };
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
- };
3139
- };
3140
- /** . */
3141
- 'target': {
3142
- type: 'schema';
3143
- isRequired: true;
3144
- options: {
3145
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema;
3146
- };
3147
- };
3148
- /** . */
3149
- 'payload': {
3150
- type: 'schema';
3151
- options: {
3152
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema;
3153
- };
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: {
3170
- /** . */
3171
- 'calendar': {
3172
- type: 'schema';
3173
- isRequired: true;
3174
- options: {
3175
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
3176
- };
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: {
3193
- /** . */
3194
- 'shouldShowOnlyMine': {
3195
- type: 'boolean';
3196
- options: undefined;
3197
- };
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
- };
3229
- };
3230
- };
3231
- }
3232
- interface ListCalendarEventTypesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitTargetAndPayloadSchema> {
3233
- }
3234
- }
3235
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3236
- interface ListCalendarEventTypesResponsePayload {
3237
- 'calendarEventTypes': SpruceSchemas.Calendar.v2021_05_19.CalendarEventType[];
3238
- 'count': number;
3567
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
3239
3568
  }
3240
- interface ListCalendarEventTypesResponsePayloadSchema extends SpruceSchema.Schema {
3241
- id: 'listCalendarEventTypesResponsePayload';
3569
+ interface UpdateCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
3570
+ id: 'updateCalendarEventResponsePayload';
3242
3571
  version: 'v2021_05_19';
3243
3572
  namespace: 'Calendar';
3244
3573
  name: '';
3245
3574
  fields: {
3246
3575
  /** . */
3247
- 'calendarEventTypes': {
3576
+ 'calendarEvent': {
3248
3577
  type: 'schema';
3249
3578
  isRequired: true;
3250
- isArray: true;
3251
- minArrayLength: 0;
3252
3579
  options: {
3253
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema;
3580
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
3254
3581
  };
3255
3582
  };
3256
- /** . */
3257
- 'count': {
3258
- type: 'number';
3259
- isRequired: true;
3260
- options: undefined;
3261
- };
3262
3583
  };
3263
3584
  }
3264
- interface ListCalendarEventTypesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesResponsePayloadSchema> {
3585
+ interface UpdateCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventResponsePayloadSchema> {
3265
3586
  }
3266
3587
  }
3267
3588
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -3788,259 +4109,92 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3788
4109
  }, {
3789
4110
  "value": "sort-filter-down";
3790
4111
  "label": "sort-filter-down";
3791
- }, {
3792
- "value": "wifi";
3793
- "label": "wifi";
3794
- }, {
3795
- "value": "camera";
3796
- "label": "camera";
3797
- }, {
3798
- "value": "crop";
3799
- "label": "crop";
3800
- }, {
3801
- "value": "home";
3802
- "label": "home";
3803
- }, {
3804
- "value": "phone-unavailable";
3805
- "label": "phone-unavailable";
3806
- }, {
3807
- "value": "sort-filter-up";
3808
- "label": "sort-filter-up";
3809
- }, {
3810
- "value": "zoom-in";
3811
- "label": "zoom-in";
3812
- }, {
3813
- "value": "cellphone";
3814
- "label": "cellphone";
3815
- }, {
3816
- "value": "delete";
3817
- "label": "delete";
3818
- }, {
3819
- "value": "info";
3820
- "label": "info";
3821
- }, {
3822
- "value": "phone";
3823
- "label": "phone";
3824
- }, {
3825
- "value": "sound-off";
3826
- "label": "sound-off";
3827
- }, {
3828
- "value": "zoom-out";
3829
- "label": "zoom-out";
3830
- }, {
3831
- "value": "checkmark";
3832
- "label": "checkmark";
3833
- }, {
3834
- "value": "document-blank";
3835
- "label": "document-blank";
3836
- }, {
3837
- "value": "jump";
3838
- "label": "jump";
3839
- }, {
3840
- "value": "photo";
3841
- "label": "photo";
3842
- }, {
3843
- "value": "sound-on";
3844
- "label": "sound-on";
3845
- }, {
3846
- "value": "chevron-down";
3847
- "label": "chevron-down";
3848
- }, {
3849
- "value": "document-new";
3850
- "label": "document-new";
3851
- }, {
3852
- "value": "layers";
3853
- "label": "layers";
3854
- }, {
3855
- "value": "picked";
3856
- "label": "picked";
3857
- }, {
3858
- "value": "star-filled";
3859
- "label": "star-filled";
3860
- }];
3861
- };
3862
- };
3863
- };
3864
- }
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;
4112
+ }, {
4113
+ "value": "wifi";
4114
+ "label": "wifi";
4115
+ }, {
4116
+ "value": "camera";
4117
+ "label": "camera";
4118
+ }, {
4119
+ "value": "crop";
4120
+ "label": "crop";
4121
+ }, {
4122
+ "value": "home";
4123
+ "label": "home";
4124
+ }, {
4125
+ "value": "phone-unavailable";
4126
+ "label": "phone-unavailable";
4127
+ }, {
4128
+ "value": "sort-filter-up";
4129
+ "label": "sort-filter-up";
4130
+ }, {
4131
+ "value": "zoom-in";
4132
+ "label": "zoom-in";
4133
+ }, {
4134
+ "value": "cellphone";
4135
+ "label": "cellphone";
4136
+ }, {
4137
+ "value": "delete";
4138
+ "label": "delete";
4139
+ }, {
4140
+ "value": "info";
4141
+ "label": "info";
4142
+ }, {
4143
+ "value": "phone";
4144
+ "label": "phone";
4145
+ }, {
4146
+ "value": "sound-off";
4147
+ "label": "sound-off";
4148
+ }, {
4149
+ "value": "zoom-out";
4150
+ "label": "zoom-out";
4151
+ }, {
4152
+ "value": "checkmark";
4153
+ "label": "checkmark";
4154
+ }, {
4155
+ "value": "document-blank";
4156
+ "label": "document-blank";
4157
+ }, {
4158
+ "value": "jump";
4159
+ "label": "jump";
4160
+ }, {
4161
+ "value": "photo";
4162
+ "label": "photo";
4163
+ }, {
4164
+ "value": "sound-on";
4165
+ "label": "sound-on";
4166
+ }, {
4167
+ "value": "chevron-down";
4168
+ "label": "chevron-down";
4169
+ }, {
4170
+ "value": "document-new";
4171
+ "label": "document-new";
4172
+ }, {
4173
+ "value": "layers";
4174
+ "label": "layers";
4175
+ }, {
4176
+ "value": "picked";
4177
+ "label": "picked";
4178
+ }, {
4179
+ "value": "star-filled";
4180
+ "label": "star-filled";
4181
+ }];
4028
4182
  };
4029
4183
  };
4030
4184
  };
4031
4185
  }
4032
- interface StreamSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayloadSchema> {
4186
+ interface UpsertCalendarEventTypeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitPayloadSchema> {
4033
4187
  }
4034
4188
  }
4035
4189
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4036
- interface StreamSchedulesEmitTargetAndPayload {
4190
+ interface UpsertCalendarEventTypeEmitTargetAndPayload {
4037
4191
  /** Source. */
4038
4192
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4039
- 'target': SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTarget;
4040
- 'payload': SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayload;
4193
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitTarget;
4194
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitPayload | undefined | null;
4041
4195
  }
4042
- interface StreamSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4043
- id: 'streamSchedulesEmitTargetAndPayload';
4196
+ interface UpsertCalendarEventTypeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4197
+ id: 'upsertCalendarEventTypeEmitTargetAndPayload';
4044
4198
  version: 'v2021_05_19';
4045
4199
  namespace: 'Calendar';
4046
4200
  name: '';
@@ -4058,196 +4212,42 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4058
4212
  type: 'schema';
4059
4213
  isRequired: true;
4060
4214
  options: {
4061
- schema: SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetSchema;
4215
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitTargetSchema;
4062
4216
  };
4063
4217
  };
4064
4218
  /** . */
4065
4219
  'payload': {
4066
4220
  type: 'schema';
4067
- isRequired: true;
4068
- options: {
4069
- schema: SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayloadSchema;
4070
- };
4071
- };
4072
- };
4073
- }
4074
- interface StreamSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetAndPayloadSchema> {
4075
- }
4076
- }
4077
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4078
- interface ListCalendarsEmitTarget {
4079
- 'organizationId'?: string | undefined | null;
4080
- 'calendarPersonId'?: string | undefined | null;
4081
- }
4082
- interface ListCalendarsEmitTargetSchema extends SpruceSchema.Schema {
4083
- id: 'listCalendarsEmitTarget';
4084
- version: 'v2021_05_19';
4085
- namespace: 'Calendar';
4086
- name: '';
4087
- fields: {
4088
- /** . */
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': {
4148
- type: 'schema';
4149
- isRequired: true;
4150
- isArray: true;
4151
- minArrayLength: 0;
4152
- options: {
4153
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
4154
- };
4155
- };
4156
- /** . */
4157
- 'count': {
4158
- type: 'number';
4159
- isRequired: true;
4160
- options: undefined;
4161
- };
4162
- };
4163
- }
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
4221
  options: {
4203
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
4222
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitPayloadSchema;
4204
4223
  };
4205
4224
  };
4206
4225
  };
4207
4226
  }
4208
- interface DidUpdateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayloadSchema> {
4227
+ interface UpsertCalendarEventTypeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitTargetAndPayloadSchema> {
4209
4228
  }
4210
4229
  }
4211
4230
  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;
4231
+ interface UpsertCalendarEventTypeResponsePayload {
4232
+ 'calendarEventType': SpruceSchemas.Calendar.v2021_05_19.CalendarEventType;
4217
4233
  }
4218
- interface DidUpdateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4219
- id: 'didUpdateCalendarEventEmitTargetAndPayload';
4234
+ interface UpsertCalendarEventTypeResponsePayloadSchema extends SpruceSchema.Schema {
4235
+ id: 'upsertCalendarEventTypeResponsePayload';
4220
4236
  version: 'v2021_05_19';
4221
4237
  namespace: 'Calendar';
4222
4238
  name: '';
4223
4239
  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
4240
  /** . */
4241
- 'payload': {
4241
+ 'calendarEventType': {
4242
4242
  type: 'schema';
4243
4243
  isRequired: true;
4244
4244
  options: {
4245
- schema: SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayloadSchema;
4245
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema;
4246
4246
  };
4247
4247
  };
4248
4248
  };
4249
4249
  }
4250
- interface DidUpdateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetAndPayloadSchema> {
4250
+ interface UpsertCalendarEventTypeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeResponsePayloadSchema> {
4251
4251
  }
4252
4252
  }
4253
4253
  namespace SpruceSchemas.Calendar.v2021_05_19 {