@sprucelabs/spruce-calendar-components 25.5.2 → 25.5.4

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.
@@ -960,6 +960,87 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
960
960
  interface CreateCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarResponsePayloadSchema> {
961
961
  }
962
962
  }
963
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
964
+ interface DeleteCalendarEmitTarget {
965
+ 'organizationId': string;
966
+ 'calendarId': string;
967
+ }
968
+ interface DeleteCalendarEmitTargetSchema extends SpruceSchema.Schema {
969
+ id: 'deleteCalendarEmitTarget';
970
+ version: 'v2021_05_19';
971
+ namespace: 'Calendar';
972
+ name: '';
973
+ fields: {
974
+ /** . */
975
+ 'organizationId': {
976
+ type: 'id';
977
+ isRequired: true;
978
+ options: undefined;
979
+ };
980
+ /** . */
981
+ 'calendarId': {
982
+ type: 'id';
983
+ isRequired: true;
984
+ options: undefined;
985
+ };
986
+ };
987
+ }
988
+ interface DeleteCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema> {
989
+ }
990
+ }
991
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
992
+ interface DeleteCalendarEmitTargetAndPayload {
993
+ /** Source. */
994
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
995
+ 'target': SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTarget;
996
+ }
997
+ interface DeleteCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
998
+ id: 'deleteCalendarEmitTargetAndPayload';
999
+ version: 'v2021_05_19';
1000
+ namespace: 'Calendar';
1001
+ name: '';
1002
+ fields: {
1003
+ /** Source. */
1004
+ 'source': {
1005
+ label: 'Source';
1006
+ type: 'schema';
1007
+ options: {
1008
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1009
+ };
1010
+ };
1011
+ /** . */
1012
+ 'target': {
1013
+ type: 'schema';
1014
+ isRequired: true;
1015
+ options: {
1016
+ schema: SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema;
1017
+ };
1018
+ };
1019
+ };
1020
+ }
1021
+ interface DeleteCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetAndPayloadSchema> {
1022
+ }
1023
+ }
1024
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1025
+ interface DeleteCalendarResponsePayload {
1026
+ 'totalDeleted'?: number | undefined | null;
1027
+ }
1028
+ interface DeleteCalendarResponsePayloadSchema extends SpruceSchema.Schema {
1029
+ id: 'deleteCalendarResponsePayload';
1030
+ version: 'v2021_05_19';
1031
+ namespace: 'Calendar';
1032
+ name: '';
1033
+ fields: {
1034
+ /** . */
1035
+ 'totalDeleted': {
1036
+ type: 'number';
1037
+ options: undefined;
1038
+ };
1039
+ };
1040
+ }
1041
+ interface DeleteCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarResponsePayloadSchema> {
1042
+ }
1043
+ }
963
1044
  namespace SpruceSchemas.Calendar.v2021_05_19 {
964
1045
  interface CreateCalendarEventTypeEmitPayload {
965
1046
  'name': string;
@@ -1470,41 +1551,83 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1470
1551
  }
1471
1552
  }
1472
1553
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1473
- interface DeleteCalendarEmitTarget {
1474
- 'organizationId': string;
1475
- 'calendarId': string;
1554
+ interface DidCancelCalendarEventEmitTarget {
1555
+ 'locationId': string;
1556
+ 'calendarEventId': string;
1476
1557
  }
1477
- interface DeleteCalendarEmitTargetSchema extends SpruceSchema.Schema {
1478
- id: 'deleteCalendarEmitTarget';
1558
+ interface DidCancelCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
1559
+ id: 'didCancelCalendarEventEmitTarget';
1479
1560
  version: 'v2021_05_19';
1480
1561
  namespace: 'Calendar';
1481
1562
  name: '';
1482
1563
  fields: {
1483
1564
  /** . */
1484
- 'organizationId': {
1565
+ 'locationId': {
1485
1566
  type: 'id';
1486
1567
  isRequired: true;
1487
1568
  options: undefined;
1488
1569
  };
1489
1570
  /** . */
1490
- 'calendarId': {
1571
+ 'calendarEventId': {
1491
1572
  type: 'id';
1492
1573
  isRequired: true;
1493
1574
  options: undefined;
1494
1575
  };
1495
1576
  };
1496
1577
  }
1497
- interface DeleteCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema> {
1578
+ interface DidCancelCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetSchema> {
1498
1579
  }
1499
1580
  }
1500
1581
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1501
- interface DeleteCalendarEmitTargetAndPayload {
1582
+ interface DidCancelCalendarEventEmitPayload {
1583
+ 'cancelStrategy': ("only-this-one" | "all-going-forward" | "all");
1584
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
1585
+ }
1586
+ interface DidCancelCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
1587
+ id: 'didCancelCalendarEventEmitPayload';
1588
+ version: 'v2021_05_19';
1589
+ namespace: 'Calendar';
1590
+ name: '';
1591
+ fields: {
1592
+ /** . */
1593
+ 'cancelStrategy': {
1594
+ type: 'select';
1595
+ isRequired: true;
1596
+ options: {
1597
+ choices: [{
1598
+ "value": "only-this-one";
1599
+ "label": "Specific dates";
1600
+ }, {
1601
+ "value": "all-going-forward";
1602
+ "label": "This and all going forward";
1603
+ }, {
1604
+ "value": "all";
1605
+ "label": "All";
1606
+ }];
1607
+ };
1608
+ };
1609
+ /** . */
1610
+ 'calendarEvent': {
1611
+ type: 'schema';
1612
+ isRequired: true;
1613
+ options: {
1614
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1615
+ };
1616
+ };
1617
+ };
1618
+ }
1619
+ interface DidCancelCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema> {
1620
+ }
1621
+ }
1622
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1623
+ interface DidCancelCalendarEventEmitTargetAndPayload {
1502
1624
  /** Source. */
1503
1625
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1504
- 'target': SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTarget;
1626
+ 'target': SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTarget;
1627
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayload;
1505
1628
  }
1506
- interface DeleteCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1507
- id: 'deleteCalendarEmitTargetAndPayload';
1629
+ interface DidCancelCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1630
+ id: 'didCancelCalendarEventEmitTargetAndPayload';
1508
1631
  version: 'v2021_05_19';
1509
1632
  namespace: 'Calendar';
1510
1633
  name: '';
@@ -1522,276 +1645,116 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1522
1645
  type: 'schema';
1523
1646
  isRequired: true;
1524
1647
  options: {
1525
- schema: SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetSchema;
1648
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetSchema;
1649
+ };
1650
+ };
1651
+ /** . */
1652
+ 'payload': {
1653
+ type: 'schema';
1654
+ isRequired: true;
1655
+ options: {
1656
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema;
1526
1657
  };
1527
1658
  };
1528
1659
  };
1529
1660
  }
1530
- interface DeleteCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarEmitTargetAndPayloadSchema> {
1661
+ interface DidCancelCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetAndPayloadSchema> {
1531
1662
  }
1532
1663
  }
