@sprucelabs/spruce-calendar-components 20.9.22 → 20.9.23

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.
@@ -1724,6 +1724,250 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1724
1724
  }
1725
1725
  type DidUpdateCalendarEventEmitTargetAndPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetAndPayloadSchema>;
1726
1726
  }
1727
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1728
+ interface GetConflictsForTimeRangeEmitTarget {
1729
+ 'organizationId': string;
1730
+ 'calendarIds': string[];
1731
+ }
1732
+ interface GetConflictsForTimeRangeEmitTargetSchema extends SpruceSchema.Schema {
1733
+ id: 'getConflictsForTimeRangeEmitTarget';
1734
+ version: 'v2021_05_19';
1735
+ namespace: 'Calendar';
1736
+ name: '';
1737
+ fields: {
1738
+ /** . */
1739
+ 'organizationId': {
1740
+ type: 'id';
1741
+ isRequired: true;
1742
+ options: undefined;
1743
+ };
1744
+ /** . */
1745
+ 'calendarIds': {
1746
+ type: 'id';
1747
+ isRequired: true;
1748
+ isArray: true;
1749
+ options: undefined;
1750
+ };
1751
+ };
1752
+ }
1753
+ type GetConflictsForTimeRangeEmitTargetEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema>;
1754
+ }
1755
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1756
+ interface Teammate {
1757
+ 'personId': string;
1758
+ 'durationMinutes': number;
1759
+ }
1760
+ interface TeammateSchema extends SpruceSchema.Schema {
1761
+ id: 'teammate';
1762
+ version: 'v2021_05_19';
1763
+ namespace: 'Calendar';
1764
+ name: '';
1765
+ fields: {
1766
+ /** . */
1767
+ 'personId': {
1768
+ type: 'id';
1769
+ isRequired: true;
1770
+ options: undefined;
1771
+ };
1772
+ /** . */
1773
+ 'durationMinutes': {
1774
+ type: 'number';
1775
+ isRequired: true;
1776
+ options: undefined;
1777
+ };
1778
+ };
1779
+ }
1780
+ type TeammateEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammateSchema>;
1781
+ }
1782
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1783
+ interface GetConflictsForTimeRangeEmitPayload {
1784
+ 'startDateTimeMs': number;
1785
+ 'teammate': SpruceSchemas.Calendar.v2021_05_19.Teammate;
1786
+ }
1787
+ interface GetConflictsForTimeRangeEmitPayloadSchema extends SpruceSchema.Schema {
1788
+ id: 'getConflictsForTimeRangeEmitPayload';
1789
+ version: 'v2021_05_19';
1790
+ namespace: 'Calendar';
1791
+ name: '';
1792
+ fields: {
1793
+ /** . */
1794
+ 'startDateTimeMs': {
1795
+ type: 'number';
1796
+ isRequired: true;
1797
+ options: undefined;
1798
+ };
1799
+ /** . */
1800
+ 'teammate': {
1801
+ type: 'schema';
1802
+ isRequired: true;
1803
+ options: {
1804
+ schema: SpruceSchemas.Calendar.v2021_05_19.TeammateSchema;
1805
+ };
1806
+ };
1807
+ };
1808
+ }
1809
+ type GetConflictsForTimeRangeEmitPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema>;
1810
+ }
1811
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1812
+ interface GetConflictsForTimeRangeEmitTargetAndPayload {
1813
+ /** Source. */
1814
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1815
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTarget;
1816
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayload;
1817
+ }
1818
+ interface GetConflictsForTimeRangeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1819
+ id: 'getConflictsForTimeRangeEmitTargetAndPayload';
1820
+ version: 'v2021_05_19';
1821
+ namespace: 'Calendar';
1822
+ name: '';
1823
+ fields: {
1824
+ /** Source. */
1825
+ 'source': {
1826
+ label: 'Source';
1827
+ type: 'schema';
1828
+ options: {
1829
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1830
+ };
1831
+ };
1832
+ /** . */
1833
+ 'target': {
1834
+ type: 'schema';
1835
+ isRequired: true;
1836
+ options: {
1837
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema;
1838
+ };
1839
+ };
1840
+ /** . */
1841
+ 'payload': {
1842
+ type: 'schema';
1843
+ isRequired: true;
1844
+ options: {
1845
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema;
1846
+ };
1847
+ };
1848
+ };
1849
+ }
1850
+ type GetConflictsForTimeRangeEmitTargetAndPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetAndPayloadSchema>;
1851
+ }
1852
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1853
+ interface GetConflictsForTimeRangeResponsePayload {
1854
+ 'isAvailable': boolean;
1855
+ 'excludedBy'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
1856
+ 'overlapsWith'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
1857
+ }
1858
+ interface GetConflictsForTimeRangeResponsePayloadSchema extends SpruceSchema.Schema {
1859
+ id: 'getConflictsForTimeRangeResponsePayload';
1860
+ version: 'v2021_05_19';
1861
+ namespace: 'Calendar';
1862
+ name: '';
1863
+ fields: {
1864
+ /** . */
1865
+ 'isAvailable': {
1866
+ type: 'boolean';
1867
+ isRequired: true;
1868
+ options: undefined;
1869
+ };
1870
+ /** . */
1871
+ 'excludedBy': {
1872
+ type: 'schema';
1873
+ isArray: true;
1874
+ options: {
1875
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1876
+ };
1877
+ };
1878
+ /** . */
1879
+ 'overlapsWith': {
1880
+ type: 'schema';
1881
+ isArray: true;
1882
+ options: {
1883
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1884
+ };
1885
+ };
1886
+ };
1887
+ }
1888
+ type GetConflictsForTimeRangeResponsePayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeResponsePayloadSchema>;
1889
+ }
1890
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1891
+ interface GetCalendarEventEmitTarget {
1892
+ 'locationId': string;
1893
+ 'calendarEventId': string;
1894
+ }
1895
+ interface GetCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
1896
+ id: 'getCalendarEventEmitTarget';
1897
+ version: 'v2021_05_19';
1898
+ namespace: 'Calendar';
1899
+ name: '';
1900
+ fields: {
1901
+ /** . */
1902
+ 'locationId': {
1903
+ type: 'id';
1904
+ isRequired: true;
1905
+ options: undefined;
1906
+ };
1907
+ /** . */
1908
+ 'calendarEventId': {
1909
+ type: 'id';
1910
+ isRequired: true;
1911
+ options: undefined;
1912
+ };
1913
+ };
1914
+ }
1915
+ type GetCalendarEventEmitTargetEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetSchema>;
1916
+ }
1917
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1918
+ interface GetCalendarEventEmitTargetAndPayload {
1919
+ /** Source. */
1920
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1921
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTarget;
1922
+ }
1923
+ interface GetCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1924
+ id: 'getCalendarEventEmitTargetAndPayload';
1925
+ version: 'v2021_05_19';
1926
+ namespace: 'Calendar';
1927
+ name: '';
1928
+ fields: {
1929
+ /** Source. */
1930
+ 'source': {
1931
+ label: 'Source';
1932
+ type: 'schema';
1933
+ options: {
1934
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1935
+ };
1936
+ };
1937
+ /** . */
1938
+ 'target': {
1939
+ type: 'schema';
1940
+ isRequired: true;
1941
+ options: {
1942
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetSchema;
1943
+ };
1944
+ };
1945
+ };
1946
+ }
1947
+ type GetCalendarEventEmitTargetAndPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetAndPayloadSchema>;
1948
+ }
1949
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1950
+ interface GetCalendarEventResponsePayload {
1951
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
1952
+ }
1953
+ interface GetCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
1954
+ id: 'getCalendarEventResponsePayload';
1955
+ version: 'v2021_05_19';
1956
+ namespace: 'Calendar';
1957
+ name: '';
1958
+ fields: {
1959
+ /** . */
1960
+ 'calendarEvent': {
1961
+ type: 'schema';
1962
+ isRequired: true;
1963
+ options: {
1964
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1965
+ };
1966
+ };
1967
+ };
1968
+ }
1969
+ type GetCalendarEventResponsePayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventResponsePayloadSchema>;
1970
+ }
1727
1971
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1728
1972
  interface GetAvailableTimeSlotsEmitTarget {
1729
1973
  'organizationId'?: string | undefined | null;
@@ -1952,12 +2196,13 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1952
2196
  type GetAvailableTimeSlotsResponsePayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsResponsePayloadSchema>;
1953
2197
  }
