@vendasta/meetings 1.7.7 → 1.8.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.
Files changed (53) 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-external.interface.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/date-range.mjs +1 -1
  12. package/esm2020/lib/_internal/objects/field-mask.mjs +1 -1
  13. package/esm2020/lib/_internal/objects/index.mjs +4 -4
  14. package/esm2020/lib/_internal/objects/meeting-external.mjs +2 -2
  15. package/esm2020/lib/_internal/objects/meeting-guest.mjs +22 -59
  16. package/esm2020/lib/_internal/objects/meeting-host.mjs +320 -3
  17. package/esm2020/lib/_internal/objects/meeting-type.mjs +1 -1
  18. package/esm2020/lib/_internal/objects/openapiv2.mjs +1 -1
  19. package/esm2020/lib/_internal/objects/shared.mjs +91 -1
  20. package/esm2020/lib/_internal/objects/zoom.mjs +1 -1
  21. package/esm2020/lib/host/host.service.mjs +63 -2
  22. package/esm2020/lib/index.mjs +3 -3
  23. package/esm2020/lib/shared/meeting.mjs +1 -1
  24. package/esm2020/lib/shared/preferences.mjs +4 -2
  25. package/fesm2015/vendasta-meetings.mjs +525 -57
  26. package/fesm2015/vendasta-meetings.mjs.map +1 -1
  27. package/fesm2020/vendasta-meetings.mjs +527 -57
  28. package/fesm2020/vendasta-meetings.mjs.map +1 -1
  29. package/lib/_internal/enums/index.d.ts +1 -1
  30. package/lib/_internal/enums/shared.enum.d.ts +7 -0
  31. package/lib/_internal/interfaces/annotations.interface.d.ts +2 -0
  32. package/lib/_internal/interfaces/index.d.ts +3 -3
  33. package/lib/_internal/interfaces/meeting-external.interface.d.ts +1 -1
  34. package/lib/_internal/interfaces/meeting-guest.interface.d.ts +7 -14
  35. package/lib/_internal/interfaces/meeting-host.interface.d.ts +55 -2
  36. package/lib/_internal/interfaces/shared.interface.d.ts +17 -0
  37. package/lib/_internal/meeting-host.api.service.d.ts +7 -2
  38. package/lib/_internal/objects/annotations.d.ts +3 -1
  39. package/lib/_internal/objects/date-range.d.ts +1 -1
  40. package/lib/_internal/objects/field-mask.d.ts +1 -1
  41. package/lib/_internal/objects/index.d.ts +3 -3
  42. package/lib/_internal/objects/meeting-external.d.ts +2 -2
  43. package/lib/_internal/objects/meeting-guest.d.ts +12 -25
  44. package/lib/_internal/objects/meeting-host.d.ts +86 -3
  45. package/lib/_internal/objects/meeting-type.d.ts +1 -1
  46. package/lib/_internal/objects/openapiv2.d.ts +1 -1
  47. package/lib/_internal/objects/shared.d.ts +27 -1
  48. package/lib/_internal/objects/zoom.d.ts +1 -1
  49. package/lib/host/host.service.d.ts +38 -2
  50. package/lib/index.d.ts +4 -4
  51. package/lib/shared/meeting.d.ts +4 -0
  52. package/lib/shared/preferences.d.ts +4 -2
  53. 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();
@@ -4364,6 +4410,9 @@ class GetServiceV2Request {
4364
4410
  static fromProto(proto) {
4365
4411
  let m = new GetServiceV2Request();
4366
4412
  m = Object.assign(m, proto);
4413
+ if (proto.bookingSource) {
4414
+ m.bookingSource = enumStringToValue$6(BookingSource, proto.bookingSource);
4415
+ }
4367
4416
  return m;
4368
4417
  }
4369
4418
  constructor(kwargs) {
@@ -4377,6 +4426,9 @@ class GetServiceV2Request {
4377
4426
  if (typeof this.serviceId !== 'undefined') {
4378
4427
  toReturn['serviceId'] = this.serviceId;
4379
4428
  }
4429
+ if (typeof this.bookingSource !== 'undefined') {
4430
+ toReturn['bookingSource'] = this.bookingSource;
4431
+ }
4380
4432
  return toReturn;
4381
4433
  }
4382
4434
  }
@@ -4814,6 +4866,9 @@ class GuestGetBookedMeetingResponseV2 {
4814
4866
  if (typeof this.primaryAttendeePhone !== 'undefined') {
4815
4867
  toReturn['primaryAttendeePhone'] = this.primaryAttendeePhone;
4816
4868
  }
4869
+ if (typeof this.isLocationEditable !== 'undefined') {
4870
+ toReturn['isLocationEditable'] = this.isLocationEditable;
4871
+ }
4817
4872
  return toReturn;
4818
4873
  }
4819
4874
  }
