@vendasta/meetings 1.6.0 → 1.6.3
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.
- package/esm2020/lib/_internal/enums/index.mjs +2 -2
- package/esm2020/lib/_internal/google-meet.api.service.mjs +7 -8
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-external.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-host.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/shared.interface.mjs +1 -1
- package/esm2020/lib/_internal/meeting-external.api.service.mjs +7 -8
- package/esm2020/lib/_internal/meeting-guest.api.service.mjs +7 -8
- package/esm2020/lib/_internal/meeting-host.api.service.mjs +13 -9
- package/esm2020/lib/_internal/meeting-source-api.api.service.mjs +7 -8
- package/esm2020/lib/_internal/objects/index.mjs +4 -4
- package/esm2020/lib/_internal/objects/meeting-external.mjs +25 -72
- package/esm2020/lib/_internal/objects/meeting-guest.mjs +7 -3
- package/esm2020/lib/_internal/objects/meeting-host.mjs +89 -12
- package/esm2020/lib/_internal/objects/shared.mjs +5 -3
- package/esm2020/lib/_internal/zoom.api.service.mjs +7 -8
- package/esm2020/lib/guest/guest.service.mjs +1 -1
- package/esm2020/lib/host/host.service.mjs +27 -2
- package/esm2020/lib/shared/calendar.mjs +2 -1
- package/fesm2015/vendasta-meetings.mjs +347 -283
- package/fesm2015/vendasta-meetings.mjs.map +1 -1
- package/fesm2020/vendasta-meetings.mjs +347 -283
- package/fesm2020/vendasta-meetings.mjs.map +1 -1
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/google-meet.api.service.d.ts +2 -5
- package/lib/_internal/interfaces/index.d.ts +3 -3
- package/lib/_internal/interfaces/meeting-external.interface.d.ts +14 -25
- package/lib/_internal/interfaces/meeting-guest.interface.d.ts +4 -2
- package/lib/_internal/interfaces/meeting-host.interface.d.ts +20 -7
- package/lib/_internal/interfaces/shared.interface.d.ts +2 -2
- package/lib/_internal/meeting-external.api.service.d.ts +3 -5
- package/lib/_internal/meeting-guest.api.service.d.ts +3 -5
- package/lib/_internal/meeting-host.api.service.d.ts +6 -7
- package/lib/_internal/meeting-source-api.api.service.d.ts +2 -5
- package/lib/_internal/objects/index.d.ts +3 -3
- package/lib/_internal/objects/meeting-external.d.ts +14 -25
- package/lib/_internal/objects/meeting-guest.d.ts +4 -2
- package/lib/_internal/objects/meeting-host.d.ts +30 -11
- package/lib/_internal/objects/shared.d.ts +2 -2
- package/lib/_internal/zoom.api.service.d.ts +2 -5
- package/lib/guest/guest.service.d.ts +1 -0
- package/lib/host/host.service.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
2
|
+
import { Injectable, inject } from '@angular/core';
|
|
3
3
|
import { throwError, of } from 'rxjs';
|
|
4
4
|
import { map, mapTo } from 'rxjs/operators';
|
|
5
|
-
import
|
|
6
|
-
import { HttpHeaders } from '@angular/common/http';
|
|
5
|
+
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
7
6
|
|
|
8
7
|
// *********************************
|
|
9
8
|
// Code generated by sdkgen
|
|
@@ -199,24 +198,6 @@ var FeatureFlagFieldType;
|
|
|
199
198
|
FeatureFlagFieldType[FeatureFlagFieldType["FEATURE_FLAG_FIELD_TYPE_CALENDAR_ID"] = 0] = "FEATURE_FLAG_FIELD_TYPE_CALENDAR_ID";
|
|
200
199
|
})(FeatureFlagFieldType || (FeatureFlagFieldType = {}));
|
|
201
200
|
|
|
202
|
-
// *********************************
|
|
203
|
-
// Code generated by sdkgen
|
|
204
|
-
// DO NOT EDIT!.
|
|
205
|
-
//
|
|
206
|
-
// Enums.
|
|
207
|
-
// *********************************
|
|
208
|
-
var DayOfWeek;
|
|
209
|
-
(function (DayOfWeek) {
|
|
210
|
-
DayOfWeek[DayOfWeek["DAY_OF_WEEK_UNSPECIFIED"] = 0] = "DAY_OF_WEEK_UNSPECIFIED";
|
|
211
|
-
DayOfWeek[DayOfWeek["MONDAY"] = 1] = "MONDAY";
|
|
212
|
-
DayOfWeek[DayOfWeek["TUESDAY"] = 2] = "TUESDAY";
|
|
213
|
-
DayOfWeek[DayOfWeek["WEDNESDAY"] = 3] = "WEDNESDAY";
|
|
214
|
-
DayOfWeek[DayOfWeek["THURSDAY"] = 4] = "THURSDAY";
|
|
215
|
-
DayOfWeek[DayOfWeek["FRIDAY"] = 5] = "FRIDAY";
|
|
216
|
-
DayOfWeek[DayOfWeek["SATURDAY"] = 6] = "SATURDAY";
|
|
217
|
-
DayOfWeek[DayOfWeek["SUNDAY"] = 7] = "SUNDAY";
|
|
218
|
-
})(DayOfWeek || (DayOfWeek = {}));
|
|
219
|
-
|
|
220
201
|
// *********************************
|
|
221
202
|
// Code generated by sdkgen
|
|
222
203
|
// DO NOT EDIT!.
|
|
@@ -253,6 +234,24 @@ var Weekday;
|
|
|
253
234
|
Weekday[Weekday["WEEKDAY_SUNDAY"] = 7] = "WEEKDAY_SUNDAY";
|
|
254
235
|
})(Weekday || (Weekday = {}));
|
|
255
236
|
|
|
237
|
+
// *********************************
|
|
238
|
+
// Code generated by sdkgen
|
|
239
|
+
// DO NOT EDIT!.
|
|
240
|
+
//
|
|
241
|
+
// Enums.
|
|
242
|
+
// *********************************
|
|
243
|
+
var DayOfWeek;
|
|
244
|
+
(function (DayOfWeek) {
|
|
245
|
+
DayOfWeek[DayOfWeek["DAY_OF_WEEK_UNSPECIFIED"] = 0] = "DAY_OF_WEEK_UNSPECIFIED";
|
|
246
|
+
DayOfWeek[DayOfWeek["MONDAY"] = 1] = "MONDAY";
|
|
247
|
+
DayOfWeek[DayOfWeek["TUESDAY"] = 2] = "TUESDAY";
|
|
248
|
+
DayOfWeek[DayOfWeek["WEDNESDAY"] = 3] = "WEDNESDAY";
|
|
249
|
+
DayOfWeek[DayOfWeek["THURSDAY"] = 4] = "THURSDAY";
|
|
250
|
+
DayOfWeek[DayOfWeek["FRIDAY"] = 5] = "FRIDAY";
|
|
251
|
+
DayOfWeek[DayOfWeek["SATURDAY"] = 6] = "SATURDAY";
|
|
252
|
+
DayOfWeek[DayOfWeek["SUNDAY"] = 7] = "SUNDAY";
|
|
253
|
+
})(DayOfWeek || (DayOfWeek = {}));
|
|
254
|
+
|
|
256
255
|
// *********************************
|
|
257
256
|
|
|
258
257
|
function enumStringToValue$d(enumRef, value) {
|
|
@@ -1416,125 +1415,12 @@ function enumStringToValue$a(enumRef, value) {
|
|
|
1416
1415
|
}
|
|
1417
1416
|
return enumRef[value];
|
|
1418
1417
|
}
|
|
1419
|
-
class TimeOfDay {
|
|
1420
|
-
static fromProto(proto) {
|
|
1421
|
-
let m = new TimeOfDay();
|
|
1422
|
-
m = Object.assign(m, proto);
|
|
1423
|
-
return m;
|
|
1424
|
-
}
|
|
1425
|
-
constructor(kwargs) {
|
|
1426
|
-
if (!kwargs) {
|
|
1427
|
-
return;
|
|
1428
|
-
}
|
|
1429
|
-
Object.assign(this, kwargs);
|
|
1430
|
-
}
|
|
1431
|
-
toApiJson() {
|
|
1432
|
-
const toReturn = {};
|
|
1433
|
-
if (typeof this.hours !== 'undefined') {
|
|
1434
|
-
toReturn['hours'] = this.hours;
|
|
1435
|
-
}
|
|
1436
|
-
if (typeof this.minutes !== 'undefined') {
|
|
1437
|
-
toReturn['minutes'] = this.minutes;
|
|
1438
|
-
}
|
|
1439
|
-
if (typeof this.seconds !== 'undefined') {
|
|
1440
|
-
toReturn['seconds'] = this.seconds;
|
|
1441
|
-
}
|
|
1442
|
-
if (typeof this.nanos !== 'undefined') {
|
|
1443
|
-
toReturn['nanos'] = this.nanos;
|
|
1444
|
-
}
|
|
1445
|
-
return toReturn;
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
1448
|
-
|
|
1449
|
-
function enumStringToValue$9(enumRef, value) {
|
|
1450
|
-
if (typeof value === 'number') {
|
|
1451
|
-
return value;
|
|
1452
|
-
}
|
|
1453
|
-
return enumRef[value];
|
|
1454
|
-
}
|
|
1455
|
-
class DateTime {
|
|
1456
|
-
static fromProto(proto) {
|
|
1457
|
-
let m = new DateTime();
|
|
1458
|
-
m = Object.assign(m, proto);
|
|
1459
|
-
if (proto.timeZone) {
|
|
1460
|
-
m.timeZone = TimeZone.fromProto(proto.timeZone);
|
|
1461
|
-
}
|
|
1462
|
-
return m;
|
|
1463
|
-
}
|
|
1464
|
-
constructor(kwargs) {
|
|
1465
|
-
if (!kwargs) {
|
|
1466
|
-
return;
|
|
1467
|
-
}
|
|
1468
|
-
Object.assign(this, kwargs);
|
|
1469
|
-
}
|
|
1470
|
-
toApiJson() {
|
|
1471
|
-
const toReturn = {};
|
|
1472
|
-
if (typeof this.year !== 'undefined') {
|
|
1473
|
-
toReturn['year'] = this.year;
|
|
1474
|
-
}
|
|
1475
|
-
if (typeof this.month !== 'undefined') {
|
|
1476
|
-
toReturn['month'] = this.month;
|
|
1477
|
-
}
|
|
1478
|
-
if (typeof this.day !== 'undefined') {
|
|
1479
|
-
toReturn['day'] = this.day;
|
|
1480
|
-
}
|
|
1481
|
-
if (typeof this.hours !== 'undefined') {
|
|
1482
|
-
toReturn['hours'] = this.hours;
|
|
1483
|
-
}
|
|
1484
|
-
if (typeof this.minutes !== 'undefined') {
|
|
1485
|
-
toReturn['minutes'] = this.minutes;
|
|
1486
|
-
}
|
|
1487
|
-
if (typeof this.seconds !== 'undefined') {
|
|
1488
|
-
toReturn['seconds'] = this.seconds;
|
|
1489
|
-
}
|
|
1490
|
-
if (typeof this.nanos !== 'undefined') {
|
|
1491
|
-
toReturn['nanos'] = this.nanos;
|
|
1492
|
-
}
|
|
1493
|
-
if (typeof this.utcOffset !== 'undefined') {
|
|
1494
|
-
toReturn['utcOffset'] = this.utcOffset;
|
|
1495
|
-
}
|
|
1496
|
-
if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
|
|
1497
|
-
toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
|
|
1498
|
-
}
|
|
1499
|
-
return toReturn;
|
|
1500
|
-
}
|
|
1501
|
-
}
|
|
1502
|
-
class TimeZone {
|
|
1503
|
-
static fromProto(proto) {
|
|
1504
|
-
let m = new TimeZone();
|
|
1505
|
-
m = Object.assign(m, proto);
|
|
1506
|
-
return m;
|
|
1507
|
-
}
|
|
1508
|
-
constructor(kwargs) {
|
|
1509
|
-
if (!kwargs) {
|
|
1510
|
-
return;
|
|
1511
|
-
}
|
|
1512
|
-
Object.assign(this, kwargs);
|
|
1513
|
-
}
|
|
1514
|
-
toApiJson() {
|
|
1515
|
-
const toReturn = {};
|
|
1516
|
-
if (typeof this.id !== 'undefined') {
|
|
1517
|
-
toReturn['id'] = this.id;
|
|
1518
|
-
}
|
|
1519
|
-
if (typeof this.version !== 'undefined') {
|
|
1520
|
-
toReturn['version'] = this.version;
|
|
1521
|
-
}
|
|
1522
|
-
return toReturn;
|
|
1523
|
-
}
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1526
|
-
function enumStringToValue$8(enumRef, value) {
|
|
1527
|
-
if (typeof value === 'number') {
|
|
1528
|
-
return value;
|
|
1529
|
-
}
|
|
1530
|
-
return enumRef[value];
|
|
1531
|
-
}
|
|
1532
1418
|
class Answer {
|
|
1533
1419
|
static fromProto(proto) {
|
|
1534
1420
|
let m = new Answer();
|
|
1535
1421
|
m = Object.assign(m, proto);
|
|
1536
1422
|
if (proto.type) {
|
|
1537
|
-
m.type = enumStringToValue$
|
|
1423
|
+
m.type = enumStringToValue$a(FormFieldType, proto.type);
|
|
1538
1424
|
}
|
|
1539
1425
|
return m;
|
|
1540
1426
|
}
|
|
@@ -1676,7 +1562,7 @@ class Calendar {
|
|
|
1676
1562
|
m.applicationContext = Object.keys(proto.applicationContext).reduce((obj, k) => { obj[k] = proto.applicationContext[k]; return obj; }, {});
|
|
1677
1563
|
}
|
|
1678
1564
|
if (proto.calendarType) {
|
|
1679
|
-
m.calendarType = enumStringToValue$
|
|
1565
|
+
m.calendarType = enumStringToValue$a(CalendarType, proto.calendarType);
|
|
1680
1566
|
}
|
|
1681
1567
|
return m;
|
|
1682
1568
|
}
|
|
@@ -1724,6 +1610,9 @@ class Calendar {
|
|
|
1724
1610
|
if (typeof this.encodedApplicationContext !== 'undefined') {
|
|
1725
1611
|
toReturn['encodedApplicationContext'] = this.encodedApplicationContext;
|
|
1726
1612
|
}
|
|
1613
|
+
if (typeof this.businessName !== 'undefined') {
|
|
1614
|
+
toReturn['businessName'] = this.businessName;
|
|
1615
|
+
}
|
|
1727
1616
|
return toReturn;
|
|
1728
1617
|
}
|
|
1729
1618
|
}
|
|
@@ -1984,7 +1873,7 @@ class Preferences {
|
|
|
1984
1873
|
m.timezone = TimeZone.fromProto(proto.timezone);
|
|
1985
1874
|
}
|
|
1986
1875
|
if (proto.meetingIntegration) {
|
|
1987
|
-
m.meetingIntegration = enumStringToValue$
|
|
1876
|
+
m.meetingIntegration = enumStringToValue$a(MeetingSource, proto.meetingIntegration);
|
|
1988
1877
|
}
|
|
1989
1878
|
if (proto.availabilityIncrement) {
|
|
1990
1879
|
m.availabilityIncrement = parseInt(proto.availabilityIncrement, 10);
|
|
@@ -1999,10 +1888,10 @@ class Preferences {
|
|
|
1999
1888
|
m.bufferDurationBeforeMeeting = parseInt(proto.bufferDurationBeforeMeeting, 10);
|
|
2000
1889
|
}
|
|
2001
1890
|
if (proto.calendarIntegration) {
|
|
2002
|
-
m.calendarIntegration = enumStringToValue$
|
|
1891
|
+
m.calendarIntegration = enumStringToValue$a(CalendarSource, proto.calendarIntegration);
|
|
2003
1892
|
}
|
|
2004
1893
|
if (proto.onBoardingState) {
|
|
2005
|
-
m.onBoardingState = enumStringToValue$
|
|
1894
|
+
m.onBoardingState = enumStringToValue$a(OnBoardingState, proto.onBoardingState);
|
|
2006
1895
|
}
|
|
2007
1896
|
return m;
|
|
2008
1897
|
}
|
|
@@ -2074,7 +1963,7 @@ class TimeRange {
|
|
|
2074
1963
|
}
|
|
2075
1964
|
}
|
|
2076
1965
|
|
|
2077
|
-
function enumStringToValue$
|
|
1966
|
+
function enumStringToValue$9(enumRef, value) {
|
|
2078
1967
|
if (typeof value === 'number') {
|
|
2079
1968
|
return value;
|
|
2080
1969
|
}
|
|
@@ -2110,7 +1999,7 @@ class DateRange {
|
|
|
2110
1999
|
}
|
|
2111
2000
|
}
|
|
2112
2001
|
|
|
2113
|
-
function enumStringToValue$
|
|
2002
|
+
function enumStringToValue$8(enumRef, value) {
|
|
2114
2003
|
if (typeof value === 'number') {
|
|
2115
2004
|
return value;
|
|
2116
2005
|
}
|
|
@@ -2121,7 +2010,7 @@ class EventTypeDateRange {
|
|
|
2121
2010
|
let m = new EventTypeDateRange();
|
|
2122
2011
|
m = Object.assign(m, proto);
|
|
2123
2012
|
if (proto.dateRangeType) {
|
|
2124
|
-
m.dateRangeType = enumStringToValue$
|
|
2013
|
+
m.dateRangeType = enumStringToValue$8(DateRangeType, proto.dateRangeType);
|
|
2125
2014
|
}
|
|
2126
2015
|
if (proto.customDateRange) {
|
|
2127
2016
|
m.customDateRange = DateRange.fromProto(proto.customDateRange);
|
|
@@ -2156,7 +2045,7 @@ class Field {
|
|
|
2156
2045
|
let m = new Field();
|
|
2157
2046
|
m = Object.assign(m, proto);
|
|
2158
2047
|
if (proto.type) {
|
|
2159
|
-
m.type = enumStringToValue$
|
|
2048
|
+
m.type = enumStringToValue$8(FormFieldType, proto.type);
|
|
2160
2049
|
}
|
|
2161
2050
|
return m;
|
|
2162
2051
|
}
|
|
@@ -2223,7 +2112,7 @@ class MeetingType {
|
|
|
2223
2112
|
m.noticeTime = parseInt(proto.noticeTime, 10);
|
|
2224
2113
|
}
|
|
2225
2114
|
if (proto.locationType) {
|
|
2226
|
-
m.locationType = enumStringToValue$
|
|
2115
|
+
m.locationType = enumStringToValue$8(MeetingLocationType, proto.locationType);
|
|
2227
2116
|
}
|
|
2228
2117
|
if (proto.hostUsers) {
|
|
2229
2118
|
m.hostUsers = proto.hostUsers.map(HostUser.fromProto);
|
|
@@ -2235,7 +2124,7 @@ class MeetingType {
|
|
|
2235
2124
|
m.dateRange = EventTypeDateRange.fromProto(proto.dateRange);
|
|
2236
2125
|
}
|
|
2237
2126
|
if (proto.meetingType) {
|
|
2238
|
-
m.meetingType = enumStringToValue$
|
|
2127
|
+
m.meetingType = enumStringToValue$8(TeamEventMeetingType, proto.meetingType);
|
|
2239
2128
|
}
|
|
2240
2129
|
if (proto.attendeeCount) {
|
|
2241
2130
|
m.attendeeCount = parseInt(proto.attendeeCount, 10);
|
|
@@ -2247,7 +2136,7 @@ class MeetingType {
|
|
|
2247
2136
|
m.hostOrderDetails = proto.hostOrderDetails.map(HostOrderDetails.fromProto);
|
|
2248
2137
|
}
|
|
2249
2138
|
if (proto.notificationType) {
|
|
2250
|
-
m.notificationType = enumStringToValue$
|
|
2139
|
+
m.notificationType = enumStringToValue$8(NotificationType, proto.notificationType);
|
|
2251
2140
|
}
|
|
2252
2141
|
return m;
|
|
2253
2142
|
}
|
|
@@ -2372,7 +2261,7 @@ class RegistrationCutOff {
|
|
|
2372
2261
|
let m = new RegistrationCutOff();
|
|
2373
2262
|
m = Object.assign(m, proto);
|
|
2374
2263
|
if (proto.unit) {
|
|
2375
|
-
m.unit = enumStringToValue$
|
|
2264
|
+
m.unit = enumStringToValue$8(RegistrationCutOffUnit, proto.unit);
|
|
2376
2265
|
}
|
|
2377
2266
|
if (proto.value) {
|
|
2378
2267
|
m.value = parseInt(proto.value, 10);
|
|
@@ -2401,7 +2290,7 @@ class RelativeDateRange {
|
|
|
2401
2290
|
let m = new RelativeDateRange();
|
|
2402
2291
|
m = Object.assign(m, proto);
|
|
2403
2292
|
if (proto.unit) {
|
|
2404
|
-
m.unit = enumStringToValue$
|
|
2293
|
+
m.unit = enumStringToValue$8(RelativeTimeUnit, proto.unit);
|
|
2405
2294
|
}
|
|
2406
2295
|
if (proto.value) {
|
|
2407
2296
|
m.value = parseInt(proto.value, 10);
|
|
@@ -2426,7 +2315,7 @@ class RelativeDateRange {
|
|
|
2426
2315
|
}
|
|
2427
2316
|
}
|
|
2428
2317
|
|
|
2429
|
-
function enumStringToValue$
|
|
2318
|
+
function enumStringToValue$7(enumRef, value) {
|
|
2430
2319
|
if (typeof value === 'number') {
|
|
2431
2320
|
return value;
|
|
2432
2321
|
}
|
|
@@ -2571,7 +2460,7 @@ class Service {
|
|
|
2571
2460
|
}
|
|
2572
2461
|
}
|
|
2573
2462
|
|
|
2574
|
-
function enumStringToValue$
|
|
2463
|
+
function enumStringToValue$6(enumRef, value) {
|
|
2575
2464
|
if (typeof value === 'number') {
|
|
2576
2465
|
return value;
|
|
2577
2466
|
}
|
|
@@ -2597,7 +2486,7 @@ class BookMeetingRequest {
|
|
|
2597
2486
|
m.formAnswers = Answers.fromProto(proto.formAnswers);
|
|
2598
2487
|
}
|
|
2599
2488
|
if (proto.bookingSource) {
|
|
2600
|
-
m.bookingSource = enumStringToValue$
|
|
2489
|
+
m.bookingSource = enumStringToValue$6(BookingSource, proto.bookingSource);
|
|
2601
2490
|
}
|
|
2602
2491
|
return m;
|
|
2603
2492
|
}
|
|
@@ -2645,6 +2534,9 @@ class BookMeetingRequest {
|
|
|
2645
2534
|
if (typeof this.bookingSource !== 'undefined') {
|
|
2646
2535
|
toReturn['bookingSource'] = this.bookingSource;
|
|
2647
2536
|
}
|
|
2537
|
+
if (typeof this.hasSmsConsent !== 'undefined') {
|
|
2538
|
+
toReturn['hasSmsConsent'] = this.hasSmsConsent;
|
|
2539
|
+
}
|
|
2648
2540
|
return toReturn;
|
|
2649
2541
|
}
|
|
2650
2542
|
}
|
|
@@ -2676,7 +2568,7 @@ class CheckFeatureFlagRequest {
|
|
|
2676
2568
|
let m = new CheckFeatureFlagRequest();
|
|
2677
2569
|
m = Object.assign(m, proto);
|
|
2678
2570
|
if (proto.fieldType) {
|
|
2679
|
-
m.fieldType = enumStringToValue$
|
|
2571
|
+
m.fieldType = enumStringToValue$6(FeatureFlagFieldType, proto.fieldType);
|
|
2680
2572
|
}
|
|
2681
2573
|
return m;
|
|
2682
2574
|
}
|
|
@@ -3237,10 +3129,10 @@ class GuestGetBookedMeetingResponse {
|
|
|
3237
3129
|
m.timeZone = TimeZone.fromProto(proto.timeZone);
|
|
3238
3130
|
}
|
|
3239
3131
|
if (proto.locationType) {
|
|
3240
|
-
m.locationType = enumStringToValue$
|
|
3132
|
+
m.locationType = enumStringToValue$6(MeetingLocationType, proto.locationType);
|
|
3241
3133
|
}
|
|
3242
3134
|
if (proto.meetingType) {
|
|
3243
|
-
m.meetingType = enumStringToValue$
|
|
3135
|
+
m.meetingType = enumStringToValue$6(TeamEventMeetingType, proto.meetingType);
|
|
3244
3136
|
}
|
|
3245
3137
|
return m;
|
|
3246
3138
|
}
|
|
@@ -3296,10 +3188,10 @@ class GuestGetBookedMeetingResponseV2 {
|
|
|
3296
3188
|
m.endTime = new Date(proto.endTime);
|
|
3297
3189
|
}
|
|
3298
3190
|
if (proto.meetingSource) {
|
|
3299
|
-
m.meetingSource = enumStringToValue$
|
|
3191
|
+
m.meetingSource = enumStringToValue$6(MeetingSource, proto.meetingSource);
|
|
3300
3192
|
}
|
|
3301
3193
|
if (proto.meetingLocationType) {
|
|
3302
|
-
m.meetingLocationType = enumStringToValue$
|
|
3194
|
+
m.meetingLocationType = enumStringToValue$6(MeetingLocation, proto.meetingLocationType);
|
|
3303
3195
|
}
|
|
3304
3196
|
if (proto.timeZone) {
|
|
3305
3197
|
m.timeZone = TimeZone.fromProto(proto.timeZone);
|
|
@@ -3688,7 +3580,7 @@ class RegisterSessionRequest {
|
|
|
3688
3580
|
}
|
|
3689
3581
|
}
|
|
3690
3582
|
|
|
3691
|
-
function enumStringToValue$
|
|
3583
|
+
function enumStringToValue$5(enumRef, value) {
|
|
3692
3584
|
if (typeof value === 'number') {
|
|
3693
3585
|
return value;
|
|
3694
3586
|
}
|
|
@@ -3714,8 +3606,8 @@ class AvailableTimeSlotsRequest {
|
|
|
3714
3606
|
}
|
|
3715
3607
|
toApiJson() {
|
|
3716
3608
|
const toReturn = {};
|
|
3717
|
-
if (typeof this.
|
|
3718
|
-
toReturn['
|
|
3609
|
+
if (typeof this.businessId !== 'undefined') {
|
|
3610
|
+
toReturn['businessId'] = this.businessId;
|
|
3719
3611
|
}
|
|
3720
3612
|
if (typeof this.eventTypeId !== 'undefined') {
|
|
3721
3613
|
toReturn['eventTypeId'] = this.eventTypeId;
|
|
@@ -3778,8 +3670,8 @@ class BookMeetingExternalRequest {
|
|
|
3778
3670
|
}
|
|
3779
3671
|
toApiJson() {
|
|
3780
3672
|
const toReturn = {};
|
|
3781
|
-
if (typeof this.
|
|
3782
|
-
toReturn['
|
|
3673
|
+
if (typeof this.businessId !== 'undefined') {
|
|
3674
|
+
toReturn['businessId'] = this.businessId;
|
|
3783
3675
|
}
|
|
3784
3676
|
if (typeof this.eventTypeId !== 'undefined') {
|
|
3785
3677
|
toReturn['eventTypeId'] = this.eventTypeId;
|
|
@@ -3815,9 +3707,6 @@ class BookMeetingExternalResponse {
|
|
|
3815
3707
|
if (proto.meetingEndTime) {
|
|
3816
3708
|
m.meetingEndTime = new Date(proto.meetingEndTime);
|
|
3817
3709
|
}
|
|
3818
|
-
if (proto.hostDetails) {
|
|
3819
|
-
m.hostDetails = proto.hostDetails.map(HostUserDetails.fromProto);
|
|
3820
|
-
}
|
|
3821
3710
|
return m;
|
|
3822
3711
|
}
|
|
3823
3712
|
constructor(kwargs) {
|
|
@@ -3849,21 +3738,6 @@ class BookMeetingExternalResponse {
|
|
|
3849
3738
|
if (typeof this.location !== 'undefined') {
|
|
3850
3739
|
toReturn['location'] = this.location;
|
|
3851
3740
|
}
|
|
3852
|
-
if (typeof this.hostDetails !== 'undefined' && this.hostDetails !== null) {
|
|
3853
|
-
toReturn['hostDetails'] = 'toApiJson' in this.hostDetails ? this.hostDetails.toApiJson() : this.hostDetails;
|
|
3854
|
-
}
|
|
3855
|
-
if (typeof this.bookingUrl !== 'undefined') {
|
|
3856
|
-
toReturn['bookingUrl'] = this.bookingUrl;
|
|
3857
|
-
}
|
|
3858
|
-
if (typeof this.cancelUrl !== 'undefined') {
|
|
3859
|
-
toReturn['cancelUrl'] = this.cancelUrl;
|
|
3860
|
-
}
|
|
3861
|
-
if (typeof this.rescheduleUrl !== 'undefined') {
|
|
3862
|
-
toReturn['rescheduleUrl'] = this.rescheduleUrl;
|
|
3863
|
-
}
|
|
3864
|
-
if (typeof this.meetingLink !== 'undefined') {
|
|
3865
|
-
toReturn['meetingLink'] = this.meetingLink;
|
|
3866
|
-
}
|
|
3867
3741
|
if (typeof this.attendeeEmails !== 'undefined') {
|
|
3868
3742
|
toReturn['attendeeEmails'] = this.attendeeEmails;
|
|
3869
3743
|
}
|
|
@@ -3875,16 +3749,16 @@ class EventType {
|
|
|
3875
3749
|
let m = new EventType();
|
|
3876
3750
|
m = Object.assign(m, proto);
|
|
3877
3751
|
if (proto.locationType) {
|
|
3878
|
-
m.locationType = enumStringToValue$
|
|
3752
|
+
m.locationType = enumStringToValue$5(MeetingLocationType, proto.locationType);
|
|
3879
3753
|
}
|
|
3880
3754
|
if (proto.hostUsers) {
|
|
3881
|
-
m.hostUsers = proto.hostUsers.map(
|
|
3755
|
+
m.hostUsers = proto.hostUsers.map(UserResponse.fromProto);
|
|
3882
3756
|
}
|
|
3883
3757
|
if (proto.bookingWindow) {
|
|
3884
3758
|
m.bookingWindow = EventTypeDateRange.fromProto(proto.bookingWindow);
|
|
3885
3759
|
}
|
|
3886
3760
|
if (proto.meetingType) {
|
|
3887
|
-
m.meetingType = enumStringToValue$
|
|
3761
|
+
m.meetingType = enumStringToValue$5(TeamEventMeetingType, proto.meetingType);
|
|
3888
3762
|
}
|
|
3889
3763
|
if (proto.hostOrderDetails) {
|
|
3890
3764
|
m.hostOrderDetails = proto.hostOrderDetails.map(HostOrderDetails.fromProto);
|
|
@@ -3964,8 +3838,8 @@ class ExternalCancelMeetingRequest {
|
|
|
3964
3838
|
}
|
|
3965
3839
|
toApiJson() {
|
|
3966
3840
|
const toReturn = {};
|
|
3967
|
-
if (typeof this.
|
|
3968
|
-
toReturn['
|
|
3841
|
+
if (typeof this.businessId !== 'undefined') {
|
|
3842
|
+
toReturn['businessId'] = this.businessId;
|
|
3969
3843
|
}
|
|
3970
3844
|
if (typeof this.meetingId !== 'undefined') {
|
|
3971
3845
|
toReturn['meetingId'] = this.meetingId;
|
|
@@ -3996,8 +3870,8 @@ class ExternalRescheduleMeetingRequest {
|
|
|
3996
3870
|
}
|
|
3997
3871
|
toApiJson() {
|
|
3998
3872
|
const toReturn = {};
|
|
3999
|
-
if (typeof this.
|
|
4000
|
-
toReturn['
|
|
3873
|
+
if (typeof this.businessId !== 'undefined') {
|
|
3874
|
+
toReturn['businessId'] = this.businessId;
|
|
4001
3875
|
}
|
|
4002
3876
|
if (typeof this.meetingId !== 'undefined') {
|
|
4003
3877
|
toReturn['meetingId'] = this.meetingId;
|
|
@@ -4024,9 +3898,6 @@ class ExternalRescheduleMeetingResponse {
|
|
|
4024
3898
|
if (proto.endTime) {
|
|
4025
3899
|
m.endTime = new Date(proto.endTime);
|
|
4026
3900
|
}
|
|
4027
|
-
if (proto.hostDetails) {
|
|
4028
|
-
m.hostDetails = proto.hostDetails.map(HostUserDetails.fromProto);
|
|
4029
|
-
}
|
|
4030
3901
|
return m;
|
|
4031
3902
|
}
|
|
4032
3903
|
constructor(kwargs) {
|
|
@@ -4046,9 +3917,6 @@ class ExternalRescheduleMeetingResponse {
|
|
|
4046
3917
|
if (typeof this.endTime !== 'undefined' && this.endTime !== null) {
|
|
4047
3918
|
toReturn['endTime'] = 'toApiJson' in this.endTime ? this.endTime.toApiJson() : this.endTime;
|
|
4048
3919
|
}
|
|
4049
|
-
if (typeof this.hostDetails !== 'undefined' && this.hostDetails !== null) {
|
|
4050
|
-
toReturn['hostDetails'] = 'toApiJson' in this.hostDetails ? this.hostDetails.toApiJson() : this.hostDetails;
|
|
4051
|
-
}
|
|
4052
3920
|
if (typeof this.eventTypeId !== 'undefined') {
|
|
4053
3921
|
toReturn['eventTypeId'] = this.eventTypeId;
|
|
4054
3922
|
}
|
|
@@ -4058,18 +3926,6 @@ class ExternalRescheduleMeetingResponse {
|
|
|
4058
3926
|
if (typeof this.location !== 'undefined') {
|
|
4059
3927
|
toReturn['location'] = this.location;
|
|
4060
3928
|
}
|
|
4061
|
-
if (typeof this.meetingUrl !== 'undefined') {
|
|
4062
|
-
toReturn['meetingUrl'] = this.meetingUrl;
|
|
4063
|
-
}
|
|
4064
|
-
if (typeof this.bookingUrl !== 'undefined') {
|
|
4065
|
-
toReturn['bookingUrl'] = this.bookingUrl;
|
|
4066
|
-
}
|
|
4067
|
-
if (typeof this.rescheduleUrl !== 'undefined') {
|
|
4068
|
-
toReturn['rescheduleUrl'] = this.rescheduleUrl;
|
|
4069
|
-
}
|
|
4070
|
-
if (typeof this.cancelUrl !== 'undefined') {
|
|
4071
|
-
toReturn['cancelUrl'] = this.cancelUrl;
|
|
4072
|
-
}
|
|
4073
3929
|
return toReturn;
|
|
4074
3930
|
}
|
|
4075
3931
|
}
|
|
@@ -4077,9 +3933,6 @@ class GetUsersRequest {
|
|
|
4077
3933
|
static fromProto(proto) {
|
|
4078
3934
|
let m = new GetUsersRequest();
|
|
4079
3935
|
m = Object.assign(m, proto);
|
|
4080
|
-
if (proto.pagedRequestOptions) {
|
|
4081
|
-
m.pagedRequestOptions = PagedRequestOptions.fromProto(proto.pagedRequestOptions);
|
|
4082
|
-
}
|
|
4083
3936
|
return m;
|
|
4084
3937
|
}
|
|
4085
3938
|
constructor(kwargs) {
|
|
@@ -4090,11 +3943,8 @@ class GetUsersRequest {
|
|
|
4090
3943
|
}
|
|
4091
3944
|
toApiJson() {
|
|
4092
3945
|
const toReturn = {};
|
|
4093
|
-
if (typeof this.
|
|
4094
|
-
toReturn['
|
|
4095
|
-
}
|
|
4096
|
-
if (typeof this.pagedRequestOptions !== 'undefined' && this.pagedRequestOptions !== null) {
|
|
4097
|
-
toReturn['pagedRequestOptions'] = 'toApiJson' in this.pagedRequestOptions ? this.pagedRequestOptions.toApiJson() : this.pagedRequestOptions;
|
|
3946
|
+
if (typeof this.businessId !== 'undefined') {
|
|
3947
|
+
toReturn['businessId'] = this.businessId;
|
|
4098
3948
|
}
|
|
4099
3949
|
return toReturn;
|
|
4100
3950
|
}
|
|
@@ -4106,9 +3956,6 @@ class GetUsersResponse {
|
|
|
4106
3956
|
if (proto.users) {
|
|
4107
3957
|
m.users = proto.users.map(UserResponse.fromProto);
|
|
4108
3958
|
}
|
|
4109
|
-
if (proto.pagedResponseMetadata) {
|
|
4110
|
-
m.pagedResponseMetadata = PagedResponseMetadata.fromProto(proto.pagedResponseMetadata);
|
|
4111
|
-
}
|
|
4112
3959
|
return m;
|
|
4113
3960
|
}
|
|
4114
3961
|
constructor(kwargs) {
|
|
@@ -4122,9 +3969,6 @@ class GetUsersResponse {
|
|
|
4122
3969
|
if (typeof this.users !== 'undefined' && this.users !== null) {
|
|
4123
3970
|
toReturn['users'] = 'toApiJson' in this.users ? this.users.toApiJson() : this.users;
|
|
4124
3971
|
}
|
|
4125
|
-
if (typeof this.pagedResponseMetadata !== 'undefined' && this.pagedResponseMetadata !== null) {
|
|
4126
|
-
toReturn['pagedResponseMetadata'] = 'toApiJson' in this.pagedResponseMetadata ? this.pagedResponseMetadata.toApiJson() : this.pagedResponseMetadata;
|
|
4127
|
-
}
|
|
4128
3972
|
return toReturn;
|
|
4129
3973
|
}
|
|
4130
3974
|
}
|
|
@@ -4174,8 +4018,8 @@ class GroupsRequest {
|
|
|
4174
4018
|
}
|
|
4175
4019
|
toApiJson() {
|
|
4176
4020
|
const toReturn = {};
|
|
4177
|
-
if (typeof this.
|
|
4178
|
-
toReturn['
|
|
4021
|
+
if (typeof this.businessId !== 'undefined') {
|
|
4022
|
+
toReturn['businessId'] = this.businessId;
|
|
4179
4023
|
}
|
|
4180
4024
|
return toReturn;
|
|
4181
4025
|
}
|
|
@@ -4243,8 +4087,8 @@ class ListTeamEventTypesRequest {
|
|
|
4243
4087
|
}
|
|
4244
4088
|
toApiJson() {
|
|
4245
4089
|
const toReturn = {};
|
|
4246
|
-
if (typeof this.
|
|
4247
|
-
toReturn['
|
|
4090
|
+
if (typeof this.businessId !== 'undefined') {
|
|
4091
|
+
toReturn['businessId'] = this.businessId;
|
|
4248
4092
|
}
|
|
4249
4093
|
if (typeof this.cursor !== 'undefined') {
|
|
4250
4094
|
toReturn['cursor'] = this.cursor;
|
|
@@ -4298,8 +4142,8 @@ class ListUserEventTypesRequest {
|
|
|
4298
4142
|
}
|
|
4299
4143
|
toApiJson() {
|
|
4300
4144
|
const toReturn = {};
|
|
4301
|
-
if (typeof this.
|
|
4302
|
-
toReturn['
|
|
4145
|
+
if (typeof this.businessId !== 'undefined') {
|
|
4146
|
+
toReturn['businessId'] = this.businessId;
|
|
4303
4147
|
}
|
|
4304
4148
|
if (typeof this.userId !== 'undefined') {
|
|
4305
4149
|
toReturn['userId'] = this.userId;
|
|
@@ -4376,8 +4220,8 @@ class ServicesRequest {
|
|
|
4376
4220
|
}
|
|
4377
4221
|
toApiJson() {
|
|
4378
4222
|
const toReturn = {};
|
|
4379
|
-
if (typeof this.
|
|
4380
|
-
toReturn['
|
|
4223
|
+
if (typeof this.businessId !== 'undefined') {
|
|
4224
|
+
toReturn['businessId'] = this.businessId;
|
|
4381
4225
|
}
|
|
4382
4226
|
return toReturn;
|
|
4383
4227
|
}
|
|
@@ -4425,14 +4269,14 @@ class UserResponse {
|
|
|
4425
4269
|
if (typeof this.displayName !== 'undefined') {
|
|
4426
4270
|
toReturn['displayName'] = this.displayName;
|
|
4427
4271
|
}
|
|
4428
|
-
if (typeof this.
|
|
4429
|
-
toReturn['
|
|
4272
|
+
if (typeof this.isConnected !== 'undefined') {
|
|
4273
|
+
toReturn['isConnected'] = this.isConnected;
|
|
4430
4274
|
}
|
|
4431
4275
|
return toReturn;
|
|
4432
4276
|
}
|
|
4433
4277
|
}
|
|
4434
4278
|
|
|
4435
|
-
function enumStringToValue$
|
|
4279
|
+
function enumStringToValue$4(enumRef, value) {
|
|
4436
4280
|
if (typeof value === 'number') {
|
|
4437
4281
|
return value;
|
|
4438
4282
|
}
|
|
@@ -4459,15 +4303,15 @@ class FieldMask {
|
|
|
4459
4303
|
}
|
|
4460
4304
|
}
|
|
4461
4305
|
|
|
4462
|
-
function enumStringToValue$
|
|
4306
|
+
function enumStringToValue$3(enumRef, value) {
|
|
4463
4307
|
if (typeof value === 'number') {
|
|
4464
4308
|
return value;
|
|
4465
4309
|
}
|
|
4466
4310
|
return enumRef[value];
|
|
4467
4311
|
}
|
|
4468
|
-
class
|
|
4312
|
+
class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
|
|
4469
4313
|
static fromProto(proto) {
|
|
4470
|
-
let m = new
|
|
4314
|
+
let m = new IsCalendarConfiguredRequestApplicationContextPropertiesEntry();
|
|
4471
4315
|
m = Object.assign(m, proto);
|
|
4472
4316
|
return m;
|
|
4473
4317
|
}
|
|
@@ -4488,9 +4332,9 @@ class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
|
|
|
4488
4332
|
return toReturn;
|
|
4489
4333
|
}
|
|
4490
4334
|
}
|
|
4491
|
-
class
|
|
4335
|
+
class BuildHostIdRequestApplicationContextPropertiesEntry {
|
|
4492
4336
|
static fromProto(proto) {
|
|
4493
|
-
let m = new
|
|
4337
|
+
let m = new BuildHostIdRequestApplicationContextPropertiesEntry();
|
|
4494
4338
|
m = Object.assign(m, proto);
|
|
4495
4339
|
return m;
|
|
4496
4340
|
}
|
|
@@ -4511,9 +4355,9 @@ class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
|
|
|
4511
4355
|
return toReturn;
|
|
4512
4356
|
}
|
|
4513
4357
|
}
|
|
4514
|
-
class
|
|
4358
|
+
class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
|
|
4515
4359
|
static fromProto(proto) {
|
|
4516
|
-
let m = new
|
|
4360
|
+
let m = new EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry();
|
|
4517
4361
|
m = Object.assign(m, proto);
|
|
4518
4362
|
return m;
|
|
4519
4363
|
}
|
|
@@ -4539,7 +4383,7 @@ class AvailabilityRule {
|
|
|
4539
4383
|
let m = new AvailabilityRule();
|
|
4540
4384
|
m = Object.assign(m, proto);
|
|
4541
4385
|
if (proto.day) {
|
|
4542
|
-
m.day = enumStringToValue$
|
|
4386
|
+
m.day = enumStringToValue$3(DayOfWeek, proto.day);
|
|
4543
4387
|
}
|
|
4544
4388
|
if (proto.timeSlot) {
|
|
4545
4389
|
m.timeSlot = TimeRange.fromProto(proto.timeSlot);
|
|
@@ -5320,6 +5164,21 @@ class EventTypeSummary {
|
|
|
5320
5164
|
if (proto.duration) {
|
|
5321
5165
|
m.duration = parseInt(proto.duration, 10);
|
|
5322
5166
|
}
|
|
5167
|
+
if (proto.calendarType) {
|
|
5168
|
+
m.calendarType = enumStringToValue$3(CalendarType, proto.calendarType);
|
|
5169
|
+
}
|
|
5170
|
+
if (proto.locationType) {
|
|
5171
|
+
m.locationType = enumStringToValue$3(MeetingLocationType, proto.locationType);
|
|
5172
|
+
}
|
|
5173
|
+
if (proto.meetingType) {
|
|
5174
|
+
m.meetingType = enumStringToValue$3(TeamEventMeetingType, proto.meetingType);
|
|
5175
|
+
}
|
|
5176
|
+
if (proto.hostUsers) {
|
|
5177
|
+
m.hostUsers = proto.hostUsers.map(HostUser.fromProto);
|
|
5178
|
+
}
|
|
5179
|
+
if (proto.dateRange) {
|
|
5180
|
+
m.dateRange = EventTypeDateRange.fromProto(proto.dateRange);
|
|
5181
|
+
}
|
|
5323
5182
|
return m;
|
|
5324
5183
|
}
|
|
5325
5184
|
constructor(kwargs) {
|
|
@@ -5351,8 +5210,8 @@ class EventTypeSummary {
|
|
|
5351
5210
|
if (typeof this.location !== 'undefined') {
|
|
5352
5211
|
toReturn['location'] = this.location;
|
|
5353
5212
|
}
|
|
5354
|
-
if (typeof this.
|
|
5355
|
-
toReturn['
|
|
5213
|
+
if (typeof this.calendarType !== 'undefined') {
|
|
5214
|
+
toReturn['calendarType'] = this.calendarType;
|
|
5356
5215
|
}
|
|
5357
5216
|
if (typeof this.teamName !== 'undefined') {
|
|
5358
5217
|
toReturn['teamName'] = this.teamName;
|
|
@@ -5360,6 +5219,24 @@ class EventTypeSummary {
|
|
|
5360
5219
|
if (typeof this.calendarId !== 'undefined') {
|
|
5361
5220
|
toReturn['calendarId'] = this.calendarId;
|
|
5362
5221
|
}
|
|
5222
|
+
if (typeof this.locationType !== 'undefined') {
|
|
5223
|
+
toReturn['locationType'] = this.locationType;
|
|
5224
|
+
}
|
|
5225
|
+
if (typeof this.meetingType !== 'undefined') {
|
|
5226
|
+
toReturn['meetingType'] = this.meetingType;
|
|
5227
|
+
}
|
|
5228
|
+
if (typeof this.hostUsers !== 'undefined' && this.hostUsers !== null) {
|
|
5229
|
+
toReturn['hostUsers'] = 'toApiJson' in this.hostUsers ? this.hostUsers.toApiJson() : this.hostUsers;
|
|
5230
|
+
}
|
|
5231
|
+
if (typeof this.dateRange !== 'undefined' && this.dateRange !== null) {
|
|
5232
|
+
toReturn['dateRange'] = 'toApiJson' in this.dateRange ? this.dateRange.toApiJson() : this.dateRange;
|
|
5233
|
+
}
|
|
5234
|
+
if (typeof this.locationGuidelines !== 'undefined') {
|
|
5235
|
+
toReturn['locationGuidelines'] = this.locationGuidelines;
|
|
5236
|
+
}
|
|
5237
|
+
if (typeof this.description !== 'undefined') {
|
|
5238
|
+
toReturn['description'] = this.description;
|
|
5239
|
+
}
|
|
5363
5240
|
return toReturn;
|
|
5364
5241
|
}
|
|
5365
5242
|
}
|
|
@@ -5458,6 +5335,49 @@ class GetEntityAssociationResponse {
|
|
|
5458
5335
|
return toReturn;
|
|
5459
5336
|
}
|
|
5460
5337
|
}
|
|
5338
|
+
class GetEventTypeByIdRequest {
|
|
5339
|
+
static fromProto(proto) {
|
|
5340
|
+
let m = new GetEventTypeByIdRequest();
|
|
5341
|
+
m = Object.assign(m, proto);
|
|
5342
|
+
return m;
|
|
5343
|
+
}
|
|
5344
|
+
constructor(kwargs) {
|
|
5345
|
+
if (!kwargs) {
|
|
5346
|
+
return;
|
|
5347
|
+
}
|
|
5348
|
+
Object.assign(this, kwargs);
|
|
5349
|
+
}
|
|
5350
|
+
toApiJson() {
|
|
5351
|
+
const toReturn = {};
|
|
5352
|
+
if (typeof this.eventTypeId !== 'undefined') {
|
|
5353
|
+
toReturn['eventTypeId'] = this.eventTypeId;
|
|
5354
|
+
}
|
|
5355
|
+
return toReturn;
|
|
5356
|
+
}
|
|
5357
|
+
}
|
|
5358
|
+
class GetEventTypeByIdResponse {
|
|
5359
|
+
static fromProto(proto) {
|
|
5360
|
+
let m = new GetEventTypeByIdResponse();
|
|
5361
|
+
m = Object.assign(m, proto);
|
|
5362
|
+
if (proto.meetingType) {
|
|
5363
|
+
m.meetingType = MeetingType.fromProto(proto.meetingType);
|
|
5364
|
+
}
|
|
5365
|
+
return m;
|
|
5366
|
+
}
|
|
5367
|
+
constructor(kwargs) {
|
|
5368
|
+
if (!kwargs) {
|
|
5369
|
+
return;
|
|
5370
|
+
}
|
|
5371
|
+
Object.assign(this, kwargs);
|
|
5372
|
+
}
|
|
5373
|
+
toApiJson() {
|
|
5374
|
+
const toReturn = {};
|
|
5375
|
+
if (typeof this.meetingType !== 'undefined' && this.meetingType !== null) {
|
|
5376
|
+
toReturn['meetingType'] = 'toApiJson' in this.meetingType ? this.meetingType.toApiJson() : this.meetingType;
|
|
5377
|
+
}
|
|
5378
|
+
return toReturn;
|
|
5379
|
+
}
|
|
5380
|
+
}
|
|
5461
5381
|
class GetHostMeetingRequest {
|
|
5462
5382
|
static fromProto(proto) {
|
|
5463
5383
|
let m = new GetHostMeetingRequest();
|
|
@@ -5647,7 +5567,7 @@ class HostBookMeetingRequest {
|
|
|
5647
5567
|
let m = new HostBookMeetingRequest();
|
|
5648
5568
|
m = Object.assign(m, proto);
|
|
5649
5569
|
if (proto.meetingSource) {
|
|
5650
|
-
m.meetingSource = enumStringToValue$
|
|
5570
|
+
m.meetingSource = enumStringToValue$3(MeetingSource, proto.meetingSource);
|
|
5651
5571
|
}
|
|
5652
5572
|
if (proto.timeSlot) {
|
|
5653
5573
|
m.timeSlot = DateRange.fromProto(proto.timeSlot);
|
|
@@ -5656,7 +5576,7 @@ class HostBookMeetingRequest {
|
|
|
5656
5576
|
m.attendees = proto.attendees.map(Contact.fromProto);
|
|
5657
5577
|
}
|
|
5658
5578
|
if (proto.bookingSource) {
|
|
5659
|
-
m.bookingSource = enumStringToValue$
|
|
5579
|
+
m.bookingSource = enumStringToValue$3(BookingSource, proto.bookingSource);
|
|
5660
5580
|
}
|
|
5661
5581
|
return m;
|
|
5662
5582
|
}
|
|
@@ -5720,7 +5640,7 @@ class HostBookSessionRequest {
|
|
|
5720
5640
|
let m = new HostBookSessionRequest();
|
|
5721
5641
|
m = Object.assign(m, proto);
|
|
5722
5642
|
if (proto.locationType) {
|
|
5723
|
-
m.locationType = enumStringToValue$
|
|
5643
|
+
m.locationType = enumStringToValue$3(MeetingLocationType, proto.locationType);
|
|
5724
5644
|
}
|
|
5725
5645
|
if (proto.maxAttendees) {
|
|
5726
5646
|
m.maxAttendees = parseInt(proto.maxAttendees, 10);
|
|
@@ -6108,7 +6028,7 @@ class IsHostConfiguredResponse {
|
|
|
6108
6028
|
let m = new IsHostConfiguredResponse();
|
|
6109
6029
|
m = Object.assign(m, proto);
|
|
6110
6030
|
if (proto.onBoardingState) {
|
|
6111
|
-
m.onBoardingState = enumStringToValue$
|
|
6031
|
+
m.onBoardingState = enumStringToValue$3(OnBoardingState, proto.onBoardingState);
|
|
6112
6032
|
}
|
|
6113
6033
|
return m;
|
|
6114
6034
|
}
|
|
@@ -6592,7 +6512,7 @@ class Meeting {
|
|
|
6592
6512
|
m.hostDetails = proto.hostDetails.map(HostDetails.fromProto);
|
|
6593
6513
|
}
|
|
6594
6514
|
if (proto.meetingType) {
|
|
6595
|
-
m.meetingType = enumStringToValue$
|
|
6515
|
+
m.meetingType = enumStringToValue$3(TeamEventMeetingType, proto.meetingType);
|
|
6596
6516
|
}
|
|
6597
6517
|
if (proto.maxAttendeeCount) {
|
|
6598
6518
|
m.maxAttendeeCount = parseInt(proto.maxAttendeeCount, 10);
|
|
@@ -6756,19 +6676,19 @@ class RecurrenceConfig {
|
|
|
6756
6676
|
let m = new RecurrenceConfig();
|
|
6757
6677
|
m = Object.assign(m, proto);
|
|
6758
6678
|
if (proto.recurrence) {
|
|
6759
|
-
m.recurrence = enumStringToValue$
|
|
6679
|
+
m.recurrence = enumStringToValue$3(Recurrence, proto.recurrence);
|
|
6760
6680
|
}
|
|
6761
6681
|
if (proto.startTime) {
|
|
6762
6682
|
m.startTime = new Date(proto.startTime);
|
|
6763
6683
|
}
|
|
6764
6684
|
if (proto.repeatOnDays) {
|
|
6765
|
-
m.repeatOnDays = proto.repeatOnDays.map((v) => enumStringToValue$
|
|
6685
|
+
m.repeatOnDays = proto.repeatOnDays.map((v) => enumStringToValue$3(Weekday, v));
|
|
6766
6686
|
}
|
|
6767
6687
|
if (proto.recurrenceEnd) {
|
|
6768
6688
|
m.recurrenceEnd = RecurrenceEnd.fromProto(proto.recurrenceEnd);
|
|
6769
6689
|
}
|
|
6770
6690
|
if (proto.registrationMode) {
|
|
6771
|
-
m.registrationMode = enumStringToValue$
|
|
6691
|
+
m.registrationMode = enumStringToValue$3(RegistrationMode, proto.registrationMode);
|
|
6772
6692
|
}
|
|
6773
6693
|
return m;
|
|
6774
6694
|
}
|
|
@@ -6893,7 +6813,7 @@ class SessionAttendees {
|
|
|
6893
6813
|
m.formAnswers = Answers.fromProto(proto.formAnswers);
|
|
6894
6814
|
}
|
|
6895
6815
|
if (proto.bookingFailureReason) {
|
|
6896
|
-
m.bookingFailureReason = enumStringToValue$
|
|
6816
|
+
m.bookingFailureReason = enumStringToValue$3(BookingFailureReason, proto.bookingFailureReason);
|
|
6897
6817
|
}
|
|
6898
6818
|
return m;
|
|
6899
6819
|
}
|
|
@@ -6943,7 +6863,7 @@ class SetGeneralAvailabilityRequest {
|
|
|
6943
6863
|
let m = new SetGeneralAvailabilityRequest();
|
|
6944
6864
|
m = Object.assign(m, proto);
|
|
6945
6865
|
if (proto.days) {
|
|
6946
|
-
m.days = proto.days.map((v) => enumStringToValue$
|
|
6866
|
+
m.days = proto.days.map((v) => enumStringToValue$3(DayOfWeek, v));
|
|
6947
6867
|
}
|
|
6948
6868
|
if (proto.timeSlot) {
|
|
6949
6869
|
m.timeSlot = TimeRange.fromProto(proto.timeSlot);
|
|
@@ -6990,7 +6910,7 @@ class TimeSlotsByWeekDay {
|
|
|
6990
6910
|
let m = new TimeSlotsByWeekDay();
|
|
6991
6911
|
m = Object.assign(m, proto);
|
|
6992
6912
|
if (proto.day) {
|
|
6993
|
-
m.day = enumStringToValue$
|
|
6913
|
+
m.day = enumStringToValue$3(DayOfWeek, proto.day);
|
|
6994
6914
|
}
|
|
6995
6915
|
if (proto.timeSlot) {
|
|
6996
6916
|
m.timeSlot = proto.timeSlot.map(TimeRange.fromProto);
|
|
@@ -7231,7 +7151,7 @@ class WeekdayAvailability {
|
|
|
7231
7151
|
let m = new WeekdayAvailability();
|
|
7232
7152
|
m = Object.assign(m, proto);
|
|
7233
7153
|
if (proto.day) {
|
|
7234
|
-
m.day = enumStringToValue$
|
|
7154
|
+
m.day = enumStringToValue$3(DayOfWeek, proto.day);
|
|
7235
7155
|
}
|
|
7236
7156
|
if (proto.timeSlots) {
|
|
7237
7157
|
m.timeSlots = proto.timeSlots.map(TimeRange.fromProto);
|
|
@@ -7256,7 +7176,7 @@ class WeekdayAvailability {
|
|
|
7256
7176
|
}
|
|
7257
7177
|
}
|
|
7258
7178
|
|
|
7259
|
-
function enumStringToValue(enumRef, value) {
|
|
7179
|
+
function enumStringToValue$2(enumRef, value) {
|
|
7260
7180
|
if (typeof value === 'number') {
|
|
7261
7181
|
return value;
|
|
7262
7182
|
}
|
|
@@ -7306,6 +7226,119 @@ class MCPOptions {
|
|
|
7306
7226
|
}
|
|
7307
7227
|
}
|
|
7308
7228
|
|
|
7229
|
+
function enumStringToValue$1(enumRef, value) {
|
|
7230
|
+
if (typeof value === 'number') {
|
|
7231
|
+
return value;
|
|
7232
|
+
}
|
|
7233
|
+
return enumRef[value];
|
|
7234
|
+
}
|
|
7235
|
+
class TimeOfDay {
|
|
7236
|
+
static fromProto(proto) {
|
|
7237
|
+
let m = new TimeOfDay();
|
|
7238
|
+
m = Object.assign(m, proto);
|
|
7239
|
+
return m;
|
|
7240
|
+
}
|
|
7241
|
+
constructor(kwargs) {
|
|
7242
|
+
if (!kwargs) {
|
|
7243
|
+
return;
|
|
7244
|
+
}
|
|
7245
|
+
Object.assign(this, kwargs);
|
|
7246
|
+
}
|
|
7247
|
+
toApiJson() {
|
|
7248
|
+
const toReturn = {};
|
|
7249
|
+
if (typeof this.hours !== 'undefined') {
|
|
7250
|
+
toReturn['hours'] = this.hours;
|
|
7251
|
+
}
|
|
7252
|
+
if (typeof this.minutes !== 'undefined') {
|
|
7253
|
+
toReturn['minutes'] = this.minutes;
|
|
7254
|
+
}
|
|
7255
|
+
if (typeof this.seconds !== 'undefined') {
|
|
7256
|
+
toReturn['seconds'] = this.seconds;
|
|
7257
|
+
}
|
|
7258
|
+
if (typeof this.nanos !== 'undefined') {
|
|
7259
|
+
toReturn['nanos'] = this.nanos;
|
|
7260
|
+
}
|
|
7261
|
+
return toReturn;
|
|
7262
|
+
}
|
|
7263
|
+
}
|
|
7264
|
+
|
|
7265
|
+
function enumStringToValue(enumRef, value) {
|
|
7266
|
+
if (typeof value === 'number') {
|
|
7267
|
+
return value;
|
|
7268
|
+
}
|
|
7269
|
+
return enumRef[value];
|
|
7270
|
+
}
|
|
7271
|
+
class DateTime {
|
|
7272
|
+
static fromProto(proto) {
|
|
7273
|
+
let m = new DateTime();
|
|
7274
|
+
m = Object.assign(m, proto);
|
|
7275
|
+
if (proto.timeZone) {
|
|
7276
|
+
m.timeZone = TimeZone.fromProto(proto.timeZone);
|
|
7277
|
+
}
|
|
7278
|
+
return m;
|
|
7279
|
+
}
|
|
7280
|
+
constructor(kwargs) {
|
|
7281
|
+
if (!kwargs) {
|
|
7282
|
+
return;
|
|
7283
|
+
}
|
|
7284
|
+
Object.assign(this, kwargs);
|
|
7285
|
+
}
|
|
7286
|
+
toApiJson() {
|
|
7287
|
+
const toReturn = {};
|
|
7288
|
+
if (typeof this.year !== 'undefined') {
|
|
7289
|
+
toReturn['year'] = this.year;
|
|
7290
|
+
}
|
|
7291
|
+
if (typeof this.month !== 'undefined') {
|
|
7292
|
+
toReturn['month'] = this.month;
|
|
7293
|
+
}
|
|
7294
|
+
if (typeof this.day !== 'undefined') {
|
|
7295
|
+
toReturn['day'] = this.day;
|
|
7296
|
+
}
|
|
7297
|
+
if (typeof this.hours !== 'undefined') {
|
|
7298
|
+
toReturn['hours'] = this.hours;
|
|
7299
|
+
}
|
|
7300
|
+
if (typeof this.minutes !== 'undefined') {
|
|
7301
|
+
toReturn['minutes'] = this.minutes;
|
|
7302
|
+
}
|
|
7303
|
+
if (typeof this.seconds !== 'undefined') {
|
|
7304
|
+
toReturn['seconds'] = this.seconds;
|
|
7305
|
+
}
|
|
7306
|
+
if (typeof this.nanos !== 'undefined') {
|
|
7307
|
+
toReturn['nanos'] = this.nanos;
|
|
7308
|
+
}
|
|
7309
|
+
if (typeof this.utcOffset !== 'undefined') {
|
|
7310
|
+
toReturn['utcOffset'] = this.utcOffset;
|
|
7311
|
+
}
|
|
7312
|
+
if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
|
|
7313
|
+
toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
|
|
7314
|
+
}
|
|
7315
|
+
return toReturn;
|
|
7316
|
+
}
|
|
7317
|
+
}
|
|
7318
|
+
class TimeZone {
|
|
7319
|
+
static fromProto(proto) {
|
|
7320
|
+
let m = new TimeZone();
|
|
7321
|
+
m = Object.assign(m, proto);
|
|
7322
|
+
return m;
|
|
7323
|
+
}
|
|
7324
|
+
constructor(kwargs) {
|
|
7325
|
+
if (!kwargs) {
|
|
7326
|
+
return;
|
|
7327
|
+
}
|
|
7328
|
+
Object.assign(this, kwargs);
|
|
7329
|
+
}
|
|
7330
|
+
toApiJson() {
|
|
7331
|
+
const toReturn = {};
|
|
7332
|
+
if (typeof this.id !== 'undefined') {
|
|
7333
|
+
toReturn['id'] = this.id;
|
|
7334
|
+
}
|
|
7335
|
+
if (typeof this.version !== 'undefined') {
|
|
7336
|
+
toReturn['version'] = this.version;
|
|
7337
|
+
}
|
|
7338
|
+
return toReturn;
|
|
7339
|
+
}
|
|
7340
|
+
}
|
|
7341
|
+
|
|
7309
7342
|
// *********************************
|
|
7310
7343
|
|
|
7311
7344
|
var _a;
|
|
@@ -7334,9 +7367,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
|
|
|
7334
7367
|
|
|
7335
7368
|
// *********************************
|
|
7336
7369
|
class MeetingSourceAPIApiService {
|
|
7337
|
-
constructor(
|
|
7338
|
-
this.
|
|
7339
|
-
this.
|
|
7370
|
+
constructor() {
|
|
7371
|
+
this.hostService = inject(HostService$1);
|
|
7372
|
+
this.http = inject(HttpClient);
|
|
7340
7373
|
this._host = this.hostService.hostWithScheme;
|
|
7341
7374
|
}
|
|
7342
7375
|
apiOptions() {
|
|
@@ -7353,18 +7386,18 @@ class MeetingSourceAPIApiService {
|
|
|
7353
7386
|
.pipe(map(resp => MeetingSourceListResponse.fromProto(resp)));
|
|
7354
7387
|
}
|
|
7355
7388
|
}
|
|
7356
|
-
MeetingSourceAPIApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, deps: [
|
|
7389
|
+
MeetingSourceAPIApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7357
7390
|
MeetingSourceAPIApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, providedIn: 'root' });
|
|
7358
7391
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, decorators: [{
|
|
7359
7392
|
type: Injectable,
|
|
7360
7393
|
args: [{ providedIn: 'root' }]
|
|
7361
|
-
}]
|
|
7394
|
+
}] });
|
|
7362
7395
|
|
|
7363
7396
|
// *********************************
|
|
7364
7397
|
class ZoomApiService {
|
|
7365
|
-
constructor(
|
|
7366
|
-
this.
|
|
7367
|
-
this.
|
|
7398
|
+
constructor() {
|
|
7399
|
+
this.hostService = inject(HostService$1);
|
|
7400
|
+
this.http = inject(HttpClient);
|
|
7368
7401
|
this._host = this.hostService.hostWithScheme;
|
|
7369
7402
|
}
|
|
7370
7403
|
apiOptions() {
|
|
@@ -7381,18 +7414,18 @@ class ZoomApiService {
|
|
|
7381
7414
|
.pipe(map(resp => CreateZoomMeetingResponse.fromProto(resp)));
|
|
7382
7415
|
}
|
|
7383
7416
|
}
|
|
7384
|
-
ZoomApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, deps: [
|
|
7417
|
+
ZoomApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7385
7418
|
ZoomApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, providedIn: 'root' });
|
|
7386
7419
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, decorators: [{
|
|
7387
7420
|
type: Injectable,
|
|
7388
7421
|
args: [{ providedIn: 'root' }]
|
|
7389
|
-
}]
|
|
7422
|
+
}] });
|
|
7390
7423
|
|
|
7391
7424
|
// *********************************
|
|
7392
7425
|
class GoogleMeetApiService {
|
|
7393
|
-
constructor(
|
|
7394
|
-
this.
|
|
7395
|
-
this.
|
|
7426
|
+
constructor() {
|
|
7427
|
+
this.hostService = inject(HostService$1);
|
|
7428
|
+
this.http = inject(HttpClient);
|
|
7396
7429
|
this._host = this.hostService.hostWithScheme;
|
|
7397
7430
|
}
|
|
7398
7431
|
apiOptions() {
|
|
@@ -7414,12 +7447,12 @@ class GoogleMeetApiService {
|
|
|
7414
7447
|
.pipe(map(resp => GoogleMeetListMeetingsResponse.fromProto(resp)));
|
|
7415
7448
|
}
|
|
7416
7449
|
}
|
|
7417
|
-
GoogleMeetApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, deps: [
|
|
7450
|
+
GoogleMeetApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7418
7451
|
GoogleMeetApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, providedIn: 'root' });
|
|
7419
7452
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, decorators: [{
|
|
7420
7453
|
type: Injectable,
|
|
7421
7454
|
args: [{ providedIn: 'root' }]
|
|
7422
|
-
}]
|
|
7455
|
+
}] });
|
|
7423
7456
|
|
|
7424
7457
|
function generateMeetingPassword() {
|
|
7425
7458
|
const zoomMaxLength = 10;
|
|
@@ -7870,9 +7903,9 @@ class PagedResponse {
|
|
|
7870
7903
|
|
|
7871
7904
|
// *********************************
|
|
7872
7905
|
class MeetingExternalApiService {
|
|
7873
|
-
constructor(
|
|
7874
|
-
this.
|
|
7875
|
-
this.
|
|
7906
|
+
constructor() {
|
|
7907
|
+
this.hostService = inject(HostService$1);
|
|
7908
|
+
this.http = inject(HttpClient);
|
|
7876
7909
|
this._host = this.hostService.hostWithScheme;
|
|
7877
7910
|
}
|
|
7878
7911
|
apiOptions() {
|
|
@@ -7928,18 +7961,18 @@ class MeetingExternalApiService {
|
|
|
7928
7961
|
.pipe(map(resp => ListUserEventTypesResponse.fromProto(resp)));
|
|
7929
7962
|
}
|
|
7930
7963
|
}
|
|
7931
|
-
MeetingExternalApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingExternalApiService, deps: [
|
|
7964
|
+
MeetingExternalApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingExternalApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7932
7965
|
MeetingExternalApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingExternalApiService, providedIn: 'root' });
|
|
7933
7966
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingExternalApiService, decorators: [{
|
|
7934
7967
|
type: Injectable,
|
|
7935
7968
|
args: [{ providedIn: 'root' }]
|
|
7936
|
-
}]
|
|
7969
|
+
}] });
|
|
7937
7970
|
|
|
7938
7971
|
// *********************************
|
|
7939
7972
|
class MeetingGuestApiService {
|
|
7940
|
-
constructor(
|
|
7941
|
-
this.
|
|
7942
|
-
this.
|
|
7973
|
+
constructor() {
|
|
7974
|
+
this.hostService = inject(HostService$1);
|
|
7975
|
+
this.http = inject(HttpClient);
|
|
7943
7976
|
this._host = this.hostService.hostWithScheme;
|
|
7944
7977
|
}
|
|
7945
7978
|
apiOptions() {
|
|
@@ -8042,18 +8075,18 @@ class MeetingGuestApiService {
|
|
|
8042
8075
|
.pipe(map(resp => CheckFeatureFlagResponse.fromProto(resp)));
|
|
8043
8076
|
}
|
|
8044
8077
|
}
|
|
8045
|
-
MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, deps: [
|
|
8078
|
+
MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8046
8079
|
MeetingGuestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, providedIn: 'root' });
|
|
8047
8080
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, decorators: [{
|
|
8048
8081
|
type: Injectable,
|
|
8049
8082
|
args: [{ providedIn: 'root' }]
|
|
8050
|
-
}]
|
|
8083
|
+
}] });
|
|
8051
8084
|
|
|
8052
8085
|
// *********************************
|
|
8053
8086
|
class MeetingHostApiService {
|
|
8054
|
-
constructor(
|
|
8055
|
-
this.
|
|
8056
|
-
this.
|
|
8087
|
+
constructor() {
|
|
8088
|
+
this.hostService = inject(HostService$1);
|
|
8089
|
+
this.http = inject(HttpClient);
|
|
8057
8090
|
this._host = this.hostService.hostWithScheme;
|
|
8058
8091
|
}
|
|
8059
8092
|
apiOptions() {
|
|
@@ -8319,13 +8352,18 @@ class MeetingHostApiService {
|
|
|
8319
8352
|
return this.http.post(this._host + "/meetings.v1.MeetingHost/ListAvailableTimeslotsForRecurringSession", request.toApiJson(), this.apiOptions())
|
|
8320
8353
|
.pipe(map(resp => ListAvailableTimeslotsForRecurringSessionResponse.fromProto(resp)));
|
|
8321
8354
|
}
|
|
8355
|
+
getEventTypeById(r) {
|
|
8356
|
+
const request = (r.toApiJson) ? r : new GetEventTypeByIdRequest(r);
|
|
8357
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/GetEventTypeById", request.toApiJson(), this.apiOptions())
|
|
8358
|
+
.pipe(map(resp => GetEventTypeByIdResponse.fromProto(resp)));
|
|
8359
|
+
}
|
|
8322
8360
|
}
|
|
8323
|
-
MeetingHostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, deps: [
|
|
8361
|
+
MeetingHostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8324
8362
|
MeetingHostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, providedIn: 'root' });
|
|
8325
8363
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, decorators: [{
|
|
8326
8364
|
type: Injectable,
|
|
8327
8365
|
args: [{ providedIn: 'root' }]
|
|
8328
|
-
}]
|
|
8366
|
+
}] });
|
|
8329
8367
|
|
|
8330
8368
|
// *********************************
|
|
8331
8369
|
|
|
@@ -8343,6 +8381,7 @@ function CalendarFromApi(calendarAPI) {
|
|
|
8343
8381
|
hostUserIds: calendarAPI.hostUserIds || [],
|
|
8344
8382
|
applicationContext: calendarAPI.applicationContext || {},
|
|
8345
8383
|
encodedApplicationContext: '',
|
|
8384
|
+
businessName: calendarAPI.businessName || '',
|
|
8346
8385
|
};
|
|
8347
8386
|
}
|
|
8348
8387
|
// From meetings/internal/meetingscheduler/calendar/model.go
|
|
@@ -8756,7 +8795,7 @@ class HostService {
|
|
|
8756
8795
|
@param metadata: optional metadata to include on the meeting type booking link
|
|
8757
8796
|
@param calendarSlug: used to replace hostId in the url. Use it when you are confident you know the host's slug.
|
|
8758
8797
|
- calendarSlug IS NOT USED TO RETRIEVE MEETING TYPES, ONLY TO MAKE THE BOOKING URLS
|
|
8759
|
-
|
|
8798
|
+
*/
|
|
8760
8799
|
listMeetingTypes(req) {
|
|
8761
8800
|
return this.hostAPIService.listMeetingTypes(req).pipe(map((resp) => {
|
|
8762
8801
|
if (!resp || !resp.meetingTypes) {
|
|
@@ -8775,6 +8814,31 @@ class HostService {
|
|
|
8775
8814
|
});
|
|
8776
8815
|
}));
|
|
8777
8816
|
}
|
|
8817
|
+
/*
|
|
8818
|
+
getEventTypeById returns a single meeting type by ID.
|
|
8819
|
+
@param eventTypeId: The unique identifier for the event type
|
|
8820
|
+
@param metadata: optional metadata to include on the meeting type booking link
|
|
8821
|
+
@param calendarSlug: used to replace hostId in the url. Use it when you are confident you know the host's slug.
|
|
8822
|
+
- calendarSlug IS NOT USED TO RETRIEVE THE EVENT TYPE, ONLY TO MAKE THE BOOKING URL
|
|
8823
|
+
*/
|
|
8824
|
+
getEventTypeById(req) {
|
|
8825
|
+
return this.hostAPIService
|
|
8826
|
+
.getEventTypeById({ eventTypeId: req.eventTypeId })
|
|
8827
|
+
.pipe(map((resp) => {
|
|
8828
|
+
if (!resp.meetingType) {
|
|
8829
|
+
return null;
|
|
8830
|
+
}
|
|
8831
|
+
return MeetingTypeFromApi({
|
|
8832
|
+
meetingTypeApi: resp.meetingType,
|
|
8833
|
+
calendarId: resp.meetingType.calendarId || "",
|
|
8834
|
+
environment: onProductionGlobal()
|
|
8835
|
+
? Environment.PROD
|
|
8836
|
+
: Environment.DEMO,
|
|
8837
|
+
metadata: req.metadata,
|
|
8838
|
+
calendarSlug: req.calendarSlug,
|
|
8839
|
+
});
|
|
8840
|
+
}));
|
|
8841
|
+
}
|
|
8778
8842
|
/*
|
|
8779
8843
|
getBookingUrl returns a link that can be used to book a meeting with this host.
|
|
8780
8844
|
@param calendarId: An identifier for an individual host or grouping of hosts (i.e., team).
|