1954
2198
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1955
- interface GetCalendarEmitTarget {
1956
- 'organizationId': string;
1957
- 'slug': string;
2199
+ interface GetSchedulesEmitTarget {
2200
+ 'organizationId'?: string | undefined | null;
2201
+ 'locationId'?: string | undefined | null;
2202
+ 'calendarIds': string[];
1958
2203
  }
1959
- interface GetCalendarEmitTargetSchema extends SpruceSchema.Schema {
1960
- id: 'getCalendarEmitTarget';
2204
+ interface GetSchedulesEmitTargetSchema extends SpruceSchema.Schema {
2205
+ id: 'getSchedulesEmitTarget';
1961
2206
  version: 'v2021_05_19';
1962
2207
  namespace: 'Calendar';
1963
2208
  name: '';
@@ -1965,110 +2210,67 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1965
2210
  /** . */
1966
2211
  'organizationId': {
1967
2212
  type: 'id';
1968
- isRequired: true;
1969
2213
  options: undefined;
1970
2214
  };
1971
2215
  /** . */
1972
- 'slug': {
2216
+ 'locationId': {
1973
2217
  type: 'id';
1974
- isRequired: true;
1975
2218
  options: undefined;
1976
2219
  };
1977
- };
1978
- }
1979
- type GetCalendarEmitTargetEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema>;
1980
- }
1981
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1982
- interface GetCalendarEmitTargetAndPayload {
1983
- /** Source. */
1984
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1985
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTarget;
1986
- }
1987
- interface GetCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1988
- id: 'getCalendarEmitTargetAndPayload';
1989
- version: 'v2021_05_19';
1990
- namespace: 'Calendar';
1991
- name: '';
1992
- fields: {
1993
- /** Source. */
1994
- 'source': {
1995
- label: 'Source';
1996
- type: 'schema';
1997
- options: {
1998
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1999
- };
2000
- };
2001
2220
  /** . */
2002
- 'target': {
2003
- type: 'schema';
2221
+ 'calendarIds': {
2222
+ type: 'id';
2004
2223
  isRequired: true;
2005
- options: {
2006
- schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema;
2007
- };
2224
+ isArray: true;
2225
+ options: undefined;
2008
2226
  };
2009
2227
  };
2010
2228
  }
2011
- type GetCalendarEmitTargetAndPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetAndPayloadSchema>;
2229
+ type GetSchedulesEmitTargetEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema>;
2012
2230
  }
