@vendasta/meetings 0.73.1 → 0.75.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.
Files changed (148) hide show
  1. package/esm2020/lib/_generated/host.service.mjs +25 -0
  2. package/esm2020/lib/_internal/enums/dayofweek.enum.mjs +18 -0
  3. package/esm2020/lib/_internal/enums/index.mjs +11 -0
  4. package/esm2020/lib/_internal/enums/meeting-source.enum.mjs +20 -0
  5. package/esm2020/lib/_internal/enums/shared.enum.mjs +21 -0
  6. package/{esm2015/lib/_internal/enums/zoom.enum.js → esm2020/lib/_internal/enums/zoom.enum.mjs} +1 -1
  7. package/esm2020/lib/_internal/google-meet.api.service.mjs +41 -0
  8. package/esm2020/lib/_internal/index.mjs +15 -0
  9. package/esm2020/lib/_internal/interfaces/date-range.interface.mjs +8 -0
  10. package/esm2020/lib/_internal/interfaces/datetime.interface.mjs +8 -0
  11. package/esm2020/lib/_internal/interfaces/dayofweek.interface.mjs +8 -0
  12. package/esm2020/lib/_internal/interfaces/field-mask.interface.mjs +8 -0
  13. package/esm2020/lib/_internal/interfaces/google-meet.interface.mjs +8 -0
  14. package/esm2020/lib/_internal/interfaces/index.mjs +2 -0
  15. package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +2 -0
  16. package/esm2020/lib/_internal/interfaces/meeting-host.interface.mjs +2 -0
  17. package/esm2020/lib/_internal/interfaces/meeting-source.interface.mjs +8 -0
  18. package/esm2020/lib/_internal/interfaces/meeting-type.interface.mjs +8 -0
  19. package/esm2020/lib/_internal/interfaces/shared.interface.mjs +2 -0
  20. package/esm2020/lib/_internal/interfaces/timeofday.interface.mjs +8 -0
  21. package/esm2020/lib/_internal/interfaces/zoom.interface.mjs +8 -0
  22. package/esm2020/lib/_internal/meeting-guest.api.service.mjs +84 -0
  23. package/esm2020/lib/_internal/meeting-host.api.service.mjs +170 -0
  24. package/esm2020/lib/_internal/meeting-source-api.api.service.mjs +41 -0
  25. package/esm2020/lib/_internal/objects/date-range.mjs +36 -0
  26. package/esm2020/lib/_internal/objects/datetime.mjs +77 -0
  27. package/esm2020/lib/_internal/objects/dayofweek.mjs +7 -0
  28. package/esm2020/lib/_internal/objects/field-mask.mjs +27 -0
  29. package/esm2020/lib/_internal/objects/google-meet.mjs +539 -0
  30. package/esm2020/lib/_internal/objects/index.mjs +18 -0
  31. package/esm2020/lib/_internal/objects/meeting-guest.mjs +511 -0
  32. package/esm2020/lib/_internal/objects/meeting-host.mjs +1485 -0
  33. package/esm2020/lib/_internal/objects/meeting-source.mjs +121 -0
  34. package/esm2020/lib/_internal/objects/meeting-type.mjs +119 -0
  35. package/esm2020/lib/_internal/objects/shared.mjs +426 -0
  36. package/esm2020/lib/_internal/objects/timeofday.mjs +36 -0
  37. package/esm2020/lib/_internal/objects/zoom.mjs +377 -0
  38. package/esm2020/lib/_internal/zoom.api.service.mjs +41 -0
  39. package/esm2020/lib/guest/guest.service.mjs +86 -0
  40. package/esm2020/lib/guest/index.mjs +2 -0
  41. package/esm2020/lib/host/host.service.mjs +308 -0
  42. package/esm2020/lib/host/url.mjs +39 -0
  43. package/esm2020/lib/index.mjs +8 -0
  44. package/esm2020/lib/meetings.service.mjs +168 -0
  45. package/esm2020/lib/shared/availability.mjs +2 -0
  46. package/esm2020/lib/shared/calendar.mjs +29 -0
  47. package/esm2020/lib/shared/duration.mjs +41 -0
  48. package/esm2020/lib/shared/environment.mjs +17 -0
  49. package/esm2020/lib/shared/fieldmask.mjs +6 -0
  50. package/esm2020/lib/shared/host-id.mjs +20 -0
  51. package/esm2020/lib/shared/host-url-map.mjs +2 -0
  52. package/esm2020/lib/shared/host-user.mjs +8 -0
  53. package/esm2020/lib/shared/host.mjs +8 -0
  54. package/esm2020/lib/shared/index.mjs +14 -0
  55. package/esm2020/lib/shared/meeting-type.mjs +60 -0
  56. package/esm2020/lib/shared/meeting.mjs +89 -0
  57. package/esm2020/lib/shared/paged-response.mjs +8 -0
  58. package/esm2020/lib/shared/preferences.mjs +12 -0
  59. package/esm2020/lib/shared/time-span.mjs +7 -0
  60. package/esm2020/public_api.mjs +2 -0
  61. package/esm2020/vendasta-meetings.mjs +5 -0
  62. package/fesm2015/{vendasta-meetings.js → vendasta-meetings.mjs} +1118 -1150
  63. package/fesm2015/vendasta-meetings.mjs.map +1 -0
  64. package/fesm2020/vendasta-meetings.mjs +5086 -0
  65. package/fesm2020/vendasta-meetings.mjs.map +1 -0
  66. package/{vendasta-meetings.d.ts → index.d.ts} +1 -0
  67. package/lib/_generated/host.service.d.ts +5 -9
  68. package/lib/_internal/google-meet.api.service.d.ts +4 -0
  69. package/lib/_internal/meeting-guest.api.service.d.ts +4 -0
  70. package/lib/_internal/meeting-host.api.service.d.ts +4 -0
  71. package/lib/_internal/meeting-source-api.api.service.d.ts +4 -0
  72. package/lib/_internal/zoom.api.service.d.ts +4 -0
  73. package/lib/guest/guest.service.d.ts +4 -3
  74. package/lib/host/host.service.d.ts +4 -3
  75. package/lib/host/url.d.ts +1 -1
  76. package/lib/meetings.service.d.ts +3 -0
  77. package/lib/shared/calendar.d.ts +1 -1
  78. package/lib/shared/environment.d.ts +8 -0
  79. package/lib/shared/host-id.d.ts +1 -1
  80. package/lib/shared/host-user.d.ts +1 -1
  81. package/lib/shared/meeting-type.d.ts +3 -3
  82. package/lib/shared/meeting.d.ts +2 -2
  83. package/package.json +27 -16
  84. package/bundles/vendasta-meetings.umd.js +0 -5517
  85. package/bundles/vendasta-meetings.umd.js.map +0 -1
  86. package/bundles/vendasta-meetings.umd.min.js +0 -16
  87. package/bundles/vendasta-meetings.umd.min.js.map +0 -1
  88. package/esm2015/lib/_generated/host.service.js +0 -65
  89. package/esm2015/lib/_internal/enums/dayofweek.enum.js +0 -18
  90. package/esm2015/lib/_internal/enums/index.js +0 -11
  91. package/esm2015/lib/_internal/enums/meeting-source.enum.js +0 -20
  92. package/esm2015/lib/_internal/enums/shared.enum.js +0 -21
  93. package/esm2015/lib/_internal/google-meet.api.service.js +0 -42
  94. package/esm2015/lib/_internal/index.js +0 -15
  95. package/esm2015/lib/_internal/interfaces/date-range.interface.js +0 -8
  96. package/esm2015/lib/_internal/interfaces/datetime.interface.js +0 -8
  97. package/esm2015/lib/_internal/interfaces/dayofweek.interface.js +0 -8
  98. package/esm2015/lib/_internal/interfaces/field-mask.interface.js +0 -8
  99. package/esm2015/lib/_internal/interfaces/google-meet.interface.js +0 -8
  100. package/esm2015/lib/_internal/interfaces/index.js +0 -2
  101. package/esm2015/lib/_internal/interfaces/meeting-guest.interface.js +0 -2
  102. package/esm2015/lib/_internal/interfaces/meeting-host.interface.js +0 -2
  103. package/esm2015/lib/_internal/interfaces/meeting-source.interface.js +0 -8
  104. package/esm2015/lib/_internal/interfaces/meeting-type.interface.js +0 -8
  105. package/esm2015/lib/_internal/interfaces/shared.interface.js +0 -2
  106. package/esm2015/lib/_internal/interfaces/timeofday.interface.js +0 -8
  107. package/esm2015/lib/_internal/interfaces/zoom.interface.js +0 -8
  108. package/esm2015/lib/_internal/meeting-guest.api.service.js +0 -85
  109. package/esm2015/lib/_internal/meeting-host.api.service.js +0 -171
  110. package/esm2015/lib/_internal/meeting-source-api.api.service.js +0 -42
  111. package/esm2015/lib/_internal/objects/date-range.js +0 -36
  112. package/esm2015/lib/_internal/objects/datetime.js +0 -77
  113. package/esm2015/lib/_internal/objects/dayofweek.js +0 -7
  114. package/esm2015/lib/_internal/objects/field-mask.js +0 -27
  115. package/esm2015/lib/_internal/objects/google-meet.js +0 -539
  116. package/esm2015/lib/_internal/objects/index.js +0 -18
  117. package/esm2015/lib/_internal/objects/meeting-guest.js +0 -511
  118. package/esm2015/lib/_internal/objects/meeting-host.js +0 -1485
  119. package/esm2015/lib/_internal/objects/meeting-source.js +0 -121
  120. package/esm2015/lib/_internal/objects/meeting-type.js +0 -119
  121. package/esm2015/lib/_internal/objects/shared.js +0 -426
  122. package/esm2015/lib/_internal/objects/timeofday.js +0 -36
  123. package/esm2015/lib/_internal/objects/zoom.js +0 -377
  124. package/esm2015/lib/_internal/zoom.api.service.js +0 -42
  125. package/esm2015/lib/guest/guest.service.js +0 -86
  126. package/esm2015/lib/guest/index.js +0 -2
  127. package/esm2015/lib/host/host.service.js +0 -287
  128. package/esm2015/lib/host/url.js +0 -39
  129. package/esm2015/lib/index.js +0 -8
  130. package/esm2015/lib/meetings.service.js +0 -170
  131. package/esm2015/lib/shared/availability.js +0 -2
  132. package/esm2015/lib/shared/calendar.js +0 -29
  133. package/esm2015/lib/shared/duration.js +0 -41
  134. package/esm2015/lib/shared/fieldmask.js +0 -6
  135. package/esm2015/lib/shared/host-id.js +0 -20
  136. package/esm2015/lib/shared/host-url-map.js +0 -2
  137. package/esm2015/lib/shared/host-user.js +0 -8
  138. package/esm2015/lib/shared/host.js +0 -8
  139. package/esm2015/lib/shared/index.js +0 -14
  140. package/esm2015/lib/shared/meeting-type.js +0 -52
  141. package/esm2015/lib/shared/meeting.js +0 -89
  142. package/esm2015/lib/shared/paged-response.js +0 -8
  143. package/esm2015/lib/shared/preferences.js +0 -12
  144. package/esm2015/lib/shared/time-span.js +0 -7
  145. package/esm2015/public_api.js +0 -2
  146. package/esm2015/vendasta-meetings.js +0 -5
  147. package/fesm2015/vendasta-meetings.js.map +0 -1
  148. package/vendasta-meetings.metadata.json +0 -1
@@ -1,8 +1,9 @@
1
- import { ɵɵdefineInjectable, ɵɵinject, Injectable, Inject } from '@angular/core';
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable } from '@angular/core';
2
3
  import { throwError, of } from 'rxjs';
3
- import { map, share, mapTo } from 'rxjs/operators';
4
- import { HttpHeaders, HttpClient } from '@angular/common/http';
5
- import { Environment, EnvironmentService, EnvironmentServiceInterfaceToken } from '@vendasta/core';
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,144 +133,18 @@ var DayOfWeek;
132
133
 
133
134
  // *********************************
134
135
 
