@vendasta/meetings 1.7.7 → 1.8.0

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.
Files changed (45) hide show
  1. package/esm2020/lib/_internal/enums/index.mjs +2 -2
  2. package/esm2020/lib/_internal/enums/shared.enum.mjs +9 -1
  3. package/esm2020/lib/_internal/interfaces/annotations.interface.mjs +1 -1
  4. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +1 -1
  6. package/esm2020/lib/_internal/interfaces/meeting-host.interface.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/shared.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/meeting-host.api.service.mjs +25 -2
  9. package/esm2020/lib/_internal/objects/annotations.mjs +7 -1
  10. package/esm2020/lib/_internal/objects/google-meet.mjs +1 -1
  11. package/esm2020/lib/_internal/objects/groups-and-services.mjs +1 -1
  12. package/esm2020/lib/_internal/objects/index.mjs +5 -5
  13. package/esm2020/lib/_internal/objects/meeting-guest.mjs +15 -58
  14. package/esm2020/lib/_internal/objects/meeting-host.mjs +319 -2
  15. package/esm2020/lib/_internal/objects/meeting-source.mjs +1 -1
  16. package/esm2020/lib/_internal/objects/shared.mjs +91 -1
  17. package/esm2020/lib/host/host.service.mjs +63 -2
  18. package/esm2020/lib/index.mjs +3 -3
  19. package/esm2020/lib/shared/meeting.mjs +1 -1
  20. package/esm2020/lib/shared/preferences.mjs +4 -2
  21. package/fesm2015/vendasta-meetings.mjs +519 -57
  22. package/fesm2015/vendasta-meetings.mjs.map +1 -1
  23. package/fesm2020/vendasta-meetings.mjs +521 -57
  24. package/fesm2020/vendasta-meetings.mjs.map +1 -1
  25. package/lib/_internal/enums/index.d.ts +1 -1
  26. package/lib/_internal/enums/shared.enum.d.ts +7 -0
  27. package/lib/_internal/interfaces/annotations.interface.d.ts +2 -0
  28. package/lib/_internal/interfaces/index.d.ts +4 -4
  29. package/lib/_internal/interfaces/meeting-guest.interface.d.ts +5 -13
  30. package/lib/_internal/interfaces/meeting-host.interface.d.ts +54 -1
  31. package/lib/_internal/interfaces/shared.interface.d.ts +17 -0
  32. package/lib/_internal/meeting-host.api.service.d.ts +7 -2
  33. package/lib/_internal/objects/annotations.d.ts +2 -0
  34. package/lib/_internal/objects/google-meet.d.ts +1 -1
  35. package/lib/_internal/objects/groups-and-services.d.ts +1 -1
  36. package/lib/_internal/objects/index.d.ts +4 -4
  37. package/lib/_internal/objects/meeting-guest.d.ts +9 -23
  38. package/lib/_internal/objects/meeting-host.d.ts +84 -1
  39. package/lib/_internal/objects/meeting-source.d.ts +1 -1
  40. package/lib/_internal/objects/shared.d.ts +26 -0
  41. package/lib/host/host.service.d.ts +38 -2
  42. package/lib/index.d.ts +4 -4
  43. package/lib/shared/meeting.d.ts +4 -0
  44. package/lib/shared/preferences.d.ts +4 -2
  45. package/package.json +1 -1
@@ -111,6 +111,14 @@ var CalendarType;
111
111
  CalendarType[CalendarType["CALENDAR_TYPE_GROUP"] = 2] = "CALENDAR_TYPE_GROUP";
112
112
  CalendarType[CalendarType["CALENDAR_TYPE_SESSION"] = 3] = "CALENDAR_TYPE_SESSION";
113
113
  })(CalendarType || (CalendarType = {}));
114
+ var CalendarView;
115
+ (function (CalendarView) {
116
+ CalendarView[CalendarView["CALENDAR_VIEW_INVALID"] = 0] = "CALENDAR_VIEW_INVALID";
117
+ CalendarView[CalendarView["CALENDAR_VIEW_WEEK"] = 1] = "CALENDAR_VIEW_WEEK";
118
+ CalendarView[CalendarView["CALENDAR_VIEW_DAY"] = 2] = "CALENDAR_VIEW_DAY";
119
+ CalendarView[CalendarView["CALENDAR_VIEW_MONTH"] = 3] = "CALENDAR_VIEW_MONTH";
120
+ CalendarView[CalendarView["CALENDAR_VIEW_LIST"] = 4] = "CALENDAR_VIEW_LIST";
121
+ })(CalendarView || (CalendarView = {}));
114
122
  var FormFieldType;
