@vendasta/meetings 0.72.0 → 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} +554 -1264
- 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/index.d.ts +3 -3
- package/lib/_internal/interfaces/meeting-host.interface.d.ts +2 -1
- package/lib/_internal/interfaces/meeting-source.interface.d.ts +1 -1
- package/lib/_internal/interfaces/meeting-type.interface.d.ts +1 -1
- package/lib/_internal/interfaces/shared.interface.d.ts +1 -1
- package/lib/_internal/interfaces/zoom.interface.d.ts +1 -1
- 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/objects/date-range.d.ts +1 -1
- package/lib/_internal/objects/datetime.d.ts +1 -1
- package/lib/_internal/objects/field-mask.d.ts +1 -1
- package/lib/_internal/objects/google-meet.d.ts +1 -1
- package/lib/_internal/objects/meeting-guest.d.ts +1 -1
- package/lib/_internal/objects/meeting-host.d.ts +3 -2
- package/lib/_internal/objects/meeting-source.d.ts +2 -2
- package/lib/_internal/objects/meeting-type.d.ts +2 -2
- package/lib/_internal/objects/shared.d.ts +2 -2
- package/lib/_internal/objects/timeofday.d.ts +1 -1
- package/lib/_internal/objects/zoom.d.ts +2 -2
- package/lib/_internal/zoom.api.service.d.ts +4 -0
- package/lib/guest/guest.service.d.ts +5 -4
- package/lib/guest/index.d.ts +0 -1
- package/lib/host/host.service.d.ts +7 -6
- package/lib/host/url.d.ts +1 -1
- package/lib/index.d.ts +1 -4
- package/lib/meetings.service.d.ts +3 -0
- package/lib/shared/availability.d.ts +2 -2
- package/lib/shared/calendar.d.ts +1 -1
- package/lib/shared/environment.d.ts +8 -0
- package/lib/shared/fieldmask.d.ts +1 -1
- package/lib/shared/host.d.ts +1 -1
- package/lib/shared/meeting-type.d.ts +2 -2
- package/lib/shared/meeting.d.ts +2 -2
- package/lib/shared/preferences.d.ts +3 -3
- package/lib/shared/time-span.d.ts +1 -1
- package/package.json +26 -15
- package/public_api.d.ts +1 -1
- package/src/README.md +12 -0
- package/vendasta-meetings.d.ts +1 -10
- package/bundles/vendasta-meetings.umd.js +0 -6217
- 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 -62
- 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 -38
- 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 -81
- package/esm2015/lib/_internal/meeting-host.api.service.js +0 -167
- package/esm2015/lib/_internal/meeting-source-api.api.service.js +0 -38
- package/esm2015/lib/_internal/meetings.module.js +0 -33
- package/esm2015/lib/_internal/objects/date-range.js +0 -40
- package/esm2015/lib/_internal/objects/datetime.js +0 -92
- package/esm2015/lib/_internal/objects/dayofweek.js +0 -7
- package/esm2015/lib/_internal/objects/field-mask.js +0 -30
- package/esm2015/lib/_internal/objects/google-meet.js +0 -646
- package/esm2015/lib/_internal/objects/index.js +0 -18
- package/esm2015/lib/_internal/objects/meeting-guest.js +0 -591
- package/esm2015/lib/_internal/objects/meeting-host.js +0 -1699
- package/esm2015/lib/_internal/objects/meeting-source.js +0 -139
- package/esm2015/lib/_internal/objects/meeting-type.js +0 -142
- package/esm2015/lib/_internal/objects/shared.js +0 -504
- package/esm2015/lib/_internal/objects/timeofday.js +0 -42
- package/esm2015/lib/_internal/objects/zoom.js +0 -456
- package/esm2015/lib/_internal/zoom.api.service.js +0 -38
- package/esm2015/lib/guest/guest.module.js +0 -16
- package/esm2015/lib/guest/guest.service.js +0 -82
- package/esm2015/lib/guest/index.js +0 -3
- package/esm2015/lib/host/host.module.js +0 -16
- package/esm2015/lib/host/host.service.js +0 -283
- package/esm2015/lib/host/url.js +0 -39
- package/esm2015/lib/index.js +0 -11
- package/esm2015/lib/meetings.module.js +0 -22
- package/esm2015/lib/meetings.service.js +0 -165
- 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 -12
- package/fesm2015/vendasta-meetings.js.map +0 -1
- package/lib/_internal/meetings.module.d.ts +0 -2
- package/lib/guest/guest.module.d.ts +0 -2
- package/lib/host/host.module.d.ts +0 -2
- package/lib/meetings.module.d.ts +0 -2
- package/vendasta-meetings.metadata.json +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { HttpHeaders, HttpClient } from '@angular/common/http';
|
|
4
|
-
import { map, share, mapTo } from 'rxjs/operators';
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
5
3
|
import { throwError, of } from 'rxjs';
|
|
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,145 +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
|
-
if (typeof this.source === 'undefined' &&
|
|
161
|
-
typeof this.status === 'undefined' &&
|
|
162
|
-
typeof this.connectDisconnectUrl === 'undefined') {
|
|
163
|
-
return {};
|
|
164
|
-
}
|
|
165
|
-
const toReturn = {};
|
|
166
|
-
if (typeof this.source !== 'undefined') {
|
|
167
|
-
toReturn['source'] = this.source;
|
|
168
|
-
}
|
|
169
|
-
if (typeof this.status !== 'undefined') {
|
|
170
|
-
toReturn['status'] = this.status;
|
|
171
|
-
}
|
|
172
|
-
if (typeof this.connectDisconnectUrl !== 'undefined') {
|
|
173
|
-
toReturn['connectDisconnectUrl'] = this.connectDisconnectUrl;
|
|
174
|
-
}
|
|
175
|
-
return toReturn;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
class MeetingSourceListRequest {
|
|
179
|
-
constructor(kwargs) {
|
|
180
|
-
if (!kwargs) {
|
|
181
|
-
return;
|
|
182
|
-
}
|
|
183
|
-
Object.assign(this, kwargs);
|
|
184
|
-
}
|
|
185
|
-
static fromProto(proto) {
|
|
186
|
-
let m = new MeetingSourceListRequest();
|
|
187
|
-
m = Object.assign(m, proto);
|
|
188
|
-
if (proto.queriedSources) {
|
|
189
|
-
m.queriedSources = proto.queriedSources.map(MeetingSourceQuery.fromProto);
|
|
190
|
-
}
|
|
191
|
-
return m;
|
|
192
|
-
}
|
|
193
|
-
toApiJson() {
|
|
194
|
-
if (typeof this.iamUserId === 'undefined' &&
|
|
195
|
-
typeof this.queriedSources === 'undefined') {
|
|
196
|
-
return {};
|
|
197
|
-
}
|
|
198
|
-
const toReturn = {};
|
|
199
|
-
if (typeof this.iamUserId !== 'undefined') {
|
|
200
|
-
toReturn['iamUserId'] = this.iamUserId;
|
|
201
|
-
}
|
|
202
|
-
if (typeof this.queriedSources !== 'undefined' && this.queriedSources !== null) {
|
|
203
|
-
toReturn['queriedSources'] = 'toApiJson' in this.queriedSources ? this.queriedSources.toApiJson() : this.queriedSources;
|
|
204
|
-
}
|
|
205
|
-
return toReturn;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
class MeetingSourceListResponse {
|
|
209
|
-
constructor(kwargs) {
|
|
210
|
-
if (!kwargs) {
|
|
211
|
-
return;
|
|
212
|
-
}
|
|
213
|
-
Object.assign(this, kwargs);
|
|
214
|
-
}
|
|
215
|
-
static fromProto(proto) {
|
|
216
|
-
let m = new MeetingSourceListResponse();
|
|
217
|
-
m = Object.assign(m, proto);
|
|
218
|
-
if (proto.sourceInfo) {
|
|
219
|
-
m.sourceInfo = proto.sourceInfo.map(MeetingSourceInfo.fromProto);
|
|
220
|
-
}
|
|
221
|
-
return m;
|
|
222
|
-
}
|
|
223
|
-
toApiJson() {
|
|
224
|
-
if (typeof this.iamUserId === 'undefined' &&
|
|
225
|
-
typeof this.sourceInfo === 'undefined') {
|
|
226
|
-
return {};
|
|
227
|
-
}
|
|
228
|
-
const toReturn = {};
|
|
229
|
-
if (typeof this.iamUserId !== 'undefined') {
|
|
230
|
-
toReturn['iamUserId'] = this.iamUserId;
|
|
231
|
-
}
|
|
232
|
-
if (typeof this.sourceInfo !== 'undefined' && this.sourceInfo !== null) {
|
|
233
|
-
toReturn['sourceInfo'] = 'toApiJson' in this.sourceInfo ? this.sourceInfo.toApiJson() : this.sourceInfo;
|
|
234
|
-
}
|
|
235
|
-
return toReturn;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
class MeetingSourceQuery {
|
|
239
|
-
constructor(kwargs) {
|
|
240
|
-
if (!kwargs) {
|
|
241
|
-
return;
|
|
242
|
-
}
|
|
243
|
-
Object.assign(this, kwargs);
|
|
244
|
-
}
|
|
245
|
-
static fromProto(proto) {
|
|
246
|
-
let m = new MeetingSourceQuery();
|
|
247
|
-
m = Object.assign(m, proto);
|
|
248
|
-
if (proto.source) {
|
|
249
|
-
m.source = enumStringToValue(MeetingSource, proto.source);
|
|
250
|
-
}
|
|
251
|
-
return m;
|
|
252
|
-
}
|
|
253
|
-
toApiJson() {
|
|
254
|
-
if (typeof this.source === 'undefined' &&
|
|
255
|
-
typeof this.connectNextUrl === 'undefined' &&
|
|
256
|
-
typeof this.disconnectNextUrl === 'undefined') {
|
|
257
|
-
return {};
|
|
258
|
-
}
|
|
259
|
-
const toReturn = {};
|
|
260
|
-
if (typeof this.source !== 'undefined') {
|
|
261
|
-
toReturn['source'] = this.source;
|
|
262
|
-
}
|
|
263
|
-
if (typeof this.connectNextUrl !== 'undefined') {
|
|
264
|
-
toReturn['connectNextUrl'] = this.connectNextUrl;
|
|
265
|
-
}
|
|
266
|
-
if (typeof this.disconnectNextUrl !== 'undefined') {
|
|
267
|
-
toReturn['disconnectNextUrl'] = this.disconnectNextUrl;
|
|
268
|
-
}
|
|
269
|
-
return toReturn;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
function enumStringToValue$1(enumRef, value) {
|
|
136
|
+
function enumStringToValue$a(enumRef, value) {
|
|
274
137
|
if (typeof value === 'number') {
|
|
275
138
|
return value;
|
|
276
139
|
}
|
|
@@ -287,7 +150,7 @@ class CreateZoomMeetingRequest {
|
|
|
287
150
|
let m = new CreateZoomMeetingRequest();
|
|
288
151
|
m = Object.assign(m, proto);
|
|
289
152
|
if (proto.type) {
|
|
290
|
-
m.type = enumStringToValue$
|
|
153
|
+
m.type = enumStringToValue$a(ZoomMeetingType, proto.type);
|
|
291
154
|
}
|
|
292
155
|
if (proto.duration) {
|
|
293
156
|
m.duration = parseInt(proto.duration, 10);
|
|
@@ -304,19 +167,6 @@ class CreateZoomMeetingRequest {
|
|
|
304
167
|
return m;
|
|
305
168
|
}
|
|
306
169
|
toApiJson() {
|
|
307
|
-
if (typeof this.iamUserId === 'undefined' &&
|
|
308
|
-
typeof this.topic === 'undefined' &&
|
|
309
|
-
typeof this.type === 'undefined' &&
|
|
310
|
-
typeof this.startTime === 'undefined' &&
|
|
311
|
-
typeof this.duration === 'undefined' &&
|
|
312
|
-
typeof this.timezone === 'undefined' &&
|
|
313
|
-
typeof this.password === 'undefined' &&
|
|
314
|
-
typeof this.agenda === 'undefined' &&
|
|
315
|
-
typeof this.trackingFields === 'undefined' &&
|
|
316
|
-
typeof this.recurrence === 'undefined' &&
|
|
317
|
-
typeof this.settings === 'undefined') {
|
|
318
|
-
return {};
|
|
319
|
-
}
|
|
320
170
|
const toReturn = {};
|
|
321
171
|
if (typeof this.iamUserId !== 'undefined') {
|
|
322
172
|
toReturn['iamUserId'] = this.iamUserId;
|
|
@@ -368,7 +218,7 @@ class CreateZoomMeetingResponse {
|
|
|
368
218
|
m.meetingId = parseInt(proto.meetingId, 10);
|
|
369
219
|
}
|
|
370
220
|
if (proto.type) {
|
|
371
|
-
m.type = enumStringToValue$
|
|
221
|
+
m.type = enumStringToValue$a(ZoomMeetingType, proto.type);
|
|
372
222
|
}
|
|
373
223
|
if (proto.duration) {
|
|
374
224
|
m.duration = parseInt(proto.duration, 10);
|
|
@@ -391,26 +241,6 @@ class CreateZoomMeetingResponse {
|
|
|
391
241
|
return m;
|
|
392
242
|
}
|
|
393
243
|
toApiJson() {
|
|
394
|
-
if (typeof this.iamUserId === 'undefined' &&
|
|
395
|
-
typeof this.meetingId === 'undefined' &&
|
|
396
|
-
typeof this.topic === 'undefined' &&
|
|
397
|
-
typeof this.type === 'undefined' &&
|
|
398
|
-
typeof this.startTime === 'undefined' &&
|
|
399
|
-
typeof this.duration === 'undefined' &&
|
|
400
|
-
typeof this.timezone === 'undefined' &&
|
|
401
|
-
typeof this.createdAt === 'undefined' &&
|
|
402
|
-
typeof this.agenda === 'undefined' &&
|
|
403
|
-
typeof this.startUrl === 'undefined' &&
|
|
404
|
-
typeof this.joinUrl === 'undefined' &&
|
|
405
|
-
typeof this.password === 'undefined' &&
|
|
406
|
-
typeof this.h323Password === 'undefined' &&
|
|
407
|
-
typeof this.pmi === 'undefined' &&
|
|
408
|
-
typeof this.trackingFields === 'undefined' &&
|
|
409
|
-
typeof this.occurrences === 'undefined' &&
|
|
410
|
-
typeof this.settings === 'undefined' &&
|
|
411
|
-
typeof this.recurrence === 'undefined') {
|
|
412
|
-
return {};
|
|
413
|
-
}
|
|
414
244
|
const toReturn = {};
|
|
415
245
|
if (typeof this.iamUserId !== 'undefined') {
|
|
416
246
|
toReturn['iamUserId'] = this.iamUserId;
|
|
@@ -480,7 +310,7 @@ class ZoomMeetingRecurrence {
|
|
|
480
310
|
let m = new ZoomMeetingRecurrence();
|
|
481
311
|
m = Object.assign(m, proto);
|
|
482
312
|
if (proto.type) {
|
|
483
|
-
m.type = enumStringToValue$
|
|
313
|
+
m.type = enumStringToValue$a(ZoomMeetingRecurrenceType, proto.type);
|
|
484
314
|
}
|
|
485
315
|
if (proto.repeatInterval) {
|
|
486
316
|
m.repeatInterval = parseInt(proto.repeatInterval, 10);
|
|
@@ -489,10 +319,10 @@ class ZoomMeetingRecurrence {
|
|
|
489
319
|
m.monthlyDay = parseInt(proto.monthlyDay, 10);
|
|
490
320
|
}
|
|
491
321
|
if (proto.monthlyWeek) {
|
|
492
|
-
m.monthlyWeek = enumStringToValue$
|
|
322
|
+
m.monthlyWeek = enumStringToValue$a(ZoomMonthlyWeek, proto.monthlyWeek);
|
|
493
323
|
}
|
|
494
324
|
if (proto.monthlyWeekDay) {
|
|
495
|
-
m.monthlyWeekDay = enumStringToValue$
|
|
325
|
+
m.monthlyWeekDay = enumStringToValue$a(ZoomMonthlyWeekDay, proto.monthlyWeekDay);
|
|
496
326
|
}
|
|
497
327
|
if (proto.endTimes) {
|
|
498
328
|
m.endTimes = parseInt(proto.endTimes, 10);
|
|
@@ -500,16 +330,6 @@ class ZoomMeetingRecurrence {
|
|
|
500
330
|
return m;
|
|
501
331
|
}
|
|
502
332
|
toApiJson() {
|
|
503
|
-
if (typeof this.type === 'undefined' &&
|
|
504
|
-
typeof this.repeatInterval === 'undefined' &&
|
|
505
|
-
typeof this.weeklyDays === 'undefined' &&
|
|
506
|
-
typeof this.monthlyDay === 'undefined' &&
|
|
507
|
-
typeof this.monthlyWeek === 'undefined' &&
|
|
508
|
-
typeof this.monthlyWeekDay === 'undefined' &&
|
|
509
|
-
typeof this.endTimes === 'undefined' &&
|
|
510
|
-
typeof this.endDateTime === 'undefined') {
|
|
511
|
-
return {};
|
|
512
|
-
}
|
|
513
333
|
const toReturn = {};
|
|
514
334
|
if (typeof this.type !== 'undefined') {
|
|
515
335
|
toReturn['type'] = this.type;
|
|
@@ -549,40 +369,14 @@ class ZoomMeetingSettings {
|
|
|
549
369
|
let m = new ZoomMeetingSettings();
|
|
550
370
|
m = Object.assign(m, proto);
|
|
551
371
|
if (proto.approvalType) {
|
|
552
|
-
m.approvalType = enumStringToValue$
|
|
372
|
+
m.approvalType = enumStringToValue$a(ZoomApprovalType, proto.approvalType);
|
|
553
373
|
}
|
|
554
374
|
if (proto.registrationType) {
|
|
555
|
-
m.registrationType = enumStringToValue$
|
|
375
|
+
m.registrationType = enumStringToValue$a(ZoomRegistrationType, proto.registrationType);
|
|
556
376
|
}
|
|
557
377
|
return m;
|
|
558
378
|
}
|
|
559
379
|
toApiJson() {
|
|
560
|
-
if (typeof this.hostVideo === 'undefined' &&
|
|
561
|
-
typeof this.participantVideo === 'undefined' &&
|
|
562
|
-
typeof this.cnMeeting === 'undefined' &&
|
|
563
|
-
typeof this.inMeeting === 'undefined' &&
|
|
564
|
-
typeof this.joinBeforeHost === 'undefined' &&
|
|
565
|
-
typeof this.muteUponEntry === 'undefined' &&
|
|
566
|
-
typeof this.watermark === 'undefined' &&
|
|
567
|
-
typeof this.usePmi === 'undefined' &&
|
|
568
|
-
typeof this.approvalType === 'undefined' &&
|
|
569
|
-
typeof this.registrationType === 'undefined' &&
|
|
570
|
-
typeof this.audio === 'undefined' &&
|
|
571
|
-
typeof this.autoRecording === 'undefined' &&
|
|
572
|
-
typeof this.alternativeHosts === 'undefined' &&
|
|
573
|
-
typeof this.closeRegistration === 'undefined' &&
|
|
574
|
-
typeof this.waitingRoom === 'undefined' &&
|
|
575
|
-
typeof this.globalDialInCountries === 'undefined' &&
|
|
576
|
-
typeof this.contactName === 'undefined' &&
|
|
577
|
-
typeof this.contactEmail === 'undefined' &&
|
|
578
|
-
typeof this.registrationEmailNotification === 'undefined' &&
|
|
579
|
-
typeof this.meetingAuthentication === 'undefined' &&
|
|
580
|
-
typeof this.authenticationOptions === 'undefined' &&
|
|
581
|
-
typeof this.authenticationDomains === 'undefined' &&
|
|
582
|
-
typeof this.enforceLogin === 'undefined' &&
|
|
583
|
-
typeof this.enforceLoginDomains === 'undefined') {
|
|
584
|
-
return {};
|
|
585
|
-
}
|
|
586
380
|
const toReturn = {};
|
|
587
381
|
if (typeof this.hostVideo !== 'undefined') {
|
|
588
382
|
toReturn['hostVideo'] = this.hostVideo;
|
|
@@ -672,10 +466,6 @@ class ZoomMeetingTrackingField {
|
|
|
672
466
|
return m;
|
|
673
467
|
}
|
|
674
468
|
toApiJson() {
|
|
675
|
-
if (typeof this.field === 'undefined' &&
|
|
676
|
-
typeof this.value === 'undefined') {
|
|
677
|
-
return {};
|
|
678
|
-
}
|
|
679
469
|
const toReturn = {};
|
|
680
470
|
if (typeof this.field !== 'undefined') {
|
|
681
471
|
toReturn['field'] = this.field;
|
|
@@ -702,12 +492,6 @@ class ZoomOccurrence {
|
|
|
702
492
|
return m;
|
|
703
493
|
}
|
|
704
494
|
toApiJson() {
|
|
705
|
-
if (typeof this.occurrenceId === 'undefined' &&
|
|
706
|
-
typeof this.startTime === 'undefined' &&
|
|
707
|
-
typeof this.duration === 'undefined' &&
|
|
708
|
-
typeof this.status === 'undefined') {
|
|
709
|
-
return {};
|
|
710
|
-
}
|
|
711
495
|
const toReturn = {};
|
|
712
496
|
if (typeof this.occurrenceId !== 'undefined') {
|
|
713
497
|
toReturn['occurrenceId'] = this.occurrenceId;
|
|
@@ -725,7 +509,7 @@ class ZoomOccurrence {
|
|
|
725
509
|
}
|
|
726
510
|
}
|
|
727
511
|
|
|
728
|
-
function enumStringToValue$
|
|
512
|
+
function enumStringToValue$9(enumRef, value) {
|
|
729
513
|
if (typeof value === 'number') {
|
|
730
514
|
return value;
|
|
731
515
|
}
|
|
@@ -753,14 +537,6 @@ class GoogleMeetConferenceData {
|
|
|
753
537
|
return m;
|
|
754
538
|
}
|
|
755
539
|
toApiJson() {
|
|
756
|
-
if (typeof this.conferenceId === 'undefined' &&
|
|
757
|
-
typeof this.conferenceSolution === 'undefined' &&
|
|
758
|
-
typeof this.createRequest === 'undefined' &&
|
|
759
|
-
typeof this.entryPoints === 'undefined' &&
|
|
760
|
-
typeof this.notes === 'undefined' &&
|
|
761
|
-
typeof this.signature === 'undefined') {
|
|
762
|
-
return {};
|
|
763
|
-
}
|
|
764
540
|
const toReturn = {};
|
|
765
541
|
if (typeof this.conferenceId !== 'undefined') {
|
|
766
542
|
toReturn['conferenceId'] = this.conferenceId;
|
|
@@ -796,9 +572,6 @@ class GoogleMeetConferenceRequestStatus {
|
|
|
796
572
|
return m;
|
|
797
573
|
}
|
|
798
574
|
toApiJson() {
|
|
799
|
-
if (typeof this.statusCode === 'undefined') {
|
|
800
|
-
return {};
|
|
801
|
-
}
|
|
802
575
|
const toReturn = {};
|
|
803
576
|
if (typeof this.statusCode !== 'undefined') {
|
|
804
577
|
toReturn['statusCode'] = this.statusCode;
|
|
@@ -822,11 +595,6 @@ class GoogleMeetConferenceSolution {
|
|
|
822
595
|
return m;
|
|
823
596
|
}
|
|
824
597
|
toApiJson() {
|
|
825
|
-
if (typeof this.iconUri === 'undefined' &&
|
|
826
|
-
typeof this.key === 'undefined' &&
|
|
827
|
-
typeof this.name === 'undefined') {
|
|
828
|
-
return {};
|
|
829
|
-
}
|
|
830
598
|
const toReturn = {};
|
|
831
599
|
if (typeof this.iconUri !== 'undefined') {
|
|
832
600
|
toReturn['iconUri'] = this.iconUri;
|
|
@@ -853,9 +621,6 @@ class GoogleMeetConferenceSolutionKey {
|
|
|
853
621
|
return m;
|
|
854
622
|
}
|
|
855
623
|
toApiJson() {
|
|
856
|
-
if (typeof this.type === 'undefined') {
|
|
857
|
-
return {};
|
|
858
|
-
}
|
|
859
624
|
const toReturn = {};
|
|
860
625
|
if (typeof this.type !== 'undefined') {
|
|
861
626
|
toReturn['type'] = this.type;
|
|
@@ -882,11 +647,6 @@ class GoogleMeetCreateConferenceRequest {
|
|
|
882
647
|
return m;
|
|
883
648
|
}
|
|
884
649
|
toApiJson() {
|
|
885
|
-
if (typeof this.conferenceSolutionKey === 'undefined' &&
|
|
886
|
-
typeof this.requestId === 'undefined' &&
|
|
887
|
-
typeof this.status === 'undefined') {
|
|
888
|
-
return {};
|
|
889
|
-
}
|
|
890
650
|
const toReturn = {};
|
|
891
651
|
if (typeof this.conferenceSolutionKey !== 'undefined' && this.conferenceSolutionKey !== null) {
|
|
892
652
|
toReturn['conferenceSolutionKey'] = 'toApiJson' in this.conferenceSolutionKey ? this.conferenceSolutionKey.toApiJson() : this.conferenceSolutionKey;
|
|
@@ -916,10 +676,6 @@ class GoogleMeetCreateMeetingRequest {
|
|
|
916
676
|
return m;
|
|
917
677
|
}
|
|
918
678
|
toApiJson() {
|
|
919
|
-
if (typeof this.calenderId === 'undefined' &&
|
|
920
|
-
typeof this.meeting === 'undefined') {
|
|
921
|
-
return {};
|
|
922
|
-
}
|
|
923
679
|
const toReturn = {};
|
|
924
680
|
if (typeof this.calenderId !== 'undefined') {
|
|
925
681
|
toReturn['calenderId'] = this.calenderId;
|
|
@@ -946,11 +702,6 @@ class GoogleMeetCreateMeetingResponse {
|
|
|
946
702
|
return m;
|
|
947
703
|
}
|
|
948
704
|
toApiJson() {
|
|
949
|
-
if (typeof this.iamUserId === 'undefined' &&
|
|
950
|
-
typeof this.calenderId === 'undefined' &&
|
|
951
|
-
typeof this.meeting === 'undefined') {
|
|
952
|
-
return {};
|
|
953
|
-
}
|
|
954
705
|
const toReturn = {};
|
|
955
706
|
if (typeof this.iamUserId !== 'undefined') {
|
|
956
707
|
toReturn['iamUserId'] = this.iamUserId;
|
|
@@ -977,18 +728,6 @@ class GoogleMeetEntryPoint {
|
|
|
977
728
|
return m;
|
|
978
729
|
}
|
|
979
730
|
toApiJson() {
|
|
980
|
-
if (typeof this.accessCode === 'undefined' &&
|
|
981
|
-
typeof this.entryPointFeatures === 'undefined' &&
|
|
982
|
-
typeof this.entryPointType === 'undefined' &&
|
|
983
|
-
typeof this.label === 'undefined' &&
|
|
984
|
-
typeof this.meetingCode === 'undefined' &&
|
|
985
|
-
typeof this.passcode === 'undefined' &&
|
|
986
|
-
typeof this.password === 'undefined' &&
|
|
987
|
-
typeof this.pin === 'undefined' &&
|
|
988
|
-
typeof this.regionCode === 'undefined' &&
|
|
989
|
-
typeof this.uri === 'undefined') {
|
|
990
|
-
return {};
|
|
991
|
-
}
|
|
992
731
|
const toReturn = {};
|
|
993
732
|
if (typeof this.accessCode !== 'undefined') {
|
|
994
733
|
toReturn['accessCode'] = this.accessCode;
|
|
@@ -1060,37 +799,6 @@ class GoogleMeetMeeting {
|
|
|
1060
799
|
return m;
|
|
1061
800
|
}
|
|
1062
801
|
toApiJson() {
|
|
1063
|
-
if (typeof this.anyoneCanAddSelf === 'undefined' &&
|
|
1064
|
-
typeof this.attendees === 'undefined' &&
|
|
1065
|
-
typeof this.attendeesOmitted === 'undefined' &&
|
|
1066
|
-
typeof this.colorId === 'undefined' &&
|
|
1067
|
-
typeof this.conferenceData === 'undefined' &&
|
|
1068
|
-
typeof this.description === 'undefined' &&
|
|
1069
|
-
typeof this.end === 'undefined' &&
|
|
1070
|
-
typeof this.endTimeUnspecified === 'undefined' &&
|
|
1071
|
-
typeof this.etag === 'undefined' &&
|
|
1072
|
-
typeof this.icalUid === 'undefined' &&
|
|
1073
|
-
typeof this.id === 'undefined' &&
|
|
1074
|
-
typeof this.kind === 'undefined' &&
|
|
1075
|
-
typeof this.location === 'undefined' &&
|
|
1076
|
-
typeof this.locked === 'undefined' &&
|
|
1077
|
-
typeof this.originalStartTime === 'undefined' &&
|
|
1078
|
-
typeof this.recurrence === 'undefined' &&
|
|
1079
|
-
typeof this.recurringMeetingId === 'undefined' &&
|
|
1080
|
-
typeof this.reminders === 'undefined' &&
|
|
1081
|
-
typeof this.sequence === 'undefined' &&
|
|
1082
|
-
typeof this.start === 'undefined' &&
|
|
1083
|
-
typeof this.status === 'undefined' &&
|
|
1084
|
-
typeof this.summary === 'undefined' &&
|
|
1085
|
-
typeof this.transparency === 'undefined' &&
|
|
1086
|
-
typeof this.visibility === 'undefined' &&
|
|
1087
|
-
typeof this.hangoutLink === 'undefined' &&
|
|
1088
|
-
typeof this.htmlLink === 'undefined' &&
|
|
1089
|
-
typeof this.created === 'undefined' &&
|
|
1090
|
-
typeof this.creator === 'undefined' &&
|
|
1091
|
-
typeof this.updated === 'undefined') {
|
|
1092
|
-
return {};
|
|
1093
|
-
}
|
|
1094
802
|
const toReturn = {};
|
|
1095
803
|
if (typeof this.anyoneCanAddSelf !== 'undefined') {
|
|
1096
804
|
toReturn['anyoneCanAddSelf'] = this.anyoneCanAddSelf;
|
|
@@ -1198,18 +906,6 @@ class GoogleMeetMeetingAttendee {
|
|
|
1198
906
|
return m;
|
|
1199
907
|
}
|
|
1200
908
|
toApiJson() {
|
|
1201
|
-
if (typeof this.additionalGuests === 'undefined' &&
|
|
1202
|
-
typeof this.comment === 'undefined' &&
|
|
1203
|
-
typeof this.displayName === 'undefined' &&
|
|
1204
|
-
typeof this.email === 'undefined' &&
|
|
1205
|
-
typeof this.id === 'undefined' &&
|
|
1206
|
-
typeof this.optional === 'undefined' &&
|
|
1207
|
-
typeof this.organizer === 'undefined' &&
|
|
1208
|
-
typeof this.resource === 'undefined' &&
|
|
1209
|
-
typeof this.responseStatus === 'undefined' &&
|
|
1210
|
-
typeof this.self === 'undefined') {
|
|
1211
|
-
return {};
|
|
1212
|
-
}
|
|
1213
909
|
const toReturn = {};
|
|
1214
910
|
if (typeof this.additionalGuests !== 'undefined') {
|
|
1215
911
|
toReturn['additionalGuests'] = this.additionalGuests;
|
|
@@ -1257,12 +953,6 @@ class GoogleMeetMeetingCreator {
|
|
|
1257
953
|
return m;
|
|
1258
954
|
}
|
|
1259
955
|
toApiJson() {
|
|
1260
|
-
if (typeof this.displayName === 'undefined' &&
|
|
1261
|
-
typeof this.email === 'undefined' &&
|
|
1262
|
-
typeof this.id === 'undefined' &&
|
|
1263
|
-
typeof this.self === 'undefined') {
|
|
1264
|
-
return {};
|
|
1265
|
-
}
|
|
1266
956
|
const toReturn = {};
|
|
1267
957
|
if (typeof this.displayName !== 'undefined') {
|
|
1268
958
|
toReturn['displayName'] = this.displayName;
|
|
@@ -1292,11 +982,6 @@ class GoogleMeetMeetingDateTime {
|
|
|
1292
982
|
return m;
|
|
1293
983
|
}
|
|
1294
984
|
toApiJson() {
|
|
1295
|
-
if (typeof this.date === 'undefined' &&
|
|
1296
|
-
typeof this.dateTime === 'undefined' &&
|
|
1297
|
-
typeof this.timeZone === 'undefined') {
|
|
1298
|
-
return {};
|
|
1299
|
-
}
|
|
1300
985
|
const toReturn = {};
|
|
1301
986
|
if (typeof this.date !== 'undefined') {
|
|
1302
987
|
toReturn['date'] = this.date;
|
|
@@ -1326,10 +1011,6 @@ class GoogleMeetMeetingReminder {
|
|
|
1326
1011
|
return m;
|
|
1327
1012
|
}
|
|
1328
1013
|
toApiJson() {
|
|
1329
|
-
if (typeof this.method === 'undefined' &&
|
|
1330
|
-
typeof this.minutes === 'undefined') {
|
|
1331
|
-
return {};
|
|
1332
|
-
}
|
|
1333
1014
|
const toReturn = {};
|
|
1334
1015
|
if (typeof this.method !== 'undefined') {
|
|
1335
1016
|
toReturn['method'] = this.method;
|
|
@@ -1356,10 +1037,6 @@ class GoogleMeetMeetingReminders {
|
|
|
1356
1037
|
return m;
|
|
1357
1038
|
}
|
|
1358
1039
|
toApiJson() {
|
|
1359
|
-
if (typeof this.overrides === 'undefined' &&
|
|
1360
|
-
typeof this.useDefault === 'undefined') {
|
|
1361
|
-
return {};
|
|
1362
|
-
}
|
|
1363
1040
|
const toReturn = {};
|
|
1364
1041
|
if (typeof this.overrides !== 'undefined' && this.overrides !== null) {
|
|
1365
1042
|
toReturn['overrides'] = 'toApiJson' in this.overrides ? this.overrides.toApiJson() : this.overrides;
|
|
@@ -1371,13 +1048,13 @@ class GoogleMeetMeetingReminders {
|
|
|
1371
1048
|
}
|
|
1372
1049
|
}
|
|
1373
1050
|
|
|
1374
|
-
function enumStringToValue$
|
|
1051
|
+
function enumStringToValue$8(enumRef, value) {
|
|
1375
1052
|
if (typeof value === 'number') {
|
|
1376
1053
|
return value;
|
|
1377
1054
|
}
|
|
1378
1055
|
return enumRef[value];
|
|
1379
1056
|
}
|
|
1380
|
-
class
|
|
1057
|
+
class MeetingSourceInfo {
|
|
1381
1058
|
constructor(kwargs) {
|
|
1382
1059
|
if (!kwargs) {
|
|
1383
1060
|
return;
|
|
@@ -1385,41 +1062,31 @@ class TimeOfDay {
|
|
|
1385
1062
|
Object.assign(this, kwargs);
|
|
1386
1063
|
}
|
|
1387
1064
|
static fromProto(proto) {
|
|
1388
|
-
let m = new
|
|
1065
|
+
let m = new MeetingSourceInfo();
|
|
1389
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
|
+
}
|
|
1390
1073
|
return m;
|
|
1391
1074
|
}
|
|
1392
1075
|
toApiJson() {
|
|
1393
|
-
if (typeof this.hours === 'undefined' &&
|
|
1394
|
-
typeof this.minutes === 'undefined' &&
|
|
1395
|
-
typeof this.seconds === 'undefined' &&
|
|
1396
|
-
typeof this.nanos === 'undefined') {
|
|
1397
|
-
return {};
|
|
1398
|
-
}
|
|
1399
1076
|
const toReturn = {};
|
|
1400
|
-
if (typeof this.
|
|
1401
|
-
toReturn['
|
|
1402
|
-
}
|
|
1403
|
-
if (typeof this.minutes !== 'undefined') {
|
|
1404
|
-
toReturn['minutes'] = this.minutes;
|
|
1077
|
+
if (typeof this.source !== 'undefined') {
|
|
1078
|
+
toReturn['source'] = this.source;
|
|
1405
1079
|
}
|
|
1406
|
-
if (typeof this.
|
|
1407
|
-
toReturn['
|
|
1080
|
+
if (typeof this.status !== 'undefined') {
|
|
1081
|
+
toReturn['status'] = this.status;
|
|
1408
1082
|
}
|
|
1409
|
-
if (typeof this.
|
|
1410
|
-
toReturn['
|
|
1083
|
+
if (typeof this.connectDisconnectUrl !== 'undefined') {
|
|
1084
|
+
toReturn['connectDisconnectUrl'] = this.connectDisconnectUrl;
|
|
1411
1085
|
}
|
|
1412
1086
|
return toReturn;
|
|
1413
1087
|
}
|
|
1414
1088
|
}
|
|
1415
|
-
|
|
1416
|
-
function enumStringToValue$4(enumRef, value) {
|
|
1417
|
-
if (typeof value === 'number') {
|
|
1418
|
-
return value;
|
|
1419
|
-
}
|
|
1420
|
-
return enumRef[value];
|
|
1421
|
-
}
|
|
1422
|
-
class DateTime {
|
|
1089
|
+
class MeetingSourceListRequest {
|
|
1423
1090
|
constructor(kwargs) {
|
|
1424
1091
|
if (!kwargs) {
|
|
1425
1092
|
return;
|
|
@@ -1427,57 +1094,51 @@ class DateTime {
|
|
|
1427
1094
|
Object.assign(this, kwargs);
|
|
1428
1095
|
}
|
|
1429
1096
|
static fromProto(proto) {
|
|
1430
|
-
let m = new
|
|
1097
|
+
let m = new MeetingSourceListRequest();
|
|
1431
1098
|
m = Object.assign(m, proto);
|
|
1432
|
-
if (proto.
|
|
1433
|
-
m.
|
|
1099
|
+
if (proto.queriedSources) {
|
|
1100
|
+
m.queriedSources = proto.queriedSources.map(MeetingSourceQuery.fromProto);
|
|
1434
1101
|
}
|
|
1435
1102
|
return m;
|
|
1436
1103
|
}
|
|
1437
1104
|
toApiJson() {
|
|
1438
|
-
if (typeof this.year === 'undefined' &&
|
|
1439
|
-
typeof this.month === 'undefined' &&
|
|
1440
|
-
typeof this.day === 'undefined' &&
|
|
1441
|
-
typeof this.hours === 'undefined' &&
|
|
1442
|
-
typeof this.minutes === 'undefined' &&
|
|
1443
|
-
typeof this.seconds === 'undefined' &&
|
|
1444
|
-
typeof this.nanos === 'undefined' &&
|
|
1445
|
-
typeof this.utcOffset === 'undefined' &&
|
|
1446
|
-
typeof this.timeZone === 'undefined') {
|
|
1447
|
-
return {};
|
|
1448
|
-
}
|
|
1449
1105
|
const toReturn = {};
|
|
1450
|
-
if (typeof this.
|
|
1451
|
-
toReturn['
|
|
1452
|
-
}
|
|
1453
|
-
if (typeof this.month !== 'undefined') {
|
|
1454
|
-
toReturn['month'] = this.month;
|
|
1455
|
-
}
|
|
1456
|
-
if (typeof this.day !== 'undefined') {
|
|
1457
|
-
toReturn['day'] = this.day;
|
|
1458
|
-
}
|
|
1459
|
-
if (typeof this.hours !== 'undefined') {
|
|
1460
|
-
toReturn['hours'] = this.hours;
|
|
1106
|
+
if (typeof this.iamUserId !== 'undefined') {
|
|
1107
|
+
toReturn['iamUserId'] = this.iamUserId;
|
|
1461
1108
|
}
|
|
1462
|
-
if (typeof this.
|
|
1463
|
-
toReturn['
|
|
1109
|
+
if (typeof this.queriedSources !== 'undefined' && this.queriedSources !== null) {
|
|
1110
|
+
toReturn['queriedSources'] = 'toApiJson' in this.queriedSources ? this.queriedSources.toApiJson() : this.queriedSources;
|
|
1464
1111
|
}
|
|
1465
|
-
|
|
1466
|
-
|
|
1112
|
+
return toReturn;
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
class MeetingSourceListResponse {
|
|
1116
|
+
constructor(kwargs) {
|
|
1117
|
+
if (!kwargs) {
|
|
1118
|
+
return;
|
|
1467
1119
|
}
|
|
1468
|
-
|
|
1469
|
-
|
|
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);
|
|
1470
1127
|
}
|
|
1471
|
-
|
|
1472
|
-
|
|
1128
|
+
return m;
|
|
1129
|
+
}
|
|
1130
|
+
toApiJson() {
|
|
1131
|
+
const toReturn = {};
|
|
1132
|
+
if (typeof this.iamUserId !== 'undefined') {
|
|
1133
|
+
toReturn['iamUserId'] = this.iamUserId;
|
|
1473
1134
|
}
|
|
1474
|
-
if (typeof this.
|
|
1475
|
-
toReturn['
|
|
1135
|
+
if (typeof this.sourceInfo !== 'undefined' && this.sourceInfo !== null) {
|
|
1136
|
+
toReturn['sourceInfo'] = 'toApiJson' in this.sourceInfo ? this.sourceInfo.toApiJson() : this.sourceInfo;
|
|
1476
1137
|
}
|
|
1477
1138
|
return toReturn;
|
|
1478
1139
|
}
|
|
1479
1140
|
}
|
|
1480
|
-
class
|
|
1141
|
+
class MeetingSourceQuery {
|
|
1481
1142
|
constructor(kwargs) {
|
|
1482
1143
|
if (!kwargs) {
|
|
1483
1144
|
return;
|
|
@@ -1485,33 +1146,148 @@ class TimeZone {
|
|
|
1485
1146
|
Object.assign(this, kwargs);
|
|
1486
1147
|
}
|
|
1487
1148
|
static fromProto(proto) {
|
|
1488
|
-
let m = new
|
|
1149
|
+
let m = new MeetingSourceQuery();
|
|
1489
1150
|
m = Object.assign(m, proto);
|
|
1151
|
+
if (proto.source) {
|
|
1152
|
+
m.source = enumStringToValue$8(MeetingSource, proto.source);
|
|
1153
|
+
}
|
|
1490
1154
|
return m;
|
|
1491
1155
|
}
|
|
1492
1156
|
toApiJson() {
|
|
1493
|
-
if (typeof this.id === 'undefined' &&
|
|
1494
|
-
typeof this.version === 'undefined') {
|
|
1495
|
-
return {};
|
|
1496
|
-
}
|
|
1497
1157
|
const toReturn = {};
|
|
1498
|
-
if (typeof this.
|
|
1499
|
-
toReturn['
|
|
1158
|
+
if (typeof this.source !== 'undefined') {
|
|
1159
|
+
toReturn['source'] = this.source;
|
|
1500
1160
|
}
|
|
1501
|
-
if (typeof this.
|
|
1502
|
-
toReturn['
|
|
1161
|
+
if (typeof this.connectNextUrl !== 'undefined') {
|
|
1162
|
+
toReturn['connectNextUrl'] = this.connectNextUrl;
|
|
1163
|
+
}
|
|
1164
|
+
if (typeof this.disconnectNextUrl !== 'undefined') {
|
|
1165
|
+
toReturn['disconnectNextUrl'] = this.disconnectNextUrl;
|
|
1503
1166
|
}
|
|
1504
1167
|
return toReturn;
|
|
1505
1168
|
}
|
|
1506
1169
|
}
|
|
1507
1170
|
|
|
1508
|
-
function enumStringToValue$
|
|
1171
|
+
function enumStringToValue$7(enumRef, value) {
|
|
1509
1172
|
if (typeof value === 'number') {
|
|
1510
1173
|
return value;
|
|
1511
1174
|
}
|
|
1512
1175
|
return enumRef[value];
|
|
1513
1176
|
}
|
|
1514
|
-
class
|
|
1177
|
+
class TimeOfDay {
|
|
1178
|
+
constructor(kwargs) {
|
|
1179
|
+
if (!kwargs) {
|
|
1180
|
+
return;
|
|
1181
|
+
}
|
|
1182
|
+
Object.assign(this, kwargs);
|
|
1183
|
+
}
|
|
1184
|
+
static fromProto(proto) {
|
|
1185
|
+
let m = new TimeOfDay();
|
|
1186
|
+
m = Object.assign(m, proto);
|
|
1187
|
+
return m;
|
|
1188
|
+
}
|
|
1189
|
+
toApiJson() {
|
|
1190
|
+
const toReturn = {};
|
|
1191
|
+
if (typeof this.hours !== 'undefined') {
|
|
1192
|
+
toReturn['hours'] = this.hours;
|
|
1193
|
+
}
|
|
1194
|
+
if (typeof this.minutes !== 'undefined') {
|
|
1195
|
+
toReturn['minutes'] = this.minutes;
|
|
1196
|
+
}
|
|
1197
|
+
if (typeof this.seconds !== 'undefined') {
|
|
1198
|
+
toReturn['seconds'] = this.seconds;
|
|
1199
|
+
}
|
|
1200
|
+
if (typeof this.nanos !== 'undefined') {
|
|
1201
|
+
toReturn['nanos'] = this.nanos;
|
|
1202
|
+
}
|
|
1203
|
+
return toReturn;
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
function enumStringToValue$6(enumRef, value) {
|
|
1208
|
+
if (typeof value === 'number') {
|
|
1209
|
+
return value;
|
|
1210
|
+
}
|
|
1211
|
+
return enumRef[value];
|
|
1212
|
+
}
|
|
1213
|
+
class DateTime {
|
|
1214
|
+
constructor(kwargs) {
|
|
1215
|
+
if (!kwargs) {
|
|
1216
|
+
return;
|
|
1217
|
+
}
|
|
1218
|
+
Object.assign(this, kwargs);
|
|
1219
|
+
}
|
|
1220
|
+
static fromProto(proto) {
|
|
1221
|
+
let m = new DateTime();
|
|
1222
|
+
m = Object.assign(m, proto);
|
|
1223
|
+
if (proto.timeZone) {
|
|
1224
|
+
m.timeZone = TimeZone.fromProto(proto.timeZone);
|
|
1225
|
+
}
|
|
1226
|
+
return m;
|
|
1227
|
+
}
|
|
1228
|
+
toApiJson() {
|
|
1229
|
+
const toReturn = {};
|
|
1230
|
+
if (typeof this.year !== 'undefined') {
|
|
1231
|
+
toReturn['year'] = this.year;
|
|
1232
|
+
}
|
|
1233
|
+
if (typeof this.month !== 'undefined') {
|
|
1234
|
+
toReturn['month'] = this.month;
|
|
1235
|
+
}
|
|
1236
|
+
if (typeof this.day !== 'undefined') {
|
|
1237
|
+
toReturn['day'] = this.day;
|
|
1238
|
+
}
|
|
1239
|
+
if (typeof this.hours !== 'undefined') {
|
|
1240
|
+
toReturn['hours'] = this.hours;
|
|
1241
|
+
}
|
|
1242
|
+
if (typeof this.minutes !== 'undefined') {
|
|
1243
|
+
toReturn['minutes'] = this.minutes;
|
|
1244
|
+
}
|
|
1245
|
+
if (typeof this.seconds !== 'undefined') {
|
|
1246
|
+
toReturn['seconds'] = this.seconds;
|
|
1247
|
+
}
|
|
1248
|
+
if (typeof this.nanos !== 'undefined') {
|
|
1249
|
+
toReturn['nanos'] = this.nanos;
|
|
1250
|
+
}
|
|
1251
|
+
if (typeof this.utcOffset !== 'undefined') {
|
|
1252
|
+
toReturn['utcOffset'] = this.utcOffset;
|
|
1253
|
+
}
|
|
1254
|
+
if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
|
|
1255
|
+
toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
|
|
1256
|
+
}
|
|
1257
|
+
return toReturn;
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
class TimeZone {
|
|
1261
|
+
constructor(kwargs) {
|
|
1262
|
+
if (!kwargs) {
|
|
1263
|
+
return;
|
|
1264
|
+
}
|
|
1265
|
+
Object.assign(this, kwargs);
|
|
1266
|
+
}
|
|
1267
|
+
static fromProto(proto) {
|
|
1268
|
+
let m = new TimeZone();
|
|
1269
|
+
m = Object.assign(m, proto);
|
|
1270
|
+
return m;
|
|
1271
|
+
}
|
|
1272
|
+
toApiJson() {
|
|
1273
|
+
const toReturn = {};
|
|
1274
|
+
if (typeof this.id !== 'undefined') {
|
|
1275
|
+
toReturn['id'] = this.id;
|
|
1276
|
+
}
|
|
1277
|
+
if (typeof this.version !== 'undefined') {
|
|
1278
|
+
toReturn['version'] = this.version;
|
|
1279
|
+
}
|
|
1280
|
+
return toReturn;
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
function enumStringToValue$5(enumRef, value) {
|
|
1285
|
+
if (typeof value === 'number') {
|
|
1286
|
+
return value;
|
|
1287
|
+
}
|
|
1288
|
+
return enumRef[value];
|
|
1289
|
+
}
|
|
1290
|
+
class Answer {
|
|
1515
1291
|
constructor(kwargs) {
|
|
1516
1292
|
if (!kwargs) {
|
|
1517
1293
|
return;
|
|
@@ -1527,12 +1303,6 @@ class Answer {
|
|
|
1527
1303
|
return m;
|
|
1528
1304
|
}
|
|
1529
1305
|
toApiJson() {
|
|
1530
|
-
if (typeof this.id === 'undefined' &&
|
|
1531
|
-
typeof this.label === 'undefined' &&
|
|
1532
|
-
typeof this.type === 'undefined' &&
|
|
1533
|
-
typeof this.answer === 'undefined') {
|
|
1534
|
-
return {};
|
|
1535
|
-
}
|
|
1536
1306
|
const toReturn = {};
|
|
1537
1307
|
if (typeof this.id !== 'undefined') {
|
|
1538
1308
|
toReturn['id'] = this.id;
|
|
@@ -1565,9 +1335,6 @@ class Answers {
|
|
|
1565
1335
|
return m;
|
|
1566
1336
|
}
|
|
1567
1337
|
toApiJson() {
|
|
1568
|
-
if (typeof this.formAnswers === 'undefined') {
|
|
1569
|
-
return {};
|
|
1570
|
-
}
|
|
1571
1338
|
const toReturn = {};
|
|
1572
1339
|
if (typeof this.formAnswers !== 'undefined' && this.formAnswers !== null) {
|
|
1573
1340
|
toReturn['formAnswers'] = 'toApiJson' in this.formAnswers ? this.formAnswers.toApiJson() : this.formAnswers;
|
|
@@ -1588,10 +1355,6 @@ class CalendarApplicationContextEntry {
|
|
|
1588
1355
|
return m;
|
|
1589
1356
|
}
|
|
1590
1357
|
toApiJson() {
|
|
1591
|
-
if (typeof this.key === 'undefined' &&
|
|
1592
|
-
typeof this.value === 'undefined') {
|
|
1593
|
-
return {};
|
|
1594
|
-
}
|
|
1595
1358
|
const toReturn = {};
|
|
1596
1359
|
if (typeof this.key !== 'undefined') {
|
|
1597
1360
|
toReturn['key'] = this.key;
|
|
@@ -1615,11 +1378,6 @@ class Attachment {
|
|
|
1615
1378
|
return m;
|
|
1616
1379
|
}
|
|
1617
1380
|
toApiJson() {
|
|
1618
|
-
if (typeof this.fileTitle === 'undefined' &&
|
|
1619
|
-
typeof this.fileUrl === 'undefined' &&
|
|
1620
|
-
typeof this.fileType === 'undefined') {
|
|
1621
|
-
return {};
|
|
1622
|
-
}
|
|
1623
1381
|
const toReturn = {};
|
|
1624
1382
|
if (typeof this.fileTitle !== 'undefined') {
|
|
1625
1383
|
toReturn['fileTitle'] = this.fileTitle;
|
|
@@ -1646,14 +1404,6 @@ class Attendee {
|
|
|
1646
1404
|
return m;
|
|
1647
1405
|
}
|
|
1648
1406
|
toApiJson() {
|
|
1649
|
-
if (typeof this.firstName === 'undefined' &&
|
|
1650
|
-
typeof this.lastName === 'undefined' &&
|
|
1651
|
-
typeof this.email === 'undefined' &&
|
|
1652
|
-
typeof this.phoneNumber === 'undefined' &&
|
|
1653
|
-
typeof this.timeZone === 'undefined' &&
|
|
1654
|
-
typeof this.isPrimary === 'undefined') {
|
|
1655
|
-
return {};
|
|
1656
|
-
}
|
|
1657
1407
|
const toReturn = {};
|
|
1658
1408
|
if (typeof this.firstName !== 'undefined') {
|
|
1659
1409
|
toReturn['firstName'] = this.firstName;
|
|
@@ -1695,19 +1445,6 @@ class Calendar {
|
|
|
1695
1445
|
return m;
|
|
1696
1446
|
}
|
|
1697
1447
|
toApiJson() {
|
|
1698
|
-
if (typeof this.id === 'undefined' &&
|
|
1699
|
-
typeof this.displayName === 'undefined' &&
|
|
1700
|
-
typeof this.displayProfileUrl === 'undefined' &&
|
|
1701
|
-
typeof this.displayLogoUrl === 'undefined' &&
|
|
1702
|
-
typeof this.bookingUrl === 'undefined' &&
|
|
1703
|
-
typeof this.slug === 'undefined' &&
|
|
1704
|
-
typeof this.externalId === 'undefined' &&
|
|
1705
|
-
typeof this.creatorUserId === 'undefined' &&
|
|
1706
|
-
typeof this.hostUserIds === 'undefined' &&
|
|
1707
|
-
typeof this.applicationContext === 'undefined' &&
|
|
1708
|
-
typeof this.calendarType === 'undefined') {
|
|
1709
|
-
return {};
|
|
1710
|
-
}
|
|
1711
1448
|
const toReturn = {};
|
|
1712
1449
|
if (typeof this.id !== 'undefined') {
|
|
1713
1450
|
toReturn['id'] = this.id;
|
|
@@ -1761,14 +1498,6 @@ class Contact {
|
|
|
1761
1498
|
return m;
|
|
1762
1499
|
}
|
|
1763
1500
|
toApiJson() {
|
|
1764
|
-
if (typeof this.firstName === 'undefined' &&
|
|
1765
|
-
typeof this.lastName === 'undefined' &&
|
|
1766
|
-
typeof this.phoneNumber === 'undefined' &&
|
|
1767
|
-
typeof this.email === 'undefined' &&
|
|
1768
|
-
typeof this.timeZone === 'undefined' &&
|
|
1769
|
-
typeof this.isPrimary === 'undefined') {
|
|
1770
|
-
return {};
|
|
1771
|
-
}
|
|
1772
1501
|
const toReturn = {};
|
|
1773
1502
|
if (typeof this.firstName !== 'undefined') {
|
|
1774
1503
|
toReturn['firstName'] = this.firstName;
|
|
@@ -1804,12 +1533,6 @@ class Host {
|
|
|
1804
1533
|
return m;
|
|
1805
1534
|
}
|
|
1806
1535
|
toApiJson() {
|
|
1807
|
-
if (typeof this.id === 'undefined' &&
|
|
1808
|
-
typeof this.displayName === 'undefined' &&
|
|
1809
|
-
typeof this.displayProfileUrl === 'undefined' &&
|
|
1810
|
-
typeof this.displayLogoUrl === 'undefined') {
|
|
1811
|
-
return {};
|
|
1812
|
-
}
|
|
1813
1536
|
const toReturn = {};
|
|
1814
1537
|
if (typeof this.id !== 'undefined') {
|
|
1815
1538
|
toReturn['id'] = this.id;
|
|
@@ -1839,11 +1562,6 @@ class HostUser {
|
|
|
1839
1562
|
return m;
|
|
1840
1563
|
}
|
|
1841
1564
|
toApiJson() {
|
|
1842
|
-
if (typeof this.userId === 'undefined' &&
|
|
1843
|
-
typeof this.displayName === 'undefined' &&
|
|
1844
|
-
typeof this.isConfigured === 'undefined') {
|
|
1845
|
-
return {};
|
|
1846
|
-
}
|
|
1847
1565
|
const toReturn = {};
|
|
1848
1566
|
if (typeof this.userId !== 'undefined') {
|
|
1849
1567
|
toReturn['userId'] = this.userId;
|
|
@@ -1873,10 +1591,6 @@ class PagedRequestOptions {
|
|
|
1873
1591
|
return m;
|
|
1874
1592
|
}
|
|
1875
1593
|
toApiJson() {
|
|
1876
|
-
if (typeof this.cursor === 'undefined' &&
|
|
1877
|
-
typeof this.pageSize === 'undefined') {
|
|
1878
|
-
return {};
|
|
1879
|
-
}
|
|
1880
1594
|
const toReturn = {};
|
|
1881
1595
|
if (typeof this.cursor !== 'undefined') {
|
|
1882
1596
|
toReturn['cursor'] = this.cursor;
|
|
@@ -1900,10 +1614,6 @@ class PagedResponseMetadata {
|
|
|
1900
1614
|
return m;
|
|
1901
1615
|
}
|
|
1902
1616
|
toApiJson() {
|
|
1903
|
-
if (typeof this.nextCursor === 'undefined' &&
|
|
1904
|
-
typeof this.hasMore === 'undefined') {
|
|
1905
|
-
return {};
|
|
1906
|
-
}
|
|
1907
1617
|
const toReturn = {};
|
|
1908
1618
|
if (typeof this.nextCursor !== 'undefined') {
|
|
1909
1619
|
toReturn['nextCursor'] = this.nextCursor;
|
|
@@ -1942,14 +1652,6 @@ class Preferences {
|
|
|
1942
1652
|
return m;
|
|
1943
1653
|
}
|
|
1944
1654
|
toApiJson() {
|
|
1945
|
-
if (typeof this.timezone === 'undefined' &&
|
|
1946
|
-
typeof this.meetingIntegration === 'undefined' &&
|
|
1947
|
-
typeof this.availabilityIncrement === 'undefined' &&
|
|
1948
|
-
typeof this.bufferDurationAfterMeeting === 'undefined' &&
|
|
1949
|
-
typeof this.noticeTime === 'undefined' &&
|
|
1950
|
-
typeof this.calendarSlug === 'undefined') {
|
|
1951
|
-
return {};
|
|
1952
|
-
}
|
|
1953
1655
|
const toReturn = {};
|
|
1954
1656
|
if (typeof this.timezone !== 'undefined' && this.timezone !== null) {
|
|
1955
1657
|
toReturn['timezone'] = 'toApiJson' in this.timezone ? this.timezone.toApiJson() : this.timezone;
|
|
@@ -1991,10 +1693,6 @@ class TimeRange {
|
|
|
1991
1693
|
return m;
|
|
1992
1694
|
}
|
|
1993
1695
|
toApiJson() {
|
|
1994
|
-
if (typeof this.from === 'undefined' &&
|
|
1995
|
-
typeof this.to === 'undefined') {
|
|
1996
|
-
return {};
|
|
1997
|
-
}
|
|
1998
1696
|
const toReturn = {};
|
|
1999
1697
|
if (typeof this.from !== 'undefined' && this.from !== null) {
|
|
2000
1698
|
toReturn['from'] = 'toApiJson' in this.from ? this.from.toApiJson() : this.from;
|
|
@@ -2006,7 +1704,7 @@ class TimeRange {
|
|
|
2006
1704
|
}
|
|
2007
1705
|
}
|
|
2008
1706
|
|
|
2009
|
-
function enumStringToValue$
|
|
1707
|
+
function enumStringToValue$4(enumRef, value) {
|
|
2010
1708
|
if (typeof value === 'number') {
|
|
2011
1709
|
return value;
|
|
2012
1710
|
}
|
|
@@ -2023,17 +1721,11 @@ class Field {
|
|
|
2023
1721
|
let m = new Field();
|
|
2024
1722
|
m = Object.assign(m, proto);
|
|
2025
1723
|
if (proto.type) {
|
|
2026
|
-
m.type = enumStringToValue$
|
|
1724
|
+
m.type = enumStringToValue$4(FormFieldType, proto.type);
|
|
2027
1725
|
}
|
|
2028
1726
|
return m;
|
|
2029
1727
|
}
|
|
2030
1728
|
toApiJson() {
|
|
2031
|
-
if (typeof this.id === 'undefined' &&
|
|
2032
|
-
typeof this.label === 'undefined' &&
|
|
2033
|
-
typeof this.type === 'undefined' &&
|
|
2034
|
-
typeof this.required === 'undefined') {
|
|
2035
|
-
return {};
|
|
2036
|
-
}
|
|
2037
1729
|
const toReturn = {};
|
|
2038
1730
|
if (typeof this.id !== 'undefined') {
|
|
2039
1731
|
toReturn['id'] = this.id;
|
|
@@ -2066,9 +1758,6 @@ class Form {
|
|
|
2066
1758
|
return m;
|
|
2067
1759
|
}
|
|
2068
1760
|
toApiJson() {
|
|
2069
|
-
if (typeof this.fields === 'undefined') {
|
|
2070
|
-
return {};
|
|
2071
|
-
}
|
|
2072
1761
|
const toReturn = {};
|
|
2073
1762
|
if (typeof this.fields !== 'undefined' && this.fields !== null) {
|
|
2074
1763
|
toReturn['fields'] = 'toApiJson' in this.fields ? this.fields.toApiJson() : this.fields;
|
|
@@ -2092,20 +1781,6 @@ class MeetingType {
|
|
|
2092
1781
|
return m;
|
|
2093
1782
|
}
|
|
2094
1783
|
toApiJson() {
|
|
2095
|
-
if (typeof this.id === 'undefined' &&
|
|
2096
|
-
typeof this.name === 'undefined' &&
|
|
2097
|
-
typeof this.duration === 'undefined' &&
|
|
2098
|
-
typeof this.calendarId === 'undefined' &&
|
|
2099
|
-
typeof this.description === 'undefined' &&
|
|
2100
|
-
typeof this.hexColor === 'undefined' &&
|
|
2101
|
-
typeof this.meetingTypeSlug === 'undefined' &&
|
|
2102
|
-
typeof this.isPrivate === 'undefined' &&
|
|
2103
|
-
typeof this.form === 'undefined' &&
|
|
2104
|
-
typeof this.isReserveWithGoogleService === 'undefined' &&
|
|
2105
|
-
typeof this.hostUserIds === 'undefined' &&
|
|
2106
|
-
typeof this.bookingUrl === 'undefined') {
|
|
2107
|
-
return {};
|
|
2108
|
-
}
|
|
2109
1784
|
const toReturn = {};
|
|
2110
1785
|
if (typeof this.id !== 'undefined') {
|
|
2111
1786
|
toReturn['id'] = this.id;
|
|
@@ -2147,7 +1822,7 @@ class MeetingType {
|
|
|
2147
1822
|
}
|
|
2148
1823
|
}
|
|
2149
1824
|
|
|
2150
|
-
function enumStringToValue$
|
|
1825
|
+
function enumStringToValue$3(enumRef, value) {
|
|
2151
1826
|
if (typeof value === 'number') {
|
|
2152
1827
|
return value;
|
|
2153
1828
|
}
|
|
@@ -2172,10 +1847,6 @@ class DateRange {
|
|
|
2172
1847
|
return m;
|
|
2173
1848
|
}
|
|
2174
1849
|
toApiJson() {
|
|
2175
|
-
if (typeof this.start === 'undefined' &&
|
|
2176
|
-
typeof this.end === 'undefined') {
|
|
2177
|
-
return {};
|
|
2178
|
-
}
|
|
2179
1850
|
const toReturn = {};
|
|
2180
1851
|
if (typeof this.start !== 'undefined' && this.start !== null) {
|
|
2181
1852
|
toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
|
|
@@ -2187,7 +1858,7 @@ class DateRange {
|
|
|
2187
1858
|
}
|
|
2188
1859
|
}
|
|
2189
1860
|
|
|
2190
|
-
function enumStringToValue$
|
|
1861
|
+
function enumStringToValue$2(enumRef, value) {
|
|
2191
1862
|
if (typeof value === 'number') {
|
|
2192
1863
|
return value;
|
|
2193
1864
|
}
|
|
@@ -2221,17 +1892,6 @@ class BookMeetingRequest {
|
|
|
2221
1892
|
return m;
|
|
2222
1893
|
}
|
|
2223
1894
|
toApiJson() {
|
|
2224
|
-
if (typeof this.hostId === 'undefined' &&
|
|
2225
|
-
typeof this.meetingTypeId === 'undefined' &&
|
|
2226
|
-
typeof this.timeSlot === 'undefined' &&
|
|
2227
|
-
typeof this.attendees === 'undefined' &&
|
|
2228
|
-
typeof this.start === 'undefined' &&
|
|
2229
|
-
typeof this.comment === 'undefined' &&
|
|
2230
|
-
typeof this.metadata === 'undefined' &&
|
|
2231
|
-
typeof this.formAnswers === 'undefined' &&
|
|
2232
|
-
typeof this.recaptchaToken === 'undefined') {
|
|
2233
|
-
return {};
|
|
2234
|
-
}
|
|
2235
1895
|
const toReturn = {};
|
|
2236
1896
|
if (typeof this.hostId !== 'undefined') {
|
|
2237
1897
|
toReturn['hostId'] = this.hostId;
|
|
@@ -2276,10 +1936,6 @@ class BookMeetingResponse {
|
|
|
2276
1936
|
return m;
|
|
2277
1937
|
}
|
|
2278
1938
|
toApiJson() {
|
|
2279
|
-
if (typeof this.meetingId === 'undefined' &&
|
|
2280
|
-
typeof this.hostId === 'undefined') {
|
|
2281
|
-
return {};
|
|
2282
|
-
}
|
|
2283
1939
|
const toReturn = {};
|
|
2284
1940
|
if (typeof this.meetingId !== 'undefined') {
|
|
2285
1941
|
toReturn['meetingId'] = this.meetingId;
|
|
@@ -2303,9 +1959,6 @@ class GetCalendarRequest {
|
|
|
2303
1959
|
return m;
|
|
2304
1960
|
}
|
|
2305
1961
|
toApiJson() {
|
|
2306
|
-
if (typeof this.calendarId === 'undefined') {
|
|
2307
|
-
return {};
|
|
2308
|
-
}
|
|
2309
1962
|
const toReturn = {};
|
|
2310
1963
|
if (typeof this.calendarId !== 'undefined') {
|
|
2311
1964
|
toReturn['calendarId'] = this.calendarId;
|
|
@@ -2329,9 +1982,6 @@ class GetCalendarResponse {
|
|
|
2329
1982
|
return m;
|
|
2330
1983
|
}
|
|
2331
1984
|
toApiJson() {
|
|
2332
|
-
if (typeof this.calendar === 'undefined') {
|
|
2333
|
-
return {};
|
|
2334
|
-
}
|
|
2335
1985
|
const toReturn = {};
|
|
2336
1986
|
if (typeof this.calendar !== 'undefined' && this.calendar !== null) {
|
|
2337
1987
|
toReturn['calendar'] = 'toApiJson' in this.calendar ? this.calendar.toApiJson() : this.calendar;
|
|
@@ -2352,9 +2002,6 @@ class GetHostRequest {
|
|
|
2352
2002
|
return m;
|
|
2353
2003
|
}
|
|
2354
2004
|
toApiJson() {
|
|
2355
|
-
if (typeof this.hostId === 'undefined') {
|
|
2356
|
-
return {};
|
|
2357
|
-
}
|
|
2358
2005
|
const toReturn = {};
|
|
2359
2006
|
if (typeof this.hostId !== 'undefined') {
|
|
2360
2007
|
toReturn['hostId'] = this.hostId;
|
|
@@ -2378,9 +2025,6 @@ class GetHostResponse {
|
|
|
2378
2025
|
return m;
|
|
2379
2026
|
}
|
|
2380
2027
|
toApiJson() {
|
|
2381
|
-
if (typeof this.host === 'undefined') {
|
|
2382
|
-
return {};
|
|
2383
|
-
}
|
|
2384
2028
|
const toReturn = {};
|
|
2385
2029
|
if (typeof this.host !== 'undefined' && this.host !== null) {
|
|
2386
2030
|
toReturn['host'] = 'toApiJson' in this.host ? this.host.toApiJson() : this.host;
|
|
@@ -2401,10 +2045,6 @@ class GetMeetingTypeRequest {
|
|
|
2401
2045
|
return m;
|
|
2402
2046
|
}
|
|
2403
2047
|
toApiJson() {
|
|
2404
|
-
if (typeof this.calendarSlug === 'undefined' &&
|
|
2405
|
-
typeof this.meetingTypeSlug === 'undefined') {
|
|
2406
|
-
return {};
|
|
2407
|
-
}
|
|
2408
2048
|
const toReturn = {};
|
|
2409
2049
|
if (typeof this.calendarSlug !== 'undefined') {
|
|
2410
2050
|
toReturn['calendarSlug'] = this.calendarSlug;
|
|
@@ -2431,9 +2071,6 @@ class GetMeetingTypeResponse {
|
|
|
2431
2071
|
return m;
|
|
2432
2072
|
}
|
|
2433
2073
|
toApiJson() {
|
|
2434
|
-
if (typeof this.meetingType === 'undefined') {
|
|
2435
|
-
return {};
|
|
2436
|
-
}
|
|
2437
2074
|
const toReturn = {};
|
|
2438
2075
|
if (typeof this.meetingType !== 'undefined' && this.meetingType !== null) {
|
|
2439
2076
|
toReturn['meetingType'] = 'toApiJson' in this.meetingType ? this.meetingType.toApiJson() : this.meetingType;
|
|
@@ -2454,11 +2091,6 @@ class GuestCancelMeetingRequest {
|
|
|
2454
2091
|
return m;
|
|
2455
2092
|
}
|
|
2456
2093
|
toApiJson() {
|
|
2457
|
-
if (typeof this.meetingId === 'undefined' &&
|
|
2458
|
-
typeof this.authToken === 'undefined' &&
|
|
2459
|
-
typeof this.cancellationReason === 'undefined') {
|
|
2460
|
-
return {};
|
|
2461
|
-
}
|
|
2462
2094
|
const toReturn = {};
|
|
2463
2095
|
if (typeof this.meetingId !== 'undefined') {
|
|
2464
2096
|
toReturn['meetingId'] = this.meetingId;
|
|
@@ -2485,10 +2117,6 @@ class GuestGetBookedMeetingRequest {
|
|
|
2485
2117
|
return m;
|
|
2486
2118
|
}
|
|
2487
2119
|
toApiJson() {
|
|
2488
|
-
if (typeof this.meetingId === 'undefined' &&
|
|
2489
|
-
typeof this.authToken === 'undefined') {
|
|
2490
|
-
return {};
|
|
2491
|
-
}
|
|
2492
2120
|
const toReturn = {};
|
|
2493
2121
|
if (typeof this.meetingId !== 'undefined') {
|
|
2494
2122
|
toReturn['meetingId'] = this.meetingId;
|
|
@@ -2521,12 +2149,6 @@ class GuestGetBookedMeetingResponse {
|
|
|
2521
2149
|
return m;
|
|
2522
2150
|
}
|
|
2523
2151
|
toApiJson() {
|
|
2524
|
-
if (typeof this.startTime === 'undefined' &&
|
|
2525
|
-
typeof this.endTime === 'undefined' &&
|
|
2526
|
-
typeof this.timeZone === 'undefined' &&
|
|
2527
|
-
typeof this.meetingTypeId === 'undefined') {
|
|
2528
|
-
return {};
|
|
2529
|
-
}
|
|
2530
2152
|
const toReturn = {};
|
|
2531
2153
|
if (typeof this.startTime !== 'undefined' && this.startTime !== null) {
|
|
2532
2154
|
toReturn['startTime'] = 'toApiJson' in this.startTime ? this.startTime.toApiJson() : this.startTime;
|
|
@@ -2556,9 +2178,6 @@ class GuestIsHostConfiguredRequest {
|
|
|
2556
2178
|
return m;
|
|
2557
2179
|
}
|
|
2558
2180
|
toApiJson() {
|
|
2559
|
-
if (typeof this.hostId === 'undefined') {
|
|
2560
|
-
return {};
|
|
2561
|
-
}
|
|
2562
2181
|
const toReturn = {};
|
|
2563
2182
|
if (typeof this.hostId !== 'undefined') {
|
|
2564
2183
|
toReturn['hostId'] = this.hostId;
|
|
@@ -2579,9 +2198,6 @@ class GuestIsHostConfiguredResponse {
|
|
|
2579
2198
|
return m;
|
|
2580
2199
|
}
|
|
2581
2200
|
toApiJson() {
|
|
2582
|
-
if (typeof this.isConfigured === 'undefined') {
|
|
2583
|
-
return {};
|
|
2584
|
-
}
|
|
2585
2201
|
const toReturn = {};
|
|
2586
2202
|
if (typeof this.isConfigured !== 'undefined') {
|
|
2587
2203
|
toReturn['isConfigured'] = this.isConfigured;
|
|
@@ -2608,12 +2224,6 @@ class GuestRescheduleMeetingRequest {
|
|
|
2608
2224
|
return m;
|
|
2609
2225
|
}
|
|
2610
2226
|
toApiJson() {
|
|
2611
|
-
if (typeof this.meetingId === 'undefined' &&
|
|
2612
|
-
typeof this.authToken === 'undefined' &&
|
|
2613
|
-
typeof this.start === 'undefined' &&
|
|
2614
|
-
typeof this.timeZone === 'undefined') {
|
|
2615
|
-
return {};
|
|
2616
|
-
}
|
|
2617
2227
|
const toReturn = {};
|
|
2618
2228
|
if (typeof this.meetingId !== 'undefined') {
|
|
2619
2229
|
toReturn['meetingId'] = this.meetingId;
|
|
@@ -2649,12 +2259,6 @@ class ListAvailableTimeSlotsRequest {
|
|
|
2649
2259
|
return m;
|
|
2650
2260
|
}
|
|
2651
2261
|
toApiJson() {
|
|
2652
|
-
if (typeof this.hostId === 'undefined' &&
|
|
2653
|
-
typeof this.meetingTypeId === 'undefined' &&
|
|
2654
|
-
typeof this.timeSpan === 'undefined' &&
|
|
2655
|
-
typeof this.timeZone === 'undefined') {
|
|
2656
|
-
return {};
|
|
2657
|
-
}
|
|
2658
2262
|
const toReturn = {};
|
|
2659
2263
|
if (typeof this.hostId !== 'undefined') {
|
|
2660
2264
|
toReturn['hostId'] = this.hostId;
|
|
@@ -2687,9 +2291,6 @@ class ListAvailableTimeSlotsResponse {
|
|
|
2687
2291
|
return m;
|
|
2688
2292
|
}
|
|
2689
2293
|
toApiJson() {
|
|
2690
|
-
if (typeof this.timeSlots === 'undefined') {
|
|
2691
|
-
return {};
|
|
2692
|
-
}
|
|
2693
2294
|
const toReturn = {};
|
|
2694
2295
|
if (typeof this.timeSlots !== 'undefined' && this.timeSlots !== null) {
|
|
2695
2296
|
toReturn['timeSlots'] = 'toApiJson' in this.timeSlots ? this.timeSlots.toApiJson() : this.timeSlots;
|
|
@@ -2710,9 +2311,6 @@ class ListMeetingTypesRequest {
|
|
|
2710
2311
|
return m;
|
|
2711
2312
|
}
|
|
2712
2313
|
toApiJson() {
|
|
2713
|
-
if (typeof this.hostId === 'undefined') {
|
|
2714
|
-
return {};
|
|
2715
|
-
}
|
|
2716
2314
|
const toReturn = {};
|
|
2717
2315
|
if (typeof this.hostId !== 'undefined') {
|
|
2718
2316
|
toReturn['hostId'] = this.hostId;
|
|
@@ -2736,9 +2334,6 @@ class ListMeetingTypesResponse {
|
|
|
2736
2334
|
return m;
|
|
2737
2335
|
}
|
|
2738
2336
|
toApiJson() {
|
|
2739
|
-
if (typeof this.meetingTypes === 'undefined') {
|
|
2740
|
-
return {};
|
|
2741
|
-
}
|
|
2742
2337
|
const toReturn = {};
|
|
2743
2338
|
if (typeof this.meetingTypes !== 'undefined' && this.meetingTypes !== null) {
|
|
2744
2339
|
toReturn['meetingTypes'] = 'toApiJson' in this.meetingTypes ? this.meetingTypes.toApiJson() : this.meetingTypes;
|
|
@@ -2759,10 +2354,6 @@ class BookMeetingRequestMetadataEntry {
|
|
|
2759
2354
|
return m;
|
|
2760
2355
|
}
|
|
2761
2356
|
toApiJson() {
|
|
2762
|
-
if (typeof this.key === 'undefined' &&
|
|
2763
|
-
typeof this.value === 'undefined') {
|
|
2764
|
-
return {};
|
|
2765
|
-
}
|
|
2766
2357
|
const toReturn = {};
|
|
2767
2358
|
if (typeof this.key !== 'undefined') {
|
|
2768
2359
|
toReturn['key'] = this.key;
|
|
@@ -2774,7 +2365,7 @@ class BookMeetingRequestMetadataEntry {
|
|
|
2774
2365
|
}
|
|
2775
2366
|
}
|
|
2776
2367
|
|
|
2777
|
-
function enumStringToValue$
|
|
2368
|
+
function enumStringToValue$1(enumRef, value) {
|
|
2778
2369
|
if (typeof value === 'number') {
|
|
2779
2370
|
return value;
|
|
2780
2371
|
}
|
|
@@ -2793,9 +2384,6 @@ class FieldMask {
|
|
|
2793
2384
|
return m;
|
|
2794
2385
|
}
|
|
2795
2386
|
toApiJson() {
|
|
2796
|
-
if (typeof this.paths === 'undefined') {
|
|
2797
|
-
return {};
|
|
2798
|
-
}
|
|
2799
2387
|
const toReturn = {};
|
|
2800
2388
|
if (typeof this.paths !== 'undefined') {
|
|
2801
2389
|
toReturn['paths'] = this.paths;
|
|
@@ -2804,7 +2392,7 @@ class FieldMask {
|
|
|
2804
2392
|
}
|
|
2805
2393
|
}
|
|
2806
2394
|
|
|
2807
|
-
function enumStringToValue
|
|
2395
|
+
function enumStringToValue(enumRef, value) {
|
|
2808
2396
|
if (typeof value === 'number') {
|
|
2809
2397
|
return value;
|
|
2810
2398
|
}
|
|
@@ -2823,10 +2411,6 @@ class BuildHostIdRequestApplicationContextPropertiesEntry {
|
|
|
2823
2411
|
return m;
|
|
2824
2412
|
}
|
|
2825
2413
|
toApiJson() {
|
|
2826
|
-
if (typeof this.key === 'undefined' &&
|
|
2827
|
-
typeof this.value === 'undefined') {
|
|
2828
|
-
return {};
|
|
2829
|
-
}
|
|
2830
2414
|
const toReturn = {};
|
|
2831
2415
|
if (typeof this.key !== 'undefined') {
|
|
2832
2416
|
toReturn['key'] = this.key;
|
|
@@ -2850,10 +2434,6 @@ class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
|
|
|
2850
2434
|
return m;
|
|
2851
2435
|
}
|
|
2852
2436
|
toApiJson() {
|
|
2853
|
-
if (typeof this.key === 'undefined' &&
|
|
2854
|
-
typeof this.value === 'undefined') {
|
|
2855
|
-
return {};
|
|
2856
|
-
}
|
|
2857
2437
|
const toReturn = {};
|
|
2858
2438
|
if (typeof this.key !== 'undefined') {
|
|
2859
2439
|
toReturn['key'] = this.key;
|
|
@@ -2875,7 +2455,7 @@ class AvailabilityRule {
|
|
|
2875
2455
|
let m = new AvailabilityRule();
|
|
2876
2456
|
m = Object.assign(m, proto);
|
|
2877
2457
|
if (proto.day) {
|
|
2878
|
-
m.day = enumStringToValue
|
|
2458
|
+
m.day = enumStringToValue(DayOfWeek, proto.day);
|
|
2879
2459
|
}
|
|
2880
2460
|
if (proto.timeSlot) {
|
|
2881
2461
|
m.timeSlot = TimeRange.fromProto(proto.timeSlot);
|
|
@@ -2886,13 +2466,6 @@ class AvailabilityRule {
|
|
|
2886
2466
|
return m;
|
|
2887
2467
|
}
|
|
2888
2468
|
toApiJson() {
|
|
2889
|
-
if (typeof this.hostId === 'undefined' &&
|
|
2890
|
-
typeof this.meetingTypeId === 'undefined' &&
|
|
2891
|
-
typeof this.day === 'undefined' &&
|
|
2892
|
-
typeof this.timeSlot === 'undefined' &&
|
|
2893
|
-
typeof this.timeZone === 'undefined') {
|
|
2894
|
-
return {};
|
|
2895
|
-
}
|
|
2896
2469
|
const toReturn = {};
|
|
2897
2470
|
if (typeof this.hostId !== 'undefined') {
|
|
2898
2471
|
toReturn['hostId'] = this.hostId;
|
|
@@ -2928,10 +2501,6 @@ class BuildHostIdRequest {
|
|
|
2928
2501
|
return m;
|
|
2929
2502
|
}
|
|
2930
2503
|
toApiJson() {
|
|
2931
|
-
if (typeof this.applicationContextProperties === 'undefined' &&
|
|
2932
|
-
typeof this.userId === 'undefined') {
|
|
2933
|
-
return {};
|
|
2934
|
-
}
|
|
2935
2504
|
const toReturn = {};
|
|
2936
2505
|
if (typeof this.applicationContextProperties !== 'undefined' && this.applicationContextProperties !== null) {
|
|
2937
2506
|
toReturn['applicationContextProperties'] = 'toApiJson' in this.applicationContextProperties ? this.applicationContextProperties.toApiJson() : this.applicationContextProperties;
|
|
@@ -2955,9 +2524,6 @@ class BuildHostIdResponse {
|
|
|
2955
2524
|
return m;
|
|
2956
2525
|
}
|
|
2957
2526
|
toApiJson() {
|
|
2958
|
-
if (typeof this.hostId === 'undefined') {
|
|
2959
|
-
return {};
|
|
2960
|
-
}
|
|
2961
2527
|
const toReturn = {};
|
|
2962
2528
|
if (typeof this.hostId !== 'undefined') {
|
|
2963
2529
|
toReturn['hostId'] = this.hostId;
|
|
@@ -2981,10 +2547,6 @@ class GetMeetingTypesForCalendarsResponseCalendarMeetingTypesMapEntry {
|
|
|
2981
2547
|
return m;
|
|
2982
2548
|
}
|
|
2983
2549
|
toApiJson() {
|
|
2984
|
-
if (typeof this.key === 'undefined' &&
|
|
2985
|
-
typeof this.value === 'undefined') {
|
|
2986
|
-
return {};
|
|
2987
|
-
}
|
|
2988
2550
|
const toReturn = {};
|
|
2989
2551
|
if (typeof this.key !== 'undefined') {
|
|
2990
2552
|
toReturn['key'] = this.key;
|
|
@@ -3008,10 +2570,6 @@ class CancelMeetingRequest {
|
|
|
3008
2570
|
return m;
|
|
3009
2571
|
}
|
|
3010
2572
|
toApiJson() {
|
|
3011
|
-
if (typeof this.meetingId === 'undefined' &&
|
|
3012
|
-
typeof this.cancellationReason === 'undefined') {
|
|
3013
|
-
return {};
|
|
3014
|
-
}
|
|
3015
2573
|
const toReturn = {};
|
|
3016
2574
|
if (typeof this.meetingId !== 'undefined') {
|
|
3017
2575
|
toReturn['meetingId'] = this.meetingId;
|
|
@@ -3072,9 +2630,6 @@ class CreateCalendarRequest {
|
|
|
3072
2630
|
return m;
|
|
3073
2631
|
}
|
|
3074
2632
|
toApiJson() {
|
|
3075
|
-
if (typeof this.calendar === 'undefined') {
|
|
3076
|
-
return {};
|
|
3077
|
-
}
|
|
3078
2633
|
const toReturn = {};
|
|
3079
2634
|
if (typeof this.calendar !== 'undefined' && this.calendar !== null) {
|
|
3080
2635
|
toReturn['calendar'] = 'toApiJson' in this.calendar ? this.calendar.toApiJson() : this.calendar;
|
|
@@ -3095,9 +2650,6 @@ class CreateCalendarResponse {
|
|
|
3095
2650
|
return m;
|
|
3096
2651
|
}
|
|
3097
2652
|
toApiJson() {
|
|
3098
|
-
if (typeof this.calendarId === 'undefined') {
|
|
3099
|
-
return {};
|
|
3100
|
-
}
|
|
3101
2653
|
const toReturn = {};
|
|
3102
2654
|
if (typeof this.calendarId !== 'undefined') {
|
|
3103
2655
|
toReturn['calendarId'] = this.calendarId;
|
|
@@ -3118,13 +2670,13 @@ class CreateDefaultMeetingTypesRequest {
|
|
|
3118
2670
|
return m;
|
|
3119
2671
|
}
|
|
3120
2672
|
toApiJson() {
|
|
3121
|
-
if (typeof this.calendarId === 'undefined') {
|
|
3122
|
-
return {};
|
|
3123
|
-
}
|
|
3124
2673
|
const toReturn = {};
|
|
3125
2674
|
if (typeof this.calendarId !== 'undefined') {
|
|
3126
2675
|
toReturn['calendarId'] = this.calendarId;
|
|
3127
2676
|
}
|
|
2677
|
+
if (typeof this.calendarIds !== 'undefined') {
|
|
2678
|
+
toReturn['calendarIds'] = this.calendarIds;
|
|
2679
|
+
}
|
|
3128
2680
|
return toReturn;
|
|
3129
2681
|
}
|
|
3130
2682
|
}
|
|
@@ -3144,9 +2696,6 @@ class CreateMeetingTypeRequest {
|
|
|
3144
2696
|
return m;
|
|
3145
2697
|
}
|
|
3146
2698
|
toApiJson() {
|
|
3147
|
-
if (typeof this.meetingType === 'undefined') {
|
|
3148
|
-
return {};
|
|
3149
|
-
}
|
|
3150
2699
|
const toReturn = {};
|
|
3151
2700
|
if (typeof this.meetingType !== 'undefined' && this.meetingType !== null) {
|
|
3152
2701
|
toReturn['meetingType'] = 'toApiJson' in this.meetingType ? this.meetingType.toApiJson() : this.meetingType;
|
|
@@ -3167,9 +2716,6 @@ class CreateMeetingTypeResponse {
|
|
|
3167
2716
|
return m;
|
|
3168
2717
|
}
|
|
3169
2718
|
toApiJson() {
|
|
3170
|
-
if (typeof this.id === 'undefined') {
|
|
3171
|
-
return {};
|
|
3172
|
-
}
|
|
3173
2719
|
const toReturn = {};
|
|
3174
2720
|
if (typeof this.id !== 'undefined') {
|
|
3175
2721
|
toReturn['id'] = this.id;
|
|
@@ -3207,9 +2753,6 @@ class DeleteMeetingTypeRequest {
|
|
|
3207
2753
|
return m;
|
|
3208
2754
|
}
|
|
3209
2755
|
toApiJson() {
|
|
3210
|
-
if (typeof this.id === 'undefined') {
|
|
3211
|
-
return {};
|
|
3212
|
-
}
|
|
3213
2756
|
const toReturn = {};
|
|
3214
2757
|
if (typeof this.id !== 'undefined') {
|
|
3215
2758
|
toReturn['id'] = this.id;
|
|
@@ -3230,9 +2773,6 @@ class DoesCalendarExistRequest {
|
|
|
3230
2773
|
return m;
|
|
3231
2774
|
}
|
|
3232
2775
|
toApiJson() {
|
|
3233
|
-
if (typeof this.calendarIdentifier === 'undefined') {
|
|
3234
|
-
return {};
|
|
3235
|
-
}
|
|
3236
2776
|
const toReturn = {};
|
|
3237
2777
|
if (typeof this.calendarIdentifier !== 'undefined') {
|
|
3238
2778
|
toReturn['calendarIdentifier'] = this.calendarIdentifier;
|
|
@@ -3253,9 +2793,6 @@ class DoesCalendarExistResponse {
|
|
|
3253
2793
|
return m;
|
|
3254
2794
|
}
|
|
3255
2795
|
toApiJson() {
|
|
3256
|
-
if (typeof this.exists === 'undefined') {
|
|
3257
|
-
return {};
|
|
3258
|
-
}
|
|
3259
2796
|
const toReturn = {};
|
|
3260
2797
|
if (typeof this.exists !== 'undefined') {
|
|
3261
2798
|
toReturn['exists'] = this.exists;
|
|
@@ -3276,9 +2813,6 @@ class EnsureGroupCalendarsExistRequest {
|
|
|
3276
2813
|
return m;
|
|
3277
2814
|
}
|
|
3278
2815
|
toApiJson() {
|
|
3279
|
-
if (typeof this.externalIds === 'undefined') {
|
|
3280
|
-
return {};
|
|
3281
|
-
}
|
|
3282
2816
|
const toReturn = {};
|
|
3283
2817
|
if (typeof this.externalIds !== 'undefined') {
|
|
3284
2818
|
toReturn['externalIds'] = this.externalIds;
|
|
@@ -3299,9 +2833,6 @@ class EnsureGroupCalendarsExistResponse {
|
|
|
3299
2833
|
return m;
|
|
3300
2834
|
}
|
|
3301
2835
|
toApiJson() {
|
|
3302
|
-
if (typeof this.calendarIds === 'undefined') {
|
|
3303
|
-
return {};
|
|
3304
|
-
}
|
|
3305
2836
|
const toReturn = {};
|
|
3306
2837
|
if (typeof this.calendarIds !== 'undefined') {
|
|
3307
2838
|
toReturn['calendarIds'] = this.calendarIds;
|
|
@@ -3325,10 +2856,6 @@ class EnsurePersonalCalendarExistsRequest {
|
|
|
3325
2856
|
return m;
|
|
3326
2857
|
}
|
|
3327
2858
|
toApiJson() {
|
|
3328
|
-
if (typeof this.userId === 'undefined' &&
|
|
3329
|
-
typeof this.applicationContextProperties === 'undefined') {
|
|
3330
|
-
return {};
|
|
3331
|
-
}
|
|
3332
2859
|
const toReturn = {};
|
|
3333
2860
|
if (typeof this.userId !== 'undefined') {
|
|
3334
2861
|
toReturn['userId'] = this.userId;
|
|
@@ -3352,9 +2879,6 @@ class EnsurePersonalCalendarExistsResponse {
|
|
|
3352
2879
|
return m;
|
|
3353
2880
|
}
|
|
3354
2881
|
toApiJson() {
|
|
3355
|
-
if (typeof this.calendarId === 'undefined') {
|
|
3356
|
-
return {};
|
|
3357
|
-
}
|
|
3358
2882
|
const toReturn = {};
|
|
3359
2883
|
if (typeof this.calendarId !== 'undefined') {
|
|
3360
2884
|
toReturn['calendarId'] = this.calendarId;
|
|
@@ -3375,10 +2899,6 @@ class ListAvailabilityRequestFilters {
|
|
|
3375
2899
|
return m;
|
|
3376
2900
|
}
|
|
3377
2901
|
toApiJson() {
|
|
3378
|
-
if (typeof this.hostId === 'undefined' &&
|
|
3379
|
-
typeof this.meetingTypeId === 'undefined') {
|
|
3380
|
-
return {};
|
|
3381
|
-
}
|
|
3382
2902
|
const toReturn = {};
|
|
3383
2903
|
if (typeof this.hostId !== 'undefined') {
|
|
3384
2904
|
toReturn['hostId'] = this.hostId;
|
|
@@ -3405,11 +2925,6 @@ class ListBookedMeetingsRequestFilters {
|
|
|
3405
2925
|
return m;
|
|
3406
2926
|
}
|
|
3407
2927
|
toApiJson() {
|
|
3408
|
-
if (typeof this.meetingTypeIds === 'undefined' &&
|
|
3409
|
-
typeof this.hostId === 'undefined' &&
|
|
3410
|
-
typeof this.timeSpan === 'undefined') {
|
|
3411
|
-
return {};
|
|
3412
|
-
}
|
|
3413
2928
|
const toReturn = {};
|
|
3414
2929
|
if (typeof this.meetingTypeIds !== 'undefined') {
|
|
3415
2930
|
toReturn['meetingTypeIds'] = this.meetingTypeIds;
|
|
@@ -3436,10 +2951,6 @@ class GetHostMeetingRequest {
|
|
|
3436
2951
|
return m;
|
|
3437
2952
|
}
|
|
3438
2953
|
toApiJson() {
|
|
3439
|
-
if (typeof this.meetingId === 'undefined' &&
|
|
3440
|
-
typeof this.location === 'undefined') {
|
|
3441
|
-
return {};
|
|
3442
|
-
}
|
|
3443
2954
|
const toReturn = {};
|
|
3444
2955
|
if (typeof this.meetingId !== 'undefined') {
|
|
3445
2956
|
toReturn['meetingId'] = this.meetingId;
|
|
@@ -3466,9 +2977,6 @@ class GetHostMeetingResponse {
|
|
|
3466
2977
|
return m;
|
|
3467
2978
|
}
|
|
3468
2979
|
toApiJson() {
|
|
3469
|
-
if (typeof this.meeting === 'undefined') {
|
|
3470
|
-
return {};
|
|
3471
|
-
}
|
|
3472
2980
|
const toReturn = {};
|
|
3473
2981
|
if (typeof this.meeting !== 'undefined' && this.meeting !== null) {
|
|
3474
2982
|
toReturn['meeting'] = 'toApiJson' in this.meeting ? this.meeting.toApiJson() : this.meeting;
|
|
@@ -3489,9 +2997,6 @@ class GetHostPreferencesRequest {
|
|
|
3489
2997
|
return m;
|
|
3490
2998
|
}
|
|
3491
2999
|
toApiJson() {
|
|
3492
|
-
if (typeof this.hostId === 'undefined') {
|
|
3493
|
-
return {};
|
|
3494
|
-
}
|
|
3495
3000
|
const toReturn = {};
|
|
3496
3001
|
if (typeof this.hostId !== 'undefined') {
|
|
3497
3002
|
toReturn['hostId'] = this.hostId;
|
|
@@ -3515,9 +3020,6 @@ class GetHostPreferencesResponse {
|
|
|
3515
3020
|
return m;
|
|
3516
3021
|
}
|
|
3517
3022
|
toApiJson() {
|
|
3518
|
-
if (typeof this.preferences === 'undefined') {
|
|
3519
|
-
return {};
|
|
3520
|
-
}
|
|
3521
3023
|
const toReturn = {};
|
|
3522
3024
|
if (typeof this.preferences !== 'undefined' && this.preferences !== null) {
|
|
3523
3025
|
toReturn['preferences'] = 'toApiJson' in this.preferences ? this.preferences.toApiJson() : this.preferences;
|
|
@@ -3538,9 +3040,6 @@ class GetHostsForCalendarRequest {
|
|
|
3538
3040
|
return m;
|
|
3539
3041
|
}
|
|
3540
3042
|
toApiJson() {
|
|
3541
|
-
if (typeof this.calendarId === 'undefined') {
|
|
3542
|
-
return {};
|
|
3543
|
-
}
|
|
3544
3043
|
const toReturn = {};
|
|
3545
3044
|
if (typeof this.calendarId !== 'undefined') {
|
|
3546
3045
|
toReturn['calendarId'] = this.calendarId;
|
|
@@ -3564,9 +3063,6 @@ class GetHostsForCalendarResponse {
|
|
|
3564
3063
|
return m;
|
|
3565
3064
|
}
|
|
3566
3065
|
toApiJson() {
|
|
3567
|
-
if (typeof this.hostUsers === 'undefined') {
|
|
3568
|
-
return {};
|
|
3569
|
-
}
|
|
3570
3066
|
const toReturn = {};
|
|
3571
3067
|
if (typeof this.hostUsers !== 'undefined' && this.hostUsers !== null) {
|
|
3572
3068
|
toReturn['hostUsers'] = 'toApiJson' in this.hostUsers ? this.hostUsers.toApiJson() : this.hostUsers;
|
|
@@ -3587,9 +3083,6 @@ class GetMeetingTypesForCalendarsRequest {
|
|
|
3587
3083
|
return m;
|
|
3588
3084
|
}
|
|
3589
3085
|
toApiJson() {
|
|
3590
|
-
if (typeof this.calendarIds === 'undefined') {
|
|
3591
|
-
return {};
|
|
3592
|
-
}
|
|
3593
3086
|
const toReturn = {};
|
|
3594
3087
|
if (typeof this.calendarIds !== 'undefined') {
|
|
3595
3088
|
toReturn['calendarIds'] = this.calendarIds;
|
|
@@ -3613,9 +3106,6 @@ class GetMeetingTypesForCalendarsResponse {
|
|
|
3613
3106
|
return m;
|
|
3614
3107
|
}
|
|
3615
3108
|
toApiJson() {
|
|
3616
|
-
if (typeof this.calendarMeetingTypesMap === 'undefined') {
|
|
3617
|
-
return {};
|
|
3618
|
-
}
|
|
3619
3109
|
const toReturn = {};
|
|
3620
3110
|
if (typeof this.calendarMeetingTypesMap !== 'undefined' && this.calendarMeetingTypesMap !== null) {
|
|
3621
3111
|
toReturn['calendarMeetingTypesMap'] = 'toApiJson' in this.calendarMeetingTypesMap ? this.calendarMeetingTypesMap.toApiJson() : this.calendarMeetingTypesMap;
|
|
@@ -3634,7 +3124,7 @@ class HostBookMeetingRequest {
|
|
|
3634
3124
|
let m = new HostBookMeetingRequest();
|
|
3635
3125
|
m = Object.assign(m, proto);
|
|
3636
3126
|
if (proto.meetingSource) {
|
|
3637
|
-
m.meetingSource = enumStringToValue
|
|
3127
|
+
m.meetingSource = enumStringToValue(MeetingSource, proto.meetingSource);
|
|
3638
3128
|
}
|
|
3639
3129
|
if (proto.timeSlot) {
|
|
3640
3130
|
m.timeSlot = DateRange.fromProto(proto.timeSlot);
|
|
@@ -3645,14 +3135,6 @@ class HostBookMeetingRequest {
|
|
|
3645
3135
|
return m;
|
|
3646
3136
|
}
|
|
3647
3137
|
toApiJson() {
|
|
3648
|
-
if (typeof this.meetingSource === 'undefined' &&
|
|
3649
|
-
typeof this.calendarId === 'undefined' &&
|
|
3650
|
-
typeof this.meetingTypeId === 'undefined' &&
|
|
3651
|
-
typeof this.timeSlot === 'undefined' &&
|
|
3652
|
-
typeof this.attendees === 'undefined' &&
|
|
3653
|
-
typeof this.topic === 'undefined') {
|
|
3654
|
-
return {};
|
|
3655
|
-
}
|
|
3656
3138
|
const toReturn = {};
|
|
3657
3139
|
if (typeof this.meetingSource !== 'undefined') {
|
|
3658
3140
|
toReturn['meetingSource'] = this.meetingSource;
|
|
@@ -3688,9 +3170,6 @@ class HostBookMeetingResponse {
|
|
|
3688
3170
|
return m;
|
|
3689
3171
|
}
|
|
3690
3172
|
toApiJson() {
|
|
3691
|
-
if (typeof this.meetingId === 'undefined') {
|
|
3692
|
-
return {};
|
|
3693
|
-
}
|
|
3694
3173
|
const toReturn = {};
|
|
3695
3174
|
if (typeof this.meetingId !== 'undefined') {
|
|
3696
3175
|
toReturn['meetingId'] = this.meetingId;
|
|
@@ -3711,9 +3190,6 @@ class HostGetCalendarRequest {
|
|
|
3711
3190
|
return m;
|
|
3712
3191
|
}
|
|
3713
3192
|
toApiJson() {
|
|
3714
|
-
if (typeof this.calendarId === 'undefined') {
|
|
3715
|
-
return {};
|
|
3716
|
-
}
|
|
3717
3193
|
const toReturn = {};
|
|
3718
3194
|
if (typeof this.calendarId !== 'undefined') {
|
|
3719
3195
|
toReturn['calendarId'] = this.calendarId;
|
|
@@ -3737,9 +3213,6 @@ class HostGetCalendarResponse {
|
|
|
3737
3213
|
return m;
|
|
3738
3214
|
}
|
|
3739
3215
|
toApiJson() {
|
|
3740
|
-
if (typeof this.calendar === 'undefined') {
|
|
3741
|
-
return {};
|
|
3742
|
-
}
|
|
3743
3216
|
const toReturn = {};
|
|
3744
3217
|
if (typeof this.calendar !== 'undefined' && this.calendar !== null) {
|
|
3745
3218
|
toReturn['calendar'] = 'toApiJson' in this.calendar ? this.calendar.toApiJson() : this.calendar;
|
|
@@ -3760,10 +3233,6 @@ class HostGetMeetingTypeRequest {
|
|
|
3760
3233
|
return m;
|
|
3761
3234
|
}
|
|
3762
3235
|
toApiJson() {
|
|
3763
|
-
if (typeof this.calendarSlug === 'undefined' &&
|
|
3764
|
-
typeof this.meetingTypeSlug === 'undefined') {
|
|
3765
|
-
return {};
|
|
3766
|
-
}
|
|
3767
3236
|
const toReturn = {};
|
|
3768
3237
|
if (typeof this.calendarSlug !== 'undefined') {
|
|
3769
3238
|
toReturn['calendarSlug'] = this.calendarSlug;
|
|
@@ -3790,9 +3259,6 @@ class HostGetMeetingTypeResponse {
|
|
|
3790
3259
|
return m;
|
|
3791
3260
|
}
|
|
3792
3261
|
toApiJson() {
|
|
3793
|
-
if (typeof this.meetingType === 'undefined') {
|
|
3794
|
-
return {};
|
|
3795
|
-
}
|
|
3796
3262
|
const toReturn = {};
|
|
3797
3263
|
if (typeof this.meetingType !== 'undefined' && this.meetingType !== null) {
|
|
3798
3264
|
toReturn['meetingType'] = 'toApiJson' in this.meetingType ? this.meetingType.toApiJson() : this.meetingType;
|
|
@@ -3813,9 +3279,6 @@ class HostListMeetingTypesRequest {
|
|
|
3813
3279
|
return m;
|
|
3814
3280
|
}
|
|
3815
3281
|
toApiJson() {
|
|
3816
|
-
if (typeof this.hostId === 'undefined') {
|
|
3817
|
-
return {};
|
|
3818
|
-
}
|
|
3819
3282
|
const toReturn = {};
|
|
3820
3283
|
if (typeof this.hostId !== 'undefined') {
|
|
3821
3284
|
toReturn['hostId'] = this.hostId;
|
|
@@ -3839,9 +3302,6 @@ class HostListMeetingTypesResponse {
|
|
|
3839
3302
|
return m;
|
|
3840
3303
|
}
|
|
3841
3304
|
toApiJson() {
|
|
3842
|
-
if (typeof this.meetingTypes === 'undefined') {
|
|
3843
|
-
return {};
|
|
3844
|
-
}
|
|
3845
3305
|
const toReturn = {};
|
|
3846
3306
|
if (typeof this.meetingTypes !== 'undefined' && this.meetingTypes !== null) {
|
|
3847
3307
|
toReturn['meetingTypes'] = 'toApiJson' in this.meetingTypes ? this.meetingTypes.toApiJson() : this.meetingTypes;
|
|
@@ -3862,9 +3322,6 @@ class IsHostConfiguredRequest {
|
|
|
3862
3322
|
return m;
|
|
3863
3323
|
}
|
|
3864
3324
|
toApiJson() {
|
|
3865
|
-
if (typeof this.hostId === 'undefined') {
|
|
3866
|
-
return {};
|
|
3867
|
-
}
|
|
3868
3325
|
const toReturn = {};
|
|
3869
3326
|
if (typeof this.hostId !== 'undefined') {
|
|
3870
3327
|
toReturn['hostId'] = this.hostId;
|
|
@@ -3885,9 +3342,6 @@ class IsHostConfiguredResponse {
|
|
|
3885
3342
|
return m;
|
|
3886
3343
|
}
|
|
3887
3344
|
toApiJson() {
|
|
3888
|
-
if (typeof this.isConfigured === 'undefined') {
|
|
3889
|
-
return {};
|
|
3890
|
-
}
|
|
3891
3345
|
const toReturn = {};
|
|
3892
3346
|
if (typeof this.isConfigured !== 'undefined') {
|
|
3893
3347
|
toReturn['isConfigured'] = this.isConfigured;
|
|
@@ -3917,11 +3371,6 @@ class ListAvailabilityRequest {
|
|
|
3917
3371
|
return m;
|
|
3918
3372
|
}
|
|
3919
3373
|
toApiJson() {
|
|
3920
|
-
if (typeof this.pagingOptions === 'undefined' &&
|
|
3921
|
-
typeof this.filters === 'undefined' &&
|
|
3922
|
-
typeof this.timeZone === 'undefined') {
|
|
3923
|
-
return {};
|
|
3924
|
-
}
|
|
3925
3374
|
const toReturn = {};
|
|
3926
3375
|
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
3927
3376
|
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
@@ -3954,10 +3403,6 @@ class ListAvailabilityResponse {
|
|
|
3954
3403
|
return m;
|
|
3955
3404
|
}
|
|
3956
3405
|
toApiJson() {
|
|
3957
|
-
if (typeof this.availabilityRules === 'undefined' &&
|
|
3958
|
-
typeof this.metadata === 'undefined') {
|
|
3959
|
-
return {};
|
|
3960
|
-
}
|
|
3961
3406
|
const toReturn = {};
|
|
3962
3407
|
if (typeof this.availabilityRules !== 'undefined' && this.availabilityRules !== null) {
|
|
3963
3408
|
toReturn['availabilityRules'] = 'toApiJson' in this.availabilityRules ? this.availabilityRules.toApiJson() : this.availabilityRules;
|
|
@@ -3990,11 +3435,6 @@ class ListBookedMeetingsRequest {
|
|
|
3990
3435
|
return m;
|
|
3991
3436
|
}
|
|
3992
3437
|
toApiJson() {
|
|
3993
|
-
if (typeof this.filters === 'undefined' &&
|
|
3994
|
-
typeof this.pagingOptions === 'undefined' &&
|
|
3995
|
-
typeof this.timeZone === 'undefined') {
|
|
3996
|
-
return {};
|
|
3997
|
-
}
|
|
3998
3438
|
const toReturn = {};
|
|
3999
3439
|
if (typeof this.filters !== 'undefined' && this.filters !== null) {
|
|
4000
3440
|
toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
|
|
@@ -4027,10 +3467,6 @@ class ListBookedMeetingsResponse {
|
|
|
4027
3467
|
return m;
|
|
4028
3468
|
}
|
|
4029
3469
|
toApiJson() {
|
|
4030
|
-
if (typeof this.meetings === 'undefined' &&
|
|
4031
|
-
typeof this.pagingMetadata === 'undefined') {
|
|
4032
|
-
return {};
|
|
4033
|
-
}
|
|
4034
3470
|
const toReturn = {};
|
|
4035
3471
|
if (typeof this.meetings !== 'undefined' && this.meetings !== null) {
|
|
4036
3472
|
toReturn['meetings'] = 'toApiJson' in this.meetings ? this.meetings.toApiJson() : this.meetings;
|
|
@@ -4078,22 +3514,6 @@ class Meeting {
|
|
|
4078
3514
|
return m;
|
|
4079
3515
|
}
|
|
4080
3516
|
toApiJson() {
|
|
4081
|
-
if (typeof this.id === 'undefined' &&
|
|
4082
|
-
typeof this.eventTypeId === 'undefined' &&
|
|
4083
|
-
typeof this.hostId === 'undefined' &&
|
|
4084
|
-
typeof this.start === 'undefined' &&
|
|
4085
|
-
typeof this.end === 'undefined' &&
|
|
4086
|
-
typeof this.created === 'undefined' &&
|
|
4087
|
-
typeof this.updated === 'undefined' &&
|
|
4088
|
-
typeof this.attendees === 'undefined' &&
|
|
4089
|
-
typeof this.description === 'undefined' &&
|
|
4090
|
-
typeof this.joinMeetingUrl === 'undefined' &&
|
|
4091
|
-
typeof this.topic === 'undefined' &&
|
|
4092
|
-
typeof this.formAnswers === 'undefined' &&
|
|
4093
|
-
typeof this.metadata === 'undefined' &&
|
|
4094
|
-
typeof this.attachments === 'undefined') {
|
|
4095
|
-
return {};
|
|
4096
|
-
}
|
|
4097
3517
|
const toReturn = {};
|
|
4098
3518
|
if (typeof this.id !== 'undefined') {
|
|
4099
3519
|
toReturn['id'] = this.id;
|
|
@@ -4156,9 +3576,6 @@ class MeetingTypeList {
|
|
|
4156
3576
|
return m;
|
|
4157
3577
|
}
|
|
4158
3578
|
toApiJson() {
|
|
4159
|
-
if (typeof this.meetingTypes === 'undefined') {
|
|
4160
|
-
return {};
|
|
4161
|
-
}
|
|
4162
3579
|
const toReturn = {};
|
|
4163
3580
|
if (typeof this.meetingTypes !== 'undefined' && this.meetingTypes !== null) {
|
|
4164
3581
|
toReturn['meetingTypes'] = 'toApiJson' in this.meetingTypes ? this.meetingTypes.toApiJson() : this.meetingTypes;
|
|
@@ -4179,10 +3596,6 @@ class MeetingMetadataEntry {
|
|
|
4179
3596
|
return m;
|
|
4180
3597
|
}
|
|
4181
3598
|
toApiJson() {
|
|
4182
|
-
if (typeof this.key === 'undefined' &&
|
|
4183
|
-
typeof this.value === 'undefined') {
|
|
4184
|
-
return {};
|
|
4185
|
-
}
|
|
4186
3599
|
const toReturn = {};
|
|
4187
3600
|
if (typeof this.key !== 'undefined') {
|
|
4188
3601
|
toReturn['key'] = this.key;
|
|
@@ -4206,10 +3619,6 @@ class UpdateMeetingMetadataRequestMetadataEntry {
|
|
|
4206
3619
|
return m;
|
|
4207
3620
|
}
|
|
4208
3621
|
toApiJson() {
|
|
4209
|
-
if (typeof this.key === 'undefined' &&
|
|
4210
|
-
typeof this.value === 'undefined') {
|
|
4211
|
-
return {};
|
|
4212
|
-
}
|
|
4213
3622
|
const toReturn = {};
|
|
4214
3623
|
if (typeof this.key !== 'undefined') {
|
|
4215
3624
|
toReturn['key'] = this.key;
|
|
@@ -4236,10 +3645,6 @@ class RescheduleMeetingRequest {
|
|
|
4236
3645
|
return m;
|
|
4237
3646
|
}
|
|
4238
3647
|
toApiJson() {
|
|
4239
|
-
if (typeof this.meetingId === 'undefined' &&
|
|
4240
|
-
typeof this.start === 'undefined') {
|
|
4241
|
-
return {};
|
|
4242
|
-
}
|
|
4243
3648
|
const toReturn = {};
|
|
4244
3649
|
if (typeof this.meetingId !== 'undefined') {
|
|
4245
3650
|
toReturn['meetingId'] = this.meetingId;
|
|
@@ -4261,7 +3666,7 @@ class SetGeneralAvailabilityRequest {
|
|
|
4261
3666
|
let m = new SetGeneralAvailabilityRequest();
|
|
4262
3667
|
m = Object.assign(m, proto);
|
|
4263
3668
|
if (proto.days) {
|
|
4264
|
-
m.days = proto.days.map((v) => enumStringToValue
|
|
3669
|
+
m.days = proto.days.map((v) => enumStringToValue(DayOfWeek, v));
|
|
4265
3670
|
}
|
|
4266
3671
|
if (proto.timeSlot) {
|
|
4267
3672
|
m.timeSlot = TimeRange.fromProto(proto.timeSlot);
|
|
@@ -4275,14 +3680,6 @@ class SetGeneralAvailabilityRequest {
|
|
|
4275
3680
|
return m;
|
|
4276
3681
|
}
|
|
4277
3682
|
toApiJson() {
|
|
4278
|
-
if (typeof this.hostId === 'undefined' &&
|
|
4279
|
-
typeof this.meetingTypeId === 'undefined' &&
|
|
4280
|
-
typeof this.days === 'undefined' &&
|
|
4281
|
-
typeof this.timeSlot === 'undefined' &&
|
|
4282
|
-
typeof this.timeZone === 'undefined' &&
|
|
4283
|
-
typeof this.weekdaysAvailability === 'undefined') {
|
|
4284
|
-
return {};
|
|
4285
|
-
}
|
|
4286
3683
|
const toReturn = {};
|
|
4287
3684
|
if (typeof this.hostId !== 'undefined') {
|
|
4288
3685
|
toReturn['hostId'] = this.hostId;
|
|
@@ -4341,11 +3738,6 @@ class UpdateCalendarRequest {
|
|
|
4341
3738
|
return m;
|
|
4342
3739
|
}
|
|
4343
3740
|
toApiJson() {
|
|
4344
|
-
if (typeof this.calendarId === 'undefined' &&
|
|
4345
|
-
typeof this.calendarUpdate === 'undefined' &&
|
|
4346
|
-
typeof this.fieldMask === 'undefined') {
|
|
4347
|
-
return {};
|
|
4348
|
-
}
|
|
4349
3741
|
const toReturn = {};
|
|
4350
3742
|
if (typeof this.calendarId !== 'undefined') {
|
|
4351
3743
|
toReturn['calendarId'] = this.calendarId;
|
|
@@ -4378,11 +3770,6 @@ class UpdateHostPreferencesRequest {
|
|
|
4378
3770
|
return m;
|
|
4379
3771
|
}
|
|
4380
3772
|
toApiJson() {
|
|
4381
|
-
if (typeof this.hostId === 'undefined' &&
|
|
4382
|
-
typeof this.preferences === 'undefined' &&
|
|
4383
|
-
typeof this.fieldMask === 'undefined') {
|
|
4384
|
-
return {};
|
|
4385
|
-
}
|
|
4386
3773
|
const toReturn = {};
|
|
4387
3774
|
if (typeof this.hostId !== 'undefined') {
|
|
4388
3775
|
toReturn['hostId'] = this.hostId;
|
|
@@ -4412,10 +3799,6 @@ class UpdateMeetingMetadataRequest {
|
|
|
4412
3799
|
return m;
|
|
4413
3800
|
}
|
|
4414
3801
|
toApiJson() {
|
|
4415
|
-
if (typeof this.meetingId === 'undefined' &&
|
|
4416
|
-
typeof this.metadata === 'undefined') {
|
|
4417
|
-
return {};
|
|
4418
|
-
}
|
|
4419
3802
|
const toReturn = {};
|
|
4420
3803
|
if (typeof this.meetingId !== 'undefined') {
|
|
4421
3804
|
toReturn['meetingId'] = this.meetingId;
|
|
@@ -4445,11 +3828,6 @@ class UpdateMeetingTypeRequest {
|
|
|
4445
3828
|
return m;
|
|
4446
3829
|
}
|
|
4447
3830
|
toApiJson() {
|
|
4448
|
-
if (typeof this.id === 'undefined' &&
|
|
4449
|
-
typeof this.meetingType === 'undefined' &&
|
|
4450
|
-
typeof this.fieldMask === 'undefined') {
|
|
4451
|
-
return {};
|
|
4452
|
-
}
|
|
4453
3831
|
const toReturn = {};
|
|
4454
3832
|
if (typeof this.id !== 'undefined') {
|
|
4455
3833
|
toReturn['id'] = this.id;
|
|
@@ -4474,7 +3852,7 @@ class WeekdayAvailability {
|
|
|
4474
3852
|
let m = new WeekdayAvailability();
|
|
4475
3853
|
m = Object.assign(m, proto);
|
|
4476
3854
|
if (proto.day) {
|
|
4477
|
-
m.day = enumStringToValue
|
|
3855
|
+
m.day = enumStringToValue(DayOfWeek, proto.day);
|
|
4478
3856
|
}
|
|
4479
3857
|
if (proto.timeSlots) {
|
|
4480
3858
|
m.timeSlots = proto.timeSlots.map(TimeRange.fromProto);
|
|
@@ -4482,10 +3860,6 @@ class WeekdayAvailability {
|
|
|
4482
3860
|
return m;
|
|
4483
3861
|
}
|
|
4484
3862
|
toApiJson() {
|
|
4485
|
-
if (typeof this.day === 'undefined' &&
|
|
4486
|
-
typeof this.timeSlots === 'undefined') {
|
|
4487
|
-
return {};
|
|
4488
|
-
}
|
|
4489
3863
|
const toReturn = {};
|
|
4490
3864
|
if (typeof this.day !== 'undefined') {
|
|
4491
3865
|
toReturn['day'] = this.day;
|
|
@@ -4499,71 +3873,36 @@ class WeekdayAvailability {
|
|
|
4499
3873
|
|
|
4500
3874
|
// *********************************
|
|
4501
3875
|
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
}
|
|
4526
|
-
httpsHost() {
|
|
4527
|
-
if (this._httpsHost) {
|
|
4528
|
-
return this._httpsHost;
|
|
4529
|
-
}
|
|
4530
|
-
switch (this.environmentService.getEnvironment()) {
|
|
4531
|
-
case Environment.LOCAL:
|
|
4532
|
-
this._httpsHost = 'meetings.vendasta-local.com';
|
|
4533
|
-
break;
|
|
4534
|
-
case Environment.TEST:
|
|
4535
|
-
this._httpsHost = '';
|
|
4536
|
-
break;
|
|
4537
|
-
case Environment.DEMO:
|
|
4538
|
-
this._httpsHost = 'meetings-demo.apigateway.co';
|
|
4539
|
-
break;
|
|
4540
|
-
case Environment.PROD:
|
|
4541
|
-
this._httpsHost = 'meetings-prod.apigateway.co';
|
|
4542
|
-
break;
|
|
4543
|
-
}
|
|
4544
|
-
return this._httpsHost;
|
|
4545
|
-
}
|
|
4546
|
-
hostWithScheme() {
|
|
4547
|
-
const scheme = this.environmentService.getEnvironment() === Environment.LOCAL ? 'http://' : 'https://';
|
|
4548
|
-
return scheme + this.host();
|
|
4549
|
-
}
|
|
4550
|
-
httpsHostWithScheme() {
|
|
4551
|
-
const scheme = this.environmentService.getEnvironment() === Environment.LOCAL ? 'http://' : 'https://';
|
|
4552
|
-
return scheme + this.httpsHost();
|
|
4553
|
-
}
|
|
4554
|
-
}
|
|
4555
|
-
HostService.decorators = [
|
|
4556
|
-
{ type: Injectable }
|
|
4557
|
-
];
|
|
4558
|
-
HostService.ctorParameters = () => [
|
|
4559
|
-
{ type: EnvironmentService }
|
|
4560
|
-
];
|
|
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
|
+
}] });
|
|
4561
3899
|
|
|
4562
3900
|
// *********************************
|
|
4563
|
-
class
|
|
3901
|
+
class MeetingSourceAPIApiService {
|
|
4564
3902
|
constructor(http, hostService) {
|
|
4565
3903
|
this.http = http;
|
|
4566
3904
|
this.hostService = hostService;
|
|
3905
|
+
this._host = this.hostService.hostWithScheme;
|
|
4567
3906
|
}
|
|
4568
3907
|
apiOptions() {
|
|
4569
3908
|
return {
|
|
@@ -4573,25 +3912,25 @@ class GoogleMeetApiService {
|
|
|
4573
3912
|
withCredentials: true
|
|
4574
3913
|
};
|
|
4575
3914
|
}
|
|
4576
|
-
|
|
4577
|
-
const request = (r.toApiJson) ? r : new
|
|
4578
|
-
return this.http.post(this.
|
|
4579
|
-
.pipe(map(resp =>
|
|
3915
|
+
list(r) {
|
|
3916
|
+
const request = (r.toApiJson) ? r : new MeetingSourceListRequest(r);
|
|
3917
|
+
return this.http.post(this._host + "/meetings.v1.MeetingSourceAPI/List", request.toApiJson(), this.apiOptions())
|
|
3918
|
+
.pipe(map(resp => MeetingSourceListResponse.fromProto(resp)));
|
|
4580
3919
|
}
|
|
4581
3920
|
}
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
];
|
|
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 }]; } });
|
|
4589
3927
|
|
|
4590
3928
|
// *********************************
|
|
4591
|
-
class
|
|
3929
|
+
class ZoomApiService {
|
|
4592
3930
|
constructor(http, hostService) {
|
|
4593
3931
|
this.http = http;
|
|
4594
3932
|
this.hostService = hostService;
|
|
3933
|
+
this._host = this.hostService.hostWithScheme;
|
|
4595
3934
|
}
|
|
4596
3935
|
apiOptions() {
|
|
4597
3936
|
return {
|
|
@@ -4601,295 +3940,46 @@ class MeetingGuestApiService {
|
|
|
4601
3940
|
withCredentials: true
|
|
4602
3941
|
};
|
|
4603
3942
|
}
|
|
4604
|
-
|
|
4605
|
-
const request = (r.toApiJson) ? r : new
|
|
4606
|
-
return this.http.post(this.
|
|
4607
|
-
.pipe(map(resp =>
|
|
3943
|
+
createMeeting(r) {
|
|
3944
|
+
const request = (r.toApiJson) ? r : new CreateZoomMeetingRequest(r);
|
|
3945
|
+
return this.http.post(this._host + "/meetings.v1.Zoom/CreateMeeting", request.toApiJson(), this.apiOptions())
|
|
3946
|
+
.pipe(map(resp => CreateZoomMeetingResponse.fromProto(resp)));
|
|
4608
3947
|
}
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
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 }]; } });
|
|
3955
|
+
|
|
3956
|
+
// *********************************
|
|
3957
|
+
class GoogleMeetApiService {
|
|
3958
|
+
constructor(http, hostService) {
|
|
3959
|
+
this.http = http;
|
|
3960
|
+
this.hostService = hostService;
|
|
3961
|
+
this._host = this.hostService.hostWithScheme;
|
|
4613
3962
|
}
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
3963
|
+
apiOptions() {
|
|
3964
|
+
return {
|
|
3965
|
+
headers: new HttpHeaders({
|
|
3966
|
+
'Content-Type': 'application/json'
|
|
3967
|
+
}),
|
|
3968
|
+
withCredentials: true
|
|
3969
|
+
};
|
|
4618
3970
|
}
|
|
4619
|
-
|
|
4620
|
-
const request = (r.toApiJson) ? r : new
|
|
4621
|
-
return this.http.post(this.
|
|
4622
|
-
.pipe(map(resp =>
|
|
4623
|
-
}
|
|
4624
|
-
cancelMeeting(r) {
|
|
4625
|
-
const request = (r.toApiJson) ? r : new GuestCancelMeetingRequest(r);
|
|
4626
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/CancelMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4627
|
-
}
|
|
4628
|
-
rescheduleMeeting(r) {
|
|
4629
|
-
const request = (r.toApiJson) ? r : new GuestRescheduleMeetingRequest(r);
|
|
4630
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/RescheduleMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4631
|
-
}
|
|
4632
|
-
getGuestBookedMeeting(r) {
|
|
4633
|
-
const request = (r.toApiJson) ? r : new GuestGetBookedMeetingRequest(r);
|
|
4634
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/GetGuestBookedMeeting", request.toApiJson(), this.apiOptions())
|
|
4635
|
-
.pipe(map(resp => GuestGetBookedMeetingResponse.fromProto(resp)), share());
|
|
4636
|
-
}
|
|
4637
|
-
getCalendar(r) {
|
|
4638
|
-
const request = (r.toApiJson) ? r : new GetCalendarRequest(r);
|
|
4639
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/GetCalendar", request.toApiJson(), this.apiOptions())
|
|
4640
|
-
.pipe(map(resp => GetCalendarResponse.fromProto(resp)), share());
|
|
4641
|
-
}
|
|
4642
|
-
getHost(r) {
|
|
4643
|
-
const request = (r.toApiJson) ? r : new GetHostRequest(r);
|
|
4644
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/GetHost", request.toApiJson(), this.apiOptions())
|
|
4645
|
-
.pipe(map(resp => GetHostResponse.fromProto(resp)), share());
|
|
4646
|
-
}
|
|
4647
|
-
isHostConfigured(r) {
|
|
4648
|
-
const request = (r.toApiJson) ? r : new GuestIsHostConfiguredRequest(r);
|
|
4649
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/IsHostConfigured", request.toApiJson(), this.apiOptions())
|
|
4650
|
-
.pipe(map(resp => GuestIsHostConfiguredResponse.fromProto(resp)), share());
|
|
3971
|
+
createMeeting(r) {
|
|
3972
|
+
const request = (r.toApiJson) ? r : new GoogleMeetCreateMeetingRequest(r);
|
|
3973
|
+
return this.http.post(this._host + "/meetings.v1.GoogleMeet/CreateMeeting", request.toApiJson(), this.apiOptions())
|
|
3974
|
+
.pipe(map(resp => GoogleMeetCreateMeetingResponse.fromProto(resp)));
|
|
4651
3975
|
}
|
|
4652
3976
|
}
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
];
|
|
4660
|
-
|
|
4661
|
-
// *********************************
|
|
4662
|
-
class MeetingHostApiService {
|
|
4663
|
-
constructor(http, hostService) {
|
|
4664
|
-
this.http = http;
|
|
4665
|
-
this.hostService = hostService;
|
|
4666
|
-
}
|
|
4667
|
-
apiOptions() {
|
|
4668
|
-
return {
|
|
4669
|
-
headers: new HttpHeaders({
|
|
4670
|
-
'Content-Type': 'application/json'
|
|
4671
|
-
}),
|
|
4672
|
-
withCredentials: true
|
|
4673
|
-
};
|
|
4674
|
-
}
|
|
4675
|
-
buildHostId(r) {
|
|
4676
|
-
const request = (r.toApiJson) ? r : new BuildHostIdRequest(r);
|
|
4677
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/BuildHostId", request.toApiJson(), this.apiOptions())
|
|
4678
|
-
.pipe(map(resp => BuildHostIdResponse.fromProto(resp)), share());
|
|
4679
|
-
}
|
|
4680
|
-
doesCalendarExist(r) {
|
|
4681
|
-
const request = (r.toApiJson) ? r : new DoesCalendarExistRequest(r);
|
|
4682
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/DoesCalendarExist", request.toApiJson(), this.apiOptions())
|
|
4683
|
-
.pipe(map(resp => DoesCalendarExistResponse.fromProto(resp)), share());
|
|
4684
|
-
}
|
|
4685
|
-
createCalendar(r) {
|
|
4686
|
-
const request = (r.toApiJson) ? r : new CreateCalendarRequest(r);
|
|
4687
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/CreateCalendar", request.toApiJson(), this.apiOptions())
|
|
4688
|
-
.pipe(map(resp => CreateCalendarResponse.fromProto(resp)), share());
|
|
4689
|
-
}
|
|
4690
|
-
updateCalendar(r) {
|
|
4691
|
-
const request = (r.toApiJson) ? r : new UpdateCalendarRequest(r);
|
|
4692
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/UpdateCalendar", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4693
|
-
}
|
|
4694
|
-
getCalendar(r) {
|
|
4695
|
-
const request = (r.toApiJson) ? r : new HostGetCalendarRequest(r);
|
|
4696
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/GetCalendar", request.toApiJson(), this.apiOptions())
|
|
4697
|
-
.pipe(map(resp => HostGetCalendarResponse.fromProto(resp)), share());
|
|
4698
|
-
}
|
|
4699
|
-
ensurePersonalCalendarExists(r) {
|
|
4700
|
-
const request = (r.toApiJson) ? r : new EnsurePersonalCalendarExistsRequest(r);
|
|
4701
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/EnsurePersonalCalendarExists", request.toApiJson(), this.apiOptions())
|
|
4702
|
-
.pipe(map(resp => EnsurePersonalCalendarExistsResponse.fromProto(resp)), share());
|
|
4703
|
-
}
|
|
4704
|
-
ensureGroupCalendarsExist(r) {
|
|
4705
|
-
const request = (r.toApiJson) ? r : new EnsureGroupCalendarsExistRequest(r);
|
|
4706
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/EnsureGroupCalendarsExist", request.toApiJson(), this.apiOptions())
|
|
4707
|
-
.pipe(map(resp => EnsureGroupCalendarsExistResponse.fromProto(resp)), share());
|
|
4708
|
-
}
|
|
4709
|
-
getHostsForCalendar(r) {
|
|
4710
|
-
const request = (r.toApiJson) ? r : new GetHostsForCalendarRequest(r);
|
|
4711
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/GetHostsForCalendar", request.toApiJson(), this.apiOptions())
|
|
4712
|
-
.pipe(map(resp => GetHostsForCalendarResponse.fromProto(resp)), share());
|
|
4713
|
-
}
|
|
4714
|
-
getMeetingTypesForCalendars(r) {
|
|
4715
|
-
const request = (r.toApiJson) ? r : new GetMeetingTypesForCalendarsRequest(r);
|
|
4716
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/GetMeetingTypesForCalendars", request.toApiJson(), this.apiOptions())
|
|
4717
|
-
.pipe(map(resp => GetMeetingTypesForCalendarsResponse.fromProto(resp)), share());
|
|
4718
|
-
}
|
|
4719
|
-
listAvailability(r) {
|
|
4720
|
-
const request = (r.toApiJson) ? r : new ListAvailabilityRequest(r);
|
|
4721
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/ListAvailability", request.toApiJson(), this.apiOptions())
|
|
4722
|
-
.pipe(map(resp => ListAvailabilityResponse.fromProto(resp)), share());
|
|
4723
|
-
}
|
|
4724
|
-
bookMeeting(r) {
|
|
4725
|
-
const request = (r.toApiJson) ? r : new HostBookMeetingRequest(r);
|
|
4726
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/BookMeeting", request.toApiJson(), this.apiOptions())
|
|
4727
|
-
.pipe(map(resp => HostBookMeetingResponse.fromProto(resp)), share());
|
|
4728
|
-
}
|
|
4729
|
-
getHostMeeting(r) {
|
|
4730
|
-
const request = (r.toApiJson) ? r : new GetHostMeetingRequest(r);
|
|
4731
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/GetHostMeeting", request.toApiJson(), this.apiOptions())
|
|
4732
|
-
.pipe(map(resp => GetHostMeetingResponse.fromProto(resp)), share());
|
|
4733
|
-
}
|
|
4734
|
-
listBookedMeetings(r) {
|
|
4735
|
-
const request = (r.toApiJson) ? r : new ListBookedMeetingsRequest(r);
|
|
4736
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/ListBookedMeetings", request.toApiJson(), this.apiOptions())
|
|
4737
|
-
.pipe(map(resp => ListBookedMeetingsResponse.fromProto(resp)), share());
|
|
4738
|
-
}
|
|
4739
|
-
cancelMeeting(r) {
|
|
4740
|
-
const request = (r.toApiJson) ? r : new CancelMeetingRequest(r);
|
|
4741
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/CancelMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4742
|
-
}
|
|
4743
|
-
rescheduleMeeting(r) {
|
|
4744
|
-
const request = (r.toApiJson) ? r : new RescheduleMeetingRequest(r);
|
|
4745
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/RescheduleMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4746
|
-
}
|
|
4747
|
-
updateMeetingMetadata(r) {
|
|
4748
|
-
const request = (r.toApiJson) ? r : new UpdateMeetingMetadataRequest(r);
|
|
4749
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/UpdateMeetingMetadata", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4750
|
-
}
|
|
4751
|
-
setGeneralAvailability(r) {
|
|
4752
|
-
const request = (r.toApiJson) ? r : new SetGeneralAvailabilityRequest(r);
|
|
4753
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/SetGeneralAvailability", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4754
|
-
}
|
|
4755
|
-
createAvailability(r) {
|
|
4756
|
-
const request = (r.toApiJson) ? r : new CreateAvailabilityRequest(r);
|
|
4757
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/CreateAvailability", request.toApiJson(), this.apiOptions())
|
|
4758
|
-
.pipe(map(resp => CreateAvailabilityResponse.fromProto(resp)), share());
|
|
4759
|
-
}
|
|
4760
|
-
updateAvailability(r) {
|
|
4761
|
-
const request = (r.toApiJson) ? r : new UpdateAvailabilityRequest(r);
|
|
4762
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/UpdateAvailability", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4763
|
-
}
|
|
4764
|
-
deleteAvailability(r) {
|
|
4765
|
-
const request = (r.toApiJson) ? r : new DeleteAvailabilityRequest(r);
|
|
4766
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/DeleteAvailability", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4767
|
-
}
|
|
4768
|
-
isHostConfigured(r) {
|
|
4769
|
-
const request = (r.toApiJson) ? r : new IsHostConfiguredRequest(r);
|
|
4770
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/IsHostConfigured", request.toApiJson(), this.apiOptions())
|
|
4771
|
-
.pipe(map(resp => IsHostConfiguredResponse.fromProto(resp)), share());
|
|
4772
|
-
}
|
|
4773
|
-
getHostPreferences(r) {
|
|
4774
|
-
const request = (r.toApiJson) ? r : new GetHostPreferencesRequest(r);
|
|
4775
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/GetHostPreferences", request.toApiJson(), this.apiOptions())
|
|
4776
|
-
.pipe(map(resp => GetHostPreferencesResponse.fromProto(resp)), share());
|
|
4777
|
-
}
|
|
4778
|
-
updateHostPreferences(r) {
|
|
4779
|
-
const request = (r.toApiJson) ? r : new UpdateHostPreferencesRequest(r);
|
|
4780
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/UpdateHostPreferences", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4781
|
-
}
|
|
4782
|
-
getMeetingType(r) {
|
|
4783
|
-
const request = (r.toApiJson) ? r : new HostGetMeetingTypeRequest(r);
|
|
4784
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/GetMeetingType", request.toApiJson(), this.apiOptions())
|
|
4785
|
-
.pipe(map(resp => HostGetMeetingTypeResponse.fromProto(resp)), share());
|
|
4786
|
-
}
|
|
4787
|
-
listMeetingTypes(r) {
|
|
4788
|
-
const request = (r.toApiJson) ? r : new HostListMeetingTypesRequest(r);
|
|
4789
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/ListMeetingTypes", request.toApiJson(), this.apiOptions())
|
|
4790
|
-
.pipe(map(resp => HostListMeetingTypesResponse.fromProto(resp)), share());
|
|
4791
|
-
}
|
|
4792
|
-
createMeetingType(r) {
|
|
4793
|
-
const request = (r.toApiJson) ? r : new CreateMeetingTypeRequest(r);
|
|
4794
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/CreateMeetingType", request.toApiJson(), this.apiOptions())
|
|
4795
|
-
.pipe(map(resp => CreateMeetingTypeResponse.fromProto(resp)), share());
|
|
4796
|
-
}
|
|
4797
|
-
updateMeetingType(r) {
|
|
4798
|
-
const request = (r.toApiJson) ? r : new UpdateMeetingTypeRequest(r);
|
|
4799
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/UpdateMeetingType", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4800
|
-
}
|
|
4801
|
-
deleteMeetingType(r) {
|
|
4802
|
-
const request = (r.toApiJson) ? r : new DeleteMeetingTypeRequest(r);
|
|
4803
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/DeleteMeetingType", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4804
|
-
}
|
|
4805
|
-
createDefaultMeetingTypes(r) {
|
|
4806
|
-
const request = (r.toApiJson) ? r : new CreateDefaultMeetingTypesRequest(r);
|
|
4807
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/CreateDefaultMeetingTypes", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4808
|
-
}
|
|
4809
|
-
}
|
|
4810
|
-
MeetingHostApiService.decorators = [
|
|
4811
|
-
{ type: Injectable }
|
|
4812
|
-
];
|
|
4813
|
-
MeetingHostApiService.ctorParameters = () => [
|
|
4814
|
-
{ type: HttpClient },
|
|
4815
|
-
{ type: HostService }
|
|
4816
|
-
];
|
|
4817
|
-
|
|
4818
|
-
// *********************************
|
|
4819
|
-
class MeetingSourceAPIApiService {
|
|
4820
|
-
constructor(http, hostService) {
|
|
4821
|
-
this.http = http;
|
|
4822
|
-
this.hostService = hostService;
|
|
4823
|
-
}
|
|
4824
|
-
apiOptions() {
|
|
4825
|
-
return {
|
|
4826
|
-
headers: new HttpHeaders({
|
|
4827
|
-
'Content-Type': 'application/json'
|
|
4828
|
-
}),
|
|
4829
|
-
withCredentials: true
|
|
4830
|
-
};
|
|
4831
|
-
}
|
|
4832
|
-
list(r) {
|
|
4833
|
-
const request = (r.toApiJson) ? r : new MeetingSourceListRequest(r);
|
|
4834
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingSourceAPI/List", request.toApiJson(), this.apiOptions())
|
|
4835
|
-
.pipe(map(resp => MeetingSourceListResponse.fromProto(resp)), share());
|
|
4836
|
-
}
|
|
4837
|
-
}
|
|
4838
|
-
MeetingSourceAPIApiService.decorators = [
|
|
4839
|
-
{ type: Injectable }
|
|
4840
|
-
];
|
|
4841
|
-
MeetingSourceAPIApiService.ctorParameters = () => [
|
|
4842
|
-
{ type: HttpClient },
|
|
4843
|
-
{ type: HostService }
|
|
4844
|
-
];
|
|
4845
|
-
|
|
4846
|
-
// *********************************
|
|
4847
|
-
class ZoomApiService {
|
|
4848
|
-
constructor(http, hostService) {
|
|
4849
|
-
this.http = http;
|
|
4850
|
-
this.hostService = hostService;
|
|
4851
|
-
}
|
|
4852
|
-
apiOptions() {
|
|
4853
|
-
return {
|
|
4854
|
-
headers: new HttpHeaders({
|
|
4855
|
-
'Content-Type': 'application/json'
|
|
4856
|
-
}),
|
|
4857
|
-
withCredentials: true
|
|
4858
|
-
};
|
|
4859
|
-
}
|
|
4860
|
-
createMeeting(r) {
|
|
4861
|
-
const request = (r.toApiJson) ? r : new CreateZoomMeetingRequest(r);
|
|
4862
|
-
return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.Zoom/CreateMeeting", request.toApiJson(), this.apiOptions())
|
|
4863
|
-
.pipe(map(resp => CreateZoomMeetingResponse.fromProto(resp)), share());
|
|
4864
|
-
}
|
|
4865
|
-
}
|
|
4866
|
-
ZoomApiService.decorators = [
|
|
4867
|
-
{ type: Injectable }
|
|
4868
|
-
];
|
|
4869
|
-
ZoomApiService.ctorParameters = () => [
|
|
4870
|
-
{ type: HttpClient },
|
|
4871
|
-
{ type: HostService }
|
|
4872
|
-
];
|
|
4873
|
-
|
|
4874
|
-
// *********************************
|
|
4875
|
-
class MeetingsInternalModule {
|
|
4876
|
-
}
|
|
4877
|
-
MeetingsInternalModule.decorators = [
|
|
4878
|
-
{ type: NgModule, args: [{
|
|
4879
|
-
imports: [SessionServiceModule, EnvironmentServiceModule],
|
|
4880
|
-
providers: [
|
|
4881
|
-
GoogleMeetApiService,
|
|
4882
|
-
MeetingGuestApiService,
|
|
4883
|
-
MeetingHostApiService,
|
|
4884
|
-
MeetingSourceAPIApiService,
|
|
4885
|
-
ZoomApiService,
|
|
4886
|
-
HostService
|
|
4887
|
-
],
|
|
4888
|
-
declarations: [],
|
|
4889
|
-
exports: [],
|
|
4890
|
-
entryComponents: []
|
|
4891
|
-
},] }
|
|
4892
|
-
];
|
|
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 }]; } });
|
|
4893
3983
|
|
|
4894
3984
|
function generateMeetingPassword() {
|
|
4895
3985
|
const zoomMaxLength = 10;
|
|
@@ -4945,7 +4035,8 @@ class MeetingsService {
|
|
|
4945
4035
|
const meetReq = createMeetInstantMeetingRequest(meetingTitle, now, gMeetAttendees);
|
|
4946
4036
|
return this.meet.createMeeting(meetReq).pipe(map((resp) => ({ url: resp.meeting.hangoutLink, joinURL: resp.meeting.hangoutLink })));
|
|
4947
4037
|
default:
|
|
4948
|
-
|
|
4038
|
+
// eslint-disable-next-line
|
|
4039
|
+
return throwError(`Unrecognized meeting source ${meetingSource}`);
|
|
4949
4040
|
}
|
|
4950
4041
|
}
|
|
4951
4042
|
createBasicZoomScheduledMeeting(topic, agenda, startDateTime, duration, timezone, meetingPassword) {
|
|
@@ -4986,14 +4077,12 @@ class MeetingsService {
|
|
|
4986
4077
|
return this.meet.createMeeting(req);
|
|
4987
4078
|
}
|
|
4988
4079
|
}
|
|
4989
|
-
MeetingsService
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
{ type: GoogleMeetApiService }
|
|
4996
|
-
];
|
|
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 }]; } });
|
|
4997
4086
|
function createZoomInstantMeetingRequest(meetingTitle, now, meetingAgenda) {
|
|
4998
4087
|
const recurrence = {
|
|
4999
4088
|
type: ZoomMeetingRecurrenceType.ZOOM_MEETING_RECURRENCE_TYPE_DAILY,
|
|
@@ -5009,7 +4098,7 @@ function createZoomInstantMeetingRequest(meetingTitle, now, meetingAgenda) {
|
|
|
5009
4098
|
agenda: meetingAgenda,
|
|
5010
4099
|
trackingFields: [],
|
|
5011
4100
|
recurrence: recurrence,
|
|
5012
|
-
settings: undefined,
|
|
4101
|
+
settings: undefined, // Only used with recurring meetings
|
|
5013
4102
|
};
|
|
5014
4103
|
return new CreateZoomMeetingRequest(req);
|
|
5015
4104
|
}
|
|
@@ -5046,22 +4135,6 @@ function createMeetInstantMeetingRequest(meetingTitle, startDateTime, attendees)
|
|
|
5046
4135
|
return new GoogleMeetCreateMeetingRequest(req);
|
|
5047
4136
|
}
|
|
5048
4137
|
|
|
5049
|
-
// *********************************
|
|
5050
|
-
class MeetingsModule {
|
|
5051
|
-
}
|
|
5052
|
-
MeetingsModule.decorators = [
|
|
5053
|
-
{ type: NgModule, args: [{
|
|
5054
|
-
imports: [
|
|
5055
|
-
MeetingsInternalModule,
|
|
5056
|
-
],
|
|
5057
|
-
providers: [
|
|
5058
|
-
MeetingsService
|
|
5059
|
-
]
|
|
5060
|
-
},] }
|
|
5061
|
-
];
|
|
5062
|
-
|
|
5063
|
-
// *********************************
|
|
5064
|
-
|
|
5065
4138
|
function TimeSpanFromApi(tsAPI) {
|
|
5066
4139
|
return {
|
|
5067
4140
|
start: tsAPI.start,
|
|
@@ -5077,6 +4150,23 @@ function HostFromApi(hostAPI) {
|
|
|
5077
4150
|
};
|
|
5078
4151
|
}
|
|
5079
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
|
+
|
|
5080
4170
|
// A temporary method for building the url for a host, eventTypeId, and metadata
|
|
5081
4171
|
function getBookingUrlImplementation(req) {
|
|
5082
4172
|
const domain = getDomainFromEnvironment(req.environment);
|
|
@@ -5261,6 +4351,236 @@ class PagedResponse {
|
|
|
5261
4351
|
}
|
|
5262
4352
|
}
|
|
5263
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
|
+
|
|
5264
4584
|
function CalendarFromApi(calendarAPI) {
|
|
5265
4585
|
return {
|
|
5266
4586
|
id: calendarAPI.id || '',
|
|
@@ -5330,7 +4650,7 @@ function durationToString(duration) {
|
|
|
5330
4650
|
}
|
|
5331
4651
|
const seconds = duration.seconds || 0;
|
|
5332
4652
|
const nanoseconds = duration.nanoseconds || 0;
|
|
5333
|
-
return seconds + (nanoseconds / 1e9)
|
|
4653
|
+
return `${seconds + (nanoseconds / 1e9)}s`;
|
|
5334
4654
|
}
|
|
5335
4655
|
function durationStringToMinutes(req) {
|
|
5336
4656
|
const d = durationFromString(req.duration);
|
|
@@ -5375,9 +4695,8 @@ function hostUserFromApi(hostUser) {
|
|
|
5375
4695
|
}
|
|
5376
4696
|
|
|
5377
4697
|
class GuestService {
|
|
5378
|
-
constructor(guestAPIService
|
|
4698
|
+
constructor(guestAPIService) {
|
|
5379
4699
|
this.guestAPIService = guestAPIService;
|
|
5380
|
-
this.environmentService = environmentService;
|
|
5381
4700
|
}
|
|
5382
4701
|
getMeetingType(req) {
|
|
5383
4702
|
return this.guestAPIService.getMeetingType(req).pipe(map(resp => {
|
|
@@ -5385,7 +4704,7 @@ class GuestService {
|
|
|
5385
4704
|
return {};
|
|
5386
4705
|
}
|
|
5387
4706
|
return MeetingTypeFromApi({
|
|
5388
|
-
environment:
|
|
4707
|
+
environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO,
|
|
5389
4708
|
calendarId: req.calendarSlug,
|
|
5390
4709
|
meetingTypeApi: resp.meetingType,
|
|
5391
4710
|
metadata: req.metadata,
|
|
@@ -5400,7 +4719,7 @@ class GuestService {
|
|
|
5400
4719
|
}
|
|
5401
4720
|
return resp.meetingTypes.map(mt => {
|
|
5402
4721
|
return MeetingTypeFromApi({
|
|
5403
|
-
environment:
|
|
4722
|
+
environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO,
|
|
5404
4723
|
calendarId: req.hostId,
|
|
5405
4724
|
meetingTypeApi: mt,
|
|
5406
4725
|
metadata: req.metadata,
|
|
@@ -5413,7 +4732,7 @@ class GuestService {
|
|
|
5413
4732
|
return this.guestAPIService.listAvailableTimeSlots(req).pipe(map(resp => resp.timeSlots ? resp.timeSlots.map(ts => TimeSpanFromApi(ts)) : []));
|
|
5414
4733
|
}
|
|
5415
4734
|
bookMeeting(req) {
|
|
5416
|
-
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) }));
|
|
5417
4736
|
}
|
|
5418
4737
|
cancelMeeting(req) {
|
|
5419
4738
|
return this.guestAPIService.cancelMeeting(req).pipe(mapTo(null));
|
|
@@ -5443,31 +4762,16 @@ class GuestService {
|
|
|
5443
4762
|
return this.guestAPIService.isHostConfigured(req).pipe(map((resp) => resp.isConfigured));
|
|
5444
4763
|
}
|
|
5445
4764
|
}
|
|
5446
|
-
GuestService
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
];
|
|
5453
|
-
|
|
5454
|
-
class GuestModule {
|
|
5455
|
-
}
|
|
5456
|
-
GuestModule.decorators = [
|
|
5457
|
-
{ type: NgModule, args: [{
|
|
5458
|
-
imports: [
|
|
5459
|
-
MeetingsInternalModule,
|
|
5460
|
-
],
|
|
5461
|
-
providers: [
|
|
5462
|
-
GuestService,
|
|
5463
|
-
]
|
|
5464
|
-
},] }
|
|
5465
|
-
];
|
|
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 }]; } });
|
|
5466
4771
|
|
|
5467
|
-
class HostService
|
|
5468
|
-
constructor(hostAPIService
|
|
4772
|
+
class HostService {
|
|
4773
|
+
constructor(hostAPIService) {
|
|
5469
4774
|
this.hostAPIService = hostAPIService;
|
|
5470
|
-
this.environmentService = environmentService;
|
|
5471
4775
|
}
|
|
5472
4776
|
// Use buildHostId to get an identifier that can be used in subsequent requests. See vendastaapis for more details
|
|
5473
4777
|
buildHostId(req) {
|
|
@@ -5522,7 +4826,7 @@ class HostService$1 {
|
|
|
5522
4826
|
var _a;
|
|
5523
4827
|
const meetingTypes = (((_a = res.calendarMeetingTypesMap[calendarId]) === null || _a === void 0 ? void 0 : _a.meetingTypes) || []).map(mt => MeetingTypeFromApi({
|
|
5524
4828
|
meetingTypeApi: mt,
|
|
5525
|
-
environment:
|
|
4829
|
+
environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO,
|
|
5526
4830
|
calendarId,
|
|
5527
4831
|
metadata: req.metadata,
|
|
5528
4832
|
}));
|
|
@@ -5546,7 +4850,7 @@ class HostService$1 {
|
|
|
5546
4850
|
return MeetingTypeFromApi({
|
|
5547
4851
|
meetingTypeApi: mt,
|
|
5548
4852
|
calendarId: req.hostId,
|
|
5549
|
-
environment:
|
|
4853
|
+
environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO,
|
|
5550
4854
|
metadata: req.metadata,
|
|
5551
4855
|
calendarSlug: req.calendarSlug,
|
|
5552
4856
|
});
|
|
@@ -5564,7 +4868,7 @@ class HostService$1 {
|
|
|
5564
4868
|
@param calendarSlug: used to replace hostId in the url. Use it when you are confident you know the host's slug.
|
|
5565
4869
|
*/
|
|
5566
4870
|
getBookingUrl(req) {
|
|
5567
|
-
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 })));
|
|
5568
4872
|
}
|
|
5569
4873
|
/*
|
|
5570
4874
|
getGeneralBookingUrl returns a link that can be used to select a meeting type to book with the given calendar.
|
|
@@ -5576,7 +4880,7 @@ class HostService$1 {
|
|
|
5576
4880
|
*/
|
|
5577
4881
|
getGeneralBookingUrl(req) {
|
|
5578
4882
|
return of(getGeneralBookingUrlImplementation({
|
|
5579
|
-
environment:
|
|
4883
|
+
environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO,
|
|
5580
4884
|
calendarId: req.calendarId,
|
|
5581
4885
|
metadata: req.metadata,
|
|
5582
4886
|
calendarSlug: req.calendarSlug,
|
|
@@ -5598,7 +4902,7 @@ class HostService$1 {
|
|
|
5598
4902
|
calendarId,
|
|
5599
4903
|
meetingTypeSlug,
|
|
5600
4904
|
metadata,
|
|
5601
|
-
environment:
|
|
4905
|
+
environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO,
|
|
5602
4906
|
calendarSlug,
|
|
5603
4907
|
}) });
|
|
5604
4908
|
}, {}) });
|
|
@@ -5688,7 +4992,7 @@ class HostService$1 {
|
|
|
5688
4992
|
// createDefaultMeetingTypes will create what Meeting Scheduler deems to be the default meeting types.
|
|
5689
4993
|
// If the calendar already has meeting types, this is guaranteed to be a no-op.
|
|
5690
4994
|
createDefaultMeetingTypes(req) {
|
|
5691
|
-
return this.hostAPIService.createDefaultMeetingTypes({
|
|
4995
|
+
return this.hostAPIService.createDefaultMeetingTypes({ calendarIds: req.calendarIds }).pipe(mapTo(undefined));
|
|
5692
4996
|
}
|
|
5693
4997
|
createMeetingType(req) {
|
|
5694
4998
|
return this.hostAPIService.createMeetingType({ meetingType: MeetingTypeToApi({ meetingType: req.meetingType }) })
|
|
@@ -5731,30 +5035,16 @@ class HostService$1 {
|
|
|
5731
5035
|
}));
|
|
5732
5036
|
}
|
|
5733
5037
|
}
|
|
5734
|
-
HostService
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
];
|
|
5741
|
-
|
|
5742
|
-
class HostModule {
|
|
5743
|
-
}
|
|
5744
|
-
HostModule.decorators = [
|
|
5745
|
-
{ type: NgModule, args: [{
|
|
5746
|
-
imports: [
|
|
5747
|
-
MeetingsInternalModule,
|
|
5748
|
-
],
|
|
5749
|
-
providers: [
|
|
5750
|
-
HostService$1
|
|
5751
|
-
]
|
|
5752
|
-
},] }
|
|
5753
|
-
];
|
|
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 }]; } });
|
|
5754
5044
|
|
|
5755
5045
|
/**
|
|
5756
5046
|
* Generated bundle index. Do not edit.
|
|
5757
5047
|
*/
|
|
5758
5048
|
|
|
5759
|
-
export { CalendarType, Contact, CreateCalendarRequest, CreateCalendarResponse, DayOfWeek, FormFieldType,
|
|
5760
|
-
//# 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
|