@vendasta/meetings 1.4.7 → 1.4.9

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 (33) hide show
  1. package/esm2020/lib/_internal/enums/index.mjs +2 -2
  2. package/esm2020/lib/_internal/enums/meeting-type.enum.mjs +11 -1
  3. package/esm2020/lib/_internal/index.mjs +2 -1
  4. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/meeting-external.interface.mjs +8 -0
  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/meeting-external.api.service.mjs +45 -0
  9. package/esm2020/lib/_internal/objects/index.mjs +2 -1
  10. package/esm2020/lib/_internal/objects/meeting-external.mjs +169 -0
  11. package/esm2020/lib/_internal/objects/meeting-guest.mjs +7 -1
  12. package/esm2020/lib/_internal/objects/meeting-host.mjs +7 -1
  13. package/esm2020/lib/guest/guest.service.mjs +1 -1
  14. package/esm2020/lib/host/host.service.mjs +1 -1
  15. package/fesm2015/vendasta-meetings.mjs +256 -32
  16. package/fesm2015/vendasta-meetings.mjs.map +1 -1
  17. package/fesm2020/vendasta-meetings.mjs +256 -32
  18. package/fesm2020/vendasta-meetings.mjs.map +1 -1
  19. package/lib/_internal/enums/index.d.ts +1 -1
  20. package/lib/_internal/enums/meeting-type.enum.d.ts +9 -0
  21. package/lib/_internal/index.d.ts +1 -0
  22. package/lib/_internal/interfaces/index.d.ts +1 -0
  23. package/lib/_internal/interfaces/meeting-external.interface.d.ts +30 -0
  24. package/lib/_internal/interfaces/meeting-guest.interface.d.ts +1 -0
  25. package/lib/_internal/interfaces/meeting-host.interface.d.ts +1 -0
  26. package/lib/_internal/meeting-external.api.service.d.ts +14 -0
  27. package/lib/_internal/objects/index.d.ts +1 -0
  28. package/lib/_internal/objects/meeting-external.d.ts +50 -0
  29. package/lib/_internal/objects/meeting-guest.d.ts +1 -0
  30. package/lib/_internal/objects/meeting-host.d.ts +1 -0
  31. package/lib/guest/guest.service.d.ts +2 -1
  32. package/lib/host/host.service.d.ts +2 -1
  33. package/package.json +1 -1
@@ -134,6 +134,16 @@ var OnBoardingState;
134
134
  //
135
135
  // Enums.
136
136
  // *********************************
137
+ var BookingSource;
138
+ (function (BookingSource) {
139
+ BookingSource[BookingSource["BOOKING_SOURCE_UNKNOWN"] = 0] = "BOOKING_SOURCE_UNKNOWN";
140
+ BookingSource[BookingSource["BOOKING_SOURCE_BOOKING_FORM"] = 1] = "BOOKING_SOURCE_BOOKING_FORM";
141
+ BookingSource[BookingSource["BOOKING_SOURCE_AI_VOICE"] = 2] = "BOOKING_SOURCE_AI_VOICE";
142
+ BookingSource[BookingSource["BOOKING_SOURCE_AI_CHAT"] = 3] = "BOOKING_SOURCE_AI_CHAT";
143
+ BookingSource[BookingSource["BOOKING_SOURCE_BOOK_A_MEETING"] = 4] = "BOOKING_SOURCE_BOOK_A_MEETING";
144
+ BookingSource[BookingSource["BOOKING_SOURCE_API_INTEGRATION"] = 5] = "BOOKING_SOURCE_API_INTEGRATION";
145
+ BookingSource[BookingSource["BOOKING_SOURCE_CRM"] = 6] = "BOOKING_SOURCE_CRM";
146
+ })(BookingSource || (BookingSource = {}));
137
147
  var DateRangeType;
