@vendasta/meetings 0.97.0 → 0.98.3

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 (53) hide show
  1. package/esm2020/lib/_internal/enums/index.mjs +3 -3
  2. package/esm2020/lib/_internal/enums/meeting-source.enum.mjs +7 -1
  3. package/esm2020/lib/_internal/enums/meeting-type.enum.mjs +12 -1
  4. package/esm2020/lib/_internal/google-meet.api.service.mjs +8 -7
  5. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  6. package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/meeting-host.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/meeting-source.interface.mjs +1 -1
  9. package/esm2020/lib/_internal/interfaces/meeting-type.interface.mjs +1 -1
  10. package/esm2020/lib/_internal/interfaces/shared.interface.mjs +1 -1
  11. package/esm2020/lib/_internal/meeting-bot-api.api.service.mjs +8 -7
  12. package/esm2020/lib/_internal/meeting-guest.api.service.mjs +8 -7
  13. package/esm2020/lib/_internal/meeting-host.api.service.mjs +8 -7
  14. package/esm2020/lib/_internal/meeting-source-api.api.service.mjs +8 -7
  15. package/esm2020/lib/_internal/objects/index.mjs +4 -4
  16. package/esm2020/lib/_internal/objects/meeting-guest.mjs +2 -2
  17. package/esm2020/lib/_internal/objects/meeting-host.mjs +2 -2
  18. package/esm2020/lib/_internal/objects/meeting-source.mjs +4 -1
  19. package/esm2020/lib/_internal/objects/meeting-type.mjs +72 -1
  20. package/esm2020/lib/_internal/objects/shared.mjs +9 -2
  21. package/esm2020/lib/_internal/zoom.api.service.mjs +8 -7
  22. package/esm2020/lib/index.mjs +2 -2
  23. package/esm2020/lib/shared/meeting-type.mjs +3 -1
  24. package/esm2020/lib/shared/preferences.mjs +3 -2
  25. package/fesm2015/vendasta-meetings.mjs +279 -179
  26. package/fesm2015/vendasta-meetings.mjs.map +1 -1
  27. package/fesm2020/vendasta-meetings.mjs +279 -179
  28. package/fesm2020/vendasta-meetings.mjs.map +1 -1
  29. package/lib/_internal/enums/index.d.ts +2 -2
  30. package/lib/_internal/enums/meeting-source.enum.d.ts +5 -0
  31. package/lib/_internal/enums/meeting-type.enum.d.ts +9 -0
  32. package/lib/_internal/google-meet.api.service.d.ts +5 -2
  33. package/lib/_internal/interfaces/index.d.ts +3 -3
  34. package/lib/_internal/interfaces/meeting-guest.interface.d.ts +1 -1
  35. package/lib/_internal/interfaces/meeting-host.interface.d.ts +1 -1
  36. package/lib/_internal/interfaces/meeting-source.interface.d.ts +1 -0
  37. package/lib/_internal/interfaces/meeting-type.interface.d.ts +11 -0
  38. package/lib/_internal/interfaces/shared.interface.d.ts +3 -1
  39. package/lib/_internal/meeting-bot-api.api.service.d.ts +5 -3
  40. package/lib/_internal/meeting-guest.api.service.d.ts +5 -3
  41. package/lib/_internal/meeting-host.api.service.d.ts +5 -3
  42. package/lib/_internal/meeting-source-api.api.service.d.ts +5 -2
  43. package/lib/_internal/objects/index.d.ts +3 -3
  44. package/lib/_internal/objects/meeting-guest.d.ts +1 -1
  45. package/lib/_internal/objects/meeting-host.d.ts +1 -1
  46. package/lib/_internal/objects/meeting-source.d.ts +1 -0
  47. package/lib/_internal/objects/meeting-type.d.ts +17 -0
  48. package/lib/_internal/objects/shared.d.ts +3 -1
  49. package/lib/_internal/zoom.api.service.d.ts +5 -2
  50. package/lib/index.d.ts +2 -2
  51. package/lib/shared/meeting-type.d.ts +2 -1
  52. package/lib/shared/preferences.d.ts +2 -1
  53. package/package.json +1 -1
@@ -1,8 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, inject } from '@angular/core';
2
+ import { Injectable } from '@angular/core';
3
3
  import { throwError, of } from 'rxjs';
4
4
  import { map, mapTo } from 'rxjs/operators';
5
- import { HttpClient, HttpHeaders } from '@angular/common/http';
5
+ import * as i1 from '@angular/common/http';
6
+ import { HttpHeaders } from '@angular/common/http';
6
7
 
7
8
  // *********************************
8
9
  // Code generated by sdkgen
@@ -10,6 +11,12 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';
10
11
  //
11
12
  // Enums.
12
13
  // *********************************
