@vendasta/meetings 1.7.5 → 1.7.6

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 (46) hide show
  1. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  2. package/esm2020/lib/_internal/interfaces/meeting-external.interface.mjs +1 -1
  3. package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +1 -1
  4. package/esm2020/lib/_internal/interfaces/meeting-host.interface.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/shared.interface.mjs +1 -1
  6. package/esm2020/lib/_internal/objects/annotations.mjs +1 -1
  7. package/esm2020/lib/_internal/objects/date-range.mjs +1 -1
  8. package/esm2020/lib/_internal/objects/field-mask.mjs +1 -1
  9. package/esm2020/lib/_internal/objects/google-meet.mjs +1 -1
  10. package/esm2020/lib/_internal/objects/groups-and-services.mjs +1 -1
  11. package/esm2020/lib/_internal/objects/index.mjs +2 -2
  12. package/esm2020/lib/_internal/objects/meeting-external.mjs +2 -2
  13. package/esm2020/lib/_internal/objects/meeting-guest.mjs +14 -8
  14. package/esm2020/lib/_internal/objects/meeting-host.mjs +2 -2
  15. package/esm2020/lib/_internal/objects/meeting-source.mjs +1 -1
  16. package/esm2020/lib/_internal/objects/meeting-type.mjs +1 -1
  17. package/esm2020/lib/_internal/objects/openapiv2.mjs +1 -1
  18. package/esm2020/lib/_internal/objects/shared.mjs +1 -1
  19. package/esm2020/lib/_internal/objects/zoom.mjs +1 -1
  20. package/esm2020/lib/guest/guest.service.mjs +28 -2
  21. package/esm2020/lib/index.mjs +2 -2
  22. package/fesm2015/vendasta-meetings.mjs +38 -8
  23. package/fesm2015/vendasta-meetings.mjs.map +1 -1
  24. package/fesm2020/vendasta-meetings.mjs +40 -8
  25. package/fesm2020/vendasta-meetings.mjs.map +1 -1
  26. package/lib/_internal/interfaces/index.d.ts +1 -1
  27. package/lib/_internal/interfaces/meeting-external.interface.d.ts +1 -1
  28. package/lib/_internal/interfaces/meeting-guest.interface.d.ts +5 -3
  29. package/lib/_internal/interfaces/meeting-host.interface.d.ts +1 -1
  30. package/lib/_internal/objects/annotations.d.ts +1 -1
  31. package/lib/_internal/objects/date-range.d.ts +1 -1
  32. package/lib/_internal/objects/field-mask.d.ts +1 -1
  33. package/lib/_internal/objects/google-meet.d.ts +1 -1
  34. package/lib/_internal/objects/groups-and-services.d.ts +1 -1
  35. package/lib/_internal/objects/index.d.ts +1 -1
  36. package/lib/_internal/objects/meeting-external.d.ts +2 -2
  37. package/lib/_internal/objects/meeting-guest.d.ts +6 -4
  38. package/lib/_internal/objects/meeting-host.d.ts +2 -2
  39. package/lib/_internal/objects/meeting-source.d.ts +1 -1
  40. package/lib/_internal/objects/meeting-type.d.ts +1 -1
  41. package/lib/_internal/objects/openapiv2.d.ts +1 -1
  42. package/lib/_internal/objects/shared.d.ts +1 -1
  43. package/lib/_internal/objects/zoom.d.ts +1 -1
  44. package/lib/guest/guest.service.d.ts +34 -1
  45. package/lib/index.d.ts +2 -2
  46. package/package.json +1 -1
@@ -4799,6 +4799,9 @@ class GuestGetBookedMeetingResponseV2 {
4799
4799
  if (typeof this.meetings !== 'undefined' && this.meetings !== null) {
4800
4800
  toReturn['meetings'] = 'toApiJson' in this.meetings ? this.meetings.toApiJson() : this.meetings;
4801
4801
  }
4802
+ if (typeof this.primaryAttendeePhone !== 'undefined') {
4803
+ toReturn['primaryAttendeePhone'] = this.primaryAttendeePhone;
4804
+ }
4802
4805
  return toReturn;
4803
4806
  }
4804
4807
  }
@@ -5262,12 +5265,6 @@ class MeetingDetail {
5262
5265
  if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
5263
5266
  toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
5264
5267
  }