135
- function enumStringToValue(enumRef, value) {
136
- if (typeof value === 'number') {
137
- return value;
138
- }
139
- return enumRef[value];
140
- }
141
- class MeetingSourceInfo {
142
- constructor(kwargs) {
143
- if (!kwargs) {
144
- return;
145
- }
146
- Object.assign(this, kwargs);
147
- }
148
- static fromProto(proto) {
149
- let m = new MeetingSourceInfo();
150
- m = Object.assign(m, proto);
151
- if (proto.source) {
152
- m.source = enumStringToValue(MeetingSource, proto.source);
153
- }
154
- if (proto.status) {
155
- m.status = enumStringToValue(MeetingSourceStatus, proto.status);
156
- }
157
- return m;
158
- }
159
- toApiJson() {
160
- const toReturn = {};
161
- if (typeof this.source !== 'undefined') {
162
- toReturn['source'] = this.source;
163
- }
164
- if (typeof this.status !== 'undefined') {
165
- toReturn['status'] = this.status;
166
- }
167
- if (typeof this.connectDisconnectUrl !== 'undefined') {
168
- toReturn['connectDisconnectUrl'] = this.connectDisconnectUrl;
169
- }
170
- return toReturn;
171
- }
172
- }
173
- class MeetingSourceListRequest {
174
- constructor(kwargs) {
175
- if (!kwargs) {
176
- return;
177
- }
178
- Object.assign(this, kwargs);
179
- }
180
- static fromProto(proto) {
181
- let m = new MeetingSourceListRequest();
182
- m = Object.assign(m, proto);
183
- if (proto.queriedSources) {
184
- m.queriedSources = proto.queriedSources.map(MeetingSourceQuery.fromProto);
185
- }
186
- return m;
187
- }
188
- toApiJson() {
189
- const toReturn = {};
190
- if (typeof this.iamUserId !== 'undefined') {
191
- toReturn['iamUserId'] = this.iamUserId;
192
- }
193
- if (typeof this.queriedSources !== 'undefined' && this.queriedSources !== null) {
194
- toReturn['queriedSources'] = 'toApiJson' in this.queriedSources ? this.queriedSources.toApiJson() : this.queriedSources;
195
- }
196
- return toReturn;
197
- }
198
- }
199
- class MeetingSourceListResponse {
200
- constructor(kwargs) {
201
- if (!kwargs) {
202
- return;
203
- }
204
- Object.assign(this, kwargs);
205
- }
206
- static fromProto(proto) {
207
- let m = new MeetingSourceListResponse();
208
- m = Object.assign(m, proto);
209
- if (proto.sourceInfo) {
210
- m.sourceInfo = proto.sourceInfo.map(MeetingSourceInfo.fromProto);
211
- }
212
- return m;
213
- }
214
- toApiJson() {
215
- const toReturn = {};
216
- if (typeof this.iamUserId !== 'undefined') {
217
- toReturn['iamUserId'] = this.iamUserId;
218
- }
219
- if (typeof this.sourceInfo !== 'undefined' && this.sourceInfo !== null) {
220
- toReturn['sourceInfo'] = 'toApiJson' in this.sourceInfo ? this.sourceInfo.toApiJson() : this.sourceInfo;
221
- }
222
- return toReturn;
223
- }
224
- }
225
- class MeetingSourceQuery {
226
- constructor(kwargs) {
227
- if (!kwargs) {
228
- return;
229
- }
230
- Object.assign(this, kwargs);
231
- }
232
- static fromProto(proto) {
233
- let m = new MeetingSourceQuery();
234
- m = Object.assign(m, proto);
235
- if (proto.source) {
236
- m.source = enumStringToValue(MeetingSource, proto.source);
237
- }
238
- return m;
239
- }
240
- toApiJson() {
241
- const toReturn = {};
242
- if (typeof this.source !== 'undefined') {
243
- toReturn['source'] = this.source;
244
- }
245
- if (typeof this.connectNextUrl !== 'undefined') {
246
- toReturn['connectNextUrl'] = this.connectNextUrl;
247
- }
248
- if (typeof this.disconnectNextUrl !== 'undefined') {
249
- toReturn['disconnectNextUrl'] = this.disconnectNextUrl;
250
- }
251
- return toReturn;
252
- }
253
- }
254
-
255
- function enumStringToValue$1(enumRef, value) {
136
+ function enumStringToValue$a(enumRef, value) {
256
137
  if (typeof value === 'number') {
257
138
  return value;
258
139
  }
259
140
  return enumRef[value];
260
141
  }
261
142
  class CreateZoomMeetingRequest {
262
- constructor(kwargs) {
263
- if (!kwargs) {
264
- return;
265
- }
266
- Object.assign(this, kwargs);
267
- }
268
143
  static fromProto(proto) {
269
144
  let m = new CreateZoomMeetingRequest();
270
145
  m = Object.assign(m, proto);
271
146
  if (proto.type) {
272
- m.type = enumStringToValue$1(ZoomMeetingType, proto.type);
147
+ m.type = enumStringToValue$a(ZoomMeetingType, proto.type);
273
148
  }
274
149
  if (proto.duration) {
275
150
  m.duration = parseInt(proto.duration, 10);
@@ -285,6 +160,12 @@ class CreateZoomMeetingRequest {
285
160
  }
286
161
  return m;
287
162
  }
163
+ constructor(kwargs) {
164
+ if (!kwargs) {
165
+ return;
166
+ }
167
+ Object.assign(this, kwargs);
168
+ }
288
169
  toApiJson() {
289
170
  const toReturn = {};
290
171
  if (typeof this.iamUserId !== 'undefined') {
@@ -324,12 +205,6 @@ class CreateZoomMeetingRequest {
324
205
  }
325
206
  }
326
207
  class CreateZoomMeetingResponse {
327
- constructor(kwargs) {
328
- if (!kwargs) {
329
- return;
330
- }
331
- Object.assign(this, kwargs);
332
- }
333
208
  static fromProto(proto) {
334
209
  let m = new CreateZoomMeetingResponse();
335
210
  m = Object.assign(m, proto);
@@ -337,7 +212,7 @@ class CreateZoomMeetingResponse {
337
212
  m.meetingId = parseInt(proto.meetingId, 10);
338
213
  }
339
214
  if (proto.type) {
340
- m.type = enumStringToValue$1(ZoomMeetingType, proto.type);
215
+ m.type = enumStringToValue$a(ZoomMeetingType, proto.type);
341
216
  }
342
217
  if (proto.duration) {
343
218
  m.duration = parseInt(proto.duration, 10);
@@ -359,6 +234,12 @@ class CreateZoomMeetingResponse {
359
234
  }
360
235
  return m;
361
236
  }
237
+ constructor(kwargs) {
238
+ if (!kwargs) {
239
+ return;
240
+ }
241
+ Object.assign(this, kwargs);
242
+ }
362
243
  toApiJson() {
363
244
  const toReturn = {};
364
245
  if (typeof this.iamUserId !== 'undefined') {
@@ -419,17 +300,11 @@ class CreateZoomMeetingResponse {
419
300
  }
420
301
  }
421
302
  class ZoomMeetingRecurrence {
422
- constructor(kwargs) {
423
- if (!kwargs) {
424
- return;
425
- }
426
- Object.assign(this, kwargs);
427
- }
428
303
  static fromProto(proto) {
429
304
  let m = new ZoomMeetingRecurrence();
430
305
  m = Object.assign(m, proto);
431
306
  if (proto.type) {
432
- m.type = enumStringToValue$1(ZoomMeetingRecurrenceType, proto.type);
307
+ m.type = enumStringToValue$a(ZoomMeetingRecurrenceType, proto.type);
433
308
  }
434
309
  if (proto.repeatInterval) {
435
310
  m.repeatInterval = parseInt(proto.repeatInterval, 10);
@@ -438,16 +313,22 @@ class ZoomMeetingRecurrence {
438
313
  m.monthlyDay = parseInt(proto.monthlyDay, 10);
439
314
  }
440
315
  if (proto.monthlyWeek) {
441
- m.monthlyWeek = enumStringToValue$1(ZoomMonthlyWeek, proto.monthlyWeek);
316
+ m.monthlyWeek = enumStringToValue$a(ZoomMonthlyWeek, proto.monthlyWeek);
442
317
  }
443
318
  if (proto.monthlyWeekDay) {
444
- m.monthlyWeekDay = enumStringToValue$1(ZoomMonthlyWeekDay, proto.monthlyWeekDay);
319
+ m.monthlyWeekDay = enumStringToValue$a(ZoomMonthlyWeekDay, proto.monthlyWeekDay);
445
320
  }
446
321
  if (proto.endTimes) {
447
322
  m.endTimes = parseInt(proto.endTimes, 10);
448
323
  }
449
324
  return m;
450
325
  }
326
+ constructor(kwargs) {
327
+ if (!kwargs) {
328
+ return;
329
+ }
330
+ Object.assign(this, kwargs);
331
+ }
451
332
  toApiJson() {
452
333
  const toReturn = {};
453
334
  if (typeof this.type !== 'undefined') {
@@ -478,23 +359,23 @@ class ZoomMeetingRecurrence {
478
359
  }
479
360
  }
480
361
  class ZoomMeetingSettings {
481
- constructor(kwargs) {
482
- if (!kwargs) {
483
- return;
484
- }
485
- Object.assign(this, kwargs);
486
- }
487
362
  static fromProto(proto) {
488
363
  let m = new ZoomMeetingSettings();
489
364
  m = Object.assign(m, proto);
490
365
  if (proto.approvalType) {
491
- m.approvalType = enumStringToValue$1(ZoomApprovalType, proto.approvalType);
366
+ m.approvalType = enumStringToValue$a(ZoomApprovalType, proto.approvalType);
492
367
  }
493
368
  if (proto.registrationType) {
494
- m.registrationType = enumStringToValue$1(ZoomRegistrationType, proto.registrationType);
369
+ m.registrationType = enumStringToValue$a(ZoomRegistrationType, proto.registrationType);
495
370
  }
496
371
  return m;
497
372
  }
373
+ constructor(kwargs) {
374
+ if (!kwargs) {
375
+ return;
376
+ }
377
+ Object.assign(this, kwargs);
378
+ }
498
379
  toApiJson() {
499
380
  const toReturn = {};
500
381
  if (typeof this.hostVideo !== 'undefined') {
@@ -573,17 +454,17 @@ class ZoomMeetingSettings {
573
454
  }
574
455
  }
575
456
  class ZoomMeetingTrackingField {
457
+ static fromProto(proto) {
458
+ let m = new ZoomMeetingTrackingField();
459
+ m = Object.assign(m, proto);
460
+ return m;
461
+ }
576
462
  constructor(kwargs) {
577
463
  if (!kwargs) {
578
464
  return;
579
465
  }
580
466
  Object.assign(this, kwargs);
581
467
  }
582
- static fromProto(proto) {
583
- let m = new ZoomMeetingTrackingField();
584
- m = Object.assign(m, proto);
585
- return m;
586
- }
587
468
  toApiJson() {
588
469
  const toReturn = {};
589
470
  if (typeof this.field !== 'undefined') {
@@ -596,12 +477,6 @@ class ZoomMeetingTrackingField {
596
477
  }
597
478
  }
598
479
  class ZoomOccurrence {
599
- constructor(kwargs) {
600
- if (!kwargs) {
601
- return;
602
- }
603
- Object.assign(this, kwargs);
604
- }
605
480
  static fromProto(proto) {
606
481
  let m = new ZoomOccurrence();
607
482
  m = Object.assign(m, proto);
@@ -610,6 +485,12 @@ class ZoomOccurrence {
610
485
  }
611
486
  return m;
612
487
  }
488
+ constructor(kwargs) {
489
+ if (!kwargs) {
490
+ return;
491
+ }
492
+ Object.assign(this, kwargs);
493
+ }
613
494
  toApiJson() {
614
495
  const toReturn = {};
615
496
  if (typeof this.occurrenceId !== 'undefined') {
@@ -628,19 +509,13 @@ class ZoomOccurrence {
628
509
  }
629
510
  }
630
511
 
631
- function enumStringToValue$2(enumRef, value) {
512
+ function enumStringToValue$9(enumRef, value) {
632
513
  if (typeof value === 'number') {
633
514
  return value;
634
515
  }
635
516
  return enumRef[value];
636
517
  }
637
518
  class GoogleMeetConferenceData {
638
- constructor(kwargs) {
639
- if (!kwargs) {
640
- return;
641
- }
642
- Object.assign(this, kwargs);
643
- }
644
519
  static fromProto(proto) {
645
520
  let m = new GoogleMeetConferenceData();
646
521
  m = Object.assign(m, proto);
@@ -655,6 +530,12 @@ class GoogleMeetConferenceData {
655
530
  }
656
531
  return m;
657
532
  }
533
+ constructor(kwargs) {
534
+ if (!kwargs) {
535
+ return;
536
+ }
537
+ Object.assign(this, kwargs);
538
+ }
658
539
  toApiJson() {
659
540
  const toReturn = {};
660
541
  if (typeof this.conferenceId !== 'undefined') {
@@ -679,17 +560,17 @@ class GoogleMeetConferenceData {
679
560
  }
680
561
  }
681
562
  class GoogleMeetConferenceRequestStatus {
563
+ static fromProto(proto) {
564
+ let m = new GoogleMeetConferenceRequestStatus();
565
+ m = Object.assign(m, proto);
566
+ return m;
567
+ }
682
568
  constructor(kwargs) {
683
569
  if (!kwargs) {
684
570
  return;
685
571
  }
686
572
  Object.assign(this, kwargs);
687
573
  }
688
- static fromProto(proto) {
689
- let m = new GoogleMeetConferenceRequestStatus();
690
- m = Object.assign(m, proto);
691
- return m;
692
- }
693
574
  toApiJson() {
694
575
  const toReturn = {};
695
576
  if (typeof this.statusCode !== 'undefined') {
@@ -699,12 +580,6 @@ class GoogleMeetConferenceRequestStatus {
699
580
  }
700
581
  }
701
582
  class GoogleMeetConferenceSolution {
702
- constructor(kwargs) {
703
- if (!kwargs) {
704
- return;
705
- }
706
- Object.assign(this, kwargs);
707
- }
708
583
  static fromProto(proto) {
709
584
  let m = new GoogleMeetConferenceSolution();
710
585
  m = Object.assign(m, proto);
@@ -713,6 +588,12 @@ class GoogleMeetConferenceSolution {
713
588
  }
714
589
  return m;
715
590
  }
591
+ constructor(kwargs) {
592
+ if (!kwargs) {
593
+ return;
594
+ }
595
+ Object.assign(this, kwargs);
596
+ }
716
597
  toApiJson() {
717
598
  const toReturn = {};
718
599
  if (typeof this.iconUri !== 'undefined') {
@@ -728,17 +609,17 @@ class GoogleMeetConferenceSolution {
728
609
  }
729
610
  }
730
611
  class GoogleMeetConferenceSolutionKey {
612
+ static fromProto(proto) {
613
+ let m = new GoogleMeetConferenceSolutionKey();
614
+ m = Object.assign(m, proto);
615
+ return m;
616
+ }
731
617
  constructor(kwargs) {
732
618
  if (!kwargs) {
733
619
  return;
734
620
  }
735
621
  Object.assign(this, kwargs);
736
622
  }
737
- static fromProto(proto) {
738
- let m = new GoogleMeetConferenceSolutionKey();
739
- m = Object.assign(m, proto);
740
- return m;
741
- }
742
623
  toApiJson() {
743
624
  const toReturn = {};
744
625
  if (typeof this.type !== 'undefined') {
@@ -748,12 +629,6 @@ class GoogleMeetConferenceSolutionKey {
748
629
  }
749
630
  }
750
631
  class GoogleMeetCreateConferenceRequest {
751
- constructor(kwargs) {
752
- if (!kwargs) {
753
- return;
754
- }
755
- Object.assign(this, kwargs);
756
- }
757
632
  static fromProto(proto) {
758
633
  let m = new GoogleMeetCreateConferenceRequest();
759
634
  m = Object.assign(m, proto);
@@ -765,6 +640,12 @@ class GoogleMeetCreateConferenceRequest {
765
640
  }
766
641
  return m;
767
642
  }
643
+ constructor(kwargs) {
644
+ if (!kwargs) {
645
+ return;
646
+ }
647
+ Object.assign(this, kwargs);
648
+ }
768
649
  toApiJson() {
769
650
  const toReturn = {};
770
651
  if (typeof this.conferenceSolutionKey !== 'undefined' && this.conferenceSolutionKey !== null) {
@@ -780,12 +661,6 @@ class GoogleMeetCreateConferenceRequest {
780
661
  }
781
662
  }
782
663
  class GoogleMeetCreateMeetingRequest {
783
- constructor(kwargs) {
784
- if (!kwargs) {
785
- return;
786
- }
787
- Object.assign(this, kwargs);
788
- }
789
664
  static fromProto(proto) {
790
665
  let m = new GoogleMeetCreateMeetingRequest();
791
666
  m = Object.assign(m, proto);
@@ -794,9 +669,15 @@ class GoogleMeetCreateMeetingRequest {
794
669
  }
795
670
  return m;
796
671
  }
797
- toApiJson() {
798
- const toReturn = {};
799
- if (typeof this.calenderId !== 'undefined') {
672
+ constructor(kwargs) {
673
+ if (!kwargs) {
674
+ return;
675
+ }
676
+ Object.assign(this, kwargs);
677
+ }
678
+ toApiJson() {
679
+ const toReturn = {};
680
+ if (typeof this.calenderId !== 'undefined') {
800
681
  toReturn['calenderId'] = this.calenderId;
801
682
  }
802
683
  if (typeof this.meeting !== 'undefined' && this.meeting !== null) {
@@ -806,12 +687,6 @@ class GoogleMeetCreateMeetingRequest {
806
687
  }
807
688
  }
808
689
  class GoogleMeetCreateMeetingResponse {
809
- constructor(kwargs) {
810
- if (!kwargs) {
811
- return;
812
- }
813
- Object.assign(this, kwargs);
814
- }
815
690
  static fromProto(proto) {
816
691
  let m = new GoogleMeetCreateMeetingResponse();
817
692
  m = Object.assign(m, proto);
@@ -820,6 +695,12 @@ class GoogleMeetCreateMeetingResponse {
820
695
  }
821
696
  return m;
822
697
  }
698
+ constructor(kwargs) {
699
+ if (!kwargs) {
700
+ return;
701
+ }
702
+ Object.assign(this, kwargs);
703
+ }
823
704
  toApiJson() {
824
705
  const toReturn = {};
825
706
  if (typeof this.iamUserId !== 'undefined') {
@@ -835,17 +716,17 @@ class GoogleMeetCreateMeetingResponse {
835
716
  }
836
717
  }
837
718
  class GoogleMeetEntryPoint {
719
+ static fromProto(proto) {
720
+ let m = new GoogleMeetEntryPoint();
721
+ m = Object.assign(m, proto);
722
+ return m;
723
+ }
838
724
  constructor(kwargs) {
839
725
  if (!kwargs) {
840
726
  return;
841
727
  }
842
728
  Object.assign(this, kwargs);
843
729
  }
844
- static fromProto(proto) {
845
- let m = new GoogleMeetEntryPoint();
846
- m = Object.assign(m, proto);
847
- return m;
848
- }
849
730
  toApiJson() {
850
731
  const toReturn = {};
851
732
  if (typeof this.accessCode !== 'undefined') {
@@ -882,12 +763,6 @@ class GoogleMeetEntryPoint {
882
763
  }
883
764
  }
884
765
  class GoogleMeetMeeting {
885
- constructor(kwargs) {
886
- if (!kwargs) {
887
- return;
888
- }
889
- Object.assign(this, kwargs);
890
- }
891
766
  static fromProto(proto) {
892
767
  let m = new GoogleMeetMeeting();
893
768
  m = Object.assign(m, proto);
@@ -917,6 +792,12 @@ class GoogleMeetMeeting {
917
792
  }
918
793
  return m;
919
794
  }
795
+ constructor(kwargs) {
796
+ if (!kwargs) {
797
+ return;
798
+ }
799
+ Object.assign(this, kwargs);
800
+ }
920
801
  toApiJson() {
921
802
  const toReturn = {};
922
803
  if (typeof this.anyoneCanAddSelf !== 'undefined') {
@@ -1010,12 +891,6 @@ class GoogleMeetMeeting {
1010
891
  }
1011
892
  }
1012
893
  class GoogleMeetMeetingAttendee {
1013
- constructor(kwargs) {
1014
- if (!kwargs) {
1015
- return;
1016
- }
1017
- Object.assign(this, kwargs);
1018
- }
1019
894
  static fromProto(proto) {
1020
895
  let m = new GoogleMeetMeetingAttendee();
1021
896
  m = Object.assign(m, proto);
@@ -1024,6 +899,12 @@ class GoogleMeetMeetingAttendee {
1024
899
  }
1025
900
  return m;
1026
901
  }
902
+ constructor(kwargs) {
903
+ if (!kwargs) {
904
+ return;
905
+ }
906
+ Object.assign(this, kwargs);
907
+ }
1027
908
  toApiJson() {
1028
909
  const toReturn = {};
1029
910
  if (typeof this.additionalGuests !== 'undefined') {
@@ -1060,17 +941,17 @@ class GoogleMeetMeetingAttendee {
1060
941
  }
1061
942
  }
1062
943
  class GoogleMeetMeetingCreator {
944
+ static fromProto(proto) {
945
+ let m = new GoogleMeetMeetingCreator();
946
+ m = Object.assign(m, proto);
947
+ return m;
948
+ }
1063
949
  constructor(kwargs) {
1064
950
  if (!kwargs) {
1065
951
  return;
1066
952
  }
1067
953
  Object.assign(this, kwargs);
1068
954
  }
1069
- static fromProto(proto) {
1070
- let m = new GoogleMeetMeetingCreator();
1071
- m = Object.assign(m, proto);
1072
- return m;
1073
- }
1074
955
  toApiJson() {
1075
956
  const toReturn = {};
1076
957
  if (typeof this.displayName !== 'undefined') {
@@ -1089,17 +970,17 @@ class GoogleMeetMeetingCreator {
1089
970
  }
1090
971
  }
1091
972
  class GoogleMeetMeetingDateTime {
973
+ static fromProto(proto) {
974
+ let m = new GoogleMeetMeetingDateTime();
975
+ m = Object.assign(m, proto);
976
+ return m;
977
+ }
1092
978
  constructor(kwargs) {
1093
979
  if (!kwargs) {
1094
980
  return;
1095
981
  }
1096
982
  Object.assign(this, kwargs);
1097
983
  }
1098
- static fromProto(proto) {
1099
- let m = new GoogleMeetMeetingDateTime();
1100
- m = Object.assign(m, proto);
1101
- return m;
1102
- }
1103
984
  toApiJson() {
1104
985
  const toReturn = {};
1105
986
  if (typeof this.date !== 'undefined') {
@@ -1115,12 +996,6 @@ class GoogleMeetMeetingDateTime {
1115
996
  }
1116
997
  }
1117
998
  class GoogleMeetMeetingReminder {
1118
- constructor(kwargs) {
1119
- if (!kwargs) {
1120
- return;
1121
- }
1122
- Object.assign(this, kwargs);
1123
- }
1124
999
  static fromProto(proto) {
1125
1000
  let m = new GoogleMeetMeetingReminder();
1126
1001
  m = Object.assign(m, proto);
@@ -1129,6 +1004,12 @@ class GoogleMeetMeetingReminder {
1129
1004
  }
1130
1005
  return m;
1131
1006
  }
1007
+ constructor(kwargs) {
1008
+ if (!kwargs) {
1009
+ return;
1010
+ }
1011
+ Object.assign(this, kwargs);
1012
+ }
1132
1013
  toApiJson() {
1133
1014
  const toReturn = {};
1134
1015
  if (typeof this.method !== 'undefined') {
@@ -1141,12 +1022,6 @@ class GoogleMeetMeetingReminder {
1141
1022
  }
1142
1023
  }
1143
1024
  class GoogleMeetMeetingReminders {
1144
- constructor(kwargs) {
1145
- if (!kwargs) {
1146
- return;
1147
- }
1148
- Object.assign(this, kwargs);
1149
- }
1150
1025
  static fromProto(proto) {
1151
1026
  let m = new GoogleMeetMeetingReminders();
1152
1027
  m = Object.assign(m, proto);
@@ -1155,6 +1030,12 @@ class GoogleMeetMeetingReminders {
1155
1030
  }
1156
1031
  return m;
1157
1032
  }
1033
+ constructor(kwargs) {
1034
+ if (!kwargs) {
1035
+ return;
1036
+ }
1037
+ Object.assign(this, kwargs);
1038
+ }
1158
1039
  toApiJson() {
1159
1040
  const toReturn = {};
1160
1041
  if (typeof this.overrides !== 'undefined' && this.overrides !== null) {
@@ -1167,24 +1048,144 @@ class GoogleMeetMeetingReminders {
1167
1048
  }
1168
1049
  }
1169
1050
 
1170
- function enumStringToValue$3(enumRef, value) {
1051
+ function enumStringToValue$8(enumRef, value) {
1171
1052
  if (typeof value === 'number') {
1172
1053
  return value;
1173
1054
  }
1174
1055
  return enumRef[value];
1175
1056
  }
1176
- class TimeOfDay {
1057
+ class MeetingSourceInfo {
1058
+ static fromProto(proto) {
1059
+ let m = new MeetingSourceInfo();
1060
+ m = Object.assign(m, proto);
1061
+ if (proto.source) {
1062
+ m.source = enumStringToValue$8(MeetingSource, proto.source);
1063
+ }
1064
+ if (proto.status) {
1065
+ m.status = enumStringToValue$8(MeetingSourceStatus, proto.status);
1066
+ }
1067
+ return m;
1068
+ }
1069
+ constructor(kwargs) {
1070
+ if (!kwargs) {
1071
+ return;
1072
+ }
1073
+ Object.assign(this, kwargs);
1074
+ }
1075
+ toApiJson() {
1076
+ const toReturn = {};
1077
+ if (typeof this.source !== 'undefined') {
1078
+ toReturn['source'] = this.source;
1079
+ }
1080
+ if (typeof this.status !== 'undefined') {
1081
+ toReturn['status'] = this.status;
1082
+ }
1083
+ if (typeof this.connectDisconnectUrl !== 'undefined') {
1084
+ toReturn['connectDisconnectUrl'] = this.connectDisconnectUrl;
1085
+ }
1086
+ return toReturn;
1087
+ }
1088
+ }
1089
+ class MeetingSourceListRequest {
1090
+ static fromProto(proto) {
1091
+ let m = new MeetingSourceListRequest();
1092
+ m = Object.assign(m, proto);
1093
+ if (proto.queriedSources) {
1094
+ m.queriedSources = proto.queriedSources.map(MeetingSourceQuery.fromProto);
1095
+ }
1096
+ return m;
1097
+ }
1098
+ constructor(kwargs) {
1099
+ if (!kwargs) {
1100
+ return;
1101
+ }
1102
+ Object.assign(this, kwargs);
1103
+ }
1104
+ toApiJson() {
1105
+ const toReturn = {};
1106
+ if (typeof this.iamUserId !== 'undefined') {
1107
+ toReturn['iamUserId'] = this.iamUserId;
1108
+ }
1109
+ if (typeof this.queriedSources !== 'undefined' && this.queriedSources !== null) {
1110
+ toReturn['queriedSources'] = 'toApiJson' in this.queriedSources ? this.queriedSources.toApiJson() : this.queriedSources;
1111
+ }
1112
+ return toReturn;
1113
+ }
1114
+ }
1115
+ class MeetingSourceListResponse {
1116
+ static fromProto(proto) {
1117
+ let m = new MeetingSourceListResponse();
1118
+ m = Object.assign(m, proto);
1119
+ if (proto.sourceInfo) {
1120
+ m.sourceInfo = proto.sourceInfo.map(MeetingSourceInfo.fromProto);
1121
+ }
1122
+ return m;
1123
+ }
1124
+ constructor(kwargs) {
1125
+ if (!kwargs) {
1126
+ return;
1127
+ }
1128
+ Object.assign(this, kwargs);
1129
+ }
1130
+ toApiJson() {
1131
+ const toReturn = {};
1132
+ if (typeof this.iamUserId !== 'undefined') {
1133
+ toReturn['iamUserId'] = this.iamUserId;
1134
+ }
1135
+ if (typeof this.sourceInfo !== 'undefined' && this.sourceInfo !== null) {
1136
+ toReturn['sourceInfo'] = 'toApiJson' in this.sourceInfo ? this.sourceInfo.toApiJson() : this.sourceInfo;
1137
+ }
1138
+ return toReturn;
1139
+ }
1140
+ }
1141
+ class MeetingSourceQuery {
1142
+ static fromProto(proto) {
1143
+ let m = new MeetingSourceQuery();
1144
+ m = Object.assign(m, proto);
1145
+ if (proto.source) {
1146
+ m.source = enumStringToValue$8(MeetingSource, proto.source);
1147
+ }
1148
+ return m;
1149
+ }
1177
1150
  constructor(kwargs) {
1178
1151
  if (!kwargs) {
1179
1152
  return;
1180
1153
  }
1181
1154
  Object.assign(this, kwargs);
1182
1155
  }
1156
+ toApiJson() {
1157
+ const toReturn = {};
1158
+ if (typeof this.source !== 'undefined') {
1159
+ toReturn['source'] = this.source;
1160
+ }
1161
+ if (typeof this.connectNextUrl !== 'undefined') {
1162
+ toReturn['connectNextUrl'] = this.connectNextUrl;
1163
+ }
1164
+ if (typeof this.disconnectNextUrl !== 'undefined') {
1165
+ toReturn['disconnectNextUrl'] = this.disconnectNextUrl;
1166
+ }
1167
+ return toReturn;
1168
+ }
1169
+ }
1170
+
1171
+ function enumStringToValue$7(enumRef, value) {
1172
+ if (typeof value === 'number') {
1173
+ return value;
1174
+ }
1175
+ return enumRef[value];
1176
+ }
1177
+ class TimeOfDay {
1183
1178
  static fromProto(proto) {
1184
1179
  let m = new TimeOfDay();
1185
1180
  m = Object.assign(m, proto);
1186
1181
  return m;
1187
1182
  }
1183
+ constructor(kwargs) {
1184
+ if (!kwargs) {
1185
+ return;
1186
+ }
1187
+ Object.assign(this, kwargs);
1188
+ }
1188
1189
  toApiJson() {
1189
1190
  const toReturn = {};
1190
1191
  if (typeof this.hours !== 'undefined') {
@@ -1203,19 +1204,13 @@ class TimeOfDay {
1203
1204
  }
1204
1205
  }
1205
1206
 
1206
- function enumStringToValue$4(enumRef, value) {
1207
+ function enumStringToValue$6(enumRef, value) {
1207
1208
  if (typeof value === 'number') {
1208
1209
  return value;
1209
1210
  }
1210
1211
  return enumRef[value];
1211
1212
  }
1212
1213
  class DateTime {
1213
- constructor(kwargs) {
1214
- if (!kwargs) {
1215
- return;
1216
- }
1217
- Object.assign(this, kwargs);
1218
- }
1219
1214
  static fromProto(proto) {
1220
1215
  let m = new DateTime();
1221
1216
  m = Object.assign(m, proto);
@@ -1224,6 +1219,12 @@ class DateTime {
1224
1219
  }
1225
1220
  return m;
1226
1221
  }
1222
+ constructor(kwargs) {
1223
+ if (!kwargs) {
1224
+ return;
1225
+ }
1226
+ Object.assign(this, kwargs);
1227
+ }
1227
1228
  toApiJson() {
1228
1229
  const toReturn = {};
1229
1230
  if (typeof this.year !== 'undefined') {
@@ -1257,17 +1258,17 @@ class DateTime {
1257
1258
  }
1258
1259
  }
1259
1260
  class TimeZone {
1261
+ static fromProto(proto) {
1262
+ let m = new TimeZone();
1263
+ m = Object.assign(m, proto);
1264
+ return m;
1265
+ }
1260
1266
  constructor(kwargs) {
1261
1267
  if (!kwargs) {
1262
1268
  return;
1263
1269
  }
1264
1270
  Object.assign(this, kwargs);
1265
1271
  }
1266
- static fromProto(proto) {
1267
- let m = new TimeZone();
1268
- m = Object.assign(m, proto);
1269
- return m;
1270
- }
1271
1272
  toApiJson() {
1272
1273
  const toReturn = {};
1273
1274
  if (typeof this.id !== 'undefined') {
@@ -1287,12 +1288,6 @@ function enumStringToValue$5(enumRef, value) {
1287
1288
  return enumRef[value];
1288
1289
  }
1289
1290
  class Answer {
1290
- constructor(kwargs) {
1291
- if (!kwargs) {
1292
- return;
1293
- }
1294
- Object.assign(this, kwargs);
1295
- }
1296
1291
  static fromProto(proto) {
1297
1292
  let m = new Answer();
1298
1293
  m = Object.assign(m, proto);
@@ -1301,6 +1296,12 @@ class Answer {
1301
1296
  }
1302
1297
  return m;
1303
1298
  }
1299
+ constructor(kwargs) {
1300
+ if (!kwargs) {
1301
+ return;
1302
+ }
1303
+ Object.assign(this, kwargs);
1304
+ }
1304
1305
  toApiJson() {
1305
1306
  const toReturn = {};
1306
1307
  if (typeof this.id !== 'undefined') {
@@ -1319,12 +1320,6 @@ class Answer {
1319
1320
  }
1320
1321
  }
1321
1322
  class Answers {
1322
- constructor(kwargs) {
1323
- if (!kwargs) {
1324
- return;
1325
- }
1326
- Object.assign(this, kwargs);
1327
- }
1328
1323
  static fromProto(proto) {
1329
1324
  let m = new Answers();
1330
1325
  m = Object.assign(m, proto);
@@ -1333,6 +1328,12 @@ class Answers {
1333
1328
  }
1334
1329
  return m;
1335
1330
  }
1331
+ constructor(kwargs) {
1332
+ if (!kwargs) {
1333
+ return;
1334
+ }
1335
+ Object.assign(this, kwargs);
1336
+ }
1336
1337
  toApiJson() {
1337
1338
  const toReturn = {};
1338
1339
  if (typeof this.formAnswers !== 'undefined' && this.formAnswers !== null) {
@@ -1342,17 +1343,17 @@ class Answers {
1342
1343
  }
1343
1344
  }
1344
1345
  class CalendarApplicationContextEntry {
1346
+ static fromProto(proto) {
1347
+ let m = new CalendarApplicationContextEntry();
1348
+ m = Object.assign(m, proto);
1349
+ return m;
1350
+ }
1345
1351
  constructor(kwargs) {
1346
1352
  if (!kwargs) {
1347
1353
  return;
1348
1354
  }
1349
1355
  Object.assign(this, kwargs);
1350
1356
  }
1351
- static fromProto(proto) {
1352
- let m = new CalendarApplicationContextEntry();
1353
- m = Object.assign(m, proto);
1354
- return m;
1355
- }
1356
1357
  toApiJson() {
1357
1358
  const toReturn = {};
1358
1359
  if (typeof this.key !== 'undefined') {
@@ -1365,17 +1366,17 @@ class CalendarApplicationContextEntry {
1365
1366
  }
1366
1367
  }
1367
1368
  class Attachment {
1369
+ static fromProto(proto) {
1370
+ let m = new Attachment();
1371
+ m = Object.assign(m, proto);
1372
+ return m;
1373
+ }
1368
1374
  constructor(kwargs) {
1369
1375
  if (!kwargs) {
1370
1376
  return;
1371
1377
  }
1372
1378
  Object.assign(this, kwargs);
1373
1379
  }
1374
- static fromProto(proto) {
1375
- let m = new Attachment();
1376
- m = Object.assign(m, proto);
1377
- return m;
1378
- }
1379
1380
  toApiJson() {
1380
1381
  const toReturn = {};
1381
1382
  if (typeof this.fileTitle !== 'undefined') {
@@ -1391,17 +1392,17 @@ class Attachment {
1391
1392
  }
1392
1393
  }
1393
1394
  class Attendee {
1395
+ static fromProto(proto) {
1396
+ let m = new Attendee();
1397
+ m = Object.assign(m, proto);
1398
+ return m;
1399
+ }
1394
1400
  constructor(kwargs) {
1395
1401
  if (!kwargs) {
1396
1402
  return;
1397
1403
  }
1398
1404
  Object.assign(this, kwargs);
1399
1405
  }
1400
- static fromProto(proto) {
1401
- let m = new Attendee();
1402
- m = Object.assign(m, proto);
1403
- return m;
1404
- }
1405
1406
  toApiJson() {
1406
1407
  const toReturn = {};
1407
1408
  if (typeof this.firstName !== 'undefined') {
@@ -1426,12 +1427,6 @@ class Attendee {
1426
1427
  }
1427
1428
  }
1428
1429
  class Calendar {
1429
- constructor(kwargs) {
1430
- if (!kwargs) {
1431
- return;
1432
- }
1433
- Object.assign(this, kwargs);
1434
- }
1435
1430
  static fromProto(proto) {
1436
1431
  let m = new Calendar();
1437
1432
  m = Object.assign(m, proto);
@@ -1443,6 +1438,12 @@ class Calendar {
1443
1438
  }
1444
1439
  return m;
1445
1440
  }
1441
+ constructor(kwargs) {
1442
+ if (!kwargs) {
1443
+ return;
1444
+ }
1445
+ Object.assign(this, kwargs);
1446
+ }
1446
1447
  toApiJson() {
1447
1448
  const toReturn = {};
1448
1449
  if (typeof this.id !== 'undefined') {
@@ -1482,12 +1483,6 @@ class Calendar {
1482
1483
  }
1483
1484
  }
1484
1485
  class Contact {
1485
- constructor(kwargs) {
1486
- if (!kwargs) {
1487
- return;
1488
- }
1489
- Object.assign(this, kwargs);
1490
- }
1491
1486
  static fromProto(proto) {
1492
1487
  let m = new Contact();
1493
1488
  m = Object.assign(m, proto);
@@ -1496,6 +1491,12 @@ class Contact {
1496
1491
  }
1497
1492
  return m;
1498
1493
  }
1494
+ constructor(kwargs) {
1495
+ if (!kwargs) {
1496
+ return;
1497
+ }
1498
+ Object.assign(this, kwargs);
1499
+ }
1499
1500
  toApiJson() {
1500
1501
  const toReturn = {};
1501
1502
  if (typeof this.firstName !== 'undefined') {
@@ -1520,17 +1521,17 @@ class Contact {
1520
1521
  }
1521
1522
  }
1522
1523
  class Host {
1524
+ static fromProto(proto) {
1525
+ let m = new Host();
1526
+ m = Object.assign(m, proto);
1527
+ return m;
1528
+ }
1523
1529
  constructor(kwargs) {
1524
1530
  if (!kwargs) {
1525
1531
  return;
1526
1532
  }
1527
1533
  Object.assign(this, kwargs);
1528
1534
  }
1529
- static fromProto(proto) {
1530
- let m = new Host();
1531
- m = Object.assign(m, proto);
1532
- return m;
1533
- }
1534
1535
  toApiJson() {
1535
1536
  const toReturn = {};
1536
1537
  if (typeof this.id !== 'undefined') {
@@ -1549,17 +1550,17 @@ class Host {
1549
1550
  }
1550
1551
  }
1551
1552
  class HostUser {
1553
+ static fromProto(proto) {
1554
+ let m = new HostUser();
1555
+ m = Object.assign(m, proto);
1556
+ return m;
1557
+ }
1552
1558
  constructor(kwargs) {
1553
1559
  if (!kwargs) {
1554
1560
  return;
1555
1561
  }
1556
1562
  Object.assign(this, kwargs);
1557
1563
  }
1558
- static fromProto(proto) {
1559
- let m = new HostUser();
1560
- m = Object.assign(m, proto);
1561
- return m;
1562
- }
1563
1564
  toApiJson() {
1564
1565
  const toReturn = {};
1565
1566
  if (typeof this.userId !== 'undefined') {
@@ -1575,12 +1576,6 @@ class HostUser {
1575
1576
  }
1576
1577
  }
1577
1578
  class PagedRequestOptions {
1578
- constructor(kwargs) {
1579
- if (!kwargs) {
1580
- return;
1581
- }
1582
- Object.assign(this, kwargs);
1583
- }
1584
1579
  static fromProto(proto) {
1585
1580
  let m = new PagedRequestOptions();
1586
1581
  m = Object.assign(m, proto);
@@ -1589,6 +1584,12 @@ class PagedRequestOptions {
1589
1584
  }
1590
1585
  return m;
1591
1586
  }
1587
+ constructor(kwargs) {
1588
+ if (!kwargs) {
1589
+ return;
1590
+ }
1591
+ Object.assign(this, kwargs);
1592
+ }
1592
1593
  toApiJson() {
1593
1594
  const toReturn = {};
1594
1595
  if (typeof this.cursor !== 'undefined') {
@@ -1601,17 +1602,17 @@ class PagedRequestOptions {
1601
1602
  }
1602
1603
  }
1603
1604
  class PagedResponseMetadata {
1605
+ static fromProto(proto) {
1606
+ let m = new PagedResponseMetadata();
1607
+ m = Object.assign(m, proto);
1608
+ return m;
1609
+ }
1604
1610
  constructor(kwargs) {
1605
1611
  if (!kwargs) {
1606
1612
  return;
1607
1613
  }
1608
1614
  Object.assign(this, kwargs);
1609
1615
  }
1610
- static fromProto(proto) {
1611
- let m = new PagedResponseMetadata();
1612
- m = Object.assign(m, proto);
1613
- return m;
1614
- }
1615
1616
  toApiJson() {
1616
1617
  const toReturn = {};
1617
1618
  if (typeof this.nextCursor !== 'undefined') {
@@ -1624,12 +1625,6 @@ class PagedResponseMetadata {
1624
1625
  }
1625
1626
  }
1626
1627
  class Preferences {
1627
- constructor(kwargs) {
1628
- if (!kwargs) {
1629
- return;
1630
- }
1631
- Object.assign(this, kwargs);
1632
- }
1633
1628
  static fromProto(proto) {
1634
1629
  let m = new Preferences();
1635
1630
  m = Object.assign(m, proto);
@@ -1650,6 +1645,12 @@ class Preferences {
1650
1645
  }
1651
1646
  return m;
1652
1647
  }
1648
+ constructor(kwargs) {
1649
+ if (!kwargs) {
1650
+ return;
1651
+ }
1652
+ Object.assign(this, kwargs);
1653
+ }
1653
1654
  toApiJson() {
1654
1655
  const toReturn = {};
1655
1656
  if (typeof this.timezone !== 'undefined' && this.timezone !== null) {
@@ -1674,12 +1675,6 @@ class Preferences {
1674
1675
  }
1675
1676
  }
1676
1677
  class TimeRange {
1677
- constructor(kwargs) {
1678
- if (!kwargs) {
1679
- return;
1680
- }
1681
- Object.assign(this, kwargs);
1682
- }
1683
1678
  static fromProto(proto) {
1684
1679
  let m = new TimeRange();
1685
1680
  m = Object.assign(m, proto);
@@ -1691,6 +1686,12 @@ class TimeRange {
1691
1686
  }
1692
1687
  return m;
1693
1688
  }
1689
+ constructor(kwargs) {
1690
+ if (!kwargs) {
1691
+ return;
1692
+ }
1693
+ Object.assign(this, kwargs);
1694
+ }
1694
1695
  toApiJson() {
1695
1696
  const toReturn = {};
1696
1697
  if (typeof this.from !== 'undefined' && this.from !== null) {
@@ -1703,27 +1704,27 @@ class TimeRange {
1703
1704
  }
1704
1705
  }
1705
1706
 
1706
- function enumStringToValue$6(enumRef, value) {
1707
+ function enumStringToValue$4(enumRef, value) {
1707
1708
  if (typeof value === 'number') {
1708
1709
  return value;
1709
1710
  }
1710
1711
  return enumRef[value];
1711
1712
  }
1712
1713
  class Field {
1713
- constructor(kwargs) {
1714
- if (!kwargs) {
1715
- return;
1716
- }
1717
- Object.assign(this, kwargs);
1718
- }
1719
1714
  static fromProto(proto) {
1720
1715
  let m = new Field();
1721
1716
  m = Object.assign(m, proto);
1722
1717
  if (proto.type) {
1723
- m.type = enumStringToValue$6(FormFieldType, proto.type);
1718
+ m.type = enumStringToValue$4(FormFieldType, proto.type);
1724
1719
  }
1725
1720
  return m;
1726
1721
  }
1722
+ constructor(kwargs) {
1723
+ if (!kwargs) {
1724
+ return;
1725
+ }
1726
+ Object.assign(this, kwargs);
1727
+ }
1727
1728
  toApiJson() {
1728
1729
  const toReturn = {};
1729
1730
  if (typeof this.id !== 'undefined') {
@@ -1742,12 +1743,6 @@ class Field {
1742
1743
  }
1743
1744
  }
1744
1745
  class Form {
1745
- constructor(kwargs) {
1746
- if (!kwargs) {
1747
- return;
1748
- }
1749
- Object.assign(this, kwargs);
1750
- }
1751
1746
  static fromProto(proto) {
1752
1747
  let m = new Form();
1753
1748
  m = Object.assign(m, proto);
@@ -1756,6 +1751,12 @@ class Form {
1756
1751
  }
1757
1752
  return m;
1758
1753
  }
1754
+ constructor(kwargs) {
1755
+ if (!kwargs) {
1756
+ return;
1757
+ }
1758
+ Object.assign(this, kwargs);
1759
+ }
1759
1760
  toApiJson() {
1760
1761
  const toReturn = {};
1761
1762
  if (typeof this.fields !== 'undefined' && this.fields !== null) {
@@ -1765,12 +1766,6 @@ class Form {
1765
1766
  }
1766
1767
  }
1767
1768
  class MeetingType {
1768
- constructor(kwargs) {
1769
- if (!kwargs) {
1770
- return;
1771
- }
1772
- Object.assign(this, kwargs);
1773
- }
1774
1769
  static fromProto(proto) {
1775
1770
  let m = new MeetingType();
1776
1771
  m = Object.assign(m, proto);
@@ -1779,6 +1774,12 @@ class MeetingType {
1779
1774
  }
1780
1775
  return m;
1781
1776
  }
1777
+ constructor(kwargs) {
1778
+ if (!kwargs) {
1779
+ return;
1780
+ }
1781
+ Object.assign(this, kwargs);
1782
+ }
1782
1783
  toApiJson() {
1783
1784
  const toReturn = {};
1784
1785
  if (typeof this.id !== 'undefined') {
@@ -1821,19 +1822,13 @@ class MeetingType {
1821
1822
  }
1822
1823
  }
1823
1824
 
1824
- function enumStringToValue$7(enumRef, value) {
1825
+ function enumStringToValue$3(enumRef, value) {
1825
1826
  if (typeof value === 'number') {
1826
1827
  return value;
1827
1828
  }
1828
1829
  return enumRef[value];
1829
1830
  }
1830
1831
  class DateRange {
1831
- constructor(kwargs) {
1832
- if (!kwargs) {
1833
- return;
1834
- }
1835
- Object.assign(this, kwargs);
1836
- }
1837
1832
  static fromProto(proto) {
1838
1833
  let m = new DateRange();
1839
1834
  m = Object.assign(m, proto);
@@ -1845,6 +1840,12 @@ class DateRange {
1845
1840
  }
1846
1841
  return m;
1847
1842
  }
1843
+ constructor(kwargs) {
1844
+ if (!kwargs) {
1845
+ return;
1846
+ }
1847
+ Object.assign(this, kwargs);
1848
+ }
1848
1849
  toApiJson() {
1849
1850
  const toReturn = {};
1850
1851
  if (typeof this.start !== 'undefined' && this.start !== null) {
@@ -1857,19 +1858,13 @@ class DateRange {
1857
1858
  }
1858
1859
  }
1859
1860
 
1860
- function enumStringToValue$8(enumRef, value) {
1861
+ function enumStringToValue$2(enumRef, value) {
1861
1862
  if (typeof value === 'number') {
1862
1863
  return value;
1863
1864
  }
1864
1865
  return enumRef[value];
1865
1866
  }
1866
1867
  class BookMeetingRequest {
1867
- constructor(kwargs) {
1868
- if (!kwargs) {
1869
- return;
1870
- }
1871
- Object.assign(this, kwargs);
1872
- }
1873
1868
  static fromProto(proto) {
1874
1869
  let m = new BookMeetingRequest();
1875
1870
  m = Object.assign(m, proto);
@@ -1890,6 +1885,12 @@ class BookMeetingRequest {
1890
1885
  }
1891
1886
  return m;
1892
1887
  }
1888
+ constructor(kwargs) {
1889
+ if (!kwargs) {
1890
+ return;
1891
+ }
1892
+ Object.assign(this, kwargs);
1893
+ }
1893
1894
  toApiJson() {
1894
1895
  const toReturn = {};
1895
1896
  if (typeof this.hostId !== 'undefined') {
@@ -1923,17 +1924,17 @@ class BookMeetingRequest {
1923
1924
  }
1924
1925
  }
1925
1926
  class BookMeetingResponse {
1927
+ static fromProto(proto) {
1928
+ let m = new BookMeetingResponse();
1929
+ m = Object.assign(m, proto);
1930
+ return m;
1931
+ }
1926
1932
  constructor(kwargs) {
1927
1933
  if (!kwargs) {
1928
1934
  return;
1929
1935
  }
1930
1936
  Object.assign(this, kwargs);
1931
1937
  }
1932
- static fromProto(proto) {
1933
- let m = new BookMeetingResponse();
1934
- m = Object.assign(m, proto);
1935
- return m;
1936
- }
1937
1938
  toApiJson() {
1938
1939
  const toReturn = {};
1939
1940
  if (typeof this.meetingId !== 'undefined') {
@@ -1946,17 +1947,17 @@ class BookMeetingResponse {
1946
1947
  }
1947
1948
  }
1948
1949
  class GetCalendarRequest {
1950
+ static fromProto(proto) {
1951
+ let m = new GetCalendarRequest();
1952
+ m = Object.assign(m, proto);
1953
+ return m;
1954
+ }
1949
1955
  constructor(kwargs) {
1950
1956
  if (!kwargs) {
1951
1957
  return;
1952
1958
  }
1953
1959
  Object.assign(this, kwargs);
1954
1960
  }
1955
- static fromProto(proto) {
1956
- let m = new GetCalendarRequest();
1957
- m = Object.assign(m, proto);
1958
- return m;
1959
- }
1960
1961
  toApiJson() {
1961
1962
  const toReturn = {};
1962
1963
  if (typeof this.calendarId !== 'undefined') {
@@ -1966,12 +1967,6 @@ class GetCalendarRequest {
1966
1967
  }
1967
1968
  }
1968
1969
  class GetCalendarResponse {
1969
- constructor(kwargs) {
1970
- if (!kwargs) {
1971
- return;
1972
- }
1973
- Object.assign(this, kwargs);
1974
- }
1975
1970
  static fromProto(proto) {
1976
1971
  let m = new GetCalendarResponse();
1977
1972
  m = Object.assign(m, proto);
@@ -1980,6 +1975,12 @@ class GetCalendarResponse {
1980
1975
  }
1981
1976
  return m;
1982
1977
  }
1978
+ constructor(kwargs) {
1979
+ if (!kwargs) {
1980
+ return;
1981
+ }
1982
+ Object.assign(this, kwargs);
1983
+ }
1983
1984
  toApiJson() {
1984
1985
  const toReturn = {};
1985
1986
  if (typeof this.calendar !== 'undefined' && this.calendar !== null) {
@@ -1989,17 +1990,17 @@ class GetCalendarResponse {
1989
1990
  }
1990
1991
  }
1991
1992
  class GetHostRequest {
1993
+ static fromProto(proto) {
1994
+ let m = new GetHostRequest();
1995
+ m = Object.assign(m, proto);
1996
+ return m;
1997
+ }
1992
1998
  constructor(kwargs) {
1993
1999
  if (!kwargs) {
1994
2000
  return;
1995
2001
  }
1996
2002
  Object.assign(this, kwargs);
1997
2003
  }
1998
- static fromProto(proto) {
1999
- let m = new GetHostRequest();
2000
- m = Object.assign(m, proto);
2001
- return m;
2002
- }
2003
2004
  toApiJson() {
2004
2005
  const toReturn = {};
2005
2006
  if (typeof this.hostId !== 'undefined') {
@@ -2009,12 +2010,6 @@ class GetHostRequest {
2009
2010
  }
2010
2011
  }
2011
2012
  class GetHostResponse {
2012
- constructor(kwargs) {
2013
- if (!kwargs) {
2014
- return;
2015
- }
2016
- Object.assign(this, kwargs);
2017
- }
2018
2013
  static fromProto(proto) {
2019
2014
  let m = new GetHostResponse();
2020
2015
  m = Object.assign(m, proto);
@@ -2023,6 +2018,12 @@ class GetHostResponse {
2023
2018
  }
2024
2019
  return m;
2025
2020
  }
2021
+ constructor(kwargs) {
2022
+ if (!kwargs) {
2023
+ return;
2024
+ }
2025
+ Object.assign(this, kwargs);
2026
+ }
2026
2027
  toApiJson() {
2027
2028
  const toReturn = {};
2028
2029
  if (typeof this.host !== 'undefined' && this.host !== null) {
@@ -2032,17 +2033,17 @@ class GetHostResponse {
2032
2033
  }
2033
2034
  }
2034
2035
  class GetMeetingTypeRequest {
2035
- constructor(kwargs) {
2036
- if (!kwargs) {
2037
- return;
2038
- }
2039
- Object.assign(this, kwargs);
2040
- }
2041
2036
  static fromProto(proto) {
2042
2037
  let m = new GetMeetingTypeRequest();
2043
2038
  m = Object.assign(m, proto);
2044
2039
  return m;
2045
2040
  }
2041
+ constructor(kwargs) {
2042
+ if (!kwargs) {
2043
+ return;
2044
+ }
2045
+ Object.assign(this, kwargs);
2046
+ }
2046
2047
  toApiJson() {
2047
2048
  const toReturn = {};
2048
2049
  if (typeof this.calendarSlug !== 'undefined') {
@@ -2055,12 +2056,6 @@ class GetMeetingTypeRequest {
2055
2056
  }
2056
2057
  }
2057
2058
  class GetMeetingTypeResponse {
2058
- constructor(kwargs) {
2059
- if (!kwargs) {
2060
- return;
2061
- }
2062
- Object.assign(this, kwargs);
2063
- }
2064
2059
  static fromProto(proto) {
2065
2060
  let m = new GetMeetingTypeResponse();
2066
2061
  m = Object.assign(m, proto);
@@ -2069,6 +2064,12 @@ class GetMeetingTypeResponse {
2069
2064
  }
2070
2065
  return m;
2071
2066
  }
2067
+ constructor(kwargs) {
2068
+ if (!kwargs) {
2069
+ return;
2070
+ }
2071
+ Object.assign(this, kwargs);
2072
+ }
2072
2073
  toApiJson() {
2073
2074
  const toReturn = {};
2074
2075
  if (typeof this.meetingType !== 'undefined' && this.meetingType !== null) {
@@ -2078,17 +2079,17 @@ class GetMeetingTypeResponse {
2078
2079
  }
2079
2080
  }
2080
2081
  class GuestCancelMeetingRequest {
2082
+ static fromProto(proto) {
2083
+ let m = new GuestCancelMeetingRequest();
2084
+ m = Object.assign(m, proto);
2085
+ return m;
2086
+ }
2081
2087
  constructor(kwargs) {
2082
2088
  if (!kwargs) {
2083
2089
  return;
2084
2090
  }
2085
2091
  Object.assign(this, kwargs);
2086
2092
  }
2087
- static fromProto(proto) {
2088
- let m = new GuestCancelMeetingRequest();
2089
- m = Object.assign(m, proto);
2090
- return m;
2091
- }
2092
2093
  toApiJson() {
2093
2094
  const toReturn = {};
2094
2095
  if (typeof this.meetingId !== 'undefined') {
@@ -2104,17 +2105,17 @@ class GuestCancelMeetingRequest {
2104
2105
  }
2105
2106
  }
2106
2107
  class GuestGetBookedMeetingRequest {
2108
+ static fromProto(proto) {
2109
+ let m = new GuestGetBookedMeetingRequest();
2110
+ m = Object.assign(m, proto);
2111
+ return m;
2112
+ }
2107
2113
  constructor(kwargs) {
2108
2114
  if (!kwargs) {
2109
2115
  return;
2110
2116
  }
2111
2117
  Object.assign(this, kwargs);
2112
2118
  }
2113
- static fromProto(proto) {
2114
- let m = new GuestGetBookedMeetingRequest();
2115
- m = Object.assign(m, proto);
2116
- return m;
2117
- }
2118
2119
  toApiJson() {
2119
2120
  const toReturn = {};
2120
2121
  if (typeof this.meetingId !== 'undefined') {
@@ -2127,12 +2128,6 @@ class GuestGetBookedMeetingRequest {
2127
2128
  }
2128
2129
  }
2129
2130
  class GuestGetBookedMeetingResponse {
2130
- constructor(kwargs) {
2131
- if (!kwargs) {
2132
- return;
2133
- }
2134
- Object.assign(this, kwargs);
2135
- }
2136
2131
  static fromProto(proto) {
2137
2132
  let m = new GuestGetBookedMeetingResponse();
2138
2133
  m = Object.assign(m, proto);
@@ -2147,6 +2142,12 @@ class GuestGetBookedMeetingResponse {
2147
2142
  }
2148
2143
  return m;
2149
2144
  }
2145
+ constructor(kwargs) {
2146
+ if (!kwargs) {
2147
+ return;
2148
+ }
2149
+ Object.assign(this, kwargs);
2150
+ }
2150
2151
  toApiJson() {
2151
2152
  const toReturn = {};
2152
2153
  if (typeof this.startTime !== 'undefined' && this.startTime !== null) {
@@ -2165,17 +2166,17 @@ class GuestGetBookedMeetingResponse {
2165
2166
  }
2166
2167
  }
2167
2168
  class GuestIsHostConfiguredRequest {
2169
+ static fromProto(proto) {
2170
+ let m = new GuestIsHostConfiguredRequest();
2171
+ m = Object.assign(m, proto);
2172
+ return m;
2173
+ }
2168
2174
  constructor(kwargs) {
2169
2175
  if (!kwargs) {
2170
2176
  return;
2171
2177
  }
2172
2178
  Object.assign(this, kwargs);
2173
2179
  }
2174
- static fromProto(proto) {
2175
- let m = new GuestIsHostConfiguredRequest();
2176
- m = Object.assign(m, proto);
2177
- return m;
2178
- }
2179
2180
  toApiJson() {
2180
2181
  const toReturn = {};
2181
2182
  if (typeof this.hostId !== 'undefined') {
@@ -2185,17 +2186,17 @@ class GuestIsHostConfiguredRequest {
2185
2186
  }
2186
2187
  }
2187
2188
  class GuestIsHostConfiguredResponse {
2189
+ static fromProto(proto) {
2190
+ let m = new GuestIsHostConfiguredResponse();
2191
+ m = Object.assign(m, proto);
2192
+ return m;
2193
+ }
2188
2194
  constructor(kwargs) {
2189
2195
  if (!kwargs) {
2190
2196
  return;
2191
2197
  }
2192
2198
  Object.assign(this, kwargs);
2193
2199
  }
2194
- static fromProto(proto) {
2195
- let m = new GuestIsHostConfiguredResponse();
2196
- m = Object.assign(m, proto);
2197
- return m;
2198
- }
2199
2200
  toApiJson() {
2200
2201
  const toReturn = {};
2201
2202
  if (typeof this.isConfigured !== 'undefined') {
@@ -2205,12 +2206,6 @@ class GuestIsHostConfiguredResponse {
2205
2206
  }
2206
2207
  }
2207
2208
  class GuestRescheduleMeetingRequest {
2208
- constructor(kwargs) {
2209
- if (!kwargs) {
2210
- return;
2211
- }
2212
- Object.assign(this, kwargs);
2213
- }
2214
2209
  static fromProto(proto) {
2215
2210
  let m = new GuestRescheduleMeetingRequest();
2216
2211
  m = Object.assign(m, proto);
@@ -2222,6 +2217,12 @@ class GuestRescheduleMeetingRequest {
2222
2217
  }
2223
2218
  return m;
2224
2219
  }
2220
+ constructor(kwargs) {
2221
+ if (!kwargs) {
2222
+ return;
2223
+ }
2224
+ Object.assign(this, kwargs);
2225
+ }
2225
2226
  toApiJson() {
2226
2227
  const toReturn = {};
2227
2228
  if (typeof this.meetingId !== 'undefined') {
@@ -2240,12 +2241,6 @@ class GuestRescheduleMeetingRequest {
2240
2241
  }
2241
2242
  }
2242
2243
  class ListAvailableTimeSlotsRequest {
2243
- constructor(kwargs) {
2244
- if (!kwargs) {
2245
- return;
2246
- }
2247
- Object.assign(this, kwargs);
2248
- }
2249
2244
  static fromProto(proto) {
2250
2245
  let m = new ListAvailableTimeSlotsRequest();
2251
2246
  m = Object.assign(m, proto);
@@ -2257,6 +2252,12 @@ class ListAvailableTimeSlotsRequest {
2257
2252
  }
2258
2253
  return m;
2259
2254
  }
2255
+ constructor(kwargs) {
2256
+ if (!kwargs) {
2257
+ return;
2258
+ }
2259
+ Object.assign(this, kwargs);
2260
+ }
2260
2261
  toApiJson() {
2261
2262
  const toReturn = {};
2262
2263
  if (typeof this.hostId !== 'undefined') {
@@ -2275,12 +2276,6 @@ class ListAvailableTimeSlotsRequest {
2275
2276
  }
2276
2277
  }
2277
2278
  class ListAvailableTimeSlotsResponse {
2278
- constructor(kwargs) {
2279
- if (!kwargs) {
2280
- return;
2281
- }
2282
- Object.assign(this, kwargs);
2283
- }
2284
2279
  static fromProto(proto) {
2285
2280
  let m = new ListAvailableTimeSlotsResponse();
2286
2281
  m = Object.assign(m, proto);
@@ -2289,6 +2284,12 @@ class ListAvailableTimeSlotsResponse {
2289
2284
  }
2290
2285
  return m;
2291
2286
  }
2287
+ constructor(kwargs) {
2288
+ if (!kwargs) {
2289
+ return;
2290
+ }
2291
+ Object.assign(this, kwargs);
2292
+ }
2292
2293
  toApiJson() {
2293
2294
  const toReturn = {};
2294
2295
  if (typeof this.timeSlots !== 'undefined' && this.timeSlots !== null) {
@@ -2298,17 +2299,17 @@ class ListAvailableTimeSlotsResponse {
2298
2299
  }
2299
2300
  }
2300
2301
  class ListMeetingTypesRequest {
2302
+ static fromProto(proto) {
2303
+ let m = new ListMeetingTypesRequest();
2304
+ m = Object.assign(m, proto);
2305
+ return m;
2306
+ }
2301
2307
  constructor(kwargs) {
2302
2308
  if (!kwargs) {
2303
2309
  return;
2304
2310
  }
2305
2311
  Object.assign(this, kwargs);
2306
2312
  }
2307
- static fromProto(proto) {
2308
- let m = new ListMeetingTypesRequest();
2309
- m = Object.assign(m, proto);
2310
- return m;
2311
- }
2312
2313
  toApiJson() {
2313
2314
  const toReturn = {};
2314
2315
  if (typeof this.hostId !== 'undefined') {
@@ -2318,12 +2319,6 @@ class ListMeetingTypesRequest {
2318
2319
  }
2319
2320
  }
2320
2321
  class ListMeetingTypesResponse {
2321
- constructor(kwargs) {
2322
- if (!kwargs) {
2323
- return;
2324
- }
2325
- Object.assign(this, kwargs);
2326
- }
2327
2322
  static fromProto(proto) {
2328
2323
  let m = new ListMeetingTypesResponse();
2329
2324
  m = Object.assign(m, proto);
@@ -2332,6 +2327,12 @@ class ListMeetingTypesResponse {
2332
2327
  }
2333
2328
  return m;
2334
2329
  }
2330
+ constructor(kwargs) {
2331
+ if (!kwargs) {
2332
+ return;
2333
+ }
2334
+ Object.assign(this, kwargs);
2335
+ }
2335
2336
  toApiJson() {
2336
2337
  const toReturn = {};
2337
2338
  if (typeof this.meetingTypes !== 'undefined' && this.meetingTypes !== null) {
@@ -2341,17 +2342,17 @@ class ListMeetingTypesResponse {
2341
2342
  }
2342
2343
  }
2343
2344
  class BookMeetingRequestMetadataEntry {
2345
+ static fromProto(proto) {
2346
+ let m = new BookMeetingRequestMetadataEntry();
2347
+ m = Object.assign(m, proto);
2348
+ return m;
2349
+ }
2344
2350
  constructor(kwargs) {
2345
2351
  if (!kwargs) {
2346
2352
  return;
2347
2353
  }
2348
2354
  Object.assign(this, kwargs);
2349
2355
  }
2350
- static fromProto(proto) {
2351
- let m = new BookMeetingRequestMetadataEntry();
2352
- m = Object.assign(m, proto);
2353
- return m;
2354
- }
2355
2356
  toApiJson() {
2356
2357
  const toReturn = {};
2357
2358
  if (typeof this.key !== 'undefined') {
@@ -2364,24 +2365,24 @@ class BookMeetingRequestMetadataEntry {
2364
2365
  }
2365
2366
  }
2366
2367
 
2367
- function enumStringToValue$9(enumRef, value) {
2368
+ function enumStringToValue$1(enumRef, value) {
2368
2369
  if (typeof value === 'number') {
2369
2370
  return value;
2370
2371
  }
2371
2372
  return enumRef[value];
2372
2373
  }
2373
2374
  class FieldMask {
2375
+ static fromProto(proto) {
2376
+ let m = new FieldMask();
2377
+ m = Object.assign(m, proto);
2378
+ return m;
2379
+ }
2374
2380
  constructor(kwargs) {
2375
2381
  if (!kwargs) {
2376
2382
  return;
2377
2383
  }
2378
2384
  Object.assign(this, kwargs);
2379
2385
  }
2380
- static fromProto(proto) {
2381
- let m = new FieldMask();
2382
- m = Object.assign(m, proto);
2383
- return m;
2384
- }
2385
2386
  toApiJson() {
2386
2387
  const toReturn = {};
2387
2388
  if (typeof this.paths !== 'undefined') {
@@ -2391,24 +2392,24 @@ class FieldMask {
2391
2392
  }
2392
2393
  }
2393
2394
 
2394
- function enumStringToValue$a(enumRef, value) {
2395
+ function enumStringToValue(enumRef, value) {
2395
2396
  if (typeof value === 'number') {
2396
2397
  return value;
2397
2398
  }
2398
2399
  return enumRef[value];
2399
2400
  }
2400
2401
  class BuildHostIdRequestApplicationContextPropertiesEntry {
2402
+ static fromProto(proto) {
2403
+ let m = new BuildHostIdRequestApplicationContextPropertiesEntry();
2404
+ m = Object.assign(m, proto);
2405
+ return m;
2406
+ }
2401
2407
  constructor(kwargs) {
2402
2408
  if (!kwargs) {
2403
2409
  return;
2404
2410
  }
2405
2411
  Object.assign(this, kwargs);
2406
2412
  }
2407
- static fromProto(proto) {
2408
- let m = new BuildHostIdRequestApplicationContextPropertiesEntry();
2409
- m = Object.assign(m, proto);
2410
- return m;
2411
- }
2412
2413
  toApiJson() {
2413
2414
  const toReturn = {};
2414
2415
  if (typeof this.key !== 'undefined') {
@@ -2421,17 +2422,17 @@ class BuildHostIdRequestApplicationContextPropertiesEntry {
2421
2422
  }
2422
2423
  }
2423
2424
  class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
2425
+ static fromProto(proto) {
2426
+ let m = new EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry();
2427
+ m = Object.assign(m, proto);
2428
+ return m;
2429
+ }
2424
2430
  constructor(kwargs) {
2425
2431
  if (!kwargs) {
2426
2432
  return;
2427
2433
  }
2428
2434
  Object.assign(this, kwargs);
2429
2435
  }
2430
- static fromProto(proto) {
2431
- let m = new EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry();
2432
- m = Object.assign(m, proto);
2433
- return m;
2434
- }
2435
2436
  toApiJson() {
2436
2437
  const toReturn = {};
2437
2438
  if (typeof this.key !== 'undefined') {
@@ -2444,17 +2445,11 @@ class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
2444
2445
  }
2445
2446
  }
2446
2447
  class AvailabilityRule {
2447
- constructor(kwargs) {
2448
- if (!kwargs) {
2449
- return;
2450
- }
2451
- Object.assign(this, kwargs);
2452
- }
2453
2448
  static fromProto(proto) {
2454
2449
  let m = new AvailabilityRule();
2455
2450
  m = Object.assign(m, proto);
2456
2451
  if (proto.day) {
2457
- m.day = enumStringToValue$a(DayOfWeek, proto.day);
2452
+ m.day = enumStringToValue(DayOfWeek, proto.day);
2458
2453
  }
2459
2454
  if (proto.timeSlot) {
2460
2455
  m.timeSlot = TimeRange.fromProto(proto.timeSlot);
@@ -2464,6 +2459,12 @@ class AvailabilityRule {
2464
2459
  }
2465
2460
  return m;
2466
2461
  }
2462
+ constructor(kwargs) {
2463
+ if (!kwargs) {
2464
+ return;
2465
+ }
2466
+ Object.assign(this, kwargs);
2467
+ }
2467
2468
  toApiJson() {
2468
2469
  const toReturn = {};
2469
2470
  if (typeof this.hostId !== 'undefined') {
@@ -2485,12 +2486,6 @@ class AvailabilityRule {
2485
2486
  }
2486
2487
  }
2487
2488
  class BuildHostIdRequest {
2488
- constructor(kwargs) {
2489
- if (!kwargs) {
2490
- return;
2491
- }
2492
- Object.assign(this, kwargs);
2493
- }
2494
2489
  static fromProto(proto) {
2495
2490
  let m = new BuildHostIdRequest();
2496
2491
  m = Object.assign(m, proto);
@@ -2499,6 +2494,12 @@ class BuildHostIdRequest {
2499
2494
  }
2500
2495
  return m;
2501
2496
  }
2497
+ constructor(kwargs) {
2498
+ if (!kwargs) {
2499
+ return;
2500
+ }
2501
+ Object.assign(this, kwargs);
2502
+ }
2502
2503
  toApiJson() {
2503
2504
  const toReturn = {};
2504
2505
  if (typeof this.applicationContextProperties !== 'undefined' && this.applicationContextProperties !== null) {
@@ -2511,17 +2512,17 @@ class BuildHostIdRequest {
2511
2512
  }
2512
2513
  }
2513
2514
  class BuildHostIdResponse {
2515
+ static fromProto(proto) {
2516
+ let m = new BuildHostIdResponse();
2517
+ m = Object.assign(m, proto);
2518
+ return m;
2519
+ }
2514
2520
  constructor(kwargs) {
2515
2521
  if (!kwargs) {
2516
2522
  return;
2517
2523
  }
2518
2524
  Object.assign(this, kwargs);
2519
2525
  }
2520
- static fromProto(proto) {
2521
- let m = new BuildHostIdResponse();
2522
- m = Object.assign(m, proto);
2523
- return m;
2524
- }
2525
2526
  toApiJson() {
2526
2527
  const toReturn = {};
2527
2528
  if (typeof this.hostId !== 'undefined') {
@@ -2531,12 +2532,6 @@ class BuildHostIdResponse {
2531
2532
  }
2532
2533
  }
2533
2534
  class GetMeetingTypesForCalendarsResponseCalendarMeetingTypesMapEntry {
2534
- constructor(kwargs) {
2535
- if (!kwargs) {
2536
- return;
2537
- }
2538
- Object.assign(this, kwargs);
2539
- }
2540
2535
  static fromProto(proto) {
2541
2536
  let m = new GetMeetingTypesForCalendarsResponseCalendarMeetingTypesMapEntry();
2542
2537
  m = Object.assign(m, proto);
@@ -2545,6 +2540,12 @@ class GetMeetingTypesForCalendarsResponseCalendarMeetingTypesMapEntry {
2545
2540
  }
2546
2541
  return m;
2547
2542
  }
2543
+ constructor(kwargs) {
2544
+ if (!kwargs) {
2545
+ return;
2546
+ }
2547
+ Object.assign(this, kwargs);
2548
+ }
2548
2549
  toApiJson() {
2549
2550
  const toReturn = {};
2550
2551
  if (typeof this.key !== 'undefined') {
@@ -2557,17 +2558,17 @@ class GetMeetingTypesForCalendarsResponseCalendarMeetingTypesMapEntry {
2557
2558
  }
2558
2559
  }
2559
2560
  class CancelMeetingRequest {
2561
+ static fromProto(proto) {
2562
+ let m = new CancelMeetingRequest();
2563
+ m = Object.assign(m, proto);
2564
+ return m;
2565
+ }
2560
2566
  constructor(kwargs) {
2561
2567
  if (!kwargs) {
2562
2568
  return;
2563
2569
  }
2564
2570
  Object.assign(this, kwargs);
2565
2571
  }
2566
- static fromProto(proto) {
2567
- let m = new CancelMeetingRequest();
2568
- m = Object.assign(m, proto);
2569
- return m;
2570
- }
2571
2572
  toApiJson() {
2572
2573
  const toReturn = {};
2573
2574
  if (typeof this.meetingId !== 'undefined') {
@@ -2614,12 +2615,6 @@ class CreateAvailabilityResponse {
2614
2615
  }
2615
2616
  }
2616
2617
  class CreateCalendarRequest {
2617
- constructor(kwargs) {
2618
- if (!kwargs) {
2619
- return;
2620
- }
2621
- Object.assign(this, kwargs);
2622
- }
2623
2618
  static fromProto(proto) {
2624
2619
  let m = new CreateCalendarRequest();
2625
2620
  m = Object.assign(m, proto);
@@ -2628,6 +2623,12 @@ class CreateCalendarRequest {
2628
2623
  }
2629
2624
  return m;
2630
2625
  }
2626
+ constructor(kwargs) {
2627
+ if (!kwargs) {
2628
+ return;
2629
+ }
2630
+ Object.assign(this, kwargs);
2631
+ }
2631
2632
  toApiJson() {
2632
2633
  const toReturn = {};
2633
2634
  if (typeof this.calendar !== 'undefined' && this.calendar !== null) {
@@ -2637,17 +2638,17 @@ class CreateCalendarRequest {
2637
2638
  }
2638
2639
  }
2639
2640
  class CreateCalendarResponse {
2641
+ static fromProto(proto) {
2642
+ let m = new CreateCalendarResponse();
2643
+ m = Object.assign(m, proto);
2644
+ return m;
2645
+ }
2640
2646
  constructor(kwargs) {
2641
2647
  if (!kwargs) {
2642
2648
  return;
2643
2649
  }
2644
2650
  Object.assign(this, kwargs);
2645
2651
  }
2646
- static fromProto(proto) {
2647
- let m = new CreateCalendarResponse();
2648
- m = Object.assign(m, proto);
2649
- return m;
2650
- }
2651
2652
  toApiJson() {
2652
2653
  const toReturn = {};
2653
2654
  if (typeof this.calendarId !== 'undefined') {
@@ -2657,17 +2658,17 @@ class CreateCalendarResponse {
2657
2658
  }
2658
2659
  }
2659
2660
  class CreateDefaultMeetingTypesRequest {
2660
- constructor(kwargs) {
2661
- if (!kwargs) {
2662
- return;
2663
- }
2664
- Object.assign(this, kwargs);
2665
- }
2666
2661
  static fromProto(proto) {
2667
2662
  let m = new CreateDefaultMeetingTypesRequest();
2668
2663
  m = Object.assign(m, proto);
2669
2664
  return m;
2670
2665
  }
2666
+ constructor(kwargs) {
2667
+ if (!kwargs) {
2668
+ return;
2669
+ }
2670
+ Object.assign(this, kwargs);
2671
+ }
2671
2672
  toApiJson() {
2672
2673
  const toReturn = {};
2673
2674
  if (typeof this.calendarId !== 'undefined') {
@@ -2680,12 +2681,6 @@ class CreateDefaultMeetingTypesRequest {
2680
2681
  }
2681
2682
  }
2682
2683
  class CreateMeetingTypeRequest {
2683
- constructor(kwargs) {
2684
- if (!kwargs) {
2685
- return;
2686
- }
2687
- Object.assign(this, kwargs);
2688
- }
2689
2684
  static fromProto(proto) {
2690
2685
  let m = new CreateMeetingTypeRequest();
2691
2686
  m = Object.assign(m, proto);
@@ -2694,6 +2689,12 @@ class CreateMeetingTypeRequest {
2694
2689
  }
2695
2690
  return m;
2696
2691
  }
2692
+ constructor(kwargs) {
2693
+ if (!kwargs) {
2694
+ return;
2695
+ }
2696
+ Object.assign(this, kwargs);
2697
+ }
2697
2698
  toApiJson() {
2698
2699
  const toReturn = {};
2699
2700
  if (typeof this.meetingType !== 'undefined' && this.meetingType !== null) {
@@ -2703,17 +2704,17 @@ class CreateMeetingTypeRequest {
2703
2704
  }
2704
2705
  }
2705
2706
  class CreateMeetingTypeResponse {
2707
+ static fromProto(proto) {
2708
+ let m = new CreateMeetingTypeResponse();
2709
+ m = Object.assign(m, proto);
2710
+ return m;
2711
+ }
2706
2712
  constructor(kwargs) {
2707
2713
  if (!kwargs) {
2708
2714
  return;
2709
2715
  }
2710
2716
  Object.assign(this, kwargs);
2711
2717
  }
2712
- static fromProto(proto) {
2713
- let m = new CreateMeetingTypeResponse();
2714
- m = Object.assign(m, proto);
2715
- return m;
2716
- }
2717
2718
  toApiJson() {
2718
2719
  const toReturn = {};
2719
2720
  if (typeof this.id !== 'undefined') {
@@ -2740,17 +2741,17 @@ class DeleteAvailabilityRequest {
2740
2741
  }
2741
2742
  }
2742
2743
  class DeleteMeetingTypeRequest {
2744
+ static fromProto(proto) {
2745
+ let m = new DeleteMeetingTypeRequest();
2746
+ m = Object.assign(m, proto);
2747
+ return m;
2748
+ }
2743
2749
  constructor(kwargs) {
2744
2750
  if (!kwargs) {
2745
2751
  return;
2746
2752
  }
2747
2753
  Object.assign(this, kwargs);
2748
2754
  }
2749
- static fromProto(proto) {
2750
- let m = new DeleteMeetingTypeRequest();
2751
- m = Object.assign(m, proto);
2752
- return m;
2753
- }
2754
2755
  toApiJson() {
2755
2756
  const toReturn = {};
2756
2757
  if (typeof this.id !== 'undefined') {
@@ -2760,17 +2761,17 @@ class DeleteMeetingTypeRequest {
2760
2761
  }
2761
2762
  }
2762
2763
  class DoesCalendarExistRequest {
2764
+ static fromProto(proto) {
2765
+ let m = new DoesCalendarExistRequest();
2766
+ m = Object.assign(m, proto);
2767
+ return m;
2768
+ }
2763
2769
  constructor(kwargs) {
2764
2770
  if (!kwargs) {
2765
2771
  return;
2766
2772
  }
2767
2773
  Object.assign(this, kwargs);
2768
2774
  }
2769
- static fromProto(proto) {
2770
- let m = new DoesCalendarExistRequest();
2771
- m = Object.assign(m, proto);
2772
- return m;
2773
- }
2774
2775
  toApiJson() {
2775
2776
  const toReturn = {};
2776
2777
  if (typeof this.calendarIdentifier !== 'undefined') {
@@ -2780,17 +2781,17 @@ class DoesCalendarExistRequest {
2780
2781
  }
2781
2782
  }
2782
2783
  class DoesCalendarExistResponse {
2784
+ static fromProto(proto) {
2785
+ let m = new DoesCalendarExistResponse();
2786
+ m = Object.assign(m, proto);
2787
+ return m;
2788
+ }
2783
2789
  constructor(kwargs) {
2784
2790
  if (!kwargs) {
2785
2791
  return;
2786
2792
  }
2787
2793
  Object.assign(this, kwargs);
2788
2794
  }
2789
- static fromProto(proto) {
2790
- let m = new DoesCalendarExistResponse();
2791
- m = Object.assign(m, proto);
2792
- return m;
2793
- }
2794
2795
  toApiJson() {
2795
2796
  const toReturn = {};
2796
2797
  if (typeof this.exists !== 'undefined') {
@@ -2800,17 +2801,17 @@ class DoesCalendarExistResponse {
2800
2801
  }
2801
2802
  }
2802
2803
  class EnsureGroupCalendarsExistRequest {
2804
+ static fromProto(proto) {
2805
+ let m = new EnsureGroupCalendarsExistRequest();
2806
+ m = Object.assign(m, proto);
2807
+ return m;
2808
+ }
2803
2809
  constructor(kwargs) {
2804
2810
  if (!kwargs) {
2805
2811
  return;
2806
2812
  }
2807
2813
  Object.assign(this, kwargs);
2808
2814
  }
2809
- static fromProto(proto) {
2810
- let m = new EnsureGroupCalendarsExistRequest();
2811
- m = Object.assign(m, proto);
2812
- return m;
2813
- }
2814
2815
  toApiJson() {
2815
2816
  const toReturn = {};
2816
2817
  if (typeof this.externalIds !== 'undefined') {
@@ -2820,17 +2821,17 @@ class EnsureGroupCalendarsExistRequest {
2820
2821
  }
2821
2822
  }
2822
2823
  class EnsureGroupCalendarsExistResponse {
2824
+ static fromProto(proto) {
2825
+ let m = new EnsureGroupCalendarsExistResponse();
2826
+ m = Object.assign(m, proto);
2827
+ return m;
2828
+ }
2823
2829
  constructor(kwargs) {
2824
2830
  if (!kwargs) {
2825
2831
  return;
2826
2832
  }
2827
2833
  Object.assign(this, kwargs);
2828
2834
  }
2829
- static fromProto(proto) {
2830
- let m = new EnsureGroupCalendarsExistResponse();
2831
- m = Object.assign(m, proto);
2832
- return m;
2833
- }
2834
2835
  toApiJson() {
2835
2836
  const toReturn = {};
2836
2837
  if (typeof this.calendarIds !== 'undefined') {
@@ -2840,12 +2841,6 @@ class EnsureGroupCalendarsExistResponse {
2840
2841
  }
2841
2842
  }
2842
2843
  class EnsurePersonalCalendarExistsRequest {
2843
- constructor(kwargs) {
2844
- if (!kwargs) {
2845
- return;
2846
- }
2847
- Object.assign(this, kwargs);
2848
- }
2849
2844
  static fromProto(proto) {
2850
2845
  let m = new EnsurePersonalCalendarExistsRequest();
2851
2846
  m = Object.assign(m, proto);
@@ -2854,6 +2849,12 @@ class EnsurePersonalCalendarExistsRequest {
2854
2849
  }
2855
2850
  return m;
2856
2851
  }
2852
+ constructor(kwargs) {
2853
+ if (!kwargs) {
2854
+ return;
2855
+ }
2856
+ Object.assign(this, kwargs);
2857
+ }
2857
2858
  toApiJson() {
2858
2859
  const toReturn = {};
2859
2860
  if (typeof this.userId !== 'undefined') {
@@ -2866,17 +2867,17 @@ class EnsurePersonalCalendarExistsRequest {
2866
2867
  }
2867
2868
  }
2868
2869
  class EnsurePersonalCalendarExistsResponse {
2870
+ static fromProto(proto) {
2871
+ let m = new EnsurePersonalCalendarExistsResponse();
2872
+ m = Object.assign(m, proto);
2873
+ return m;
2874
+ }
2869
2875
  constructor(kwargs) {
2870
2876
  if (!kwargs) {
2871
2877
  return;
2872
2878
  }
2873
2879
  Object.assign(this, kwargs);
2874
2880
  }
2875
- static fromProto(proto) {
2876
- let m = new EnsurePersonalCalendarExistsResponse();
2877
- m = Object.assign(m, proto);
2878
- return m;
2879
- }
2880
2881
  toApiJson() {
2881
2882
  const toReturn = {};
2882
2883
  if (typeof this.calendarId !== 'undefined') {
@@ -2886,17 +2887,17 @@ class EnsurePersonalCalendarExistsResponse {
2886
2887
  }
2887
2888
  }
2888
2889
  class ListAvailabilityRequestFilters {
2890
+ static fromProto(proto) {
2891
+ let m = new ListAvailabilityRequestFilters();
2892
+ m = Object.assign(m, proto);
2893
+ return m;
2894
+ }
2889
2895
  constructor(kwargs) {
2890
2896
  if (!kwargs) {
2891
2897
  return;
2892
2898
  }
2893
2899
  Object.assign(this, kwargs);
2894
2900
  }
2895
- static fromProto(proto) {
2896
- let m = new ListAvailabilityRequestFilters();
2897
- m = Object.assign(m, proto);
2898
- return m;
2899
- }
2900
2901
  toApiJson() {
2901
2902
  const toReturn = {};
2902
2903
  if (typeof this.hostId !== 'undefined') {
@@ -2909,12 +2910,6 @@ class ListAvailabilityRequestFilters {
2909
2910
  }
2910
2911
  }
2911
2912
  class ListBookedMeetingsRequestFilters {
2912
- constructor(kwargs) {
2913
- if (!kwargs) {
2914
- return;
2915
- }
2916
- Object.assign(this, kwargs);
2917
- }
2918
2913
  static fromProto(proto) {
2919
2914
  let m = new ListBookedMeetingsRequestFilters();
2920
2915
  m = Object.assign(m, proto);
@@ -2923,6 +2918,12 @@ class ListBookedMeetingsRequestFilters {
2923
2918
  }
2924
2919
  return m;
2925
2920
  }
2921
+ constructor(kwargs) {
2922
+ if (!kwargs) {
2923
+ return;
2924
+ }
2925
+ Object.assign(this, kwargs);
2926
+ }
2926
2927
  toApiJson() {
2927
2928
  const toReturn = {};
2928
2929
  if (typeof this.meetingTypeIds !== 'undefined') {
@@ -2938,17 +2939,17 @@ class ListBookedMeetingsRequestFilters {
2938
2939
  }
2939
2940
  }
2940
2941
  class GetHostMeetingRequest {
2942
+ static fromProto(proto) {
2943
+ let m = new GetHostMeetingRequest();
2944
+ m = Object.assign(m, proto);
2945
+ return m;
2946
+ }
2941
2947
  constructor(kwargs) {
2942
2948
  if (!kwargs) {
2943
2949
  return;
2944
2950
  }
2945
2951
  Object.assign(this, kwargs);
2946
2952
  }
2947
- static fromProto(proto) {
2948
- let m = new GetHostMeetingRequest();
2949
- m = Object.assign(m, proto);
2950
- return m;
2951
- }
2952
2953
  toApiJson() {
2953
2954
  const toReturn = {};
2954
2955
  if (typeof this.meetingId !== 'undefined') {
@@ -2961,12 +2962,6 @@ class GetHostMeetingRequest {
2961
2962
  }
2962
2963
  }
2963
2964
  class GetHostMeetingResponse {
2964
- constructor(kwargs) {
2965
- if (!kwargs) {
2966
- return;
2967
- }
2968
- Object.assign(this, kwargs);
2969
- }
2970
2965
  static fromProto(proto) {
2971
2966
  let m = new GetHostMeetingResponse();
2972
2967
  m = Object.assign(m, proto);
@@ -2975,6 +2970,12 @@ class GetHostMeetingResponse {
2975
2970
  }
2976
2971
  return m;
2977
2972
  }
2973
+ constructor(kwargs) {
2974
+ if (!kwargs) {
2975
+ return;
2976
+ }
2977
+ Object.assign(this, kwargs);
2978
+ }
2978
2979
  toApiJson() {
2979
2980
  const toReturn = {};
2980
2981
  if (typeof this.meeting !== 'undefined' && this.meeting !== null) {
@@ -2984,17 +2985,17 @@ class GetHostMeetingResponse {
2984
2985
  }
2985
2986
  }
2986
2987
  class GetHostPreferencesRequest {
2988
+ static fromProto(proto) {
2989
+ let m = new GetHostPreferencesRequest();
2990
+ m = Object.assign(m, proto);
2991
+ return m;
2992
+ }
2987
2993
  constructor(kwargs) {
2988
2994
  if (!kwargs) {
2989
2995
  return;
2990
2996
  }
2991
2997
  Object.assign(this, kwargs);
2992
2998
  }
2993
- static fromProto(proto) {
2994
- let m = new GetHostPreferencesRequest();
2995
- m = Object.assign(m, proto);
2996
- return m;
2997
- }
2998
2999
  toApiJson() {
2999
3000
  const toReturn = {};
3000
3001
  if (typeof this.hostId !== 'undefined') {
@@ -3004,12 +3005,6 @@ class GetHostPreferencesRequest {
3004
3005
  }
3005
3006
  }
3006
3007
  class GetHostPreferencesResponse {
3007
- constructor(kwargs) {
3008
- if (!kwargs) {
3009
- return;
3010
- }
3011
- Object.assign(this, kwargs);
3012
- }
3013
3008
  static fromProto(proto) {
3014
3009
  let m = new GetHostPreferencesResponse();
3015
3010
  m = Object.assign(m, proto);
@@ -3018,6 +3013,12 @@ class GetHostPreferencesResponse {
3018
3013
  }
3019
3014
  return m;
3020
3015
  }
3016
+ constructor(kwargs) {
3017
+ if (!kwargs) {
3018
+ return;
3019
+ }
3020
+ Object.assign(this, kwargs);
3021
+ }
3021
3022
  toApiJson() {
3022
3023
  const toReturn = {};
3023
3024
  if (typeof this.preferences !== 'undefined' && this.preferences !== null) {
@@ -3027,17 +3028,17 @@ class GetHostPreferencesResponse {
3027
3028
  }
3028
3029
  }
3029
3030
  class GetHostsForCalendarRequest {
3031
+ static fromProto(proto) {
3032
+ let m = new GetHostsForCalendarRequest();
3033
+ m = Object.assign(m, proto);
3034
+ return m;
3035
+ }
3030
3036
  constructor(kwargs) {
3031
3037
  if (!kwargs) {
3032
3038
  return;
3033
3039
  }
3034
3040
  Object.assign(this, kwargs);
3035
3041
  }
3036
- static fromProto(proto) {
3037
- let m = new GetHostsForCalendarRequest();
3038
- m = Object.assign(m, proto);
3039
- return m;
3040
- }
3041
3042
  toApiJson() {
3042
3043
  const toReturn = {};
3043
3044
  if (typeof this.calendarId !== 'undefined') {
@@ -3047,12 +3048,6 @@ class GetHostsForCalendarRequest {
3047
3048
  }
3048
3049
  }
3049
3050
  class GetHostsForCalendarResponse {
3050
- constructor(kwargs) {
3051
- if (!kwargs) {
3052
- return;
3053
- }
3054
- Object.assign(this, kwargs);
3055
- }
3056
3051
  static fromProto(proto) {
3057
3052
  let m = new GetHostsForCalendarResponse();
3058
3053
  m = Object.assign(m, proto);
@@ -3061,6 +3056,12 @@ class GetHostsForCalendarResponse {
3061
3056
  }
3062
3057
  return m;
3063
3058
  }
3059
+ constructor(kwargs) {
3060
+ if (!kwargs) {
3061
+ return;
3062
+ }
3063
+ Object.assign(this, kwargs);
3064
+ }
3064
3065
  toApiJson() {
3065
3066
  const toReturn = {};
3066
3067
  if (typeof this.hostUsers !== 'undefined' && this.hostUsers !== null) {
@@ -3070,17 +3071,17 @@ class GetHostsForCalendarResponse {
3070
3071
  }
3071
3072
  }
3072
3073
  class GetMeetingTypesForCalendarsRequest {
3074
+ static fromProto(proto) {
3075
+ let m = new GetMeetingTypesForCalendarsRequest();
3076
+ m = Object.assign(m, proto);
3077
+ return m;
3078
+ }
3073
3079
  constructor(kwargs) {
3074
3080
  if (!kwargs) {
3075
3081
  return;
3076
3082
  }
3077
3083
  Object.assign(this, kwargs);
3078
3084
  }
3079
- static fromProto(proto) {
3080
- let m = new GetMeetingTypesForCalendarsRequest();
3081
- m = Object.assign(m, proto);
3082
- return m;
3083
- }
3084
3085
  toApiJson() {
3085
3086
  const toReturn = {};
3086
3087
  if (typeof this.calendarIds !== 'undefined') {
@@ -3090,12 +3091,6 @@ class GetMeetingTypesForCalendarsRequest {
3090
3091
  }
3091
3092
  }
3092
3093
  class GetMeetingTypesForCalendarsResponse {
3093
- constructor(kwargs) {
3094
- if (!kwargs) {
3095
- return;
3096
- }
3097
- Object.assign(this, kwargs);
3098
- }
3099
3094
  static fromProto(proto) {
3100
3095
  let m = new GetMeetingTypesForCalendarsResponse();
3101
3096
  m = Object.assign(m, proto);
@@ -3104,6 +3099,12 @@ class GetMeetingTypesForCalendarsResponse {
3104
3099
  }
3105
3100
  return m;
3106
3101
  }
3102
+ constructor(kwargs) {
3103
+ if (!kwargs) {
3104
+ return;
3105
+ }
3106
+ Object.assign(this, kwargs);
3107
+ }
3107
3108
  toApiJson() {
3108
3109
  const toReturn = {};
3109
3110
  if (typeof this.calendarMeetingTypesMap !== 'undefined' && this.calendarMeetingTypesMap !== null) {
@@ -3113,17 +3114,11 @@ class GetMeetingTypesForCalendarsResponse {
3113
3114
  }
3114
3115
  }
3115
3116
  class HostBookMeetingRequest {
3116
- constructor(kwargs) {
3117
- if (!kwargs) {
3118
- return;
3119
- }
3120
- Object.assign(this, kwargs);
3121
- }
3122
3117
  static fromProto(proto) {
3123
3118
  let m = new HostBookMeetingRequest();
3124
3119
  m = Object.assign(m, proto);
3125
3120
  if (proto.meetingSource) {
3126
- m.meetingSource = enumStringToValue$a(MeetingSource, proto.meetingSource);
3121
+ m.meetingSource = enumStringToValue(MeetingSource, proto.meetingSource);
3127
3122
  }
3128
3123
  if (proto.timeSlot) {
3129
3124
  m.timeSlot = DateRange.fromProto(proto.timeSlot);
@@ -3133,6 +3128,12 @@ class HostBookMeetingRequest {
3133
3128
  }
3134
3129
  return m;
3135
3130
  }
3131
+ constructor(kwargs) {
3132
+ if (!kwargs) {
3133
+ return;
3134
+ }
3135
+ Object.assign(this, kwargs);
3136
+ }
3136
3137
  toApiJson() {
3137
3138
  const toReturn = {};
3138
3139
  if (typeof this.meetingSource !== 'undefined') {
@@ -3157,17 +3158,17 @@ class HostBookMeetingRequest {
3157
3158
  }
3158
3159
  }
3159
3160
  class HostBookMeetingResponse {
3161
+ static fromProto(proto) {
3162
+ let m = new HostBookMeetingResponse();
3163
+ m = Object.assign(m, proto);
3164
+ return m;
3165
+ }
3160
3166
  constructor(kwargs) {
3161
3167
  if (!kwargs) {
3162
3168
  return;
3163
3169
  }
3164
3170
  Object.assign(this, kwargs);
3165
3171
  }
3166
- static fromProto(proto) {
3167
- let m = new HostBookMeetingResponse();
3168
- m = Object.assign(m, proto);
3169
- return m;
3170
- }
3171
3172
  toApiJson() {
3172
3173
  const toReturn = {};
3173
3174
  if (typeof this.meetingId !== 'undefined') {
@@ -3177,17 +3178,17 @@ class HostBookMeetingResponse {
3177
3178
  }
3178
3179
  }
3179
3180
  class HostGetCalendarRequest {
3181
+ static fromProto(proto) {
3182
+ let m = new HostGetCalendarRequest();
3183
+ m = Object.assign(m, proto);
3184
+ return m;
3185
+ }
3180
3186
  constructor(kwargs) {
3181
3187
  if (!kwargs) {
3182
3188
  return;
3183
3189
  }
3184
3190
  Object.assign(this, kwargs);
3185
3191
  }
3186
- static fromProto(proto) {
3187
- let m = new HostGetCalendarRequest();
3188
- m = Object.assign(m, proto);
3189
- return m;
3190
- }
3191
3192
  toApiJson() {
3192
3193
  const toReturn = {};
3193
3194
  if (typeof this.calendarId !== 'undefined') {
@@ -3197,12 +3198,6 @@ class HostGetCalendarRequest {
3197
3198
  }
3198
3199
  }
3199
3200
  class HostGetCalendarResponse {
3200
- constructor(kwargs) {
3201
- if (!kwargs) {
3202
- return;
3203
- }
3204
- Object.assign(this, kwargs);
3205
- }
3206
3201
  static fromProto(proto) {
3207
3202
  let m = new HostGetCalendarResponse();
3208
3203
  m = Object.assign(m, proto);
@@ -3211,6 +3206,12 @@ class HostGetCalendarResponse {
3211
3206
  }
3212
3207
  return m;
3213
3208
  }
3209
+ constructor(kwargs) {
3210
+ if (!kwargs) {
3211
+ return;
3212
+ }
3213
+ Object.assign(this, kwargs);
3214
+ }
3214
3215
  toApiJson() {
3215
3216
  const toReturn = {};
3216
3217
  if (typeof this.calendar !== 'undefined' && this.calendar !== null) {
@@ -3220,17 +3221,17 @@ class HostGetCalendarResponse {
3220
3221
  }
3221
3222
  }
3222
3223
  class HostGetMeetingTypeRequest {
3224
+ static fromProto(proto) {
3225
+ let m = new HostGetMeetingTypeRequest();
3226
+ m = Object.assign(m, proto);
3227
+ return m;
3228
+ }
3223
3229
  constructor(kwargs) {
3224
3230
  if (!kwargs) {
3225
3231
  return;
3226
3232
  }
3227
3233
  Object.assign(this, kwargs);
3228
3234
  }
3229
- static fromProto(proto) {
3230
- let m = new HostGetMeetingTypeRequest();
3231
- m = Object.assign(m, proto);
3232
- return m;
3233
- }
3234
3235
  toApiJson() {
3235
3236
  const toReturn = {};
3236
3237
  if (typeof this.calendarSlug !== 'undefined') {
@@ -3243,12 +3244,6 @@ class HostGetMeetingTypeRequest {
3243
3244
  }
3244
3245
  }
3245
3246
  class HostGetMeetingTypeResponse {
3246
- constructor(kwargs) {
3247
- if (!kwargs) {
3248
- return;
3249
- }
3250
- Object.assign(this, kwargs);
3251
- }
3252
3247
  static fromProto(proto) {
3253
3248
  let m = new HostGetMeetingTypeResponse();
3254
3249
  m = Object.assign(m, proto);
@@ -3257,6 +3252,12 @@ class HostGetMeetingTypeResponse {
3257
3252
  }
3258
3253
  return m;
3259
3254
  }
3255
+ constructor(kwargs) {
3256
+ if (!kwargs) {
3257
+ return;
3258
+ }
3259
+ Object.assign(this, kwargs);
3260
+ }
3260
3261
  toApiJson() {
3261
3262
  const toReturn = {};
3262
3263
  if (typeof this.meetingType !== 'undefined' && this.meetingType !== null) {
@@ -3266,17 +3267,17 @@ class HostGetMeetingTypeResponse {
3266
3267
  }
3267
3268
  }
3268
3269
  class HostListMeetingTypesRequest {
3270
+ static fromProto(proto) {
3271
+ let m = new HostListMeetingTypesRequest();
3272
+ m = Object.assign(m, proto);
3273
+ return m;
3274
+ }
3269
3275
  constructor(kwargs) {
3270
3276
  if (!kwargs) {
3271
3277
  return;
3272
3278
  }
3273
3279
  Object.assign(this, kwargs);
3274
3280
  }
3275
- static fromProto(proto) {
3276
- let m = new HostListMeetingTypesRequest();
3277
- m = Object.assign(m, proto);
3278
- return m;
3279
- }
3280
3281
  toApiJson() {
3281
3282
  const toReturn = {};
3282
3283
  if (typeof this.hostId !== 'undefined') {
@@ -3286,12 +3287,6 @@ class HostListMeetingTypesRequest {
3286
3287
  }
3287
3288
  }
3288
3289
  class HostListMeetingTypesResponse {
3289
- constructor(kwargs) {
3290
- if (!kwargs) {
3291
- return;
3292
- }
3293
- Object.assign(this, kwargs);
3294
- }
3295
3290
  static fromProto(proto) {
3296
3291
  let m = new HostListMeetingTypesResponse();
3297
3292
  m = Object.assign(m, proto);
@@ -3300,6 +3295,12 @@ class HostListMeetingTypesResponse {
3300
3295
  }
3301
3296
  return m;
3302
3297
  }
3298
+ constructor(kwargs) {
3299
+ if (!kwargs) {
3300
+ return;
3301
+ }
3302
+ Object.assign(this, kwargs);
3303
+ }
3303
3304
  toApiJson() {
3304
3305
  const toReturn = {};
3305
3306
  if (typeof this.meetingTypes !== 'undefined' && this.meetingTypes !== null) {
@@ -3309,17 +3310,17 @@ class HostListMeetingTypesResponse {
3309
3310
  }
3310
3311
  }
3311
3312
  class IsHostConfiguredRequest {
3313
+ static fromProto(proto) {
3314
+ let m = new IsHostConfiguredRequest();
3315
+ m = Object.assign(m, proto);
3316
+ return m;
3317
+ }
3312
3318
  constructor(kwargs) {
3313
3319
  if (!kwargs) {
3314
3320
  return;
3315
3321
  }
3316
3322
  Object.assign(this, kwargs);
3317
3323
  }
3318
- static fromProto(proto) {
3319
- let m = new IsHostConfiguredRequest();
3320
- m = Object.assign(m, proto);
3321
- return m;
3322
- }
3323
3324
  toApiJson() {
3324
3325
  const toReturn = {};
3325
3326
  if (typeof this.hostId !== 'undefined') {
@@ -3329,17 +3330,17 @@ class IsHostConfiguredRequest {
3329
3330
  }
3330
3331
  }
3331
3332
  class IsHostConfiguredResponse {
3333
+ static fromProto(proto) {
3334
+ let m = new IsHostConfiguredResponse();
3335
+ m = Object.assign(m, proto);
3336
+ return m;
3337
+ }
3332
3338
  constructor(kwargs) {
3333
3339
  if (!kwargs) {
3334
3340
  return;
3335
3341
  }
3336
3342
  Object.assign(this, kwargs);
3337
3343
  }
3338
- static fromProto(proto) {
3339
- let m = new IsHostConfiguredResponse();
3340
- m = Object.assign(m, proto);
3341
- return m;
3342
- }
3343
3344
  toApiJson() {
3344
3345
  const toReturn = {};
3345
3346
  if (typeof this.isConfigured !== 'undefined') {
@@ -3349,12 +3350,6 @@ class IsHostConfiguredResponse {
3349
3350
  }
3350
3351
  }
3351
3352
  class ListAvailabilityRequest {
3352
- constructor(kwargs) {
3353
- if (!kwargs) {
3354
- return;
3355
- }
3356
- Object.assign(this, kwargs);
3357
- }
3358
3353
  static fromProto(proto) {
3359
3354
  let m = new ListAvailabilityRequest();
3360
3355
  m = Object.assign(m, proto);
@@ -3369,6 +3364,12 @@ class ListAvailabilityRequest {
3369
3364
  }
3370
3365
  return m;
3371
3366
  }
3367
+ constructor(kwargs) {
3368
+ if (!kwargs) {
3369
+ return;
3370
+ }
3371
+ Object.assign(this, kwargs);
3372
+ }
3372
3373
  toApiJson() {
3373
3374
  const toReturn = {};
3374
3375
  if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
@@ -3384,12 +3385,6 @@ class ListAvailabilityRequest {
3384
3385
  }
3385
3386
  }
3386
3387
  class ListAvailabilityResponse {
3387
- constructor(kwargs) {
3388
- if (!kwargs) {
3389
- return;
3390
- }
3391
- Object.assign(this, kwargs);
3392
- }
3393
3388
  static fromProto(proto) {
3394
3389
  let m = new ListAvailabilityResponse();
3395
3390
  m = Object.assign(m, proto);
@@ -3401,6 +3396,12 @@ class ListAvailabilityResponse {
3401
3396
  }
3402
3397
  return m;
3403
3398
  }
3399
+ constructor(kwargs) {
3400
+ if (!kwargs) {
3401
+ return;
3402
+ }
3403
+ Object.assign(this, kwargs);
3404
+ }
3404
3405
  toApiJson() {
3405
3406
  const toReturn = {};
3406
3407
  if (typeof this.availabilityRules !== 'undefined' && this.availabilityRules !== null) {
@@ -3413,12 +3414,6 @@ class ListAvailabilityResponse {
3413
3414
  }
3414
3415
  }
3415
3416
  class ListBookedMeetingsRequest {
3416
- constructor(kwargs) {
3417
- if (!kwargs) {
3418
- return;
3419
- }
3420
- Object.assign(this, kwargs);
3421
- }
3422
3417
  static fromProto(proto) {
3423
3418
  let m = new ListBookedMeetingsRequest();
3424
3419
  m = Object.assign(m, proto);
@@ -3433,6 +3428,12 @@ class ListBookedMeetingsRequest {
3433
3428
  }
3434
3429
  return m;
3435
3430
  }
3431
+ constructor(kwargs) {
3432
+ if (!kwargs) {
3433
+ return;
3434
+ }
3435
+ Object.assign(this, kwargs);
3436
+ }
3436
3437
  toApiJson() {
3437
3438
  const toReturn = {};
3438
3439
  if (typeof this.filters !== 'undefined' && this.filters !== null) {
@@ -3448,12 +3449,6 @@ class ListBookedMeetingsRequest {
3448
3449
  }
3449
3450
  }
3450
3451
  class ListBookedMeetingsResponse {
3451
- constructor(kwargs) {
3452
- if (!kwargs) {
3453
- return;
3454
- }
3455
- Object.assign(this, kwargs);
3456
- }
3457
3452
  static fromProto(proto) {
3458
3453
  let m = new ListBookedMeetingsResponse();
3459
3454
  m = Object.assign(m, proto);
@@ -3465,6 +3460,12 @@ class ListBookedMeetingsResponse {
3465
3460
  }
3466
3461
  return m;
3467
3462
  }
3463
+ constructor(kwargs) {
3464
+ if (!kwargs) {
3465
+ return;
3466
+ }
3467
+ Object.assign(this, kwargs);
3468
+ }
3468
3469
  toApiJson() {
3469
3470
  const toReturn = {};
3470
3471
  if (typeof this.meetings !== 'undefined' && this.meetings !== null) {
@@ -3477,12 +3478,6 @@ class ListBookedMeetingsResponse {
3477
3478
  }
3478
3479
  }
3479
3480
  class Meeting {
3480
- constructor(kwargs) {
3481
- if (!kwargs) {
3482
- return;
3483
- }
3484
- Object.assign(this, kwargs);
3485
- }
3486
3481
  static fromProto(proto) {
3487
3482
  let m = new Meeting();
3488
3483
  m = Object.assign(m, proto);
@@ -3512,6 +3507,12 @@ class Meeting {
3512
3507
  }
3513
3508
  return m;
3514
3509
  }
3510
+ constructor(kwargs) {
3511
+ if (!kwargs) {
3512
+ return;
3513
+ }
3514
+ Object.assign(this, kwargs);
3515
+ }
3515
3516
  toApiJson() {
3516
3517
  const toReturn = {};
3517
3518
  if (typeof this.id !== 'undefined') {
@@ -3560,12 +3561,6 @@ class Meeting {
3560
3561
  }
3561
3562
  }
3562
3563
  class MeetingTypeList {
3563
- constructor(kwargs) {
3564
- if (!kwargs) {
3565
- return;
3566
- }
3567
- Object.assign(this, kwargs);
3568
- }
3569
3564
  static fromProto(proto) {
3570
3565
  let m = new MeetingTypeList();
3571
3566
  m = Object.assign(m, proto);
@@ -3574,6 +3569,12 @@ class MeetingTypeList {
3574
3569
  }
3575
3570
  return m;
3576
3571
  }
3572
+ constructor(kwargs) {
3573
+ if (!kwargs) {
3574
+ return;
3575
+ }
3576
+ Object.assign(this, kwargs);
3577
+ }
3577
3578
  toApiJson() {
3578
3579
  const toReturn = {};
3579
3580
  if (typeof this.meetingTypes !== 'undefined' && this.meetingTypes !== null) {
@@ -3583,17 +3584,17 @@ class MeetingTypeList {
3583
3584
  }
3584
3585
  }
3585
3586
  class MeetingMetadataEntry {
3587
+ static fromProto(proto) {
3588
+ let m = new MeetingMetadataEntry();
3589
+ m = Object.assign(m, proto);
3590
+ return m;
3591
+ }
3586
3592
  constructor(kwargs) {
3587
3593
  if (!kwargs) {
3588
3594
  return;
3589
3595
  }
3590
3596
  Object.assign(this, kwargs);
3591
3597
  }
3592
- static fromProto(proto) {
3593
- let m = new MeetingMetadataEntry();
3594
- m = Object.assign(m, proto);
3595
- return m;
3596
- }
3597
3598
  toApiJson() {
3598
3599
  const toReturn = {};
3599
3600
  if (typeof this.key !== 'undefined') {
@@ -3606,17 +3607,17 @@ class MeetingMetadataEntry {
3606
3607
  }
3607
3608
  }
3608
3609
  class UpdateMeetingMetadataRequestMetadataEntry {
3610
+ static fromProto(proto) {
3611
+ let m = new UpdateMeetingMetadataRequestMetadataEntry();
3612
+ m = Object.assign(m, proto);
3613
+ return m;
3614
+ }
3609
3615
  constructor(kwargs) {
3610
3616
  if (!kwargs) {
3611
3617
  return;
3612
3618
  }
3613
3619
  Object.assign(this, kwargs);
3614
3620
  }
3615
- static fromProto(proto) {
3616
- let m = new UpdateMeetingMetadataRequestMetadataEntry();
3617
- m = Object.assign(m, proto);
3618
- return m;
3619
- }
3620
3621
  toApiJson() {
3621
3622
  const toReturn = {};
3622
3623
  if (typeof this.key !== 'undefined') {
@@ -3629,12 +3630,6 @@ class UpdateMeetingMetadataRequestMetadataEntry {
3629
3630
  }
3630
3631
  }
3631
3632
  class RescheduleMeetingRequest {
3632
- constructor(kwargs) {
3633
- if (!kwargs) {
3634
- return;
3635
- }
3636
- Object.assign(this, kwargs);
3637
- }
3638
3633
  static fromProto(proto) {
3639
3634
  let m = new RescheduleMeetingRequest();
3640
3635
  m = Object.assign(m, proto);
@@ -3643,6 +3638,12 @@ class RescheduleMeetingRequest {
3643
3638
  }
3644
3639
  return m;
3645
3640
  }
3641
+ constructor(kwargs) {
3642
+ if (!kwargs) {
3643
+ return;
3644
+ }
3645
+ Object.assign(this, kwargs);
3646
+ }
3646
3647
  toApiJson() {
3647
3648
  const toReturn = {};
3648
3649
  if (typeof this.meetingId !== 'undefined') {
@@ -3655,17 +3656,11 @@ class RescheduleMeetingRequest {
3655
3656
  }
3656
3657
  }
3657
3658
  class SetGeneralAvailabilityRequest {
3658
- constructor(kwargs) {
3659
- if (!kwargs) {
3660
- return;
3661
- }
3662
- Object.assign(this, kwargs);
3663
- }
3664
3659
  static fromProto(proto) {
3665
3660
  let m = new SetGeneralAvailabilityRequest();
3666
3661
  m = Object.assign(m, proto);
3667
3662
  if (proto.days) {
3668
- m.days = proto.days.map((v) => enumStringToValue$a(DayOfWeek, v));
3663
+ m.days = proto.days.map((v) => enumStringToValue(DayOfWeek, v));
3669
3664
  }
3670
3665
  if (proto.timeSlot) {
3671
3666
  m.timeSlot = TimeRange.fromProto(proto.timeSlot);
@@ -3678,6 +3673,12 @@ class SetGeneralAvailabilityRequest {
3678
3673
  }
3679
3674
  return m;
3680
3675
  }
3676
+ constructor(kwargs) {
3677
+ if (!kwargs) {
3678
+ return;
3679
+ }
3680
+ Object.assign(this, kwargs);
3681
+ }
3681
3682
  toApiJson() {
3682
3683
  const toReturn = {};
3683
3684
  if (typeof this.hostId !== 'undefined') {
@@ -3719,12 +3720,6 @@ class UpdateAvailabilityRequest {
3719
3720
  }
3720
3721
  }
3721
3722
  class UpdateCalendarRequest {
3722
- constructor(kwargs) {
3723
- if (!kwargs) {
3724
- return;
3725
- }
3726
- Object.assign(this, kwargs);
3727
- }
3728
3723
  static fromProto(proto) {
3729
3724
  let m = new UpdateCalendarRequest();
3730
3725
  m = Object.assign(m, proto);
@@ -3736,6 +3731,12 @@ class UpdateCalendarRequest {
3736
3731
  }
3737
3732
  return m;
3738
3733
  }
3734
+ constructor(kwargs) {
3735
+ if (!kwargs) {
3736
+ return;
3737
+ }
3738
+ Object.assign(this, kwargs);
3739
+ }
3739
3740
  toApiJson() {
3740
3741
  const toReturn = {};
3741
3742
  if (typeof this.calendarId !== 'undefined') {
@@ -3751,12 +3752,6 @@ class UpdateCalendarRequest {
3751
3752
  }
3752
3753
  }
3753
3754
  class UpdateHostPreferencesRequest {
3754
- constructor(kwargs) {
3755
- if (!kwargs) {
3756
- return;
3757
- }
3758
- Object.assign(this, kwargs);
3759
- }
3760
3755
  static fromProto(proto) {
3761
3756
  let m = new UpdateHostPreferencesRequest();
3762
3757
  m = Object.assign(m, proto);
@@ -3768,6 +3763,12 @@ class UpdateHostPreferencesRequest {
3768
3763
  }
3769
3764
  return m;
3770
3765
  }
3766
+ constructor(kwargs) {
3767
+ if (!kwargs) {
3768
+ return;
3769
+ }
3770
+ Object.assign(this, kwargs);
3771
+ }
3771
3772
  toApiJson() {
3772
3773
  const toReturn = {};
3773
3774
  if (typeof this.hostId !== 'undefined') {
@@ -3783,12 +3784,6 @@ class UpdateHostPreferencesRequest {
3783
3784
  }
3784
3785
  }
3785
3786
  class UpdateMeetingMetadataRequest {
3786
- constructor(kwargs) {
3787
- if (!kwargs) {
3788
- return;
3789
- }
3790
- Object.assign(this, kwargs);
3791
- }
3792
3787
  static fromProto(proto) {
3793
3788
  let m = new UpdateMeetingMetadataRequest();
3794
3789
  m = Object.assign(m, proto);
@@ -3797,6 +3792,12 @@ class UpdateMeetingMetadataRequest {
3797
3792
  }
3798
3793
  return m;
3799
3794
  }
3795
+ constructor(kwargs) {
3796
+ if (!kwargs) {
3797
+ return;
3798
+ }
3799
+ Object.assign(this, kwargs);
3800
+ }
3800
3801
  toApiJson() {
3801
3802
  const toReturn = {};
3802
3803
  if (typeof this.meetingId !== 'undefined') {
@@ -3809,12 +3810,6 @@ class UpdateMeetingMetadataRequest {
3809
3810
  }
3810
3811
  }
3811
3812
  class UpdateMeetingTypeRequest {
3812
- constructor(kwargs) {
3813
- if (!kwargs) {
3814
- return;
3815
- }
3816
- Object.assign(this, kwargs);
3817
- }
3818
3813
  static fromProto(proto) {
3819
3814
  let m = new UpdateMeetingTypeRequest();
3820
3815
  m = Object.assign(m, proto);
@@ -3826,6 +3821,12 @@ class UpdateMeetingTypeRequest {
3826
3821
  }
3827
3822
  return m;
3828
3823
  }
3824
+ constructor(kwargs) {
3825
+ if (!kwargs) {
3826
+ return;
3827
+ }
3828
+ Object.assign(this, kwargs);
3829
+ }
3829
3830
  toApiJson() {
3830
3831
  const toReturn = {};
3831
3832
  if (typeof this.id !== 'undefined') {
@@ -3841,23 +3842,23 @@ class UpdateMeetingTypeRequest {
3841
3842
  }
3842
3843
  }
3843
3844
  class WeekdayAvailability {
3844
- constructor(kwargs) {
3845
- if (!kwargs) {
3846
- return;
3847
- }
3848
- Object.assign(this, kwargs);
3849
- }
3850
3845
  static fromProto(proto) {
3851
3846
  let m = new WeekdayAvailability();
3852
3847
  m = Object.assign(m, proto);
3853
3848
  if (proto.day) {
3854
- m.day = enumStringToValue$a(DayOfWeek, proto.day);
3849
+ m.day = enumStringToValue(DayOfWeek, proto.day);
3855
3850
  }
3856
3851
  if (proto.timeSlots) {
3857
3852
  m.timeSlots = proto.timeSlots.map(TimeRange.fromProto);
3858
3853
  }
3859
3854
  return m;
3860
3855
  }
3856
+ constructor(kwargs) {
3857
+ if (!kwargs) {
3858
+ return;
3859
+ }
3860
+ Object.assign(this, kwargs);
3861
+ }
3861
3862
  toApiJson() {
3862
3863
  const toReturn = {};
3863
3864
  if (typeof this.day !== 'undefined') {
@@ -3872,72 +3873,36 @@ class WeekdayAvailability {
3872
3873
 
3873
3874
  // *********************************
3874
3875
 
3875
- class HostService {
3876
- constructor(environmentService) {
3877
- this.environmentService = environmentService;
3878
- }
3879
- host() {
3880
- if (this._host) {
3881
- return this._host;
3882
- }
3883
- switch (this.environmentService.getEnvironment()) {
3884
- case Environment.LOCAL:
3885
- this._host = 'meetings-api.vendasta-local.com';
3886
- break;
3887
- case Environment.TEST:
3888
- this._host = '';
3889
- break;
3890
- case Environment.DEMO:
3891
- this._host = 'meetings-demo.apigateway.co';
3892
- break;
3893
- case Environment.PROD:
3894
- this._host = 'meetings-prod.apigateway.co';
3895
- break;
3896
- }
3897
- return this._host;
3898
- }
3899
- httpsHost() {
3900
- if (this._httpsHost) {
3901
- return this._httpsHost;
3902
- }
3903
- switch (this.environmentService.getEnvironment()) {
3904
- case Environment.LOCAL:
3905
- this._httpsHost = 'meetings.vendasta-local.com';
3906
- break;
3907
- case Environment.TEST:
3908
- this._httpsHost = '';
3909
- break;
3910
- case Environment.DEMO:
3911
- this._httpsHost = 'meetings-demo.apigateway.co';
3912
- break;
3913
- case Environment.PROD:
3914
- this._httpsHost = 'meetings-prod.apigateway.co';
3915
- break;
3916
- }
3917
- return this._httpsHost;
3918
- }
3919
- hostWithScheme() {
3920
- const scheme = this.environmentService.getEnvironment() === Environment.LOCAL ? 'http://' : 'https://';
3921
- return scheme + this.host();
3922
- }
3923
- httpsHostWithScheme() {
3924
- const scheme = this.environmentService.getEnvironment() === Environment.LOCAL ? 'http://' : 'https://';
3925
- return scheme + this.httpsHost();
3926
- }
3927
- }
3928
- HostService.ɵprov = ɵɵdefineInjectable({ factory: function HostService_Factory() { return new HostService(ɵɵinject(EnvironmentService)); }, token: HostService, providedIn: "root" });
3929
- HostService.decorators = [
3930
- { type: Injectable, args: [{ providedIn: 'root' },] }
3931
- ];
3932
- HostService.ctorParameters = () => [
3933
- { type: EnvironmentService }
3934
- ];
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
+ let HostService$1 = class HostService {
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: "15.2.3", ngImport: i0, type: HostService$1, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3894
+ HostService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService$1, providedIn: 'root' });
3895
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService$1, decorators: [{
3896
+ type: Injectable,
3897
+ args: [{ providedIn: 'root' }]
3898
+ }] });
3935
3899
 
3936
3900
  // *********************************
3937
3901
  class MeetingSourceAPIApiService {
3938
3902
  constructor(http, hostService) {
3939
3903
  this.http = http;
3940
3904
  this.hostService = hostService;
3905
+ this._host = this.hostService.hostWithScheme;
3941
3906
  }
3942
3907
  apiOptions() {
3943
3908
  return {
@@ -3949,24 +3914,23 @@ class MeetingSourceAPIApiService {
3949
3914
  }
3950
3915
  list(r) {
3951
3916
  const request = (r.toApiJson) ? r : new MeetingSourceListRequest(r);
3952
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingSourceAPI/List", request.toApiJson(), this.apiOptions())
3953
- .pipe(map(resp => MeetingSourceListResponse.fromProto(resp)), share());
3954
- }
3955
- }
3956
- MeetingSourceAPIApiService.ɵprov = ɵɵdefineInjectable({ factory: function MeetingSourceAPIApiService_Factory() { return new MeetingSourceAPIApiService(ɵɵinject(HttpClient), ɵɵinject(HostService)); }, token: MeetingSourceAPIApiService, providedIn: "root" });
3957
- MeetingSourceAPIApiService.decorators = [
3958
- { type: Injectable, args: [{ providedIn: 'root' },] }
3959
- ];
3960
- MeetingSourceAPIApiService.ctorParameters = () => [
3961
- { type: HttpClient },
3962
- { type: HostService }
3963
- ];
3917
+ return this.http.post(this._host + "/meetings.v1.MeetingSourceAPI/List", request.toApiJson(), this.apiOptions())
3918
+ .pipe(map(resp => MeetingSourceListResponse.fromProto(resp)));
3919
+ }
3920
+ }
3921
+ MeetingSourceAPIApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", 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: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, providedIn: 'root' });
3923
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, decorators: [{
3924
+ type: Injectable,
3925
+ args: [{ providedIn: 'root' }]
3926
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
3964
3927
 
3965
3928
  // *********************************
3966
3929
  class ZoomApiService {
3967
3930
  constructor(http, hostService) {
3968
3931
  this.http = http;
3969
3932
  this.hostService = hostService;
3933
+ this._host = this.hostService.hostWithScheme;
3970
3934
  }
3971
3935
  apiOptions() {
3972
3936
  return {
@@ -3978,24 +3942,23 @@ class ZoomApiService {
3978
3942
  }
3979
3943
  createMeeting(r) {
3980
3944
  const request = (r.toApiJson) ? r : new CreateZoomMeetingRequest(r);
3981
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.Zoom/CreateMeeting", request.toApiJson(), this.apiOptions())
3982
- .pipe(map(resp => CreateZoomMeetingResponse.fromProto(resp)), share());
3983
- }
3984
- }
3985
- ZoomApiService.ɵprov = ɵɵdefineInjectable({ factory: function ZoomApiService_Factory() { return new ZoomApiService(ɵɵinject(HttpClient), ɵɵinject(HostService)); }, token: ZoomApiService, providedIn: "root" });
3986
- ZoomApiService.decorators = [
3987
- { type: Injectable, args: [{ providedIn: 'root' },] }
3988
- ];
3989
- ZoomApiService.ctorParameters = () => [
3990
- { type: HttpClient },
3991
- { type: HostService }
3992
- ];
3945
+ return this.http.post(this._host + "/meetings.v1.Zoom/CreateMeeting", request.toApiJson(), this.apiOptions())
3946
+ .pipe(map(resp => CreateZoomMeetingResponse.fromProto(resp)));
3947
+ }
3948
+ }
3949
+ ZoomApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", 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: "15.2.3", ngImport: i0, type: ZoomApiService, providedIn: 'root' });
3951
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, decorators: [{
3952
+ type: Injectable,
3953
+ args: [{ providedIn: 'root' }]
3954
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
3993
3955
 
3994
3956
  // *********************************
3995
3957
  class GoogleMeetApiService {
3996
3958
  constructor(http, hostService) {
3997
3959
  this.http = http;
3998
3960
  this.hostService = hostService;
3961
+ this._host = this.hostService.hostWithScheme;
3999
3962
  }
4000
3963
  apiOptions() {
4001
3964
  return {
@@ -4007,18 +3970,16 @@ class GoogleMeetApiService {
4007
3970
  }
4008
3971
  createMeeting(r) {
4009
3972
  const request = (r.toApiJson) ? r : new GoogleMeetCreateMeetingRequest(r);
4010
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.GoogleMeet/CreateMeeting", request.toApiJson(), this.apiOptions())
4011
- .pipe(map(resp => GoogleMeetCreateMeetingResponse.fromProto(resp)), share());
4012
- }
4013
- }
4014
- GoogleMeetApiService.ɵprov = ɵɵdefineInjectable({ factory: function GoogleMeetApiService_Factory() { return new GoogleMeetApiService(ɵɵinject(HttpClient), ɵɵinject(HostService)); }, token: GoogleMeetApiService, providedIn: "root" });
4015
- GoogleMeetApiService.decorators = [
4016
- { type: Injectable, args: [{ providedIn: 'root' },] }
4017
- ];
4018
- GoogleMeetApiService.ctorParameters = () => [
4019
- { type: HttpClient },
4020
- { type: HostService }
4021
- ];
3973
+ return this.http.post(this._host + "/meetings.v1.GoogleMeet/CreateMeeting", request.toApiJson(), this.apiOptions())
3974
+ .pipe(map(resp => GoogleMeetCreateMeetingResponse.fromProto(resp)));
3975
+ }
3976
+ }
3977
+ GoogleMeetApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", 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: "15.2.3", ngImport: i0, type: GoogleMeetApiService, providedIn: 'root' });
3979
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, decorators: [{
3980
+ type: Injectable,
3981
+ args: [{ providedIn: 'root' }]
3982
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
4022
3983
 
4023
3984
  function generateMeetingPassword() {
4024
3985
  const zoomMaxLength = 10;
@@ -4074,7 +4035,8 @@ class MeetingsService {
4074
4035
  const meetReq = createMeetInstantMeetingRequest(meetingTitle, now, gMeetAttendees);
4075
4036
  return this.meet.createMeeting(meetReq).pipe(map((resp) => ({ url: resp.meeting.hangoutLink, joinURL: resp.meeting.hangoutLink })));
4076
4037
  default:
4077
- return throwError('Unrecognized meeting source ' + meetingSource);
4038
+ // eslint-disable-next-line
4039
+ return throwError(`Unrecognized meeting source ${meetingSource}`);
4078
4040
  }
4079
4041
  }
4080
4042
  createBasicZoomScheduledMeeting(topic, agenda, startDateTime, duration, timezone, meetingPassword) {
@@ -4115,15 +4077,12 @@ class MeetingsService {
4115
4077
  return this.meet.createMeeting(req);
4116
4078
  }
4117
4079
  }
4118
- MeetingsService.ɵprov = ɵɵdefineInjectable({ factory: function MeetingsService_Factory() { return new MeetingsService(ɵɵinject(MeetingSourceAPIApiService), ɵɵinject(ZoomApiService), ɵɵinject(GoogleMeetApiService)); }, token: MeetingsService, providedIn: "root" });
4119
- MeetingsService.decorators = [
4120
- { type: Injectable, args: [{ providedIn: 'root' },] }
4121
- ];
4122
- MeetingsService.ctorParameters = () => [
4123
- { type: MeetingSourceAPIApiService },
4124
- { type: ZoomApiService },
4125
- { type: GoogleMeetApiService }
4126
- ];
4080
+ MeetingsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", 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: "15.2.3", ngImport: i0, type: MeetingsService, providedIn: 'root' });
4082
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingsService, decorators: [{
4083
+ type: Injectable,
4084
+ args: [{ providedIn: 'root' }]
4085
+ }], ctorParameters: function () { return [{ type: MeetingSourceAPIApiService }, { type: ZoomApiService }, { type: GoogleMeetApiService }]; } });
4127
4086
  function createZoomInstantMeetingRequest(meetingTitle, now, meetingAgenda) {
4128
4087
  const recurrence = {
4129
4088
  type: ZoomMeetingRecurrenceType.ZOOM_MEETING_RECURRENCE_TYPE_DAILY,
@@ -4139,7 +4098,7 @@ function createZoomInstantMeetingRequest(meetingTitle, now, meetingAgenda) {
4139
4098
  agenda: meetingAgenda,
4140
4099
  trackingFields: [],
4141
4100
  recurrence: recurrence,
4142
- settings: undefined,
4101
+ settings: undefined, // Only used with recurring meetings
4143
4102
  };
4144
4103
  return new CreateZoomMeetingRequest(req);
4145
4104
  }
@@ -4176,238 +4135,6 @@ function createMeetInstantMeetingRequest(meetingTitle, startDateTime, attendees)
4176
4135
  return new GoogleMeetCreateMeetingRequest(req);
4177
4136
  }
4178
4137
 
4179
- // *********************************
4180
- class MeetingGuestApiService {
4181
- constructor(http, hostService) {
4182
- this.http = http;
4183
- this.hostService = hostService;
4184
- }
4185
- apiOptions() {
4186
- return {
4187
- headers: new HttpHeaders({
4188
- 'Content-Type': 'application/json'
4189
- }),
4190
- withCredentials: true
4191
- };
4192
- }
4193
- listMeetingTypes(r) {
4194
- const request = (r.toApiJson) ? r : new ListMeetingTypesRequest(r);
4195
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/ListMeetingTypes", request.toApiJson(), this.apiOptions())
4196
- .pipe(map(resp => ListMeetingTypesResponse.fromProto(resp)), share());
4197
- }
4198
- getMeetingType(r) {
4199
- const request = (r.toApiJson) ? r : new GetMeetingTypeRequest(r);
4200
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/GetMeetingType", request.toApiJson(), this.apiOptions())
4201
- .pipe(map(resp => GetMeetingTypeResponse.fromProto(resp)), share());
4202
- }
4203
- listAvailableTimeSlots(r) {
4204
- const request = (r.toApiJson) ? r : new ListAvailableTimeSlotsRequest(r);
4205
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/ListAvailableTimeSlots", request.toApiJson(), this.apiOptions())
4206
- .pipe(map(resp => ListAvailableTimeSlotsResponse.fromProto(resp)), share());
4207
- }
4208
- bookMeeting(r) {
4209
- const request = (r.toApiJson) ? r : new BookMeetingRequest(r);
4210
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/BookMeeting", request.toApiJson(), this.apiOptions())
4211
- .pipe(map(resp => BookMeetingResponse.fromProto(resp)), share());
4212
- }
4213
- cancelMeeting(r) {
4214
- const request = (r.toApiJson) ? r : new GuestCancelMeetingRequest(r);
4215
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/CancelMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
4216
- }
4217
- rescheduleMeeting(r) {
4218
- const request = (r.toApiJson) ? r : new GuestRescheduleMeetingRequest(r);
4219
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/RescheduleMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
4220
- }
4221
- getGuestBookedMeeting(r) {
4222
- const request = (r.toApiJson) ? r : new GuestGetBookedMeetingRequest(r);
4223
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/GetGuestBookedMeeting", request.toApiJson(), this.apiOptions())
4224
- .pipe(map(resp => GuestGetBookedMeetingResponse.fromProto(resp)), share());
4225
- }
4226
- getCalendar(r) {
4227
- const request = (r.toApiJson) ? r : new GetCalendarRequest(r);
4228
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/GetCalendar", request.toApiJson(), this.apiOptions())
4229
- .pipe(map(resp => GetCalendarResponse.fromProto(resp)), share());
4230
- }
4231
- getHost(r) {
4232
- const request = (r.toApiJson) ? r : new GetHostRequest(r);
4233
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/GetHost", request.toApiJson(), this.apiOptions())
4234
- .pipe(map(resp => GetHostResponse.fromProto(resp)), share());
4235
- }
4236
- isHostConfigured(r) {
4237
- const request = (r.toApiJson) ? r : new GuestIsHostConfiguredRequest(r);
4238
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingGuest/IsHostConfigured", request.toApiJson(), this.apiOptions())
4239
- .pipe(map(resp => GuestIsHostConfiguredResponse.fromProto(resp)), share());
4240
- }
4241
- }
4242
- MeetingGuestApiService.ɵprov = ɵɵdefineInjectable({ factory: function MeetingGuestApiService_Factory() { return new MeetingGuestApiService(ɵɵinject(HttpClient), ɵɵinject(HostService)); }, token: MeetingGuestApiService, providedIn: "root" });
4243
- MeetingGuestApiService.decorators = [
4244
- { type: Injectable, args: [{ providedIn: 'root' },] }
4245
- ];
4246
- MeetingGuestApiService.ctorParameters = () => [
4247
- { type: HttpClient },
4248
- { type: HostService }
4249
- ];
4250
-
4251
- // *********************************
4252
- class MeetingHostApiService {
4253
- constructor(http, hostService) {
4254
- this.http = http;
4255
- this.hostService = hostService;
4256
- }
4257
- apiOptions() {
4258
- return {
4259
- headers: new HttpHeaders({
4260
- 'Content-Type': 'application/json'
4261
- }),
4262
- withCredentials: true
4263
- };
4264
- }
4265
- buildHostId(r) {
4266
- const request = (r.toApiJson) ? r : new BuildHostIdRequest(r);
4267
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/BuildHostId", request.toApiJson(), this.apiOptions())
4268
- .pipe(map(resp => BuildHostIdResponse.fromProto(resp)), share());
4269
- }
4270
- doesCalendarExist(r) {
4271
- const request = (r.toApiJson) ? r : new DoesCalendarExistRequest(r);
4272
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/DoesCalendarExist", request.toApiJson(), this.apiOptions())
4273
- .pipe(map(resp => DoesCalendarExistResponse.fromProto(resp)), share());
4274
- }
4275
- createCalendar(r) {
4276
- const request = (r.toApiJson) ? r : new CreateCalendarRequest(r);
4277
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/CreateCalendar", request.toApiJson(), this.apiOptions())
4278
- .pipe(map(resp => CreateCalendarResponse.fromProto(resp)), share());
4279
- }
4280
- updateCalendar(r) {
4281
- const request = (r.toApiJson) ? r : new UpdateCalendarRequest(r);
4282
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/UpdateCalendar", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
4283
- }
4284
- getCalendar(r) {
4285
- const request = (r.toApiJson) ? r : new HostGetCalendarRequest(r);
4286
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/GetCalendar", request.toApiJson(), this.apiOptions())
4287
- .pipe(map(resp => HostGetCalendarResponse.fromProto(resp)), share());
4288
- }
4289
- ensurePersonalCalendarExists(r) {
4290
- const request = (r.toApiJson) ? r : new EnsurePersonalCalendarExistsRequest(r);
4291
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/EnsurePersonalCalendarExists", request.toApiJson(), this.apiOptions())
4292
- .pipe(map(resp => EnsurePersonalCalendarExistsResponse.fromProto(resp)), share());
4293
- }
4294
- ensureGroupCalendarsExist(r) {
4295
- const request = (r.toApiJson) ? r : new EnsureGroupCalendarsExistRequest(r);
4296
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/EnsureGroupCalendarsExist", request.toApiJson(), this.apiOptions())
4297
- .pipe(map(resp => EnsureGroupCalendarsExistResponse.fromProto(resp)), share());
4298
- }
4299
- getHostsForCalendar(r) {
4300
- const request = (r.toApiJson) ? r : new GetHostsForCalendarRequest(r);
4301
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/GetHostsForCalendar", request.toApiJson(), this.apiOptions())
4302
- .pipe(map(resp => GetHostsForCalendarResponse.fromProto(resp)), share());
4303
- }
4304
- getMeetingTypesForCalendars(r) {
4305
- const request = (r.toApiJson) ? r : new GetMeetingTypesForCalendarsRequest(r);
4306
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/GetMeetingTypesForCalendars", request.toApiJson(), this.apiOptions())
4307
- .pipe(map(resp => GetMeetingTypesForCalendarsResponse.fromProto(resp)), share());
4308
- }
4309
- listAvailability(r) {
4310
- const request = (r.toApiJson) ? r : new ListAvailabilityRequest(r);
4311
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/ListAvailability", request.toApiJson(), this.apiOptions())
4312
- .pipe(map(resp => ListAvailabilityResponse.fromProto(resp)), share());
4313
- }
4314
- bookMeeting(r) {
4315
- const request = (r.toApiJson) ? r : new HostBookMeetingRequest(r);
4316
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/BookMeeting", request.toApiJson(), this.apiOptions())
4317
- .pipe(map(resp => HostBookMeetingResponse.fromProto(resp)), share());
4318
- }
4319
- getHostMeeting(r) {
4320
- const request = (r.toApiJson) ? r : new GetHostMeetingRequest(r);
4321
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/GetHostMeeting", request.toApiJson(), this.apiOptions())
4322
- .pipe(map(resp => GetHostMeetingResponse.fromProto(resp)), share());
4323
- }
4324
- listBookedMeetings(r) {
4325
- const request = (r.toApiJson) ? r : new ListBookedMeetingsRequest(r);
4326
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/ListBookedMeetings", request.toApiJson(), this.apiOptions())
4327
- .pipe(map(resp => ListBookedMeetingsResponse.fromProto(resp)), share());
4328
- }
4329
- cancelMeeting(r) {
4330
- const request = (r.toApiJson) ? r : new CancelMeetingRequest(r);
4331
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/CancelMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
4332
- }
4333
- rescheduleMeeting(r) {
4334
- const request = (r.toApiJson) ? r : new RescheduleMeetingRequest(r);
4335
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/RescheduleMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
4336
- }
4337
- updateMeetingMetadata(r) {
4338
- const request = (r.toApiJson) ? r : new UpdateMeetingMetadataRequest(r);
4339
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/UpdateMeetingMetadata", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
4340
- }
4341
- setGeneralAvailability(r) {
4342
- const request = (r.toApiJson) ? r : new SetGeneralAvailabilityRequest(r);
4343
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/SetGeneralAvailability", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
4344
- }
4345
- createAvailability(r) {
4346
- const request = (r.toApiJson) ? r : new CreateAvailabilityRequest(r);
4347
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/CreateAvailability", request.toApiJson(), this.apiOptions())
4348
- .pipe(map(resp => CreateAvailabilityResponse.fromProto(resp)), share());
4349
- }
4350
- updateAvailability(r) {
4351
- const request = (r.toApiJson) ? r : new UpdateAvailabilityRequest(r);
4352
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/UpdateAvailability", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
4353
- }
4354
- deleteAvailability(r) {
4355
- const request = (r.toApiJson) ? r : new DeleteAvailabilityRequest(r);
4356
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/DeleteAvailability", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
4357
- }
4358
- isHostConfigured(r) {
4359
- const request = (r.toApiJson) ? r : new IsHostConfiguredRequest(r);
4360
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/IsHostConfigured", request.toApiJson(), this.apiOptions())
4361
- .pipe(map(resp => IsHostConfiguredResponse.fromProto(resp)), share());
4362
- }
4363
- getHostPreferences(r) {
4364
- const request = (r.toApiJson) ? r : new GetHostPreferencesRequest(r);
4365
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/GetHostPreferences", request.toApiJson(), this.apiOptions())
4366
- .pipe(map(resp => GetHostPreferencesResponse.fromProto(resp)), share());
4367
- }
4368
- updateHostPreferences(r) {
4369
- const request = (r.toApiJson) ? r : new UpdateHostPreferencesRequest(r);
4370
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/UpdateHostPreferences", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
4371
- }
4372
- getMeetingType(r) {
4373
- const request = (r.toApiJson) ? r : new HostGetMeetingTypeRequest(r);
4374
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/GetMeetingType", request.toApiJson(), this.apiOptions())
4375
- .pipe(map(resp => HostGetMeetingTypeResponse.fromProto(resp)), share());
4376
- }
4377
- listMeetingTypes(r) {
4378
- const request = (r.toApiJson) ? r : new HostListMeetingTypesRequest(r);
4379
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/ListMeetingTypes", request.toApiJson(), this.apiOptions())
4380
- .pipe(map(resp => HostListMeetingTypesResponse.fromProto(resp)), share());
4381
- }
4382
- createMeetingType(r) {
4383
- const request = (r.toApiJson) ? r : new CreateMeetingTypeRequest(r);
4384
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/CreateMeetingType", request.toApiJson(), this.apiOptions())
4385
- .pipe(map(resp => CreateMeetingTypeResponse.fromProto(resp)), share());
4386
- }
4387
- updateMeetingType(r) {
4388
- const request = (r.toApiJson) ? r : new UpdateMeetingTypeRequest(r);
4389
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/UpdateMeetingType", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
4390
- }
4391
- deleteMeetingType(r) {
4392
- const request = (r.toApiJson) ? r : new DeleteMeetingTypeRequest(r);
4393
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/DeleteMeetingType", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
4394
- }
4395
- createDefaultMeetingTypes(r) {
4396
- const request = (r.toApiJson) ? r : new CreateDefaultMeetingTypesRequest(r);
4397
- return this.http.post(this.hostService.hostWithScheme() + "/meetings.v1.MeetingHost/CreateDefaultMeetingTypes", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
4398
- }
4399
- }
4400
- MeetingHostApiService.ɵprov = ɵɵdefineInjectable({ factory: function MeetingHostApiService_Factory() { return new MeetingHostApiService(ɵɵinject(HttpClient), ɵɵinject(HostService)); }, token: MeetingHostApiService, providedIn: "root" });
4401
- MeetingHostApiService.decorators = [
4402
- { type: Injectable, args: [{ providedIn: 'root' },] }
4403
- ];
4404
- MeetingHostApiService.ctorParameters = () => [
4405
- { type: HttpClient },
4406
- { type: HostService }
4407
- ];
4408
-
4409
- // *********************************
4410
-
4411
4138
  function TimeSpanFromApi(tsAPI) {
4412
4139
  return {
4413
4140
  start: tsAPI.start,
@@ -4423,6 +4150,23 @@ function HostFromApi(hostAPI) {
4423
4150
  };
4424
4151
  }
4425
4152
 
4153
+ // Copied from core
4154
+ var Environment;
4155
+ (function (Environment) {
4156
+ Environment[Environment["LOCAL"] = 0] = "LOCAL";
4157
+ Environment[Environment["TEST"] = 1] = "TEST";
4158
+ Environment[Environment["DEMO"] = 2] = "DEMO";
4159
+ Environment[Environment["PROD"] = 3] = "PROD";
4160
+ })(Environment || (Environment = {}));
4161
+ function onProduction(env) {
4162
+ return env === Environment.PROD || env === 'prod';
4163
+ }
4164
+ function onProductionGlobal() {
4165
+ // environment expected to be set in the app in globals.ts
4166
+ // eslint-disable-next-line
4167
+ return typeof window !== 'undefined' && window.environment === 'prod';
4168
+ }
4169
+
4426
4170
  // A temporary method for building the url for a host, eventTypeId, and metadata
4427
4171
  function getBookingUrlImplementation(req) {
4428
4172
  const domain = getDomainFromEnvironment(req.environment);
@@ -4607,6 +4351,236 @@ class PagedResponse {
4607
4351
  }
4608
4352
  }
4609
4353
 
4354
+ // *********************************
4355
+ class MeetingGuestApiService {
4356
+ constructor(http, hostService) {
4357
+ this.http = http;
4358
+ this.hostService = hostService;
4359
+ this._host = this.hostService.hostWithScheme;
4360
+ }
4361
+ apiOptions() {
4362
+ return {
4363
+ headers: new HttpHeaders({
4364
+ 'Content-Type': 'application/json'
4365
+ }),
4366
+ withCredentials: true
4367
+ };
4368
+ }
4369
+ listMeetingTypes(r) {
4370
+ const request = (r.toApiJson) ? r : new ListMeetingTypesRequest(r);
4371
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/ListMeetingTypes", request.toApiJson(), this.apiOptions())
4372
+ .pipe(map(resp => ListMeetingTypesResponse.fromProto(resp)));
4373
+ }
4374
+ getMeetingType(r) {
4375
+ const request = (r.toApiJson) ? r : new GetMeetingTypeRequest(r);
4376
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetMeetingType", request.toApiJson(), this.apiOptions())
4377
+ .pipe(map(resp => GetMeetingTypeResponse.fromProto(resp)));
4378
+ }
4379
+ listAvailableTimeSlots(r) {
4380
+ const request = (r.toApiJson) ? r : new ListAvailableTimeSlotsRequest(r);
4381
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/ListAvailableTimeSlots", request.toApiJson(), this.apiOptions())
4382
+ .pipe(map(resp => ListAvailableTimeSlotsResponse.fromProto(resp)));
4383
+ }
4384
+ bookMeeting(r) {
4385
+ const request = (r.toApiJson) ? r : new BookMeetingRequest(r);
4386
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/BookMeeting", request.toApiJson(), this.apiOptions())
4387
+ .pipe(map(resp => BookMeetingResponse.fromProto(resp)));
4388
+ }
4389
+ cancelMeeting(r) {
4390
+ const request = (r.toApiJson) ? r : new GuestCancelMeetingRequest(r);
4391
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/CancelMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
4392
+ }
4393
+ rescheduleMeeting(r) {
4394
+ const request = (r.toApiJson) ? r : new GuestRescheduleMeetingRequest(r);
4395
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/RescheduleMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
4396
+ }
4397
+ getGuestBookedMeeting(r) {
4398
+ const request = (r.toApiJson) ? r : new GuestGetBookedMeetingRequest(r);
4399
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetGuestBookedMeeting", request.toApiJson(), this.apiOptions())
4400
+ .pipe(map(resp => GuestGetBookedMeetingResponse.fromProto(resp)));
4401
+ }
4402
+ getCalendar(r) {
4403
+ const request = (r.toApiJson) ? r : new GetCalendarRequest(r);
4404
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetCalendar", request.toApiJson(), this.apiOptions())
4405
+ .pipe(map(resp => GetCalendarResponse.fromProto(resp)));
4406
+ }
4407
+ getHost(r) {
4408
+ const request = (r.toApiJson) ? r : new GetHostRequest(r);
4409
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetHost", request.toApiJson(), this.apiOptions())
4410
+ .pipe(map(resp => GetHostResponse.fromProto(resp)));
4411
+ }
4412
+ isHostConfigured(r) {
4413
+ const request = (r.toApiJson) ? r : new GuestIsHostConfiguredRequest(r);
4414
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/IsHostConfigured", request.toApiJson(), this.apiOptions())
4415
+ .pipe(map(resp => GuestIsHostConfiguredResponse.fromProto(resp)));
4416
+ }
4417
+ }
4418
+ MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", 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: "15.2.3", ngImport: i0, type: MeetingGuestApiService, providedIn: 'root' });
4420
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", 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: "15.2.3", 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: "15.2.3", ngImport: i0, type: MeetingHostApiService, providedIn: 'root' });
4577
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, decorators: [{
4578
+ type: Injectable,
4579
+ args: [{ providedIn: 'root' }]
4580
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
4581
+
4582
+ // *********************************
4583
+
4610
4584
  function CalendarFromApi(calendarAPI) {
4611
4585
  return {
4612
4586
  id: calendarAPI.id || '',
@@ -4676,7 +4650,7 @@ function durationToString(duration) {
4676
4650
  }
4677
4651
  const seconds = duration.seconds || 0;
4678
4652
  const nanoseconds = duration.nanoseconds || 0;
4679
- return seconds + (nanoseconds / 1e9) + 's';
4653
+ return `${seconds + (nanoseconds / 1e9)}s`;
4680
4654
  }
4681
4655
  function durationStringToMinutes(req) {
4682
4656
  const d = durationFromString(req.duration);
@@ -4721,9 +4695,8 @@ function hostUserFromApi(hostUser) {
4721
4695
  }
4722
4696
 
4723
4697
  class GuestService {
4724
- constructor(guestAPIService, environmentService) {
4698
+ constructor(guestAPIService) {
4725
4699
  this.guestAPIService = guestAPIService;
4726
- this.environmentService = environmentService;
4727
4700
  }
4728
4701
  getMeetingType(req) {
4729
4702
  return this.guestAPIService.getMeetingType(req).pipe(map(resp => {
@@ -4731,7 +4704,7 @@ class GuestService {
4731
4704
  return {};
4732
4705
  }
4733
4706
  return MeetingTypeFromApi({
4734
- environment: this.environmentService.getEnvironment(),
4707
+ environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO,
4735
4708
  calendarId: req.calendarSlug,
4736
4709
  meetingTypeApi: resp.meetingType,
4737
4710
  metadata: req.metadata,
@@ -4746,7 +4719,7 @@ class GuestService {
4746
4719
  }
4747
4720
  return resp.meetingTypes.map(mt => {
4748
4721
  return MeetingTypeFromApi({
4749
- environment: this.environmentService.getEnvironment(),
4722
+ environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO,
4750
4723
  calendarId: req.hostId,
4751
4724
  meetingTypeApi: mt,
4752
4725
  metadata: req.metadata,
@@ -4759,7 +4732,7 @@ class GuestService {
4759
4732
  return this.guestAPIService.listAvailableTimeSlots(req).pipe(map(resp => resp.timeSlots ? resp.timeSlots.map(ts => TimeSpanFromApi(ts)) : []));
4760
4733
  }
4761
4734
  bookMeeting(req) {
4762
- return this.guestAPIService.bookMeeting(Object.assign(Object.assign({}, req), { attendees: req.attendees, formAnswers: answersToAPI(req.formAnswers) })).pipe(map((resp) => resp));
4735
+ return this.guestAPIService.bookMeeting(Object.assign(Object.assign({}, req), { attendees: req.attendees, formAnswers: answersToAPI(req.formAnswers) }));
4763
4736
  }
4764
4737
  cancelMeeting(req) {
4765
4738
  return this.guestAPIService.cancelMeeting(req).pipe(mapTo(null));
@@ -4789,19 +4762,16 @@ class GuestService {
4789
4762
  return this.guestAPIService.isHostConfigured(req).pipe(map((resp) => resp.isConfigured));
4790
4763
  }
4791
4764
  }
4792
- GuestService.ɵprov = ɵɵdefineInjectable({ factory: function GuestService_Factory() { return new GuestService(ɵɵinject(MeetingGuestApiService), ɵɵinject(EnvironmentServiceInterfaceToken)); }, token: GuestService, providedIn: "root" });
4793
- GuestService.decorators = [
4794
- { type: Injectable, args: [{ providedIn: 'root' },] }
4795
- ];
4796
- GuestService.ctorParameters = () => [
4797
- { type: MeetingGuestApiService },
4798
- { type: undefined, decorators: [{ type: Inject, args: [EnvironmentServiceInterfaceToken,] }] }
4799
- ];
4765
+ GuestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GuestService, deps: [{ token: MeetingGuestApiService }], target: i0.ɵɵFactoryTarget.Injectable });
4766
+ GuestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GuestService, providedIn: 'root' });
4767
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GuestService, decorators: [{
4768
+ type: Injectable,
4769
+ args: [{ providedIn: 'root' }]
4770
+ }], ctorParameters: function () { return [{ type: MeetingGuestApiService }]; } });
4800
4771
 
4801
- class HostService$1 {
4802
- constructor(hostAPIService, environmentService) {
4772
+ class HostService {
4773
+ constructor(hostAPIService) {
4803
4774
  this.hostAPIService = hostAPIService;
4804
- this.environmentService = environmentService;
4805
4775
  }
4806
4776
  // Use buildHostId to get an identifier that can be used in subsequent requests. See vendastaapis for more details
4807
4777
  buildHostId(req) {
@@ -4856,7 +4826,7 @@ class HostService$1 {
4856
4826
  var _a;
4857
4827
  const meetingTypes = (((_a = res.calendarMeetingTypesMap[calendarId]) === null || _a === void 0 ? void 0 : _a.meetingTypes) || []).map(mt => MeetingTypeFromApi({
4858
4828
  meetingTypeApi: mt,
4859
- environment: this.environmentService.getEnvironment(),
4829
+ environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO,
4860
4830
  calendarId,
4861
4831
  metadata: req.metadata,
4862
4832
  }));
@@ -4880,7 +4850,7 @@ class HostService$1 {
4880
4850
  return MeetingTypeFromApi({
4881
4851
  meetingTypeApi: mt,
4882
4852
  calendarId: req.hostId,
4883
- environment: this.environmentService.getEnvironment(),
4853
+ environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO,
4884
4854
  metadata: req.metadata,
4885
4855
  calendarSlug: req.calendarSlug,
4886
4856
  });
@@ -4898,7 +4868,7 @@ class HostService$1 {
4898
4868
  @param calendarSlug: used to replace hostId in the url. Use it when you are confident you know the host's slug.
4899
4869
  */
4900
4870
  getBookingUrl(req) {
4901
- return of(getBookingUrlImplementation(Object.assign(Object.assign({}, req), { calendarId: req.calendarId || req.hostId, environment: this.environmentService.getEnvironment(), calendarSlug: req.calendarSlug })));
4871
+ return of(getBookingUrlImplementation(Object.assign(Object.assign({}, req), { calendarId: req.calendarId || req.hostId, environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO, calendarSlug: req.calendarSlug })));
4902
4872
  }
4903
4873
  /*
4904
4874
  getGeneralBookingUrl returns a link that can be used to select a meeting type to book with the given calendar.
@@ -4910,7 +4880,7 @@ class HostService$1 {
4910
4880
  */
4911
4881
  getGeneralBookingUrl(req) {
4912
4882
  return of(getGeneralBookingUrlImplementation({
4913
- environment: this.environmentService.getEnvironment(),
4883
+ environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO,
4914
4884
  calendarId: req.calendarId,
4915
4885
  metadata: req.metadata,
4916
4886
  calendarSlug: req.calendarSlug,
@@ -4932,7 +4902,7 @@ class HostService$1 {
4932
4902
  calendarId,
4933
4903
  meetingTypeSlug,
4934
4904
  metadata,
4935
- environment: this.environmentService.getEnvironment(),
4905
+ environment: onProductionGlobal() ? Environment.PROD : Environment.DEMO,
4936
4906
  calendarSlug,
4937
4907
  }) });
4938
4908
  }, {}) });
@@ -5065,18 +5035,16 @@ class HostService$1 {
5065
5035
  }));
5066
5036
  }
5067
5037
  }
5068
- HostService$1prov = ɵɵdefineInjectable({ factory: function HostService_Factory() { return new HostService$1(ɵɵinject(MeetingHostApiService), ɵɵinject(EnvironmentServiceInterfaceToken)); }, token: HostService$1, providedIn: "root" });
5069
- HostService$1.decorators = [
5070
- { type: Injectable, args: [{ providedIn: 'root' },] }
5071
- ];
5072
- HostService$1.ctorParameters = () => [
5073
- { type: MeetingHostApiService },
5074
- { type: undefined, decorators: [{ type: Inject, args: [EnvironmentServiceInterfaceToken,] }] }
5075
- ];
5038
+ HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, deps: [{ token: MeetingHostApiService }], target: i0.ɵɵFactoryTarget.Injectable });
5039
+ HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, providedIn: 'root' });
5040
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, decorators: [{
5041
+ type: Injectable,
5042
+ args: [{ providedIn: 'root' }]
5043
+ }], ctorParameters: function () { return [{ type: MeetingHostApiService }]; } });
5076
5044
 
5077
5045
  /**
5078
5046
  * Generated bundle index. Do not edit.
5079
5047
  */
5080
5048
 
5081
- export { CalendarType, Contact, CreateCalendarRequest, CreateCalendarResponse, DayOfWeek, FormFieldType, GuestService, HostService$1 as HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, PagedResponse, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
5082
- //# sourceMappingURL=vendasta-meetings.js.map
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