@vendasta/meetings 0.72.0 → 0.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/_generated/host.service.mjs +25 -0
- package/esm2020/lib/_internal/enums/dayofweek.enum.mjs +18 -0
- package/esm2020/lib/_internal/enums/index.mjs +11 -0
- package/esm2020/lib/_internal/enums/meeting-source.enum.mjs +20 -0
- package/esm2020/lib/_internal/enums/shared.enum.mjs +21 -0
- package/{esm2015/lib/_internal/enums/zoom.enum.js → esm2020/lib/_internal/enums/zoom.enum.mjs} +1 -1
- package/esm2020/lib/_internal/google-meet.api.service.mjs +41 -0
- package/esm2020/lib/_internal/index.mjs +15 -0
- package/esm2020/lib/_internal/interfaces/date-range.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/datetime.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/dayofweek.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/field-mask.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/google-meet.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/meeting-host.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/meeting-source.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/meeting-type.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/shared.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/timeofday.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/zoom.interface.mjs +8 -0
- package/esm2020/lib/_internal/meeting-guest.api.service.mjs +84 -0
- package/esm2020/lib/_internal/meeting-host.api.service.mjs +170 -0
- package/esm2020/lib/_internal/meeting-source-api.api.service.mjs +41 -0
- package/esm2020/lib/_internal/objects/date-range.mjs +36 -0
- package/esm2020/lib/_internal/objects/datetime.mjs +77 -0
- package/esm2020/lib/_internal/objects/dayofweek.mjs +7 -0
- package/esm2020/lib/_internal/objects/field-mask.mjs +27 -0
- package/esm2020/lib/_internal/objects/google-meet.mjs +539 -0
- package/esm2020/lib/_internal/objects/index.mjs +18 -0
- package/esm2020/lib/_internal/objects/meeting-guest.mjs +511 -0
- package/esm2020/lib/_internal/objects/meeting-host.mjs +1485 -0
- package/esm2020/lib/_internal/objects/meeting-source.mjs +121 -0
- package/esm2020/lib/_internal/objects/meeting-type.mjs +119 -0
- package/esm2020/lib/_internal/objects/shared.mjs +426 -0
- package/esm2020/lib/_internal/objects/timeofday.mjs +36 -0
- package/esm2020/lib/_internal/objects/zoom.mjs +377 -0
- package/esm2020/lib/_internal/zoom.api.service.mjs +41 -0
- package/esm2020/lib/guest/guest.service.mjs +86 -0
- package/esm2020/lib/guest/index.mjs +2 -0
- package/esm2020/lib/host/host.service.mjs +308 -0
- package/esm2020/lib/host/url.mjs +39 -0
- package/esm2020/lib/index.mjs +8 -0
- package/esm2020/lib/meetings.service.mjs +168 -0
- package/esm2020/lib/shared/availability.mjs +2 -0
- package/esm2020/lib/shared/calendar.mjs +29 -0
- package/esm2020/lib/shared/duration.mjs +41 -0
- package/esm2020/lib/shared/environment.mjs +17 -0
- package/esm2020/lib/shared/fieldmask.mjs +6 -0
- package/esm2020/lib/shared/host-id.mjs +20 -0
- package/esm2020/lib/shared/host-url-map.mjs +2 -0
- package/esm2020/lib/shared/host-user.mjs +8 -0
- package/esm2020/lib/shared/host.mjs +8 -0
- package/esm2020/lib/shared/index.mjs +14 -0
- package/esm2020/lib/shared/meeting-type.mjs +60 -0
- package/esm2020/lib/shared/meeting.mjs +89 -0
- package/esm2020/lib/shared/paged-response.mjs +8 -0
- package/esm2020/lib/shared/preferences.mjs +12 -0
- package/esm2020/lib/shared/time-span.mjs +7 -0
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/vendasta-meetings.mjs +5 -0
- package/fesm2015/{vendasta-meetings.js → vendasta-meetings.mjs} +554 -1264
- package/fesm2015/vendasta-meetings.mjs.map +1 -0
- package/fesm2020/vendasta-meetings.mjs +5086 -0
- package/fesm2020/vendasta-meetings.mjs.map +1 -0
- package/lib/_generated/host.service.d.ts +5 -9
- package/lib/_internal/google-meet.api.service.d.ts +4 -0
- package/lib/_internal/index.d.ts +3 -3
- package/lib/_internal/interfaces/meeting-host.interface.d.ts +2 -1
- package/lib/_internal/interfaces/meeting-source.interface.d.ts +1 -1
- package/lib/_internal/interfaces/meeting-type.interface.d.ts +1 -1
- package/lib/_internal/interfaces/shared.interface.d.ts +1 -1
- package/lib/_internal/interfaces/zoom.interface.d.ts +1 -1
- package/lib/_internal/meeting-guest.api.service.d.ts +4 -0
- package/lib/_internal/meeting-host.api.service.d.ts +4 -0
- package/lib/_internal/meeting-source-api.api.service.d.ts +4 -0
- package/lib/_internal/objects/date-range.d.ts +1 -1
- package/lib/_internal/objects/datetime.d.ts +1 -1
- package/lib/_internal/objects/field-mask.d.ts +1 -1
- package/lib/_internal/objects/google-meet.d.ts +1 -1
- package/lib/_internal/objects/meeting-guest.d.ts +1 -1
- package/lib/_internal/objects/meeting-host.d.ts +3 -2
- package/lib/_internal/objects/meeting-source.d.ts +2 -2
- package/lib/_internal/objects/meeting-type.d.ts +2 -2
- package/lib/_internal/objects/shared.d.ts +2 -2
- package/lib/_internal/objects/timeofday.d.ts +1 -1
- package/lib/_internal/objects/zoom.d.ts +2 -2
- package/lib/_internal/zoom.api.service.d.ts +4 -0
- package/lib/guest/guest.service.d.ts +5 -4
- package/lib/guest/index.d.ts +0 -1
- package/lib/host/host.service.d.ts +7 -6
- package/lib/host/url.d.ts +1 -1
- package/lib/index.d.ts +1 -4
- package/lib/meetings.service.d.ts +3 -0
- package/lib/shared/availability.d.ts +2 -2
- package/lib/shared/calendar.d.ts +1 -1
- package/lib/shared/environment.d.ts +8 -0
- package/lib/shared/fieldmask.d.ts +1 -1
- package/lib/shared/host.d.ts +1 -1
- package/lib/shared/meeting-type.d.ts +2 -2
- package/lib/shared/meeting.d.ts +2 -2
- package/lib/shared/preferences.d.ts +3 -3
- package/lib/shared/time-span.d.ts +1 -1
- package/package.json +26 -15
- package/public_api.d.ts +1 -1
- package/src/README.md +12 -0
- package/vendasta-meetings.d.ts +1 -10
- package/bundles/vendasta-meetings.umd.js +0 -6217
- package/bundles/vendasta-meetings.umd.js.map +0 -1
- package/bundles/vendasta-meetings.umd.min.js +0 -16
- package/bundles/vendasta-meetings.umd.min.js.map +0 -1
- package/esm2015/lib/_generated/host.service.js +0 -62
- package/esm2015/lib/_internal/enums/dayofweek.enum.js +0 -18
- package/esm2015/lib/_internal/enums/index.js +0 -11
- package/esm2015/lib/_internal/enums/meeting-source.enum.js +0 -20
- package/esm2015/lib/_internal/enums/shared.enum.js +0 -21
- package/esm2015/lib/_internal/google-meet.api.service.js +0 -38
- package/esm2015/lib/_internal/index.js +0 -15
- package/esm2015/lib/_internal/interfaces/date-range.interface.js +0 -8
- package/esm2015/lib/_internal/interfaces/datetime.interface.js +0 -8
- package/esm2015/lib/_internal/interfaces/dayofweek.interface.js +0 -8
- package/esm2015/lib/_internal/interfaces/field-mask.interface.js +0 -8
- package/esm2015/lib/_internal/interfaces/google-meet.interface.js +0 -8
- package/esm2015/lib/_internal/interfaces/index.js +0 -2
- package/esm2015/lib/_internal/interfaces/meeting-guest.interface.js +0 -2
- package/esm2015/lib/_internal/interfaces/meeting-host.interface.js +0 -2
- package/esm2015/lib/_internal/interfaces/meeting-source.interface.js +0 -8
- package/esm2015/lib/_internal/interfaces/meeting-type.interface.js +0 -8
- package/esm2015/lib/_internal/interfaces/shared.interface.js +0 -2
- package/esm2015/lib/_internal/interfaces/timeofday.interface.js +0 -8
- package/esm2015/lib/_internal/interfaces/zoom.interface.js +0 -8
- package/esm2015/lib/_internal/meeting-guest.api.service.js +0 -81
- package/esm2015/lib/_internal/meeting-host.api.service.js +0 -167
- package/esm2015/lib/_internal/meeting-source-api.api.service.js +0 -38
- package/esm2015/lib/_internal/meetings.module.js +0 -33
- package/esm2015/lib/_internal/objects/date-range.js +0 -40
- package/esm2015/lib/_internal/objects/datetime.js +0 -92
- package/esm2015/lib/_internal/objects/dayofweek.js +0 -7
- package/esm2015/lib/_internal/objects/field-mask.js +0 -30
- package/esm2015/lib/_internal/objects/google-meet.js +0 -646
- package/esm2015/lib/_internal/objects/index.js +0 -18
- package/esm2015/lib/_internal/objects/meeting-guest.js +0 -591
- package/esm2015/lib/_internal/objects/meeting-host.js +0 -1699
- package/esm2015/lib/_internal/objects/meeting-source.js +0 -139
- package/esm2015/lib/_internal/objects/meeting-type.js +0 -142
- package/esm2015/lib/_internal/objects/shared.js +0 -504
- package/esm2015/lib/_internal/objects/timeofday.js +0 -42
- package/esm2015/lib/_internal/objects/zoom.js +0 -456
- package/esm2015/lib/_internal/zoom.api.service.js +0 -38
- package/esm2015/lib/guest/guest.module.js +0 -16
- package/esm2015/lib/guest/guest.service.js +0 -82
- package/esm2015/lib/guest/index.js +0 -3
- package/esm2015/lib/host/host.module.js +0 -16
- package/esm2015/lib/host/host.service.js +0 -283
- package/esm2015/lib/host/url.js +0 -39
- package/esm2015/lib/index.js +0 -11
- package/esm2015/lib/meetings.module.js +0 -22
- package/esm2015/lib/meetings.service.js +0 -165
- package/esm2015/lib/shared/availability.js +0 -2
- package/esm2015/lib/shared/calendar.js +0 -29
- package/esm2015/lib/shared/duration.js +0 -41
- package/esm2015/lib/shared/fieldmask.js +0 -6
- package/esm2015/lib/shared/host-id.js +0 -20
- package/esm2015/lib/shared/host-url-map.js +0 -2
- package/esm2015/lib/shared/host-user.js +0 -8
- package/esm2015/lib/shared/host.js +0 -8
- package/esm2015/lib/shared/index.js +0 -14
- package/esm2015/lib/shared/meeting-type.js +0 -52
- package/esm2015/lib/shared/meeting.js +0 -89
- package/esm2015/lib/shared/paged-response.js +0 -8
- package/esm2015/lib/shared/preferences.js +0 -12
- package/esm2015/lib/shared/time-span.js +0 -7
- package/esm2015/public_api.js +0 -2
- package/esm2015/vendasta-meetings.js +0 -12
- package/fesm2015/vendasta-meetings.js.map +0 -1
- package/lib/_internal/meetings.module.d.ts +0 -2
- package/lib/guest/guest.module.d.ts +0 -2
- package/lib/host/host.module.d.ts +0 -2
- package/lib/meetings.module.d.ts +0 -2
- package/vendasta-meetings.metadata.json +0 -1
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("@angular/core"),require("@vendasta/core"),require("@angular/common/http"),require("rxjs/operators"),require("rxjs")):"function"==typeof define&&define.amd?define("@vendasta/meetings",["exports","@angular/core","@vendasta/core","@angular/common/http","rxjs/operators","rxjs"],i):i(((t="undefined"!=typeof globalThis?globalThis:t||self).vendasta=t.vendasta||{},t.vendasta.meetings={}),t.ng.core,t.core,t.ng.common.http,t.rxjs.operators,t.rxjs)}(this,(function(t,i,e,n,o,s){"use strict";var r,a,h,d,u,p,c,m,v,f,l,g;function y(t,i){return"number"==typeof i?i:t[i]}(r=t.MeetingSource||(t.MeetingSource={}))[r.MEETING_SOURCE_INVALID=0]="MEETING_SOURCE_INVALID",r[r.MEETING_SOURCE_ZOOM=1]="MEETING_SOURCE_ZOOM",r[r.MEETING_SOURCE_GOOGLE_MEET=2]="MEETING_SOURCE_GOOGLE_MEET",(a=t.MeetingSourceStatus||(t.MeetingSourceStatus={}))[a.MEETING_SOURCE_STATUS_INVALID=0]="MEETING_SOURCE_STATUS_INVALID",a[a.MEETING_SOURCE_STATUS_CONNECTED=1]="MEETING_SOURCE_STATUS_CONNECTED",a[a.MEETING_SOURCE_STATUS_DISCONNECTED=2]="MEETING_SOURCE_STATUS_DISCONNECTED",a[a.MEETING_SOURCE_STATUS_BROKEN=3]="MEETING_SOURCE_STATUS_BROKEN",function(t){t[t.ZOOM_APPROVAL_TYPE_INVALID=0]="ZOOM_APPROVAL_TYPE_INVALID",t[t.ZOOM_APPROVAL_TYPE_ATUO_APPROVE=1]="ZOOM_APPROVAL_TYPE_ATUO_APPROVE",t[t.ZOOM_APPROVAL_TYPE_MANUALLY_APPROVE=2]="ZOOM_APPROVAL_TYPE_MANUALLY_APPROVE",t[t.ZOOM_APPROVAL_TYPE_NO_REGISTRATION_REQUIRED=3]="ZOOM_APPROVAL_TYPE_NO_REGISTRATION_REQUIRED"}(h||(h={})),function(t){t[t.ZOOM_MEETING_RECURRENCE_TYPE_INVALID=0]="ZOOM_MEETING_RECURRENCE_TYPE_INVALID",t[t.ZOOM_MEETING_RECURRENCE_TYPE_DAILY=1]="ZOOM_MEETING_RECURRENCE_TYPE_DAILY",t[t.ZOOM_MEETING_RECURRENCE_TYPE_WEEKLY=2]="ZOOM_MEETING_RECURRENCE_TYPE_WEEKLY",t[t.ZOOM_MEETING_RECURRENCE_TYPE_MONTHLY=3]="ZOOM_MEETING_RECURRENCE_TYPE_MONTHLY"}(d||(d={})),function(t){t[t.ZOOM_MEETING_TYPE_INVALID=0]="ZOOM_MEETING_TYPE_INVALID",t[t.ZOOM_MEETING_TYPE_INSTANT=1]="ZOOM_MEETING_TYPE_INSTANT",t[t.ZOOM_MEETING_TYPE_SCHEDULED=2]="ZOOM_MEETING_TYPE_SCHEDULED",t[t.ZOOM_MEETING_TYPE_RECURRING_NO_FIXED=3]="ZOOM_MEETING_TYPE_RECURRING_NO_FIXED",t[t.ZOOM_MEETING_TYPE_RECURRING_FIXED=8]="ZOOM_MEETING_TYPE_RECURRING_FIXED"}(u||(u={})),function(t){t[t.ZOOM_MONTHLY_WEEK_INVALD=0]="ZOOM_MONTHLY_WEEK_INVALD",t[t.ZOOM_MONTHLY_WEEK_LAST_WEEK=-1]="ZOOM_MONTHLY_WEEK_LAST_WEEK",t[t.ZOOM_MONTHLY_WEEK_FIRST_WEEK=1]="ZOOM_MONTHLY_WEEK_FIRST_WEEK",t[t.ZOOM_MONTHLY_WEEK_SECOND_WEEK=2]="ZOOM_MONTHLY_WEEK_SECOND_WEEK",t[t.ZOOM_MONTHLY_WEEK_THIRD_WEEK=3]="ZOOM_MONTHLY_WEEK_THIRD_WEEK",t[t.ZOOM_MONTHLY_WEEK_FOURTH_WEEK=4]="ZOOM_MONTHLY_WEEK_FOURTH_WEEK"}(p||(p={})),function(t){t[t.ZOOM_MONTHLY_WEEK_DAY_INVALID=0]="ZOOM_MONTHLY_WEEK_DAY_INVALID",t[t.ZOOM_MONTHLY_WEEK_DAY_SUNDAY=1]="ZOOM_MONTHLY_WEEK_DAY_SUNDAY",t[t.ZOOM_MONTHLY_WEEK_DAY_MONDAY=2]="ZOOM_MONTHLY_WEEK_DAY_MONDAY",t[t.ZOOM_MONTHLY_WEEK_DAY_TUESDAY=3]="ZOOM_MONTHLY_WEEK_DAY_TUESDAY",t[t.ZOOM_MONTHLY_WEEK_DAY_WEDNESDAY=4]="ZOOM_MONTHLY_WEEK_DAY_WEDNESDAY",t[t.ZOOM_MONTHLY_WEEK_DAY_THURSDAY=5]="ZOOM_MONTHLY_WEEK_DAY_THURSDAY",t[t.ZOOM_MONTHLY_WEEK_DAY_FRIDAY=6]="ZOOM_MONTHLY_WEEK_DAY_FRIDAY",t[t.ZOOM_MONTHLY_WEEK_DAY_SATURDAY=7]="ZOOM_MONTHLY_WEEK_DAY_SATURDAY"}(c||(c={})),function(t){t[t.ZOOM_REGISTRATION_TYPE_INVALID=0]="ZOOM_REGISTRATION_TYPE_INVALID",t[t.ZOOM_REGISTRATION_TYPE_RESGITER_ONCE_FOR_ALL=1]="ZOOM_REGISTRATION_TYPE_RESGITER_ONCE_FOR_ALL",t[t.ZOOM_REGISTRATION_TYPE_REGISTER_FOR_EACH=2]="ZOOM_REGISTRATION_TYPE_REGISTER_FOR_EACH",t[t.ZOOM_REGISTRATION_TYPE_RESGITER_ONCE_FOR_ONE_OR_MORE=3]="ZOOM_REGISTRATION_TYPE_RESGITER_ONCE_FOR_ONE_OR_MORE"}(m||(m={})),function(t){t[t.ZOOM_WEEKLY_DAY_INVALID=0]="ZOOM_WEEKLY_DAY_INVALID",t[t.ZOOM_WEEKLY_DAY_SUNDAY=1]="ZOOM_WEEKLY_DAY_SUNDAY",t[t.ZOOM_WEEKLY_DAY_MONDAY=2]="ZOOM_WEEKLY_DAY_MONDAY",t[t.ZOOM_WEEKLY_DAY_TUESDAY=3]="ZOOM_WEEKLY_DAY_TUESDAY",t[t.ZOOM_WEEKLY_DAY_WEDNESDAY=4]="ZOOM_WEEKLY_DAY_WEDNESDAY",t[t.ZOOM_WEEKLY_DAY_THURSDAY=5]="ZOOM_WEEKLY_DAY_THURSDAY",t[t.ZOOM_WEEKLY_DAY_FRIDAY=6]="ZOOM_WEEKLY_DAY_FRIDAY",t[t.ZOOM_WEEKLY_DAY_SATURDAY=7]="ZOOM_WEEKLY_DAY_SATURDAY"}(v||(v={})),(f=t.CalendarType||(t.CalendarType={}))[f.CALENDAR_TYPE_INVALID=0]="CALENDAR_TYPE_INVALID",f[f.CALENDAR_TYPE_PERSONAL=1]="CALENDAR_TYPE_PERSONAL",f[f.CALENDAR_TYPE_GROUP=2]="CALENDAR_TYPE_GROUP",(l=t.FormFieldType||(t.FormFieldType={}))[l.FORM_FIELD_TYPE_INVALID=0]="FORM_FIELD_TYPE_INVALID",l[l.FORM_FIELD_TYPE_TEXT=1]="FORM_FIELD_TYPE_TEXT",l[l.FORM_FIELD_TYPE_EMAIL=2]="FORM_FIELD_TYPE_EMAIL",l[l.FORM_FIELD_TYPE_PHONE_NUMBER=3]="FORM_FIELD_TYPE_PHONE_NUMBER",l[l.FORM_FIELD_TYPE_SELECT=4]="FORM_FIELD_TYPE_SELECT",(g=t.DayOfWeek||(t.DayOfWeek={}))[g.DAY_OF_WEEK_UNSPECIFIED=0]="DAY_OF_WEEK_UNSPECIFIED",g[g.MONDAY=1]="MONDAY",g[g.TUESDAY=2]="TUESDAY",g[g.WEDNESDAY=3]="WEDNESDAY",g[g.THURSDAY=4]="THURSDAY",g[g.FRIDAY=5]="FRIDAY",g[g.SATURDAY=6]="SATURDAY",g[g.SUNDAY=7]="SUNDAY";var A=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(e){var n=new i;return n=Object.assign(n,e),e.source&&(n.source=y(t.MeetingSource,e.source)),e.status&&(n.status=y(t.MeetingSourceStatus,e.status)),n},i.prototype.toApiJson=function(){if(void 0===this.source&&void 0===this.status&&void 0===this.connectDisconnectUrl)return{};var t={};return void 0!==this.source&&(t.source=this.source),void 0!==this.status&&(t.status=this.status),void 0!==this.connectDisconnectUrl&&(t.connectDisconnectUrl=this.connectDisconnectUrl),t},i}(),O=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.queriedSources&&(e.queriedSources=i.queriedSources.map(T.fromProto)),e},t.prototype.toApiJson=function(){if(void 0===this.iamUserId&&void 0===this.queriedSources)return{};var t={};return void 0!==this.iamUserId&&(t.iamUserId=this.iamUserId),void 0!==this.queriedSources&&null!==this.queriedSources&&(t.queriedSources="toApiJson"in this.queriedSources?this.queriedSources.toApiJson():this.queriedSources),t},t}(),I=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.sourceInfo&&(e.sourceInfo=i.sourceInfo.map(A.fromProto)),e},t.prototype.toApiJson=function(){if(void 0===this.iamUserId&&void 0===this.sourceInfo)return{};var t={};return void 0!==this.iamUserId&&(t.iamUserId=this.iamUserId),void 0!==this.sourceInfo&&null!==this.sourceInfo&&(t.sourceInfo="toApiJson"in this.sourceInfo?this.sourceInfo.toApiJson():this.sourceInfo),t},t}(),T=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(e){var n=new i;return n=Object.assign(n,e),e.source&&(n.source=y(t.MeetingSource,e.source)),n},i.prototype.toApiJson=function(){if(void 0===this.source&&void 0===this.connectNextUrl&&void 0===this.disconnectNextUrl)return{};var t={};return void 0!==this.source&&(t.source=this.source),void 0!==this.connectNextUrl&&(t.connectNextUrl=this.connectNextUrl),void 0!==this.disconnectNextUrl&&(t.disconnectNextUrl=this.disconnectNextUrl),t},i}();function S(t,i){return"number"==typeof i?i:t[i]}var E=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.type&&(e.type=S(u,i.type)),i.duration&&(e.duration=parseInt(i.duration,10)),i.trackingFields&&(e.trackingFields=i.trackingFields.map(_.fromProto)),i.recurrence&&(e.recurrence=b.fromProto(i.recurrence)),i.settings&&(e.settings=P.fromProto(i.settings)),e},t.prototype.toApiJson=function(){if(void 0===this.iamUserId&&void 0===this.topic&&void 0===this.type&&void 0===this.startTime&&void 0===this.duration&&void 0===this.timezone&&void 0===this.password&&void 0===this.agenda&&void 0===this.trackingFields&&void 0===this.recurrence&&void 0===this.settings)return{};var t={};return void 0!==this.iamUserId&&(t.iamUserId=this.iamUserId),void 0!==this.topic&&(t.topic=this.topic),void 0!==this.type&&(t.type=this.type),void 0!==this.startTime&&(t.startTime=this.startTime),void 0!==this.duration&&(t.duration=this.duration),void 0!==this.timezone&&(t.timezone=this.timezone),void 0!==this.password&&(t.password=this.password),void 0!==this.agenda&&(t.agenda=this.agenda),void 0!==this.trackingFields&&null!==this.trackingFields&&(t.trackingFields="toApiJson"in this.trackingFields?this.trackingFields.toApiJson():this.trackingFields),void 0!==this.recurrence&&null!==this.recurrence&&(t.recurrence="toApiJson"in this.recurrence?this.recurrence.toApiJson():this.recurrence),void 0!==this.settings&&null!==this.settings&&(t.settings="toApiJson"in this.settings?this.settings.toApiJson():this.settings),t},t}(),M=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.meetingId&&(e.meetingId=parseInt(i.meetingId,10)),i.type&&(e.type=S(u,i.type)),i.duration&&(e.duration=parseInt(i.duration,10)),i.pmi&&(e.pmi=parseInt(i.pmi,10)),i.trackingFields&&(e.trackingFields=i.trackingFields.map(_.fromProto)),i.occurrences&&(e.occurrences=i.occurrences.map(J.fromProto)),i.settings&&(e.settings=P.fromProto(i.settings)),i.recurrence&&(e.recurrence=b.fromProto(i.recurrence)),e},t.prototype.toApiJson=function(){if(void 0===this.iamUserId&&void 0===this.meetingId&&void 0===this.topic&&void 0===this.type&&void 0===this.startTime&&void 0===this.duration&&void 0===this.timezone&&void 0===this.createdAt&&void 0===this.agenda&&void 0===this.startUrl&&void 0===this.joinUrl&&void 0===this.password&&void 0===this.h323Password&&void 0===this.pmi&&void 0===this.trackingFields&&void 0===this.occurrences&&void 0===this.settings&&void 0===this.recurrence)return{};var t={};return void 0!==this.iamUserId&&(t.iamUserId=this.iamUserId),void 0!==this.meetingId&&(t.meetingId=this.meetingId),void 0!==this.topic&&(t.topic=this.topic),void 0!==this.type&&(t.type=this.type),void 0!==this.startTime&&(t.startTime=this.startTime),void 0!==this.duration&&(t.duration=this.duration),void 0!==this.timezone&&(t.timezone=this.timezone),void 0!==this.createdAt&&(t.createdAt=this.createdAt),void 0!==this.agenda&&(t.agenda=this.agenda),void 0!==this.startUrl&&(t.startUrl=this.startUrl),void 0!==this.joinUrl&&(t.joinUrl=this.joinUrl),void 0!==this.password&&(t.password=this.password),void 0!==this.h323Password&&(t.h323Password=this.h323Password),void 0!==this.pmi&&(t.pmi=this.pmi),void 0!==this.trackingFields&&null!==this.trackingFields&&(t.trackingFields="toApiJson"in this.trackingFields?this.trackingFields.toApiJson():this.trackingFields),void 0!==this.occurrences&&null!==this.occurrences&&(t.occurrences="toApiJson"in this.occurrences?this.occurrences.toApiJson():this.occurrences),void 0!==this.settings&&null!==this.settings&&(t.settings="toApiJson"in this.settings?this.settings.toApiJson():this.settings),void 0!==this.recurrence&&null!==this.recurrence&&(t.recurrence="toApiJson"in this.recurrence?this.recurrence.toApiJson():this.recurrence),t},t}(),b=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.type&&(e.type=S(d,i.type)),i.repeatInterval&&(e.repeatInterval=parseInt(i.repeatInterval,10)),i.monthlyDay&&(e.monthlyDay=parseInt(i.monthlyDay,10)),i.monthlyWeek&&(e.monthlyWeek=S(p,i.monthlyWeek)),i.monthlyWeekDay&&(e.monthlyWeekDay=S(c,i.monthlyWeekDay)),i.endTimes&&(e.endTimes=parseInt(i.endTimes,10)),e},t.prototype.toApiJson=function(){if(void 0===this.type&&void 0===this.repeatInterval&&void 0===this.weeklyDays&&void 0===this.monthlyDay&&void 0===this.monthlyWeek&&void 0===this.monthlyWeekDay&&void 0===this.endTimes&&void 0===this.endDateTime)return{};var t={};return void 0!==this.type&&(t.type=this.type),void 0!==this.repeatInterval&&(t.repeatInterval=this.repeatInterval),void 0!==this.weeklyDays&&(t.weeklyDays=this.weeklyDays),void 0!==this.monthlyDay&&(t.monthlyDay=this.monthlyDay),void 0!==this.monthlyWeek&&(t.monthlyWeek=this.monthlyWeek),void 0!==this.monthlyWeekDay&&(t.monthlyWeekDay=this.monthlyWeekDay),void 0!==this.endTimes&&(t.endTimes=this.endTimes),void 0!==this.endDateTime&&(t.endDateTime=this.endDateTime),t},t}(),P=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.approvalType&&(e.approvalType=S(h,i.approvalType)),i.registrationType&&(e.registrationType=S(m,i.registrationType)),e},t.prototype.toApiJson=function(){if(void 0===this.hostVideo&&void 0===this.participantVideo&&void 0===this.cnMeeting&&void 0===this.inMeeting&&void 0===this.joinBeforeHost&&void 0===this.muteUponEntry&&void 0===this.watermark&&void 0===this.usePmi&&void 0===this.approvalType&&void 0===this.registrationType&&void 0===this.audio&&void 0===this.autoRecording&&void 0===this.alternativeHosts&&void 0===this.closeRegistration&&void 0===this.waitingRoom&&void 0===this.globalDialInCountries&&void 0===this.contactName&&void 0===this.contactEmail&&void 0===this.registrationEmailNotification&&void 0===this.meetingAuthentication&&void 0===this.authenticationOptions&&void 0===this.authenticationDomains&&void 0===this.enforceLogin&&void 0===this.enforceLoginDomains)return{};var t={};return void 0!==this.hostVideo&&(t.hostVideo=this.hostVideo),void 0!==this.participantVideo&&(t.participantVideo=this.participantVideo),void 0!==this.cnMeeting&&(t.cnMeeting=this.cnMeeting),void 0!==this.inMeeting&&(t.inMeeting=this.inMeeting),void 0!==this.joinBeforeHost&&(t.joinBeforeHost=this.joinBeforeHost),void 0!==this.muteUponEntry&&(t.muteUponEntry=this.muteUponEntry),void 0!==this.watermark&&(t.watermark=this.watermark),void 0!==this.usePmi&&(t.usePmi=this.usePmi),void 0!==this.approvalType&&(t.approvalType=this.approvalType),void 0!==this.registrationType&&(t.registrationType=this.registrationType),void 0!==this.audio&&(t.audio=this.audio),void 0!==this.autoRecording&&(t.autoRecording=this.autoRecording),void 0!==this.alternativeHosts&&(t.alternativeHosts=this.alternativeHosts),void 0!==this.closeRegistration&&(t.closeRegistration=this.closeRegistration),void 0!==this.waitingRoom&&(t.waitingRoom=this.waitingRoom),void 0!==this.globalDialInCountries&&(t.globalDialInCountries=this.globalDialInCountries),void 0!==this.contactName&&(t.contactName=this.contactName),void 0!==this.contactEmail&&(t.contactEmail=this.contactEmail),void 0!==this.registrationEmailNotification&&(t.registrationEmailNotification=this.registrationEmailNotification),void 0!==this.meetingAuthentication&&(t.meetingAuthentication=this.meetingAuthentication),void 0!==this.authenticationOptions&&(t.authenticationOptions=this.authenticationOptions),void 0!==this.authenticationDomains&&(t.authenticationDomains=this.authenticationDomains),void 0!==this.enforceLogin&&(t.enforceLogin=this.enforceLogin),void 0!==this.enforceLoginDomains&&(t.enforceLoginDomains=this.enforceLoginDomains),t},t}(),_=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.field&&void 0===this.value)return{};var t={};return void 0!==this.field&&(t.field=this.field),void 0!==this.value&&(t.value=this.value),t},t}(),J=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.duration&&(e.duration=parseInt(i.duration,10)),e},t.prototype.toApiJson=function(){if(void 0===this.occurrenceId&&void 0===this.startTime&&void 0===this.duration&&void 0===this.status)return{};var t={};return void 0!==this.occurrenceId&&(t.occurrenceId=this.occurrenceId),void 0!==this.startTime&&(t.startTime=this.startTime),void 0!==this.duration&&(t.duration=this.duration),void 0!==this.status&&(t.status=this.status),t},t}();var j=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.conferenceSolution&&(e.conferenceSolution=N.fromProto(i.conferenceSolution)),i.createRequest&&(e.createRequest=U.fromProto(i.createRequest)),i.entryPoints&&(e.entryPoints=i.entryPoints.map(R.fromProto)),e},t.prototype.toApiJson=function(){if(void 0===this.conferenceId&&void 0===this.conferenceSolution&&void 0===this.createRequest&&void 0===this.entryPoints&&void 0===this.notes&&void 0===this.signature)return{};var t={};return void 0!==this.conferenceId&&(t.conferenceId=this.conferenceId),void 0!==this.conferenceSolution&&null!==this.conferenceSolution&&(t.conferenceSolution="toApiJson"in this.conferenceSolution?this.conferenceSolution.toApiJson():this.conferenceSolution),void 0!==this.createRequest&&null!==this.createRequest&&(t.createRequest="toApiJson"in this.createRequest?this.createRequest.toApiJson():this.createRequest),void 0!==this.entryPoints&&null!==this.entryPoints&&(t.entryPoints="toApiJson"in this.entryPoints?this.entryPoints.toApiJson():this.entryPoints),void 0!==this.notes&&(t.notes=this.notes),void 0!==this.signature&&(t.signature=this.signature),t},t}(),w=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.statusCode)return{};var t={};return void 0!==this.statusCode&&(t.statusCode=this.statusCode),t},t}(),N=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.key&&(e.key=C.fromProto(i.key)),e},t.prototype.toApiJson=function(){if(void 0===this.iconUri&&void 0===this.key&&void 0===this.name)return{};var t={};return void 0!==this.iconUri&&(t.iconUri=this.iconUri),void 0!==this.key&&null!==this.key&&(t.key="toApiJson"in this.key?this.key.toApiJson():this.key),void 0!==this.name&&(t.name=this.name),t},t}(),C=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.type)return{};var t={};return void 0!==this.type&&(t.type=this.type),t},t}(),U=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.conferenceSolutionKey&&(e.conferenceSolutionKey=C.fromProto(i.conferenceSolutionKey)),i.status&&(e.status=w.fromProto(i.status)),e},t.prototype.toApiJson=function(){if(void 0===this.conferenceSolutionKey&&void 0===this.requestId&&void 0===this.status)return{};var t={};return void 0!==this.conferenceSolutionKey&&null!==this.conferenceSolutionKey&&(t.conferenceSolutionKey="toApiJson"in this.conferenceSolutionKey?this.conferenceSolutionKey.toApiJson():this.conferenceSolutionKey),void 0!==this.requestId&&(t.requestId=this.requestId),void 0!==this.status&&null!==this.status&&(t.status="toApiJson"in this.status?this.status.toApiJson():this.status),t},t}(),D=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.meeting&&(e.meeting=Z.fromProto(i.meeting)),e},t.prototype.toApiJson=function(){if(void 0===this.calenderId&&void 0===this.meeting)return{};var t={};return void 0!==this.calenderId&&(t.calenderId=this.calenderId),void 0!==this.meeting&&null!==this.meeting&&(t.meeting="toApiJson"in this.meeting?this.meeting.toApiJson():this.meeting),t},t}(),k=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.meeting&&(e.meeting=Z.fromProto(i.meeting)),e},t.prototype.toApiJson=function(){if(void 0===this.iamUserId&&void 0===this.calenderId&&void 0===this.meeting)return{};var t={};return void 0!==this.iamUserId&&(t.iamUserId=this.iamUserId),void 0!==this.calenderId&&(t.calenderId=this.calenderId),void 0!==this.meeting&&null!==this.meeting&&(t.meeting="toApiJson"in this.meeting?this.meeting.toApiJson():this.meeting),t},t}(),R=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.accessCode&&void 0===this.entryPointFeatures&&void 0===this.entryPointType&&void 0===this.label&&void 0===this.meetingCode&&void 0===this.passcode&&void 0===this.password&&void 0===this.pin&&void 0===this.regionCode&&void 0===this.uri)return{};var t={};return void 0!==this.accessCode&&(t.accessCode=this.accessCode),void 0!==this.entryPointFeatures&&(t.entryPointFeatures=this.entryPointFeatures),void 0!==this.entryPointType&&(t.entryPointType=this.entryPointType),void 0!==this.label&&(t.label=this.label),void 0!==this.meetingCode&&(t.meetingCode=this.meetingCode),void 0!==this.passcode&&(t.passcode=this.passcode),void 0!==this.password&&(t.password=this.password),void 0!==this.pin&&(t.pin=this.pin),void 0!==this.regionCode&&(t.regionCode=this.regionCode),void 0!==this.uri&&(t.uri=this.uri),t},t}(),Z=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.attendees&&(e.attendees=i.attendees.map(Y.fromProto)),i.conferenceData&&(e.conferenceData=j.fromProto(i.conferenceData)),i.end&&(e.end=H.fromProto(i.end)),i.originalStartTime&&(e.originalStartTime=H.fromProto(i.originalStartTime)),i.reminders&&(e.reminders=x.fromProto(i.reminders)),i.sequence&&(e.sequence=parseInt(i.sequence,10)),i.start&&(e.start=H.fromProto(i.start)),i.creator&&(e.creator=L.fromProto(i.creator)),e},t.prototype.toApiJson=function(){if(void 0===this.anyoneCanAddSelf&&void 0===this.attendees&&void 0===this.attendeesOmitted&&void 0===this.colorId&&void 0===this.conferenceData&&void 0===this.description&&void 0===this.end&&void 0===this.endTimeUnspecified&&void 0===this.etag&&void 0===this.icalUid&&void 0===this.id&&void 0===this.kind&&void 0===this.location&&void 0===this.locked&&void 0===this.originalStartTime&&void 0===this.recurrence&&void 0===this.recurringMeetingId&&void 0===this.reminders&&void 0===this.sequence&&void 0===this.start&&void 0===this.status&&void 0===this.summary&&void 0===this.transparency&&void 0===this.visibility&&void 0===this.hangoutLink&&void 0===this.htmlLink&&void 0===this.created&&void 0===this.creator&&void 0===this.updated)return{};var t={};return void 0!==this.anyoneCanAddSelf&&(t.anyoneCanAddSelf=this.anyoneCanAddSelf),void 0!==this.attendees&&null!==this.attendees&&(t.attendees="toApiJson"in this.attendees?this.attendees.toApiJson():this.attendees),void 0!==this.attendeesOmitted&&(t.attendeesOmitted=this.attendeesOmitted),void 0!==this.colorId&&(t.colorId=this.colorId),void 0!==this.conferenceData&&null!==this.conferenceData&&(t.conferenceData="toApiJson"in this.conferenceData?this.conferenceData.toApiJson():this.conferenceData),void 0!==this.description&&(t.description=this.description),void 0!==this.end&&null!==this.end&&(t.end="toApiJson"in this.end?this.end.toApiJson():this.end),void 0!==this.endTimeUnspecified&&(t.endTimeUnspecified=this.endTimeUnspecified),void 0!==this.etag&&(t.etag=this.etag),void 0!==this.icalUid&&(t.icalUid=this.icalUid),void 0!==this.id&&(t.id=this.id),void 0!==this.kind&&(t.kind=this.kind),void 0!==this.location&&(t.location=this.location),void 0!==this.locked&&(t.locked=this.locked),void 0!==this.originalStartTime&&null!==this.originalStartTime&&(t.originalStartTime="toApiJson"in this.originalStartTime?this.originalStartTime.toApiJson():this.originalStartTime),void 0!==this.recurrence&&(t.recurrence=this.recurrence),void 0!==this.recurringMeetingId&&(t.recurringMeetingId=this.recurringMeetingId),void 0!==this.reminders&&null!==this.reminders&&(t.reminders="toApiJson"in this.reminders?this.reminders.toApiJson():this.reminders),void 0!==this.sequence&&(t.sequence=this.sequence),void 0!==this.start&&null!==this.start&&(t.start="toApiJson"in this.start?this.start.toApiJson():this.start),void 0!==this.status&&(t.status=this.status),void 0!==this.summary&&(t.summary=this.summary),void 0!==this.transparency&&(t.transparency=this.transparency),void 0!==this.visibility&&(t.visibility=this.visibility),void 0!==this.hangoutLink&&(t.hangoutLink=this.hangoutLink),void 0!==this.htmlLink&&(t.htmlLink=this.htmlLink),void 0!==this.created&&(t.created=this.created),void 0!==this.creator&&null!==this.creator&&(t.creator="toApiJson"in this.creator?this.creator.toApiJson():this.creator),void 0!==this.updated&&(t.updated=this.updated),t},t}(),Y=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.additionalGuests&&(e.additionalGuests=parseInt(i.additionalGuests,10)),e},t.prototype.toApiJson=function(){if(void 0===this.additionalGuests&&void 0===this.comment&&void 0===this.displayName&&void 0===this.email&&void 0===this.id&&void 0===this.optional&&void 0===this.organizer&&void 0===this.resource&&void 0===this.responseStatus&&void 0===this.self)return{};var t={};return void 0!==this.additionalGuests&&(t.additionalGuests=this.additionalGuests),void 0!==this.comment&&(t.comment=this.comment),void 0!==this.displayName&&(t.displayName=this.displayName),void 0!==this.email&&(t.email=this.email),void 0!==this.id&&(t.id=this.id),void 0!==this.optional&&(t.optional=this.optional),void 0!==this.organizer&&(t.organizer=this.organizer),void 0!==this.resource&&(t.resource=this.resource),void 0!==this.responseStatus&&(t.responseStatus=this.responseStatus),void 0!==this.self&&(t.self=this.self),t},t}(),L=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.displayName&&void 0===this.email&&void 0===this.id&&void 0===this.self)return{};var t={};return void 0!==this.displayName&&(t.displayName=this.displayName),void 0!==this.email&&(t.email=this.email),void 0!==this.id&&(t.id=this.id),void 0!==this.self&&(t.self=this.self),t},t}(),H=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.date&&void 0===this.dateTime&&void 0===this.timeZone)return{};var t={};return void 0!==this.date&&(t.date=this.date),void 0!==this.dateTime&&(t.dateTime=this.dateTime),void 0!==this.timeZone&&(t.timeZone=this.timeZone),t},t}(),W=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.minutes&&(e.minutes=parseInt(i.minutes,10)),e},t.prototype.toApiJson=function(){if(void 0===this.method&&void 0===this.minutes)return{};var t={};return void 0!==this.method&&(t.method=this.method),void 0!==this.minutes&&(t.minutes=this.minutes),t},t}(),x=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.overrides&&(e.overrides=i.overrides.map(W.fromProto)),e},t.prototype.toApiJson=function(){if(void 0===this.overrides&&void 0===this.useDefault)return{};var t={};return void 0!==this.overrides&&null!==this.overrides&&(t.overrides="toApiJson"in this.overrides?this.overrides.toApiJson():this.overrides),void 0!==this.useDefault&&(t.useDefault=this.useDefault),t},t}();var G=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.hours&&void 0===this.minutes&&void 0===this.seconds&&void 0===this.nanos)return{};var t={};return void 0!==this.hours&&(t.hours=this.hours),void 0!==this.minutes&&(t.minutes=this.minutes),void 0!==this.seconds&&(t.seconds=this.seconds),void 0!==this.nanos&&(t.nanos=this.nanos),t},t}();!function(){function t(t){t&&Object.assign(this,t)}t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.timeZone&&(e.timeZone=F.fromProto(i.timeZone)),e},t.prototype.toApiJson=function(){if(void 0===this.year&&void 0===this.month&&void 0===this.day&&void 0===this.hours&&void 0===this.minutes&&void 0===this.seconds&&void 0===this.nanos&&void 0===this.utcOffset&&void 0===this.timeZone)return{};var t={};return void 0!==this.year&&(t.year=this.year),void 0!==this.month&&(t.month=this.month),void 0!==this.day&&(t.day=this.day),void 0!==this.hours&&(t.hours=this.hours),void 0!==this.minutes&&(t.minutes=this.minutes),void 0!==this.seconds&&(t.seconds=this.seconds),void 0!==this.nanos&&(t.nanos=this.nanos),void 0!==this.utcOffset&&(t.utcOffset=this.utcOffset),void 0!==this.timeZone&&null!==this.timeZone&&(t.timeZone="toApiJson"in this.timeZone?this.timeZone.toApiJson():this.timeZone),t}}();var F=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.id&&void 0===this.version)return{};var t={};return void 0!==this.id&&(t.id=this.id),void 0!==this.version&&(t.version=this.version),t},t}();function K(t,i){return"number"==typeof i?i:t[i]}var V=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(e){var n=new i;return n=Object.assign(n,e),e.type&&(n.type=K(t.FormFieldType,e.type)),n},i.prototype.toApiJson=function(){if(void 0===this.id&&void 0===this.label&&void 0===this.type&&void 0===this.answer)return{};var t={};return void 0!==this.id&&(t.id=this.id),void 0!==this.label&&(t.label=this.label),void 0!==this.type&&(t.type=this.type),void 0!==this.answer&&(t.answer=this.answer),t},i}(),q=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.formAnswers&&(e.formAnswers=i.formAnswers.map(V.fromProto)),e},t.prototype.toApiJson=function(){if(void 0===this.formAnswers)return{};var t={};return void 0!==this.formAnswers&&null!==this.formAnswers&&(t.formAnswers="toApiJson"in this.formAnswers?this.formAnswers.toApiJson():this.formAnswers),t},t}(),z=(function(){function t(t){t&&Object.assign(this,t)}t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.key&&void 0===this.value)return{};var t={};return void 0!==this.key&&(t.key=this.key),void 0!==this.value&&(t.value=this.value),t}}(),function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.fileTitle&&void 0===this.fileUrl&&void 0===this.fileType)return{};var t={};return void 0!==this.fileTitle&&(t.fileTitle=this.fileTitle),void 0!==this.fileUrl&&(t.fileUrl=this.fileUrl),void 0!==this.fileType&&(t.fileType=this.fileType),t},t}()),B=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.firstName&&void 0===this.lastName&&void 0===this.email&&void 0===this.phoneNumber&&void 0===this.timeZone&&void 0===this.isPrimary)return{};var t={};return void 0!==this.firstName&&(t.firstName=this.firstName),void 0!==this.lastName&&(t.lastName=this.lastName),void 0!==this.email&&(t.email=this.email),void 0!==this.phoneNumber&&(t.phoneNumber=this.phoneNumber),void 0!==this.timeZone&&(t.timeZone=this.timeZone),void 0!==this.isPrimary&&(t.isPrimary=this.isPrimary),t},t}(),X=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(e){var n=new i;return n=Object.assign(n,e),e.applicationContext&&(n.applicationContext=Object.keys(e.applicationContext).reduce((function(t,i){return t[i]=e.applicationContext[i],t}),{})),e.calendarType&&(n.calendarType=K(t.CalendarType,e.calendarType)),n},i.prototype.toApiJson=function(){if(void 0===this.id&&void 0===this.displayName&&void 0===this.displayProfileUrl&&void 0===this.displayLogoUrl&&void 0===this.bookingUrl&&void 0===this.slug&&void 0===this.externalId&&void 0===this.creatorUserId&&void 0===this.hostUserIds&&void 0===this.applicationContext&&void 0===this.calendarType)return{};var t={};return void 0!==this.id&&(t.id=this.id),void 0!==this.displayName&&(t.displayName=this.displayName),void 0!==this.displayProfileUrl&&(t.displayProfileUrl=this.displayProfileUrl),void 0!==this.displayLogoUrl&&(t.displayLogoUrl=this.displayLogoUrl),void 0!==this.bookingUrl&&(t.bookingUrl=this.bookingUrl),void 0!==this.slug&&(t.slug=this.slug),void 0!==this.externalId&&(t.externalId=this.externalId),void 0!==this.creatorUserId&&(t.creatorUserId=this.creatorUserId),void 0!==this.hostUserIds&&(t.hostUserIds=this.hostUserIds),void 0!==this.applicationContext&&null!==this.applicationContext&&(t.applicationContext="toApiJson"in this.applicationContext?this.applicationContext.toApiJson():this.applicationContext),void 0!==this.calendarType&&(t.calendarType=this.calendarType),t},i}(),Q=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.timeZone&&(e.timeZone=F.fromProto(i.timeZone)),e},t.prototype.toApiJson=function(){if(void 0===this.firstName&&void 0===this.lastName&&void 0===this.phoneNumber&&void 0===this.email&&void 0===this.timeZone&&void 0===this.isPrimary)return{};var t={};return void 0!==this.firstName&&(t.firstName=this.firstName),void 0!==this.lastName&&(t.lastName=this.lastName),void 0!==this.phoneNumber&&(t.phoneNumber=this.phoneNumber),void 0!==this.email&&(t.email=this.email),void 0!==this.timeZone&&null!==this.timeZone&&(t.timeZone="toApiJson"in this.timeZone?this.timeZone.toApiJson():this.timeZone),void 0!==this.isPrimary&&(t.isPrimary=this.isPrimary),t},t}(),$=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.id&&void 0===this.displayName&&void 0===this.displayProfileUrl&&void 0===this.displayLogoUrl)return{};var t={};return void 0!==this.id&&(t.id=this.id),void 0!==this.displayName&&(t.displayName=this.displayName),void 0!==this.displayProfileUrl&&(t.displayProfileUrl=this.displayProfileUrl),void 0!==this.displayLogoUrl&&(t.displayLogoUrl=this.displayLogoUrl),t},t}(),tt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.userId&&void 0===this.displayName&&void 0===this.isConfigured)return{};var t={};return void 0!==this.userId&&(t.userId=this.userId),void 0!==this.displayName&&(t.displayName=this.displayName),void 0!==this.isConfigured&&(t.isConfigured=this.isConfigured),t},t}(),it=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.pageSize&&(e.pageSize=parseInt(i.pageSize,10)),e},t.prototype.toApiJson=function(){if(void 0===this.cursor&&void 0===this.pageSize)return{};var t={};return void 0!==this.cursor&&(t.cursor=this.cursor),void 0!==this.pageSize&&(t.pageSize=this.pageSize),t},t}(),et=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.nextCursor&&void 0===this.hasMore)return{};var t={};return void 0!==this.nextCursor&&(t.nextCursor=this.nextCursor),void 0!==this.hasMore&&(t.hasMore=this.hasMore),t},t}(),nt=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(e){var n=new i;return n=Object.assign(n,e),e.timezone&&(n.timezone=F.fromProto(e.timezone)),e.meetingIntegration&&(n.meetingIntegration=K(t.MeetingSource,e.meetingIntegration)),e.availabilityIncrement&&(n.availabilityIncrement=parseInt(e.availabilityIncrement,10)),e.bufferDurationAfterMeeting&&(n.bufferDurationAfterMeeting=parseInt(e.bufferDurationAfterMeeting,10)),e.noticeTime&&(n.noticeTime=parseInt(e.noticeTime,10)),n},i.prototype.toApiJson=function(){if(void 0===this.timezone&&void 0===this.meetingIntegration&&void 0===this.availabilityIncrement&&void 0===this.bufferDurationAfterMeeting&&void 0===this.noticeTime&&void 0===this.calendarSlug)return{};var t={};return void 0!==this.timezone&&null!==this.timezone&&(t.timezone="toApiJson"in this.timezone?this.timezone.toApiJson():this.timezone),void 0!==this.meetingIntegration&&(t.meetingIntegration=this.meetingIntegration),void 0!==this.availabilityIncrement&&(t.availabilityIncrement=this.availabilityIncrement),void 0!==this.bufferDurationAfterMeeting&&(t.bufferDurationAfterMeeting=this.bufferDurationAfterMeeting),void 0!==this.noticeTime&&(t.noticeTime=this.noticeTime),void 0!==this.calendarSlug&&(t.calendarSlug=this.calendarSlug),t},i}(),ot=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.from&&(e.from=G.fromProto(i.from)),i.to&&(e.to=G.fromProto(i.to)),e},t.prototype.toApiJson=function(){if(void 0===this.from&&void 0===this.to)return{};var t={};return void 0!==this.from&&null!==this.from&&(t.from="toApiJson"in this.from?this.from.toApiJson():this.from),void 0!==this.to&&null!==this.to&&(t.to="toApiJson"in this.to?this.to.toApiJson():this.to),t},t}();var st=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(e){var n,o,s=new i;return s=Object.assign(s,e),e.type&&(s.type=(n=t.FormFieldType,"number"==typeof(o=e.type)?o:n[o])),s},i.prototype.toApiJson=function(){if(void 0===this.id&&void 0===this.label&&void 0===this.type&&void 0===this.required)return{};var t={};return void 0!==this.id&&(t.id=this.id),void 0!==this.label&&(t.label=this.label),void 0!==this.type&&(t.type=this.type),void 0!==this.required&&(t.required=this.required),t},i}(),rt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.fields&&(e.fields=i.fields.map(st.fromProto)),e},t.prototype.toApiJson=function(){if(void 0===this.fields)return{};var t={};return void 0!==this.fields&&null!==this.fields&&(t.fields="toApiJson"in this.fields?this.fields.toApiJson():this.fields),t},t}(),at=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.form&&(e.form=rt.fromProto(i.form)),e},t.prototype.toApiJson=function(){if(void 0===this.id&&void 0===this.name&&void 0===this.duration&&void 0===this.calendarId&&void 0===this.description&&void 0===this.hexColor&&void 0===this.meetingTypeSlug&&void 0===this.isPrivate&&void 0===this.form&&void 0===this.isReserveWithGoogleService&&void 0===this.hostUserIds&&void 0===this.bookingUrl)return{};var t={};return void 0!==this.id&&(t.id=this.id),void 0!==this.name&&(t.name=this.name),void 0!==this.duration&&(t.duration=this.duration),void 0!==this.calendarId&&(t.calendarId=this.calendarId),void 0!==this.description&&(t.description=this.description),void 0!==this.hexColor&&(t.hexColor=this.hexColor),void 0!==this.meetingTypeSlug&&(t.meetingTypeSlug=this.meetingTypeSlug),void 0!==this.isPrivate&&(t.isPrivate=this.isPrivate),void 0!==this.form&&null!==this.form&&(t.form="toApiJson"in this.form?this.form.toApiJson():this.form),void 0!==this.isReserveWithGoogleService&&(t.isReserveWithGoogleService=this.isReserveWithGoogleService),void 0!==this.hostUserIds&&(t.hostUserIds=this.hostUserIds),void 0!==this.bookingUrl&&(t.bookingUrl=this.bookingUrl),t},t}();var ht=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.start&&(e.start=new Date(i.start)),i.end&&(e.end=new Date(i.end)),e},t.prototype.toApiJson=function(){if(void 0===this.start&&void 0===this.end)return{};var t={};return void 0!==this.start&&null!==this.start&&(t.start="toApiJson"in this.start?this.start.toApiJson():this.start),void 0!==this.end&&null!==this.end&&(t.end="toApiJson"in this.end?this.end.toApiJson():this.end),t},t}();var dt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.timeSlot&&(e.timeSlot=ht.fromProto(i.timeSlot)),i.attendees&&(e.attendees=i.attendees.map(Q.fromProto)),i.start&&(e.start=new Date(i.start)),i.metadata&&(e.metadata=Object.keys(i.metadata).reduce((function(t,e){return t[e]=i.metadata[e],t}),{})),i.formAnswers&&(e.formAnswers=q.fromProto(i.formAnswers)),e},t.prototype.toApiJson=function(){if(void 0===this.hostId&&void 0===this.meetingTypeId&&void 0===this.timeSlot&&void 0===this.attendees&&void 0===this.start&&void 0===this.comment&&void 0===this.metadata&&void 0===this.formAnswers&&void 0===this.recaptchaToken)return{};var t={};return void 0!==this.hostId&&(t.hostId=this.hostId),void 0!==this.meetingTypeId&&(t.meetingTypeId=this.meetingTypeId),void 0!==this.timeSlot&&null!==this.timeSlot&&(t.timeSlot="toApiJson"in this.timeSlot?this.timeSlot.toApiJson():this.timeSlot),void 0!==this.attendees&&null!==this.attendees&&(t.attendees="toApiJson"in this.attendees?this.attendees.toApiJson():this.attendees),void 0!==this.start&&null!==this.start&&(t.start="toApiJson"in this.start?this.start.toApiJson():this.start),void 0!==this.comment&&(t.comment=this.comment),void 0!==this.metadata&&null!==this.metadata&&(t.metadata="toApiJson"in this.metadata?this.metadata.toApiJson():this.metadata),void 0!==this.formAnswers&&null!==this.formAnswers&&(t.formAnswers="toApiJson"in this.formAnswers?this.formAnswers.toApiJson():this.formAnswers),void 0!==this.recaptchaToken&&(t.recaptchaToken=this.recaptchaToken),t},t}(),ut=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.meetingId&&void 0===this.hostId)return{};var t={};return void 0!==this.meetingId&&(t.meetingId=this.meetingId),void 0!==this.hostId&&(t.hostId=this.hostId),t},t}(),pt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.calendarId)return{};var t={};return void 0!==this.calendarId&&(t.calendarId=this.calendarId),t},t}(),ct=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.calendar&&(e.calendar=X.fromProto(i.calendar)),e},t.prototype.toApiJson=function(){if(void 0===this.calendar)return{};var t={};return void 0!==this.calendar&&null!==this.calendar&&(t.calendar="toApiJson"in this.calendar?this.calendar.toApiJson():this.calendar),t},t}(),mt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.hostId)return{};var t={};return void 0!==this.hostId&&(t.hostId=this.hostId),t},t}(),vt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.host&&(e.host=$.fromProto(i.host)),e},t.prototype.toApiJson=function(){if(void 0===this.host)return{};var t={};return void 0!==this.host&&null!==this.host&&(t.host="toApiJson"in this.host?this.host.toApiJson():this.host),t},t}(),ft=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.calendarSlug&&void 0===this.meetingTypeSlug)return{};var t={};return void 0!==this.calendarSlug&&(t.calendarSlug=this.calendarSlug),void 0!==this.meetingTypeSlug&&(t.meetingTypeSlug=this.meetingTypeSlug),t},t}(),lt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.meetingType&&(e.meetingType=at.fromProto(i.meetingType)),e},t.prototype.toApiJson=function(){if(void 0===this.meetingType)return{};var t={};return void 0!==this.meetingType&&null!==this.meetingType&&(t.meetingType="toApiJson"in this.meetingType?this.meetingType.toApiJson():this.meetingType),t},t}(),gt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.meetingId&&void 0===this.authToken&&void 0===this.cancellationReason)return{};var t={};return void 0!==this.meetingId&&(t.meetingId=this.meetingId),void 0!==this.authToken&&(t.authToken=this.authToken),void 0!==this.cancellationReason&&(t.cancellationReason=this.cancellationReason),t},t}(),yt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.meetingId&&void 0===this.authToken)return{};var t={};return void 0!==this.meetingId&&(t.meetingId=this.meetingId),void 0!==this.authToken&&(t.authToken=this.authToken),t},t}(),At=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.startTime&&(e.startTime=new Date(i.startTime)),i.endTime&&(e.endTime=new Date(i.endTime)),i.timeZone&&(e.timeZone=F.fromProto(i.timeZone)),e},t.prototype.toApiJson=function(){if(void 0===this.startTime&&void 0===this.endTime&&void 0===this.timeZone&&void 0===this.meetingTypeId)return{};var t={};return void 0!==this.startTime&&null!==this.startTime&&(t.startTime="toApiJson"in this.startTime?this.startTime.toApiJson():this.startTime),void 0!==this.endTime&&null!==this.endTime&&(t.endTime="toApiJson"in this.endTime?this.endTime.toApiJson():this.endTime),void 0!==this.timeZone&&null!==this.timeZone&&(t.timeZone="toApiJson"in this.timeZone?this.timeZone.toApiJson():this.timeZone),void 0!==this.meetingTypeId&&(t.meetingTypeId=this.meetingTypeId),t},t}(),Ot=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.hostId)return{};var t={};return void 0!==this.hostId&&(t.hostId=this.hostId),t},t}(),It=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.isConfigured)return{};var t={};return void 0!==this.isConfigured&&(t.isConfigured=this.isConfigured),t},t}(),Tt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.start&&(e.start=new Date(i.start)),i.timeZone&&(e.timeZone=F.fromProto(i.timeZone)),e},t.prototype.toApiJson=function(){if(void 0===this.meetingId&&void 0===this.authToken&&void 0===this.start&&void 0===this.timeZone)return{};var t={};return void 0!==this.meetingId&&(t.meetingId=this.meetingId),void 0!==this.authToken&&(t.authToken=this.authToken),void 0!==this.start&&null!==this.start&&(t.start="toApiJson"in this.start?this.start.toApiJson():this.start),void 0!==this.timeZone&&null!==this.timeZone&&(t.timeZone="toApiJson"in this.timeZone?this.timeZone.toApiJson():this.timeZone),t},t}(),St=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.timeSpan&&(e.timeSpan=ht.fromProto(i.timeSpan)),i.timeZone&&(e.timeZone=F.fromProto(i.timeZone)),e},t.prototype.toApiJson=function(){if(void 0===this.hostId&&void 0===this.meetingTypeId&&void 0===this.timeSpan&&void 0===this.timeZone)return{};var t={};return void 0!==this.hostId&&(t.hostId=this.hostId),void 0!==this.meetingTypeId&&(t.meetingTypeId=this.meetingTypeId),void 0!==this.timeSpan&&null!==this.timeSpan&&(t.timeSpan="toApiJson"in this.timeSpan?this.timeSpan.toApiJson():this.timeSpan),void 0!==this.timeZone&&null!==this.timeZone&&(t.timeZone="toApiJson"in this.timeZone?this.timeZone.toApiJson():this.timeZone),t},t}(),Et=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.timeSlots&&(e.timeSlots=i.timeSlots.map(ht.fromProto)),e},t.prototype.toApiJson=function(){if(void 0===this.timeSlots)return{};var t={};return void 0!==this.timeSlots&&null!==this.timeSlots&&(t.timeSlots="toApiJson"in this.timeSlots?this.timeSlots.toApiJson():this.timeSlots),t},t}(),Mt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.hostId)return{};var t={};return void 0!==this.hostId&&(t.hostId=this.hostId),t},t}(),bt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.meetingTypes&&(e.meetingTypes=i.meetingTypes.map(at.fromProto)),e},t.prototype.toApiJson=function(){if(void 0===this.meetingTypes)return{};var t={};return void 0!==this.meetingTypes&&null!==this.meetingTypes&&(t.meetingTypes="toApiJson"in this.meetingTypes?this.meetingTypes.toApiJson():this.meetingTypes),t},t}();!function(){function t(t){t&&Object.assign(this,t)}t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.key&&void 0===this.value)return{};var t={};return void 0!==this.key&&(t.key=this.key),void 0!==this.value&&(t.value=this.value),t}}();var Pt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.paths)return{};var t={};return void 0!==this.paths&&(t.paths=this.paths),t},t}();function _t(t,i){return"number"==typeof i?i:t[i]}(function(){function t(t){t&&Object.assign(this,t)}t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.key&&void 0===this.value)return{};var t={};return void 0!==this.key&&(t.key=this.key),void 0!==this.value&&(t.value=this.value),t}})(),function(){function t(t){t&&Object.assign(this,t)}t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.key&&void 0===this.value)return{};var t={};return void 0!==this.key&&(t.key=this.key),void 0!==this.value&&(t.value=this.value),t}}();var Jt=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(e){var n=new i;return n=Object.assign(n,e),e.day&&(n.day=_t(t.DayOfWeek,e.day)),e.timeSlot&&(n.timeSlot=ot.fromProto(e.timeSlot)),e.timeZone&&(n.timeZone=F.fromProto(e.timeZone)),n},i.prototype.toApiJson=function(){if(void 0===this.hostId&&void 0===this.meetingTypeId&&void 0===this.day&&void 0===this.timeSlot&&void 0===this.timeZone)return{};var t={};return void 0!==this.hostId&&(t.hostId=this.hostId),void 0!==this.meetingTypeId&&(t.meetingTypeId=this.meetingTypeId),void 0!==this.day&&(t.day=this.day),void 0!==this.timeSlot&&null!==this.timeSlot&&(t.timeSlot="toApiJson"in this.timeSlot?this.timeSlot.toApiJson():this.timeSlot),void 0!==this.timeZone&&null!==this.timeZone&&(t.timeZone="toApiJson"in this.timeZone?this.timeZone.toApiJson():this.timeZone),t},i}(),jt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.applicationContextProperties&&(e.applicationContextProperties=Object.keys(i.applicationContextProperties).reduce((function(t,e){return t[e]=i.applicationContextProperties[e],t}),{})),e},t.prototype.toApiJson=function(){if(void 0===this.applicationContextProperties&&void 0===this.userId)return{};var t={};return void 0!==this.applicationContextProperties&&null!==this.applicationContextProperties&&(t.applicationContextProperties="toApiJson"in this.applicationContextProperties?this.applicationContextProperties.toApiJson():this.applicationContextProperties),void 0!==this.userId&&(t.userId=this.userId),t},t}(),wt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.hostId)return{};var t={};return void 0!==this.hostId&&(t.hostId=this.hostId),t},t}(),Nt=(function(){function t(t){t&&Object.assign(this,t)}t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.value&&(e.value=Ai.fromProto(i.value)),e},t.prototype.toApiJson=function(){if(void 0===this.key&&void 0===this.value)return{};var t={};return void 0!==this.key&&(t.key=this.key),void 0!==this.value&&null!==this.value&&(t.value="toApiJson"in this.value?this.value.toApiJson():this.value),t}}(),function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.meetingId&&void 0===this.cancellationReason)return{};var t={};return void 0!==this.meetingId&&(t.meetingId=this.meetingId),void 0!==this.cancellationReason&&(t.cancellationReason=this.cancellationReason),t},t}()),Ct=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){return{}},t}(),Ut=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){return{}},t}(),Dt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.calendar&&(e.calendar=X.fromProto(i.calendar)),e},t.prototype.toApiJson=function(){if(void 0===this.calendar)return{};var t={};return void 0!==this.calendar&&null!==this.calendar&&(t.calendar="toApiJson"in this.calendar?this.calendar.toApiJson():this.calendar),t},t}(),kt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.calendarId)return{};var t={};return void 0!==this.calendarId&&(t.calendarId=this.calendarId),t},t}(),Rt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.calendarId)return{};var t={};return void 0!==this.calendarId&&(t.calendarId=this.calendarId),t},t}(),Zt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.meetingType&&(e.meetingType=at.fromProto(i.meetingType)),e},t.prototype.toApiJson=function(){if(void 0===this.meetingType)return{};var t={};return void 0!==this.meetingType&&null!==this.meetingType&&(t.meetingType="toApiJson"in this.meetingType?this.meetingType.toApiJson():this.meetingType),t},t}(),Yt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.id)return{};var t={};return void 0!==this.id&&(t.id=this.id),t},t}(),Lt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){return{}},t}(),Ht=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.id)return{};var t={};return void 0!==this.id&&(t.id=this.id),t},t}(),Wt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.calendarIdentifier)return{};var t={};return void 0!==this.calendarIdentifier&&(t.calendarIdentifier=this.calendarIdentifier),t},t}(),xt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.exists)return{};var t={};return void 0!==this.exists&&(t.exists=this.exists),t},t}(),Gt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.externalIds)return{};var t={};return void 0!==this.externalIds&&(t.externalIds=this.externalIds),t},t}(),Ft=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.calendarIds)return{};var t={};return void 0!==this.calendarIds&&(t.calendarIds=this.calendarIds),t},t}(),Kt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.applicationContextProperties&&(e.applicationContextProperties=Object.keys(i.applicationContextProperties).reduce((function(t,e){return t[e]=i.applicationContextProperties[e],t}),{})),e},t.prototype.toApiJson=function(){if(void 0===this.userId&&void 0===this.applicationContextProperties)return{};var t={};return void 0!==this.userId&&(t.userId=this.userId),void 0!==this.applicationContextProperties&&null!==this.applicationContextProperties&&(t.applicationContextProperties="toApiJson"in this.applicationContextProperties?this.applicationContextProperties.toApiJson():this.applicationContextProperties),t},t}(),Vt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.calendarId)return{};var t={};return void 0!==this.calendarId&&(t.calendarId=this.calendarId),t},t}(),qt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.hostId&&void 0===this.meetingTypeId)return{};var t={};return void 0!==this.hostId&&(t.hostId=this.hostId),void 0!==this.meetingTypeId&&(t.meetingTypeId=this.meetingTypeId),t},t}(),zt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.timeSpan&&(e.timeSpan=ht.fromProto(i.timeSpan)),e},t.prototype.toApiJson=function(){if(void 0===this.meetingTypeIds&&void 0===this.hostId&&void 0===this.timeSpan)return{};var t={};return void 0!==this.meetingTypeIds&&(t.meetingTypeIds=this.meetingTypeIds),void 0!==this.hostId&&(t.hostId=this.hostId),void 0!==this.timeSpan&&null!==this.timeSpan&&(t.timeSpan="toApiJson"in this.timeSpan?this.timeSpan.toApiJson():this.timeSpan),t},t}(),Bt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.meetingId&&void 0===this.location)return{};var t={};return void 0!==this.meetingId&&(t.meetingId=this.meetingId),void 0!==this.location&&(t.location=this.location),t},t}(),Xt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.meeting&&(e.meeting=yi.fromProto(i.meeting)),e},t.prototype.toApiJson=function(){if(void 0===this.meeting)return{};var t={};return void 0!==this.meeting&&null!==this.meeting&&(t.meeting="toApiJson"in this.meeting?this.meeting.toApiJson():this.meeting),t},t}(),Qt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.hostId)return{};var t={};return void 0!==this.hostId&&(t.hostId=this.hostId),t},t}(),$t=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.preferences&&(e.preferences=nt.fromProto(i.preferences)),e},t.prototype.toApiJson=function(){if(void 0===this.preferences)return{};var t={};return void 0!==this.preferences&&null!==this.preferences&&(t.preferences="toApiJson"in this.preferences?this.preferences.toApiJson():this.preferences),t},t}(),ti=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.calendarId)return{};var t={};return void 0!==this.calendarId&&(t.calendarId=this.calendarId),t},t}(),ii=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.hostUsers&&(e.hostUsers=i.hostUsers.map(tt.fromProto)),e},t.prototype.toApiJson=function(){if(void 0===this.hostUsers)return{};var t={};return void 0!==this.hostUsers&&null!==this.hostUsers&&(t.hostUsers="toApiJson"in this.hostUsers?this.hostUsers.toApiJson():this.hostUsers),t},t}(),ei=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.calendarIds)return{};var t={};return void 0!==this.calendarIds&&(t.calendarIds=this.calendarIds),t},t}(),ni=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.calendarMeetingTypesMap&&(e.calendarMeetingTypesMap=Object.keys(i.calendarMeetingTypesMap).reduce((function(t,e){return t[e]=Ai.fromProto(i.calendarMeetingTypesMap[e]),t}),{})),e},t.prototype.toApiJson=function(){if(void 0===this.calendarMeetingTypesMap)return{};var t={};return void 0!==this.calendarMeetingTypesMap&&null!==this.calendarMeetingTypesMap&&(t.calendarMeetingTypesMap="toApiJson"in this.calendarMeetingTypesMap?this.calendarMeetingTypesMap.toApiJson():this.calendarMeetingTypesMap),t},t}(),oi=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(e){var n=new i;return n=Object.assign(n,e),e.meetingSource&&(n.meetingSource=_t(t.MeetingSource,e.meetingSource)),e.timeSlot&&(n.timeSlot=ht.fromProto(e.timeSlot)),e.attendees&&(n.attendees=e.attendees.map(Q.fromProto)),n},i.prototype.toApiJson=function(){if(void 0===this.meetingSource&&void 0===this.calendarId&&void 0===this.meetingTypeId&&void 0===this.timeSlot&&void 0===this.attendees&&void 0===this.topic)return{};var t={};return void 0!==this.meetingSource&&(t.meetingSource=this.meetingSource),void 0!==this.calendarId&&(t.calendarId=this.calendarId),void 0!==this.meetingTypeId&&(t.meetingTypeId=this.meetingTypeId),void 0!==this.timeSlot&&null!==this.timeSlot&&(t.timeSlot="toApiJson"in this.timeSlot?this.timeSlot.toApiJson():this.timeSlot),void 0!==this.attendees&&null!==this.attendees&&(t.attendees="toApiJson"in this.attendees?this.attendees.toApiJson():this.attendees),void 0!==this.topic&&(t.topic=this.topic),t},i}(),si=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.meetingId)return{};var t={};return void 0!==this.meetingId&&(t.meetingId=this.meetingId),t},t}(),ri=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.calendarId)return{};var t={};return void 0!==this.calendarId&&(t.calendarId=this.calendarId),t},t}(),ai=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.calendar&&(e.calendar=X.fromProto(i.calendar)),e},t.prototype.toApiJson=function(){if(void 0===this.calendar)return{};var t={};return void 0!==this.calendar&&null!==this.calendar&&(t.calendar="toApiJson"in this.calendar?this.calendar.toApiJson():this.calendar),t},t}(),hi=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.calendarSlug&&void 0===this.meetingTypeSlug)return{};var t={};return void 0!==this.calendarSlug&&(t.calendarSlug=this.calendarSlug),void 0!==this.meetingTypeSlug&&(t.meetingTypeSlug=this.meetingTypeSlug),t},t}(),di=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.meetingType&&(e.meetingType=at.fromProto(i.meetingType)),e},t.prototype.toApiJson=function(){if(void 0===this.meetingType)return{};var t={};return void 0!==this.meetingType&&null!==this.meetingType&&(t.meetingType="toApiJson"in this.meetingType?this.meetingType.toApiJson():this.meetingType),t},t}(),ui=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.hostId)return{};var t={};return void 0!==this.hostId&&(t.hostId=this.hostId),t},t}(),pi=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.meetingTypes&&(e.meetingTypes=i.meetingTypes.map(at.fromProto)),e},t.prototype.toApiJson=function(){if(void 0===this.meetingTypes)return{};var t={};return void 0!==this.meetingTypes&&null!==this.meetingTypes&&(t.meetingTypes="toApiJson"in this.meetingTypes?this.meetingTypes.toApiJson():this.meetingTypes),t},t}(),ci=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.hostId)return{};var t={};return void 0!==this.hostId&&(t.hostId=this.hostId),t},t}(),mi=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.isConfigured)return{};var t={};return void 0!==this.isConfigured&&(t.isConfigured=this.isConfigured),t},t}(),vi=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.pagingOptions&&(e.pagingOptions=it.fromProto(i.pagingOptions)),i.filters&&(e.filters=qt.fromProto(i.filters)),i.timeZone&&(e.timeZone=F.fromProto(i.timeZone)),e},t.prototype.toApiJson=function(){if(void 0===this.pagingOptions&&void 0===this.filters&&void 0===this.timeZone)return{};var t={};return void 0!==this.pagingOptions&&null!==this.pagingOptions&&(t.pagingOptions="toApiJson"in this.pagingOptions?this.pagingOptions.toApiJson():this.pagingOptions),void 0!==this.filters&&null!==this.filters&&(t.filters="toApiJson"in this.filters?this.filters.toApiJson():this.filters),void 0!==this.timeZone&&null!==this.timeZone&&(t.timeZone="toApiJson"in this.timeZone?this.timeZone.toApiJson():this.timeZone),t},t}(),fi=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.availabilityRules&&(e.availabilityRules=i.availabilityRules.map(Jt.fromProto)),i.metadata&&(e.metadata=et.fromProto(i.metadata)),e},t.prototype.toApiJson=function(){if(void 0===this.availabilityRules&&void 0===this.metadata)return{};var t={};return void 0!==this.availabilityRules&&null!==this.availabilityRules&&(t.availabilityRules="toApiJson"in this.availabilityRules?this.availabilityRules.toApiJson():this.availabilityRules),void 0!==this.metadata&&null!==this.metadata&&(t.metadata="toApiJson"in this.metadata?this.metadata.toApiJson():this.metadata),t},t}(),li=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.filters&&(e.filters=zt.fromProto(i.filters)),i.pagingOptions&&(e.pagingOptions=it.fromProto(i.pagingOptions)),i.timeZone&&(e.timeZone=F.fromProto(i.timeZone)),e},t.prototype.toApiJson=function(){if(void 0===this.filters&&void 0===this.pagingOptions&&void 0===this.timeZone)return{};var t={};return void 0!==this.filters&&null!==this.filters&&(t.filters="toApiJson"in this.filters?this.filters.toApiJson():this.filters),void 0!==this.pagingOptions&&null!==this.pagingOptions&&(t.pagingOptions="toApiJson"in this.pagingOptions?this.pagingOptions.toApiJson():this.pagingOptions),void 0!==this.timeZone&&null!==this.timeZone&&(t.timeZone="toApiJson"in this.timeZone?this.timeZone.toApiJson():this.timeZone),t},t}(),gi=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.meetings&&(e.meetings=i.meetings.map(yi.fromProto)),i.pagingMetadata&&(e.pagingMetadata=et.fromProto(i.pagingMetadata)),e},t.prototype.toApiJson=function(){if(void 0===this.meetings&&void 0===this.pagingMetadata)return{};var t={};return void 0!==this.meetings&&null!==this.meetings&&(t.meetings="toApiJson"in this.meetings?this.meetings.toApiJson():this.meetings),void 0!==this.pagingMetadata&&null!==this.pagingMetadata&&(t.pagingMetadata="toApiJson"in this.pagingMetadata?this.pagingMetadata.toApiJson():this.pagingMetadata),t},t}(),yi=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.start&&(e.start=new Date(i.start)),i.end&&(e.end=new Date(i.end)),i.created&&(e.created=new Date(i.created)),i.updated&&(e.updated=new Date(i.updated)),i.attendees&&(e.attendees=i.attendees.map(B.fromProto)),i.formAnswers&&(e.formAnswers=q.fromProto(i.formAnswers)),i.metadata&&(e.metadata=Object.keys(i.metadata).reduce((function(t,e){return t[e]=i.metadata[e],t}),{})),i.attachments&&(e.attachments=i.attachments.map(z.fromProto)),e},t.prototype.toApiJson=function(){if(void 0===this.id&&void 0===this.eventTypeId&&void 0===this.hostId&&void 0===this.start&&void 0===this.end&&void 0===this.created&&void 0===this.updated&&void 0===this.attendees&&void 0===this.description&&void 0===this.joinMeetingUrl&&void 0===this.topic&&void 0===this.formAnswers&&void 0===this.metadata&&void 0===this.attachments)return{};var t={};return void 0!==this.id&&(t.id=this.id),void 0!==this.eventTypeId&&(t.eventTypeId=this.eventTypeId),void 0!==this.hostId&&(t.hostId=this.hostId),void 0!==this.start&&null!==this.start&&(t.start="toApiJson"in this.start?this.start.toApiJson():this.start),void 0!==this.end&&null!==this.end&&(t.end="toApiJson"in this.end?this.end.toApiJson():this.end),void 0!==this.created&&null!==this.created&&(t.created="toApiJson"in this.created?this.created.toApiJson():this.created),void 0!==this.updated&&null!==this.updated&&(t.updated="toApiJson"in this.updated?this.updated.toApiJson():this.updated),void 0!==this.attendees&&null!==this.attendees&&(t.attendees="toApiJson"in this.attendees?this.attendees.toApiJson():this.attendees),void 0!==this.description&&(t.description=this.description),void 0!==this.joinMeetingUrl&&(t.joinMeetingUrl=this.joinMeetingUrl),void 0!==this.topic&&(t.topic=this.topic),void 0!==this.formAnswers&&null!==this.formAnswers&&(t.formAnswers="toApiJson"in this.formAnswers?this.formAnswers.toApiJson():this.formAnswers),void 0!==this.metadata&&null!==this.metadata&&(t.metadata="toApiJson"in this.metadata?this.metadata.toApiJson():this.metadata),void 0!==this.attachments&&null!==this.attachments&&(t.attachments="toApiJson"in this.attachments?this.attachments.toApiJson():this.attachments),t},t}(),Ai=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.meetingTypes&&(e.meetingTypes=i.meetingTypes.map(at.fromProto)),e},t.prototype.toApiJson=function(){if(void 0===this.meetingTypes)return{};var t={};return void 0!==this.meetingTypes&&null!==this.meetingTypes&&(t.meetingTypes="toApiJson"in this.meetingTypes?this.meetingTypes.toApiJson():this.meetingTypes),t},t}(),Oi=(function(){function t(t){t&&Object.assign(this,t)}t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.key&&void 0===this.value)return{};var t={};return void 0!==this.key&&(t.key=this.key),void 0!==this.value&&(t.value=this.value),t}}(),function(){function t(t){t&&Object.assign(this,t)}t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){if(void 0===this.key&&void 0===this.value)return{};var t={};return void 0!==this.key&&(t.key=this.key),void 0!==this.value&&(t.value=this.value),t}}(),function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.start&&(e.start=new Date(i.start)),e},t.prototype.toApiJson=function(){if(void 0===this.meetingId&&void 0===this.start)return{};var t={};return void 0!==this.meetingId&&(t.meetingId=this.meetingId),void 0!==this.start&&null!==this.start&&(t.start="toApiJson"in this.start?this.start.toApiJson():this.start),t},t}()),Ii=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(e){var n=new i;return n=Object.assign(n,e),e.days&&(n.days=e.days.map((function(i){return _t(t.DayOfWeek,i)}))),e.timeSlot&&(n.timeSlot=ot.fromProto(e.timeSlot)),e.timeZone&&(n.timeZone=F.fromProto(e.timeZone)),e.weekdaysAvailability&&(n.weekdaysAvailability=e.weekdaysAvailability.map(Pi.fromProto)),n},i.prototype.toApiJson=function(){if(void 0===this.hostId&&void 0===this.meetingTypeId&&void 0===this.days&&void 0===this.timeSlot&&void 0===this.timeZone&&void 0===this.weekdaysAvailability)return{};var t={};return void 0!==this.hostId&&(t.hostId=this.hostId),void 0!==this.meetingTypeId&&(t.meetingTypeId=this.meetingTypeId),void 0!==this.days&&(t.days=this.days),void 0!==this.timeSlot&&null!==this.timeSlot&&(t.timeSlot="toApiJson"in this.timeSlot?this.timeSlot.toApiJson():this.timeSlot),void 0!==this.timeZone&&null!==this.timeZone&&(t.timeZone="toApiJson"in this.timeZone?this.timeZone.toApiJson():this.timeZone),void 0!==this.weekdaysAvailability&&null!==this.weekdaysAvailability&&(t.weekdaysAvailability="toApiJson"in this.weekdaysAvailability?this.weekdaysAvailability.toApiJson():this.weekdaysAvailability),t},i}(),Ti=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i)},t.prototype.toApiJson=function(){return{}},t}(),Si=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.calendarUpdate&&(e.calendarUpdate=X.fromProto(i.calendarUpdate)),i.fieldMask&&(e.fieldMask=Pt.fromProto(i.fieldMask)),e},t.prototype.toApiJson=function(){if(void 0===this.calendarId&&void 0===this.calendarUpdate&&void 0===this.fieldMask)return{};var t={};return void 0!==this.calendarId&&(t.calendarId=this.calendarId),void 0!==this.calendarUpdate&&null!==this.calendarUpdate&&(t.calendarUpdate="toApiJson"in this.calendarUpdate?this.calendarUpdate.toApiJson():this.calendarUpdate),void 0!==this.fieldMask&&null!==this.fieldMask&&(t.fieldMask="toApiJson"in this.fieldMask?this.fieldMask.toApiJson():this.fieldMask),t},t}(),Ei=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.preferences&&(e.preferences=nt.fromProto(i.preferences)),i.fieldMask&&(e.fieldMask=Pt.fromProto(i.fieldMask)),e},t.prototype.toApiJson=function(){if(void 0===this.hostId&&void 0===this.preferences&&void 0===this.fieldMask)return{};var t={};return void 0!==this.hostId&&(t.hostId=this.hostId),void 0!==this.preferences&&null!==this.preferences&&(t.preferences="toApiJson"in this.preferences?this.preferences.toApiJson():this.preferences),void 0!==this.fieldMask&&null!==this.fieldMask&&(t.fieldMask="toApiJson"in this.fieldMask?this.fieldMask.toApiJson():this.fieldMask),t},t}(),Mi=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.metadata&&(e.metadata=Object.keys(i.metadata).reduce((function(t,e){return t[e]=i.metadata[e],t}),{})),e},t.prototype.toApiJson=function(){if(void 0===this.meetingId&&void 0===this.metadata)return{};var t={};return void 0!==this.meetingId&&(t.meetingId=this.meetingId),void 0!==this.metadata&&null!==this.metadata&&(t.metadata="toApiJson"in this.metadata?this.metadata.toApiJson():this.metadata),t},t}(),bi=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var e=new t;return e=Object.assign(e,i),i.meetingType&&(e.meetingType=at.fromProto(i.meetingType)),i.fieldMask&&(e.fieldMask=Pt.fromProto(i.fieldMask)),e},t.prototype.toApiJson=function(){if(void 0===this.id&&void 0===this.meetingType&&void 0===this.fieldMask)return{};var t={};return void 0!==this.id&&(t.id=this.id),void 0!==this.meetingType&&null!==this.meetingType&&(t.meetingType="toApiJson"in this.meetingType?this.meetingType.toApiJson():this.meetingType),void 0!==this.fieldMask&&null!==this.fieldMask&&(t.fieldMask="toApiJson"in this.fieldMask?this.fieldMask.toApiJson():this.fieldMask),t},t}(),Pi=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(e){var n=new i;return n=Object.assign(n,e),e.day&&(n.day=_t(t.DayOfWeek,e.day)),e.timeSlots&&(n.timeSlots=e.timeSlots.map(ot.fromProto)),n},i.prototype.toApiJson=function(){if(void 0===this.day&&void 0===this.timeSlots)return{};var t={};return void 0!==this.day&&(t.day=this.day),void 0!==this.timeSlots&&null!==this.timeSlots&&(t.timeSlots="toApiJson"in this.timeSlots?this.timeSlots.toApiJson():this.timeSlots),t},i}(),_i=function(){function t(t){this.environmentService=t}return t.prototype.host=function(){if(this._host)return this._host;switch(this.environmentService.getEnvironment()){case e.Environment.LOCAL:this._host="meetings-api.vendasta-local.com";break;case e.Environment.TEST:this._host="";break;case e.Environment.DEMO:this._host="meetings-demo.apigateway.co";break;case e.Environment.PROD:this._host="meetings-prod.apigateway.co"}return this._host},t.prototype.httpsHost=function(){if(this._httpsHost)return this._httpsHost;switch(this.environmentService.getEnvironment()){case e.Environment.LOCAL:this._httpsHost="meetings.vendasta-local.com";break;case e.Environment.TEST:this._httpsHost="";break;case e.Environment.DEMO:this._httpsHost="meetings-demo.apigateway.co";break;case e.Environment.PROD:this._httpsHost="meetings-prod.apigateway.co"}return this._httpsHost},t.prototype.hostWithScheme=function(){return(this.environmentService.getEnvironment()===e.Environment.LOCAL?"http://":"https://")+this.host()},t.prototype.httpsHostWithScheme=function(){return(this.environmentService.getEnvironment()===e.Environment.LOCAL?"http://":"https://")+this.httpsHost()},t}();_i.decorators=[{type:i.Injectable}],_i.ctorParameters=function(){return[{type:e.EnvironmentService}]};var Ji=function(){function t(t,i){this.http=t,this.hostService=i}return t.prototype.apiOptions=function(){return{headers:new n.HttpHeaders({"Content-Type":"application/json"}),withCredentials:!0}},t.prototype.createMeeting=function(t){var i=t.toApiJson?t:new D(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.GoogleMeet/CreateMeeting",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return k.fromProto(t)})),o.share())},t}();Ji.decorators=[{type:i.Injectable}],Ji.ctorParameters=function(){return[{type:n.HttpClient},{type:_i}]};var ji=function(){function t(t,i){this.http=t,this.hostService=i}return t.prototype.apiOptions=function(){return{headers:new n.HttpHeaders({"Content-Type":"application/json"}),withCredentials:!0}},t.prototype.listMeetingTypes=function(t){var i=t.toApiJson?t:new Mt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/ListMeetingTypes",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return bt.fromProto(t)})),o.share())},t.prototype.getMeetingType=function(t){var i=t.toApiJson?t:new ft(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/GetMeetingType",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return lt.fromProto(t)})),o.share())},t.prototype.listAvailableTimeSlots=function(t){var i=t.toApiJson?t:new St(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/ListAvailableTimeSlots",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return Et.fromProto(t)})),o.share())},t.prototype.bookMeeting=function(t){var i=t.toApiJson?t:new dt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/BookMeeting",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return ut.fromProto(t)})),o.share())},t.prototype.cancelMeeting=function(t){var i=t.toApiJson?t:new gt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/CancelMeeting",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.rescheduleMeeting=function(t){var i=t.toApiJson?t:new Tt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/RescheduleMeeting",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.getGuestBookedMeeting=function(t){var i=t.toApiJson?t:new yt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/GetGuestBookedMeeting",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return At.fromProto(t)})),o.share())},t.prototype.getCalendar=function(t){var i=t.toApiJson?t:new pt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/GetCalendar",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return ct.fromProto(t)})),o.share())},t.prototype.getHost=function(t){var i=t.toApiJson?t:new mt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/GetHost",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return vt.fromProto(t)})),o.share())},t.prototype.isHostConfigured=function(t){var i=t.toApiJson?t:new Ot(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/IsHostConfigured",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return It.fromProto(t)})),o.share())},t}();ji.decorators=[{type:i.Injectable}],ji.ctorParameters=function(){return[{type:n.HttpClient},{type:_i}]};var wi=function(){function t(t,i){this.http=t,this.hostService=i}return t.prototype.apiOptions=function(){return{headers:new n.HttpHeaders({"Content-Type":"application/json"}),withCredentials:!0}},t.prototype.buildHostId=function(t){var i=t.toApiJson?t:new jt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/BuildHostId",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return wt.fromProto(t)})),o.share())},t.prototype.doesCalendarExist=function(t){var i=t.toApiJson?t:new Wt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/DoesCalendarExist",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return xt.fromProto(t)})),o.share())},t.prototype.createCalendar=function(t){var i=t.toApiJson?t:new Dt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/CreateCalendar",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return kt.fromProto(t)})),o.share())},t.prototype.updateCalendar=function(t){var i=t.toApiJson?t:new Si(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/UpdateCalendar",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.getCalendar=function(t){var i=t.toApiJson?t:new ri(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/GetCalendar",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return ai.fromProto(t)})),o.share())},t.prototype.ensurePersonalCalendarExists=function(t){var i=t.toApiJson?t:new Kt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/EnsurePersonalCalendarExists",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return Vt.fromProto(t)})),o.share())},t.prototype.ensureGroupCalendarsExist=function(t){var i=t.toApiJson?t:new Gt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/EnsureGroupCalendarsExist",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return Ft.fromProto(t)})),o.share())},t.prototype.getHostsForCalendar=function(t){var i=t.toApiJson?t:new ti(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/GetHostsForCalendar",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return ii.fromProto(t)})),o.share())},t.prototype.getMeetingTypesForCalendars=function(t){var i=t.toApiJson?t:new ei(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/GetMeetingTypesForCalendars",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return ni.fromProto(t)})),o.share())},t.prototype.listAvailability=function(t){var i=t.toApiJson?t:new vi(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/ListAvailability",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return fi.fromProto(t)})),o.share())},t.prototype.bookMeeting=function(t){var i=t.toApiJson?t:new oi(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/BookMeeting",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return si.fromProto(t)})),o.share())},t.prototype.getHostMeeting=function(t){var i=t.toApiJson?t:new Bt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/GetHostMeeting",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return Xt.fromProto(t)})),o.share())},t.prototype.listBookedMeetings=function(t){var i=t.toApiJson?t:new li(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/ListBookedMeetings",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return gi.fromProto(t)})),o.share())},t.prototype.cancelMeeting=function(t){var i=t.toApiJson?t:new Nt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/CancelMeeting",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.rescheduleMeeting=function(t){var i=t.toApiJson?t:new Oi(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/RescheduleMeeting",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.updateMeetingMetadata=function(t){var i=t.toApiJson?t:new Mi(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/UpdateMeetingMetadata",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.setGeneralAvailability=function(t){var i=t.toApiJson?t:new Ii(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/SetGeneralAvailability",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.createAvailability=function(t){var i=t.toApiJson?t:new Ct(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/CreateAvailability",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return Ut.fromProto(t)})),o.share())},t.prototype.updateAvailability=function(t){var i=t.toApiJson?t:new Ti(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/UpdateAvailability",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.deleteAvailability=function(t){var i=t.toApiJson?t:new Lt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/DeleteAvailability",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.isHostConfigured=function(t){var i=t.toApiJson?t:new ci(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/IsHostConfigured",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return mi.fromProto(t)})),o.share())},t.prototype.getHostPreferences=function(t){var i=t.toApiJson?t:new Qt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/GetHostPreferences",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return $t.fromProto(t)})),o.share())},t.prototype.updateHostPreferences=function(t){var i=t.toApiJson?t:new Ei(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/UpdateHostPreferences",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.getMeetingType=function(t){var i=t.toApiJson?t:new hi(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/GetMeetingType",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return di.fromProto(t)})),o.share())},t.prototype.listMeetingTypes=function(t){var i=t.toApiJson?t:new ui(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/ListMeetingTypes",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return pi.fromProto(t)})),o.share())},t.prototype.createMeetingType=function(t){var i=t.toApiJson?t:new Zt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/CreateMeetingType",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return Yt.fromProto(t)})),o.share())},t.prototype.updateMeetingType=function(t){var i=t.toApiJson?t:new bi(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/UpdateMeetingType",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.deleteMeetingType=function(t){var i=t.toApiJson?t:new Ht(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/DeleteMeetingType",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.createDefaultMeetingTypes=function(t){var i=t.toApiJson?t:new Rt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/CreateDefaultMeetingTypes",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t}();wi.decorators=[{type:i.Injectable}],wi.ctorParameters=function(){return[{type:n.HttpClient},{type:_i}]};var Ni=function(){function t(t,i){this.http=t,this.hostService=i}return t.prototype.apiOptions=function(){return{headers:new n.HttpHeaders({"Content-Type":"application/json"}),withCredentials:!0}},t.prototype.list=function(t){var i=t.toApiJson?t:new O(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingSourceAPI/List",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return I.fromProto(t)})),o.share())},t}();Ni.decorators=[{type:i.Injectable}],Ni.ctorParameters=function(){return[{type:n.HttpClient},{type:_i}]};var Ci=function(){function t(t,i){this.http=t,this.hostService=i}return t.prototype.apiOptions=function(){return{headers:new n.HttpHeaders({"Content-Type":"application/json"}),withCredentials:!0}},t.prototype.createMeeting=function(t){var i=t.toApiJson?t:new E(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.Zoom/CreateMeeting",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return M.fromProto(t)})),o.share())},t}();Ci.decorators=[{type:i.Injectable}],Ci.ctorParameters=function(){return[{type:n.HttpClient},{type:_i}]};var Ui=function(){};function Di(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@-_*";try{var i=new Uint8Array(10);return crypto.getRandomValues(i),Array.from(i).map((function(i){return t.charAt(i%t.length)})).join("")}catch(i){return console.error("User is probably using an unsupported browser. Falling back to less secure password generation",i),new Array(10).map((function(){return Math.floor(Math.random()*t.length)})).join("")}}Ui.decorators=[{type:i.NgModule,args:[{imports:[e.SessionServiceModule,e.EnvironmentServiceModule],providers:[Ji,ji,wi,Ni,Ci,_i],declarations:[],exports:[],entryComponents:[]}]}];var ki=function(){function i(t,i,e){this._api=t,this.zoom=i,this.meet=e}return i.prototype.list=function(t){return this._api.list({queriedSources:t})},i.prototype.listForUser=function(t,i){return this._api.list({iamUserId:t,queriedSources:i})},i.prototype.startInstantMeeting=function(i,e,n,r){var a=new Date;switch(n){case t.MeetingSource.MEETING_SOURCE_INVALID:return s.throwError("Meeting source was not specified");case t.MeetingSource.MEETING_SOURCE_ZOOM:var h=function(t,i,e){var n={type:d.ZOOM_MEETING_RECURRENCE_TYPE_DAILY,repeatInterval:0},o={topic:t,type:u.ZOOM_MEETING_TYPE_INSTANT,startTime:i.toISOString(),duration:void 0,timezone:"UTC",password:Di(),agenda:e,trackingFields:[],recurrence:n,settings:void 0};return new E(o)}(i,a,e);return this.zoom.createMeeting(h).pipe(o.map((function(t){return{url:t.joinUrl,password:t.password,joinURL:t.joinUrl}})));case t.MeetingSource.MEETING_SOURCE_GOOGLE_MEET:if(!r)return s.throwError("Attendees are required to start a Meet Hangout");var p=function(t,i,e){var n={dateTime:i.toISOString(),timeZone:"UTC"},o={dateTime:new Date(i.setMinutes(i.getMinutes()+30)).toISOString(),timeZone:"UTC"};return new D({meeting:{summary:t,start:n,end:o,conferenceData:{createRequest:{requestId:"instant-meet-meeting"},conferenceSolution:{key:{type:"eventHangout"}}},attendees:e}})}(i,a,r);return this.meet.createMeeting(p).pipe(o.map((function(t){return{url:t.meeting.hangoutLink,joinURL:t.meeting.hangoutLink}})));default:return s.throwError("Unrecognized meeting source "+n)}},i.prototype.createBasicZoomScheduledMeeting=function(t,i,e,n,o,s){var r=new E({topic:t,type:u.ZOOM_MEETING_TYPE_SCHEDULED,startTime:e,duration:n,timezone:o,password:s||Di(),agenda:i,settings:{joinBeforeHost:!0,enforceLogin:!1},recurrence:{type:d.ZOOM_MEETING_RECURRENCE_TYPE_DAILY}});return this.zoom.createMeeting(r)},i.prototype.createBasicGoogleMeeting=function(t,i,e,n,o,s){var r=new D({meeting:{attendees:s,description:i,start:{dateTime:e,timeZone:o},end:{dateTime:n,timeZone:o},summary:t}});return this.meet.createMeeting(r)},i}();ki.decorators=[{type:i.Injectable}],ki.ctorParameters=function(){return[{type:Ni},{type:Ci},{type:Ji}]};var Ri,Zi=function(){};function Yi(t){var i=Li(t.environment),e=t.meetingTypeSlug||t.meetingTypeId||"30-minutes",n="https://"+i+"/book/"+(t.calendarSlug||t.calendarId)+"/"+e;return t.metadata?Hi({link:n,metadata:t.metadata}):n}function Li(t){return t===e.Environment.PROD?"bookmenow.info":"bookme-demo-rrncocebdq-uc.a.run.app"}function Hi(t){if(!t.metadata)return t.link;var i=t.metadata,e=Object.keys(i).reduce((function(e,n){return e?e+"&"+n+"="+i[n]:t.link.indexOf("?")>=0?"&"+n+"="+i[n]:"?"+n+"="+i[n]}),"");return""+t.link+e}function Wi(i){var e,n=(null===(e=null==i?void 0:i.meetingTypeApi)||void 0===e?void 0:e.bookingUrl)||"";n=""===n?Yi({environment:i.environment,calendarId:i.calendarId,meetingTypeSlug:i.meetingTypeApi.meetingTypeSlug||i.meetingTypeApi.id||"",metadata:i.metadata,calendarSlug:i.calendarSlug}):Hi({link:n,metadata:i.metadata||{}});var o=Object.assign(Object.assign({},i.meetingTypeApi.form||{fields:[]}),{fields:(i.meetingTypeApi.form&&i.meetingTypeApi.form.fields?i.meetingTypeApi.form.fields:[]).map((function(i){return Object.assign(Object.assign({},i),{id:i.id||"",label:i.label||"",type:i.type||t.FormFieldType.FORM_FIELD_TYPE_INVALID,required:i.required||!1})}))});return{id:i.meetingTypeApi.id||"",calendarId:i.meetingTypeApi.calendarId||"",name:i.meetingTypeApi.name||"",duration:i.meetingTypeApi.duration||"",bookingUrl:n,bookingLink:i.meetingTypeApi.meetingTypeSlug||"",meetingTypeSlug:i.meetingTypeApi.meetingTypeSlug||"",description:i.meetingTypeApi.description||"",hexColor:i.meetingTypeApi.hexColor||"",form:o,hostUserIds:i.meetingTypeApi.hostUserIds||[]}}function xi(t){var i=t.meetingType;return i?{id:i.id||void 0,name:i.name||void 0,hexColor:i.hexColor||void 0,meetingTypeSlug:i.meetingTypeSlug||i.bookingLink||void 0,calendarId:i.calendarId||void 0,description:i.description||void 0,duration:i.duration?i.duration:void 0,form:i.form||void 0,hostUserIds:i.hostUserIds||void 0}:{}}function Gi(t){return{id:t.id,eventTypeId:t.eventTypeId,hostId:t.hostId,start:t.start,end:t.end,description:t.description||"",joinMeetingUrl:t.joinMeetingUrl||"",attendees:t.attendees?t.attendees.map((function(t){return{firstName:t.firstName,lastName:t.lastName,email:t.email,phoneNumber:t.phoneNumber,timeZone:t.timeZone,isPrimary:t.isPrimary||!1}})):[],created:t.created,updated:t.updated,topic:t.topic,formAnswers:Fi(t.formAnswers),metadata:t.metadata||{},attachments:(t.attachments||[]).map((function(t){return{fileTitle:t.fileTitle||"",fileUrl:t.fileUrl||"",fileType:t.fileType||""}}))}}function Fi(i){return i?{formAnswers:(i.formAnswers?i.formAnswers:[]).map((function(i){return{id:i.id||"",label:i.label||"",type:i.type||t.FormFieldType.FORM_FIELD_TYPE_INVALID,answer:i.answer||[]}}))}:{formAnswers:[]}}Zi.decorators=[{type:i.NgModule,args:[{imports:[Ui],providers:[ki]}]}],(t.WellKnownMeetingMetadataKeys||(t.WellKnownMeetingMetadataKeys={})).BUSINESS="msm_business",(Ri=t.WellKnownFormFieldIds||(t.WellKnownFormFieldIds={})).FIRST_NAME="firstName",Ri.LAST_NAME="lastName",Ri.EMAIL="email",Ri.PHONE_NUMBER="phoneNumber",Ri.COMMENT="comment",Ri.INVITEE_EMAILS="inviteeEmail";var Ki,Vi,qi=function(t,i,e){this.results=t,this.nextCursor=i,this.hasMore=e};function zi(i){return{id:i.id||"",calendarType:i.calendarType||t.CalendarType.CALENDAR_TYPE_INVALID,displayName:i.displayName||"",displayProfileUrl:i.displayProfileUrl||"",displayLogoUrl:i.displayLogoUrl||"",bookingUrl:i.bookingUrl||"",slug:i.slug||"",externalId:i.externalId||"",creatorUserId:i.creatorUserId||"",hostUserIds:i.hostUserIds||[],applicationContext:i.applicationContext||{}}}(Ki=t.KnownCalendarApplicationContextKeys||(t.KnownCalendarApplicationContextKeys={})).ExternalIntegration="external_integration",Ki.Business="business_id",Ki.SalesTeam="sales_team_id",(Vi=t.KnownCalendarExternalIntegrations||(t.KnownCalendarExternalIntegrations={})).VSalesTeam="v_sales_team",Vi.VBusiness="v_business";Object.create;function Bi(t,i){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var n,o,s=e.call(t),r=[];try{for(;(void 0===i||i-- >0)&&!(n=s.next()).done;)r.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(e=s.return)&&e.call(s)}finally{if(o)throw o.error}}return r}Object.create;function Xi(t){if(!t)return{seconds:0,nanoseconds:0};var i=Bi(t.replace(/s/g,"").split("."),2),e=i[0],n=i[1],o=Number(e),s=1e9*parseFloat("0."+n);return{seconds:isNaN(o)?0:o,nanoseconds:isNaN(s)?0:s}}function Qi(t){var i=t.updateFields||Object.keys(t.o||{});return new Pt({paths:i||[]})}var $i=function(){function t(t,i){this.guestAPIService=t,this.environmentService=i}return t.prototype.getMeetingType=function(t){var i=this;return this.guestAPIService.getMeetingType(t).pipe(o.map((function(e){return e&&e.meetingType?Wi({environment:i.environmentService.getEnvironment(),calendarId:t.calendarSlug,meetingTypeApi:e.meetingType,metadata:t.metadata,calendarSlug:t.calendarSlug}):{}})))},t.prototype.listMeetingTypes=function(t){var i=this;return this.guestAPIService.listMeetingTypes(t).pipe(o.map((function(e){return e&&e.meetingTypes?e.meetingTypes.map((function(e){return Wi({environment:i.environmentService.getEnvironment(),calendarId:t.hostId,meetingTypeApi:e,metadata:t.metadata,calendarSlug:t.calendarSlug})})):[]})))},t.prototype.listAvailableTimeSlots=function(t){return this.guestAPIService.listAvailableTimeSlots(t).pipe(o.map((function(t){return t.timeSlots?t.timeSlots.map((function(t){return{start:(i=t).start,end:i.end};var i})):[]})))},t.prototype.bookMeeting=function(t){return this.guestAPIService.bookMeeting(Object.assign(Object.assign({},t),{attendees:t.attendees,formAnswers:(i=t.formAnswers,i?{formAnswers:(i.formAnswers||[]).map((function(t){return{id:t.id||void 0,label:t.label||void 0,type:t.type,answer:t.answer||void 0}}))}:{formAnswers:[]})})).pipe(o.map((function(t){return t})));var i},t.prototype.cancelMeeting=function(t){return this.guestAPIService.cancelMeeting(t).pipe(o.mapTo(null))},t.prototype.rescheduleMeeting=function(t){return this.guestAPIService.rescheduleMeeting(t).pipe(o.mapTo(null))},t.prototype.getHost=function(t){return this.guestAPIService.getHost(t).pipe(o.map((function(t){return{displayName:(i=t.host).displayName,displayProfileUrl:i.displayProfileUrl,displayLogoUrl:i.displayLogoUrl};var i})))},t.prototype.getCalendar=function(t){return this.guestAPIService.getCalendar(t).pipe(o.map((function(t){return zi(t.calendar)})))},t.prototype.getBookedMeetingInfo=function(t,i){return this.guestAPIService.getGuestBookedMeeting({meetingId:t,authToken:i}).pipe(o.map((function(t){return{start:t.startTime,end:t.endTime,timeZone:t.timeZone,meetingTypeId:t.meetingTypeId}})))},t.prototype.isHostConfigured=function(t){return this.guestAPIService.isHostConfigured(t).pipe(o.map((function(t){return t.isConfigured})))},t}();$i.decorators=[{type:i.Injectable}],$i.ctorParameters=function(){return[{type:ji},{type:void 0,decorators:[{type:i.Inject,args:[e.EnvironmentServiceInterfaceToken]}]}]};var te=function(){};te.decorators=[{type:i.NgModule,args:[{imports:[Ui],providers:[$i]}]}];var ie=function(){function i(t,i){this.hostAPIService=t,this.environmentService=i}return i.prototype.buildHostId=function(t){return this.hostAPIService.buildHostId({userId:t.userId,applicationContextProperties:t.applicationContextProperties}).pipe(o.map((function(t){return t.hostId||""})))},i.prototype.doesCalendarExist=function(t){return this.hostAPIService.doesCalendarExist({calendarIdentifier:t}).pipe(o.map((function(t){return t.exists})))},i.prototype.getCalendar=function(t){return this.hostAPIService.getCalendar({calendarId:t.calendarId}).pipe(o.map((function(t){return zi(null==t?void 0:t.calendar)})))},i.prototype.ensurePersonalCalendarExists=function(t){return this.hostAPIService.ensurePersonalCalendarExists({userId:t.userId,applicationContextProperties:t.applicationContextProperties}).pipe(o.map((function(t){return t?t.calendarId:""})))},i.prototype.ensureGroupCalendarsExist=function(t){return this.hostAPIService.ensureGroupCalendarsExist({externalIds:t.externalIds}).pipe(o.map((function(t){return(null==t?void 0:t.calendarIds)||[]})))},i.prototype.createCalendar=function(t){return this.hostAPIService.createCalendar(t)},i.prototype.updateCalendarSlug=function(t,i){return this.hostAPIService.updateCalendar({calendarId:t,calendarUpdate:{slug:i},fieldMask:{paths:["slug"]}}).pipe(o.mapTo(void 0))},i.prototype.updateCalendarHostUserIDs=function(t,i){return this.hostAPIService.updateCalendar({calendarId:t,calendarUpdate:{hostUserIds:i},fieldMask:{paths:["host_user_ids"]}}).pipe(o.mapTo(void 0))},i.prototype.getMeetingTypesForCalendars=function(t){var i=this;return this.hostAPIService.getMeetingTypesForCalendars({calendarIds:t.calendarIds}).pipe(o.map((function(e){return(null==e?void 0:e.calendarMeetingTypesMap)?Object.keys(e.calendarMeetingTypesMap).reduce((function(n,o){var s,r,a=((null===(r=e.calendarMeetingTypesMap[o])||void 0===r?void 0:r.meetingTypes)||[]).map((function(e){return Wi({meetingTypeApi:e,environment:i.environmentService.getEnvironment(),calendarId:o,metadata:t.metadata})}));return Object.assign(Object.assign({},n),((s={})[o]=a,s))}),{}):{}})))},i.prototype.listMeetingTypes=function(t){var i=this;return this.hostAPIService.listMeetingTypes(t).pipe(o.map((function(e){return e&&e.meetingTypes?e.meetingTypes.map((function(e){return Wi({meetingTypeApi:e,calendarId:t.hostId,environment:i.environmentService.getEnvironment(),metadata:t.metadata,calendarSlug:t.calendarSlug})})):[]})))},i.prototype.getBookingUrl=function(t){return s.of(Yi(Object.assign(Object.assign({},t),{calendarId:t.calendarId||t.hostId,environment:this.environmentService.getEnvironment(),calendarSlug:t.calendarSlug})))},i.prototype.getGeneralBookingUrl=function(t){return s.of(function(t){var i="https://"+Li(t.environment)+"/"+(t.calendarSlug||t.calendarId);return t.metadata?Hi({link:i,metadata:t.metadata}):i}({environment:this.environmentService.getEnvironment(),calendarId:t.calendarId,metadata:t.metadata,calendarSlug:t.calendarSlug}))},i.prototype.getBookingUrlsMulti=function(t,i,e){var n=this;return s.of(Object.keys(t).reduce((function(o,s){var r;return Object.assign(Object.assign({},o),((r={})[s]=t[s].reduce((function(t,o){var r;return Object.assign(Object.assign({},t),((r={})[o]=Yi({calendarId:s,meetingTypeSlug:o,metadata:i,environment:n.environmentService.getEnvironment(),calendarSlug:e}),r))}),{}),r))}),{}))},i.prototype.isHostConfigured=function(t){return this.hostAPIService.isHostConfigured(t).pipe(o.map((function(t){return t.isConfigured})))},i.prototype.setGeneralAvailability=function(t){var i=Object.assign(Object.assign({},t),{timeZone:new F(t.timeZone)});return t.timeSlot&&(i.timeSlot=new ot(t.timeSlot)),this.hostAPIService.setGeneralAvailability(i).pipe(o.mapTo(null))},i.prototype.listBookedMeetings=function(t){return this.hostAPIService.listBookedMeetings(Object.assign(Object.assign({},t),{pagingOptions:new it({cursor:t.cursor,pageSize:t.pageSize}),filters:new zt(t.filters),timeZone:new F(t.timeZone)})).pipe(o.map((function(t){var i=(t.meetings||[]).map((function(t){return Gi(t)}));return new qi(i,t.pagingMetadata.nextCursor,t.pagingMetadata.hasMore)})))},i.prototype.cancelMeeting=function(t){return this.hostAPIService.cancelMeeting(Object.assign({},t)).pipe(o.mapTo(null))},i.prototype.rescheduleMeeting=function(t){return this.hostAPIService.rescheduleMeeting(Object.assign({},t)).pipe(o.mapTo(null))},i.prototype.listAvailability=function(t){return this.hostAPIService.listAvailability(t).pipe(o.map((function(t){var i=(t.availabilityRules||[]).filter(Boolean).map((function(t){return{hostId:t.hostId||"",meetingTypeId:t.meetingTypeId||"",day:t.day,timeSlot:t.timeSlot,timeZone:t.timeZone}}));return new qi(i,t.metadata.nextCursor,t.metadata.hasMore)})))},i.prototype.updatePreferences=function(t){var i=Qi({o:t.preferences,updateFields:t.updateFields});return 0===i.paths.length?s.of():this.hostAPIService.updateHostPreferences({hostId:t.hostId,preferences:t.preferences,fieldMask:i}).pipe(o.mapTo(void 0))},i.prototype.getPreferences=function(i){return this.hostAPIService.getHostPreferences({hostId:i.hostId}).pipe(o.map((function(i){return{timezone:(e=i.preferences).timezone,meetingIntegration:e.meetingIntegration||t.MeetingSource.MEETING_SOURCE_INVALID,availabilityIncrement:e.availabilityIncrement||0,bufferDurationAfterMeeting:e.bufferDurationAfterMeeting||0,noticeTime:e.noticeTime||0,calendarSlug:e.calendarSlug||""};var e;
|
|
2
|
-
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */})))},i.prototype.getMeeting=function(t,i){return this.hostAPIService.getHostMeeting({meetingId:t,location:i}).pipe(o.map((function(t){return Gi(t.meeting)})))},i.prototype.updateMeetingMetadata=function(t){return this.hostAPIService.updateMeetingMetadata({meetingId:t.meetingId,metadata:t.metadata}).pipe(o.mapTo(void 0))},i.prototype.bookMeeting=function(t){return this.hostAPIService.bookMeeting(t).pipe(o.map((function(t){return t.meetingId})))},i.prototype.createDefaultMeetingTypes=function(t){return this.hostAPIService.createDefaultMeetingTypes({calendarId:t.calendarId}).pipe(o.mapTo(void 0))},i.prototype.createMeetingType=function(t){return this.hostAPIService.createMeetingType({meetingType:xi({meetingType:t.meetingType})}).pipe(o.map((function(t){return t.id})))},i.prototype.updateMeetingType=function(t){var i=Qi({o:t.meetingType,updateFields:t.updateFields});return 0===i.paths.length?s.of():this.hostAPIService.updateMeetingType({id:t.id,meetingType:xi({meetingType:t.meetingType}),fieldMask:i}).pipe(o.mapTo(void 0))},i.prototype.deleteMeetingType=function(t){return this.hostAPIService.deleteMeetingType({id:t.id}).pipe(o.mapTo(void 0))},i.prototype.getHostsForCalendar=function(t){return this.hostAPIService.getHostsForCalendar({calendarId:t.calendarId}).pipe(o.map((function(t){return(t.hostUsers||[]).map((function(t){return{userId:(i=t).userId||"",displayName:i.displayName||"",isConfigured:i.isConfigured||!1};var i}))})))},i}();ie.decorators=[{type:i.Injectable}],ie.ctorParameters=function(){return[{type:wi},{type:void 0,decorators:[{type:i.Inject,args:[e.EnvironmentServiceInterfaceToken]}]}]};var ee=function(){};ee.decorators=[{type:i.NgModule,args:[{imports:[Ui],providers:[ie]}]}],t.Contact=Q,t.CreateCalendarRequest=Dt,t.CreateCalendarResponse=kt,t.GuestModule=te,t.GuestService=$i,t.HostModule=ee,t.HostService=ie,t.MeetingSourceInfo=A,t.MeetingSourceListResponse=I,t.MeetingSourceQuery=T,t.MeetingsModule=Zi,t.MeetingsService=ki,t.PagedResponse=qi,t.WeekdayAvailability=Pi,t.addMetadataToBookingLink=Hi,t.durationFromString=Xi,t.durationStringToMinutes=function(t){var i=Xi(t.duration),e=i.seconds/60+i.nanoseconds/6e10;return t.round?Math.round(e):e},t.durationToString=function(t){return t?(t.seconds||0)+(t.nanoseconds||0)/1e9+"s":"0s"},t.meetingSchedulerIdToMetadataKey=function(t){return t?t.startsWith("msm_")||t.startsWith("utm_")?t:"msm_"+t:""},t.newBusinessCenterApplicationContextProperties=function(t){return{business_id:t.business_id,user_context:"SMB"}},t.newPartnerCenterApplicationContextProperties=function(t){return{partner_id:t.partner_id,user_context:"PARTNER"}},t.newSalesCenterApplicationContextProperties=function(t){return{partner_id:t.partner_id,market_id:t.market_id,user_context:"SALES"}},t.ɵf=Ui,t.ɵg=Ji,t.ɵh=_i,t.ɵi=ji,t.ɵj=wi,t.ɵk=Ni,t.ɵl=Ci,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
16
|
-
//# sourceMappingURL=vendasta-meetings.umd.min.js.map
|