2013
2231
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2014
- interface GetCalendarResponsePayload {
2015
- 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
2232
+ interface GetSchedulesEmitPayload {
2233
+ 'startDateTimeMs': number;
2234
+ 'endDateTimeMs': number;
2235
+ 'personIds'?: string[] | undefined | null;
2016
2236
  }
2017
- interface GetCalendarResponsePayloadSchema extends SpruceSchema.Schema {
2018
- id: 'getCalendarResponsePayload';
2237
+ interface GetSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
2238
+ id: 'getSchedulesEmitPayload';
2019
2239
  version: 'v2021_05_19';
2020
2240
  namespace: 'Calendar';
2021
2241
  name: '';
2022
2242
  fields: {
2023
2243
  /** . */
2024
- 'calendar': {
2025
- type: 'schema';
2244
+ 'startDateTimeMs': {
2245
+ type: 'number';
2026
2246
  isRequired: true;
2027
- options: {
2028
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
2029
- };
2247
+ options: undefined;
2030
2248
  };
2031
- };
2032
- }
2033
- type GetCalendarResponsePayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarResponsePayloadSchema>;
2034
- }
2035
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2036
- interface GetConflictsForTimeRangeEmitTarget {
2037
- 'organizationId': string;
2038
- 'calendarIds': string[];
2039
- }
2040
- interface GetConflictsForTimeRangeEmitTargetSchema extends SpruceSchema.Schema {
2041
- id: 'getConflictsForTimeRangeEmitTarget';
2042
- version: 'v2021_05_19';
2043
- namespace: 'Calendar';
2044
- name: '';
2045
- fields: {
2046
2249
  /** . */
2047
- 'organizationId': {
2048
- type: 'id';
2250
+ 'endDateTimeMs': {
2251
+ type: 'number';
2049
2252
  isRequired: true;
2050
2253
  options: undefined;
2051
2254
  };
2052
2255
  /** . */
2053
- 'calendarIds': {
2256
+ 'personIds': {
2054
2257
  type: 'id';
2055
- isRequired: true;
2056
2258
  isArray: true;
2057
2259
  options: undefined;
2058
2260
  };
2059
2261
  };
2060
2262
  }
2061
- type GetConflictsForTimeRangeEmitTargetEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema>;
2263
+ type GetSchedulesEmitPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema>;
2062
2264
  }
2063
2265
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2064
- interface GetConflictsForTimeRangeEmitTargetAndPayload {
2266
+ interface GetSchedulesEmitTargetAndPayload {
2065
2267
  /** Source. */
2066
2268
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2067
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTarget;
2068
- 'payload': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayload;
2269
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTarget;
2270
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayload;
2069
2271
  }
2070
- interface GetConflictsForTimeRangeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2071
- id: 'getConflictsForTimeRangeEmitTargetAndPayload';
2272
+ interface GetSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2273
+ id: 'getSchedulesEmitTargetAndPayload';
2072
2274
  version: 'v2021_05_19';
2073
2275
  namespace: 'Calendar';
2074
2276
  name: '';
@@ -2086,7 +2288,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2086
2288
  type: 'schema';
2087
2289
  isRequired: true;
2088
2290
  options: {
2089
- schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema;
2291
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema;
2090
2292
  };
2091
2293
  };
2092
2294
  /** . */
@@ -2094,142 +2296,72 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2094
2296
  type: 'schema';
2095
2297
  isRequired: true;
2096
2298
  options: {
2097
- schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema;
2299
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema;
2098
2300
  };
2099
2301
  };
2100
2302
  };
2101
2303
  }
2102
- type GetConflictsForTimeRangeEmitTargetAndPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetAndPayloadSchema>;
2103
- }
2104
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2105
- interface Teammate {
2106
- 'personId': string;
2107
- 'durationMinutes': number;
2108
- }
2109
- interface TeammateSchema extends SpruceSchema.Schema {
2110
- id: 'teammate';
2111
- version: 'v2021_05_19';
2112
- namespace: 'Calendar';
2113
- name: '';
2114
- fields: {
2115
- /** . */
2116
- 'personId': {
2117
- type: 'id';
2118
- isRequired: true;
2119
- options: undefined;
2120
- };
2121
- /** . */
2122
- 'durationMinutes': {
2123
- type: 'number';
2124
- isRequired: true;
2125
- options: undefined;
2126
- };
2127
- };
2128
- }
2129
- type TeammateEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammateSchema>;
2304
+ type GetSchedulesEmitTargetAndPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetAndPayloadSchema>;
2130
2305
  }
2131
2306
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2132
- interface GetConflictsForTimeRangeEmitPayload {
2133
- 'startDateTimeMs': number;
2134
- 'teammate': SpruceSchemas.Calendar.v2021_05_19.Teammate;
2307
+ interface GetSchedulesResponsePayload {
2308
+ 'events': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
2135
2309
  }
2136
- interface GetConflictsForTimeRangeEmitPayloadSchema extends SpruceSchema.Schema {
2137
- id: 'getConflictsForTimeRangeEmitPayload';
2310
+ interface GetSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
2311
+ id: 'getSchedulesResponsePayload';
2138
2312
  version: 'v2021_05_19';
2139
2313
  namespace: 'Calendar';
2140
2314
  name: '';
2141
2315
  fields: {
2142
2316
  /** . */
2143
- 'startDateTimeMs': {
2144
- type: 'number';
2145
- isRequired: true;
2146
- options: undefined;
2147
- };
2148
- /** . */
2149
- 'teammate': {
2317
+ 'events': {
2150
2318
  type: 'schema';
2151
2319
  isRequired: true;
2152
- options: {
2153
- schema: SpruceSchemas.Calendar.v2021_05_19.TeammateSchema;
2154
- };
2155
- };
2156
- };
2157
- }
2158
- type GetConflictsForTimeRangeEmitPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema>;
2159
- }
2160
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2161
- interface GetConflictsForTimeRangeResponsePayload {
2162
- 'isAvailable': boolean;
2163
- 'excludedBy'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2164
- 'overlapsWith'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2165
- }
2166
- interface GetConflictsForTimeRangeResponsePayloadSchema extends SpruceSchema.Schema {
2167
- id: 'getConflictsForTimeRangeResponsePayload';
2168
- version: 'v2021_05_19';
2169
- namespace: 'Calendar';
2170
- name: '';
2171
- fields: {
2172
- /** . */
2173
- 'isAvailable': {
2174
- type: 'boolean';
2175
- isRequired: true;
2176
- options: undefined;
2177
- };
2178
- /** . */
2179
- 'excludedBy': {
2180
- type: 'schema';
2181
- isArray: true;
2182
- options: {
2183
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2184
- };
2185
- };
2186
- /** . */
2187
- 'overlapsWith': {
2188
- type: 'schema';
2189
2320
  isArray: true;
2321
+ minArrayLength: 0;
2190
2322
  options: {
2191
2323
  schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2192
2324
  };
2193
2325
  };
2194
2326
  };
2195
2327
  }
2196
- type GetConflictsForTimeRangeResponsePayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeResponsePayloadSchema>;
2328
+ type GetSchedulesResponsePayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesResponsePayloadSchema>;
2197
2329
  }
