@vendasta/meetings 0.90.0 → 0.92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/_internal/enums/index.mjs +1 -1
- package/esm2020/lib/_internal/google-meet.api.service.mjs +7 -8
- package/esm2020/lib/_internal/interfaces/groups-and-services.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-host.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-type.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/shared.interface.mjs +1 -1
- package/esm2020/lib/_internal/meeting-guest.api.service.mjs +13 -9
- package/esm2020/lib/_internal/meeting-host.api.service.mjs +7 -8
- package/esm2020/lib/_internal/meeting-source-api.api.service.mjs +7 -8
- package/esm2020/lib/_internal/objects/groups-and-services.mjs +10 -1
- package/esm2020/lib/_internal/objects/index.mjs +5 -5
- package/esm2020/lib/_internal/objects/meeting-guest.mjs +49 -2
- package/esm2020/lib/_internal/objects/meeting-host.mjs +2 -2
- package/esm2020/lib/_internal/objects/meeting-type.mjs +4 -1
- package/esm2020/lib/_internal/objects/shared.mjs +2 -3
- package/esm2020/lib/_internal/zoom.api.service.mjs +7 -8
- package/esm2020/lib/guest/guest.service.mjs +4 -1
- package/esm2020/lib/host/host.service.mjs +3 -3
- package/esm2020/lib/host/url.mjs +8 -2
- package/esm2020/lib/shared/groups-and-services.mjs +6 -6
- package/esm2020/lib/shared/meeting-type.mjs +4 -2
- package/fesm2015/vendasta-meetings.mjs +366 -293
- package/fesm2015/vendasta-meetings.mjs.map +1 -1
- package/fesm2020/vendasta-meetings.mjs +366 -293
- package/fesm2020/vendasta-meetings.mjs.map +1 -1
- package/lib/_internal/google-meet.api.service.d.ts +2 -5
- package/lib/_internal/interfaces/groups-and-services.interface.d.ts +3 -0
- package/lib/_internal/interfaces/index.d.ts +4 -4
- package/lib/_internal/interfaces/meeting-guest.interface.d.ts +9 -1
- package/lib/_internal/interfaces/meeting-host.interface.d.ts +1 -1
- package/lib/_internal/interfaces/meeting-type.interface.d.ts +1 -0
- package/lib/_internal/interfaces/shared.interface.d.ts +1 -2
- package/lib/_internal/meeting-guest.api.service.d.ts +6 -7
- package/lib/_internal/meeting-host.api.service.d.ts +3 -5
- package/lib/_internal/meeting-source-api.api.service.d.ts +2 -5
- package/lib/_internal/objects/groups-and-services.d.ts +3 -0
- package/lib/_internal/objects/index.d.ts +4 -4
- package/lib/_internal/objects/meeting-guest.d.ts +15 -1
- package/lib/_internal/objects/meeting-host.d.ts +1 -1
- package/lib/_internal/objects/meeting-type.d.ts +1 -0
- package/lib/_internal/objects/shared.d.ts +1 -2
- package/lib/_internal/zoom.api.service.d.ts +2 -5
- package/lib/guest/guest.service.d.ts +5 -1
- package/lib/shared/groups-and-services.d.ts +1 -1
- package/lib/shared/meeting-type.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
2
|
+
import { Injectable, inject } from '@angular/core';
|
|
3
3
|
import { throwError, of } from 'rxjs';
|
|
4
4
|
import { map, mapTo } from 'rxjs/operators';
|
|
5
|
-
import
|
|
6
|
-
import { HttpHeaders } from '@angular/common/http';
|
|
5
|
+
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
7
6
|
|
|
8
7
|
// *********************************
|
|
9
8
|
// Code generated by sdkgen
|
|
@@ -1177,125 +1176,12 @@ function enumStringToValue$8(enumRef, value) {
|
|
|
1177
1176
|
}
|
|
1178
1177
|
return enumRef[value];
|
|
1179
1178
|
}
|
|
1180
|
-
class TimeOfDay {
|
|
1181
|
-
static fromProto(proto) {
|
|
1182
|
-
let m = new TimeOfDay();
|
|
1183
|
-
m = Object.assign(m, proto);
|
|
1184
|
-
return m;
|
|
1185
|
-
}
|
|
1186
|
-
constructor(kwargs) {
|
|
1187
|
-
if (!kwargs) {
|
|
1188
|
-
return;
|
|
1189
|
-
}
|
|
1190
|
-
Object.assign(this, kwargs);
|
|
1191
|
-
}
|
|
1192
|
-
toApiJson() {
|
|
1193
|
-
const toReturn = {};
|
|
1194
|
-
if (typeof this.hours !== 'undefined') {
|
|
1195
|
-
toReturn['hours'] = this.hours;
|
|
1196
|
-
}
|
|
1197
|
-
if (typeof this.minutes !== 'undefined') {
|
|
1198
|
-
toReturn['minutes'] = this.minutes;
|
|
1199
|
-
}
|
|
1200
|
-
if (typeof this.seconds !== 'undefined') {
|
|
1201
|
-
toReturn['seconds'] = this.seconds;
|
|
1202
|
-
}
|
|
1203
|
-
if (typeof this.nanos !== 'undefined') {
|
|
1204
|
-
toReturn['nanos'] = this.nanos;
|
|
1205
|
-
}
|
|
1206
|
-
return toReturn;
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
function enumStringToValue$7(enumRef, value) {
|
|
1211
|
-
if (typeof value === 'number') {
|
|
1212
|
-
return value;
|
|
1213
|
-
}
|
|
1214
|
-
return enumRef[value];
|
|
1215
|
-
}
|
|
1216
|
-
class DateTime {
|
|
1217
|
-
static fromProto(proto) {
|
|
1218
|
-
let m = new DateTime();
|
|
1219
|
-
m = Object.assign(m, proto);
|
|
1220
|
-
if (proto.timeZone) {
|
|
1221
|
-
m.timeZone = TimeZone.fromProto(proto.timeZone);
|
|
1222
|
-
}
|
|
1223
|
-
return m;
|
|
1224
|
-
}
|
|
1225
|
-
constructor(kwargs) {
|
|
1226
|
-
if (!kwargs) {
|
|
1227
|
-
return;
|
|
1228
|
-
}
|
|
1229
|
-
Object.assign(this, kwargs);
|
|
1230
|
-
}
|
|
1231
|
-
toApiJson() {
|
|
1232
|
-
const toReturn = {};
|
|
1233
|
-
if (typeof this.year !== 'undefined') {
|
|
1234
|
-
toReturn['year'] = this.year;
|
|
1235
|
-
}
|
|
1236
|
-
if (typeof this.month !== 'undefined') {
|
|
1237
|
-
toReturn['month'] = this.month;
|
|
1238
|
-
}
|
|
1239
|
-
if (typeof this.day !== 'undefined') {
|
|
1240
|
-
toReturn['day'] = this.day;
|
|
1241
|
-
}
|
|
1242
|
-
if (typeof this.hours !== 'undefined') {
|
|
1243
|
-
toReturn['hours'] = this.hours;
|
|
1244
|
-
}
|
|
1245
|
-
if (typeof this.minutes !== 'undefined') {
|
|
1246
|
-
toReturn['minutes'] = this.minutes;
|
|
1247
|
-
}
|
|
1248
|
-
if (typeof this.seconds !== 'undefined') {
|
|
1249
|
-
toReturn['seconds'] = this.seconds;
|
|
1250
|
-
}
|
|
1251
|
-
if (typeof this.nanos !== 'undefined') {
|
|
1252
|
-
toReturn['nanos'] = this.nanos;
|
|
1253
|
-
}
|
|
1254
|
-
if (typeof this.utcOffset !== 'undefined') {
|
|
1255
|
-
toReturn['utcOffset'] = this.utcOffset;
|
|
1256
|
-
}
|
|
1257
|
-
if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
|
|
1258
|
-
toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
|
|
1259
|
-
}
|
|
1260
|
-
return toReturn;
|
|
1261
|
-
}
|
|
1262
|
-
}
|
|
1263
|
-
class TimeZone {
|
|
1264
|
-
static fromProto(proto) {
|
|
1265
|
-
let m = new TimeZone();
|
|
1266
|
-
m = Object.assign(m, proto);
|
|
1267
|
-
return m;
|
|
1268
|
-
}
|
|
1269
|
-
constructor(kwargs) {
|
|
1270
|
-
if (!kwargs) {
|
|
1271
|
-
return;
|
|
1272
|
-
}
|
|
1273
|
-
Object.assign(this, kwargs);
|
|
1274
|
-
}
|
|
1275
|
-
toApiJson() {
|
|
1276
|
-
const toReturn = {};
|
|
1277
|
-
if (typeof this.id !== 'undefined') {
|
|
1278
|
-
toReturn['id'] = this.id;
|
|
1279
|
-
}
|
|
1280
|
-
if (typeof this.version !== 'undefined') {
|
|
1281
|
-
toReturn['version'] = this.version;
|
|
1282
|
-
}
|
|
1283
|
-
return toReturn;
|
|
1284
|
-
}
|
|
1285
|
-
}
|
|
1286
|
-
|
|
1287
|
-
function enumStringToValue$6(enumRef, value) {
|
|
1288
|
-
if (typeof value === 'number') {
|
|
1289
|
-
return value;
|
|
1290
|
-
}
|
|
1291
|
-
return enumRef[value];
|
|
1292
|
-
}
|
|
1293
1179
|
class Answer {
|
|
1294
1180
|
static fromProto(proto) {
|
|
1295
1181
|
let m = new Answer();
|
|
1296
1182
|
m = Object.assign(m, proto);
|
|
1297
1183
|
if (proto.type) {
|
|
1298
|
-
m.type = enumStringToValue$
|
|
1184
|
+
m.type = enumStringToValue$8(FormFieldType, proto.type);
|
|
1299
1185
|
}
|
|
1300
1186
|
return m;
|
|
1301
1187
|
}
|
|
@@ -1437,7 +1323,7 @@ class Calendar {
|
|
|
1437
1323
|
m.applicationContext = Object.keys(proto.applicationContext).reduce((obj, k) => { obj[k] = proto.applicationContext[k]; return obj; }, {});
|
|
1438
1324
|
}
|
|
1439
1325
|
if (proto.calendarType) {
|
|
1440
|
-
m.calendarType = enumStringToValue$
|
|
1326
|
+
m.calendarType = enumStringToValue$8(CalendarType, proto.calendarType);
|
|
1441
1327
|
}
|
|
1442
1328
|
return m;
|
|
1443
1329
|
}
|
|
@@ -1635,7 +1521,7 @@ class Preferences {
|
|
|
1635
1521
|
m.timezone = TimeZone.fromProto(proto.timezone);
|
|
1636
1522
|
}
|
|
1637
1523
|
if (proto.meetingIntegration) {
|
|
1638
|
-
m.meetingIntegration = enumStringToValue$
|
|
1524
|
+
m.meetingIntegration = enumStringToValue$8(MeetingSource, proto.meetingIntegration);
|
|
1639
1525
|
}
|
|
1640
1526
|
if (proto.availabilityIncrement) {
|
|
1641
1527
|
m.availabilityIncrement = parseInt(proto.availabilityIncrement, 10);
|
|
@@ -1707,7 +1593,7 @@ class TimeRange {
|
|
|
1707
1593
|
}
|
|
1708
1594
|
}
|
|
1709
1595
|
|
|
1710
|
-
function enumStringToValue$
|
|
1596
|
+
function enumStringToValue$7(enumRef, value) {
|
|
1711
1597
|
if (typeof value === 'number') {
|
|
1712
1598
|
return value;
|
|
1713
1599
|
}
|
|
@@ -1718,7 +1604,7 @@ class Field {
|
|
|
1718
1604
|
let m = new Field();
|
|
1719
1605
|
m = Object.assign(m, proto);
|
|
1720
1606
|
if (proto.type) {
|
|
1721
|
-
m.type = enumStringToValue$
|
|
1607
|
+
m.type = enumStringToValue$7(FormFieldType, proto.type);
|
|
1722
1608
|
}
|
|
1723
1609
|
return m;
|
|
1724
1610
|
}
|
|
@@ -1869,11 +1755,14 @@ class MeetingType {
|
|
|
1869
1755
|
if (typeof this.hostUsers !== 'undefined' && this.hostUsers !== null) {
|
|
1870
1756
|
toReturn['hostUsers'] = 'toApiJson' in this.hostUsers ? this.hostUsers.toApiJson() : this.hostUsers;
|
|
1871
1757
|
}
|
|
1758
|
+
if (typeof this.teamName !== 'undefined') {
|
|
1759
|
+
toReturn['teamName'] = this.teamName;
|
|
1760
|
+
}
|
|
1872
1761
|
return toReturn;
|
|
1873
1762
|
}
|
|
1874
1763
|
}
|
|
1875
1764
|
|
|
1876
|
-
function enumStringToValue$
|
|
1765
|
+
function enumStringToValue$6(enumRef, value) {
|
|
1877
1766
|
if (typeof value === 'number') {
|
|
1878
1767
|
return value;
|
|
1879
1768
|
}
|
|
@@ -1909,7 +1798,146 @@ class DateRange {
|
|
|
1909
1798
|
}
|
|
1910
1799
|
}
|
|
1911
1800
|
|
|
1912
|
-
function enumStringToValue$
|
|
1801
|
+
function enumStringToValue$5(enumRef, value) {
|
|
1802
|
+
if (typeof value === 'number') {
|
|
1803
|
+
return value;
|
|
1804
|
+
}
|
|
1805
|
+
return enumRef[value];
|
|
1806
|
+
}
|
|
1807
|
+
class EventGroupAndServiceAssociations {
|
|
1808
|
+
static fromProto(proto) {
|
|
1809
|
+
let m = new EventGroupAndServiceAssociations();
|
|
1810
|
+
m = Object.assign(m, proto);
|
|
1811
|
+
return m;
|
|
1812
|
+
}
|
|
1813
|
+
constructor(kwargs) {
|
|
1814
|
+
if (!kwargs) {
|
|
1815
|
+
return;
|
|
1816
|
+
}
|
|
1817
|
+
Object.assign(this, kwargs);
|
|
1818
|
+
}
|
|
1819
|
+
toApiJson() {
|
|
1820
|
+
const toReturn = {};
|
|
1821
|
+
if (typeof this.id !== 'undefined') {
|
|
1822
|
+
toReturn['id'] = this.id;
|
|
1823
|
+
}
|
|
1824
|
+
if (typeof this.name !== 'undefined') {
|
|
1825
|
+
toReturn['name'] = this.name;
|
|
1826
|
+
}
|
|
1827
|
+
if (typeof this.eventType !== 'undefined') {
|
|
1828
|
+
toReturn['eventType'] = this.eventType;
|
|
1829
|
+
}
|
|
1830
|
+
if (typeof this.identifier !== 'undefined') {
|
|
1831
|
+
toReturn['identifier'] = this.identifier;
|
|
1832
|
+
}
|
|
1833
|
+
if (typeof this.isEditable !== 'undefined') {
|
|
1834
|
+
toReturn['isEditable'] = this.isEditable;
|
|
1835
|
+
}
|
|
1836
|
+
if (typeof this.creatorUserName !== 'undefined') {
|
|
1837
|
+
toReturn['creatorUserName'] = this.creatorUserName;
|
|
1838
|
+
}
|
|
1839
|
+
if (typeof this.calendarId !== 'undefined') {
|
|
1840
|
+
toReturn['calendarId'] = this.calendarId;
|
|
1841
|
+
}
|
|
1842
|
+
if (typeof this.hexColor !== 'undefined') {
|
|
1843
|
+
toReturn['hexColor'] = this.hexColor;
|
|
1844
|
+
}
|
|
1845
|
+
if (typeof this.duration !== 'undefined') {
|
|
1846
|
+
toReturn['duration'] = this.duration;
|
|
1847
|
+
}
|
|
1848
|
+
return toReturn;
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
class Group {
|
|
1852
|
+
static fromProto(proto) {
|
|
1853
|
+
let m = new Group();
|
|
1854
|
+
m = Object.assign(m, proto);
|
|
1855
|
+
if (proto.associations) {
|
|
1856
|
+
m.associations = proto.associations.map(EventGroupAndServiceAssociations.fromProto);
|
|
1857
|
+
}
|
|
1858
|
+
return m;
|
|
1859
|
+
}
|
|
1860
|
+
constructor(kwargs) {
|
|
1861
|
+
if (!kwargs) {
|
|
1862
|
+
return;
|
|
1863
|
+
}
|
|
1864
|
+
Object.assign(this, kwargs);
|
|
1865
|
+
}
|
|
1866
|
+
toApiJson() {
|
|
1867
|
+
const toReturn = {};
|
|
1868
|
+
if (typeof this.id !== 'undefined') {
|
|
1869
|
+
toReturn['id'] = this.id;
|
|
1870
|
+
}
|
|
1871
|
+
if (typeof this.name !== 'undefined') {
|
|
1872
|
+
toReturn['name'] = this.name;
|
|
1873
|
+
}
|
|
1874
|
+
if (typeof this.description !== 'undefined') {
|
|
1875
|
+
toReturn['description'] = this.description;
|
|
1876
|
+
}
|
|
1877
|
+
if (typeof this.slug !== 'undefined') {
|
|
1878
|
+
toReturn['slug'] = this.slug;
|
|
1879
|
+
}
|
|
1880
|
+
if (typeof this.isPinned !== 'undefined') {
|
|
1881
|
+
toReturn['isPinned'] = this.isPinned;
|
|
1882
|
+
}
|
|
1883
|
+
if (typeof this.associations !== 'undefined' && this.associations !== null) {
|
|
1884
|
+
toReturn['associations'] = 'toApiJson' in this.associations ? this.associations.toApiJson() : this.associations;
|
|
1885
|
+
}
|
|
1886
|
+
if (typeof this.hexColor !== 'undefined') {
|
|
1887
|
+
toReturn['hexColor'] = this.hexColor;
|
|
1888
|
+
}
|
|
1889
|
+
if (typeof this.bookingUrl !== 'undefined') {
|
|
1890
|
+
toReturn['bookingUrl'] = this.bookingUrl;
|
|
1891
|
+
}
|
|
1892
|
+
return toReturn;
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
class Service {
|
|
1896
|
+
static fromProto(proto) {
|
|
1897
|
+
let m = new Service();
|
|
1898
|
+
m = Object.assign(m, proto);
|
|
1899
|
+
if (proto.associations) {
|
|
1900
|
+
m.associations = proto.associations.map(EventGroupAndServiceAssociations.fromProto);
|
|
1901
|
+
}
|
|
1902
|
+
return m;
|
|
1903
|
+
}
|
|
1904
|
+
constructor(kwargs) {
|
|
1905
|
+
if (!kwargs) {
|
|
1906
|
+
return;
|
|
1907
|
+
}
|
|
1908
|
+
Object.assign(this, kwargs);
|
|
1909
|
+
}
|
|
1910
|
+
toApiJson() {
|
|
1911
|
+
const toReturn = {};
|
|
1912
|
+
if (typeof this.id !== 'undefined') {
|
|
1913
|
+
toReturn['id'] = this.id;
|
|
1914
|
+
}
|
|
1915
|
+
if (typeof this.name !== 'undefined') {
|
|
1916
|
+
toReturn['name'] = this.name;
|
|
1917
|
+
}
|
|
1918
|
+
if (typeof this.description !== 'undefined') {
|
|
1919
|
+
toReturn['description'] = this.description;
|
|
1920
|
+
}
|
|
1921
|
+
if (typeof this.slug !== 'undefined') {
|
|
1922
|
+
toReturn['slug'] = this.slug;
|
|
1923
|
+
}
|
|
1924
|
+
if (typeof this.isPinned !== 'undefined') {
|
|
1925
|
+
toReturn['isPinned'] = this.isPinned;
|
|
1926
|
+
}
|
|
1927
|
+
if (typeof this.associations !== 'undefined' && this.associations !== null) {
|
|
1928
|
+
toReturn['associations'] = 'toApiJson' in this.associations ? this.associations.toApiJson() : this.associations;
|
|
1929
|
+
}
|
|
1930
|
+
if (typeof this.hexColor !== 'undefined') {
|
|
1931
|
+
toReturn['hexColor'] = this.hexColor;
|
|
1932
|
+
}
|
|
1933
|
+
if (typeof this.bookingUrl !== 'undefined') {
|
|
1934
|
+
toReturn['bookingUrl'] = this.bookingUrl;
|
|
1935
|
+
}
|
|
1936
|
+
return toReturn;
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
function enumStringToValue$4(enumRef, value) {
|
|
1913
1941
|
if (typeof value === 'number') {
|
|
1914
1942
|
return value;
|
|
1915
1943
|
}
|
|
@@ -2046,6 +2074,52 @@ class GetCalendarResponse {
|
|
|
2046
2074
|
return toReturn;
|
|
2047
2075
|
}
|
|
2048
2076
|
}
|
|
2077
|
+
class GetGroupRequest {
|
|
2078
|
+
static fromProto(proto) {
|
|
2079
|
+
let m = new GetGroupRequest();
|
|
2080
|
+
m = Object.assign(m, proto);
|
|
2081
|
+
return m;
|
|
2082
|
+
}
|
|
2083
|
+
constructor(kwargs) {
|
|
2084
|
+
if (!kwargs) {
|
|
2085
|
+
return;
|
|
2086
|
+
}
|
|
2087
|
+
Object.assign(this, kwargs);
|
|
2088
|
+
}
|
|
2089
|
+
toApiJson() {
|
|
2090
|
+
const toReturn = {};
|
|
2091
|
+
if (typeof this.groupId !== 'undefined') {
|
|
2092
|
+
toReturn['groupId'] = this.groupId;
|
|
2093
|
+
}
|
|
2094
|
+
if (typeof this.slug !== 'undefined') {
|
|
2095
|
+
toReturn['slug'] = this.slug;
|
|
2096
|
+
}
|
|
2097
|
+
return toReturn;
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
class GetGroupResponse {
|
|
2101
|
+
static fromProto(proto) {
|
|
2102
|
+
let m = new GetGroupResponse();
|
|
2103
|
+
m = Object.assign(m, proto);
|
|
2104
|
+
if (proto.group) {
|
|
2105
|
+
m.group = Group.fromProto(proto.group);
|
|
2106
|
+
}
|
|
2107
|
+
return m;
|
|
2108
|
+
}
|
|
2109
|
+
constructor(kwargs) {
|
|
2110
|
+
if (!kwargs) {
|
|
2111
|
+
return;
|
|
2112
|
+
}
|
|
2113
|
+
Object.assign(this, kwargs);
|
|
2114
|
+
}
|
|
2115
|
+
toApiJson() {
|
|
2116
|
+
const toReturn = {};
|
|
2117
|
+
if (typeof this.group !== 'undefined' && this.group !== null) {
|
|
2118
|
+
toReturn['group'] = 'toApiJson' in this.group ? this.group.toApiJson() : this.group;
|
|
2119
|
+
}
|
|
2120
|
+
return toReturn;
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2049
2123
|
class GetHostRequest {
|
|
2050
2124
|
static fromProto(proto) {
|
|
2051
2125
|
let m = new GetHostRequest();
|
|
@@ -2425,7 +2499,7 @@ class BookMeetingRequestMetadataEntry {
|
|
|
2425
2499
|
}
|
|
2426
2500
|
}
|
|
2427
2501
|
|
|
2428
|
-
function enumStringToValue$
|
|
2502
|
+
function enumStringToValue$3(enumRef, value) {
|
|
2429
2503
|
if (typeof value === 'number') {
|
|
2430
2504
|
return value;
|
|
2431
2505
|
}
|
|
@@ -2452,137 +2526,7 @@ class FieldMask {
|
|
|
2452
2526
|
}
|
|
2453
2527
|
}
|
|
2454
2528
|
|
|
2455
|
-
function enumStringToValue$
|
|
2456
|
-
if (typeof value === 'number') {
|
|
2457
|
-
return value;
|
|
2458
|
-
}
|
|
2459
|
-
return enumRef[value];
|
|
2460
|
-
}
|
|
2461
|
-
class EventGroupAndServiceAssociations {
|
|
2462
|
-
static fromProto(proto) {
|
|
2463
|
-
let m = new EventGroupAndServiceAssociations();
|
|
2464
|
-
m = Object.assign(m, proto);
|
|
2465
|
-
return m;
|
|
2466
|
-
}
|
|
2467
|
-
constructor(kwargs) {
|
|
2468
|
-
if (!kwargs) {
|
|
2469
|
-
return;
|
|
2470
|
-
}
|
|
2471
|
-
Object.assign(this, kwargs);
|
|
2472
|
-
}
|
|
2473
|
-
toApiJson() {
|
|
2474
|
-
const toReturn = {};
|
|
2475
|
-
if (typeof this.id !== 'undefined') {
|
|
2476
|
-
toReturn['id'] = this.id;
|
|
2477
|
-
}
|
|
2478
|
-
if (typeof this.name !== 'undefined') {
|
|
2479
|
-
toReturn['name'] = this.name;
|
|
2480
|
-
}
|
|
2481
|
-
if (typeof this.eventType !== 'undefined') {
|
|
2482
|
-
toReturn['eventType'] = this.eventType;
|
|
2483
|
-
}
|
|
2484
|
-
if (typeof this.identifier !== 'undefined') {
|
|
2485
|
-
toReturn['identifier'] = this.identifier;
|
|
2486
|
-
}
|
|
2487
|
-
if (typeof this.isEditable !== 'undefined') {
|
|
2488
|
-
toReturn['isEditable'] = this.isEditable;
|
|
2489
|
-
}
|
|
2490
|
-
if (typeof this.creatorUserName !== 'undefined') {
|
|
2491
|
-
toReturn['creatorUserName'] = this.creatorUserName;
|
|
2492
|
-
}
|
|
2493
|
-
return toReturn;
|
|
2494
|
-
}
|
|
2495
|
-
}
|
|
2496
|
-
class Group {
|
|
2497
|
-
static fromProto(proto) {
|
|
2498
|
-
let m = new Group();
|
|
2499
|
-
m = Object.assign(m, proto);
|
|
2500
|
-
if (proto.associations) {
|
|
2501
|
-
m.associations = proto.associations.map(EventGroupAndServiceAssociations.fromProto);
|
|
2502
|
-
}
|
|
2503
|
-
return m;
|
|
2504
|
-
}
|
|
2505
|
-
constructor(kwargs) {
|
|
2506
|
-
if (!kwargs) {
|
|
2507
|
-
return;
|
|
2508
|
-
}
|
|
2509
|
-
Object.assign(this, kwargs);
|
|
2510
|
-
}
|
|
2511
|
-
toApiJson() {
|
|
2512
|
-
const toReturn = {};
|
|
2513
|
-
if (typeof this.id !== 'undefined') {
|
|
2514
|
-
toReturn['id'] = this.id;
|
|
2515
|
-
}
|
|
2516
|
-
if (typeof this.name !== 'undefined') {
|
|
2517
|
-
toReturn['name'] = this.name;
|
|
2518
|
-
}
|
|
2519
|
-
if (typeof this.description !== 'undefined') {
|
|
2520
|
-
toReturn['description'] = this.description;
|
|
2521
|
-
}
|
|
2522
|
-
if (typeof this.slug !== 'undefined') {
|
|
2523
|
-
toReturn['slug'] = this.slug;
|
|
2524
|
-
}
|
|
2525
|
-
if (typeof this.isPinned !== 'undefined') {
|
|
2526
|
-
toReturn['isPinned'] = this.isPinned;
|
|
2527
|
-
}
|
|
2528
|
-
if (typeof this.associations !== 'undefined' && this.associations !== null) {
|
|
2529
|
-
toReturn['associations'] = 'toApiJson' in this.associations ? this.associations.toApiJson() : this.associations;
|
|
2530
|
-
}
|
|
2531
|
-
if (typeof this.hexColor !== 'undefined') {
|
|
2532
|
-
toReturn['hexColor'] = this.hexColor;
|
|
2533
|
-
}
|
|
2534
|
-
if (typeof this.bookingUrl !== 'undefined') {
|
|
2535
|
-
toReturn['bookingUrl'] = this.bookingUrl;
|
|
2536
|
-
}
|
|
2537
|
-
return toReturn;
|
|
2538
|
-
}
|
|
2539
|
-
}
|
|
2540
|
-
class Service {
|
|
2541
|
-
static fromProto(proto) {
|
|
2542
|
-
let m = new Service();
|
|
2543
|
-
m = Object.assign(m, proto);
|
|
2544
|
-
if (proto.associations) {
|
|
2545
|
-
m.associations = proto.associations.map(EventGroupAndServiceAssociations.fromProto);
|
|
2546
|
-
}
|
|
2547
|
-
return m;
|
|
2548
|
-
}
|
|
2549
|
-
constructor(kwargs) {
|
|
2550
|
-
if (!kwargs) {
|
|
2551
|
-
return;
|
|
2552
|
-
}
|
|
2553
|
-
Object.assign(this, kwargs);
|
|
2554
|
-
}
|
|
2555
|
-
toApiJson() {
|
|
2556
|
-
const toReturn = {};
|
|
2557
|
-
if (typeof this.id !== 'undefined') {
|
|
2558
|
-
toReturn['id'] = this.id;
|
|
2559
|
-
}
|
|
2560
|
-
if (typeof this.name !== 'undefined') {
|
|
2561
|
-
toReturn['name'] = this.name;
|
|
2562
|
-
}
|
|
2563
|
-
if (typeof this.description !== 'undefined') {
|
|
2564
|
-
toReturn['description'] = this.description;
|
|
2565
|
-
}
|
|
2566
|
-
if (typeof this.slug !== 'undefined') {
|
|
2567
|
-
toReturn['slug'] = this.slug;
|
|
2568
|
-
}
|
|
2569
|
-
if (typeof this.isPinned !== 'undefined') {
|
|
2570
|
-
toReturn['isPinned'] = this.isPinned;
|
|
2571
|
-
}
|
|
2572
|
-
if (typeof this.associations !== 'undefined' && this.associations !== null) {
|
|
2573
|
-
toReturn['associations'] = 'toApiJson' in this.associations ? this.associations.toApiJson() : this.associations;
|
|
2574
|
-
}
|
|
2575
|
-
if (typeof this.hexColor !== 'undefined') {
|
|
2576
|
-
toReturn['hexColor'] = this.hexColor;
|
|
2577
|
-
}
|
|
2578
|
-
if (typeof this.bookingUrl !== 'undefined') {
|
|
2579
|
-
toReturn['bookingUrl'] = this.bookingUrl;
|
|
2580
|
-
}
|
|
2581
|
-
return toReturn;
|
|
2582
|
-
}
|
|
2583
|
-
}
|
|
2584
|
-
|
|
2585
|
-
function enumStringToValue(enumRef, value) {
|
|
2529
|
+
function enumStringToValue$2(enumRef, value) {
|
|
2586
2530
|
if (typeof value === 'number') {
|
|
2587
2531
|
return value;
|
|
2588
2532
|
}
|
|
@@ -2662,7 +2606,7 @@ class AvailabilityRule {
|
|
|
2662
2606
|
let m = new AvailabilityRule();
|
|
2663
2607
|
m = Object.assign(m, proto);
|
|
2664
2608
|
if (proto.day) {
|
|
2665
|
-
m.day = enumStringToValue(DayOfWeek, proto.day);
|
|
2609
|
+
m.day = enumStringToValue$2(DayOfWeek, proto.day);
|
|
2666
2610
|
}
|
|
2667
2611
|
if (proto.timeSlot) {
|
|
2668
2612
|
m.timeSlot = TimeRange.fromProto(proto.timeSlot);
|
|
@@ -3490,7 +3434,7 @@ class HostBookMeetingRequest {
|
|
|
3490
3434
|
let m = new HostBookMeetingRequest();
|
|
3491
3435
|
m = Object.assign(m, proto);
|
|
3492
3436
|
if (proto.meetingSource) {
|
|
3493
|
-
m.meetingSource = enumStringToValue(MeetingSource, proto.meetingSource);
|
|
3437
|
+
m.meetingSource = enumStringToValue$2(MeetingSource, proto.meetingSource);
|
|
3494
3438
|
}
|
|
3495
3439
|
if (proto.timeSlot) {
|
|
3496
3440
|
m.timeSlot = DateRange.fromProto(proto.timeSlot);
|
|
@@ -4199,7 +4143,7 @@ class SetGeneralAvailabilityRequest {
|
|
|
4199
4143
|
let m = new SetGeneralAvailabilityRequest();
|
|
4200
4144
|
m = Object.assign(m, proto);
|
|
4201
4145
|
if (proto.days) {
|
|
4202
|
-
m.days = proto.days.map((v) => enumStringToValue(DayOfWeek, v));
|
|
4146
|
+
m.days = proto.days.map((v) => enumStringToValue$2(DayOfWeek, v));
|
|
4203
4147
|
}
|
|
4204
4148
|
if (proto.timeSlot) {
|
|
4205
4149
|
m.timeSlot = TimeRange.fromProto(proto.timeSlot);
|
|
@@ -4458,7 +4402,7 @@ class WeekdayAvailability {
|
|
|
4458
4402
|
let m = new WeekdayAvailability();
|
|
4459
4403
|
m = Object.assign(m, proto);
|
|
4460
4404
|
if (proto.day) {
|
|
4461
|
-
m.day = enumStringToValue(DayOfWeek, proto.day);
|
|
4405
|
+
m.day = enumStringToValue$2(DayOfWeek, proto.day);
|
|
4462
4406
|
}
|
|
4463
4407
|
if (proto.timeSlots) {
|
|
4464
4408
|
m.timeSlots = proto.timeSlots.map(TimeRange.fromProto);
|
|
@@ -4483,6 +4427,119 @@ class WeekdayAvailability {
|
|
|
4483
4427
|
}
|
|
4484
4428
|
}
|
|
4485
4429
|
|
|
4430
|
+
function enumStringToValue$1(enumRef, value) {
|
|
4431
|
+
if (typeof value === 'number') {
|
|
4432
|
+
return value;
|
|
4433
|
+
}
|
|
4434
|
+
return enumRef[value];
|
|
4435
|
+
}
|
|
4436
|
+
class TimeOfDay {
|
|
4437
|
+
static fromProto(proto) {
|
|
4438
|
+
let m = new TimeOfDay();
|
|
4439
|
+
m = Object.assign(m, proto);
|
|
4440
|
+
return m;
|
|
4441
|
+
}
|
|
4442
|
+
constructor(kwargs) {
|
|
4443
|
+
if (!kwargs) {
|
|
4444
|
+
return;
|
|
4445
|
+
}
|
|
4446
|
+
Object.assign(this, kwargs);
|
|
4447
|
+
}
|
|
4448
|
+
toApiJson() {
|
|
4449
|
+
const toReturn = {};
|
|
4450
|
+
if (typeof this.hours !== 'undefined') {
|
|
4451
|
+
toReturn['hours'] = this.hours;
|
|
4452
|
+
}
|
|
4453
|
+
if (typeof this.minutes !== 'undefined') {
|
|
4454
|
+
toReturn['minutes'] = this.minutes;
|
|
4455
|
+
}
|
|
4456
|
+
if (typeof this.seconds !== 'undefined') {
|
|
4457
|
+
toReturn['seconds'] = this.seconds;
|
|
4458
|
+
}
|
|
4459
|
+
if (typeof this.nanos !== 'undefined') {
|
|
4460
|
+
toReturn['nanos'] = this.nanos;
|
|
4461
|
+
}
|
|
4462
|
+
return toReturn;
|
|
4463
|
+
}
|
|
4464
|
+
}
|
|
4465
|
+
|
|
4466
|
+
function enumStringToValue(enumRef, value) {
|
|
4467
|
+
if (typeof value === 'number') {
|
|
4468
|
+
return value;
|
|
4469
|
+
}
|
|
4470
|
+
return enumRef[value];
|
|
4471
|
+
}
|
|
4472
|
+
class DateTime {
|
|
4473
|
+
static fromProto(proto) {
|
|
4474
|
+
let m = new DateTime();
|
|
4475
|
+
m = Object.assign(m, proto);
|
|
4476
|
+
if (proto.timeZone) {
|
|
4477
|
+
m.timeZone = TimeZone.fromProto(proto.timeZone);
|
|
4478
|
+
}
|
|
4479
|
+
return m;
|
|
4480
|
+
}
|
|
4481
|
+
constructor(kwargs) {
|
|
4482
|
+
if (!kwargs) {
|
|
4483
|
+
return;
|
|
4484
|
+
}
|
|
4485
|
+
Object.assign(this, kwargs);
|
|
4486
|
+
}
|
|
4487
|
+
toApiJson() {
|
|
4488
|
+
const toReturn = {};
|
|
4489
|
+
if (typeof this.year !== 'undefined') {
|
|
4490
|
+
toReturn['year'] = this.year;
|
|
4491
|
+
}
|
|
4492
|
+
if (typeof this.month !== 'undefined') {
|
|
4493
|
+
toReturn['month'] = this.month;
|
|
4494
|
+
}
|
|
4495
|
+
if (typeof this.day !== 'undefined') {
|
|
4496
|
+
toReturn['day'] = this.day;
|
|
4497
|
+
}
|
|
4498
|
+
if (typeof this.hours !== 'undefined') {
|
|
4499
|
+
toReturn['hours'] = this.hours;
|
|
4500
|
+
}
|
|
4501
|
+
if (typeof this.minutes !== 'undefined') {
|
|
4502
|
+
toReturn['minutes'] = this.minutes;
|
|
4503
|
+
}
|
|
4504
|
+
if (typeof this.seconds !== 'undefined') {
|
|
4505
|
+
toReturn['seconds'] = this.seconds;
|
|
4506
|
+
}
|
|
4507
|
+
if (typeof this.nanos !== 'undefined') {
|
|
4508
|
+
toReturn['nanos'] = this.nanos;
|
|
4509
|
+
}
|
|
4510
|
+
if (typeof this.utcOffset !== 'undefined') {
|
|
4511
|
+
toReturn['utcOffset'] = this.utcOffset;
|
|
4512
|
+
}
|
|
4513
|
+
if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
|
|
4514
|
+
toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
|
|
4515
|
+
}
|
|
4516
|
+
return toReturn;
|
|
4517
|
+
}
|
|
4518
|
+
}
|
|
4519
|
+
class TimeZone {
|
|
4520
|
+
static fromProto(proto) {
|
|
4521
|
+
let m = new TimeZone();
|
|
4522
|
+
m = Object.assign(m, proto);
|
|
4523
|
+
return m;
|
|
4524
|
+
}
|
|
4525
|
+
constructor(kwargs) {
|
|
4526
|
+
if (!kwargs) {
|
|
4527
|
+
return;
|
|
4528
|
+
}
|
|
4529
|
+
Object.assign(this, kwargs);
|
|
4530
|
+
}
|
|
4531
|
+
toApiJson() {
|
|
4532
|
+
const toReturn = {};
|
|
4533
|
+
if (typeof this.id !== 'undefined') {
|
|
4534
|
+
toReturn['id'] = this.id;
|
|
4535
|
+
}
|
|
4536
|
+
if (typeof this.version !== 'undefined') {
|
|
4537
|
+
toReturn['version'] = this.version;
|
|
4538
|
+
}
|
|
4539
|
+
return toReturn;
|
|
4540
|
+
}
|
|
4541
|
+
}
|
|
4542
|
+
|
|
4486
4543
|
// *********************************
|
|
4487
4544
|
|
|
4488
4545
|
var _a;
|
|
@@ -4511,9 +4568,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
|
|
|
4511
4568
|
|
|
4512
4569
|
// *********************************
|
|
4513
4570
|
class MeetingSourceAPIApiService {
|
|
4514
|
-
constructor(
|
|
4515
|
-
this.
|
|
4516
|
-
this.
|
|
4571
|
+
constructor() {
|
|
4572
|
+
this.hostService = inject(HostService$1);
|
|
4573
|
+
this.http = inject(HttpClient);
|
|
4517
4574
|
this._host = this.hostService.hostWithScheme;
|
|
4518
4575
|
}
|
|
4519
4576
|
apiOptions() {
|
|
@@ -4530,18 +4587,18 @@ class MeetingSourceAPIApiService {
|
|
|
4530
4587
|
.pipe(map(resp => MeetingSourceListResponse.fromProto(resp)));
|
|
4531
4588
|
}
|
|
4532
4589
|
}
|
|
4533
|
-
MeetingSourceAPIApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, deps: [
|
|
4590
|
+
MeetingSourceAPIApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4534
4591
|
MeetingSourceAPIApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, providedIn: 'root' });
|
|
4535
4592
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingSourceAPIApiService, decorators: [{
|
|
4536
4593
|
type: Injectable,
|
|
4537
4594
|
args: [{ providedIn: 'root' }]
|
|
4538
|
-
}]
|
|
4595
|
+
}] });
|
|
4539
4596
|
|
|
4540
4597
|
// *********************************
|
|
4541
4598
|
class ZoomApiService {
|
|
4542
|
-
constructor(
|
|
4543
|
-
this.
|
|
4544
|
-
this.
|
|
4599
|
+
constructor() {
|
|
4600
|
+
this.hostService = inject(HostService$1);
|
|
4601
|
+
this.http = inject(HttpClient);
|
|
4545
4602
|
this._host = this.hostService.hostWithScheme;
|
|
4546
4603
|
}
|
|
4547
4604
|
apiOptions() {
|
|
@@ -4558,18 +4615,18 @@ class ZoomApiService {
|
|
|
4558
4615
|
.pipe(map(resp => CreateZoomMeetingResponse.fromProto(resp)));
|
|
4559
4616
|
}
|
|
4560
4617
|
}
|
|
4561
|
-
ZoomApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, deps: [
|
|
4618
|
+
ZoomApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4562
4619
|
ZoomApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, providedIn: 'root' });
|
|
4563
4620
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, decorators: [{
|
|
4564
4621
|
type: Injectable,
|
|
4565
4622
|
args: [{ providedIn: 'root' }]
|
|
4566
|
-
}]
|
|
4623
|
+
}] });
|
|
4567
4624
|
|
|
4568
4625
|
// *********************************
|
|
4569
4626
|
class GoogleMeetApiService {
|
|
4570
|
-
constructor(
|
|
4571
|
-
this.
|
|
4572
|
-
this.
|
|
4627
|
+
constructor() {
|
|
4628
|
+
this.hostService = inject(HostService$1);
|
|
4629
|
+
this.http = inject(HttpClient);
|
|
4573
4630
|
this._host = this.hostService.hostWithScheme;
|
|
4574
4631
|
}
|
|
4575
4632
|
apiOptions() {
|
|
@@ -4586,12 +4643,12 @@ class GoogleMeetApiService {
|
|
|
4586
4643
|
.pipe(map(resp => GoogleMeetCreateMeetingResponse.fromProto(resp)));
|
|
4587
4644
|
}
|
|
4588
4645
|
}
|
|
4589
|
-
GoogleMeetApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, deps: [
|
|
4646
|
+
GoogleMeetApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4590
4647
|
GoogleMeetApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, providedIn: 'root' });
|
|
4591
4648
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GoogleMeetApiService, decorators: [{
|
|
4592
4649
|
type: Injectable,
|
|
4593
4650
|
args: [{ providedIn: 'root' }]
|
|
4594
|
-
}]
|
|
4651
|
+
}] });
|
|
4595
4652
|
|
|
4596
4653
|
function generateMeetingPassword() {
|
|
4597
4654
|
const zoomMaxLength = 10;
|
|
@@ -4786,7 +4843,13 @@ function getBookingUrlImplementation(req) {
|
|
|
4786
4843
|
const domain = getDomainFromEnvironment(req.environment);
|
|
4787
4844
|
const meetingType = req.meetingTypeSlug || req.meetingTypeId || '30-minutes';
|
|
4788
4845
|
const calendarSlug = req.calendarSlug || req.calendarId;
|
|
4789
|
-
|
|
4846
|
+
let url = `https://${domain}/book/${calendarSlug}/${meetingType}`;
|
|
4847
|
+
if (calendarSlug.startsWith("GRP-")) {
|
|
4848
|
+
url = `https://${domain}/group/${calendarSlug}/${meetingType}`;
|
|
4849
|
+
}
|
|
4850
|
+
if (calendarSlug.startsWith("SVS-")) {
|
|
4851
|
+
url = `https://${domain}/service/${calendarSlug}/${meetingType}`;
|
|
4852
|
+
}
|
|
4790
4853
|
if (!req.metadata) {
|
|
4791
4854
|
return url;
|
|
4792
4855
|
}
|
|
@@ -4861,6 +4924,7 @@ function MeetingTypeFromApi(req) {
|
|
|
4861
4924
|
isPinned: req.meetingTypeApi.isPinned || false,
|
|
4862
4925
|
CalendarType: req.meetingTypeApi.calendarType || '',
|
|
4863
4926
|
hostUsers: req.meetingTypeApi.hostUsers || [],
|
|
4927
|
+
teamName: req.meetingTypeApi.teamName || ''
|
|
4864
4928
|
};
|
|
4865
4929
|
}
|
|
4866
4930
|
function MeetingTypeToApi(req) {
|
|
@@ -4889,7 +4953,8 @@ function MeetingTypeToApi(req) {
|
|
|
4889
4953
|
isClientChoice: m.isClientChoice || undefined,
|
|
4890
4954
|
isPinned: m.isPinned || undefined,
|
|
4891
4955
|
calendarType: m.CalendarType || undefined,
|
|
4892
|
-
hostUsers: m.hostUsers || undefined
|
|
4956
|
+
hostUsers: m.hostUsers || undefined,
|
|
4957
|
+
teamName: m.teamName || undefined
|
|
4893
4958
|
};
|
|
4894
4959
|
}
|
|
4895
4960
|
|
|
@@ -4992,9 +5057,9 @@ class PagedResponse {
|
|
|
4992
5057
|
|
|
4993
5058
|
// *********************************
|
|
4994
5059
|
class MeetingGuestApiService {
|
|
4995
|
-
constructor(
|
|
4996
|
-
this.
|
|
4997
|
-
this.
|
|
5060
|
+
constructor() {
|
|
5061
|
+
this.hostService = inject(HostService$1);
|
|
5062
|
+
this.http = inject(HttpClient);
|
|
4998
5063
|
this._host = this.hostService.hostWithScheme;
|
|
4999
5064
|
}
|
|
5000
5065
|
apiOptions() {
|
|
@@ -5048,24 +5113,29 @@ class MeetingGuestApiService {
|
|
|
5048
5113
|
return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetHost", request.toApiJson(), this.apiOptions())
|
|
5049
5114
|
.pipe(map(resp => GetHostResponse.fromProto(resp)));
|
|
5050
5115
|
}
|
|
5116
|
+
getGroup(r) {
|
|
5117
|
+
const request = (r.toApiJson) ? r : new GetGroupRequest(r);
|
|
5118
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetGroup", request.toApiJson(), this.apiOptions())
|
|
5119
|
+
.pipe(map(resp => GetGroupResponse.fromProto(resp)));
|
|
5120
|
+
}
|
|
5051
5121
|
isHostConfigured(r) {
|
|
5052
5122
|
const request = (r.toApiJson) ? r : new GuestIsHostConfiguredRequest(r);
|
|
5053
5123
|
return this.http.post(this._host + "/meetings.v1.MeetingGuest/IsHostConfigured", request.toApiJson(), this.apiOptions())
|
|
5054
5124
|
.pipe(map(resp => GuestIsHostConfiguredResponse.fromProto(resp)));
|
|
5055
5125
|
}
|
|
5056
5126
|
}
|
|
5057
|
-
MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, deps: [
|
|
5127
|
+
MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5058
5128
|
MeetingGuestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, providedIn: 'root' });
|
|
5059
5129
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, decorators: [{
|
|
5060
5130
|
type: Injectable,
|
|
5061
5131
|
args: [{ providedIn: 'root' }]
|
|
5062
|
-
}]
|
|
5132
|
+
}] });
|
|
5063
5133
|
|
|
5064
5134
|
// *********************************
|
|
5065
5135
|
class MeetingHostApiService {
|
|
5066
|
-
constructor(
|
|
5067
|
-
this.
|
|
5068
|
-
this.
|
|
5136
|
+
constructor() {
|
|
5137
|
+
this.hostService = inject(HostService$1);
|
|
5138
|
+
this.http = inject(HttpClient);
|
|
5069
5139
|
this._host = this.hostService.hostWithScheme;
|
|
5070
5140
|
}
|
|
5071
5141
|
apiOptions() {
|
|
@@ -5256,12 +5326,12 @@ class MeetingHostApiService {
|
|
|
5256
5326
|
.pipe(map(resp => ListServicesResponse.fromProto(resp)));
|
|
5257
5327
|
}
|
|
5258
5328
|
}
|
|
5259
|
-
MeetingHostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, deps: [
|
|
5329
|
+
MeetingHostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5260
5330
|
MeetingHostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, providedIn: 'root' });
|
|
5261
5331
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, decorators: [{
|
|
5262
5332
|
type: Injectable,
|
|
5263
5333
|
args: [{ providedIn: 'root' }]
|
|
5264
|
-
}]
|
|
5334
|
+
}] });
|
|
5265
5335
|
|
|
5266
5336
|
// *********************************
|
|
5267
5337
|
|
|
@@ -5432,7 +5502,7 @@ function GroupFromApi(req) {
|
|
|
5432
5502
|
var _a;
|
|
5433
5503
|
const groupId = req.groupApi.id || '';
|
|
5434
5504
|
const groupSlug = req.groupApi.slug || '';
|
|
5435
|
-
const bookingUrl = ((_a = req === null || req === void 0 ? void 0 : req.groupApi) === null || _a === void 0 ? void 0 : _a.bookingUrl) || getBookingURL(req.environment, groupSlug, groupId
|
|
5505
|
+
const bookingUrl = ((_a = req === null || req === void 0 ? void 0 : req.groupApi) === null || _a === void 0 ? void 0 : _a.bookingUrl) || getBookingURL(req.environment, groupSlug, groupId);
|
|
5436
5506
|
return {
|
|
5437
5507
|
id: groupId,
|
|
5438
5508
|
name: req.groupApi.name || '',
|
|
@@ -5444,13 +5514,13 @@ function GroupFromApi(req) {
|
|
|
5444
5514
|
bookingUrl: bookingUrl
|
|
5445
5515
|
};
|
|
5446
5516
|
}
|
|
5447
|
-
function getBookingURL(environment, slug,
|
|
5517
|
+
function getBookingURL(environment, slug, calendarId) {
|
|
5448
5518
|
let bookingUrl = '';
|
|
5449
|
-
if (slug != ''
|
|
5519
|
+
if (slug != '') {
|
|
5450
5520
|
bookingUrl = getBookingUrlImplementation({
|
|
5451
5521
|
environment: environment,
|
|
5452
5522
|
calendarId: calendarId,
|
|
5453
|
-
meetingTypeSlug: slug
|
|
5523
|
+
meetingTypeSlug: slug,
|
|
5454
5524
|
});
|
|
5455
5525
|
}
|
|
5456
5526
|
return bookingUrl;
|
|
@@ -5459,7 +5529,7 @@ function ServiceFromApi(req) {
|
|
|
5459
5529
|
var _a;
|
|
5460
5530
|
const serviceId = req.serviceApi.id || '';
|
|
5461
5531
|
const serviceSlug = req.serviceApi.slug || '';
|
|
5462
|
-
const bookingUrl = ((_a = req === null || req === void 0 ? void 0 : req.serviceApi) === null || _a === void 0 ? void 0 : _a.bookingUrl) || getBookingURL(req.environment, serviceSlug, serviceId
|
|
5532
|
+
const bookingUrl = ((_a = req === null || req === void 0 ? void 0 : req.serviceApi) === null || _a === void 0 ? void 0 : _a.bookingUrl) || getBookingURL(req.environment, serviceSlug, serviceId);
|
|
5463
5533
|
return {
|
|
5464
5534
|
id: req.serviceApi.id || '',
|
|
5465
5535
|
name: req.serviceApi.name || '',
|
|
@@ -5539,6 +5609,9 @@ class GuestService {
|
|
|
5539
5609
|
isHostConfigured(req) {
|
|
5540
5610
|
return this.guestAPIService.isHostConfigured(req).pipe(map((resp) => resp.isConfigured));
|
|
5541
5611
|
}
|
|
5612
|
+
getGroup(req) {
|
|
5613
|
+
return this.guestAPIService.getGroup(req);
|
|
5614
|
+
}
|
|
5542
5615
|
}
|
|
5543
5616
|
GuestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GuestService, deps: [{ token: MeetingGuestApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5544
5617
|
GuestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GuestService, providedIn: 'root' });
|
|
@@ -5851,7 +5924,7 @@ class HostService {
|
|
|
5851
5924
|
}).pipe(mapTo(undefined));
|
|
5852
5925
|
}
|
|
5853
5926
|
deleteService(req) {
|
|
5854
|
-
return this.hostAPIService.deleteService({ id: req.id }).pipe(mapTo(undefined));
|
|
5927
|
+
return this.hostAPIService.deleteService({ id: req.id, hostId: req.hostId }).pipe(mapTo(undefined));
|
|
5855
5928
|
}
|
|
5856
5929
|
listServices(req) {
|
|
5857
5930
|
return this.hostAPIService.listServices({ hostId: req.hostId }).pipe(map(res => {
|
|
@@ -5885,7 +5958,7 @@ class HostService {
|
|
|
5885
5958
|
}).pipe(mapTo(undefined));
|
|
5886
5959
|
}
|
|
5887
5960
|
deleteGroup(req) {
|
|
5888
|
-
return this.hostAPIService.deleteGroup({ id: req.id }).pipe(mapTo(undefined));
|
|
5961
|
+
return this.hostAPIService.deleteGroup({ id: req.id, hostId: req.hostId }).pipe(mapTo(undefined));
|
|
5889
5962
|
}
|
|
5890
5963
|
listGroups(req) {
|
|
5891
5964
|
return this.hostAPIService.listGroups({ hostId: req.hostId }).pipe(map(res => {
|