@@ -5225,6 +5280,9 @@ class MeetingDetail {
5225
5280
  if (proto.previousEndTime) {
5226
5281
  m.previousEndTime = new Date(proto.previousEndTime);
5227
5282
  }
5283
+ if (proto.inPersonLocationType) {
5284
+ m.inPersonLocationType = enumStringToValue$6(MeetingLocationType, proto.inPersonLocationType);
5285
+ }
5228
5286
  return m;
5229
5287
  }
5230
5288
  constructor(kwargs) {
@@ -5298,6 +5356,9 @@ class MeetingDetail {
5298
5356
  if (typeof this.locationGuideline !== 'undefined') {
5299
5357
  toReturn['locationGuideline'] = this.locationGuideline;
5300
5358
  }
5359
+ if (typeof this.inPersonLocationType !== 'undefined') {
5360
+ toReturn['inPersonLocationType'] = this.inPersonLocationType;
5361
+ }
5301
5362
  return toReturn;
5302
5363
  }
5303
5364
  }
@@ -5345,9 +5406,9 @@ class MeetingSummary {
5345
5406
  return toReturn;
5346
5407
  }
5347
5408
  }
5348
- class BookBatchMeetingRequestMetadataEntry {
5409
+ class BookMeetingRequestMetadataEntry {
5349
5410
  static fromProto(proto) {
5350
- let m = new BookBatchMeetingRequestMetadataEntry();
5411
+ let m = new BookMeetingRequestMetadataEntry();
5351
5412
  m = Object.assign(m, proto);
5352
5413
  return m;
5353
5414
  }
@@ -5368,9 +5429,9 @@ class BookBatchMeetingRequestMetadataEntry {
5368
5429
  return toReturn;
5369
5430
  }
5370
5431
  }
5371
- class BookMeetingRequestMetadataEntry {
5432
+ class BookBatchMeetingRequestMetadataEntry {
5372
5433
  static fromProto(proto) {
5373
- let m = new BookMeetingRequestMetadataEntry();
5434
+ let m = new BookBatchMeetingRequestMetadataEntry();
5374
5435
  m = Object.assign(m, proto);
5375
5436
  return m;
5376
5437
  }
@@ -6439,6 +6500,32 @@ class AvailabilityRuleList {
6439
6500
  return toReturn;
6440
6501
  }
6441
6502
  }
6503
+ class BookedMeetingV2 {
6504
+ static fromProto(proto) {
6505
+ let m = new BookedMeetingV2();
6506
+ m = Object.assign(m, proto);
6507
+ if (proto.meetings) {
6508
+ m.meetings = proto.meetings.map(Meeting.fromProto);
6509
+ }
6510
+ return m;
6511
+ }
6512
+ constructor(kwargs) {
6513
+ if (!kwargs) {
6514
+ return;
6515
+ }
6516
+ Object.assign(this, kwargs);
6517
+ }
6518
+ toApiJson() {
6519
+ const toReturn = {};
6520
+ if (typeof this.bookingGroupId !== 'undefined') {
6521
+ toReturn['bookingGroupId'] = this.bookingGroupId;
6522
+ }
6523
+ if (typeof this.meetings !== 'undefined' && this.meetings !== null) {
6524
+ toReturn['meetings'] = 'toApiJson' in this.meetings ? this.meetings.toApiJson() : this.meetings;
6525
+ }
6526
+ return toReturn;
6527
+ }
6528
+ }
6442
6529
  class BuildHostIdRequest {
6443
6530
  static fromProto(proto) {
6444
6531
  let m = new BuildHostIdRequest();
@@ -7562,6 +7649,91 @@ class GetMeetingTypesForCalendarsResponse {
7562
7649
  return toReturn;
7563
7650
  }
7564
7651
  }
7652
+ class HostBookBatchMeetingRequest {
7653
+ static fromProto(proto) {
7654
+ let m = new HostBookBatchMeetingRequest();
7655
+ m = Object.assign(m, proto);
7656
+ if (proto.targets) {
7657
+ m.targets = proto.targets.map(BatchBookingTarget.fromProto);
7658
+ }
7659
+ if (proto.start) {
7660
+ m.start = new Date(proto.start);
7661
+ }
7662
+ if (proto.attendees) {
7663
+ m.attendees = proto.attendees.map(Contact$1.fromProto);
7664
+ }
7665
+ if (proto.metadata) {
7666
+ m.metadata = Object.keys(proto.metadata).reduce((obj, k) => { obj[k] = proto.metadata[k]; return obj; }, {});
7667
+ }
7668
+ if (proto.formAnswers) {
7669
+ m.formAnswers = Answers.fromProto(proto.formAnswers);
7670
+ }
7671
+ if (proto.bookingSource) {
7672
+ m.bookingSource = enumStringToValue$3(BookingSource, proto.bookingSource);
7673
+ }
7674
+ return m;
7675
+ }
7676
+ constructor(kwargs) {
7677
+ if (!kwargs) {
7678
+ return;
7679
+ }
7680
+ Object.assign(this, kwargs);
7681
+ }
7682
+ toApiJson() {
7683
+ const toReturn = {};
7684
+ if (typeof this.calendarId !== 'undefined') {
7685
+ toReturn['calendarId'] = this.calendarId;
7686
+ }
7687
+ if (typeof this.targets !== 'undefined' && this.targets !== null) {
7688
+ toReturn['targets'] = 'toApiJson' in this.targets ? this.targets.toApiJson() : this.targets;
7689
+ }
7690
+ if (typeof this.start !== 'undefined' && this.start !== null) {
7691
+ toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
7692
+ }
7693
+ if (typeof this.attendees !== 'undefined' && this.attendees !== null) {
7694
+ toReturn['attendees'] = 'toApiJson' in this.attendees ? this.attendees.toApiJson() : this.attendees;
7695
+ }
7696
+ if (typeof this.comment !== 'undefined') {
7697
+ toReturn['comment'] = this.comment;
7698
+ }
7699
+ if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
7700
+ toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
7701
+ }
7702
+ if (typeof this.formAnswers !== 'undefined' && this.formAnswers !== null) {
7703
+ toReturn['formAnswers'] = 'toApiJson' in this.formAnswers ? this.formAnswers.toApiJson() : this.formAnswers;
7704
+ }
7705
+ if (typeof this.location !== 'undefined') {
7706
+ toReturn['location'] = this.location;
7707
+ }
7708
+ if (typeof this.bookingSource !== 'undefined') {
7709
+ toReturn['bookingSource'] = this.bookingSource;
7710
+ }
7711
+ if (typeof this.bookingOriginId !== 'undefined') {
7712
+ toReturn['bookingOriginId'] = this.bookingOriginId;
7713
+ }
7714
+ return toReturn;
7715
+ }
7716
+ }
7717
+ class HostBookBatchMeetingResponse {
7718
+ static fromProto(proto) {
7719
+ let m = new HostBookBatchMeetingResponse();
7720
+ m = Object.assign(m, proto);
7721
+ return m;
7722
+ }
7723
+ constructor(kwargs) {
7724
+ if (!kwargs) {
7725
+ return;
7726
+ }
7727
+ Object.assign(this, kwargs);
7728
+ }
7729
+ toApiJson() {
7730
+ const toReturn = {};
7731
+ if (typeof this.bookingGroupId !== 'undefined') {
7732
+ toReturn['bookingGroupId'] = this.bookingGroupId;
7733
+ }
7734
+ return toReturn;
7735
+ }
7736
+ }
7565
7737
  class HostBookMeetingRequest {
7566
7738
  static fromProto(proto) {
7567
7739
  let m = new HostBookMeetingRequest();
@@ -7747,6 +7919,29 @@ class HostBookSessionResponse {
7747
7919
  return toReturn;
7748
7920
  }
7749
7921
  }
7922
+ class HostCancelBatchMeetingRequest {
7923
+ static fromProto(proto) {
7924
+ let m = new HostCancelBatchMeetingRequest();
7925
+ m = Object.assign(m, proto);
7926
+ return m;
7927
+ }
7928
+ constructor(kwargs) {
7929
+ if (!kwargs) {
7930
+ return;
7931
+ }
7932
+ Object.assign(this, kwargs);
7933
+ }
7934
+ toApiJson() {
7935
+ const toReturn = {};
7936
+ if (typeof this.id !== 'undefined') {
7937
+ toReturn['id'] = this.id;
7938
+ }
7939
+ if (typeof this.cancellationReason !== 'undefined') {
7940
+ toReturn['cancellationReason'] = this.cancellationReason;
7941
+ }
7942
+ return toReturn;
7943
+ }
7944
+ }
7750
7945
  class HostDeleteAttendeesRequest {
7751
7946
  static fromProto(proto) {
7752
7947
  let m = new HostDeleteAttendeesRequest();
@@ -7885,6 +8080,67 @@ class HostGetMeetingTypeResponse {
7885
8080
  return toReturn;
7886
8081
  }
7887
8082
  }
8083
+ class HostListBatchAvailableTimeSlotsRequest {
8084
+ static fromProto(proto) {
8085
+ let m = new HostListBatchAvailableTimeSlotsRequest();
8086
+ m = Object.assign(m, proto);
8087
+ if (proto.targets) {
8088
+ m.targets = proto.targets.map(BatchEventTypeTarget.fromProto);
8089
+ }
8090
+ if (proto.timeSpan) {
8091
+ m.timeSpan = DateRange.fromProto(proto.timeSpan);
8092
+ }
8093
+ if (proto.timeZone) {
8094
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
8095
+ }
8096
+ return m;
8097
+ }
8098
+ constructor(kwargs) {
8099
+ if (!kwargs) {
8100
+ return;
8101
+ }
8102
+ Object.assign(this, kwargs);
8103
+ }
8104
+ toApiJson() {
8105
+ const toReturn = {};
8106
+ if (typeof this.hostId !== 'undefined') {
8107
+ toReturn['hostId'] = this.hostId;
8108
+ }
8109
+ if (typeof this.targets !== 'undefined' && this.targets !== null) {
8110
+ toReturn['targets'] = 'toApiJson' in this.targets ? this.targets.toApiJson() : this.targets;
8111
+ }
8112
+ if (typeof this.timeSpan !== 'undefined' && this.timeSpan !== null) {
8113
+ toReturn['timeSpan'] = 'toApiJson' in this.timeSpan ? this.timeSpan.toApiJson() : this.timeSpan;
8114
+ }
8115
+ if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
8116
+ toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
8117
+ }
8118
+ return toReturn;
8119
+ }
8120
+ }
8121
+ class HostListBatchAvailableTimeSlotsResponse {
8122
+ static fromProto(proto) {
8123
+ let m = new HostListBatchAvailableTimeSlotsResponse();
8124
+ m = Object.assign(m, proto);
8125
+ if (proto.isoTimeSlots) {
8126
+ m.isoTimeSlots = proto.isoTimeSlots.map(IsoDateTimeRange.fromProto);
8127
+ }
8128
+ return m;
8129
+ }
8130
+ constructor(kwargs) {
8131
+ if (!kwargs) {
8132
+ return;
8133
+ }
8134
+ Object.assign(this, kwargs);
8135
+ }
8136
+ toApiJson() {
8137
+ const toReturn = {};
8138
+ if (typeof this.isoTimeSlots !== 'undefined' && this.isoTimeSlots !== null) {
8139
+ toReturn['isoTimeSlots'] = 'toApiJson' in this.isoTimeSlots ? this.isoTimeSlots.toApiJson() : this.isoTimeSlots;
8140
+ }
8141
+ return toReturn;
8142
+ }
8143
+ }
7888
8144
  class HostListMeetingTypesRequest {
7889
8145
  static fromProto(proto) {
7890
8146
  let m = new HostListMeetingTypesRequest();
@@ -7928,6 +8184,41 @@ class HostListMeetingTypesResponse {
7928
8184
  return toReturn;
7929
8185
  }
7930
8186
  }
8187
+ class HostRescheduleBatchMeetingRequest {
8188
+ static fromProto(proto) {
8189
+ let m = new HostRescheduleBatchMeetingRequest();
8190
+ m = Object.assign(m, proto);
8191
+ if (proto.start) {
8192
+ m.start = new Date(proto.start);
8193
+ }
8194
+ if (proto.timeZone) {
8195
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
8196
+ }
8197
+ return m;
8198
+ }
8199
+ constructor(kwargs) {
8200
+ if (!kwargs) {
8201
+ return;
8202
+ }
8203
+ Object.assign(this, kwargs);
8204
+ }
8205
+ toApiJson() {
8206
+ const toReturn = {};
8207
+ if (typeof this.id !== 'undefined') {
8208
+ toReturn['id'] = this.id;
8209
+ }
8210
+ if (typeof this.start !== 'undefined' && this.start !== null) {
8211
+ toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
8212
+ }
8213
+ if (typeof this.location !== 'undefined') {
8214
+ toReturn['location'] = this.location;
8215
+ }
8216
+ if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
8217
+ toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
8218
+ }
8219
+ return toReturn;
8220
+ }
8221
+ }
7931
8222
  class GetHostsForCalendarResponseHostUserAvailabilityRuleEntry {
7932
8223
  static fromProto(proto) {
7933
8224
  let m = new GetHostsForCalendarResponseHostUserAvailabilityRuleEntry();
@@ -8351,6 +8642,70 @@ class ListBookedMeetingsResponse {
8351
8642
  return toReturn;
8352
8643
  }
8353
8644
  }
8645
+ class ListBookedMeetingsV2Request {
8646
+ static fromProto(proto) {
8647
+ let m = new ListBookedMeetingsV2Request();
8648
+ m = Object.assign(m, proto);
8649
+ if (proto.filters) {
8650
+ m.filters = ListBookedMeetingsRequestFilters.fromProto(proto.filters);
8651
+ }
8652
+ if (proto.pagingOptions) {
8653
+ m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
8654
+ }
8655
+ if (proto.timeZone) {
8656
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
8657
+ }
8658
+ return m;
8659
+ }
8660
+ constructor(kwargs) {
8661
+ if (!kwargs) {
8662
+ return;
8663
+ }
8664
+ Object.assign(this, kwargs);
8665
+ }
8666
+ toApiJson() {
8667
+ const toReturn = {};
8668
+ if (typeof this.filters !== 'undefined' && this.filters !== null) {
8669
+ toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
8670
+ }
8671
+ if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
8672
+ toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
8673
+ }
8674
+ if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
8675
+ toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
8676
+ }
8677
+ return toReturn;
8678
+ }
8679
+ }
8680
+ class ListBookedMeetingsV2Response {
8681
+ static fromProto(proto) {
8682
+ let m = new ListBookedMeetingsV2Response();
8683
+ m = Object.assign(m, proto);
8684
+ if (proto.bookings) {
8685
+ m.bookings = proto.bookings.map(BookedMeetingV2.fromProto);
8686
+ }
8687
+ if (proto.pagingMetadata) {
8688
+ m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
8689
+ }
8690
+ return m;
8691
+ }
8692
+ constructor(kwargs) {
8693
+ if (!kwargs) {
8694
+ return;
8695
+ }
8696
+ Object.assign(this, kwargs);
8697
+ }
8698
+ toApiJson() {
8699
+ const toReturn = {};
8700
+ if (typeof this.bookings !== 'undefined' && this.bookings !== null) {
8701
+ toReturn['bookings'] = 'toApiJson' in this.bookings ? this.bookings.toApiJson() : this.bookings;
8702
+ }
8703
+ if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
8704
+ toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
8705
+ }
8706
+ return toReturn;
8707
+ }
8708
+ }
8354
8709
  class ListBookingTypesForAIRequest {
8355
8710
  static fromProto(proto) {
8356
8711
  let m = new ListBookingTypesForAIRequest();
@@ -8700,6 +9055,29 @@ class UpdateMeetingMetadataRequestMetadataEntry {
8700
9055
  return toReturn;
8701
9056
  }
8702
9057
  }
9058
+ class HostBookBatchMeetingRequestMetadataEntry {
9059
+ static fromProto(proto) {
9060
+ let m = new HostBookBatchMeetingRequestMetadataEntry();
9061
+ m = Object.assign(m, proto);
9062
+ return m;
9063
+ }
9064
+ constructor(kwargs) {
9065
+ if (!kwargs) {
9066
+ return;
9067
+ }
9068
+ Object.assign(this, kwargs);
9069
+ }
9070
+ toApiJson() {
9071
+ const toReturn = {};
9072
+ if (typeof this.key !== 'undefined') {
9073
+ toReturn['key'] = this.key;
9074
+ }
9075
+ if (typeof this.value !== 'undefined') {
9076
+ toReturn['value'] = this.value;
9077
+ }
9078
+ return toReturn;
9079
+ }
9080
+ }
8703
9081
  class MeetingMetadataEntry {
8704
9082
  static fromProto(proto) {
8705
9083
  let m = new MeetingMetadataEntry();
@@ -9274,6 +9652,12 @@ class MCPOptions {
9274
9652
  if (typeof this.serverId !== 'undefined') {
9275
9653
  toReturn['serverId'] = this.serverId;
9276
9654
  }
9655
+ if (typeof this.toolId !== 'undefined') {
9656
+ toReturn['toolId'] = this.toolId;
9657
+ }
9658
+ if (typeof this.requiredFields !== 'undefined') {
9659
+ toReturn['requiredFields'] = this.requiredFields;
9660
+ }
9277
9661
  return toReturn;
9278
9662
  }
9279
9663
  }
@@ -9961,6 +10345,11 @@ class MeetingHostApiService {
9961
10345
  return this.http.post(this._host + "/meetings.v1.MeetingHost/ListBookedMeetings", request.toApiJson(), this.apiOptions())
9962
10346
  .pipe(map(resp => ListBookedMeetingsResponse.fromProto(resp)));
9963
10347
  }
10348
+ listBookedMeetingsV2(r) {
10349
+ const request = (r.toApiJson) ? r : new ListBookedMeetingsV2Request(r);
10350
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/ListBookedMeetingsV2", request.toApiJson(), this.apiOptions())
10351
+ .pipe(map(resp => ListBookedMeetingsV2Response.fromProto(resp)));
10352
+ }
9964
10353
  cancelMeeting(r) {
9965
10354
  const request = (r.toApiJson) ? r : new CancelMeetingRequest(r);
9966
10355
  return this.http.post(this._host + "/meetings.v1.MeetingHost/CancelMeeting", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
@@ -10004,6 +10393,24 @@ class MeetingHostApiService {
10004
10393
  const request = (r.toApiJson) ? r : new UpdateHostPreferencesRequest(r);
10005
10394
  return this.http.post(this._host + "/meetings.v1.MeetingHost/UpdateHostPreferences", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
10006
10395
  }
10396
+ hostBookBatchMeeting(r) {
10397
+ const request = (r.toApiJson) ? r : new HostBookBatchMeetingRequest(r);
10398
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/HostBookBatchMeeting", request.toApiJson(), this.apiOptions())
10399
+ .pipe(map(resp => HostBookBatchMeetingResponse.fromProto(resp)));
10400
+ }
10401
+ hostRescheduleBatchMeeting(r) {
10402
+ const request = (r.toApiJson) ? r : new HostRescheduleBatchMeetingRequest(r);
10403
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/HostRescheduleBatchMeeting", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
10404
+ }
10405
+ hostCancelBatchMeeting(r) {
10406
+ const request = (r.toApiJson) ? r : new HostCancelBatchMeetingRequest(r);
10407
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/HostCancelBatchMeeting", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
10408
+ }
10409
+ hostListBatchAvailableTimeSlots(r) {
10410
+ const request = (r.toApiJson) ? r : new HostListBatchAvailableTimeSlotsRequest(r);
10411
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/HostListBatchAvailableTimeSlots", request.toApiJson(), this.apiOptions())
10412
+ .pipe(map(resp => HostListBatchAvailableTimeSlotsResponse.fromProto(resp)));
10413
+ }
10007
10414
  getMeetingType(r) {
10008
10415
  const request = (r.toApiJson) ? r : new HostGetMeetingTypeRequest(r);
10009
10416
  return this.http.post(this._host + "/meetings.v1.MeetingHost/GetMeetingType", request.toApiJson(), this.apiOptions())
@@ -10501,6 +10908,8 @@ function PreferencesFromApi(preferences) {
10501
10908
  calendarSlug: preferences.calendarSlug || '',
10502
10909
  calendarIntegration: preferences.calendarIntegration || CalendarSource.CALENDAR_SOURCE_INVALID,
10503
10910
  onBoardingState: preferences.onBoardingState || OnBoardingState.COMPLETED_SETUP,
10911
+ calendarMembers: preferences.calendarMembers || [],
10912
+ defaultCalendarView: preferences.defaultCalendarView || CalendarView.CALENDAR_VIEW_INVALID,
10504
10913
  };
10505
10914
  }
10506
10915
 
@@ -11186,6 +11595,67 @@ class HostService {
11186
11595
  .bookMeeting(req)
11187
11596
  .pipe(map((resp) => resp.meetingId));
11188
11597
  }
11598
+ // listBookedMeetingsV2 returns bookings grouped by booking_group_id.
11599
+ // Standalone meetings appear as a single-entry BookedMeetingGroup with an empty
11600
+ // bookingGroupId; batch bookings appear as one BookedMeetingGroup with N siblings.
11601
+ listBookedMeetingsV2(req) {
11602
+ return this.hostAPIService
11603
+ .listBookedMeetingsV2({
11604
+ filters: new ListBookedMeetingsRequestFilters(req.filters),
11605
+ pagingOptions: new PagedRequestOptions({
11606
+ cursor: req.cursor,
11607
+ pageSize: req.pageSize,
11608
+ }),
11609
+ timeZone: new TimeZone(req.timeZone),
11610
+ })
11611
+ .pipe(map((resp) => {
11612
+ const bookings = (resp.bookings || []).map((booking) => ({
11613
+ bookingGroupId: booking.bookingGroupId || "",
11614
+ meetings: (booking.meetings || []).map((meeting) => meetingFromApi(meeting)),
11615
+ }));
11616
+ return new PagedResponse(bookings, resp.pagingMetadata.nextCursor, resp.pagingMetadata.hasMore);
11617
+ }));
11618
+ }
11619
+ // hostBookBatchMeeting books a meeting on the host calendar — single-service
11620
+ // (N=1 target) or multi-service (N>1 ordered targets). Returns the booking_group_id.
11621
+ hostBookBatchMeeting(req) {
11622
+ return this.hostAPIService
11623
+ .hostBookBatchMeeting({
11624
+ ...req,
11625
+ formAnswers: answersToAPI(req.formAnswers),
11626
+ })
11627
+ .pipe(map((resp) => resp.bookingGroupId));
11628
+ }
11629
+ // hostRescheduleBatchMeeting accepts either a single meeting_id or a booking_group_id.
11630
+ // When a booking_group_id is passed the server reschedules every sibling atomically,
11631
+ // preserving per-sibling durations and shifting all by the same delta.
11632
+ hostRescheduleBatchMeeting(req) {
11633
+ return this.hostAPIService
11634
+ .hostRescheduleBatchMeeting(req)
11635
+ .pipe(mapTo(null));
11636
+ }
11637
+ // hostCancelBatchMeeting accepts either a single meeting_id or a booking_group_id.
11638
+ // For partial-group cancellation the FE issues N parallel calls each with the
11639
+ // individual meeting_id.
11640
+ hostCancelBatchMeeting(req) {
11641
+ return this.hostAPIService.hostCancelBatchMeeting(req).pipe(mapTo(null));
11642
+ }
11643
+ // hostListBatchAvailableTimeSlots returns valid chain start times for a
11644
+ // multi-service host booking. Each slot is the start of the first meeting
11645
+ // in the chain.
11646
+ hostListBatchAvailableTimeSlots(req) {
11647
+ return this.hostAPIService
11648
+ .hostListBatchAvailableTimeSlots(req)
11649
+ .pipe(map((resp) => {
11650
+ if (resp.isoTimeSlots?.length) {
11651
+ return resp.isoTimeSlots.map((iso) => ({
11652
+ start: new Date(iso.start),
11653
+ end: new Date(iso.end),
11654
+ }));
11655
+ }
11656
+ return [];
11657
+ }));
11658
+ }
11189
11659
  // createDefaultMeetingTypes will create what Meeting Scheduler deems to be the default meeting types.
11190
11660
  // If the calendar already has meeting types, this is guaranteed to be a no-op.
11191
11661
  createDefaultMeetingTypes(req) {
@@ -11439,5 +11909,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
11439
11909
  * Generated bundle index. Do not edit.
11440
11910
  */
11441
11911
 
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 };
11912
+ 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
11913
  //# sourceMappingURL=vendasta-meetings.mjs.map