@sprucelabs/spruce-calendar-components 34.0.0 → 34.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -719,79 +719,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
719
719
  interface UpsertThemeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Heartwood.v2021_02_11.UpsertThemeResponsePayloadSchema> {
720
720
  }
721
721
  }
722
- namespace SpruceSchemas.Calendar.v2021_05_19 {
723
- interface CancelCalendarEventEmitTargetAndPayload {
724
- /** Source. */
725
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
726
- 'target': SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTarget;
727
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayload | undefined | null;
728
- }
729
- interface CancelCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
730
- id: 'cancelCalendarEventEmitTargetAndPayload';
731
- version: 'v2021_05_19';
732
- namespace: 'Calendar';
733
- name: '';
734
- fields: {
735
- /** Source. */
736
- 'source': {
737
- label: 'Source';
738
- type: 'schema';
739
- options: {
740
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
741
- };
742
- };
743
- /** . */
744
- 'target': {
745
- type: 'schema';
746
- isRequired: true;
747
- options: {
748
- schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetSchema;
749
- };
750
- };
751
- /** . */
752
- 'payload': {
753
- type: 'schema';
754
- options: {
755
- schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayloadSchema;
756
- };
757
- };
758
- };
759
- }
760
- interface CancelCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetAndPayloadSchema> {
761
- }
762
- }
763
- namespace SpruceSchemas.Calendar.v2021_05_19 {
764
- interface ListCalendarEventTypesEmitTargetAndPayload {
765
- /** Source. */
766
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
767
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayload | undefined | null;
768
- }
769
- interface ListCalendarEventTypesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
770
- id: 'listCalendarEventTypesEmitTargetAndPayload';
771
- version: 'v2021_05_19';
772
- namespace: 'Calendar';
773
- name: '';
774
- fields: {
775
- /** Source. */
776
- 'source': {
777
- label: 'Source';
778
- type: 'schema';
779
- options: {
780
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
781
- };
782
- };
783
- /** . */
784
- 'payload': {
785
- type: 'schema';
786
- options: {
787
- schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayloadSchema;
788
- };
789
- };
790
- };
791
- }
792
- interface ListCalendarEventTypesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitTargetAndPayloadSchema> {
793
- }
794
- }
795
722
  namespace SpruceSchemas.Calendar.v2021_05_19 {
796
723
  interface CancelCalendarEventEmitTarget {
797
724
  'locationId': string;
@@ -846,6 +773,47 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
846
773
  interface CancelCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayloadSchema> {
847
774
  }
848
775
  }
776
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
777
+ interface CancelCalendarEventEmitTargetAndPayload {
778
+ /** Source. */
779
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
780
+ 'target': SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTarget;
781
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayload | undefined | null;
782
+ }
783
+ interface CancelCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
784
+ id: 'cancelCalendarEventEmitTargetAndPayload';
785
+ version: 'v2021_05_19';
786
+ namespace: 'Calendar';
787
+ name: '';
788
+ fields: {
789
+ /** Source. */
790
+ 'source': {
791
+ label: 'Source';
792
+ type: 'schema';
793
+ options: {
794
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
795
+ };
796
+ };
797
+ /** . */
798
+ 'target': {
799
+ type: 'schema';
800
+ isRequired: true;
801
+ options: {
802
+ schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetSchema;
803
+ };
804
+ };
805
+ /** . */
806
+ 'payload': {
807
+ type: 'schema';
808
+ options: {
809
+ schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayloadSchema;
810
+ };
811
+ };
812
+ };
813
+ }
814
+ interface CancelCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetAndPayloadSchema> {
815
+ }
816
+ }
849
817
  namespace SpruceSchemas.Calendar.v2021_05_19 {
850
818
  interface CancelCalendarEventResponsePayload {
851
819
  'totalDeleted': number;
@@ -1594,83 +1562,129 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1594
1562
  }
1595
1563
  }
1596
1564
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1597
- interface DidCancelCalendarEventEmitTarget {
1598
- 'locationId': string;
1599
- 'calendarEventId': string;
1565
+ interface GetAvailableTimeSlotsEmitTarget {
1566
+ 'organizationId'?: string | undefined | null;
1567
+ 'locationId'?: string | undefined | null;
1568
+ 'calendarIds': string[];
1600
1569
  }
1601
- interface DidCancelCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
1602
- id: 'didCancelCalendarEventEmitTarget';
1570
+ interface GetAvailableTimeSlotsEmitTargetSchema extends SpruceSchema.Schema {
1571
+ id: 'getAvailableTimeSlotsEmitTarget';
1603
1572
  version: 'v2021_05_19';
1604
1573
  namespace: 'Calendar';
1605
1574
  name: '';
1606
1575
  fields: {
1576
+ /** . */
1577
+ 'organizationId': {
1578
+ type: 'id';
1579
+ options: undefined;
1580
+ };
1607
1581
  /** . */
1608
1582
  'locationId': {
1583
+ type: 'id';
1584
+ options: undefined;
1585
+ };
1586
+ /** . */
1587
+ 'calendarIds': {
1609
1588
  type: 'id';
1610
1589
  isRequired: true;
1590
+ isArray: true;
1611
1591
  options: undefined;
1612
1592
  };
1593
+ };
1594
+ }
1595
+ interface GetAvailableTimeSlotsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema> {
1596
+ }
1597
+ }
1598
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
1599
+ interface Teammates {
1600
+ 'personId': string;
1601
+ 'durationMinutes': number;
1602
+ }
1603
+ interface TeammatesSchema extends SpruceSchema.Schema {
1604
+ id: 'teammates';
1605
+ version: 'v2021_05_19';
1606
+ namespace: 'Calendar';
1607
+ name: '';
1608
+ fields: {
1613
1609
  /** . */
1614
- 'calendarEventId': {
1610
+ 'personId': {
1615
1611
  type: 'id';
1616
1612
  isRequired: true;
1617
1613
  options: undefined;
1618
1614
  };
1615
+ /** . */
1616
+ 'durationMinutes': {
1617
+ type: 'number';
1618
+ isRequired: true;
1619
+ options: undefined;
1620
+ };
1619
1621
  };
1620
1622
  }
1621
- interface DidCancelCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetSchema> {
1623
+ interface TeammatesEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema> {
1622
1624
  }
1623
1625
  }
1624
1626
  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;
1627
+ interface GetAvailableTimeSlotsEmitPayload {
1628
+ 'startDateTimeMs': number;
1629
+ 'endDateTimeMs': number;
1630
+ 'calculationMode': ("intersect" | "contiguous");
1631
+ 'teammates': SpruceSchemas.Calendar.v2021_05_19.Teammates[];
1628
1632
  }
1629
- interface DidCancelCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
1630
- id: 'didCancelCalendarEventEmitPayload';
1633
+ interface GetAvailableTimeSlotsEmitPayloadSchema extends SpruceSchema.Schema {
1634
+ id: 'getAvailableTimeSlotsEmitPayload';
1631
1635
  version: 'v2021_05_19';
1632
1636
  namespace: 'Calendar';
1633
1637
  name: '';
1634
1638
  fields: {
1635
1639
  /** . */
1636
- 'cancelStrategy': {
1640
+ 'startDateTimeMs': {
1641
+ type: 'number';
1642
+ isRequired: true;
1643
+ options: undefined;
1644
+ };
1645
+ /** . */
1646
+ 'endDateTimeMs': {
1647
+ type: 'number';
1648
+ isRequired: true;
1649
+ options: undefined;
1650
+ };
1651
+ /** . */
1652
+ 'calculationMode': {
1637
1653
  type: 'select';
1638
1654
  isRequired: true;
1639
1655
  options: {
1640
1656
  choices: [{
1641
- "value": "only-this-one";
1642
- "label": "Specific dates";
1643
- }, {
1644
- "value": "all-going-forward";
1645
- "label": "This and all going forward";
1657
+ "value": "intersect";
1658
+ "label": "Intersect";
1646
1659
  }, {
1647
- "value": "all";
1648
- "label": "All";
1660
+ "value": "contiguous";
1661
+ "label": "Contiguous";
1649
1662
  }];
1650
1663
  };
1651
1664
  };
1652
1665
  /** . */
1653
- 'calendarEvent': {
1666
+ 'teammates': {
1654
1667
  type: 'schema';
1655
1668
  isRequired: true;
1669
+ isArray: true;
1656
1670
  options: {
1657
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1671
+ schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema;
1658
1672
  };
1659
1673
  };
1660
1674
  };
1661
1675
  }
1662
- interface DidCancelCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema> {
1676
+ interface GetAvailableTimeSlotsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema> {
1663
1677
  }
1664
1678
  }
1665
1679
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1666
- interface DidCancelCalendarEventEmitTargetAndPayload {
1680
+ interface GetAvailableTimeSlotsEmitTargetAndPayload {
1667
1681
  /** Source. */
1668
1682
  '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;
1683
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTarget;
1684
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayload;
1671
1685
  }
1672
- interface DidCancelCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1673
- id: 'didCancelCalendarEventEmitTargetAndPayload';
1686
+ interface GetAvailableTimeSlotsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1687
+ id: 'getAvailableTimeSlotsEmitTargetAndPayload';
1674
1688
  version: 'v2021_05_19';
1675
1689
  namespace: 'Calendar';
1676
1690
  name: '';
@@ -1688,7 +1702,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1688
1702
  type: 'schema';
1689
1703
  isRequired: true;
1690
1704
  options: {
1691
- schema: SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetSchema;
1705
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema;
1692
1706
  };
1693
1707
  };
1694
1708
  /** . */
@@ -1696,108 +1710,99 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1696
1710
  type: 'schema';
1697
1711
  isRequired: true;
1698
1712
  options: {
1699
- schema: SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema;
1713
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema;
1700
1714
  };
1701
1715
  };
1702
1716
  };
1703
1717
  }
1704
- interface DidCancelCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetAndPayloadSchema> {
1718
+ interface GetAvailableTimeSlotsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetAndPayloadSchema> {
1705
1719
  }
1706
1720
  }