2198
2330
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2199
- interface GetCalendarEventEmitTarget {
2200
- 'locationId': string;
2201
- 'calendarEventId': string;
2331
+ interface GetCalendarEmitTarget {
2332
+ 'organizationId': string;
2333
+ 'slug': string;
2202
2334
  }
2203
- interface GetCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
2204
- id: 'getCalendarEventEmitTarget';
2335
+ interface GetCalendarEmitTargetSchema extends SpruceSchema.Schema {
2336
+ id: 'getCalendarEmitTarget';
2205
2337
  version: 'v2021_05_19';
2206
2338
  namespace: 'Calendar';
2207
2339
  name: '';
2208
2340
  fields: {
2209
2341
  /** . */
2210
- 'locationId': {
2342
+ 'organizationId': {
2211
2343
  type: 'id';
2212
2344
  isRequired: true;
2213
2345
  options: undefined;
2214
2346
  };
2215
2347
  /** . */
2216
- 'calendarEventId': {
2348
+ 'slug': {
2217
2349
  type: 'id';
2218
2350
  isRequired: true;
2219
2351
  options: undefined;
2220
2352
  };
2221
2353
  };
2222
2354
  }
2223
- type GetCalendarEventEmitTargetEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetSchema>;
2355
+ type GetCalendarEmitTargetEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema>;
2224
2356
  }
2225
2357
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2226
- interface GetCalendarEventEmitTargetAndPayload {
2358
+ interface GetCalendarEmitTargetAndPayload {
2227
2359
  /** Source. */
2228
2360
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2229
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTarget;
2361
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTarget;
2230
2362
  }
2231
- interface GetCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2232
- id: 'getCalendarEventEmitTargetAndPayload';
2363
+ interface GetCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2364
+ id: 'getCalendarEmitTargetAndPayload';
2233
2365
  version: 'v2021_05_19';
2234
2366
  namespace: 'Calendar';
2235
2367
  name: '';
@@ -2247,34 +2379,34 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2247
2379
  type: 'schema';
2248
2380
  isRequired: true;
2249
2381
  options: {
2250
- schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetSchema;
2382
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema;
2251
2383
  };
2252
2384
  };
2253
2385
  };
2254
2386
  }
2255
- type GetCalendarEventEmitTargetAndPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetAndPayloadSchema>;
2387
+ type GetCalendarEmitTargetAndPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetAndPayloadSchema>;
2256
2388
  }
