@vendasta/meetings 1.6.0 → 1.6.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 (41) hide show
  1. package/esm2020/lib/_internal/enums/index.mjs +2 -2
  2. package/esm2020/lib/_internal/google-meet.api.service.mjs +7 -8
  3. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  4. package/esm2020/lib/_internal/interfaces/meeting-external.interface.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +1 -1
  6. package/esm2020/lib/_internal/interfaces/meeting-host.interface.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/shared.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/meeting-external.api.service.mjs +7 -8
  9. package/esm2020/lib/_internal/meeting-guest.api.service.mjs +7 -8
  10. package/esm2020/lib/_internal/meeting-host.api.service.mjs +13 -9
  11. package/esm2020/lib/_internal/meeting-source-api.api.service.mjs +7 -8
  12. package/esm2020/lib/_internal/objects/index.mjs +4 -4
  13. package/esm2020/lib/_internal/objects/meeting-external.mjs +2 -2
  14. package/esm2020/lib/_internal/objects/meeting-guest.mjs +2 -2
  15. package/esm2020/lib/_internal/objects/meeting-host.mjs +51 -8
  16. package/esm2020/lib/_internal/objects/shared.mjs +2 -3
  17. package/esm2020/lib/_internal/zoom.api.service.mjs +7 -8
  18. package/esm2020/lib/host/host.service.mjs +27 -2
  19. package/fesm2015/vendasta-meetings.mjs +284 -212
  20. package/fesm2015/vendasta-meetings.mjs.map +1 -1
  21. package/fesm2020/vendasta-meetings.mjs +284 -212
  22. package/fesm2020/vendasta-meetings.mjs.map +1 -1
  23. package/lib/_internal/enums/index.d.ts +1 -1
  24. package/lib/_internal/google-meet.api.service.d.ts +2 -5
  25. package/lib/_internal/interfaces/index.d.ts +3 -3
  26. package/lib/_internal/interfaces/meeting-external.interface.d.ts +1 -1
  27. package/lib/_internal/interfaces/meeting-guest.interface.d.ts +1 -1
  28. package/lib/_internal/interfaces/meeting-host.interface.d.ts +10 -4
  29. package/lib/_internal/interfaces/shared.interface.d.ts +1 -2
  30. package/lib/_internal/meeting-external.api.service.d.ts +3 -5
  31. package/lib/_internal/meeting-guest.api.service.d.ts +3 -5
  32. package/lib/_internal/meeting-host.api.service.d.ts +6 -7
  33. package/lib/_internal/meeting-source-api.api.service.d.ts +2 -5
  34. package/lib/_internal/objects/index.d.ts +3 -3
  35. package/lib/_internal/objects/meeting-external.d.ts +1 -1
  36. package/lib/_internal/objects/meeting-guest.d.ts +1 -1
  37. package/lib/_internal/objects/meeting-host.d.ts +20 -8
  38. package/lib/_internal/objects/shared.d.ts +1 -2
  39. package/lib/_internal/zoom.api.service.d.ts +2 -5
  40. package/lib/host/host.service.d.ts +7 -0
  41. package/package.json +1 -1
@@ -1,9 +1,8 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable } from '@angular/core';
2
+ import { Injectable, inject } from '@angular/core';
3
3
  import { throwError, of } from 'rxjs';
4
4
  import { map, mapTo } from 'rxjs/operators';
5
- import * as i1 from '@angular/common/http';
6
- import { HttpHeaders } from '@angular/common/http';
5
+ import { HttpClient, HttpHeaders } from '@angular/common/http';
7
6
 
8
7
  // *********************************
9
8
  // Code generated by sdkgen
@@ -199,24 +198,6 @@ var FeatureFlagFieldType;
199
198
  FeatureFlagFieldType[FeatureFlagFieldType["FEATURE_FLAG_FIELD_TYPE_CALENDAR_ID"] = 0] = "FEATURE_FLAG_FIELD_TYPE_CALENDAR_ID";
200
199
  })(FeatureFlagFieldType || (FeatureFlagFieldType = {}));
201
200
 
202
- // *********************************
203
- // Code generated by sdkgen
204
- // DO NOT EDIT!.
205
- //
206
- // Enums.
207
- // *********************************
208
- var DayOfWeek;
209
- (function (DayOfWeek) {
210
- DayOfWeek[DayOfWeek["DAY_OF_WEEK_UNSPECIFIED"] = 0] = "DAY_OF_WEEK_UNSPECIFIED";
211
- DayOfWeek[DayOfWeek["MONDAY"] = 1] = "MONDAY";
212
- DayOfWeek[DayOfWeek["TUESDAY"] = 2] = "TUESDAY";
213
- DayOfWeek[DayOfWeek["WEDNESDAY"] = 3] = "WEDNESDAY";
214
- DayOfWeek[DayOfWeek["THURSDAY"] = 4] = "THURSDAY";
215
- DayOfWeek[DayOfWeek["FRIDAY"] = 5] = "FRIDAY";
216
- DayOfWeek[DayOfWeek["SATURDAY"] = 6] = "SATURDAY";
217
- DayOfWeek[DayOfWeek["SUNDAY"] = 7] = "SUNDAY";
218
- })(DayOfWeek || (DayOfWeek = {}));
219
-
220
201
  // *********************************
221
202
  // Code generated by sdkgen
222
203
  // DO NOT EDIT!.
@@ -253,6 +234,24 @@ var Weekday;
253
234
  Weekday[Weekday["WEEKDAY_SUNDAY"] = 7] = "WEEKDAY_SUNDAY";
254
235
  })(Weekday || (Weekday = {}));
255
236
 
