@vendasta/meetings 0.99.1 → 0.99.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/google-meet.api.service.mjs +7 -2
- package/esm2020/lib/_internal/index.mjs +1 -2
- package/esm2020/lib/_internal/interfaces/google-meet.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-type.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/shared.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/google-meet.mjs +109 -1
- package/esm2020/lib/_internal/objects/index.mjs +3 -4
- package/esm2020/lib/_internal/objects/meeting-guest.mjs +33 -1
- package/esm2020/lib/_internal/objects/meeting-type.mjs +16 -1
- package/esm2020/lib/_internal/objects/shared.mjs +4 -1
- package/esm2020/lib/guest/guest.service.mjs +1 -1
- package/esm2020/lib/index.mjs +1 -2
- package/esm2020/lib/shared/host-user.mjs +3 -2
- package/esm2020/lib/shared/meeting-type.mjs +8 -2
- package/fesm2015/vendasta-meetings.mjs +499 -411
- package/fesm2015/vendasta-meetings.mjs.map +1 -1
- package/fesm2020/vendasta-meetings.mjs +211 -123
- package/fesm2020/vendasta-meetings.mjs.map +1 -1
- package/lib/_internal/google-meet.api.service.d.ts +3 -2
- package/lib/_internal/index.d.ts +0 -1
- package/lib/_internal/interfaces/google-meet.interface.d.ts +20 -0
- package/lib/_internal/interfaces/index.d.ts +2 -3
- package/lib/_internal/interfaces/meeting-guest.interface.d.ts +6 -0
- package/lib/_internal/interfaces/meeting-type.interface.d.ts +3 -0
- package/lib/_internal/interfaces/shared.interface.d.ts +1 -0
- package/lib/_internal/objects/google-meet.d.ts +29 -0
- package/lib/_internal/objects/index.d.ts +2 -3
- package/lib/_internal/objects/meeting-guest.d.ts +9 -0
- package/lib/_internal/objects/meeting-type.d.ts +3 -0
- package/lib/_internal/objects/shared.d.ts +1 -0
- package/lib/index.d.ts +0 -1
- package/lib/shared/host-user.d.ts +1 -0
- package/lib/shared/meeting-type.d.ts +3 -0
- package/package.json +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-bot.interface.mjs +0 -8
- package/esm2020/lib/_internal/meeting-bot-api.api.service.mjs +0 -38
- package/esm2020/lib/_internal/objects/meeting-bot.mjs +0 -36
- package/esm2020/lib/meeting-bot.service.mjs +0 -24
- package/lib/_internal/interfaces/meeting-bot.interface.d.ts +0 -5
- package/lib/_internal/meeting-bot-api.api.service.d.ts +0 -14
- package/lib/_internal/objects/meeting-bot.d.ts +0 -10
- package/lib/meeting-bot.service.d.ts +0 -10
|
@@ -178,7 +178,7 @@ var DayOfWeek;
|
|
|
178
178
|
|
|
179
179
|
// *********************************
|
|
180
180
|
|
|
181
|
-
function enumStringToValue$
|
|
181
|
+
function enumStringToValue$b(enumRef, value) {
|
|
182
182
|
if (typeof value === 'number') {
|
|
183
183
|
return value;
|
|
184
184
|
}
|
|
@@ -189,10 +189,10 @@ class MeetingSourceInfo {
|
|
|
189
189
|
let m = new MeetingSourceInfo();
|
|
190
190
|
m = Object.assign(m, proto);
|
|
191
191
|
if (proto.source) {
|
|
192
|
-
m.source = enumStringToValue$
|
|
192
|
+
m.source = enumStringToValue$b(MeetingSource, proto.source);
|
|
193
193
|
}
|
|
194
194
|
if (proto.status) {
|
|
195
|
-
m.status = enumStringToValue$
|
|
195
|
+
m.status = enumStringToValue$b(MeetingSourceStatus, proto.status);
|
|
196
196
|
}
|
|
197
197
|
return m;
|
|
198
198
|
}
|
|
@@ -282,7 +282,7 @@ class MeetingSourceQuery {
|
|
|
282
282
|
let m = new MeetingSourceQuery();
|
|
283
283
|
m = Object.assign(m, proto);
|
|
284
284
|
if (proto.source) {
|
|
285
|
-
m.source = enumStringToValue$
|
|
285
|
+
m.source = enumStringToValue$b(MeetingSource, proto.source);
|
|
286
286
|
}
|
|
287
287
|
return m;
|
|
288
288
|
}
|
|
@@ -307,7 +307,7 @@ class MeetingSourceQuery {
|
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
function enumStringToValue$
|
|
310
|
+
function enumStringToValue$a(enumRef, value) {
|
|
311
311
|
if (typeof value === 'number') {
|
|
312
312
|
return value;
|
|
313
313
|
}
|
|
@@ -318,7 +318,7 @@ class CreateZoomMeetingRequest {
|
|
|
318
318
|
let m = new CreateZoomMeetingRequest();
|
|
319
319
|
m = Object.assign(m, proto);
|
|
320
320
|
if (proto.type) {
|
|
321
|
-
m.type = enumStringToValue$
|
|
321
|
+
m.type = enumStringToValue$a(ZoomMeetingType, proto.type);
|
|
322
322
|
}
|
|
323
323
|
if (proto.duration) {
|
|
324
324
|
m.duration = parseInt(proto.duration, 10);
|
|
@@ -386,7 +386,7 @@ class CreateZoomMeetingResponse {
|
|
|
386
386
|
m.meetingId = parseInt(proto.meetingId, 10);
|
|
387
387
|
}
|
|
388
388
|
if (proto.type) {
|
|
389
|
-
m.type = enumStringToValue$
|
|
389
|
+
m.type = enumStringToValue$a(ZoomMeetingType, proto.type);
|
|
390
390
|
}
|
|
391
391
|
if (proto.duration) {
|
|
392
392
|
m.duration = parseInt(proto.duration, 10);
|
|
@@ -478,7 +478,7 @@ class ZoomMeetingRecurrence {
|
|
|
478
478
|
let m = new ZoomMeetingRecurrence();
|
|
479
479
|
m = Object.assign(m, proto);
|
|
480
480
|
if (proto.type) {
|
|
481
|
-
m.type = enumStringToValue$
|
|
481
|
+
m.type = enumStringToValue$a(ZoomMeetingRecurrenceType, proto.type);
|
|
482
482
|
}
|
|
483
483
|
if (proto.repeatInterval) {
|
|
484
484
|
m.repeatInterval = parseInt(proto.repeatInterval, 10);
|
|
@@ -487,10 +487,10 @@ class ZoomMeetingRecurrence {
|
|
|
487
487
|
m.monthlyDay = parseInt(proto.monthlyDay, 10);
|
|
488
488
|
}
|
|
489
489
|
if (proto.monthlyWeek) {
|
|
490
|
-
m.monthlyWeek = enumStringToValue$
|
|
490
|
+
m.monthlyWeek = enumStringToValue$a(ZoomMonthlyWeek, proto.monthlyWeek);
|
|
491
491
|
}
|
|
492
492
|
if (proto.monthlyWeekDay) {
|
|
493
|
-
m.monthlyWeekDay = enumStringToValue$
|
|
493
|
+
m.monthlyWeekDay = enumStringToValue$a(ZoomMonthlyWeekDay, proto.monthlyWeekDay);
|
|
494
494
|
}
|
|
495
495
|
if (proto.endTimes) {
|
|
496
496
|
m.endTimes = parseInt(proto.endTimes, 10);
|
|
@@ -537,10 +537,10 @@ class ZoomMeetingSettings {
|
|
|
537
537
|
let m = new ZoomMeetingSettings();
|
|
538
538
|
m = Object.assign(m, proto);
|
|
539
539
|
if (proto.approvalType) {
|
|
540
|
-
m.approvalType = enumStringToValue$
|
|
540
|
+
m.approvalType = enumStringToValue$a(ZoomApprovalType, proto.approvalType);
|
|
541
541
|
}
|
|
542
542
|
if (proto.registrationType) {
|
|
543
|
-
m.registrationType = enumStringToValue$
|
|
543
|
+
m.registrationType = enumStringToValue$a(ZoomRegistrationType, proto.registrationType);
|
|
544
544
|
}
|
|
545
545
|
return m;
|
|
546
546
|
}
|
|
@@ -683,7 +683,7 @@ class ZoomOccurrence {
|
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
685
|
|
|
686
|
-
function enumStringToValue$
|
|
686
|
+
function enumStringToValue$9(enumRef, value) {
|
|
687
687
|
if (typeof value === 'number') {
|
|
688
688
|
return value;
|
|
689
689
|
}
|
|
@@ -936,6 +936,79 @@ class GoogleMeetEntryPoint {
|
|
|
936
936
|
return toReturn;
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
|
+
class GoogleMeetListMeetingsRequest {
|
|
940
|
+
static fromProto(proto) {
|
|
941
|
+
let m = new GoogleMeetListMeetingsRequest();
|
|
942
|
+
m = Object.assign(m, proto);
|
|
943
|
+
if (proto.pageSize) {
|
|
944
|
+
m.pageSize = parseInt(proto.pageSize, 10);
|
|
945
|
+
}
|
|
946
|
+
if (proto.timeMin) {
|
|
947
|
+
m.timeMin = new Date(proto.timeMin);
|
|
948
|
+
}
|
|
949
|
+
if (proto.timeMax) {
|
|
950
|
+
m.timeMax = new Date(proto.timeMax);
|
|
951
|
+
}
|
|
952
|
+
return m;
|
|
953
|
+
}
|
|
954
|
+
constructor(kwargs) {
|
|
955
|
+
if (!kwargs) {
|
|
956
|
+
return;
|
|
957
|
+
}
|
|
958
|
+
Object.assign(this, kwargs);
|
|
959
|
+
}
|
|
960
|
+
toApiJson() {
|
|
961
|
+
const toReturn = {};
|
|
962
|
+
if (typeof this.userId !== 'undefined') {
|
|
963
|
+
toReturn['userId'] = this.userId;
|
|
964
|
+
}
|
|
965
|
+
if (typeof this.pageSize !== 'undefined') {
|
|
966
|
+
toReturn['pageSize'] = this.pageSize;
|
|
967
|
+
}
|
|
968
|
+
if (typeof this.pageToken !== 'undefined') {
|
|
969
|
+
toReturn['pageToken'] = this.pageToken;
|
|
970
|
+
}
|
|
971
|
+
if (typeof this.syncToken !== 'undefined') {
|
|
972
|
+
toReturn['syncToken'] = this.syncToken;
|
|
973
|
+
}
|
|
974
|
+
if (typeof this.timeMin !== 'undefined' && this.timeMin !== null) {
|
|
975
|
+
toReturn['timeMin'] = 'toApiJson' in this.timeMin ? this.timeMin.toApiJson() : this.timeMin;
|
|
976
|
+
}
|
|
977
|
+
if (typeof this.timeMax !== 'undefined' && this.timeMax !== null) {
|
|
978
|
+
toReturn['timeMax'] = 'toApiJson' in this.timeMax ? this.timeMax.toApiJson() : this.timeMax;
|
|
979
|
+
}
|
|
980
|
+
return toReturn;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
class GoogleMeetListMeetingsResponse {
|
|
984
|
+
static fromProto(proto) {
|
|
985
|
+
let m = new GoogleMeetListMeetingsResponse();
|
|
986
|
+
m = Object.assign(m, proto);
|
|
987
|
+
if (proto.meetings) {
|
|
988
|
+
m.meetings = proto.meetings.map(GoogleMeetMeeting.fromProto);
|
|
989
|
+
}
|
|
990
|
+
return m;
|
|
991
|
+
}
|
|
992
|
+
constructor(kwargs) {
|
|
993
|
+
if (!kwargs) {
|
|
994
|
+
return;
|
|
995
|
+
}
|
|
996
|
+
Object.assign(this, kwargs);
|
|
997
|
+
}
|
|
998
|
+
toApiJson() {
|
|
999
|
+
const toReturn = {};
|
|
1000
|
+
if (typeof this.meetings !== 'undefined' && this.meetings !== null) {
|
|
1001
|
+
toReturn['meetings'] = 'toApiJson' in this.meetings ? this.meetings.toApiJson() : this.meetings;
|
|
1002
|
+
}
|
|
1003
|
+
if (typeof this.nextPageToken !== 'undefined') {
|
|
1004
|
+
toReturn['nextPageToken'] = this.nextPageToken;
|
|
1005
|
+
}
|
|
1006
|
+
if (typeof this.nextSyncToken !== 'undefined') {
|
|
1007
|
+
toReturn['nextSyncToken'] = this.nextSyncToken;
|
|
1008
|
+
}
|
|
1009
|
+
return toReturn;
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
939
1012
|
class GoogleMeetMeeting {
|
|
940
1013
|
static fromProto(proto) {
|
|
941
1014
|
let m = new GoogleMeetMeeting();
|
|
@@ -964,6 +1037,9 @@ class GoogleMeetMeeting {
|
|
|
964
1037
|
if (proto.creator) {
|
|
965
1038
|
m.creator = GoogleMeetMeetingCreator.fromProto(proto.creator);
|
|
966
1039
|
}
|
|
1040
|
+
if (proto.organizer) {
|
|
1041
|
+
m.organizer = GoogleMeetMeetingOrganizer.fromProto(proto.organizer);
|
|
1042
|
+
}
|
|
967
1043
|
return m;
|
|
968
1044
|
}
|
|
969
1045
|
constructor(kwargs) {
|
|
@@ -1061,6 +1137,9 @@ class GoogleMeetMeeting {
|
|
|
1061
1137
|
if (typeof this.updated !== 'undefined') {
|
|
1062
1138
|
toReturn['updated'] = this.updated;
|
|
1063
1139
|
}
|
|
1140
|
+
if (typeof this.organizer !== 'undefined' && this.organizer !== null) {
|
|
1141
|
+
toReturn['organizer'] = 'toApiJson' in this.organizer ? this.organizer.toApiJson() : this.organizer;
|
|
1142
|
+
}
|
|
1064
1143
|
return toReturn;
|
|
1065
1144
|
}
|
|
1066
1145
|
}
|
|
@@ -1169,6 +1248,35 @@ class GoogleMeetMeetingDateTime {
|
|
|
1169
1248
|
return toReturn;
|
|
1170
1249
|
}
|
|
1171
1250
|
}
|
|
1251
|
+
class GoogleMeetMeetingOrganizer {
|
|
1252
|
+
static fromProto(proto) {
|
|
1253
|
+
let m = new GoogleMeetMeetingOrganizer();
|
|
1254
|
+
m = Object.assign(m, proto);
|
|
1255
|
+
return m;
|
|
1256
|
+
}
|
|
1257
|
+
constructor(kwargs) {
|
|
1258
|
+
if (!kwargs) {
|
|
1259
|
+
return;
|
|
1260
|
+
}
|
|
1261
|
+
Object.assign(this, kwargs);
|
|
1262
|
+
}
|
|
1263
|
+
toApiJson() {
|
|
1264
|
+
const toReturn = {};
|
|
1265
|
+
if (typeof this.displayName !== 'undefined') {
|
|
1266
|
+
toReturn['displayName'] = this.displayName;
|
|
1267
|
+
}
|
|
1268
|
+
if (typeof this.email !== 'undefined') {
|
|
1269
|
+
toReturn['email'] = this.email;
|
|
1270
|
+
}
|
|
1271
|
+
if (typeof this.id !== 'undefined') {
|
|
1272
|
+
toReturn['id'] = this.id;
|
|
1273
|
+
}
|
|
1274
|
+
if (typeof this.self !== 'undefined') {
|
|
1275
|
+
toReturn['self'] = this.self;
|
|
1276
|
+
}
|
|
1277
|
+
return toReturn;
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1172
1280
|
class GoogleMeetMeetingReminder {
|
|
1173
1281
|
static fromProto(proto) {
|
|
1174
1282
|
let m = new GoogleMeetMeetingReminder();
|
|
@@ -1222,7 +1330,7 @@ class GoogleMeetMeetingReminders {
|
|
|
1222
1330
|
}
|
|
1223
1331
|
}
|
|
1224
1332
|
|
|
1225
|
-
function enumStringToValue$
|
|
1333
|
+
function enumStringToValue$8(enumRef, value) {
|
|
1226
1334
|
if (typeof value === 'number') {
|
|
1227
1335
|
return value;
|
|
1228
1336
|
}
|
|
@@ -1233,7 +1341,7 @@ class Answer {
|
|
|
1233
1341
|
let m = new Answer();
|
|
1234
1342
|
m = Object.assign(m, proto);
|
|
1235
1343
|
if (proto.type) {
|
|
1236
|
-
m.type = enumStringToValue$
|
|
1344
|
+
m.type = enumStringToValue$8(FormFieldType, proto.type);
|
|
1237
1345
|
}
|
|
1238
1346
|
return m;
|
|
1239
1347
|
}
|
|
@@ -1375,7 +1483,7 @@ class Calendar {
|
|
|
1375
1483
|
m.applicationContext = Object.keys(proto.applicationContext).reduce((obj, k) => { obj[k] = proto.applicationContext[k]; return obj; }, {});
|
|
1376
1484
|
}
|
|
1377
1485
|
if (proto.calendarType) {
|
|
1378
|
-
m.calendarType = enumStringToValue$
|
|
1486
|
+
m.calendarType = enumStringToValue$8(CalendarType, proto.calendarType);
|
|
1379
1487
|
}
|
|
1380
1488
|
return m;
|
|
1381
1489
|
}
|
|
@@ -1516,6 +1624,9 @@ class HostUser {
|
|
|
1516
1624
|
if (typeof this.isConfigured !== 'undefined') {
|
|
1517
1625
|
toReturn['isConfigured'] = this.isConfigured;
|
|
1518
1626
|
}
|
|
1627
|
+
if (typeof this.isConnected !== 'undefined') {
|
|
1628
|
+
toReturn['isConnected'] = this.isConnected;
|
|
1629
|
+
}
|
|
1519
1630
|
return toReturn;
|
|
1520
1631
|
}
|
|
1521
1632
|
}
|
|
@@ -1576,7 +1687,7 @@ class Preferences {
|
|
|
1576
1687
|
m.timezone = TimeZone.fromProto(proto.timezone);
|
|
1577
1688
|
}
|
|
1578
1689
|
if (proto.meetingIntegration) {
|
|
1579
|
-
m.meetingIntegration = enumStringToValue$
|
|
1690
|
+
m.meetingIntegration = enumStringToValue$8(MeetingSource, proto.meetingIntegration);
|
|
1580
1691
|
}
|
|
1581
1692
|
if (proto.availabilityIncrement) {
|
|
1582
1693
|
m.availabilityIncrement = parseInt(proto.availabilityIncrement, 10);
|
|
@@ -1591,10 +1702,10 @@ class Preferences {
|
|
|
1591
1702
|
m.bufferDurationBeforeMeeting = parseInt(proto.bufferDurationBeforeMeeting, 10);
|
|
1592
1703
|
}
|
|
1593
1704
|
if (proto.calendarIntegration) {
|
|
1594
|
-
m.calendarIntegration = enumStringToValue$
|
|
1705
|
+
m.calendarIntegration = enumStringToValue$8(CalendarSource, proto.calendarIntegration);
|
|
1595
1706
|
}
|
|
1596
1707
|
if (proto.onBoardingState) {
|
|
1597
|
-
m.onBoardingState = enumStringToValue$
|
|
1708
|
+
m.onBoardingState = enumStringToValue$8(OnBoardingState, proto.onBoardingState);
|
|
1598
1709
|
}
|
|
1599
1710
|
return m;
|
|
1600
1711
|
}
|
|
@@ -1666,7 +1777,7 @@ class TimeRange {
|
|
|
1666
1777
|
}
|
|
1667
1778
|
}
|
|
1668
1779
|
|
|
1669
|
-
function enumStringToValue$
|
|
1780
|
+
function enumStringToValue$7(enumRef, value) {
|
|
1670
1781
|
if (typeof value === 'number') {
|
|
1671
1782
|
return value;
|
|
1672
1783
|
}
|
|
@@ -1702,7 +1813,7 @@ class DateRange {
|
|
|
1702
1813
|
}
|
|
1703
1814
|
}
|
|
1704
1815
|
|
|
1705
|
-
function enumStringToValue$
|
|
1816
|
+
function enumStringToValue$6(enumRef, value) {
|
|
1706
1817
|
if (typeof value === 'number') {
|
|
1707
1818
|
return value;
|
|
1708
1819
|
}
|
|
@@ -1713,7 +1824,7 @@ class EventTypeDateRange {
|
|
|
1713
1824
|
let m = new EventTypeDateRange();
|
|
1714
1825
|
m = Object.assign(m, proto);
|
|
1715
1826
|
if (proto.dateRangeType) {
|
|
1716
|
-
m.dateRangeType = enumStringToValue$
|
|
1827
|
+
m.dateRangeType = enumStringToValue$6(DateRangeType, proto.dateRangeType);
|
|
1717
1828
|
}
|
|
1718
1829
|
if (proto.customDateRange) {
|
|
1719
1830
|
m.customDateRange = DateRange.fromProto(proto.customDateRange);
|
|
@@ -1748,7 +1859,7 @@ class Field {
|
|
|
1748
1859
|
let m = new Field();
|
|
1749
1860
|
m = Object.assign(m, proto);
|
|
1750
1861
|
if (proto.type) {
|
|
1751
|
-
m.type = enumStringToValue$
|
|
1862
|
+
m.type = enumStringToValue$6(FormFieldType, proto.type);
|
|
1752
1863
|
}
|
|
1753
1864
|
return m;
|
|
1754
1865
|
}
|
|
@@ -1815,7 +1926,7 @@ class MeetingType {
|
|
|
1815
1926
|
m.noticeTime = parseInt(proto.noticeTime, 10);
|
|
1816
1927
|
}
|
|
1817
1928
|
if (proto.locationType) {
|
|
1818
|
-
m.locationType = enumStringToValue$
|
|
1929
|
+
m.locationType = enumStringToValue$6(MeetingLocationType, proto.locationType);
|
|
1819
1930
|
}
|
|
1820
1931
|
if (proto.hostUsers) {
|
|
1821
1932
|
m.hostUsers = proto.hostUsers.map(HostUser.fromProto);
|
|
@@ -1827,7 +1938,13 @@ class MeetingType {
|
|
|
1827
1938
|
m.dateRange = EventTypeDateRange.fromProto(proto.dateRange);
|
|
1828
1939
|
}
|
|
1829
1940
|
if (proto.meetingType) {
|
|
1830
|
-
m.meetingType = enumStringToValue$
|
|
1941
|
+
m.meetingType = enumStringToValue$6(TeamEventMeetingType, proto.meetingType);
|
|
1942
|
+
}
|
|
1943
|
+
if (proto.attendeeCount) {
|
|
1944
|
+
m.attendeeCount = parseInt(proto.attendeeCount, 10);
|
|
1945
|
+
}
|
|
1946
|
+
if (proto.registrationCutoff) {
|
|
1947
|
+
m.registrationCutoff = parseInt(proto.registrationCutoff, 10);
|
|
1831
1948
|
}
|
|
1832
1949
|
return m;
|
|
1833
1950
|
}
|
|
@@ -1923,6 +2040,15 @@ class MeetingType {
|
|
|
1923
2040
|
if (typeof this.meetingType !== 'undefined') {
|
|
1924
2041
|
toReturn['meetingType'] = this.meetingType;
|
|
1925
2042
|
}
|
|
2043
|
+
if (typeof this.attendeeCount !== 'undefined') {
|
|
2044
|
+
toReturn['attendeeCount'] = this.attendeeCount;
|
|
2045
|
+
}
|
|
2046
|
+
if (typeof this.registrationCutoff !== 'undefined') {
|
|
2047
|
+
toReturn['registrationCutoff'] = this.registrationCutoff;
|
|
2048
|
+
}
|
|
2049
|
+
if (typeof this.sessionTitle !== 'undefined') {
|
|
2050
|
+
toReturn['sessionTitle'] = this.sessionTitle;
|
|
2051
|
+
}
|
|
1926
2052
|
return toReturn;
|
|
1927
2053
|
}
|
|
1928
2054
|
}
|
|
@@ -1931,7 +2057,7 @@ class RelativeDateRange {
|
|
|
1931
2057
|
let m = new RelativeDateRange();
|
|
1932
2058
|
m = Object.assign(m, proto);
|
|
1933
2059
|
if (proto.unit) {
|
|
1934
|
-
m.unit = enumStringToValue$
|
|
2060
|
+
m.unit = enumStringToValue$6(RelativeTimeUnit, proto.unit);
|
|
1935
2061
|
}
|
|
1936
2062
|
if (proto.value) {
|
|
1937
2063
|
m.value = parseInt(proto.value, 10);
|
|
@@ -1956,7 +2082,7 @@ class RelativeDateRange {
|
|
|
1956
2082
|
}
|
|
1957
2083
|
}
|
|
1958
2084
|
|
|
1959
|
-
function enumStringToValue$
|
|
2085
|
+
function enumStringToValue$5(enumRef, value) {
|
|
1960
2086
|
if (typeof value === 'number') {
|
|
1961
2087
|
return value;
|
|
1962
2088
|
}
|
|
@@ -2101,7 +2227,7 @@ class Service {
|
|
|
2101
2227
|
}
|
|
2102
2228
|
}
|
|
2103
2229
|
|
|
2104
|
-
function enumStringToValue$
|
|
2230
|
+
function enumStringToValue$4(enumRef, value) {
|
|
2105
2231
|
if (typeof value === 'number') {
|
|
2106
2232
|
return value;
|
|
2107
2233
|
}
|
|
@@ -2494,10 +2620,10 @@ class GuestGetBookedMeetingResponse {
|
|
|
2494
2620
|
m.timeZone = TimeZone.fromProto(proto.timeZone);
|
|
2495
2621
|
}
|
|
2496
2622
|
if (proto.locationType) {
|
|
2497
|
-
m.locationType = enumStringToValue$
|
|
2623
|
+
m.locationType = enumStringToValue$4(MeetingLocationType, proto.locationType);
|
|
2498
2624
|
}
|
|
2499
2625
|
if (proto.meetingType) {
|
|
2500
|
-
m.meetingType = enumStringToValue$
|
|
2626
|
+
m.meetingType = enumStringToValue$4(TeamEventMeetingType, proto.meetingType);
|
|
2501
2627
|
}
|
|
2502
2628
|
return m;
|
|
2503
2629
|
}
|
|
@@ -2620,6 +2746,29 @@ class GuestRescheduleMeetingRequest {
|
|
|
2620
2746
|
return toReturn;
|
|
2621
2747
|
}
|
|
2622
2748
|
}
|
|
2749
|
+
class IsoDateTimeRange {
|
|
2750
|
+
static fromProto(proto) {
|
|
2751
|
+
let m = new IsoDateTimeRange();
|
|
2752
|
+
m = Object.assign(m, proto);
|
|
2753
|
+
return m;
|
|
2754
|
+
}
|
|
2755
|
+
constructor(kwargs) {
|
|
2756
|
+
if (!kwargs) {
|
|
2757
|
+
return;
|
|
2758
|
+
}
|
|
2759
|
+
Object.assign(this, kwargs);
|
|
2760
|
+
}
|
|
2761
|
+
toApiJson() {
|
|
2762
|
+
const toReturn = {};
|
|
2763
|
+
if (typeof this.start !== 'undefined') {
|
|
2764
|
+
toReturn['start'] = this.start;
|
|
2765
|
+
}
|
|
2766
|
+
if (typeof this.end !== 'undefined') {
|
|
2767
|
+
toReturn['end'] = this.end;
|
|
2768
|
+
}
|
|
2769
|
+
return toReturn;
|
|
2770
|
+
}
|
|
2771
|
+
}
|
|
2623
2772
|
class ListAvailableTimeSlotsRequest {
|
|
2624
2773
|
static fromProto(proto) {
|
|
2625
2774
|
let m = new ListAvailableTimeSlotsRequest();
|
|
@@ -2655,6 +2804,9 @@ class ListAvailableTimeSlotsRequest {
|
|
|
2655
2804
|
if (typeof this.userId !== 'undefined') {
|
|
2656
2805
|
toReturn['userId'] = this.userId;
|
|
2657
2806
|
}
|
|
2807
|
+
if (typeof this.useIsoDates !== 'undefined') {
|
|
2808
|
+
toReturn['useIsoDates'] = this.useIsoDates;
|
|
2809
|
+
}
|
|
2658
2810
|
return toReturn;
|
|
2659
2811
|
}
|
|
2660
2812
|
}
|
|
@@ -2665,6 +2817,9 @@ class ListAvailableTimeSlotsResponse {
|
|
|
2665
2817
|
if (proto.timeSlots) {
|
|
2666
2818
|
m.timeSlots = proto.timeSlots.map(DateRange.fromProto);
|
|
2667
2819
|
}
|
|
2820
|
+
if (proto.isoTimeSlots) {
|
|
2821
|
+
m.isoTimeSlots = proto.isoTimeSlots.map(IsoDateTimeRange.fromProto);
|
|
2822
|
+
}
|
|
2668
2823
|
return m;
|
|
2669
2824
|
}
|
|
2670
2825
|
constructor(kwargs) {
|
|
@@ -2678,6 +2833,9 @@ class ListAvailableTimeSlotsResponse {
|
|
|
2678
2833
|
if (typeof this.timeSlots !== 'undefined' && this.timeSlots !== null) {
|
|
2679
2834
|
toReturn['timeSlots'] = 'toApiJson' in this.timeSlots ? this.timeSlots.toApiJson() : this.timeSlots;
|
|
2680
2835
|
}
|
|
2836
|
+
if (typeof this.isoTimeSlots !== 'undefined' && this.isoTimeSlots !== null) {
|
|
2837
|
+
toReturn['isoTimeSlots'] = 'toApiJson' in this.isoTimeSlots ? this.isoTimeSlots.toApiJson() : this.isoTimeSlots;
|
|
2838
|
+
}
|
|
2681
2839
|
return toReturn;
|
|
2682
2840
|
}
|
|
2683
2841
|
}
|
|
@@ -2748,7 +2906,7 @@ class BookMeetingRequestMetadataEntry {
|
|
|
2748
2906
|
}
|
|
2749
2907
|
}
|
|
2750
2908
|
|
|
2751
|
-
function enumStringToValue$
|
|
2909
|
+
function enumStringToValue$3(enumRef, value) {
|
|
2752
2910
|
if (typeof value === 'number') {
|
|
2753
2911
|
return value;
|
|
2754
2912
|
}
|
|
@@ -2775,7 +2933,7 @@ class FieldMask {
|
|
|
2775
2933
|
}
|
|
2776
2934
|
}
|
|
2777
2935
|
|
|
2778
|
-
function enumStringToValue$
|
|
2936
|
+
function enumStringToValue$2(enumRef, value) {
|
|
2779
2937
|
if (typeof value === 'number') {
|
|
2780
2938
|
return value;
|
|
2781
2939
|
}
|
|
@@ -2855,7 +3013,7 @@ class AvailabilityRule {
|
|
|
2855
3013
|
let m = new AvailabilityRule();
|
|
2856
3014
|
m = Object.assign(m, proto);
|
|
2857
3015
|
if (proto.day) {
|
|
2858
|
-
m.day = enumStringToValue$
|
|
3016
|
+
m.day = enumStringToValue$2(DayOfWeek, proto.day);
|
|
2859
3017
|
}
|
|
2860
3018
|
if (proto.timeSlot) {
|
|
2861
3019
|
m.timeSlot = TimeRange.fromProto(proto.timeSlot);
|
|
@@ -3824,7 +3982,7 @@ class HostBookMeetingRequest {
|
|
|
3824
3982
|
let m = new HostBookMeetingRequest();
|
|
3825
3983
|
m = Object.assign(m, proto);
|
|
3826
3984
|
if (proto.meetingSource) {
|
|
3827
|
-
m.meetingSource = enumStringToValue$
|
|
3985
|
+
m.meetingSource = enumStringToValue$2(MeetingSource, proto.meetingSource);
|
|
3828
3986
|
}
|
|
3829
3987
|
if (proto.timeSlot) {
|
|
3830
3988
|
m.timeSlot = DateRange.fromProto(proto.timeSlot);
|
|
@@ -4141,7 +4299,7 @@ class IsHostConfiguredResponse {
|
|
|
4141
4299
|
let m = new IsHostConfiguredResponse();
|
|
4142
4300
|
m = Object.assign(m, proto);
|
|
4143
4301
|
if (proto.onBoardingState) {
|
|
4144
|
-
m.onBoardingState = enumStringToValue$
|
|
4302
|
+
m.onBoardingState = enumStringToValue$2(OnBoardingState, proto.onBoardingState);
|
|
4145
4303
|
}
|
|
4146
4304
|
return m;
|
|
4147
4305
|
}
|
|
@@ -4408,7 +4566,7 @@ class Meeting {
|
|
|
4408
4566
|
m.hostDetails = proto.hostDetails.map(HostDetails.fromProto);
|
|
4409
4567
|
}
|
|
4410
4568
|
if (proto.meetingType) {
|
|
4411
|
-
m.meetingType = enumStringToValue$
|
|
4569
|
+
m.meetingType = enumStringToValue$2(TeamEventMeetingType, proto.meetingType);
|
|
4412
4570
|
}
|
|
4413
4571
|
return m;
|
|
4414
4572
|
}
|
|
@@ -4603,7 +4761,7 @@ class SetGeneralAvailabilityRequest {
|
|
|
4603
4761
|
let m = new SetGeneralAvailabilityRequest();
|
|
4604
4762
|
m = Object.assign(m, proto);
|
|
4605
4763
|
if (proto.days) {
|
|
4606
|
-
m.days = proto.days.map((v) => enumStringToValue$
|
|
4764
|
+
m.days = proto.days.map((v) => enumStringToValue$2(DayOfWeek, v));
|
|
4607
4765
|
}
|
|
4608
4766
|
if (proto.timeSlot) {
|
|
4609
4767
|
m.timeSlot = TimeRange.fromProto(proto.timeSlot);
|
|
@@ -4862,7 +5020,7 @@ class WeekdayAvailability {
|
|
|
4862
5020
|
let m = new WeekdayAvailability();
|
|
4863
5021
|
m = Object.assign(m, proto);
|
|
4864
5022
|
if (proto.day) {
|
|
4865
|
-
m.day = enumStringToValue$
|
|
5023
|
+
m.day = enumStringToValue$2(DayOfWeek, proto.day);
|
|
4866
5024
|
}
|
|
4867
5025
|
if (proto.timeSlots) {
|
|
4868
5026
|
m.timeSlots = proto.timeSlots.map(TimeRange.fromProto);
|
|
@@ -4887,42 +5045,6 @@ class WeekdayAvailability {
|
|
|
4887
5045
|
}
|
|
4888
5046
|
}
|
|
4889
5047
|
|
|
4890
|
-
function enumStringToValue$2(enumRef, value) {
|
|
4891
|
-
if (typeof value === 'number') {
|
|
4892
|
-
return value;
|
|
4893
|
-
}
|
|
4894
|
-
return enumRef[value];
|
|
4895
|
-
}
|
|
4896
|
-
class ScheduleBotRequest {
|
|
4897
|
-
static fromProto(proto) {
|
|
4898
|
-
let m = new ScheduleBotRequest();
|
|
4899
|
-
m = Object.assign(m, proto);
|
|
4900
|
-
if (proto.startTime) {
|
|
4901
|
-
m.startTime = new Date(proto.startTime);
|
|
4902
|
-
}
|
|
4903
|
-
return m;
|
|
4904
|
-
}
|
|
4905
|
-
constructor(kwargs) {
|
|
4906
|
-
if (!kwargs) {
|
|
4907
|
-
return;
|
|
4908
|
-
}
|
|
4909
|
-
Object.assign(this, kwargs);
|
|
4910
|
-
}
|
|
4911
|
-
toApiJson() {
|
|
4912
|
-
const toReturn = {};
|
|
4913
|
-
if (typeof this.namespace !== 'undefined') {
|
|
4914
|
-
toReturn['namespace'] = this.namespace;
|
|
4915
|
-
}
|
|
4916
|
-
if (typeof this.meetingUrl !== 'undefined') {
|
|
4917
|
-
toReturn['meetingUrl'] = this.meetingUrl;
|
|
4918
|
-
}
|
|
4919
|
-
if (typeof this.startTime !== 'undefined' && this.startTime !== null) {
|
|
4920
|
-
toReturn['startTime'] = 'toApiJson' in this.startTime ? this.startTime.toApiJson() : this.startTime;
|
|
4921
|
-
}
|
|
4922
|
-
return toReturn;
|
|
4923
|
-
}
|
|
4924
|
-
}
|
|
4925
|
-
|
|
4926
5048
|
function enumStringToValue$1(enumRef, value) {
|
|
4927
5049
|
if (typeof value === 'number') {
|
|
4928
5050
|
return value;
|
|
@@ -5137,6 +5259,11 @@ class GoogleMeetApiService {
|
|
|
5137
5259
|
return this.http.post(this._host + "/meetings.v1.GoogleMeet/CreateMeeting", request.toApiJson(), this.apiOptions())
|
|
5138
5260
|
.pipe(map(resp => GoogleMeetCreateMeetingResponse.fromProto(resp)));
|
|
5139
5261
|
}
|
|
5262
|
+
listMeetings(r) {
|
|
5263
|
+
const request = (r.toApiJson) ? r : new GoogleMeetListMeetingsRequest(r);
|
|
5264
|
+
return this.http.post(this._host + "/meetings.v1.GoogleMeet/ListMeetings", request.toApiJson(), this.apiOptions())
|
|
5265
|
+
.pipe(map(resp => GoogleMeetListMeetingsResponse.fromProto(resp)));
|
|
5266
|
+
}
|
|
5140
5267
|
}
|
|
5141
5268
|
GoogleMeetApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5142
5269
|
GoogleMeetApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, providedIn: 'root' });
|
|
@@ -5303,33 +5430,6 @@ function createMeetInstantMeetingRequest(meetingTitle, startDateTime, attendees)
|
|
|
5303
5430
|
return new GoogleMeetCreateMeetingRequest(req);
|
|
5304
5431
|
}
|
|
5305
5432
|
|
|
5306
|
-
// *********************************
|
|
5307
|
-
class MeetingBotAPIApiService {
|
|
5308
|
-
constructor() {
|
|
5309
|
-
this.hostService = inject(HostService$1);
|
|
5310
|
-
this.http = inject(HttpClient);
|
|
5311
|
-
this._host = this.hostService.hostWithScheme;
|
|
5312
|
-
}
|
|
5313
|
-
apiOptions() {
|
|
5314
|
-
return {
|
|
5315
|
-
headers: new HttpHeaders({
|
|
5316
|
-
'Content-Type': 'application/json'
|
|
5317
|
-
}),
|
|
5318
|
-
withCredentials: true
|
|
5319
|
-
};
|
|
5320
|
-
}
|
|
5321
|
-
scheduleBot(r) {
|
|
5322
|
-
const request = (r.toApiJson) ? r : new ScheduleBotRequest(r);
|
|
5323
|
-
return this.http.post(this._host + "/meetings.v1.MeetingBotAPI/ScheduleBot", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
5324
|
-
}
|
|
5325
|
-
}
|
|
5326
|
-
MeetingBotAPIApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingBotAPIApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5327
|
-
MeetingBotAPIApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingBotAPIApiService, providedIn: 'root' });
|
|
5328
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingBotAPIApiService, decorators: [{
|
|
5329
|
-
type: Injectable,
|
|
5330
|
-
args: [{ providedIn: 'root' }]
|
|
5331
|
-
}] });
|
|
5332
|
-
|
|
5333
5433
|
// *********************************
|
|
5334
5434
|
class MeetingGuestApiService {
|
|
5335
5435
|
constructor() {
|
|
@@ -5644,25 +5744,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
|
|
|
5644
5744
|
|
|
5645
5745
|
// *********************************
|
|
5646
5746
|
|
|
5647
|
-
class MeetingBotService {
|
|
5648
|
-
constructor(_api) {
|
|
5649
|
-
this._api = _api;
|
|
5650
|
-
}
|
|
5651
|
-
scheduleBot(namespace, meetingUrl, startTime) {
|
|
5652
|
-
return this._api.scheduleBot({
|
|
5653
|
-
namespace: namespace,
|
|
5654
|
-
meetingUrl: meetingUrl,
|
|
5655
|
-
startTime: startTime
|
|
5656
|
-
}).pipe(map(() => true));
|
|
5657
|
-
}
|
|
5658
|
-
}
|
|
5659
|
-
MeetingBotService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingBotService, deps: [{ token: MeetingBotAPIApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5660
|
-
MeetingBotService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingBotService, providedIn: 'root' });
|
|
5661
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingBotService, decorators: [{
|
|
5662
|
-
type: Injectable,
|
|
5663
|
-
args: [{ providedIn: 'root' }]
|
|
5664
|
-
}], ctorParameters: function () { return [{ type: MeetingBotAPIApiService }]; } });
|
|
5665
|
-
|
|
5666
5747
|
function TimeSpanFromApi(tsAPI) {
|
|
5667
5748
|
return {
|
|
5668
5749
|
start: tsAPI.start,
|
|
@@ -5793,6 +5874,9 @@ function MeetingTypeFromApi(req) {
|
|
|
5793
5874
|
locationType: req.meetingTypeApi.locationType || MeetingLocationType.VIDEO,
|
|
5794
5875
|
meetingType: req.meetingTypeApi.meetingType || TeamEventMeetingType.ROUND_ROBIN,
|
|
5795
5876
|
dateRange: req.meetingTypeApi.dateRange || {},
|
|
5877
|
+
attendeeCount: req.meetingTypeApi.attendeeCount || 0,
|
|
5878
|
+
registrationCutoff: req.meetingTypeApi.registrationCutoff || 0,
|
|
5879
|
+
sessionTitle: req.meetingTypeApi.sessionTitle || '',
|
|
5796
5880
|
};
|
|
5797
5881
|
}
|
|
5798
5882
|
function MeetingTypeToApi(req) {
|
|
@@ -5825,7 +5909,10 @@ function MeetingTypeToApi(req) {
|
|
|
5825
5909
|
locationType: m.locationType || MeetingLocationType.VIDEO,
|
|
5826
5910
|
bufferDurationBeforeMeeting: m.bufferDurationBeforeMeeting || 0,
|
|
5827
5911
|
meetingType: m.meetingType || TeamEventMeetingType.ROUND_ROBIN,
|
|
5828
|
-
dateRange: m.dateRange || undefined
|
|
5912
|
+
dateRange: m.dateRange || undefined,
|
|
5913
|
+
attendeeCount: m.attendeeCount || 0,
|
|
5914
|
+
registrationCutoff: m.registrationCutoff || 0,
|
|
5915
|
+
sessionTitle: m.sessionTitle || undefined
|
|
5829
5916
|
};
|
|
5830
5917
|
}
|
|
5831
5918
|
|
|
@@ -6047,7 +6134,8 @@ function hostUserFromApi(hostUser) {
|
|
|
6047
6134
|
return {
|
|
6048
6135
|
userId: hostUser.userId || '',
|
|
6049
6136
|
displayName: hostUser.displayName || '',
|
|
6050
|
-
isConfigured: hostUser.isConfigured || false
|
|
6137
|
+
isConfigured: hostUser.isConfigured || false,
|
|
6138
|
+
isConnected: hostUser.isConnected || false,
|
|
6051
6139
|
};
|
|
6052
6140
|
}
|
|
6053
6141
|
|
|
@@ -6760,5 +6848,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
|
|
|
6760
6848
|
* Generated bundle index. Do not edit.
|
|
6761
6849
|
*/
|
|
6762
6850
|
|
|
6763
|
-
export { CalendarSource, CalendarType, Contact, CreateCalendarRequest, CreateCalendarResponse, DateRangeType, DayOfWeek, FormFieldType, GuestService, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations,
|
|
6851
|
+
export { CalendarSource, CalendarType, Contact, CreateCalendarRequest, CreateCalendarResponse, DateRangeType, DayOfWeek, FormFieldType, GuestService, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, MeetingLocationType, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceOrigin, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, OnBoardingState, PagedResponse, RelativeTimeUnit, TeamEventMeetingType, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
|
|
6764
6852
|
//# sourceMappingURL=vendasta-meetings.mjs.map
|