14
+ var CalendarSource;
15
+ (function (CalendarSource) {
16
+ CalendarSource[CalendarSource["CALENDAR_SOURCE_GOOGLE"] = 0] = "CALENDAR_SOURCE_GOOGLE";
17
+ CalendarSource[CalendarSource["CALENDAR_SOURCE_MICROSOFT"] = 1] = "CALENDAR_SOURCE_MICROSOFT";
18
+ CalendarSource[CalendarSource["CALENDAR_SOURCE_INVALID"] = -1] = "CALENDAR_SOURCE_INVALID";
19
+ })(CalendarSource || (CalendarSource = {}));
13
20
  var MeetingSource;
14
21
  (function (MeetingSource) {
15
22
  MeetingSource[MeetingSource["MEETING_SOURCE_INVALID"] = 0] = "MEETING_SOURCE_INVALID";
@@ -119,12 +126,23 @@ var FormFieldType;
119
126
  //
120
127
  // Enums.
121
128
  // *********************************
129
+ var DateRangeType;
130
+ (function (DateRangeType) {
131
+ DateRangeType[DateRangeType["RELATIVE"] = 0] = "RELATIVE";
132
+ DateRangeType[DateRangeType["CUSTOM"] = 1] = "CUSTOM";
133
+ })(DateRangeType || (DateRangeType = {}));
122
134
  var MeetingLocationType;
123
135
  (function (MeetingLocationType) {
124
136
  MeetingLocationType[MeetingLocationType["VIDEO"] = 0] = "VIDEO";
125
137
  MeetingLocationType[MeetingLocationType["IN_PERSON_USER_SITE"] = 1] = "IN_PERSON_USER_SITE";
126
138
  MeetingLocationType[MeetingLocationType["IN_PERSON_CLIENT_SITE"] = 2] = "IN_PERSON_CLIENT_SITE";
127
139
  })(MeetingLocationType || (MeetingLocationType = {}));
140
+ var RelativeTimeUnit;
141
+ (function (RelativeTimeUnit) {
142
+ RelativeTimeUnit[RelativeTimeUnit["DAYS"] = 0] = "DAYS";
143
+ RelativeTimeUnit[RelativeTimeUnit["WEEKS"] = 1] = "WEEKS";
144
+ RelativeTimeUnit[RelativeTimeUnit["MONTHS"] = 2] = "MONTHS";
145
+ })(RelativeTimeUnit || (RelativeTimeUnit = {}));
128
146
 
129
147
  // *********************************
130
148
  // Code generated by sdkgen
@@ -181,6 +199,9 @@ class MeetingSourceInfo {
181
199
  if (typeof this.connectDisconnectUrl !== 'undefined') {
182
200
  toReturn['connectDisconnectUrl'] = this.connectDisconnectUrl;
183
201
  }
202
+ if (typeof this.connectionLabel !== 'undefined') {
203
+ toReturn['connectionLabel'] = this.connectionLabel;
204
+ }
184
205
  return toReturn;
185
206
  }
186
207
  }
@@ -1193,12 +1214,125 @@ function enumStringToValue$9(enumRef, value) {
1193
1214
  }
1194
1215
  return enumRef[value];
1195
1216
  }