1533
1664
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1534
- interface DeleteCalendarResponsePayload {
1535
- 'totalDeleted'?: number | undefined | null;
1665
+ interface DidUpdateCalendarEventEmitTarget {
1666
+ 'locationId': string;
1536
1667
  }
1537
- interface DeleteCalendarResponsePayloadSchema extends SpruceSchema.Schema {
1538
- id: 'deleteCalendarResponsePayload';
1668
+ interface DidUpdateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
1669
+ id: 'didUpdateCalendarEventEmitTarget';
1539
1670
  version: 'v2021_05_19';
1540
1671
  namespace: 'Calendar';
1541
1672
  name: '';
1542
1673
  fields: {
1543
1674
  /** . */
1544
- 'totalDeleted': {
1545
- type: 'number';
1675
+ 'locationId': {
1676
+ type: 'id';
1677
+ isRequired: true;
1546
1678
  options: undefined;
1547
1679
  };
1548
1680
  };
1549
1681
  }
1550
- interface DeleteCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DeleteCalendarResponsePayloadSchema> {
1682
+ interface DidUpdateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetSchema> {
1551
1683
  }
1552
1684
  }
1553
1685
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1554
- interface GetAvailableTimeSlotsEmitTarget {
1555
- 'organizationId'?: string | undefined | null;
1556
- 'locationId'?: string | undefined | null;
1557
- 'calendarIds': string[];
1686
+ interface DidUpdateCalendarEventEmitPayload {
1687
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
1558
1688
  }
1559
- interface GetAvailableTimeSlotsEmitTargetSchema extends SpruceSchema.Schema {
1560
- id: 'getAvailableTimeSlotsEmitTarget';
1689
+ interface DidUpdateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
1690
+ id: 'didUpdateCalendarEventEmitPayload';
1561
1691
  version: 'v2021_05_19';
1562
1692
  namespace: 'Calendar';
1563
1693
  name: '';
1564
1694
  fields: {
1565
1695
  /** . */
1566
- 'organizationId': {
1567
- type: 'id';
1568
- options: undefined;
1569
- };
1570
- /** . */
1571
- 'locationId': {
1572
- type: 'id';
1573
- options: undefined;
1574
- };
1575
- /** . */
1576
- 'calendarIds': {
1577
- type: 'id';
1696
+ 'calendarEvent': {
1697
+ type: 'schema';
1578
1698
  isRequired: true;
1579
- isArray: true;
1580
- options: undefined;
1699
+ options: {
1700
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1701
+ };
1581
1702
  };
1582
1703
  };
1583
1704
  }
1584
- interface GetAvailableTimeSlotsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema> {
1705
+ interface DidUpdateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayloadSchema> {
1585
1706
  }
1586
1707
  }
1587
1708
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1588
- interface Teammates {
1589
- 'personId': string;
1590
- 'durationMinutes': number;
1709
+ interface DidUpdateCalendarEventEmitTargetAndPayload {
1710
+ /** Source. */
1711
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1712
+ 'target': SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTarget;
1713
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayload;
1591
1714
  }
1592
- interface TeammatesSchema extends SpruceSchema.Schema {
1593
- id: 'teammates';
1715
+ interface DidUpdateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1716
+ id: 'didUpdateCalendarEventEmitTargetAndPayload';
1594
1717
  version: 'v2021_05_19';
1595
1718
  namespace: 'Calendar';
1596
1719
  name: '';
1597
1720
  fields: {
1721
+ /** Source. */
1722
+ 'source': {
1723
+ label: 'Source';
1724
+ type: 'schema';
1725
+ options: {
1726
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1727
+ };
1728
+ };
1598
1729
  /** . */
1599
- 'personId': {
1600
- type: 'id';
1730
+ 'target': {
1731
+ type: 'schema';
1601
1732
  isRequired: true;
1602
- options: undefined;
1733
+ options: {
1734
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetSchema;
1735
+ };
1603
1736
  };
1604
1737
  /** . */
1605
- 'durationMinutes': {
1606
- type: 'number';
1738
+ 'payload': {
1739
+ type: 'schema';
1607
1740
  isRequired: true;
1608
- options: undefined;
1741
+ options: {
1742
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayloadSchema;
1743
+ };
1609
1744
  };
1610
1745
  };
1611
1746
  }
1612
- interface TeammatesEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema> {
1747
+ interface DidUpdateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetAndPayloadSchema> {
1613
1748
  }
1614
1749
  }
1615
1750
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1616
- interface GetAvailableTimeSlotsEmitPayload {
1617
- 'startDateTimeMs': number;
1618
- 'endDateTimeMs': number;
1619
- 'calculationMode': ("intersect" | "contiguous");
1620
- 'teammates': SpruceSchemas.Calendar.v2021_05_19.Teammates[];
1751
+ interface GetCalendarEmitTarget {
1752
+ 'organizationId': string;
1753
+ 'slug'?: string | undefined | null;
1754
+ 'calendarId'?: string | undefined | null;
1621
1755
  }
1622
- interface GetAvailableTimeSlotsEmitPayloadSchema extends SpruceSchema.Schema {
1623
- id: 'getAvailableTimeSlotsEmitPayload';
1624
- version: 'v2021_05_19';
1625
- namespace: 'Calendar';
1626
- name: '';
1627
- fields: {
1628
- /** . */
1629
- 'startDateTimeMs': {
1630
- type: 'number';
1631
- isRequired: true;
1632
- options: undefined;
1633
- };
1634
- /** . */
1635
- 'endDateTimeMs': {
1636
- type: 'number';
1637
- isRequired: true;
1638
- options: undefined;
1639
- };
1640
- /** . */
1641
- 'calculationMode': {
1642
- type: 'select';
1643
- isRequired: true;
1644
- options: {
1645
- choices: [{
1646
- "value": "intersect";
1647
- "label": "Intersect";
1648
- }, {
1649
- "value": "contiguous";
1650
- "label": "Contiguous";
1651
- }];
1652
- };
1653
- };
1654
- /** . */
1655
- 'teammates': {
1656
- type: 'schema';
1657
- isRequired: true;
1658
- isArray: true;
1659
- options: {
1660
- schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema;
1661
- };
1662
- };
1663
- };
1664
- }
1665
- interface GetAvailableTimeSlotsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema> {
1666
- }
1667
- }
1668
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1669
- interface GetAvailableTimeSlotsEmitTargetAndPayload {
1670
- /** Source. */
1671
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1672
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTarget;
1673
- 'payload': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayload;
1674
- }
1675
- interface GetAvailableTimeSlotsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1676
- id: 'getAvailableTimeSlotsEmitTargetAndPayload';
1677
- version: 'v2021_05_19';
1678
- namespace: 'Calendar';
1679
- name: '';
1680
- fields: {
1681
- /** Source. */
1682
- 'source': {
1683
- label: 'Source';
1684
- type: 'schema';
1685
- options: {
1686
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1687
- };
1688
- };
1689
- /** . */
1690
- 'target': {
1691
- type: 'schema';
1692
- isRequired: true;
1693
- options: {
1694
- schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema;
1695
- };
1696
- };
1697
- /** . */
1698
- 'payload': {
1699
- type: 'schema';
1700
- isRequired: true;
1701
- options: {
1702
- schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema;
1703
- };
1704
- };
1705
- };
1706
- }
1707
- interface GetAvailableTimeSlotsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetAndPayloadSchema> {
1708
- }
1709
- }
1710
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1711
- interface TeammatesTimeslots {
1712
- 'personId': string;
1713
- 'startDateTimeMs': number;
1714
- }
1715
- interface TeammatesTimeslotsSchema extends SpruceSchema.Schema {
1716
- id: 'teammatesTimeslots';
1717
- version: 'v2021_05_19';
1718
- namespace: 'Calendar';
1719
- name: '';
1720
- fields: {
1721
- /** . */
1722
- 'personId': {
1723
- type: 'id';
1724
- isRequired: true;
1725
- options: undefined;
1726
- };
1727
- /** . */
1728
- 'startDateTimeMs': {
1729
- type: 'number';
1730
- isRequired: true;
1731
- options: undefined;
1732
- };
1733
- };
1734
- }
1735
- interface TeammatesTimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema> {
1736
- }
1737
- }
1738
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1739
- interface Timeslots {
1740
- 'slots': SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslots[];
1741
- }
1742
- interface TimeslotsSchema extends SpruceSchema.Schema {
1743
- id: 'timeslots';
1744
- version: 'v2021_05_19';
1745
- namespace: 'Calendar';
1746
- name: '';
1747
- fields: {
1748
- /** . */
1749
- 'slots': {
1750
- type: 'schema';
1751
- isRequired: true;
1752
- isArray: true;
1753
- options: {
1754
- schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema;
1755
- };
1756
- };
1757
- };
1758
- }
1759
- interface TimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema> {
1760
- }
1761
- }
1762
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1763
- interface GetAvailableTimeSlotsResponsePayload {
1764
- 'times': SpruceSchemas.Calendar.v2021_05_19.Timeslots[];
1765
- }
1766
- interface GetAvailableTimeSlotsResponsePayloadSchema extends SpruceSchema.Schema {
1767
- id: 'getAvailableTimeSlotsResponsePayload';
1768
- version: 'v2021_05_19';
1769
- namespace: 'Calendar';
1770
- name: '';
1771
- fields: {
1772
- /** . */
1773
- 'times': {
1774
- type: 'schema';
1775
- isRequired: true;
1776
- isArray: true;
1777
- minArrayLength: 0;
1778
- options: {
1779
- schema: SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema;
1780
- };
1781
- };
1782
- };
1783
- }
1784
- interface GetAvailableTimeSlotsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsResponsePayloadSchema> {
1785
- }
1786
- }
1787
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1788
- interface GetCalendarEmitTarget {
1789
- 'organizationId': string;
1790
- 'slug'?: string | undefined | null;
1791
- 'calendarId'?: string | undefined | null;
1792
- }
1793
- interface GetCalendarEmitTargetSchema extends SpruceSchema.Schema {
1794
- id: 'getCalendarEmitTarget';
1756
+ interface GetCalendarEmitTargetSchema extends SpruceSchema.Schema {
1757
+ id: 'getCalendarEmitTarget';
1795
1758
  version: 'v2021_05_19';
1796
1759
  namespace: 'Calendar';
1797
1760
  name: '';
@@ -1934,45 +1897,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1934
1897
  interface GetCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetAndPayloadSchema> {
1935
1898
  }
1936
1899
  }
1937
- namespace SpruceSchemas.Calendar.v2021_05_19 {
1938
- interface GetConflictsForTimeRangeResponsePayload {
1939
- 'isAvailable': boolean;
1940
- 'excludedBy'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
1941
- 'overlapsWith'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
1942
- }
1943
- interface GetConflictsForTimeRangeResponsePayloadSchema extends SpruceSchema.Schema {
1944
- id: 'getConflictsForTimeRangeResponsePayload';
1945
- version: 'v2021_05_19';
1946
- namespace: 'Calendar';
1947
- name: '';
1948
- fields: {
1949
- /** . */
1950
- 'isAvailable': {
1951
- type: 'boolean';
1952
- isRequired: true;
1953
- options: undefined;
1954
- };
1955
- /** . */
1956
- 'excludedBy': {
1957
- type: 'schema';
1958
- isArray: true;
1959
- options: {
1960
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1961
- };
1962
- };
1963
- /** . */
1964
- 'overlapsWith': {
1965
- type: 'schema';
1966
- isArray: true;
1967
- options: {
1968
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1969
- };
1970
- };
1971
- };
1972
- }
1973
- interface GetConflictsForTimeRangeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeResponsePayloadSchema> {
1974
- }
1975
- }
1976
1900
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1977
1901
  interface GetCalendarEventResponsePayload {
1978
1902
  'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
@@ -1997,12 +1921,13 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1997
1921
  }
1998
1922
  }
1999
1923
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2000
- interface GetConflictsForTimeRangeEmitTarget {
2001
- 'organizationId': string;
1924
+ interface GetAvailableTimeSlotsEmitTarget {
1925
+ 'organizationId'?: string | undefined | null;
1926
+ 'locationId'?: string | undefined | null;
2002
1927
  'calendarIds': string[];
2003
1928
  }
2004
- interface GetConflictsForTimeRangeEmitTargetSchema extends SpruceSchema.Schema {
2005
- id: 'getConflictsForTimeRangeEmitTarget';
1929
+ interface GetAvailableTimeSlotsEmitTargetSchema extends SpruceSchema.Schema {
1930
+ id: 'getAvailableTimeSlotsEmitTarget';
2006
1931
  version: 'v2021_05_19';
2007
1932
  namespace: 'Calendar';
2008
1933
  name: '';
@@ -2010,7 +1935,11 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2010
1935
  /** . */
2011
1936
  'organizationId': {
2012
1937
  type: 'id';
2013
- isRequired: true;
1938
+ options: undefined;
1939
+ };
1940
+ /** . */
1941
+ 'locationId': {
1942
+ type: 'id';
2014
1943
  options: undefined;
2015
1944
  };
2016
1945
  /** . */
@@ -2022,58 +1951,139 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2022
1951
  };
2023
1952
  };
2024
1953
  }
2025
- interface GetConflictsForTimeRangeEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema> {
1954
+ interface GetAvailableTimeSlotsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema> {
2026
1955
  }
2027
1956
  }
2028
1957
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2029
- interface GetConflictsForTimeRangeEmitTargetAndPayload {
2030
- /** Source. */
2031
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2032
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTarget;
2033
- 'payload': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayload;
1958
+ interface Teammates {
1959
+ 'personId': string;
1960
+ 'durationMinutes': number;
2034
1961
  }
2035
- interface GetConflictsForTimeRangeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2036
- id: 'getConflictsForTimeRangeEmitTargetAndPayload';
1962
+ interface TeammatesSchema extends SpruceSchema.Schema {
1963
+ id: 'teammates';
2037
1964
  version: 'v2021_05_19';
2038
1965
  namespace: 'Calendar';
2039
1966
  name: '';
2040
1967
  fields: {
2041
- /** Source. */
2042
- 'source': {
2043
- label: 'Source';
2044
- type: 'schema';
2045
- options: {
2046
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2047
- };
2048
- };
2049
1968
  /** . */
2050
- 'target': {
2051
- type: 'schema';
1969
+ 'personId': {
1970
+ type: 'id';
2052
1971
  isRequired: true;
2053
- options: {
2054
- schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema;
2055
- };
1972
+ options: undefined;
2056
1973
  };
2057
1974
  /** . */
2058
- 'payload': {
1975
+ 'durationMinutes': {
1976
+ type: 'number';
1977
+ isRequired: true;
1978
+ options: undefined;
1979
+ };
1980
+ };
1981
+ }
1982
+ interface TeammatesEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema> {
1983
+ }
1984
+ }
1985
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1986
+ interface GetAvailableTimeSlotsEmitPayload {
1987
+ 'startDateTimeMs': number;
1988
+ 'endDateTimeMs': number;
1989
+ 'calculationMode': ("intersect" | "contiguous");
1990
+ 'teammates': SpruceSchemas.Calendar.v2021_05_19.Teammates[];
1991
+ }
1992
+ interface GetAvailableTimeSlotsEmitPayloadSchema extends SpruceSchema.Schema {
1993
+ id: 'getAvailableTimeSlotsEmitPayload';
1994
+ version: 'v2021_05_19';
1995
+ namespace: 'Calendar';
1996
+ name: '';
1997
+ fields: {
1998
+ /** . */
1999
+ 'startDateTimeMs': {
2000
+ type: 'number';
2001
+ isRequired: true;
2002
+ options: undefined;
2003
+ };
2004
+ /** . */
2005
+ 'endDateTimeMs': {
2006
+ type: 'number';
2007
+ isRequired: true;
2008
+ options: undefined;
2009
+ };
2010
+ /** . */
2011
+ 'calculationMode': {
2012
+ type: 'select';
2013
+ isRequired: true;
2014
+ options: {
2015
+ choices: [{
2016
+ "value": "intersect";
2017
+ "label": "Intersect";
2018
+ }, {
2019
+ "value": "contiguous";
2020
+ "label": "Contiguous";
2021
+ }];
2022
+ };
2023
+ };
2024
+ /** . */
2025
+ 'teammates': {
2059
2026
  type: 'schema';
2060
2027
  isRequired: true;
2028
+ isArray: true;
2061
2029
  options: {
2062
- schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema;
2030
+ schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema;
2063
2031
  };
2064
2032
  };
2065
2033
  };
2066
2034
  }
2067
- interface GetConflictsForTimeRangeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetAndPayloadSchema> {
2035
+ interface GetAvailableTimeSlotsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema> {
2068
2036
  }
2069
2037
  }
2070
2038
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2071
- interface Teammate {
2039
+ interface GetAvailableTimeSlotsEmitTargetAndPayload {
2040
+ /** Source. */
2041
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2042
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTarget;
2043
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayload;
2044
+ }
2045
+ interface GetAvailableTimeSlotsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2046
+ id: 'getAvailableTimeSlotsEmitTargetAndPayload';
2047
+ version: 'v2021_05_19';
2048
+ namespace: 'Calendar';
2049
+ name: '';
2050
+ fields: {
2051
+ /** Source. */
2052
+ 'source': {
2053
+ label: 'Source';
2054
+ type: 'schema';
2055
+ options: {
2056
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2057
+ };
2058
+ };
2059
+ /** . */
2060
+ 'target': {
2061
+ type: 'schema';
2062
+ isRequired: true;
2063
+ options: {
2064
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema;
2065
+ };
2066
+ };
2067
+ /** . */
2068
+ 'payload': {
2069
+ type: 'schema';
2070
+ isRequired: true;
2071
+ options: {
2072
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema;
2073
+ };
2074
+ };
2075
+ };
2076
+ }
2077
+ interface GetAvailableTimeSlotsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetAndPayloadSchema> {
2078
+ }
2079
+ }
2080
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2081
+ interface TeammatesTimeslots {
2072
2082
  'personId': string;
2073
- 'durationMinutes': number;
2083
+ 'startDateTimeMs': number;
2074
2084
  }
2075
- interface TeammateSchema extends SpruceSchema.Schema {
2076
- id: 'teammate';
2085
+ interface TeammatesTimeslotsSchema extends SpruceSchema.Schema {
2086
+ id: 'teammatesTimeslots';
2077
2087
  version: 'v2021_05_19';
2078
2088
  namespace: 'Calendar';
2079
2089
  name: '';
@@ -2085,44 +2095,63 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2085
2095
  options: undefined;
2086
2096
  };
2087
2097
  /** . */
2088
- 'durationMinutes': {
2098
+ 'startDateTimeMs': {
2089
2099
  type: 'number';
2090
2100
  isRequired: true;
2091
2101
  options: undefined;
2092
2102
  };
2093
2103
  };
2094
2104
  }
2095
- interface TeammateEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammateSchema> {
2105
+ interface TeammatesTimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema> {
2096
2106
  }
2097
2107
  }
2098
2108
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2099
- interface GetConflictsForTimeRangeEmitPayload {
2100
- 'startDateTimeMs': number;
2101
- 'teammate': SpruceSchemas.Calendar.v2021_05_19.Teammate;
2109
+ interface Timeslots {
2110
+ 'slots': SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslots[];
2102
2111
  }
2103
- interface GetConflictsForTimeRangeEmitPayloadSchema extends SpruceSchema.Schema {
2104
- id: 'getConflictsForTimeRangeEmitPayload';
2112
+ interface TimeslotsSchema extends SpruceSchema.Schema {
2113
+ id: 'timeslots';
2105
2114
  version: 'v2021_05_19';
2106
2115
  namespace: 'Calendar';
2107
2116
  name: '';
2108
2117
  fields: {
2109
2118
  /** . */
2110
- 'startDateTimeMs': {
2111
- type: 'number';
2119
+ 'slots': {
2120
+ type: 'schema';
2112
2121
  isRequired: true;
2113
- options: undefined;
2122
+ isArray: true;
2123
+ options: {
2124
+ schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema;
2125
+ };
2114
2126
  };
2127
+ };
2128
+ }
2129
+ interface TimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema> {
2130
+ }
2131
+ }
2132
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2133
+ interface GetAvailableTimeSlotsResponsePayload {
2134
+ 'times': SpruceSchemas.Calendar.v2021_05_19.Timeslots[];
2135
+ }
2136
+ interface GetAvailableTimeSlotsResponsePayloadSchema extends SpruceSchema.Schema {
2137
+ id: 'getAvailableTimeSlotsResponsePayload';
2138
+ version: 'v2021_05_19';
2139
+ namespace: 'Calendar';
2140
+ name: '';
2141
+ fields: {
2115
2142
  /** . */
2116
- 'teammate': {
2143
+ 'times': {
2117
2144
  type: 'schema';
2118
2145
  isRequired: true;
2146
+ isArray: true;
2147
+ minArrayLength: 0;
2119
2148
  options: {
2120
- schema: SpruceSchemas.Calendar.v2021_05_19.TeammateSchema;
2149
+ schema: SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema;
2121
2150
  };
2122
2151
  };
2123
2152
  };
2124
2153
  }
2125
- interface GetConflictsForTimeRangeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema> {
2154
+ interface GetAvailableTimeSlotsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsResponsePayloadSchema> {
2126
2155
  }
2127
2156
  }
2128
2157
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -2226,47 +2255,40 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2226
2255
  }
2227
2256
  }
2228
2257
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2229
- interface GetSchedulesEmitTarget {
2230
- 'organizationId'?: string | undefined | null;
2231
- 'locationId'?: string | undefined | null;
2232
- 'calendarIds': string[];
2258
+ interface Teammate {
2259
+ 'personId': string;
2260
+ 'durationMinutes': number;
2233
2261
  }
2234
- interface GetSchedulesEmitTargetSchema extends SpruceSchema.Schema {
2235
- id: 'getSchedulesEmitTarget';
2262
+ interface TeammateSchema extends SpruceSchema.Schema {
2263
+ id: 'teammate';
2236
2264
  version: 'v2021_05_19';
2237
2265
  namespace: 'Calendar';
2238
2266
  name: '';
2239
2267
  fields: {
2240
2268
  /** . */
2241
- 'organizationId': {
2242
- type: 'id';
2243
- options: undefined;
2244
- };
2245
- /** . */
2246
- 'locationId': {
2269
+ 'personId': {
2247
2270
  type: 'id';
2271
+ isRequired: true;
2248
2272
  options: undefined;
2249
2273
  };
2250
2274
  /** . */
2251
- 'calendarIds': {
2252
- type: 'id';
2275
+ 'durationMinutes': {
2276
+ type: 'number';
2253
2277
  isRequired: true;
2254
- isArray: true;
2255
2278
  options: undefined;
2256
2279
  };
2257
2280
  };
2258
2281
  }
2259
- interface GetSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema> {
2282
+ interface TeammateEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammateSchema> {
2260
2283
  }
2261
2284
  }
2262
2285
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2263
- interface GetSchedulesEmitPayload {
2286
+ interface GetConflictsForTimeRangeEmitPayload {
2264
2287
  'startDateTimeMs': number;
2265
- 'endDateTimeMs': number;
2266
- 'personIds'?: string[] | undefined | null;
2288
+ 'teammate': SpruceSchemas.Calendar.v2021_05_19.Teammate;
2267
2289
  }
2268
- interface GetSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
2269
- id: 'getSchedulesEmitPayload';
2290
+ interface GetConflictsForTimeRangeEmitPayloadSchema extends SpruceSchema.Schema {
2291
+ id: 'getConflictsForTimeRangeEmitPayload';
2270
2292
  version: 'v2021_05_19';
2271
2293
  namespace: 'Calendar';
2272
2294
  name: '';
@@ -2278,31 +2300,56 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2278
2300
  options: undefined;
2279
2301
  };
2280
2302
  /** . */
2281
- 'endDateTimeMs': {
2282
- type: 'number';
2303
+ 'teammate': {
2304
+ type: 'schema';
2305
+ isRequired: true;
2306
+ options: {
2307
+ schema: SpruceSchemas.Calendar.v2021_05_19.TeammateSchema;
2308
+ };
2309
+ };
2310
+ };
2311
+ }
2312
+ interface GetConflictsForTimeRangeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema> {
2313
+ }
2314
+ }
2315
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2316
+ interface GetConflictsForTimeRangeEmitTarget {
2317
+ 'organizationId': string;
2318
+ 'calendarIds': string[];
2319
+ }
2320
+ interface GetConflictsForTimeRangeEmitTargetSchema extends SpruceSchema.Schema {
2321
+ id: 'getConflictsForTimeRangeEmitTarget';
2322
+ version: 'v2021_05_19';
2323
+ namespace: 'Calendar';
2324
+ name: '';
2325
+ fields: {
2326
+ /** . */
2327
+ 'organizationId': {
2328
+ type: 'id';
2283
2329
  isRequired: true;
2284
2330
  options: undefined;
2285
2331
  };
2286
2332
  /** . */
2287
- 'personIds': {
2333
+ 'calendarIds': {
2288
2334
  type: 'id';
2335
+ isRequired: true;
2289
2336
  isArray: true;
2290
2337
  options: undefined;
2291
2338
  };
2292
2339
  };
2293
2340
  }
2294
- interface GetSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema> {
2341
+ interface GetConflictsForTimeRangeEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema> {
2295
2342
  }
2296
2343
  }
2297
2344
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2298
- interface GetSchedulesEmitTargetAndPayload {
2345
+ interface GetConflictsForTimeRangeEmitTargetAndPayload {
2299
2346
  /** Source. */
2300
2347
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2301
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTarget;
2302
- 'payload': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayload;
2348
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTarget;
2349
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayload;
2303
2350
  }
2304
- interface GetSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2305
- id: 'getSchedulesEmitTargetAndPayload';
2351
+ interface GetConflictsForTimeRangeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2352
+ id: 'getConflictsForTimeRangeEmitTargetAndPayload';
2306
2353
  version: 'v2021_05_19';
2307
2354
  namespace: 'Calendar';
2308
2355
  name: '';
@@ -2320,7 +2367,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2320
2367
  type: 'schema';
2321
2368
  isRequired: true;
2322
2369
  options: {
2323
- schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema;
2370
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema;
2324
2371
  };
2325
2372
  };
2326
2373
  /** . */
@@ -2328,92 +2375,131 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2328
2375
  type: 'schema';
2329
2376
  isRequired: true;
2330
2377
  options: {
2331
- schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema;
2378
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema;
2332
2379
  };
2333
2380
  };
2334
2381
  };
2335
2382
  }
2336
- interface GetSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetAndPayloadSchema> {
2383
+ interface GetConflictsForTimeRangeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetAndPayloadSchema> {
2337
2384
  }
2338
2385
  }
2339
2386
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2340
- interface GetSchedulesResponsePayload {
2341
- 'events': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
2387
+ interface GetConflictsForTimeRangeResponsePayload {
2388
+ 'isAvailable': boolean;
2389
+ 'excludedBy'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2390
+ 'overlapsWith'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2342
2391
  }
2343
- interface GetSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
2344
- id: 'getSchedulesResponsePayload';
2392
+ interface GetConflictsForTimeRangeResponsePayloadSchema extends SpruceSchema.Schema {
2393
+ id: 'getConflictsForTimeRangeResponsePayload';
2345
2394
  version: 'v2021_05_19';
2346
2395
  namespace: 'Calendar';
2347
2396
  name: '';
2348
2397
  fields: {
2349
2398
  /** . */
2350
- 'events': {
2351
- type: 'schema';
2399
+ 'isAvailable': {
2400
+ type: 'boolean';
2352
2401
  isRequired: true;
2402
+ options: undefined;
2403
+ };
2404
+ /** . */
2405
+ 'excludedBy': {
2406
+ type: 'schema';
2353
2407
  isArray: true;
2354
- minArrayLength: 0;
2355
2408
  options: {
2356
2409
  schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2357
2410
  };
2358
2411
  };
2359
- };
2412
+ /** . */
2413
+ 'overlapsWith': {
2414
+ type: 'schema';
2415
+ isArray: true;
2416
+ options: {
2417
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2418
+ };
2419
+ };
2420
+ };
2360
2421
  }
2361
- interface GetSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesResponsePayloadSchema> {
2422
+ interface GetConflictsForTimeRangeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeResponsePayloadSchema> {
2362
2423
  }
2363
2424
  }
2364
2425
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2365
- interface DidUpdateCalendarEventEmitTarget {
2366
- 'locationId': string;
2426
+ interface GetSchedulesEmitTarget {
2427
+ 'organizationId'?: string | undefined | null;
2428
+ 'locationId'?: string | undefined | null;
2429
+ 'calendarIds': string[];
2367
2430
  }
2368
- interface DidUpdateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
2369
- id: 'didUpdateCalendarEventEmitTarget';
2431
+ interface GetSchedulesEmitTargetSchema extends SpruceSchema.Schema {
2432
+ id: 'getSchedulesEmitTarget';
2370
2433
  version: 'v2021_05_19';
2371
2434
  namespace: 'Calendar';
2372
2435
  name: '';
2373
2436
  fields: {
2437
+ /** . */
2438
+ 'organizationId': {
2439
+ type: 'id';
2440
+ options: undefined;
2441
+ };
2374
2442
  /** . */
2375
2443
  'locationId': {
2444
+ type: 'id';
2445
+ options: undefined;
2446
+ };
2447
+ /** . */
2448
+ 'calendarIds': {
2376
2449
  type: 'id';
2377
2450
  isRequired: true;
2451
+ isArray: true;
2378
2452
  options: undefined;
2379
2453
  };
2380
2454
  };
2381
2455
  }
2382
- interface DidUpdateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetSchema> {
2456
+ interface GetSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema> {
2383
2457
  }
2384
2458
  }
2385
2459
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2386
- interface DidUpdateCalendarEventEmitPayload {
2387
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
2460
+ interface GetSchedulesEmitPayload {
2461
+ 'startDateTimeMs': number;
2462
+ 'endDateTimeMs': number;
2463
+ 'personIds'?: string[] | undefined | null;
2388
2464
  }
2389
- interface DidUpdateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
2390
- id: 'didUpdateCalendarEventEmitPayload';
2465
+ interface GetSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
2466
+ id: 'getSchedulesEmitPayload';
2391
2467
  version: 'v2021_05_19';
2392
2468
  namespace: 'Calendar';
2393
2469
  name: '';
2394
2470
  fields: {
2395
2471
  /** . */
2396
- 'calendarEvent': {
2397
- type: 'schema';
2472
+ 'startDateTimeMs': {
2473
+ type: 'number';
2398
2474
  isRequired: true;
2399
- options: {
2400
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2401
- };
2475
+ options: undefined;
2476
+ };
2477
+ /** . */
2478
+ 'endDateTimeMs': {
2479
+ type: 'number';
2480
+ isRequired: true;
2481
+ options: undefined;
2482
+ };
2483
+ /** . */
2484
+ 'personIds': {
2485
+ type: 'id';
2486
+ isArray: true;
2487
+ options: undefined;
2402
2488
  };
2403
2489
  };
2404
2490
  }
2405
- interface DidUpdateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayloadSchema> {
2491
+ interface GetSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema> {
2406
2492
  }
2407
2493
  }
2408
2494
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2409
- interface DidUpdateCalendarEventEmitTargetAndPayload {
2495
+ interface GetSchedulesEmitTargetAndPayload {
2410
2496
  /** Source. */
2411
2497
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2412
- 'target': SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTarget;
2413
- 'payload': SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayload;
2498
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTarget;
2499
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayload;
2414
2500
  }
2415
- interface DidUpdateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2416
- id: 'didUpdateCalendarEventEmitTargetAndPayload';
2501
+ interface GetSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2502
+ id: 'getSchedulesEmitTargetAndPayload';
2417
2503
  version: 'v2021_05_19';
2418
2504
  namespace: 'Calendar';
2419
2505
  name: '';
@@ -2431,7 +2517,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2431
2517
  type: 'schema';
2432
2518
  isRequired: true;
2433
2519
  options: {
2434
- schema: SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetSchema;
2520
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema;
2435
2521
  };
2436
2522
  };
2437
2523
  /** . */
@@ -2439,12 +2525,37 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2439
2525
  type: 'schema';
2440
2526
  isRequired: true;
2441
2527
  options: {
2442
- schema: SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayloadSchema;
2528
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema;
2443
2529
  };
2444
2530
  };
2445
2531
  };
2446
2532
  }
2447
- interface DidUpdateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetAndPayloadSchema> {
2533
+ interface GetSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetAndPayloadSchema> {
2534
+ }
2535
+ }
2536
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2537
+ interface GetSchedulesResponsePayload {
2538
+ 'events': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
2539
+ }
2540
+ interface GetSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
2541
+ id: 'getSchedulesResponsePayload';
2542
+ version: 'v2021_05_19';
2543
+ namespace: 'Calendar';
2544
+ name: '';
2545
+ fields: {
2546
+ /** . */
2547
+ 'events': {
2548
+ type: 'schema';
2549
+ isRequired: true;
2550
+ isArray: true;
2551
+ minArrayLength: 0;
2552
+ options: {
2553
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2554
+ };
2555
+ };
2556
+ };
2557
+ }
2558
+ interface GetSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesResponsePayloadSchema> {
2448
2559
  }
2449
2560
  }
2450
2561
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -2621,6 +2732,114 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2621
2732
  interface ListCalendarsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsResponsePayloadSchema> {
2622
2733
  }
2623
2734
  }
2735
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2736
+ interface ListCalendarEventsEmitTarget {
2737
+ 'locationId': string;
2738
+ }
2739
+ interface ListCalendarEventsEmitTargetSchema extends SpruceSchema.Schema {
2740
+ id: 'listCalendarEventsEmitTarget';
2741
+ version: 'v2021_05_19';
2742
+ namespace: 'Calendar';
2743
+ name: '';
2744
+ fields: {
2745
+ /** . */
2746
+ 'locationId': {
2747
+ type: 'id';
2748
+ isRequired: true;
2749
+ options: undefined;
2750
+ };
2751
+ };
2752
+ }
2753
+ interface ListCalendarEventsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetSchema> {
2754
+ }
2755
+ }
2756
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2757
+ interface ListCalendarEventsEmitPayload {
2758
+ 'groupIds'?: string[] | undefined | null;
2759
+ }
2760
+ interface ListCalendarEventsEmitPayloadSchema extends SpruceSchema.Schema {
2761
+ id: 'listCalendarEventsEmitPayload';
2762
+ version: 'v2021_05_19';
2763
+ namespace: 'Calendar';
2764
+ name: '';
2765
+ fields: {
2766
+ /** . */
2767
+ 'groupIds': {
2768
+ type: 'id';
2769
+ isArray: true;
2770
+ options: undefined;
2771
+ };
2772
+ };
2773
+ }
2774
+ interface ListCalendarEventsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayloadSchema> {
2775
+ }
2776
+ }
2777
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2778
+ interface ListCalendarEventsEmitTargetAndPayload {
2779
+ /** Source. */
2780
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2781
+ 'target': SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTarget;
2782
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayload | undefined | null;
2783
+ }
2784
+ interface ListCalendarEventsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2785
+ id: 'listCalendarEventsEmitTargetAndPayload';
2786
+ version: 'v2021_05_19';
2787
+ namespace: 'Calendar';
2788
+ name: '';
2789
+ fields: {
2790
+ /** Source. */
2791
+ 'source': {
2792
+ label: 'Source';
2793
+ type: 'schema';
2794
+ options: {
2795
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2796
+ };
2797
+ };
2798
+ /** . */
2799
+ 'target': {
2800
+ type: 'schema';
2801
+ isRequired: true;
2802
+ options: {
2803
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetSchema;
2804
+ };
2805
+ };
2806
+ /** . */
2807
+ 'payload': {
2808
+ type: 'schema';
2809
+ options: {
2810
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayloadSchema;
2811
+ };
2812
+ };
2813
+ };
2814
+ }
2815
+ interface ListCalendarEventsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetAndPayloadSchema> {
2816
+ }
2817
+ }
2818
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2819
+ interface ListCalendarEventsResponsePayload {
2820
+ 'calendarEvents': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
2821
+ }
2822
+ interface ListCalendarEventsResponsePayloadSchema extends SpruceSchema.Schema {
2823
+ id: 'listCalendarEventsResponsePayload';
2824
+ version: 'v2021_05_19';
2825
+ namespace: 'Calendar';
2826
+ name: '';
2827
+ fields: {
2828
+ /** . */
2829
+ 'calendarEvents': {
2830
+ type: 'schema';
2831
+ isRequired: true;
2832
+ isArray: true;
2833
+ minArrayLength: 0;
2834
+ options: {
2835
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2836
+ };
2837
+ };
2838
+ };
2839
+ }
2840
+ interface ListCalendarEventsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsResponsePayloadSchema> {
2841
+ }
2842
+ }
2624
2843
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2625
2844
  interface RegisterEventToolsEmitTarget {
2626
2845
  'organizationId': string;
@@ -2740,12 +2959,11 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2740
2959
  }