1707
1721
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1708
- interface DidUpdateCalendarEventEmitTarget {
1709
- 'locationId': string;
1722
+ interface TeammatesTimeslots {
1723
+ 'personId': string;
1724
+ 'startDateTimeMs': number;
1710
1725
  }
1711
- interface DidUpdateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
1712
- id: 'didUpdateCalendarEventEmitTarget';
1726
+ interface TeammatesTimeslotsSchema extends SpruceSchema.Schema {
1727
+ id: 'teammatesTimeslots';
1713
1728
  version: 'v2021_05_19';
1714
1729
  namespace: 'Calendar';
1715
1730
  name: '';
1716
1731
  fields: {
1717
1732
  /** . */
1718
- 'locationId': {
1733
+ 'personId': {
1719
1734
  type: 'id';
1720
1735
  isRequired: true;
1721
1736
  options: undefined;
1722
1737
  };
1738
+ /** . */
1739
+ 'startDateTimeMs': {
1740
+ type: 'number';
1741
+ isRequired: true;
1742
+ options: undefined;
1743
+ };
1723
1744
  };
1724
1745
  }
1725
- interface DidUpdateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetSchema> {
1746
+ interface TeammatesTimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema> {
1726
1747
  }
1727
1748
  }
1728
1749
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1729
- interface DidUpdateCalendarEventEmitPayload {
1730
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
1750
+ interface Timeslots {
1751
+ 'slots': SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslots[];
1731
1752
  }
1732
- interface DidUpdateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
1733
- id: 'didUpdateCalendarEventEmitPayload';
1753
+ interface TimeslotsSchema extends SpruceSchema.Schema {
1754
+ id: 'timeslots';
1734
1755
  version: 'v2021_05_19';
1735
1756
  namespace: 'Calendar';
1736
1757
  name: '';
1737
1758
  fields: {
1738
1759
  /** . */
1739
- 'calendarEvent': {
1760
+ 'slots': {
1740
1761
  type: 'schema';
1741
1762
  isRequired: true;
1763
+ isArray: true;
1742
1764
  options: {
1743
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1765
+ schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema;
1744
1766
  };
1745
1767
  };
1746
1768
  };
1747
1769
  }
1748
- interface DidUpdateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayloadSchema> {
1770
+ interface TimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema> {
1749
1771
  }
1750
1772
  }
1751
1773
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1752
- interface DidUpdateCalendarEventEmitTargetAndPayload {
1753
- /** Source. */
1754
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1755
- 'target': SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTarget;
1756
- 'payload': SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayload;
1774
+ interface GetAvailableTimeSlotsResponsePayload {
1775
+ 'times': SpruceSchemas.Calendar.v2021_05_19.Timeslots[];
1757
1776
  }
1758
- interface DidUpdateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1759
- id: 'didUpdateCalendarEventEmitTargetAndPayload';
1777
+ interface GetAvailableTimeSlotsResponsePayloadSchema extends SpruceSchema.Schema {
1778
+ id: 'getAvailableTimeSlotsResponsePayload';
1760
1779
  version: 'v2021_05_19';
1761
1780
  namespace: 'Calendar';
1762
1781
  name: '';
1763
1782
  fields: {
1764
- /** Source. */
1765
- 'source': {
1766
- label: 'Source';
1767
- type: 'schema';
1768
- options: {
1769
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1770
- };
1771
- };
1772
- /** . */
1773
- 'target': {
1774
- type: 'schema';
1775
- isRequired: true;
1776
- options: {
1777
- schema: SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetSchema;
1778
- };
1779
- };
1780
1783
  /** . */
1781
- 'payload': {
1784
+ 'times': {
1782
1785
  type: 'schema';
1783
1786
  isRequired: true;
1787
+ isArray: true;
1788
+ minArrayLength: 0;
1784
1789
  options: {
1785
- schema: SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayloadSchema;
1790
+ schema: SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema;
1786
1791
  };
1787
1792
  };
1788
1793
  };
1789
1794
  }
1790
- interface DidUpdateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetAndPayloadSchema> {
1795
+ interface GetAvailableTimeSlotsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsResponsePayloadSchema> {
1791
1796
  }
1792
1797
  }
1793
1798
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1794
- interface GetAvailableTimeSlotsEmitTarget {
1795
- 'organizationId'?: string | undefined | null;
1796
- 'locationId'?: string | undefined | null;
1797
- 'calendarIds': string[];
1799
+ interface GetCalendarEmitTarget {
1800
+ 'organizationId': string;
1801
+ 'slug'?: string | undefined | null;
1802
+ 'calendarId'?: string | undefined | null;
1798
1803
  }
1799
- interface GetAvailableTimeSlotsEmitTargetSchema extends SpruceSchema.Schema {
1800
- id: 'getAvailableTimeSlotsEmitTarget';
1804
+ interface GetCalendarEmitTargetSchema extends SpruceSchema.Schema {
1805
+ id: 'getCalendarEmitTarget';
1801
1806
  version: 'v2021_05_19';
1802
1807
  namespace: 'Calendar';
1803
1808
  name: '';
@@ -1805,34 +1810,32 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1805
1810
  /** . */
1806
1811
  'organizationId': {
1807
1812
  type: 'id';
1813
+ isRequired: true;
1808
1814
  options: undefined;
1809
1815
  };
1810
1816
  /** . */
1811
- 'locationId': {
1817
+ 'slug': {
1812
1818
  type: 'id';
1813
1819
  options: undefined;
1814
1820
  };
1815
1821
  /** . */
1816
- 'calendarIds': {
1822
+ 'calendarId': {
1817
1823
  type: 'id';
1818
- isRequired: true;
1819
- isArray: true;
1820
1824
  options: undefined;
1821
1825
  };
1822
1826
  };
1823
1827
  }
1824
- interface GetAvailableTimeSlotsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema> {
1828
+ interface GetCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema> {
1825
1829
  }
1826
1830
  }
1827
1831
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1828
- interface GetAvailableTimeSlotsEmitTargetAndPayload {
1832
+ interface GetCalendarEmitTargetAndPayload {
1829
1833
  /** Source. */
1830
1834
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1831
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTarget;
1832
- 'payload': SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayload;
1835
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTarget;
1833
1836
  }
1834
- interface GetAvailableTimeSlotsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1835
- id: 'getAvailableTimeSlotsEmitTargetAndPayload';
1837
+ interface GetCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1838
+ id: 'getCalendarEmitTargetAndPayload';
1836
1839
  version: 'v2021_05_19';
1837
1840
  namespace: 'Calendar';
1838
1841
  name: '';
@@ -1850,221 +1853,182 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1850
1853
  type: 'schema';
1851
1854
  isRequired: true;
1852
1855
  options: {
1853
- schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetSchema;
1854
- };
1855
- };
1856
- /** . */
1857
- 'payload': {
1858
- type: 'schema';
1859
- isRequired: true;
1860
- options: {
1861
- schema: SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema;
1856
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema;
1862
1857
  };
1863
1858
  };
1864
1859
  };
1865
1860
  }
1866
- interface GetAvailableTimeSlotsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitTargetAndPayloadSchema> {
1861
+ interface GetCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetAndPayloadSchema> {
1867
1862
  }
1868
1863
  }
1869
1864
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1870
- interface Teammates {
1871
- 'personId': string;
1872
- 'durationMinutes': number;
1865
+ interface GetCalendarResponsePayload {
1866
+ 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
1873
1867
  }
1874
- interface TeammatesSchema extends SpruceSchema.Schema {
1875
- id: 'teammates';
1868
+ interface GetCalendarResponsePayloadSchema extends SpruceSchema.Schema {
1869
+ id: 'getCalendarResponsePayload';
1876
1870
  version: 'v2021_05_19';
1877
1871
  namespace: 'Calendar';
1878
1872
  name: '';
1879
1873
  fields: {
1880
1874
  /** . */
1881
- 'personId': {
1882
- type: 'id';
1883
- isRequired: true;
1884
- options: undefined;
1885
- };
1886
- /** . */
1887
- 'durationMinutes': {
1888
- type: 'number';
1875
+ 'calendar': {
1876
+ type: 'schema';
1889
1877
  isRequired: true;
1890
- options: undefined;
1878
+ options: {
1879
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
1880
+ };
1891
1881
  };
1892
1882
  };
1893
1883
  }
1894
- interface TeammatesEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema> {
1884
+ interface GetCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarResponsePayloadSchema> {
1895
1885
  }
1896
1886
  }
1897
1887
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1898
- interface GetAvailableTimeSlotsEmitPayload {
1899
- 'startDateTimeMs': number;
1900
- 'endDateTimeMs': number;
1901
- 'calculationMode': ("intersect" | "contiguous");
1902
- 'teammates': SpruceSchemas.Calendar.v2021_05_19.Teammates[];
1888
+ interface GetCalendarEventResponsePayload {
1889
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
1903
1890
  }
1904
- interface GetAvailableTimeSlotsEmitPayloadSchema extends SpruceSchema.Schema {
1905
- id: 'getAvailableTimeSlotsEmitPayload';
1891
+ interface GetCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
1892
+ id: 'getCalendarEventResponsePayload';
1906
1893
  version: 'v2021_05_19';
1907
1894
  namespace: 'Calendar';
1908
1895
  name: '';
1909
1896
  fields: {
1910
1897
  /** . */
1911
- 'startDateTimeMs': {
1912
- type: 'number';
1913
- isRequired: true;
1914
- options: undefined;
1915
- };
1916
- /** . */
1917
- 'endDateTimeMs': {
1918
- type: 'number';
1919
- isRequired: true;
1920
- options: undefined;
1921
- };
1922
- /** . */
1923
- 'calculationMode': {
1924
- type: 'select';
1925
- isRequired: true;
1926
- options: {
1927
- choices: [{
1928
- "value": "intersect";
1929
- "label": "Intersect";
1930
- }, {
1931
- "value": "contiguous";
1932
- "label": "Contiguous";
1933
- }];
1934
- };
1935
- };
1936
- /** . */
1937
- 'teammates': {
1898
+ 'calendarEvent': {
1938
1899
  type: 'schema';
1939
1900
  isRequired: true;
1940
- isArray: true;
1941
1901
  options: {
1942
- schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesSchema;
1902
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1943
1903
  };
1944
1904
  };
1945
1905
  };
1946
1906
  }
1947
- interface GetAvailableTimeSlotsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsEmitPayloadSchema> {
1907
+ interface GetCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventResponsePayloadSchema> {
1948
1908
  }
1949
1909
  }
1950
1910
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1951
- interface GetAvailableTimeSlotsResponsePayload {
1952
- 'times': SpruceSchemas.Calendar.v2021_05_19.Timeslots[];
1911
+ interface DidUpdateCalendarEventEmitTarget {
1912
+ 'locationId': string;
1953
1913
  }
1954
- interface GetAvailableTimeSlotsResponsePayloadSchema extends SpruceSchema.Schema {
1955
- id: 'getAvailableTimeSlotsResponsePayload';
1914
+ interface DidUpdateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
1915
+ id: 'didUpdateCalendarEventEmitTarget';
1956
1916
  version: 'v2021_05_19';
1957
1917
  namespace: 'Calendar';
1958
1918
  name: '';
1959
1919
  fields: {
1960
1920
  /** . */
1961
- 'times': {
1962
- type: 'schema';
1921
+ 'locationId': {
1922
+ type: 'id';
1963
1923
  isRequired: true;
1964
- isArray: true;
1965
- minArrayLength: 0;
1966
- options: {
1967
- schema: SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema;
1968
- };
1924
+ options: undefined;
1969
1925
  };
1970
1926
  };
1971
1927
  }
1972
- interface GetAvailableTimeSlotsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetAvailableTimeSlotsResponsePayloadSchema> {
1928
+ interface DidUpdateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetSchema> {
1973
1929
  }
1974
1930
  }
1975
1931
  namespace SpruceSchemas.Calendar.v2021_05_19 {
1976
- interface TeammatesTimeslots {
1977
- 'personId': string;
1978
- 'startDateTimeMs': number;
1932
+ interface DidUpdateCalendarEventEmitPayload {
1933
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
1979
1934
  }
1980
- interface TeammatesTimeslotsSchema extends SpruceSchema.Schema {
1981
- id: 'teammatesTimeslots';
1935
+ interface DidUpdateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
1936
+ id: 'didUpdateCalendarEventEmitPayload';
1982
1937
  version: 'v2021_05_19';
1983
1938
  namespace: 'Calendar';
1984
1939
  name: '';
1985
1940
  fields: {
1986
1941
  /** . */
1987
- 'personId': {
1988
- type: 'id';
1989
- isRequired: true;
1990
- options: undefined;
1991
- };
1992
- /** . */
1993
- 'startDateTimeMs': {
1994
- type: 'number';
1942
+ 'calendarEvent': {
1943
+ type: 'schema';
1995
1944
  isRequired: true;
1996
- options: undefined;
1945
+ options: {
1946
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
1947
+ };
1997
1948
  };
1998
1949
  };
1999
1950
  }
2000
- interface TeammatesTimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema> {
1951
+ interface DidUpdateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayloadSchema> {
2001
1952
  }
2002
1953
  }
2003
1954
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2004
- interface Timeslots {
2005
- 'slots': SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslots[];
1955
+ interface DidUpdateCalendarEventEmitTargetAndPayload {
1956
+ /** Source. */
1957
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1958
+ 'target': SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTarget;
1959
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayload;
2006
1960
  }
2007
- interface TimeslotsSchema extends SpruceSchema.Schema {
2008
- id: 'timeslots';
1961
+ interface DidUpdateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1962
+ id: 'didUpdateCalendarEventEmitTargetAndPayload';
2009
1963
  version: 'v2021_05_19';
2010
1964
  namespace: 'Calendar';
2011
1965
  name: '';
2012
1966
  fields: {
1967
+ /** Source. */
1968
+ 'source': {
1969
+ label: 'Source';
1970
+ type: 'schema';
1971
+ options: {
1972
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1973
+ };
1974
+ };
2013
1975
  /** . */
2014
- 'slots': {
1976
+ 'target': {
2015
1977
  type: 'schema';
2016
1978
  isRequired: true;
2017
- isArray: true;
2018
1979
  options: {
2019
- schema: SpruceSchemas.Calendar.v2021_05_19.TeammatesTimeslotsSchema;
1980
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetSchema;
1981
+ };
1982
+ };
1983
+ /** . */
1984
+ 'payload': {
1985
+ type: 'schema';
1986
+ isRequired: true;
1987
+ options: {
1988
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitPayloadSchema;
2020
1989
  };
2021
1990
  };
2022
1991
  };
2023
1992
  }
2024
- interface TimeslotsEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TimeslotsSchema> {
1993
+ interface DidUpdateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidUpdateCalendarEventEmitTargetAndPayloadSchema> {
2025
1994
  }
2026
1995
  }
2027
1996
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2028
- interface GetCalendarEmitTarget {
2029
- 'organizationId': string;
2030
- 'slug'?: string | undefined | null;
2031
- 'calendarId'?: string | undefined | null;
1997
+ interface GetCalendarEventEmitTarget {
1998
+ 'locationId': string;
1999
+ 'calendarEventId': string;
2032
2000
  }
2033
- interface GetCalendarEmitTargetSchema extends SpruceSchema.Schema {
2034
- id: 'getCalendarEmitTarget';
2001
+ interface GetCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
2002
+ id: 'getCalendarEventEmitTarget';
2035
2003
  version: 'v2021_05_19';
2036
2004
  namespace: 'Calendar';
2037
2005
  name: '';
2038
2006
  fields: {
2039
2007
  /** . */
2040
- 'organizationId': {
2008
+ 'locationId': {
2041
2009
  type: 'id';
2042
2010
  isRequired: true;
2043
2011
  options: undefined;
2044
2012
  };
2045
2013
  /** . */
2046
- 'slug': {
2047
- type: 'id';
2048
- options: undefined;
2049
- };
2050
- /** . */
2051
- 'calendarId': {
2014
+ 'calendarEventId': {
2052
2015
  type: 'id';
2016
+ isRequired: true;
2053
2017
  options: undefined;
2054
2018
  };
2055
2019
  };
2056
2020
  }
2057
- interface GetCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema> {
2021
+ interface GetCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetSchema> {
2058
2022
  }
2059
2023
  }
2060
2024
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2061
- interface GetCalendarEmitTargetAndPayload {
2025
+ interface GetCalendarEventEmitTargetAndPayload {
2062
2026
  /** Source. */
2063
2027
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2064
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTarget;
2028
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTarget;
2065
2029
  }
2066
- interface GetCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2067
- id: 'getCalendarEmitTargetAndPayload';
2030
+ interface GetCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2031
+ id: 'getCalendarEventEmitTargetAndPayload';
2068
2032
  version: 'v2021_05_19';
2069
2033
  namespace: 'Calendar';
2070
2034
  name: '';
@@ -2082,44 +2046,62 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2082
2046
  type: 'schema';
2083
2047
  isRequired: true;
2084
2048
  options: {
2085
- schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetSchema;
2049
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetSchema;
2086
2050
  };
2087
2051
  };
2088
2052
  };
2089
2053
  }
2090
- interface GetCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEmitTargetAndPayloadSchema> {
2054
+ interface GetCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetAndPayloadSchema> {
2091
2055
  }
2092
2056
  }
2093
2057
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2094
- interface GetCalendarResponsePayload {
2095
- 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
2058
+ interface DidCancelCalendarEventEmitPayload {
2059
+ 'cancelStrategy': ("only-this-one" | "all-going-forward" | "all");
2060
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
2096
2061
  }
2097
- interface GetCalendarResponsePayloadSchema extends SpruceSchema.Schema {
2098
- id: 'getCalendarResponsePayload';
2062
+ interface DidCancelCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
2063
+ id: 'didCancelCalendarEventEmitPayload';
2099
2064
  version: 'v2021_05_19';
2100
2065
  namespace: 'Calendar';
2101
2066
  name: '';
2102
2067
  fields: {
2103
2068
  /** . */
2104
- 'calendar': {
2069
+ 'cancelStrategy': {
2070
+ type: 'select';
2071
+ isRequired: true;
2072
+ options: {
2073
+ choices: [{
2074
+ "value": "only-this-one";
2075
+ "label": "Specific dates";
2076
+ }, {
2077
+ "value": "all-going-forward";
2078
+ "label": "This and all going forward";
2079
+ }, {
2080
+ "value": "all";
2081
+ "label": "All";
2082
+ }];
2083
+ };
2084
+ };
2085
+ /** . */
2086
+ 'calendarEvent': {
2105
2087
  type: 'schema';
2106
2088
  isRequired: true;
2107
2089
  options: {
2108
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
2090
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2109
2091
  };
2110
2092
  };
2111
2093
  };
2112
2094
  }
2113
- interface GetCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarResponsePayloadSchema> {
2095
+ interface DidCancelCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema> {
2114
2096
  }
2115
2097
  }
2116
2098
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2117
- interface GetCalendarEventEmitTarget {
2099
+ interface DidCancelCalendarEventEmitTarget {
2118
2100
  'locationId': string;
2119
2101
  'calendarEventId': string;
2120
2102
  }
2121
- interface GetCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
2122
- id: 'getCalendarEventEmitTarget';
2103
+ interface DidCancelCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
2104
+ id: 'didCancelCalendarEventEmitTarget';
2123
2105
  version: 'v2021_05_19';
2124
2106
  namespace: 'Calendar';
2125
2107
  name: '';
@@ -2138,17 +2120,18 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2138
2120
  };
2139
2121
  };
2140
2122
  }
2141
- interface GetCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetSchema> {
2123
+ interface DidCancelCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetSchema> {
2142
2124
  }
2143
2125
  }
2144
2126
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2145
- interface GetCalendarEventEmitTargetAndPayload {
2127
+ interface DidCancelCalendarEventEmitTargetAndPayload {
2146
2128
  /** Source. */
2147
2129
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2148
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTarget;
2130
+ 'target': SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTarget;
2131
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayload;
2149
2132
  }
2150
- interface GetCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2151
- id: 'getCalendarEventEmitTargetAndPayload';
2133
+ interface DidCancelCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2134
+ id: 'didCancelCalendarEventEmitTargetAndPayload';
2152
2135
  version: 'v2021_05_19';
2153
2136
  namespace: 'Calendar';
2154
2137
  name: '';
@@ -2166,75 +2149,150 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2166
2149
  type: 'schema';
2167
2150
  isRequired: true;
2168
2151
  options: {
2169
- schema: SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetSchema;
2152
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetSchema;
2153
+ };
2154
+ };
2155
+ /** . */
2156
+ 'payload': {
2157
+ type: 'schema';
2158
+ isRequired: true;
2159
+ options: {
2160
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitPayloadSchema;
2170
2161
  };
2171
2162
  };
2172
2163
  };
2173
2164
  }
2174
- interface GetCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventEmitTargetAndPayloadSchema> {
2165
+ interface DidCancelCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCancelCalendarEventEmitTargetAndPayloadSchema> {
2175
2166
  }
2176
2167
  }
2177
2168
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2178
- interface GetCalendarEventResponsePayload {
2179
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
2169
+ interface GetPreferencesEmitTarget {
2170
+ 'organizationId': string;
2180
2171
  }
2181
- interface GetCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
2182
- id: 'getCalendarEventResponsePayload';
2172
+ interface GetPreferencesEmitTargetSchema extends SpruceSchema.Schema {
2173
+ id: 'getPreferencesEmitTarget';
2183
2174
  version: 'v2021_05_19';
2184
2175
  namespace: 'Calendar';
2185
2176
  name: '';
2186
2177
  fields: {
2187
2178
  /** . */
2188
- 'calendarEvent': {
2179
+ 'organizationId': {
2180
+ type: 'id';
2181
+ isRequired: true;
2182
+ options: undefined;
2183
+ };
2184
+ };
2185
+ }
2186
+ interface GetPreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema> {
2187
+ }
2188
+ }
2189
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2190
+ interface GetPreferencesEmitTargetAndPayload {
2191
+ /** Source. */
2192
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2193
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTarget;
2194
+ }
2195
+ interface GetPreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2196
+ id: 'getPreferencesEmitTargetAndPayload';
2197
+ version: 'v2021_05_19';
2198
+ namespace: 'Calendar';
2199
+ name: '';
2200
+ fields: {
2201
+ /** Source. */
2202
+ 'source': {
2203
+ label: 'Source';
2204
+ type: 'schema';
2205
+ options: {
2206
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2207
+ };
2208
+ };
2209
+ /** . */
2210
+ 'target': {
2189
2211
  type: 'schema';
2190
2212
  isRequired: true;
2191
2213
  options: {
2192
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2214
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema;
2193
2215
  };
2194
2216
  };
2195
2217
  };
2196
2218
  }
2197
- interface GetCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetCalendarEventResponsePayloadSchema> {
2219
+ interface GetPreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetAndPayloadSchema> {
2198
2220
  }
2199
2221
  }
2200
2222
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2201
- interface GetConflictsForTimeRangeEmitTarget {
2202
- 'organizationId': string;
2203
- 'calendarIds': string[];
2223
+ interface GetPreferencesResponsePayload {
2224
+ 'selectedCalendarIds'?: string[] | undefined | null;
2225
+ 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
2226
+ 'visiblePeopleIds'?: string[] | undefined | null;
2204
2227
  }
2205
- interface GetConflictsForTimeRangeEmitTargetSchema extends SpruceSchema.Schema {
2206
- id: 'getConflictsForTimeRangeEmitTarget';
2228
+ interface GetPreferencesResponsePayloadSchema extends SpruceSchema.Schema {
2229
+ id: 'getPreferencesResponsePayload';
2207
2230
  version: 'v2021_05_19';
2208
2231
  namespace: 'Calendar';
2209
2232
  name: '';
2210
2233
  fields: {
2211
2234
  /** . */
2212
- 'organizationId': {
2235
+ 'selectedCalendarIds': {
2213
2236
  type: 'id';
2214
- isRequired: true;
2237
+ isArray: true;
2238
+ minArrayLength: 0;
2215
2239
  options: undefined;
2216
2240
  };
2217
2241
  /** . */
2218
- 'calendarIds': {
2219
- type: 'id';
2220
- isRequired: true;
2242
+ 'visiblePeopleMode': {
2243
+ type: 'select';
2244
+ options: {
2245
+ choices: [{
2246
+ "value": "me";
2247
+ "label": "Me";
2248
+ }, {
2249
+ "value": "working";
2250
+ "label": "Working";
2251
+ }, {
2252
+ "value": "custom";
2253
+ "label": "Custom";
2254
+ }];
2255
+ };
2256
+ };
2257
+ /** . */
2258
+ 'visiblePeopleIds': {
2259
+ type: 'text';
2221
2260
  isArray: true;
2222
2261
  options: undefined;
2223
2262
  };
2224
2263
  };
2225
2264
  }
2226
- interface GetConflictsForTimeRangeEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema> {
2265
+ interface GetPreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesResponsePayloadSchema> {
2227
2266
  }
2228
2267
  }
2229
2268
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2230
- interface GetConflictsForTimeRangeEmitTargetAndPayload {
2269
+ interface ListCalendarEventTypesEmitPayload {
2270
+ 'shouldShowOnlyMine'?: boolean | undefined | null;
2271
+ }
2272
+ interface ListCalendarEventTypesEmitPayloadSchema extends SpruceSchema.Schema {
2273
+ id: 'listCalendarEventTypesEmitPayload';
2274
+ version: 'v2021_05_19';
2275
+ namespace: 'Calendar';
2276
+ name: '';
2277
+ fields: {
2278
+ /** . */
2279
+ 'shouldShowOnlyMine': {
2280
+ type: 'boolean';
2281
+ options: undefined;
2282
+ };
2283
+ };
2284
+ }
2285
+ interface ListCalendarEventTypesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayloadSchema> {
2286
+ }
2287
+ }
2288
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2289
+ interface ListCalendarEventTypesEmitTargetAndPayload {
2231
2290
  /** Source. */
2232
2291
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2233
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTarget;
2234
- 'payload': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayload;
2292
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayload | undefined | null;
2235
2293
  }
2236
- interface GetConflictsForTimeRangeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2237
- id: 'getConflictsForTimeRangeEmitTargetAndPayload';
2294
+ interface ListCalendarEventTypesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2295
+ id: 'listCalendarEventTypesEmitTargetAndPayload';
2238
2296
  version: 'v2021_05_19';
2239
2297
  namespace: 'Calendar';
2240
2298
  name: '';
@@ -2248,24 +2306,47 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2248
2306
  };
2249
2307
  };
2250
2308
  /** . */
2251
- 'target': {
2309
+ 'payload': {
2252
2310
  type: 'schema';
2253
- isRequired: true;
2254
2311
  options: {
2255
- schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema;
2312
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayloadSchema;
2256
2313
  };
2257
2314
  };
2315
+ };
2316
+ }
2317
+ interface ListCalendarEventTypesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitTargetAndPayloadSchema> {
2318
+ }
2319
+ }
2320
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2321
+ interface ListCalendarEventTypesResponsePayload {
2322
+ 'calendarEventTypes': SpruceSchemas.Calendar.v2021_05_19.CalendarEventType[];
2323
+ 'count': number;
2324
+ }
2325
+ interface ListCalendarEventTypesResponsePayloadSchema extends SpruceSchema.Schema {
2326
+ id: 'listCalendarEventTypesResponsePayload';
2327
+ version: 'v2021_05_19';
2328
+ namespace: 'Calendar';
2329
+ name: '';
2330
+ fields: {
2258
2331
  /** . */
2259
- 'payload': {
2332
+ 'calendarEventTypes': {
2260
2333
  type: 'schema';
2261
2334
  isRequired: true;
2335
+ isArray: true;
2336
+ minArrayLength: 0;
2262
2337
  options: {
2263
- schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema;
2338
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema;
2264
2339
  };
2265
2340
  };
2341
+ /** . */
2342
+ 'count': {
2343
+ type: 'number';
2344
+ isRequired: true;
2345
+ options: undefined;
2346
+ };
2266
2347
  };
2267
2348
  }
2268
- interface GetConflictsForTimeRangeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetAndPayloadSchema> {
2349
+ interface ListCalendarEventTypesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesResponsePayloadSchema> {
2269
2350
  }
2270
2351
  }
2271
2352
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -2327,73 +2408,43 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2327
2408
  }
2328
2409
  }
2329
2410
  namespace SpruceSchemas.Calendar.v2021_05_19 {
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;
2411
+ interface GetConflictsForTimeRangeEmitTarget {
2412
+ 'organizationId': string;
2413
+ 'calendarIds': string[];
2334
2414
  }
2335
- interface GetConflictsForTimeRangeResponsePayloadSchema extends SpruceSchema.Schema {
2336
- id: 'getConflictsForTimeRangeResponsePayload';
2415
+ interface GetConflictsForTimeRangeEmitTargetSchema extends SpruceSchema.Schema {
2416
+ id: 'getConflictsForTimeRangeEmitTarget';
2337
2417
  version: 'v2021_05_19';
2338
2418
  namespace: 'Calendar';
2339
2419
  name: '';
2340
2420
  fields: {
2341
2421
  /** . */
2342
- 'isAvailable': {
2343
- type: 'boolean';
2422
+ 'organizationId': {
2423
+ type: 'id';
2344
2424
  isRequired: true;
2345
2425
  options: undefined;
2346
2426
  };
2347
2427
  /** . */
2348
- 'excludedBy': {
2349
- type: 'schema';
2350
- isArray: true;
2351
- options: {
2352
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2353
- };
2354
- };
2355
- /** . */
2356
- 'overlapsWith': {
2357
- type: 'schema';
2428
+ 'calendarIds': {
2429
+ type: 'id';
2430
+ isRequired: true;
2358
2431
  isArray: true;
2359
- options: {
2360
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2361
- };
2432
+ options: undefined;
2362
2433
  };
2363
2434
  };
2364
2435
  }
2365
- interface GetConflictsForTimeRangeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeResponsePayloadSchema> {
2436
+ interface GetConflictsForTimeRangeEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema> {
2366
2437
  }
2367
2438
  }
2368
2439
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2369
- interface GetPreferencesEmitTarget {
2370
- 'organizationId': string;
2440
+ interface GetConflictsForTimeRangeEmitTargetAndPayload {
2441
+ /** Source. */
2442
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2443
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTarget;
2444
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayload;
2371
2445
  }
2372
- interface GetPreferencesEmitTargetSchema extends SpruceSchema.Schema {
2373
- id: 'getPreferencesEmitTarget';
2374
- version: 'v2021_05_19';
2375
- namespace: 'Calendar';
2376
- name: '';
2377
- fields: {
2378
- /** . */
2379
- 'organizationId': {
2380
- type: 'id';
2381
- isRequired: true;
2382
- options: undefined;
2383
- };
2384
- };
2385
- }
2386
- interface GetPreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema> {
2387
- }
2388
- }
2389
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2390
- interface GetPreferencesEmitTargetAndPayload {
2391
- /** Source. */
2392
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2393
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTarget;
2394
- }
2395
- interface GetPreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2396
- id: 'getPreferencesEmitTargetAndPayload';
2446
+ interface GetConflictsForTimeRangeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2447
+ id: 'getConflictsForTimeRangeEmitTargetAndPayload';
2397
2448
  version: 'v2021_05_19';
2398
2449
  namespace: 'Calendar';
2399
2450
  name: '';
@@ -2411,110 +2462,59 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2411
2462
  type: 'schema';
2412
2463
  isRequired: true;
2413
2464
  options: {
2414
- schema: SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema;
2465
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema;
2415
2466
  };
2416
2467
  };
2417
- };
2418
- }
2419
- interface GetPreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetAndPayloadSchema> {
2420
- }
2421
- }
2422
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2423
- interface GetPreferencesResponsePayload {
2424
- 'selectedCalendarIds'?: string[] | undefined | null;
2425
- 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
2426
- 'visiblePeopleIds'?: string[] | undefined | null;
2427
- }
2428
- interface GetPreferencesResponsePayloadSchema extends SpruceSchema.Schema {
2429
- id: 'getPreferencesResponsePayload';
2430
- version: 'v2021_05_19';
2431
- namespace: 'Calendar';
2432
- name: '';
2433
- fields: {
2434
- /** . */
2435
- 'selectedCalendarIds': {
2436
- type: 'id';
2437
- isArray: true;
2438
- minArrayLength: 0;
2439
- options: undefined;
2440
- };
2441
2468
  /** . */
2442
- 'visiblePeopleMode': {
2443
- type: 'select';
2469
+ 'payload': {
2470
+ type: 'schema';
2471
+ isRequired: true;
2444
2472
  options: {
2445
- choices: [{
2446
- "value": "me";
2447
- "label": "Me";
2448
- }, {
2449
- "value": "working";
2450
- "label": "Working";
2451
- }, {
2452
- "value": "custom";
2453
- "label": "Custom";
2454
- }];
2473
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema;
2455
2474
  };
2456
2475
  };
2457
- /** . */
2458
- 'visiblePeopleIds': {
2459
- type: 'text';
2460
- isArray: true;
2461
- options: undefined;
2462
- };
2463
2476
  };
2464
2477
  }
2465
- interface GetPreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesResponsePayloadSchema> {
2478
+ interface GetConflictsForTimeRangeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetAndPayloadSchema> {
2466
2479
  }
2467
2480
  }
2468
2481
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2469
- interface ListCalendarEventTypesEmitPayload {
2470
- 'shouldShowOnlyMine'?: boolean | undefined | null;
2482
+ interface GetConflictsForTimeRangeResponsePayload {
2483
+ 'isAvailable': boolean;
2484
+ 'excludedBy'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2485
+ 'overlapsWith'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2471
2486
  }
2472
- interface ListCalendarEventTypesEmitPayloadSchema extends SpruceSchema.Schema {
2473
- id: 'listCalendarEventTypesEmitPayload';
2487
+ interface GetConflictsForTimeRangeResponsePayloadSchema extends SpruceSchema.Schema {
2488
+ id: 'getConflictsForTimeRangeResponsePayload';
2474
2489
  version: 'v2021_05_19';
2475
2490
  namespace: 'Calendar';
2476
2491
  name: '';
2477
2492
  fields: {
2478
2493
  /** . */
2479
- 'shouldShowOnlyMine': {
2494
+ 'isAvailable': {
2480
2495
  type: 'boolean';
2496
+ isRequired: true;
2481
2497
  options: undefined;
2482
2498
  };
2483
- };
2484
- }
2485
- interface ListCalendarEventTypesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesEmitPayloadSchema> {
2486
- }
2487
- }
2488
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2489
- interface ListCalendarEventTypesResponsePayload {
2490
- 'calendarEventTypes': SpruceSchemas.Calendar.v2021_05_19.CalendarEventType[];
2491
- 'count': number;
2492
- }
2493
- interface ListCalendarEventTypesResponsePayloadSchema extends SpruceSchema.Schema {
2494
- id: 'listCalendarEventTypesResponsePayload';
2495
- version: 'v2021_05_19';
2496
- namespace: 'Calendar';
2497
- name: '';
2498
- fields: {
2499
2499
  /** . */
2500
- 'calendarEventTypes': {
2500
+ 'excludedBy': {
2501
2501
  type: 'schema';
2502
- isRequired: true;
2503
2502
  isArray: true;
2504
- minArrayLength: 0;
2505
2503
  options: {
2506
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema;
2504
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2507
2505
  };
2508
2506
  };
2509
2507
  /** . */
2510
- 'count': {
2511
- type: 'number';
2512
- isRequired: true;
2513
- options: undefined;
2508
+ 'overlapsWith': {
2509
+ type: 'schema';
2510
+ isArray: true;
2511
+ options: {
2512
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2513
+ };
2514
2514
  };
2515
2515
  };
2516
2516
  }
2517
- interface ListCalendarEventTypesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarEventTypesResponsePayloadSchema> {
2517
+ interface GetConflictsForTimeRangeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeResponsePayloadSchema> {
2518
2518
  }
2519
2519
  }
2520
2520
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -2715,6 +2715,135 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2715
2715
  interface ListCalendarsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListCalendarsResponsePayloadSchema> {
2716
2716
  }
2717
2717
  }
2718
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2719
+ interface UpdatePreferencesEmitTarget {
2720
+ 'organizationId': string;
2721
+ }
2722
+ interface UpdatePreferencesEmitTargetSchema extends SpruceSchema.Schema {
2723
+ id: 'updatePreferencesEmitTarget';
2724
+ version: 'v2021_05_19';
2725
+ namespace: 'Calendar';
2726
+ name: '';
2727
+ fields: {
2728
+ /** . */
2729
+ 'organizationId': {
2730
+ type: 'id';
2731
+ isRequired: true;
2732
+ options: undefined;
2733
+ };
2734
+ };
2735
+ }
2736
+ interface UpdatePreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema> {
2737
+ }
2738
+ }
2739
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2740
+ interface UpdatePreferencesEmitPayload {
2741
+ 'selectedCalendarIds'?: string[] | undefined | null;
2742
+ 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
2743
+ 'visiblePeopleIds'?: string[] | undefined | null;
2744
+ }
2745
+ interface UpdatePreferencesEmitPayloadSchema extends SpruceSchema.Schema {
2746
+ id: 'updatePreferencesEmitPayload';
2747
+ version: 'v2021_05_19';
2748
+ namespace: 'Calendar';
2749
+ name: '';
2750
+ fields: {
2751
+ /** . */
2752
+ 'selectedCalendarIds': {
2753
+ type: 'id';
2754
+ isArray: true;
2755
+ minArrayLength: 0;
2756
+ options: undefined;
2757
+ };
2758
+ /** . */
2759
+ 'visiblePeopleMode': {
2760
+ type: 'select';
2761
+ options: {
2762
+ choices: [{
2763
+ "value": "me";
2764
+ "label": "Me";
2765
+ }, {
2766
+ "value": "working";
2767
+ "label": "Working";
2768
+ }, {
2769
+ "value": "custom";
2770
+ "label": "Custom";
2771
+ }];
2772
+ };
2773
+ };
2774
+ /** . */
2775
+ 'visiblePeopleIds': {
2776
+ type: 'text';
2777
+ isArray: true;
2778
+ options: undefined;
2779
+ };
2780
+ };
2781
+ }
2782
+ interface UpdatePreferencesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema> {
2783
+ }
2784
+ }
2785
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2786
+ interface UpdatePreferencesEmitTargetAndPayload {
2787
+ /** Source. */
2788
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2789
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTarget;
2790
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayload | undefined | null;
2791
+ }
2792
+ interface UpdatePreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2793
+ id: 'updatePreferencesEmitTargetAndPayload';
2794
+ version: 'v2021_05_19';
2795
+ namespace: 'Calendar';
2796
+ name: '';
2797
+ fields: {
2798
+ /** Source. */
2799
+ 'source': {
2800
+ label: 'Source';
2801
+ type: 'schema';
2802
+ options: {
2803
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2804
+ };
2805
+ };
2806
+ /** . */
2807
+ 'target': {
2808
+ type: 'schema';
2809
+ isRequired: true;
2810
+ options: {
2811
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema;
2812
+ };
2813
+ };
2814
+ /** . */
2815
+ 'payload': {
2816
+ type: 'schema';
2817
+ options: {
2818
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema;
2819
+ };
2820
+ };
2821
+ };
2822
+ }
2823
+ interface UpdatePreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetAndPayloadSchema> {
2824
+ }
2825
+ }
2826
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
2827
+ interface UpdatePreferencesResponsePayload {
2828
+ 'success': boolean;
2829
+ }
2830
+ interface UpdatePreferencesResponsePayloadSchema extends SpruceSchema.Schema {
2831
+ id: 'updatePreferencesResponsePayload';
2832
+ version: 'v2021_05_19';
2833
+ namespace: 'Calendar';
2834
+ name: '';
2835
+ fields: {
2836
+ /** . */
2837
+ 'success': {
2838
+ type: 'boolean';
2839
+ isRequired: true;
2840
+ options: undefined;
2841
+ };
2842
+ };
2843
+ }
2844
+ interface UpdatePreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesResponsePayloadSchema> {
2845
+ }
2846
+ }
2718
2847
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2719
2848
  interface RegisterEventToolsEmitTarget {
2720
2849
  'organizationId': string;
@@ -2834,857 +2963,259 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2834
2963
  }
2835
2964
  }
2836
2965
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2837
- interface StreamSchedulesEmitTarget {
2838
- 'locationId': string;
2839
- 'organizationId'?: string | undefined | null;
2840
- 'personId': string;
2841
- }
2842
- interface StreamSchedulesEmitTargetSchema extends SpruceSchema.Schema {
2843
- id: 'streamSchedulesEmitTarget';
2844
- version: 'v2021_05_19';
2845
- namespace: 'Calendar';
2846
- name: '';
2847
- fields: {
2848
- /** . */
2849
- 'locationId': {
2850
- type: 'id';
2851
- isRequired: true;
2852
- options: undefined;
2853
- };
2854
- /** . */
2855
- 'organizationId': {
2856
- type: 'id';
2857
- options: undefined;
2858
- };
2859
- /** . */
2860
- 'personId': {
2861
- type: 'id';
2862
- isRequired: true;
2863
- options: undefined;
2864
- };
2865
- };
2866
- }
2867
- interface StreamSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetSchema> {
2868
- }
2869
- }
2870
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2871
- interface StreamSchedulesEmitTargetAndPayload {
2872
- /** Source. */
2873
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2874
- 'target': SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTarget;
2875
- 'payload': SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayload;
2876
- }
2877
- interface StreamSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2878
- id: 'streamSchedulesEmitTargetAndPayload';
2879
- version: 'v2021_05_19';
2880
- namespace: 'Calendar';
2881
- name: '';
2882
- fields: {
2883
- /** Source. */
2884
- 'source': {
2885
- label: 'Source';
2886
- type: 'schema';
2887
- options: {
2888
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2889
- };
2890
- };
2891
- /** . */
2892
- 'target': {
2893
- type: 'schema';
2894
- isRequired: true;
2895
- options: {
2896
- schema: SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetSchema;
2897
- };
2898
- };
2899
- /** . */
2900
- 'payload': {
2901
- type: 'schema';
2902
- isRequired: true;
2903
- options: {
2904
- schema: SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayloadSchema;
2905
- };
2906
- };
2907
- };
2908
- }
2909
- interface StreamSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetAndPayloadSchema> {
2910
- }
2911
- }
2912
- namespace SpruceSchemas.MercuryChunkingEmitter.v2023_10_21 {
2913
- interface ChunkPaging {
2914
- 'total': number;
2915
- 'current': number;
2916
- }
2917
- interface ChunkPagingSchema extends SpruceSchema.Schema {
2918
- id: 'chunkPaging';
2919
- version: 'v2023_10_21';
2920
- namespace: 'MercuryChunkingEmitter';
2921
- name: 'Chunk Paging';
2922
- fields: {
2923
- /** . */
2924
- 'total': {
2925
- type: 'number';
2926
- isRequired: true;
2927
- options: undefined;
2928
- };
2929
- /** . */
2930
- 'current': {
2931
- type: 'number';
2932
- isRequired: true;
2933
- options: undefined;
2934
- };
2935
- };
2936
- }
2937
- interface ChunkPagingEntity extends SchemaEntity<SpruceSchemas.MercuryChunkingEmitter.v2023_10_21.ChunkPagingSchema> {
2938
- }
2939
- }
2940
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2941
- interface StreamSchedulesEmitPayload {
2942
- 'chunkingId': string;
2943
- 'events': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
2944
- 'chunk': SpruceSchemas.MercuryChunkingEmitter.v2023_10_21.ChunkPaging;
2966
+ interface UpsertCalendarEventTypeEmitTarget {
2967
+ 'slug': string;
2945
2968
  }
2946
- interface StreamSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
2947
- id: 'streamSchedulesEmitPayload';
2969
+ interface UpsertCalendarEventTypeEmitTargetSchema extends SpruceSchema.Schema {
2970
+ id: 'upsertCalendarEventTypeEmitTarget';
2948
2971
  version: 'v2021_05_19';
2949
2972
  namespace: 'Calendar';
2950
2973
  name: '';
2951
2974
  fields: {
2952
2975
  /** . */
2953
- 'chunkingId': {
2954
- type: 'id';
2976
+ 'slug': {
2977
+ type: 'text';
2955
2978
  isRequired: true;
2956
2979
  options: undefined;
2957
2980
  };
2958
- /** . */
2959
- 'events': {
2960
- type: 'schema';
2961
- isRequired: true;
2962
- isArray: true;
2963
- minArrayLength: 0;
2964
- options: {
2965
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2966
- };
2967
- };
2968
- /** . */
2969
- 'chunk': {
2970
- type: 'schema';
2971
- isRequired: true;
2972
- options: {
2973
- schema: SpruceSchemas.MercuryChunkingEmitter.v2023_10_21.ChunkPagingSchema;
2974
- };
2975
- };
2976
2981
  };
2977
2982
  }
2978
- interface StreamSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayloadSchema> {
2983
+ interface UpsertCalendarEventTypeEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitTargetSchema> {
2979
2984
  }
2980
2985
  }
2981
2986
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2982
- interface UpdateCalendarEventEmitTarget {
2983
- 'organizationId'?: string | undefined | null;
2984
- 'locationId'?: string | undefined | null;
2985
- 'calendarEventId': string;
2986
- 'calendarEventPersonId': string;
2987
+ interface UpsertCalendarEventTypeEmitPayload {
2988
+ 'name'?: string | undefined | null;
2989
+ 'slug'?: string | undefined | null;
2990
+ 'viewControllerId'?: string | undefined | null;
2991
+ 'lineIcon'?: ("add-circle" | "add-square" | "add" | "alarm" | "arrow-back" | "arrow-down-circle" | "arrow-down" | "arrow-next" | "arrow-up-circle" | "arrow-up" | "attachment" | "award-badge" | "binoculars" | "bolt" | "book-open" | "book" | "bookmark" | "calendar-add" | "calendar" | "camera" | "cellphone" | "checkmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clipboard" | "clock" | "close-circle" | "close-square" | "close" | "code" | "coffee" | "command" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "crop" | "delete" | "document-blank" | "document-new" | "document-text" | "download-cloud" | "download" | "edit-box" | "edit-line" | "email" | "emoji-happy" | "emoji-sad" | "external-link" | "fav-heart" | "flag" | "flip-01" | "flip-02" | "folder" | "globe" | "hash-tag" | "headphones" | "help-buoy" | "help-circle" | "home" | "info" | "jump" | "layers" | "link-angle" | "link-flat" | "loader" | "location-pin" | "lock" | "map" | "message-circle" | "message-square" | "mic-off" | "mic-on" | "minus-circle" | "minus-square" | "money-sign" | "more-horizontal" | "more-vertical" | "notification-off" | "notification-on" | "object" | "pause-circle" | "phone-unavailable" | "phone" | "photo" | "picked" | "play-circle" | "present" | "refresh-circle" | "refresh" | "repeat" | "restricted" | "rotate" | "search-no" | "search" | "selector-checked" | "selector-circle-filled" | "selector-circle" | "send" | "settings-filled" | "settings" | "share" | "shopping-bag" | "shopping-cart" | "sort-filter-down" | "sort-filter-up" | "sound-off" | "sound-on" | "sprucebot" | "star-filled" | "star" | "sun" | "tag" | "time" | "tool" | "trending-down" | "trending-up" | "triangle" | "unlock" | "upload-cloud" | "upload" | "user-add" | "user-delete" | "user" | "users" | "video-off" | "video" | "warning" | "wifi" | "zoom-in" | "zoom-out") | undefined | null;
2987
2992
  }
2988
- interface UpdateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
2989
- id: 'updateCalendarEventEmitTarget';
2993
+ interface UpsertCalendarEventTypeEmitPayloadSchema extends SpruceSchema.Schema {
2994
+ id: 'upsertCalendarEventTypeEmitPayload';
2990
2995
  version: 'v2021_05_19';
2991
2996
  namespace: 'Calendar';
2992
2997
  name: '';
2993
2998
  fields: {
2994
2999
  /** . */
2995
- 'organizationId': {
2996
- type: 'id';
2997
- options: undefined;
2998
- };
2999
- /** . */
3000
- 'locationId': {
3001
- type: 'id';
3000
+ 'name': {
3001
+ type: 'text';
3002
3002
  options: undefined;
3003
3003
  };
3004
3004
  /** . */
3005
- 'calendarEventId': {
3006
- type: 'id';
3007
- isRequired: true;
3005
+ 'slug': {
3006
+ type: 'text';
3008
3007
  options: undefined;
3009
3008
  };
3010
3009
  /** . */
3011
- 'calendarEventPersonId': {
3010
+ 'viewControllerId': {
3012
3011
  type: 'id';
3013
- isRequired: true;
3014
3012
  options: undefined;
3015
3013
  };
3016
- };
3017
- }
3018
- interface UpdateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema> {
3019
- }
3020
- }
3021
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3022
- interface UpdateCalendarEventEmitTargetAndPayload {
3023
- /** Source. */
3024
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3025
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTarget;
3026
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayload | undefined | null;
3027
- }
3028
- interface UpdateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3029
- id: 'updateCalendarEventEmitTargetAndPayload';
3030
- version: 'v2021_05_19';
3031
- namespace: 'Calendar';
3032
- name: '';
3033
- fields: {
3034
- /** Source. */
3035
- 'source': {
3036
- label: 'Source';
3037
- type: 'schema';
3038
- options: {
3039
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3040
- };
3041
- };
3042
- /** . */
3043
- 'target': {
3044
- type: 'schema';
3045
- isRequired: true;
3046
- options: {
3047
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema;
3048
- };
3049
- };
3050
- /** . */
3051
- 'payload': {
3052
- type: 'schema';
3053
- options: {
3054
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema;
3055
- };
3056
- };
3057
- };
3058
- }
3059
- interface UpdateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetAndPayloadSchema> {
3060
- }
3061
- }
3062
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3063
- interface UpdateCalendarEventEmitPayload {
3064
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3065
- 'target'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTarget | undefined | null;
3066
- 'calendarId'?: string | undefined | null;
3067
- 'eventTypeSlug'?: string | undefined | null;
3068
- 'startDateTimeMs'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3069
- 'isBusy'?: boolean | undefined | null;
3070
- 'isResizeable'?: boolean | undefined | null;
3071
- 'style'?: ("draft" | "tentative" | "upcoming" | "unavailable" | "blocked" | "active" | "past" | "warn" | "critical") | undefined | null;
3072
- 'groupId'?: string | undefined | null;
3073
- 'timeBlocks'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlock[] | undefined | null;
3074
- 'repeats'?: ("weekly" | "monthly" | "daily") | undefined | null;
3075
- 'daysOfWeek'?: ("sun" | "mon" | "tue" | "wed" | "thur" | "fri" | "sat")[] | undefined | null;
3076
- 'daysOfMonth'?: ("1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31")[] | undefined | null;
3077
- 'repeatsUntil'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3078
- 'occurrences'?: number | undefined | null;
3079
- 'interval'?: number | undefined | null;
3080
- 'nthOccurrences'?: number[] | undefined | null;
3081
- 'exclusionDates'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDate[] | undefined | null;
3082
- 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3083
- 'nthInRepeating'?: number | undefined | null;
3084
- 'totalInRepeating'?: number | undefined | null;
3085
- 'meta'?: (Record<string, any>) | undefined | null;
3086
- 'addToExclusionDates'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDate[] | undefined | null;
3087
- 'dateToUpdate'?: number | undefined | null;
3088
- 'shouldUpdateAllEventsGoingForward'?: boolean | undefined | null;
3089
- /** . It will show on this person's calendar going forward! */
3090
- 'newTargetPersonId'?: string | undefined | null;
3091
- }
3092
- interface UpdateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
3093
- id: 'updateCalendarEventEmitPayload';
3094
- version: 'v2021_05_19';
3095
- namespace: 'Calendar';
3096
- name: '';
3097
- fields: {
3098
3014
  /** . */
3099
- 'source': {
3100
- type: 'schema';
3101
- options: {
3102
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3103
- };
3104
- };
3105
- /** . */
3106
- 'target': {
3107
- type: 'schema';
3108
- options: {
3109
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTargetSchema;
3110
- };
3111
- };
3112
- /** . */
3113
- 'calendarId': {
3114
- type: 'id';
3115
- options: undefined;
3116
- };
3117
- /** . */
3118
- 'eventTypeSlug': {
3119
- type: 'text';
3120
- options: undefined;
3121
- };
3122
- /** . */
3123
- 'startDateTimeMs': {
3124
- type: 'dateTime';
3125
- options: undefined;
3126
- };
3127
- /** . */
3128
- 'isBusy': {
3129
- type: 'boolean';
3130
- options: undefined;
3131
- };
3132
- /** . */
3133
- 'isResizeable': {
3134
- type: 'boolean';
3135
- options: undefined;
3136
- };
3137
- /** . */
3138
- 'style': {
3139
- type: 'select';
3015
+ 'lineIcon': {
3016
+ type: 'select';
3140
3017
  options: {
3141
3018
  choices: [{
3142
- "value": "draft";
3143
- "label": "Draft";
3019
+ "value": "add-circle";
3020
+ "label": "add-circle";
3144
3021
  }, {
3145
- "value": "tentative";
3146
- "label": "Tentative";
3022
+ "value": "add-square";
3023
+ "label": "add-square";
3147
3024
  }, {
3148
- "value": "upcoming";
3149
- "label": "Upcoming";
3025
+ "value": "add";
3026
+ "label": "add";
3150
3027
  }, {
3151
- "value": "unavailable";
3152
- "label": "Unavailable";
3028
+ "value": "alarm";
3029
+ "label": "alarm";
3153
3030
  }, {
3154
- "value": "blocked";
3155
- "label": "Blocked";
3031
+ "value": "arrow-back";
3032
+ "label": "arrow-back";
3156
3033
  }, {
3157
- "value": "active";
3158
- "label": "Active";
3034
+ "value": "arrow-down-circle";
3035
+ "label": "arrow-down-circle";
3159
3036
  }, {
3160
- "value": "past";
3161
- "label": "Past";
3037
+ "value": "arrow-down";
3038
+ "label": "arrow-down";
3162
3039
  }, {
3163
- "value": "warn";
3164
- "label": "Warning";
3040
+ "value": "arrow-next";
3041
+ "label": "arrow-next";
3165
3042
  }, {
3166
- "value": "critical";
3167
- "label": "Critical";
3168
- }];
3169
- };
3170
- };
3171
- /** . */
3172
- 'groupId': {
3173
- type: 'id';
3174
- options: undefined;
3175
- };
3176
- /** . */
3177
- 'timeBlocks': {
3178
- type: 'schema';
3179
- isArray: true;
3180
- minArrayLength: 1;
3181
- options: {
3182
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlockSchema;
3183
- };
3184
- };
3185
- /** . */
3186
- 'repeats': {
3187
- type: 'select';
3188
- options: {
3189
- choices: [{
3190
- "value": "weekly";
3191
- "label": "Weekly";
3043
+ "value": "arrow-up-circle";
3044
+ "label": "arrow-up-circle";
3192
3045
  }, {
3193
- "value": "monthly";
3194
- "label": "Monthly";
3046
+ "value": "arrow-up";
3047
+ "label": "arrow-up";
3195
3048
  }, {
3196
- "value": "daily";
3197
- "label": "Daily";
3198
- }];
3199
- };
3200
- };
3201
- /** . */
3202
- 'daysOfWeek': {
3203
- type: 'select';
3204
- isArray: true;
3205
- options: {
3206
- choices: [{
3207
- "value": "sun";
3208
- "label": "Sunday";
3049
+ "value": "attachment";
3050
+ "label": "attachment";
3209
3051
  }, {
3210
- "value": "mon";
3211
- "label": "Monday";
3052
+ "value": "award-badge";
3053
+ "label": "award-badge";
3212
3054
  }, {
3213
- "value": "tue";
3214
- "label": "Tuesday";
3055
+ "value": "binoculars";
3056
+ "label": "binoculars";
3215
3057
  }, {
3216
- "value": "wed";
3217
- "label": "Wednesday";
3058
+ "value": "bolt";
3059
+ "label": "bolt";
3218
3060
  }, {
3219
- "value": "thur";
3220
- "label": "Thursday";
3061
+ "value": "book-open";
3062
+ "label": "book-open";
3221
3063
  }, {
3222
- "value": "fri";
3223
- "label": "Friday";
3064
+ "value": "book";
3065
+ "label": "book";
3224
3066
  }, {
3225
- "value": "sat";
3226
- "label": "Saturday";
3227
- }];
3228
- };
3229
- };
3230
- /** . */
3231
- 'daysOfMonth': {
3232
- type: 'select';
3233
- isArray: true;
3234
- options: {
3235
- choices: [{
3236
- "value": "1";
3237
- "label": "1";
3067
+ "value": "bookmark";
3068
+ "label": "bookmark";
3238
3069
  }, {
3239
- "value": "2";
3240
- "label": "2";
3070
+ "value": "calendar-add";
3071
+ "label": "calendar-add";
3241
3072
  }, {
3242
- "value": "3";
3243
- "label": "3";
3073
+ "value": "calendar";
3074
+ "label": "calendar";
3244
3075
  }, {
3245
- "value": "4";
3246
- "label": "4";
3076
+ "value": "camera";
3077
+ "label": "camera";
3247
3078
  }, {
3248
- "value": "5";
3249
- "label": "5";
3079
+ "value": "cellphone";
3080
+ "label": "cellphone";
3250
3081
  }, {
3251
- "value": "6";
3252
- "label": "6";
3082
+ "value": "checkmark";
3083
+ "label": "checkmark";
3253
3084
  }, {
3254
- "value": "7";
3255
- "label": "7";
3085
+ "value": "chevron-down";
3086
+ "label": "chevron-down";
3256
3087
  }, {
3257
- "value": "8";
3258
- "label": "8";
3088
+ "value": "chevron-left";
3089
+ "label": "chevron-left";
3259
3090
  }, {
3260
- "value": "9";
3261
- "label": "9";
3091
+ "value": "chevron-right";
3092
+ "label": "chevron-right";
3262
3093
  }, {
3263
- "value": "10";
3264
- "label": "10";
3094
+ "value": "chevron-up";
3095
+ "label": "chevron-up";
3265
3096
  }, {
3266
- "value": "11";
3267
- "label": "11";
3097
+ "value": "clipboard";
3098
+ "label": "clipboard";
3268
3099
  }, {
3269
- "value": "12";
3270
- "label": "12";
3100
+ "value": "clock";
3101
+ "label": "clock";
3271
3102
  }, {
3272
- "value": "13";
3273
- "label": "13";
3103
+ "value": "close-circle";
3104
+ "label": "close-circle";
3274
3105
  }, {
3275
- "value": "14";
3276
- "label": "14";
3106
+ "value": "close-square";
3107
+ "label": "close-square";
3277
3108
  }, {
3278
- "value": "15";
3279
- "label": "15";
3109
+ "value": "close";
3110
+ "label": "close";
3280
3111
  }, {
3281
- "value": "16";
3282
- "label": "16";
3112
+ "value": "code";
3113
+ "label": "code";
3283
3114
  }, {
3284
- "value": "17";
3285
- "label": "17";
3115
+ "value": "coffee";
3116
+ "label": "coffee";
3286
3117
  }, {
3287
- "value": "18";
3288
- "label": "18";
3118
+ "value": "command";
3119
+ "label": "command";
3289
3120
  }, {
3290
- "value": "19";
3291
- "label": "19";
3121
+ "value": "corner-down-left";
3122
+ "label": "corner-down-left";
3292
3123
  }, {
3293
- "value": "20";
3294
- "label": "20";
3124
+ "value": "corner-down-right";
3125
+ "label": "corner-down-right";
3295
3126
  }, {
3296
- "value": "21";
3297
- "label": "21";
3127
+ "value": "corner-left-down";
3128
+ "label": "corner-left-down";
3298
3129
  }, {
3299
- "value": "22";
3300
- "label": "22";
3130
+ "value": "corner-left-up";
3131
+ "label": "corner-left-up";
3301
3132
  }, {
3302
- "value": "23";
3303
- "label": "23";
3133
+ "value": "corner-right-down";
3134
+ "label": "corner-right-down";
3304
3135
  }, {
3305
- "value": "24";
3306
- "label": "24";
3136
+ "value": "corner-right-up";
3137
+ "label": "corner-right-up";
3307
3138
  }, {
3308
- "value": "25";
3309
- "label": "25";
3139
+ "value": "corner-up-left";
3140
+ "label": "corner-up-left";
3310
3141
  }, {
3311
- "value": "26";
3312
- "label": "26";
3142
+ "value": "corner-up-right";
3143
+ "label": "corner-up-right";
3313
3144
  }, {
3314
- "value": "27";
3315
- "label": "27";
3145
+ "value": "crop";
3146
+ "label": "crop";
3316
3147
  }, {
3317
- "value": "28";
3318
- "label": "28";
3148
+ "value": "delete";
3149
+ "label": "delete";
3319
3150
  }, {
3320
- "value": "29";
3321
- "label": "29";
3322
- }, {
3323
- "value": "30";
3324
- "label": "30";
3151
+ "value": "document-blank";
3152
+ "label": "document-blank";
3325
3153
  }, {
3326
- "value": "31";
3327
- "label": "31";
3328
- }];
3329
- };
3330
- };
3331
- /** . */
3332
- 'repeatsUntil': {
3333
- type: 'dateTime';
3334
- options: undefined;
3335
- };
3336
- /** . */
3337
- 'occurrences': {
3338
- type: 'number';
3339
- options: undefined;
3340
- };
3341
- /** . */
3342
- 'interval': {
3343
- type: 'number';
3344
- options: undefined;
3345
- };
3346
- /** . */
3347
- 'nthOccurrences': {
3348
- type: 'number';
3349
- isArray: true;
3350
- options: undefined;
3351
- };
3352
- /** . */
3353
- 'exclusionDates': {
3354
- type: 'schema';
3355
- isArray: true;
3356
- options: {
3357
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
3358
- };
3359
- };
3360
- /** . */
3361
- 'dateDeleted': {
3362
- type: 'dateTime';
3363
- options: undefined;
3364
- };
3365
- /** . */
3366
- 'nthInRepeating': {
3367
- type: 'number';
3368
- options: undefined;
3369
- };
3370
- /** . */
3371
- 'totalInRepeating': {
3372
- type: 'number';
3373
- options: undefined;
3374
- };
3375
- /** . */
3376
- 'meta': {
3377
- type: 'raw';
3378
- options: {
3379
- valueType: `Record<string, any>`;
3380
- };
3381
- };
3382
- /** . */
3383
- 'addToExclusionDates': {
3384
- type: 'schema';
3385
- isArray: true;
3386
- options: {
3387
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
3388
- };
3389
- };
3390
- /** . */
3391
- 'dateToUpdate': {
3392
- type: 'number';
3393
- options: undefined;
3394
- };
3395
- /** . */
3396
- 'shouldUpdateAllEventsGoingForward': {
3397
- type: 'boolean';
3398
- options: undefined;
3399
- };
3400
- /** . It will show on this person's calendar going forward! */
3401
- 'newTargetPersonId': {
3402
- type: 'id';
3403
- hint: 'It will show on this person\'s calendar going forward!';
3404
- options: undefined;
3405
- };
3406
- };
3407
- }
3408
- interface UpdateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema> {
3409
- }
3410
- }
3411
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3412
- interface UpdateCalendarEventResponsePayload {
3413
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
3414
- }
3415
- interface UpdateCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
3416
- id: 'updateCalendarEventResponsePayload';
3417
- version: 'v2021_05_19';
3418
- namespace: 'Calendar';
3419
- name: '';
3420
- fields: {
3421
- /** . */
3422
- 'calendarEvent': {
3423
- type: 'schema';
3424
- isRequired: true;
3425
- options: {
3426
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
3427
- };
3428
- };
3429
- };
3430
- }
3431
- interface UpdateCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventResponsePayloadSchema> {
3432
- }
3433
- }
3434
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3435
- interface UpsertCalendarEventTypeEmitTarget {
3436
- 'slug': string;
3437
- }
3438
- interface UpsertCalendarEventTypeEmitTargetSchema extends SpruceSchema.Schema {
3439
- id: 'upsertCalendarEventTypeEmitTarget';
3440
- version: 'v2021_05_19';
3441
- namespace: 'Calendar';
3442
- name: '';
3443
- fields: {
3444
- /** . */
3445
- 'slug': {
3446
- type: 'text';
3447
- isRequired: true;
3448
- options: undefined;
3449
- };
3450
- };
3451
- }
3452
- interface UpsertCalendarEventTypeEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitTargetSchema> {
3453
- }
3454
- }
3455
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3456
- interface UpsertCalendarEventTypeEmitPayload {
3457
- 'name'?: string | undefined | null;
3458
- 'slug'?: string | undefined | null;
3459
- 'viewControllerId'?: string | undefined | null;
3460
- 'lineIcon'?: ("add-circle" | "add-square" | "add" | "alarm" | "arrow-back" | "arrow-down-circle" | "arrow-down" | "arrow-next" | "arrow-up-circle" | "arrow-up" | "attachment" | "award-badge" | "binoculars" | "bolt" | "book-open" | "book" | "bookmark" | "calendar-add" | "calendar" | "camera" | "cellphone" | "checkmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clipboard" | "clock" | "close-circle" | "close-square" | "close" | "code" | "coffee" | "command" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "crop" | "delete" | "document-blank" | "document-new" | "document-text" | "download-cloud" | "download" | "edit-box" | "edit-line" | "email" | "emoji-happy" | "emoji-sad" | "external-link" | "fav-heart" | "flag" | "flip-01" | "flip-02" | "folder" | "globe" | "hash-tag" | "headphones" | "help-buoy" | "help-circle" | "home" | "info" | "jump" | "layers" | "link-angle" | "link-flat" | "loader" | "location-pin" | "lock" | "map" | "message-circle" | "message-square" | "mic-off" | "mic-on" | "minus-circle" | "minus-square" | "money-sign" | "more-horizontal" | "more-vertical" | "notification-off" | "notification-on" | "object" | "pause-circle" | "phone-unavailable" | "phone" | "photo" | "picked" | "play-circle" | "present" | "refresh-circle" | "refresh" | "repeat" | "restricted" | "rotate" | "search-no" | "search" | "selector-checked" | "selector-circle-filled" | "selector-circle" | "send" | "settings-filled" | "settings" | "share" | "shopping-bag" | "shopping-cart" | "sort-filter-down" | "sort-filter-up" | "sound-off" | "sound-on" | "sprucebot" | "star-filled" | "star" | "sun" | "tag" | "time" | "tool" | "trending-down" | "trending-up" | "triangle" | "unlock" | "upload-cloud" | "upload" | "user-add" | "user-delete" | "user" | "users" | "video-off" | "video" | "warning" | "wifi" | "zoom-in" | "zoom-out") | undefined | null;
3461
- }
3462
- interface UpsertCalendarEventTypeEmitPayloadSchema extends SpruceSchema.Schema {
3463
- id: 'upsertCalendarEventTypeEmitPayload';
3464
- version: 'v2021_05_19';
3465
- namespace: 'Calendar';
3466
- name: '';
3467
- fields: {
3468
- /** . */
3469
- 'name': {
3470
- type: 'text';
3471
- options: undefined;
3472
- };
3473
- /** . */
3474
- 'slug': {
3475
- type: 'text';
3476
- options: undefined;
3477
- };
3478
- /** . */
3479
- 'viewControllerId': {
3480
- type: 'id';
3481
- options: undefined;
3482
- };
3483
- /** . */
3484
- 'lineIcon': {
3485
- type: 'select';
3486
- options: {
3487
- choices: [{
3488
- "value": "add-circle";
3489
- "label": "add-circle";
3154
+ "value": "document-new";
3155
+ "label": "document-new";
3490
3156
  }, {
3491
- "value": "add-square";
3492
- "label": "add-square";
3157
+ "value": "document-text";
3158
+ "label": "document-text";
3493
3159
  }, {
3494
- "value": "add";
3495
- "label": "add";
3160
+ "value": "download-cloud";
3161
+ "label": "download-cloud";
3496
3162
  }, {
3497
- "value": "alarm";
3498
- "label": "alarm";
3163
+ "value": "download";
3164
+ "label": "download";
3499
3165
  }, {
3500
- "value": "arrow-back";
3501
- "label": "arrow-back";
3166
+ "value": "edit-box";
3167
+ "label": "edit-box";
3502
3168
  }, {
3503
- "value": "arrow-down-circle";
3504
- "label": "arrow-down-circle";
3169
+ "value": "edit-line";
3170
+ "label": "edit-line";
3505
3171
  }, {
3506
- "value": "arrow-down";
3507
- "label": "arrow-down";
3172
+ "value": "email";
3173
+ "label": "email";
3508
3174
  }, {
3509
- "value": "arrow-next";
3510
- "label": "arrow-next";
3175
+ "value": "emoji-happy";
3176
+ "label": "emoji-happy";
3511
3177
  }, {
3512
- "value": "arrow-up-circle";
3513
- "label": "arrow-up-circle";
3178
+ "value": "emoji-sad";
3179
+ "label": "emoji-sad";
3514
3180
  }, {
3515
- "value": "arrow-up";
3516
- "label": "arrow-up";
3181
+ "value": "external-link";
3182
+ "label": "external-link";
3517
3183
  }, {
3518
- "value": "attachment";
3519
- "label": "attachment";
3184
+ "value": "fav-heart";
3185
+ "label": "fav-heart";
3520
3186
  }, {
3521
- "value": "award-badge";
3522
- "label": "award-badge";
3187
+ "value": "flag";
3188
+ "label": "flag";
3523
3189
  }, {
3524
- "value": "binoculars";
3525
- "label": "binoculars";
3190
+ "value": "flip-01";
3191
+ "label": "flip-01";
3526
3192
  }, {
3527
- "value": "bolt";
3528
- "label": "bolt";
3193
+ "value": "flip-02";
3194
+ "label": "flip-02";
3529
3195
  }, {
3530
- "value": "book-open";
3531
- "label": "book-open";
3196
+ "value": "folder";
3197
+ "label": "folder";
3532
3198
  }, {
3533
- "value": "book";
3534
- "label": "book";
3199
+ "value": "globe";
3200
+ "label": "globe";
3535
3201
  }, {
3536
- "value": "bookmark";
3537
- "label": "bookmark";
3202
+ "value": "hash-tag";
3203
+ "label": "hash-tag";
3538
3204
  }, {
3539
- "value": "calendar-add";
3540
- "label": "calendar-add";
3205
+ "value": "headphones";
3206
+ "label": "headphones";
3541
3207
  }, {
3542
- "value": "calendar";
3543
- "label": "calendar";
3208
+ "value": "help-buoy";
3209
+ "label": "help-buoy";
3544
3210
  }, {
3545
- "value": "camera";
3546
- "label": "camera";
3211
+ "value": "help-circle";
3212
+ "label": "help-circle";
3547
3213
  }, {
3548
- "value": "cellphone";
3549
- "label": "cellphone";
3214
+ "value": "home";
3215
+ "label": "home";
3550
3216
  }, {
3551
- "value": "checkmark";
3552
- "label": "checkmark";
3553
- }, {
3554
- "value": "chevron-down";
3555
- "label": "chevron-down";
3556
- }, {
3557
- "value": "chevron-left";
3558
- "label": "chevron-left";
3559
- }, {
3560
- "value": "chevron-right";
3561
- "label": "chevron-right";
3562
- }, {
3563
- "value": "chevron-up";
3564
- "label": "chevron-up";
3565
- }, {
3566
- "value": "clipboard";
3567
- "label": "clipboard";
3568
- }, {
3569
- "value": "clock";
3570
- "label": "clock";
3571
- }, {
3572
- "value": "close-circle";
3573
- "label": "close-circle";
3574
- }, {
3575
- "value": "close-square";
3576
- "label": "close-square";
3577
- }, {
3578
- "value": "close";
3579
- "label": "close";
3580
- }, {
3581
- "value": "code";
3582
- "label": "code";
3583
- }, {
3584
- "value": "coffee";
3585
- "label": "coffee";
3586
- }, {
3587
- "value": "command";
3588
- "label": "command";
3589
- }, {
3590
- "value": "corner-down-left";
3591
- "label": "corner-down-left";
3592
- }, {
3593
- "value": "corner-down-right";
3594
- "label": "corner-down-right";
3595
- }, {
3596
- "value": "corner-left-down";
3597
- "label": "corner-left-down";
3598
- }, {
3599
- "value": "corner-left-up";
3600
- "label": "corner-left-up";
3601
- }, {
3602
- "value": "corner-right-down";
3603
- "label": "corner-right-down";
3604
- }, {
3605
- "value": "corner-right-up";
3606
- "label": "corner-right-up";
3607
- }, {
3608
- "value": "corner-up-left";
3609
- "label": "corner-up-left";
3610
- }, {
3611
- "value": "corner-up-right";
3612
- "label": "corner-up-right";
3613
- }, {
3614
- "value": "crop";
3615
- "label": "crop";
3616
- }, {
3617
- "value": "delete";
3618
- "label": "delete";
3619
- }, {
3620
- "value": "document-blank";
3621
- "label": "document-blank";
3622
- }, {
3623
- "value": "document-new";
3624
- "label": "document-new";
3625
- }, {
3626
- "value": "document-text";
3627
- "label": "document-text";
3628
- }, {
3629
- "value": "download-cloud";
3630
- "label": "download-cloud";
3631
- }, {
3632
- "value": "download";
3633
- "label": "download";
3634
- }, {
3635
- "value": "edit-box";
3636
- "label": "edit-box";
3637
- }, {
3638
- "value": "edit-line";
3639
- "label": "edit-line";
3640
- }, {
3641
- "value": "email";
3642
- "label": "email";
3643
- }, {
3644
- "value": "emoji-happy";
3645
- "label": "emoji-happy";
3646
- }, {
3647
- "value": "emoji-sad";
3648
- "label": "emoji-sad";
3649
- }, {
3650
- "value": "external-link";
3651
- "label": "external-link";
3652
- }, {
3653
- "value": "fav-heart";
3654
- "label": "fav-heart";
3655
- }, {
3656
- "value": "flag";
3657
- "label": "flag";
3658
- }, {
3659
- "value": "flip-01";
3660
- "label": "flip-01";
3661
- }, {
3662
- "value": "flip-02";
3663
- "label": "flip-02";
3664
- }, {
3665
- "value": "folder";
3666
- "label": "folder";
3667
- }, {
3668
- "value": "globe";
3669
- "label": "globe";
3670
- }, {
3671
- "value": "hash-tag";
3672
- "label": "hash-tag";
3673
- }, {
3674
- "value": "headphones";
3675
- "label": "headphones";
3676
- }, {
3677
- "value": "help-buoy";
3678
- "label": "help-buoy";
3679
- }, {
3680
- "value": "help-circle";
3681
- "label": "help-circle";
3682
- }, {
3683
- "value": "home";
3684
- "label": "home";
3685
- }, {
3686
- "value": "info";
3687
- "label": "info";
3217
+ "value": "info";
3218
+ "label": "info";
3688
3219
  }, {
3689
3220
  "value": "jump";
3690
3221
  "label": "jump";
@@ -3803,115 +3334,867 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3803
3334
  "value": "settings-filled";
3804
3335
  "label": "settings-filled";
3805
3336
  }, {
3806
- "value": "settings";
3807
- "label": "settings";
3337
+ "value": "settings";
3338
+ "label": "settings";
3339
+ }, {
3340
+ "value": "share";
3341
+ "label": "share";
3342
+ }, {
3343
+ "value": "shopping-bag";
3344
+ "label": "shopping-bag";
3345
+ }, {
3346
+ "value": "shopping-cart";
3347
+ "label": "shopping-cart";
3348
+ }, {
3349
+ "value": "sort-filter-down";
3350
+ "label": "sort-filter-down";
3351
+ }, {
3352
+ "value": "sort-filter-up";
3353
+ "label": "sort-filter-up";
3354
+ }, {
3355
+ "value": "sound-off";
3356
+ "label": "sound-off";
3357
+ }, {
3358
+ "value": "sound-on";
3359
+ "label": "sound-on";
3360
+ }, {
3361
+ "value": "sprucebot";
3362
+ "label": "sprucebot";
3363
+ }, {
3364
+ "value": "star-filled";
3365
+ "label": "star-filled";
3366
+ }, {
3367
+ "value": "star";
3368
+ "label": "star";
3369
+ }, {
3370
+ "value": "sun";
3371
+ "label": "sun";
3372
+ }, {
3373
+ "value": "tag";
3374
+ "label": "tag";
3375
+ }, {
3376
+ "value": "time";
3377
+ "label": "time";
3378
+ }, {
3379
+ "value": "tool";
3380
+ "label": "tool";
3381
+ }, {
3382
+ "value": "trending-down";
3383
+ "label": "trending-down";
3384
+ }, {
3385
+ "value": "trending-up";
3386
+ "label": "trending-up";
3387
+ }, {
3388
+ "value": "triangle";
3389
+ "label": "triangle";
3390
+ }, {
3391
+ "value": "unlock";
3392
+ "label": "unlock";
3393
+ }, {
3394
+ "value": "upload-cloud";
3395
+ "label": "upload-cloud";
3396
+ }, {
3397
+ "value": "upload";
3398
+ "label": "upload";
3399
+ }, {
3400
+ "value": "user-add";
3401
+ "label": "user-add";
3402
+ }, {
3403
+ "value": "user-delete";
3404
+ "label": "user-delete";
3405
+ }, {
3406
+ "value": "user";
3407
+ "label": "user";
3408
+ }, {
3409
+ "value": "users";
3410
+ "label": "users";
3411
+ }, {
3412
+ "value": "video-off";
3413
+ "label": "video-off";
3414
+ }, {
3415
+ "value": "video";
3416
+ "label": "video";
3417
+ }, {
3418
+ "value": "warning";
3419
+ "label": "warning";
3420
+ }, {
3421
+ "value": "wifi";
3422
+ "label": "wifi";
3423
+ }, {
3424
+ "value": "zoom-in";
3425
+ "label": "zoom-in";
3426
+ }, {
3427
+ "value": "zoom-out";
3428
+ "label": "zoom-out";
3429
+ }];
3430
+ };
3431
+ };
3432
+ };
3433
+ }
3434
+ interface UpsertCalendarEventTypeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitPayloadSchema> {
3435
+ }
3436
+ }
3437
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3438
+ interface UpsertCalendarEventTypeEmitTargetAndPayload {
3439
+ /** Source. */
3440
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3441
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitTarget;
3442
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitPayload | undefined | null;
3443
+ }
3444
+ interface UpsertCalendarEventTypeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3445
+ id: 'upsertCalendarEventTypeEmitTargetAndPayload';
3446
+ version: 'v2021_05_19';
3447
+ namespace: 'Calendar';
3448
+ name: '';
3449
+ fields: {
3450
+ /** Source. */
3451
+ 'source': {
3452
+ label: 'Source';
3453
+ type: 'schema';
3454
+ options: {
3455
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3456
+ };
3457
+ };
3458
+ /** . */
3459
+ 'target': {
3460
+ type: 'schema';
3461
+ isRequired: true;
3462
+ options: {
3463
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitTargetSchema;
3464
+ };
3465
+ };
3466
+ /** . */
3467
+ 'payload': {
3468
+ type: 'schema';
3469
+ options: {
3470
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitPayloadSchema;
3471
+ };
3472
+ };
3473
+ };
3474
+ }
3475
+ interface UpsertCalendarEventTypeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitTargetAndPayloadSchema> {
3476
+ }
3477
+ }
3478
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3479
+ interface UpsertCalendarEventTypeResponsePayload {
3480
+ 'calendarEventType': SpruceSchemas.Calendar.v2021_05_19.CalendarEventType;
3481
+ }
3482
+ interface UpsertCalendarEventTypeResponsePayloadSchema extends SpruceSchema.Schema {
3483
+ id: 'upsertCalendarEventTypeResponsePayload';
3484
+ version: 'v2021_05_19';
3485
+ namespace: 'Calendar';
3486
+ name: '';
3487
+ fields: {
3488
+ /** . */
3489
+ 'calendarEventType': {
3490
+ type: 'schema';
3491
+ isRequired: true;
3492
+ options: {
3493
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema;
3494
+ };
3495
+ };
3496
+ };
3497
+ }
3498
+ interface UpsertCalendarEventTypeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeResponsePayloadSchema> {
3499
+ }
3500
+ }
3501
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3502
+ interface StreamSchedulesEmitTarget {
3503
+ 'locationId': string;
3504
+ 'organizationId'?: string | undefined | null;
3505
+ 'personId': string;
3506
+ }
3507
+ interface StreamSchedulesEmitTargetSchema extends SpruceSchema.Schema {
3508
+ id: 'streamSchedulesEmitTarget';
3509
+ version: 'v2021_05_19';
3510
+ namespace: 'Calendar';
3511
+ name: '';
3512
+ fields: {
3513
+ /** . */
3514
+ 'locationId': {
3515
+ type: 'id';
3516
+ isRequired: true;
3517
+ options: undefined;
3518
+ };
3519
+ /** . */
3520
+ 'organizationId': {
3521
+ type: 'id';
3522
+ options: undefined;
3523
+ };
3524
+ /** . */
3525
+ 'personId': {
3526
+ type: 'id';
3527
+ isRequired: true;
3528
+ options: undefined;
3529
+ };
3530
+ };
3531
+ }
3532
+ interface StreamSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetSchema> {
3533
+ }
3534
+ }
3535
+ namespace SpruceSchemas.MercuryChunkingEmitter.v2023_10_21 {
3536
+ interface ChunkPaging {
3537
+ 'total': number;
3538
+ 'current': number;
3539
+ }
3540
+ interface ChunkPagingSchema extends SpruceSchema.Schema {
3541
+ id: 'chunkPaging';
3542
+ version: 'v2023_10_21';
3543
+ namespace: 'MercuryChunkingEmitter';
3544
+ name: 'Chunk Paging';
3545
+ fields: {
3546
+ /** . */
3547
+ 'total': {
3548
+ type: 'number';
3549
+ isRequired: true;
3550
+ options: undefined;
3551
+ };
3552
+ /** . */
3553
+ 'current': {
3554
+ type: 'number';
3555
+ isRequired: true;
3556
+ options: undefined;
3557
+ };
3558
+ };
3559
+ }
3560
+ interface ChunkPagingEntity extends SchemaEntity<SpruceSchemas.MercuryChunkingEmitter.v2023_10_21.ChunkPagingSchema> {
3561
+ }
3562
+ }
3563
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3564
+ interface StreamSchedulesEmitPayload {
3565
+ 'chunkingId': string;
3566
+ 'events': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
3567
+ 'chunk': SpruceSchemas.MercuryChunkingEmitter.v2023_10_21.ChunkPaging;
3568
+ }
3569
+ interface StreamSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
3570
+ id: 'streamSchedulesEmitPayload';
3571
+ version: 'v2021_05_19';
3572
+ namespace: 'Calendar';
3573
+ name: '';
3574
+ fields: {
3575
+ /** . */
3576
+ 'chunkingId': {
3577
+ type: 'id';
3578
+ isRequired: true;
3579
+ options: undefined;
3580
+ };
3581
+ /** . */
3582
+ 'events': {
3583
+ type: 'schema';
3584
+ isRequired: true;
3585
+ isArray: true;
3586
+ minArrayLength: 0;
3587
+ options: {
3588
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
3589
+ };
3590
+ };
3591
+ /** . */
3592
+ 'chunk': {
3593
+ type: 'schema';
3594
+ isRequired: true;
3595
+ options: {
3596
+ schema: SpruceSchemas.MercuryChunkingEmitter.v2023_10_21.ChunkPagingSchema;
3597
+ };
3598
+ };
3599
+ };
3600
+ }
3601
+ interface StreamSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayloadSchema> {
3602
+ }
3603
+ }
3604
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3605
+ interface StreamSchedulesEmitTargetAndPayload {
3606
+ /** Source. */
3607
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3608
+ 'target': SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTarget;
3609
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayload;
3610
+ }
3611
+ interface StreamSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3612
+ id: 'streamSchedulesEmitTargetAndPayload';
3613
+ version: 'v2021_05_19';
3614
+ namespace: 'Calendar';
3615
+ name: '';
3616
+ fields: {
3617
+ /** Source. */
3618
+ 'source': {
3619
+ label: 'Source';
3620
+ type: 'schema';
3621
+ options: {
3622
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3623
+ };
3624
+ };
3625
+ /** . */
3626
+ 'target': {
3627
+ type: 'schema';
3628
+ isRequired: true;
3629
+ options: {
3630
+ schema: SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetSchema;
3631
+ };
3632
+ };
3633
+ /** . */
3634
+ 'payload': {
3635
+ type: 'schema';
3636
+ isRequired: true;
3637
+ options: {
3638
+ schema: SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitPayloadSchema;
3639
+ };
3640
+ };
3641
+ };
3642
+ }
3643
+ interface StreamSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.StreamSchedulesEmitTargetAndPayloadSchema> {
3644
+ }
3645
+ }
3646
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3647
+ interface UpdateCalendarEmitTarget {
3648
+ 'organizationId': string;
3649
+ 'calendarId': string;
3650
+ }
3651
+ interface UpdateCalendarEmitTargetSchema extends SpruceSchema.Schema {
3652
+ id: 'updateCalendarEmitTarget';
3653
+ version: 'v2021_05_19';
3654
+ namespace: 'Calendar';
3655
+ name: '';
3656
+ fields: {
3657
+ /** . */
3658
+ 'organizationId': {
3659
+ type: 'id';
3660
+ isRequired: true;
3661
+ options: undefined;
3662
+ };
3663
+ /** . */
3664
+ 'calendarId': {
3665
+ type: 'id';
3666
+ isRequired: true;
3667
+ options: undefined;
3668
+ };
3669
+ };
3670
+ }
3671
+ interface UpdateCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema> {
3672
+ }
3673
+ }
3674
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3675
+ interface UpdateCalendarEmitPayload {
3676
+ 'slug'?: string | undefined | null;
3677
+ 'title'?: string | undefined | null;
3678
+ 'eventTypes'?: string[] | undefined | null;
3679
+ 'target'?: SpruceSchemas.Calendar.v2021_05_19.CalendarTarget | undefined | null;
3680
+ 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3681
+ 'availableTimeSlotBehavior'?: ("include" | "exclude") | undefined | null;
3682
+ }
3683
+ interface UpdateCalendarEmitPayloadSchema extends SpruceSchema.Schema {
3684
+ id: 'updateCalendarEmitPayload';
3685
+ version: 'v2021_05_19';
3686
+ namespace: 'Calendar';
3687
+ name: '';
3688
+ fields: {
3689
+ /** . */
3690
+ 'slug': {
3691
+ type: 'id';
3692
+ options: undefined;
3693
+ };
3694
+ /** . */
3695
+ 'title': {
3696
+ type: 'text';
3697
+ options: undefined;
3698
+ };
3699
+ /** . */
3700
+ 'eventTypes': {
3701
+ type: 'text';
3702
+ isArray: true;
3703
+ minArrayLength: 0;
3704
+ options: undefined;
3705
+ };
3706
+ /** . */
3707
+ 'target': {
3708
+ type: 'schema';
3709
+ options: {
3710
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarTargetSchema;
3711
+ };
3712
+ };
3713
+ /** . */
3714
+ 'dateDeleted': {
3715
+ type: 'dateTime';
3716
+ options: undefined;
3717
+ };
3718
+ /** . */
3719
+ 'availableTimeSlotBehavior': {
3720
+ type: 'select';
3721
+ options: {
3722
+ choices: [{
3723
+ "value": "include";
3724
+ "label": "Include";
3725
+ }, {
3726
+ "value": "exclude";
3727
+ "label": "Exclude";
3728
+ }];
3729
+ };
3730
+ };
3731
+ };
3732
+ }
3733
+ interface UpdateCalendarEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema> {
3734
+ }
3735
+ }
3736
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3737
+ interface UpdateCalendarEmitTargetAndPayload {
3738
+ /** Source. */
3739
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3740
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTarget;
3741
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayload | undefined | null;
3742
+ }
3743
+ interface UpdateCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3744
+ id: 'updateCalendarEmitTargetAndPayload';
3745
+ version: 'v2021_05_19';
3746
+ namespace: 'Calendar';
3747
+ name: '';
3748
+ fields: {
3749
+ /** Source. */
3750
+ 'source': {
3751
+ label: 'Source';
3752
+ type: 'schema';
3753
+ options: {
3754
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3755
+ };
3756
+ };
3757
+ /** . */
3758
+ 'target': {
3759
+ type: 'schema';
3760
+ isRequired: true;
3761
+ options: {
3762
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema;
3763
+ };
3764
+ };
3765
+ /** . */
3766
+ 'payload': {
3767
+ type: 'schema';
3768
+ options: {
3769
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema;
3770
+ };
3771
+ };
3772
+ };
3773
+ }
3774
+ interface UpdateCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetAndPayloadSchema> {
3775
+ }
3776
+ }
3777
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3778
+ interface UpdateCalendarResponsePayload {
3779
+ 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
3780
+ }
3781
+ interface UpdateCalendarResponsePayloadSchema extends SpruceSchema.Schema {
3782
+ id: 'updateCalendarResponsePayload';
3783
+ version: 'v2021_05_19';
3784
+ namespace: 'Calendar';
3785
+ name: '';
3786
+ fields: {
3787
+ /** . */
3788
+ 'calendar': {
3789
+ type: 'schema';
3790
+ isRequired: true;
3791
+ options: {
3792
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
3793
+ };
3794
+ };
3795
+ };
3796
+ }
3797
+ interface UpdateCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarResponsePayloadSchema> {
3798
+ }
3799
+ }
3800
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3801
+ interface UpdateCalendarEventEmitTarget {
3802
+ 'organizationId'?: string | undefined | null;
3803
+ 'locationId'?: string | undefined | null;
3804
+ 'calendarEventId': string;
3805
+ 'calendarEventPersonId': string;
3806
+ }
3807
+ interface UpdateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
3808
+ id: 'updateCalendarEventEmitTarget';
3809
+ version: 'v2021_05_19';
3810
+ namespace: 'Calendar';
3811
+ name: '';
3812
+ fields: {
3813
+ /** . */
3814
+ 'organizationId': {
3815
+ type: 'id';
3816
+ options: undefined;
3817
+ };
3818
+ /** . */
3819
+ 'locationId': {
3820
+ type: 'id';
3821
+ options: undefined;
3822
+ };
3823
+ /** . */
3824
+ 'calendarEventId': {
3825
+ type: 'id';
3826
+ isRequired: true;
3827
+ options: undefined;
3828
+ };
3829
+ /** . */
3830
+ 'calendarEventPersonId': {
3831
+ type: 'id';
3832
+ isRequired: true;
3833
+ options: undefined;
3834
+ };
3835
+ };
3836
+ }
3837
+ interface UpdateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema> {
3838
+ }
3839
+ }
3840
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3841
+ interface UpdateCalendarEventEmitPayload {
3842
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3843
+ 'target'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTarget | undefined | null;
3844
+ 'calendarId'?: string | undefined | null;
3845
+ 'eventTypeSlug'?: string | undefined | null;
3846
+ 'startDateTimeMs'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3847
+ 'isBusy'?: boolean | undefined | null;
3848
+ 'isResizeable'?: boolean | undefined | null;
3849
+ 'style'?: ("draft" | "tentative" | "upcoming" | "unavailable" | "blocked" | "active" | "past" | "warn" | "critical") | undefined | null;
3850
+ 'groupId'?: string | undefined | null;
3851
+ 'timeBlocks'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlock[] | undefined | null;
3852
+ 'repeats'?: ("weekly" | "monthly" | "daily") | undefined | null;
3853
+ 'daysOfWeek'?: ("sun" | "mon" | "tue" | "wed" | "thur" | "fri" | "sat")[] | undefined | null;
3854
+ 'daysOfMonth'?: ("1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31")[] | undefined | null;
3855
+ 'repeatsUntil'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3856
+ 'occurrences'?: number | undefined | null;
3857
+ 'interval'?: number | undefined | null;
3858
+ 'nthOccurrences'?: number[] | undefined | null;
3859
+ 'exclusionDates'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDate[] | undefined | null;
3860
+ 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3861
+ 'nthInRepeating'?: number | undefined | null;
3862
+ 'totalInRepeating'?: number | undefined | null;
3863
+ 'meta'?: (Record<string, any>) | undefined | null;
3864
+ 'addToExclusionDates'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDate[] | undefined | null;
3865
+ 'dateToUpdate'?: number | undefined | null;
3866
+ 'shouldUpdateAllEventsGoingForward'?: boolean | undefined | null;
3867
+ /** . It will show on this person's calendar going forward! */
3868
+ 'newTargetPersonId'?: string | undefined | null;
3869
+ }
3870
+ interface UpdateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
3871
+ id: 'updateCalendarEventEmitPayload';
3872
+ version: 'v2021_05_19';
3873
+ namespace: 'Calendar';
3874
+ name: '';
3875
+ fields: {
3876
+ /** . */
3877
+ 'source': {
3878
+ type: 'schema';
3879
+ options: {
3880
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3881
+ };
3882
+ };
3883
+ /** . */
3884
+ 'target': {
3885
+ type: 'schema';
3886
+ options: {
3887
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTargetSchema;
3888
+ };
3889
+ };
3890
+ /** . */
3891
+ 'calendarId': {
3892
+ type: 'id';
3893
+ options: undefined;
3894
+ };
3895
+ /** . */
3896
+ 'eventTypeSlug': {
3897
+ type: 'text';
3898
+ options: undefined;
3899
+ };
3900
+ /** . */
3901
+ 'startDateTimeMs': {
3902
+ type: 'dateTime';
3903
+ options: undefined;
3904
+ };
3905
+ /** . */
3906
+ 'isBusy': {
3907
+ type: 'boolean';
3908
+ options: undefined;
3909
+ };
3910
+ /** . */
3911
+ 'isResizeable': {
3912
+ type: 'boolean';
3913
+ options: undefined;
3914
+ };
3915
+ /** . */
3916
+ 'style': {
3917
+ type: 'select';
3918
+ options: {
3919
+ choices: [{
3920
+ "value": "draft";
3921
+ "label": "Draft";
3922
+ }, {
3923
+ "value": "tentative";
3924
+ "label": "Tentative";
3925
+ }, {
3926
+ "value": "upcoming";
3927
+ "label": "Upcoming";
3928
+ }, {
3929
+ "value": "unavailable";
3930
+ "label": "Unavailable";
3931
+ }, {
3932
+ "value": "blocked";
3933
+ "label": "Blocked";
3934
+ }, {
3935
+ "value": "active";
3936
+ "label": "Active";
3937
+ }, {
3938
+ "value": "past";
3939
+ "label": "Past";
3940
+ }, {
3941
+ "value": "warn";
3942
+ "label": "Warning";
3943
+ }, {
3944
+ "value": "critical";
3945
+ "label": "Critical";
3946
+ }];
3947
+ };
3948
+ };
3949
+ /** . */
3950
+ 'groupId': {
3951
+ type: 'id';
3952
+ options: undefined;
3953
+ };
3954
+ /** . */
3955
+ 'timeBlocks': {
3956
+ type: 'schema';
3957
+ isArray: true;
3958
+ minArrayLength: 1;
3959
+ options: {
3960
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlockSchema;
3961
+ };
3962
+ };
3963
+ /** . */
3964
+ 'repeats': {
3965
+ type: 'select';
3966
+ options: {
3967
+ choices: [{
3968
+ "value": "weekly";
3969
+ "label": "Weekly";
3970
+ }, {
3971
+ "value": "monthly";
3972
+ "label": "Monthly";
3973
+ }, {
3974
+ "value": "daily";
3975
+ "label": "Daily";
3976
+ }];
3977
+ };
3978
+ };
3979
+ /** . */
3980
+ 'daysOfWeek': {
3981
+ type: 'select';
3982
+ isArray: true;
3983
+ options: {
3984
+ choices: [{
3985
+ "value": "sun";
3986
+ "label": "Sunday";
3987
+ }, {
3988
+ "value": "mon";
3989
+ "label": "Monday";
3990
+ }, {
3991
+ "value": "tue";
3992
+ "label": "Tuesday";
3993
+ }, {
3994
+ "value": "wed";
3995
+ "label": "Wednesday";
3996
+ }, {
3997
+ "value": "thur";
3998
+ "label": "Thursday";
3999
+ }, {
4000
+ "value": "fri";
4001
+ "label": "Friday";
3808
4002
  }, {
3809
- "value": "share";
3810
- "label": "share";
4003
+ "value": "sat";
4004
+ "label": "Saturday";
4005
+ }];
4006
+ };
4007
+ };
4008
+ /** . */
4009
+ 'daysOfMonth': {
4010
+ type: 'select';
4011
+ isArray: true;
4012
+ options: {
4013
+ choices: [{
4014
+ "value": "1";
4015
+ "label": "1";
3811
4016
  }, {
3812
- "value": "shopping-bag";
3813
- "label": "shopping-bag";
4017
+ "value": "2";
4018
+ "label": "2";
3814
4019
  }, {
3815
- "value": "shopping-cart";
3816
- "label": "shopping-cart";
4020
+ "value": "3";
4021
+ "label": "3";
3817
4022
  }, {
3818
- "value": "sort-filter-down";
3819
- "label": "sort-filter-down";
4023
+ "value": "4";
4024
+ "label": "4";
3820
4025
  }, {
3821
- "value": "sort-filter-up";
3822
- "label": "sort-filter-up";
4026
+ "value": "5";
4027
+ "label": "5";
3823
4028
  }, {
3824
- "value": "sound-off";
3825
- "label": "sound-off";
4029
+ "value": "6";
4030
+ "label": "6";
3826
4031
  }, {
3827
- "value": "sound-on";
3828
- "label": "sound-on";
4032
+ "value": "7";
4033
+ "label": "7";
3829
4034
  }, {
3830
- "value": "sprucebot";
3831
- "label": "sprucebot";
4035
+ "value": "8";
4036
+ "label": "8";
3832
4037
  }, {
3833
- "value": "star-filled";
3834
- "label": "star-filled";
4038
+ "value": "9";
4039
+ "label": "9";
3835
4040
  }, {
3836
- "value": "star";
3837
- "label": "star";
4041
+ "value": "10";
4042
+ "label": "10";
3838
4043
  }, {
3839
- "value": "sun";
3840
- "label": "sun";
4044
+ "value": "11";
4045
+ "label": "11";
3841
4046
  }, {
3842
- "value": "tag";
3843
- "label": "tag";
4047
+ "value": "12";
4048
+ "label": "12";
3844
4049
  }, {
3845
- "value": "time";
3846
- "label": "time";
4050
+ "value": "13";
4051
+ "label": "13";
3847
4052
  }, {
3848
- "value": "tool";
3849
- "label": "tool";
4053
+ "value": "14";
4054
+ "label": "14";
3850
4055
  }, {
3851
- "value": "trending-down";
3852
- "label": "trending-down";
4056
+ "value": "15";
4057
+ "label": "15";
3853
4058
  }, {
3854
- "value": "trending-up";
3855
- "label": "trending-up";
4059
+ "value": "16";
4060
+ "label": "16";
3856
4061
  }, {
3857
- "value": "triangle";
3858
- "label": "triangle";
4062
+ "value": "17";
4063
+ "label": "17";
3859
4064
  }, {
3860
- "value": "unlock";
3861
- "label": "unlock";
4065
+ "value": "18";
4066
+ "label": "18";
3862
4067
  }, {
3863
- "value": "upload-cloud";
3864
- "label": "upload-cloud";
4068
+ "value": "19";
4069
+ "label": "19";
3865
4070
  }, {
3866
- "value": "upload";
3867
- "label": "upload";
4071
+ "value": "20";
4072
+ "label": "20";
3868
4073
  }, {
3869
- "value": "user-add";
3870
- "label": "user-add";
4074
+ "value": "21";
4075
+ "label": "21";
3871
4076
  }, {
3872
- "value": "user-delete";
3873
- "label": "user-delete";
4077
+ "value": "22";
4078
+ "label": "22";
3874
4079
  }, {
3875
- "value": "user";
3876
- "label": "user";
4080
+ "value": "23";
4081
+ "label": "23";
3877
4082
  }, {
3878
- "value": "users";
3879
- "label": "users";
4083
+ "value": "24";
4084
+ "label": "24";
3880
4085
  }, {
3881
- "value": "video-off";
3882
- "label": "video-off";
4086
+ "value": "25";
4087
+ "label": "25";
3883
4088
  }, {
3884
- "value": "video";
3885
- "label": "video";
4089
+ "value": "26";
4090
+ "label": "26";
3886
4091
  }, {
3887
- "value": "warning";
3888
- "label": "warning";
4092
+ "value": "27";
4093
+ "label": "27";
3889
4094
  }, {
3890
- "value": "wifi";
3891
- "label": "wifi";
4095
+ "value": "28";
4096
+ "label": "28";
3892
4097
  }, {
3893
- "value": "zoom-in";
3894
- "label": "zoom-in";
4098
+ "value": "29";
4099
+ "label": "29";
3895
4100
  }, {
3896
- "value": "zoom-out";
3897
- "label": "zoom-out";
4101
+ "value": "30";
4102
+ "label": "30";
4103
+ }, {
4104
+ "value": "31";
4105
+ "label": "31";
3898
4106
  }];
3899
4107
  };
3900
4108
  };
4109
+ /** . */
4110
+ 'repeatsUntil': {
4111
+ type: 'dateTime';
4112
+ options: undefined;
4113
+ };
4114
+ /** . */
4115
+ 'occurrences': {
4116
+ type: 'number';
4117
+ options: undefined;
4118
+ };
4119
+ /** . */
4120
+ 'interval': {
4121
+ type: 'number';
4122
+ options: undefined;
4123
+ };
4124
+ /** . */
4125
+ 'nthOccurrences': {
4126
+ type: 'number';
4127
+ isArray: true;
4128
+ options: undefined;
4129
+ };
4130
+ /** . */
4131
+ 'exclusionDates': {
4132
+ type: 'schema';
4133
+ isArray: true;
4134
+ options: {
4135
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
4136
+ };
4137
+ };
4138
+ /** . */
4139
+ 'dateDeleted': {
4140
+ type: 'dateTime';
4141
+ options: undefined;
4142
+ };
4143
+ /** . */
4144
+ 'nthInRepeating': {
4145
+ type: 'number';
4146
+ options: undefined;
4147
+ };
4148
+ /** . */
4149
+ 'totalInRepeating': {
4150
+ type: 'number';
4151
+ options: undefined;
4152
+ };
4153
+ /** . */
4154
+ 'meta': {
4155
+ type: 'raw';
4156
+ options: {
4157
+ valueType: `Record<string, any>`;
4158
+ };
4159
+ };
4160
+ /** . */
4161
+ 'addToExclusionDates': {
4162
+ type: 'schema';
4163
+ isArray: true;
4164
+ options: {
4165
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
4166
+ };
4167
+ };
4168
+ /** . */
4169
+ 'dateToUpdate': {
4170
+ type: 'number';
4171
+ options: undefined;
4172
+ };
4173
+ /** . */
4174
+ 'shouldUpdateAllEventsGoingForward': {
4175
+ type: 'boolean';
4176
+ options: undefined;
4177
+ };
4178
+ /** . It will show on this person's calendar going forward! */
4179
+ 'newTargetPersonId': {
4180
+ type: 'id';
4181
+ hint: 'It will show on this person\'s calendar going forward!';
4182
+ options: undefined;
4183
+ };
3901
4184
  };