1217
+ class TimeOfDay {
1218
+ static fromProto(proto) {
1219
+ let m = new TimeOfDay();
1220
+ m = Object.assign(m, proto);
1221
+ return m;
1222
+ }
1223
+ constructor(kwargs) {
1224
+ if (!kwargs) {
1225
+ return;
1226
+ }
1227
+ Object.assign(this, kwargs);
1228
+ }
1229
+ toApiJson() {
1230
+ const toReturn = {};
1231
+ if (typeof this.hours !== 'undefined') {
1232
+ toReturn['hours'] = this.hours;
1233
+ }
1234
+ if (typeof this.minutes !== 'undefined') {
1235
+ toReturn['minutes'] = this.minutes;
1236
+ }
1237
+ if (typeof this.seconds !== 'undefined') {
1238
+ toReturn['seconds'] = this.seconds;
1239
+ }
1240
+ if (typeof this.nanos !== 'undefined') {
1241
+ toReturn['nanos'] = this.nanos;
1242
+ }
1243
+ return toReturn;
1244
+ }
1245
+ }
1246
+
1247
+ function enumStringToValue$8(enumRef, value) {
1248
+ if (typeof value === 'number') {
1249
+ return value;
1250
+ }
1251
+ return enumRef[value];
1252
+ }
1253
+ class DateTime {
1254
+ static fromProto(proto) {
1255
+ let m = new DateTime();
1256
+ m = Object.assign(m, proto);
1257
+ if (proto.timeZone) {
1258
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
1259
+ }
1260
+ return m;
1261
+ }
1262
+ constructor(kwargs) {
1263
+ if (!kwargs) {
1264
+ return;
1265
+ }
1266
+ Object.assign(this, kwargs);
1267
+ }
1268
+ toApiJson() {
1269
+ const toReturn = {};
1270
+ if (typeof this.year !== 'undefined') {
1271
+ toReturn['year'] = this.year;
1272
+ }
1273
+ if (typeof this.month !== 'undefined') {
1274
+ toReturn['month'] = this.month;
1275
+ }
1276
+ if (typeof this.day !== 'undefined') {
1277
+ toReturn['day'] = this.day;
1278
+ }
1279
+ if (typeof this.hours !== 'undefined') {
1280
+ toReturn['hours'] = this.hours;
1281
+ }
1282
+ if (typeof this.minutes !== 'undefined') {
1283
+ toReturn['minutes'] = this.minutes;
1284
+ }
1285
+ if (typeof this.seconds !== 'undefined') {
1286
+ toReturn['seconds'] = this.seconds;
1287
+ }
1288
+ if (typeof this.nanos !== 'undefined') {
1289
+ toReturn['nanos'] = this.nanos;
1290
+ }
1291
+ if (typeof this.utcOffset !== 'undefined') {
1292
+ toReturn['utcOffset'] = this.utcOffset;
1293
+ }
1294
+ if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
1295
+ toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
1296
+ }
1297
+ return toReturn;
1298
+ }
1299
+ }
1300
+ class TimeZone {
1301
+ static fromProto(proto) {
1302
+ let m = new TimeZone();
1303
+ m = Object.assign(m, proto);
1304
+ return m;
1305
+ }
1306
+ constructor(kwargs) {
1307
+ if (!kwargs) {
1308
+ return;
1309
+ }
1310
+ Object.assign(this, kwargs);
1311
+ }
1312
+ toApiJson() {
1313
+ const toReturn = {};
1314
+ if (typeof this.id !== 'undefined') {
1315
+ toReturn['id'] = this.id;
1316
+ }
1317
+ if (typeof this.version !== 'undefined') {
1318
+ toReturn['version'] = this.version;
1319
+ }
1320
+ return toReturn;
1321
+ }
1322
+ }
1323
+
1324
+ function enumStringToValue$7(enumRef, value) {
1325
+ if (typeof value === 'number') {
1326
+ return value;
1327
+ }
1328
+ return enumRef[value];
1329
+ }
1196
1330
  class Answer {
1197
1331
  static fromProto(proto) {
1198
1332
  let m = new Answer();
1199
1333
  m = Object.assign(m, proto);
1200
1334
  if (proto.type) {
1201
- m.type = enumStringToValue$9(FormFieldType, proto.type);
1335
+ m.type = enumStringToValue$7(FormFieldType, proto.type);
1202
1336
  }
1203
1337
  return m;
1204
1338
  }
@@ -1340,7 +1474,7 @@ class Calendar {
1340
1474
  m.applicationContext = Object.keys(proto.applicationContext).reduce((obj, k) => { obj[k] = proto.applicationContext[k]; return obj; }, {});
1341
1475
  }
1342
1476
  if (proto.calendarType) {
1343
- m.calendarType = enumStringToValue$9(CalendarType, proto.calendarType);
1477
+ m.calendarType = enumStringToValue$7(CalendarType, proto.calendarType);
1344
1478
  }
1345
1479
  return m;
1346
1480
  }
@@ -1541,7 +1675,7 @@ class Preferences {
1541
1675
  m.timezone = TimeZone.fromProto(proto.timezone);
1542
1676
  }
1543
1677
  if (proto.meetingIntegration) {
1544
- m.meetingIntegration = enumStringToValue$9(MeetingSource, proto.meetingIntegration);
1678
+ m.meetingIntegration = enumStringToValue$7(MeetingSource, proto.meetingIntegration);
1545
1679
  }
1546
1680
  if (proto.availabilityIncrement) {
1547
1681
  m.availabilityIncrement = parseInt(proto.availabilityIncrement, 10);
@@ -1555,6 +1689,9 @@ class Preferences {
1555
1689
  if (proto.bufferDurationBeforeMeeting) {
1556
1690
  m.bufferDurationBeforeMeeting = parseInt(proto.bufferDurationBeforeMeeting, 10);
1557
1691
  }
1692
+ if (proto.calendarIntegration) {
1693
+ m.calendarIntegration = enumStringToValue$7(CalendarSource, proto.calendarIntegration);
1694
+ }
1558
1695
  return m;
1559
1696
  }
1560
1697
  constructor(kwargs) {
@@ -1586,6 +1723,9 @@ class Preferences {
1586
1723
  if (typeof this.bufferDurationBeforeMeeting !== 'undefined') {
1587
1724
  toReturn['bufferDurationBeforeMeeting'] = this.bufferDurationBeforeMeeting;
1588
1725
  }
1726
+ if (typeof this.calendarIntegration !== 'undefined') {
1727
+ toReturn['calendarIntegration'] = this.calendarIntegration;
1728
+ }
1589
1729
  return toReturn;
1590
1730
  }
1591
1731
  }
@@ -1619,18 +1759,89 @@ class TimeRange {
1619
1759
  }
1620
1760
  }
1621
1761
 