2741
2960
  }
2742
2961
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2743
- interface UpdateCalendarEmitTarget {
2962
+ interface UpdatePreferencesEmitTarget {
2744
2963
  'organizationId': string;
2745
- 'calendarId': string;
2746
2964
  }
2747
- interface UpdateCalendarEmitTargetSchema extends SpruceSchema.Schema {
2748
- id: 'updateCalendarEmitTarget';
2965
+ interface UpdatePreferencesEmitTargetSchema extends SpruceSchema.Schema {
2966
+ id: 'updatePreferencesEmitTarget';
2749
2967
  version: 'v2021_05_19';
2750
2968
  namespace: 'Calendar';
2751
2969
  name: '';
@@ -2756,88 +2974,66 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2756
2974
  isRequired: true;
2757
2975
  options: undefined;
2758
2976
  };
2759
- /** . */
2760
- 'calendarId': {
2761
- type: 'id';
2762
- isRequired: true;
2763
- options: undefined;
2764
- };
2765
2977
  };
2766
2978
  }
2767
- interface UpdateCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema> {
2979
+ interface UpdatePreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema> {
2768
2980
  }
2769
2981
  }
2770
2982
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2771
- interface UpdateCalendarEmitPayload {
2772
- 'slug'?: string | undefined | null;
2773
- 'title'?: string | undefined | null;
2774
- 'eventTypes'?: string[] | undefined | null;
2775
- 'target'?: SpruceSchemas.Calendar.v2021_05_19.CalendarTarget | undefined | null;
2776
- 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
2777
- 'availableTimeSlotBehavior'?: ("include" | "exclude") | undefined | null;
2983
+ interface UpdatePreferencesEmitPayload {
2984
+ 'selectedCalendarIds'?: string[] | undefined | null;
2985
+ 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
2986
+ 'visiblePeopleIds'?: string[] | undefined | null;
2778
2987
  }
2779
- interface UpdateCalendarEmitPayloadSchema extends SpruceSchema.Schema {
2780
- id: 'updateCalendarEmitPayload';
2988
+ interface UpdatePreferencesEmitPayloadSchema extends SpruceSchema.Schema {
2989
+ id: 'updatePreferencesEmitPayload';
2781
2990
  version: 'v2021_05_19';
2782
2991
  namespace: 'Calendar';
2783
2992
  name: '';
2784
2993
  fields: {
2785
2994
  /** . */
2786
- 'slug': {
2995
+ 'selectedCalendarIds': {
2787
2996
  type: 'id';
2997
+ isArray: true;
2998
+ minArrayLength: 0;
2788
2999
  options: undefined;
2789
3000
  };
2790
3001
  /** . */
2791
- 'title': {
2792
- type: 'text';
2793
- options: undefined;
2794
- };
2795
- /** . */
2796
- 'eventTypes': {
2797
- type: 'text';
2798
- isArray: true;
2799
- minArrayLength: 0;
2800
- options: undefined;
2801
- };
2802
- /** . */
2803
- 'target': {
2804
- type: 'schema';
2805
- options: {
2806
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarTargetSchema;
2807
- };
2808
- };
2809
- /** . */
2810
- 'dateDeleted': {
2811
- type: 'dateTime';
2812
- options: undefined;
2813
- };
2814
- /** . */
2815
- 'availableTimeSlotBehavior': {
3002
+ 'visiblePeopleMode': {
2816
3003
  type: 'select';
2817
3004
  options: {
2818
3005
  choices: [{
2819
- "value": "include";
2820
- "label": "Include";
3006
+ "value": "me";
3007
+ "label": "Me";
2821
3008
  }, {
2822
- "value": "exclude";
2823
- "label": "Exclude";
3009
+ "value": "working";
3010
+ "label": "Working";
3011
+ }, {
3012
+ "value": "custom";
3013
+ "label": "Custom";
2824
3014
  }];
2825
3015
  };
2826
3016
  };
3017
+ /** . */
3018
+ 'visiblePeopleIds': {
3019
+ type: 'text';
3020
+ isArray: true;
3021
+ options: undefined;
3022
+ };
2827
3023
  };
2828
3024
  }
2829
- interface UpdateCalendarEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema> {
3025
+ interface UpdatePreferencesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema> {
2830
3026
  }
2831
3027
  }
2832
3028
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2833
- interface UpdateCalendarEmitTargetAndPayload {
3029
+ interface UpdatePreferencesEmitTargetAndPayload {
2834
3030
  /** Source. */
2835
3031
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2836
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTarget;
2837
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayload | undefined | null;
3032
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTarget;
3033
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayload | undefined | null;
2838
3034
  }
2839
- interface UpdateCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2840
- id: 'updateCalendarEmitTargetAndPayload';
3035
+ interface UpdatePreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3036
+ id: 'updatePreferencesEmitTargetAndPayload';
2841
3037
  version: 'v2021_05_19';
2842
3038
  namespace: 'Calendar';
2843
3039
  name: '';
@@ -2855,42 +3051,40 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2855
3051
  type: 'schema';
2856
3052
  isRequired: true;
2857
3053
  options: {
2858
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema;
3054
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema;
2859
3055
  };
2860
3056
  };
2861
3057
  /** . */
2862
3058
  'payload': {
2863
3059
  type: 'schema';
2864
3060
  options: {
2865
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema;
3061
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema;
2866
3062
  };
2867
3063
  };
2868
3064
  };
2869
3065
  }
2870
- interface UpdateCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetAndPayloadSchema> {
3066
+ interface UpdatePreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetAndPayloadSchema> {
2871
3067
  }
2872
3068
  }
2873
3069
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2874
- interface UpdateCalendarResponsePayload {
2875
- 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
3070
+ interface UpdatePreferencesResponsePayload {
3071
+ 'success': boolean;
2876
3072
  }
2877
- interface UpdateCalendarResponsePayloadSchema extends SpruceSchema.Schema {
2878
- id: 'updateCalendarResponsePayload';
3073
+ interface UpdatePreferencesResponsePayloadSchema extends SpruceSchema.Schema {
3074
+ id: 'updatePreferencesResponsePayload';
2879
3075
  version: 'v2021_05_19';
2880
3076
  namespace: 'Calendar';
2881
3077
  name: '';
2882
3078
  fields: {
2883
3079
  /** . */
2884
- 'calendar': {
2885
- type: 'schema';
3080
+ 'success': {
3081
+ type: 'boolean';
2886
3082
  isRequired: true;
2887
- options: {
2888
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
2889
- };
3083
+ options: undefined;
2890
3084
  };
2891
3085
  };
2892
3086
  }
2893
- interface UpdateCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarResponsePayloadSchema> {
3087
+ interface UpdatePreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesResponsePayloadSchema> {
2894
3088
  }
2895
3089
  }
2896
3090
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -3347,11 +3541,12 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3347
3541
  }
3348
3542
  }
3349
3543
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3350
- interface UpdatePreferencesEmitTarget {
3544
+ interface UpdateCalendarEmitTarget {
3351
3545
  'organizationId': string;
3546
+ 'calendarId': string;
3352
3547
  }
3353
- interface UpdatePreferencesEmitTargetSchema extends SpruceSchema.Schema {
3354
- id: 'updatePreferencesEmitTarget';
3548
+ interface UpdateCalendarEmitTargetSchema extends SpruceSchema.Schema {
3549
+ id: 'updateCalendarEmitTarget';
3355
3550
  version: 'v2021_05_19';
3356
3551
  namespace: 'Calendar';
3357
3552
  name: '';
@@ -3362,66 +3557,88 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3362
3557
  isRequired: true;
3363
3558
  options: undefined;
3364
3559
  };
3560
+ /** . */
3561
+ 'calendarId': {
3562
+ type: 'id';
3563
+ isRequired: true;
3564
+ options: undefined;
3565
+ };
3365
3566
  };
3366
3567
  }
3367
- interface UpdatePreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema> {
3568
+ interface UpdateCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema> {
3368
3569
  }
3369
3570
  }
3370
3571
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3371
- interface UpdatePreferencesEmitPayload {
3372
- 'selectedCalendarIds'?: string[] | undefined | null;
3373
- 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
3374
- 'visiblePeopleIds'?: string[] | undefined | null;
3572
+ interface UpdateCalendarEmitPayload {
3573
+ 'slug'?: string | undefined | null;
3574
+ 'title'?: string | undefined | null;
3575
+ 'eventTypes'?: string[] | undefined | null;
3576
+ 'target'?: SpruceSchemas.Calendar.v2021_05_19.CalendarTarget | undefined | null;
3577
+ 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3578
+ 'availableTimeSlotBehavior'?: ("include" | "exclude") | undefined | null;
3375
3579
  }
3376
- interface UpdatePreferencesEmitPayloadSchema extends SpruceSchema.Schema {
3377
- id: 'updatePreferencesEmitPayload';
3580
+ interface UpdateCalendarEmitPayloadSchema extends SpruceSchema.Schema {
3581
+ id: 'updateCalendarEmitPayload';
3378
3582
  version: 'v2021_05_19';
3379
3583
  namespace: 'Calendar';
3380
3584
  name: '';
3381
3585
  fields: {
3382
3586
  /** . */
3383
- 'selectedCalendarIds': {
3587
+ 'slug': {
3384
3588
  type: 'id';
3589
+ options: undefined;
3590
+ };
3591
+ /** . */
3592
+ 'title': {
3593
+ type: 'text';
3594
+ options: undefined;
3595
+ };
3596
+ /** . */
3597
+ 'eventTypes': {
3598
+ type: 'text';
3385
3599
  isArray: true;
3386
3600
  minArrayLength: 0;
3387
3601
  options: undefined;
3388
3602
  };
3389
3603
  /** . */
3390
- 'visiblePeopleMode': {
3604
+ 'target': {
3605
+ type: 'schema';
3606
+ options: {
3607
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarTargetSchema;
3608
+ };
3609
+ };
3610
+ /** . */
3611
+ 'dateDeleted': {
3612
+ type: 'dateTime';
3613
+ options: undefined;
3614
+ };
3615
+ /** . */
3616
+ 'availableTimeSlotBehavior': {
3391
3617
  type: 'select';
3392
3618
  options: {
3393
3619
  choices: [{
3394
- "value": "me";
3395
- "label": "Me";
3396
- }, {
3397
- "value": "working";
3398
- "label": "Working";
3620
+ "value": "include";
3621
+ "label": "Include";
3399
3622
  }, {
3400
- "value": "custom";
3401
- "label": "Custom";
3623
+ "value": "exclude";
3624
+ "label": "Exclude";
3402
3625
  }];
3403
3626
  };
3404
3627
  };
3405
- /** . */
3406
- 'visiblePeopleIds': {
3407
- type: 'text';
3408
- isArray: true;
3409
- options: undefined;
3410
- };
3411
3628
  };
3412
3629
  }
3413
- interface UpdatePreferencesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema> {
3630
+ interface UpdateCalendarEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema> {
3414
3631
  }
3415
3632
  }
3416
3633
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3417
- interface UpdatePreferencesEmitTargetAndPayload {
3634
+ interface UpdateCalendarEmitTargetAndPayload {
3418
3635
  /** Source. */
3419
3636
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3420
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTarget;
3421
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayload | undefined | null;
3637
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTarget;
3638
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayload | undefined | null;
3422
3639
  }
3423
- interface UpdatePreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3424
- id: 'updatePreferencesEmitTargetAndPayload';
3640
+ interface UpdateCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3641
+ id: 'updateCalendarEmitTargetAndPayload';
3425
3642
  version: 'v2021_05_19';
3426
3643
  namespace: 'Calendar';
3427
3644
  name: '';
@@ -3439,40 +3656,42 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3439
3656
  type: 'schema';
3440
3657
  isRequired: true;
3441
3658
  options: {
3442
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema;
3659
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema;
3443
3660
  };
3444
3661
  };
3445
3662
  /** . */
3446
3663
  'payload': {
3447
3664
  type: 'schema';
3448
3665
  options: {
3449
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema;
3666
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema;
3450
3667
  };
3451
3668
  };
3452
3669
  };
3453
3670
  }
3454
- interface UpdatePreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetAndPayloadSchema> {
3671
+ interface UpdateCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetAndPayloadSchema> {
3455
3672
  }
3456
3673
  }
3457
3674
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3458
- interface UpdatePreferencesResponsePayload {
3459
- 'success': boolean;
3675
+ interface UpdateCalendarResponsePayload {
3676
+ 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
3460
3677
  }
3461
- interface UpdatePreferencesResponsePayloadSchema extends SpruceSchema.Schema {
3462
- id: 'updatePreferencesResponsePayload';
3678
+ interface UpdateCalendarResponsePayloadSchema extends SpruceSchema.Schema {
3679
+ id: 'updateCalendarResponsePayload';
3463
3680
  version: 'v2021_05_19';
3464
3681
  namespace: 'Calendar';
3465
3682
  name: '';
3466
3683
  fields: {
3467
3684
  /** . */
3468
- 'success': {
3469
- type: 'boolean';
3685
+ 'calendar': {
3686
+ type: 'schema';
3470
3687
  isRequired: true;
3471
- options: undefined;
3688
+ options: {
3689
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
3690
+ };
3472
3691
  };
3473
3692
  };
3474
3693
  }
3475
- interface UpdatePreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesResponsePayloadSchema> {
3694
+ interface UpdateCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarResponsePayloadSchema> {
3476
3695
  }
3477
3696
  }
3478
3697
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -4012,432 +4231,43 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4012
4231
  }
4013
4232
  }
4014
4233
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4015
- interface DidCancelCalendarEventEmitTarget {
4016
- 'locationId': string;
4017
- 'calendarEventId': string;
4018
- }
4019
- interface DidCancelCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
4020
- id: 'didCancelCalendarEventEmitTarget';
4021
- version: 'v2021_05_19';
4022
- namespace: 'Calendar';
4023
- name: '';
4024
- fields: {
4025
- /** . */
4026
- 'locationId': {
4027
- type: 'id';
4028
- isRequired: true;
4029
- options: undefined;
4030
- };
4031
- /** . */
4032
- 'calendarEventId': {
4033
- type: 'id';
4034
- isRequired: true;
4035
- options: undefined;
4036
- };
4037
- };
4038
- }
4039
- interface DidCancelCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetSchema> {
4040
- }
4041
- }
4042
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4043
- interface DidCancelCalendarEventEmitPayload {
4044
- 'cancelStrategy': ("only-this-one" | "all-going-forward" | "all");
4045
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
4046
- }
4047
- interface DidCancelCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
4048
- id: 'didCancelCalendarEventEmitPayload';
4049
- version: 'v2021_05_19';
4050
- namespace: 'Calendar';
4051
- name: '';
4052
- fields: {
4053
- /** . */
4054
- 'cancelStrategy': {
4055
- type: 'select';
4056
- isRequired: true;
4057
- options: {
4058
- choices: [{
4059
- "value": "only-this-one";
4060
- "label": "Specific dates";
4061
- }, {
4062
- "value": "all-going-forward";
4063
- "label": "This and all going forward";
4064
- }, {
4065
- "value": "all";
4066
- "label": "All";
4067
- }];
4068
- };
4069
- };
4070
- /** . */
4071
- 'calendarEvent': {
4072
- type: 'schema';
4073
- isRequired: true;
4074
- options: {
4075
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
4076
- };
4077
- };
4078
- };
4079
- }
4080
- interface DidCancelCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema> {
4234
+ interface CreateCalendarEventEmitTarget {
4235
+ 'organizationId'?: string | undefined | null;
4236
+ 'locationId'?: string | undefined | null;
4237
+ 'calendarId': string;
4238
+ 'calendarEventPersonId': string;
4081
4239
  }
4082
- }
4083
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4084
- interface DidCancelCalendarEventEmitTargetAndPayload {
4085
- /** Source. */
4086
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4087
- 'target': SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTarget;
4088
- 'payload': SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayload;
4089
- }
4090
- interface DidCancelCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4091
- id: 'didCancelCalendarEventEmitTargetAndPayload';
4092
- version: 'v2021_05_19';
4093
- namespace: 'Calendar';
4094
- name: '';
4095
- fields: {
4096
- /** Source. */
4097
- 'source': {
4098
- label: 'Source';
4099
- type: 'schema';
4100
- options: {
4101
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
4102
- };
4103
- };
4104
- /** . */
4105
- 'target': {
4106
- type: 'schema';
4107
- isRequired: true;
4108
- options: {
4109
- schema: SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetSchema;
4110
- };
4111
- };
4112
- /** . */
4113
- 'payload': {
4114
- type: 'schema';
4115
- isRequired: true;
4116
- options: {
4117
- schema: SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema;
4118
- };
4119
- };
4120
- };
4121
- }
4122
- interface DidCancelCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetAndPayloadSchema> {
4123
- }
4124
- }
4125
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4126
- interface ListCalendarEventsEmitTarget {
4127
- 'locationId': string;
4128
- }
4129
- interface ListCalendarEventsEmitTargetSchema extends SpruceSchema.Schema {
4130
- id: 'listCalendarEventsEmitTarget';
4131
- version: 'v2021_05_19';
4132
- namespace: 'Calendar';
4133
- name: '';
4134
- fields: {
4135
- /** . */
4136
- 'locationId': {
4137
- type: 'id';
4138
- isRequired: true;
4139
- options: undefined;
4140
- };
4141
- };
4142
- }
4143
- interface ListCalendarEventsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetSchema> {
4144
- }
4145
- }
4146
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4147
- interface ListCalendarEventsEmitPayload {
4148
- 'groupIds'?: string[] | undefined | null;
4149
- }
4150
- interface ListCalendarEventsEmitPayloadSchema extends SpruceSchema.Schema {
4151
- id: 'listCalendarEventsEmitPayload';
4152
- version: 'v2021_05_19';
4153
- namespace: 'Calendar';
4154
- name: '';
4155
- fields: {
4156
- /** . */
4157
- 'groupIds': {
4158
- type: 'id';
4159
- isArray: true;
4160
- options: undefined;
4161
- };
4162
- };
4163
- }
4164
- interface ListCalendarEventsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayloadSchema> {
4165
- }
4166
- }
4167
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4168
- interface ListCalendarEventsEmitTargetAndPayload {
4169
- /** Source. */
4170
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4171
- 'target': SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTarget;
4172
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayload | undefined | null;
4173
- }
4174
- interface ListCalendarEventsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4175
- id: 'listCalendarEventsEmitTargetAndPayload';
4176
- version: 'v2021_05_19';
4177
- namespace: 'Calendar';
4178
- name: '';
4179
- fields: {
4180
- /** Source. */
4181
- 'source': {
4182
- label: 'Source';
4183
- type: 'schema';
4184
- options: {
4185
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
4186
- };
4187
- };
4188
- /** . */
4189
- 'target': {
4190
- type: 'schema';
4191
- isRequired: true;
4192
- options: {
4193
- schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetSchema;
4194
- };
4195
- };
4196
- /** . */
4197
- 'payload': {
4198
- type: 'schema';
4199
- options: {
4200
- schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitPayloadSchema;
4201
- };
4202
- };
4203
- };
4204
- }
4205
- interface ListCalendarEventsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsEmitTargetAndPayloadSchema> {
4206
- }
4207
- }
4208
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4209
- interface ListPeopleWithoutSchedulesEmitTarget {
4210
- 'locationId': string;
4211
- }
4212
- interface ListPeopleWithoutSchedulesEmitTargetSchema extends SpruceSchema.Schema {
4213
- id: 'listPeopleWithoutSchedulesEmitTarget';
4214
- version: 'v2021_05_19';
4215
- namespace: 'Calendar';
4216
- name: '';
4217
- fields: {
4218
- /** . */
4219
- 'locationId': {
4220
- type: 'id';
4221
- isRequired: true;
4222
- options: undefined;
4223
- };
4224
- };
4225
- }
4226
- interface ListPeopleWithoutSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema> {
4227
- }
4228
- }
4229
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4230
- interface ListPeopleWithoutSchedulesEmitPayload {
4231
- 'calendarIds': string[];
4232
- }
4233
- interface ListPeopleWithoutSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
4234
- id: 'listPeopleWithoutSchedulesEmitPayload';
4235
- version: 'v2021_05_19';
4236
- namespace: 'Calendar';
4237
- name: '';
4238
- fields: {
4239
- /** . */
4240
- 'calendarIds': {
4241
- type: 'id';
4242
- isRequired: true;
4243
- isArray: true;
4244
- options: undefined;
4245
- };
4246
- };
4247
- }
4248
- interface ListPeopleWithoutSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema> {
4249
- }
4250
- }
4251
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4252
- interface ListPeopleWithoutSchedulesEmitTargetAndPayload {
4253
- /** Source. */
4254
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4255
- 'target': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTarget;
4256
- 'payload': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayload;
4257
- }
4258
- interface ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4259
- id: 'listPeopleWithoutSchedulesEmitTargetAndPayload';
4260
- version: 'v2021_05_19';
4261
- namespace: 'Calendar';
4262
- name: '';
4263
- fields: {
4264
- /** Source. */
4265
- 'source': {
4266
- label: 'Source';
4267
- type: 'schema';
4268
- options: {
4269
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
4270
- };
4271
- };
4272
- /** . */
4273
- 'target': {
4274
- type: 'schema';
4275
- isRequired: true;
4276
- options: {
4277
- schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema;
4278
- };
4279
- };
4280
- /** . */
4281
- 'payload': {
4282
- type: 'schema';
4283
- isRequired: true;
4284
- options: {
4285
- schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema;
4286
- };
4287
- };
4288
- };
4289
- }
4290
- interface ListPeopleWithoutSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema> {
4291
- }
4292
- }
4293
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4294
- interface PersonWithoutSchedule {
4295
- /** Id. */
4296
- 'id': string;
4297
- /** Casual name. The name you can use when talking to this person. */
4298
- 'casualName': string;
4299
- /** Avatar src. */
4300
- 'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
4301
- }
4302
- interface PersonWithoutScheduleSchema extends SpruceSchema.Schema {
4303
- id: 'person-without-schedule';
4304
- version: 'v2021_05_19';
4305
- namespace: 'Calendar';
4306
- name: '';
4307
- fields: {
4308
- /** Id. */
4309
- 'id': {
4310
- label: 'Id';
4311
- type: 'id';
4312
- isRequired: true;
4313
- options: undefined;
4314
- };
4315
- /** Casual name. The name you can use when talking to this person. */
4316
- 'casualName': {
4317
- label: 'Casual name';
4318
- type: 'text';
4319
- isRequired: true;
4320
- hint: 'The name you can use when talking to this person.';
4321
- options: undefined;
4322
- };
4323
- /** Avatar src. */
4324
- 'avatar': {
4325
- label: 'Avatar src';
4326
- type: 'image';
4327
- options: {
4328
- requiredSizes: ["*"];
4329
- };
4330
- };
4331
- };
4332
- }
4333
- interface PersonWithoutScheduleEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema> {
4334
- }
4335
- }
4336
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4337
- interface ListPeopleWithoutSchedulesResponsePayload {
4338
- 'people': SpruceSchemas.Calendar.v2021_05_19.PersonWithoutSchedule[];
4339
- }
4340
- interface ListPeopleWithoutSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
4341
- id: 'listPeopleWithoutSchedulesResponsePayload';
4342
- version: 'v2021_05_19';
4343
- namespace: 'Calendar';
4344
- name: '';
4345
- fields: {
4346
- /** . */
4347
- 'people': {
4348
- type: 'schema';
4349
- isRequired: true;
4350
- isArray: true;
4351
- minArrayLength: 0;
4352
- options: {
4353
- schema: SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema;
4354
- };
4355
- };
4356
- };
4357
- }
4358
- interface ListPeopleWithoutSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesResponsePayloadSchema> {
4359
- }
4360
- }
4361
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4362
- interface CreateCalendarEventEmitTarget {
4363
- 'organizationId'?: string | undefined | null;
4364
- 'locationId'?: string | undefined | null;
4365
- 'calendarId': string;
4366
- 'calendarEventPersonId': string;
4367
- }
4368
- interface CreateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
4369
- id: 'createCalendarEventEmitTarget';
4370
- version: 'v2021_05_19';
4371
- namespace: 'Calendar';
4372
- name: '';
4373
- fields: {
4374
- /** . */
4375
- 'organizationId': {
4376
- type: 'id';
4377
- options: undefined;
4378
- };
4379
- /** . */
4380
- 'locationId': {
4381
- type: 'id';
4382
- options: undefined;
4383
- };
4384
- /** . */
4385
- 'calendarId': {
4386
- type: 'id';
4387
- isRequired: true;
4388
- options: undefined;
4389
- };
4390
- /** . */
4391
- 'calendarEventPersonId': {
4392
- type: 'id';
4393
- isRequired: true;
4394
- options: undefined;
4395
- };
4396
- };
4397
- }
4398
- interface CreateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetSchema> {
4399
- }
4400
- }
4401
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4402
- interface CreateCalendarEventEmitTargetAndPayload {
4403
- /** Source. */
4404
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4405
- 'target': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTarget;
4406
- 'payload': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayload;
4407
- }
4408
- interface CreateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4409
- id: 'createCalendarEventEmitTargetAndPayload';
4240
+ interface CreateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
4241
+ id: 'createCalendarEventEmitTarget';
4410
4242
  version: 'v2021_05_19';
