@vendasta/meetings 0.99.2 → 0.99.5

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/enums/index.mjs +2 -2
  2. package/esm2020/lib/_internal/enums/meeting-type.enum.mjs +7 -1
  3. package/esm2020/lib/_internal/enums/shared.enum.mjs +2 -1
  4. package/esm2020/lib/_internal/interfaces/google-meet.interface.mjs +1 -1
  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/meeting-type.interface.mjs +1 -1
  9. package/esm2020/lib/_internal/interfaces/shared.interface.mjs +1 -1
  10. package/esm2020/lib/_internal/meeting-guest.api.service.mjs +6 -2
  11. package/esm2020/lib/_internal/meeting-host.api.service.mjs +12 -2
  12. package/esm2020/lib/_internal/objects/google-meet.mjs +4 -1
  13. package/esm2020/lib/_internal/objects/index.mjs +13 -13
  14. package/esm2020/lib/_internal/objects/meeting-guest.mjs +39 -1
  15. package/esm2020/lib/_internal/objects/meeting-host.mjs +143 -6
  16. package/esm2020/lib/_internal/objects/meeting-type.mjs +34 -5
  17. package/esm2020/lib/_internal/objects/shared.mjs +4 -1
  18. package/esm2020/lib/guest/guest.service.mjs +1 -1
  19. package/esm2020/lib/host/host.service.mjs +6 -1
  20. package/esm2020/lib/shared/host-user.mjs +3 -2
  21. package/esm2020/lib/shared/meeting-type.mjs +34 -29
  22. package/fesm2015/vendasta-meetings.mjs +275 -33
  23. package/fesm2015/vendasta-meetings.mjs.map +1 -1
  24. package/fesm2020/vendasta-meetings.mjs +277 -35
  25. package/fesm2020/vendasta-meetings.mjs.map +1 -1
  26. package/lib/_internal/enums/index.d.ts +1 -1
  27. package/lib/_internal/enums/meeting-type.enum.d.ts +5 -0
  28. package/lib/_internal/enums/shared.enum.d.ts +2 -1
  29. package/lib/_internal/interfaces/google-meet.interface.d.ts +1 -0
  30. package/lib/_internal/interfaces/index.d.ts +12 -12
  31. package/lib/_internal/interfaces/meeting-guest.interface.d.ts +7 -0
  32. package/lib/_internal/interfaces/meeting-host.interface.d.ts +28 -3
  33. package/lib/_internal/interfaces/meeting-type.interface.d.ts +5 -1
  34. package/lib/_internal/interfaces/shared.interface.d.ts +1 -0
  35. package/lib/_internal/meeting-guest.api.service.d.ts +3 -2
  36. package/lib/_internal/meeting-host.api.service.d.ts +4 -2
  37. package/lib/_internal/objects/google-meet.d.ts +1 -0
  38. package/lib/_internal/objects/index.d.ts +12 -12
  39. package/lib/_internal/objects/meeting-guest.d.ts +10 -0
  40. package/lib/_internal/objects/meeting-host.d.ts +44 -7
  41. package/lib/_internal/objects/meeting-type.d.ts +8 -1
  42. package/lib/_internal/objects/shared.d.ts +1 -0
  43. package/lib/host/host.service.d.ts +5 -2
  44. package/lib/shared/host-user.d.ts +1 -0
  45. package/lib/shared/meeting-type.d.ts +4 -4
  46. package/package.json +1 -1
@@ -109,6 +109,7 @@ var CalendarType;
109
109
  CalendarType[CalendarType["CALENDAR_TYPE_INVALID"] = 0] = "CALENDAR_TYPE_INVALID";
110
110
  CalendarType[CalendarType["CALENDAR_TYPE_PERSONAL"] = 1] = "CALENDAR_TYPE_PERSONAL";
111
111
  CalendarType[CalendarType["CALENDAR_TYPE_GROUP"] = 2] = "CALENDAR_TYPE_GROUP";
112
+ CalendarType[CalendarType["CALENDAR_TYPE_SESSION"] = 3] = "CALENDAR_TYPE_SESSION";
112
113
  })(CalendarType || (CalendarType = {}));
113
114
  var FormFieldType;
