@vendasta/meetings 1.5.1 → 1.5.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 (47) hide show
  1. package/esm2020/lib/_internal/enums/index.mjs +2 -1
  2. package/esm2020/lib/_internal/enums/meeting-guest.enum.mjs +11 -0
  3. package/esm2020/lib/_internal/google-meet.api.service.mjs +8 -7
  4. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/meeting-external.interface.mjs +1 -7
  6. package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/meeting-host.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/shared.interface.mjs +1 -1
  9. package/esm2020/lib/_internal/meeting-external.api.service.mjs +38 -8
  10. package/esm2020/lib/_internal/meeting-guest.api.service.mjs +14 -8
  11. package/esm2020/lib/_internal/meeting-host.api.service.mjs +14 -8
  12. package/esm2020/lib/_internal/meeting-source-api.api.service.mjs +8 -7
  13. package/esm2020/lib/_internal/objects/index.mjs +4 -4
  14. package/esm2020/lib/_internal/objects/meeting-external.mjs +577 -1
  15. package/esm2020/lib/_internal/objects/meeting-guest.mjs +54 -5
  16. package/esm2020/lib/_internal/objects/meeting-host.mjs +55 -12
  17. package/esm2020/lib/_internal/objects/shared.mjs +3 -2
  18. package/esm2020/lib/_internal/zoom.api.service.mjs +8 -7
  19. package/esm2020/lib/guest/guest.service.mjs +4 -1
  20. package/esm2020/lib/host/host.service.mjs +6 -1
  21. package/esm2020/lib/index.mjs +3 -3
  22. package/fesm2015/vendasta-meetings.mjs +941 -219
  23. package/fesm2015/vendasta-meetings.mjs.map +1 -1
  24. package/fesm2020/vendasta-meetings.mjs +941 -219
  25. package/fesm2020/vendasta-meetings.mjs.map +1 -1
  26. package/lib/_internal/enums/index.d.ts +1 -0
  27. package/lib/_internal/enums/meeting-guest.enum.d.ts +3 -0
  28. package/lib/_internal/google-meet.api.service.d.ts +5 -2
  29. package/lib/_internal/interfaces/index.d.ts +3 -3
  30. package/lib/_internal/interfaces/meeting-external.interface.d.ts +120 -0
  31. package/lib/_internal/interfaces/meeting-guest.interface.d.ts +10 -1
  32. package/lib/_internal/interfaces/meeting-host.interface.d.ts +13 -6
  33. package/lib/_internal/interfaces/shared.interface.d.ts +2 -1
  34. package/lib/_internal/meeting-external.api.service.d.ts +13 -4
  35. package/lib/_internal/meeting-guest.api.service.d.ts +8 -5
  36. package/lib/_internal/meeting-host.api.service.d.ts +8 -5
  37. package/lib/_internal/meeting-source-api.api.service.d.ts +5 -2
  38. package/lib/_internal/objects/index.d.ts +3 -3
  39. package/lib/_internal/objects/meeting-external.d.ts +162 -0
  40. package/lib/_internal/objects/meeting-guest.d.ts +15 -1
  41. package/lib/_internal/objects/meeting-host.d.ts +27 -14
  42. package/lib/_internal/objects/shared.d.ts +2 -1
  43. package/lib/_internal/zoom.api.service.d.ts +5 -2
  44. package/lib/guest/guest.service.d.ts +6 -1
  45. package/lib/host/host.service.d.ts +4 -0
  46. package/lib/index.d.ts +3 -3
  47. package/package.json +1 -1
@@ -1,8 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, inject } from '@angular/core';
2
+ import { Injectable } from '@angular/core';
3
3
  import { throwError, of } from 'rxjs';
4
4
  import { map, mapTo } from 'rxjs/operators';
5
- import { HttpClient, HttpHeaders } from '@angular/common/http';
5
+ import * as i1 from '@angular/common/http';
6
+ import { HttpHeaders } from '@angular/common/http';
6
7
 
7
8
  // *********************************
8
9
  // Code generated by sdkgen
@@ -187,6 +188,17 @@ var TeamEventMeetingType;
187
188
  TeamEventMeetingType[TeamEventMeetingType["PRIORITY_ROUND_ROBIN"] = 3] = "PRIORITY_ROUND_ROBIN";
188
189
  })(TeamEventMeetingType || (TeamEventMeetingType = {}));
189
190
 
191
+ // *********************************
192
+ // Code generated by sdkgen
193
+ // DO NOT EDIT!.
194
+ //
195
+ // Enums.
196
+ // *********************************
197
+ var FeatureFlagFieldType;
198
+ (function (FeatureFlagFieldType) {
199
+ FeatureFlagFieldType[FeatureFlagFieldType["FEATURE_FLAG_FIELD_TYPE_CALENDAR_ID"] = 0] = "FEATURE_FLAG_FIELD_TYPE_CALENDAR_ID";
200
+ })(FeatureFlagFieldType || (FeatureFlagFieldType = {}));
201
+
190
202
  // *********************************
191
203
  // Code generated by sdkgen
192
204
  // DO NOT EDIT!.
@@ -1404,12 +1416,125 @@ function enumStringToValue$a(enumRef, value) {
1404
1416
  }
1405
1417
  return enumRef[value];
1406
1418
  }
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
+ }
1407
1532
  class Answer {
1408
1533
  static fromProto(proto) {
1409
1534
  let m = new Answer();
1410
1535
  m = Object.assign(m, proto);
1411
1536
  if (proto.type) {
1412
- m.type = enumStringToValue$a(FormFieldType, proto.type);
1537
+ m.type = enumStringToValue$8(FormFieldType, proto.type);
1413
1538
  }
1414
1539
  return m;
1415
1540
  }
@@ -1551,7 +1676,7 @@ class Calendar {
1551
1676
  m.applicationContext = Object.keys(proto.applicationContext).reduce((obj, k) => { obj[k] = proto.applicationContext[k]; return obj; }, {});
1552
1677
  }
1553
1678
  if (proto.calendarType) {
1554
- m.calendarType = enumStringToValue$a(CalendarType, proto.calendarType);
1679
+ m.calendarType = enumStringToValue$8(CalendarType, proto.calendarType);
1555
1680
  }
1556
1681
  return m;
1557
1682
  }
@@ -1859,7 +1984,7 @@ class Preferences {
1859
1984
  m.timezone = TimeZone.fromProto(proto.timezone);
1860
1985
  }
1861
1986
  if (proto.meetingIntegration) {
1862
- m.meetingIntegration = enumStringToValue$a(MeetingSource, proto.meetingIntegration);
1987
+ m.meetingIntegration = enumStringToValue$8(MeetingSource, proto.meetingIntegration);
1863
1988
  }
1864
1989
  if (proto.availabilityIncrement) {
1865
1990
  m.availabilityIncrement = parseInt(proto.availabilityIncrement, 10);
@@ -1874,10 +1999,10 @@ class Preferences {
1874
1999
  m.bufferDurationBeforeMeeting = parseInt(proto.bufferDurationBeforeMeeting, 10);
1875
2000
  }
1876
2001
  if (proto.calendarIntegration) {
1877
- m.calendarIntegration = enumStringToValue$a(CalendarSource, proto.calendarIntegration);
2002
+ m.calendarIntegration = enumStringToValue$8(CalendarSource, proto.calendarIntegration);
1878
2003
  }
1879
2004
  if (proto.onBoardingState) {
1880
- m.onBoardingState = enumStringToValue$a(OnBoardingState, proto.onBoardingState);
2005
+ m.onBoardingState = enumStringToValue$8(OnBoardingState, proto.onBoardingState);
1881
2006
  }
1882
2007
  return m;
1883
2008
  }
@@ -1949,7 +2074,7 @@ class TimeRange {
1949
2074
  }
1950
2075
  }
1951
2076
 
