@vendasta/meetings 1.7.6 → 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 (43) 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/groups-and-services.interface.mjs +1 -7
  5. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  6. package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/meeting-host.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/shared.interface.mjs +1 -1
  9. package/esm2020/lib/_internal/meeting-host.api.service.mjs +25 -2
  10. package/esm2020/lib/_internal/objects/annotations.mjs +7 -1
  11. package/esm2020/lib/_internal/objects/groups-and-services.mjs +15 -1
  12. package/esm2020/lib/_internal/objects/index.mjs +4 -4
  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/shared.mjs +91 -1
  16. package/esm2020/lib/host/host.service.mjs +63 -2
  17. package/esm2020/lib/index.mjs +3 -3
  18. package/esm2020/lib/shared/meeting.mjs +1 -1
  19. package/esm2020/lib/shared/preferences.mjs +4 -2
  20. package/fesm2015/vendasta-meetings.mjs +531 -57
  21. package/fesm2015/vendasta-meetings.mjs.map +1 -1
  22. package/fesm2020/vendasta-meetings.mjs +533 -57
  23. package/fesm2020/vendasta-meetings.mjs.map +1 -1
  24. package/lib/_internal/enums/index.d.ts +1 -1
  25. package/lib/_internal/enums/shared.enum.d.ts +7 -0
  26. package/lib/_internal/interfaces/annotations.interface.d.ts +2 -0
  27. package/lib/_internal/interfaces/groups-and-services.interface.d.ts +4 -0
  28. package/lib/_internal/interfaces/index.d.ts +3 -3
  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/groups-and-services.d.ts +4 -0
  35. package/lib/_internal/objects/index.d.ts +3 -3
  36. package/lib/_internal/objects/meeting-guest.d.ts +9 -23
  37. package/lib/_internal/objects/meeting-host.d.ts +84 -1
  38. package/lib/_internal/objects/shared.d.ts +26 -0
  39. package/lib/host/host.service.d.ts +38 -2
  40. package/lib/index.d.ts +4 -4
  41. package/lib/shared/meeting.d.ts +4 -0
  42. package/lib/shared/preferences.d.ts +4 -2
  43. 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
  }
@@ -2423,6 +2521,12 @@ class EventGroupAndServiceAssociations {
2423
2521
  static fromProto(proto) {
2424
2522
  let m = new EventGroupAndServiceAssociations();
2425
2523
  m = Object.assign(m, proto);
2524
+ if (proto.hostUsers) {
2525
+ m.hostUsers = proto.hostUsers.map(HostUser.fromProto);
2526
+ }
2527
+ if (proto.teamMeetingType) {
2528
+ m.teamMeetingType = enumStringToValue$8(TeamEventMeetingType, proto.teamMeetingType);
2529
+ }
2426
2530
  return m;
2427
2531
  }
2428
2532
  constructor(kwargs) {
@@ -2466,6 +2570,12 @@ class EventGroupAndServiceAssociations {
2466
2570
  if (typeof this.bookingUrl !== 'undefined') {
2467
2571
  toReturn['bookingUrl'] = this.bookingUrl;
2468
2572
  }
2573
+ if (typeof this.hostUsers !== 'undefined' && this.hostUsers !== null) {
2574
+ toReturn['hostUsers'] = 'toApiJson' in this.hostUsers ? this.hostUsers.toApiJson() : this.hostUsers;
2575
+ }
2576
+ if (typeof this.teamMeetingType !== 'undefined') {
2577
+ toReturn['teamMeetingType'] = this.teamMeetingType;
2578
+ }
2469
2579
  return toReturn;
2470
2580
  }
2471
2581
  }
@@ -3760,58 +3870,6 @@ function enumStringToValue$6(enumRef, value) {
3760
3870
  }
3761
3871
  return enumRef[value];
3762
3872
  }