3902
4185
  }
3903
- interface UpsertCalendarEventTypeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitPayloadSchema> {
4186
+ interface UpdateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema> {
3904
4187
  }
3905
4188
  }
3906
4189
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3907
- interface UpsertCalendarEventTypeEmitTargetAndPayload {
4190
+ interface UpdateCalendarEventEmitTargetAndPayload {
3908
4191
  /** Source. */
3909
4192
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3910
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitTarget;
3911
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitPayload | undefined | null;
4193
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTarget;
4194
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayload | undefined | null;
3912
4195
  }
3913
- interface UpsertCalendarEventTypeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3914
- id: 'upsertCalendarEventTypeEmitTargetAndPayload';
4196
+ interface UpdateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4197
+ id: 'updateCalendarEventEmitTargetAndPayload';
3915
4198
  version: 'v2021_05_19';
3916
4199
  namespace: 'Calendar';
3917
4200
  name: '';
@@ -3929,143 +4212,139 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3929
4212
  type: 'schema';
3930
4213
  isRequired: true;
3931
4214
  options: {
3932
- schema: SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitTargetSchema;
4215
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema;
3933
4216
  };
3934
4217
  };
3935
4218
  /** . */
3936
4219
  'payload': {
3937
4220
  type: 'schema';
3938
4221
  options: {
3939
- schema: SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitPayloadSchema;
4222
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema;
3940
4223
  };
3941
4224
  };