1952
- function enumStringToValue$9(enumRef, value) {
2077
+ function enumStringToValue$7(enumRef, value) {
1953
2078
  if (typeof value === 'number') {
1954
2079
  return value;
1955
2080
  }
@@ -1985,7 +2110,7 @@ class DateRange {
1985
2110
  }
1986
2111
  }
1987
2112
 
1988
- function enumStringToValue$8(enumRef, value) {
2113
+ function enumStringToValue$6(enumRef, value) {
1989
2114
  if (typeof value === 'number') {
1990
2115
  return value;
1991
2116
  }
@@ -1996,7 +2121,7 @@ class EventTypeDateRange {
1996
2121
  let m = new EventTypeDateRange();
1997
2122
  m = Object.assign(m, proto);
1998
2123
  if (proto.dateRangeType) {
1999
- m.dateRangeType = enumStringToValue$8(DateRangeType, proto.dateRangeType);
2124
+ m.dateRangeType = enumStringToValue$6(DateRangeType, proto.dateRangeType);
2000
2125
  }
2001
2126
  if (proto.customDateRange) {
2002
2127
  m.customDateRange = DateRange.fromProto(proto.customDateRange);
@@ -2031,7 +2156,7 @@ class Field {
2031
2156
  let m = new Field();
2032
2157
  m = Object.assign(m, proto);
2033
2158
  if (proto.type) {
2034
- m.type = enumStringToValue$8(FormFieldType, proto.type);
2159
+ m.type = enumStringToValue$6(FormFieldType, proto.type);
2035
2160
  }
2036
2161
  return m;
2037
2162
  }
@@ -2098,7 +2223,7 @@ class MeetingType {
2098
2223
  m.noticeTime = parseInt(proto.noticeTime, 10);
2099
2224
  }
2100
2225
  if (proto.locationType) {
2101
- m.locationType = enumStringToValue$8(MeetingLocationType, proto.locationType);
2226
+ m.locationType = enumStringToValue$6(MeetingLocationType, proto.locationType);
2102
2227
  }
2103
2228
  if (proto.hostUsers) {
2104
2229
  m.hostUsers = proto.hostUsers.map(HostUser.fromProto);
@@ -2110,7 +2235,7 @@ class MeetingType {
2110
2235
  m.dateRange = EventTypeDateRange.fromProto(proto.dateRange);
2111
2236
  }
2112
2237
  if (proto.meetingType) {
2113
- m.meetingType = enumStringToValue$8(TeamEventMeetingType, proto.meetingType);
2238
+ m.meetingType = enumStringToValue$6(TeamEventMeetingType, proto.meetingType);
2114
2239
  }
2115
2240
  if (proto.attendeeCount) {
2116
2241
  m.attendeeCount = parseInt(proto.attendeeCount, 10);
@@ -2122,7 +2247,7 @@ class MeetingType {
2122
2247
  m.hostOrderDetails = proto.hostOrderDetails.map(HostOrderDetails.fromProto);
2123
2248
  }
2124
2249
  if (proto.notificationType) {
2125
- m.notificationType = enumStringToValue$8(NotificationType, proto.notificationType);
2250
+ m.notificationType = enumStringToValue$6(NotificationType, proto.notificationType);
2126
2251
  }
2127
2252
  return m;
2128
2253
  }
@@ -2247,7 +2372,7 @@ class RegistrationCutOff {
2247
2372
  let m = new RegistrationCutOff();
2248
2373
  m = Object.assign(m, proto);
2249
2374
  if (proto.unit) {
2250
- m.unit = enumStringToValue$8(RegistrationCutOffUnit, proto.unit);
2375
+ m.unit = enumStringToValue$6(RegistrationCutOffUnit, proto.unit);
2251
2376
  }
2252
2377
  if (proto.value) {
2253
2378
  m.value = parseInt(proto.value, 10);
@@ -2276,7 +2401,7 @@ class RelativeDateRange {
2276
2401
  let m = new RelativeDateRange();
2277
2402
  m = Object.assign(m, proto);
2278
2403
  if (proto.unit) {
2279
- m.unit = enumStringToValue$8(RelativeTimeUnit, proto.unit);
2404
+ m.unit = enumStringToValue$6(RelativeTimeUnit, proto.unit);
2280
2405
  }
2281
2406
  if (proto.value) {
2282
2407
  m.value = parseInt(proto.value, 10);
@@ -2301,7 +2426,7 @@ class RelativeDateRange {
2301
2426
  }
2302
2427
  }
2303
2428
 
2304
- function enumStringToValue$7(enumRef, value) {
2429
+ function enumStringToValue$5(enumRef, value) {
2305
2430
  if (typeof value === 'number') {
2306
2431
  return value;
2307
2432
  }
@@ -2446,7 +2571,7 @@ class Service {
2446
2571
  }
2447
2572
  }
2448
2573
 
2449
- function enumStringToValue$6(enumRef, value) {
2574
+ function enumStringToValue$4(enumRef, value) {
2450
2575
  if (typeof value === 'number') {
2451
2576
  return value;
2452
2577
  }
@@ -2472,7 +2597,7 @@ class BookMeetingRequest {
2472
2597
  m.formAnswers = Answers.fromProto(proto.formAnswers);
2473
2598
  }
2474
2599
  if (proto.bookingSource) {
2475
- m.bookingSource = enumStringToValue$6(BookingSource, proto.bookingSource);
2600
+ m.bookingSource = enumStringToValue$4(BookingSource, proto.bookingSource);
2476
2601
  }
2477
2602
  return m;
2478
2603
  }
@@ -2546,6 +2671,55 @@ class BookMeetingResponse {
2546
2671
  return toReturn;
2547
2672
  }
2548
2673
  }
2674
+ class CheckFeatureFlagRequest {
2675
+ static fromProto(proto) {
2676
+ let m = new CheckFeatureFlagRequest();
2677
+ m = Object.assign(m, proto);
2678
+ if (proto.fieldType) {
2679
+ m.fieldType = enumStringToValue$4(FeatureFlagFieldType, proto.fieldType);
2680
+ }
2681
+ return m;
2682
+ }
2683
+ constructor(kwargs) {
2684
+ if (!kwargs) {
2685
+ return;
2686
+ }
2687
+ Object.assign(this, kwargs);
2688
+ }
2689
+ toApiJson() {
2690
+ const toReturn = {};
2691
+ if (typeof this.fieldType !== 'undefined') {
2692
+ toReturn['fieldType'] = this.fieldType;
2693
+ }
2694
+ if (typeof this.fieldValue !== 'undefined') {
2695
+ toReturn['fieldValue'] = this.fieldValue;
2696
+ }
2697
+ if (typeof this.featureFlagKey !== 'undefined') {
2698
+ toReturn['featureFlagKey'] = this.featureFlagKey;
2699
+ }
2700
+ return toReturn;
2701
+ }
2702
+ }
2703
+ class CheckFeatureFlagResponse {
2704
+ static fromProto(proto) {
2705
+ let m = new CheckFeatureFlagResponse();
2706
+ m = Object.assign(m, proto);
2707
+ return m;
2708
+ }
2709
+ constructor(kwargs) {
2710
+ if (!kwargs) {
2711
+ return;
2712
+ }
2713
+ Object.assign(this, kwargs);
2714
+ }
2715
+ toApiJson() {
2716
+ const toReturn = {};
2717
+ if (typeof this.isEnabled !== 'undefined') {
2718
+ toReturn['isEnabled'] = this.isEnabled;
2719
+ }
2720
+ return toReturn;
2721
+ }
2722
+ }
2549
2723
  class GetCalendarRequest {
2550
2724
  static fromProto(proto) {
2551
2725
  let m = new GetCalendarRequest();
@@ -3063,10 +3237,10 @@ class GuestGetBookedMeetingResponse {
3063
3237
  m.timeZone = TimeZone.fromProto(proto.timeZone);
3064
3238
  }
3065
3239
  if (proto.locationType) {
3066
- m.locationType = enumStringToValue$6(MeetingLocationType, proto.locationType);
3240
+ m.locationType = enumStringToValue$4(MeetingLocationType, proto.locationType);
3067
3241
  }
3068
3242
  if (proto.meetingType) {
3069
- m.meetingType = enumStringToValue$6(TeamEventMeetingType, proto.meetingType);
3243
+ m.meetingType = enumStringToValue$4(TeamEventMeetingType, proto.meetingType);
3070
3244
  }
3071
3245
  return m;
3072
3246
  }
@@ -3115,9 +3289,6 @@ class GuestGetBookedMeetingResponseV2 {
3115
3289
  static fromProto(proto) {
3116
3290
  let m = new GuestGetBookedMeetingResponseV2();
3117
3291
  m = Object.assign(m, proto);
3118
- if (proto.timeZone) {
3119
- m.timeZone = TimeZone.fromProto(proto.timeZone);
3120
- }
3121
3292
  if (proto.startTime) {
3122
3293
  m.startTime = new Date(proto.startTime);
3123
3294
  }
@@ -3125,10 +3296,13 @@ class GuestGetBookedMeetingResponseV2 {
3125
3296
  m.endTime = new Date(proto.endTime);
3126
3297
  }
3127
3298
  if (proto.meetingSource) {
3128
- m.meetingSource = enumStringToValue$6(MeetingSource, proto.meetingSource);
3299
+ m.meetingSource = enumStringToValue$4(MeetingSource, proto.meetingSource);
3129
3300
  }
3130
3301
  if (proto.meetingLocationType) {
3131
- m.meetingLocationType = enumStringToValue$6(MeetingLocation, proto.meetingLocationType);
3302
+ m.meetingLocationType = enumStringToValue$4(MeetingLocation, proto.meetingLocationType);
3303
+ }
3304
+ if (proto.timeZone) {
3305
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
3132
3306
  }
3133
3307
  return m;
3134
3308
  }
@@ -3499,16 +3673,22 @@ class RegisterSessionRequest {
3499
3673
  }
3500
3674
  }
3501
3675
 
3502
- function enumStringToValue$5(enumRef, value) {
3676
+ function enumStringToValue$3(enumRef, value) {
3503
3677
  if (typeof value === 'number') {
3504
3678
  return value;
3505
3679
  }
3506
3680
  return enumRef[value];
3507
3681
  }
3508
- class GroupResponse {
3682
+ class AvailableTimeSlotsRequest {
3509
3683
  static fromProto(proto) {
3510
- let m = new GroupResponse();
3684
+ let m = new AvailableTimeSlotsRequest();
3511
3685
  m = Object.assign(m, proto);
3686
+ if (proto.timeSpan) {
3687
+ m.timeSpan = DateRange.fromProto(proto.timeSpan);
3688
+ }
3689
+ if (proto.timeZone) {
3690
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
3691
+ }
3512
3692
  return m;
3513
3693
  }
3514
3694
  constructor(kwargs) {
@@ -3519,28 +3699,555 @@ class GroupResponse {
3519
3699
  }
3520
3700
  toApiJson() {
3521
3701
  const toReturn = {};
3522
- if (typeof this.id !== 'undefined') {
3523
- toReturn['id'] = this.id;
3702
+ if (typeof this.partnerId !== 'undefined') {
3703
+ toReturn['partnerId'] = this.partnerId;
3524
3704
  }
3525
- if (typeof this.name !== 'undefined') {
3526
- toReturn['name'] = this.name;
3705
+ if (typeof this.businessId !== 'undefined') {
3706
+ toReturn['businessId'] = this.businessId;
3527
3707
  }
3528
- if (typeof this.description !== 'undefined') {
3529
- toReturn['description'] = this.description;
3708
+ if (typeof this.eventTypeId !== 'undefined') {
3709
+ toReturn['eventTypeId'] = this.eventTypeId;
3530
3710
  }
3531
- if (typeof this.bookingUrl !== 'undefined') {
3532
- toReturn['bookingUrl'] = this.bookingUrl;
3711
+ if (typeof this.timeSpan !== 'undefined' && this.timeSpan !== null) {
3712
+ toReturn['timeSpan'] = 'toApiJson' in this.timeSpan ? this.timeSpan.toApiJson() : this.timeSpan;
3713
+ }
3714
+ if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
3715
+ toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
3716
+ }
3717
+ if (typeof this.hostUserId !== 'undefined') {
3718
+ toReturn['hostUserId'] = this.hostUserId;
3719
+ }
3720
+ return toReturn;
3721
+ }
3722
+ }
3723
+ class AvailableTimeSlotsResponse {
3724
+ static fromProto(proto) {
3725
+ let m = new AvailableTimeSlotsResponse();
3726
+ m = Object.assign(m, proto);
3727
+ if (proto.timeSlots) {
3728
+ m.timeSlots = proto.timeSlots.map(IsoDateTimeRange.fromProto);
3729
+ }
3730
+ return m;
3731
+ }
3732
+ constructor(kwargs) {
3733
+ if (!kwargs) {
3734
+ return;
3735
+ }
3736
+ Object.assign(this, kwargs);
3737
+ }
3738
+ toApiJson() {
3739
+ const toReturn = {};
3740
+ if (typeof this.timeSlots !== 'undefined' && this.timeSlots !== null) {
3741
+ toReturn['timeSlots'] = 'toApiJson' in this.timeSlots ? this.timeSlots.toApiJson() : this.timeSlots;
3742
+ }
3743
+ return toReturn;
3744
+ }
3745
+ }
3746
+ class BookMeetingExternalRequest {
3747
+ static fromProto(proto) {
3748
+ let m = new BookMeetingExternalRequest();
3749
+ m = Object.assign(m, proto);
3750
+ if (proto.start) {
3751
+ m.start = new Date(proto.start);
3752
+ }
3753
+ if (proto.attendees) {
3754
+ m.attendees = proto.attendees.map(Contact.fromProto);
3755
+ }
3756
+ if (proto.formAnswers) {
3757
+ m.formAnswers = Answers.fromProto(proto.formAnswers);
3758
+ }
3759
+ return m;
3760
+ }
3761
+ constructor(kwargs) {
3762
+ if (!kwargs) {
3763
+ return;
3764
+ }
3765
+ Object.assign(this, kwargs);
3766
+ }
3767
+ toApiJson() {
3768
+ const toReturn = {};
3769
+ if (typeof this.partnerId !== 'undefined') {
3770
+ toReturn['partnerId'] = this.partnerId;
3771
+ }
3772
+ if (typeof this.businessId !== 'undefined') {
3773
+ toReturn['businessId'] = this.businessId;
3774
+ }
3775
+ if (typeof this.userId !== 'undefined') {
3776
+ toReturn['userId'] = this.userId;
3777
+ }
3778
+ if (typeof this.eventTypeId !== 'undefined') {
3779
+ toReturn['eventTypeId'] = this.eventTypeId;
3780
+ }
3781
+ if (typeof this.start !== 'undefined' && this.start !== null) {
3782
+ toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
3783
+ }
3784
+ if (typeof this.attendees !== 'undefined' && this.attendees !== null) {
3785
+ toReturn['attendees'] = 'toApiJson' in this.attendees ? this.attendees.toApiJson() : this.attendees;
3786
+ }
3787
+ if (typeof this.comment !== 'undefined') {
3788
+ toReturn['comment'] = this.comment;
3789
+ }
3790
+ if (typeof this.location !== 'undefined') {
3791
+ toReturn['location'] = this.location;
3792
+ }
3793
+ if (typeof this.formAnswers !== 'undefined' && this.formAnswers !== null) {
3794
+ toReturn['formAnswers'] = 'toApiJson' in this.formAnswers ? this.formAnswers.toApiJson() : this.formAnswers;
3795
+ }
3796
+ if (typeof this.hostUserId !== 'undefined') {
3797
+ toReturn['hostUserId'] = this.hostUserId;
3798
+ }
3799
+ return toReturn;
3800
+ }
3801
+ }
3802
+ class BookMeetingExternalResponse {
3803
+ static fromProto(proto) {
3804
+ let m = new BookMeetingExternalResponse();
3805
+ m = Object.assign(m, proto);
3806
+ if (proto.meetingStartTime) {
3807
+ m.meetingStartTime = new Date(proto.meetingStartTime);
3808
+ }
3809
+ if (proto.meetingEndTime) {
3810
+ m.meetingEndTime = new Date(proto.meetingEndTime);
3811
+ }
3812
+ if (proto.hostDetails) {
3813
+ m.hostDetails = proto.hostDetails.map(HostUserDetails.fromProto);
3814
+ }
3815
+ return m;
3816
+ }
3817
+ constructor(kwargs) {
3818
+ if (!kwargs) {
3819
+ return;
3820
+ }
3821
+ Object.assign(this, kwargs);
3822
+ }
3823
+ toApiJson() {
3824
+ const toReturn = {};
3825
+ if (typeof this.meetingId !== 'undefined') {
3826
+ toReturn['meetingId'] = this.meetingId;
3827
+ }
3828
+ if (typeof this.userId !== 'undefined') {
3829
+ toReturn['userId'] = this.userId;
3830
+ }
3831
+ if (typeof this.meetingStartTime !== 'undefined' && this.meetingStartTime !== null) {
3832
+ toReturn['meetingStartTime'] = 'toApiJson' in this.meetingStartTime ? this.meetingStartTime.toApiJson() : this.meetingStartTime;
3833
+ }
3834
+ if (typeof this.meetingEndTime !== 'undefined' && this.meetingEndTime !== null) {
3835
+ toReturn['meetingEndTime'] = 'toApiJson' in this.meetingEndTime ? this.meetingEndTime.toApiJson() : this.meetingEndTime;
3836
+ }
3837
+ if (typeof this.eventTypeId !== 'undefined') {
3838
+ toReturn['eventTypeId'] = this.eventTypeId;
3839
+ }
3840
+ if (typeof this.title !== 'undefined') {
3841
+ toReturn['title'] = this.title;
3842
+ }
3843
+ if (typeof this.location !== 'undefined') {
3844
+ toReturn['location'] = this.location;
3845
+ }
3846
+ if (typeof this.hostDetails !== 'undefined' && this.hostDetails !== null) {
3847
+ toReturn['hostDetails'] = 'toApiJson' in this.hostDetails ? this.hostDetails.toApiJson() : this.hostDetails;
3848
+ }
3849
+ if (typeof this.bookingUrl !== 'undefined') {
3850
+ toReturn['bookingUrl'] = this.bookingUrl;
3851
+ }
3852
+ if (typeof this.cancelUrl !== 'undefined') {
3853
+ toReturn['cancelUrl'] = this.cancelUrl;
3854
+ }
3855
+ if (typeof this.rescheduleUrl !== 'undefined') {
3856
+ toReturn['rescheduleUrl'] = this.rescheduleUrl;
3857
+ }
3858
+ if (typeof this.meetingLink !== 'undefined') {
3859
+ toReturn['meetingLink'] = this.meetingLink;
3860
+ }
3861
+ if (typeof this.attendeeEmails !== 'undefined') {
3862
+ toReturn['attendeeEmails'] = this.attendeeEmails;
3863
+ }
3864
+ return toReturn;
3865
+ }
3866
+ }
3867
+ class EventType {
3868
+ static fromProto(proto) {
3869
+ let m = new EventType();
3870
+ m = Object.assign(m, proto);
3871
+ if (proto.locationType) {
3872
+ m.locationType = enumStringToValue$3(MeetingLocationType, proto.locationType);
3873
+ }
3874
+ if (proto.hostUsers) {
3875
+ m.hostUsers = proto.hostUsers.map(HostUser.fromProto);
3876
+ }
3877
+ if (proto.bookingWindow) {
3878
+ m.bookingWindow = EventTypeDateRange.fromProto(proto.bookingWindow);
3879
+ }
3880
+ if (proto.meetingType) {
3881
+ m.meetingType = enumStringToValue$3(TeamEventMeetingType, proto.meetingType);
3882
+ }
3883
+ if (proto.hostOrderDetails) {
3884
+ m.hostOrderDetails = proto.hostOrderDetails.map(HostOrderDetails.fromProto);
3885
+ }
3886
+ return m;
3887
+ }
3888
+ constructor(kwargs) {
3889
+ if (!kwargs) {
3890
+ return;
3891
+ }
3892
+ Object.assign(this, kwargs);
3893
+ }
3894
+ toApiJson() {
3895
+ const toReturn = {};
3896
+ if (typeof this.id !== 'undefined') {
3897
+ toReturn['id'] = this.id;
3898
+ }
3899
+ if (typeof this.name !== 'undefined') {
3900
+ toReturn['name'] = this.name;
3901
+ }
3902
+ if (typeof this.duration !== 'undefined') {
3903
+ toReturn['duration'] = this.duration;
3904
+ }
3905
+ if (typeof this.description !== 'undefined') {
3906
+ toReturn['description'] = this.description;
3907
+ }
3908
+ if (typeof this.bookingUrl !== 'undefined') {
3909
+ toReturn['bookingUrl'] = this.bookingUrl;
3910
+ }
3911
+ if (typeof this.location !== 'undefined') {
3912
+ toReturn['location'] = this.location;
3913
+ }
3914
+ if (typeof this.locationType !== 'undefined') {
3915
+ toReturn['locationType'] = this.locationType;
3916
+ }
3917
+ if (typeof this.locationGuidelines !== 'undefined') {
3918
+ toReturn['locationGuidelines'] = this.locationGuidelines;
3919
+ }
3920
+ if (typeof this.isVideoConferencingEnabled !== 'undefined') {
3921
+ toReturn['isVideoConferencingEnabled'] = this.isVideoConferencingEnabled;
3922
+ }
3923
+ if (typeof this.calendarType !== 'undefined') {
3924
+ toReturn['calendarType'] = this.calendarType;
3925
+ }
3926
+ if (typeof this.hostUsers !== 'undefined' && this.hostUsers !== null) {
3927
+ toReturn['hostUsers'] = 'toApiJson' in this.hostUsers ? this.hostUsers.toApiJson() : this.hostUsers;
3928
+ }
3929
+ if (typeof this.bookingWindow !== 'undefined' && this.bookingWindow !== null) {
3930
+ toReturn['bookingWindow'] = 'toApiJson' in this.bookingWindow ? this.bookingWindow.toApiJson() : this.bookingWindow;
3931
+ }
3932
+ if (typeof this.meetingType !== 'undefined') {
3933
+ toReturn['meetingType'] = this.meetingType;
3934
+ }
3935
+ if (typeof this.hostOrderDetails !== 'undefined' && this.hostOrderDetails !== null) {
3936
+ toReturn['hostOrderDetails'] = 'toApiJson' in this.hostOrderDetails ? this.hostOrderDetails.toApiJson() : this.hostOrderDetails;
3937
+ }
3938
+ if (typeof this.isEmailRequired !== 'undefined') {
3939
+ toReturn['isEmailRequired'] = this.isEmailRequired;
3940
+ }
3941
+ if (typeof this.isPhoneNumberRequired !== 'undefined') {
3942
+ toReturn['isPhoneNumberRequired'] = this.isPhoneNumberRequired;
3943
+ }
3944
+ return toReturn;
3945
+ }
3946
+ }
3947
+ class ExternalCancelMeetingRequest {
3948
+ static fromProto(proto) {
3949
+ let m = new ExternalCancelMeetingRequest();
3950
+ m = Object.assign(m, proto);
3951
+ return m;
3952
+ }
3953
+ constructor(kwargs) {
3954
+ if (!kwargs) {
3955
+ return;
3956
+ }
3957
+ Object.assign(this, kwargs);
3958
+ }
3959
+ toApiJson() {
3960
+ const toReturn = {};
3961
+ if (typeof this.partnerId !== 'undefined') {
3962
+ toReturn['partnerId'] = this.partnerId;
3963
+ }
3964
+ if (typeof this.businessId !== 'undefined') {
3965
+ toReturn['businessId'] = this.businessId;
3966
+ }
3967
+ if (typeof this.meetingId !== 'undefined') {
3968
+ toReturn['meetingId'] = this.meetingId;
3969
+ }
3970
+ if (typeof this.cancellationReason !== 'undefined') {
3971
+ toReturn['cancellationReason'] = this.cancellationReason;
3972
+ }
3973
+ return toReturn;
3974
+ }
3975
+ }
3976
+ class ExternalRescheduleMeetingRequest {
3977
+ static fromProto(proto) {
3978
+ let m = new ExternalRescheduleMeetingRequest();
3979
+ m = Object.assign(m, proto);
3980
+ if (proto.startTime) {
3981
+ m.startTime = new Date(proto.startTime);
3982
+ }
3983
+ if (proto.timeZone) {
3984
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
3985
+ }
3986
+ return m;
3987
+ }
3988
+ constructor(kwargs) {
3989
+ if (!kwargs) {
3990
+ return;
3991
+ }
3992
+ Object.assign(this, kwargs);
3993
+ }
3994
+ toApiJson() {
3995
+ const toReturn = {};
3996
+ if (typeof this.partnerId !== 'undefined') {
3997
+ toReturn['partnerId'] = this.partnerId;
3998
+ }
3999
+ if (typeof this.businessId !== 'undefined') {
4000
+ toReturn['businessId'] = this.businessId;
4001
+ }
4002
+ if (typeof this.userId !== 'undefined') {
4003
+ toReturn['userId'] = this.userId;
4004
+ }
4005
+ if (typeof this.meetingId !== 'undefined') {
4006
+ toReturn['meetingId'] = this.meetingId;
4007
+ }
4008
+ if (typeof this.startTime !== 'undefined' && this.startTime !== null) {
4009
+ toReturn['startTime'] = 'toApiJson' in this.startTime ? this.startTime.toApiJson() : this.startTime;
4010
+ }
4011
+ if (typeof this.location !== 'undefined') {
4012
+ toReturn['location'] = this.location;
4013
+ }
4014
+ if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
4015
+ toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
4016
+ }
4017
+ return toReturn;
4018
+ }
4019
+ }
4020
+ class ExternalRescheduleMeetingResponse {
4021
+ static fromProto(proto) {
4022
+ let m = new ExternalRescheduleMeetingResponse();
4023
+ m = Object.assign(m, proto);
4024
+ if (proto.startTime) {
4025
+ m.startTime = new Date(proto.startTime);
4026
+ }
4027
+ if (proto.endTime) {
4028
+ m.endTime = new Date(proto.endTime);
4029
+ }
4030
+ if (proto.hostDetails) {
4031
+ m.hostDetails = proto.hostDetails.map(HostUserDetails.fromProto);
4032
+ }
4033
+ return m;
4034
+ }
4035
+ constructor(kwargs) {
4036
+ if (!kwargs) {
4037
+ return;
4038
+ }
4039
+ Object.assign(this, kwargs);
4040
+ }
4041
+ toApiJson() {
4042
+ const toReturn = {};
4043
+ if (typeof this.meetingId !== 'undefined') {
4044
+ toReturn['meetingId'] = this.meetingId;
4045
+ }
4046
+ if (typeof this.startTime !== 'undefined' && this.startTime !== null) {
4047
+ toReturn['startTime'] = 'toApiJson' in this.startTime ? this.startTime.toApiJson() : this.startTime;
4048
+ }
4049
+ if (typeof this.endTime !== 'undefined' && this.endTime !== null) {
4050
+ toReturn['endTime'] = 'toApiJson' in this.endTime ? this.endTime.toApiJson() : this.endTime;
4051
+ }
4052
+ if (typeof this.hostDetails !== 'undefined' && this.hostDetails !== null) {
4053
+ toReturn['hostDetails'] = 'toApiJson' in this.hostDetails ? this.hostDetails.toApiJson() : this.hostDetails;
4054
+ }
4055
+ if (typeof this.eventTypeId !== 'undefined') {
4056
+ toReturn['eventTypeId'] = this.eventTypeId;
4057
+ }
4058
+ if (typeof this.title !== 'undefined') {
4059
+ toReturn['title'] = this.title;
4060
+ }
4061
+ if (typeof this.location !== 'undefined') {
4062
+ toReturn['location'] = this.location;
4063
+ }
4064
+ if (typeof this.meetingUrl !== 'undefined') {
4065
+ toReturn['meetingUrl'] = this.meetingUrl;
4066
+ }
4067
+ if (typeof this.bookingUrl !== 'undefined') {
4068
+ toReturn['bookingUrl'] = this.bookingUrl;
4069
+ }
4070
+ if (typeof this.rescheduleUrl !== 'undefined') {
4071
+ toReturn['rescheduleUrl'] = this.rescheduleUrl;
4072
+ }
4073
+ if (typeof this.cancelUrl !== 'undefined') {
4074
+ toReturn['cancelUrl'] = this.cancelUrl;
4075
+ }
4076
+ return toReturn;
4077
+ }
4078
+ }
4079
+ class GetUsersRequest {
4080
+ static fromProto(proto) {
4081
+ let m = new GetUsersRequest();
4082
+ m = Object.assign(m, proto);
4083
+ if (proto.pagedRequestOptions) {
4084
+ m.pagedRequestOptions = PagedRequestOptions.fromProto(proto.pagedRequestOptions);
4085
+ }
4086
+ return m;
4087
+ }
4088
+ constructor(kwargs) {
4089
+ if (!kwargs) {
4090
+ return;
4091
+ }
4092
+ Object.assign(this, kwargs);
4093
+ }
4094
+ toApiJson() {
4095
+ const toReturn = {};
4096
+ if (typeof this.partnerId !== 'undefined') {
4097
+ toReturn['partnerId'] = this.partnerId;
4098
+ }
4099
+ if (typeof this.businessId !== 'undefined') {
4100
+ toReturn['businessId'] = this.businessId;
4101
+ }
4102
+ if (typeof this.userId !== 'undefined') {
4103
+ toReturn['userId'] = this.userId;
4104
+ }
4105
+ if (typeof this.pagedRequestOptions !== 'undefined' && this.pagedRequestOptions !== null) {
4106
+ toReturn['pagedRequestOptions'] = 'toApiJson' in this.pagedRequestOptions ? this.pagedRequestOptions.toApiJson() : this.pagedRequestOptions;
4107
+ }
4108
+ return toReturn;
4109
+ }
4110
+ }
4111
+ class GetUsersResponse {
4112
+ static fromProto(proto) {
4113
+ let m = new GetUsersResponse();
4114
+ m = Object.assign(m, proto);
4115
+ if (proto.users) {
4116
+ m.users = proto.users.map(UserResponse.fromProto);
4117
+ }
4118
+ if (proto.pagedResponseMetadata) {
4119
+ m.pagedResponseMetadata = PagedResponseMetadata.fromProto(proto.pagedResponseMetadata);
4120
+ }
4121
+ return m;
4122
+ }
4123
+ constructor(kwargs) {
4124
+ if (!kwargs) {
4125
+ return;
4126
+ }
4127
+ Object.assign(this, kwargs);
4128
+ }
4129
+ toApiJson() {
4130
+ const toReturn = {};
4131
+ if (typeof this.users !== 'undefined' && this.users !== null) {
4132
+ toReturn['users'] = 'toApiJson' in this.users ? this.users.toApiJson() : this.users;
4133
+ }
4134
+ if (typeof this.pagedResponseMetadata !== 'undefined' && this.pagedResponseMetadata !== null) {
4135
+ toReturn['pagedResponseMetadata'] = 'toApiJson' in this.pagedResponseMetadata ? this.pagedResponseMetadata.toApiJson() : this.pagedResponseMetadata;
4136
+ }
4137
+ return toReturn;
4138
+ }
4139
+ }
4140
+ class GroupResponse {
4141
+ static fromProto(proto) {
4142
+ let m = new GroupResponse();
4143
+ m = Object.assign(m, proto);
4144
+ return m;
4145
+ }
4146
+ constructor(kwargs) {
4147
+ if (!kwargs) {
4148
+ return;
4149
+ }
4150
+ Object.assign(this, kwargs);
4151
+ }
4152
+ toApiJson() {
4153
+ const toReturn = {};
4154
+ if (typeof this.id !== 'undefined') {
4155
+ toReturn['id'] = this.id;
4156
+ }
4157
+ if (typeof this.name !== 'undefined') {
4158
+ toReturn['name'] = this.name;
4159
+ }
4160
+ if (typeof this.description !== 'undefined') {
4161
+ toReturn['description'] = this.description;
4162
+ }
4163
+ if (typeof this.bookingUrl !== 'undefined') {
4164
+ toReturn['bookingUrl'] = this.bookingUrl;
4165
+ }
4166
+ if (typeof this.hexColor !== 'undefined') {
4167
+ toReturn['hexColor'] = this.hexColor;
4168
+ }
4169
+ return toReturn;
4170
+ }
4171
+ }
4172
+ class GroupsRequest {
4173
+ static fromProto(proto) {
4174
+ let m = new GroupsRequest();
4175
+ m = Object.assign(m, proto);
4176
+ return m;
4177
+ }
4178
+ constructor(kwargs) {
4179
+ if (!kwargs) {
4180
+ return;
4181
+ }
4182
+ Object.assign(this, kwargs);
4183
+ }
4184
+ toApiJson() {
4185
+ const toReturn = {};
4186
+ if (typeof this.partnerId !== 'undefined') {
4187
+ toReturn['partnerId'] = this.partnerId;
4188
+ }
4189
+ if (typeof this.businessId !== 'undefined') {
4190
+ toReturn['businessId'] = this.businessId;
4191
+ }
4192
+ if (typeof this.userId !== 'undefined') {
4193
+ toReturn['userId'] = this.userId;
4194
+ }
4195
+ return toReturn;
4196
+ }
4197
+ }
4198
+ class GroupsResponse {
4199
+ static fromProto(proto) {
4200
+ let m = new GroupsResponse();
4201
+ m = Object.assign(m, proto);
4202
+ if (proto.groups) {
4203
+ m.groups = proto.groups.map(GroupResponse.fromProto);
4204
+ }
4205
+ return m;
4206
+ }
4207
+ constructor(kwargs) {
4208
+ if (!kwargs) {
4209
+ return;
4210
+ }
4211
+ Object.assign(this, kwargs);
4212
+ }
4213
+ toApiJson() {
4214
+ const toReturn = {};
4215
+ if (typeof this.groups !== 'undefined' && this.groups !== null) {
4216
+ toReturn['groups'] = 'toApiJson' in this.groups ? this.groups.toApiJson() : this.groups;
4217
+ }
4218
+ return toReturn;
4219
+ }
4220
+ }
4221
+ class HostUserDetails {
4222
+ static fromProto(proto) {
4223
+ let m = new HostUserDetails();
4224
+ m = Object.assign(m, proto);
4225
+ return m;
4226
+ }
4227
+ constructor(kwargs) {
4228
+ if (!kwargs) {
4229
+ return;
4230
+ }
4231
+ Object.assign(this, kwargs);
4232
+ }
4233
+ toApiJson() {
4234
+ const toReturn = {};
4235
+ if (typeof this.hostUserId !== 'undefined') {
4236
+ toReturn['hostUserId'] = this.hostUserId;
3533
4237
  }
3534
- if (typeof this.hexColor !== 'undefined') {
3535
- toReturn['hexColor'] = this.hexColor;
4238
+ if (typeof this.hostUserName !== 'undefined') {
4239
+ toReturn['hostUserName'] = this.hostUserName;
3536
4240
  }
3537
4241
  return toReturn;
3538
4242
  }
3539
4243
  }
3540
- class GroupsRequest {
4244
+ class ListTeamEventTypesRequest {
3541
4245
  static fromProto(proto) {
3542
- let m = new GroupsRequest();
4246
+ let m = new ListTeamEventTypesRequest();
3543
4247
  m = Object.assign(m, proto);
4248
+ if (proto.pageSize) {
4249
+ m.pageSize = parseInt(proto.pageSize, 10);
4250
+ }
3544
4251
  return m;
3545
4252
  }
3546
4253
  constructor(kwargs) {
@@ -3557,18 +4264,24 @@ class GroupsRequest {
3557
4264
  if (typeof this.businessId !== 'undefined') {
3558
4265
  toReturn['businessId'] = this.businessId;
3559
4266
  }
3560
- if (typeof this.userId !== 'undefined') {
3561
- toReturn['userId'] = this.userId;
4267
+ if (typeof this.ownerId !== 'undefined') {
4268
+ toReturn['ownerId'] = this.ownerId;
4269
+ }
4270
+ if (typeof this.cursor !== 'undefined') {
4271
+ toReturn['cursor'] = this.cursor;
4272
+ }
4273
+ if (typeof this.pageSize !== 'undefined') {
4274
+ toReturn['pageSize'] = this.pageSize;
3562
4275
  }
3563
4276
  return toReturn;
3564
4277
  }
3565
4278
  }
3566
- class GroupsResponse {
4279
+ class ListTeamEventTypesResponse {
3567
4280
  static fromProto(proto) {
3568
- let m = new GroupsResponse();
4281
+ let m = new ListTeamEventTypesResponse();
3569
4282
  m = Object.assign(m, proto);
3570
- if (proto.groups) {
3571
- m.groups = proto.groups.map(GroupResponse.fromProto);
4283
+ if (proto.eventTypes) {
4284
+ m.eventTypes = proto.eventTypes.map(EventType.fromProto);
3572
4285
  }
3573
4286
  return m;
3574
4287
  }
@@ -3580,8 +4293,14 @@ class GroupsResponse {
3580
4293
  }
3581
4294
  toApiJson() {
3582
4295
  const toReturn = {};
3583
- if (typeof this.groups !== 'undefined' && this.groups !== null) {
3584
- toReturn['groups'] = 'toApiJson' in this.groups ? this.groups.toApiJson() : this.groups;
4296
+ if (typeof this.eventTypes !== 'undefined' && this.eventTypes !== null) {
4297
+ toReturn['eventTypes'] = 'toApiJson' in this.eventTypes ? this.eventTypes.toApiJson() : this.eventTypes;
4298
+ }
4299
+ if (typeof this.nextCursor !== 'undefined') {
4300
+ toReturn['nextCursor'] = this.nextCursor;
4301
+ }
4302
+ if (typeof this.hasMore !== 'undefined') {
4303
+ toReturn['hasMore'] = this.hasMore;
3585
4304
  }
3586
4305
  return toReturn;
3587
4306
  }
@@ -3667,8 +4386,34 @@ class ServicesResponse {
3667
4386
  return toReturn;
3668
4387
  }
3669
4388
  }
4389
+ class UserResponse {
4390
+ static fromProto(proto) {
4391
+ let m = new UserResponse();
4392
+ m = Object.assign(m, proto);
4393
+ return m;
4394
+ }
4395
+ constructor(kwargs) {
4396
+ if (!kwargs) {
4397
+ return;
4398
+ }
4399
+ Object.assign(this, kwargs);
4400
+ }
4401
+ toApiJson() {
4402
+ const toReturn = {};
4403
+ if (typeof this.userId !== 'undefined') {
4404
+ toReturn['userId'] = this.userId;
4405
+ }
4406
+ if (typeof this.displayName !== 'undefined') {
4407
+ toReturn['displayName'] = this.displayName;
4408
+ }
4409
+ if (typeof this.isConfigured !== 'undefined') {
4410
+ toReturn['isConfigured'] = this.isConfigured;
4411
+ }
4412
+ return toReturn;
4413
+ }
4414
+ }
3670
4415
 
3671
- function enumStringToValue$4(enumRef, value) {
4416
+ function enumStringToValue$2(enumRef, value) {
3672
4417
  if (typeof value === 'number') {
3673
4418
  return value;
3674
4419
  }
@@ -3695,15 +4440,15 @@ class FieldMask {
3695
4440
  }
3696
4441
  }
3697
4442
 
3698
- function enumStringToValue$3(enumRef, value) {
4443
+ function enumStringToValue$1(enumRef, value) {
3699
4444
  if (typeof value === 'number') {
3700
4445
  return value;
3701
4446
  }
3702
4447
  return enumRef[value];
3703
4448
  }
3704
- class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
4449
+ class BuildHostIdRequestApplicationContextPropertiesEntry {
3705
4450
  static fromProto(proto) {
3706
- let m = new EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry();
4451
+ let m = new BuildHostIdRequestApplicationContextPropertiesEntry();
3707
4452
  m = Object.assign(m, proto);
3708
4453
  return m;
3709
4454
  }
@@ -3724,9 +4469,9 @@ class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
3724
4469
  return toReturn;
3725
4470
  }
3726
4471
  }
3727
- class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
4472
+ class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
3728
4473
  static fromProto(proto) {
3729
- let m = new IsCalendarConfiguredRequestApplicationContextPropertiesEntry();
4474
+ let m = new EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry();
3730
4475
  m = Object.assign(m, proto);
3731
4476
  return m;
3732
4477
  }
@@ -3747,9 +4492,9 @@ class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
3747
4492
  return toReturn;
3748
4493
  }
3749
4494
  }
3750
- class BuildHostIdRequestApplicationContextPropertiesEntry {
4495
+ class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
3751
4496
  static fromProto(proto) {
3752
- let m = new BuildHostIdRequestApplicationContextPropertiesEntry();
4497
+ let m = new IsCalendarConfiguredRequestApplicationContextPropertiesEntry();
3753
4498
  m = Object.assign(m, proto);
3754
4499
  return m;
3755
4500
  }
@@ -3775,7 +4520,7 @@ class AvailabilityRule {
3775
4520
  let m = new AvailabilityRule();
3776
4521
  m = Object.assign(m, proto);
3777
4522
  if (proto.day) {
3778
- m.day = enumStringToValue$3(DayOfWeek, proto.day);
4523
+ m.day = enumStringToValue$1(DayOfWeek, proto.day);
3779
4524
  }
3780
4525
  if (proto.timeSlot) {
3781
4526
  m.timeSlot = TimeRange.fromProto(proto.timeSlot);
@@ -3955,6 +4700,49 @@ class CancelMeetingRequest {
3955
4700
  return toReturn;
3956
4701
  }
3957
4702
  }
4703
+ class CheckEventTypeSlugExistRequest {
4704
+ static fromProto(proto) {
4705
+ let m = new CheckEventTypeSlugExistRequest();
4706
+ m = Object.assign(m, proto);
4707
+ return m;
4708
+ }
4709
+ constructor(kwargs) {
4710
+ if (!kwargs) {
4711
+ return;
4712
+ }
4713
+ Object.assign(this, kwargs);
4714
+ }
4715
+ toApiJson() {
4716
+ const toReturn = {};
4717
+ if (typeof this.calendarId !== 'undefined') {
4718
+ toReturn['calendarId'] = this.calendarId;
4719
+ }
4720
+ if (typeof this.slugIdentifier !== 'undefined') {
4721
+ toReturn['slugIdentifier'] = this.slugIdentifier;
4722
+ }
4723
+ return toReturn;
4724
+ }
4725
+ }
4726
+ class CheckEventTypeSlugExistResponse {
4727
+ static fromProto(proto) {
4728
+ let m = new CheckEventTypeSlugExistResponse();
4729
+ m = Object.assign(m, proto);
4730
+ return m;
4731
+ }
4732
+ constructor(kwargs) {
4733
+ if (!kwargs) {
4734
+ return;
4735
+ }
4736
+ Object.assign(this, kwargs);
4737
+ }
4738
+ toApiJson() {
4739
+ const toReturn = {};
4740
+ if (typeof this.exists !== 'undefined') {
4741
+ toReturn['exists'] = this.exists;
4742
+ }
4743
+ return toReturn;
4744
+ }
4745
+ }
3958
4746
  class CheckGroupOrServiceSlugExistRequest {
3959
4747
  static fromProto(proto) {
3960
4748
  let m = new CheckGroupOrServiceSlugExistRequest();
@@ -4790,7 +5578,7 @@ class HostBookMeetingRequest {
4790
5578
  let m = new HostBookMeetingRequest();
4791
5579
  m = Object.assign(m, proto);
4792
5580
  if (proto.meetingSource) {
4793
- m.meetingSource = enumStringToValue$3(MeetingSource, proto.meetingSource);
5581
+ m.meetingSource = enumStringToValue$1(MeetingSource, proto.meetingSource);
4794
5582
  }
4795
5583
  if (proto.timeSlot) {
4796
5584
  m.timeSlot = DateRange.fromProto(proto.timeSlot);
@@ -4799,7 +5587,7 @@ class HostBookMeetingRequest {
4799
5587
  m.attendees = proto.attendees.map(Contact.fromProto);
4800
5588
  }
4801
5589
  if (proto.bookingSource) {
4802
- m.bookingSource = enumStringToValue$3(BookingSource, proto.bookingSource);
5590
+ m.bookingSource = enumStringToValue$1(BookingSource, proto.bookingSource);
4803
5591
  }
4804
5592
  return m;
4805
5593
  }
@@ -4863,7 +5651,7 @@ class HostBookSessionRequest {
4863
5651
  let m = new HostBookSessionRequest();
4864
5652
  m = Object.assign(m, proto);
4865
5653
  if (proto.locationType) {
4866
- m.locationType = enumStringToValue$3(MeetingLocationType, proto.locationType);
5654
+ m.locationType = enumStringToValue$1(MeetingLocationType, proto.locationType);
4867
5655
  }
4868
5656
  if (proto.maxAttendees) {
4869
5657
  m.maxAttendees = parseInt(proto.maxAttendees, 10);
@@ -5251,7 +6039,7 @@ class IsHostConfiguredResponse {
5251
6039
  let m = new IsHostConfiguredResponse();
5252
6040
  m = Object.assign(m, proto);
5253
6041
  if (proto.onBoardingState) {
5254
- m.onBoardingState = enumStringToValue$3(OnBoardingState, proto.onBoardingState);
6042
+ m.onBoardingState = enumStringToValue$1(OnBoardingState, proto.onBoardingState);
5255
6043
  }
5256
6044
  return m;
5257
6045
  }
@@ -5692,7 +6480,7 @@ class Meeting {
5692
6480
  m.hostDetails = proto.hostDetails.map(HostDetails.fromProto);
5693
6481
  }
5694
6482
  if (proto.meetingType) {
5695
- m.meetingType = enumStringToValue$3(TeamEventMeetingType, proto.meetingType);
6483
+ m.meetingType = enumStringToValue$1(TeamEventMeetingType, proto.meetingType);
5696
6484
  }
5697
6485
  if (proto.maxAttendeeCount) {
5698
6486
  m.maxAttendeeCount = parseInt(proto.maxAttendeeCount, 10);
@@ -5805,9 +6593,9 @@ class MeetingTypeList {
5805
6593
  return toReturn;
5806
6594
  }
5807
6595
  }
5808
- class MeetingMetadataEntry {
6596
+ class UpdateMeetingMetadataRequestMetadataEntry {
5809
6597
  static fromProto(proto) {
5810
- let m = new MeetingMetadataEntry();
6598
+ let m = new UpdateMeetingMetadataRequestMetadataEntry();
5811
6599
  m = Object.assign(m, proto);
5812
6600
  return m;
5813
6601
  }
@@ -5828,9 +6616,9 @@ class MeetingMetadataEntry {
5828
6616
  return toReturn;
5829
6617
  }
5830
6618
  }
5831
- class UpdateMeetingMetadataRequestMetadataEntry {
6619
+ class MeetingMetadataEntry {
5832
6620
  static fromProto(proto) {
5833
- let m = new UpdateMeetingMetadataRequestMetadataEntry();
6621
+ let m = new MeetingMetadataEntry();
5834
6622
  m = Object.assign(m, proto);
5835
6623
  return m;
5836
6624
  }
@@ -5856,19 +6644,19 @@ class RecurrenceConfig {
5856
6644
  let m = new RecurrenceConfig();
5857
6645
  m = Object.assign(m, proto);
5858
6646
  if (proto.recurrence) {
5859
- m.recurrence = enumStringToValue$3(Recurrence, proto.recurrence);
6647
+ m.recurrence = enumStringToValue$1(Recurrence, proto.recurrence);
5860
6648
  }
5861
6649
  if (proto.startTime) {
5862
6650
  m.startTime = new Date(proto.startTime);
5863
6651
  }
5864
6652
  if (proto.repeatOnDays) {
5865
- m.repeatOnDays = proto.repeatOnDays.map((v) => enumStringToValue$3(Weekday, v));
6653
+ m.repeatOnDays = proto.repeatOnDays.map((v) => enumStringToValue$1(Weekday, v));
5866
6654
  }
5867
6655
  if (proto.recurrenceEnd) {
5868
6656
  m.recurrenceEnd = RecurrenceEnd.fromProto(proto.recurrenceEnd);
5869
6657
  }
5870
6658
  if (proto.registrationMode) {
5871
- m.registrationMode = enumStringToValue$3(RegistrationMode, proto.registrationMode);
6659
+ m.registrationMode = enumStringToValue$1(RegistrationMode, proto.registrationMode);
5872
6660
  }
5873
6661
  return m;
5874
6662
  }
@@ -5993,7 +6781,7 @@ class SessionAttendees {
5993
6781
  m.formAnswers = Answers.fromProto(proto.formAnswers);
5994
6782
  }
5995
6783
  if (proto.bookingFailureReason) {
5996
- m.bookingFailureReason = enumStringToValue$3(BookingFailureReason, proto.bookingFailureReason);
6784
+ m.bookingFailureReason = enumStringToValue$1(BookingFailureReason, proto.bookingFailureReason);
5997
6785
  }
5998
6786
  return m;
5999
6787
  }
@@ -6043,7 +6831,7 @@ class SetGeneralAvailabilityRequest {
6043
6831
  let m = new SetGeneralAvailabilityRequest();
6044
6832
  m = Object.assign(m, proto);
6045
6833
  if (proto.days) {
6046
- m.days = proto.days.map((v) => enumStringToValue$3(DayOfWeek, v));
6834
+ m.days = proto.days.map((v) => enumStringToValue$1(DayOfWeek, v));
6047
6835
  }
6048
6836
  if (proto.timeSlot) {
6049
6837
  m.timeSlot = TimeRange.fromProto(proto.timeSlot);
@@ -6090,7 +6878,7 @@ class TimeSlotsByWeekDay {
6090
6878
  let m = new TimeSlotsByWeekDay();
6091
6879
  m = Object.assign(m, proto);
6092
6880
  if (proto.day) {
6093
- m.day = enumStringToValue$3(DayOfWeek, proto.day);
6881
+ m.day = enumStringToValue$1(DayOfWeek, proto.day);
6094
6882
  }
6095
6883
  if (proto.timeSlot) {
6096
6884
  m.timeSlot = proto.timeSlot.map(TimeRange.fromProto);
@@ -6331,7 +7119,7 @@ class WeekdayAvailability {
6331
7119
  let m = new WeekdayAvailability();
6332
7120
  m = Object.assign(m, proto);
6333
7121
  if (proto.day) {
6334
- m.day = enumStringToValue$3(DayOfWeek, proto.day);
7122
+ m.day = enumStringToValue$1(DayOfWeek, proto.day);
6335
7123
  }
6336
7124
  if (proto.timeSlots) {
6337
7125
  m.timeSlots = proto.timeSlots.map(TimeRange.fromProto);
@@ -6356,7 +7144,7 @@ class WeekdayAvailability {
6356
7144
  }
6357
7145
  }
6358
7146
 
6359
- function enumStringToValue$2(enumRef, value) {
7147
+ function enumStringToValue(enumRef, value) {
6360
7148
  if (typeof value === 'number') {
6361
7149
  return value;
6362
7150
  }
@@ -6406,119 +7194,6 @@ class MCPOptions {
6406
7194
  }
6407
7195
  }
6408
7196
 
6409
- function enumStringToValue$1(enumRef, value) {
6410
- if (typeof value === 'number') {
6411
- return value;
6412
- }
6413
- return enumRef[value];
6414
- }
6415
- class TimeOfDay {
6416
- static fromProto(proto) {
6417
- let m = new TimeOfDay();
6418
- m = Object.assign(m, proto);
6419
- return m;
6420
- }
6421
- constructor(kwargs) {
6422
- if (!kwargs) {
6423
- return;
6424
- }
6425
- Object.assign(this, kwargs);
6426
- }
6427
- toApiJson() {
6428
- const toReturn = {};
6429
- if (typeof this.hours !== 'undefined') {
6430
- toReturn['hours'] = this.hours;
6431
- }
6432
- if (typeof this.minutes !== 'undefined') {
6433
- toReturn['minutes'] = this.minutes;
6434
- }
6435
- if (typeof this.seconds !== 'undefined') {
6436
- toReturn['seconds'] = this.seconds;
6437
- }
6438
- if (typeof this.nanos !== 'undefined') {
6439
- toReturn['nanos'] = this.nanos;
6440
- }
6441
- return toReturn;
6442
- }
6443
- }
6444
-
6445
- function enumStringToValue(enumRef, value) {
6446
- if (typeof value === 'number') {
6447
- return value;
6448
- }
6449
- return enumRef[value];
6450
- }
6451
- class DateTime {
6452
- static fromProto(proto) {
6453
- let m = new DateTime();
6454
- m = Object.assign(m, proto);
6455
- if (proto.timeZone) {
6456
- m.timeZone = TimeZone.fromProto(proto.timeZone);
6457
- }
6458
- return m;
6459
- }
6460
- constructor(kwargs) {
6461
- if (!kwargs) {
6462
- return;
6463
- }
6464
- Object.assign(this, kwargs);
6465
- }
6466
- toApiJson() {
6467
- const toReturn = {};
6468
- if (typeof this.year !== 'undefined') {
6469
- toReturn['year'] = this.year;
6470
- }
6471
- if (typeof this.month !== 'undefined') {
6472
- toReturn['month'] = this.month;
6473
- }
6474
- if (typeof this.day !== 'undefined') {
6475
- toReturn['day'] = this.day;
6476
- }
6477
- if (typeof this.hours !== 'undefined') {
6478
- toReturn['hours'] = this.hours;
6479
- }
6480
- if (typeof this.minutes !== 'undefined') {
6481
- toReturn['minutes'] = this.minutes;
6482
- }
6483
- if (typeof this.seconds !== 'undefined') {
6484
- toReturn['seconds'] = this.seconds;
6485
- }
6486
- if (typeof this.nanos !== 'undefined') {
6487
- toReturn['nanos'] = this.nanos;
6488
- }
6489
- if (typeof this.utcOffset !== 'undefined') {
6490
- toReturn['utcOffset'] = this.utcOffset;
6491
- }
6492
- if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
6493
- toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
6494
- }
6495
- return toReturn;
6496
- }
6497
- }
6498
- class TimeZone {
6499
- static fromProto(proto) {
6500
- let m = new TimeZone();
6501
- m = Object.assign(m, proto);
6502
- return m;
6503
- }
6504
- constructor(kwargs) {
6505
- if (!kwargs) {
6506
- return;
6507
- }
6508
- Object.assign(this, kwargs);
6509
- }
6510
- toApiJson() {
6511
- const toReturn = {};
6512
- if (typeof this.id !== 'undefined') {
6513
- toReturn['id'] = this.id;
6514
- }
6515
- if (typeof this.version !== 'undefined') {
6516
- toReturn['version'] = this.version;
6517
- }
6518
- return toReturn;
6519
- }
6520
- }
6521
-
6522
7197
  // *********************************
6523
7198
 
6524
7199
  var _a;
@@ -6547,9 +7222,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
6547
7222
 
6548
7223
  // *********************************
6549
7224
  class MeetingSourceAPIApiService {
6550
- constructor() {
6551
- this.hostService = inject(HostService$1);
6552
- this.http = inject(HttpClient);
7225
+ constructor(http, hostService) {
7226
+ this.http = http;
7227
+ this.hostService = hostService;
6553
7228
  this._host = this.hostService.hostWithScheme;
6554
7229
  }
6555
7230
  apiOptions() {
@@ -6566,18 +7241,18 @@ class MeetingSourceAPIApiService {
6566
7241
  .pipe(map(resp => MeetingSourceListResponse.fromProto(resp)));
6567
7242
  }
6568
7243
  }
6569
- MeetingSourceAPIApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
7244
+ 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 });
6570
7245
  MeetingSourceAPIApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, providedIn: 'root' });
6571
7246
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, decorators: [{
6572
7247
  type: Injectable,
6573
7248
  args: [{ providedIn: 'root' }]
6574
- }] });
7249
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
6575
7250
 
6576
7251
  // *********************************
6577
7252
  class ZoomApiService {
6578
- constructor() {
6579
- this.hostService = inject(HostService$1);
6580
- this.http = inject(HttpClient);
7253
+ constructor(http, hostService) {
7254
+ this.http = http;
7255
+ this.hostService = hostService;
6581
7256
  this._host = this.hostService.hostWithScheme;
6582
7257
  }
6583
7258
  apiOptions() {
@@ -6594,18 +7269,18 @@ class ZoomApiService {
6594
7269
  .pipe(map(resp => CreateZoomMeetingResponse.fromProto(resp)));
6595
7270
  }
6596
7271
  }
6597
- ZoomApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
7272
+ 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 });
6598
7273
  ZoomApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, providedIn: 'root' });
6599
7274
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, decorators: [{
6600
7275
  type: Injectable,
6601
7276
  args: [{ providedIn: 'root' }]
6602
- }] });
7277
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
6603
7278
 
6604
7279
  // *********************************
6605
7280
  class GoogleMeetApiService {
6606
- constructor() {
6607
- this.hostService = inject(HostService$1);
6608
- this.http = inject(HttpClient);
7281
+ constructor(http, hostService) {
7282
+ this.http = http;
7283
+ this.hostService = hostService;
6609
7284
  this._host = this.hostService.hostWithScheme;
6610
7285
  }
6611
7286
  apiOptions() {
@@ -6627,12 +7302,12 @@ class GoogleMeetApiService {
6627
7302
  .pipe(map(resp => GoogleMeetListMeetingsResponse.fromProto(resp)));
6628
7303
  }
6629
7304
  }
6630
- GoogleMeetApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
7305
+ 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 });
6631
7306
  GoogleMeetApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, providedIn: 'root' });
6632
7307
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, decorators: [{
6633
7308
  type: Injectable,
6634
7309
  args: [{ providedIn: 'root' }]
6635
- }] });
7310
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
6636
7311
 
6637
7312
  function generateMeetingPassword() {
6638
7313
  const zoomMaxLength = 10;
@@ -7083,9 +7758,9 @@ class PagedResponse {
7083
7758
 
7084
7759
  // *********************************
7085
7760
  class MeetingExternalApiService {
7086
- constructor() {
7087
- this.hostService = inject(HostService$1);
7088
- this.http = inject(HttpClient);
7761
+ constructor(http, hostService) {
7762
+ this.http = http;
7763
+ this.hostService = hostService;
7089
7764
  this._host = this.hostService.hostWithScheme;
7090
7765
  }
7091
7766
  apiOptions() {
@@ -7106,19 +7781,48 @@ class MeetingExternalApiService {
7106
7781
  return this.http.post(this._host + "/meetings.v1.MeetingExternal/ListServices", request.toApiJson(), this.apiOptions())
7107
7782
  .pipe(map(resp => ServicesResponse.fromProto(resp)));
7108
7783
  }
7784
+ bookMeeting(r) {
7785
+ const request = (r.toApiJson) ? r : new BookMeetingExternalRequest(r);
7786
+ return this.http.post(this._host + "/meetings.v1.MeetingExternal/BookMeeting", request.toApiJson(), this.apiOptions())
7787
+ .pipe(map(resp => BookMeetingExternalResponse.fromProto(resp)));
7788
+ }
7789
+ getUsers(r) {
7790
+ const request = (r.toApiJson) ? r : new GetUsersRequest(r);
7791
+ return this.http.post(this._host + "/meetings.v1.MeetingExternal/GetUsers", request.toApiJson(), this.apiOptions())
7792
+ .pipe(map(resp => GetUsersResponse.fromProto(resp)));
7793
+ }
7794
+ listAvailableTimeSlots(r) {
7795
+ const request = (r.toApiJson) ? r : new AvailableTimeSlotsRequest(r);
7796
+ return this.http.post(this._host + "/meetings.v1.MeetingExternal/ListAvailableTimeSlots", request.toApiJson(), this.apiOptions())
7797
+ .pipe(map(resp => AvailableTimeSlotsResponse.fromProto(resp)));
7798
+ }
7799
+ rescheduleMeeting(r) {
7800
+ const request = (r.toApiJson) ? r : new ExternalRescheduleMeetingRequest(r);
7801
+ return this.http.post(this._host + "/meetings.v1.MeetingExternal/RescheduleMeeting", request.toApiJson(), this.apiOptions())
7802
+ .pipe(map(resp => ExternalRescheduleMeetingResponse.fromProto(resp)));
7803
+ }
7804
+ cancelMeeting(r) {
7805
+ const request = (r.toApiJson) ? r : new ExternalCancelMeetingRequest(r);
7806
+ return this.http.post(this._host + "/meetings.v1.MeetingExternal/CancelMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
7807
+ }
7808
+ listTeamEventTypes(r) {
7809
+ const request = (r.toApiJson) ? r : new ListTeamEventTypesRequest(r);
7810
+ return this.http.post(this._host + "/meetings.v1.MeetingExternal/ListTeamEventTypes", request.toApiJson(), this.apiOptions())
7811
+ .pipe(map(resp => ListTeamEventTypesResponse.fromProto(resp)));
7812
+ }
7109
7813
  }
7110
- MeetingExternalApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingExternalApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
7814
+ 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 });
7111
7815
  MeetingExternalApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingExternalApiService, providedIn: 'root' });
7112
7816
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingExternalApiService, decorators: [{
7113
7817
  type: Injectable,
7114
7818
  args: [{ providedIn: 'root' }]
7115
- }] });
7819
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
7116
7820
 
7117
7821
  // *********************************
7118
7822
  class MeetingGuestApiService {
7119
- constructor() {
7120
- this.hostService = inject(HostService$1);
7121
- this.http = inject(HttpClient);
7823
+ constructor(http, hostService) {
7824
+ this.http = http;
7825
+ this.hostService = hostService;
7122
7826
  this._host = this.hostService.hostWithScheme;
7123
7827
  }
7124
7828
  apiOptions() {
@@ -7215,19 +7919,24 @@ class MeetingGuestApiService {
7215
7919
  const request = (r.toApiJson) ? r : new InviteeDeregisterSessionMeetingRequest(r);
7216
7920
  return this.http.post(this._host + "/meetings.v1.MeetingGuest/InviteeDeregisterSessionMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
7217
7921
  }
7922
+ checkFeatureFlag(r) {
7923
+ const request = (r.toApiJson) ? r : new CheckFeatureFlagRequest(r);
7924
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/CheckFeatureFlag", request.toApiJson(), this.apiOptions())
7925
+ .pipe(map(resp => CheckFeatureFlagResponse.fromProto(resp)));
7926
+ }
7218
7927
  }
7219
- MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
7928
+ 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 });
7220
7929
  MeetingGuestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, providedIn: 'root' });
7221
7930
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, decorators: [{
7222
7931
  type: Injectable,
7223
7932
  args: [{ providedIn: 'root' }]
7224
- }] });
7933
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
7225
7934
 
7226
7935
  // *********************************
7227
7936
  class MeetingHostApiService {
7228
- constructor() {
7229
- this.hostService = inject(HostService$1);
7230
- this.http = inject(HttpClient);
7937
+ constructor(http, hostService) {
7938
+ this.http = http;
7939
+ this.hostService = hostService;
7231
7940
  this._host = this.hostService.hostWithScheme;
7232
7941
  }
7233
7942
  apiOptions() {
@@ -7441,6 +8150,11 @@ class MeetingHostApiService {
7441
8150
  return this.http.post(this._host + "/meetings.v1.MeetingHost/CheckGroupOrServiceSlugExist", request.toApiJson(), this.apiOptions())
7442
8151
  .pipe(map(resp => CheckGroupOrServiceSlugExistResponse.fromProto(resp)));
7443
8152
  }
8153
+ checkEventTypeSlugExist(r) {
8154
+ const request = (r.toApiJson) ? r : new CheckEventTypeSlugExistRequest(r);
8155
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/CheckEventTypeSlugExist", request.toApiJson(), this.apiOptions())
8156
+ .pipe(map(resp => CheckEventTypeSlugExistResponse.fromProto(resp)));
8157
+ }
7444
8158
  hostBookMeeting(r) {
7445
8159
  const request = (r.toApiJson) ? r : new BookMeetingRequest(r);
7446
8160
  return this.http.post(this._host + "/meetings.v1.MeetingHost/HostBookMeeting", request.toApiJson(), this.apiOptions())
@@ -7484,12 +8198,12 @@ class MeetingHostApiService {
7484
8198
  .pipe(map(resp => ListAvailableTimeslotsForRecurringSessionResponse.fromProto(resp)));
7485
8199
  }
7486
8200
  }
7487
- MeetingHostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
8201
+ 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 });
7488
8202
  MeetingHostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, providedIn: 'root' });
7489
8203
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, decorators: [{
7490
8204
  type: Injectable,
7491
8205
  args: [{ providedIn: 'root' }]
7492
- }] });
8206
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
7493
8207
 
7494
8208
  // *********************************
7495
8209
 
@@ -7820,6 +8534,9 @@ class GuestService {
7820
8534
  getMeetingCalendarInfo(req) {
7821
8535
  return this.guestAPIService.getMeetingCalendarInfo(req);
7822
8536
  }
8537
+ checkFeatureFlag(req) {
8538
+ return this.guestAPIService.checkFeatureFlag(req);
8539
+ }
7823
8540
  }
7824
8541
  GuestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GuestService, deps: [{ token: MeetingGuestApiService }], target: i0.ɵɵFactoryTarget.Injectable });
7825
8542
  GuestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GuestService, providedIn: 'root' });
@@ -8296,6 +9013,11 @@ class HostService {
8296
9013
  .checkGroupOrServiceSlugExist(req)
8297
9014
  .pipe(map((res) => res.exists));
8298
9015
  }
9016
+ checkEventTypeSlugExist(req) {
9017
+ return this.hostAPIService
9018
+ .checkEventTypeSlugExist(req)
9019
+ .pipe(map((res) => res.exists));
9020
+ }
8299
9021
  getEntityAssociations(req) {
8300
9022
  return this.hostAPIService.getEntityAssociations(req);
8301
9023
  }
@@ -8337,5 +9059,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
8337
9059
  * Generated bundle index. Do not edit.
8338
9060
  */
8339
9061
 
8340
- export { BookingSource, CalendarSource, CalendarType, Contact, CreateCalendarRequest, CreateCalendarResponse, DateRangeType, DayOfWeek, 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 };
9062
+ export { BookingSource, CalendarSource, CalendarType, CheckFeatureFlagRequest, CheckFeatureFlagResponse, 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 };
8341
9063
  //# sourceMappingURL=vendasta-meetings.mjs.map