@vendasta/meetings 0.73.1 → 0.74.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/esm2020/lib/_generated/host.service.mjs +25 -0
  2. package/esm2020/lib/_internal/enums/dayofweek.enum.mjs +18 -0
  3. package/esm2020/lib/_internal/enums/index.mjs +11 -0
  4. package/esm2020/lib/_internal/enums/meeting-source.enum.mjs +20 -0
  5. package/esm2020/lib/_internal/enums/shared.enum.mjs +21 -0
  6. package/{esm2015/lib/_internal/enums/zoom.enum.js → esm2020/lib/_internal/enums/zoom.enum.mjs} +1 -1
  7. package/esm2020/lib/_internal/google-meet.api.service.mjs +41 -0
  8. package/esm2020/lib/_internal/index.mjs +15 -0
  9. package/esm2020/lib/_internal/interfaces/date-range.interface.mjs +8 -0
  10. package/esm2020/lib/_internal/interfaces/datetime.interface.mjs +8 -0
  11. package/esm2020/lib/_internal/interfaces/dayofweek.interface.mjs +8 -0
  12. package/esm2020/lib/_internal/interfaces/field-mask.interface.mjs +8 -0
  13. package/esm2020/lib/_internal/interfaces/google-meet.interface.mjs +8 -0
  14. package/esm2020/lib/_internal/interfaces/index.mjs +2 -0
  15. package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +2 -0
  16. package/esm2020/lib/_internal/interfaces/meeting-host.interface.mjs +2 -0
  17. package/esm2020/lib/_internal/interfaces/meeting-source.interface.mjs +8 -0
  18. package/esm2020/lib/_internal/interfaces/meeting-type.interface.mjs +8 -0
  19. package/esm2020/lib/_internal/interfaces/shared.interface.mjs +2 -0
  20. package/esm2020/lib/_internal/interfaces/timeofday.interface.mjs +8 -0
  21. package/esm2020/lib/_internal/interfaces/zoom.interface.mjs +8 -0
  22. package/esm2020/lib/_internal/meeting-guest.api.service.mjs +84 -0
  23. package/esm2020/lib/_internal/meeting-host.api.service.mjs +170 -0
  24. package/esm2020/lib/_internal/meeting-source-api.api.service.mjs +41 -0
  25. package/esm2020/lib/_internal/objects/date-range.mjs +36 -0
  26. package/esm2020/lib/_internal/objects/datetime.mjs +77 -0
  27. package/esm2020/lib/_internal/objects/dayofweek.mjs +7 -0
  28. package/esm2020/lib/_internal/objects/field-mask.mjs +27 -0
  29. package/esm2020/lib/_internal/objects/google-meet.mjs +539 -0
  30. package/esm2020/lib/_internal/objects/index.mjs +18 -0
  31. package/esm2020/lib/_internal/objects/meeting-guest.mjs +511 -0
  32. package/esm2020/lib/_internal/objects/meeting-host.mjs +1485 -0
  33. package/esm2020/lib/_internal/objects/meeting-source.mjs +121 -0
  34. package/esm2020/lib/_internal/objects/meeting-type.mjs +119 -0
  35. package/esm2020/lib/_internal/objects/shared.mjs +426 -0
  36. package/esm2020/lib/_internal/objects/timeofday.mjs +36 -0
  37. package/esm2020/lib/_internal/objects/zoom.mjs +377 -0
  38. package/esm2020/lib/_internal/zoom.api.service.mjs +41 -0
  39. package/esm2020/lib/guest/guest.service.mjs +86 -0
  40. package/esm2020/lib/guest/index.mjs +2 -0
  41. package/esm2020/lib/host/host.service.mjs +308 -0
  42. package/esm2020/lib/host/url.mjs +39 -0
  43. package/esm2020/lib/index.mjs +8 -0
  44. package/esm2020/lib/meetings.service.mjs +168 -0
  45. package/esm2020/lib/shared/availability.mjs +2 -0
  46. package/esm2020/lib/shared/calendar.mjs +29 -0
  47. package/esm2020/lib/shared/duration.mjs +41 -0
  48. package/esm2020/lib/shared/environment.mjs +17 -0
  49. package/esm2020/lib/shared/fieldmask.mjs +6 -0
  50. package/esm2020/lib/shared/host-id.mjs +20 -0
  51. package/esm2020/lib/shared/host-url-map.mjs +2 -0
  52. package/esm2020/lib/shared/host-user.mjs +8 -0
  53. package/esm2020/lib/shared/host.mjs +8 -0
  54. package/esm2020/lib/shared/index.mjs +14 -0
  55. package/esm2020/lib/shared/meeting-type.mjs +60 -0
  56. package/esm2020/lib/shared/meeting.mjs +89 -0
  57. package/esm2020/lib/shared/paged-response.mjs +8 -0
  58. package/esm2020/lib/shared/preferences.mjs +12 -0
  59. package/esm2020/lib/shared/time-span.mjs +7 -0
  60. package/esm2020/public_api.mjs +2 -0
  61. package/esm2020/vendasta-meetings.mjs +5 -0
  62. package/fesm2015/{vendasta-meetings.js → vendasta-meetings.mjs} +487 -519
  63. package/fesm2015/vendasta-meetings.mjs.map +1 -0
  64. package/fesm2020/vendasta-meetings.mjs +5086 -0
  65. package/fesm2020/vendasta-meetings.mjs.map +1 -0
  66. package/lib/_generated/host.service.d.ts +5 -9
  67. package/lib/_internal/google-meet.api.service.d.ts +4 -0
  68. package/lib/_internal/meeting-guest.api.service.d.ts +4 -0
  69. package/lib/_internal/meeting-host.api.service.d.ts +4 -0
  70. package/lib/_internal/meeting-source-api.api.service.d.ts +4 -0
  71. package/lib/_internal/zoom.api.service.d.ts +4 -0
  72. package/lib/guest/guest.service.d.ts +4 -3
  73. package/lib/host/host.service.d.ts +4 -3
  74. package/lib/host/url.d.ts +1 -1
  75. package/lib/meetings.service.d.ts +3 -0
  76. package/lib/shared/environment.d.ts +8 -0
  77. package/lib/shared/meeting-type.d.ts +1 -1
  78. package/package.json +26 -15
  79. package/src/README.md +12 -0
  80. package/vendasta-meetings.d.ts +1 -0
  81. package/bundles/vendasta-meetings.umd.js +0 -5517
  82. package/bundles/vendasta-meetings.umd.js.map +0 -1
  83. package/bundles/vendasta-meetings.umd.min.js +0 -16
  84. package/bundles/vendasta-meetings.umd.min.js.map +0 -1
  85. package/esm2015/lib/_generated/host.service.js +0 -65
  86. package/esm2015/lib/_internal/enums/dayofweek.enum.js +0 -18
  87. package/esm2015/lib/_internal/enums/index.js +0 -11
  88. package/esm2015/lib/_internal/enums/meeting-source.enum.js +0 -20
  89. package/esm2015/lib/_internal/enums/shared.enum.js +0 -21
  90. package/esm2015/lib/_internal/google-meet.api.service.js +0 -42
  91. package/esm2015/lib/_internal/index.js +0 -15
  92. package/esm2015/lib/_internal/interfaces/date-range.interface.js +0 -8
  93. package/esm2015/lib/_internal/interfaces/datetime.interface.js +0 -8
  94. package/esm2015/lib/_internal/interfaces/dayofweek.interface.js +0 -8
  95. package/esm2015/lib/_internal/interfaces/field-mask.interface.js +0 -8
  96. package/esm2015/lib/_internal/interfaces/google-meet.interface.js +0 -8
  97. package/esm2015/lib/_internal/interfaces/index.js +0 -2
  98. package/esm2015/lib/_internal/interfaces/meeting-guest.interface.js +0 -2
  99. package/esm2015/lib/_internal/interfaces/meeting-host.interface.js +0 -2
  100. package/esm2015/lib/_internal/interfaces/meeting-source.interface.js +0 -8
  101. package/esm2015/lib/_internal/interfaces/meeting-type.interface.js +0 -8
  102. package/esm2015/lib/_internal/interfaces/shared.interface.js +0 -2
  103. package/esm2015/lib/_internal/interfaces/timeofday.interface.js +0 -8
  104. package/esm2015/lib/_internal/interfaces/zoom.interface.js +0 -8
  105. package/esm2015/lib/_internal/meeting-guest.api.service.js +0 -85
  106. package/esm2015/lib/_internal/meeting-host.api.service.js +0 -171
  107. package/esm2015/lib/_internal/meeting-source-api.api.service.js +0 -42
  108. package/esm2015/lib/_internal/objects/date-range.js +0 -36
  109. package/esm2015/lib/_internal/objects/datetime.js +0 -77
  110. package/esm2015/lib/_internal/objects/dayofweek.js +0 -7
  111. package/esm2015/lib/_internal/objects/field-mask.js +0 -27
  112. package/esm2015/lib/_internal/objects/google-meet.js +0 -539
  113. package/esm2015/lib/_internal/objects/index.js +0 -18
  114. package/esm2015/lib/_internal/objects/meeting-guest.js +0 -511
  115. package/esm2015/lib/_internal/objects/meeting-host.js +0 -1485
  116. package/esm2015/lib/_internal/objects/meeting-source.js +0 -121
  117. package/esm2015/lib/_internal/objects/meeting-type.js +0 -119
  118. package/esm2015/lib/_internal/objects/shared.js +0 -426
  119. package/esm2015/lib/_internal/objects/timeofday.js +0 -36
  120. package/esm2015/lib/_internal/objects/zoom.js +0 -377
  121. package/esm2015/lib/_internal/zoom.api.service.js +0 -42
  122. package/esm2015/lib/guest/guest.service.js +0 -86
  123. package/esm2015/lib/guest/index.js +0 -2
  124. package/esm2015/lib/host/host.service.js +0 -287
  125. package/esm2015/lib/host/url.js +0 -39
  126. package/esm2015/lib/index.js +0 -8
  127. package/esm2015/lib/meetings.service.js +0 -170
  128. package/esm2015/lib/shared/availability.js +0 -2
  129. package/esm2015/lib/shared/calendar.js +0 -29
  130. package/esm2015/lib/shared/duration.js +0 -41
  131. package/esm2015/lib/shared/fieldmask.js +0 -6
  132. package/esm2015/lib/shared/host-id.js +0 -20
  133. package/esm2015/lib/shared/host-url-map.js +0 -2
  134. package/esm2015/lib/shared/host-user.js +0 -8
  135. package/esm2015/lib/shared/host.js +0 -8
  136. package/esm2015/lib/shared/index.js +0 -14
  137. package/esm2015/lib/shared/meeting-type.js +0 -52
  138. package/esm2015/lib/shared/meeting.js +0 -89
  139. package/esm2015/lib/shared/paged-response.js +0 -8
  140. package/esm2015/lib/shared/preferences.js +0 -12
  141. package/esm2015/lib/shared/time-span.js +0 -7
  142. package/esm2015/public_api.js +0 -2
  143. package/esm2015/vendasta-meetings.js +0 -5
  144. package/fesm2015/vendasta-meetings.js.map +0 -1
  145. package/vendasta-meetings.metadata.json +0 -1