114
115
  (function (FormFieldType) {
@@ -144,6 +145,12 @@ var MeetingLocationType;
144
145
  MeetingLocationType[MeetingLocationType["IN_PERSON_USER_SITE"] = 1] = "IN_PERSON_USER_SITE";
145
146
  MeetingLocationType[MeetingLocationType["IN_PERSON_CLIENT_SITE"] = 2] = "IN_PERSON_CLIENT_SITE";
146
147
  })(MeetingLocationType || (MeetingLocationType = {}));
148
+ var RegistrationCutOffUnit;
149
+ (function (RegistrationCutOffUnit) {
150
+ RegistrationCutOffUnit[RegistrationCutOffUnit["REGISTRATION_CUTOFF_DAYS"] = 0] = "REGISTRATION_CUTOFF_DAYS";
151
+ RegistrationCutOffUnit[RegistrationCutOffUnit["REGISTRATION_CUTOFF_HOURS"] = 1] = "REGISTRATION_CUTOFF_HOURS";
152
+ RegistrationCutOffUnit[RegistrationCutOffUnit["REGISTRATION_CUTOFF_MINUTES"] = 2] = "REGISTRATION_CUTOFF_MINUTES";
153
+ })(RegistrationCutOffUnit || (RegistrationCutOffUnit = {}));
147
154
  var RelativeTimeUnit;
148
155
  (function (RelativeTimeUnit) {
149
156
  RelativeTimeUnit[RelativeTimeUnit["DAYS"] = 0] = "DAYS";
@@ -977,6 +984,9 @@ class GoogleMeetListMeetingsRequest {
977
984
  if (typeof this.timeMax !== 'undefined' && this.timeMax !== null) {
978
985
  toReturn['timeMax'] = 'toApiJson' in this.timeMax ? this.timeMax.toApiJson() : this.timeMax;
979
986
  }
987
+ if (typeof this.singleEvents !== 'undefined') {
988
+ toReturn['singleEvents'] = this.singleEvents;
989
+ }
980
990
  return toReturn;
981
991
  }
982
992
  }
@@ -1624,6 +1634,9 @@ class HostUser {
1624
1634
  if (typeof this.isConfigured !== 'undefined') {
1625
1635
  toReturn['isConfigured'] = this.isConfigured;
1626
1636
  }
1637
+ if (typeof this.isConnected !== 'undefined') {
1638
+ toReturn['isConnected'] = this.isConnected;
1639
+ }
1627
1640
  return toReturn;
1628
1641
  }
1629
1642
  }
@@ -1941,7 +1954,7 @@ class MeetingType {
1941
1954
  m.attendeeCount = parseInt(proto.attendeeCount, 10);
1942
1955
  }
1943
1956
  if (proto.registrationCutoff) {
1944
- m.registrationCutoff = parseInt(proto.registrationCutoff, 10);
1957
+ m.registrationCutoff = RegistrationCutOff.fromProto(proto.registrationCutoff);
1945
1958
  }
1946
1959
  return m;
1947
1960
  }
@@ -2040,12 +2053,41 @@ class MeetingType {
2040
2053
  if (typeof this.attendeeCount !== 'undefined') {
2041
2054
  toReturn['attendeeCount'] = this.attendeeCount;
2042
2055
  }
2043
- if (typeof this.registrationCutoff !== 'undefined') {
2044
- toReturn['registrationCutoff'] = this.registrationCutoff;
2045
- }
2046
2056
  if (typeof this.sessionTitle !== 'undefined') {
2047
2057
  toReturn['sessionTitle'] = this.sessionTitle;
2048
2058
  }
2059
+ if (typeof this.registrationCutoff !== 'undefined' && this.registrationCutoff !== null) {
2060
+ toReturn['registrationCutoff'] = 'toApiJson' in this.registrationCutoff ? this.registrationCutoff.toApiJson() : this.registrationCutoff;
2061
+ }
2062
+ return toReturn;
2063
+ }
2064
+ }
2065
+ class RegistrationCutOff {
2066
+ static fromProto(proto) {
2067
+ let m = new RegistrationCutOff();
2068
+ m = Object.assign(m, proto);
2069
+ if (proto.unit) {
2070
+ m.unit = enumStringToValue$6(RegistrationCutOffUnit, proto.unit);
2071
+ }
2072
+ if (proto.value) {
2073
+ m.value = parseInt(proto.value, 10);
2074
+ }
2075
+ return m;
2076
+ }
2077
+ constructor(kwargs) {
2078
+ if (!kwargs) {
2079
+ return;
2080
+ }
2081
+ Object.assign(this, kwargs);
2082
+ }
2083
+ toApiJson() {
2084
+ const toReturn = {};
2085
+ if (typeof this.unit !== 'undefined') {
2086
+ toReturn['unit'] = this.unit;
2087
+ }
2088
+ if (typeof this.value !== 'undefined') {
2089
+ toReturn['value'] = this.value;
2090
+ }
2049
2091
  return toReturn;
2050
2092
  }
2051
2093
  }
