@sprucelabs/spruce-calendar-components 28.3.76 → 28.3.78

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.
@@ -1513,84 +1513,44 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1513
1513
  }
1514
1514
  }
1515
1515
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1516
- interface DeleteCalendarEmitTarget {
1517
- 'organizationId': string;
1518
- 'calendarId': string;
1516
+ interface DidCancelCalendarEventEmitPayload {
1517
+ 'cancelStrategy': ("only-this-one" | "all-going-forward" | "all");
1518
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
1519
1519
  }
1520
- interface DeleteCalendarEmitTargetSchema extends SpruceSchema.Schema {
1521
- id: 'deleteCalendarEmitTarget';
1520
+ interface DidCancelCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
1521
+ id: 'didCancelCalendarEventEmitPayload';
1522
1522
  version: 'v2021_05_19';
1523
1523
  namespace: 'Calendar';
1524
1524
  name: '';
1525
1525
  fields: {
1526
1526
  /** . */
1527
- 'organizationId': {
1528
- type: 'id';
1529
- isRequired: true;
1530
- options: undefined;
1531
- };
1532
- /** . */
1533
- 'calendarId': {
1534
- type: 'id';
1527
+ 'cancelStrategy': {
1528
+ type: 'select';
1535
1529
  isRequired: true;
1536
- options: undefined;
1537
- };
1538
- };
1539
- }
1540
- interface DeleteCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema> {
1541
- }
1542
- }
1543
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1544
- interface DeleteCalendarEmitTargetAndPayload {
1545
- /** Source. */
1546
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1547
- 'target': SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTarget;
1548
- }
1549
- interface DeleteCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1550
- id: 'deleteCalendarEmitTargetAndPayload';
1551
- version: 'v2021_05_19';
1552
- namespace: 'Calendar';
1553
- name: '';
1554
- fields: {
1555
- /** Source. */
1556
- 'source': {
1557
- label: 'Source';
1558
- type: 'schema';
1559
1530
  options: {
1560
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1531
+ choices: [{
1532
+ "value": "only-this-one";
1533
+ "label": "Specific dates";
1534
+ }, {
1535
+ "value": "all-going-forward";
1536
+ "label": "This and all going forward";
1537
+ }, {
1538
+ "value": "all";
1539
+ "label": "All";
1540
+ }];
1561
1541
  };
1562
1542
  };
1563
1543
  /** . */
1564
- 'target': {
1544
+ 'calendarEvent': {
1565
1545
  type: 'schema';
1566
1546
  isRequired: true;
1567
1547
  options: {
1568
- schema: SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema;
1548
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1569
1549
  };
1570
1550
  };
1571
1551
  };
1572
1552
  }
1573
- interface DeleteCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetAndPayloadSchema> {
1574
- }
1575
- }
1576
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1577
- interface DeleteCalendarResponsePayload {
1578
- 'totalDeleted'?: number | undefined | null;
1579
- }
1580
- interface DeleteCalendarResponsePayloadSchema extends SpruceSchema.Schema {
1581
- id: 'deleteCalendarResponsePayload';
1582
- version: 'v2021_05_19';
1583
- namespace: 'Calendar';
1584
- name: '';
1585
- fields: {
1586
- /** . */
1587
- 'totalDeleted': {
1588
- type: 'number';
1589
- options: undefined;
1590
- };
1591
- };
1592
- }
1593
- interface DeleteCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarResponsePayloadSchema> {
1553
+ interface DidCancelCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema> {
1594
1554
  }
1595
1555
  }
1596
1556
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -1622,55 +1582,83 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1622
1582
  }
1623
1583
  }