5265
- if (typeof this.businessLogo !== 'undefined') {
5266
- toReturn['businessLogo'] = this.businessLogo;
5267
- }
5268
- if (typeof this.bookingUrl !== 'undefined') {
5269
- toReturn['bookingUrl'] = this.bookingUrl;
5270
- }
5271
5268
  if (typeof this.previousStartTime !== 'undefined' && this.previousStartTime !== null) {
5272
5269
  toReturn['previousStartTime'] = 'toApiJson' in this.previousStartTime ? this.previousStartTime.toApiJson() : this.previousStartTime;
5273
5270
  }
@@ -5280,6 +5277,15 @@ class MeetingDetail {
5280
5277
  if (typeof this.order !== 'undefined') {
5281
5278
  toReturn['order'] = this.order;
5282
5279
  }
5280
+ if (typeof this.eventTypeId !== 'undefined') {
5281
+ toReturn['eventTypeId'] = this.eventTypeId;
5282
+ }
5283
+ if (typeof this.userId !== 'undefined') {
5284
+ toReturn['userId'] = this.userId;
5285
+ }
5286
+ if (typeof this.locationGuideline !== 'undefined') {
5287
+ toReturn['locationGuideline'] = this.locationGuideline;
5288
+ }
5283
5289
  return toReturn;
5284
5290
  }
5285
5291
  }
@@ -10766,7 +10772,7 @@ class GuestService {
10766
10772
  return this.guestAPIService.getGuestBookedMeetingV2(req);
10767
10773
  }
10768
10774
  cancelBatchMeeting(req) {
10769
- return this.guestAPIService.cancelBatchMeeting(req).pipe(map(() => null));
10775
+ return this.guestAPIService.cancelBatchMeeting(req).pipe(mapTo(null));
10770
10776
  }
10771
10777
  isHostConfigured(req) {
10772
10778
  return this.guestAPIService
@@ -10804,6 +10810,32 @@ class GuestService {
10804
10810
  getServiceV2(req) {
10805
10811
  return this.guestAPIService.getServiceV2(req);
10806
10812
  }
10813
+ listBatchAvailableTimeSlots(req) {
10814
+ return this.guestAPIService.listBatchAvailableTimeSlots(req).pipe(map((resp) => {
10815
+ if (resp.timeSlots?.length) {
10816
+ return resp.timeSlots.map((ts) => TimeSpanFromApi(ts));
10817
+ }
10818
+ if (resp.isoTimeSlots?.length) {
10819
+ return resp.isoTimeSlots.map((iso) => ({
10820
+ start: new Date(iso.start),
10821
+ end: new Date(iso.end),
10822
+ }));
10823
+ }
10824
+ return [];
10825
+ }));
10826
+ }
10827
+ bookBatchMeeting(req) {
10828
+ return this.guestAPIService.bookBatchMeeting({
10829
+ ...req,
10830
+ formAnswers: answersToAPI(req.formAnswers),
10831
+ });
10832
+ }
10833
+ rescheduleBatchMeeting(req) {
10834
+ return this.guestAPIService.rescheduleBatchMeeting(req).pipe(mapTo(null));
10835
+ }
10836
+ listGuestBookedMeetings(req) {
10837
+ return this.guestAPIService.listGuestBookedMeetings(req);
10838
+ }
10807
10839
  }
10808
10840
  GuestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GuestService, deps: [{ token: MeetingGuestApiService }], target: i0.ɵɵFactoryTarget.Injectable });
10809
10841
  GuestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GuestService, providedIn: "root" });
@@ -11395,5 +11427,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
11395
11427
  * Generated bundle index. Do not edit.
11396
11428
  */
11397
11429
 
11398
- export { BookingSource, CalendarSource, CalendarType, CheckFeatureFlagRequest, CheckFeatureFlagResponse, Contact$1 as Contact, CreateCalendarRequest, CreateCalendarResponse, DateRangeType, DayOfWeek, FeatureFlagFieldType, FormFieldType, GuestService, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, MeetingLocation, MeetingLocationType, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceOrigin, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, NotificationType, OnBoardingState, PagedResponse, RegistrationCutOffUnit, RelativeTimeUnit, TeamEventMeetingType, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
11430
+ 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 };
11399
11431
  //# sourceMappingURL=vendasta-meetings.mjs.map