@@ -2902,6 +2944,44 @@ class BookMeetingRequestMetadataEntry {
2902
2944
  return toReturn;
2903
2945
  }
2904
2946
  }
2947
+ class RegisterSessionRequest {
2948
+ static fromProto(proto) {
2949
+ let m = new RegisterSessionRequest();
2950
+ m = Object.assign(m, proto);
2951
+ if (proto.attendees) {
2952
+ m.attendees = proto.attendees.map(Contact.fromProto);
2953
+ }
2954
+ if (proto.formAnswers) {
2955
+ m.formAnswers = Answers.fromProto(proto.formAnswers);
2956
+ }
2957
+ return m;
2958
+ }
2959
+ constructor(kwargs) {
2960
+ if (!kwargs) {
2961
+ return;
2962
+ }
2963
+ Object.assign(this, kwargs);
2964
+ }
2965
+ toApiJson() {
2966
+ const toReturn = {};
2967
+ if (typeof this.meetingId !== 'undefined') {
2968
+ toReturn['meetingId'] = this.meetingId;
2969
+ }
2970
+ if (typeof this.attendees !== 'undefined' && this.attendees !== null) {
2971
+ toReturn['attendees'] = 'toApiJson' in this.attendees ? this.attendees.toApiJson() : this.attendees;
2972
+ }
2973
+ if (typeof this.comment !== 'undefined') {
2974
+ toReturn['comment'] = this.comment;
2975
+ }
2976
+ if (typeof this.formAnswers !== 'undefined' && this.formAnswers !== null) {
2977
+ toReturn['formAnswers'] = 'toApiJson' in this.formAnswers ? this.formAnswers.toApiJson() : this.formAnswers;
2978
+ }
2979
+ if (typeof this.recaptchaToken !== 'undefined') {
2980
+ toReturn['recaptchaToken'] = this.recaptchaToken;
2981
+ }
2982
+ return toReturn;
2983
+ }
2984
+ }
2905
2985
 
2906
2986
  function enumStringToValue$3(enumRef, value) {
2907
2987
  if (typeof value === 'number') {
@@ -2959,9 +3039,9 @@ class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
2959
3039
  return toReturn;
2960
3040
  }
2961
3041
  }
2962
- class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
3042
+ class BuildHostIdRequestApplicationContextPropertiesEntry {
2963
3043
  static fromProto(proto) {
2964
- let m = new EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry();
3044
+ let m = new BuildHostIdRequestApplicationContextPropertiesEntry();
2965
3045
  m = Object.assign(m, proto);
2966
3046
  return m;
2967
3047
  }
@@ -2982,9 +3062,9 @@ class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
2982
3062
  return toReturn;
2983
3063
  }
2984
3064
  }
2985
- class BuildHostIdRequestApplicationContextPropertiesEntry {
3065
+ class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
2986
3066
  static fromProto(proto) {
2987
- let m = new BuildHostIdRequestApplicationContextPropertiesEntry();
3067
+ let m = new EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry();
2988
3068
  m = Object.assign(m, proto);
2989
3069
  return m;
2990
3070
  }
@@ -3695,6 +3775,46 @@ class EnsurePersonalCalendarExistsResponse {
3695
3775
  return toReturn;
3696
3776
  }
3697
3777
  }