2257
2389
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2258
- interface GetCalendarEventResponsePayload {
2259
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
2390
+ interface GetCalendarResponsePayload {
2391
+ 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
2260
2392
  }
2261
- interface GetCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
2262
- id: 'getCalendarEventResponsePayload';
2393
+ interface GetCalendarResponsePayloadSchema extends SpruceSchema.Schema {
2394
+ id: 'getCalendarResponsePayload';
2263
2395
  version: 'v2021_05_19';
2264
2396
  namespace: 'Calendar';
2265
2397
  name: '';
2266
2398
  fields: {
2267
2399
  /** . */
2268
- 'calendarEvent': {
2400
+ 'calendar': {
2269
2401
  type: 'schema';
2270
2402
  isRequired: true;
2271
2403
  options: {
2272
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2404
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
2273
2405
  };
2274
2406
  };
2275
2407
  };
2276
2408
  }
2277
- type GetCalendarEventResponsePayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventResponsePayloadSchema>;
2409
+ type GetCalendarResponsePayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarResponsePayloadSchema>;
2278
2410
  }
2279
2411
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2280
2412
  interface GetPreferencesEmitTarget {
@@ -2535,321 +2667,38 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2535
2667
  type ListCalendarEventsResponsePayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsResponsePayloadSchema>;
2536
2668
  }
2537
2669
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2538
- interface GetSchedulesEmitTarget {
2670
+ interface ListCalendarsEmitTarget {
2539
2671
  'organizationId'?: string | undefined | null;
2540
- 'locationId'?: string | undefined | null;
2541
- 'calendarIds': string[];
2672
+ 'calendarPersonId'?: string | undefined | null;
2542
2673
  }
2543
- interface GetSchedulesEmitTargetSchema extends SpruceSchema.Schema {
2544
- id: 'getSchedulesEmitTarget';
2674
+ interface ListCalendarsEmitTargetSchema extends SpruceSchema.Schema {
2675
+ id: 'listCalendarsEmitTarget';
2545
2676
  version: 'v2021_05_19';
2546
2677
  namespace: 'Calendar';
2547
2678
  name: '';
2548
- fields: {
2549
- /** . */
2550
- 'organizationId': {
2551
- type: 'id';
2552
- options: undefined;
2553
- };
2554
- /** . */
2555
- 'locationId': {
2556
- type: 'id';
2557
- options: undefined;
2558
- };
2559
- /** . */
2560
- 'calendarIds': {
2561
- type: 'id';
2562
- isRequired: true;
2563
- isArray: true;
2564
- options: undefined;
2565
- };
2566
- };
2567
- }
2568
- type GetSchedulesEmitTargetEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema>;
2569
- }
2570
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2571
- interface GetSchedulesEmitPayload {
2572
- 'startDateTimeMs': number;
2573
- 'endDateTimeMs': number;
2574
- 'personIds'?: string[] | undefined | null;
2575
- }
2576
- interface GetSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
2577
- id: 'getSchedulesEmitPayload';
2578
- version: 'v2021_05_19';
2579
- namespace: 'Calendar';
2580
- name: '';
2581
- fields: {
2582
- /** . */
2583
- 'startDateTimeMs': {
2584
- type: 'number';
2585
- isRequired: true;
2586
- options: undefined;
2587
- };
2588
- /** . */
2589
- 'endDateTimeMs': {
2590
- type: 'number';
2591
- isRequired: true;
2592
- options: undefined;
2593
- };
2594
- /** . */
2595
- 'personIds': {
2596
- type: 'id';
2597
- isArray: true;
2598
- options: undefined;
2599
- };
2600
- };
2601
- }
2602
- type GetSchedulesEmitPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema>;
2603
- }
2604
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2605
- interface GetSchedulesEmitTargetAndPayload {
2606
- /** Source. */
2607
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2608
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTarget;
2609
- 'payload': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayload;
2610
- }
2611
- interface GetSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2612
- id: 'getSchedulesEmitTargetAndPayload';
2613
- version: 'v2021_05_19';
2614
- namespace: 'Calendar';
2615
- name: '';
2616
- fields: {
2617
- /** Source. */
2618
- 'source': {
2619
- label: 'Source';
2620
- type: 'schema';
2621
- options: {
2622
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2623
- };
2624
- };
2625
- /** . */
2626
- 'target': {
2627
- type: 'schema';
2628
- isRequired: true;
2629
- options: {
2630
- schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema;
2631
- };
2632
- };
2633
- /** . */
2634
- 'payload': {
2635
- type: 'schema';
2636
- isRequired: true;
2637
- options: {
2638
- schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema;
2639
- };
2640
- };
2641
- };
2642
- }
2643
- type GetSchedulesEmitTargetAndPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetAndPayloadSchema>;
2644
- }
2645
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2646
- interface GetSchedulesResponsePayload {
2647
- 'events': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
2648
- }
2649
- interface GetSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
2650
- id: 'getSchedulesResponsePayload';
2651
- version: 'v2021_05_19';
2652
- namespace: 'Calendar';
2653
- name: '';
2654
- fields: {
2655
- /** . */
2656
- 'events': {
2657
- type: 'schema';
2658
- isRequired: true;
2659
- isArray: true;
2660
- minArrayLength: 0;
2661
- options: {
2662
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2663
- };
2664
- };
2665
- };
2666
- }
2667
- type GetSchedulesResponsePayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesResponsePayloadSchema>;
2668
- }
2669
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2670
- interface ListCalendarsEmitTarget {
2671
- 'organizationId'?: string | undefined | null;
2672
- 'calendarPersonId'?: string | undefined | null;
2673
- }
2674
- interface ListCalendarsEmitTargetSchema extends SpruceSchema.Schema {
2675
- id: 'listCalendarsEmitTarget';
2676
- version: 'v2021_05_19';
2677
- namespace: 'Calendar';
2678
- name: '';
2679
- fields: {
2680
- /** . */
2681
- 'organizationId': {
2682
- type: 'id';
2683
- options: undefined;
2684
- };
2685
- /** . */
2686
- 'calendarPersonId': {
2687
- type: 'id';
2688
- options: undefined;
2689
- };
2690
- };
2691
- }
2692
- type ListCalendarsEmitTargetEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetSchema>;
2693
- }
2694
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2695
- interface ListCalendarsEmitTargetAndPayload {
2696
- /** Source. */
2697
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2698
- 'target'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTarget | undefined | null;
2699
- }
2700
- interface ListCalendarsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2701
- id: 'listCalendarsEmitTargetAndPayload';
2702
- version: 'v2021_05_19';
2703
- namespace: 'Calendar';
2704
- name: '';
2705
- fields: {
2706
- /** Source. */
2707
- 'source': {
2708
- label: 'Source';
2709
- type: 'schema';
2710
- options: {
2711
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2712
- };
2713
- };
2714
- /** . */
2715
- 'target': {
2716
- type: 'schema';
2717
- options: {
2718
- schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetSchema;
2719
- };
2720
- };
2721
- };
2722
- }
2723
- type ListCalendarsEmitTargetAndPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetAndPayloadSchema>;
2724
- }
2725
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2726
- interface ListCalendarsResponsePayload {
2727
- 'calendars': SpruceSchemas.Calendar.v2021_05_19.Calendar[];
2728
- 'count': number;
2729
- }
2730
- interface ListCalendarsResponsePayloadSchema extends SpruceSchema.Schema {
2731
- id: 'listCalendarsResponsePayload';
2732
- version: 'v2021_05_19';
2733
- namespace: 'Calendar';
2734
- name: '';
2735
- fields: {
2736
- /** . */
2737
- 'calendars': {
2738
- type: 'schema';
2739
- isRequired: true;
2740
- isArray: true;
2741
- minArrayLength: 0;
2742
- options: {
2743
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
2744
- };
2745
- };
2746
- /** . */
2747
- 'count': {
2748
- type: 'number';
2749
- isRequired: true;
2750
- options: undefined;
2751
- };
2752
- };
2753
- }
2754
- type ListCalendarsResponsePayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsResponsePayloadSchema>;
2755
- }
2756
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2757
- interface UpdateCalendarEmitTarget {
2758
- 'organizationId': string;
2759
- 'calendarId': string;
2760
- }
2761
- interface UpdateCalendarEmitTargetSchema extends SpruceSchema.Schema {
2762
- id: 'updateCalendarEmitTarget';
2763
- version: 'v2021_05_19';
2764
- namespace: 'Calendar';
2765
- name: '';
2766
- fields: {
2767
- /** . */
2768
- 'organizationId': {
2769
- type: 'id';
2770
- isRequired: true;
2771
- options: undefined;
2772
- };
2773
- /** . */
2774
- 'calendarId': {
2775
- type: 'id';
2776
- isRequired: true;
2777
- options: undefined;
2778
- };
2779
- };
2780
- }
2781
- type UpdateCalendarEmitTargetEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema>;
2782
- }
2783
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2784
- interface UpdateCalendarEmitPayload {
2785
- 'slug'?: string | undefined | null;
2786
- 'title'?: string | undefined | null;
2787
- 'eventTypes'?: string[] | undefined | null;
2788
- 'target'?: SpruceSchemas.Calendar.v2021_05_19.CalendarTarget | undefined | null;
2789
- 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
2790
- 'availableTimeSlotBehavior'?: ("include" | "exclude") | undefined | null;
2791
- }
2792
- interface UpdateCalendarEmitPayloadSchema extends SpruceSchema.Schema {
2793
- id: 'updateCalendarEmitPayload';
2794
- version: 'v2021_05_19';
2795
- namespace: 'Calendar';
2796
- name: '';
2797
- fields: {
2798
- /** . */
2799
- 'slug': {
2800
- type: 'id';
2801
- options: undefined;
2802
- };
2803
- /** . */
2804
- 'title': {
2805
- type: 'text';
2806
- options: undefined;
2807
- };
2808
- /** . */
2809
- 'eventTypes': {
2810
- type: 'text';
2811
- isArray: true;
2812
- minArrayLength: 0;
2813
- options: undefined;
2814
- };
2815
- /** . */
2816
- 'target': {
2817
- type: 'schema';
2818
- options: {
2819
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarTargetSchema;
2820
- };
2821
- };
2822
- /** . */
2823
- 'dateDeleted': {
2824
- type: 'dateTime';
2825
- options: undefined;
2826
- };
2827
- /** . */
2828
- 'availableTimeSlotBehavior': {
2829
- type: 'select';
2830
- options: {
2831
- choices: [{
2832
- "value": "include";
2833
- "label": "Include";
2834
- }, {
2835
- "value": "exclude";
2836
- "label": "Exclude";
2837
- }];
2838
- };
2679
+ fields: {
2680
+ /** . */
2681
+ 'organizationId': {
2682
+ type: 'id';
2683
+ options: undefined;
2684
+ };
2685
+ /** . */
2686
+ 'calendarPersonId': {
2687
+ type: 'id';
2688
+ options: undefined;
2839
2689
  };
2840
2690
  };
2841
2691
  }
2842
- type UpdateCalendarEmitPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema>;
2692
+ type ListCalendarsEmitTargetEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetSchema>;
2843
2693
  }
2844
2694
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2845
- interface UpdateCalendarEmitTargetAndPayload {
2695
+ interface ListCalendarsEmitTargetAndPayload {
2846
2696
  /** Source. */
2847
2697
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2848
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTarget;
2849
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayload | undefined | null;
2698
+ 'target'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTarget | undefined | null;
2850
2699
  }
2851
- interface UpdateCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2852
- id: 'updateCalendarEmitTargetAndPayload';
2700
+ interface ListCalendarsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2701
+ id: 'listCalendarsEmitTargetAndPayload';
2853
2702
  version: 'v2021_05_19';
2854
2703
  namespace: 'Calendar';
2855
2704
  name: '';
@@ -2864,44 +2713,45 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2864
2713
  };
2865
2714
  /** . */
2866
2715
  'target': {
2867
- type: 'schema';
2868
- isRequired: true;
2869
- options: {
2870
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema;
2871
- };
2872
- };
2873
- /** . */
2874
- 'payload': {
2875
2716
  type: 'schema';
2876
2717
  options: {
2877
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema;
2718
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetSchema;
2878
2719
  };
2879
2720
  };
2880
2721
  };