4411
4243
  namespace: 'Calendar';
4412
4244
  name: '';
4413
4245
  fields: {
4414
- /** Source. */
4415
- 'source': {
4416
- label: 'Source';
4417
- type: 'schema';
4418
- options: {
4419
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
4420
- };
4246
+ /** . */
4247
+ 'organizationId': {
4248
+ type: 'id';
4249
+ options: undefined;
4421
4250
  };
4422
4251
  /** . */
4423
- 'target': {
4424
- type: 'schema';
4252
+ 'locationId': {
4253
+ type: 'id';
4254
+ options: undefined;
4255
+ };
4256
+ /** . */
4257
+ 'calendarId': {
4258
+ type: 'id';
4425
4259
  isRequired: true;
4426
- options: {
4427
- schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetSchema;
4428
- };
4260
+ options: undefined;
4429
4261
  };
4430
4262
  /** . */
4431
- 'payload': {
4432
- type: 'schema';
4263
+ 'calendarEventPersonId': {
4264
+ type: 'id';
4433
4265
  isRequired: true;
4434
- options: {
4435
- schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayloadSchema;
4436
- };
4266
+ options: undefined;
4437
4267
  };
4438
4268
  };
4439
4269
  }
4440
- interface CreateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetAndPayloadSchema> {
4270
+ interface CreateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetSchema> {
4441
4271
  }
4442
4272
  }
4443
4273
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -4740,6 +4570,48 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4740
4570
  interface CreateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayloadSchema> {
4741
4571
  }
4742
4572
  }
4573
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4574
+ interface CreateCalendarEventEmitTargetAndPayload {
4575
+ /** Source. */
4576
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4577
+ 'target': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTarget;
4578
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayload;
4579
+ }
4580
+ interface CreateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4581
+ id: 'createCalendarEventEmitTargetAndPayload';
4582
+ version: 'v2021_05_19';
4583
+ namespace: 'Calendar';
4584
+ name: '';
4585
+ fields: {
4586
+ /** Source. */
4587
+ 'source': {
4588
+ label: 'Source';
4589
+ type: 'schema';
4590
+ options: {
4591
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
4592
+ };
4593
+ };
4594
+ /** . */
4595
+ 'target': {
4596
+ type: 'schema';
4597
+ isRequired: true;
4598
+ options: {
4599
+ schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetSchema;
4600
+ };
4601
+ };
4602
+ /** . */
4603
+ 'payload': {
4604
+ type: 'schema';
4605
+ isRequired: true;
4606
+ options: {
4607
+ schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayloadSchema;
4608
+ };
4609
+ };
4610
+ };
4611
+ }
4612
+ interface CreateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetAndPayloadSchema> {
4613
+ }
4614
+ }
4743
4615
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4744
4616
  interface CreateCalendarEventResponsePayload {
4745
4617
  'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
@@ -4763,6 +4635,159 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4763
4635
  interface CreateCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventResponsePayloadSchema> {
4764
4636
  }
4765
4637
  }