1624
1584
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1625
- interface DidCancelCalendarEventEmitPayload {
1626
- 'cancelStrategy': ("only-this-one" | "all-going-forward" | "all");
1627
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
1585
+ interface DidCancelCalendarEventEmitTargetAndPayload {
1586
+ /** Source. */
1587
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1588
+ 'target': SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTarget;
1589
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayload;
1628
1590
  }
1629
- interface DidCancelCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
1630
- id: 'didCancelCalendarEventEmitPayload';
1591
+ interface DidCancelCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1592
+ id: 'didCancelCalendarEventEmitTargetAndPayload';
1631
1593
  version: 'v2021_05_19';
1632
1594
  namespace: 'Calendar';
1633
1595
  name: '';
1634
1596
  fields: {
1597
+ /** Source. */
1598
+ 'source': {
1599
+ label: 'Source';
1600
+ type: 'schema';
1601
+ options: {
1602
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1603
+ };
1604
+ };
1635
1605
  /** . */
1636
- 'cancelStrategy': {
1637
- type: 'select';
1606
+ 'target': {
1607
+ type: 'schema';
1638
1608
  isRequired: true;
1639
1609
  options: {
1640
- choices: [{
1641
- "value": "only-this-one";
1642
- "label": "Specific dates";
1643
- }, {
1644
- "value": "all-going-forward";
1645
- "label": "This and all going forward";
1646
- }, {
1647
- "value": "all";
1648
- "label": "All";
1649
- }];
1610
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetSchema;
1650
1611
  };
1651
1612
  };
1652
1613
  /** . */
1653
- 'calendarEvent': {
1614
+ 'payload': {
1654
1615
  type: 'schema';
1655
1616
  isRequired: true;
1656
1617
  options: {
1657
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1618
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema;
1658
1619
  };
1659
1620
  };
1660
1621
  };
1661
1622
  }
1662
- interface DidCancelCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema> {
1623
+ interface DidCancelCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetAndPayloadSchema> {
1663
1624
  }
1664
1625
  }
1665
1626
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1666
- interface DidCancelCalendarEventEmitTargetAndPayload {
1627
+ interface DeleteCalendarEmitTarget {
1628
+ 'organizationId': string;
1629
+ 'calendarId': string;
1630
+ }
1631
+ interface DeleteCalendarEmitTargetSchema extends SpruceSchema.Schema {
1632
+ id: 'deleteCalendarEmitTarget';
1633
+ version: 'v2021_05_19';
1634
+ namespace: 'Calendar';
1635
+ name: '';
1636
+ fields: {
1637
+ /** . */
1638
+ 'organizationId': {
1639
+ type: 'id';
1640
+ isRequired: true;
1641
+ options: undefined;
1642
+ };
1643
+ /** . */
1644
+ 'calendarId': {
1645
+ type: 'id';
1646
+ isRequired: true;
1647
+ options: undefined;
1648
+ };
1649
+ };
1650
+ }
1651
+ interface DeleteCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema> {
1652
+ }
1653
+ }
1654
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1655
+ interface DeleteCalendarEmitTargetAndPayload {
1667
1656
  /** Source. */
1668
1657
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1669
- 'target': SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTarget;
1670
- 'payload': SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayload;
1658
+ 'target': SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTarget;
1671
1659
  }
1672
- interface DidCancelCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1673
- id: 'didCancelCalendarEventEmitTargetAndPayload';
1660
+ interface DeleteCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1661
+ id: 'deleteCalendarEmitTargetAndPayload';
1674
1662
  version: 'v2021_05_19';
1675
1663
  namespace: 'Calendar';
1676
1664
  name: '';
@@ -1688,41 +1676,32 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1688
1676
  type: 'schema';
1689
1677
  isRequired: true;
1690
1678
  options: {
1691
- schema: SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetSchema;
1692
- };
1693
- };
1694
- /** . */
1695
- 'payload': {
1696
- type: 'schema';
1697
- isRequired: true;
1698
- options: {
1699
- schema: SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema;
1679
+ schema: SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema;
1700
1680
  };
1701
1681
  };
1702
1682
  };
1703
1683
  }
1704
- interface DidCancelCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetAndPayloadSchema> {
1684
+ interface DeleteCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetAndPayloadSchema> {
1705
1685
  }
1706
1686
  }
1707
1687
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1708
- interface DidUpdateCalendarEventEmitTarget {
1709
- 'locationId': string;
1688
+ interface DeleteCalendarResponsePayload {
1689
+ 'totalDeleted'?: number | undefined | null;
1710
1690
  }
1711
- interface DidUpdateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
1712
- id: 'didUpdateCalendarEventEmitTarget';
1691
+ interface DeleteCalendarResponsePayloadSchema extends SpruceSchema.Schema {
1692
+ id: 'deleteCalendarResponsePayload';
1713
1693
  version: 'v2021_05_19';
1714
1694
  namespace: 'Calendar';
1715
1695
  name: '';
1716
1696
  fields: {
1717
1697
  /** . */
1718
- 'locationId': {
1719
- type: 'id';
1720
- isRequired: true;
1698
+ 'totalDeleted': {
1699
+ type: 'number';
1721
1700
  options: undefined;
1722
1701
  };
1723
1702
  };
1724
1703
  }
1725
- interface DidUpdateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetSchema> {
1704
+ interface DeleteCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarResponsePayloadSchema> {
1726
1705
  }
1727
1706
  }
1728
1707
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -1748,6 +1727,27 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1748
1727
  interface DidUpdateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayloadSchema> {
1749
1728
  }
1750
1729
  }
1730
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1731
+ interface DidUpdateCalendarEventEmitTarget {
1732
+ 'locationId': string;
1733
+ }
1734
+ interface DidUpdateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
1735
+ id: 'didUpdateCalendarEventEmitTarget';
1736
+ version: 'v2021_05_19';
1737
+ namespace: 'Calendar';
1738
+ name: '';
1739
+ fields: {
1740
+ /** . */
1741
+ 'locationId': {
1742
+ type: 'id';
1743
+ isRequired: true;
1744
+ options: undefined;
1745
+ };
1746
+ };
1747
+ }
1748
+ interface DidUpdateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetSchema> {
1749
+ }
1750
+ }
1751
1751
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1752
1752
  interface DidUpdateCalendarEventEmitTargetAndPayload {
1753
1753
  /** Source. */
@@ -2114,90 +2114,116 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2114
2114
  }
2115
2115
  }