3763
- class BatchBookingTarget {
3764
- static fromProto(proto) {
3765
- let m = new BatchBookingTarget();
3766
- m = Object.assign(m, proto);
3767
- return m;
3768
- }
3769
- constructor(kwargs) {
3770
- if (!kwargs) {
3771
- return;
3772
- }
3773
- Object.assign(this, kwargs);
3774
- }
3775
- toApiJson() {
3776
- const toReturn = {};
3777
- if (typeof this.eventTypeId !== 'undefined') {
3778
- toReturn['eventTypeId'] = this.eventTypeId;
3779
- }
3780
- if (typeof this.userId !== 'undefined') {
3781
- toReturn['userId'] = this.userId;
3782
- }
3783
- if (typeof this.order !== 'undefined') {
3784
- toReturn['order'] = this.order;
3785
- }
3786
- return toReturn;
3787
- }
3788
- }
3789
- class BatchEventTypeTarget {
3790
- static fromProto(proto) {
3791
- let m = new BatchEventTypeTarget();
3792
- m = Object.assign(m, proto);
3793
- return m;
3794
- }
3795
- constructor(kwargs) {
3796
- if (!kwargs) {
3797
- return;
3798
- }
3799
- Object.assign(this, kwargs);
3800
- }
3801
- toApiJson() {
3802
- const toReturn = {};
3803
- if (typeof this.eventTypeId !== 'undefined') {
3804
- toReturn['eventTypeId'] = this.eventTypeId;
3805
- }
3806
- if (typeof this.userId !== 'undefined') {
3807
- toReturn['userId'] = this.userId;
3808
- }
3809
- if (typeof this.order !== 'undefined') {
3810
- toReturn['order'] = this.order;
3811
- }
3812
- return toReturn;
3813
- }
3814
- }
3815
3873
  class BookBatchMeetingRequest {
3816
3874
  static fromProto(proto) {
3817
3875
  let m = new BookBatchMeetingRequest();
@@ -4802,6 +4860,9 @@ class GuestGetBookedMeetingResponseV2 {
4802
4860
  if (typeof this.primaryAttendeePhone !== 'undefined') {
4803
4861
  toReturn['primaryAttendeePhone'] = this.primaryAttendeePhone;
4804
4862
  }
4863
+ if (typeof this.isLocationEditable !== 'undefined') {
4864
+ toReturn['isLocationEditable'] = this.isLocationEditable;
4865
+ }
4805
4866
  return toReturn;
4806
4867
  }
4807
4868
  }
@@ -5213,6 +5274,9 @@ class MeetingDetail {
5213
5274
  if (proto.previousEndTime) {
5214
5275
  m.previousEndTime = new Date(proto.previousEndTime);
5215
5276
  }
5277
+ if (proto.inPersonLocationType) {
5278
+ m.inPersonLocationType = enumStringToValue$6(MeetingLocationType, proto.inPersonLocationType);
5279
+ }
5216
5280
  return m;
5217
5281
  }
5218
5282
  constructor(kwargs) {
@@ -5286,6 +5350,9 @@ class MeetingDetail {
5286
5350
  if (typeof this.locationGuideline !== 'undefined') {
5287
5351
  toReturn['locationGuideline'] = this.locationGuideline;
5288
5352
  }
5353
+ if (typeof this.inPersonLocationType !== 'undefined') {
5354
+ toReturn['inPersonLocationType'] = this.inPersonLocationType;
5355
+ }
5289
5356
  return toReturn;
5290
5357
  }
5291
5358
  }
@@ -5333,9 +5400,9 @@ class MeetingSummary {
5333
5400
  return toReturn;
5334
5401
  }
5335
5402
  }
