@vendasta/meetings 0.87.0 → 0.88.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/interfaces/groups-and-services.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-host.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-source.interface.mjs +1 -1
- package/esm2020/lib/_internal/meeting-host.api.service.mjs +38 -2
- package/esm2020/lib/_internal/objects/groups-and-services.mjs +118 -0
- package/esm2020/lib/_internal/objects/index.mjs +3 -2
- package/esm2020/lib/_internal/objects/meeting-host.mjs +324 -23
- package/esm2020/lib/_internal/objects/meeting-source.mjs +1 -1
- package/esm2020/lib/host/host.service.mjs +70 -2
- package/esm2020/lib/shared/groups-and-services.mjs +69 -0
- package/esm2020/lib/shared/index.mjs +2 -1
- package/fesm2015/vendasta-meetings.mjs +635 -44
- package/fesm2015/vendasta-meetings.mjs.map +1 -1
- package/fesm2020/vendasta-meetings.mjs +635 -44
- package/fesm2020/vendasta-meetings.mjs.map +1 -1
- package/lib/_internal/interfaces/groups-and-services.interface.d.ts +24 -0
- package/lib/_internal/interfaces/index.d.ts +2 -1
- package/lib/_internal/interfaces/meeting-host.interface.d.ts +55 -8
- package/lib/_internal/meeting-host.api.service.d.ts +10 -2
- package/lib/_internal/objects/groups-and-services.d.ts +35 -0
- package/lib/_internal/objects/index.d.ts +2 -1
- package/lib/_internal/objects/meeting-host.d.ts +102 -19
- package/lib/host/host.service.d.ts +35 -1
- package/lib/shared/groups-and-services.d.ts +39 -0
- package/lib/shared/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -132,7 +132,7 @@ var DayOfWeek;
|
|
|
132
132
|
|
|
133
133
|
// *********************************
|
|
134
134
|
|
|
135
|
-
function enumStringToValue$
|
|
135
|
+
function enumStringToValue$b(enumRef, value) {
|
|
136
136
|
if (typeof value === 'number') {
|
|
137
137
|
return value;
|
|
138
138
|
}
|
|
@@ -143,7 +143,7 @@ class CreateZoomMeetingRequest {
|
|
|
143
143
|
let m = new CreateZoomMeetingRequest();
|
|
144
144
|
m = Object.assign(m, proto);
|
|
145
145
|
if (proto.type) {
|
|
146
|
-
m.type = enumStringToValue$
|
|
146
|
+
m.type = enumStringToValue$b(ZoomMeetingType, proto.type);
|
|
147
147
|
}
|
|
148
148
|
if (proto.duration) {
|
|
149
149
|
m.duration = parseInt(proto.duration, 10);
|
|
@@ -211,7 +211,7 @@ class CreateZoomMeetingResponse {
|
|
|
211
211
|
m.meetingId = parseInt(proto.meetingId, 10);
|
|
212
212
|
}
|
|
213
213
|
if (proto.type) {
|
|
214
|
-
m.type = enumStringToValue$
|
|
214
|
+
m.type = enumStringToValue$b(ZoomMeetingType, proto.type);
|
|
215
215
|
}
|
|
216
216
|
if (proto.duration) {
|
|
217
217
|
m.duration = parseInt(proto.duration, 10);
|
|
@@ -303,7 +303,7 @@ class ZoomMeetingRecurrence {
|
|
|
303
303
|
let m = new ZoomMeetingRecurrence();
|
|
304
304
|
m = Object.assign(m, proto);
|
|
305
305
|
if (proto.type) {
|
|
306
|
-
m.type = enumStringToValue$
|
|
306
|
+
m.type = enumStringToValue$b(ZoomMeetingRecurrenceType, proto.type);
|
|
307
307
|
}
|
|
308
308
|
if (proto.repeatInterval) {
|
|
309
309
|
m.repeatInterval = parseInt(proto.repeatInterval, 10);
|
|
@@ -312,10 +312,10 @@ class ZoomMeetingRecurrence {
|
|
|
312
312
|
m.monthlyDay = parseInt(proto.monthlyDay, 10);
|
|
313
313
|
}
|
|
314
314
|
if (proto.monthlyWeek) {
|
|
315
|
-
m.monthlyWeek = enumStringToValue$
|
|
315
|
+
m.monthlyWeek = enumStringToValue$b(ZoomMonthlyWeek, proto.monthlyWeek);
|
|
316
316
|
}
|
|
317
317
|
if (proto.monthlyWeekDay) {
|
|
318
|
-
m.monthlyWeekDay = enumStringToValue$
|
|
318
|
+
m.monthlyWeekDay = enumStringToValue$b(ZoomMonthlyWeekDay, proto.monthlyWeekDay);
|
|
319
319
|
}
|
|
320
320
|
if (proto.endTimes) {
|
|
321
321
|
m.endTimes = parseInt(proto.endTimes, 10);
|
|
@@ -362,10 +362,10 @@ class ZoomMeetingSettings {
|
|
|
362
362
|
let m = new ZoomMeetingSettings();
|
|
363
363
|
m = Object.assign(m, proto);
|
|
364
364
|
if (proto.approvalType) {
|
|
365
|
-
m.approvalType = enumStringToValue$
|
|
365
|
+
m.approvalType = enumStringToValue$b(ZoomApprovalType, proto.approvalType);
|
|
366
366
|
}
|
|
367
367
|
if (proto.registrationType) {
|
|
368
|
-
m.registrationType = enumStringToValue$
|
|
368
|
+
m.registrationType = enumStringToValue$b(ZoomRegistrationType, proto.registrationType);
|
|
369
369
|
}
|
|
370
370
|
return m;
|
|
371
371
|
}
|
|
@@ -508,7 +508,7 @@ class ZoomOccurrence {
|
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
510
|
|
|
511
|
-
function enumStringToValue$
|
|
511
|
+
function enumStringToValue$a(enumRef, value) {
|
|
512
512
|
if (typeof value === 'number') {
|
|
513
513
|
return value;
|
|
514
514
|
}
|
|
@@ -1047,7 +1047,7 @@ class GoogleMeetMeetingReminders {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
1049
|
|
|
1050
|
-
function enumStringToValue$
|
|
1050
|
+
function enumStringToValue$9(enumRef, value) {
|
|
1051
1051
|
if (typeof value === 'number') {
|
|
1052
1052
|
return value;
|
|
1053
1053
|
}
|
|
@@ -1058,10 +1058,10 @@ class MeetingSourceInfo {
|
|
|
1058
1058
|
let m = new MeetingSourceInfo();
|
|
1059
1059
|
m = Object.assign(m, proto);
|
|
1060
1060
|
if (proto.source) {
|
|
1061
|
-
m.source = enumStringToValue$
|
|
1061
|
+
m.source = enumStringToValue$9(MeetingSource, proto.source);
|
|
1062
1062
|
}
|
|
1063
1063
|
if (proto.status) {
|
|
1064
|
-
m.status = enumStringToValue$
|
|
1064
|
+
m.status = enumStringToValue$9(MeetingSourceStatus, proto.status);
|
|
1065
1065
|
}
|
|
1066
1066
|
return m;
|
|
1067
1067
|
}
|
|
@@ -1145,7 +1145,7 @@ class MeetingSourceQuery {
|
|
|
1145
1145
|
let m = new MeetingSourceQuery();
|
|
1146
1146
|
m = Object.assign(m, proto);
|
|
1147
1147
|
if (proto.source) {
|
|
1148
|
-
m.source = enumStringToValue$
|
|
1148
|
+
m.source = enumStringToValue$9(MeetingSource, proto.source);
|
|
1149
1149
|
}
|
|
1150
1150
|
return m;
|
|
1151
1151
|
}
|
|
@@ -1170,7 +1170,7 @@ class MeetingSourceQuery {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
}
|
|
1172
1172
|
|
|
1173
|
-
function enumStringToValue$
|
|
1173
|
+
function enumStringToValue$8(enumRef, value) {
|
|
1174
1174
|
if (typeof value === 'number') {
|
|
1175
1175
|
return value;
|
|
1176
1176
|
}
|
|
@@ -1181,7 +1181,7 @@ class Answer {
|
|
|
1181
1181
|
let m = new Answer();
|
|
1182
1182
|
m = Object.assign(m, proto);
|
|
1183
1183
|
if (proto.type) {
|
|
1184
|
-
m.type = enumStringToValue$
|
|
1184
|
+
m.type = enumStringToValue$8(FormFieldType, proto.type);
|
|
1185
1185
|
}
|
|
1186
1186
|
return m;
|
|
1187
1187
|
}
|
|
@@ -1323,7 +1323,7 @@ class Calendar {
|
|
|
1323
1323
|
m.applicationContext = Object.keys(proto.applicationContext).reduce((obj, k) => { obj[k] = proto.applicationContext[k]; return obj; }, {});
|
|
1324
1324
|
}
|
|
1325
1325
|
if (proto.calendarType) {
|
|
1326
|
-
m.calendarType = enumStringToValue$
|
|
1326
|
+
m.calendarType = enumStringToValue$8(CalendarType, proto.calendarType);
|
|
1327
1327
|
}
|
|
1328
1328
|
return m;
|
|
1329
1329
|
}
|
|
@@ -1521,7 +1521,7 @@ class Preferences {
|
|
|
1521
1521
|
m.timezone = TimeZone.fromProto(proto.timezone);
|
|
1522
1522
|
}
|
|
1523
1523
|
if (proto.meetingIntegration) {
|
|
1524
|
-
m.meetingIntegration = enumStringToValue$
|
|
1524
|
+
m.meetingIntegration = enumStringToValue$8(MeetingSource, proto.meetingIntegration);
|
|
1525
1525
|
}
|
|
1526
1526
|
if (proto.availabilityIncrement) {
|
|
1527
1527
|
m.availabilityIncrement = parseInt(proto.availabilityIncrement, 10);
|
|
@@ -1593,7 +1593,7 @@ class TimeRange {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
1595
|
|
|
1596
|
-
function enumStringToValue$
|
|
1596
|
+
function enumStringToValue$7(enumRef, value) {
|
|
1597
1597
|
if (typeof value === 'number') {
|
|
1598
1598
|
return value;
|
|
1599
1599
|
}
|
|
@@ -1604,7 +1604,7 @@ class Field {
|
|
|
1604
1604
|
let m = new Field();
|
|
1605
1605
|
m = Object.assign(m, proto);
|
|
1606
1606
|
if (proto.type) {
|
|
1607
|
-
m.type = enumStringToValue$
|
|
1607
|
+
m.type = enumStringToValue$7(FormFieldType, proto.type);
|
|
1608
1608
|
}
|
|
1609
1609
|
return m;
|
|
1610
1610
|
}
|
|
@@ -1753,7 +1753,7 @@ class MeetingType {
|
|
|
1753
1753
|
}
|
|
1754
1754
|
}
|
|
1755
1755
|
|
|
1756
|
-
function enumStringToValue$
|
|
1756
|
+
function enumStringToValue$6(enumRef, value) {
|
|
1757
1757
|
if (typeof value === 'number') {
|
|
1758
1758
|
return value;
|
|
1759
1759
|
}
|
|
@@ -1789,7 +1789,7 @@ class DateRange {
|
|
|
1789
1789
|
}
|
|
1790
1790
|
}
|
|
1791
1791
|
|
|
1792
|
-
function enumStringToValue$
|
|
1792
|
+
function enumStringToValue$5(enumRef, value) {
|
|
1793
1793
|
if (typeof value === 'number') {
|
|
1794
1794
|
return value;
|
|
1795
1795
|
}
|
|
@@ -2311,7 +2311,7 @@ class BookMeetingRequestMetadataEntry {
|
|
|
2311
2311
|
}
|
|
2312
2312
|
}
|
|
2313
2313
|
|
|
2314
|
-
function enumStringToValue$
|
|
2314
|
+
function enumStringToValue$4(enumRef, value) {
|
|
2315
2315
|
if (typeof value === 'number') {
|
|
2316
2316
|
return value;
|
|
2317
2317
|
}
|
|
@@ -2338,15 +2338,133 @@ class FieldMask {
|
|
|
2338
2338
|
}
|
|
2339
2339
|
}
|
|
2340
2340
|
|
|
2341
|
+
function enumStringToValue$3(enumRef, value) {
|
|
2342
|
+
if (typeof value === 'number') {
|
|
2343
|
+
return value;
|
|
2344
|
+
}
|
|
2345
|
+
return enumRef[value];
|
|
2346
|
+
}
|
|
2347
|
+
class EventGroupAndServiceAssociations {
|
|
2348
|
+
static fromProto(proto) {
|
|
2349
|
+
let m = new EventGroupAndServiceAssociations();
|
|
2350
|
+
m = Object.assign(m, proto);
|
|
2351
|
+
return m;
|
|
2352
|
+
}
|
|
2353
|
+
constructor(kwargs) {
|
|
2354
|
+
if (!kwargs) {
|
|
2355
|
+
return;
|
|
2356
|
+
}
|
|
2357
|
+
Object.assign(this, kwargs);
|
|
2358
|
+
}
|
|
2359
|
+
toApiJson() {
|
|
2360
|
+
const toReturn = {};
|
|
2361
|
+
if (typeof this.id !== 'undefined') {
|
|
2362
|
+
toReturn['id'] = this.id;
|
|
2363
|
+
}
|
|
2364
|
+
if (typeof this.name !== 'undefined') {
|
|
2365
|
+
toReturn['name'] = this.name;
|
|
2366
|
+
}
|
|
2367
|
+
if (typeof this.eventType !== 'undefined') {
|
|
2368
|
+
toReturn['eventType'] = this.eventType;
|
|
2369
|
+
}
|
|
2370
|
+
if (typeof this.identifier !== 'undefined') {
|
|
2371
|
+
toReturn['identifier'] = this.identifier;
|
|
2372
|
+
}
|
|
2373
|
+
if (typeof this.isEditable !== 'undefined') {
|
|
2374
|
+
toReturn['isEditable'] = this.isEditable;
|
|
2375
|
+
}
|
|
2376
|
+
if (typeof this.creatorUserName !== 'undefined') {
|
|
2377
|
+
toReturn['creatorUserName'] = this.creatorUserName;
|
|
2378
|
+
}
|
|
2379
|
+
return toReturn;
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
class Group {
|
|
2383
|
+
static fromProto(proto) {
|
|
2384
|
+
let m = new Group();
|
|
2385
|
+
m = Object.assign(m, proto);
|
|
2386
|
+
if (proto.associations) {
|
|
2387
|
+
m.associations = proto.associations.map(EventGroupAndServiceAssociations.fromProto);
|
|
2388
|
+
}
|
|
2389
|
+
return m;
|
|
2390
|
+
}
|
|
2391
|
+
constructor(kwargs) {
|
|
2392
|
+
if (!kwargs) {
|
|
2393
|
+
return;
|
|
2394
|
+
}
|
|
2395
|
+
Object.assign(this, kwargs);
|
|
2396
|
+
}
|
|
2397
|
+
toApiJson() {
|
|
2398
|
+
const toReturn = {};
|
|
2399
|
+
if (typeof this.id !== 'undefined') {
|
|
2400
|
+
toReturn['id'] = this.id;
|
|
2401
|
+
}
|
|
2402
|
+
if (typeof this.name !== 'undefined') {
|
|
2403
|
+
toReturn['name'] = this.name;
|
|
2404
|
+
}
|
|
2405
|
+
if (typeof this.description !== 'undefined') {
|
|
2406
|
+
toReturn['description'] = this.description;
|
|
2407
|
+
}
|
|
2408
|
+
if (typeof this.slug !== 'undefined') {
|
|
2409
|
+
toReturn['slug'] = this.slug;
|
|
2410
|
+
}
|
|
2411
|
+
if (typeof this.isPinned !== 'undefined') {
|
|
2412
|
+
toReturn['isPinned'] = this.isPinned;
|
|
2413
|
+
}
|
|
2414
|
+
if (typeof this.associations !== 'undefined' && this.associations !== null) {
|
|
2415
|
+
toReturn['associations'] = 'toApiJson' in this.associations ? this.associations.toApiJson() : this.associations;
|
|
2416
|
+
}
|
|
2417
|
+
return toReturn;
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
class Service {
|
|
2421
|
+
static fromProto(proto) {
|
|
2422
|
+
let m = new Service();
|
|
2423
|
+
m = Object.assign(m, proto);
|
|
2424
|
+
if (proto.associations) {
|
|
2425
|
+
m.associations = proto.associations.map(EventGroupAndServiceAssociations.fromProto);
|
|
2426
|
+
}
|
|
2427
|
+
return m;
|
|
2428
|
+
}
|
|
2429
|
+
constructor(kwargs) {
|
|
2430
|
+
if (!kwargs) {
|
|
2431
|
+
return;
|
|
2432
|
+
}
|
|
2433
|
+
Object.assign(this, kwargs);
|
|
2434
|
+
}
|
|
2435
|
+
toApiJson() {
|
|
2436
|
+
const toReturn = {};
|
|
2437
|
+
if (typeof this.id !== 'undefined') {
|
|
2438
|
+
toReturn['id'] = this.id;
|
|
2439
|
+
}
|
|
2440
|
+
if (typeof this.name !== 'undefined') {
|
|
2441
|
+
toReturn['name'] = this.name;
|
|
2442
|
+
}
|
|
2443
|
+
if (typeof this.description !== 'undefined') {
|
|
2444
|
+
toReturn['description'] = this.description;
|
|
2445
|
+
}
|
|
2446
|
+
if (typeof this.slug !== 'undefined') {
|
|
2447
|
+
toReturn['slug'] = this.slug;
|
|
2448
|
+
}
|
|
2449
|
+
if (typeof this.isPinned !== 'undefined') {
|
|
2450
|
+
toReturn['isPinned'] = this.isPinned;
|
|
2451
|
+
}
|
|
2452
|
+
if (typeof this.associations !== 'undefined' && this.associations !== null) {
|
|
2453
|
+
toReturn['associations'] = 'toApiJson' in this.associations ? this.associations.toApiJson() : this.associations;
|
|
2454
|
+
}
|
|
2455
|
+
return toReturn;
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2341
2459
|
function enumStringToValue$2(enumRef, value) {
|
|
2342
2460
|
if (typeof value === 'number') {
|
|
2343
2461
|
return value;
|
|
2344
2462
|
}
|
|
2345
2463
|
return enumRef[value];
|
|
2346
2464
|
}
|
|
2347
|
-
class
|
|
2465
|
+
class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
|
|
2348
2466
|
static fromProto(proto) {
|
|
2349
|
-
let m = new
|
|
2467
|
+
let m = new IsCalendarConfiguredRequestApplicationContextPropertiesEntry();
|
|
2350
2468
|
m = Object.assign(m, proto);
|
|
2351
2469
|
return m;
|
|
2352
2470
|
}
|
|
@@ -2390,9 +2508,9 @@ class BuildHostIdRequestApplicationContextPropertiesEntry {
|
|
|
2390
2508
|
return toReturn;
|
|
2391
2509
|
}
|
|
2392
2510
|
}
|
|
2393
|
-
class
|
|
2511
|
+
class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
|
|
2394
2512
|
static fromProto(proto) {
|
|
2395
|
-
let m = new
|
|
2513
|
+
let m = new EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry();
|
|
2396
2514
|
m = Object.assign(m, proto);
|
|
2397
2515
|
return m;
|
|
2398
2516
|
}
|
|
@@ -2649,6 +2767,58 @@ class CreateDefaultMeetingTypesRequest {
|
|
|
2649
2767
|
return toReturn;
|
|
2650
2768
|
}
|
|
2651
2769
|
}
|
|
2770
|
+
class CreateGroupRequest {
|
|
2771
|
+
static fromProto(proto) {
|
|
2772
|
+
let m = new CreateGroupRequest();
|
|
2773
|
+
m = Object.assign(m, proto);
|
|
2774
|
+
if (proto.group) {
|
|
2775
|
+
m.group = Group.fromProto(proto.group);
|
|
2776
|
+
}
|
|
2777
|
+
if (proto.fieldMask) {
|
|
2778
|
+
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
2779
|
+
}
|
|
2780
|
+
return m;
|
|
2781
|
+
}
|
|
2782
|
+
constructor(kwargs) {
|
|
2783
|
+
if (!kwargs) {
|
|
2784
|
+
return;
|
|
2785
|
+
}
|
|
2786
|
+
Object.assign(this, kwargs);
|
|
2787
|
+
}
|
|
2788
|
+
toApiJson() {
|
|
2789
|
+
const toReturn = {};
|
|
2790
|
+
if (typeof this.group !== 'undefined' && this.group !== null) {
|
|
2791
|
+
toReturn['group'] = 'toApiJson' in this.group ? this.group.toApiJson() : this.group;
|
|
2792
|
+
}
|
|
2793
|
+
if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
|
|
2794
|
+
toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
|
|
2795
|
+
}
|
|
2796
|
+
if (typeof this.hostId !== 'undefined') {
|
|
2797
|
+
toReturn['hostId'] = this.hostId;
|
|
2798
|
+
}
|
|
2799
|
+
return toReturn;
|
|
2800
|
+
}
|
|
2801
|
+
}
|
|
2802
|
+
class CreateGroupResponse {
|
|
2803
|
+
static fromProto(proto) {
|
|
2804
|
+
let m = new CreateGroupResponse();
|
|
2805
|
+
m = Object.assign(m, proto);
|
|
2806
|
+
return m;
|
|
2807
|
+
}
|
|
2808
|
+
constructor(kwargs) {
|
|
2809
|
+
if (!kwargs) {
|
|
2810
|
+
return;
|
|
2811
|
+
}
|
|
2812
|
+
Object.assign(this, kwargs);
|
|
2813
|
+
}
|
|
2814
|
+
toApiJson() {
|
|
2815
|
+
const toReturn = {};
|
|
2816
|
+
if (typeof this.id !== 'undefined') {
|
|
2817
|
+
toReturn['id'] = this.id;
|
|
2818
|
+
}
|
|
2819
|
+
return toReturn;
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2652
2822
|
class CreateMeetingTypeRequest {
|
|
2653
2823
|
static fromProto(proto) {
|
|
2654
2824
|
let m = new CreateMeetingTypeRequest();
|
|
@@ -2701,6 +2871,58 @@ class CreateMeetingTypeResponse {
|
|
|
2701
2871
|
return toReturn;
|
|
2702
2872
|
}
|
|
2703
2873
|
}
|
|
2874
|
+
class CreateServiceRequest {
|
|
2875
|
+
static fromProto(proto) {
|
|
2876
|
+
let m = new CreateServiceRequest();
|
|
2877
|
+
m = Object.assign(m, proto);
|
|
2878
|
+
if (proto.service) {
|
|
2879
|
+
m.service = Service.fromProto(proto.service);
|
|
2880
|
+
}
|
|
2881
|
+
if (proto.fieldMask) {
|
|
2882
|
+
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
2883
|
+
}
|
|
2884
|
+
return m;
|
|
2885
|
+
}
|
|
2886
|
+
constructor(kwargs) {
|
|
2887
|
+
if (!kwargs) {
|
|
2888
|
+
return;
|
|
2889
|
+
}
|
|
2890
|
+
Object.assign(this, kwargs);
|
|
2891
|
+
}
|
|
2892
|
+
toApiJson() {
|
|
2893
|
+
const toReturn = {};
|
|
2894
|
+
if (typeof this.service !== 'undefined' && this.service !== null) {
|
|
2895
|
+
toReturn['service'] = 'toApiJson' in this.service ? this.service.toApiJson() : this.service;
|
|
2896
|
+
}
|
|
2897
|
+
if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
|
|
2898
|
+
toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
|
|
2899
|
+
}
|
|
2900
|
+
if (typeof this.hostId !== 'undefined') {
|
|
2901
|
+
toReturn['hostId'] = this.hostId;
|
|
2902
|
+
}
|
|
2903
|
+
return toReturn;
|
|
2904
|
+
}
|
|
2905
|
+
}
|
|
2906
|
+
class CreateServiceResponse {
|
|
2907
|
+
static fromProto(proto) {
|
|
2908
|
+
let m = new CreateServiceResponse();
|
|
2909
|
+
m = Object.assign(m, proto);
|
|
2910
|
+
return m;
|
|
2911
|
+
}
|
|
2912
|
+
constructor(kwargs) {
|
|
2913
|
+
if (!kwargs) {
|
|
2914
|
+
return;
|
|
2915
|
+
}
|
|
2916
|
+
Object.assign(this, kwargs);
|
|
2917
|
+
}
|
|
2918
|
+
toApiJson() {
|
|
2919
|
+
const toReturn = {};
|
|
2920
|
+
if (typeof this.id !== 'undefined') {
|
|
2921
|
+
toReturn['id'] = this.id;
|
|
2922
|
+
}
|
|
2923
|
+
return toReturn;
|
|
2924
|
+
}
|
|
2925
|
+
}
|
|
2704
2926
|
class DeleteAvailabilityRequest {
|
|
2705
2927
|
static fromProto(proto) {
|
|
2706
2928
|
let m = new DeleteAvailabilityRequest();
|
|
@@ -2718,6 +2940,26 @@ class DeleteAvailabilityRequest {
|
|
|
2718
2940
|
return toReturn;
|
|
2719
2941
|
}
|
|
2720
2942
|
}
|
|
2943
|
+
class DeleteGroupRequest {
|
|
2944
|
+
static fromProto(proto) {
|
|
2945
|
+
let m = new DeleteGroupRequest();
|
|
2946
|
+
m = Object.assign(m, proto);
|
|
2947
|
+
return m;
|
|
2948
|
+
}
|
|
2949
|
+
constructor(kwargs) {
|
|
2950
|
+
if (!kwargs) {
|
|
2951
|
+
return;
|
|
2952
|
+
}
|
|
2953
|
+
Object.assign(this, kwargs);
|
|
2954
|
+
}
|
|
2955
|
+
toApiJson() {
|
|
2956
|
+
const toReturn = {};
|
|
2957
|
+
if (typeof this.id !== 'undefined') {
|
|
2958
|
+
toReturn['id'] = this.id;
|
|
2959
|
+
}
|
|
2960
|
+
return toReturn;
|
|
2961
|
+
}
|
|
2962
|
+
}
|
|
2721
2963
|
class DeleteMeetingTypeRequest {
|
|
2722
2964
|
static fromProto(proto) {
|
|
2723
2965
|
let m = new DeleteMeetingTypeRequest();
|
|
@@ -2738,6 +2980,26 @@ class DeleteMeetingTypeRequest {
|
|
|
2738
2980
|
return toReturn;
|
|
2739
2981
|
}
|
|
2740
2982
|
}
|
|
2983
|
+
class DeleteServiceRequest {
|
|
2984
|
+
static fromProto(proto) {
|
|
2985
|
+
let m = new DeleteServiceRequest();
|
|
2986
|
+
m = Object.assign(m, proto);
|
|
2987
|
+
return m;
|
|
2988
|
+
}
|
|
2989
|
+
constructor(kwargs) {
|
|
2990
|
+
if (!kwargs) {
|
|
2991
|
+
return;
|
|
2992
|
+
}
|
|
2993
|
+
Object.assign(this, kwargs);
|
|
2994
|
+
}
|
|
2995
|
+
toApiJson() {
|
|
2996
|
+
const toReturn = {};
|
|
2997
|
+
if (typeof this.id !== 'undefined') {
|
|
2998
|
+
toReturn['id'] = this.id;
|
|
2999
|
+
}
|
|
3000
|
+
return toReturn;
|
|
3001
|
+
}
|
|
3002
|
+
}
|
|
2741
3003
|
class DoesCalendarExistRequest {
|
|
2742
3004
|
static fromProto(proto) {
|
|
2743
3005
|
let m = new DoesCalendarExistRequest();
|
|
@@ -2864,10 +3126,13 @@ class EnsurePersonalCalendarExistsResponse {
|
|
|
2864
3126
|
return toReturn;
|
|
2865
3127
|
}
|
|
2866
3128
|
}
|
|
2867
|
-
class
|
|
3129
|
+
class ListBookedMeetingsRequestFilters {
|
|
2868
3130
|
static fromProto(proto) {
|
|
2869
|
-
let m = new
|
|
3131
|
+
let m = new ListBookedMeetingsRequestFilters();
|
|
2870
3132
|
m = Object.assign(m, proto);
|
|
3133
|
+
if (proto.timeSpan) {
|
|
3134
|
+
m.timeSpan = DateRange.fromProto(proto.timeSpan);
|
|
3135
|
+
}
|
|
2871
3136
|
return m;
|
|
2872
3137
|
}
|
|
2873
3138
|
constructor(kwargs) {
|
|
@@ -2878,22 +3143,22 @@ class ListAvailabilityRequestFilters {
|
|
|
2878
3143
|
}
|
|
2879
3144
|
toApiJson() {
|
|
2880
3145
|
const toReturn = {};
|
|
3146
|
+
if (typeof this.meetingTypeIds !== 'undefined') {
|
|
3147
|
+
toReturn['meetingTypeIds'] = this.meetingTypeIds;
|
|
3148
|
+
}
|
|
2881
3149
|
if (typeof this.hostId !== 'undefined') {
|
|
2882
3150
|
toReturn['hostId'] = this.hostId;
|
|
2883
3151
|
}
|
|
2884
|
-
if (typeof this.
|
|
2885
|
-
toReturn['
|
|
3152
|
+
if (typeof this.timeSpan !== 'undefined' && this.timeSpan !== null) {
|
|
3153
|
+
toReturn['timeSpan'] = 'toApiJson' in this.timeSpan ? this.timeSpan.toApiJson() : this.timeSpan;
|
|
2886
3154
|
}
|
|
2887
3155
|
return toReturn;
|
|
2888
3156
|
}
|
|
2889
3157
|
}
|
|
2890
|
-
class
|
|
3158
|
+
class ListAvailabilityRequestFilters {
|
|
2891
3159
|
static fromProto(proto) {
|
|
2892
|
-
let m = new
|
|
3160
|
+
let m = new ListAvailabilityRequestFilters();
|
|
2893
3161
|
m = Object.assign(m, proto);
|
|
2894
|
-
if (proto.timeSpan) {
|
|
2895
|
-
m.timeSpan = DateRange.fromProto(proto.timeSpan);
|
|
2896
|
-
}
|
|
2897
3162
|
return m;
|
|
2898
3163
|
}
|
|
2899
3164
|
constructor(kwargs) {
|
|
@@ -2904,14 +3169,11 @@ class ListBookedMeetingsRequestFilters {
|
|
|
2904
3169
|
}
|
|
2905
3170
|
toApiJson() {
|
|
2906
3171
|
const toReturn = {};
|
|
2907
|
-
if (typeof this.meetingTypeIds !== 'undefined') {
|
|
2908
|
-
toReturn['meetingTypeIds'] = this.meetingTypeIds;
|
|
2909
|
-
}
|
|
2910
3172
|
if (typeof this.hostId !== 'undefined') {
|
|
2911
3173
|
toReturn['hostId'] = this.hostId;
|
|
2912
3174
|
}
|
|
2913
|
-
if (typeof this.
|
|
2914
|
-
toReturn['
|
|
3175
|
+
if (typeof this.meetingTypeId !== 'undefined') {
|
|
3176
|
+
toReturn['meetingTypeId'] = this.meetingTypeId;
|
|
2915
3177
|
}
|
|
2916
3178
|
return toReturn;
|
|
2917
3179
|
}
|
|
@@ -3507,6 +3769,92 @@ class ListBookedMeetingsResponse {
|
|
|
3507
3769
|
return toReturn;
|
|
3508
3770
|
}
|
|
3509
3771
|
}
|
|
3772
|
+
class ListGroupsRequest {
|
|
3773
|
+
static fromProto(proto) {
|
|
3774
|
+
let m = new ListGroupsRequest();
|
|
3775
|
+
m = Object.assign(m, proto);
|
|
3776
|
+
return m;
|
|
3777
|
+
}
|
|
3778
|
+
constructor(kwargs) {
|
|
3779
|
+
if (!kwargs) {
|
|
3780
|
+
return;
|
|
3781
|
+
}
|
|
3782
|
+
Object.assign(this, kwargs);
|
|
3783
|
+
}
|
|
3784
|
+
toApiJson() {
|
|
3785
|
+
const toReturn = {};
|
|
3786
|
+
if (typeof this.hostId !== 'undefined') {
|
|
3787
|
+
toReturn['hostId'] = this.hostId;
|
|
3788
|
+
}
|
|
3789
|
+
return toReturn;
|
|
3790
|
+
}
|
|
3791
|
+
}
|
|
3792
|
+
class ListGroupsResponse {
|
|
3793
|
+
static fromProto(proto) {
|
|
3794
|
+
let m = new ListGroupsResponse();
|
|
3795
|
+
m = Object.assign(m, proto);
|
|
3796
|
+
if (proto.groups) {
|
|
3797
|
+
m.groups = proto.groups.map(Group.fromProto);
|
|
3798
|
+
}
|
|
3799
|
+
return m;
|
|
3800
|
+
}
|
|
3801
|
+
constructor(kwargs) {
|
|
3802
|
+
if (!kwargs) {
|
|
3803
|
+
return;
|
|
3804
|
+
}
|
|
3805
|
+
Object.assign(this, kwargs);
|
|
3806
|
+
}
|
|
3807
|
+
toApiJson() {
|
|
3808
|
+
const toReturn = {};
|
|
3809
|
+
if (typeof this.groups !== 'undefined' && this.groups !== null) {
|
|
3810
|
+
toReturn['groups'] = 'toApiJson' in this.groups ? this.groups.toApiJson() : this.groups;
|
|
3811
|
+
}
|
|
3812
|
+
return toReturn;
|
|
3813
|
+
}
|
|
3814
|
+
}
|
|
3815
|
+
class ListServicesRequest {
|
|
3816
|
+
static fromProto(proto) {
|
|
3817
|
+
let m = new ListServicesRequest();
|
|
3818
|
+
m = Object.assign(m, proto);
|
|
3819
|
+
return m;
|
|
3820
|
+
}
|
|
3821
|
+
constructor(kwargs) {
|
|
3822
|
+
if (!kwargs) {
|
|
3823
|
+
return;
|
|
3824
|
+
}
|
|
3825
|
+
Object.assign(this, kwargs);
|
|
3826
|
+
}
|
|
3827
|
+
toApiJson() {
|
|
3828
|
+
const toReturn = {};
|
|
3829
|
+
if (typeof this.hostId !== 'undefined') {
|
|
3830
|
+
toReturn['hostId'] = this.hostId;
|
|
3831
|
+
}
|
|
3832
|
+
return toReturn;
|
|
3833
|
+
}
|
|
3834
|
+
}
|
|
3835
|
+
class ListServicesResponse {
|
|
3836
|
+
static fromProto(proto) {
|
|
3837
|
+
let m = new ListServicesResponse();
|
|
3838
|
+
m = Object.assign(m, proto);
|
|
3839
|
+
if (proto.services) {
|
|
3840
|
+
m.services = proto.services.map(Service.fromProto);
|
|
3841
|
+
}
|
|
3842
|
+
return m;
|
|
3843
|
+
}
|
|
3844
|
+
constructor(kwargs) {
|
|
3845
|
+
if (!kwargs) {
|
|
3846
|
+
return;
|
|
3847
|
+
}
|
|
3848
|
+
Object.assign(this, kwargs);
|
|
3849
|
+
}
|
|
3850
|
+
toApiJson() {
|
|
3851
|
+
const toReturn = {};
|
|
3852
|
+
if (typeof this.services !== 'undefined' && this.services !== null) {
|
|
3853
|
+
toReturn['services'] = 'toApiJson' in this.services ? this.services.toApiJson() : this.services;
|
|
3854
|
+
}
|
|
3855
|
+
return toReturn;
|
|
3856
|
+
}
|
|
3857
|
+
}
|
|
3510
3858
|
class Meeting {
|
|
3511
3859
|
static fromProto(proto) {
|
|
3512
3860
|
let m = new Meeting();
|
|
@@ -3616,9 +3964,9 @@ class MeetingTypeList {
|
|
|
3616
3964
|
return toReturn;
|
|
3617
3965
|
}
|
|
3618
3966
|
}
|
|
3619
|
-
class
|
|
3967
|
+
class MeetingMetadataEntry {
|
|
3620
3968
|
static fromProto(proto) {
|
|
3621
|
-
let m = new
|
|
3969
|
+
let m = new MeetingMetadataEntry();
|
|
3622
3970
|
m = Object.assign(m, proto);
|
|
3623
3971
|
return m;
|
|
3624
3972
|
}
|
|
@@ -3639,9 +3987,9 @@ class UpdateMeetingMetadataRequestMetadataEntry {
|
|
|
3639
3987
|
return toReturn;
|
|
3640
3988
|
}
|
|
3641
3989
|
}
|
|
3642
|
-
class
|
|
3990
|
+
class UpdateMeetingMetadataRequestMetadataEntry {
|
|
3643
3991
|
static fromProto(proto) {
|
|
3644
|
-
let m = new
|
|
3992
|
+
let m = new UpdateMeetingMetadataRequestMetadataEntry();
|
|
3645
3993
|
m = Object.assign(m, proto);
|
|
3646
3994
|
return m;
|
|
3647
3995
|
}
|
|
@@ -3810,6 +4158,41 @@ class UpdateCalendarRequest {
|
|
|
3810
4158
|
return toReturn;
|
|
3811
4159
|
}
|
|
3812
4160
|
}
|
|
4161
|
+
class UpdateGroupRequest {
|
|
4162
|
+
static fromProto(proto) {
|
|
4163
|
+
let m = new UpdateGroupRequest();
|
|
4164
|
+
m = Object.assign(m, proto);
|
|
4165
|
+
if (proto.group) {
|
|
4166
|
+
m.group = Group.fromProto(proto.group);
|
|
4167
|
+
}
|
|
4168
|
+
if (proto.fieldMask) {
|
|
4169
|
+
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
4170
|
+
}
|
|
4171
|
+
return m;
|
|
4172
|
+
}
|
|
4173
|
+
constructor(kwargs) {
|
|
4174
|
+
if (!kwargs) {
|
|
4175
|
+
return;
|
|
4176
|
+
}
|
|
4177
|
+
Object.assign(this, kwargs);
|
|
4178
|
+
}
|
|
4179
|
+
toApiJson() {
|
|
4180
|
+
const toReturn = {};
|
|
4181
|
+
if (typeof this.group !== 'undefined' && this.group !== null) {
|
|
4182
|
+
toReturn['group'] = 'toApiJson' in this.group ? this.group.toApiJson() : this.group;
|
|
4183
|
+
}
|
|
4184
|
+
if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
|
|
4185
|
+
toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
|
|
4186
|
+
}
|
|
4187
|
+
if (typeof this.hostId !== 'undefined') {
|
|
4188
|
+
toReturn['hostId'] = this.hostId;
|
|
4189
|
+
}
|
|
4190
|
+
if (typeof this.id !== 'undefined') {
|
|
4191
|
+
toReturn['id'] = this.id;
|
|
4192
|
+
}
|
|
4193
|
+
return toReturn;
|
|
4194
|
+
}
|
|
4195
|
+
}
|
|
3813
4196
|
class UpdateHostPreferencesRequest {
|
|
3814
4197
|
static fromProto(proto) {
|
|
3815
4198
|
let m = new UpdateHostPreferencesRequest();
|
|
@@ -3903,6 +4286,41 @@ class UpdateMeetingTypeRequest {
|
|
|
3903
4286
|
return toReturn;
|
|
3904
4287
|
}
|
|
3905
4288
|
}
|
|
4289
|
+
class UpdateServiceRequest {
|
|
4290
|
+
static fromProto(proto) {
|
|
4291
|
+
let m = new UpdateServiceRequest();
|
|
4292
|
+
m = Object.assign(m, proto);
|
|
4293
|
+
if (proto.service) {
|
|
4294
|
+
m.service = Service.fromProto(proto.service);
|
|
4295
|
+
}
|
|
4296
|
+
if (proto.fieldMask) {
|
|
4297
|
+
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
4298
|
+
}
|
|
4299
|
+
return m;
|
|
4300
|
+
}
|
|
4301
|
+
constructor(kwargs) {
|
|
4302
|
+
if (!kwargs) {
|
|
4303
|
+
return;
|
|
4304
|
+
}
|
|
4305
|
+
Object.assign(this, kwargs);
|
|
4306
|
+
}
|
|
4307
|
+
toApiJson() {
|
|
4308
|
+
const toReturn = {};
|
|
4309
|
+
if (typeof this.service !== 'undefined' && this.service !== null) {
|
|
4310
|
+
toReturn['service'] = 'toApiJson' in this.service ? this.service.toApiJson() : this.service;
|
|
4311
|
+
}
|
|
4312
|
+
if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
|
|
4313
|
+
toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
|
|
4314
|
+
}
|
|
4315
|
+
if (typeof this.hostId !== 'undefined') {
|
|
4316
|
+
toReturn['hostId'] = this.hostId;
|
|
4317
|
+
}
|
|
4318
|
+
if (typeof this.id !== 'undefined') {
|
|
4319
|
+
toReturn['id'] = this.id;
|
|
4320
|
+
}
|
|
4321
|
+
return toReturn;
|
|
4322
|
+
}
|
|
4323
|
+
}
|
|
3906
4324
|
class WeekdayAvailability {
|
|
3907
4325
|
static fromProto(proto) {
|
|
3908
4326
|
let m = new WeekdayAvailability();
|
|
@@ -4780,6 +5198,42 @@ class MeetingHostApiService {
|
|
|
4780
5198
|
return this.http.post(this._host + "/meetings.v1.MeetingHost/IsCalendarConfigured", request.toApiJson(), this.apiOptions())
|
|
4781
5199
|
.pipe(map(resp => IsCalendarConfiguredResponse.fromProto(resp)));
|
|
4782
5200
|
}
|
|
5201
|
+
createGroup(r) {
|
|
5202
|
+
const request = (r.toApiJson) ? r : new CreateGroupRequest(r);
|
|
5203
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/CreateGroup", request.toApiJson(), this.apiOptions())
|
|
5204
|
+
.pipe(map(resp => CreateGroupResponse.fromProto(resp)));
|
|
5205
|
+
}
|
|
5206
|
+
updateGroup(r) {
|
|
5207
|
+
const request = (r.toApiJson) ? r : new UpdateGroupRequest(r);
|
|
5208
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/UpdateGroup", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
5209
|
+
}
|
|
5210
|
+
deleteGroup(r) {
|
|
5211
|
+
const request = (r.toApiJson) ? r : new DeleteGroupRequest(r);
|
|
5212
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/DeleteGroup", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
5213
|
+
}
|
|
5214
|
+
listGroups(r) {
|
|
5215
|
+
const request = (r.toApiJson) ? r : new ListGroupsRequest(r);
|
|
5216
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/ListGroups", request.toApiJson(), this.apiOptions())
|
|
5217
|
+
.pipe(map(resp => ListGroupsResponse.fromProto(resp)));
|
|
5218
|
+
}
|
|
5219
|
+
createService(r) {
|
|
5220
|
+
const request = (r.toApiJson) ? r : new CreateServiceRequest(r);
|
|
5221
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/CreateService", request.toApiJson(), this.apiOptions())
|
|
5222
|
+
.pipe(map(resp => CreateServiceResponse.fromProto(resp)));
|
|
5223
|
+
}
|
|
5224
|
+
updateService(r) {
|
|
5225
|
+
const request = (r.toApiJson) ? r : new UpdateServiceRequest(r);
|
|
5226
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/UpdateService", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
5227
|
+
}
|
|
5228
|
+
deleteService(r) {
|
|
5229
|
+
const request = (r.toApiJson) ? r : new DeleteServiceRequest(r);
|
|
5230
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/DeleteService", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
5231
|
+
}
|
|
5232
|
+
listServices(r) {
|
|
5233
|
+
const request = (r.toApiJson) ? r : new ListServicesRequest(r);
|
|
5234
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/ListServices", request.toApiJson(), this.apiOptions())
|
|
5235
|
+
.pipe(map(resp => ListServicesResponse.fromProto(resp)));
|
|
5236
|
+
}
|
|
4783
5237
|
}
|
|
4784
5238
|
MeetingHostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4785
5239
|
MeetingHostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, providedIn: 'root' });
|
|
@@ -4903,6 +5357,75 @@ function hostUserFromApi(hostUser) {
|
|
|
4903
5357
|
};
|
|
4904
5358
|
}
|
|
4905
5359
|
|
|
5360
|
+
function GroupTypeToAPi(req) {
|
|
5361
|
+
const m = req.group;
|
|
5362
|
+
if (!m) {
|
|
5363
|
+
return {};
|
|
5364
|
+
}
|
|
5365
|
+
return {
|
|
5366
|
+
id: m.id || undefined,
|
|
5367
|
+
name: m.name || undefined,
|
|
5368
|
+
description: m.description || undefined,
|
|
5369
|
+
slug: m.slug || undefined,
|
|
5370
|
+
isPinned: m.isPinned || undefined,
|
|
5371
|
+
associations: m.associations ? m.associations.map(AssociationTypeToApi) : undefined
|
|
5372
|
+
};
|
|
5373
|
+
}
|
|
5374
|
+
function ServiceTypeToApi(req) {
|
|
5375
|
+
const m = req.service;
|
|
5376
|
+
if (!m) {
|
|
5377
|
+
return {};
|
|
5378
|
+
}
|
|
5379
|
+
return {
|
|
5380
|
+
id: m.id || undefined,
|
|
5381
|
+
name: m.name || undefined,
|
|
5382
|
+
description: m.description || undefined,
|
|
5383
|
+
slug: m.slug || undefined,
|
|
5384
|
+
isPinned: m.isPinned || undefined,
|
|
5385
|
+
associations: m.associations ? m.associations.map(AssociationTypeToApi) : undefined
|
|
5386
|
+
};
|
|
5387
|
+
}
|
|
5388
|
+
function AssociationTypeToApi(association) {
|
|
5389
|
+
return {
|
|
5390
|
+
id: association.id || undefined,
|
|
5391
|
+
name: association.name || undefined,
|
|
5392
|
+
eventType: association.eventType || undefined,
|
|
5393
|
+
identifier: association.identifier || undefined,
|
|
5394
|
+
isEditable: association.isEditable || true,
|
|
5395
|
+
creatorUserName: association.creatorUserName || undefined
|
|
5396
|
+
};
|
|
5397
|
+
}
|
|
5398
|
+
function AssociationFromApi(associationApi) {
|
|
5399
|
+
return {
|
|
5400
|
+
id: associationApi.id || '',
|
|
5401
|
+
name: associationApi.name || '',
|
|
5402
|
+
eventType: associationApi.eventType || '',
|
|
5403
|
+
identifier: associationApi.identifier || '',
|
|
5404
|
+
isEditable: associationApi.isEditable || true,
|
|
5405
|
+
creatorUserName: associationApi.creatorUserName || ''
|
|
5406
|
+
};
|
|
5407
|
+
}
|
|
5408
|
+
function GroupFromApi(req) {
|
|
5409
|
+
return {
|
|
5410
|
+
id: req.groupApi.id || '',
|
|
5411
|
+
name: req.groupApi.name || '',
|
|
5412
|
+
description: req.groupApi.description || '',
|
|
5413
|
+
slug: req.groupApi.slug || '',
|
|
5414
|
+
isPinned: req.groupApi.isPinned || false,
|
|
5415
|
+
associations: req.groupApi.associations ? req.groupApi.associations.map(AssociationFromApi) : []
|
|
5416
|
+
};
|
|
5417
|
+
}
|
|
5418
|
+
function ServiceFromApi(req) {
|
|
5419
|
+
return {
|
|
5420
|
+
id: req.serviceApi.id || '',
|
|
5421
|
+
name: req.serviceApi.name || '',
|
|
5422
|
+
description: req.serviceApi.description || '',
|
|
5423
|
+
slug: req.serviceApi.slug || '',
|
|
5424
|
+
isPinned: req.serviceApi.isPinned || false,
|
|
5425
|
+
associations: req.serviceApi.associations ? req.serviceApi.associations.map(AssociationFromApi) : []
|
|
5426
|
+
};
|
|
5427
|
+
}
|
|
5428
|
+
|
|
4906
5429
|
class GuestService {
|
|
4907
5430
|
constructor(guestAPIService) {
|
|
4908
5431
|
this.guestAPIService = guestAPIService;
|
|
@@ -5258,6 +5781,74 @@ class HostService {
|
|
|
5258
5781
|
sendMeetingRequestEmail(req) {
|
|
5259
5782
|
return this.hostAPIService.sendMeetingRequestEmail(req);
|
|
5260
5783
|
}
|
|
5784
|
+
createService(req) {
|
|
5785
|
+
const fieldMask = getFieldMask({ o: req.service, updateFields: req.updateFields });
|
|
5786
|
+
if (fieldMask.paths.length === 0) {
|
|
5787
|
+
return of();
|
|
5788
|
+
}
|
|
5789
|
+
return this.hostAPIService.createService({
|
|
5790
|
+
service: ServiceTypeToApi({ service: req.service }),
|
|
5791
|
+
fieldMask,
|
|
5792
|
+
hostId: req.HostId
|
|
5793
|
+
}).pipe(map(res => res.id));
|
|
5794
|
+
}
|
|
5795
|
+
updateService(req) {
|
|
5796
|
+
const fieldMask = getFieldMask({ o: req.service, updateFields: req.updateFields });
|
|
5797
|
+
if (fieldMask.paths.length === 0) {
|
|
5798
|
+
return of();
|
|
5799
|
+
}
|
|
5800
|
+
return this.hostAPIService.updateService({
|
|
5801
|
+
id: req.id,
|
|
5802
|
+
service: ServiceTypeToApi({ service: req.service }),
|
|
5803
|
+
fieldMask,
|
|
5804
|
+
hostId: req.HostId
|
|
5805
|
+
}).pipe(mapTo(undefined));
|
|
5806
|
+
}
|
|
5807
|
+
deleteService(req) {
|
|
5808
|
+
return this.hostAPIService.deleteService({ id: req.id }).pipe(mapTo(undefined));
|
|
5809
|
+
}
|
|
5810
|
+
listServices(req) {
|
|
5811
|
+
return this.hostAPIService.listServices({ hostId: req.hostId }).pipe(map(res => {
|
|
5812
|
+
if (!res || !res.services) {
|
|
5813
|
+
return [];
|
|
5814
|
+
}
|
|
5815
|
+
return res.services.map(service => ServiceFromApi({ serviceApi: service }));
|
|
5816
|
+
}));
|
|
5817
|
+
}
|
|
5818
|
+
createGroup(req) {
|
|
5819
|
+
const fieldMask = getFieldMask({ o: req.group, updateFields: req.updateFields });
|
|
5820
|
+
if (fieldMask.paths.length === 0) {
|
|
5821
|
+
return of();
|
|
5822
|
+
}
|
|
5823
|
+
return this.hostAPIService.createGroup({
|
|
5824
|
+
group: GroupTypeToAPi({ group: req.group }),
|
|
5825
|
+
fieldMask,
|
|
5826
|
+
hostId: req.HostId
|
|
5827
|
+
}).pipe(map(res => res.id));
|
|
5828
|
+
}
|
|
5829
|
+
updateGroup(req) {
|
|
5830
|
+
const fieldMask = getFieldMask({ o: req.group, updateFields: req.updateFields });
|
|
5831
|
+
if (fieldMask.paths.length === 0) {
|
|
5832
|
+
return of();
|
|
5833
|
+
}
|
|
5834
|
+
return this.hostAPIService.updateGroup({
|
|
5835
|
+
id: req.id,
|
|
5836
|
+
group: GroupTypeToAPi({ group: req.group }),
|
|
5837
|
+
fieldMask,
|
|
5838
|
+
hostId: req.HostId
|
|
5839
|
+
}).pipe(mapTo(undefined));
|
|
5840
|
+
}
|
|
5841
|
+
deleteGroup(req) {
|
|
5842
|
+
return this.hostAPIService.deleteGroup({ id: req.id }).pipe(mapTo(undefined));
|
|
5843
|
+
}
|
|
5844
|
+
listGroups(req) {
|
|
5845
|
+
return this.hostAPIService.listGroups({ hostId: req.hostId }).pipe(map(res => {
|
|
5846
|
+
if (!res || !res.groups) {
|
|
5847
|
+
return [];
|
|
5848
|
+
}
|
|
5849
|
+
return res.groups.map(group => GroupFromApi({ groupApi: group }));
|
|
5850
|
+
}));
|
|
5851
|
+
}
|
|
5261
5852
|
}
|
|
5262
5853
|
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, deps: [{ token: MeetingHostApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5263
5854
|
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, providedIn: 'root' });
|