3778
+ class EnsureSessionEventCalendarsExistRequest {
3779
+ static fromProto(proto) {
3780
+ let m = new EnsureSessionEventCalendarsExistRequest();
3781
+ m = Object.assign(m, proto);
3782
+ return m;
3783
+ }
3784
+ constructor(kwargs) {
3785
+ if (!kwargs) {
3786
+ return;
3787
+ }
3788
+ Object.assign(this, kwargs);
3789
+ }
3790
+ toApiJson() {
3791
+ const toReturn = {};
3792
+ if (typeof this.externalId !== 'undefined') {
3793
+ toReturn['externalId'] = this.externalId;
3794
+ }
3795
+ return toReturn;
3796
+ }
3797
+ }
3798
+ class EnsureSessionEventCalendarsExistResponse {
3799
+ static fromProto(proto) {
3800
+ let m = new EnsureSessionEventCalendarsExistResponse();
3801
+ m = Object.assign(m, proto);
3802
+ return m;
3803
+ }
3804
+ constructor(kwargs) {
3805
+ if (!kwargs) {
3806
+ return;
3807
+ }
3808
+ Object.assign(this, kwargs);
3809
+ }
3810
+ toApiJson() {
3811
+ const toReturn = {};
3812
+ if (typeof this.calendarId !== 'undefined') {
3813
+ toReturn['calendarId'] = this.calendarId;
3814
+ }
3815
+ return toReturn;
3816
+ }
3817
+ }
3698
3818
  class ListBookedMeetingsRequestFilters {
3699
3819
  static fromProto(proto) {
3700
3820
  let m = new ListBookedMeetingsRequestFilters();
@@ -4041,6 +4161,103 @@ class HostBookMeetingResponse {
4041
4161
  return toReturn;
4042
4162
  }
4043
4163
  }
4164
+ class HostBookSessionRequest {
4165
+ static fromProto(proto) {
4166
+ let m = new HostBookSessionRequest();
4167
+ m = Object.assign(m, proto);
4168
+ if (proto.locationType) {
4169
+ m.locationType = enumStringToValue$2(MeetingLocationType, proto.locationType);
4170
+ }
4171
+ if (proto.maxAttendees) {
4172
+ m.maxAttendees = parseInt(proto.maxAttendees, 10);
4173
+ }
4174
+ if (proto.hostUsers) {
4175
+ m.hostUsers = proto.hostUsers.map(HostUser.fromProto);
4176
+ }
4177
+ if (proto.registrationCutoff) {
4178
+ m.registrationCutoff = RegistrationCutOff.fromProto(proto.registrationCutoff);
4179
+ }
4180
+ if (proto.timeSlot) {
4181
+ m.timeSlot = DateRange.fromProto(proto.timeSlot);
4182
+ }
4183
+ if (proto.start) {
4184
+ m.start = new Date(proto.start);
4185
+ }
4186
+ return m;
4187
+ }
4188
+ constructor(kwargs) {
4189
+ if (!kwargs) {
4190
+ return;
4191
+ }
4192
+ Object.assign(this, kwargs);
4193
+ }
4194
+ toApiJson() {
4195
+ const toReturn = {};
4196
+ if (typeof this.title !== 'undefined') {
4197
+ toReturn['title'] = this.title;
4198
+ }
4199
+ if (typeof this.location !== 'undefined') {
4200
+ toReturn['location'] = this.location;
4201
+ }
4202
+ if (typeof this.locationType !== 'undefined') {
4203
+ toReturn['locationType'] = this.locationType;
4204
+ }
4205
+ if (typeof this.duration !== 'undefined') {
4206
+ toReturn['duration'] = this.duration;
4207
+ }
4208
+ if (typeof this.description !== 'undefined') {
4209
+ toReturn['description'] = this.description;
4210
+ }
4211
+ if (typeof this.maxAttendees !== 'undefined') {
4212
+ toReturn['maxAttendees'] = this.maxAttendees;
4213
+ }
4214
+ if (typeof this.logoUrl !== 'undefined') {
4215
+ toReturn['logoUrl'] = this.logoUrl;
4216
+ }
4217
+ if (typeof this.hostUsers !== 'undefined' && this.hostUsers !== null) {
4218
+ toReturn['hostUsers'] = 'toApiJson' in this.hostUsers ? this.hostUsers.toApiJson() : this.hostUsers;
4219
+ }
4220
+ if (typeof this.registrationCutoff !== 'undefined' && this.registrationCutoff !== null) {
4221
+ toReturn['registrationCutoff'] = 'toApiJson' in this.registrationCutoff ? this.registrationCutoff.toApiJson() : this.registrationCutoff;
4222
+ }
4223
+ if (typeof this.timeSlot !== 'undefined' && this.timeSlot !== null) {
4224
+ toReturn['timeSlot'] = 'toApiJson' in this.timeSlot ? this.timeSlot.toApiJson() : this.timeSlot;
4225
+ }
4226
+ if (typeof this.slug !== 'undefined') {
4227
+ toReturn['slug'] = this.slug;
4228
+ }
4229
+ if (typeof this.start !== 'undefined' && this.start !== null) {
4230
+ toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
4231
+ }
4232
+ if (typeof this.meetingTypeId !== 'undefined') {
4233
+ toReturn['meetingTypeId'] = this.meetingTypeId;
4234
+ }
4235
+ return toReturn;
4236
+ }
4237
+ }
4238
+ class HostBookSessionResponse {
4239
+ static fromProto(proto) {
4240
+ let m = new HostBookSessionResponse();
4241
+ m = Object.assign(m, proto);
4242
+ return m;
4243
+ }
4244
+ constructor(kwargs) {
4245
+ if (!kwargs) {
4246
+ return;
4247
+ }
4248
+ Object.assign(this, kwargs);
4249
+ }
4250
+ toApiJson() {
4251
+ const toReturn = {};
4252
+ if (typeof this.meetingId !== 'undefined') {
4253
+ toReturn['meetingId'] = this.meetingId;
4254
+ }
4255
+ if (typeof this.bookingUrl !== 'undefined') {
4256
+ toReturn['bookingUrl'] = this.bookingUrl;
4257
+ }
4258
+ return toReturn;
4259
+ }
4260
+ }
4044
4261
  class HostDetails {
4045
4262
  static fromProto(proto) {
4046
4263
  let m = new HostDetails();
@@ -5500,6 +5717,10 @@ class MeetingGuestApiService {
5500
5717
  return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetService", request.toApiJson(), this.apiOptions())
5501
5718
  .pipe(map(resp => GetServiceResponse.fromProto(resp)));
5502
5719
  }
5720
+ registerSession(r) {
5721
+ const request = (r.toApiJson) ? r : new RegisterSessionRequest(r);
5722
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/RegisterSession", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
5723
+ }
5503
5724
  }
5504
5725
  MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5505
5726
  MeetingGuestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, providedIn: 'root' });