4638
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4639
+ interface ListPeopleWithoutSchedulesEmitTarget {
4640
+ 'locationId': string;
4641
+ }
4642
+ interface ListPeopleWithoutSchedulesEmitTargetSchema extends SpruceSchema.Schema {
4643
+ id: 'listPeopleWithoutSchedulesEmitTarget';
4644
+ version: 'v2021_05_19';
4645
+ namespace: 'Calendar';
4646
+ name: '';
4647
+ fields: {
4648
+ /** . */
4649
+ 'locationId': {
4650
+ type: 'id';
4651
+ isRequired: true;
4652
+ options: undefined;
4653
+ };
4654
+ };
4655
+ }
4656
+ interface ListPeopleWithoutSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema> {
4657
+ }
4658
+ }
4659
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4660
+ interface ListPeopleWithoutSchedulesEmitPayload {
4661
+ 'calendarIds': string[];
4662
+ }
4663
+ interface ListPeopleWithoutSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
4664
+ id: 'listPeopleWithoutSchedulesEmitPayload';
4665
+ version: 'v2021_05_19';
4666
+ namespace: 'Calendar';
4667
+ name: '';
4668
+ fields: {
4669
+ /** . */
4670
+ 'calendarIds': {
4671
+ type: 'id';
4672
+ isRequired: true;
4673
+ isArray: true;
4674
+ options: undefined;
4675
+ };
4676
+ };
4677
+ }
4678
+ interface ListPeopleWithoutSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema> {
4679
+ }
4680
+ }
4681
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4682
+ interface ListPeopleWithoutSchedulesEmitTargetAndPayload {
4683
+ /** Source. */
4684
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4685
+ 'target': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTarget;
4686
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayload;
4687
+ }
4688
+ interface ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4689
+ id: 'listPeopleWithoutSchedulesEmitTargetAndPayload';
4690
+ version: 'v2021_05_19';
4691
+ namespace: 'Calendar';
4692
+ name: '';
4693
+ fields: {
4694
+ /** Source. */
4695
+ 'source': {
4696
+ label: 'Source';
4697
+ type: 'schema';
4698
+ options: {
4699
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
4700
+ };
4701
+ };
4702
+ /** . */
4703
+ 'target': {
4704
+ type: 'schema';
4705
+ isRequired: true;
4706
+ options: {
4707
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema;
4708
+ };
4709
+ };
4710
+ /** . */
4711
+ 'payload': {
4712
+ type: 'schema';
4713
+ isRequired: true;
4714
+ options: {
4715
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema;
4716
+ };
4717
+ };
4718
+ };
4719
+ }
4720
+ interface ListPeopleWithoutSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema> {
4721
+ }
4722
+ }
4723
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4724
+ interface PersonWithoutSchedule {
4725
+ /** Id. */
4726
+ 'id': string;
4727
+ /** Casual name. The name you can use when talking to this person. */
4728
+ 'casualName': string;
4729
+ /** Avatar src. */
4730
+ 'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
4731
+ }
4732
+ interface PersonWithoutScheduleSchema extends SpruceSchema.Schema {
4733
+ id: 'person-without-schedule';
4734
+ version: 'v2021_05_19';
4735
+ namespace: 'Calendar';
4736
+ name: '';
4737
+ fields: {
4738
+ /** Id. */
4739
+ 'id': {
4740
+ label: 'Id';
4741
+ type: 'id';
4742
+ isRequired: true;
4743
+ options: undefined;
4744
+ };
4745
+ /** Casual name. The name you can use when talking to this person. */
4746
+ 'casualName': {
4747
+ label: 'Casual name';
4748
+ type: 'text';
4749
+ isRequired: true;
4750
+ hint: 'The name you can use when talking to this person.';
4751
+ options: undefined;
4752
+ };
4753
+ /** Avatar src. */
4754
+ 'avatar': {
4755
+ label: 'Avatar src';
4756
+ type: 'image';
4757
+ options: {
4758
+ requiredSizes: ["*"];
4759
+ };
4760
+ };
4761
+ };
4762
+ }
4763
+ interface PersonWithoutScheduleEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema> {
4764
+ }
4765
+ }
4766
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4767
+ interface ListPeopleWithoutSchedulesResponsePayload {
4768
+ 'people': SpruceSchemas.Calendar.v2021_05_19.PersonWithoutSchedule[];
4769
+ }
4770
+ interface ListPeopleWithoutSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
4771
+ id: 'listPeopleWithoutSchedulesResponsePayload';
4772
+ version: 'v2021_05_19';
4773
+ namespace: 'Calendar';
4774
+ name: '';
4775
+ fields: {
4776
+ /** . */
4777
+ 'people': {
4778
+ type: 'schema';
4779
+ isRequired: true;
4780
+ isArray: true;
4781
+ minArrayLength: 0;
4782
+ options: {
4783
+ schema: SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema;
4784
+ };
4785
+ };
4786
+ };
4787
+ }
4788
+ interface ListPeopleWithoutSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesResponsePayloadSchema> {
4789
+ }
4790
+ }
4766
4791
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4767
4792
  interface DidCreateCalendarEventEmitTarget {
4768
4793
  'locationId': string;
@@ -4875,31 +4900,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4875
4900
  interface CalendarTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CalendarTargetSchema> {
4876
4901
  }
4877
4902
  }
4878
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4879
- interface ListCalendarEventsResponsePayload {
4880
- 'calendarEvents': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
4881
- }
4882
- interface ListCalendarEventsResponsePayloadSchema extends SpruceSchema.Schema {
4883
- id: 'listCalendarEventsResponsePayload';
4884
- version: 'v2021_05_19';
4885
- namespace: 'Calendar';
4886
- name: '';
4887
- fields: {
4888
- /** . */
4889
- 'calendarEvents': {
4890
- type: 'schema';
4891
- isRequired: true;
4892
- isArray: true;
4893
- minArrayLength: 0;
4894
- options: {
4895
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
4896
- };
4897
- };
4898
- };
4899
- }
4900
- interface ListCalendarEventsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventsResponsePayloadSchema> {
4901
- }
4902
- }
4903
4903
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4904
4904
  interface CalendarEventType {
4905
4905
  'id': string;