3942
4225
  };
3943
4226
  }
3944
- interface UpsertCalendarEventTypeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeEmitTargetAndPayloadSchema> {
4227
+ interface UpdateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetAndPayloadSchema> {
3945
4228
  }
3946
4229
  }
3947
4230
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3948
- interface UpsertCalendarEventTypeResponsePayload {
3949
- 'calendarEventType': SpruceSchemas.Calendar.v2021_05_19.CalendarEventType;
4231
+ interface UpdateCalendarEventResponsePayload {
4232
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
3950
4233
  }
3951
- interface UpsertCalendarEventTypeResponsePayloadSchema extends SpruceSchema.Schema {
3952
- id: 'upsertCalendarEventTypeResponsePayload';
4234
+ interface UpdateCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
4235
+ id: 'updateCalendarEventResponsePayload';
3953
4236
  version: 'v2021_05_19';
3954
4237
  namespace: 'Calendar';
3955
4238
  name: '';
3956
4239
  fields: {
3957
4240
  /** . */
3958
- 'calendarEventType': {
4241
+ 'calendarEvent': {
3959
4242
  type: 'schema';
3960
4243
  isRequired: true;
3961
4244
  options: {
3962
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema;
4245
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
3963
4246
  };
3964
4247
  };
3965
4248
  };
3966
4249
  }
3967
- interface UpsertCalendarEventTypeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpsertCalendarEventTypeResponsePayloadSchema> {
4250
+ interface UpdateCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventResponsePayloadSchema> {
3968
4251
  }
3969
4252
  }
3970
4253
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3971
- interface UpdateCalendarEmitTarget {
3972
- 'organizationId': string;
3973
- 'calendarId': string;
4254
+ interface SendSchedulesEmitPayload {
4255
+ 'startDateTimeMs': number;
4256
+ 'endDateTimeMs': number;
4257
+ 'personIds'?: string[] | undefined | null;
4258
+ 'chunkingId': string;
4259
+ 'sendToFqen': (EventName);
3974
4260
  }
3975
- interface UpdateCalendarEmitTargetSchema extends SpruceSchema.Schema {
3976
- id: 'updateCalendarEmitTarget';
4261
+ interface SendSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
4262
+ id: 'sendSchedulesEmitPayload';
3977
4263
  version: 'v2021_05_19';
3978
4264
  namespace: 'Calendar';
3979
4265
  name: '';
4266
+ importsWhenRemote: ['import { EventName } from \'@sprucelabs/mercury-types\''];
3980
4267
  fields: {
3981
4268
  /** . */
3982
- 'organizationId': {
3983
- type: 'id';
4269
+ 'startDateTimeMs': {
4270
+ type: 'number';
3984
4271
  isRequired: true;
3985
4272
  options: undefined;
3986
4273
  };
3987
4274
  /** . */
3988
- 'calendarId': {
4275
+ 'endDateTimeMs': {
4276
+ type: 'number';
4277
+ isRequired: true;
4278
+ options: undefined;
4279
+ };
4280
+ /** . */
4281
+ 'personIds': {
4282
+ type: 'id';
4283
+ isArray: true;
4284
+ options: undefined;
4285
+ };
4286
+ /** . */
4287
+ 'chunkingId': {
3989
4288
  type: 'id';
3990
4289
  isRequired: true;
3991
4290
  options: undefined;
3992
4291
  };
4292
+ /** . */
4293
+ 'sendToFqen': {
4294
+ type: 'raw';
4295
+ isRequired: true;
4296
+ options: {
4297
+ valueType: `EventName`;
4298
+ };
4299
+ };
3993
4300
  };
3994
4301
  }
3995
- interface UpdateCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema> {
4302
+ interface SendSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitPayloadSchema> {
3996
4303
  }
3997
4304
  }
3998
4305
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3999
- interface UpdateCalendarEmitPayload {
4000
- 'slug'?: string | undefined | null;
4001
- 'title'?: string | undefined | null;
4002
- 'eventTypes'?: string[] | undefined | null;
4003
- 'target'?: SpruceSchemas.Calendar.v2021_05_19.CalendarTarget | undefined | null;
4004
- 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
4005
- 'availableTimeSlotBehavior'?: ("include" | "exclude") | undefined | null;
4306
+ interface GetSchedulesEmitTarget {
4307
+ 'organizationId'?: string | undefined | null;
4308
+ 'locationId'?: string | undefined | null;
4309
+ 'calendarIds': string[];
4006
4310
  }
4007
- interface UpdateCalendarEmitPayloadSchema extends SpruceSchema.Schema {
4008
- id: 'updateCalendarEmitPayload';
4311
+ interface GetSchedulesEmitTargetSchema extends SpruceSchema.Schema {
4312
+ id: 'getSchedulesEmitTarget';
4009
4313
  version: 'v2021_05_19';
4010
4314
  namespace: 'Calendar';
4011
4315
  name: '';
4012
4316
  fields: {
4013
4317
  /** . */
4014
- 'slug': {
4318
+ 'organizationId': {
4015
4319
  type: 'id';
4016
4320
  options: undefined;
4017
4321
  };
4018
4322
  /** . */
4019
- 'title': {
4020
- type: 'text';
4323
+ 'locationId': {
4324
+ type: 'id';
4021
4325
  options: undefined;
4022
4326
  };
4023
4327
  /** . */
4024
- 'eventTypes': {
4025
- type: 'text';
4328
+ 'calendarIds': {
4329
+ type: 'id';
4330
+ isRequired: true;
4026
4331
  isArray: true;
4027
- minArrayLength: 0;
4028
- options: undefined;
4029
- };
4030
- /** . */
4031
- 'target': {
4032
- type: 'schema';
4033
- options: {
4034
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarTargetSchema;
4035
- };
4036
- };
4037
- /** . */
4038
- 'dateDeleted': {
4039
- type: 'dateTime';
4040
4332
  options: undefined;
4041
4333
  };
4042
- /** . */
4043
- 'availableTimeSlotBehavior': {
4044
- type: 'select';
4045
- options: {
4046
- choices: [{
4047
- "value": "include";
4048
- "label": "Include";
4049
- }, {
4050
- "value": "exclude";
4051
- "label": "Exclude";
4052
- }];
4053
- };
4054
- };
4055
4334
  };
4056
4335
  }
4057
- interface UpdateCalendarEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema> {
4336
+ interface GetSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema> {
4058
4337
  }
4059
4338
  }
4060
4339
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4061
- interface UpdateCalendarEmitTargetAndPayload {
4340
+ interface SendSchedulesEmitTargetAndPayload {
4062
4341
  /** Source. */
4063
4342
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4064
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTarget;
4065
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayload | undefined | null;
4343
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTarget;
4344
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitPayload;
4066
4345
  }
4067
- interface UpdateCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4068
- id: 'updateCalendarEmitTargetAndPayload';
4346
+ interface SendSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4347
+ id: 'sendSchedulesEmitTargetAndPayload';
4069
4348
  version: 'v2021_05_19';
4070
4349
  namespace: 'Calendar';
4071
4350
  name: '';
@@ -4083,120 +4362,109 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4083
4362
  type: 'schema';
4084
4363
  isRequired: true;
4085
4364
  options: {
4086
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema;
4365
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema;
4087
4366
  };
4088
4367
  };
4089
4368
  /** . */
4090
4369
  'payload': {
4091
4370
  type: 'schema';
4371
+ isRequired: true;
4092
4372
  options: {
4093
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema;
4373
+ schema: SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitPayloadSchema;
4094
4374
  };
4095
4375
  };
4096
4376
  };
4097
4377
  }
4098
- interface UpdateCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetAndPayloadSchema> {
4378
+ interface SendSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitTargetAndPayloadSchema> {
4099
4379
  }
4100
4380
  }
4101
4381
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4102
- interface UpdateCalendarResponsePayload {
4103
- 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
4382
+ interface GetSchedulesEmitPayload {
4383
+ 'startDateTimeMs': number;
4384
+ 'endDateTimeMs': number;
4385
+ 'personIds'?: string[] | undefined | null;
4104
4386
  }
4105
- interface UpdateCalendarResponsePayloadSchema extends SpruceSchema.Schema {
4106
- id: 'updateCalendarResponsePayload';
4387
+ interface GetSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
4388
+ id: 'getSchedulesEmitPayload';
4107
4389
  version: 'v2021_05_19';
4108
4390
  namespace: 'Calendar';
4109
4391
  name: '';
4110
4392
  fields: {
4111
4393
  /** . */
4112
- 'calendar': {
4113
- type: 'schema';
4394
+ 'startDateTimeMs': {
4395
+ type: 'number';
4114
4396
  isRequired: true;
4115
- options: {
4116
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
4117
- };
4397
+ options: undefined;
4398
+ };
4399
+ /** . */
4400
+ 'endDateTimeMs': {
4401
+ type: 'number';
4402
+ isRequired: true;
4403
+ options: undefined;
4404
+ };
4405
+ /** . */
4406
+ 'personIds': {
4407
+ type: 'id';
4408
+ isArray: true;
4409
+ options: undefined;
4118
4410
  };
4119
4411
  };
4120
4412
  }
4121
- interface UpdateCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarResponsePayloadSchema> {
4413
+ interface GetSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema> {
4122
4414
  }
4123
4415
  }
4124
4416
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4125
- interface UpdatePreferencesEmitTarget {
4126
- 'organizationId': string;
4417
+ interface ListPeopleWithoutSchedulesEmitTarget {
4418
+ 'locationId': string;
4127
4419
  }
4128
- interface UpdatePreferencesEmitTargetSchema extends SpruceSchema.Schema {
4129
- id: 'updatePreferencesEmitTarget';
4420
+ interface ListPeopleWithoutSchedulesEmitTargetSchema extends SpruceSchema.Schema {
4421
+ id: 'listPeopleWithoutSchedulesEmitTarget';
4130
4422
  version: 'v2021_05_19';
4131
4423
  namespace: 'Calendar';
4132
4424
  name: '';
4133
4425
  fields: {
4134
4426
  /** . */
4135
- 'organizationId': {
4427
+ 'locationId': {
4136
4428
  type: 'id';
4137
4429
  isRequired: true;
4138
4430
  options: undefined;
4139
4431
  };
4140
4432
  };
4141
4433
  }
4142
- interface UpdatePreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema> {
4434
+ interface ListPeopleWithoutSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema> {
4143
4435
  }
4144
4436
  }
4145
4437
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4146
- interface UpdatePreferencesEmitPayload {
4147
- 'selectedCalendarIds'?: string[] | undefined | null;
4148
- 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
4149
- 'visiblePeopleIds'?: string[] | undefined | null;
4438
+ interface ListPeopleWithoutSchedulesEmitPayload {
4439
+ 'calendarIds': string[];
4150
4440
  }
4151
- interface UpdatePreferencesEmitPayloadSchema extends SpruceSchema.Schema {
4152
- id: 'updatePreferencesEmitPayload';
4441
+ interface ListPeopleWithoutSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
4442
+ id: 'listPeopleWithoutSchedulesEmitPayload';
4153
4443
  version: 'v2021_05_19';
4154
4444
  namespace: 'Calendar';
4155
4445
  name: '';
4156
4446
  fields: {
4157
4447
  /** . */
4158
- 'selectedCalendarIds': {
4448
+ 'calendarIds': {
4159
4449
  type: 'id';
4160
- isArray: true;
4161
- minArrayLength: 0;
4162
- options: undefined;
4163
- };
4164
- /** . */
4165
- 'visiblePeopleMode': {
4166
- type: 'select';
4167
- options: {
4168
- choices: [{
4169
- "value": "me";
4170
- "label": "Me";
4171
- }, {
4172
- "value": "working";
4173
- "label": "Working";
4174
- }, {
4175
- "value": "custom";
4176
- "label": "Custom";
4177
- }];
4178
- };
4179
- };
4180
- /** . */
4181
- 'visiblePeopleIds': {
4182
- type: 'text';
4450
+ isRequired: true;
4183
4451
  isArray: true;
4184
4452
  options: undefined;
4185
4453
  };
4186
4454
  };
4187
4455
  }
4188
- interface UpdatePreferencesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema> {
4456
+ interface ListPeopleWithoutSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema> {
4189
4457
  }
4190
4458
  }
4191
4459
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4192
- interface UpdatePreferencesEmitTargetAndPayload {
4460
+ interface ListPeopleWithoutSchedulesEmitTargetAndPayload {
4193
4461
  /** Source. */
4194
4462
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4195
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTarget;
4196
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayload | undefined | null;
4463
+ 'target': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTarget;
4464
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayload;
4197
4465
  }
4198
- interface UpdatePreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4199
- id: 'updatePreferencesEmitTargetAndPayload';
4466
+ interface ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4467
+ id: 'listPeopleWithoutSchedulesEmitTargetAndPayload';
4200
4468
  version: 'v2021_05_19';
4201
4469
  namespace: 'Calendar';
4202
4470
  name: '';
@@ -4214,40 +4482,88 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4214
4482
  type: 'schema';
4215
4483
  isRequired: true;
4216
4484
  options: {
4217
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema;
4485
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema;
4218
4486
  };
4219
4487
  };
4220
4488
  /** . */
4221
4489
  'payload': {
4222
4490
  type: 'schema';
4491
+ isRequired: true;
4223
4492
  options: {
4224
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema;
4493
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema;
4225
4494
  };
4226
4495
  };
4227
4496
  };
4228
4497
  }
4229
- interface UpdatePreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetAndPayloadSchema> {
4498
+ interface ListPeopleWithoutSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema> {
4230
4499
  }
4231
4500
  }
4232
4501
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4233
- interface UpdatePreferencesResponsePayload {
4234
- 'success': boolean;
4502
+ interface PersonWithoutSchedule {
4503
+ /** Id. */
4504
+ 'id': string;
4505
+ /** Casual name. The name you can use when talking to this person. */
4506
+ 'casualName': string;
4507
+ /** Avatar src. */
4508
+ 'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
4235
4509
  }
4236
- interface UpdatePreferencesResponsePayloadSchema extends SpruceSchema.Schema {
4237
- id: 'updatePreferencesResponsePayload';
4510
+ interface PersonWithoutScheduleSchema extends SpruceSchema.Schema {
4511
+ id: 'person-without-schedule';
4512
+ version: 'v2021_05_19';
4513
+ namespace: 'Calendar';
4514
+ name: '';
4515
+ fields: {
4516
+ /** Id. */
4517
+ 'id': {
4518
+ label: 'Id';
4519
+ type: 'id';
4520
+ isRequired: true;
4521
+ options: undefined;
4522
+ };
4523
+ /** Casual name. The name you can use when talking to this person. */
4524
+ 'casualName': {
4525
+ label: 'Casual name';
4526
+ type: 'text';
4527
+ isRequired: true;
4528
+ hint: 'The name you can use when talking to this person.';
4529
+ options: undefined;
4530
+ };
4531
+ /** Avatar src. */
4532
+ 'avatar': {
4533
+ label: 'Avatar src';
4534
+ type: 'image';
4535
+ options: {
4536
+ requiredSizes: ["*"];
4537
+ };
4538
+ };
4539
+ };
4540
+ }
4541
+ interface PersonWithoutScheduleEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema> {
4542
+ }
4543
+ }
4544
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4545
+ interface ListPeopleWithoutSchedulesResponsePayload {
4546
+ 'people': SpruceSchemas.Calendar.v2021_05_19.PersonWithoutSchedule[];
4547
+ }
4548
+ interface ListPeopleWithoutSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
4549
+ id: 'listPeopleWithoutSchedulesResponsePayload';
4238
4550
  version: 'v2021_05_19';
4239
4551
  namespace: 'Calendar';
4240
4552
  name: '';
4241
4553
  fields: {
4242
4554
  /** . */
4243
- 'success': {
4244
- type: 'boolean';
4555
+ 'people': {
4556
+ type: 'schema';
4245
4557
  isRequired: true;
4246
- options: undefined;
4558
+ isArray: true;
4559
+ minArrayLength: 0;
4560
+ options: {
4561
+ schema: SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema;
4562
+ };
4247
4563
  };
4248
4564
  };
4249
4565
  }
4250
- interface UpdatePreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesResponsePayloadSchema> {
4566
+ interface ListPeopleWithoutSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesResponsePayloadSchema> {
4251
4567
  }
4252
4568
  }
4253
4569
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -4569,372 +4885,98 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4569
4885
  "label": "29";
4570
4886
  }, {
4571
4887
  "value": "30";
4572
- "label": "30";
4573
- }, {
4574
- "value": "31";
4575
- "label": "31";
4576
- }];
4577
- };
4578
- };
4579
- /** . */
4580
- 'repeatsUntil': {
4581
- type: 'dateTime';
4582
- options: undefined;
4583
- };
4584
- /** . */
4585
- 'occurrences': {
4586
- type: 'number';
4587
- options: undefined;
4588
- };
4589
- /** . */
4590
- 'interval': {
4591
- type: 'number';
4592
- options: undefined;
4593
- };
4594
- /** . */
4595
- 'nthOccurrences': {
4596
- type: 'number';
4597
- isArray: true;
4598
- options: undefined;
4599
- };
4600
- /** . */
4601
- 'exclusionDates': {
4602
- type: 'schema';
4603
- isArray: true;
4604
- options: {
4605
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
4606
- };
4607
- };
4608
- /** . */
4609
- 'dateDeleted': {
4610
- type: 'dateTime';
4611
- options: undefined;
4612
- };
4613
- /** . */
4614
- 'nthInRepeating': {
4615
- type: 'number';
4616
- options: undefined;
4617
- };
4618
- /** . */
4619
- 'totalInRepeating': {
4620
- type: 'number';
4621
- options: undefined;
4622
- };
4623
- /** . */
4624
- 'meta': {
4625
- type: 'raw';
4626
- options: {
4627
- valueType: `Record<string, any>`;
4628
- };
4629
- };
4630
- };
4631
- }
4632
- interface CreateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayloadSchema> {
4633
- }
4634
- }
4635
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4636
- interface DidCreateCalendarEventEmitTarget {
4637
- 'locationId': string;
4638
- }
4639
- interface DidCreateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
4640
- id: 'didCreateCalendarEventEmitTarget';
4641
- version: 'v2021_05_19';
4642
- namespace: 'Calendar';
4643
- name: '';
4644
- fields: {
4645
- /** . */
4646
- 'locationId': {
4647
- type: 'id';
4648
- isRequired: true;
4649
- options: undefined;
4650
- };
4651
- };
4652
- }
4653
- interface DidCreateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTargetSchema> {
4654
- }
4655
- }
4656
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4657
- interface GetSchedulesEmitPayload {
4658
- 'startDateTimeMs': number;
4659
- 'endDateTimeMs': number;
4660
- 'personIds'?: string[] | undefined | null;
4661
- }
4662
- interface GetSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
4663
- id: 'getSchedulesEmitPayload';
4664
- version: 'v2021_05_19';
4665
- namespace: 'Calendar';
4666
- name: '';
4667
- fields: {
4668
- /** . */
4669
- 'startDateTimeMs': {
4670
- type: 'number';
4671
- isRequired: true;
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;
4685
- };
4686
- };
4687
- }
4688
- interface GetSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema> {
4689
- }
4690
- }
4691
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4692
- interface GetSchedulesEmitTargetAndPayload {
4693
- /** Source. */
4694
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4695
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTarget;
4696
- 'payload': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayload;
4697
- }
4698
- interface GetSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4699
- id: 'getSchedulesEmitTargetAndPayload';
4700
- version: 'v2021_05_19';
4701
- namespace: 'Calendar';
4702
- name: '';
4703
- fields: {
4704
- /** Source. */
4705
- 'source': {
4706
- label: 'Source';
4707
- type: 'schema';
4708
- options: {
4709
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
4710
- };
4711
- };
4712
- /** . */
4713
- 'target': {
4714
- type: 'schema';
4715
- isRequired: true;
4716
- options: {
4717
- schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema;
4718
- };
4719
- };
4720
- /** . */
4721
- 'payload': {
4722
- type: 'schema';
4723
- isRequired: true;
4724
- options: {
4725
- schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema;
4726
- };
4727
- };
4728
- };
4729
- }
4730
- interface GetSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetAndPayloadSchema> {
4731
- }
4732
- }
4733
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4734
- interface CreateCalendarEventResponsePayload {
4735
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
4736
- }
4737
- interface CreateCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
4738
- id: 'createCalendarEventResponsePayload';
4739
- version: 'v2021_05_19';
4740
- namespace: 'Calendar';
4741
- name: '';
4742
- fields: {
4743
- /** . */
4744
- 'calendarEvent': {
4745
- type: 'schema';
4746
- isRequired: true;
4747
- options: {
4748
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
4749
- };
4750
- };
4751
- };
4752
- }
4753
- interface CreateCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventResponsePayloadSchema> {
4754
- }
4755
- }
4756
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4757
- interface DidCreateCalendarEventEmitPayload {
4758
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
4759
- }
4760
- interface DidCreateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
4761
- id: 'didCreateCalendarEventEmitPayload';
4762
- version: 'v2021_05_19';
4763
- namespace: 'Calendar';
4764
- name: '';
4765
- fields: {
4766
- /** . */
4767
- 'calendarEvent': {
4768
- type: 'schema';
4769
- isRequired: true;
4770
- options: {
4771
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
4772
- };
4773
- };
4774
- };
4775
- }
4776
- interface DidCreateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitPayloadSchema> {
4777
- }
4778
- }
4779
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4780
- interface GetSchedulesResponsePayload {
4781
- 'events': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
4782
- }
4783
- interface GetSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
4784
- id: 'getSchedulesResponsePayload';
4785
- version: 'v2021_05_19';
4786
- namespace: 'Calendar';
4787
- name: '';
4788
- fields: {
4789
- /** . */
4790
- 'events': {
4791
- type: 'schema';
4792
- isRequired: true;
4793
- isArray: true;
4794
- minArrayLength: 0;
4795
- options: {
4796
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
4797
- };
4798
- };
4799
- };
4800
- }
4801
- interface GetSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesResponsePayloadSchema> {
4802
- }
4803
- }
4804
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4805
- interface GetSchedulesEmitTarget {
4806
- 'organizationId'?: string | undefined | null;
4807
- 'locationId'?: string | undefined | null;
4808
- 'calendarIds': string[];
4809
- }
4810
- interface GetSchedulesEmitTargetSchema extends SpruceSchema.Schema {
4811
- id: 'getSchedulesEmitTarget';
4812
- version: 'v2021_05_19';
4813
- namespace: 'Calendar';
4814
- name: '';
4815
- fields: {
4816
- /** . */
4817
- 'organizationId': {
4818
- type: 'id';
4819
- options: undefined;
4888
+ "label": "30";
4889
+ }, {
4890
+ "value": "31";
4891
+ "label": "31";
4892
+ }];
4893
+ };
4820
4894
  };