2116
2116
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2117
- interface GetConflictsForTimeRangeEmitTarget {
2118
- 'organizationId': string;
2119
- 'calendarIds': string[];
2117
+ interface GetCalendarEventEmitTarget {
2118
+ 'locationId': string;
2119
+ 'calendarEventId': string;
2120
2120
  }
2121
- interface GetConflictsForTimeRangeEmitTargetSchema extends SpruceSchema.Schema {
2122
- id: 'getConflictsForTimeRangeEmitTarget';
2121
+ interface GetCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
2122
+ id: 'getCalendarEventEmitTarget';
2123
2123
  version: 'v2021_05_19';
2124
2124
  namespace: 'Calendar';
2125
2125
  name: '';
2126
2126
  fields: {
2127
2127
  /** . */
2128
- 'organizationId': {
2128
+ 'locationId': {
2129
2129
  type: 'id';
2130
2130
  isRequired: true;
2131
2131
  options: undefined;
2132
2132
  };
2133
2133
  /** . */
2134
- 'calendarIds': {
2134
+ 'calendarEventId': {
2135
2135
  type: 'id';
2136
2136
  isRequired: true;
2137
- isArray: true;
2138
2137
  options: undefined;
2139
2138
  };
2140
2139
  };
2141
2140
  }
2142
- interface GetConflictsForTimeRangeEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema> {
2141
+ interface GetCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetSchema> {
2143
2142
  }
2144
2143
  }
2145
2144
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2146
- interface Teammate {
2147
- 'personId': string;
2148
- 'durationMinutes': number;
2145
+ interface GetCalendarEventEmitTargetAndPayload {
2146
+ /** Source. */
2147
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2148
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTarget;
2149
2149
  }
2150
- interface TeammateSchema extends SpruceSchema.Schema {
2151
- id: 'teammate';
2150
+ interface GetCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2151
+ id: 'getCalendarEventEmitTargetAndPayload';
2152
2152
  version: 'v2021_05_19';
2153
2153
  namespace: 'Calendar';
2154
2154
  name: '';
2155
2155
  fields: {
2156
- /** . */
2157
- 'personId': {
2158
- type: 'id';
2159
- isRequired: true;
2160
- options: undefined;
2156
+ /** Source. */
2157
+ 'source': {
2158
+ label: 'Source';
2159
+ type: 'schema';
2160
+ options: {
2161
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2162
+ };
2161
2163
  };
2162
2164
  /** . */
2163
- 'durationMinutes': {
2164
- type: 'number';
2165
+ 'target': {
2166
+ type: 'schema';
2165
2167
  isRequired: true;
2166
- options: undefined;
2168
+ options: {
2169
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetSchema;
2170
+ };
2167
2171
  };
2168
2172
  };
2169
2173
  }
2170
- interface TeammateEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammateSchema> {
2174
+ interface GetCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetAndPayloadSchema> {
2171
2175
  }
2172
2176
  }
2173
2177
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2174
- interface GetConflictsForTimeRangeEmitPayload {
2175
- 'startDateTimeMs': number;
2176
- 'teammate': SpruceSchemas.Calendar.v2021_05_19.Teammate;
2178
+ interface GetCalendarEventResponsePayload {
2179
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
2177
2180
  }
2178
- interface GetConflictsForTimeRangeEmitPayloadSchema extends SpruceSchema.Schema {
2179
- id: 'getConflictsForTimeRangeEmitPayload';
2181
+ interface GetCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
2182
+ id: 'getCalendarEventResponsePayload';
2180
2183
  version: 'v2021_05_19';
2181
2184
  namespace: 'Calendar';
2182
2185
  name: '';
2183
2186
  fields: {
2184
2187
  /** . */
2185
- 'startDateTimeMs': {
2186
- type: 'number';
2188
+ 'calendarEvent': {
2189
+ type: 'schema';
2190
+ isRequired: true;
2191
+ options: {
2192
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2193
+ };
2194
+ };
2195
+ };
2196
+ }
2197
+ interface GetCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventResponsePayloadSchema> {
2198
+ }
2199
+ }
2200
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2201
+ interface GetConflictsForTimeRangeEmitTarget {
2202
+ 'organizationId': string;
2203
+ 'calendarIds': string[];
2204
+ }
2205
+ interface GetConflictsForTimeRangeEmitTargetSchema extends SpruceSchema.Schema {
2206
+ id: 'getConflictsForTimeRangeEmitTarget';
2207
+ version: 'v2021_05_19';
2208
+ namespace: 'Calendar';
2209
+ name: '';
2210
+ fields: {
2211
+ /** . */
2212
+ 'organizationId': {
2213
+ type: 'id';
2187
2214
  isRequired: true;
2188
2215
  options: undefined;
2189
2216
  };
2190
2217
  /** . */
2191
- 'teammate': {
2192
- type: 'schema';
2218
+ 'calendarIds': {
2219
+ type: 'id';
2193
2220
  isRequired: true;
2194
- options: {
2195
- schema: SpruceSchemas.Calendar.v2021_05_19.TeammateSchema;
2196
- };
2221
+ isArray: true;
2222
+ options: undefined;
2197
2223
  };
2198
2224
  };
2199
2225
  }
2200
- interface GetConflictsForTimeRangeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema> {
2226
+ interface GetConflictsForTimeRangeEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema> {
2201
2227
  }
2202
2228
  }
2203
2229
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -2243,126 +2269,100 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2243
2269
  }
2244
2270
  }
2245
2271
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2246
- interface GetConflictsForTimeRangeResponsePayload {
2247
- 'isAvailable': boolean;
2248
- 'excludedBy'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2249
- 'overlapsWith'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2272
+ interface Teammate {
2273
+ 'personId': string;
2274
+ 'durationMinutes': number;
2250
2275
  }
2251
- interface GetConflictsForTimeRangeResponsePayloadSchema extends SpruceSchema.Schema {
2252
- id: 'getConflictsForTimeRangeResponsePayload';
2276
+ interface TeammateSchema extends SpruceSchema.Schema {
2277
+ id: 'teammate';
2253
2278
  version: 'v2021_05_19';
2254
2279
  namespace: 'Calendar';
2255
2280
  name: '';
2256
2281
  fields: {
2257
2282
  /** . */
2258
- 'isAvailable': {
2259
- type: 'boolean';
2283
+ 'personId': {
2284
+ type: 'id';
2260
2285
  isRequired: true;
2261
2286
  options: undefined;
2262
2287
  };
2263
2288
  /** . */
2264
- 'excludedBy': {
2265
- type: 'schema';
2266
- isArray: true;
2267
- options: {
2268
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2269
- };
2270
- };
2271
- /** . */
2272
- 'overlapsWith': {
2273
- type: 'schema';
2274
- isArray: true;
2275
- options: {
2276
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2277
- };
2289
+ 'durationMinutes': {
2290
+ type: 'number';
2291
+ isRequired: true;
2292
+ options: undefined;
2278
2293
  };
2279
2294
  };
2280
2295
  }
2281
- interface GetConflictsForTimeRangeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeResponsePayloadSchema> {
2296
+ interface TeammateEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammateSchema> {
2282
2297
  }
2283
2298
  }
2284
2299
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2285
- interface GetCalendarEventEmitTarget {
2286
- 'locationId': string;
2287
- 'calendarEventId': string;
2300
+ interface GetConflictsForTimeRangeEmitPayload {
2301
+ 'startDateTimeMs': number;
2302
+ 'teammate': SpruceSchemas.Calendar.v2021_05_19.Teammate;
2288
2303
  }
2289
- interface GetCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
2290
- id: 'getCalendarEventEmitTarget';
2304
+ interface GetConflictsForTimeRangeEmitPayloadSchema extends SpruceSchema.Schema {
2305
+ id: 'getConflictsForTimeRangeEmitPayload';
2291
2306
  version: 'v2021_05_19';
2292
2307
  namespace: 'Calendar';
2293
2308
  name: '';
2294
2309
  fields: {
2295
2310
  /** . */
2296
- 'locationId': {
2297
- type: 'id';
2311
+ 'startDateTimeMs': {
2312
+ type: 'number';
2298
2313
  isRequired: true;
2299
2314
  options: undefined;
2300
2315
  };
2301
2316
  /** . */
2302
- 'calendarEventId': {
2303
- type: 'id';
2317
+ 'teammate': {
2318
+ type: 'schema';
2304
2319
  isRequired: true;
2305
- options: undefined;
2320
+ options: {
2321
+ schema: SpruceSchemas.Calendar.v2021_05_19.TeammateSchema;
2322
+ };
2306
2323
  };
2307
2324
  };
2308
2325
  }
2309
- interface GetCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetSchema> {
2326
+ interface GetConflictsForTimeRangeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema> {
2310
2327
  }
2311
2328
  }
2312
2329
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2313
- interface GetCalendarEventEmitTargetAndPayload {
2314
- /** Source. */
2315
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2316
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTarget;
2330
+ interface GetConflictsForTimeRangeResponsePayload {
2331
+ 'isAvailable': boolean;
2332
+ 'excludedBy'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2333
+ 'overlapsWith'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2317
2334
  }
2318
- interface GetCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2319
- id: 'getCalendarEventEmitTargetAndPayload';
2335
+ interface GetConflictsForTimeRangeResponsePayloadSchema extends SpruceSchema.Schema {
2336
+ id: 'getConflictsForTimeRangeResponsePayload';
2320
2337
  version: 'v2021_05_19';
2321
2338
  namespace: 'Calendar';
2322
2339
  name: '';
2323
2340
  fields: {
2324
- /** Source. */
2325
- 'source': {
2326
- label: 'Source';
2327
- type: 'schema';
2328
- options: {
2329
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2330
- };
2341
+ /** . */
2342
+ 'isAvailable': {
2343
+ type: 'boolean';
2344
+ isRequired: true;
2345
+ options: undefined;
2331
2346
  };
2332
2347
  /** . */
2333
- 'target': {
2348
+ 'excludedBy': {
2334
2349
  type: 'schema';
2335
- isRequired: true;
2350
+ isArray: true;
2336
2351
  options: {
2337
- schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetSchema;
2352
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2338
2353
  };
2339
2354
  };
2340
- };
2341
- }
2342
- interface GetCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetAndPayloadSchema> {
2343
- }
2344
- }
2345
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2346
- interface GetCalendarEventResponsePayload {
2347
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
2348
- }
2349
- interface GetCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
2350
- id: 'getCalendarEventResponsePayload';
2351
- version: 'v2021_05_19';
2352
- namespace: 'Calendar';
2353
- name: '';
2354
- fields: {
2355
2355
  /** . */
2356
- 'calendarEvent': {
2356
+ 'overlapsWith': {
2357
2357
  type: 'schema';
2358
- isRequired: true;
2358
+ isArray: true;
2359
2359
  options: {
2360
2360
  schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2361
2361
  };
2362
2362
  };
2363
2363
  };
2364
2364
  }
2365
- interface GetCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventResponsePayloadSchema> {
2365
+ interface GetConflictsForTimeRangeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeResponsePayloadSchema> {
2366
2366
  }
2367
2367
  }
2368
2368
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -4654,37 +4654,49 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4654
4654
  }
4655
4655
  }
4656
4656
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4657
- interface DidCreateCalendarEventEmitPayload {
4658
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
4657
+ interface GetSchedulesEmitPayload {
4658
+ 'startDateTimeMs': number;
4659
+ 'endDateTimeMs': number;
4660
+ 'personIds'?: string[] | undefined | null;
4659
4661
  }
4660
- interface DidCreateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
4661
- id: 'didCreateCalendarEventEmitPayload';
4662
+ interface GetSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
4663
+ id: 'getSchedulesEmitPayload';
4662
4664
  version: 'v2021_05_19';
4663
4665
  namespace: 'Calendar';
4664
4666
  name: '';
4665
4667
  fields: {
4666
4668
  /** . */
4667
- 'calendarEvent': {
4668
- type: 'schema';
4669
+ 'startDateTimeMs': {
4670
+ type: 'number';
4669
4671
  isRequired: true;
4670
- options: {
4671
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
4672
- };
4672
+ options: undefined;
4673
+ };
4674
+ /** . */
4675
+ 'endDateTimeMs': {
4676
+ type: 'number';
4677
+ isRequired: true;
4678
+ options: undefined;
4679
+ };
4680
+ /** . */
4681
+ 'personIds': {
4682
+ type: 'id';
4683
+ isArray: true;
4684
+ options: undefined;
4673
4685
  };
4674
4686
  };
4675
4687
  }
4676
- interface DidCreateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitPayloadSchema> {
4688
+ interface GetSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema> {
4677
4689
  }
4678
4690
  }
4679
4691
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4680
- interface DidCreateCalendarEventEmitTargetAndPayload {
4692
+ interface GetSchedulesEmitTargetAndPayload {
4681
4693
  /** Source. */
4682
4694
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4683
- 'target': SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTarget;
4684
- 'payload': SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitPayload;
4695
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTarget;
4696
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayload;
4685
4697
  }
4686
- interface DidCreateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4687
- id: 'didCreateCalendarEventEmitTargetAndPayload';
4698
+ interface GetSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4699
+ id: 'getSchedulesEmitTargetAndPayload';
4688
4700
  version: 'v2021_05_19';
4689
4701
  namespace: 'Calendar';
4690
4702
  name: '';
@@ -4702,7 +4714,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4702
4714
  type: 'schema';
4703
4715
  isRequired: true;
4704
4716
  options: {
4705
- schema: SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTargetSchema;
4717
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema;
4706
4718
  };
4707
4719
  };
4708
4720
  /** . */
@@ -4710,178 +4722,133 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4710
4722
  type: 'schema';
4711
4723
  isRequired: true;
4712
4724
  options: {
4713
- schema: SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitPayloadSchema;
4725
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema;
4714
4726
  };
4715
4727
  };
4716
4728
  };
4717
4729
  }
4718
- interface DidCreateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTargetAndPayloadSchema> {
4730
+ interface GetSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetAndPayloadSchema> {
4719
4731
  }
4720
4732
  }
4721
4733
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4722
- interface ListPeopleWithoutSchedulesEmitTarget {
4723
- 'locationId': string;
4734
+ interface CreateCalendarEventResponsePayload {
4735
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
4724
4736
  }
4725
- interface ListPeopleWithoutSchedulesEmitTargetSchema extends SpruceSchema.Schema {
4726
- id: 'listPeopleWithoutSchedulesEmitTarget';
4737
+ interface CreateCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
4738
+ id: 'createCalendarEventResponsePayload';
4727
4739
  version: 'v2021_05_19';
4728
4740
  namespace: 'Calendar';
4729
4741
  name: '';
4730
4742
  fields: {
4731
4743
  /** . */
4732
- 'locationId': {
4733
- type: 'id';
4744
+ 'calendarEvent': {
4745
+ type: 'schema';
4734
4746
  isRequired: true;
4735
- options: undefined;
4747
+ options: {
4748
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
4749
+ };
4736
4750
  };
4737
4751
  };
4738
4752
  }
4739
- interface ListPeopleWithoutSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema> {
4753
+ interface CreateCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventResponsePayloadSchema> {
4740
4754
  }
4741
4755
  }
4742
4756
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4743
- interface ListPeopleWithoutSchedulesEmitPayload {
4744
- 'calendarIds': string[];
4757
+ interface DidCreateCalendarEventEmitPayload {
4758
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
4745
4759
  }
4746
- interface ListPeopleWithoutSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
4747
- id: 'listPeopleWithoutSchedulesEmitPayload';
4760
+ interface DidCreateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
4761
+ id: 'didCreateCalendarEventEmitPayload';
4748
4762
  version: 'v2021_05_19';
4749
4763
  namespace: 'Calendar';
4750
4764
  name: '';
4751
4765
  fields: {
4752
4766
  /** . */
4753
- 'calendarIds': {
4754
- type: 'id';
4767
+ 'calendarEvent': {
4768
+ type: 'schema';
4755
4769
  isRequired: true;
4756
- isArray: true;
4757
- options: undefined;
4770
+ options: {
4771
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
4772
+ };
4758
4773
  };
4759
4774
  };
4760
4775
  }
4761
- interface ListPeopleWithoutSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema> {
4776
+ interface DidCreateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitPayloadSchema> {
4762
4777
  }
4763
4778
  }
4764
4779
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4765
- interface ListPeopleWithoutSchedulesEmitTargetAndPayload {
4766
- /** Source. */
4767
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4768
- 'target': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTarget;
4769
- 'payload': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayload;
4780
+ interface GetSchedulesResponsePayload {
4781
+ 'events': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
4770
4782
  }
4771
- interface ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4772
- id: 'listPeopleWithoutSchedulesEmitTargetAndPayload';
4783
+ interface GetSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
4784
+ id: 'getSchedulesResponsePayload';
4773
4785
  version: 'v2021_05_19';
4774
4786
  namespace: 'Calendar';
4775
4787
  name: '';
4776
4788
  fields: {
4777
- /** Source. */
4778
- 'source': {
4779
- label: 'Source';
4780
- type: 'schema';
4781
- options: {
4782
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
4783
- };
4784
- };
4785
- /** . */
4786
- 'target': {
4787
- type: 'schema';
4788
- isRequired: true;
4789
- options: {
4790
- schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema;
4791
- };
4792
- };
4793
4789
  /** . */
4794
- 'payload': {
4790
+ 'events': {
4795
4791
  type: 'schema';
4796
4792
  isRequired: true;
4793
+ isArray: true;
4794
+ minArrayLength: 0;
4797
4795
  options: {
4798
- schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema;
4796
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
4799
4797
  };
4800
4798
  };
4801
4799
  };
4802
4800
  }
4803
- interface ListPeopleWithoutSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema> {
4801
+ interface GetSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesResponsePayloadSchema> {
4804
4802
  }
4805
4803
  }
4806
4804
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4807
- interface PersonWithoutSchedule {
4808
- /** Id. */
4809
- 'id': string;
4810
- /** Casual name. The name you can use when talking to this person. */
4811
- 'casualName': string;
4812
- /** Avatar src. */
4813
- 'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
4805
+ interface GetSchedulesEmitTarget {
4806
+ 'organizationId'?: string | undefined | null;
4807
+ 'locationId'?: string | undefined | null;
4808
+ 'calendarIds': string[];
4814
4809
  }
4815
- interface PersonWithoutScheduleSchema extends SpruceSchema.Schema {
4816
- id: 'person-without-schedule';
4810
+ interface GetSchedulesEmitTargetSchema extends SpruceSchema.Schema {
4811
+ id: 'getSchedulesEmitTarget';
4817
4812
  version: 'v2021_05_19';
4818
4813
  namespace: 'Calendar';
4819
4814
  name: '';
4820
4815
  fields: {
4821
- /** Id. */
4822
- 'id': {
4823
- label: 'Id';
4816
+ /** . */
4817
+ 'organizationId': {
4824
4818
  type: 'id';
4825
- isRequired: true;
4826
4819
  options: undefined;
4827
4820
  };
4828
- /** Casual name. The name you can use when talking to this person. */
4829
- 'casualName': {
4830
- label: 'Casual name';
4831
- type: 'text';
4832
- isRequired: true;
4833
- hint: 'The name you can use when talking to this person.';
4821
+ /** . */
4822
+ 'locationId': {
4823
+ type: 'id';
4834
4824
  options: undefined;
4835
4825
  };
4836
- /** Avatar src. */
4837
- 'avatar': {
4838
- label: 'Avatar src';
4839
- type: 'image';
4840
- options: {
4841
- requiredSizes: ["*"];
4842
- };
4843
- };
4844
- };
4845
- }
4846
- interface PersonWithoutScheduleEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema> {
4847
- }
4848
- }
4849
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4850
- interface ListPeopleWithoutSchedulesResponsePayload {
4851
- 'people': SpruceSchemas.Calendar.v2021_05_19.PersonWithoutSchedule[];
4852
- }
4853
- interface ListPeopleWithoutSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
4854
- id: 'listPeopleWithoutSchedulesResponsePayload';
4855
- version: 'v2021_05_19';
4856
- namespace: 'Calendar';
4857
- name: '';
4858
- fields: {
4859
4826
  /** . */
4860
- 'people': {
4861
- type: 'schema';
4827
+ 'calendarIds': {
4828
+ type: 'id';
4862
4829
  isRequired: true;
4863
4830
  isArray: true;
4864
- minArrayLength: 0;
4865
- options: {
4866
- schema: SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema;
4867
- };
4831
+ options: undefined;
4868
4832
  };
4869
4833
  };
4870
4834
  }
4871
- interface ListPeopleWithoutSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesResponsePayloadSchema> {
4835
+ interface GetSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema> {
4872
4836
  }
4873
4837
  }
4874
4838
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4875
- interface GetSchedulesEmitPayload {
4839
+ interface SendSchedulesEmitPayload {
4876
4840
  'startDateTimeMs': number;
4877
4841
  'endDateTimeMs': number;
4878
4842
  'personIds'?: string[] | undefined | null;
4843
+ 'chunkingId': string;
4844
+ 'sendToFqen': (EventName);
4879
4845
  }
4880
- interface GetSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
4881
- id: 'getSchedulesEmitPayload';
4846
+ interface SendSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
4847
+ id: 'sendSchedulesEmitPayload';
4882
4848
  version: 'v2021_05_19';
4883
4849
  namespace: 'Calendar';
4884
4850
  name: '';
4851
+ importsWhenRemote: ['import { EventName } from \'@sprucelabs/mercury-types\''];
4885
4852
  fields: {
4886
4853
  /** . */
4887
4854
  'startDateTimeMs': {
@@ -4901,58 +4868,98 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4901
4868
  isArray: true;
4902
4869
  options: undefined;
4903
4870
  };
4871
+ /** . */
4872
+ 'chunkingId': {
4873
+ type: 'id';
4874
+ isRequired: true;
4875
+ options: undefined;
4876
+ };
4877
+ /** . */
4878
+ 'sendToFqen': {
4879
+ type: 'raw';
4880
+ isRequired: true;
4881
+ options: {
4882
+ valueType: `EventName`;
4883
+ };
4884
+ };
4904
4885
  };
4905
4886
  }
4906
- interface GetSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema> {
4887
+ interface SendSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitPayloadSchema> {
4907
4888
  }
4908
4889
  }
4909
4890
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4910
- interface GetSchedulesResponsePayload {
4911
- 'events': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
4891
+ interface SendSchedulesEmitTargetAndPayload {
4892
+ /** Source. */
4893
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4894
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTarget;
4895
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitPayload;
4912
4896
  }
4913
- interface GetSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
4914
- id: 'getSchedulesResponsePayload';
4897
+ interface SendSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4898
+ id: 'sendSchedulesEmitTargetAndPayload';
4915
4899
  version: 'v2021_05_19';
4916
4900
  namespace: 'Calendar';
4917
4901
  name: '';
4918
4902
  fields: {
4903
+ /** Source. */
4904
+ 'source': {
4905
+ label: 'Source';
4906
+ type: 'schema';
4907
+ options: {
4908
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
4909
+ };
4910
+ };
4919
4911
  /** . */
4920
- 'events': {
4912
+ 'target': {
4921
4913
  type: 'schema';
4922
4914
  isRequired: true;
4923
- isArray: true;
4924
- minArrayLength: 0;
4925
4915
  options: {
4926
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
4916
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema;
4917
+ };
4918
+ };
4919
+ /** . */
4920
+ 'payload': {
4921
+ type: 'schema';
4922
+ isRequired: true;
4923
+ options: {
4924
+ schema: SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitPayloadSchema;
4927
4925
  };
4928
4926
  };
4929
4927
  };
4930
4928
  }
4931
- interface GetSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesResponsePayloadSchema> {
4929
+ interface SendSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitTargetAndPayloadSchema> {
4932
4930
  }
4933
4931
  }
4934
4932
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4935
- interface GetSchedulesEmitTarget {
4936
- 'organizationId'?: string | undefined | null;
4937
- 'locationId'?: string | undefined | null;
4938
- 'calendarIds': string[];
4933
+ interface ListPeopleWithoutSchedulesEmitTarget {
4934
+ 'locationId': string;
4939
4935
  }
4940
- interface GetSchedulesEmitTargetSchema extends SpruceSchema.Schema {
4941
- id: 'getSchedulesEmitTarget';
4936
+ interface ListPeopleWithoutSchedulesEmitTargetSchema extends SpruceSchema.Schema {
4937
+ id: 'listPeopleWithoutSchedulesEmitTarget';
4942
4938
  version: 'v2021_05_19';
4943
4939
  namespace: 'Calendar';
4944
4940
  name: '';
4945
4941
  fields: {
4946
- /** . */
4947
- 'organizationId': {
4948
- type: 'id';
4949
- options: undefined;
4950
- };
4951
4942
  /** . */
4952
4943
  'locationId': {
4953
4944
  type: 'id';
4945
+ isRequired: true;
4954
4946
  options: undefined;
4955
4947
  };
4948
+ };
4949
+ }
4950
+ interface ListPeopleWithoutSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema> {
4951
+ }
4952
+ }
4953
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4954
+ interface ListPeopleWithoutSchedulesEmitPayload {
4955
+ 'calendarIds': string[];
4956
+ }
4957
+ interface ListPeopleWithoutSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
4958
+ id: 'listPeopleWithoutSchedulesEmitPayload';
4959
+ version: 'v2021_05_19';
4960
+ namespace: 'Calendar';
4961
+ name: '';
4962
+ fields: {
4956
4963
  /** . */
4957
4964
  'calendarIds': {
4958
4965
  type: 'id';
@@ -4962,18 +4969,18 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4962
4969
  };
4963
4970
  };
4964
4971
  }
4965
- interface GetSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema> {
4972
+ interface ListPeopleWithoutSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema> {
4966
4973
  }
4967
4974
  }
4968
4975
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4969
- interface GetSchedulesEmitTargetAndPayload {
4976
+ interface ListPeopleWithoutSchedulesEmitTargetAndPayload {
4970
4977
  /** Source. */
4971
4978
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4972
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTarget;
4973
- 'payload': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayload;
4979
+ 'target': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTarget;
4980
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayload;
4974
4981
  }
4975
- interface GetSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4976
- id: 'getSchedulesEmitTargetAndPayload';
4982
+ interface ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4983
+ id: 'listPeopleWithoutSchedulesEmitTargetAndPayload';
4977
4984
  version: 'v2021_05_19';
4978
4985
  namespace: 'Calendar';
4979
4986
  name: '';
@@ -4991,7 +4998,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4991
4998
  type: 'schema';
4992
4999
  isRequired: true;
4993
5000
  options: {
4994
- schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema;
5001
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema;
4995
5002
  };
4996
5003
  };
4997
5004
  /** . */
@@ -4999,106 +5006,80 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4999
5006
  type: 'schema';
5000
5007
  isRequired: true;
5001
5008
  options: {
5002
- schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema;
5009
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema;
5003
5010
  };
5004
5011
  };
5005
5012
  };
5006
5013
  }
5007
- interface GetSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetAndPayloadSchema> {
5014
+ interface ListPeopleWithoutSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema> {
5008
5015
  }
5009
5016
  }
5010
5017
  namespace SpruceSchemas.Calendar.v2021_05_19 {
5011
- interface SendSchedulesEmitPayload {
5012
- 'startDateTimeMs': number;
5013
- 'endDateTimeMs': number;
5014
- 'personIds'?: string[] | undefined | null;
5015
- 'chunkingId': string;
5016
- 'sendToFqen': (EventName);
5018
+ interface PersonWithoutSchedule {
5019
+ /** Id. */
5020
+ 'id': string;
5021
+ /** Casual name. The name you can use when talking to this person. */
5022
+ 'casualName': string;
5023
+ /** Avatar src. */
5024
+ 'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
5017
5025
  }
5018
- interface SendSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
5019
- id: 'sendSchedulesEmitPayload';
5026
+ interface PersonWithoutScheduleSchema extends SpruceSchema.Schema {
5027
+ id: 'person-without-schedule';
5020
5028
  version: 'v2021_05_19';
5021
5029
  namespace: 'Calendar';
5022
5030
  name: '';
5023
- importsWhenRemote: ['import { EventName } from \'@sprucelabs/mercury-types\''];
5024
5031
  fields: {
5025
- /** . */
5026
- 'startDateTimeMs': {
5027
- type: 'number';
5028
- isRequired: true;
5029
- options: undefined;
5030
- };
5031
- /** . */
5032
- 'endDateTimeMs': {
5033
- type: 'number';
5034
- isRequired: true;
5035
- options: undefined;
5036
- };
5037
- /** . */
5038
- 'personIds': {
5032
+ /** Id. */
5033
+ 'id': {
5034
+ label: 'Id';
5039
5035
  type: 'id';
5040
- isArray: true;
5036
+ isRequired: true;
5041
5037
  options: undefined;
5042
5038
  };
5043
- /** . */
5044
- 'chunkingId': {
5045
- type: 'id';
5039
+ /** Casual name. The name you can use when talking to this person. */
5040
+ 'casualName': {
5041
+ label: 'Casual name';
5042
+ type: 'text';
5046
5043
  isRequired: true;
5044
+ hint: 'The name you can use when talking to this person.';
5047
5045
  options: undefined;
5048
5046
  };
5049
- /** . */
5050
- 'sendToFqen': {
5051
- type: 'raw';
5052
- isRequired: true;
5047
+ /** Avatar src. */
5048
+ 'avatar': {
5049
+ label: 'Avatar src';
5050
+ type: 'image';
5053
5051
  options: {
5054
- valueType: `EventName`;
5052
+ requiredSizes: ["*"];
5055
5053
  };
5056
5054
  };
5057
5055
  };
5058
5056
  }
5059
- interface SendSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitPayloadSchema> {
5057
+ interface PersonWithoutScheduleEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema> {
5060
5058
  }
5061
5059
  }
5062
5060
  namespace SpruceSchemas.Calendar.v2021_05_19 {
5063
- interface SendSchedulesEmitTargetAndPayload {
5064
- /** Source. */
5065
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
5066
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTarget;
5067
- 'payload': SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitPayload;
5061
+ interface ListPeopleWithoutSchedulesResponsePayload {
5062
+ 'people': SpruceSchemas.Calendar.v2021_05_19.PersonWithoutSchedule[];
5068
5063
  }
5069
- interface SendSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
5070
- id: 'sendSchedulesEmitTargetAndPayload';
5064
+ interface ListPeopleWithoutSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
5065
+ id: 'listPeopleWithoutSchedulesResponsePayload';
5071
5066
  version: 'v2021_05_19';
5072
5067
  namespace: 'Calendar';
5073
5068
  name: '';
5074
5069
  fields: {
5075
- /** Source. */
5076
- 'source': {
5077
- label: 'Source';
5078
- type: 'schema';
5079
- options: {
5080
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
5081
- };
5082
- };
5083
- /** . */
5084
- 'target': {
5085
- type: 'schema';
5086
- isRequired: true;
5087
- options: {
5088
- schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema;
5089
- };
5090
- };
5091
5070
  /** . */
5092
- 'payload': {
5071
+ 'people': {
5093
5072
  type: 'schema';
5094
5073
  isRequired: true;
5074
+ isArray: true;
5075
+ minArrayLength: 0;
5095
5076
  options: {
5096
- schema: SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitPayloadSchema;
5077
+ schema: SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema;
5097
5078
  };
5098
5079
  };
5099
5080
  };
5100
5081
  }
5101
- interface SendSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitTargetAndPayloadSchema> {
5082
+ interface ListPeopleWithoutSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesResponsePayloadSchema> {
5102
5083
  }
5103
5084
  }
5104
5085
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -5128,26 +5109,45 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
5128
5109
  }
5129
5110
  }
5130
5111
  namespace SpruceSchemas.Calendar.v2021_05_19 {
5131
- interface CreateCalendarEventResponsePayload {
5132
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
5112
+ interface DidCreateCalendarEventEmitTargetAndPayload {
5113
+ /** Source. */
5114
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
5115
+ 'target': SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTarget;
5116
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitPayload;
5133
5117
  }
5134
- interface CreateCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
5135
- id: 'createCalendarEventResponsePayload';
5118
+ interface DidCreateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
5119
+ id: 'didCreateCalendarEventEmitTargetAndPayload';
5136
5120
  version: 'v2021_05_19';
5137
5121
  namespace: 'Calendar';
5138
5122
  name: '';
5139
5123
  fields: {
5124
+ /** Source. */
5125
+ 'source': {
5126
+ label: 'Source';
5127
+ type: 'schema';
5128
+ options: {
5129
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
5130
+ };
5131
+ };
5140
5132
  /** . */
5141
- 'calendarEvent': {
5133
+ 'target': {
5142
5134
  type: 'schema';
5143
5135
  isRequired: true;
5144
5136
  options: {
5145
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
5137
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTargetSchema;
5138
+ };
5139
+ };
5140
+ /** . */
5141
+ 'payload': {
5142
+ type: 'schema';
5143
+ isRequired: true;
5144
+ options: {
5145
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitPayloadSchema;
5146
5146
  };
5147
5147
  };
5148
5148
  };
5149
5149
  }
5150
- interface CreateCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventResponsePayloadSchema> {
5150
+ interface DidCreateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTargetAndPayloadSchema> {
5151
5151
  }
5152
5152
  }
5153
5153
  namespace SpruceSchemas.Calendar.v2021_05_19 {