1622
- function enumStringToValue$8(enumRef, value) {
1762
+ function enumStringToValue$6(enumRef, value) {
1763
+ if (typeof value === 'number') {
1764
+ return value;
1765
+ }
1766
+ return enumRef[value];
1767
+ }
1768
+ class DateRange {
1769
+ static fromProto(proto) {
1770
+ let m = new DateRange();
1771
+ m = Object.assign(m, proto);
1772
+ if (proto.start) {
1773
+ m.start = new Date(proto.start);
1774
+ }
1775
+ if (proto.end) {
1776
+ m.end = new Date(proto.end);
1777
+ }
1778
+ return m;
1779
+ }
1780
+ constructor(kwargs) {
1781
+ if (!kwargs) {
1782
+ return;
1783
+ }
1784
+ Object.assign(this, kwargs);
1785
+ }
1786
+ toApiJson() {
1787
+ const toReturn = {};
1788
+ if (typeof this.start !== 'undefined' && this.start !== null) {
1789
+ toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
1790
+ }
1791
+ if (typeof this.end !== 'undefined' && this.end !== null) {
1792
+ toReturn['end'] = 'toApiJson' in this.end ? this.end.toApiJson() : this.end;
1793
+ }
1794
+ return toReturn;
1795
+ }
1796
+ }
1797
+
1798
+ function enumStringToValue$5(enumRef, value) {
1623
1799
  if (typeof value === 'number') {
1624
1800
  return value;
1625
1801
  }
1626
1802
  return enumRef[value];
1627
1803
  }
1804
+ class EventTypeDateRange {
1805
+ static fromProto(proto) {
1806
+ let m = new EventTypeDateRange();
1807
+ m = Object.assign(m, proto);
1808
+ if (proto.dateRangeType) {
1809
+ m.dateRangeType = enumStringToValue$5(DateRangeType, proto.dateRangeType);
1810
+ }
1811
+ if (proto.customDateRange) {
1812
+ m.customDateRange = DateRange.fromProto(proto.customDateRange);
1813
+ }
1814
+ if (proto.relativeDateRange) {
1815
+ m.relativeDateRange = RelativeDateRange.fromProto(proto.relativeDateRange);
1816
+ }
1817
+ return m;
1818
+ }
1819
+ constructor(kwargs) {
1820
+ if (!kwargs) {
1821
+ return;
1822
+ }
1823
+ Object.assign(this, kwargs);
1824
+ }
1825
+ toApiJson() {
1826
+ const toReturn = {};
1827
+ if (typeof this.dateRangeType !== 'undefined') {
1828
+ toReturn['dateRangeType'] = this.dateRangeType;
1829
+ }
1830
+ if (typeof this.customDateRange !== 'undefined' && this.customDateRange !== null) {
1831
+ toReturn['customDateRange'] = 'toApiJson' in this.customDateRange ? this.customDateRange.toApiJson() : this.customDateRange;
1832
+ }
1833
+ if (typeof this.relativeDateRange !== 'undefined' && this.relativeDateRange !== null) {
1834
+ toReturn['relativeDateRange'] = 'toApiJson' in this.relativeDateRange ? this.relativeDateRange.toApiJson() : this.relativeDateRange;
1835
+ }
1836
+ return toReturn;
1837
+ }
1838
+ }
1628
1839
  class Field {
1629
1840
  static fromProto(proto) {
1630
1841
  let m = new Field();
1631
1842
  m = Object.assign(m, proto);
1632
1843
  if (proto.type) {
1633
- m.type = enumStringToValue$8(FormFieldType, proto.type);
1844
+ m.type = enumStringToValue$5(FormFieldType, proto.type);
1634
1845
  }
1635
1846
  return m;
1636
1847
  }
@@ -1697,7 +1908,7 @@ class MeetingType {
1697
1908
  m.noticeTime = parseInt(proto.noticeTime, 10);
1698
1909
  }
1699
1910
  if (proto.locationType) {
1700
- m.locationType = enumStringToValue$8(MeetingLocationType, proto.locationType);
1911
+ m.locationType = enumStringToValue$5(MeetingLocationType, proto.locationType);
1701
1912
  }
1702
1913
  if (proto.hostUsers) {
1703
1914
  m.hostUsers = proto.hostUsers.map(HostUser.fromProto);
@@ -1705,6 +1916,9 @@ class MeetingType {
1705
1916
  if (proto.bufferDurationBeforeMeeting) {
1706
1917
  m.bufferDurationBeforeMeeting = parseInt(proto.bufferDurationBeforeMeeting, 10);
1707
1918
  }
1919
+ if (proto.dateRange) {
1920
+ m.dateRange = EventTypeDateRange.fromProto(proto.dateRange);
1921
+ }
1708
1922
  return m;
1709
1923
  }
1710
1924
  constructor(kwargs) {
@@ -1796,25 +2010,21 @@ class MeetingType {
1796
2010
  if (typeof this.bufferDurationBeforeMeeting !== 'undefined') {
1797
2011
  toReturn['bufferDurationBeforeMeeting'] = this.bufferDurationBeforeMeeting;
1798
2012
  }
2013
+ if (typeof this.dateRange !== 'undefined' && this.dateRange !== null) {
2014
+ toReturn['dateRange'] = 'toApiJson' in this.dateRange ? this.dateRange.toApiJson() : this.dateRange;
2015
+ }
1799
2016
  return toReturn;
1800
2017
  }
1801
2018
  }
1802
-
1803
- function enumStringToValue$7(enumRef, value) {
1804
- if (typeof value === 'number') {
1805
- return value;
1806
- }
1807
- return enumRef[value];
1808
- }
1809
- class DateRange {
2019
+ class RelativeDateRange {
1810
2020
  static fromProto(proto) {
1811
- let m = new DateRange();
2021
+ let m = new RelativeDateRange();
1812
2022
  m = Object.assign(m, proto);
1813
- if (proto.start) {
1814
- m.start = new Date(proto.start);
2023
+ if (proto.unit) {
2024
+ m.unit = enumStringToValue$5(RelativeTimeUnit, proto.unit);
1815
2025
  }
1816
- if (proto.end) {
1817
- m.end = new Date(proto.end);
2026
+ if (proto.value) {
2027
+ m.value = parseInt(proto.value, 10);
1818
2028
  }
1819
2029
  return m;
1820
2030
  }
@@ -1826,17 +2036,17 @@ class DateRange {
1826
2036
  }
1827
2037
  toApiJson() {
1828
2038
  const toReturn = {};
1829
- if (typeof this.start !== 'undefined' && this.start !== null) {
1830
- toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
2039
+ if (typeof this.unit !== 'undefined') {
2040
+ toReturn['unit'] = this.unit;
1831
2041
  }
1832
- if (typeof this.end !== 'undefined' && this.end !== null) {
1833
- toReturn['end'] = 'toApiJson' in this.end ? this.end.toApiJson() : this.end;
2042
+ if (typeof this.value !== 'undefined') {
2043
+ toReturn['value'] = this.value;
1834
2044
  }
1835
2045
  return toReturn;
1836
2046
  }
1837
2047
  }
1838
2048
 
1839
- function enumStringToValue$6(enumRef, value) {
2049
+ function enumStringToValue$4(enumRef, value) {
1840
2050
  if (typeof value === 'number') {
1841
2051
  return value;
1842
2052
  }
@@ -1981,7 +2191,7 @@ class Service {
1981
2191
  }
1982
2192
  }
1983
2193
 
1984
- function enumStringToValue$5(enumRef, value) {
2194
+ function enumStringToValue$3(enumRef, value) {
1985
2195
  if (typeof value === 'number') {
1986
2196
  return value;
1987
2197
  }
@@ -2374,7 +2584,7 @@ class GuestGetBookedMeetingResponse {
2374
2584
  m.timeZone = TimeZone.fromProto(proto.timeZone);
2375
2585
  }
2376
2586
  if (proto.locationType) {
2377
- m.locationType = enumStringToValue$5(MeetingLocationType, proto.locationType);
2587
+ m.locationType = enumStringToValue$3(MeetingLocationType, proto.locationType);
2378
2588
  }
2379
2589
  return m;
2380
2590
  }
@@ -2616,7 +2826,7 @@ class BookMeetingRequestMetadataEntry {
2616
2826
  }
2617
2827
  }
2618
2828
 
2619
- function enumStringToValue$4(enumRef, value) {
2829
+ function enumStringToValue$2(enumRef, value) {
2620
2830
  if (typeof value === 'number') {
2621
2831
  return value;
2622
2832
  }
@@ -2643,7 +2853,7 @@ class FieldMask {
2643
2853
  }
2644
2854
  }
2645
2855
 
2646
- function enumStringToValue$3(enumRef, value) {
2856
+ function enumStringToValue$1(enumRef, value) {
2647
2857
  if (typeof value === 'number') {
2648
2858
  return value;
2649
2859
  }
@@ -2723,7 +2933,7 @@ class AvailabilityRule {
2723
2933
  let m = new AvailabilityRule();
2724
2934
  m = Object.assign(m, proto);
2725
2935
  if (proto.day) {
2726
- m.day = enumStringToValue$3(DayOfWeek, proto.day);
2936
+ m.day = enumStringToValue$1(DayOfWeek, proto.day);
2727
2937
  }
2728
2938
  if (proto.timeSlot) {
2729
2939
  m.timeSlot = TimeRange.fromProto(proto.timeSlot);
@@ -3660,7 +3870,7 @@ class HostBookMeetingRequest {
3660
3870
  let m = new HostBookMeetingRequest();
3661
3871
  m = Object.assign(m, proto);
3662
3872
  if (proto.meetingSource) {
3663
- m.meetingSource = enumStringToValue$3(MeetingSource, proto.meetingSource);
3873
+ m.meetingSource = enumStringToValue$1(MeetingSource, proto.meetingSource);
3664
3874
  }
3665
3875
  if (proto.timeSlot) {
3666
3876
  m.timeSlot = DateRange.fromProto(proto.timeSlot);
@@ -4372,7 +4582,7 @@ class SetGeneralAvailabilityRequest {
4372
4582
  let m = new SetGeneralAvailabilityRequest();
4373
4583
  m = Object.assign(m, proto);
4374
4584
  if (proto.days) {
4375
- m.days = proto.days.map((v) => enumStringToValue$3(DayOfWeek, v));
4585
+ m.days = proto.days.map((v) => enumStringToValue$1(DayOfWeek, v));
4376
4586
  }
4377
4587
  if (proto.timeSlot) {
4378
4588
  m.timeSlot = TimeRange.fromProto(proto.timeSlot);
@@ -4631,7 +4841,7 @@ class WeekdayAvailability {
4631
4841
  let m = new WeekdayAvailability();
4632
4842
  m = Object.assign(m, proto);
4633
4843
  if (proto.day) {
4634
- m.day = enumStringToValue$3(DayOfWeek, proto.day);
4844
+ m.day = enumStringToValue$1(DayOfWeek, proto.day);
4635
4845
  }
4636
4846
  if (proto.timeSlots) {
4637
4847
  m.timeSlots = proto.timeSlots.map(TimeRange.fromProto);
@@ -4656,7 +4866,7 @@ class WeekdayAvailability {
4656
4866
  }
4657
4867
  }
4658
4868
 
4659
- function enumStringToValue$2(enumRef, value) {
4869
+ function enumStringToValue(enumRef, value) {
4660
4870
  if (typeof value === 'number') {
4661
4871
  return value;
4662
4872
  }
@@ -4692,119 +4902,6 @@ class ScheduleBotRequest {
4692
4902
  }
4693
4903
  }
4694
4904
 
4695
- function enumStringToValue$1(enumRef, value) {
4696
- if (typeof value === 'number') {
4697
- return value;
4698
- }
4699
- return enumRef[value];
4700
- }
4701
- class TimeOfDay {
4702
- static fromProto(proto) {
4703
- let m = new TimeOfDay();
4704
- m = Object.assign(m, proto);
4705
- return m;
4706
- }
4707
- constructor(kwargs) {
4708
- if (!kwargs) {
4709
- return;
4710
- }
4711
- Object.assign(this, kwargs);
4712
- }
4713
- toApiJson() {
4714
- const toReturn = {};
4715
- if (typeof this.hours !== 'undefined') {
4716
- toReturn['hours'] = this.hours;
4717
- }
4718
- if (typeof this.minutes !== 'undefined') {
4719
- toReturn['minutes'] = this.minutes;
4720
- }
4721
- if (typeof this.seconds !== 'undefined') {
4722
- toReturn['seconds'] = this.seconds;
4723
- }
4724
- if (typeof this.nanos !== 'undefined') {
4725
- toReturn['nanos'] = this.nanos;
4726
- }
4727
- return toReturn;
4728
- }
4729
- }
4730
-
4731
- function enumStringToValue(enumRef, value) {
4732
- if (typeof value === 'number') {
4733
- return value;
4734
- }
4735
- return enumRef[value];
4736
- }
4737
- class DateTime {
4738
- static fromProto(proto) {
4739
- let m = new DateTime();
4740
- m = Object.assign(m, proto);
4741
- if (proto.timeZone) {
4742
- m.timeZone = TimeZone.fromProto(proto.timeZone);
4743
- }
4744
- return m;
4745
- }
4746
- constructor(kwargs) {
4747
- if (!kwargs) {
4748
- return;
4749
- }
4750
- Object.assign(this, kwargs);
4751
- }
4752
- toApiJson() {
4753
- const toReturn = {};
4754
- if (typeof this.year !== 'undefined') {
4755
- toReturn['year'] = this.year;
4756
- }
4757
- if (typeof this.month !== 'undefined') {
4758
- toReturn['month'] = this.month;
4759
- }
4760
- if (typeof this.day !== 'undefined') {
4761
- toReturn['day'] = this.day;
4762
- }
4763
- if (typeof this.hours !== 'undefined') {
4764
- toReturn['hours'] = this.hours;
4765
- }
4766
- if (typeof this.minutes !== 'undefined') {
4767
- toReturn['minutes'] = this.minutes;
4768
- }
4769
- if (typeof this.seconds !== 'undefined') {
4770
- toReturn['seconds'] = this.seconds;
4771
- }
4772
- if (typeof this.nanos !== 'undefined') {
4773
- toReturn['nanos'] = this.nanos;
4774
- }
4775
- if (typeof this.utcOffset !== 'undefined') {
4776
- toReturn['utcOffset'] = this.utcOffset;
4777
- }
4778
- if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
4779
- toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
4780
- }
4781
- return toReturn;
4782
- }
4783
- }
4784
- class TimeZone {
4785
- static fromProto(proto) {
4786
- let m = new TimeZone();
4787
- m = Object.assign(m, proto);
4788
- return m;
4789
- }
4790
- constructor(kwargs) {
4791
- if (!kwargs) {
4792
- return;
4793
- }
4794
- Object.assign(this, kwargs);
4795
- }
4796
- toApiJson() {
4797
- const toReturn = {};
4798
- if (typeof this.id !== 'undefined') {
4799
- toReturn['id'] = this.id;
4800
- }
4801
- if (typeof this.version !== 'undefined') {
4802
- toReturn['version'] = this.version;
4803
- }
4804
- return toReturn;
4805
- }
4806
- }
4807
-
4808
4905
  // *********************************
4809
4906
 
4810
4907
  const environment = (window ? window['environment'] : 'prod') ?? 'prod';
@@ -4832,9 +4929,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
4832
4929
 
4833
4930
  // *********************************
4834
4931
  class MeetingSourceAPIApiService {
4835
- constructor() {
4836
- this.hostService = inject(HostService$1);
4837
- this.http = inject(HttpClient);
4932
+ constructor(http, hostService) {
4933
+ this.http = http;
4934
+ this.hostService = hostService;
4838
4935
  this._host = this.hostService.hostWithScheme;
4839
4936
  }
4840
4937
  apiOptions() {
@@ -4851,18 +4948,18 @@ class MeetingSourceAPIApiService {
4851
4948
  .pipe(map(resp => MeetingSourceListResponse.fromProto(resp)));
4852
4949
  }
4853
4950
  }
4854
- MeetingSourceAPIApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4951
+ MeetingSourceAPIApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, deps: [{ token: i1.HttpClient }, { token: HostService$1 }], target: i0.ɵɵFactoryTarget.Injectable });
4855
4952
  MeetingSourceAPIApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, providedIn: 'root' });
4856
4953
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, decorators: [{
4857
4954
  type: Injectable,
4858
4955
  args: [{ providedIn: 'root' }]
4859
- }] });
4956
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
4860
4957
 
4861
4958
  // *********************************
4862
4959
  class ZoomApiService {
4863
- constructor() {
4864
- this.hostService = inject(HostService$1);
4865
- this.http = inject(HttpClient);
4960
+ constructor(http, hostService) {
4961
+ this.http = http;
4962
+ this.hostService = hostService;
4866
4963
  this._host = this.hostService.hostWithScheme;
4867
4964
  }
4868
4965
  apiOptions() {
@@ -4879,18 +4976,18 @@ class ZoomApiService {
4879
4976
  .pipe(map(resp => CreateZoomMeetingResponse.fromProto(resp)));
4880
4977
  }
4881
4978
  }
4882
- ZoomApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4979
+ ZoomApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, deps: [{ token: i1.HttpClient }, { token: HostService$1 }], target: i0.ɵɵFactoryTarget.Injectable });
4883
4980
  ZoomApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, providedIn: 'root' });
4884
4981
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, decorators: [{
4885
4982
  type: Injectable,
4886
4983
  args: [{ providedIn: 'root' }]
4887
- }] });
4984
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
4888
4985
 
4889
4986
  // *********************************
4890
4987
  class GoogleMeetApiService {
4891
- constructor() {
4892
- this.hostService = inject(HostService$1);
4893
- this.http = inject(HttpClient);
4988
+ constructor(http, hostService) {
4989
+ this.http = http;
4990
+ this.hostService = hostService;
4894
4991
  this._host = this.hostService.hostWithScheme;
4895
4992
  }
4896
4993
  apiOptions() {
@@ -4907,12 +5004,12 @@ class GoogleMeetApiService {
4907
5004
  .pipe(map(resp => GoogleMeetCreateMeetingResponse.fromProto(resp)));
4908
5005
  }
4909
5006
  }
4910
- GoogleMeetApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5007
+ GoogleMeetApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, deps: [{ token: i1.HttpClient }, { token: HostService$1 }], target: i0.ɵɵFactoryTarget.Injectable });
4911
5008
  GoogleMeetApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, providedIn: 'root' });
4912
5009
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, decorators: [{
4913
5010
  type: Injectable,
4914
5011
  args: [{ providedIn: 'root' }]
4915
- }] });
5012
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
4916
5013
 
4917
5014
  function generateMeetingPassword() {
4918
5015
  const zoomMaxLength = 10;
@@ -5074,9 +5171,9 @@ function createMeetInstantMeetingRequest(meetingTitle, startDateTime, attendees)
5074
5171
 
5075
5172
  // *********************************
5076
5173
  class MeetingBotAPIApiService {
5077
- constructor() {
5078
- this.hostService = inject(HostService$1);
5079
- this.http = inject(HttpClient);
5174
+ constructor(http, hostService) {
5175
+ this.http = http;
5176
+ this.hostService = hostService;
5080
5177
  this._host = this.hostService.hostWithScheme;
5081
5178
  }
5082
5179
  apiOptions() {
@@ -5092,18 +5189,18 @@ class MeetingBotAPIApiService {
5092
5189
  return this.http.post(this._host + "/meetings.v1.MeetingBotAPI/ScheduleBot", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
5093
5190
  }
5094
5191
  }
5095
- MeetingBotAPIApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingBotAPIApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5192
+ MeetingBotAPIApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingBotAPIApiService, deps: [{ token: i1.HttpClient }, { token: HostService$1 }], target: i0.ɵɵFactoryTarget.Injectable });
5096
5193
  MeetingBotAPIApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingBotAPIApiService, providedIn: 'root' });
5097
5194
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingBotAPIApiService, decorators: [{
5098
5195
  type: Injectable,
5099
5196
  args: [{ providedIn: 'root' }]
5100
- }] });
5197
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
5101
5198
 
5102
5199
  // *********************************
5103
5200
  class MeetingGuestApiService {
5104
- constructor() {
5105
- this.hostService = inject(HostService$1);
5106
- this.http = inject(HttpClient);
5201
+ constructor(http, hostService) {
5202
+ this.http = http;
5203
+ this.hostService = hostService;
5107
5204
  this._host = this.hostService.hostWithScheme;
5108
5205
  }
5109
5206
  apiOptions() {
@@ -5173,18 +5270,18 @@ class MeetingGuestApiService {
5173
5270
  .pipe(map(resp => GetServiceResponse.fromProto(resp)));
5174
5271
  }
5175
5272
  }
5176
- MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5273
+ MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, deps: [{ token: i1.HttpClient }, { token: HostService$1 }], target: i0.ɵɵFactoryTarget.Injectable });
5177
5274
  MeetingGuestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, providedIn: 'root' });
5178
5275
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, decorators: [{
5179
5276
  type: Injectable,
5180
5277
  args: [{ providedIn: 'root' }]
5181
- }] });
5278
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
5182
5279
 
5183
5280
  // *********************************
5184
5281
  class MeetingHostApiService {
5185
- constructor() {
5186
- this.hostService = inject(HostService$1);
5187
- this.http = inject(HttpClient);
5282
+ constructor(http, hostService) {
5283
+ this.http = http;
5284
+ this.hostService = hostService;
5188
5285
  this._host = this.hostService.hostWithScheme;
5189
5286
  }
5190
5287
  apiOptions() {
@@ -5404,12 +5501,12 @@ class MeetingHostApiService {
5404
5501
  .pipe(map(resp => GetEntityAssociationResponse.fromProto(resp)));
5405
5502
  }
5406
5503
  }
5407
- MeetingHostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5504
+ MeetingHostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, deps: [{ token: i1.HttpClient }, { token: HostService$1 }], target: i0.ɵɵFactoryTarget.Injectable });
5408
5505
  MeetingHostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, providedIn: 'root' });