4821
4895
  /** . */
4822
- 'locationId': {
4823
- type: 'id';
4896
+ 'repeatsUntil': {
4897
+ type: 'dateTime';
4824
4898
  options: undefined;
4825
4899
  };
4826
4900
  /** . */
4827
- 'calendarIds': {
4828
- type: 'id';
4829
- isRequired: true;
4830
- isArray: true;
4901
+ 'occurrences': {
4902
+ type: 'number';
4831
4903
  options: undefined;
4832
4904
  };
4833
- };
4834
- }
4835
- interface GetSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema> {
4836
- }
4837
- }
4838
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4839
- interface SendSchedulesEmitPayload {
4840
- 'startDateTimeMs': number;
4841
- 'endDateTimeMs': number;
4842
- 'personIds'?: string[] | undefined | null;
4843
- 'chunkingId': string;
4844
- 'sendToFqen': (EventName);
4845
- }
4846
- interface SendSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
4847
- id: 'sendSchedulesEmitPayload';
4848
- version: 'v2021_05_19';
4849
- namespace: 'Calendar';
4850
- name: '';
4851
- importsWhenRemote: ['import { EventName } from \'@sprucelabs/mercury-types\''];
4852
- fields: {
4853
4905
  /** . */
4854
- 'startDateTimeMs': {
4906
+ 'interval': {
4855
4907
  type: 'number';
4856
- isRequired: true;
4857
4908
  options: undefined;
4858
4909
  };
4859
4910
  /** . */
4860
- 'endDateTimeMs': {
4911
+ 'nthOccurrences': {
4861
4912
  type: 'number';
4862
- isRequired: true;
4913
+ isArray: true;
4863
4914
  options: undefined;
4864
4915
  };
4865
4916
  /** . */
4866
- 'personIds': {
4867
- type: 'id';
4917
+ 'exclusionDates': {
4918
+ type: 'schema';
4868
4919
  isArray: true;
4920
+ options: {
4921
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
4922
+ };
4923
+ };
4924
+ /** . */
4925
+ 'dateDeleted': {
4926
+ type: 'dateTime';
4869
4927
  options: undefined;
4870
4928
  };
4871
4929
  /** . */
4872
- 'chunkingId': {
4873
- type: 'id';
4874
- isRequired: true;
4930
+ 'nthInRepeating': {
4931
+ type: 'number';
4875
4932
  options: undefined;
4876
4933
  };
4877
4934
  /** . */
4878
- 'sendToFqen': {
4935
+ 'totalInRepeating': {
4936
+ type: 'number';
4937
+ options: undefined;
4938
+ };
4939
+ /** . */
4940
+ 'meta': {
4879
4941
  type: 'raw';
4880
- isRequired: true;
4881
4942
  options: {
4882
- valueType: `EventName`;
4943
+ valueType: `Record<string, any>`;
4883
4944
  };
4884
4945
  };
4885
4946
  };
4886
4947
  }
4887
- interface SendSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitPayloadSchema> {
4948
+ interface CreateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayloadSchema> {
4888
4949
  }
4889
4950
  }
4890
4951
  namespace SpruceSchemas.Calendar.v2021_05_19 {
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;
4952
+ interface CreateCalendarEventResponsePayload {
4953
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
4896
4954
  }
4897
- interface SendSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4898
- id: 'sendSchedulesEmitTargetAndPayload';
4955
+ interface CreateCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
4956
+ id: 'createCalendarEventResponsePayload';
4899
4957
  version: 'v2021_05_19';
4900
4958
  namespace: 'Calendar';
4901
4959
  name: '';
4902
4960
  fields: {
4903
- /** Source. */
4904
- 'source': {
4905
- label: 'Source';
4906
- type: 'schema';
4907
- options: {
4908
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
4909
- };
4910
- };
4911
- /** . */
4912
- 'target': {
4913
- type: 'schema';
4914
- isRequired: true;
4915
- options: {
4916
- schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema;
4917
- };
4918
- };
4919
4961
  /** . */
4920
- 'payload': {
4962
+ 'calendarEvent': {
4921
4963
  type: 'schema';
4922
4964
  isRequired: true;
4923
4965
  options: {
4924
- schema: SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitPayloadSchema;
4966
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
4925
4967
  };
4926
4968
  };
4927
4969
  };
4928
4970
  }
4929
- interface SendSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitTargetAndPayloadSchema> {
4971
+ interface CreateCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventResponsePayloadSchema> {
4930
4972
  }
4931
4973
  }
4932
4974
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4933
- interface ListPeopleWithoutSchedulesEmitTarget {
4975
+ interface DidCreateCalendarEventEmitTarget {
4934
4976
  'locationId': string;
4935
4977
  }
4936
- interface ListPeopleWithoutSchedulesEmitTargetSchema extends SpruceSchema.Schema {
4937
- id: 'listPeopleWithoutSchedulesEmitTarget';
4978
+ interface DidCreateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
4979
+ id: 'didCreateCalendarEventEmitTarget';
4938
4980
  version: 'v2021_05_19';
4939
4981
  namespace: 'Calendar';
4940
4982
  name: '';
@@ -4947,40 +4989,41 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4947
4989
  };
4948
4990
  };
4949
4991
  }
4950
- interface ListPeopleWithoutSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema> {
4992
+ interface DidCreateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTargetSchema> {
4951
4993
  }
4952
4994
  }
4953
4995
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4954
- interface ListPeopleWithoutSchedulesEmitPayload {
4955
- 'calendarIds': string[];
4996
+ interface DidCreateCalendarEventEmitPayload {
4997
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
4956
4998
  }
4957
- interface ListPeopleWithoutSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
4958
- id: 'listPeopleWithoutSchedulesEmitPayload';
4999
+ interface DidCreateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
5000
+ id: 'didCreateCalendarEventEmitPayload';
4959
5001
  version: 'v2021_05_19';
4960
5002
  namespace: 'Calendar';
4961
5003
  name: '';
4962
5004
  fields: {
4963
5005
  /** . */
4964
- 'calendarIds': {
4965
- type: 'id';
5006
+ 'calendarEvent': {
5007
+ type: 'schema';
4966
5008
  isRequired: true;
4967
- isArray: true;
4968
- options: undefined;
5009
+ options: {
5010
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
5011
+ };
4969
5012
  };
4970
5013
  };
4971
5014
  }
4972
- interface ListPeopleWithoutSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema> {
5015
+ interface DidCreateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitPayloadSchema> {
4973
5016
  }
4974
5017
  }
4975
5018
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4976
- interface ListPeopleWithoutSchedulesEmitTargetAndPayload {
5019
+ interface DidCreateCalendarEventEmitTargetAndPayload {
4977
5020
  /** Source. */
4978
5021
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4979
- 'target': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTarget;
4980
- 'payload': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayload;
5022
+ 'target': SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTarget;
5023
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitPayload;
4981
5024
  }
4982
- interface ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4983
- id: 'listPeopleWithoutSchedulesEmitTargetAndPayload';
5025
+ interface DidCreateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
5026
+ id: 'didCreateCalendarEventEmitTargetAndPayload';
4984
5027
  version: 'v2021_05_19';
4985
5028
  namespace: 'Calendar';
4986
5029
  name: '';
@@ -4998,7 +5041,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4998
5041
  type: 'schema';
4999
5042
  isRequired: true;
5000
5043
  options: {
5001
- schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema;
5044
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTargetSchema;
5002
5045
  };
5003
5046
  };
5004
5047
  /** . */
@@ -5006,80 +5049,12 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
5006
5049
  type: 'schema';
5007
5050
  isRequired: true;
5008
5051
  options: {
5009
- schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema;
5010
- };
5011
- };
5012
- };
5013
- }
5014
- interface ListPeopleWithoutSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema> {
5015
- }
5016
- }
5017
- namespace SpruceSchemas.Calendar.v2021_05_19 {
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;
5025
- }
5026
- interface PersonWithoutScheduleSchema extends SpruceSchema.Schema {
5027
- id: 'person-without-schedule';
5028
- version: 'v2021_05_19';
5029
- namespace: 'Calendar';
5030
- name: '';
5031
- fields: {
5032
- /** Id. */
5033
- 'id': {
5034
- label: 'Id';
5035
- type: 'id';
5036
- isRequired: true;
5037
- options: undefined;
5038
- };
5039
- /** Casual name. The name you can use when talking to this person. */
5040
- 'casualName': {
5041
- label: 'Casual name';
5042
- type: 'text';
5043
- isRequired: true;
5044
- hint: 'The name you can use when talking to this person.';
5045
- options: undefined;
5046
- };
5047
- /** Avatar src. */
5048
- 'avatar': {
5049
- label: 'Avatar src';
5050
- type: 'image';
5051
- options: {
5052
- requiredSizes: ["*"];
5053
- };
5054
- };
5055
- };
5056
- }
5057
- interface PersonWithoutScheduleEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema> {
5058
- }
5059
- }
5060
- namespace SpruceSchemas.Calendar.v2021_05_19 {
5061
- interface ListPeopleWithoutSchedulesResponsePayload {
5062
- 'people': SpruceSchemas.Calendar.v2021_05_19.PersonWithoutSchedule[];
5063
- }
5064
- interface ListPeopleWithoutSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
5065
- id: 'listPeopleWithoutSchedulesResponsePayload';
5066
- version: 'v2021_05_19';
5067
- namespace: 'Calendar';
5068
- name: '';
5069
- fields: {
5070
- /** . */
5071
- 'people': {
5072
- type: 'schema';
5073
- isRequired: true;
5074
- isArray: true;
5075
- minArrayLength: 0;
5076
- options: {
5077
- schema: SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema;
5052
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitPayloadSchema;
5078
5053
  };
5079
5054
  };
5080
5055
  };
5081
5056
  }