5336
- class BookBatchMeetingRequestMetadataEntry {
5403
+ class BookMeetingRequestMetadataEntry {
5337
5404
  static fromProto(proto) {
5338
- let m = new BookBatchMeetingRequestMetadataEntry();
5405
+ let m = new BookMeetingRequestMetadataEntry();
5339
5406
  m = Object.assign(m, proto);
5340
5407
  return m;
5341
5408
  }
@@ -5356,9 +5423,9 @@ class BookBatchMeetingRequestMetadataEntry {
5356
5423
  return toReturn;
5357
5424
  }
5358
5425
  }
5359
- class BookMeetingRequestMetadataEntry {
5426
+ class BookBatchMeetingRequestMetadataEntry {
5360
5427
  static fromProto(proto) {
5361
- let m = new BookMeetingRequestMetadataEntry();
5428
+ let m = new BookBatchMeetingRequestMetadataEntry();
5362
5429
  m = Object.assign(m, proto);
5363
5430
  return m;
5364
5431
  }
@@ -6427,6 +6494,32 @@ class AvailabilityRuleList {
6427
6494
  return toReturn;
6428
6495
  }
6429
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
+ }
6430
6523
  class BuildHostIdRequest {
6431
6524
  static fromProto(proto) {
6432
6525
  let m = new BuildHostIdRequest();
@@ -7550,6 +7643,91 @@ class GetMeetingTypesForCalendarsResponse {
7550
7643
  return toReturn;
7551
7644
  }
7552
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
+ }
7553
7731
  class HostBookMeetingRequest {
7554
7732
  static fromProto(proto) {
7555
7733
  let m = new HostBookMeetingRequest();
@@ -7735,6 +7913,29 @@ class HostBookSessionResponse {
7735
7913
  return toReturn;
7736
7914
  }
7737
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
+ }
7738
7939
  class HostDeleteAttendeesRequest {
7739
7940
  static fromProto(proto) {
7740
7941
  let m = new HostDeleteAttendeesRequest();
@@ -7873,6 +8074,67 @@ class HostGetMeetingTypeResponse {
7873
8074
  return toReturn;
7874
8075
  }
7875
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
+ }
7876
8138
  class HostListMeetingTypesRequest {
7877
8139
  static fromProto(proto) {
7878
8140
  let m = new HostListMeetingTypesRequest();
@@ -7916,6 +8178,41 @@ class HostListMeetingTypesResponse {
7916
8178
  return toReturn;
7917
8179
  }
7918
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
+ }
7919
8216
  class GetHostsForCalendarResponseHostUserAvailabilityRuleEntry {
7920
8217
  static fromProto(proto) {
7921
8218
  let m = new GetHostsForCalendarResponseHostUserAvailabilityRuleEntry();
@@ -8339,6 +8636,70 @@ class ListBookedMeetingsResponse {
8339
8636
  return toReturn;
8340
8637
  }
8341
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
+ }
8342
8703
  class ListBookingTypesForAIRequest {
8343
8704
  static fromProto(proto) {
8344
8705
  let m = new ListBookingTypesForAIRequest();
@@ -8688,6 +9049,29 @@ class UpdateMeetingMetadataRequestMetadataEntry {
8688
9049
  return toReturn;
8689
9050
  }
8690
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
+ }
8691
9075
  class MeetingMetadataEntry {
8692
9076
  static fromProto(proto) {
8693
9077
  let m = new MeetingMetadataEntry();
@@ -9262,6 +9646,12 @@ class MCPOptions {
9262
9646
  if (typeof this.serverId !== 'undefined') {
9263
9647
  toReturn['serverId'] = this.serverId;
9264
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
+ }
9265
9655
  return toReturn;
9266
9656
  }
9267
9657
  }
@@ -10240,6 +10630,11 @@ class MeetingHostApiService {
10240
10630
  return this.http.post(this._host + "/meetings.v1.MeetingHost/ListBookedMeetings", request.toApiJson(), this.apiOptions())
10241
10631
  .pipe(map(resp => ListBookedMeetingsResponse.fromProto(resp)));
10242
10632
  }
10633
+ listBookedMeetingsV2(r) {
10634
+ const request = (r.toApiJson) ? r : new ListBookedMeetingsV2Request(r);
10635
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/ListBookedMeetingsV2", request.toApiJson(), this.apiOptions())
10636
+ .pipe(map(resp => ListBookedMeetingsV2Response.fromProto(resp)));
10637
+ }
10243
10638
  cancelMeeting(r) {
10244
10639
  const request = (r.toApiJson) ? r : new CancelMeetingRequest(r);
10245
10640
  return this.http.post(this._host + "/meetings.v1.MeetingHost/CancelMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
@@ -10283,6 +10678,24 @@ class MeetingHostApiService {
10283
10678
  const request = (r.toApiJson) ? r : new UpdateHostPreferencesRequest(r);
10284
10679
  return this.http.post(this._host + "/meetings.v1.MeetingHost/UpdateHostPreferences", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
10285
10680
  }
10681
+ hostBookBatchMeeting(r) {
10682
+ const request = (r.toApiJson) ? r : new HostBookBatchMeetingRequest(r);
10683
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/HostBookBatchMeeting", request.toApiJson(), this.apiOptions())
10684
+ .pipe(map(resp => HostBookBatchMeetingResponse.fromProto(resp)));
10685
+ }
10686
+ hostRescheduleBatchMeeting(r) {
10687
+ const request = (r.toApiJson) ? r : new HostRescheduleBatchMeetingRequest(r);
10688
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/HostRescheduleBatchMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
10689
+ }
10690
+ hostCancelBatchMeeting(r) {
10691
+ const request = (r.toApiJson) ? r : new HostCancelBatchMeetingRequest(r);
10692
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/HostCancelBatchMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
10693
+ }
10694
+ hostListBatchAvailableTimeSlots(r) {
10695
+ const request = (r.toApiJson) ? r : new HostListBatchAvailableTimeSlotsRequest(r);
10696
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/HostListBatchAvailableTimeSlots", request.toApiJson(), this.apiOptions())
10697
+ .pipe(map(resp => HostListBatchAvailableTimeSlotsResponse.fromProto(resp)));
10698
+ }
10286
10699
  getMeetingType(r) {
10287
10700
  const request = (r.toApiJson) ? r : new HostGetMeetingTypeRequest(r);
10288
10701
  return this.http.post(this._host + "/meetings.v1.MeetingHost/GetMeetingType", request.toApiJson(), this.apiOptions())
@@ -10482,6 +10895,8 @@ function PreferencesFromApi(preferences) {
10482
10895
  calendarSlug: preferences.calendarSlug || '',
10483
10896
  calendarIntegration: preferences.calendarIntegration || CalendarSource.CALENDAR_SOURCE_INVALID,
10484
10897
  onBoardingState: preferences.onBoardingState || OnBoardingState.COMPLETED_SETUP,
10898
+ calendarMembers: preferences.calendarMembers || [],
10899
+ defaultCalendarView: preferences.defaultCalendarView || CalendarView.CALENDAR_VIEW_INVALID,
10485
10900
  };
10486
10901
  }
10487
10902
 
@@ -11133,6 +11548,65 @@ class HostService {
11133
11548
  .bookMeeting(req)
11134
11549
  .pipe(map((resp) => resp.meetingId));
11135
11550
  }
11551
+ // listBookedMeetingsV2 returns bookings grouped by booking_group_id.
11552
+ // Standalone meetings appear as a single-entry BookedMeetingGroup with an empty
11553
+ // bookingGroupId; batch bookings appear as one BookedMeetingGroup with N siblings.
11554
+ listBookedMeetingsV2(req) {
11555
+ return this.hostAPIService
11556
+ .listBookedMeetingsV2({
11557
+ filters: new ListBookedMeetingsRequestFilters(req.filters),
11558
+ pagingOptions: new PagedRequestOptions({
11559
+ cursor: req.cursor,
11560
+ pageSize: req.pageSize,
11561
+ }),
11562
+ timeZone: new TimeZone(req.timeZone),
11563
+ })
11564
+ .pipe(map((resp) => {
11565
+ const bookings = (resp.bookings || []).map((booking) => ({
11566
+ bookingGroupId: booking.bookingGroupId || "",
11567
+ meetings: (booking.meetings || []).map((meeting) => meetingFromApi(meeting)),
11568
+ }));
11569
+ return new PagedResponse(bookings, resp.pagingMetadata.nextCursor, resp.pagingMetadata.hasMore);
11570
+ }));
11571
+ }
11572
+ // hostBookBatchMeeting books a meeting on the host calendar — single-service
11573
+ // (N=1 target) or multi-service (N>1 ordered targets). Returns the booking_group_id.
11574
+ hostBookBatchMeeting(req) {
11575
+ return this.hostAPIService
11576
+ .hostBookBatchMeeting(Object.assign(Object.assign({}, req), { formAnswers: answersToAPI(req.formAnswers) }))
11577
+ .pipe(map((resp) => resp.bookingGroupId));
11578
+ }
11579
+ // hostRescheduleBatchMeeting accepts either a single meeting_id or a booking_group_id.
11580
+ // When a booking_group_id is passed the server reschedules every sibling atomically,
11581
+ // preserving per-sibling durations and shifting all by the same delta.
11582
+ hostRescheduleBatchMeeting(req) {
11583
+ return this.hostAPIService
11584
+ .hostRescheduleBatchMeeting(req)
11585
+ .pipe(mapTo(null));
11586
+ }
11587
+ // hostCancelBatchMeeting accepts either a single meeting_id or a booking_group_id.
11588
+ // For partial-group cancellation the FE issues N parallel calls each with the
11589
+ // individual meeting_id.
11590
+ hostCancelBatchMeeting(req) {
11591
+ return this.hostAPIService.hostCancelBatchMeeting(req).pipe(mapTo(null));
11592
+ }
11593
+ // hostListBatchAvailableTimeSlots returns valid chain start times for a
11594
+ // multi-service host booking. Each slot is the start of the first meeting
11595
+ // in the chain.
11596
+ hostListBatchAvailableTimeSlots(req) {
11597
+ return this.hostAPIService
11598
+ .hostListBatchAvailableTimeSlots(req)
11599
+ .pipe(map((resp) => {
11600
+ var _a;
11601
+ if ((_a = resp.isoTimeSlots) === null || _a === void 0 ? void 0 : _a.length) {
11602
+ return resp.isoTimeSlots.map((iso) => ({
11603
+ start: new Date(iso.start),
11604
+ end: new Date(iso.end),
11605
+ }));
11606
+ }
11607
+ return [];
11608
+ }));
11609
+ }
11136
11610
  // createDefaultMeetingTypes will create what Meeting Scheduler deems to be the default meeting types.
11137
11611
  // If the calendar already has meeting types, this is guaranteed to be a no-op.
11138
11612
  createDefaultMeetingTypes(req) {
@@ -11380,5 +11854,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
11380
11854
  * Generated bundle index. Do not edit.
11381
11855
  */
11382
11856
 
11383
- 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 };
11857
+ 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 };
11384
11858
  //# sourceMappingURL=vendasta-meetings.mjs.map