@@ -5557,6 +5778,11 @@ class MeetingHostApiService {
5557
5778
  return this.http.post(this._host + "/meetings.v1.MeetingHost/EnsureGroupCalendarsExist", request.toApiJson(), this.apiOptions())
5558
5779
  .pipe(map(resp => EnsureGroupCalendarsExistResponse.fromProto(resp)));
5559
5780
  }
5781
+ ensureSessionEventCalendarsExist(r) {
5782
+ const request = (r.toApiJson) ? r : new EnsureSessionEventCalendarsExistRequest(r);
5783
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/EnsureSessionEventCalendarsExist", request.toApiJson(), this.apiOptions())
5784
+ .pipe(map(resp => EnsureSessionEventCalendarsExistResponse.fromProto(resp)));
5785
+ }
5560
5786
  getHostsForCalendar(r) {
5561
5787
  const request = (r.toApiJson) ? r : new GetHostsForCalendarRequest(r);
5562
5788
  return this.http.post(this._host + "/meetings.v1.MeetingHost/GetHostsForCalendar", request.toApiJson(), this.apiOptions())
@@ -5731,6 +5957,11 @@ class MeetingHostApiService {
5731
5957
  return this.http.post(this._host + "/meetings.v1.MeetingHost/GetEntityAssociations", request.toApiJson(), this.apiOptions())
5732
5958
  .pipe(map(resp => GetEntityAssociationResponse.fromProto(resp)));
5733
5959
  }
5960
+ hostBookSession(r) {
5961
+ const request = (r.toApiJson) ? r : new HostBookSessionRequest(r);
5962
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/HostBookSession", request.toApiJson(), this.apiOptions())
5963
+ .pipe(map(resp => HostBookSessionResponse.fromProto(resp)));
5964
+ }
5734
5965
  }
