@vendasta/meetings 0.73.1 → 0.74.0
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/_generated/host.service.mjs +25 -0
- package/esm2020/lib/_internal/enums/dayofweek.enum.mjs +18 -0
- package/esm2020/lib/_internal/enums/index.mjs +11 -0
- package/esm2020/lib/_internal/enums/meeting-source.enum.mjs +20 -0
- package/esm2020/lib/_internal/enums/shared.enum.mjs +21 -0
- package/{esm2015/lib/_internal/enums/zoom.enum.js → esm2020/lib/_internal/enums/zoom.enum.mjs} +1 -1
- package/esm2020/lib/_internal/google-meet.api.service.mjs +41 -0
- package/esm2020/lib/_internal/index.mjs +15 -0
- package/esm2020/lib/_internal/interfaces/date-range.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/datetime.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/dayofweek.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/field-mask.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/google-meet.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/meeting-host.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/meeting-source.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/meeting-type.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/shared.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/timeofday.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/zoom.interface.mjs +8 -0
- package/esm2020/lib/_internal/meeting-guest.api.service.mjs +84 -0
- package/esm2020/lib/_internal/meeting-host.api.service.mjs +170 -0
- package/esm2020/lib/_internal/meeting-source-api.api.service.mjs +41 -0
- package/esm2020/lib/_internal/objects/date-range.mjs +36 -0
- package/esm2020/lib/_internal/objects/datetime.mjs +77 -0
- package/esm2020/lib/_internal/objects/dayofweek.mjs +7 -0
- package/esm2020/lib/_internal/objects/field-mask.mjs +27 -0
- package/esm2020/lib/_internal/objects/google-meet.mjs +539 -0
- package/esm2020/lib/_internal/objects/index.mjs +18 -0
- package/esm2020/lib/_internal/objects/meeting-guest.mjs +511 -0
- package/esm2020/lib/_internal/objects/meeting-host.mjs +1485 -0
- package/esm2020/lib/_internal/objects/meeting-source.mjs +121 -0
- package/esm2020/lib/_internal/objects/meeting-type.mjs +119 -0
- package/esm2020/lib/_internal/objects/shared.mjs +426 -0
- package/esm2020/lib/_internal/objects/timeofday.mjs +36 -0
- package/esm2020/lib/_internal/objects/zoom.mjs +377 -0
- package/esm2020/lib/_internal/zoom.api.service.mjs +41 -0
- package/esm2020/lib/guest/guest.service.mjs +86 -0
- package/esm2020/lib/guest/index.mjs +2 -0
- package/esm2020/lib/host/host.service.mjs +308 -0
- package/esm2020/lib/host/url.mjs +39 -0
- package/esm2020/lib/index.mjs +8 -0
- package/esm2020/lib/meetings.service.mjs +168 -0
- package/esm2020/lib/shared/availability.mjs +2 -0
- package/esm2020/lib/shared/calendar.mjs +29 -0
- package/esm2020/lib/shared/duration.mjs +41 -0
- package/esm2020/lib/shared/environment.mjs +17 -0
- package/esm2020/lib/shared/fieldmask.mjs +6 -0
- package/esm2020/lib/shared/host-id.mjs +20 -0
- package/esm2020/lib/shared/host-url-map.mjs +2 -0
- package/esm2020/lib/shared/host-user.mjs +8 -0
- package/esm2020/lib/shared/host.mjs +8 -0
- package/esm2020/lib/shared/index.mjs +14 -0
- package/esm2020/lib/shared/meeting-type.mjs +60 -0
- package/esm2020/lib/shared/meeting.mjs +89 -0
- package/esm2020/lib/shared/paged-response.mjs +8 -0
- package/esm2020/lib/shared/preferences.mjs +12 -0
- package/esm2020/lib/shared/time-span.mjs +7 -0
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/vendasta-meetings.mjs +5 -0
- package/fesm2015/{vendasta-meetings.js → vendasta-meetings.mjs} +487 -519
- package/fesm2015/vendasta-meetings.mjs.map +1 -0
- package/fesm2020/vendasta-meetings.mjs +5086 -0
- package/fesm2020/vendasta-meetings.mjs.map +1 -0
- package/lib/_generated/host.service.d.ts +5 -9
- package/lib/_internal/google-meet.api.service.d.ts +4 -0
- package/lib/_internal/meeting-guest.api.service.d.ts +4 -0
- package/lib/_internal/meeting-host.api.service.d.ts +4 -0
- package/lib/_internal/meeting-source-api.api.service.d.ts +4 -0
- package/lib/_internal/zoom.api.service.d.ts +4 -0
- package/lib/guest/guest.service.d.ts +4 -3
- package/lib/host/host.service.d.ts +4 -3
- package/lib/host/url.d.ts +1 -1
- package/lib/meetings.service.d.ts +3 -0
- package/lib/shared/environment.d.ts +8 -0
- package/lib/shared/meeting-type.d.ts +1 -1
- package/package.json +26 -15
- package/src/README.md +12 -0
- package/vendasta-meetings.d.ts +1 -0
- package/bundles/vendasta-meetings.umd.js +0 -5517
- package/bundles/vendasta-meetings.umd.js.map +0 -1
- package/bundles/vendasta-meetings.umd.min.js +0 -16
- package/bundles/vendasta-meetings.umd.min.js.map +0 -1
- package/esm2015/lib/_generated/host.service.js +0 -65
- package/esm2015/lib/_internal/enums/dayofweek.enum.js +0 -18
- package/esm2015/lib/_internal/enums/index.js +0 -11
- package/esm2015/lib/_internal/enums/meeting-source.enum.js +0 -20
- package/esm2015/lib/_internal/enums/shared.enum.js +0 -21
- package/esm2015/lib/_internal/google-meet.api.service.js +0 -42
- package/esm2015/lib/_internal/index.js +0 -15
- package/esm2015/lib/_internal/interfaces/date-range.interface.js +0 -8
- package/esm2015/lib/_internal/interfaces/datetime.interface.js +0 -8
- package/esm2015/lib/_internal/interfaces/dayofweek.interface.js +0 -8
- package/esm2015/lib/_internal/interfaces/field-mask.interface.js +0 -8
- package/esm2015/lib/_internal/interfaces/google-meet.interface.js +0 -8
- package/esm2015/lib/_internal/interfaces/index.js +0 -2
- package/esm2015/lib/_internal/interfaces/meeting-guest.interface.js +0 -2
- package/esm2015/lib/_internal/interfaces/meeting-host.interface.js +0 -2
- package/esm2015/lib/_internal/interfaces/meeting-source.interface.js +0 -8
- package/esm2015/lib/_internal/interfaces/meeting-type.interface.js +0 -8
- package/esm2015/lib/_internal/interfaces/shared.interface.js +0 -2
- package/esm2015/lib/_internal/interfaces/timeofday.interface.js +0 -8
- package/esm2015/lib/_internal/interfaces/zoom.interface.js +0 -8
- package/esm2015/lib/_internal/meeting-guest.api.service.js +0 -85
- package/esm2015/lib/_internal/meeting-host.api.service.js +0 -171
- package/esm2015/lib/_internal/meeting-source-api.api.service.js +0 -42
- package/esm2015/lib/_internal/objects/date-range.js +0 -36
- package/esm2015/lib/_internal/objects/datetime.js +0 -77
- package/esm2015/lib/_internal/objects/dayofweek.js +0 -7
- package/esm2015/lib/_internal/objects/field-mask.js +0 -27
- package/esm2015/lib/_internal/objects/google-meet.js +0 -539
- package/esm2015/lib/_internal/objects/index.js +0 -18
- package/esm2015/lib/_internal/objects/meeting-guest.js +0 -511
- package/esm2015/lib/_internal/objects/meeting-host.js +0 -1485
- package/esm2015/lib/_internal/objects/meeting-source.js +0 -121
- package/esm2015/lib/_internal/objects/meeting-type.js +0 -119
- package/esm2015/lib/_internal/objects/shared.js +0 -426
- package/esm2015/lib/_internal/objects/timeofday.js +0 -36
- package/esm2015/lib/_internal/objects/zoom.js +0 -377
- package/esm2015/lib/_internal/zoom.api.service.js +0 -42
- package/esm2015/lib/guest/guest.service.js +0 -86
- package/esm2015/lib/guest/index.js +0 -2
- package/esm2015/lib/host/host.service.js +0 -287
- package/esm2015/lib/host/url.js +0 -39
- package/esm2015/lib/index.js +0 -8
- package/esm2015/lib/meetings.service.js +0 -170
- package/esm2015/lib/shared/availability.js +0 -2
- package/esm2015/lib/shared/calendar.js +0 -29
- package/esm2015/lib/shared/duration.js +0 -41
- package/esm2015/lib/shared/fieldmask.js +0 -6
- package/esm2015/lib/shared/host-id.js +0 -20
- package/esm2015/lib/shared/host-url-map.js +0 -2
- package/esm2015/lib/shared/host-user.js +0 -8
- package/esm2015/lib/shared/host.js +0 -8
- package/esm2015/lib/shared/index.js +0 -14
- package/esm2015/lib/shared/meeting-type.js +0 -52
- package/esm2015/lib/shared/meeting.js +0 -89
- package/esm2015/lib/shared/paged-response.js +0 -8
- package/esm2015/lib/shared/preferences.js +0 -12
- package/esm2015/lib/shared/time-span.js +0 -7
- package/esm2015/public_api.js +0 -2
- package/esm2015/vendasta-meetings.js +0 -5
- package/fesm2015/vendasta-meetings.js.map +0 -1
- package/vendasta-meetings.metadata.json +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
2
3
|
import { throwError, of } from 'rxjs';
|
|
3
|
-
import { map,
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
4
|
+
import { map, mapTo } from 'rxjs/operators';
|
|
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
|
|
@@ -132,127 +133,7 @@ var DayOfWeek;
|
|
|
132
133
|
|
|
133
134
|
// *********************************
|
|
134
135
|
|
|
135
|
-
function enumStringToValue(enumRef, value) {
|
|
136
|
-
if (typeof value === 'number') {
|
|
137
|
-
return value;
|
|
138
|
-
}
|
|
139
|
-
return enumRef[value];
|
|
140
|
-
}
|
|
141
|
-
class MeetingSourceInfo {
|
|
142
|
-
constructor(kwargs) {
|
|
143
|
-
if (!kwargs) {
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
Object.assign(this, kwargs);
|
|
147
|
-
}
|
|
148
|
-
static fromProto(proto) {
|
|
149
|
-
let m = new MeetingSourceInfo();
|
|
150
|
-
m = Object.assign(m, proto);
|
|
151
|
-
if (proto.source) {
|
|
152
|
-
m.source = enumStringToValue(MeetingSource, proto.source);
|
|
153
|
-
}
|
|
154
|
-
if (proto.status) {
|
|
155
|
-
m.status = enumStringToValue(MeetingSourceStatus, proto.status);
|
|
156
|
-
}
|
|
157
|
-
return m;
|
|
158
|
-
}
|
|
159
|
-
toApiJson() {
|
|
160
|
-
const toReturn = {};
|
|
161
|
-
if (typeof this.source !== 'undefined') {
|
|
162
|
-
toReturn['source'] = this.source;
|
|
163
|
-
}
|
|
164
|
-
if (typeof this.status !== 'undefined') {
|
|
165
|
-
toReturn['status'] = this.status;
|
|
166
|
-
}
|
|
167
|
-
if (typeof this.connectDisconnectUrl !== 'undefined') {
|
|
168
|
-
toReturn['connectDisconnectUrl'] = this.connectDisconnectUrl;
|
|
169
|
-
}
|
|
170
|
-
return toReturn;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
class MeetingSourceListRequest {
|
|
174
|
-
constructor(kwargs) {
|
|
175
|
-
if (!kwargs) {
|
|
176
|
-
return;
|
|
177
|
-
}
|
|
178
|
-
Object.assign(this, kwargs);
|
|
179
|
-
}
|
|
180
|
-
static fromProto(proto) {
|
|
181
|
-
let m = new MeetingSourceListRequest();
|
|
182
|
-
m = Object.assign(m, proto);
|
|
183
|
-
if (proto.queriedSources) {
|
|
184
|
-
m.queriedSources = proto.queriedSources.map(MeetingSourceQuery.fromProto);
|
|
185
|
-
}
|
|
186
|
-
return m;
|
|
187
|
-
}
|
|
188
|
-
toApiJson() {
|
|
189
|
-
const toReturn = {};
|
|
190
|
-
if (typeof this.iamUserId !== 'undefined') {
|
|
191
|
-
toReturn['iamUserId'] = this.iamUserId;
|
|
192
|
-
}
|
|
193
|
-
if (typeof this.queriedSources !== 'undefined' && this.queriedSources !== null) {
|
|
194
|
-
toReturn['queriedSources'] = 'toApiJson' in this.queriedSources ? this.queriedSources.toApiJson() : this.queriedSources;
|
|
195
|
-
}
|
|
196
|
-
return toReturn;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
class MeetingSourceListResponse {
|
|
200
|
-
constructor(kwargs) {
|
|
201
|
-
if (!kwargs) {
|
|
202
|
-
return;
|
|
203
|
-
}
|
|
204
|
-
Object.assign(this, kwargs);
|
|
205
|
-
}
|
|
206
|
-
static fromProto(proto) {
|
|
207
|
-
let m = new MeetingSourceListResponse();
|
|
208
|
-
m = Object.assign(m, proto);
|
|
209
|
-
if (proto.sourceInfo) {
|
|
210
|
-
m.sourceInfo = proto.sourceInfo.map(MeetingSourceInfo.fromProto);
|
|
211
|
-
}
|
|
212
|
-
return m;
|
|
213
|
-
}
|
|
214
|
-
toApiJson() {
|
|
215
|
-
const toReturn = {};
|
|
216
|
-
if (typeof this.iamUserId !== 'undefined') {
|
|
217
|
-
toReturn['iamUserId'] = this.iamUserId;
|
|
218
|
-
}
|
|
219
|
-
if (typeof this.sourceInfo !== 'undefined' && this.sourceInfo !== null) {
|
|
220
|
-
toReturn['sourceInfo'] = 'toApiJson' in this.sourceInfo ? this.sourceInfo.toApiJson() : this.sourceInfo;
|
|
221
|
-
}
|
|
222
|
-
return toReturn;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
class MeetingSourceQuery {
|
|
226
|
-
constructor(kwargs) {
|
|
227
|
-
if (!kwargs) {
|
|
228
|
-
return;
|
|
229
|
-
}
|
|
230
|
-
Object.assign(this, kwargs);
|
|
231
|
-
}
|
|
232
|
-
static fromProto(proto) {
|
|
233
|
-
let m = new MeetingSourceQuery();
|
|
234
|
-
m = Object.assign(m, proto);
|
|
235
|
-
if (proto.source) {
|
|
236
|
-
m.source = enumStringToValue(MeetingSource, proto.source);
|
|
237
|
-
}
|
|
238
|
-
return m;
|
|
239
|
-
}
|
|
240
|
-
toApiJson() {
|
|
241
|
-
const toReturn = {};
|
|
242
|
-
if (typeof this.source !== 'undefined') {
|
|
243
|
-
toReturn['source'] = this.source;
|
|
244
|
-
}
|
|
245
|
-
if (typeof this.connectNextUrl !== 'undefined') {
|
|
246
|
-
toReturn['connectNextUrl'] = this.connectNextUrl;
|
|
247
|
-
}
|
|
248
|
-
if (typeof this.disconnectNextUrl !== 'undefined') {
|
|
249
|
-
toReturn['disconnectNextUrl'] = this.disconnectNextUrl;
|
|
250
|
-
}
|
|
251
|
-
return toReturn;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
function enumStringToValue$1(enumRef, value) {
|
|
136
|
+
function enumStringToValue$a(enumRef, value) {
|
|
256
137
|
if (typeof value === 'number') {
|
|
257
138
|
return value;
|
|
258
139
|
}
|
|
@@ -269,7 +150,7 @@ class CreateZoomMeetingRequest {
|
|
|
269
150
|
let m = new CreateZoomMeetingRequest();
|
|
270
151
|
m = Object.assign(m, proto);
|
|
271
152
|
if (proto.type) {
|
|
272
|
-
m.type = enumStringToValue$
|
|
153
|
+
m.type = enumStringToValue$a(ZoomMeetingType, proto.type);
|
|
273
154
|
}
|
|
274
155
|
if (proto.duration) {
|
|
275
156
|
m.duration = parseInt(proto.duration, 10);
|
|
@@ -337,7 +218,7 @@ class CreateZoomMeetingResponse {
|
|
|
337
218
|
m.meetingId = parseInt(proto.meetingId, 10);
|
|
338
219
|
}
|
|
339
220
|
if (proto.type) {
|
|
340
|
-
m.type = enumStringToValue$
|
|
221
|
+
m.type = enumStringToValue$a(ZoomMeetingType, proto.type);
|
|
341
222
|
}
|
|
342
223
|
if (proto.duration) {
|
|
343
224
|
m.duration = parseInt(proto.duration, 10);
|
|
@@ -429,7 +310,7 @@ class ZoomMeetingRecurrence {
|
|
|
429
310
|
let m = new ZoomMeetingRecurrence();
|
|
430
311
|
m = Object.assign(m, proto);
|
|
431
312
|
if (proto.type) {
|
|
432
|
-
m.type = enumStringToValue$
|
|
313
|
+
m.type = enumStringToValue$a(ZoomMeetingRecurrenceType, proto.type);
|
|
433
314
|
}
|
|
434
315
|
if (proto.repeatInterval) {
|
|
435
316
|
m.repeatInterval = parseInt(proto.repeatInterval, 10);
|
|
@@ -438,10 +319,10 @@ class ZoomMeetingRecurrence {
|
|
|
438
319
|
m.monthlyDay = parseInt(proto.monthlyDay, 10);
|
|
439
320
|
}
|
|
440
321
|
if (proto.monthlyWeek) {
|
|
441
|
-
m.monthlyWeek = enumStringToValue$
|
|
322
|
+
m.monthlyWeek = enumStringToValue$a(ZoomMonthlyWeek, proto.monthlyWeek);
|
|
442
323
|
}
|
|
443
324
|
if (proto.monthlyWeekDay) {
|
|
444
|
-
m.monthlyWeekDay = enumStringToValue$
|
|
325
|
+
m.monthlyWeekDay = enumStringToValue$a(ZoomMonthlyWeekDay, proto.monthlyWeekDay);
|
|
445
326
|
}
|
|
446
327
|
if (proto.endTimes) {
|
|
447
328
|
m.endTimes = parseInt(proto.endTimes, 10);
|
|
@@ -488,10 +369,10 @@ class ZoomMeetingSettings {
|
|
|
488
369
|
let m = new ZoomMeetingSettings();
|
|
489
370
|
m = Object.assign(m, proto);
|
|
490
371
|
if (proto.approvalType) {
|
|
491
|
-
m.approvalType = enumStringToValue$
|
|
372
|
+
m.approvalType = enumStringToValue$a(ZoomApprovalType, proto.approvalType);
|
|
492
373
|
}
|
|
493
374
|
if (proto.registrationType) {
|
|
494
|
-
m.registrationType = enumStringToValue$
|
|
375
|
+
m.registrationType = enumStringToValue$a(ZoomRegistrationType, proto.registrationType);
|
|
495
376
|
}
|
|
496
377
|
return m;
|
|
497
378
|
}
|
|
@@ -628,7 +509,7 @@ class ZoomOccurrence {
|
|
|
628
509
|
}
|
|
629
510
|
}
|
|
630
511
|
|
|
631
|
-
function enumStringToValue$
|
|
512
|
+
function enumStringToValue$9(enumRef, value) {
|
|
632
513
|
if (typeof value === 'number') {
|
|
633
514
|
return value;
|
|
634
515
|
}
|
|
@@ -1167,7 +1048,127 @@ class GoogleMeetMeetingReminders {
|
|
|
1167
1048
|
}
|
|
1168
1049
|
}
|
|
1169
1050
|
|
|
1170
|
-
function enumStringToValue$
|
|
1051
|
+
function enumStringToValue$8(enumRef, value) {
|
|
1052
|
+
if (typeof value === 'number') {
|
|
1053
|
+
return value;
|
|
1054
|
+
}
|
|
1055
|
+
return enumRef[value];
|
|
1056
|
+
}
|
|
1057
|
+
class MeetingSourceInfo {
|
|
1058
|
+
constructor(kwargs) {
|
|
1059
|
+
if (!kwargs) {
|
|
1060
|
+
return;
|
|
1061
|
+
}
|
|
1062
|
+
Object.assign(this, kwargs);
|
|
1063
|
+
}
|
|
1064
|
+
static fromProto(proto) {
|
|
1065
|
+
let m = new MeetingSourceInfo();
|
|
1066
|
+
m = Object.assign(m, proto);
|
|
1067
|
+
if (proto.source) {
|
|
1068
|
+
m.source = enumStringToValue$8(MeetingSource, proto.source);
|
|
1069
|
+
}
|
|
1070
|
+
if (proto.status) {
|
|
1071
|
+
m.status = enumStringToValue$8(MeetingSourceStatus, proto.status);
|
|
1072
|
+
}
|
|
1073
|
+
return m;
|
|
1074
|
+
}
|
|
1075
|
+
toApiJson() {
|
|
1076
|
+
const toReturn = {};
|
|
1077
|
+
if (typeof this.source !== 'undefined') {
|
|
1078
|
+
toReturn['source'] = this.source;
|
|
1079
|
+
}
|
|
1080
|
+
if (typeof this.status !== 'undefined') {
|
|
1081
|
+
toReturn['status'] = this.status;
|
|
1082
|
+
}
|
|
1083
|
+
if (typeof this.connectDisconnectUrl !== 'undefined') {
|
|
1084
|
+
toReturn['connectDisconnectUrl'] = this.connectDisconnectUrl;
|
|
1085
|
+
}
|
|
1086
|
+
return toReturn;
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
class MeetingSourceListRequest {
|
|
1090
|
+
constructor(kwargs) {
|
|
1091
|
+
if (!kwargs) {
|
|
1092
|
+
return;
|
|
1093
|
+
}
|
|
1094
|
+
Object.assign(this, kwargs);
|
|
1095
|
+
}
|
|
1096
|
+
static fromProto(proto) {
|
|
1097
|
+
let m = new MeetingSourceListRequest();
|
|
1098
|
+
m = Object.assign(m, proto);
|
|
1099
|
+
if (proto.queriedSources) {
|
|
1100
|
+
m.queriedSources = proto.queriedSources.map(MeetingSourceQuery.fromProto);
|
|
1101
|
+
}
|
|
1102
|
+
return m;
|
|
1103
|
+
}
|
|
1104
|
+
toApiJson() {
|
|
1105
|
+
const toReturn = {};
|
|
1106
|
+
if (typeof this.iamUserId !== 'undefined') {
|
|
1107
|
+
toReturn['iamUserId'] = this.iamUserId;
|
|
1108
|
+
}
|
|
1109
|
+
if (typeof this.queriedSources !== 'undefined' && this.queriedSources !== null) {
|
|
1110
|
+
toReturn['queriedSources'] = 'toApiJson' in this.queriedSources ? this.queriedSources.toApiJson() : this.queriedSources;
|
|
1111
|
+
}
|
|
1112
|
+
return toReturn;
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
class MeetingSourceListResponse {
|
|
1116
|
+
constructor(kwargs) {
|
|
1117
|
+
if (!kwargs) {
|
|
1118
|
+
return;
|
|
1119
|
+
}
|
|
1120
|
+
Object.assign(this, kwargs);
|
|
1121
|
+
}
|
|
1122
|
+
static fromProto(proto) {
|
|
1123
|
+
let m = new MeetingSourceListResponse();
|
|
1124
|
+
m = Object.assign(m, proto);
|
|
1125
|
+
if (proto.sourceInfo) {
|
|
1126
|
+
m.sourceInfo = proto.sourceInfo.map(MeetingSourceInfo.fromProto);
|
|
1127
|
+
}
|
|
1128
|
+
return m;
|
|
1129
|
+
}
|
|
1130
|
+
toApiJson() {
|
|
1131
|
+
const toReturn = {};
|
|
1132
|
+
if (typeof this.iamUserId !== 'undefined') {
|
|
1133
|
+
toReturn['iamUserId'] = this.iamUserId;
|
|
1134
|
+
}
|
|
1135
|
+
if (typeof this.sourceInfo !== 'undefined' && this.sourceInfo !== null) {
|
|
1136
|
+
toReturn['sourceInfo'] = 'toApiJson' in this.sourceInfo ? this.sourceInfo.toApiJson() : this.sourceInfo;
|
|
1137
|
+
}
|
|
1138
|
+
return toReturn;
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
class MeetingSourceQuery {
|
|
1142
|
+
constructor(kwargs) {
|
|
1143
|
+
if (!kwargs) {
|
|
1144
|
+
return;
|
|
1145
|
+
}
|
|
1146
|
+
Object.assign(this, kwargs);
|
|
1147
|
+
}
|
|
1148
|
+
static fromProto(proto) {
|
|
1149
|
+
let m = new MeetingSourceQuery();
|
|
1150
|
+
m = Object.assign(m, proto);
|
|
1151
|
+
if (proto.source) {
|
|
1152
|
+
m.source = enumStringToValue$8(MeetingSource, proto.source);
|
|
1153
|
+
}
|
|
1154
|
+
return m;
|
|
1155
|
+
}
|
|
1156
|
+
toApiJson() {
|
|
1157
|
+
const toReturn = {};
|
|
1158
|
+
if (typeof this.source !== 'undefined') {
|
|
1159
|
+
toReturn['source'] = this.source;
|
|
1160
|
+
}
|
|
1161
|
+
if (typeof this.connectNextUrl !== 'undefined') {
|
|
1162
|
+
toReturn['connectNextUrl'] = this.connectNextUrl;
|
|
1163
|
+
}
|
|
1164
|
+
if (typeof this.disconnectNextUrl !== 'undefined') {
|
|
1165
|
+
toReturn['disconnectNextUrl'] = this.disconnectNextUrl;
|
|
1166
|
+
}
|
|
1167
|
+
return toReturn;
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
function enumStringToValue$7(enumRef, value) {
|
|
1171
1172
|
if (typeof value === 'number') {
|
|
1172
1173
|
return value;
|
|
1173
1174
|
}
|
|
@@ -1203,7 +1204,7 @@ class TimeOfDay {
|
|
|
1203
1204
|
}
|
|
1204
1205
|
}
|
|
1205
1206
|
|
|
1206
|
-
function enumStringToValue$
|
|
1207
|
+
function enumStringToValue$6(enumRef, value) {
|
|
1207
1208
|
if (typeof value === 'number') {
|
|
1208
1209
|
return value;
|
|
1209
1210
|
}
|
|
@@ -1703,7 +1704,7 @@ class TimeRange {
|
|
|
1703
1704
|
}
|
|
1704
1705
|
}
|
|
1705
1706
|
|
|
1706
|
-
function enumStringToValue$
|
|
1707
|
+
function enumStringToValue$4(enumRef, value) {
|
|
1707
1708
|
if (typeof value === 'number') {
|
|
1708
1709
|
return value;
|
|
1709
1710
|
}
|
|
@@ -1720,7 +1721,7 @@ class Field {
|
|
|
1720
1721
|
let m = new Field();
|
|
1721
1722
|
m = Object.assign(m, proto);
|
|
1722
1723
|
if (proto.type) {
|
|
1723
|
-
m.type = enumStringToValue$
|
|
1724
|
+
m.type = enumStringToValue$4(FormFieldType, proto.type);
|
|
1724
1725
|
}
|
|
1725
1726
|
return m;
|
|
1726
1727
|
}
|
|
@@ -1821,7 +1822,7 @@ class MeetingType {
|
|
|
1821
1822
|
}
|
|
1822
1823
|
}
|
|
1823
1824
|
|
|
1824
|
-
function enumStringToValue$
|
|
1825
|
+
function enumStringToValue$3(enumRef, value) {
|
|
1825
1826
|
if (typeof value === 'number') {
|
|
1826
1827
|
return value;
|
|
1827
1828
|
}
|
|
@@ -1857,7 +1858,7 @@ class DateRange {
|
|
|
1857
1858
|
}
|
|
1858
1859
|
}
|
|
1859
1860
|
|
|
1860
|
-
function enumStringToValue$
|
|
1861
|
+
function enumStringToValue$2(enumRef, value) {
|
|
1861
1862
|
if (typeof value === 'number') {
|
|
1862
1863
|
return value;
|
|
1863
1864
|
}
|
|
@@ -2364,7 +2365,7 @@ class BookMeetingRequestMetadataEntry {
|
|
|
2364
2365
|
}
|
|
2365
2366
|
}
|
|
2366
2367
|
|
|
2367
|
-
function enumStringToValue$
|
|
2368
|
+
function enumStringToValue$1(enumRef, value) {
|
|
2368
2369
|
if (typeof value === 'number') {
|
|
2369
2370
|
return value;
|
|
2370
2371
|
}
|
|
@@ -2391,7 +2392,7 @@ class FieldMask {
|
|
|
2391
2392
|
}
|
|
2392
2393
|
}
|
|
2393
2394
|
|
|
2394
|
-
function enumStringToValue
|
|
2395
|
+
function enumStringToValue(enumRef, value) {
|
|
2395
2396
|
if (typeof value === 'number') {
|
|
2396
2397
|
return value;
|
|
2397
2398
|
}
|
|
@@ -2454,7 +2455,7 @@ class AvailabilityRule {
|
|
|
2454
2455
|
let m = new AvailabilityRule();
|
|
2455
2456
|
m = Object.assign(m, proto);
|
|
2456
2457
|
if (proto.day) {
|
|
2457
|
-
m.day = enumStringToValue
|
|
2458
|
+
m.day = enumStringToValue(DayOfWeek, proto.day);
|
|
2458
2459
|
}
|
|
2459
2460
|
if (proto.timeSlot) {
|
|
2460
2461
|
m.timeSlot = TimeRange.fromProto(proto.timeSlot);
|
|
@@ -3123,7 +3124,7 @@ class HostBookMeetingRequest {
|
|
|
3123
3124
|
let m = new HostBookMeetingRequest();
|
|
3124
3125
|
m = Object.assign(m, proto);
|
|
3125
3126
|
if (proto.meetingSource) {
|
|
3126
|
-
m.meetingSource = enumStringToValue
|
|
3127
|
+
m.meetingSource = enumStringToValue(MeetingSource, proto.meetingSource);
|
|
3127
3128
|
}
|
|
3128
3129
|
if (proto.timeSlot) {
|
|
3129
3130
|
m.timeSlot = DateRange.fromProto(proto.timeSlot);
|
|
@@ -3665,7 +3666,7 @@ class SetGeneralAvailabilityRequest {
|
|
|
3665
3666
|
let m = new SetGeneralAvailabilityRequest();
|
|
3666
3667
|
m = Object.assign(m, proto);
|
|
3667
3668
|
if (proto.days) {
|
|
3668
|
-
m.days = proto.days.map((v) => enumStringToValue
|
|
3669
|
+
m.days = proto.days.map((v) => enumStringToValue(DayOfWeek, v));
|
|
3669
3670
|
}
|
|
3670
3671
|
if (proto.timeSlot) {
|
|
3671
3672
|
m.timeSlot = TimeRange.fromProto(proto.timeSlot);
|
|
@@ -3851,7 +3852,7 @@ class WeekdayAvailability {
|
|
|
3851
3852
|
let m = new WeekdayAvailability();
|
|
3852
3853
|
m = Object.assign(m, proto);
|
|
3853
3854
|
if (proto.day) {
|
|
3854
|
-
m.day = enumStringToValue
|
|
3855
|
+
m.day = enumStringToValue(DayOfWeek, proto.day);
|
|
3855
3856
|
}
|
|
3856
3857
|
if (proto.timeSlots) {
|
|
3857
3858
|
m.timeSlots = proto.timeSlots.map(TimeRange.fromProto);
|
|
@@ -3872,72 +3873,36 @@ class WeekdayAvailability {
|
|
|
3872
3873
|
|
|
3873
3874
|
// *********************************
|
|
3874
3875
|
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
return this._httpsHost;
|
|
3902
|
-
}
|
|
3903
|
-
switch (this.environmentService.getEnvironment()) {
|
|
3904
|
-
case Environment.LOCAL:
|
|
3905
|
-
this._httpsHost = 'meetings.vendasta-local.com';
|
|
3906
|
-
break;
|
|
3907
|
-
case Environment.TEST:
|
|
3908
|
-
this._httpsHost = '';
|
|
3909
|
-
break;
|
|
3910
|
-
case Environment.DEMO:
|
|
3911
|
-
this._httpsHost = 'meetings-demo.apigateway.co';
|
|
3912
|
-
break;
|
|
3913
|
-
case Environment.PROD:
|
|
3914
|
-
this._httpsHost = 'meetings-prod.apigateway.co';
|
|
3915
|
-
break;
|
|
3916
|
-
}
|
|
3917
|
-
return this._httpsHost;
|
|
3918
|
-
}
|
|
3919
|
-
hostWithScheme() {
|
|
3920
|
-
const scheme = this.environmentService.getEnvironment() === Environment.LOCAL ? 'http://' : 'https://';
|
|
3921
|
-
return scheme + this.host();
|
|
3922
|
-
}
|
|
3923
|
-
httpsHostWithScheme() {
|
|
3924
|
-
const scheme = this.environmentService.getEnvironment() === Environment.LOCAL ? 'http://' : 'https://';
|
|
3925
|
-
return scheme + this.httpsHost();
|
|
3926
|
-
}
|
|
3927
|
-
}
|
|
3928
|
-
HostService.ɵprov = ɵɵdefineInjectable({ factory: function HostService_Factory() { return new HostService(ɵɵinject(EnvironmentService)); }, token: HostService, providedIn: "root" });
|
|
3929
|
-
HostService.decorators = [
|
|
3930
|
-
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
3931
|
-
];
|
|
3932
|
-
HostService.ctorParameters = () => [
|
|
3933
|
-
{ type: EnvironmentService }
|
|
3934
|
-
];
|
|
3935
|
-
|
|
3936
|
-
// *********************************
|
|
3937
|
-
class MeetingSourceAPIApiService {
|
|
3876
|
+
var _a;
|
|
3877
|
+
const environment = (_a = (window ? window['environment'] : 'prod')) !== null && _a !== void 0 ? _a : 'prod';
|
|
3878
|
+
const hostMap = {
|
|
3879
|
+
'local': 'meetings-api.vendasta-local.com',
|
|
3880
|
+
'test': '',
|
|
3881
|
+
'demo': 'meetings-demo.apigateway.co',
|
|
3882
|
+
'prod': 'meetings-prod.apigateway.co',
|
|
3883
|
+
'production': 'meetings-prod.apigateway.co',
|
|
3884
|
+
};
|
|
3885
|
+
class HostService$1 {
|
|
3886
|
+
get host() {
|
|
3887
|
+
return hostMap[environment.toLowerCase()];
|
|
3888
|
+
}
|
|
3889
|
+
get hostWithScheme() {
|
|
3890
|
+
return 'https://' + this.host;
|
|
3891
|
+
}
|
|
3892
|
+
}
|
|
3893
|
+
HostService$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: HostService$1, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3894
|
+
HostService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: HostService$1, providedIn: 'root' });
|
|
3895
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: HostService$1, decorators: [{
|
|
3896
|
+
type: Injectable,
|
|
3897
|
+
args: [{ providedIn: 'root' }]
|
|
3898
|
+
}] });
|
|
3899
|
+
|
|
3900
|
+
// *********************************
|
|
3901
|
+
class MeetingSourceAPIApiService {
|
|
3938
3902
|
constructor(http, hostService) {
|
|
3939
3903
|
this.http = http;
|
|
3940
3904
|
this.hostService = hostService;
|
|
3905
|
+
this._host = this.hostService.hostWithScheme;
|
|
3941
3906
|
}
|
|
3942
3907
|
apiOptions() {
|
|
3943
3908
|
return {
|
|
@@ -3949,24 +3914,23 @@ class MeetingSourceAPIApiService {
|
|
|
3949
3914
|
}
|
|
3950
3915
|
list(r) {
|
|
3951
3916
|
const request = (r.toApiJson) ? r : new MeetingSourceListRequest(r);
|
|
3952
|
-
return this.http.post(this.
|
|
3953
|
-
.pipe(map(resp => MeetingSourceListResponse.fromProto(resp))
|
|
3954
|
-
}
|
|
3955
|
-
}
|
|
3956
|
-
MeetingSourceAPIApiService.ɵ
|
|
3957
|
-
MeetingSourceAPIApiService
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
{ type: HostService }
|
|
3963
|
-
];
|
|
3917
|
+
return this.http.post(this._host + "/meetings.v1.MeetingSourceAPI/List", request.toApiJson(), this.apiOptions())
|
|
3918
|
+
.pipe(map(resp => MeetingSourceListResponse.fromProto(resp)));
|
|
3919
|
+
}
|
|
3920
|
+
}
|
|
3921
|
+
MeetingSourceAPIApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: MeetingSourceAPIApiService, deps: [{ token: i1.HttpClient }, { token: HostService$1 }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3922
|
+
MeetingSourceAPIApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: MeetingSourceAPIApiService, providedIn: 'root' });
|
|
3923
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: MeetingSourceAPIApiService, decorators: [{
|
|
3924
|
+
type: Injectable,
|
|
3925
|
+
args: [{ providedIn: 'root' }]
|
|
3926
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
|
|
3964
3927
|
|
|
3965
3928
|
// *********************************
|
|
3966
3929
|
class ZoomApiService {
|
|
3967
3930
|
constructor(http, hostService) {
|
|
3968
3931
|
this.http = http;
|
|
3969
3932
|
this.hostService = hostService;
|
|
3933
|
+
this._host = this.hostService.hostWithScheme;
|
|
3970
3934
|
}
|
|
3971
3935
|
apiOptions() {
|
|
3972
3936
|
return {
|
|
@@ -3978,24 +3942,23 @@ class ZoomApiService {
|
|
|
3978
3942
|
}
|
|
3979
3943
|
createMeeting(r) {
|
|
3980
3944
|
const request = (r.toApiJson) ? r : new CreateZoomMeetingRequest(r);
|
|
3981
|
-
return this.http.post(this.
|
|
3982
|
-
.pipe(map(resp => CreateZoomMeetingResponse.fromProto(resp))
|
|
3983
|
-
}
|
|
3984
|
-
}
|
|
3985
|
-
ZoomApiService.ɵ
|
|
3986
|
-
ZoomApiService
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
{ type: HostService }
|
|
3992
|
-
];
|
|
3945
|
+
return this.http.post(this._host + "/meetings.v1.Zoom/CreateMeeting", request.toApiJson(), this.apiOptions())
|
|
3946
|
+
.pipe(map(resp => CreateZoomMeetingResponse.fromProto(resp)));
|
|
3947
|
+
}
|
|
3948
|
+
}
|
|
3949
|
+
ZoomApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: ZoomApiService, deps: [{ token: i1.HttpClient }, { token: HostService$1 }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3950
|
+
ZoomApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: ZoomApiService, providedIn: 'root' });
|
|
3951
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: ZoomApiService, decorators: [{
|
|
3952
|
+
type: Injectable,
|
|
3953
|
+
args: [{ providedIn: 'root' }]
|
|
3954
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
|
|
3993
3955
|
|
|
3994
3956
|
// *********************************
|
|
3995
3957
|
class GoogleMeetApiService {
|
|
3996
3958
|
constructor(http, hostService) {
|
|
3997
3959
|
this.http = http;
|
|
3998
3960
|
this.hostService = hostService;
|
|
3961
|
+
this._host = this.hostService.hostWithScheme;
|
|
3999
3962
|
}
|
|
4000
3963
|
apiOptions() {
|
|
4001
3964
|
return {
|
|
@@ -4007,18 +3970,16 @@ class GoogleMeetApiService {
|
|
|
4007
3970
|
}
|
|
4008
3971
|
createMeeting(r) {
|
|
4009
3972
|
const request = (r.toApiJson) ? r : new GoogleMeetCreateMeetingRequest(r);
|
|
4010
|
-
return this.http.post(this.
|
|
4011
|
-
.pipe(map(resp => GoogleMeetCreateMeetingResponse.fromProto(resp))
|
|
4012
|
-
}
|
|
4013
|
-
}
|
|
4014
|
-
GoogleMeetApiService.ɵ
|
|
4015
|
-
GoogleMeetApiService
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
{ type: HostService }
|
|
4021
|
-
];
|
|
3973
|
+
return this.http.post(this._host + "/meetings.v1.GoogleMeet/CreateMeeting", request.toApiJson(), this.apiOptions())
|
|
3974
|
+
.pipe(map(resp => GoogleMeetCreateMeetingResponse.fromProto(resp)));
|
|
3975
|
+
}
|
|
3976
|
+
}
|
|
3977
|
+
GoogleMeetApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: GoogleMeetApiService, deps: [{ token: i1.HttpClient }, { token: HostService$1 }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3978
|
+
GoogleMeetApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: GoogleMeetApiService, providedIn: 'root' });
|
|
3979
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: GoogleMeetApiService, decorators: [{
|
|
3980
|
+
type: Injectable,
|
|
3981
|
+
args: [{ providedIn: 'root' }]
|
|
3982
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
|
|
4022
3983
|
|
|
4023
3984
|
function generateMeetingPassword() {
|
|
4024
3985
|
const zoomMaxLength = 10;
|
|
@@ -4074,7 +4035,8 @@ class MeetingsService {
|
|
|
4074
4035
|
const meetReq = createMeetInstantMeetingRequest(meetingTitle, now, gMeetAttendees);
|
|
4075
4036
|
return this.meet.createMeeting(meetReq).pipe(map((resp) => ({ url: resp.meeting.hangoutLink, joinURL: resp.meeting.hangoutLink })));
|
|
4076
4037
|
default:
|
|
4077
|
-
|
|
4038
|
+
// eslint-disable-next-line
|
|
4039
|
+
return throwError(`Unrecognized meeting source ${meetingSource}`);
|
|
4078
4040
|
}
|
|
4079
4041
|
}
|
|
4080
4042
|
createBasicZoomScheduledMeeting(topic, agenda, startDateTime, duration, timezone, meetingPassword) {
|
|
@@ -4115,15 +4077,12 @@ class MeetingsService {
|
|
|
4115
4077
|
return this.meet.createMeeting(req);
|
|
4116
4078
|
}
|
|
4117
4079
|
}
|
|
4118
|
-
MeetingsService.ɵ
|
|
4119
|
-
MeetingsService
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
{ type: ZoomApiService },
|
|
4125
|
-
{ type: GoogleMeetApiService }
|
|
4126
|
-
];
|
|
4080
|
+
MeetingsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: MeetingsService, deps: [{ token: MeetingSourceAPIApiService }, { token: ZoomApiService }, { token: GoogleMeetApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4081
|
+
MeetingsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: MeetingsService, providedIn: 'root' });
|
|
4082
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: MeetingsService, decorators: [{
|
|
4083
|
+
type: Injectable,
|
|
4084
|
+
args: [{ providedIn: 'root' }]
|
|
4085
|
+
}], ctorParameters: function () { return [{ type: MeetingSourceAPIApiService }, { type: ZoomApiService }, { type: GoogleMeetApiService }]; } });
|
|
4127
4086
|
function createZoomInstantMeetingRequest(meetingTitle, now, meetingAgenda) {
|
|
4128
4087
|
const recurrence = {
|
|
4129
4088
|
type: ZoomMeetingRecurrenceType.ZOOM_MEETING_RECURRENCE_TYPE_DAILY,
|
|
@@ -4139,7 +4098,7 @@ function createZoomInstantMeetingRequest(meetingTitle, now, meetingAgenda) {
|
|
|
4139
4098
|
agenda: meetingAgenda,
|
|
4140
4099
|
trackingFields: [],
|
|
4141
4100
|
recurrence: recurrence,
|
|
4142
|
-
settings: undefined,
|
|
4101
|
+
settings: undefined, // Only used with recurring meetings
|
|
4143
4102
|
};
|
|
4144
4103
|
return new CreateZoomMeetingRequest(req);
|
|
4145
4104
|
}
|
|
@@ -4176,238 +4135,6 @@ function createMeetInstantMeetingRequest(meetingTitle, startDateTime, attendees)
|
|
|
4176
4135
|
return new GoogleMeetCreateMeetingRequest(req);
|
|
4177
4136
|
}
|
|
4178
4137
|
|
|
4179
|
-
// *********************************
|
|
4180
|
-
class MeetingGuestApiService {
|
|
4181
|
-
constructor(http, hostService) {
|
|
4182
|
-
this.http = http;
|
|
4183
|
-
this.hostService = hostService;
|
|
4184
|
-
}
|
|
4185
|
-
apiOptions() {
|
|
4186
|
-
return {
|
|
4187
|
-
headers: new HttpHeaders({
|
|
4188
|
-
'Content-Type': 'application/json'
|
|
4189
|
-
}),
|
|
4190
|
-
withCredentials: true
|
|
4191
|
-
};
|
|
4192
|
-
}
|
|
4193
|
-
listMeetingTypes(r) {
|
|
4194
|
-
const request = (r.toApiJson) ? r : new ListMeetingTypesRequest(r);
|
|
4195
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/ListMeetingTypes", request.toApiJson(), this.apiOptions())
|
|
4196
|
-
.pipe(map(resp => ListMeetingTypesResponse.fromProto(resp)), share());
|
|
4197
|
-
}
|
|
4198
|
-
getMeetingType(r) {
|
|
4199
|
-
const request = (r.toApiJson) ? r : new GetMeetingTypeRequest(r);
|
|
4200
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/GetMeetingType", request.toApiJson(), this.apiOptions())
|
|
4201
|
-
.pipe(map(resp => GetMeetingTypeResponse.fromProto(resp)), share());
|
|
4202
|
-
}
|
|
4203
|
-
listAvailableTimeSlots(r) {
|
|
4204
|
-
const request = (r.toApiJson) ? r : new ListAvailableTimeSlotsRequest(r);
|
|
4205
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/ListAvailableTimeSlots", request.toApiJson(), this.apiOptions())
|
|
4206
|
-
.pipe(map(resp => ListAvailableTimeSlotsResponse.fromProto(resp)), share());
|
|
4207
|
-
}
|
|
4208
|
-
bookMeeting(r) {
|
|
4209
|
-
const request = (r.toApiJson) ? r : new BookMeetingRequest(r);
|
|
4210
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/BookMeeting", request.toApiJson(), this.apiOptions())
|
|
4211
|
-
.pipe(map(resp => BookMeetingResponse.fromProto(resp)), share());
|
|
4212
|
-
}
|
|
4213
|
-
cancelMeeting(r) {
|
|
4214
|
-
const request = (r.toApiJson) ? r : new GuestCancelMeetingRequest(r);
|
|
4215
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/CancelMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4216
|
-
}
|
|
4217
|
-
rescheduleMeeting(r) {
|
|
4218
|
-
const request = (r.toApiJson) ? r : new GuestRescheduleMeetingRequest(r);
|
|
4219
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/RescheduleMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4220
|
-
}
|
|
4221
|
-
getGuestBookedMeeting(r) {
|
|
4222
|
-
const request = (r.toApiJson) ? r : new GuestGetBookedMeetingRequest(r);
|
|
4223
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/GetGuestBookedMeeting", request.toApiJson(), this.apiOptions())
|
|
4224
|
-
.pipe(map(resp => GuestGetBookedMeetingResponse.fromProto(resp)), share());
|
|
4225
|
-
}
|
|
4226
|
-
getCalendar(r) {
|
|
4227
|
-
const request = (r.toApiJson) ? r : new GetCalendarRequest(r);
|
|
4228
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/GetCalendar", request.toApiJson(), this.apiOptions())
|
|
4229
|
-
.pipe(map(resp => GetCalendarResponse.fromProto(resp)), share());
|
|
4230
|
-
}
|
|
4231
|
-
getHost(r) {
|
|
4232
|
-
const request = (r.toApiJson) ? r : new GetHostRequest(r);
|
|
4233
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/GetHost", request.toApiJson(), this.apiOptions())
|
|
4234
|
-
.pipe(map(resp => GetHostResponse.fromProto(resp)), share());
|
|
4235
|
-
}
|
|
4236
|
-
isHostConfigured(r) {
|
|
4237
|
-
const request = (r.toApiJson) ? r : new GuestIsHostConfiguredRequest(r);
|
|
4238
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/IsHostConfigured", request.toApiJson(), this.apiOptions())
|
|
4239
|
-
.pipe(map(resp => GuestIsHostConfiguredResponse.fromProto(resp)), share());
|
|
4240
|
-
}
|
|
4241
|
-
}
|
|
4242
|
-
MeetingGuestApiService.ɵprov = ɵɵdefineInjectable({ factory: function MeetingGuestApiService_Factory() { return new MeetingGuestApiService(ɵɵinject(HttpClient), ɵɵinject(HostService)); }, token: MeetingGuestApiService, providedIn: "root" });
|
|
4243
|
-
MeetingGuestApiService.decorators = [
|
|
4244
|
-
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
4245
|
-
];
|
|
4246
|
-
MeetingGuestApiService.ctorParameters = () => [
|
|
4247
|
-
{ type: HttpClient },
|
|
4248
|
-
{ type: HostService }
|
|
4249
|
-
];
|
|
4250
|
-
|
|
4251
|
-
// *********************************
|
|
4252
|
-
class MeetingHostApiService {
|
|
4253
|
-
constructor(http, hostService) {
|
|
4254
|
-
this.http = http;
|
|
4255
|
-
this.hostService = hostService;
|
|
4256
|
-
}
|
|
4257
|
-
apiOptions() {
|
|
4258
|
-
return {
|
|
4259
|
-
headers: new HttpHeaders({
|
|
4260
|
-
'Content-Type': 'application/json'
|
|
4261
|
-
}),
|
|
4262
|
-
withCredentials: true
|
|
4263
|
-
};
|
|
4264
|
-
}
|
|
4265
|
-
buildHostId(r) {
|
|
4266
|
-
const request = (r.toApiJson) ? r : new BuildHostIdRequest(r);
|
|
4267
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/BuildHostId", request.toApiJson(), this.apiOptions())
|
|
4268
|
-
.pipe(map(resp => BuildHostIdResponse.fromProto(resp)), share());
|
|
4269
|
-
}
|
|
4270
|
-
doesCalendarExist(r) {
|
|
4271
|
-
const request = (r.toApiJson) ? r : new DoesCalendarExistRequest(r);
|
|
4272
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/DoesCalendarExist", request.toApiJson(), this.apiOptions())
|
|
4273
|
-
.pipe(map(resp => DoesCalendarExistResponse.fromProto(resp)), share());
|
|
4274
|
-
}
|
|
4275
|
-
createCalendar(r) {
|
|
4276
|
-
const request = (r.toApiJson) ? r : new CreateCalendarRequest(r);
|
|
4277
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/CreateCalendar", request.toApiJson(), this.apiOptions())
|
|
4278
|
-
.pipe(map(resp => CreateCalendarResponse.fromProto(resp)), share());
|
|
4279
|
-
}
|
|
4280
|
-
updateCalendar(r) {
|
|
4281
|
-
const request = (r.toApiJson) ? r : new UpdateCalendarRequest(r);
|
|
4282
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/UpdateCalendar", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4283
|
-
}
|
|
4284
|
-
getCalendar(r) {
|
|
4285
|
-
const request = (r.toApiJson) ? r : new HostGetCalendarRequest(r);
|
|
4286
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/GetCalendar", request.toApiJson(), this.apiOptions())
|
|
4287
|
-
.pipe(map(resp => HostGetCalendarResponse.fromProto(resp)), share());
|
|
4288
|
-
}
|
|
4289
|
-
ensurePersonalCalendarExists(r) {
|
|
4290
|
-
const request = (r.toApiJson) ? r : new EnsurePersonalCalendarExistsRequest(r);
|
|
4291
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/EnsurePersonalCalendarExists", request.toApiJson(), this.apiOptions())
|
|
4292
|
-
.pipe(map(resp => EnsurePersonalCalendarExistsResponse.fromProto(resp)), share());
|
|
4293
|
-
}
|
|
4294
|
-
ensureGroupCalendarsExist(r) {
|
|
4295
|
-
const request = (r.toApiJson) ? r : new EnsureGroupCalendarsExistRequest(r);
|
|
4296
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/EnsureGroupCalendarsExist", request.toApiJson(), this.apiOptions())
|
|
4297
|
-
.pipe(map(resp => EnsureGroupCalendarsExistResponse.fromProto(resp)), share());
|
|
4298
|
-
}
|
|
4299
|
-
getHostsForCalendar(r) {
|
|
4300
|
-
const request = (r.toApiJson) ? r : new GetHostsForCalendarRequest(r);
|
|
4301
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/GetHostsForCalendar", request.toApiJson(), this.apiOptions())
|
|
4302
|
-
.pipe(map(resp => GetHostsForCalendarResponse.fromProto(resp)), share());
|
|
4303
|
-
}
|
|
4304
|
-
getMeetingTypesForCalendars(r) {
|
|
4305
|
-
const request = (r.toApiJson) ? r : new GetMeetingTypesForCalendarsRequest(r);
|
|
4306
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/GetMeetingTypesForCalendars", request.toApiJson(), this.apiOptions())
|
|
4307
|
-
.pipe(map(resp => GetMeetingTypesForCalendarsResponse.fromProto(resp)), share());
|
|
4308
|
-
}
|
|
4309
|
-
listAvailability(r) {
|
|
4310
|
-
const request = (r.toApiJson) ? r : new ListAvailabilityRequest(r);
|
|
4311
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/ListAvailability", request.toApiJson(), this.apiOptions())
|
|
4312
|
-
.pipe(map(resp => ListAvailabilityResponse.fromProto(resp)), share());
|
|
4313
|
-
}
|
|
4314
|
-
bookMeeting(r) {
|
|
4315
|
-
const request = (r.toApiJson) ? r : new HostBookMeetingRequest(r);
|
|
4316
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/BookMeeting", request.toApiJson(), this.apiOptions())
|
|
4317
|
-
.pipe(map(resp => HostBookMeetingResponse.fromProto(resp)), share());
|
|
4318
|
-
}
|
|
4319
|
-
getHostMeeting(r) {
|
|
4320
|
-
const request = (r.toApiJson) ? r : new GetHostMeetingRequest(r);
|
|
4321
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/GetHostMeeting", request.toApiJson(), this.apiOptions())
|
|
4322
|
-
.pipe(map(resp => GetHostMeetingResponse.fromProto(resp)), share());
|
|
4323
|
-
}
|
|
4324
|
-
listBookedMeetings(r) {
|
|
4325
|
-
const request = (r.toApiJson) ? r : new ListBookedMeetingsRequest(r);
|
|
4326
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/ListBookedMeetings", request.toApiJson(), this.apiOptions())
|
|
4327
|
-
.pipe(map(resp => ListBookedMeetingsResponse.fromProto(resp)), share());
|
|
4328
|
-
}
|
|
4329
|
-
cancelMeeting(r) {
|
|
4330
|
-
const request = (r.toApiJson) ? r : new CancelMeetingRequest(r);
|
|
4331
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/CancelMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4332
|
-
}
|
|
4333
|
-
rescheduleMeeting(r) {
|
|
4334
|
-
const request = (r.toApiJson) ? r : new RescheduleMeetingRequest(r);
|
|
4335
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/RescheduleMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4336
|
-
}
|
|
4337
|
-
updateMeetingMetadata(r) {
|
|
4338
|
-
const request = (r.toApiJson) ? r : new UpdateMeetingMetadataRequest(r);
|
|
4339
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/UpdateMeetingMetadata", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4340
|
-
}
|
|
4341
|
-
setGeneralAvailability(r) {
|
|
4342
|
-
const request = (r.toApiJson) ? r : new SetGeneralAvailabilityRequest(r);
|
|
4343
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/SetGeneralAvailability", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4344
|
-
}
|
|
4345
|
-
createAvailability(r) {
|
|
4346
|
-
const request = (r.toApiJson) ? r : new CreateAvailabilityRequest(r);
|
|
4347
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/CreateAvailability", request.toApiJson(), this.apiOptions())
|
|
4348
|
-
.pipe(map(resp => CreateAvailabilityResponse.fromProto(resp)), share());
|
|
4349
|
-
}
|
|
4350
|
-
updateAvailability(r) {
|
|
4351
|
-
const request = (r.toApiJson) ? r : new UpdateAvailabilityRequest(r);
|
|
4352
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/UpdateAvailability", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4353
|
-
}
|
|
4354
|
-
deleteAvailability(r) {
|
|
4355
|
-
const request = (r.toApiJson) ? r : new DeleteAvailabilityRequest(r);
|
|
4356
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/DeleteAvailability", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4357
|
-
}
|
|
4358
|
-
isHostConfigured(r) {
|
|
4359
|
-
const request = (r.toApiJson) ? r : new IsHostConfiguredRequest(r);
|
|
4360
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/IsHostConfigured", request.toApiJson(), this.apiOptions())
|
|
4361
|
-
.pipe(map(resp => IsHostConfiguredResponse.fromProto(resp)), share());
|
|
4362
|
-
}
|
|
4363
|
-
getHostPreferences(r) {
|
|
4364
|
-
const request = (r.toApiJson) ? r : new GetHostPreferencesRequest(r);
|
|
4365
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/GetHostPreferences", request.toApiJson(), this.apiOptions())
|
|
4366
|
-
.pipe(map(resp => GetHostPreferencesResponse.fromProto(resp)), share());
|
|
4367
|
-
}
|
|
4368
|
-
updateHostPreferences(r) {
|
|
4369
|
-
const request = (r.toApiJson) ? r : new UpdateHostPreferencesRequest(r);
|
|
4370
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/UpdateHostPreferences", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4371
|
-
}
|
|
4372
|
-
getMeetingType(r) {
|
|
4373
|
-
const request = (r.toApiJson) ? r : new HostGetMeetingTypeRequest(r);
|
|
4374
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/GetMeetingType", request.toApiJson(), this.apiOptions())
|
|
4375
|
-
.pipe(map(resp => HostGetMeetingTypeResponse.fromProto(resp)), share());
|
|
4376
|
-
}
|
|
4377
|
-
listMeetingTypes(r) {
|
|
4378
|
-
const request = (r.toApiJson) ? r : new HostListMeetingTypesRequest(r);
|
|
4379
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/ListMeetingTypes", request.toApiJson(), this.apiOptions())
|
|
4380
|
-
.pipe(map(resp => HostListMeetingTypesResponse.fromProto(resp)), share());
|
|
4381
|
-
}
|
|
4382
|
-
createMeetingType(r) {
|
|
4383
|
-
const request = (r.toApiJson) ? r : new CreateMeetingTypeRequest(r);
|
|
4384
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/CreateMeetingType", request.toApiJson(), this.apiOptions())
|
|
4385
|
-
.pipe(map(resp => CreateMeetingTypeResponse.fromProto(resp)), share());
|
|
4386
|
-
}
|
|
4387
|
-
updateMeetingType(r) {
|
|
4388
|
-
const request = (r.toApiJson) ? r : new UpdateMeetingTypeRequest(r);
|
|
4389
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/UpdateMeetingType", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4390
|
-
}
|
|
4391
|
-
deleteMeetingType(r) {
|
|
4392
|
-
const request = (r.toApiJson) ? r : new DeleteMeetingTypeRequest(r);
|
|
4393
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/DeleteMeetingType", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4394
|
-
}
|
|
4395
|
-
createDefaultMeetingTypes(r) {
|
|
4396
|
-
const request = (r.toApiJson) ? r : new CreateDefaultMeetingTypesRequest(r);
|
|
4397
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/CreateDefaultMeetingTypes", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4398
|
-
}
|
|
4399
|
-
}
|
|
4400
|
-
MeetingHostApiService.ɵprov = ɵɵdefineInjectable({ factory: function MeetingHostApiService_Factory() { return new MeetingHostApiService(ɵɵinject(HttpClient), ɵɵinject(HostService)); }, token: MeetingHostApiService, providedIn: "root" });
|
|
4401
|
-
MeetingHostApiService.decorators = [
|
|
4402
|
-
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
4403
|
-
];
|
|
4404
|
-
MeetingHostApiService.ctorParameters = () => [
|
|
4405
|
-
{ type: HttpClient },
|
|
4406
|
-
{ type: HostService }
|
|
4407
|
-
];
|
|
4408
|
-
|
|
4409
|
-
// *********************************
|
|
4410
|
-
|
|
4411
4138
|
function TimeSpanFromApi(tsAPI) {
|
|
4412
4139
|
return {
|
|
4413
4140
|
start: tsAPI.start,
|
|
@@ -4423,6 +4150,23 @@ function HostFromApi(hostAPI) {
|
|
|
4423
4150
|
};
|
|
4424
4151
|
}
|
|
4425
4152
|
|
|
4153
|
+
// Copied from core
|
|
4154
|
+
var Environment;
|
|
4155
|
+
(function (Environment) {
|
|
4156
|
+
Environment[Environment["LOCAL"] = 0] = "LOCAL";
|
|
4157
|
+
Environment[Environment["TEST"] = 1] = "TEST";
|
|
4158
|
+
Environment[Environment["DEMO"] = 2] = "DEMO";
|
|
4159
|
+
Environment[Environment["PROD"] = 3] = "PROD";
|
|
4160
|
+
})(Environment || (Environment = {}));
|
|
4161
|
+
function onProduction(env) {
|
|
4162
|
+
return env === Environment.PROD || env === 'prod';
|
|
4163
|
+
}
|
|
4164
|
+
function onProductionGlobal() {
|
|
4165
|
+
// environment expected to be set in the app in globals.ts
|
|
4166
|
+
// eslint-disable-next-line
|
|
4167
|
+
return typeof window !== 'undefined' && window.environment === 'prod';
|
|
4168
|
+
}
|
|
4169
|
+
|
|
4426
4170
|
// A temporary method for building the url for a host, eventTypeId, and metadata
|
|
4427
4171
|
function getBookingUrlImplementation(req) {
|
|
4428
4172
|
const domain = getDomainFromEnvironment(req.environment);
|
|
@@ -4607,6 +4351,236 @@ class PagedResponse {
|
|
|
4607
4351
|
}
|
|
4608
4352
|
}
|
|
4609
4353
|
|
|
4354
|
+
// *********************************
|
|
4355
|
+
class MeetingGuestApiService {
|
|
4356
|
+
constructor(http, hostService) {
|
|
4357
|
+
this.http = http;
|
|
4358
|
+
this.hostService = hostService;
|
|
4359
|
+
this._host = this.hostService.hostWithScheme;
|
|
4360
|
+
}
|
|
4361
|
+
apiOptions() {
|
|
4362
|
+
return {
|
|
4363
|
+
headers: new HttpHeaders({
|
|
4364
|
+
'Content-Type': 'application/json'
|
|
4365
|
+
}),
|
|
4366
|
+
withCredentials: true
|
|
4367
|
+
};
|
|
4368
|
+
}
|
|
4369
|
+
listMeetingTypes(r) {
|
|
4370
|
+
const request = (r.toApiJson) ? r : new ListMeetingTypesRequest(r);
|
|
4371
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/ListMeetingTypes", request.toApiJson(), this.apiOptions())
|
|
4372
|
+
.pipe(map(resp => ListMeetingTypesResponse.fromProto(resp)));
|
|
4373
|
+
}
|
|
4374
|
+
getMeetingType(r) {
|
|
4375
|
+
const request = (r.toApiJson) ? r : new GetMeetingTypeRequest(r);
|
|
4376
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetMeetingType", request.toApiJson(), this.apiOptions())
|
|
4377
|
+
.pipe(map(resp => GetMeetingTypeResponse.fromProto(resp)));
|
|
4378
|
+
}
|
|
4379
|
+
listAvailableTimeSlots(r) {
|
|
4380
|
+
const request = (r.toApiJson) ? r : new ListAvailableTimeSlotsRequest(r);
|
|
4381
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/ListAvailableTimeSlots", request.toApiJson(), this.apiOptions())
|
|
4382
|
+
.pipe(map(resp => ListAvailableTimeSlotsResponse.fromProto(resp)));
|
|
4383
|
+
}
|
|
4384
|
+
bookMeeting(r) {
|
|
4385
|
+
const request = (r.toApiJson) ? r : new BookMeetingRequest(r);
|
|
4386
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/BookMeeting", request.toApiJson(), this.apiOptions())
|
|
4387
|
+
.pipe(map(resp => BookMeetingResponse.fromProto(resp)));
|
|
4388
|
+
}
|
|
4389
|
+
cancelMeeting(r) {
|
|
4390
|
+
const request = (r.toApiJson) ? r : new GuestCancelMeetingRequest(r);
|
|
4391
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/CancelMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4392
|
+
}
|
|
4393
|
+
rescheduleMeeting(r) {
|
|
4394
|
+
const request = (r.toApiJson) ? r : new GuestRescheduleMeetingRequest(r);
|
|
4395
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/RescheduleMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4396
|
+
}
|
|
4397
|
+
getGuestBookedMeeting(r) {
|
|
4398
|
+
const request = (r.toApiJson) ? r : new GuestGetBookedMeetingRequest(r);
|
|
4399
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetGuestBookedMeeting", request.toApiJson(), this.apiOptions())
|
|
4400
|
+
.pipe(map(resp => GuestGetBookedMeetingResponse.fromProto(resp)));
|
|
4401
|
+
}
|
|
4402
|
+
getCalendar(r) {
|
|
4403
|
+
const request = (r.toApiJson) ? r : new GetCalendarRequest(r);
|
|
4404
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetCalendar", request.toApiJson(), this.apiOptions())
|
|
4405
|
+
.pipe(map(resp => GetCalendarResponse.fromProto(resp)));
|
|
4406
|
+
}
|
|
4407
|
+
getHost(r) {
|
|
4408
|
+
const request = (r.toApiJson) ? r : new GetHostRequest(r);
|
|
4409
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetHost", request.toApiJson(), this.apiOptions())
|
|
4410
|
+
.pipe(map(resp => GetHostResponse.fromProto(resp)));
|
|
4411
|
+
}
|
|
4412
|
+
isHostConfigured(r) {
|
|
4413
|
+
const request = (r.toApiJson) ? r : new GuestIsHostConfiguredRequest(r);
|
|
4414
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/IsHostConfigured", request.toApiJson(), this.apiOptions())
|
|
4415
|
+
.pipe(map(resp => GuestIsHostConfiguredResponse.fromProto(resp)));
|
|
4416
|
+
}
|
|
4417
|
+
}
|
|
4418
|
+
MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: MeetingGuestApiService, deps: [{ token: i1.HttpClient }, { token: HostService$1 }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4419
|
+
MeetingGuestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: MeetingGuestApiService, providedIn: 'root' });
|
|
4420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: MeetingGuestApiService, decorators: [{
|
|
4421
|
+
type: Injectable,
|
|
4422
|
+
args: [{ providedIn: 'root' }]
|
|
4423
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
|
|
4424
|
+
|
|
4425
|
+
// *********************************
|
|
4426
|
+
class MeetingHostApiService {
|
|
4427
|
+
constructor(http, hostService) {
|
|
4428
|
+
this.http = http;
|
|
4429
|
+
this.hostService = hostService;
|
|
4430
|
+
this._host = this.hostService.hostWithScheme;
|
|
4431
|
+
}
|
|
4432
|
+
apiOptions() {
|
|
4433
|
+
return {
|
|
4434
|
+
headers: new HttpHeaders({
|
|
4435
|
+
'Content-Type': 'application/json'
|
|
4436
|
+
}),
|
|
4437
|
+
withCredentials: true
|
|
4438
|
+
};
|
|
4439
|
+
}
|
|
4440
|
+
buildHostId(r) {
|
|
4441
|
+
const request = (r.toApiJson) ? r : new BuildHostIdRequest(r);
|
|
4442
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/BuildHostId", request.toApiJson(), this.apiOptions())
|
|
4443
|
+
.pipe(map(resp => BuildHostIdResponse.fromProto(resp)));
|
|
4444
|
+
}
|
|
4445
|
+
doesCalendarExist(r) {
|
|
4446
|
+
const request = (r.toApiJson) ? r : new DoesCalendarExistRequest(r);
|
|
4447
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/DoesCalendarExist", request.toApiJson(), this.apiOptions())
|
|
4448
|
+
.pipe(map(resp => DoesCalendarExistResponse.fromProto(resp)));
|
|
4449
|
+
}
|
|
4450
|
+
createCalendar(r) {
|
|
4451
|
+
const request = (r.toApiJson) ? r : new CreateCalendarRequest(r);
|
|
4452
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/CreateCalendar", request.toApiJson(), this.apiOptions())
|
|
4453
|
+
.pipe(map(resp => CreateCalendarResponse.fromProto(resp)));
|
|
4454
|
+
}
|
|
4455
|
+
updateCalendar(r) {
|
|
4456
|
+
const request = (r.toApiJson) ? r : new UpdateCalendarRequest(r);
|
|
4457
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/UpdateCalendar", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4458
|
+
}
|
|
4459
|
+
getCalendar(r) {
|
|
4460
|
+
const request = (r.toApiJson) ? r : new HostGetCalendarRequest(r);
|
|
4461
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/GetCalendar", request.toApiJson(), this.apiOptions())
|
|
4462
|
+
.pipe(map(resp => HostGetCalendarResponse.fromProto(resp)));
|
|
4463
|
+
}
|
|
4464
|
+
ensurePersonalCalendarExists(r) {
|
|
4465
|
+
const request = (r.toApiJson) ? r : new EnsurePersonalCalendarExistsRequest(r);
|
|
4466
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/EnsurePersonalCalendarExists", request.toApiJson(), this.apiOptions())
|
|
4467
|
+
.pipe(map(resp => EnsurePersonalCalendarExistsResponse.fromProto(resp)));
|
|
4468
|
+
}
|
|
4469
|
+
ensureGroupCalendarsExist(r) {
|
|
4470
|
+
const request = (r.toApiJson) ? r : new EnsureGroupCalendarsExistRequest(r);
|
|
4471
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/EnsureGroupCalendarsExist", request.toApiJson(), this.apiOptions())
|
|
4472
|
+
.pipe(map(resp => EnsureGroupCalendarsExistResponse.fromProto(resp)));
|
|
4473
|
+
}
|
|
4474
|
+
getHostsForCalendar(r) {
|
|
4475
|
+
const request = (r.toApiJson) ? r : new GetHostsForCalendarRequest(r);
|
|
4476
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/GetHostsForCalendar", request.toApiJson(), this.apiOptions())
|
|
4477
|
+
.pipe(map(resp => GetHostsForCalendarResponse.fromProto(resp)));
|
|
4478
|
+
}
|
|
4479
|
+
getMeetingTypesForCalendars(r) {
|
|
4480
|
+
const request = (r.toApiJson) ? r : new GetMeetingTypesForCalendarsRequest(r);
|
|
4481
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/GetMeetingTypesForCalendars", request.toApiJson(), this.apiOptions())
|
|
4482
|
+
.pipe(map(resp => GetMeetingTypesForCalendarsResponse.fromProto(resp)));
|
|
4483
|
+
}
|
|
4484
|
+
listAvailability(r) {
|
|
4485
|
+
const request = (r.toApiJson) ? r : new ListAvailabilityRequest(r);
|
|
4486
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/ListAvailability", request.toApiJson(), this.apiOptions())
|
|
4487
|
+
.pipe(map(resp => ListAvailabilityResponse.fromProto(resp)));
|
|
4488
|
+
}
|
|
4489
|
+
bookMeeting(r) {
|
|
4490
|
+
const request = (r.toApiJson) ? r : new HostBookMeetingRequest(r);
|
|
4491
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/BookMeeting", request.toApiJson(), this.apiOptions())
|
|
4492
|
+
.pipe(map(resp => HostBookMeetingResponse.fromProto(resp)));
|
|
4493
|
+
}
|
|
4494
|
+
getHostMeeting(r) {
|
|
4495
|
+
const request = (r.toApiJson) ? r : new GetHostMeetingRequest(r);
|
|
4496
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/GetHostMeeting", request.toApiJson(), this.apiOptions())
|
|
4497
|
+
.pipe(map(resp => GetHostMeetingResponse.fromProto(resp)));
|
|
4498
|
+
}
|
|
4499
|
+
listBookedMeetings(r) {
|
|
4500
|
+
const request = (r.toApiJson) ? r : new ListBookedMeetingsRequest(r);
|
|
4501
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/ListBookedMeetings", request.toApiJson(), this.apiOptions())
|
|
4502
|
+
.pipe(map(resp => ListBookedMeetingsResponse.fromProto(resp)));
|
|
4503
|
+
}
|
|
4504
|
+
cancelMeeting(r) {
|
|
4505
|
+
const request = (r.toApiJson) ? r : new CancelMeetingRequest(r);
|
|
4506
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/CancelMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4507
|
+
}
|
|
4508
|
+
rescheduleMeeting(r) {
|
|
4509
|
+
const request = (r.toApiJson) ? r : new RescheduleMeetingRequest(r);
|
|
4510
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/RescheduleMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4511
|
+
}
|
|
4512
|
+
updateMeetingMetadata(r) {
|
|
4513
|
+
const request = (r.toApiJson) ? r : new UpdateMeetingMetadataRequest(r);
|
|
4514
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/UpdateMeetingMetadata", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4515
|
+
}
|
|
4516
|
+
setGeneralAvailability(r) {
|
|
4517
|
+
const request = (r.toApiJson) ? r : new SetGeneralAvailabilityRequest(r);
|
|
4518
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/SetGeneralAvailability", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4519
|
+
}
|
|
4520
|
+
createAvailability(r) {
|
|
4521
|
+
const request = (r.toApiJson) ? r : new CreateAvailabilityRequest(r);
|
|
4522
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/CreateAvailability", request.toApiJson(), this.apiOptions())
|
|
4523
|
+
.pipe(map(resp => CreateAvailabilityResponse.fromProto(resp)));
|
|
4524
|
+
}
|
|
4525
|
+
updateAvailability(r) {
|
|
4526
|
+
const request = (r.toApiJson) ? r : new UpdateAvailabilityRequest(r);
|
|
4527
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/UpdateAvailability", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4528
|
+
}
|
|
4529
|
+
deleteAvailability(r) {
|
|
4530
|
+
const request = (r.toApiJson) ? r : new DeleteAvailabilityRequest(r);
|
|
4531
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/DeleteAvailability", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4532
|
+
}
|
|
4533
|
+
isHostConfigured(r) {
|
|
4534
|
+
const request = (r.toApiJson) ? r : new IsHostConfiguredRequest(r);
|
|
4535
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/IsHostConfigured", request.toApiJson(), this.apiOptions())
|
|
4536
|
+
.pipe(map(resp => IsHostConfiguredResponse.fromProto(resp)));
|
|
4537
|
+
}
|
|
4538
|
+
getHostPreferences(r) {
|
|
4539
|
+
const request = (r.toApiJson) ? r : new GetHostPreferencesRequest(r);
|
|
4540
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/GetHostPreferences", request.toApiJson(), this.apiOptions())
|
|
4541
|
+
.pipe(map(resp => GetHostPreferencesResponse.fromProto(resp)));
|
|
4542
|
+
}
|
|
4543
|
+
updateHostPreferences(r) {
|
|
4544
|
+
const request = (r.toApiJson) ? r : new UpdateHostPreferencesRequest(r);
|
|
4545
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/UpdateHostPreferences", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4546
|
+
}
|
|
4547
|
+
getMeetingType(r) {
|
|
4548
|
+
const request = (r.toApiJson) ? r : new HostGetMeetingTypeRequest(r);
|
|
4549
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/GetMeetingType", request.toApiJson(), this.apiOptions())
|
|
4550
|
+
.pipe(map(resp => HostGetMeetingTypeResponse.fromProto(resp)));
|
|
4551
|
+
}
|
|
4552
|
+
listMeetingTypes(r) {
|
|
4553
|
+
const request = (r.toApiJson) ? r : new HostListMeetingTypesRequest(r);
|
|
4554
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/ListMeetingTypes", request.toApiJson(), this.apiOptions())
|
|
4555
|
+
.pipe(map(resp => HostListMeetingTypesResponse.fromProto(resp)));
|
|
4556
|
+
}
|
|
4557
|
+
createMeetingType(r) {
|
|
4558
|
+
const request = (r.toApiJson) ? r : new CreateMeetingTypeRequest(r);
|
|
4559
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/CreateMeetingType", request.toApiJson(), this.apiOptions())
|
|
4560
|
+
.pipe(map(resp => CreateMeetingTypeResponse.fromProto(resp)));
|
|
4561
|
+
}
|
|
4562
|
+
updateMeetingType(r) {
|
|
4563
|
+
const request = (r.toApiJson) ? r : new UpdateMeetingTypeRequest(r);
|
|
4564
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/UpdateMeetingType", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4565
|
+
}
|
|
4566
|
+
deleteMeetingType(r) {
|
|
4567
|
+
const request = (r.toApiJson) ? r : new DeleteMeetingTypeRequest(r);
|
|
4568
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/DeleteMeetingType", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4569
|
+
}
|
|
4570
|
+
createDefaultMeetingTypes(r) {
|
|
4571
|
+
const request = (r.toApiJson) ? r : new CreateDefaultMeetingTypesRequest(r);
|
|
4572
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/CreateDefaultMeetingTypes", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4573
|
+
}
|
|
4574
|
+
}
|
|
4575
|
+
MeetingHostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: MeetingHostApiService, deps: [{ token: i1.HttpClient }, { token: HostService$1 }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4576
|
+
MeetingHostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: MeetingHostApiService, providedIn: 'root' });
|
|
4577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: MeetingHostApiService, decorators: [{
|
|
4578
|
+
type: Injectable,
|
|
4579
|
+
args: [{ providedIn: 'root' }]
|
|
4580
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
|
|
4581
|
+
|
|
4582
|
+
// *********************************
|
|
4583
|
+
|
|
4610
4584
|
function CalendarFromApi(calendarAPI) {
|
|
4611
4585
|
return {
|
|
4612
4586
|
id: calendarAPI.id || '',
|
|
@@ -4676,7 +4650,7 @@ function durationToString(duration) {
|
|
|
4676
4650
|
}
|
|
4677
4651
|
const seconds = duration.seconds || 0;
|
|
4678
4652
|
const nanoseconds = duration.nanoseconds || 0;
|
|
4679
|
-
return seconds + (nanoseconds / 1e9)
|
|
4653
|
+
return `${seconds + (nanoseconds / 1e9)}s`;
|
|
4680
4654
|
}
|
|
4681
4655
|
function durationStringToMinutes(req) {
|
|
4682
4656
|
const d = durationFromString(req.duration);
|
|
@@ -4721,9 +4695,8 @@ function hostUserFromApi(hostUser) {
|
|
|
4721
4695
|
}
|
|
4722
4696
|
|
|
4723
4697
|
class GuestService {
|
|
4724
|
-
constructor(guestAPIService
|
|
4698
|
+
constructor(guestAPIService) {
|
|
4725
4699
|
this.guestAPIService = guestAPIService;
|
|
4726
|
-
this.environmentService = environmentService;
|
|
4727
4700
|
}
|
|
4728
4701
|
getMeetingType(req) {
|
|
4729
4702
|
return this.guestAPIService.getMeetingType(req).pipe(map(resp => {
|
|
@@ -4731,7 +4704,7 @@ class GuestService {
|
|
|
4731
4704
|
return {};
|
|
4732
4705
|
}
|
|
4733
4706
|
return MeetingTypeFromApi({
|
|
4734
|
-
environment:
|
|
4707
|
+
environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO,
|
|
4735
4708
|
calendarId: req.calendarSlug,
|
|
4736
4709
|
meetingTypeApi: resp.meetingType,
|
|
4737
4710
|
metadata: req.metadata,
|
|
@@ -4746,7 +4719,7 @@ class GuestService {
|
|
|
4746
4719
|
}
|
|
4747
4720
|
return resp.meetingTypes.map(mt => {
|
|
4748
4721
|
return MeetingTypeFromApi({
|
|
4749
|
-
environment:
|
|
4722
|
+
environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO,
|
|
4750
4723
|
calendarId: req.hostId,
|
|
4751
4724
|
meetingTypeApi: mt,
|
|
4752
4725
|
metadata: req.metadata,
|
|
@@ -4759,7 +4732,7 @@ class GuestService {
|
|
|
4759
4732
|
return this.guestAPIService.listAvailableTimeSlots(req).pipe(map(resp => resp.timeSlots ? resp.timeSlots.map(ts => TimeSpanFromApi(ts)) : []));
|
|
4760
4733
|
}
|
|
4761
4734
|
bookMeeting(req) {
|
|
4762
|
-
return this.guestAPIService.bookMeeting(Object.assign(Object.assign({}, req), { attendees: req.attendees, formAnswers: answersToAPI(req.formAnswers) }))
|
|
4735
|
+
return this.guestAPIService.bookMeeting(Object.assign(Object.assign({}, req), { attendees: req.attendees, formAnswers: answersToAPI(req.formAnswers) }));
|
|
4763
4736
|
}
|
|
4764
4737
|
cancelMeeting(req) {
|
|
4765
4738
|
return this.guestAPIService.cancelMeeting(req).pipe(mapTo(null));
|
|
@@ -4789,19 +4762,16 @@ class GuestService {
|
|
|
4789
4762
|
return this.guestAPIService.isHostConfigured(req).pipe(map((resp) => resp.isConfigured));
|
|
4790
4763
|
}
|
|
4791
4764
|
}
|
|
4792
|
-
GuestService.ɵ
|
|
4793
|
-
GuestService
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
{ type: undefined, decorators: [{ type: Inject, args: [EnvironmentServiceInterfaceToken,] }] }
|
|
4799
|
-
];
|
|
4765
|
+
GuestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: GuestService, deps: [{ token: MeetingGuestApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4766
|
+
GuestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: GuestService, providedIn: 'root' });
|
|
4767
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: GuestService, decorators: [{
|
|
4768
|
+
type: Injectable,
|
|
4769
|
+
args: [{ providedIn: 'root' }]
|
|
4770
|
+
}], ctorParameters: function () { return [{ type: MeetingGuestApiService }]; } });
|
|
4800
4771
|
|
|
4801
|
-
class HostService
|
|
4802
|
-
constructor(hostAPIService
|
|
4772
|
+
class HostService {
|
|
4773
|
+
constructor(hostAPIService) {
|
|
4803
4774
|
this.hostAPIService = hostAPIService;
|
|
4804
|
-
this.environmentService = environmentService;
|
|
4805
4775
|
}
|
|
4806
4776
|
// Use buildHostId to get an identifier that can be used in subsequent requests. See vendastaapis for more details
|
|
4807
4777
|
buildHostId(req) {
|
|
@@ -4856,7 +4826,7 @@ class HostService$1 {
|
|
|
4856
4826
|
var _a;
|
|
4857
4827
|
const meetingTypes = (((_a = res.calendarMeetingTypesMap[calendarId]) === null || _a === void 0 ? void 0 : _a.meetingTypes) || []).map(mt => MeetingTypeFromApi({
|
|
4858
4828
|
meetingTypeApi: mt,
|
|
4859
|
-
environment:
|
|
4829
|
+
environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO,
|
|
4860
4830
|
calendarId,
|
|
4861
4831
|
metadata: req.metadata,
|
|
4862
4832
|
}));
|
|
@@ -4880,7 +4850,7 @@ class HostService$1 {
|
|
|
4880
4850
|
return MeetingTypeFromApi({
|
|
4881
4851
|
meetingTypeApi: mt,
|
|
4882
4852
|
calendarId: req.hostId,
|
|
4883
|
-
environment:
|
|
4853
|
+
environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO,
|
|
4884
4854
|
metadata: req.metadata,
|
|
4885
4855
|
calendarSlug: req.calendarSlug,
|
|
4886
4856
|
});
|
|
@@ -4898,7 +4868,7 @@ class HostService$1 {
|
|
|
4898
4868
|
@param calendarSlug: used to replace hostId in the url. Use it when you are confident you know the host's slug.
|
|
4899
4869
|
*/
|
|
4900
4870
|
getBookingUrl(req) {
|
|
4901
|
-
return of(getBookingUrlImplementation(Object.assign(Object.assign({}, req), { calendarId: req.calendarId || req.hostId, environment:
|
|
4871
|
+
return of(getBookingUrlImplementation(Object.assign(Object.assign({}, req), { calendarId: req.calendarId || req.hostId, environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO, calendarSlug: req.calendarSlug })));
|
|
4902
4872
|
}
|
|
4903
4873
|
/*
|
|
4904
4874
|
getGeneralBookingUrl returns a link that can be used to select a meeting type to book with the given calendar.
|
|
@@ -4910,7 +4880,7 @@ class HostService$1 {
|
|
|
4910
4880
|
*/
|
|
4911
4881
|
getGeneralBookingUrl(req) {
|
|
4912
4882
|
return of(getGeneralBookingUrlImplementation({
|
|
4913
|
-
environment:
|
|
4883
|
+
environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO,
|
|
4914
4884
|
calendarId: req.calendarId,
|
|
4915
4885
|
metadata: req.metadata,
|
|
4916
4886
|
calendarSlug: req.calendarSlug,
|
|
@@ -4932,7 +4902,7 @@ class HostService$1 {
|
|
|
4932
4902
|
calendarId,
|
|
4933
4903
|
meetingTypeSlug,
|
|
4934
4904
|
metadata,
|
|
4935
|
-
environment:
|
|
4905
|
+
environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO,
|
|
4936
4906
|
calendarSlug,
|
|
4937
4907
|
}) });
|
|
4938
4908
|
}, {}) });
|
|
@@ -5065,18 +5035,16 @@ class HostService$1 {
|
|
|
5065
5035
|
}));
|
|
5066
5036
|
}
|
|
5067
5037
|
}
|
|
5068
|
-
HostService
|
|
5069
|
-
HostService
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
{ type: undefined, decorators: [{ type: Inject, args: [EnvironmentServiceInterfaceToken,] }] }
|
|
5075
|
-
];
|
|
5038
|
+
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: HostService, deps: [{ token: MeetingHostApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5039
|
+
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: HostService, providedIn: 'root' });
|
|
5040
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: HostService, decorators: [{
|
|
5041
|
+
type: Injectable,
|
|
5042
|
+
args: [{ providedIn: 'root' }]
|
|
5043
|
+
}], ctorParameters: function () { return [{ type: MeetingHostApiService }]; } });
|
|
5076
5044
|
|
|
5077
5045
|
/**
|
|
5078
5046
|
* Generated bundle index. Do not edit.
|
|
5079
5047
|
*/
|
|
5080
5048
|
|
|
5081
|
-
export { CalendarType, Contact, CreateCalendarRequest, CreateCalendarResponse, DayOfWeek, FormFieldType, GuestService, HostService
|
|
5082
|
-
//# sourceMappingURL=vendasta-meetings.
|
|
5049
|
+
export { CalendarType, Contact, CreateCalendarRequest, CreateCalendarResponse, DayOfWeek, FormFieldType, GuestService, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, PagedResponse, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
|
|
5050
|
+
//# sourceMappingURL=vendasta-meetings.mjs.map
|