237
+ // *********************************
238
+ // Code generated by sdkgen
239
+ // DO NOT EDIT!.
240
+ //
241
+ // Enums.
242
+ // *********************************
243
+ var DayOfWeek;
244
+ (function (DayOfWeek) {
245
+ DayOfWeek[DayOfWeek["DAY_OF_WEEK_UNSPECIFIED"] = 0] = "DAY_OF_WEEK_UNSPECIFIED";
246
+ DayOfWeek[DayOfWeek["MONDAY"] = 1] = "MONDAY";
247
+ DayOfWeek[DayOfWeek["TUESDAY"] = 2] = "TUESDAY";
248
+ DayOfWeek[DayOfWeek["WEDNESDAY"] = 3] = "WEDNESDAY";
249
+ DayOfWeek[DayOfWeek["THURSDAY"] = 4] = "THURSDAY";
250
+ DayOfWeek[DayOfWeek["FRIDAY"] = 5] = "FRIDAY";
251
+ DayOfWeek[DayOfWeek["SATURDAY"] = 6] = "SATURDAY";
252
+ DayOfWeek[DayOfWeek["SUNDAY"] = 7] = "SUNDAY";
253
+ })(DayOfWeek || (DayOfWeek = {}));
254
+
256
255
  // *********************************
257
256
 
258
257
  function enumStringToValue$d(enumRef, value) {
@@ -1416,125 +1415,12 @@ function enumStringToValue$a(enumRef, value) {
1416
1415
  }
1417
1416
  return enumRef[value];
1418
1417
  }
1419
- class TimeOfDay {
1420
- static fromProto(proto) {
1421
- let m = new TimeOfDay();
1422
- m = Object.assign(m, proto);
1423
- return m;
1424
- }
1425
- constructor(kwargs) {
1426
- if (!kwargs) {
1427
- return;
1428
- }
1429
- Object.assign(this, kwargs);
1430
- }
1431
- toApiJson() {
1432
- const toReturn = {};
1433
- if (typeof this.hours !== 'undefined') {
1434
- toReturn['hours'] = this.hours;
1435
- }
1436
- if (typeof this.minutes !== 'undefined') {
1437
- toReturn['minutes'] = this.minutes;
1438
- }
1439
- if (typeof this.seconds !== 'undefined') {
1440
- toReturn['seconds'] = this.seconds;
1441
- }
1442
- if (typeof this.nanos !== 'undefined') {
1443
- toReturn['nanos'] = this.nanos;
1444
- }
1445
- return toReturn;
1446
- }
1447
- }
1448
-
1449
- function enumStringToValue$9(enumRef, value) {
1450
- if (typeof value === 'number') {
1451
- return value;
1452
- }
1453
- return enumRef[value];
1454
- }
1455
- class DateTime {
1456
- static fromProto(proto) {
1457
- let m = new DateTime();
1458
- m = Object.assign(m, proto);
1459
- if (proto.timeZone) {
1460
- m.timeZone = TimeZone.fromProto(proto.timeZone);
1461
- }
1462
- return m;
1463
- }
1464
- constructor(kwargs) {
1465
- if (!kwargs) {
1466
- return;
1467
- }
1468
- Object.assign(this, kwargs);
1469
- }
1470
- toApiJson() {
1471
- const toReturn = {};
1472
- if (typeof this.year !== 'undefined') {
1473
- toReturn['year'] = this.year;
1474
- }
1475
- if (typeof this.month !== 'undefined') {
1476
- toReturn['month'] = this.month;
1477
- }
1478
- if (typeof this.day !== 'undefined') {
1479
- toReturn['day'] = this.day;
1480
- }
1481
- if (typeof this.hours !== 'undefined') {
1482
- toReturn['hours'] = this.hours;
1483
- }
1484
- if (typeof this.minutes !== 'undefined') {
1485
- toReturn['minutes'] = this.minutes;
1486
- }
1487
- if (typeof this.seconds !== 'undefined') {
1488
- toReturn['seconds'] = this.seconds;
1489
- }
1490
- if (typeof this.nanos !== 'undefined') {
1491
- toReturn['nanos'] = this.nanos;
1492
- }
1493
- if (typeof this.utcOffset !== 'undefined') {
1494
- toReturn['utcOffset'] = this.utcOffset;
1495
- }
1496
- if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
1497
- toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
1498
- }
1499
- return toReturn;
1500
- }
1501
- }
1502
- class TimeZone {
1503
- static fromProto(proto) {
1504
- let m = new TimeZone();
1505
- m = Object.assign(m, proto);
1506
- return m;
1507
- }
1508
- constructor(kwargs) {
1509
- if (!kwargs) {
1510
- return;
1511
- }
1512
- Object.assign(this, kwargs);
1513
- }
1514
- toApiJson() {
1515
- const toReturn = {};
1516
- if (typeof this.id !== 'undefined') {
1517
- toReturn['id'] = this.id;
1518
- }
1519
- if (typeof this.version !== 'undefined') {
1520
- toReturn['version'] = this.version;
1521
- }
1522
- return toReturn;
1523
- }
1524
- }
1525
-
1526
- function enumStringToValue$8(enumRef, value) {
1527
- if (typeof value === 'number') {
1528
- return value;
1529
- }
1530
- return enumRef[value];
1531
- }
1532
1418
  class Answer {
1533
1419
  static fromProto(proto) {
1534
1420
  let m = new Answer();
1535
1421
  m = Object.assign(m, proto);
1536
1422
  if (proto.type) {
1537
- m.type = enumStringToValue$8(FormFieldType, proto.type);
1423
+ m.type = enumStringToValue$a(FormFieldType, proto.type);
1538
1424
  }
1539
1425
  return m;
1540
1426
  }
@@ -1676,7 +1562,7 @@ class Calendar {
1676
1562
  m.applicationContext = Object.keys(proto.applicationContext).reduce((obj, k) => { obj[k] = proto.applicationContext[k]; return obj; }, {});
1677
1563
  }
1678
1564
  if (proto.calendarType) {
1679
- m.calendarType = enumStringToValue$8(CalendarType, proto.calendarType);
1565
+ m.calendarType = enumStringToValue$a(CalendarType, proto.calendarType);
1680
1566
  }
1681
1567
  return m;
1682
1568
  }
@@ -1984,7 +1870,7 @@ class Preferences {
1984
1870
  m.timezone = TimeZone.fromProto(proto.timezone);
1985
1871
  }