@@ -1,16 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("@angular/common/http"),require("@vendasta/core")):"function"==typeof define&&define.amd?define("@vendasta/meetings",["exports","@angular/core","rxjs","rxjs/operators","@angular/common/http","@vendasta/core"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).vendasta=t.vendasta||{},t.vendasta.meetings={}),t.ng.core,t.rxjs,t.rxjs.operators,t.ng.common.http,t.i2)}(this,(function(t,e,i,n,o,s){"use strict";var r,a,p,c,u,h,d,m,f,l,g,v;function y(t,e){return"number"==typeof e?e:t[e]}(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"}(p||(p={})),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"}(c||(c={})),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"}(h||(h={})),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"}(d||(d={})),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"}(f||(f={})),(l=t.CalendarType||(t.CalendarType={}))[l.CALENDAR_TYPE_INVALID=0]="CALENDAR_TYPE_INVALID",l[l.CALENDAR_TYPE_PERSONAL=1]="CALENDAR_TYPE_PERSONAL",l[l.CALENDAR_TYPE_GROUP=2]="CALENDAR_TYPE_GROUP",(g=t.FormFieldType||(t.FormFieldType={}))[g.FORM_FIELD_TYPE_INVALID=0]="FORM_FIELD_TYPE_INVALID",g[g.FORM_FIELD_TYPE_TEXT=1]="FORM_FIELD_TYPE_TEXT",g[g.FORM_FIELD_TYPE_EMAIL=2]="FORM_FIELD_TYPE_EMAIL",g[g.FORM_FIELD_TYPE_PHONE_NUMBER=3]="FORM_FIELD_TYPE_PHONE_NUMBER",g[g.FORM_FIELD_TYPE_SELECT=4]="FORM_FIELD_TYPE_SELECT",(v=t.DayOfWeek||(t.DayOfWeek={}))[v.DAY_OF_WEEK_UNSPECIFIED=0]="DAY_OF_WEEK_UNSPECIFIED",v[v.MONDAY=1]="MONDAY",v[v.TUESDAY=2]="TUESDAY",v[v.WEDNESDAY=3]="WEDNESDAY",v[v.THURSDAY=4]="THURSDAY",v[v.FRIDAY=5]="FRIDAY",v[v.SATURDAY=6]="SATURDAY",v[v.SUNDAY=7]="SUNDAY";var A=function(){function e(t){t&&Object.assign(this,t)}return e.fromProto=function(i){var n=new e;return n=Object.assign(n,i),i.source&&(n.source=y(t.MeetingSource,i.source)),i.status&&(n.status=y(t.MeetingSourceStatus,i.status)),n},e.prototype.toApiJson=function(){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},e}(),O=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.queriedSources&&(i.queriedSources=e.queriedSources.map(T.fromProto)),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e),e.sourceInfo&&(i.sourceInfo=e.sourceInfo.map(A.fromProto)),i},t.prototype.toApiJson=function(){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 e(t){t&&Object.assign(this,t)}return e.fromProto=function(i){var n=new e;return n=Object.assign(n,i),i.source&&(n.source=y(t.MeetingSource,i.source)),n},e.prototype.toApiJson=function(){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},e}();function E(t,e){return"number"==typeof e?e:t[e]}var S=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.type&&(i.type=E(u,e.type)),e.duration&&(i.duration=parseInt(e.duration,10)),e.trackingFields&&(i.trackingFields=e.trackingFields.map(M.fromProto)),e.recurrence&&(i.recurrence=_.fromProto(e.recurrence)),e.settings&&(i.settings=P.fromProto(e.settings)),i},t.prototype.toApiJson=function(){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}(),b=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.meetingId&&(i.meetingId=parseInt(e.meetingId,10)),e.type&&(i.type=E(u,e.type)),e.duration&&(i.duration=parseInt(e.duration,10)),e.pmi&&(i.pmi=parseInt(e.pmi,10)),e.trackingFields&&(i.trackingFields=e.trackingFields.map(M.fromProto)),e.occurrences&&(i.occurrences=e.occurrences.map(J.fromProto)),e.settings&&(i.settings=P.fromProto(e.settings)),e.recurrence&&(i.recurrence=_.fromProto(e.recurrence)),i},t.prototype.toApiJson=function(){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}(),_=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.type&&(i.type=E(c,e.type)),e.repeatInterval&&(i.repeatInterval=parseInt(e.repeatInterval,10)),e.monthlyDay&&(i.monthlyDay=parseInt(e.monthlyDay,10)),e.monthlyWeek&&(i.monthlyWeek=E(h,e.monthlyWeek)),e.monthlyWeekDay&&(i.monthlyWeekDay=E(d,e.monthlyWeekDay)),e.endTimes&&(i.endTimes=parseInt(e.endTimes,10)),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e),e.approvalType&&(i.approvalType=E(p,e.approvalType)),e.registrationType&&(i.registrationType=E(m,e.registrationType)),i},t.prototype.toApiJson=function(){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}(),M=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e),e.duration&&(i.duration=parseInt(e.duration,10)),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e),e.conferenceSolution&&(i.conferenceSolution=N.fromProto(e.conferenceSolution)),e.createRequest&&(i.createRequest=D.fromProto(e.createRequest)),e.entryPoints&&(i.entryPoints=e.entryPoints.map(k.fromProto)),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e),e.key&&(i.key=C.fromProto(e.key)),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.type&&(t.type=this.type),t},t}(),D=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.conferenceSolutionKey&&(i.conferenceSolutionKey=C.fromProto(e.conferenceSolutionKey)),e.status&&(i.status=w.fromProto(e.status)),i},t.prototype.toApiJson=function(){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}(),U=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.meeting&&(i.meeting=Z.fromProto(e.meeting)),i},t.prototype.toApiJson=function(){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}(),R=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.meeting&&(i.meeting=Z.fromProto(e.meeting)),i},t.prototype.toApiJson=function(){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}(),k=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e),e.attendees&&(i.attendees=e.attendees.map(Y.fromProto)),e.conferenceData&&(i.conferenceData=j.fromProto(e.conferenceData)),e.end&&(i.end=H.fromProto(e.end)),e.originalStartTime&&(i.originalStartTime=H.fromProto(e.originalStartTime)),e.reminders&&(i.reminders=G.fromProto(e.reminders)),e.sequence&&(i.sequence=parseInt(e.sequence,10)),e.start&&(i.start=H.fromProto(e.start)),e.creator&&(i.creator=L.fromProto(e.creator)),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e),e.additionalGuests&&(i.additionalGuests=parseInt(e.additionalGuests,10)),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e),e.minutes&&(i.minutes=parseInt(e.minutes,10)),i},t.prototype.toApiJson=function(){var t={};return void 0!==this.method&&(t.method=this.method),void 0!==this.minutes&&(t.minutes=this.minutes),t},t}(),G=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.overrides&&(i.overrides=e.overrides.map(W.fromProto)),i},t.prototype.toApiJson=function(){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 x=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e),e.timeZone&&(i.timeZone=F.fromProto(e.timeZone)),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.id&&(t.id=this.id),void 0!==this.version&&(t.version=this.version),t},t}();function K(t,e){return"number"==typeof e?e:t[e]}var V=function(){function e(t){t&&Object.assign(this,t)}return e.fromProto=function(i){var n=new e;return n=Object.assign(n,i),i.type&&(n.type=K(t.FormFieldType,i.type)),n},e.prototype.toApiJson=function(){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},e}(),q=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.formAnswers&&(i.formAnswers=e.formAnswers.map(V.fromProto)),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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 e(t){t&&Object.assign(this,t)}return e.fromProto=function(i){var n=new e;return n=Object.assign(n,i),i.applicationContext&&(n.applicationContext=Object.keys(i.applicationContext).reduce((function(t,e){return t[e]=i.applicationContext[e],t}),{})),i.calendarType&&(n.calendarType=K(t.CalendarType,i.calendarType)),n},e.prototype.toApiJson=function(){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},e}(),Q=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.timeZone&&(i.timeZone=F.fromProto(e.timeZone)),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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}(),et=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.pageSize&&(i.pageSize=parseInt(e.pageSize,10)),i},t.prototype.toApiJson=function(){var t={};return void 0!==this.cursor&&(t.cursor=this.cursor),void 0!==this.pageSize&&(t.pageSize=this.pageSize),t},t}(),it=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.nextCursor&&(t.nextCursor=this.nextCursor),void 0!==this.hasMore&&(t.hasMore=this.hasMore),t},t}(),nt=function(){function e(t){t&&Object.assign(this,t)}return e.fromProto=function(i){var n=new e;return n=Object.assign(n,i),i.timezone&&(n.timezone=F.fromProto(i.timezone)),i.meetingIntegration&&(n.meetingIntegration=K(t.MeetingSource,i.meetingIntegration)),i.availabilityIncrement&&(n.availabilityIncrement=parseInt(i.availabilityIncrement,10)),i.bufferDurationAfterMeeting&&(n.bufferDurationAfterMeeting=parseInt(i.bufferDurationAfterMeeting,10)),i.noticeTime&&(n.noticeTime=parseInt(i.noticeTime,10)),n},e.prototype.toApiJson=function(){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},e}(),ot=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.from&&(i.from=x.fromProto(e.from)),e.to&&(i.to=x.fromProto(e.to)),i},t.prototype.toApiJson=function(){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 e(t){t&&Object.assign(this,t)}return e.fromProto=function(i){var n,o,s=new e;return s=Object.assign(s,i),i.type&&(s.type=(n=t.FormFieldType,"number"==typeof(o=i.type)?o:n[o])),s},e.prototype.toApiJson=function(){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},e}(),rt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.fields&&(i.fields=e.fields.map(st.fromProto)),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e),e.form&&(i.form=rt.fromProto(e.form)),i},t.prototype.toApiJson=function(){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 pt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.start&&(i.start=new Date(e.start)),e.end&&(i.end=new Date(e.end)),i},t.prototype.toApiJson=function(){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 ct=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.timeSlot&&(i.timeSlot=pt.fromProto(e.timeSlot)),e.attendees&&(i.attendees=e.attendees.map(Q.fromProto)),e.start&&(i.start=new Date(e.start)),e.metadata&&(i.metadata=Object.keys(e.metadata).reduce((function(t,i){return t[i]=e.metadata[i],t}),{})),e.formAnswers&&(i.formAnswers=q.fromProto(e.formAnswers)),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.meetingId&&(t.meetingId=this.meetingId),void 0!==this.hostId&&(t.hostId=this.hostId),t},t}(),ht=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.calendarId&&(t.calendarId=this.calendarId),t},t}(),dt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.calendar&&(i.calendar=X.fromProto(e.calendar)),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.hostId&&(t.hostId=this.hostId),t},t}(),ft=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.host&&(i.host=$.fromProto(e.host)),i},t.prototype.toApiJson=function(){var t={};return void 0!==this.host&&null!==this.host&&(t.host="toApiJson"in this.host?this.host.toApiJson():this.host),t},t}(),lt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.calendarSlug&&(t.calendarSlug=this.calendarSlug),void 0!==this.meetingTypeSlug&&(t.meetingTypeSlug=this.meetingTypeSlug),t},t}(),gt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.meetingType&&(i.meetingType=at.fromProto(e.meetingType)),i},t.prototype.toApiJson=function(){var t={};return void 0!==this.meetingType&&null!==this.meetingType&&(t.meetingType="toApiJson"in this.meetingType?this.meetingType.toApiJson():this.meetingType),t},t}(),vt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e),e.startTime&&(i.startTime=new Date(e.startTime)),e.endTime&&(i.endTime=new Date(e.endTime)),e.timeZone&&(i.timeZone=F.fromProto(e.timeZone)),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e),e.start&&(i.start=new Date(e.start)),e.timeZone&&(i.timeZone=F.fromProto(e.timeZone)),i},t.prototype.toApiJson=function(){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}(),Et=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.timeSpan&&(i.timeSpan=pt.fromProto(e.timeSpan)),e.timeZone&&(i.timeZone=F.fromProto(e.timeZone)),i},t.prototype.toApiJson=function(){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}(),St=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.timeSlots&&(i.timeSlots=e.timeSlots.map(pt.fromProto)),i},t.prototype.toApiJson=function(){var t={};return void 0!==this.timeSlots&&null!==this.timeSlots&&(t.timeSlots="toApiJson"in this.timeSlots?this.timeSlots.toApiJson():this.timeSlots),t},t}(),bt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e),e.meetingTypes&&(i.meetingTypes=e.meetingTypes.map(at.fromProto)),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.paths&&(t.paths=this.paths),t},t}();function Mt(t,e){return"number"==typeof e?e:t[e]}(function(){function t(t){t&&Object.assign(this,t)}t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.key&&(t.key=this.key),void 0!==this.value&&(t.value=this.value),t}}();var Jt=function(){function e(t){t&&Object.assign(this,t)}return e.fromProto=function(i){var n=new e;return n=Object.assign(n,i),i.day&&(n.day=Mt(t.DayOfWeek,i.day)),i.timeSlot&&(n.timeSlot=ot.fromProto(i.timeSlot)),i.timeZone&&(n.timeZone=F.fromProto(i.timeZone)),n},e.prototype.toApiJson=function(){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},e}(),jt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.applicationContextProperties&&(i.applicationContextProperties=Object.keys(e.applicationContextProperties).reduce((function(t,i){return t[i]=e.applicationContextProperties[i],t}),{})),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e),e.value&&(i.value=Ae.fromProto(e.value)),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){return{}},t}(),Dt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){return{}},t}(),Ut=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.calendar&&(i.calendar=X.fromProto(e.calendar)),i},t.prototype.toApiJson=function(){var t={};return void 0!==this.calendar&&null!==this.calendar&&(t.calendar="toApiJson"in this.calendar?this.calendar.toApiJson():this.calendar),t},t}(),Rt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.calendarId&&(t.calendarId=this.calendarId),t},t}(),kt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.calendarId&&(t.calendarId=this.calendarId),void 0!==this.calendarIds&&(t.calendarIds=this.calendarIds),t},t}(),Zt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.meetingType&&(i.meetingType=at.fromProto(e.meetingType)),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){return{}},t}(),Ht=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.calendarIdentifier&&(t.calendarIdentifier=this.calendarIdentifier),t},t}(),Gt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.exists&&(t.exists=this.exists),t},t}(),xt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e),e.applicationContextProperties&&(i.applicationContextProperties=Object.keys(e.applicationContextProperties).reduce((function(t,i){return t[i]=e.applicationContextProperties[i],t}),{})),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e),e.timeSpan&&(i.timeSpan=pt.fromProto(e.timeSpan)),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e),e.meeting&&(i.meeting=ye.fromProto(e.meeting)),i},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e),e.preferences&&(i.preferences=nt.fromProto(e.preferences)),i},t.prototype.toApiJson=function(){var t={};return void 0!==this.preferences&&null!==this.preferences&&(t.preferences="toApiJson"in this.preferences?this.preferences.toApiJson():this.preferences),t},t}(),te=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.calendarId&&(t.calendarId=this.calendarId),t},t}(),ee=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.hostUsers&&(i.hostUsers=e.hostUsers.map(tt.fromProto)),i},t.prototype.toApiJson=function(){var t={};return void 0!==this.hostUsers&&null!==this.hostUsers&&(t.hostUsers="toApiJson"in this.hostUsers?this.hostUsers.toApiJson():this.hostUsers),t},t}(),ie=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.calendarIds&&(t.calendarIds=this.calendarIds),t},t}(),ne=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.calendarMeetingTypesMap&&(i.calendarMeetingTypesMap=Object.keys(e.calendarMeetingTypesMap).reduce((function(t,i){return t[i]=Ae.fromProto(e.calendarMeetingTypesMap[i]),t}),{})),i},t.prototype.toApiJson=function(){var t={};return void 0!==this.calendarMeetingTypesMap&&null!==this.calendarMeetingTypesMap&&(t.calendarMeetingTypesMap="toApiJson"in this.calendarMeetingTypesMap?this.calendarMeetingTypesMap.toApiJson():this.calendarMeetingTypesMap),t},t}(),oe=function(){function e(t){t&&Object.assign(this,t)}return e.fromProto=function(i){var n=new e;return n=Object.assign(n,i),i.meetingSource&&(n.meetingSource=Mt(t.MeetingSource,i.meetingSource)),i.timeSlot&&(n.timeSlot=pt.fromProto(i.timeSlot)),i.attendees&&(n.attendees=i.attendees.map(Q.fromProto)),n},e.prototype.toApiJson=function(){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},e}(),se=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.meetingId&&(t.meetingId=this.meetingId),t},t}(),re=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.calendarId&&(t.calendarId=this.calendarId),t},t}(),ae=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.calendar&&(i.calendar=X.fromProto(e.calendar)),i},t.prototype.toApiJson=function(){var t={};return void 0!==this.calendar&&null!==this.calendar&&(t.calendar="toApiJson"in this.calendar?this.calendar.toApiJson():this.calendar),t},t}(),pe=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.calendarSlug&&(t.calendarSlug=this.calendarSlug),void 0!==this.meetingTypeSlug&&(t.meetingTypeSlug=this.meetingTypeSlug),t},t}(),ce=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.meetingType&&(i.meetingType=at.fromProto(e.meetingType)),i},t.prototype.toApiJson=function(){var t={};return void 0!==this.meetingType&&null!==this.meetingType&&(t.meetingType="toApiJson"in this.meetingType?this.meetingType.toApiJson():this.meetingType),t},t}(),ue=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.hostId&&(t.hostId=this.hostId),t},t}(),he=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.meetingTypes&&(i.meetingTypes=e.meetingTypes.map(at.fromProto)),i},t.prototype.toApiJson=function(){var t={};return void 0!==this.meetingTypes&&null!==this.meetingTypes&&(t.meetingTypes="toApiJson"in this.meetingTypes?this.meetingTypes.toApiJson():this.meetingTypes),t},t}(),de=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.hostId&&(t.hostId=this.hostId),t},t}(),me=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){var t={};return void 0!==this.isConfigured&&(t.isConfigured=this.isConfigured),t},t}(),fe=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.pagingOptions&&(i.pagingOptions=et.fromProto(e.pagingOptions)),e.filters&&(i.filters=qt.fromProto(e.filters)),e.timeZone&&(i.timeZone=F.fromProto(e.timeZone)),i},t.prototype.toApiJson=function(){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}(),le=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.availabilityRules&&(i.availabilityRules=e.availabilityRules.map(Jt.fromProto)),e.metadata&&(i.metadata=it.fromProto(e.metadata)),i},t.prototype.toApiJson=function(){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}(),ge=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.filters&&(i.filters=zt.fromProto(e.filters)),e.pagingOptions&&(i.pagingOptions=et.fromProto(e.pagingOptions)),e.timeZone&&(i.timeZone=F.fromProto(e.timeZone)),i},t.prototype.toApiJson=function(){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}(),ve=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.meetings&&(i.meetings=e.meetings.map(ye.fromProto)),e.pagingMetadata&&(i.pagingMetadata=it.fromProto(e.pagingMetadata)),i},t.prototype.toApiJson=function(){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}(),ye=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.start&&(i.start=new Date(e.start)),e.end&&(i.end=new Date(e.end)),e.created&&(i.created=new Date(e.created)),e.updated&&(i.updated=new Date(e.updated)),e.attendees&&(i.attendees=e.attendees.map(B.fromProto)),e.formAnswers&&(i.formAnswers=q.fromProto(e.formAnswers)),e.metadata&&(i.metadata=Object.keys(e.metadata).reduce((function(t,i){return t[i]=e.metadata[i],t}),{})),e.attachments&&(i.attachments=e.attachments.map(z.fromProto)),i},t.prototype.toApiJson=function(){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}(),Ae=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.meetingTypes&&(i.meetingTypes=e.meetingTypes.map(at.fromProto)),i},t.prototype.toApiJson=function(){var t={};return void 0!==this.meetingTypes&&null!==this.meetingTypes&&(t.meetingTypes="toApiJson"in this.meetingTypes?this.meetingTypes.toApiJson():this.meetingTypes),t},t}(),Oe=(function(){function t(t){t&&Object.assign(this,t)}t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){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(e){var i=new t;return i=Object.assign(i,e),e.start&&(i.start=new Date(e.start)),i},t.prototype.toApiJson=function(){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}()),Ie=function(){function e(t){t&&Object.assign(this,t)}return e.fromProto=function(i){var n=new e;return n=Object.assign(n,i),i.days&&(n.days=i.days.map((function(e){return Mt(t.DayOfWeek,e)}))),i.timeSlot&&(n.timeSlot=ot.fromProto(i.timeSlot)),i.timeZone&&(n.timeZone=F.fromProto(i.timeZone)),i.weekdaysAvailability&&(n.weekdaysAvailability=i.weekdaysAvailability.map(Pe.fromProto)),n},e.prototype.toApiJson=function(){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},e}(),Te=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e)},t.prototype.toApiJson=function(){return{}},t}(),Ee=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.calendarUpdate&&(i.calendarUpdate=X.fromProto(e.calendarUpdate)),e.fieldMask&&(i.fieldMask=Pt.fromProto(e.fieldMask)),i},t.prototype.toApiJson=function(){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}(),Se=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.preferences&&(i.preferences=nt.fromProto(e.preferences)),e.fieldMask&&(i.fieldMask=Pt.fromProto(e.fieldMask)),i},t.prototype.toApiJson=function(){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}(),be=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.metadata&&(i.metadata=Object.keys(e.metadata).reduce((function(t,i){return t[i]=e.metadata[i],t}),{})),i},t.prototype.toApiJson=function(){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}(),_e=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(e){var i=new t;return i=Object.assign(i,e),e.meetingType&&(i.meetingType=at.fromProto(e.meetingType)),e.fieldMask&&(i.fieldMask=Pt.fromProto(e.fieldMask)),i},t.prototype.toApiJson=function(){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}(),Pe=function(){function e(t){t&&Object.assign(this,t)}return e.fromProto=function(i){var n=new e;return n=Object.assign(n,i),i.day&&(n.day=Mt(t.DayOfWeek,i.day)),i.timeSlots&&(n.timeSlots=i.timeSlots.map(ot.fromProto)),n},e.prototype.toApiJson=function(){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},e}(),Me=function(){function t(t){this.environmentService=t}return t.prototype.host=function(){if(this._host)return this._host;switch(this.environmentService.getEnvironment()){case s.Environment.LOCAL:this._host="meetings-api.vendasta-local.com";break;case s.Environment.TEST:this._host="";break;case s.Environment.DEMO:this._host="meetings-demo.apigateway.co";break;case s.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 s.Environment.LOCAL:this._httpsHost="meetings.vendasta-local.com";break;case s.Environment.TEST:this._httpsHost="";break;case s.Environment.DEMO:this._httpsHost="meetings-demo.apigateway.co";break;case s.Environment.PROD:this._httpsHost="meetings-prod.apigateway.co"}return this._httpsHost},t.prototype.hostWithScheme=function(){return(this.environmentService.getEnvironment()===s.Environment.LOCAL?"http://":"https://")+this.host()},t.prototype.httpsHostWithScheme=function(){return(this.environmentService.getEnvironment()===s.Environment.LOCAL?"http://":"https://")+this.httpsHost()},t}();Me.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new Me(e.ɵɵinject(s.EnvironmentService))},token:Me,providedIn:"root"}),Me.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],Me.ctorParameters=function(){return[{type:s.EnvironmentService}]};var Je=function(){function t(t,e){this.http=t,this.hostService=e}return t.prototype.apiOptions=function(){return{headers:new o.HttpHeaders({"Content-Type":"application/json"}),withCredentials:!0}},t.prototype.list=function(t){var e=t.toApiJson?t:new O(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingSourceAPI/List",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return I.fromProto(t)})),n.share())},t}();Je.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new Je(e.ɵɵinject(o.HttpClient),e.ɵɵinject(Me))},token:Je,providedIn:"root"}),Je.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],Je.ctorParameters=function(){return[{type:o.HttpClient},{type:Me}]};var je=function(){function t(t,e){this.http=t,this.hostService=e}return t.prototype.apiOptions=function(){return{headers:new o.HttpHeaders({"Content-Type":"application/json"}),withCredentials:!0}},t.prototype.createMeeting=function(t){var e=t.toApiJson?t:new S(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.Zoom/CreateMeeting",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return b.fromProto(t)})),n.share())},t}();je.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new je(e.ɵɵinject(o.HttpClient),e.ɵɵinject(Me))},token:je,providedIn:"root"}),je.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],je.ctorParameters=function(){return[{type:o.HttpClient},{type:Me}]};var we=function(){function t(t,e){this.http=t,this.hostService=e}return t.prototype.apiOptions=function(){return{headers:new o.HttpHeaders({"Content-Type":"application/json"}),withCredentials:!0}},t.prototype.createMeeting=function(t){var e=t.toApiJson?t:new U(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.GoogleMeet/CreateMeeting",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return R.fromProto(t)})),n.share())},t}();function Ne(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@-_*";try{var e=new Uint8Array(10);return crypto.getRandomValues(e),Array.from(e).map((function(e){return t.charAt(e%t.length)})).join("")}catch(e){return console.error("User is probably using an unsupported browser. Falling back to less secure password generation",e),new Array(10).map((function(){return Math.floor(Math.random()*t.length)})).join("")}}we.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new we(e.ɵɵinject(o.HttpClient),e.ɵɵinject(Me))},token:we,providedIn:"root"}),we.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],we.ctorParameters=function(){return[{type:o.HttpClient},{type:Me}]};var Ce=function(){function e(t,e,i){this._api=t,this.zoom=e,this.meet=i}return e.prototype.list=function(t){return this._api.list({queriedSources:t})},e.prototype.listForUser=function(t,e){return this._api.list({iamUserId:t,queriedSources:e})},e.prototype.startInstantMeeting=function(e,o,s,r){var a=new Date;switch(s){case t.MeetingSource.MEETING_SOURCE_INVALID:return i.throwError("Meeting source was not specified");case t.MeetingSource.MEETING_SOURCE_ZOOM:var p=function(t,e,i){var n={type:c.ZOOM_MEETING_RECURRENCE_TYPE_DAILY,repeatInterval:0},o={topic:t,type:u.ZOOM_MEETING_TYPE_INSTANT,startTime:e.toISOString(),duration:void 0,timezone:"UTC",password:Ne(),agenda:i,trackingFields:[],recurrence:n,settings:void 0};return new S(o)}(e,a,o);return this.zoom.createMeeting(p).pipe(n.map((function(t){return{url:t.joinUrl,password:t.password,joinURL:t.joinUrl}})));case t.MeetingSource.MEETING_SOURCE_GOOGLE_MEET:if(!r)return i.throwError("Attendees are required to start a Meet Hangout");var h=function(t,e,i){var n={dateTime:e.toISOString(),timeZone:"UTC"},o={dateTime:new Date(e.setMinutes(e.getMinutes()+30)).toISOString(),timeZone:"UTC"};return new U({meeting:{summary:t,start:n,end:o,conferenceData:{createRequest:{requestId:"instant-meet-meeting"},conferenceSolution:{key:{type:"eventHangout"}}},attendees:i}})}(e,a,r);return this.meet.createMeeting(h).pipe(n.map((function(t){return{url:t.meeting.hangoutLink,joinURL:t.meeting.hangoutLink}})));default:return i.throwError("Unrecognized meeting source "+s)}},e.prototype.createBasicZoomScheduledMeeting=function(t,e,i,n,o,s){var r=new S({topic:t,type:u.ZOOM_MEETING_TYPE_SCHEDULED,startTime:i,duration:n,timezone:o,password:s||Ne(),agenda:e,settings:{joinBeforeHost:!0,enforceLogin:!1},recurrence:{type:c.ZOOM_MEETING_RECURRENCE_TYPE_DAILY}});return this.zoom.createMeeting(r)},e.prototype.createBasicGoogleMeeting=function(t,e,i,n,o,s){var r=new U({meeting:{attendees:s,description:e,start:{dateTime:i,timeZone:o},end:{dateTime:n,timeZone:o},summary:t}});return this.meet.createMeeting(r)},e}();Ce.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new Ce(e.ɵɵinject(Je),e.ɵɵinject(je),e.ɵɵinject(we))},token:Ce,providedIn:"root"}),Ce.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],Ce.ctorParameters=function(){return[{type:Je},{type:je},{type:we}]};var De=function(){function t(t,e){this.http=t,this.hostService=e}return t.prototype.apiOptions=function(){return{headers:new o.HttpHeaders({"Content-Type":"application/json"}),withCredentials:!0}},t.prototype.listMeetingTypes=function(t){var e=t.toApiJson?t:new bt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/ListMeetingTypes",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return _t.fromProto(t)})),n.share())},t.prototype.getMeetingType=function(t){var e=t.toApiJson?t:new lt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/GetMeetingType",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return gt.fromProto(t)})),n.share())},t.prototype.listAvailableTimeSlots=function(t){var e=t.toApiJson?t:new Et(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/ListAvailableTimeSlots",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return St.fromProto(t)})),n.share())},t.prototype.bookMeeting=function(t){var e=t.toApiJson?t:new ct(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/BookMeeting",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return ut.fromProto(t)})),n.share())},t.prototype.cancelMeeting=function(t){var e=t.toApiJson?t:new vt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/CancelMeeting",e.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.rescheduleMeeting=function(t){var e=t.toApiJson?t:new Tt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/RescheduleMeeting",e.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.getGuestBookedMeeting=function(t){var e=t.toApiJson?t:new yt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/GetGuestBookedMeeting",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return At.fromProto(t)})),n.share())},t.prototype.getCalendar=function(t){var e=t.toApiJson?t:new ht(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/GetCalendar",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return dt.fromProto(t)})),n.share())},t.prototype.getHost=function(t){var e=t.toApiJson?t:new mt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/GetHost",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return ft.fromProto(t)})),n.share())},t.prototype.isHostConfigured=function(t){var e=t.toApiJson?t:new Ot(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingGuest/IsHostConfigured",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return It.fromProto(t)})),n.share())},t}();De.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new De(e.ɵɵinject(o.HttpClient),e.ɵɵinject(Me))},token:De,providedIn:"root"}),De.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],De.ctorParameters=function(){return[{type:o.HttpClient},{type:Me}]};var Ue,Re=function(){function t(t,e){this.http=t,this.hostService=e}return t.prototype.apiOptions=function(){return{headers:new o.HttpHeaders({"Content-Type":"application/json"}),withCredentials:!0}},t.prototype.buildHostId=function(t){var e=t.toApiJson?t:new jt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/BuildHostId",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return wt.fromProto(t)})),n.share())},t.prototype.doesCalendarExist=function(t){var e=t.toApiJson?t:new Wt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/DoesCalendarExist",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return Gt.fromProto(t)})),n.share())},t.prototype.createCalendar=function(t){var e=t.toApiJson?t:new Ut(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/CreateCalendar",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return Rt.fromProto(t)})),n.share())},t.prototype.updateCalendar=function(t){var e=t.toApiJson?t:new Ee(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/UpdateCalendar",e.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.getCalendar=function(t){var e=t.toApiJson?t:new re(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/GetCalendar",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return ae.fromProto(t)})),n.share())},t.prototype.ensurePersonalCalendarExists=function(t){var e=t.toApiJson?t:new Kt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/EnsurePersonalCalendarExists",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return Vt.fromProto(t)})),n.share())},t.prototype.ensureGroupCalendarsExist=function(t){var e=t.toApiJson?t:new xt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/EnsureGroupCalendarsExist",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return Ft.fromProto(t)})),n.share())},t.prototype.getHostsForCalendar=function(t){var e=t.toApiJson?t:new te(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/GetHostsForCalendar",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return ee.fromProto(t)})),n.share())},t.prototype.getMeetingTypesForCalendars=function(t){var e=t.toApiJson?t:new ie(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/GetMeetingTypesForCalendars",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return ne.fromProto(t)})),n.share())},t.prototype.listAvailability=function(t){var e=t.toApiJson?t:new fe(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/ListAvailability",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return le.fromProto(t)})),n.share())},t.prototype.bookMeeting=function(t){var e=t.toApiJson?t:new oe(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/BookMeeting",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return se.fromProto(t)})),n.share())},t.prototype.getHostMeeting=function(t){var e=t.toApiJson?t:new Bt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/GetHostMeeting",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return Xt.fromProto(t)})),n.share())},t.prototype.listBookedMeetings=function(t){var e=t.toApiJson?t:new ge(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/ListBookedMeetings",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return ve.fromProto(t)})),n.share())},t.prototype.cancelMeeting=function(t){var e=t.toApiJson?t:new Nt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/CancelMeeting",e.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.rescheduleMeeting=function(t){var e=t.toApiJson?t:new Oe(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/RescheduleMeeting",e.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.updateMeetingMetadata=function(t){var e=t.toApiJson?t:new be(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/UpdateMeetingMetadata",e.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.setGeneralAvailability=function(t){var e=t.toApiJson?t:new Ie(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/SetGeneralAvailability",e.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.createAvailability=function(t){var e=t.toApiJson?t:new Ct(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/CreateAvailability",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return Dt.fromProto(t)})),n.share())},t.prototype.updateAvailability=function(t){var e=t.toApiJson?t:new Te(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/UpdateAvailability",e.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.deleteAvailability=function(t){var e=t.toApiJson?t:new Lt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/DeleteAvailability",e.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.isHostConfigured=function(t){var e=t.toApiJson?t:new de(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/IsHostConfigured",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return me.fromProto(t)})),n.share())},t.prototype.getHostPreferences=function(t){var e=t.toApiJson?t:new Qt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/GetHostPreferences",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return $t.fromProto(t)})),n.share())},t.prototype.updateHostPreferences=function(t){var e=t.toApiJson?t:new Se(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/UpdateHostPreferences",e.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.getMeetingType=function(t){var e=t.toApiJson?t:new pe(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/GetMeetingType",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return ce.fromProto(t)})),n.share())},t.prototype.listMeetingTypes=function(t){var e=t.toApiJson?t:new ue(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/ListMeetingTypes",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return he.fromProto(t)})),n.share())},t.prototype.createMeetingType=function(t){var e=t.toApiJson?t:new Zt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/CreateMeetingType",e.toApiJson(),this.apiOptions()).pipe(n.map((function(t){return Yt.fromProto(t)})),n.share())},t.prototype.updateMeetingType=function(t){var e=t.toApiJson?t:new _e(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/UpdateMeetingType",e.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.deleteMeetingType=function(t){var e=t.toApiJson?t:new Ht(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/DeleteMeetingType",e.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.createDefaultMeetingTypes=function(t){var e=t.toApiJson?t:new kt(t);return this.http.post(this.hostService.hostWithScheme()+"/meetings.v1.MeetingHost/CreateDefaultMeetingTypes",e.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t}();function ke(t){var e=Ze(t.environment),i=t.meetingTypeSlug||t.meetingTypeId||"30-minutes",n="https://"+e+"/book/"+(t.calendarSlug||t.calendarId)+"/"+i;return t.metadata?Ye({link:n,metadata:t.metadata}):n}function Ze(t){return t===s.Environment.PROD?"bookmenow.info":"bookme-demo-rrncocebdq-uc.a.run.app"}function Ye(t){if(!t.metadata)return t.link;var e=t.metadata,i=Object.keys(e).reduce((function(i,n){return i?i+"&"+n+"="+e[n]:t.link.indexOf("?")>=0?"&"+n+"="+e[n]:"?"+n+"="+e[n]}),"");return""+t.link+i}function Le(e){var i,n=(null===(i=null==e?void 0:e.meetingTypeApi)||void 0===i?void 0:i.bookingUrl)||"";n=""===n?ke({environment:e.environment,calendarId:e.calendarId,meetingTypeSlug:e.meetingTypeApi.meetingTypeSlug||e.meetingTypeApi.id||"",metadata:e.metadata,calendarSlug:e.calendarSlug}):Ye({link:n,metadata:e.metadata||{}});var o=Object.assign(Object.assign({},e.meetingTypeApi.form||{fields:[]}),{fields:(e.meetingTypeApi.form&&e.meetingTypeApi.form.fields?e.meetingTypeApi.form.fields:[]).map((function(e){return Object.assign(Object.assign({},e),{id:e.id||"",label:e.label||"",type:e.type||t.FormFieldType.FORM_FIELD_TYPE_INVALID,required:e.required||!1})}))});return{id:e.meetingTypeApi.id||"",calendarId:e.meetingTypeApi.calendarId||"",name:e.meetingTypeApi.name||"",duration:e.meetingTypeApi.duration||"",bookingUrl:n,bookingLink:e.meetingTypeApi.meetingTypeSlug||"",meetingTypeSlug:e.meetingTypeApi.meetingTypeSlug||"",description:e.meetingTypeApi.description||"",hexColor:e.meetingTypeApi.hexColor||"",form:o,hostUserIds:e.meetingTypeApi.hostUserIds||[]}}function He(t){var e=t.meetingType;return e?{id:e.id||void 0,name:e.name||void 0,hexColor:e.hexColor||void 0,meetingTypeSlug:e.meetingTypeSlug||e.bookingLink||void 0,calendarId:e.calendarId||void 0,description:e.description||void 0,duration:e.duration?e.duration:void 0,form:e.form||void 0,hostUserIds:e.hostUserIds||void 0}:{}}function We(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:Ge(t.formAnswers),metadata:t.metadata||{},attachments:(t.attachments||[]).map((function(t){return{fileTitle:t.fileTitle||"",fileUrl:t.fileUrl||"",fileType:t.fileType||""}}))}}function Ge(e){return e?{formAnswers:(e.formAnswers?e.formAnswers:[]).map((function(e){return{id:e.id||"",label:e.label||"",type:e.type||t.FormFieldType.FORM_FIELD_TYPE_INVALID,answer:e.answer||[]}}))}:{formAnswers:[]}}Re.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new Re(e.ɵɵinject(o.HttpClient),e.ɵɵinject(Me))},token:Re,providedIn:"root"}),Re.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],Re.ctorParameters=function(){return[{type:o.HttpClient},{type:Me}]},(t.WellKnownMeetingMetadataKeys||(t.WellKnownMeetingMetadataKeys={})).BUSINESS="msm_business",(Ue=t.WellKnownFormFieldIds||(t.WellKnownFormFieldIds={})).FIRST_NAME="firstName",Ue.LAST_NAME="lastName",Ue.EMAIL="email",Ue.PHONE_NUMBER="phoneNumber",Ue.COMMENT="comment",Ue.INVITEE_EMAILS="inviteeEmail";var xe,Fe,Ke=function(t,e,i){this.results=t,this.nextCursor=e,this.hasMore=i};function Ve(e){return{id:e.id||"",calendarType:e.calendarType||t.CalendarType.CALENDAR_TYPE_INVALID,displayName:e.displayName||"",displayProfileUrl:e.displayProfileUrl||"",displayLogoUrl:e.displayLogoUrl||"",bookingUrl:e.bookingUrl||"",slug:e.slug||"",externalId:e.externalId||"",creatorUserId:e.creatorUserId||"",hostUserIds:e.hostUserIds||[],applicationContext:e.applicationContext||{}}}(xe=t.KnownCalendarApplicationContextKeys||(t.KnownCalendarApplicationContextKeys={})).ExternalIntegration="external_integration",xe.Business="business_id",xe.SalesTeam="sales_team_id",(Fe=t.KnownCalendarExternalIntegrations||(t.KnownCalendarExternalIntegrations={})).VSalesTeam="v_sales_team",Fe.VBusiness="v_business";Object.create;function qe(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,o,s=i.call(t),r=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)r.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return r}Object.create;function ze(t){if(!t)return{seconds:0,nanoseconds:0};var e=qe(t.replace(/s/g,"").split("."),2),i=e[0],n=e[1],o=Number(i),s=1e9*parseFloat("0."+n);return{seconds:isNaN(o)?0:o,nanoseconds:isNaN(s)?0:s}}function Be(t){var e=t.updateFields||Object.keys(t.o||{});return new Pt({paths:e||[]})}var Xe=function(){function t(t,e){this.guestAPIService=t,this.environmentService=e}return t.prototype.getMeetingType=function(t){var e=this;return this.guestAPIService.getMeetingType(t).pipe(n.map((function(i){return i&&i.meetingType?Le({environment:e.environmentService.getEnvironment(),calendarId:t.calendarSlug,meetingTypeApi:i.meetingType,metadata:t.metadata,calendarSlug:t.calendarSlug}):{}})))},t.prototype.listMeetingTypes=function(t){var e=this;return this.guestAPIService.listMeetingTypes(t).pipe(n.map((function(i){return i&&i.meetingTypes?i.meetingTypes.map((function(i){return Le({environment:e.environmentService.getEnvironment(),calendarId:t.hostId,meetingTypeApi:i,metadata:t.metadata,calendarSlug:t.calendarSlug})})):[]})))},t.prototype.listAvailableTimeSlots=function(t){return this.guestAPIService.listAvailableTimeSlots(t).pipe(n.map((function(t){return t.timeSlots?t.timeSlots.map((function(t){return{start:(e=t).start,end:e.end};var e})):[]})))},t.prototype.bookMeeting=function(t){return this.guestAPIService.bookMeeting(Object.assign(Object.assign({},t),{attendees:t.attendees,formAnswers:(e=t.formAnswers,e?{formAnswers:(e.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(n.map((function(t){return t})));var e},t.prototype.cancelMeeting=function(t){return this.guestAPIService.cancelMeeting(t).pipe(n.mapTo(null))},t.prototype.rescheduleMeeting=function(t){return this.guestAPIService.rescheduleMeeting(t).pipe(n.mapTo(null))},t.prototype.getHost=function(t){return this.guestAPIService.getHost(t).pipe(n.map((function(t){return{displayName:(e=t.host).displayName,displayProfileUrl:e.displayProfileUrl,displayLogoUrl:e.displayLogoUrl};var e})))},t.prototype.getCalendar=function(t){return this.guestAPIService.getCalendar(t).pipe(n.map((function(t){return Ve(t.calendar)})))},t.prototype.getBookedMeetingInfo=function(t,e){return this.guestAPIService.getGuestBookedMeeting({meetingId:t,authToken:e}).pipe(n.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(n.map((function(t){return t.isConfigured})))},t}();Xe.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new Xe(e.ɵɵinject(De),e.ɵɵinject(s.EnvironmentServiceInterfaceToken))},token:Xe,providedIn:"root"}),Xe.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],Xe.ctorParameters=function(){return[{type:De},{type:void 0,decorators:[{type:e.Inject,args:[s.EnvironmentServiceInterfaceToken]}]}]};var Qe=function(){function e(t,e){this.hostAPIService=t,this.environmentService=e}return e.prototype.buildHostId=function(t){return this.hostAPIService.buildHostId({userId:t.userId,applicationContextProperties:t.applicationContextProperties}).pipe(n.map((function(t){return t.hostId||""})))},e.prototype.doesCalendarExist=function(t){return this.hostAPIService.doesCalendarExist({calendarIdentifier:t}).pipe(n.map((function(t){return t.exists})))},e.prototype.getCalendar=function(t){return this.hostAPIService.getCalendar({calendarId:t.calendarId}).pipe(n.map((function(t){return Ve(null==t?void 0:t.calendar)})))},e.prototype.ensurePersonalCalendarExists=function(t){return this.hostAPIService.ensurePersonalCalendarExists({userId:t.userId,applicationContextProperties:t.applicationContextProperties}).pipe(n.map((function(t){return t?t.calendarId:""})))},e.prototype.ensureGroupCalendarsExist=function(t){return this.hostAPIService.ensureGroupCalendarsExist({externalIds:t.externalIds}).pipe(n.map((function(t){return(null==t?void 0:t.calendarIds)||[]})))},e.prototype.createCalendar=function(t){return this.hostAPIService.createCalendar(t)},e.prototype.updateCalendarSlug=function(t,e){return this.hostAPIService.updateCalendar({calendarId:t,calendarUpdate:{slug:e},fieldMask:{paths:["slug"]}}).pipe(n.mapTo(void 0))},e.prototype.updateCalendarHostUserIDs=function(t,e){return this.hostAPIService.updateCalendar({calendarId:t,calendarUpdate:{hostUserIds:e},fieldMask:{paths:["host_user_ids"]}}).pipe(n.mapTo(void 0))},e.prototype.getMeetingTypesForCalendars=function(t){var e=this;return this.hostAPIService.getMeetingTypesForCalendars({calendarIds:t.calendarIds}).pipe(n.map((function(i){return(null==i?void 0:i.calendarMeetingTypesMap)?Object.keys(i.calendarMeetingTypesMap).reduce((function(n,o){var s,r,a=((null===(r=i.calendarMeetingTypesMap[o])||void 0===r?void 0:r.meetingTypes)||[]).map((function(i){return Le({meetingTypeApi:i,environment:e.environmentService.getEnvironment(),calendarId:o,metadata:t.metadata})}));return Object.assign(Object.assign({},n),((s={})[o]=a,s))}),{}):{}})))},e.prototype.listMeetingTypes=function(t){var e=this;return this.hostAPIService.listMeetingTypes(t).pipe(n.map((function(i){return i&&i.meetingTypes?i.meetingTypes.map((function(i){return Le({meetingTypeApi:i,calendarId:t.hostId,environment:e.environmentService.getEnvironment(),metadata:t.metadata,calendarSlug:t.calendarSlug})})):[]})))},e.prototype.getBookingUrl=function(t){return i.of(ke(Object.assign(Object.assign({},t),{calendarId:t.calendarId||t.hostId,environment:this.environmentService.getEnvironment(),calendarSlug:t.calendarSlug})))},e.prototype.getGeneralBookingUrl=function(t){return i.of(function(t){var e="https://"+Ze(t.environment)+"/"+(t.calendarSlug||t.calendarId);return t.metadata?Ye({link:e,metadata:t.metadata}):e}({environment:this.environmentService.getEnvironment(),calendarId:t.calendarId,metadata:t.metadata,calendarSlug:t.calendarSlug}))},e.prototype.getBookingUrlsMulti=function(t,e,n){var o=this;return i.of(Object.keys(t).reduce((function(i,s){var r;return Object.assign(Object.assign({},i),((r={})[s]=t[s].reduce((function(t,i){var r;return Object.assign(Object.assign({},t),((r={})[i]=ke({calendarId:s,meetingTypeSlug:i,metadata:e,environment:o.environmentService.getEnvironment(),calendarSlug:n}),r))}),{}),r))}),{}))},e.prototype.isHostConfigured=function(t){return this.hostAPIService.isHostConfigured(t).pipe(n.map((function(t){return t.isConfigured})))},e.prototype.setGeneralAvailability=function(t){var e=Object.assign(Object.assign({},t),{timeZone:new F(t.timeZone)});return t.timeSlot&&(e.timeSlot=new ot(t.timeSlot)),this.hostAPIService.setGeneralAvailability(e).pipe(n.mapTo(null))},e.prototype.listBookedMeetings=function(t){return this.hostAPIService.listBookedMeetings(Object.assign(Object.assign({},t),{pagingOptions:new et({cursor:t.cursor,pageSize:t.pageSize}),filters:new zt(t.filters),timeZone:new F(t.timeZone)})).pipe(n.map((function(t){var e=(t.meetings||[]).map((function(t){return We(t)}));return new Ke(e,t.pagingMetadata.nextCursor,t.pagingMetadata.hasMore)})))},e.prototype.cancelMeeting=function(t){return this.hostAPIService.cancelMeeting(Object.assign({},t)).pipe(n.mapTo(null))},e.prototype.rescheduleMeeting=function(t){return this.hostAPIService.rescheduleMeeting(Object.assign({},t)).pipe(n.mapTo(null))},e.prototype.listAvailability=function(t){return this.hostAPIService.listAvailability(t).pipe(n.map((function(t){var e=(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 Ke(e,t.metadata.nextCursor,t.metadata.hasMore)})))},e.prototype.updatePreferences=function(t){var e=Be({o:t.preferences,updateFields:t.updateFields});return 0===e.paths.length?i.of():this.hostAPIService.updateHostPreferences({hostId:t.hostId,preferences:t.preferences,fieldMask:e}).pipe(n.mapTo(void 0))},e.prototype.getPreferences=function(e){return this.hostAPIService.getHostPreferences({hostId:e.hostId}).pipe(n.map((function(e){return{timezone:(i=e.preferences).timezone,meetingIntegration:i.meetingIntegration||t.MeetingSource.MEETING_SOURCE_INVALID,availabilityIncrement:i.availabilityIncrement||0,bufferDurationAfterMeeting:i.bufferDurationAfterMeeting||0,noticeTime:i.noticeTime||0,calendarSlug:i.calendarSlug||""};var i;
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
- ***************************************************************************** */})))},e.prototype.getMeeting=function(t,e){return this.hostAPIService.getHostMeeting({meetingId:t,location:e}).pipe(n.map((function(t){return We(t.meeting)})))},e.prototype.updateMeetingMetadata=function(t){return this.hostAPIService.updateMeetingMetadata({meetingId:t.meetingId,metadata:t.metadata}).pipe(n.mapTo(void 0))},e.prototype.bookMeeting=function(t){return this.hostAPIService.bookMeeting(t).pipe(n.map((function(t){return t.meetingId})))},e.prototype.createDefaultMeetingTypes=function(t){return this.hostAPIService.createDefaultMeetingTypes({calendarIds:t.calendarIds}).pipe(n.mapTo(void 0))},e.prototype.createMeetingType=function(t){return this.hostAPIService.createMeetingType({meetingType:He({meetingType:t.meetingType})}).pipe(n.map((function(t){return t.id})))},e.prototype.updateMeetingType=function(t){var e=Be({o:t.meetingType,updateFields:t.updateFields});return 0===e.paths.length?i.of():this.hostAPIService.updateMeetingType({id:t.id,meetingType:He({meetingType:t.meetingType}),fieldMask:e}).pipe(n.mapTo(void 0))},e.prototype.deleteMeetingType=function(t){return this.hostAPIService.deleteMeetingType({id:t.id}).pipe(n.mapTo(void 0))},e.prototype.getHostsForCalendar=function(t){return this.hostAPIService.getHostsForCalendar({calendarId:t.calendarId}).pipe(n.map((function(t){return(t.hostUsers||[]).map((function(t){return{userId:(e=t).userId||"",displayName:e.displayName||"",isConfigured:e.isConfigured||!1};var e}))})))},e}();Qe.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new Qe(e.ɵɵinject(Re),e.ɵɵinject(s.EnvironmentServiceInterfaceToken))},token:Qe,providedIn:"root"}),Qe.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],Qe.ctorParameters=function(){return[{type:Re},{type:void 0,decorators:[{type:e.Inject,args:[s.EnvironmentServiceInterfaceToken]}]}]},t.Contact=Q,t.CreateCalendarRequest=Ut,t.CreateCalendarResponse=Rt,t.GuestService=Xe,t.HostService=Qe,t.MeetingSourceInfo=A,t.MeetingSourceListResponse=I,t.MeetingSourceQuery=T,t.MeetingsService=Ce,t.PagedResponse=Ke,t.WeekdayAvailability=Pe,t.addMetadataToBookingLink=Ye,t.durationFromString=ze,t.durationStringToMinutes=function(t){var e=ze(t.duration),i=e.seconds/60+e.nanoseconds/6e10;return t.round?Math.round(i):i},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"}},Object.defineProperty(t,"__esModule",{value:!0})}));
16
- //# sourceMappingURL=vendasta-meetings.umd.min.js.map