2881
2722
  }
2882
- type UpdateCalendarEmitTargetAndPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetAndPayloadSchema>;
2723
+ type ListCalendarsEmitTargetAndPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsEmitTargetAndPayloadSchema>;
2883
2724
  }
2884
2725
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2885
- interface UpdateCalendarResponsePayload {
2886
- 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
2726
+ interface ListCalendarsResponsePayload {
2727
+ 'calendars': SpruceSchemas.Calendar.v2021_05_19.Calendar[];
2728
+ 'count': number;
2887
2729
  }
2888
- interface UpdateCalendarResponsePayloadSchema extends SpruceSchema.Schema {
2889
- id: 'updateCalendarResponsePayload';
2730
+ interface ListCalendarsResponsePayloadSchema extends SpruceSchema.Schema {
2731
+ id: 'listCalendarsResponsePayload';
2890
2732
  version: 'v2021_05_19';
2891
2733
  namespace: 'Calendar';
2892
2734
  name: '';
2893
2735
  fields: {
2894
2736
  /** . */
2895
- 'calendar': {
2737
+ 'calendars': {
2896
2738
  type: 'schema';
2897
2739
  isRequired: true;
2740
+ isArray: true;
2741
+ minArrayLength: 0;
2898
2742
  options: {
2899
2743
  schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
2900
2744
  };
2901
2745
  };
2746
+ /** . */
2747
+ 'count': {
2748
+ type: 'number';
2749
+ isRequired: true;
2750
+ options: undefined;
2751
+ };
2902
2752
  };
2903
2753
  }
2904
- type UpdateCalendarResponsePayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarResponsePayloadSchema>;
2754
+ type ListCalendarsResponsePayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsResponsePayloadSchema>;
2905
2755
  }
2906
2756
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2907
2757
  interface RegisterEventToolsEmitTarget {
@@ -3012,11 +2862,12 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3012
2862
  type RegisterEventToolsResponsePayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.RegisterEventToolsResponsePayloadSchema>;
3013
2863
  }
3014
2864
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3015
- interface UpdatePreferencesEmitTarget {
2865
+ interface UpdateCalendarEmitTarget {
3016
2866
  'organizationId': string;
2867
+ 'calendarId': string;
3017
2868
  }
3018
- interface UpdatePreferencesEmitTargetSchema extends SpruceSchema.Schema {
3019
- id: 'updatePreferencesEmitTarget';
2869
+ interface UpdateCalendarEmitTargetSchema extends SpruceSchema.Schema {
2870
+ id: 'updateCalendarEmitTarget';
3020
2871
  version: 'v2021_05_19';
3021
2872
  namespace: 'Calendar';
3022
2873
  name: '';
@@ -3027,40 +2878,86 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3027
2878
  isRequired: true;
3028
2879
  options: undefined;
3029
2880
  };
2881
+ /** . */
2882
+ 'calendarId': {
2883
+ type: 'id';
2884
+ isRequired: true;
2885
+ options: undefined;
2886
+ };
3030
2887
  };
3031
2888
  }
3032
- type UpdatePreferencesEmitTargetEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema>;
2889
+ type UpdateCalendarEmitTargetEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema>;
3033
2890
  }
3034
2891
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3035
- interface UpdatePreferencesEmitPayload {
3036
- 'selectedCalendarIds'?: string[] | undefined | null;
2892
+ interface UpdateCalendarEmitPayload {
2893
+ 'slug'?: string | undefined | null;
2894
+ 'title'?: string | undefined | null;
2895
+ 'eventTypes'?: string[] | undefined | null;
2896
+ 'target'?: SpruceSchemas.Calendar.v2021_05_19.CalendarTarget | undefined | null;
2897
+ 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
2898
+ 'availableTimeSlotBehavior'?: ("include" | "exclude") | undefined | null;
3037
2899
  }
3038
- interface UpdatePreferencesEmitPayloadSchema extends SpruceSchema.Schema {
3039
- id: 'updatePreferencesEmitPayload';
2900
+ interface UpdateCalendarEmitPayloadSchema extends SpruceSchema.Schema {
2901
+ id: 'updateCalendarEmitPayload';
3040
2902
  version: 'v2021_05_19';
3041
2903
  namespace: 'Calendar';
3042
2904
  name: '';
3043
2905
  fields: {
3044
2906
  /** . */
3045
- 'selectedCalendarIds': {
2907
+ 'slug': {
3046
2908
  type: 'id';
2909
+ options: undefined;
2910
+ };
2911
+ /** . */
2912
+ 'title': {
2913
+ type: 'text';
2914
+ options: undefined;
2915
+ };
2916
+ /** . */
2917
+ 'eventTypes': {
2918
+ type: 'text';
3047
2919
  isArray: true;
3048
2920
  minArrayLength: 0;
3049
2921
  options: undefined;
3050
2922
  };
2923
+ /** . */
2924
+ 'target': {
2925
+ type: 'schema';
2926
+ options: {
2927
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarTargetSchema;
2928
+ };
2929
+ };
2930
+ /** . */
2931
+ 'dateDeleted': {
2932
+ type: 'dateTime';
2933
+ options: undefined;
2934
+ };
2935
+ /** . */
2936
+ 'availableTimeSlotBehavior': {
2937
+ type: 'select';
2938
+ options: {
2939
+ choices: [{
2940
+ "value": "include";
2941
+ "label": "Include";
2942
+ }, {
2943
+ "value": "exclude";
2944
+ "label": "Exclude";
2945
+ }];
2946
+ };
2947
+ };
3051
2948
  };
3052
2949
  }
3053
- type UpdatePreferencesEmitPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema>;
2950
+ type UpdateCalendarEmitPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema>;
3054
2951
  }
3055
2952
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3056
- interface UpdatePreferencesEmitTargetAndPayload {
2953
+ interface UpdateCalendarEmitTargetAndPayload {
3057
2954
  /** Source. */
3058
2955
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3059
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTarget;
3060
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayload | undefined | null;
2956
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTarget;
2957
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayload | undefined | null;
3061
2958
  }
3062
- interface UpdatePreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3063
- id: 'updatePreferencesEmitTargetAndPayload';
2959
+ interface UpdateCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2960
+ id: 'updateCalendarEmitTargetAndPayload';
3064
2961
  version: 'v2021_05_19';
3065
2962
  namespace: 'Calendar';
3066
2963
  name: '';
@@ -3078,39 +2975,41 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3078
2975
  type: 'schema';
3079
2976
  isRequired: true;
3080
2977
  options: {
3081
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema;
2978
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema;
3082
2979
  };
3083
2980
  };
3084
2981
  /** . */
3085
2982
  'payload': {
3086
2983
  type: 'schema';
3087
2984
  options: {
3088
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema;
2985
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema;
3089
2986
  };
3090
2987
  };
3091
2988
  };
3092
2989
  }
3093
- type UpdatePreferencesEmitTargetAndPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetAndPayloadSchema>;
2990
+ type UpdateCalendarEmitTargetAndPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetAndPayloadSchema>;
3094
2991
  }