5409
5506
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, decorators: [{
5410
5507
  type: Injectable,
5411
5508
  args: [{ providedIn: 'root' }]
5412
- }] });
5509
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService$1 }]; } });
5413
5510
 
5414
5511
  // *********************************
5415
5512
 
@@ -5561,6 +5658,7 @@ function MeetingTypeFromApi(req) {
5561
5658
  teamName: req.meetingTypeApi.teamName || '',
5562
5659
  isVideoLinkDisabled: req.meetingTypeApi.isVideoLinkDisabled || false,
5563
5660
  locationType: req.meetingTypeApi.locationType || MeetingLocationType.VIDEO,
5661
+ dateRange: req.meetingTypeApi.dateRange || {},
5564
5662
  };
5565
5663
  }
5566
5664
  function MeetingTypeToApi(req) {
@@ -5593,6 +5691,7 @@ function MeetingTypeToApi(req) {
5593
5691
  isVideoLinkDisabled: m.isVideoLinkDisabled || false,
5594
5692
  locationType: m.locationType || MeetingLocationType.VIDEO,
5595
5693
  bufferDurationBeforeMeeting: m.bufferDurationBeforeMeeting || 0,
5694
+ dateRange: m.dateRange || undefined
5596
5695
  };
5597
5696
  }