5082
- interface ListPeopleWithoutSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesResponsePayloadSchema> {
5057
+ interface DidCreateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTargetAndPayloadSchema> {
5083
5058
  }
5084
5059
  }
5085
5060
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -5109,14 +5084,14 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
5109
5084
  }
5110
5085
  }
5111
5086
  namespace SpruceSchemas.Calendar.v2021_05_19 {
5112
- interface DidCreateCalendarEventEmitTargetAndPayload {
5087
+ interface GetSchedulesEmitTargetAndPayload {
5113
5088
  /** Source. */
5114
5089
  '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;
5090
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTarget;
5091
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayload;
5117
5092
  }
5118
- interface DidCreateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
5119
- id: 'didCreateCalendarEventEmitTargetAndPayload';
5093
+ interface GetSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
5094
+ id: 'getSchedulesEmitTargetAndPayload';
5120
5095
  version: 'v2021_05_19';
5121
5096
  namespace: 'Calendar';
5122
5097
  name: '';
@@ -5134,7 +5109,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
5134
5109
  type: 'schema';
5135
5110
  isRequired: true;
5136
5111
  options: {
5137
- schema: SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTargetSchema;
5112
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema;
5138
5113
  };
5139
5114
  };
5140
5115
  /** . */
@@ -5142,12 +5117,37 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
5142
5117
  type: 'schema';
5143
5118
  isRequired: true;
5144
5119
  options: {
5145
- schema: SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitPayloadSchema;
5120
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema;
5146
5121
  };
5147
5122
  };
5148
5123
  };
5149
5124
  }
5150
- interface DidCreateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTargetAndPayloadSchema> {
5125
+ interface GetSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetAndPayloadSchema> {
5126
+ }
5127
+ }
5128
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
5129
+ interface GetSchedulesResponsePayload {
5130
+ 'events': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
5131
+ }
5132
+ interface GetSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
5133
+ id: 'getSchedulesResponsePayload';
5134
+ version: 'v2021_05_19';
5135
+ namespace: 'Calendar';
5136
+ name: '';
5137
+ fields: {
5138
+ /** . */
5139
+ 'events': {
5140
+ type: 'schema';
5141
+ isRequired: true;
5142
+ isArray: true;
5143
+ minArrayLength: 0;
5144
+ options: {
5145
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
5146
+ };
5147
+ };
5148
+ };
5149
+ }
5150
+ interface GetSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesResponsePayloadSchema> {
5151
5151
  }
5152
5152
  }
5153
5153
  namespace SpruceSchemas.Calendar.v2021_05_19 {