1986
1872
  if (proto.meetingIntegration) {
1987
- m.meetingIntegration = enumStringToValue$8(MeetingSource, proto.meetingIntegration);
1873
+ m.meetingIntegration = enumStringToValue$a(MeetingSource, proto.meetingIntegration);
1988
1874
  }
1989
1875
  if (proto.availabilityIncrement) {
1990
1876
  m.availabilityIncrement = parseInt(proto.availabilityIncrement, 10);
@@ -1999,10 +1885,10 @@ class Preferences {
1999
1885
  m.bufferDurationBeforeMeeting = parseInt(proto.bufferDurationBeforeMeeting, 10);
2000
1886
  }
2001
1887
  if (proto.calendarIntegration) {
2002
- m.calendarIntegration = enumStringToValue$8(CalendarSource, proto.calendarIntegration);
1888
+ m.calendarIntegration = enumStringToValue$a(CalendarSource, proto.calendarIntegration);
2003
1889
  }
2004
1890
  if (proto.onBoardingState) {
2005
- m.onBoardingState = enumStringToValue$8(OnBoardingState, proto.onBoardingState);
1891
+ m.onBoardingState = enumStringToValue$a(OnBoardingState, proto.onBoardingState);
2006
1892
  }
2007
1893
  return m;
2008
1894
  }
@@ -2074,7 +1960,7 @@ class TimeRange {
2074
1960
  }
2075
1961
  }
2076
1962
 