5598
5697
 
@@ -5732,6 +5831,7 @@ function PreferencesFromApi(preferences) {
5732
5831
  bufferDurationBeforeMeeting: preferences.bufferDurationBeforeMeeting || 0,
5733
5832
  noticeTime: preferences.noticeTime || 0,
5734
5833
  calendarSlug: preferences.calendarSlug || '',
5834
+ calendarIntegration: preferences.calendarIntegration || CalendarSource.CALENDAR_SOURCE_INVALID,
5735
5835
  };
5736
5836
  }
5737
5837
 
@@ -6510,5 +6610,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
6510
6610
  * Generated bundle index. Do not edit.
6511
6611
  */
6512
6612
 
6513
- export { CalendarType, Contact, CreateCalendarRequest, CreateCalendarResponse, DayOfWeek, FormFieldType, GuestService, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, MeetingBotService, MeetingLocationType, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceOrigin, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, PagedResponse, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
6613
+ export { CalendarSource, CalendarType, Contact, CreateCalendarRequest, CreateCalendarResponse, DateRangeType, DayOfWeek, FormFieldType, GuestService, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, MeetingBotService, MeetingLocationType, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceOrigin, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, PagedResponse, RelativeTimeUnit, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
6514
6614
  //# sourceMappingURL=vendasta-meetings.mjs.map