5735
5966
  MeetingHostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5736
5967
  MeetingHostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, providedIn: 'root' });
@@ -5818,62 +6049,67 @@ function addMetadataToBookingLink(req) {
5818
6049
  }
5819
6050
 
5820
6051
  function MeetingTypeFromApi(req) {
5821
- let bookingUrl = req?.meetingTypeApi?.bookingUrl || '';
5822
- if (bookingUrl === '') {
6052
+ let bookingUrl = req?.meetingTypeApi?.bookingUrl || "";
6053
+ if (bookingUrl === "") {
5823
6054
  bookingUrl = getBookingUrlImplementation({
5824
6055
  environment: req.environment,
5825
6056
  calendarId: req.calendarId,
5826
- meetingTypeSlug: req.meetingTypeApi.meetingTypeSlug || req.meetingTypeApi.id || '',
6057
+ meetingTypeSlug: req.meetingTypeApi.meetingTypeSlug || req.meetingTypeApi.id || "",
5827
6058
  metadata: req.metadata,
5828
6059
  calendarSlug: req.calendarSlug,
5829
6060
  });
5830
6061
  }
5831
6062
  else {
5832
- bookingUrl = addMetadataToBookingLink({ link: bookingUrl, metadata: req.metadata || {} });
6063
+ bookingUrl = addMetadataToBookingLink({
6064
+ link: bookingUrl,
6065
+ metadata: req.metadata || {},
6066
+ });
5833
6067
  }
5834
6068
  const form = {
5835
6069
  ...(req.meetingTypeApi.form || { fields: [] }),
5836
- fields: (req.meetingTypeApi.form && req.meetingTypeApi.form.fields ? req.meetingTypeApi.form.fields : []).map(field => {
6070
+ fields: (req.meetingTypeApi.form && req.meetingTypeApi.form.fields
6071
+ ? req.meetingTypeApi.form.fields
6072
+ : []).map((field) => {
5837
6073
  return {
5838
6074
  ...field,
5839
- id: field.id || '',
5840
- label: field.label || '',
6075
+ id: field.id || "",
6076
+ label: field.label || "",
5841
6077
  type: field.type || FormFieldType.FORM_FIELD_TYPE_INVALID,
5842
6078
  required: field.required || false,
5843
6079
  };
5844
- })
6080
+ }),
5845
6081
  };
5846
6082
  return {
5847
- id: req.meetingTypeApi.id || '',
5848
- calendarId: req.meetingTypeApi.calendarId || '',
5849
- name: req.meetingTypeApi.name || '',
5850
- duration: req.meetingTypeApi.duration || '',
6083
+ id: req.meetingTypeApi.id || "",
6084
+ calendarId: req.meetingTypeApi.calendarId || "",
6085
+ name: req.meetingTypeApi.name || "",
6086
+ duration: req.meetingTypeApi.duration || "",
5851
6087
  bookingUrl: bookingUrl,
5852
- bookingLink: req.meetingTypeApi.meetingTypeSlug || '',
5853
- meetingTypeSlug: req.meetingTypeApi.meetingTypeSlug || '',
5854
- description: req.meetingTypeApi.description || '',
5855
- hexColor: req.meetingTypeApi.hexColor || '',
6088
+ bookingLink: req.meetingTypeApi.meetingTypeSlug || "",
6089
+ meetingTypeSlug: req.meetingTypeApi.meetingTypeSlug || "",
6090
+ description: req.meetingTypeApi.description || "",
6091
+ hexColor: req.meetingTypeApi.hexColor || "",
5856
6092
  form: form,
5857
6093
  hostUserIds: req.meetingTypeApi.hostUserIds || [],
5858
6094
  availabilityIncrement: req.meetingTypeApi.availabilityIncrement || -1,
5859
6095
  bufferDurationAfterMeeting: req.meetingTypeApi.bufferDurationAfterMeeting || 0,
5860
6096
  bufferDurationBeforeMeeting: req.meetingTypeApi.bufferDurationBeforeMeeting || 0,
5861
6097
  noticeTime: req.meetingTypeApi.noticeTime || 0,
5862
- location: req.meetingTypeApi.location || '',
5863
- locationGuidelines: req.meetingTypeApi.locationGuidelines || '',
5864
- emailSubject: req.meetingTypeApi.emailSubject || '',
5865
- emailDescription: req.meetingTypeApi.emailDescription || '',
6098
+ location: req.meetingTypeApi.location || "",
6099
+ locationGuidelines: req.meetingTypeApi.locationGuidelines || "",
6100
+ emailSubject: req.meetingTypeApi.emailSubject || "",
6101
+ emailDescription: req.meetingTypeApi.emailDescription || "",
5866
6102
  isPinned: req.meetingTypeApi.isPinned || false,
5867
- CalendarType: req.meetingTypeApi.calendarType || '',
6103
+ CalendarType: req.meetingTypeApi.calendarType || "",
5868
6104
  hostUsers: req.meetingTypeApi.hostUsers || [],
5869
- teamName: req.meetingTypeApi.teamName || '',
6105
+ teamName: req.meetingTypeApi.teamName || "",
5870
6106
  isVideoLinkDisabled: req.meetingTypeApi.isVideoLinkDisabled || false,
5871
6107
  locationType: req.meetingTypeApi.locationType || MeetingLocationType.VIDEO,
5872
6108
  meetingType: req.meetingTypeApi.meetingType || TeamEventMeetingType.ROUND_ROBIN,
5873
6109
  dateRange: req.meetingTypeApi.dateRange || {},
5874
6110
  attendeeCount: req.meetingTypeApi.attendeeCount || 0,
5875
- registrationCutoff: req.meetingTypeApi.registrationCutoff || 0,
5876
- sessionTitle: req.meetingTypeApi.sessionTitle || '',
6111
+ registrationCutoff: req.meetingTypeApi.registrationCutoff || undefined,
6112
+ sessionTitle: req.meetingTypeApi.sessionTitle || "",
5877
6113
  };
5878
6114
  }
5879
6115
  function MeetingTypeToApi(req) {
@@ -5908,8 +6144,8 @@ function MeetingTypeToApi(req) {
5908
6144
  meetingType: m.meetingType || TeamEventMeetingType.ROUND_ROBIN,
5909
6145
  dateRange: m.dateRange || undefined,
5910
6146
  attendeeCount: m.attendeeCount || 0,
5911
- registrationCutoff: m.registrationCutoff || 0,
5912
- sessionTitle: m.sessionTitle || undefined
6147
+ registrationCutoff: m.registrationCutoff || undefined,
6148
+ sessionTitle: m.sessionTitle || undefined,
5913
6149
  };
5914
6150
  }
5915
6151
 
@@ -6131,7 +6367,8 @@ function hostUserFromApi(hostUser) {
6131
6367
  return {
6132
6368
  userId: hostUser.userId || '',
6133
6369
  displayName: hostUser.displayName || '',
6134
- isConfigured: hostUser.isConfigured || false
6370
+ isConfigured: hostUser.isConfigured || false,
6371
+ isConnected: hostUser.isConnected || false,
6135
6372
  };
6136
6373
  }
6137
6374
 
@@ -6832,6 +7069,11 @@ class HostService {
6832
7069
  getEntityAssociations(req) {
6833
7070
  return this.hostAPIService.getEntityAssociations(req);
6834
7071
  }
7072
+ ensureSessionEventCalendarsExist(req) {
7073
+ return this.hostAPIService
7074
+ .ensureSessionEventCalendarsExist({ externalId: req.externalId })
7075
+ .pipe(map((res) => res?.calendarId || ""));
7076
+ }
6835
7077
  }
6836
7078
  HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, deps: [{ token: MeetingHostApiService }], target: i0.ɵɵFactoryTarget.Injectable });
6837
7079
  HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, providedIn: "root" });