115
123
  (function (FormFieldType) {
116
124
  FormFieldType[FormFieldType["FORM_FIELD_TYPE_INVALID"] = 0] = "FORM_FIELD_TYPE_INVALID";
@@ -1620,6 +1628,58 @@ class Attendee {
1620
1628
  return toReturn;
1621
1629
  }
1622
1630
  }
1631
+ class BatchBookingTarget {
1632
+ static fromProto(proto) {
1633
+ let m = new BatchBookingTarget();
1634
+ m = Object.assign(m, proto);
1635
+ return m;
1636
+ }
1637
+ constructor(kwargs) {
1638
+ if (!kwargs) {
1639
+ return;
1640
+ }
1641
+ Object.assign(this, kwargs);
1642
+ }
1643
+ toApiJson() {
1644
+ const toReturn = {};
1645
+ if (typeof this.eventTypeId !== 'undefined') {
1646
+ toReturn['eventTypeId'] = this.eventTypeId;
1647
+ }
1648
+ if (typeof this.userId !== 'undefined') {
1649
+ toReturn['userId'] = this.userId;
1650
+ }
1651
+ if (typeof this.order !== 'undefined') {
1652
+ toReturn['order'] = this.order;
1653
+ }
1654
+ return toReturn;
1655
+ }
1656
+ }
1657
+ class BatchEventTypeTarget {
1658
+ static fromProto(proto) {
1659
+ let m = new BatchEventTypeTarget();
1660
+ m = Object.assign(m, proto);
1661
+ return m;
1662
+ }
1663
+ constructor(kwargs) {
1664
+ if (!kwargs) {
1665
+ return;
1666
+ }
1667
+ Object.assign(this, kwargs);
1668
+ }
1669
+ toApiJson() {
1670
+ const toReturn = {};
1671
+ if (typeof this.eventTypeId !== 'undefined') {
1672
+ toReturn['eventTypeId'] = this.eventTypeId;
1673
+ }
1674
+ if (typeof this.userId !== 'undefined') {
1675
+ toReturn['userId'] = this.userId;
1676
+ }
1677
+ if (typeof this.order !== 'undefined') {
1678
+ toReturn['order'] = this.order;
1679
+ }
1680
+ return toReturn;
1681
+ }
1682
+ }
1623
1683
  class Calendar {
1624
1684
  static fromProto(proto) {
1625
1685
  let m = new Calendar();
@@ -1682,6 +1742,32 @@ class Calendar {
1682
1742
  return toReturn;
1683
1743
  }
1684
1744
  }
1745
+ class CalendarMember {
1746
+ static fromProto(proto) {
1747
+ let m = new CalendarMember();
1748
+ m = Object.assign(m, proto);
1749
+ return m;
1750
+ }
1751
+ constructor(kwargs) {
1752
+ if (!kwargs) {
1753
+ return;
1754
+ }
1755
+ Object.assign(this, kwargs);
1756
+ }
1757
+ toApiJson() {
1758
+ const toReturn = {};
1759
+ if (typeof this.hostUserId !== 'undefined') {
1760
+ toReturn['hostUserId'] = this.hostUserId;
1761
+ }
1762
+ if (typeof this.color !== 'undefined') {
1763
+ toReturn['color'] = this.color;
1764
+ }
1765
+ if (typeof this.selected !== 'undefined') {
1766
+ toReturn['selected'] = this.selected;
1767
+ }
1768
+ return toReturn;
1769
+ }
1770
+ }
1685
1771
  let Contact$1 = class Contact {
1686
1772
  static fromProto(proto) {
1687
1773
  let m = new Contact();
@@ -1959,6 +2045,12 @@ class Preferences {
1959
2045
  if (proto.onBoardingState) {
1960
2046
  m.onBoardingState = enumStringToValue$b(OnBoardingState, proto.onBoardingState);
1961
2047
  }
2048
+ if (proto.calendarMembers) {
2049
+ m.calendarMembers = proto.calendarMembers.map(CalendarMember.fromProto);
2050
+ }
2051
+ if (proto.defaultCalendarView) {
2052
+ m.defaultCalendarView = enumStringToValue$b(CalendarView, proto.defaultCalendarView);
2053
+ }
1962
2054
  return m;
1963
2055
  }
1964
2056
  constructor(kwargs) {
@@ -1996,6 +2088,12 @@ class Preferences {
1996
2088
  if (typeof this.onBoardingState !== 'undefined') {
1997
2089
  toReturn['onBoardingState'] = this.onBoardingState;
1998
2090
  }
2091
+ if (typeof this.calendarMembers !== 'undefined' && this.calendarMembers !== null) {
2092
+ toReturn['calendarMembers'] = 'toApiJson' in this.calendarMembers ? this.calendarMembers.toApiJson() : this.calendarMembers;
2093
+ }
2094
+ if (typeof this.defaultCalendarView !== 'undefined') {
2095
+ toReturn['defaultCalendarView'] = this.defaultCalendarView;
2096
+ }
1999
2097
  return toReturn;
2000
2098
  }
2001
2099
  }
@@ -3772,58 +3870,6 @@ function enumStringToValue$6(enumRef, value) {
3772
3870
  }
3773
3871
  return enumRef[value];
3774
3872
  }
3775
- class BatchBookingTarget {
3776
- static fromProto(proto) {
3777
- let m = new BatchBookingTarget();
3778
- m = Object.assign(m, proto);
3779
- return m;
3780
- }
3781
- constructor(kwargs) {
3782
- if (!kwargs) {
3783
- return;
3784
- }
3785
- Object.assign(this, kwargs);
3786
- }
3787
- toApiJson() {
3788
- const toReturn = {};
3789
- if (typeof this.eventTypeId !== 'undefined') {
3790
- toReturn['eventTypeId'] = this.eventTypeId;
3791
- }
3792
- if (typeof this.userId !== 'undefined') {
3793
- toReturn['userId'] = this.userId;
3794
- }
3795
- if (typeof this.order !== 'undefined') {
3796
- toReturn['order'] = this.order;
3797
- }
3798
- return toReturn;
3799
- }
3800
- }
3801
- class BatchEventTypeTarget {
3802
- static fromProto(proto) {
3803
- let m = new BatchEventTypeTarget();
3804
- m = Object.assign(m, proto);
3805
- return m;
3806
- }
3807
- constructor(kwargs) {
3808
- if (!kwargs) {
3809
- return;
3810
- }
3811
- Object.assign(this, kwargs);
3812
- }
3813
- toApiJson() {
3814
- const toReturn = {};
3815
- if (typeof this.eventTypeId !== 'undefined') {
3816
- toReturn['eventTypeId'] = this.eventTypeId;
3817
- }
3818
- if (typeof this.userId !== 'undefined') {
3819
- toReturn['userId'] = this.userId;
3820
- }
3821
- if (typeof this.order !== 'undefined') {
3822
- toReturn['order'] = this.order;
3823
- }
3824
- return toReturn;
3825
- }
3826
- }
3827
3873
  class BookBatchMeetingRequest {
3828
3874
  static fromProto(proto) {
3829
3875
  let m = new BookBatchMeetingRequest();
@@ -4814,6 +4860,9 @@ class GuestGetBookedMeetingResponseV2 {
4814
4860
  if (typeof this.primaryAttendeePhone !== 'undefined') {
4815
4861
  toReturn['primaryAttendeePhone'] = this.primaryAttendeePhone;
4816
4862
  }
4863
+ if (typeof this.isLocationEditable !== 'undefined') {
4864
+ toReturn['isLocationEditable'] = this.isLocationEditable;
4865
+ }
4817
4866
  return toReturn;
4818
4867
  }
4819
4868
  }
@@ -5225,6 +5274,9 @@ class MeetingDetail {
5225
5274
  if (proto.previousEndTime) {
5226
5275
  m.previousEndTime = new Date(proto.previousEndTime);
5227
5276
  }
5277
+ if (proto.inPersonLocationType) {
5278
+ m.inPersonLocationType = enumStringToValue$6(MeetingLocationType, proto.inPersonLocationType);
5279
+ }
5228
5280
  return m;
5229
5281
  }
5230
5282
  constructor(kwargs) {
@@ -5298,6 +5350,9 @@ class MeetingDetail {
5298
5350
  if (typeof this.locationGuideline !== 'undefined') {
5299
5351
  toReturn['locationGuideline'] = this.locationGuideline;
5300
5352
  }
5353
+ if (typeof this.inPersonLocationType !== 'undefined') {
5354
+ toReturn['inPersonLocationType'] = this.inPersonLocationType;
5355
+ }
5301
5356
  return toReturn;
5302
5357
  }
5303
5358
  }
@@ -5345,9 +5400,9 @@ class MeetingSummary {
5345
5400
  return toReturn;
5346
5401
  }
5347
5402
  }
5348
- class BookBatchMeetingRequestMetadataEntry {
5403
+ class BookMeetingRequestMetadataEntry {
5349
5404
  static fromProto(proto) {
5350
- let m = new BookBatchMeetingRequestMetadataEntry();
5405
+ let m = new BookMeetingRequestMetadataEntry();
5351
5406
  m = Object.assign(m, proto);
5352
5407
  return m;
5353
5408
  }
@@ -5368,9 +5423,9 @@ class BookBatchMeetingRequestMetadataEntry {
5368
5423
  return toReturn;
5369
5424
  }
5370
5425
  }
5371
- class BookMeetingRequestMetadataEntry {
5426
+ class BookBatchMeetingRequestMetadataEntry {
5372
5427
  static fromProto(proto) {
5373
- let m = new BookMeetingRequestMetadataEntry();
5428
+ let m = new BookBatchMeetingRequestMetadataEntry();
5374
5429
  m = Object.assign(m, proto);
5375
5430
  return m;
5376
5431
  }
@@ -6439,6 +6494,32 @@ class AvailabilityRuleList {
6439
6494
  return toReturn;
6440
6495
  }
6441
6496
  }
6497
+ class BookedMeetingV2 {
6498
+ static fromProto(proto) {
6499
+ let m = new BookedMeetingV2();
6500
+ m = Object.assign(m, proto);
6501
+ if (proto.meetings) {
6502
+ m.meetings = proto.meetings.map(Meeting.fromProto);
6503
+ }
6504
+ return m;
6505
+ }
6506
+ constructor(kwargs) {
6507
+ if (!kwargs) {
6508
+ return;
6509
+ }
6510
+ Object.assign(this, kwargs);
6511
+ }
6512
+ toApiJson() {
6513
+ const toReturn = {};
6514
+ if (typeof this.bookingGroupId !== 'undefined') {
6515
+ toReturn['bookingGroupId'] = this.bookingGroupId;
6516
+ }
6517
+ if (typeof this.meetings !== 'undefined' && this.meetings !== null) {
6518
+ toReturn['meetings'] = 'toApiJson' in this.meetings ? this.meetings.toApiJson() : this.meetings;
6519
+ }
6520
+ return toReturn;
6521
+ }
6522
+ }
6442
6523
  class BuildHostIdRequest {
6443
6524
  static fromProto(proto) {
6444
6525
  let m = new BuildHostIdRequest();
@@ -7562,6 +7643,91 @@ class GetMeetingTypesForCalendarsResponse {
7562
7643
  return toReturn;
7563
7644
  }
7564
7645
  }
7646
+ class HostBookBatchMeetingRequest {
7647
+ static fromProto(proto) {
7648
+ let m = new HostBookBatchMeetingRequest();
7649
+ m = Object.assign(m, proto);
7650
+ if (proto.targets) {
7651
+ m.targets = proto.targets.map(BatchBookingTarget.fromProto);
7652
+ }
7653
+ if (proto.start) {
7654
+ m.start = new Date(proto.start);
7655
+ }
7656
+ if (proto.attendees) {
7657
+ m.attendees = proto.attendees.map(Contact$1.fromProto);
7658
+ }
7659
+ if (proto.metadata) {
7660
+ m.metadata = Object.keys(proto.metadata).reduce((obj, k) => { obj[k] = proto.metadata[k]; return obj; }, {});
7661
+ }
7662
+ if (proto.formAnswers) {
7663
+ m.formAnswers = Answers.fromProto(proto.formAnswers);
7664
+ }
7665
+ if (proto.bookingSource) {
7666
+ m.bookingSource = enumStringToValue$3(BookingSource, proto.bookingSource);
7667
+ }
7668
+ return m;
7669
+ }
7670
+ constructor(kwargs) {
7671
+ if (!kwargs) {
7672
+ return;
7673
+ }
7674
+ Object.assign(this, kwargs);
7675
+ }
7676
+ toApiJson() {
7677
+ const toReturn = {};
7678
+ if (typeof this.calendarId !== 'undefined') {
7679
+ toReturn['calendarId'] = this.calendarId;
7680
+ }
7681
+ if (typeof this.targets !== 'undefined' && this.targets !== null) {
7682
+ toReturn['targets'] = 'toApiJson' in this.targets ? this.targets.toApiJson() : this.targets;
7683
+ }
7684
+ if (typeof this.start !== 'undefined' && this.start !== null) {
7685
+ toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
7686
+ }
7687
+ if (typeof this.attendees !== 'undefined' && this.attendees !== null) {
7688
+ toReturn['attendees'] = 'toApiJson' in this.attendees ? this.attendees.toApiJson() : this.attendees;
7689
+ }
7690
+ if (typeof this.comment !== 'undefined') {
7691
+ toReturn['comment'] = this.comment;
7692
+ }
7693
+ if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
7694
+ toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
7695
+ }
7696
+ if (typeof this.formAnswers !== 'undefined' && this.formAnswers !== null) {
7697
+ toReturn['formAnswers'] = 'toApiJson' in this.formAnswers ? this.formAnswers.toApiJson() : this.formAnswers;
7698
+ }
7699
+ if (typeof this.location !== 'undefined') {
7700
+ toReturn['location'] = this.location;
7701
+ }
7702
+ if (typeof this.bookingSource !== 'undefined') {
7703
+ toReturn['bookingSource'] = this.bookingSource;
7704
+ }
7705
+ if (typeof this.bookingOriginId !== 'undefined') {
7706
+ toReturn['bookingOriginId'] = this.bookingOriginId;
7707
+ }
7708
+ return toReturn;
7709
+ }
7710
+ }
7711
+ class HostBookBatchMeetingResponse {
7712
+ static fromProto(proto) {
7713
+ let m = new HostBookBatchMeetingResponse();
7714
+ m = Object.assign(m, proto);
7715
+ return m;
7716
+ }
7717
+ constructor(kwargs) {
7718
+ if (!kwargs) {
7719
+ return;
7720
+ }
7721
+ Object.assign(this, kwargs);
7722
+ }
7723
+ toApiJson() {
7724
+ const toReturn = {};
7725
+ if (typeof this.bookingGroupId !== 'undefined') {
7726
+ toReturn['bookingGroupId'] = this.bookingGroupId;
7727
+ }
7728
+ return toReturn;
7729
+ }
7730
+ }
7565
7731
  class HostBookMeetingRequest {
7566
7732
  static fromProto(proto) {
7567
7733
  let m = new HostBookMeetingRequest();
@@ -7747,6 +7913,29 @@ class HostBookSessionResponse {
7747
7913
  return toReturn;
7748
7914
  }
7749
7915
  }
7916
+ class HostCancelBatchMeetingRequest {
7917
+ static fromProto(proto) {
7918
+ let m = new HostCancelBatchMeetingRequest();
7919
+ m = Object.assign(m, proto);
7920
+ return m;
7921
+ }
7922
+ constructor(kwargs) {
7923
+ if (!kwargs) {
7924
+ return;
7925
+ }
7926
+ Object.assign(this, kwargs);
7927
+ }
7928
+ toApiJson() {
7929
+ const toReturn = {};
7930
+ if (typeof this.id !== 'undefined') {
7931
+ toReturn['id'] = this.id;
7932
+ }
7933
+ if (typeof this.cancellationReason !== 'undefined') {
7934
+ toReturn['cancellationReason'] = this.cancellationReason;
7935
+ }
7936
+ return toReturn;
7937
+ }
7938
+ }
7750
7939
  class HostDeleteAttendeesRequest {
7751
7940
  static fromProto(proto) {
7752
7941
  let m = new HostDeleteAttendeesRequest();
@@ -7885,6 +8074,67 @@ class HostGetMeetingTypeResponse {
7885
8074
  return toReturn;
7886
8075
  }
7887
8076
  }
8077
+ class HostListBatchAvailableTimeSlotsRequest {
8078
+ static fromProto(proto) {
8079
+ let m = new HostListBatchAvailableTimeSlotsRequest();
8080
+ m = Object.assign(m, proto);
8081
+ if (proto.targets) {
8082
+ m.targets = proto.targets.map(BatchEventTypeTarget.fromProto);
8083
+ }
8084
+ if (proto.timeSpan) {
8085
+ m.timeSpan = DateRange.fromProto(proto.timeSpan);
8086
+ }
8087
+ if (proto.timeZone) {
8088
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
8089
+ }
8090
+ return m;
8091
+ }
8092
+ constructor(kwargs) {
8093
+ if (!kwargs) {
8094
+ return;
8095
+ }
8096
+ Object.assign(this, kwargs);
8097
+ }
8098
+ toApiJson() {
8099
+ const toReturn = {};
8100
+ if (typeof this.hostId !== 'undefined') {
8101
+ toReturn['hostId'] = this.hostId;
8102
+ }
8103
+ if (typeof this.targets !== 'undefined' && this.targets !== null) {
8104
+ toReturn['targets'] = 'toApiJson' in this.targets ? this.targets.toApiJson() : this.targets;
8105
+ }
8106
+ if (typeof this.timeSpan !== 'undefined' && this.timeSpan !== null) {
8107
+ toReturn['timeSpan'] = 'toApiJson' in this.timeSpan ? this.timeSpan.toApiJson() : this.timeSpan;
8108
+ }
8109
+ if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
8110
+ toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
8111
+ }
8112
+ return toReturn;
8113
+ }
8114
+ }
8115
+ class HostListBatchAvailableTimeSlotsResponse {
8116
+ static fromProto(proto) {
8117
+ let m = new HostListBatchAvailableTimeSlotsResponse();
8118
+ m = Object.assign(m, proto);
8119
+ if (proto.isoTimeSlots) {
8120
+ m.isoTimeSlots = proto.isoTimeSlots.map(IsoDateTimeRange.fromProto);
8121
+ }
8122
+ return m;
8123
+ }
8124
+ constructor(kwargs) {
8125
+ if (!kwargs) {
8126
+ return;
8127
+ }
8128
+ Object.assign(this, kwargs);
8129
+ }
8130
+ toApiJson() {
8131
+ const toReturn = {};
8132
+ if (typeof this.isoTimeSlots !== 'undefined' && this.isoTimeSlots !== null) {
8133
+ toReturn['isoTimeSlots'] = 'toApiJson' in this.isoTimeSlots ? this.isoTimeSlots.toApiJson() : this.isoTimeSlots;
8134
+ }
8135
+ return toReturn;
8136
+ }
8137
+ }
7888
8138
  class HostListMeetingTypesRequest {
7889
8139
  static fromProto(proto) {
7890
8140
  let m = new HostListMeetingTypesRequest();
@@ -7928,6 +8178,41 @@ class HostListMeetingTypesResponse {
7928
8178
  return toReturn;
7929
8179
  }
7930
8180
  }
8181
+ class HostRescheduleBatchMeetingRequest {
8182
+ static fromProto(proto) {
8183
+ let m = new HostRescheduleBatchMeetingRequest();
8184
+ m = Object.assign(m, proto);
8185
+ if (proto.start) {
8186
+ m.start = new Date(proto.start);
8187
+ }
8188
+ if (proto.timeZone) {
8189
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
8190
+ }
8191
+ return m;
8192
+ }
8193
+ constructor(kwargs) {
8194
+ if (!kwargs) {
8195
+ return;
8196
+ }
8197
+ Object.assign(this, kwargs);
8198
+ }
8199
+ toApiJson() {
8200
+ const toReturn = {};
8201
+ if (typeof this.id !== 'undefined') {
8202
+ toReturn['id'] = this.id;
8203
+ }
8204
+ if (typeof this.start !== 'undefined' && this.start !== null) {
8205
+ toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
8206
+ }
8207
+ if (typeof this.location !== 'undefined') {
8208
+ toReturn['location'] = this.location;
8209
+ }
8210
+ if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
8211
+ toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
8212
+ }
8213
+ return toReturn;
8214
+ }
8215
+ }
7931
8216
  class GetHostsForCalendarResponseHostUserAvailabilityRuleEntry {
7932
8217
  static fromProto(proto) {
7933
8218
  let m = new GetHostsForCalendarResponseHostUserAvailabilityRuleEntry();
@@ -8351,6 +8636,70 @@ class ListBookedMeetingsResponse {
8351
8636
  return toReturn;
8352
8637
  }
8353
8638
  }
8639
+ class ListBookedMeetingsV2Request {
8640
+ static fromProto(proto) {
8641
+ let m = new ListBookedMeetingsV2Request();
8642
+ m = Object.assign(m, proto);
8643
+ if (proto.filters) {
8644
+ m.filters = ListBookedMeetingsRequestFilters.fromProto(proto.filters);
8645
+ }
8646
+ if (proto.pagingOptions) {
8647
+ m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
8648
+ }
8649
+ if (proto.timeZone) {
8650
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
8651
+ }
8652
+ return m;
8653
+ }
8654
+ constructor(kwargs) {
8655
+ if (!kwargs) {
8656
+ return;
8657
+ }
8658
+ Object.assign(this, kwargs);
8659
+ }
8660
+ toApiJson() {
8661
+ const toReturn = {};
8662
+ if (typeof this.filters !== 'undefined' && this.filters !== null) {
8663
+ toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
8664
+ }
8665
+ if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
8666
+ toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
8667
+ }
8668
+ if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
8669
+ toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
8670
+ }
8671
+ return toReturn;
8672
+ }
8673
+ }
8674
+ class ListBookedMeetingsV2Response {
8675
+ static fromProto(proto) {
8676
+ let m = new ListBookedMeetingsV2Response();
8677
+ m = Object.assign(m, proto);
8678
+ if (proto.bookings) {
8679
+ m.bookings = proto.bookings.map(BookedMeetingV2.fromProto);
8680
+ }
8681
+ if (proto.pagingMetadata) {
8682
+ m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
8683
+ }
8684
+ return m;
8685
+ }
8686
+ constructor(kwargs) {
8687
+ if (!kwargs) {
8688
+ return;
8689
+ }
8690
+ Object.assign(this, kwargs);
8691
+ }
8692
+ toApiJson() {
8693
+ const toReturn = {};
8694
+ if (typeof this.bookings !== 'undefined' && this.bookings !== null) {
8695
+ toReturn['bookings'] = 'toApiJson' in this.bookings ? this.bookings.toApiJson() : this.bookings;
8696
+ }
8697
+ if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
8698
+ toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
8699
+ }
8700
+ return toReturn;
8701
+ }
8702
+ }
8354
8703
  class ListBookingTypesForAIRequest {
8355
8704
  static fromProto(proto) {
8356
8705
  let m = new ListBookingTypesForAIRequest();
@@ -8700,6 +9049,29 @@ class UpdateMeetingMetadataRequestMetadataEntry {
8700
9049
  return toReturn;
8701
9050
  }
8702
9051
  }
9052
+ class HostBookBatchMeetingRequestMetadataEntry {
9053
+ static fromProto(proto) {
9054
+ let m = new HostBookBatchMeetingRequestMetadataEntry();
9055
+ m = Object.assign(m, proto);
9056
+ return m;
9057
+ }
9058
+ constructor(kwargs) {
9059
+ if (!kwargs) {
9060
+ return;
9061
+ }
9062
+ Object.assign(this, kwargs);
9063
+ }
9064
+ toApiJson() {
9065
+ const toReturn = {};
9066
+ if (typeof this.key !== 'undefined') {
9067
+ toReturn['key'] = this.key;
9068
+ }
9069
+ if (typeof this.value !== 'undefined') {
9070
+ toReturn['value'] = this.value;
9071
+ }
9072
+ return toReturn;
9073
+ }
9074
+ }
8703
9075
  class MeetingMetadataEntry {
8704
9076
  static fromProto(proto) {
8705
9077
  let m = new MeetingMetadataEntry();
@@ -9274,6 +9646,12 @@ class MCPOptions {
9274
9646
  if (typeof this.serverId !== 'undefined') {
9275
9647
  toReturn['serverId'] = this.serverId;
9276
9648
  }
9649
+ if (typeof this.toolId !== 'undefined') {
9650
+ toReturn['toolId'] = this.toolId;
9651
+ }
9652
+ if (typeof this.requiredFields !== 'undefined') {
9653
+ toReturn['requiredFields'] = this.requiredFields;
9654
+ }
9277
9655
  return toReturn;
9278
9656
  }
9279
9657
  }
@@ -9961,6 +10339,11 @@ class MeetingHostApiService {
9961
10339
  return this.http.post(this._host + "/meetings.v1.MeetingHost/ListBookedMeetings", request.toApiJson(), this.apiOptions())
9962
10340
  .pipe(map(resp => ListBookedMeetingsResponse.fromProto(resp)));
9963
10341
  }
10342
+ listBookedMeetingsV2(r) {
10343
+ const request = (r.toApiJson) ? r : new ListBookedMeetingsV2Request(r);
10344
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/ListBookedMeetingsV2", request.toApiJson(), this.apiOptions())
10345
+ .pipe(map(resp => ListBookedMeetingsV2Response.fromProto(resp)));
10346
+ }
9964
10347
  cancelMeeting(r) {
9965
10348
  const request = (r.toApiJson) ? r : new CancelMeetingRequest(r);
9966
10349
  return this.http.post(this._host + "/meetings.v1.MeetingHost/CancelMeeting", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
@@ -10004,6 +10387,24 @@ class MeetingHostApiService {
10004
10387
  const request = (r.toApiJson) ? r : new UpdateHostPreferencesRequest(r);
10005
10388
  return this.http.post(this._host + "/meetings.v1.MeetingHost/UpdateHostPreferences", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
10006
10389
  }
10390
+ hostBookBatchMeeting(r) {
10391
+ const request = (r.toApiJson) ? r : new HostBookBatchMeetingRequest(r);
10392
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/HostBookBatchMeeting", request.toApiJson(), this.apiOptions())
10393
+ .pipe(map(resp => HostBookBatchMeetingResponse.fromProto(resp)));
10394
+ }
10395
+ hostRescheduleBatchMeeting(r) {
10396
+ const request = (r.toApiJson) ? r : new HostRescheduleBatchMeetingRequest(r);
10397
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/HostRescheduleBatchMeeting", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
10398
+ }
10399
+ hostCancelBatchMeeting(r) {
10400
+ const request = (r.toApiJson) ? r : new HostCancelBatchMeetingRequest(r);
10401
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/HostCancelBatchMeeting", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
10402
+ }
10403
+ hostListBatchAvailableTimeSlots(r) {
10404
+ const request = (r.toApiJson) ? r : new HostListBatchAvailableTimeSlotsRequest(r);
10405
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/HostListBatchAvailableTimeSlots", request.toApiJson(), this.apiOptions())
10406
+ .pipe(map(resp => HostListBatchAvailableTimeSlotsResponse.fromProto(resp)));
10407
+ }
10007
10408
  getMeetingType(r) {
10008
10409
  const request = (r.toApiJson) ? r : new HostGetMeetingTypeRequest(r);
10009
10410
  return this.http.post(this._host + "/meetings.v1.MeetingHost/GetMeetingType", request.toApiJson(), this.apiOptions())
@@ -10501,6 +10902,8 @@ function PreferencesFromApi(preferences) {
10501
10902
  calendarSlug: preferences.calendarSlug || '',
10502
10903
  calendarIntegration: preferences.calendarIntegration || CalendarSource.CALENDAR_SOURCE_INVALID,
10503
10904
  onBoardingState: preferences.onBoardingState || OnBoardingState.COMPLETED_SETUP,
10905
+ calendarMembers: preferences.calendarMembers || [],
10906
+ defaultCalendarView: preferences.defaultCalendarView || CalendarView.CALENDAR_VIEW_INVALID,
10504
10907
  };
10505
10908
  }
10506
10909
 
@@ -11186,6 +11589,67 @@ class HostService {
11186
11589
  .bookMeeting(req)
11187
11590
  .pipe(map((resp) => resp.meetingId));
11188
11591
  }
11592
+ // listBookedMeetingsV2 returns bookings grouped by booking_group_id.
11593
+ // Standalone meetings appear as a single-entry BookedMeetingGroup with an empty
11594
+ // bookingGroupId; batch bookings appear as one BookedMeetingGroup with N siblings.
11595
+ listBookedMeetingsV2(req) {
11596
+ return this.hostAPIService
11597
+ .listBookedMeetingsV2({
11598
+ filters: new ListBookedMeetingsRequestFilters(req.filters),
11599
+ pagingOptions: new PagedRequestOptions({
11600
+ cursor: req.cursor,
11601
+ pageSize: req.pageSize,
11602
+ }),
11603
+ timeZone: new TimeZone(req.timeZone),
11604
+ })
11605
+ .pipe(map((resp) => {
11606
+ const bookings = (resp.bookings || []).map((booking) => ({
11607
+ bookingGroupId: booking.bookingGroupId || "",
11608
+ meetings: (booking.meetings || []).map((meeting) => meetingFromApi(meeting)),
11609
+ }));
11610
+ return new PagedResponse(bookings, resp.pagingMetadata.nextCursor, resp.pagingMetadata.hasMore);
11611
+ }));
11612
+ }
11613
+ // hostBookBatchMeeting books a meeting on the host calendar — single-service
11614
+ // (N=1 target) or multi-service (N>1 ordered targets). Returns the booking_group_id.
11615
+ hostBookBatchMeeting(req) {
11616
+ return this.hostAPIService
11617
+ .hostBookBatchMeeting({
11618
+ ...req,
11619
+ formAnswers: answersToAPI(req.formAnswers),
11620
+ })
11621
+ .pipe(map((resp) => resp.bookingGroupId));
11622
+ }
11623
+ // hostRescheduleBatchMeeting accepts either a single meeting_id or a booking_group_id.
11624
+ // When a booking_group_id is passed the server reschedules every sibling atomically,
11625
+ // preserving per-sibling durations and shifting all by the same delta.
11626
+ hostRescheduleBatchMeeting(req) {
11627
+ return this.hostAPIService
11628
+ .hostRescheduleBatchMeeting(req)
11629
+ .pipe(mapTo(null));
11630
+ }
11631
+ // hostCancelBatchMeeting accepts either a single meeting_id or a booking_group_id.
11632
+ // For partial-group cancellation the FE issues N parallel calls each with the
11633
+ // individual meeting_id.
11634
+ hostCancelBatchMeeting(req) {
11635
+ return this.hostAPIService.hostCancelBatchMeeting(req).pipe(mapTo(null));
11636
+ }
11637
+ // hostListBatchAvailableTimeSlots returns valid chain start times for a
11638
+ // multi-service host booking. Each slot is the start of the first meeting
11639
+ // in the chain.
11640
+ hostListBatchAvailableTimeSlots(req) {
11641
+ return this.hostAPIService
11642
+ .hostListBatchAvailableTimeSlots(req)
11643
+ .pipe(map((resp) => {
11644
+ if (resp.isoTimeSlots?.length) {
11645
+ return resp.isoTimeSlots.map((iso) => ({
11646
+ start: new Date(iso.start),
11647
+ end: new Date(iso.end),
11648
+ }));
11649
+ }
11650
+ return [];
11651
+ }));
11652
+ }
11189
11653
  // createDefaultMeetingTypes will create what Meeting Scheduler deems to be the default meeting types.
11190
11654
  // If the calendar already has meeting types, this is guaranteed to be a no-op.
11191
11655
  createDefaultMeetingTypes(req) {
@@ -11439,5 +11903,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
11439
11903
  * Generated bundle index. Do not edit.
11440
11904
  */
11441
11905
 
11442
- export { BookBatchMeetingResponse, BookingSource, CalendarSource, CalendarType, CheckFeatureFlagRequest, CheckFeatureFlagResponse, Contact$1 as Contact, CreateCalendarRequest, CreateCalendarResponse, DateRangeType, DayOfWeek, FeatureFlagFieldType, FormFieldType, GetServiceV2Response, GuestGetBookedMeetingResponseV2, GuestService, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, ListBatchAvailableTimeSlotsResponse, ListGuestBookedMeetingsResponse, MeetingDetail, MeetingLocation, MeetingLocationType, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceOrigin, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, NotificationType, OnBoardingState, PagedResponse, RegistrationCutOffUnit, RelativeTimeUnit, ServiceEventType, ServiceGroup, TeamEventMeetingType, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
11906
+ export { BookBatchMeetingResponse, BookedMeetingV2, BookingSource, CalendarMember, CalendarSource, CalendarType, CalendarView, CheckFeatureFlagRequest, CheckFeatureFlagResponse, Contact$1 as Contact, CreateCalendarRequest, CreateCalendarResponse, DateRangeType, DayOfWeek, FeatureFlagFieldType, FormFieldType, GetServiceV2Response, GuestGetBookedMeetingResponseV2, GuestService, HostBookBatchMeetingResponse, HostListBatchAvailableTimeSlotsResponse, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, ListBatchAvailableTimeSlotsResponse, ListBookedMeetingsV2Response, ListGuestBookedMeetingsResponse, MeetingDetail, MeetingLocation, MeetingLocationType, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceOrigin, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, NotificationType, OnBoardingState, PagedResponse, RegistrationCutOffUnit, RelativeTimeUnit, ServiceEventType, ServiceGroup, TeamEventMeetingType, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
11443
11907
  //# sourceMappingURL=vendasta-meetings.mjs.map