3095
2992
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3096
- interface UpdatePreferencesResponsePayload {
3097
- 'success': boolean;
2993
+ interface UpdateCalendarResponsePayload {
2994
+ 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
3098
2995
  }
3099
- interface UpdatePreferencesResponsePayloadSchema extends SpruceSchema.Schema {
3100
- id: 'updatePreferencesResponsePayload';
2996
+ interface UpdateCalendarResponsePayloadSchema extends SpruceSchema.Schema {
2997
+ id: 'updateCalendarResponsePayload';
3101
2998
  version: 'v2021_05_19';
3102
2999
  namespace: 'Calendar';
3103
3000
  name: '';
3104
3001
  fields: {
3105
3002
  /** . */
3106
- 'success': {
3107
- type: 'boolean';
3003
+ 'calendar': {
3004
+ type: 'schema';
3108
3005
  isRequired: true;
3109
- options: undefined;
3006
+ options: {
3007
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
3008
+ };
3110
3009
  };
3111
3010
  };
3112
3011
  }
3113
- type UpdatePreferencesResponsePayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesResponsePayloadSchema>;
3012
+ type UpdateCalendarResponsePayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarResponsePayloadSchema>;
3114
3013
  }
3115
3014
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3116
3015
  interface UpdateCalendarEventEmitTarget {
@@ -4085,6 +3984,107 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4085
3984
  }
4086
3985
  type UpsertCalendarEventTypeResponsePayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeResponsePayloadSchema>;
4087
3986
  }
3987
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3988
+ interface UpdatePreferencesEmitTarget {
3989
+ 'organizationId': string;
3990
+ }
3991
+ interface UpdatePreferencesEmitTargetSchema extends SpruceSchema.Schema {
3992
+ id: 'updatePreferencesEmitTarget';
3993
+ version: 'v2021_05_19';
3994
+ namespace: 'Calendar';
3995
+ name: '';
3996
+ fields: {
3997
+ /** . */
3998
+ 'organizationId': {
3999
+ type: 'id';
4000
+ isRequired: true;
4001
+ options: undefined;
4002
+ };
4003
+ };
4004
+ }
4005
+ type UpdatePreferencesEmitTargetEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema>;
4006
+ }
4007
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4008
+ interface UpdatePreferencesEmitPayload {
4009
+ 'selectedCalendarIds'?: string[] | undefined | null;
4010
+ }
4011
+ interface UpdatePreferencesEmitPayloadSchema extends SpruceSchema.Schema {
4012
+ id: 'updatePreferencesEmitPayload';
4013
+ version: 'v2021_05_19';
4014
+ namespace: 'Calendar';
4015
+ name: '';
4016
+ fields: {
4017
+ /** . */
4018
+ 'selectedCalendarIds': {
4019
+ type: 'id';
4020
+ isArray: true;
4021
+ minArrayLength: 0;
4022
+ options: undefined;
4023
+ };
4024
+ };
4025
+ }
4026
+ type UpdatePreferencesEmitPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema>;
4027
+ }
4028
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4029
+ interface UpdatePreferencesEmitTargetAndPayload {
4030
+ /** Source. */
4031
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4032
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTarget;
4033
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayload | undefined | null;
4034
+ }
4035
+ interface UpdatePreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4036
+ id: 'updatePreferencesEmitTargetAndPayload';
4037
+ version: 'v2021_05_19';
4038
+ namespace: 'Calendar';
4039
+ name: '';
4040
+ fields: {
4041
+ /** Source. */
4042
+ 'source': {
4043
+ label: 'Source';
4044
+ type: 'schema';
4045
+ options: {
4046
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
4047
+ };
4048
+ };
4049
+ /** . */
4050
+ 'target': {
4051
+ type: 'schema';
4052
+ isRequired: true;
4053
+ options: {
4054
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema;
4055
+ };
4056
+ };
4057
+ /** . */
4058
+ 'payload': {
4059
+ type: 'schema';
4060
+ options: {
4061
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema;
4062
+ };
4063
+ };
4064
+ };
4065
+ }
4066
+ type UpdatePreferencesEmitTargetAndPayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetAndPayloadSchema>;
4067
+ }
4068
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4069
+ interface UpdatePreferencesResponsePayload {
4070
+ 'success': boolean;
4071
+ }
4072
+ interface UpdatePreferencesResponsePayloadSchema extends SpruceSchema.Schema {
4073
+ id: 'updatePreferencesResponsePayload';
4074
+ version: 'v2021_05_19';
4075
+ namespace: 'Calendar';
4076
+ name: '';
4077
+ fields: {
4078
+ /** . */
4079
+ 'success': {
4080
+ type: 'boolean';
4081
+ isRequired: true;
4082
+ options: undefined;
4083
+ };
4084
+ };
4085
+ }
4086
+ type UpdatePreferencesResponsePayloadEntity = SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesResponsePayloadSchema>;
4087
+ }
4088
4088
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4089
4089
  interface CreateCalendarEventEmitTarget {
4090
4090
  'organizationId'?: string | undefined | null;