138
148
  (function (DateRangeType) {
139
149
  DateRangeType[DateRangeType["RELATIVE"] = 0] = "RELATIVE";
@@ -227,7 +237,7 @@ var DayOfWeek;
227
237
 
228
238
  // *********************************
229
239
 
230
- function enumStringToValue$c(enumRef, value) {
240
+ function enumStringToValue$d(enumRef, value) {
231
241
  if (typeof value === 'number') {
232
242
  return value;
233
243
  }
@@ -238,10 +248,10 @@ class MeetingSourceInfo {
238
248
  let m = new MeetingSourceInfo();
239
249
  m = Object.assign(m, proto);
240
250
  if (proto.source) {
241
- m.source = enumStringToValue$c(MeetingSource, proto.source);
251
+ m.source = enumStringToValue$d(MeetingSource, proto.source);
242
252
  }
243
253
  if (proto.status) {
244
- m.status = enumStringToValue$c(MeetingSourceStatus, proto.status);
254
+ m.status = enumStringToValue$d(MeetingSourceStatus, proto.status);
245
255
  }
246
256
  return m;
247
257
  }
@@ -331,7 +341,7 @@ class MeetingSourceQuery {
331
341
  let m = new MeetingSourceQuery();
332
342
  m = Object.assign(m, proto);
333
343
  if (proto.source) {
334
- m.source = enumStringToValue$c(MeetingSource, proto.source);
344
+ m.source = enumStringToValue$d(MeetingSource, proto.source);
335
345
  }
336
346
  return m;
337
347
  }
@@ -356,7 +366,7 @@ class MeetingSourceQuery {
356
366
  }
357
367
  }
358
368
 
359
- function enumStringToValue$b(enumRef, value) {
369
+ function enumStringToValue$c(enumRef, value) {
360
370
  if (typeof value === 'number') {
361
371
  return value;
362
372
  }
@@ -367,7 +377,7 @@ class CreateZoomMeetingRequest {
367
377
  let m = new CreateZoomMeetingRequest();
368
378
  m = Object.assign(m, proto);
369
379
  if (proto.type) {
370
- m.type = enumStringToValue$b(ZoomMeetingType, proto.type);
380
+ m.type = enumStringToValue$c(ZoomMeetingType, proto.type);
371
381
  }
372
382
  if (proto.duration) {
373
383
  m.duration = parseInt(proto.duration, 10);
@@ -435,7 +445,7 @@ class CreateZoomMeetingResponse {
435
445
  m.meetingId = parseInt(proto.meetingId, 10);
436
446
  }
437
447
  if (proto.type) {
438
- m.type = enumStringToValue$b(ZoomMeetingType, proto.type);
448
+ m.type = enumStringToValue$c(ZoomMeetingType, proto.type);
439
449
  }
440
450
  if (proto.duration) {
441
451
  m.duration = parseInt(proto.duration, 10);
@@ -527,7 +537,7 @@ class ZoomMeetingRecurrence {
527
537
  let m = new ZoomMeetingRecurrence();
528
538
  m = Object.assign(m, proto);
529
539
  if (proto.type) {
530
- m.type = enumStringToValue$b(ZoomMeetingRecurrenceType, proto.type);
540
+ m.type = enumStringToValue$c(ZoomMeetingRecurrenceType, proto.type);
531
541
  }
532
542
  if (proto.repeatInterval) {
533
543
  m.repeatInterval = parseInt(proto.repeatInterval, 10);
@@ -536,10 +546,10 @@ class ZoomMeetingRecurrence {
536
546
  m.monthlyDay = parseInt(proto.monthlyDay, 10);
537
547
  }
538
548
  if (proto.monthlyWeek) {
539
- m.monthlyWeek = enumStringToValue$b(ZoomMonthlyWeek, proto.monthlyWeek);
549
+ m.monthlyWeek = enumStringToValue$c(ZoomMonthlyWeek, proto.monthlyWeek);
540
550
  }
541
551
  if (proto.monthlyWeekDay) {
542
- m.monthlyWeekDay = enumStringToValue$b(ZoomMonthlyWeekDay, proto.monthlyWeekDay);
552
+ m.monthlyWeekDay = enumStringToValue$c(ZoomMonthlyWeekDay, proto.monthlyWeekDay);
543
553
  }
544
554
  if (proto.endTimes) {
545
555
  m.endTimes = parseInt(proto.endTimes, 10);
@@ -586,10 +596,10 @@ class ZoomMeetingSettings {
586
596
  let m = new ZoomMeetingSettings();
587
597
  m = Object.assign(m, proto);
588
598
  if (proto.approvalType) {
589
- m.approvalType = enumStringToValue$b(ZoomApprovalType, proto.approvalType);
599
+ m.approvalType = enumStringToValue$c(ZoomApprovalType, proto.approvalType);
590
600
  }
591
601
  if (proto.registrationType) {
592
- m.registrationType = enumStringToValue$b(ZoomRegistrationType, proto.registrationType);
602
+ m.registrationType = enumStringToValue$c(ZoomRegistrationType, proto.registrationType);
593
603
  }
594
604
  return m;
595
605
  }
@@ -732,7 +742,7 @@ class ZoomOccurrence {
732
742
  }
733
743
  }
734
744
 
735
- function enumStringToValue$a(enumRef, value) {
745
+ function enumStringToValue$b(enumRef, value) {
736
746
  if (typeof value === 'number') {
737
747
  return value;
738
748
  }
@@ -1382,7 +1392,7 @@ class GoogleMeetMeetingReminders {
1382
1392
  }
1383
1393
  }
1384
1394
 
1385
- function enumStringToValue$9(enumRef, value) {
1395
+ function enumStringToValue$a(enumRef, value) {
1386
1396
  if (typeof value === 'number') {
1387
1397
  return value;
1388
1398
  }
@@ -1393,7 +1403,7 @@ class Answer {
1393
1403
  let m = new Answer();
1394
1404
  m = Object.assign(m, proto);
1395
1405
  if (proto.type) {
1396
- m.type = enumStringToValue$9(FormFieldType, proto.type);
1406
+ m.type = enumStringToValue$a(FormFieldType, proto.type);
1397
1407
  }
1398
1408
  return m;
1399
1409
  }
@@ -1535,7 +1545,7 @@ class Calendar {
1535
1545
  m.applicationContext = Object.keys(proto.applicationContext).reduce((obj, k) => { obj[k] = proto.applicationContext[k]; return obj; }, {});
1536
1546
  }
1537
1547
  if (proto.calendarType) {
1538
- m.calendarType = enumStringToValue$9(CalendarType, proto.calendarType);
1548
+ m.calendarType = enumStringToValue$a(CalendarType, proto.calendarType);
1539
1549
  }
1540
1550
  return m;
1541
1551
  }
@@ -1843,7 +1853,7 @@ class Preferences {
1843
1853
  m.timezone = TimeZone.fromProto(proto.timezone);
1844
1854
  }
1845
1855
  if (proto.meetingIntegration) {
1846
- m.meetingIntegration = enumStringToValue$9(MeetingSource, proto.meetingIntegration);
1856
+ m.meetingIntegration = enumStringToValue$a(MeetingSource, proto.meetingIntegration);
1847
1857
  }
1848
1858
  if (proto.availabilityIncrement) {
1849
1859
  m.availabilityIncrement = parseInt(proto.availabilityIncrement, 10);
@@ -1858,10 +1868,10 @@ class Preferences {
1858
1868
  m.bufferDurationBeforeMeeting = parseInt(proto.bufferDurationBeforeMeeting, 10);
1859
1869
  }
1860
1870
  if (proto.calendarIntegration) {
1861
- m.calendarIntegration = enumStringToValue$9(CalendarSource, proto.calendarIntegration);
1871
+ m.calendarIntegration = enumStringToValue$a(CalendarSource, proto.calendarIntegration);
1862
1872
  }
1863
1873
  if (proto.onBoardingState) {
1864
- m.onBoardingState = enumStringToValue$9(OnBoardingState, proto.onBoardingState);
1874
+ m.onBoardingState = enumStringToValue$a(OnBoardingState, proto.onBoardingState);
1865
1875
  }
1866
1876
  return m;
1867
1877
  }
@@ -1933,7 +1943,7 @@ class TimeRange {
1933
1943
  }
1934
1944
  }
1935
1945
 
1936
- function enumStringToValue$8(enumRef, value) {
1946
+ function enumStringToValue$9(enumRef, value) {
1937
1947
  if (typeof value === 'number') {
1938
1948
  return value;
1939
1949
  }
@@ -1969,7 +1979,7 @@ class DateRange {
1969
1979
  }
1970
1980
  }
1971
1981
 
1972
- function enumStringToValue$7(enumRef, value) {
1982
+ function enumStringToValue$8(enumRef, value) {
1973
1983
  if (typeof value === 'number') {
1974
1984
  return value;
1975
1985
  }
@@ -1980,7 +1990,7 @@ class EventTypeDateRange {
1980
1990
  let m = new EventTypeDateRange();
1981
1991
  m = Object.assign(m, proto);
1982
1992
  if (proto.dateRangeType) {
1983
- m.dateRangeType = enumStringToValue$7(DateRangeType, proto.dateRangeType);
1993
+ m.dateRangeType = enumStringToValue$8(DateRangeType, proto.dateRangeType);
1984
1994
  }
1985
1995
  if (proto.customDateRange) {
1986
1996
  m.customDateRange = DateRange.fromProto(proto.customDateRange);
@@ -2015,7 +2025,7 @@ class Field {
2015
2025
  let m = new Field();
2016
2026
  m = Object.assign(m, proto);
2017
2027
  if (proto.type) {
2018
- m.type = enumStringToValue$7(FormFieldType, proto.type);
2028
+ m.type = enumStringToValue$8(FormFieldType, proto.type);
2019
2029
  }
2020
2030
  return m;
2021
2031
  }
@@ -2082,7 +2092,7 @@ class MeetingType {
2082
2092
  m.noticeTime = parseInt(proto.noticeTime, 10);
2083
2093
  }
2084
2094
  if (proto.locationType) {
2085
- m.locationType = enumStringToValue$7(MeetingLocationType, proto.locationType);
2095
+ m.locationType = enumStringToValue$8(MeetingLocationType, proto.locationType);
2086
2096
  }
2087
2097
  if (proto.hostUsers) {
2088
2098
  m.hostUsers = proto.hostUsers.map(HostUser.fromProto);
@@ -2094,7 +2104,7 @@ class MeetingType {
2094
2104
  m.dateRange = EventTypeDateRange.fromProto(proto.dateRange);
2095
2105
  }
2096
2106
  if (proto.meetingType) {
2097
- m.meetingType = enumStringToValue$7(TeamEventMeetingType, proto.meetingType);
2107
+ m.meetingType = enumStringToValue$8(TeamEventMeetingType, proto.meetingType);
2098
2108
  }
2099
2109
  if (proto.attendeeCount) {
2100
2110
  m.attendeeCount = parseInt(proto.attendeeCount, 10);
@@ -2106,7 +2116,7 @@ class MeetingType {
2106
2116
  m.hostOrderDetails = proto.hostOrderDetails.map(HostOrderDetails.fromProto);
2107
2117
  }
2108
2118
  if (proto.notificationType) {
2109
- m.notificationType = enumStringToValue$7(NotificationType, proto.notificationType);
2119
+ m.notificationType = enumStringToValue$8(NotificationType, proto.notificationType);
2110
2120
  }
2111
2121
  return m;
2112
2122
  }
@@ -2231,7 +2241,7 @@ class RegistrationCutOff {
2231
2241
  let m = new RegistrationCutOff();
2232
2242
  m = Object.assign(m, proto);
2233
2243
  if (proto.unit) {
2234
- m.unit = enumStringToValue$7(RegistrationCutOffUnit, proto.unit);
2244
+ m.unit = enumStringToValue$8(RegistrationCutOffUnit, proto.unit);
2235
2245
  }
2236
2246
  if (proto.value) {
2237
2247
  m.value = parseInt(proto.value, 10);
@@ -2260,7 +2270,7 @@ class RelativeDateRange {
2260
2270
  let m = new RelativeDateRange();
2261
2271
  m = Object.assign(m, proto);
2262
2272
  if (proto.unit) {
2263
- m.unit = enumStringToValue$7(RelativeTimeUnit, proto.unit);
2273
+ m.unit = enumStringToValue$8(RelativeTimeUnit, proto.unit);
2264
2274
  }
2265
2275
  if (proto.value) {
2266
2276
  m.value = parseInt(proto.value, 10);
@@ -2285,7 +2295,7 @@ class RelativeDateRange {
2285
2295
  }
2286
2296
  }
2287
2297
 
2288
- function enumStringToValue$6(enumRef, value) {
2298
+ function enumStringToValue$7(enumRef, value) {
2289
2299
  if (typeof value === 'number') {
2290
2300
  return value;
2291
2301
  }
@@ -2430,7 +2440,7 @@ class Service {
2430
2440
  }
2431
2441
  }
2432
2442
 
2433
- function enumStringToValue$5(enumRef, value) {
2443
+ function enumStringToValue$6(enumRef, value) {
2434
2444
  if (typeof value === 'number') {
2435
2445
  return value;
2436
2446
  }
@@ -2455,6 +2465,9 @@ class BookMeetingRequest {
2455
2465
  if (proto.formAnswers) {
2456
2466
  m.formAnswers = Answers.fromProto(proto.formAnswers);
2457
2467
  }
2468
+ if (proto.bookingSource) {
2469
+ m.bookingSource = enumStringToValue$6(BookingSource, proto.bookingSource);
2470
+ }
2458
2471
  return m;
2459
2472
  }
2460
2473
  constructor(kwargs) {
@@ -2498,6 +2511,9 @@ class BookMeetingRequest {
2498
2511
  if (typeof this.userId !== 'undefined') {
2499
2512
  toReturn['userId'] = this.userId;
2500
2513
  }
2514
+ if (typeof this.bookingSource !== 'undefined') {
2515
+ toReturn['bookingSource'] = this.bookingSource;
2516
+ }
2501
2517
  return toReturn;
2502
2518
  }
2503
2519
  }
@@ -3021,10 +3037,10 @@ class GuestGetBookedMeetingResponse {
3021
3037
  m.timeZone = TimeZone.fromProto(proto.timeZone);
3022
3038
  }
3023
3039
  if (proto.locationType) {
3024
- m.locationType = enumStringToValue$5(MeetingLocationType, proto.locationType);
3040
+ m.locationType = enumStringToValue$6(MeetingLocationType, proto.locationType);
3025
3041
  }
3026
3042
  if (proto.meetingType) {
3027
- m.meetingType = enumStringToValue$5(TeamEventMeetingType, proto.meetingType);
3043
+ m.meetingType = enumStringToValue$6(TeamEventMeetingType, proto.meetingType);
3028
3044
  }
3029
3045
  return m;
3030
3046
  }
@@ -3383,6 +3399,175 @@ class RegisterSessionRequest {
3383
3399
  }
3384
3400
  }
3385
3401
 
3402
+ function enumStringToValue$5(enumRef, value) {
3403
+ if (typeof value === 'number') {
3404
+ return value;
3405
+ }
3406
+ return enumRef[value];
3407
+ }
3408
+ class GroupResponse {
3409
+ static fromProto(proto) {
3410
+ let m = new GroupResponse();
3411
+ m = Object.assign(m, proto);
3412
+ return m;
3413
+ }
3414
+ constructor(kwargs) {
3415
+ if (!kwargs) {
3416
+ return;
3417
+ }
3418
+ Object.assign(this, kwargs);
3419
+ }
3420
+ toApiJson() {
3421
+ const toReturn = {};
3422
+ if (typeof this.id !== 'undefined') {
3423
+ toReturn['id'] = this.id;
3424
+ }
3425
+ if (typeof this.name !== 'undefined') {
3426
+ toReturn['name'] = this.name;
3427
+ }
3428
+ if (typeof this.description !== 'undefined') {
3429
+ toReturn['description'] = this.description;
3430
+ }
3431
+ if (typeof this.bookingUrl !== 'undefined') {
3432
+ toReturn['bookingUrl'] = this.bookingUrl;
3433
+ }
3434
+ if (typeof this.hexColor !== 'undefined') {
3435
+ toReturn['hexColor'] = this.hexColor;
3436
+ }
3437
+ return toReturn;
3438
+ }
3439
+ }
3440
+ class GroupsRequest {
3441
+ static fromProto(proto) {
3442
+ let m = new GroupsRequest();
3443
+ m = Object.assign(m, proto);
3444
+ return m;
3445
+ }
3446
+ constructor(kwargs) {
3447
+ if (!kwargs) {
3448
+ return;
3449
+ }
3450
+ Object.assign(this, kwargs);
3451
+ }
3452
+ toApiJson() {
3453
+ const toReturn = {};
3454
+ if (typeof this.partnerId !== 'undefined') {
3455
+ toReturn['partnerId'] = this.partnerId;
3456
+ }
3457
+ if (typeof this.businessId !== 'undefined') {
3458
+ toReturn['businessId'] = this.businessId;
3459
+ }
3460
+ if (typeof this.userId !== 'undefined') {
3461
+ toReturn['userId'] = this.userId;
3462
+ }
3463
+ return toReturn;
3464
+ }
3465
+ }
3466
+ class GroupsResponse {
3467
+ static fromProto(proto) {
3468
+ let m = new GroupsResponse();
3469
+ m = Object.assign(m, proto);
3470
+ if (proto.groups) {
3471
+ m.groups = proto.groups.map(GroupResponse.fromProto);
3472
+ }
3473
+ return m;
3474
+ }
3475
+ constructor(kwargs) {
3476
+ if (!kwargs) {
3477
+ return;
3478
+ }
3479
+ Object.assign(this, kwargs);
3480
+ }
3481
+ toApiJson() {
3482
+ const toReturn = {};
3483
+ if (typeof this.groups !== 'undefined' && this.groups !== null) {
3484
+ toReturn['groups'] = 'toApiJson' in this.groups ? this.groups.toApiJson() : this.groups;
3485
+ }
3486
+ return toReturn;
3487
+ }
3488
+ }
3489
+ class ServiceResponse {
3490
+ static fromProto(proto) {
3491
+ let m = new ServiceResponse();
3492
+ m = Object.assign(m, proto);
3493
+ return m;
3494
+ }
3495
+ constructor(kwargs) {
3496
+ if (!kwargs) {
3497
+ return;
3498
+ }
3499
+ Object.assign(this, kwargs);
3500
+ }
3501
+ toApiJson() {
3502
+ const toReturn = {};
3503
+ if (typeof this.id !== 'undefined') {
3504
+ toReturn['id'] = this.id;
3505
+ }
3506
+ if (typeof this.name !== 'undefined') {
3507
+ toReturn['name'] = this.name;
3508
+ }
3509
+ if (typeof this.description !== 'undefined') {
3510
+ toReturn['description'] = this.description;
3511
+ }
3512
+ if (typeof this.bookingUrl !== 'undefined') {
3513
+ toReturn['bookingUrl'] = this.bookingUrl;
3514
+ }
3515
+ if (typeof this.hexColor !== 'undefined') {
3516
+ toReturn['hexColor'] = this.hexColor;
3517
+ }
3518
+ return toReturn;
3519
+ }
3520
+ }
3521
+ class ServicesRequest {
3522
+ static fromProto(proto) {
3523
+ let m = new ServicesRequest();
3524
+ m = Object.assign(m, proto);
3525
+ return m;
3526
+ }
3527
+ constructor(kwargs) {
3528
+ if (!kwargs) {
3529
+ return;
3530
+ }
3531
+ Object.assign(this, kwargs);
3532
+ }
3533
+ toApiJson() {
3534
+ const toReturn = {};
3535
+ if (typeof this.partnerId !== 'undefined') {
3536
+ toReturn['partnerId'] = this.partnerId;
3537
+ }
3538
+ if (typeof this.businessId !== 'undefined') {
3539
+ toReturn['businessId'] = this.businessId;
3540
+ }
3541
+ if (typeof this.userId !== 'undefined') {
3542
+ toReturn['userId'] = this.userId;
3543
+ }
3544
+ return toReturn;
3545
+ }
3546
+ }
3547
+ class ServicesResponse {
3548
+ static fromProto(proto) {
3549
+ let m = new ServicesResponse();
3550
+ m = Object.assign(m, proto);
3551
+ if (proto.services) {
3552
+ m.services = proto.services.map(ServiceResponse.fromProto);
3553
+ }
3554
+ return m;
3555
+ }
3556
+ constructor(kwargs) {
3557
+ if (!kwargs) {
3558
+ return;
3559
+ }
3560
+ Object.assign(this, kwargs);
3561
+ }
3562
+ toApiJson() {
3563
+ const toReturn = {};
3564
+ if (typeof this.services !== 'undefined' && this.services !== null) {
3565
+ toReturn['services'] = 'toApiJson' in this.services ? this.services.toApiJson() : this.services;
3566
+ }
3567
+ return toReturn;
3568
+ }
3569
+ }
3570
+
3386
3571
  function enumStringToValue$4(enumRef, value) {
3387
3572
  if (typeof value === 'number') {
3388
3573
  return value;
@@ -4513,6 +4698,9 @@ class HostBookMeetingRequest {
4513
4698
  if (proto.attendees) {
4514
4699
  m.attendees = proto.attendees.map(Contact.fromProto);
4515
4700
  }
4701
+ if (proto.bookingSource) {
4702
+ m.bookingSource = enumStringToValue$3(BookingSource, proto.bookingSource);
4703
+ }
4516
4704
  return m;
4517
4705
  }
4518
4706
  constructor(kwargs) {
@@ -4544,6 +4732,9 @@ class HostBookMeetingRequest {
4544
4732
  if (typeof this.userId !== 'undefined') {
4545
4733
  toReturn['userId'] = this.userId;
4546
4734
  }
4735
+ if (typeof this.bookingSource !== 'undefined') {
4736
+ toReturn['bookingSource'] = this.bookingSource;
4737
+ }
4547
4738
  return toReturn;
4548
4739
  }
4549
4740
  }
@@ -6500,6 +6691,39 @@ function createMeetInstantMeetingRequest(meetingTitle, startDateTime, attendees)
6500
6691
  return new GoogleMeetCreateMeetingRequest(req);
6501
6692
  }
6502
6693
 
6694
+ // *********************************
6695
+ class MeetingExternalApiService {
6696
+ constructor() {
6697
+ this.hostService = inject(HostService$1);
6698
+ this.http = inject(HttpClient);
6699
+ this._host = this.hostService.hostWithScheme;
6700
+ }
6701
+ apiOptions() {
6702
+ return {
6703
+ headers: new HttpHeaders({
6704
+ 'Content-Type': 'application/json'
6705
+ }),
6706
+ withCredentials: true
6707
+ };
6708
+ }
6709
+ listGroups(r) {
6710
+ const request = (r.toApiJson) ? r : new GroupsRequest(r);
6711
+ return this.http.post(this._host + "/meetings.v1.MeetingExternal/ListGroups", request.toApiJson(), this.apiOptions())
6712
+ .pipe(map(resp => GroupsResponse.fromProto(resp)));
6713
+ }
6714
+ listServices(r) {
6715
+ const request = (r.toApiJson) ? r : new ServicesRequest(r);
6716
+ return this.http.post(this._host + "/meetings.v1.MeetingExternal/ListServices", request.toApiJson(), this.apiOptions())
6717
+ .pipe(map(resp => ServicesResponse.fromProto(resp)));
6718
+ }
6719
+ }
6720
+ MeetingExternalApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingExternalApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
6721
+ MeetingExternalApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingExternalApiService, providedIn: 'root' });
6722
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingExternalApiService, decorators: [{
6723
+ type: Injectable,
6724
+ args: [{ providedIn: 'root' }]
6725
+ }] });
6726
+
6503
6727
  // *********************************
6504
6728
  class MeetingGuestApiService {
6505
6729
  constructor() {