2077
- function enumStringToValue$7(enumRef, value) {
1963
+ function enumStringToValue$9(enumRef, value) {
2078
1964
  if (typeof value === 'number') {
2079
1965
  return value;
2080
1966
  }
@@ -2110,7 +1996,7 @@ class DateRange {
2110
1996
  }
2111
1997
  }
2112
1998
 
2113
- function enumStringToValue$6(enumRef, value) {
1999
+ function enumStringToValue$8(enumRef, value) {
2114
2000
  if (typeof value === 'number') {
2115
2001
  return value;
2116
2002
  }
@@ -2121,7 +2007,7 @@ class EventTypeDateRange {
2121
2007
  let m = new EventTypeDateRange();
2122
2008
  m = Object.assign(m, proto);
2123
2009
  if (proto.dateRangeType) {
2124
- m.dateRangeType = enumStringToValue$6(DateRangeType, proto.dateRangeType);
2010
+ m.dateRangeType = enumStringToValue$8(DateRangeType, proto.dateRangeType);
2125
2011
  }
2126
2012
  if (proto.customDateRange) {
2127
2013
  m.customDateRange = DateRange.fromProto(proto.customDateRange);
@@ -2156,7 +2042,7 @@ class Field {
2156
2042
  let m = new Field();
2157
2043
  m = Object.assign(m, proto);
2158
2044
  if (proto.type) {
2159
- m.type = enumStringToValue$6(FormFieldType, proto.type);
2045
+ m.type = enumStringToValue$8(FormFieldType, proto.type);
2160
2046
  }
2161
2047
  return m;
2162
2048
  }
@@ -2223,7 +2109,7 @@ class MeetingType {
2223
2109
  m.noticeTime = parseInt(proto.noticeTime, 10);
2224
2110
  }
2225
2111
  if (proto.locationType) {
2226
- m.locationType = enumStringToValue$6(MeetingLocationType, proto.locationType);
2112
+ m.locationType = enumStringToValue$8(MeetingLocationType, proto.locationType);
2227
2113
  }
2228
2114
  if (proto.hostUsers) {
2229
2115
  m.hostUsers = proto.hostUsers.map(HostUser.fromProto);
@@ -2235,7 +2121,7 @@ class MeetingType {
2235
2121
  m.dateRange = EventTypeDateRange.fromProto(proto.dateRange);
2236
2122
  }
2237
2123
  if (proto.meetingType) {
2238
- m.meetingType = enumStringToValue$6(TeamEventMeetingType, proto.meetingType);
2124
+ m.meetingType = enumStringToValue$8(TeamEventMeetingType, proto.meetingType);
2239
2125
  }
2240
2126
  if (proto.attendeeCount) {
2241
2127
  m.attendeeCount = parseInt(proto.attendeeCount, 10);
@@ -2247,7 +2133,7 @@ class MeetingType {
2247
2133
  m.hostOrderDetails = proto.hostOrderDetails.map(HostOrderDetails.fromProto);
2248
2134
  }
2249
2135
  if (proto.notificationType) {
2250
- m.notificationType = enumStringToValue$6(NotificationType, proto.notificationType);
2136
+ m.notificationType = enumStringToValue$8(NotificationType, proto.notificationType);
2251
2137
  }
2252
2138
  return m;
2253
2139
  }
@@ -2372,7 +2258,7 @@ class RegistrationCutOff {
2372
2258
  let m = new RegistrationCutOff();
2373
2259
  m = Object.assign(m, proto);
2374
2260
  if (proto.unit) {
2375
- m.unit = enumStringToValue$6(RegistrationCutOffUnit, proto.unit);
2261
+ m.unit = enumStringToValue$8(RegistrationCutOffUnit, proto.unit);
2376
2262
  }
2377
2263
  if (proto.value) {
2378
2264
  m.value = parseInt(proto.value, 10);
@@ -2401,7 +2287,7 @@ class RelativeDateRange {
2401
2287
  let m = new RelativeDateRange();
2402
2288
  m = Object.assign(m, proto);
2403
2289
  if (proto.unit) {
2404
- m.unit = enumStringToValue$6(RelativeTimeUnit, proto.unit);
2290
+ m.unit = enumStringToValue$8(RelativeTimeUnit, proto.unit);
2405
2291
  }
2406
2292
  if (proto.value) {
2407
2293
  m.value = parseInt(proto.value, 10);
@@ -2426,7 +2312,7 @@ class RelativeDateRange {
2426
2312
  }
2427
2313
  }
2428
2314
 
2429
- function enumStringToValue$5(enumRef, value) {
2315
+ function enumStringToValue$7(enumRef, value) {
2430
2316
  if (typeof value === 'number') {
2431
2317
  return value;
2432
2318
  }
@@ -2571,7 +2457,7 @@ class Service {
2571
2457
  }
2572
2458
  }
2573
2459
 
2574
- function enumStringToValue$4(enumRef, value) {
2460
+ function enumStringToValue$6(enumRef, value) {
2575
2461
  if (typeof value === 'number') {
2576
2462
  return value;
2577
2463
  }
@@ -2597,7 +2483,7 @@ class BookMeetingRequest {
2597
2483
  m.formAnswers = Answers.fromProto(proto.formAnswers);
2598
2484
  }
2599
2485
  if (proto.bookingSource) {
2600
- m.bookingSource = enumStringToValue$4(BookingSource, proto.bookingSource);
2486
+ m.bookingSource = enumStringToValue$6(BookingSource, proto.bookingSource);
2601
2487
  }
2602
2488
  return m;
2603
2489
  }
@@ -2676,7 +2562,7 @@ class CheckFeatureFlagRequest {
2676
2562
  let m = new CheckFeatureFlagRequest();
2677
2563
  m = Object.assign(m, proto);
2678
2564
  if (proto.fieldType) {
2679
- m.fieldType = enumStringToValue$4(FeatureFlagFieldType, proto.fieldType);
2565
+ m.fieldType = enumStringToValue$6(FeatureFlagFieldType, proto.fieldType);
2680
2566
  }
2681
2567
  return m;
2682
2568
  }
@@ -3237,10 +3123,10 @@ class GuestGetBookedMeetingResponse {
3237
3123
  m.timeZone = TimeZone.fromProto(proto.timeZone);
3238
3124
  }
3239
3125
  if (proto.locationType) {
3240
- m.locationType = enumStringToValue$4(MeetingLocationType, proto.locationType);
3126
+ m.locationType = enumStringToValue$6(MeetingLocationType, proto.locationType);
3241
3127
  }
3242
3128
  if (proto.meetingType) {
3243
- m.meetingType = enumStringToValue$4(TeamEventMeetingType, proto.meetingType);
3129
+ m.meetingType = enumStringToValue$6(TeamEventMeetingType, proto.meetingType);
3244
3130
  }
3245
3131
  return m;
3246
3132
  }
@@ -3296,10 +3182,10 @@ class GuestGetBookedMeetingResponseV2 {
3296
3182
  m.endTime = new Date(proto.endTime);
3297
3183
  }
3298
3184
  if (proto.meetingSource) {
3299
- m.meetingSource = enumStringToValue$4(MeetingSource, proto.meetingSource);
3185
+ m.meetingSource = enumStringToValue$6(MeetingSource, proto.meetingSource);
3300
3186
  }
3301
3187
  if (proto.meetingLocationType) {
3302
- m.meetingLocationType = enumStringToValue$4(MeetingLocation, proto.meetingLocationType);
3188
+ m.meetingLocationType = enumStringToValue$6(MeetingLocation, proto.meetingLocationType);
3303
3189
  }
3304
3190
  if (proto.timeZone) {
3305
3191
  m.timeZone = TimeZone.fromProto(proto.timeZone);
@@ -3688,7 +3574,7 @@ class RegisterSessionRequest {
3688
3574
  }
3689
3575
  }
3690
3576
 
3691
- function enumStringToValue$3(enumRef, value) {
3577
+ function enumStringToValue$5(enumRef, value) {
3692
3578
  if (typeof value === 'number') {
3693
3579
  return value;
3694
3580
  }
@@ -3875,7 +3761,7 @@ class EventType {
3875
3761
  let m = new EventType();
3876
3762
  m = Object.assign(m, proto);
3877
3763
  if (proto.locationType) {
3878
- m.locationType = enumStringToValue$3(MeetingLocationType, proto.locationType);
3764
+ m.locationType = enumStringToValue$5(MeetingLocationType, proto.locationType);
3879
3765
  }
3880
3766
  if (proto.hostUsers) {
3881
3767
  m.hostUsers = proto.hostUsers.map(HostUser.fromProto);
@@ -3884,7 +3770,7 @@ class EventType {
3884
3770
  m.bookingWindow = EventTypeDateRange.fromProto(proto.bookingWindow);
3885
3771
  }
3886
3772
  if (proto.meetingType) {
3887
- m.meetingType = enumStringToValue$3(TeamEventMeetingType, proto.meetingType);
3773
+ m.meetingType = enumStringToValue$5(TeamEventMeetingType, proto.meetingType);
3888
3774
  }
3889
3775
  if (proto.hostOrderDetails) {
3890
3776
  m.hostOrderDetails = proto.hostOrderDetails.map(HostOrderDetails.fromProto);
@@ -4432,7 +4318,7 @@ class UserResponse {
4432
4318
  }
4433
4319
  }
4434
4320
 
4435
- function enumStringToValue$2(enumRef, value) {
4321
+ function enumStringToValue$4(enumRef, value) {
4436
4322
  if (typeof value === 'number') {
4437
4323
  return value;
4438
4324
  }
@@ -4459,15 +4345,15 @@ class FieldMask {
4459
4345
  }
4460
4346
  }
4461
4347
 
4462
- function enumStringToValue$1(enumRef, value) {
4348
+ function enumStringToValue$3(enumRef, value) {
4463
4349
  if (typeof value === 'number') {
4464
4350
  return value;
4465
4351
  }
4466
4352
  return enumRef[value];
4467
4353
  }
4468
- class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
4354
+ class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
4469
4355
  static fromProto(proto) {
4470
- let m = new EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry();
4356
+ let m = new IsCalendarConfiguredRequestApplicationContextPropertiesEntry();
4471
4357
  m = Object.assign(m, proto);
4472
4358
  return m;
4473
4359
  }
@@ -4488,9 +4374,9 @@ class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
4488
4374
  return toReturn;
4489
4375
  }
4490
4376
  }
4491
- class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
4377
+ class BuildHostIdRequestApplicationContextPropertiesEntry {
4492
4378
  static fromProto(proto) {
4493
- let m = new IsCalendarConfiguredRequestApplicationContextPropertiesEntry();
4379
+ let m = new BuildHostIdRequestApplicationContextPropertiesEntry();
4494
4380
  m = Object.assign(m, proto);
4495
4381
  return m;
4496
4382
  }
@@ -4511,9 +4397,9 @@ class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
4511
4397
  return toReturn;
4512
4398
  }
4513
4399
  }
4514
- class BuildHostIdRequestApplicationContextPropertiesEntry {
4400
+ class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
4515
4401
  static fromProto(proto) {
4516
- let m = new BuildHostIdRequestApplicationContextPropertiesEntry();
4402
+ let m = new EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry();
4517
4403
  m = Object.assign(m, proto);
4518
4404
  return m;
4519
4405
  }
@@ -4539,7 +4425,7 @@ class AvailabilityRule {
4539
4425
  let m = new AvailabilityRule();
4540
4426
  m = Object.assign(m, proto);
4541
4427
  if (proto.day) {
4542
- m.day = enumStringToValue$1(DayOfWeek, proto.day);
4428
+ m.day = enumStringToValue$3(DayOfWeek, proto.day);
4543
4429
  }
4544
4430
  if (proto.timeSlot) {
4545
4431
  m.timeSlot = TimeRange.fromProto(proto.timeSlot);
@@ -5458,6 +5344,49 @@ class GetEntityAssociationResponse {
5458
5344
  return toReturn;
5459
5345
  }
5460
5346
  }
5347
+ class GetEventTypeByIdRequest {
5348
+ static fromProto(proto) {
5349
+ let m = new GetEventTypeByIdRequest();
5350
+ m = Object.assign(m, proto);
5351
+ return m;
5352
+ }
5353
+ constructor(kwargs) {
5354
+ if (!kwargs) {
5355
+ return;
5356
+ }
5357
+ Object.assign(this, kwargs);
5358
+ }
5359
+ toApiJson() {
5360
+ const toReturn = {};
5361
+ if (typeof this.eventTypeId !== 'undefined') {
5362
+ toReturn['eventTypeId'] = this.eventTypeId;
5363
+ }
5364
+ return toReturn;
5365
+ }
5366
+ }
5367
+ class GetEventTypeByIdResponse {
5368
+ static fromProto(proto) {
5369
+ let m = new GetEventTypeByIdResponse();
5370
+ m = Object.assign(m, proto);
5371
+ if (proto.meetingType) {
5372
+ m.meetingType = MeetingType.fromProto(proto.meetingType);
5373
+ }
5374
+ return m;
5375
+ }
5376
+ constructor(kwargs) {
5377
+ if (!kwargs) {
5378
+ return;
5379
+ }
5380
+ Object.assign(this, kwargs);
5381
+ }
5382
+ toApiJson() {
5383
+ const toReturn = {};
5384
+ if (typeof this.meetingType !== 'undefined' && this.meetingType !== null) {
5385
+ toReturn['meetingType'] = 'toApiJson' in this.meetingType ? this.meetingType.toApiJson() : this.meetingType;
5386
+ }
5387
+ return toReturn;
5388
+ }
5389
+ }
5461
5390
  class GetHostMeetingRequest {
5462
5391
  static fromProto(proto) {
5463
5392
  let m = new GetHostMeetingRequest();
@@ -5647,7 +5576,7 @@ class HostBookMeetingRequest {
5647
5576
  let m = new HostBookMeetingRequest();
5648
5577
  m = Object.assign(m, proto);
5649
5578
  if (proto.meetingSource) {
5650
- m.meetingSource = enumStringToValue$1(MeetingSource, proto.meetingSource);
5579
+ m.meetingSource = enumStringToValue$3(MeetingSource, proto.meetingSource);
5651
5580
  }
5652
5581
  if (proto.timeSlot) {
5653
5582
  m.timeSlot = DateRange.fromProto(proto.timeSlot);
@@ -5656,7 +5585,7 @@ class HostBookMeetingRequest {
5656
5585
  m.attendees = proto.attendees.map(Contact.fromProto);
5657
5586
  }
5658
5587
  if (proto.bookingSource) {
5659
- m.bookingSource = enumStringToValue$1(BookingSource, proto.bookingSource);
5588
+ m.bookingSource = enumStringToValue$3(BookingSource, proto.bookingSource);
5660
5589
  }
5661
5590
  return m;
5662
5591
  }
@@ -5720,7 +5649,7 @@ class HostBookSessionRequest {
5720
5649
  let m = new HostBookSessionRequest();
5721
5650
  m = Object.assign(m, proto);
5722
5651
  if (proto.locationType) {
5723
- m.locationType = enumStringToValue$1(MeetingLocationType, proto.locationType);
5652
+ m.locationType = enumStringToValue$3(MeetingLocationType, proto.locationType);
5724
5653
  }
5725
5654
  if (proto.maxAttendees) {
5726
5655
  m.maxAttendees = parseInt(proto.maxAttendees, 10);
@@ -6108,7 +6037,7 @@ class IsHostConfiguredResponse {
6108
6037
  let m = new IsHostConfiguredResponse();
6109
6038
  m = Object.assign(m, proto);
6110
6039
  if (proto.onBoardingState) {
6111
- m.onBoardingState = enumStringToValue$1(OnBoardingState, proto.onBoardingState);
6040
+ m.onBoardingState = enumStringToValue$3(OnBoardingState, proto.onBoardingState);
6112
6041
  }
6113
6042
  return m;
6114
6043
  }
@@ -6592,7 +6521,7 @@ class Meeting {
6592
6521
  m.hostDetails = proto.hostDetails.map(HostDetails.fromProto);
6593
6522
  }
6594
6523
  if (proto.meetingType) {
6595
- m.meetingType = enumStringToValue$1(TeamEventMeetingType, proto.meetingType);
6524
+ m.meetingType = enumStringToValue$3(TeamEventMeetingType, proto.meetingType);
6596
6525
  }
6597
6526
  if (proto.maxAttendeeCount) {
6598
6527
  m.maxAttendeeCount = parseInt(proto.maxAttendeeCount, 10);
@@ -6756,19 +6685,19 @@ class RecurrenceConfig {
6756
6685
  let m = new RecurrenceConfig();
6757
6686
  m = Object.assign(m, proto);
6758
6687
  if (proto.recurrence) {
6759
- m.recurrence = enumStringToValue$1(Recurrence, proto.recurrence);
6688
+ m.recurrence = enumStringToValue$3(Recurrence, proto.recurrence);
6760
6689
  }
6761
6690
  if (proto.startTime) {
6762
6691
  m.startTime = new Date(proto.startTime);
6763
6692
  }
6764
6693
  if (proto.repeatOnDays) {
6765
- m.repeatOnDays = proto.repeatOnDays.map((v) => enumStringToValue$1(Weekday, v));
6694
+ m.repeatOnDays = proto.repeatOnDays.map((v) => enumStringToValue$3(Weekday, v));
6766
6695
  }
6767
6696
  if (proto.recurrenceEnd) {
6768
6697
  m.recurrenceEnd = RecurrenceEnd.fromProto(proto.recurrenceEnd);
6769
6698
  }
6770
6699
  if (proto.registrationMode) {
6771
- m.registrationMode = enumStringToValue$1(RegistrationMode, proto.registrationMode);
6700
+ m.registrationMode = enumStringToValue$3(RegistrationMode, proto.registrationMode);
6772
6701
  }
6773
6702
  return m;
6774
6703
  }
@@ -6893,7 +6822,7 @@ class SessionAttendees {
6893
6822
  m.formAnswers = Answers.fromProto(proto.formAnswers);
6894
6823
  }
6895
6824
  if (proto.bookingFailureReason) {
6896
- m.bookingFailureReason = enumStringToValue$1(BookingFailureReason, proto.bookingFailureReason);
6825
+ m.bookingFailureReason = enumStringToValue$3(BookingFailureReason, proto.bookingFailureReason);
6897
6826
  }
6898
6827
  return m;
6899
6828
  }
@@ -6943,7 +6872,7 @@ class SetGeneralAvailabilityRequest {
6943
6872
  let m = new SetGeneralAvailabilityRequest();
6944
6873
  m = Object.assign(m, proto);
6945
6874
  if (proto.days) {
6946
- m.days = proto.days.map((v) => enumStringToValue$1(DayOfWeek, v));
6875
+ m.days = proto.days.map((v) => enumStringToValue$3(DayOfWeek, v));
6947
6876
  }
6948
6877
  if (proto.timeSlot) {
6949
6878
  m.timeSlot = TimeRange.fromProto(proto.timeSlot);
@@ -6990,7 +6919,7 @@ class TimeSlotsByWeekDay {
6990
6919
  let m = new TimeSlotsByWeekDay();
6991
6920
  m = Object.assign(m, proto);
6992
6921
  if (proto.day) {
6993
- m.day = enumStringToValue$1(DayOfWeek, proto.day);
6922
+ m.day = enumStringToValue$3(DayOfWeek, proto.day);
6994
6923
  }
6995
6924
  if (proto.timeSlot) {
6996
6925
  m.timeSlot = proto.timeSlot.map(TimeRange.fromProto);
@@ -7231,7 +7160,7 @@ class WeekdayAvailability {
7231
7160
  let m = new WeekdayAvailability();
7232
7161
  m = Object.assign(m, proto);
7233
7162
  if (proto.day) {
7234
- m.day = enumStringToValue$1(DayOfWeek, proto.day);
7163
+ m.day = enumStringToValue$3(DayOfWeek, proto.day);
7235
7164
  }
7236
7165
  if (proto.timeSlots) {
7237
7166
  m.timeSlots = proto.timeSlots.map(TimeRange.fromProto);
@@ -7256,7 +7185,7 @@ class WeekdayAvailability {
7256
7185
  }
7257
7186
  }
7258
7187
 
7259
- function enumStringToValue(enumRef, value) {
7188
+ function enumStringToValue$2(enumRef, value) {
7260
7189
  if (typeof value === 'number') {
7261
7190
  return value;
7262
7191
  }
@@ -7306,6 +7235,119 @@ class MCPOptions {
7306
7235
  }
7307
7236
  }
7308
7237
 
7238
+ function enumStringToValue$1(enumRef, value) {
7239
+ if (typeof value === 'number') {
7240
+ return value;
7241
+ }
7242
+ return enumRef[value];
7243
+ }
7244
+ class TimeOfDay {
7245
+ static fromProto(proto) {
7246
+ let m = new TimeOfDay();
7247
+ m = Object.assign(m, proto);
7248
+ return m;
7249
+ }
7250
+ constructor(kwargs) {
7251
+ if (!kwargs) {
7252
+ return;
7253
+ }
7254
+ Object.assign(this, kwargs);
7255
+ }
7256
+ toApiJson() {
7257
+ const toReturn = {};
7258
+ if (typeof this.hours !== 'undefined') {
7259
+ toReturn['hours'] = this.hours;
7260
+ }
7261
+ if (typeof this.minutes !== 'undefined') {
7262
+ toReturn['minutes'] = this.minutes;
7263
+ }
7264
+ if (typeof this.seconds !== 'undefined') {
7265
+ toReturn['seconds'] = this.seconds;
7266
+ }
7267
+ if (typeof this.nanos !== 'undefined') {
7268
+ toReturn['nanos'] = this.nanos;
7269
+ }
7270
+ return toReturn;
7271
+ }
7272
+ }
7273
+
7274
+ function enumStringToValue(enumRef, value) {
7275
+ if (typeof value === 'number') {
7276
+ return value;
7277
+ }
7278
+ return enumRef[value];
7279
+ }
7280
+ class DateTime {
7281
+ static fromProto(proto) {
7282
+ let m = new DateTime();
7283
+ m = Object.assign(m, proto);
7284
+ if (proto.timeZone) {
7285
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
7286
+ }
7287
+ return m;
7288
+ }
7289
+ constructor(kwargs) {
7290
+ if (!kwargs) {
7291
+ return;
7292
+ }
7293
+ Object.assign(this, kwargs);
7294
+ }
7295
+ toApiJson() {
7296
+ const toReturn = {};
7297
+ if (typeof this.year !== 'undefined') {
7298
+ toReturn['year'] = this.year;
7299
+ }
7300
+ if (typeof this.month !== 'undefined') {
7301
+ toReturn['month'] = this.month;
7302
+ }
7303
+ if (typeof this.day !== 'undefined') {
7304
+ toReturn['day'] = this.day;
7305
+ }
7306
+ if (typeof this.hours !== 'undefined') {
7307
+ toReturn['hours'] = this.hours;
7308
+ }
7309
+ if (typeof this.minutes !== 'undefined') {
7310
+ toReturn['minutes'] = this.minutes;
7311
+ }
7312
+ if (typeof this.seconds !== 'undefined') {
7313
+ toReturn['seconds'] = this.seconds;
7314
+ }
7315
+ if (typeof this.nanos !== 'undefined') {
7316
+ toReturn['nanos'] = this.nanos;
7317
+ }
7318
+ if (typeof this.utcOffset !== 'undefined') {
7319
+ toReturn['utcOffset'] = this.utcOffset;
7320
+ }
7321
+ if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
7322
+ toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
7323
+ }
7324
+ return toReturn;
7325
+ }
7326
+ }
7327
+ class TimeZone {
7328
+ static fromProto(proto) {
7329
+ let m = new TimeZone();
7330
+ m = Object.assign(m, proto);
7331
+ return m;
7332
+ }
7333
+ constructor(kwargs) {
7334
+ if (!kwargs) {
7335
+ return;
7336
+ }
7337
+ Object.assign(this, kwargs);
7338
+ }
7339
+ toApiJson() {
7340
+ const toReturn = {};
7341
+ if (typeof this.id !== 'undefined') {
7342
+ toReturn['id'] = this.id;
7343
+ }
7344
+ if (typeof this.version !== 'undefined') {
7345
+ toReturn['version'] = this.version;
7346
+ }
7347
+ return toReturn;
7348
+ }
7349
+ }
7350
+
7309
7351
  // *********************************
7310
7352
 
7311
7353
  const environment = (window ? window['environment'] : 'prod') ?? 'prod';
@@ -7333,9 +7375,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
7333
7375
 
7334
7376
  // *********************************
7335
7377
  class MeetingSourceAPIApiService {
7336
- constructor(http, hostService) {
7337
- this.http = http;
7338
- this.hostService = hostService;
7378
+ constructor() {
7379
+ this.hostService = inject(HostService$1);
7380
+ this.http = inject(HttpClient);
7339
7381
  this._host = this.hostService.hostWithScheme;
7340
7382
  }
7341
7383
  apiOptions() {
@@ -7352,18 +7394,18 @@ class MeetingSourceAPIApiService {
7352
7394
  .pipe(map(resp => MeetingSourceListResponse.fromProto(resp)));
7353
7395
  }
7354
7396
  }
7355
- MeetingSourceAPIApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, deps: [{ token: i1.HttpClient }, { token: HostService$1 }], target: i0.ɵɵFactoryTarget.Injectable });
7397
+ MeetingSourceAPIApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
7356
7398
  MeetingSourceAPIApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, providedIn: 'root' });
7357
7399
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, decorators: [{
7358
7400
  type: Injectable,
7359
7401
  args: [{ providedIn: 'root' }]
7360
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
7402
+ }] });
7361
7403
 
7362
7404
  // *********************************
7363
7405
  class ZoomApiService {
7364
- constructor(http, hostService) {
7365
- this.http = http;
7366
- this.hostService = hostService;
7406
+ constructor() {
7407
+ this.hostService = inject(HostService$1);
7408
+ this.http = inject(HttpClient);
7367
7409
  this._host = this.hostService.hostWithScheme;
7368
7410
  }
7369
7411
  apiOptions() {
@@ -7380,18 +7422,18 @@ class ZoomApiService {
7380
7422
  .pipe(map(resp => CreateZoomMeetingResponse.fromProto(resp)));
7381
7423
  }
7382
7424
  }
7383
- ZoomApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, deps: [{ token: i1.HttpClient }, { token: HostService$1 }], target: i0.ɵɵFactoryTarget.Injectable });
7425
+ ZoomApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
7384
7426
  ZoomApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, providedIn: 'root' });
7385
7427
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, decorators: [{
7386
7428
  type: Injectable,
7387
7429
  args: [{ providedIn: 'root' }]
7388
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
7430
+ }] });
7389
7431
 
7390
7432
  // *********************************
7391
7433
  class GoogleMeetApiService {
7392
- constructor(http, hostService) {
7393
- this.http = http;
7394
- this.hostService = hostService;
7434
+ constructor() {
7435
+ this.hostService = inject(HostService$1);
7436
+ this.http = inject(HttpClient);
7395
7437
  this._host = this.hostService.hostWithScheme;
7396
7438
  }
7397
7439
  apiOptions() {
@@ -7413,12 +7455,12 @@ class GoogleMeetApiService {
7413
7455
  .pipe(map(resp => GoogleMeetListMeetingsResponse.fromProto(resp)));
7414
7456
  }
7415
7457
  }
7416
- GoogleMeetApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, deps: [{ token: i1.HttpClient }, { token: HostService$1 }], target: i0.ɵɵFactoryTarget.Injectable });
7458
+ GoogleMeetApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
7417
7459
  GoogleMeetApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, providedIn: 'root' });
7418
7460
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, decorators: [{
7419
7461
  type: Injectable,
7420
7462
  args: [{ providedIn: 'root' }]
7421
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
7463
+ }] });
7422
7464
 
7423
7465
  function generateMeetingPassword() {
7424
7466
  const zoomMaxLength = 10;
@@ -7580,9 +7622,9 @@ function createMeetInstantMeetingRequest(meetingTitle, startDateTime, attendees)
7580
7622
 
7581
7623
  // *********************************
7582
7624
  class MeetingExternalApiService {
7583
- constructor(http, hostService) {
7584
- this.http = http;
7585
- this.hostService = hostService;
7625
+ constructor() {
7626
+ this.hostService = inject(HostService$1);
7627
+ this.http = inject(HttpClient);
7586
7628
  this._host = this.hostService.hostWithScheme;
7587
7629
  }
7588
7630
  apiOptions() {
@@ -7638,18 +7680,18 @@ class MeetingExternalApiService {
7638
7680
  .pipe(map(resp => ListUserEventTypesResponse.fromProto(resp)));
7639
7681
  }
7640
7682
  }
7641
- MeetingExternalApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingExternalApiService, deps: [{ token: i1.HttpClient }, { token: HostService$1 }], target: i0.ɵɵFactoryTarget.Injectable });
7683
+ MeetingExternalApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingExternalApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
7642
7684
  MeetingExternalApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingExternalApiService, providedIn: 'root' });
7643
7685
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingExternalApiService, decorators: [{
7644
7686
  type: Injectable,
7645
7687
  args: [{ providedIn: 'root' }]
7646
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
7688
+ }] });
7647
7689
 
7648
7690
  // *********************************
7649
7691
  class MeetingGuestApiService {
7650
- constructor(http, hostService) {
7651
- this.http = http;
7652
- this.hostService = hostService;
7692
+ constructor() {
7693
+ this.hostService = inject(HostService$1);
7694
+ this.http = inject(HttpClient);
7653
7695
  this._host = this.hostService.hostWithScheme;
7654
7696
  }
7655
7697
  apiOptions() {
@@ -7752,18 +7794,18 @@ class MeetingGuestApiService {
7752
7794
  .pipe(map(resp => CheckFeatureFlagResponse.fromProto(resp)));
7753
7795
  }
7754
7796
  }
7755
- MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, deps: [{ token: i1.HttpClient }, { token: HostService$1 }], target: i0.ɵɵFactoryTarget.Injectable });
7797
+ MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
7756
7798
  MeetingGuestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, providedIn: 'root' });
7757
7799
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, decorators: [{
7758
7800
  type: Injectable,
7759
7801
  args: [{ providedIn: 'root' }]
7760
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
7802
+ }] });
7761
7803
 
7762
7804
  // *********************************
7763
7805
  class MeetingHostApiService {
7764
- constructor(http, hostService) {
7765
- this.http = http;
7766
- this.hostService = hostService;
7806
+ constructor() {
7807
+ this.hostService = inject(HostService$1);
7808
+ this.http = inject(HttpClient);
7767
7809
  this._host = this.hostService.hostWithScheme;
7768
7810
  }
7769
7811
  apiOptions() {
@@ -8029,13 +8071,18 @@ class MeetingHostApiService {
8029
8071
  return this.http.post(this._host + "/meetings.v1.MeetingHost/ListAvailableTimeslotsForRecurringSession", request.toApiJson(), this.apiOptions())
8030
8072
  .pipe(map(resp => ListAvailableTimeslotsForRecurringSessionResponse.fromProto(resp)));
8031
8073
  }
8074
+ getEventTypeById(r) {
8075
+ const request = (r.toApiJson) ? r : new GetEventTypeByIdRequest(r);
8076
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/GetEventTypeById", request.toApiJson(), this.apiOptions())
8077
+ .pipe(map(resp => GetEventTypeByIdResponse.fromProto(resp)));
8078
+ }
8032
8079
  }
8033
- MeetingHostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, deps: [{ token: i1.HttpClient }, { token: HostService$1 }], target: i0.ɵɵFactoryTarget.Injectable });
8080
+ MeetingHostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
8034
8081
  MeetingHostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, providedIn: 'root' });
8035
8082
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, decorators: [{
8036
8083
  type: Injectable,
8037
8084
  args: [{ providedIn: 'root' }]
8038
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
8085
+ }] });
8039
8086
 
8040
8087
  // *********************************
8041
8088
 
@@ -8767,7 +8814,7 @@ class HostService {
8767
8814
  @param metadata: optional metadata to include on the meeting type booking link
8768
8815
  @param calendarSlug: used to replace hostId in the url. Use it when you are confident you know the host's slug.
8769
8816
  - calendarSlug IS NOT USED TO RETRIEVE MEETING TYPES, ONLY TO MAKE THE BOOKING URLS
8770
- */
8817
+ */
8771
8818
  listMeetingTypes(req) {
8772
8819
  return this.hostAPIService.listMeetingTypes(req).pipe(map((resp) => {
8773
8820
  if (!resp || !resp.meetingTypes) {
@@ -8786,6 +8833,31 @@ class HostService {
8786
8833
  });
8787
8834
  }));
8788
8835
  }
8836
+ /*
8837
+ getEventTypeById returns a single meeting type by ID.
8838
+ @param eventTypeId: The unique identifier for the event type
8839
+ @param metadata: optional metadata to include on the meeting type booking link
8840
+ @param calendarSlug: used to replace hostId in the url. Use it when you are confident you know the host's slug.
8841
+ - calendarSlug IS NOT USED TO RETRIEVE THE EVENT TYPE, ONLY TO MAKE THE BOOKING URL
8842
+ */
8843
+ getEventTypeById(req) {
8844
+ return this.hostAPIService
8845
+ .getEventTypeById({ eventTypeId: req.eventTypeId })
8846
+ .pipe(map((resp) => {
8847
+ if (!resp.meetingType) {
8848
+ return null;
8849
+ }
8850
+ return MeetingTypeFromApi({
8851
+ meetingTypeApi: resp.meetingType,
8852
+ calendarId: resp.meetingType.calendarId || "",
8853
+ environment: onProductionGlobal()
8854
+ ? Environment.PROD
8855
+ : Environment.DEMO,
8856
+ metadata: req.metadata,
8857
+ calendarSlug: req.calendarSlug,
8858
+ });
8859
+ }));
8860
+ }
8789
8861
  /*
8790
8862
  getBookingUrl returns a link that can be used to book a meeting with this host.
8791
8863
  @param calendarId: An identifier for an individual host or grouping of hosts (i.e., team).