@vendasta/meetings 1.6.3 → 1.6.5
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 +2 -1
- package/esm2020/lib/_internal/enums/openapiv2.enum.mjs +55 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-external.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/openapiv2.interface.mjs +8 -0
- package/esm2020/lib/_internal/objects/index.mjs +2 -1
- package/esm2020/lib/_internal/objects/meeting-external.mjs +2 -2
- package/esm2020/lib/_internal/objects/meeting-guest.mjs +5 -2
- package/esm2020/lib/_internal/objects/openapiv2.mjs +1191 -0
- package/fesm2015/vendasta-meetings.mjs +1403 -155
- package/fesm2015/vendasta-meetings.mjs.map +1 -1
- package/fesm2020/vendasta-meetings.mjs +1403 -155
- package/fesm2020/vendasta-meetings.mjs.map +1 -1
- package/lib/_internal/enums/index.d.ts +1 -0
- package/lib/_internal/enums/openapiv2.enum.d.ts +42 -0
- package/lib/_internal/interfaces/index.d.ts +1 -0
- package/lib/_internal/interfaces/meeting-external.interface.d.ts +1 -1
- package/lib/_internal/interfaces/meeting-guest.interface.d.ts +2 -1
- package/lib/_internal/interfaces/openapiv2.interface.d.ts +246 -0
- package/lib/_internal/objects/index.d.ts +1 -0
- package/lib/_internal/objects/meeting-external.d.ts +1 -1
- package/lib/_internal/objects/meeting-guest.d.ts +2 -1
- package/lib/_internal/objects/openapiv2.d.ts +353 -0
- package/package.json +1 -1
|
@@ -234,6 +234,61 @@ var Weekday;
|
|
|
234
234
|
Weekday[Weekday["WEEKDAY_SUNDAY"] = 7] = "WEEKDAY_SUNDAY";
|
|
235
235
|
})(Weekday || (Weekday = {}));
|
|
236
236
|
|
|
237
|
+
// *********************************
|
|
238
|
+
// Code generated by sdkgen
|
|
239
|
+
// DO NOT EDIT!.
|
|
240
|
+
//
|
|
241
|
+
// Enums.
|
|
242
|
+
// *********************************
|
|
243
|
+
var SecuritySchemeFlow;
|
|
244
|
+
(function (SecuritySchemeFlow) {
|
|
245
|
+
SecuritySchemeFlow[SecuritySchemeFlow["FLOW_INVALID"] = 0] = "FLOW_INVALID";
|
|
246
|
+
SecuritySchemeFlow[SecuritySchemeFlow["FLOW_IMPLICIT"] = 1] = "FLOW_IMPLICIT";
|
|
247
|
+
SecuritySchemeFlow[SecuritySchemeFlow["FLOW_PASSWORD"] = 2] = "FLOW_PASSWORD";
|
|
248
|
+
SecuritySchemeFlow[SecuritySchemeFlow["FLOW_APPLICATION"] = 3] = "FLOW_APPLICATION";
|
|
249
|
+
SecuritySchemeFlow[SecuritySchemeFlow["FLOW_ACCESS_CODE"] = 4] = "FLOW_ACCESS_CODE";
|
|
250
|
+
})(SecuritySchemeFlow || (SecuritySchemeFlow = {}));
|
|
251
|
+
var SecuritySchemeIn;
|
|
252
|
+
(function (SecuritySchemeIn) {
|
|
253
|
+
SecuritySchemeIn[SecuritySchemeIn["IN_INVALID"] = 0] = "IN_INVALID";
|
|
254
|
+
SecuritySchemeIn[SecuritySchemeIn["IN_QUERY"] = 1] = "IN_QUERY";
|
|
255
|
+
SecuritySchemeIn[SecuritySchemeIn["IN_HEADER"] = 2] = "IN_HEADER";
|
|
256
|
+
})(SecuritySchemeIn || (SecuritySchemeIn = {}));
|
|
257
|
+
var JSONSchemaJSONSchemaSimpleTypes;
|
|
258
|
+
(function (JSONSchemaJSONSchemaSimpleTypes) {
|
|
259
|
+
JSONSchemaJSONSchemaSimpleTypes[JSONSchemaJSONSchemaSimpleTypes["UNKNOWN"] = 0] = "UNKNOWN";
|
|
260
|
+
JSONSchemaJSONSchemaSimpleTypes[JSONSchemaJSONSchemaSimpleTypes["ARRAY"] = 1] = "ARRAY";
|
|
261
|
+
JSONSchemaJSONSchemaSimpleTypes[JSONSchemaJSONSchemaSimpleTypes["BOOLEAN"] = 2] = "BOOLEAN";
|
|
262
|
+
JSONSchemaJSONSchemaSimpleTypes[JSONSchemaJSONSchemaSimpleTypes["INTEGER"] = 3] = "INTEGER";
|
|
263
|
+
JSONSchemaJSONSchemaSimpleTypes[JSONSchemaJSONSchemaSimpleTypes["NULL"] = 4] = "NULL";
|
|
264
|
+
JSONSchemaJSONSchemaSimpleTypes[JSONSchemaJSONSchemaSimpleTypes["NUMBER"] = 5] = "NUMBER";
|
|
265
|
+
JSONSchemaJSONSchemaSimpleTypes[JSONSchemaJSONSchemaSimpleTypes["OBJECT"] = 6] = "OBJECT";
|
|
266
|
+
JSONSchemaJSONSchemaSimpleTypes[JSONSchemaJSONSchemaSimpleTypes["STRING"] = 7] = "STRING";
|
|
267
|
+
})(JSONSchemaJSONSchemaSimpleTypes || (JSONSchemaJSONSchemaSimpleTypes = {}));
|
|
268
|
+
var Scheme;
|
|
269
|
+
(function (Scheme) {
|
|
270
|
+
Scheme[Scheme["UNKNOWN"] = 0] = "UNKNOWN";
|
|
271
|
+
Scheme[Scheme["HTTP"] = 1] = "HTTP";
|
|
272
|
+
Scheme[Scheme["HTTPS"] = 2] = "HTTPS";
|
|
273
|
+
Scheme[Scheme["WS"] = 3] = "WS";
|
|
274
|
+
Scheme[Scheme["WSS"] = 4] = "WSS";
|
|
275
|
+
})(Scheme || (Scheme = {}));
|
|
276
|
+
var HeaderParameterType;
|
|
277
|
+
(function (HeaderParameterType) {
|
|
278
|
+
HeaderParameterType[HeaderParameterType["UNKNOWN"] = 0] = "UNKNOWN";
|
|
279
|
+
HeaderParameterType[HeaderParameterType["STRING"] = 1] = "STRING";
|
|
280
|
+
HeaderParameterType[HeaderParameterType["NUMBER"] = 2] = "NUMBER";
|
|
281
|
+
HeaderParameterType[HeaderParameterType["INTEGER"] = 3] = "INTEGER";
|
|
282
|
+
HeaderParameterType[HeaderParameterType["BOOLEAN"] = 4] = "BOOLEAN";
|
|
283
|
+
})(HeaderParameterType || (HeaderParameterType = {}));
|
|
284
|
+
var SecuritySchemeType;
|
|
285
|
+
(function (SecuritySchemeType) {
|
|
286
|
+
SecuritySchemeType[SecuritySchemeType["TYPE_INVALID"] = 0] = "TYPE_INVALID";
|
|
287
|
+
SecuritySchemeType[SecuritySchemeType["TYPE_BASIC"] = 1] = "TYPE_BASIC";
|
|
288
|
+
SecuritySchemeType[SecuritySchemeType["TYPE_API_KEY"] = 2] = "TYPE_API_KEY";
|
|
289
|
+
SecuritySchemeType[SecuritySchemeType["TYPE_OAUTH2"] = 3] = "TYPE_OAUTH2";
|
|
290
|
+
})(SecuritySchemeType || (SecuritySchemeType = {}));
|
|
291
|
+
|
|
237
292
|
// *********************************
|
|
238
293
|
// Code generated by sdkgen
|
|
239
294
|
// DO NOT EDIT!.
|
|
@@ -254,7 +309,7 @@ var DayOfWeek;
|
|
|
254
309
|
|
|
255
310
|
// *********************************
|
|
256
311
|
|
|
257
|
-
function enumStringToValue$
|
|
312
|
+
function enumStringToValue$e(enumRef, value) {
|
|
258
313
|
if (typeof value === 'number') {
|
|
259
314
|
return value;
|
|
260
315
|
}
|
|
@@ -265,7 +320,7 @@ class CreateZoomMeetingRequest {
|
|
|
265
320
|
let m = new CreateZoomMeetingRequest();
|
|
266
321
|
m = Object.assign(m, proto);
|
|
267
322
|
if (proto.type) {
|
|
268
|
-
m.type = enumStringToValue$
|
|
323
|
+
m.type = enumStringToValue$e(ZoomMeetingType, proto.type);
|
|
269
324
|
}
|
|
270
325
|
if (proto.duration) {
|
|
271
326
|
m.duration = parseInt(proto.duration, 10);
|
|
@@ -333,7 +388,7 @@ class CreateZoomMeetingResponse {
|
|
|
333
388
|
m.meetingId = parseInt(proto.meetingId, 10);
|
|
334
389
|
}
|
|
335
390
|
if (proto.type) {
|
|
336
|
-
m.type = enumStringToValue$
|
|
391
|
+
m.type = enumStringToValue$e(ZoomMeetingType, proto.type);
|
|
337
392
|
}
|
|
338
393
|
if (proto.duration) {
|
|
339
394
|
m.duration = parseInt(proto.duration, 10);
|
|
@@ -425,7 +480,7 @@ class ZoomMeetingRecurrence {
|
|
|
425
480
|
let m = new ZoomMeetingRecurrence();
|
|
426
481
|
m = Object.assign(m, proto);
|
|
427
482
|
if (proto.type) {
|
|
428
|
-
m.type = enumStringToValue$
|
|
483
|
+
m.type = enumStringToValue$e(ZoomMeetingRecurrenceType, proto.type);
|
|
429
484
|
}
|
|
430
485
|
if (proto.repeatInterval) {
|
|
431
486
|
m.repeatInterval = parseInt(proto.repeatInterval, 10);
|
|
@@ -434,10 +489,10 @@ class ZoomMeetingRecurrence {
|
|
|
434
489
|
m.monthlyDay = parseInt(proto.monthlyDay, 10);
|
|
435
490
|
}
|
|
436
491
|
if (proto.monthlyWeek) {
|
|
437
|
-
m.monthlyWeek = enumStringToValue$
|
|
492
|
+
m.monthlyWeek = enumStringToValue$e(ZoomMonthlyWeek, proto.monthlyWeek);
|
|
438
493
|
}
|
|
439
494
|
if (proto.monthlyWeekDay) {
|
|
440
|
-
m.monthlyWeekDay = enumStringToValue$
|
|
495
|
+
m.monthlyWeekDay = enumStringToValue$e(ZoomMonthlyWeekDay, proto.monthlyWeekDay);
|
|
441
496
|
}
|
|
442
497
|
if (proto.endTimes) {
|
|
443
498
|
m.endTimes = parseInt(proto.endTimes, 10);
|
|
@@ -484,10 +539,10 @@ class ZoomMeetingSettings {
|
|
|
484
539
|
let m = new ZoomMeetingSettings();
|
|
485
540
|
m = Object.assign(m, proto);
|
|
486
541
|
if (proto.approvalType) {
|
|
487
|
-
m.approvalType = enumStringToValue$
|
|
542
|
+
m.approvalType = enumStringToValue$e(ZoomApprovalType, proto.approvalType);
|
|
488
543
|
}
|
|
489
544
|
if (proto.registrationType) {
|
|
490
|
-
m.registrationType = enumStringToValue$
|
|
545
|
+
m.registrationType = enumStringToValue$e(ZoomRegistrationType, proto.registrationType);
|
|
491
546
|
}
|
|
492
547
|
return m;
|
|
493
548
|
}
|
|
@@ -630,7 +685,7 @@ class ZoomOccurrence {
|
|
|
630
685
|
}
|
|
631
686
|
}
|
|
632
687
|
|
|
633
|
-
function enumStringToValue$
|
|
688
|
+
function enumStringToValue$d(enumRef, value) {
|
|
634
689
|
if (typeof value === 'number') {
|
|
635
690
|
return value;
|
|
636
691
|
}
|
|
@@ -1280,7 +1335,7 @@ class GoogleMeetMeetingReminders {
|
|
|
1280
1335
|
}
|
|
1281
1336
|
}
|
|
1282
1337
|
|
|
1283
|
-
function enumStringToValue$
|
|
1338
|
+
function enumStringToValue$c(enumRef, value) {
|
|
1284
1339
|
if (typeof value === 'number') {
|
|
1285
1340
|
return value;
|
|
1286
1341
|
}
|
|
@@ -1291,10 +1346,10 @@ class MeetingSourceInfo {
|
|
|
1291
1346
|
let m = new MeetingSourceInfo();
|
|
1292
1347
|
m = Object.assign(m, proto);
|
|
1293
1348
|
if (proto.source) {
|
|
1294
|
-
m.source = enumStringToValue$
|
|
1349
|
+
m.source = enumStringToValue$c(MeetingSource, proto.source);
|
|
1295
1350
|
}
|
|
1296
1351
|
if (proto.status) {
|
|
1297
|
-
m.status = enumStringToValue$
|
|
1352
|
+
m.status = enumStringToValue$c(MeetingSourceStatus, proto.status);
|
|
1298
1353
|
}
|
|
1299
1354
|
return m;
|
|
1300
1355
|
}
|
|
@@ -1384,7 +1439,7 @@ class MeetingSourceQuery {
|
|
|
1384
1439
|
let m = new MeetingSourceQuery();
|
|
1385
1440
|
m = Object.assign(m, proto);
|
|
1386
1441
|
if (proto.source) {
|
|
1387
|
-
m.source = enumStringToValue$
|
|
1442
|
+
m.source = enumStringToValue$c(MeetingSource, proto.source);
|
|
1388
1443
|
}
|
|
1389
1444
|
return m;
|
|
1390
1445
|
}
|
|
@@ -1409,7 +1464,7 @@ class MeetingSourceQuery {
|
|
|
1409
1464
|
}
|
|
1410
1465
|
}
|
|
1411
1466
|
|
|
1412
|
-
function enumStringToValue$
|
|
1467
|
+
function enumStringToValue$b(enumRef, value) {
|
|
1413
1468
|
if (typeof value === 'number') {
|
|
1414
1469
|
return value;
|
|
1415
1470
|
}
|
|
@@ -1420,7 +1475,7 @@ class Answer {
|
|
|
1420
1475
|
let m = new Answer();
|
|
1421
1476
|
m = Object.assign(m, proto);
|
|
1422
1477
|
if (proto.type) {
|
|
1423
|
-
m.type = enumStringToValue$
|
|
1478
|
+
m.type = enumStringToValue$b(FormFieldType, proto.type);
|
|
1424
1479
|
}
|
|
1425
1480
|
return m;
|
|
1426
1481
|
}
|
|
@@ -1562,7 +1617,7 @@ class Calendar {
|
|
|
1562
1617
|
m.applicationContext = Object.keys(proto.applicationContext).reduce((obj, k) => { obj[k] = proto.applicationContext[k]; return obj; }, {});
|
|
1563
1618
|
}
|
|
1564
1619
|
if (proto.calendarType) {
|
|
1565
|
-
m.calendarType = enumStringToValue$
|
|
1620
|
+
m.calendarType = enumStringToValue$b(CalendarType, proto.calendarType);
|
|
1566
1621
|
}
|
|
1567
1622
|
return m;
|
|
1568
1623
|
}
|
|
@@ -1616,7 +1671,7 @@ class Calendar {
|
|
|
1616
1671
|
return toReturn;
|
|
1617
1672
|
}
|
|
1618
1673
|
}
|
|
1619
|
-
class Contact {
|
|
1674
|
+
let Contact$1 = class Contact {
|
|
1620
1675
|
static fromProto(proto) {
|
|
1621
1676
|
let m = new Contact();
|
|
1622
1677
|
m = Object.assign(m, proto);
|
|
@@ -1659,7 +1714,7 @@ class Contact {
|
|
|
1659
1714
|
}
|
|
1660
1715
|
return toReturn;
|
|
1661
1716
|
}
|
|
1662
|
-
}
|
|
1717
|
+
};
|
|
1663
1718
|
class EmailsToDelete {
|
|
1664
1719
|
static fromProto(proto) {
|
|
1665
1720
|
let m = new EmailsToDelete();
|
|
@@ -1873,7 +1928,7 @@ class Preferences {
|
|
|
1873
1928
|
m.timezone = TimeZone.fromProto(proto.timezone);
|
|
1874
1929
|
}
|
|
1875
1930
|
if (proto.meetingIntegration) {
|
|
1876
|
-
m.meetingIntegration = enumStringToValue$
|
|
1931
|
+
m.meetingIntegration = enumStringToValue$b(MeetingSource, proto.meetingIntegration);
|
|
1877
1932
|
}
|
|
1878
1933
|
if (proto.availabilityIncrement) {
|
|
1879
1934
|
m.availabilityIncrement = parseInt(proto.availabilityIncrement, 10);
|
|
@@ -1888,10 +1943,10 @@ class Preferences {
|
|
|
1888
1943
|
m.bufferDurationBeforeMeeting = parseInt(proto.bufferDurationBeforeMeeting, 10);
|
|
1889
1944
|
}
|
|
1890
1945
|
if (proto.calendarIntegration) {
|
|
1891
|
-
m.calendarIntegration = enumStringToValue$
|
|
1946
|
+
m.calendarIntegration = enumStringToValue$b(CalendarSource, proto.calendarIntegration);
|
|
1892
1947
|
}
|
|
1893
1948
|
if (proto.onBoardingState) {
|
|
1894
|
-
m.onBoardingState = enumStringToValue$
|
|
1949
|
+
m.onBoardingState = enumStringToValue$b(OnBoardingState, proto.onBoardingState);
|
|
1895
1950
|
}
|
|
1896
1951
|
return m;
|
|
1897
1952
|
}
|
|
@@ -1963,7 +2018,7 @@ class TimeRange {
|
|
|
1963
2018
|
}
|
|
1964
2019
|
}
|
|
1965
2020
|
|
|
1966
|
-
function enumStringToValue$
|
|
2021
|
+
function enumStringToValue$a(enumRef, value) {
|
|
1967
2022
|
if (typeof value === 'number') {
|
|
1968
2023
|
return value;
|
|
1969
2024
|
}
|
|
@@ -1999,7 +2054,7 @@ class DateRange {
|
|
|
1999
2054
|
}
|
|
2000
2055
|
}
|
|
2001
2056
|
|
|
2002
|
-
function enumStringToValue$
|
|
2057
|
+
function enumStringToValue$9(enumRef, value) {
|
|
2003
2058
|
if (typeof value === 'number') {
|
|
2004
2059
|
return value;
|
|
2005
2060
|
}
|
|
@@ -2010,7 +2065,7 @@ class EventTypeDateRange {
|
|
|
2010
2065
|
let m = new EventTypeDateRange();
|
|
2011
2066
|
m = Object.assign(m, proto);
|
|
2012
2067
|
if (proto.dateRangeType) {
|
|
2013
|
-
m.dateRangeType = enumStringToValue$
|
|
2068
|
+
m.dateRangeType = enumStringToValue$9(DateRangeType, proto.dateRangeType);
|
|
2014
2069
|
}
|
|
2015
2070
|
if (proto.customDateRange) {
|
|
2016
2071
|
m.customDateRange = DateRange.fromProto(proto.customDateRange);
|
|
@@ -2045,7 +2100,7 @@ class Field {
|
|
|
2045
2100
|
let m = new Field();
|
|
2046
2101
|
m = Object.assign(m, proto);
|
|
2047
2102
|
if (proto.type) {
|
|
2048
|
-
m.type = enumStringToValue$
|
|
2103
|
+
m.type = enumStringToValue$9(FormFieldType, proto.type);
|
|
2049
2104
|
}
|
|
2050
2105
|
return m;
|
|
2051
2106
|
}
|
|
@@ -2112,7 +2167,7 @@ class MeetingType {
|
|
|
2112
2167
|
m.noticeTime = parseInt(proto.noticeTime, 10);
|
|
2113
2168
|
}
|
|
2114
2169
|
if (proto.locationType) {
|
|
2115
|
-
m.locationType = enumStringToValue$
|
|
2170
|
+
m.locationType = enumStringToValue$9(MeetingLocationType, proto.locationType);
|
|
2116
2171
|
}
|
|
2117
2172
|
if (proto.hostUsers) {
|
|
2118
2173
|
m.hostUsers = proto.hostUsers.map(HostUser.fromProto);
|
|
@@ -2124,7 +2179,7 @@ class MeetingType {
|
|
|
2124
2179
|
m.dateRange = EventTypeDateRange.fromProto(proto.dateRange);
|
|
2125
2180
|
}
|
|
2126
2181
|
if (proto.meetingType) {
|
|
2127
|
-
m.meetingType = enumStringToValue$
|
|
2182
|
+
m.meetingType = enumStringToValue$9(TeamEventMeetingType, proto.meetingType);
|
|
2128
2183
|
}
|
|
2129
2184
|
if (proto.attendeeCount) {
|
|
2130
2185
|
m.attendeeCount = parseInt(proto.attendeeCount, 10);
|
|
@@ -2136,7 +2191,7 @@ class MeetingType {
|
|
|
2136
2191
|
m.hostOrderDetails = proto.hostOrderDetails.map(HostOrderDetails.fromProto);
|
|
2137
2192
|
}
|
|
2138
2193
|
if (proto.notificationType) {
|
|
2139
|
-
m.notificationType = enumStringToValue$
|
|
2194
|
+
m.notificationType = enumStringToValue$9(NotificationType, proto.notificationType);
|
|
2140
2195
|
}
|
|
2141
2196
|
return m;
|
|
2142
2197
|
}
|
|
@@ -2199,72 +2254,1193 @@ class MeetingType {
|
|
|
2199
2254
|
if (typeof this.locationType !== 'undefined') {
|
|
2200
2255
|
toReturn['locationType'] = this.locationType;
|
|
2201
2256
|
}
|
|
2202
|
-
if (typeof this.locationGuidelines !== 'undefined') {
|
|
2203
|
-
toReturn['locationGuidelines'] = this.locationGuidelines;
|
|
2257
|
+
if (typeof this.locationGuidelines !== 'undefined') {
|
|
2258
|
+
toReturn['locationGuidelines'] = this.locationGuidelines;
|
|
2259
|
+
}
|
|
2260
|
+
if (typeof this.emailSubject !== 'undefined') {
|
|
2261
|
+
toReturn['emailSubject'] = this.emailSubject;
|
|
2262
|
+
}
|
|
2263
|
+
if (typeof this.emailDescription !== 'undefined') {
|
|
2264
|
+
toReturn['emailDescription'] = this.emailDescription;
|
|
2265
|
+
}
|
|
2266
|
+
if (typeof this.isPinned !== 'undefined') {
|
|
2267
|
+
toReturn['isPinned'] = this.isPinned;
|
|
2268
|
+
}
|
|
2269
|
+
if (typeof this.calendarType !== 'undefined') {
|
|
2270
|
+
toReturn['calendarType'] = this.calendarType;
|
|
2271
|
+
}
|
|
2272
|
+
if (typeof this.hostUsers !== 'undefined' && this.hostUsers !== null) {
|
|
2273
|
+
toReturn['hostUsers'] = 'toApiJson' in this.hostUsers ? this.hostUsers.toApiJson() : this.hostUsers;
|
|
2274
|
+
}
|
|
2275
|
+
if (typeof this.teamName !== 'undefined') {
|
|
2276
|
+
toReturn['teamName'] = this.teamName;
|
|
2277
|
+
}
|
|
2278
|
+
if (typeof this.isVideoLinkDisabled !== 'undefined') {
|
|
2279
|
+
toReturn['isVideoLinkDisabled'] = this.isVideoLinkDisabled;
|
|
2280
|
+
}
|
|
2281
|
+
if (typeof this.bufferDurationBeforeMeeting !== 'undefined') {
|
|
2282
|
+
toReturn['bufferDurationBeforeMeeting'] = this.bufferDurationBeforeMeeting;
|
|
2283
|
+
}
|
|
2284
|
+
if (typeof this.dateRange !== 'undefined' && this.dateRange !== null) {
|
|
2285
|
+
toReturn['dateRange'] = 'toApiJson' in this.dateRange ? this.dateRange.toApiJson() : this.dateRange;
|
|
2286
|
+
}
|
|
2287
|
+
if (typeof this.meetingType !== 'undefined') {
|
|
2288
|
+
toReturn['meetingType'] = this.meetingType;
|
|
2289
|
+
}
|
|
2290
|
+
if (typeof this.attendeeCount !== 'undefined') {
|
|
2291
|
+
toReturn['attendeeCount'] = this.attendeeCount;
|
|
2292
|
+
}
|
|
2293
|
+
if (typeof this.sessionTitle !== 'undefined') {
|
|
2294
|
+
toReturn['sessionTitle'] = this.sessionTitle;
|
|
2295
|
+
}
|
|
2296
|
+
if (typeof this.registrationCutoff !== 'undefined' && this.registrationCutoff !== null) {
|
|
2297
|
+
toReturn['registrationCutoff'] = 'toApiJson' in this.registrationCutoff ? this.registrationCutoff.toApiJson() : this.registrationCutoff;
|
|
2298
|
+
}
|
|
2299
|
+
if (typeof this.hostOrderDetails !== 'undefined' && this.hostOrderDetails !== null) {
|
|
2300
|
+
toReturn['hostOrderDetails'] = 'toApiJson' in this.hostOrderDetails ? this.hostOrderDetails.toApiJson() : this.hostOrderDetails;
|
|
2301
|
+
}
|
|
2302
|
+
if (typeof this.isEmailRequired !== 'undefined') {
|
|
2303
|
+
toReturn['isEmailRequired'] = this.isEmailRequired;
|
|
2304
|
+
}
|
|
2305
|
+
if (typeof this.isPhoneNumberRequired !== 'undefined') {
|
|
2306
|
+
toReturn['isPhoneNumberRequired'] = this.isPhoneNumberRequired;
|
|
2307
|
+
}
|
|
2308
|
+
if (typeof this.notificationType !== 'undefined') {
|
|
2309
|
+
toReturn['notificationType'] = this.notificationType;
|
|
2310
|
+
}
|
|
2311
|
+
return toReturn;
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
class RegistrationCutOff {
|
|
2315
|
+
static fromProto(proto) {
|
|
2316
|
+
let m = new RegistrationCutOff();
|
|
2317
|
+
m = Object.assign(m, proto);
|
|
2318
|
+
if (proto.unit) {
|
|
2319
|
+
m.unit = enumStringToValue$9(RegistrationCutOffUnit, proto.unit);
|
|
2320
|
+
}
|
|
2321
|
+
if (proto.value) {
|
|
2322
|
+
m.value = parseInt(proto.value, 10);
|
|
2323
|
+
}
|
|
2324
|
+
return m;
|
|
2325
|
+
}
|
|
2326
|
+
constructor(kwargs) {
|
|
2327
|
+
if (!kwargs) {
|
|
2328
|
+
return;
|
|
2329
|
+
}
|
|
2330
|
+
Object.assign(this, kwargs);
|
|
2331
|
+
}
|
|
2332
|
+
toApiJson() {
|
|
2333
|
+
const toReturn = {};
|
|
2334
|
+
if (typeof this.unit !== 'undefined') {
|
|
2335
|
+
toReturn['unit'] = this.unit;
|
|
2336
|
+
}
|
|
2337
|
+
if (typeof this.value !== 'undefined') {
|
|
2338
|
+
toReturn['value'] = this.value;
|
|
2339
|
+
}
|
|
2340
|
+
return toReturn;
|
|
2341
|
+
}
|
|
2342
|
+
}
|
|
2343
|
+
class RelativeDateRange {
|
|
2344
|
+
static fromProto(proto) {
|
|
2345
|
+
let m = new RelativeDateRange();
|
|
2346
|
+
m = Object.assign(m, proto);
|
|
2347
|
+
if (proto.unit) {
|
|
2348
|
+
m.unit = enumStringToValue$9(RelativeTimeUnit, proto.unit);
|
|
2349
|
+
}
|
|
2350
|
+
if (proto.value) {
|
|
2351
|
+
m.value = parseInt(proto.value, 10);
|
|
2352
|
+
}
|
|
2353
|
+
return m;
|
|
2354
|
+
}
|
|
2355
|
+
constructor(kwargs) {
|
|
2356
|
+
if (!kwargs) {
|
|
2357
|
+
return;
|
|
2358
|
+
}
|
|
2359
|
+
Object.assign(this, kwargs);
|
|
2360
|
+
}
|
|
2361
|
+
toApiJson() {
|
|
2362
|
+
const toReturn = {};
|
|
2363
|
+
if (typeof this.unit !== 'undefined') {
|
|
2364
|
+
toReturn['unit'] = this.unit;
|
|
2365
|
+
}
|
|
2366
|
+
if (typeof this.value !== 'undefined') {
|
|
2367
|
+
toReturn['value'] = this.value;
|
|
2368
|
+
}
|
|
2369
|
+
return toReturn;
|
|
2370
|
+
}
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2373
|
+
function enumStringToValue$8(enumRef, value) {
|
|
2374
|
+
if (typeof value === 'number') {
|
|
2375
|
+
return value;
|
|
2376
|
+
}
|
|
2377
|
+
return enumRef[value];
|
|
2378
|
+
}
|
|
2379
|
+
class EventGroupAndServiceAssociations {
|
|
2380
|
+
static fromProto(proto) {
|
|
2381
|
+
let m = new EventGroupAndServiceAssociations();
|
|
2382
|
+
m = Object.assign(m, proto);
|
|
2383
|
+
return m;
|
|
2384
|
+
}
|
|
2385
|
+
constructor(kwargs) {
|
|
2386
|
+
if (!kwargs) {
|
|
2387
|
+
return;
|
|
2388
|
+
}
|
|
2389
|
+
Object.assign(this, kwargs);
|
|
2390
|
+
}
|
|
2391
|
+
toApiJson() {
|
|
2392
|
+
const toReturn = {};
|
|
2393
|
+
if (typeof this.id !== 'undefined') {
|
|
2394
|
+
toReturn['id'] = this.id;
|
|
2395
|
+
}
|
|
2396
|
+
if (typeof this.name !== 'undefined') {
|
|
2397
|
+
toReturn['name'] = this.name;
|
|
2398
|
+
}
|
|
2399
|
+
if (typeof this.eventType !== 'undefined') {
|
|
2400
|
+
toReturn['eventType'] = this.eventType;
|
|
2401
|
+
}
|
|
2402
|
+
if (typeof this.identifier !== 'undefined') {
|
|
2403
|
+
toReturn['identifier'] = this.identifier;
|
|
2404
|
+
}
|
|
2405
|
+
if (typeof this.isEditable !== 'undefined') {
|
|
2406
|
+
toReturn['isEditable'] = this.isEditable;
|
|
2407
|
+
}
|
|
2408
|
+
if (typeof this.creatorUserName !== 'undefined') {
|
|
2409
|
+
toReturn['creatorUserName'] = this.creatorUserName;
|
|
2410
|
+
}
|
|
2411
|
+
if (typeof this.calendarId !== 'undefined') {
|
|
2412
|
+
toReturn['calendarId'] = this.calendarId;
|
|
2413
|
+
}
|
|
2414
|
+
if (typeof this.hexColor !== 'undefined') {
|
|
2415
|
+
toReturn['hexColor'] = this.hexColor;
|
|
2416
|
+
}
|
|
2417
|
+
if (typeof this.duration !== 'undefined') {
|
|
2418
|
+
toReturn['duration'] = this.duration;
|
|
2419
|
+
}
|
|
2420
|
+
if (typeof this.description !== 'undefined') {
|
|
2421
|
+
toReturn['description'] = this.description;
|
|
2422
|
+
}
|
|
2423
|
+
if (typeof this.bookingUrl !== 'undefined') {
|
|
2424
|
+
toReturn['bookingUrl'] = this.bookingUrl;
|
|
2425
|
+
}
|
|
2426
|
+
return toReturn;
|
|
2427
|
+
}
|
|
2428
|
+
}
|
|
2429
|
+
class Group {
|
|
2430
|
+
static fromProto(proto) {
|
|
2431
|
+
let m = new Group();
|
|
2432
|
+
m = Object.assign(m, proto);
|
|
2433
|
+
if (proto.associations) {
|
|
2434
|
+
m.associations = proto.associations.map(EventGroupAndServiceAssociations.fromProto);
|
|
2435
|
+
}
|
|
2436
|
+
return m;
|
|
2437
|
+
}
|
|
2438
|
+
constructor(kwargs) {
|
|
2439
|
+
if (!kwargs) {
|
|
2440
|
+
return;
|
|
2441
|
+
}
|
|
2442
|
+
Object.assign(this, kwargs);
|
|
2443
|
+
}
|
|
2444
|
+
toApiJson() {
|
|
2445
|
+
const toReturn = {};
|
|
2446
|
+
if (typeof this.id !== 'undefined') {
|
|
2447
|
+
toReturn['id'] = this.id;
|
|
2448
|
+
}
|
|
2449
|
+
if (typeof this.name !== 'undefined') {
|
|
2450
|
+
toReturn['name'] = this.name;
|
|
2451
|
+
}
|
|
2452
|
+
if (typeof this.description !== 'undefined') {
|
|
2453
|
+
toReturn['description'] = this.description;
|
|
2454
|
+
}
|
|
2455
|
+
if (typeof this.slug !== 'undefined') {
|
|
2456
|
+
toReturn['slug'] = this.slug;
|
|
2457
|
+
}
|
|
2458
|
+
if (typeof this.isPinned !== 'undefined') {
|
|
2459
|
+
toReturn['isPinned'] = this.isPinned;
|
|
2460
|
+
}
|
|
2461
|
+
if (typeof this.associations !== 'undefined' && this.associations !== null) {
|
|
2462
|
+
toReturn['associations'] = 'toApiJson' in this.associations ? this.associations.toApiJson() : this.associations;
|
|
2463
|
+
}
|
|
2464
|
+
if (typeof this.hexColor !== 'undefined') {
|
|
2465
|
+
toReturn['hexColor'] = this.hexColor;
|
|
2466
|
+
}
|
|
2467
|
+
if (typeof this.bookingUrl !== 'undefined') {
|
|
2468
|
+
toReturn['bookingUrl'] = this.bookingUrl;
|
|
2469
|
+
}
|
|
2470
|
+
return toReturn;
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
class Service {
|
|
2474
|
+
static fromProto(proto) {
|
|
2475
|
+
let m = new Service();
|
|
2476
|
+
m = Object.assign(m, proto);
|
|
2477
|
+
if (proto.associations) {
|
|
2478
|
+
m.associations = proto.associations.map(EventGroupAndServiceAssociations.fromProto);
|
|
2479
|
+
}
|
|
2480
|
+
return m;
|
|
2481
|
+
}
|
|
2482
|
+
constructor(kwargs) {
|
|
2483
|
+
if (!kwargs) {
|
|
2484
|
+
return;
|
|
2485
|
+
}
|
|
2486
|
+
Object.assign(this, kwargs);
|
|
2487
|
+
}
|
|
2488
|
+
toApiJson() {
|
|
2489
|
+
const toReturn = {};
|
|
2490
|
+
if (typeof this.id !== 'undefined') {
|
|
2491
|
+
toReturn['id'] = this.id;
|
|
2492
|
+
}
|
|
2493
|
+
if (typeof this.name !== 'undefined') {
|
|
2494
|
+
toReturn['name'] = this.name;
|
|
2495
|
+
}
|
|
2496
|
+
if (typeof this.description !== 'undefined') {
|
|
2497
|
+
toReturn['description'] = this.description;
|
|
2498
|
+
}
|
|
2499
|
+
if (typeof this.slug !== 'undefined') {
|
|
2500
|
+
toReturn['slug'] = this.slug;
|
|
2501
|
+
}
|
|
2502
|
+
if (typeof this.isPinned !== 'undefined') {
|
|
2503
|
+
toReturn['isPinned'] = this.isPinned;
|
|
2504
|
+
}
|
|
2505
|
+
if (typeof this.associations !== 'undefined' && this.associations !== null) {
|
|
2506
|
+
toReturn['associations'] = 'toApiJson' in this.associations ? this.associations.toApiJson() : this.associations;
|
|
2507
|
+
}
|
|
2508
|
+
if (typeof this.hexColor !== 'undefined') {
|
|
2509
|
+
toReturn['hexColor'] = this.hexColor;
|
|
2510
|
+
}
|
|
2511
|
+
if (typeof this.bookingUrl !== 'undefined') {
|
|
2512
|
+
toReturn['bookingUrl'] = this.bookingUrl;
|
|
2513
|
+
}
|
|
2514
|
+
return toReturn;
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2518
|
+
function enumStringToValue$7(enumRef, value) {
|
|
2519
|
+
if (typeof value === 'number') {
|
|
2520
|
+
return value;
|
|
2521
|
+
}
|
|
2522
|
+
return enumRef[value];
|
|
2523
|
+
}
|
|
2524
|
+
class Contact {
|
|
2525
|
+
static fromProto(proto) {
|
|
2526
|
+
let m = new Contact();
|
|
2527
|
+
m = Object.assign(m, proto);
|
|
2528
|
+
return m;
|
|
2529
|
+
}
|
|
2530
|
+
constructor(kwargs) {
|
|
2531
|
+
if (!kwargs) {
|
|
2532
|
+
return;
|
|
2533
|
+
}
|
|
2534
|
+
Object.assign(this, kwargs);
|
|
2535
|
+
}
|
|
2536
|
+
toApiJson() {
|
|
2537
|
+
const toReturn = {};
|
|
2538
|
+
if (typeof this.name !== 'undefined') {
|
|
2539
|
+
toReturn['name'] = this.name;
|
|
2540
|
+
}
|
|
2541
|
+
if (typeof this.url !== 'undefined') {
|
|
2542
|
+
toReturn['url'] = this.url;
|
|
2543
|
+
}
|
|
2544
|
+
if (typeof this.email !== 'undefined') {
|
|
2545
|
+
toReturn['email'] = this.email;
|
|
2546
|
+
}
|
|
2547
|
+
return toReturn;
|
|
2548
|
+
}
|
|
2549
|
+
}
|
|
2550
|
+
class EnumSchema {
|
|
2551
|
+
static fromProto(proto) {
|
|
2552
|
+
let m = new EnumSchema();
|
|
2553
|
+
m = Object.assign(m, proto);
|
|
2554
|
+
if (proto.externalDocs) {
|
|
2555
|
+
m.externalDocs = ExternalDocumentation.fromProto(proto.externalDocs);
|
|
2556
|
+
}
|
|
2557
|
+
if (proto.extensions) {
|
|
2558
|
+
m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
|
|
2559
|
+
}
|
|
2560
|
+
return m;
|
|
2561
|
+
}
|
|
2562
|
+
constructor(kwargs) {
|
|
2563
|
+
if (!kwargs) {
|
|
2564
|
+
return;
|
|
2565
|
+
}
|
|
2566
|
+
Object.assign(this, kwargs);
|
|
2567
|
+
}
|
|
2568
|
+
toApiJson() {
|
|
2569
|
+
const toReturn = {};
|
|
2570
|
+
if (typeof this.description !== 'undefined') {
|
|
2571
|
+
toReturn['description'] = this.description;
|
|
2572
|
+
}
|
|
2573
|
+
if (typeof this.default !== 'undefined') {
|
|
2574
|
+
toReturn['default'] = this.default;
|
|
2575
|
+
}
|
|
2576
|
+
if (typeof this.title !== 'undefined') {
|
|
2577
|
+
toReturn['title'] = this.title;
|
|
2578
|
+
}
|
|
2579
|
+
if (typeof this.required !== 'undefined') {
|
|
2580
|
+
toReturn['required'] = this.required;
|
|
2581
|
+
}
|
|
2582
|
+
if (typeof this.readOnly !== 'undefined') {
|
|
2583
|
+
toReturn['readOnly'] = this.readOnly;
|
|
2584
|
+
}
|
|
2585
|
+
if (typeof this.externalDocs !== 'undefined' && this.externalDocs !== null) {
|
|
2586
|
+
toReturn['externalDocs'] = 'toApiJson' in this.externalDocs ? this.externalDocs.toApiJson() : this.externalDocs;
|
|
2587
|
+
}
|
|
2588
|
+
if (typeof this.example !== 'undefined') {
|
|
2589
|
+
toReturn['example'] = this.example;
|
|
2590
|
+
}
|
|
2591
|
+
if (typeof this.ref !== 'undefined') {
|
|
2592
|
+
toReturn['ref'] = this.ref;
|
|
2593
|
+
}
|
|
2594
|
+
if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
|
|
2595
|
+
toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
|
|
2596
|
+
}
|
|
2597
|
+
return toReturn;
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
class ResponseExamplesEntry {
|
|
2601
|
+
static fromProto(proto) {
|
|
2602
|
+
let m = new ResponseExamplesEntry();
|
|
2603
|
+
m = Object.assign(m, proto);
|
|
2604
|
+
return m;
|
|
2605
|
+
}
|
|
2606
|
+
constructor(kwargs) {
|
|
2607
|
+
if (!kwargs) {
|
|
2608
|
+
return;
|
|
2609
|
+
}
|
|
2610
|
+
Object.assign(this, kwargs);
|
|
2611
|
+
}
|
|
2612
|
+
toApiJson() {
|
|
2613
|
+
const toReturn = {};
|
|
2614
|
+
if (typeof this.key !== 'undefined') {
|
|
2615
|
+
toReturn['key'] = this.key;
|
|
2616
|
+
}
|
|
2617
|
+
if (typeof this.value !== 'undefined') {
|
|
2618
|
+
toReturn['value'] = this.value;
|
|
2619
|
+
}
|
|
2620
|
+
return toReturn;
|
|
2621
|
+
}
|
|
2622
|
+
}
|
|
2623
|
+
class ResponseExtensionsEntry {
|
|
2624
|
+
static fromProto(proto) {
|
|
2625
|
+
let m = new ResponseExtensionsEntry();
|
|
2626
|
+
m = Object.assign(m, proto);
|
|
2627
|
+
return m;
|
|
2628
|
+
}
|
|
2629
|
+
constructor(kwargs) {
|
|
2630
|
+
if (!kwargs) {
|
|
2631
|
+
return;
|
|
2632
|
+
}
|
|
2633
|
+
Object.assign(this, kwargs);
|
|
2634
|
+
}
|
|
2635
|
+
toApiJson() {
|
|
2636
|
+
const toReturn = {};
|
|
2637
|
+
if (typeof this.key !== 'undefined') {
|
|
2638
|
+
toReturn['key'] = this.key;
|
|
2639
|
+
}
|
|
2640
|
+
if (typeof this.value !== 'undefined') {
|
|
2641
|
+
toReturn['value'] = this.value;
|
|
2642
|
+
}
|
|
2643
|
+
return toReturn;
|
|
2644
|
+
}
|
|
2645
|
+
}
|
|
2646
|
+
class SwaggerExtensionsEntry {
|
|
2647
|
+
static fromProto(proto) {
|
|
2648
|
+
let m = new SwaggerExtensionsEntry();
|
|
2649
|
+
m = Object.assign(m, proto);
|
|
2650
|
+
return m;
|
|
2651
|
+
}
|
|
2652
|
+
constructor(kwargs) {
|
|
2653
|
+
if (!kwargs) {
|
|
2654
|
+
return;
|
|
2655
|
+
}
|
|
2656
|
+
Object.assign(this, kwargs);
|
|
2657
|
+
}
|
|
2658
|
+
toApiJson() {
|
|
2659
|
+
const toReturn = {};
|
|
2660
|
+
if (typeof this.key !== 'undefined') {
|
|
2661
|
+
toReturn['key'] = this.key;
|
|
2662
|
+
}
|
|
2663
|
+
if (typeof this.value !== 'undefined') {
|
|
2664
|
+
toReturn['value'] = this.value;
|
|
2665
|
+
}
|
|
2666
|
+
return toReturn;
|
|
2667
|
+
}
|
|
2668
|
+
}
|
|
2669
|
+
class SecuritySchemeExtensionsEntry {
|
|
2670
|
+
static fromProto(proto) {
|
|
2671
|
+
let m = new SecuritySchemeExtensionsEntry();
|
|
2672
|
+
m = Object.assign(m, proto);
|
|
2673
|
+
return m;
|
|
2674
|
+
}
|
|
2675
|
+
constructor(kwargs) {
|
|
2676
|
+
if (!kwargs) {
|
|
2677
|
+
return;
|
|
2678
|
+
}
|
|
2679
|
+
Object.assign(this, kwargs);
|
|
2680
|
+
}
|
|
2681
|
+
toApiJson() {
|
|
2682
|
+
const toReturn = {};
|
|
2683
|
+
if (typeof this.key !== 'undefined') {
|
|
2684
|
+
toReturn['key'] = this.key;
|
|
2685
|
+
}
|
|
2686
|
+
if (typeof this.value !== 'undefined') {
|
|
2687
|
+
toReturn['value'] = this.value;
|
|
2688
|
+
}
|
|
2689
|
+
return toReturn;
|
|
2690
|
+
}
|
|
2691
|
+
}
|
|
2692
|
+
class TagExtensionsEntry {
|
|
2693
|
+
static fromProto(proto) {
|
|
2694
|
+
let m = new TagExtensionsEntry();
|
|
2695
|
+
m = Object.assign(m, proto);
|
|
2696
|
+
return m;
|
|
2697
|
+
}
|
|
2698
|
+
constructor(kwargs) {
|
|
2699
|
+
if (!kwargs) {
|
|
2700
|
+
return;
|
|
2701
|
+
}
|
|
2702
|
+
Object.assign(this, kwargs);
|
|
2703
|
+
}
|
|
2704
|
+
toApiJson() {
|
|
2705
|
+
const toReturn = {};
|
|
2706
|
+
if (typeof this.key !== 'undefined') {
|
|
2707
|
+
toReturn['key'] = this.key;
|
|
2708
|
+
}
|
|
2709
|
+
if (typeof this.value !== 'undefined') {
|
|
2710
|
+
toReturn['value'] = this.value;
|
|
2711
|
+
}
|
|
2712
|
+
return toReturn;
|
|
2713
|
+
}
|
|
2714
|
+
}
|
|
2715
|
+
class OperationExtensionsEntry {
|
|
2716
|
+
static fromProto(proto) {
|
|
2717
|
+
let m = new OperationExtensionsEntry();
|
|
2718
|
+
m = Object.assign(m, proto);
|
|
2719
|
+
return m;
|
|
2720
|
+
}
|
|
2721
|
+
constructor(kwargs) {
|
|
2722
|
+
if (!kwargs) {
|
|
2723
|
+
return;
|
|
2724
|
+
}
|
|
2725
|
+
Object.assign(this, kwargs);
|
|
2726
|
+
}
|
|
2727
|
+
toApiJson() {
|
|
2728
|
+
const toReturn = {};
|
|
2729
|
+
if (typeof this.key !== 'undefined') {
|
|
2730
|
+
toReturn['key'] = this.key;
|
|
2731
|
+
}
|
|
2732
|
+
if (typeof this.value !== 'undefined') {
|
|
2733
|
+
toReturn['value'] = this.value;
|
|
2734
|
+
}
|
|
2735
|
+
return toReturn;
|
|
2736
|
+
}
|
|
2737
|
+
}
|
|
2738
|
+
class JSONSchemaExtensionsEntry {
|
|
2739
|
+
static fromProto(proto) {
|
|
2740
|
+
let m = new JSONSchemaExtensionsEntry();
|
|
2741
|
+
m = Object.assign(m, proto);
|
|
2742
|
+
return m;
|
|
2743
|
+
}
|
|
2744
|
+
constructor(kwargs) {
|
|
2745
|
+
if (!kwargs) {
|
|
2746
|
+
return;
|
|
2747
|
+
}
|
|
2748
|
+
Object.assign(this, kwargs);
|
|
2749
|
+
}
|
|
2750
|
+
toApiJson() {
|
|
2751
|
+
const toReturn = {};
|
|
2752
|
+
if (typeof this.key !== 'undefined') {
|
|
2753
|
+
toReturn['key'] = this.key;
|
|
2754
|
+
}
|
|
2755
|
+
if (typeof this.value !== 'undefined') {
|
|
2756
|
+
toReturn['value'] = this.value;
|
|
2757
|
+
}
|
|
2758
|
+
return toReturn;
|
|
2759
|
+
}
|
|
2760
|
+
}
|
|
2761
|
+
class EnumSchemaExtensionsEntry {
|
|
2762
|
+
static fromProto(proto) {
|
|
2763
|
+
let m = new EnumSchemaExtensionsEntry();
|
|
2764
|
+
m = Object.assign(m, proto);
|
|
2765
|
+
return m;
|
|
2766
|
+
}
|
|
2767
|
+
constructor(kwargs) {
|
|
2768
|
+
if (!kwargs) {
|
|
2769
|
+
return;
|
|
2770
|
+
}
|
|
2771
|
+
Object.assign(this, kwargs);
|
|
2772
|
+
}
|
|
2773
|
+
toApiJson() {
|
|
2774
|
+
const toReturn = {};
|
|
2775
|
+
if (typeof this.key !== 'undefined') {
|
|
2776
|
+
toReturn['key'] = this.key;
|
|
2777
|
+
}
|
|
2778
|
+
if (typeof this.value !== 'undefined') {
|
|
2779
|
+
toReturn['value'] = this.value;
|
|
2780
|
+
}
|
|
2781
|
+
return toReturn;
|
|
2782
|
+
}
|
|
2783
|
+
}
|
|
2784
|
+
class InfoExtensionsEntry {
|
|
2785
|
+
static fromProto(proto) {
|
|
2786
|
+
let m = new InfoExtensionsEntry();
|
|
2787
|
+
m = Object.assign(m, proto);
|
|
2788
|
+
return m;
|
|
2789
|
+
}
|
|
2790
|
+
constructor(kwargs) {
|
|
2791
|
+
if (!kwargs) {
|
|
2792
|
+
return;
|
|
2793
|
+
}
|
|
2794
|
+
Object.assign(this, kwargs);
|
|
2795
|
+
}
|
|
2796
|
+
toApiJson() {
|
|
2797
|
+
const toReturn = {};
|
|
2798
|
+
if (typeof this.key !== 'undefined') {
|
|
2799
|
+
toReturn['key'] = this.key;
|
|
2800
|
+
}
|
|
2801
|
+
if (typeof this.value !== 'undefined') {
|
|
2802
|
+
toReturn['value'] = this.value;
|
|
2803
|
+
}
|
|
2804
|
+
return toReturn;
|
|
2805
|
+
}
|
|
2806
|
+
}
|
|
2807
|
+
class ExternalDocumentation {
|
|
2808
|
+
static fromProto(proto) {
|
|
2809
|
+
let m = new ExternalDocumentation();
|
|
2810
|
+
m = Object.assign(m, proto);
|
|
2811
|
+
return m;
|
|
2812
|
+
}
|
|
2813
|
+
constructor(kwargs) {
|
|
2814
|
+
if (!kwargs) {
|
|
2815
|
+
return;
|
|
2816
|
+
}
|
|
2817
|
+
Object.assign(this, kwargs);
|
|
2818
|
+
}
|
|
2819
|
+
toApiJson() {
|
|
2820
|
+
const toReturn = {};
|
|
2821
|
+
if (typeof this.description !== 'undefined') {
|
|
2822
|
+
toReturn['description'] = this.description;
|
|
2823
|
+
}
|
|
2824
|
+
if (typeof this.url !== 'undefined') {
|
|
2825
|
+
toReturn['url'] = this.url;
|
|
2826
|
+
}
|
|
2827
|
+
return toReturn;
|
|
2828
|
+
}
|
|
2829
|
+
}
|
|
2830
|
+
class JSONSchemaFieldConfiguration {
|
|
2831
|
+
static fromProto(proto) {
|
|
2832
|
+
let m = new JSONSchemaFieldConfiguration();
|
|
2833
|
+
m = Object.assign(m, proto);
|
|
2834
|
+
return m;
|
|
2835
|
+
}
|
|
2836
|
+
constructor(kwargs) {
|
|
2837
|
+
if (!kwargs) {
|
|
2838
|
+
return;
|
|
2839
|
+
}
|
|
2840
|
+
Object.assign(this, kwargs);
|
|
2841
|
+
}
|
|
2842
|
+
toApiJson() {
|
|
2843
|
+
const toReturn = {};
|
|
2844
|
+
if (typeof this.pathParamName !== 'undefined') {
|
|
2845
|
+
toReturn['pathParamName'] = this.pathParamName;
|
|
2846
|
+
}
|
|
2847
|
+
if (typeof this.deprecated !== 'undefined') {
|
|
2848
|
+
toReturn['deprecated'] = this.deprecated;
|
|
2849
|
+
}
|
|
2850
|
+
return toReturn;
|
|
2851
|
+
}
|
|
2852
|
+
}
|
|
2853
|
+
class Header {
|
|
2854
|
+
static fromProto(proto) {
|
|
2855
|
+
let m = new Header();
|
|
2856
|
+
m = Object.assign(m, proto);
|
|
2857
|
+
return m;
|
|
2858
|
+
}
|
|
2859
|
+
constructor(kwargs) {
|
|
2860
|
+
if (!kwargs) {
|
|
2861
|
+
return;
|
|
2862
|
+
}
|
|
2863
|
+
Object.assign(this, kwargs);
|
|
2864
|
+
}
|
|
2865
|
+
toApiJson() {
|
|
2866
|
+
const toReturn = {};
|
|
2867
|
+
if (typeof this.description !== 'undefined') {
|
|
2868
|
+
toReturn['description'] = this.description;
|
|
2869
|
+
}
|
|
2870
|
+
if (typeof this.type !== 'undefined') {
|
|
2871
|
+
toReturn['type'] = this.type;
|
|
2872
|
+
}
|
|
2873
|
+
if (typeof this.format !== 'undefined') {
|
|
2874
|
+
toReturn['format'] = this.format;
|
|
2875
|
+
}
|
|
2876
|
+
if (typeof this.default !== 'undefined') {
|
|
2877
|
+
toReturn['default'] = this.default;
|
|
2878
|
+
}
|
|
2879
|
+
if (typeof this.pattern !== 'undefined') {
|
|
2880
|
+
toReturn['pattern'] = this.pattern;
|
|
2881
|
+
}
|
|
2882
|
+
return toReturn;
|
|
2883
|
+
}
|
|
2884
|
+
}
|
|
2885
|
+
class HeaderParameter {
|
|
2886
|
+
static fromProto(proto) {
|
|
2887
|
+
let m = new HeaderParameter();
|
|
2888
|
+
m = Object.assign(m, proto);
|
|
2889
|
+
if (proto.type) {
|
|
2890
|
+
m.type = enumStringToValue$7(HeaderParameterType, proto.type);
|
|
2891
|
+
}
|
|
2892
|
+
return m;
|
|
2893
|
+
}
|
|
2894
|
+
constructor(kwargs) {
|
|
2895
|
+
if (!kwargs) {
|
|
2896
|
+
return;
|
|
2897
|
+
}
|
|
2898
|
+
Object.assign(this, kwargs);
|
|
2899
|
+
}
|
|
2900
|
+
toApiJson() {
|
|
2901
|
+
const toReturn = {};
|
|
2902
|
+
if (typeof this.name !== 'undefined') {
|
|
2903
|
+
toReturn['name'] = this.name;
|
|
2904
|
+
}
|
|
2905
|
+
if (typeof this.description !== 'undefined') {
|
|
2906
|
+
toReturn['description'] = this.description;
|
|
2907
|
+
}
|
|
2908
|
+
if (typeof this.type !== 'undefined') {
|
|
2909
|
+
toReturn['type'] = this.type;
|
|
2910
|
+
}
|
|
2911
|
+
if (typeof this.format !== 'undefined') {
|
|
2912
|
+
toReturn['format'] = this.format;
|
|
2913
|
+
}
|
|
2914
|
+
if (typeof this.required !== 'undefined') {
|
|
2915
|
+
toReturn['required'] = this.required;
|
|
2916
|
+
}
|
|
2917
|
+
return toReturn;
|
|
2918
|
+
}
|
|
2919
|
+
}
|
|
2920
|
+
class ResponseHeadersEntry {
|
|
2921
|
+
static fromProto(proto) {
|
|
2922
|
+
let m = new ResponseHeadersEntry();
|
|
2923
|
+
m = Object.assign(m, proto);
|
|
2924
|
+
if (proto.value) {
|
|
2925
|
+
m.value = Header.fromProto(proto.value);
|
|
2926
|
+
}
|
|
2927
|
+
return m;
|
|
2928
|
+
}
|
|
2929
|
+
constructor(kwargs) {
|
|
2930
|
+
if (!kwargs) {
|
|
2931
|
+
return;
|
|
2932
|
+
}
|
|
2933
|
+
Object.assign(this, kwargs);
|
|
2934
|
+
}
|
|
2935
|
+
toApiJson() {
|
|
2936
|
+
const toReturn = {};
|
|
2937
|
+
if (typeof this.key !== 'undefined') {
|
|
2938
|
+
toReturn['key'] = this.key;
|
|
2939
|
+
}
|
|
2940
|
+
if (typeof this.value !== 'undefined' && this.value !== null) {
|
|
2941
|
+
toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
|
|
2942
|
+
}
|
|
2943
|
+
return toReturn;
|
|
2944
|
+
}
|
|
2945
|
+
}
|
|
2946
|
+
class Info {
|
|
2947
|
+
static fromProto(proto) {
|
|
2948
|
+
let m = new Info();
|
|
2949
|
+
m = Object.assign(m, proto);
|
|
2950
|
+
if (proto.contact) {
|
|
2951
|
+
m.contact = Contact.fromProto(proto.contact);
|
|
2952
|
+
}
|
|
2953
|
+
if (proto.license) {
|
|
2954
|
+
m.license = License.fromProto(proto.license);
|
|
2955
|
+
}
|
|
2956
|
+
if (proto.extensions) {
|
|
2957
|
+
m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
|
|
2958
|
+
}
|
|
2959
|
+
return m;
|
|
2960
|
+
}
|
|
2961
|
+
constructor(kwargs) {
|
|
2962
|
+
if (!kwargs) {
|
|
2963
|
+
return;
|
|
2964
|
+
}
|
|
2965
|
+
Object.assign(this, kwargs);
|
|
2966
|
+
}
|
|
2967
|
+
toApiJson() {
|
|
2968
|
+
const toReturn = {};
|
|
2969
|
+
if (typeof this.title !== 'undefined') {
|
|
2970
|
+
toReturn['title'] = this.title;
|
|
2971
|
+
}
|
|
2972
|
+
if (typeof this.description !== 'undefined') {
|
|
2973
|
+
toReturn['description'] = this.description;
|
|
2974
|
+
}
|
|
2975
|
+
if (typeof this.termsOfService !== 'undefined') {
|
|
2976
|
+
toReturn['termsOfService'] = this.termsOfService;
|
|
2977
|
+
}
|
|
2978
|
+
if (typeof this.contact !== 'undefined' && this.contact !== null) {
|
|
2979
|
+
toReturn['contact'] = 'toApiJson' in this.contact ? this.contact.toApiJson() : this.contact;
|
|
2980
|
+
}
|
|
2981
|
+
if (typeof this.license !== 'undefined' && this.license !== null) {
|
|
2982
|
+
toReturn['license'] = 'toApiJson' in this.license ? this.license.toApiJson() : this.license;
|
|
2983
|
+
}
|
|
2984
|
+
if (typeof this.version !== 'undefined') {
|
|
2985
|
+
toReturn['version'] = this.version;
|
|
2986
|
+
}
|
|
2987
|
+
if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
|
|
2988
|
+
toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
|
|
2989
|
+
}
|
|
2990
|
+
return toReturn;
|
|
2991
|
+
}
|
|
2992
|
+
}
|
|
2993
|
+
class JSONSchema {
|
|
2994
|
+
static fromProto(proto) {
|
|
2995
|
+
let m = new JSONSchema();
|
|
2996
|
+
m = Object.assign(m, proto);
|
|
2997
|
+
if (proto.maxLength) {
|
|
2998
|
+
m.maxLength = parseInt(proto.maxLength, 10);
|
|
2999
|
+
}
|
|
3000
|
+
if (proto.minLength) {
|
|
3001
|
+
m.minLength = parseInt(proto.minLength, 10);
|
|
3002
|
+
}
|
|
3003
|
+
if (proto.maxItems) {
|
|
3004
|
+
m.maxItems = parseInt(proto.maxItems, 10);
|
|
3005
|
+
}
|
|
3006
|
+
if (proto.minItems) {
|
|
3007
|
+
m.minItems = parseInt(proto.minItems, 10);
|
|
3008
|
+
}
|
|
3009
|
+
if (proto.maxProperties) {
|
|
3010
|
+
m.maxProperties = parseInt(proto.maxProperties, 10);
|
|
3011
|
+
}
|
|
3012
|
+
if (proto.minProperties) {
|
|
3013
|
+
m.minProperties = parseInt(proto.minProperties, 10);
|
|
3014
|
+
}
|
|
3015
|
+
if (proto.type) {
|
|
3016
|
+
m.type = proto.type.map((v) => enumStringToValue$7(JSONSchemaJSONSchemaSimpleTypes, v));
|
|
3017
|
+
}
|
|
3018
|
+
if (proto.fieldConfiguration) {
|
|
3019
|
+
m.fieldConfiguration = JSONSchemaFieldConfiguration.fromProto(proto.fieldConfiguration);
|
|
3020
|
+
}
|
|
3021
|
+
if (proto.extensions) {
|
|
3022
|
+
m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
|
|
3023
|
+
}
|
|
3024
|
+
return m;
|
|
3025
|
+
}
|
|
3026
|
+
constructor(kwargs) {
|
|
3027
|
+
if (!kwargs) {
|
|
3028
|
+
return;
|
|
3029
|
+
}
|
|
3030
|
+
Object.assign(this, kwargs);
|
|
3031
|
+
}
|
|
3032
|
+
toApiJson() {
|
|
3033
|
+
const toReturn = {};
|
|
3034
|
+
if (typeof this.ref !== 'undefined') {
|
|
3035
|
+
toReturn['ref'] = this.ref;
|
|
3036
|
+
}
|
|
3037
|
+
if (typeof this.title !== 'undefined') {
|
|
3038
|
+
toReturn['title'] = this.title;
|
|
3039
|
+
}
|
|
3040
|
+
if (typeof this.description !== 'undefined') {
|
|
3041
|
+
toReturn['description'] = this.description;
|
|
3042
|
+
}
|
|
3043
|
+
if (typeof this.default !== 'undefined') {
|
|
3044
|
+
toReturn['default'] = this.default;
|
|
3045
|
+
}
|
|
3046
|
+
if (typeof this.readOnly !== 'undefined') {
|
|
3047
|
+
toReturn['readOnly'] = this.readOnly;
|
|
3048
|
+
}
|
|
3049
|
+
if (typeof this.example !== 'undefined') {
|
|
3050
|
+
toReturn['example'] = this.example;
|
|
3051
|
+
}
|
|
3052
|
+
if (typeof this.multipleOf !== 'undefined') {
|
|
3053
|
+
toReturn['multipleOf'] = this.multipleOf;
|
|
3054
|
+
}
|
|
3055
|
+
if (typeof this.maximum !== 'undefined') {
|
|
3056
|
+
toReturn['maximum'] = this.maximum;
|
|
3057
|
+
}
|
|
3058
|
+
if (typeof this.exclusiveMaximum !== 'undefined') {
|
|
3059
|
+
toReturn['exclusiveMaximum'] = this.exclusiveMaximum;
|
|
3060
|
+
}
|
|
3061
|
+
if (typeof this.minimum !== 'undefined') {
|
|
3062
|
+
toReturn['minimum'] = this.minimum;
|
|
3063
|
+
}
|
|
3064
|
+
if (typeof this.exclusiveMinimum !== 'undefined') {
|
|
3065
|
+
toReturn['exclusiveMinimum'] = this.exclusiveMinimum;
|
|
3066
|
+
}
|
|
3067
|
+
if (typeof this.maxLength !== 'undefined') {
|
|
3068
|
+
toReturn['maxLength'] = this.maxLength;
|
|
3069
|
+
}
|
|
3070
|
+
if (typeof this.minLength !== 'undefined') {
|
|
3071
|
+
toReturn['minLength'] = this.minLength;
|
|
3072
|
+
}
|
|
3073
|
+
if (typeof this.pattern !== 'undefined') {
|
|
3074
|
+
toReturn['pattern'] = this.pattern;
|
|
3075
|
+
}
|
|
3076
|
+
if (typeof this.maxItems !== 'undefined') {
|
|
3077
|
+
toReturn['maxItems'] = this.maxItems;
|
|
3078
|
+
}
|
|
3079
|
+
if (typeof this.minItems !== 'undefined') {
|
|
3080
|
+
toReturn['minItems'] = this.minItems;
|
|
3081
|
+
}
|
|
3082
|
+
if (typeof this.uniqueItems !== 'undefined') {
|
|
3083
|
+
toReturn['uniqueItems'] = this.uniqueItems;
|
|
3084
|
+
}
|
|
3085
|
+
if (typeof this.maxProperties !== 'undefined') {
|
|
3086
|
+
toReturn['maxProperties'] = this.maxProperties;
|
|
3087
|
+
}
|
|
3088
|
+
if (typeof this.minProperties !== 'undefined') {
|
|
3089
|
+
toReturn['minProperties'] = this.minProperties;
|
|
3090
|
+
}
|
|
3091
|
+
if (typeof this.required !== 'undefined') {
|
|
3092
|
+
toReturn['required'] = this.required;
|
|
3093
|
+
}
|
|
3094
|
+
if (typeof this.array !== 'undefined') {
|
|
3095
|
+
toReturn['array'] = this.array;
|
|
3096
|
+
}
|
|
3097
|
+
if (typeof this.type !== 'undefined') {
|
|
3098
|
+
toReturn['type'] = this.type;
|
|
3099
|
+
}
|
|
3100
|
+
if (typeof this.format !== 'undefined') {
|
|
3101
|
+
toReturn['format'] = this.format;
|
|
3102
|
+
}
|
|
3103
|
+
if (typeof this.enum !== 'undefined') {
|
|
3104
|
+
toReturn['enum'] = this.enum;
|
|
3105
|
+
}
|
|
3106
|
+
if (typeof this.fieldConfiguration !== 'undefined' && this.fieldConfiguration !== null) {
|
|
3107
|
+
toReturn['fieldConfiguration'] = 'toApiJson' in this.fieldConfiguration ? this.fieldConfiguration.toApiJson() : this.fieldConfiguration;
|
|
3108
|
+
}
|
|
3109
|
+
if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
|
|
3110
|
+
toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
|
|
3111
|
+
}
|
|
3112
|
+
return toReturn;
|
|
3113
|
+
}
|
|
3114
|
+
}
|
|
3115
|
+
class License {
|
|
3116
|
+
static fromProto(proto) {
|
|
3117
|
+
let m = new License();
|
|
3118
|
+
m = Object.assign(m, proto);
|
|
3119
|
+
return m;
|
|
3120
|
+
}
|
|
3121
|
+
constructor(kwargs) {
|
|
3122
|
+
if (!kwargs) {
|
|
3123
|
+
return;
|
|
3124
|
+
}
|
|
3125
|
+
Object.assign(this, kwargs);
|
|
3126
|
+
}
|
|
3127
|
+
toApiJson() {
|
|
3128
|
+
const toReturn = {};
|
|
3129
|
+
if (typeof this.name !== 'undefined') {
|
|
3130
|
+
toReturn['name'] = this.name;
|
|
3131
|
+
}
|
|
3132
|
+
if (typeof this.url !== 'undefined') {
|
|
3133
|
+
toReturn['url'] = this.url;
|
|
3134
|
+
}
|
|
3135
|
+
return toReturn;
|
|
3136
|
+
}
|
|
3137
|
+
}
|
|
3138
|
+
class Operation {
|
|
3139
|
+
static fromProto(proto) {
|
|
3140
|
+
let m = new Operation();
|
|
3141
|
+
m = Object.assign(m, proto);
|
|
3142
|
+
if (proto.externalDocs) {
|
|
3143
|
+
m.externalDocs = ExternalDocumentation.fromProto(proto.externalDocs);
|
|
3144
|
+
}
|
|
3145
|
+
if (proto.responses) {
|
|
3146
|
+
m.responses = Object.keys(proto.responses).reduce((obj, k) => { obj[k] = Response.fromProto(proto.responses[k]); return obj; }, {});
|
|
3147
|
+
}
|
|
3148
|
+
if (proto.schemes) {
|
|
3149
|
+
m.schemes = proto.schemes.map((v) => enumStringToValue$7(Scheme, v));
|
|
3150
|
+
}
|
|
3151
|
+
if (proto.security) {
|
|
3152
|
+
m.security = proto.security.map(SecurityRequirement.fromProto);
|
|
3153
|
+
}
|
|
3154
|
+
if (proto.extensions) {
|
|
3155
|
+
m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
|
|
3156
|
+
}
|
|
3157
|
+
if (proto.parameters) {
|
|
3158
|
+
m.parameters = Parameters.fromProto(proto.parameters);
|
|
3159
|
+
}
|
|
3160
|
+
return m;
|
|
3161
|
+
}
|
|
3162
|
+
constructor(kwargs) {
|
|
3163
|
+
if (!kwargs) {
|
|
3164
|
+
return;
|
|
3165
|
+
}
|
|
3166
|
+
Object.assign(this, kwargs);
|
|
3167
|
+
}
|
|
3168
|
+
toApiJson() {
|
|
3169
|
+
const toReturn = {};
|
|
3170
|
+
if (typeof this.tags !== 'undefined') {
|
|
3171
|
+
toReturn['tags'] = this.tags;
|
|
3172
|
+
}
|
|
3173
|
+
if (typeof this.summary !== 'undefined') {
|
|
3174
|
+
toReturn['summary'] = this.summary;
|
|
3175
|
+
}
|
|
3176
|
+
if (typeof this.description !== 'undefined') {
|
|
3177
|
+
toReturn['description'] = this.description;
|
|
3178
|
+
}
|
|
3179
|
+
if (typeof this.externalDocs !== 'undefined' && this.externalDocs !== null) {
|
|
3180
|
+
toReturn['externalDocs'] = 'toApiJson' in this.externalDocs ? this.externalDocs.toApiJson() : this.externalDocs;
|
|
3181
|
+
}
|
|
3182
|
+
if (typeof this.operationId !== 'undefined') {
|
|
3183
|
+
toReturn['operationId'] = this.operationId;
|
|
3184
|
+
}
|
|
3185
|
+
if (typeof this.consumes !== 'undefined') {
|
|
3186
|
+
toReturn['consumes'] = this.consumes;
|
|
3187
|
+
}
|
|
3188
|
+
if (typeof this.produces !== 'undefined') {
|
|
3189
|
+
toReturn['produces'] = this.produces;
|
|
3190
|
+
}
|
|
3191
|
+
if (typeof this.responses !== 'undefined' && this.responses !== null) {
|
|
3192
|
+
toReturn['responses'] = 'toApiJson' in this.responses ? this.responses.toApiJson() : this.responses;
|
|
3193
|
+
}
|
|
3194
|
+
if (typeof this.schemes !== 'undefined') {
|
|
3195
|
+
toReturn['schemes'] = this.schemes;
|
|
3196
|
+
}
|
|
3197
|
+
if (typeof this.deprecated !== 'undefined') {
|
|
3198
|
+
toReturn['deprecated'] = this.deprecated;
|
|
3199
|
+
}
|
|
3200
|
+
if (typeof this.security !== 'undefined' && this.security !== null) {
|
|
3201
|
+
toReturn['security'] = 'toApiJson' in this.security ? this.security.toApiJson() : this.security;
|
|
3202
|
+
}
|
|
3203
|
+
if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
|
|
3204
|
+
toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
|
|
3205
|
+
}
|
|
3206
|
+
if (typeof this.parameters !== 'undefined' && this.parameters !== null) {
|
|
3207
|
+
toReturn['parameters'] = 'toApiJson' in this.parameters ? this.parameters.toApiJson() : this.parameters;
|
|
3208
|
+
}
|
|
3209
|
+
return toReturn;
|
|
3210
|
+
}
|
|
3211
|
+
}
|
|
3212
|
+
class Parameters {
|
|
3213
|
+
static fromProto(proto) {
|
|
3214
|
+
let m = new Parameters();
|
|
3215
|
+
m = Object.assign(m, proto);
|
|
3216
|
+
if (proto.headers) {
|
|
3217
|
+
m.headers = proto.headers.map(HeaderParameter.fromProto);
|
|
3218
|
+
}
|
|
3219
|
+
return m;
|
|
3220
|
+
}
|
|
3221
|
+
constructor(kwargs) {
|
|
3222
|
+
if (!kwargs) {
|
|
3223
|
+
return;
|
|
3224
|
+
}
|
|
3225
|
+
Object.assign(this, kwargs);
|
|
3226
|
+
}
|
|
3227
|
+
toApiJson() {
|
|
3228
|
+
const toReturn = {};
|
|
3229
|
+
if (typeof this.headers !== 'undefined' && this.headers !== null) {
|
|
3230
|
+
toReturn['headers'] = 'toApiJson' in this.headers ? this.headers.toApiJson() : this.headers;
|
|
3231
|
+
}
|
|
3232
|
+
return toReturn;
|
|
3233
|
+
}
|
|
3234
|
+
}
|
|
3235
|
+
class Response {
|
|
3236
|
+
static fromProto(proto) {
|
|
3237
|
+
let m = new Response();
|
|
3238
|
+
m = Object.assign(m, proto);
|
|
3239
|
+
if (proto.schema) {
|
|
3240
|
+
m.schema = Schema.fromProto(proto.schema);
|
|
3241
|
+
}
|
|
3242
|
+
if (proto.headers) {
|
|
3243
|
+
m.headers = Object.keys(proto.headers).reduce((obj, k) => { obj[k] = Header.fromProto(proto.headers[k]); return obj; }, {});
|
|
3244
|
+
}
|
|
3245
|
+
if (proto.examples) {
|
|
3246
|
+
m.examples = Object.keys(proto.examples).reduce((obj, k) => { obj[k] = proto.examples[k]; return obj; }, {});
|
|
3247
|
+
}
|
|
3248
|
+
if (proto.extensions) {
|
|
3249
|
+
m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
|
|
3250
|
+
}
|
|
3251
|
+
return m;
|
|
3252
|
+
}
|
|
3253
|
+
constructor(kwargs) {
|
|
3254
|
+
if (!kwargs) {
|
|
3255
|
+
return;
|
|
3256
|
+
}
|
|
3257
|
+
Object.assign(this, kwargs);
|
|
3258
|
+
}
|
|
3259
|
+
toApiJson() {
|
|
3260
|
+
const toReturn = {};
|
|
3261
|
+
if (typeof this.description !== 'undefined') {
|
|
3262
|
+
toReturn['description'] = this.description;
|
|
3263
|
+
}
|
|
3264
|
+
if (typeof this.schema !== 'undefined' && this.schema !== null) {
|
|
3265
|
+
toReturn['schema'] = 'toApiJson' in this.schema ? this.schema.toApiJson() : this.schema;
|
|
3266
|
+
}
|
|
3267
|
+
if (typeof this.headers !== 'undefined' && this.headers !== null) {
|
|
3268
|
+
toReturn['headers'] = 'toApiJson' in this.headers ? this.headers.toApiJson() : this.headers;
|
|
3269
|
+
}
|
|
3270
|
+
if (typeof this.examples !== 'undefined' && this.examples !== null) {
|
|
3271
|
+
toReturn['examples'] = 'toApiJson' in this.examples ? this.examples.toApiJson() : this.examples;
|
|
3272
|
+
}
|
|
3273
|
+
if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
|
|
3274
|
+
toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
|
|
3275
|
+
}
|
|
3276
|
+
return toReturn;
|
|
3277
|
+
}
|
|
3278
|
+
}
|
|
3279
|
+
class OperationResponsesEntry {
|
|
3280
|
+
static fromProto(proto) {
|
|
3281
|
+
let m = new OperationResponsesEntry();
|
|
3282
|
+
m = Object.assign(m, proto);
|
|
3283
|
+
if (proto.value) {
|
|
3284
|
+
m.value = Response.fromProto(proto.value);
|
|
3285
|
+
}
|
|
3286
|
+
return m;
|
|
3287
|
+
}
|
|
3288
|
+
constructor(kwargs) {
|
|
3289
|
+
if (!kwargs) {
|
|
3290
|
+
return;
|
|
3291
|
+
}
|
|
3292
|
+
Object.assign(this, kwargs);
|
|
3293
|
+
}
|
|
3294
|
+
toApiJson() {
|
|
3295
|
+
const toReturn = {};
|
|
3296
|
+
if (typeof this.key !== 'undefined') {
|
|
3297
|
+
toReturn['key'] = this.key;
|
|
3298
|
+
}
|
|
3299
|
+
if (typeof this.value !== 'undefined' && this.value !== null) {
|
|
3300
|
+
toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
|
|
3301
|
+
}
|
|
3302
|
+
return toReturn;
|
|
3303
|
+
}
|
|
3304
|
+
}
|
|
3305
|
+
class SwaggerResponsesEntry {
|
|
3306
|
+
static fromProto(proto) {
|
|
3307
|
+
let m = new SwaggerResponsesEntry();
|
|
3308
|
+
m = Object.assign(m, proto);
|
|
3309
|
+
if (proto.value) {
|
|
3310
|
+
m.value = Response.fromProto(proto.value);
|
|
3311
|
+
}
|
|
3312
|
+
return m;
|
|
3313
|
+
}
|
|
3314
|
+
constructor(kwargs) {
|
|
3315
|
+
if (!kwargs) {
|
|
3316
|
+
return;
|
|
3317
|
+
}
|
|
3318
|
+
Object.assign(this, kwargs);
|
|
3319
|
+
}
|
|
3320
|
+
toApiJson() {
|
|
3321
|
+
const toReturn = {};
|
|
3322
|
+
if (typeof this.key !== 'undefined') {
|
|
3323
|
+
toReturn['key'] = this.key;
|
|
3324
|
+
}
|
|
3325
|
+
if (typeof this.value !== 'undefined' && this.value !== null) {
|
|
3326
|
+
toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
|
|
2204
3327
|
}
|
|
2205
|
-
|
|
2206
|
-
|
|
3328
|
+
return toReturn;
|
|
3329
|
+
}
|
|
3330
|
+
}
|
|
3331
|
+
class Schema {
|
|
3332
|
+
static fromProto(proto) {
|
|
3333
|
+
let m = new Schema();
|
|
3334
|
+
m = Object.assign(m, proto);
|
|
3335
|
+
if (proto.jsonSchema) {
|
|
3336
|
+
m.jsonSchema = JSONSchema.fromProto(proto.jsonSchema);
|
|
2207
3337
|
}
|
|
2208
|
-
if (
|
|
2209
|
-
|
|
3338
|
+
if (proto.externalDocs) {
|
|
3339
|
+
m.externalDocs = ExternalDocumentation.fromProto(proto.externalDocs);
|
|
2210
3340
|
}
|
|
2211
|
-
|
|
2212
|
-
|
|
3341
|
+
return m;
|
|
3342
|
+
}
|
|
3343
|
+
constructor(kwargs) {
|
|
3344
|
+
if (!kwargs) {
|
|
3345
|
+
return;
|
|
2213
3346
|
}
|
|
2214
|
-
|
|
2215
|
-
|
|
3347
|
+
Object.assign(this, kwargs);
|
|
3348
|
+
}
|
|
3349
|
+
toApiJson() {
|
|
3350
|
+
const toReturn = {};
|
|
3351
|
+
if (typeof this.jsonSchema !== 'undefined' && this.jsonSchema !== null) {
|
|
3352
|
+
toReturn['jsonSchema'] = 'toApiJson' in this.jsonSchema ? this.jsonSchema.toApiJson() : this.jsonSchema;
|
|
2216
3353
|
}
|
|
2217
|
-
if (typeof this.
|
|
2218
|
-
toReturn['
|
|
3354
|
+
if (typeof this.discriminator !== 'undefined') {
|
|
3355
|
+
toReturn['discriminator'] = this.discriminator;
|
|
2219
3356
|
}
|
|
2220
|
-
if (typeof this.
|
|
2221
|
-
toReturn['
|
|
3357
|
+
if (typeof this.readOnly !== 'undefined') {
|
|
3358
|
+
toReturn['readOnly'] = this.readOnly;
|
|
2222
3359
|
}
|
|
2223
|
-
if (typeof this.
|
|
2224
|
-
toReturn['
|
|
3360
|
+
if (typeof this.externalDocs !== 'undefined' && this.externalDocs !== null) {
|
|
3361
|
+
toReturn['externalDocs'] = 'toApiJson' in this.externalDocs ? this.externalDocs.toApiJson() : this.externalDocs;
|
|
2225
3362
|
}
|
|
2226
|
-
if (typeof this.
|
|
2227
|
-
toReturn['
|
|
3363
|
+
if (typeof this.example !== 'undefined') {
|
|
3364
|
+
toReturn['example'] = this.example;
|
|
2228
3365
|
}
|
|
2229
|
-
|
|
2230
|
-
|
|
3366
|
+
return toReturn;
|
|
3367
|
+
}
|
|
3368
|
+
}
|
|
3369
|
+
class ScopesScopeEntry {
|
|
3370
|
+
static fromProto(proto) {
|
|
3371
|
+
let m = new ScopesScopeEntry();
|
|
3372
|
+
m = Object.assign(m, proto);
|
|
3373
|
+
return m;
|
|
3374
|
+
}
|
|
3375
|
+
constructor(kwargs) {
|
|
3376
|
+
if (!kwargs) {
|
|
3377
|
+
return;
|
|
2231
3378
|
}
|
|
2232
|
-
|
|
2233
|
-
|
|
3379
|
+
Object.assign(this, kwargs);
|
|
3380
|
+
}
|
|
3381
|
+
toApiJson() {
|
|
3382
|
+
const toReturn = {};
|
|
3383
|
+
if (typeof this.key !== 'undefined') {
|
|
3384
|
+
toReturn['key'] = this.key;
|
|
2234
3385
|
}
|
|
2235
|
-
if (typeof this.
|
|
2236
|
-
toReturn['
|
|
3386
|
+
if (typeof this.value !== 'undefined') {
|
|
3387
|
+
toReturn['value'] = this.value;
|
|
2237
3388
|
}
|
|
2238
|
-
|
|
2239
|
-
|
|
3389
|
+
return toReturn;
|
|
3390
|
+
}
|
|
3391
|
+
}
|
|
3392
|
+
class Scopes {
|
|
3393
|
+
static fromProto(proto) {
|
|
3394
|
+
let m = new Scopes();
|
|
3395
|
+
m = Object.assign(m, proto);
|
|
3396
|
+
if (proto.scope) {
|
|
3397
|
+
m.scope = Object.keys(proto.scope).reduce((obj, k) => { obj[k] = proto.scope[k]; return obj; }, {});
|
|
2240
3398
|
}
|
|
2241
|
-
|
|
2242
|
-
|
|
3399
|
+
return m;
|
|
3400
|
+
}
|
|
3401
|
+
constructor(kwargs) {
|
|
3402
|
+
if (!kwargs) {
|
|
3403
|
+
return;
|
|
2243
3404
|
}
|
|
2244
|
-
|
|
2245
|
-
|
|
3405
|
+
Object.assign(this, kwargs);
|
|
3406
|
+
}
|
|
3407
|
+
toApiJson() {
|
|
3408
|
+
const toReturn = {};
|
|
3409
|
+
if (typeof this.scope !== 'undefined' && this.scope !== null) {
|
|
3410
|
+
toReturn['scope'] = 'toApiJson' in this.scope ? this.scope.toApiJson() : this.scope;
|
|
2246
3411
|
}
|
|
2247
|
-
|
|
2248
|
-
|
|
3412
|
+
return toReturn;
|
|
3413
|
+
}
|
|
3414
|
+
}
|
|
3415
|
+
class SecurityDefinitions {
|
|
3416
|
+
static fromProto(proto) {
|
|
3417
|
+
let m = new SecurityDefinitions();
|
|
3418
|
+
m = Object.assign(m, proto);
|
|
3419
|
+
if (proto.security) {
|
|
3420
|
+
m.security = Object.keys(proto.security).reduce((obj, k) => { obj[k] = SecurityScheme.fromProto(proto.security[k]); return obj; }, {});
|
|
2249
3421
|
}
|
|
2250
|
-
|
|
2251
|
-
|
|
3422
|
+
return m;
|
|
3423
|
+
}
|
|
3424
|
+
constructor(kwargs) {
|
|
3425
|
+
if (!kwargs) {
|
|
3426
|
+
return;
|
|
2252
3427
|
}
|
|
2253
|
-
|
|
2254
|
-
|
|
3428
|
+
Object.assign(this, kwargs);
|
|
3429
|
+
}
|
|
3430
|
+
toApiJson() {
|
|
3431
|
+
const toReturn = {};
|
|
3432
|
+
if (typeof this.security !== 'undefined' && this.security !== null) {
|
|
3433
|
+
toReturn['security'] = 'toApiJson' in this.security ? this.security.toApiJson() : this.security;
|
|
2255
3434
|
}
|
|
2256
3435
|
return toReturn;
|
|
2257
3436
|
}
|
|
2258
3437
|
}
|
|
2259
|
-
class
|
|
3438
|
+
class SecurityDefinitionsSecurityEntry {
|
|
2260
3439
|
static fromProto(proto) {
|
|
2261
|
-
let m = new
|
|
3440
|
+
let m = new SecurityDefinitionsSecurityEntry();
|
|
2262
3441
|
m = Object.assign(m, proto);
|
|
2263
|
-
if (proto.unit) {
|
|
2264
|
-
m.unit = enumStringToValue$8(RegistrationCutOffUnit, proto.unit);
|
|
2265
|
-
}
|
|
2266
3442
|
if (proto.value) {
|
|
2267
|
-
m.value =
|
|
3443
|
+
m.value = SecurityScheme.fromProto(proto.value);
|
|
2268
3444
|
}
|
|
2269
3445
|
return m;
|
|
2270
3446
|
}
|
|
@@ -2276,24 +3452,44 @@ class RegistrationCutOff {
|
|
|
2276
3452
|
}
|
|
2277
3453
|
toApiJson() {
|
|
2278
3454
|
const toReturn = {};
|
|
2279
|
-
if (typeof this.
|
|
2280
|
-
toReturn['
|
|
3455
|
+
if (typeof this.key !== 'undefined') {
|
|
3456
|
+
toReturn['key'] = this.key;
|
|
2281
3457
|
}
|
|
2282
|
-
if (typeof this.value !== 'undefined') {
|
|
2283
|
-
toReturn['value'] = this.value;
|
|
3458
|
+
if (typeof this.value !== 'undefined' && this.value !== null) {
|
|
3459
|
+
toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
|
|
2284
3460
|
}
|
|
2285
3461
|
return toReturn;
|
|
2286
3462
|
}
|
|
2287
3463
|
}
|
|
2288
|
-
class
|
|
3464
|
+
class SecurityRequirement {
|
|
2289
3465
|
static fromProto(proto) {
|
|
2290
|
-
let m = new
|
|
3466
|
+
let m = new SecurityRequirement();
|
|
2291
3467
|
m = Object.assign(m, proto);
|
|
2292
|
-
if (proto.
|
|
2293
|
-
m.
|
|
3468
|
+
if (proto.securityRequirement) {
|
|
3469
|
+
m.securityRequirement = Object.keys(proto.securityRequirement).reduce((obj, k) => { obj[k] = SecurityRequirementSecurityRequirementValue.fromProto(proto.securityRequirement[k]); return obj; }, {});
|
|
3470
|
+
}
|
|
3471
|
+
return m;
|
|
3472
|
+
}
|
|
3473
|
+
constructor(kwargs) {
|
|
3474
|
+
if (!kwargs) {
|
|
3475
|
+
return;
|
|
3476
|
+
}
|
|
3477
|
+
Object.assign(this, kwargs);
|
|
3478
|
+
}
|
|
3479
|
+
toApiJson() {
|
|
3480
|
+
const toReturn = {};
|
|
3481
|
+
if (typeof this.securityRequirement !== 'undefined' && this.securityRequirement !== null) {
|
|
3482
|
+
toReturn['securityRequirement'] = 'toApiJson' in this.securityRequirement ? this.securityRequirement.toApiJson() : this.securityRequirement;
|
|
2294
3483
|
}
|
|
3484
|
+
return toReturn;
|
|
3485
|
+
}
|
|
3486
|
+
}
|
|
3487
|
+
class SecurityRequirementSecurityRequirementEntry {
|
|
3488
|
+
static fromProto(proto) {
|
|
3489
|
+
let m = new SecurityRequirementSecurityRequirementEntry();
|
|
3490
|
+
m = Object.assign(m, proto);
|
|
2295
3491
|
if (proto.value) {
|
|
2296
|
-
m.value =
|
|
3492
|
+
m.value = SecurityRequirementSecurityRequirementValue.fromProto(proto.value);
|
|
2297
3493
|
}
|
|
2298
3494
|
return m;
|
|
2299
3495
|
}
|
|
@@ -2305,25 +3501,18 @@ class RelativeDateRange {
|
|
|
2305
3501
|
}
|
|
2306
3502
|
toApiJson() {
|
|
2307
3503
|
const toReturn = {};
|
|
2308
|
-
if (typeof this.
|
|
2309
|
-
toReturn['
|
|
3504
|
+
if (typeof this.key !== 'undefined') {
|
|
3505
|
+
toReturn['key'] = this.key;
|
|
2310
3506
|
}
|
|
2311
|
-
if (typeof this.value !== 'undefined') {
|
|
2312
|
-
toReturn['value'] = this.value;
|
|
3507
|
+
if (typeof this.value !== 'undefined' && this.value !== null) {
|
|
3508
|
+
toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
|
|
2313
3509
|
}
|
|
2314
3510
|
return toReturn;
|
|
2315
3511
|
}
|
|
2316
3512
|
}
|
|
2317
|
-
|
|
2318
|
-
function enumStringToValue$7(enumRef, value) {
|
|
2319
|
-
if (typeof value === 'number') {
|
|
2320
|
-
return value;
|
|
2321
|
-
}
|
|
2322
|
-
return enumRef[value];
|
|
2323
|
-
}
|
|
2324
|
-
class EventGroupAndServiceAssociations {
|
|
3513
|
+
class SecurityRequirementSecurityRequirementValue {
|
|
2325
3514
|
static fromProto(proto) {
|
|
2326
|
-
let m = new
|
|
3515
|
+
let m = new SecurityRequirementSecurityRequirementValue();
|
|
2327
3516
|
m = Object.assign(m, proto);
|
|
2328
3517
|
return m;
|
|
2329
3518
|
}
|
|
@@ -2335,48 +3524,98 @@ class EventGroupAndServiceAssociations {
|
|
|
2335
3524
|
}
|
|
2336
3525
|
toApiJson() {
|
|
2337
3526
|
const toReturn = {};
|
|
2338
|
-
if (typeof this.
|
|
2339
|
-
toReturn['
|
|
2340
|
-
}
|
|
2341
|
-
if (typeof this.name !== 'undefined') {
|
|
2342
|
-
toReturn['name'] = this.name;
|
|
3527
|
+
if (typeof this.scope !== 'undefined') {
|
|
3528
|
+
toReturn['scope'] = this.scope;
|
|
2343
3529
|
}
|
|
2344
|
-
|
|
2345
|
-
|
|
3530
|
+
return toReturn;
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3533
|
+
class SecurityScheme {
|
|
3534
|
+
static fromProto(proto) {
|
|
3535
|
+
let m = new SecurityScheme();
|
|
3536
|
+
m = Object.assign(m, proto);
|
|
3537
|
+
if (proto.type) {
|
|
3538
|
+
m.type = enumStringToValue$7(SecuritySchemeType, proto.type);
|
|
2346
3539
|
}
|
|
2347
|
-
if (
|
|
2348
|
-
|
|
3540
|
+
if (proto.in) {
|
|
3541
|
+
m.in = enumStringToValue$7(SecuritySchemeIn, proto.in);
|
|
2349
3542
|
}
|
|
2350
|
-
if (
|
|
2351
|
-
|
|
3543
|
+
if (proto.flow) {
|
|
3544
|
+
m.flow = enumStringToValue$7(SecuritySchemeFlow, proto.flow);
|
|
2352
3545
|
}
|
|
2353
|
-
if (
|
|
2354
|
-
|
|
3546
|
+
if (proto.scopes) {
|
|
3547
|
+
m.scopes = Scopes.fromProto(proto.scopes);
|
|
2355
3548
|
}
|
|
2356
|
-
if (
|
|
2357
|
-
|
|
3549
|
+
if (proto.extensions) {
|
|
3550
|
+
m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
|
|
2358
3551
|
}
|
|
2359
|
-
|
|
2360
|
-
|
|
3552
|
+
return m;
|
|
3553
|
+
}
|
|
3554
|
+
constructor(kwargs) {
|
|
3555
|
+
if (!kwargs) {
|
|
3556
|
+
return;
|
|
2361
3557
|
}
|
|
2362
|
-
|
|
2363
|
-
|
|
3558
|
+
Object.assign(this, kwargs);
|
|
3559
|
+
}
|
|
3560
|
+
toApiJson() {
|
|
3561
|
+
const toReturn = {};
|
|
3562
|
+
if (typeof this.type !== 'undefined') {
|
|
3563
|
+
toReturn['type'] = this.type;
|
|
2364
3564
|
}
|
|
2365
3565
|
if (typeof this.description !== 'undefined') {
|
|
2366
3566
|
toReturn['description'] = this.description;
|
|
2367
3567
|
}
|
|
2368
|
-
if (typeof this.
|
|
2369
|
-
toReturn['
|
|
3568
|
+
if (typeof this.name !== 'undefined') {
|
|
3569
|
+
toReturn['name'] = this.name;
|
|
3570
|
+
}
|
|
3571
|
+
if (typeof this.in !== 'undefined') {
|
|
3572
|
+
toReturn['in'] = this.in;
|
|
3573
|
+
}
|
|
3574
|
+
if (typeof this.flow !== 'undefined') {
|
|
3575
|
+
toReturn['flow'] = this.flow;
|
|
3576
|
+
}
|
|
3577
|
+
if (typeof this.authorizationUrl !== 'undefined') {
|
|
3578
|
+
toReturn['authorizationUrl'] = this.authorizationUrl;
|
|
3579
|
+
}
|
|
3580
|
+
if (typeof this.tokenUrl !== 'undefined') {
|
|
3581
|
+
toReturn['tokenUrl'] = this.tokenUrl;
|
|
3582
|
+
}
|
|
3583
|
+
if (typeof this.scopes !== 'undefined' && this.scopes !== null) {
|
|
3584
|
+
toReturn['scopes'] = 'toApiJson' in this.scopes ? this.scopes.toApiJson() : this.scopes;
|
|
3585
|
+
}
|
|
3586
|
+
if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
|
|
3587
|
+
toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
|
|
2370
3588
|
}
|
|
2371
3589
|
return toReturn;
|
|
2372
3590
|
}
|
|
2373
3591
|
}
|
|
2374
|
-
class
|
|
3592
|
+
class Swagger {
|
|
2375
3593
|
static fromProto(proto) {
|
|
2376
|
-
let m = new
|
|
3594
|
+
let m = new Swagger();
|
|
2377
3595
|
m = Object.assign(m, proto);
|
|
2378
|
-
if (proto.
|
|
2379
|
-
m.
|
|
3596
|
+
if (proto.info) {
|
|
3597
|
+
m.info = Info.fromProto(proto.info);
|
|
3598
|
+
}
|
|
3599
|
+
if (proto.schemes) {
|
|
3600
|
+
m.schemes = proto.schemes.map((v) => enumStringToValue$7(Scheme, v));
|
|
3601
|
+
}
|
|
3602
|
+
if (proto.responses) {
|
|
3603
|
+
m.responses = Object.keys(proto.responses).reduce((obj, k) => { obj[k] = Response.fromProto(proto.responses[k]); return obj; }, {});
|
|
3604
|
+
}
|
|
3605
|
+
if (proto.securityDefinitions) {
|
|
3606
|
+
m.securityDefinitions = SecurityDefinitions.fromProto(proto.securityDefinitions);
|
|
3607
|
+
}
|
|
3608
|
+
if (proto.security) {
|
|
3609
|
+
m.security = proto.security.map(SecurityRequirement.fromProto);
|
|
3610
|
+
}
|
|
3611
|
+
if (proto.tags) {
|
|
3612
|
+
m.tags = proto.tags.map(Tag.fromProto);
|
|
3613
|
+
}
|
|
3614
|
+
if (proto.externalDocs) {
|
|
3615
|
+
m.externalDocs = ExternalDocumentation.fromProto(proto.externalDocs);
|
|
3616
|
+
}
|
|
3617
|
+
if (proto.extensions) {
|
|
3618
|
+
m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
|
|
2380
3619
|
}
|
|
2381
3620
|
return m;
|
|
2382
3621
|
}
|
|
@@ -2388,39 +3627,57 @@ class Group {
|
|
|
2388
3627
|
}
|
|
2389
3628
|
toApiJson() {
|
|
2390
3629
|
const toReturn = {};
|
|
2391
|
-
if (typeof this.
|
|
2392
|
-
toReturn['
|
|
3630
|
+
if (typeof this.swagger !== 'undefined') {
|
|
3631
|
+
toReturn['swagger'] = this.swagger;
|
|
2393
3632
|
}
|
|
2394
|
-
if (typeof this.
|
|
2395
|
-
toReturn['
|
|
3633
|
+
if (typeof this.info !== 'undefined' && this.info !== null) {
|
|
3634
|
+
toReturn['info'] = 'toApiJson' in this.info ? this.info.toApiJson() : this.info;
|
|
2396
3635
|
}
|
|
2397
|
-
if (typeof this.
|
|
2398
|
-
toReturn['
|
|
3636
|
+
if (typeof this.host !== 'undefined') {
|
|
3637
|
+
toReturn['host'] = this.host;
|
|
2399
3638
|
}
|
|
2400
|
-
if (typeof this.
|
|
2401
|
-
toReturn['
|
|
3639
|
+
if (typeof this.basePath !== 'undefined') {
|
|
3640
|
+
toReturn['basePath'] = this.basePath;
|
|
2402
3641
|
}
|
|
2403
|
-
if (typeof this.
|
|
2404
|
-
toReturn['
|
|
3642
|
+
if (typeof this.schemes !== 'undefined') {
|
|
3643
|
+
toReturn['schemes'] = this.schemes;
|
|
2405
3644
|
}
|
|
2406
|
-
if (typeof this.
|
|
2407
|
-
toReturn['
|
|
3645
|
+
if (typeof this.consumes !== 'undefined') {
|
|
3646
|
+
toReturn['consumes'] = this.consumes;
|
|
2408
3647
|
}
|
|
2409
|
-
if (typeof this.
|
|
2410
|
-
toReturn['
|
|
3648
|
+
if (typeof this.produces !== 'undefined') {
|
|
3649
|
+
toReturn['produces'] = this.produces;
|
|
2411
3650
|
}
|
|
2412
|
-
if (typeof this.
|
|
2413
|
-
toReturn['
|
|
3651
|
+
if (typeof this.responses !== 'undefined' && this.responses !== null) {
|
|
3652
|
+
toReturn['responses'] = 'toApiJson' in this.responses ? this.responses.toApiJson() : this.responses;
|
|
3653
|
+
}
|
|
3654
|
+
if (typeof this.securityDefinitions !== 'undefined' && this.securityDefinitions !== null) {
|
|
3655
|
+
toReturn['securityDefinitions'] = 'toApiJson' in this.securityDefinitions ? this.securityDefinitions.toApiJson() : this.securityDefinitions;
|
|
3656
|
+
}
|
|
3657
|
+
if (typeof this.security !== 'undefined' && this.security !== null) {
|
|
3658
|
+
toReturn['security'] = 'toApiJson' in this.security ? this.security.toApiJson() : this.security;
|
|
3659
|
+
}
|
|
3660
|
+
if (typeof this.tags !== 'undefined' && this.tags !== null) {
|
|
3661
|
+
toReturn['tags'] = 'toApiJson' in this.tags ? this.tags.toApiJson() : this.tags;
|
|
3662
|
+
}
|
|
3663
|
+
if (typeof this.externalDocs !== 'undefined' && this.externalDocs !== null) {
|
|
3664
|
+
toReturn['externalDocs'] = 'toApiJson' in this.externalDocs ? this.externalDocs.toApiJson() : this.externalDocs;
|
|
3665
|
+
}
|
|
3666
|
+
if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
|
|
3667
|
+
toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
|
|
2414
3668
|
}
|
|
2415
3669
|
return toReturn;
|
|
2416
3670
|
}
|
|
2417
3671
|
}
|
|
2418
|
-
class
|
|
3672
|
+
class Tag {
|
|
2419
3673
|
static fromProto(proto) {
|
|
2420
|
-
let m = new
|
|
3674
|
+
let m = new Tag();
|
|
2421
3675
|
m = Object.assign(m, proto);
|
|
2422
|
-
if (proto.
|
|
2423
|
-
m.
|
|
3676
|
+
if (proto.externalDocs) {
|
|
3677
|
+
m.externalDocs = ExternalDocumentation.fromProto(proto.externalDocs);
|
|
3678
|
+
}
|
|
3679
|
+
if (proto.extensions) {
|
|
3680
|
+
m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
|
|
2424
3681
|
}
|
|
2425
3682
|
return m;
|
|
2426
3683
|
}
|
|
@@ -2432,29 +3689,17 @@ class Service {
|
|
|
2432
3689
|
}
|
|
2433
3690
|
toApiJson() {
|
|
2434
3691
|
const toReturn = {};
|
|
2435
|
-
if (typeof this.id !== 'undefined') {
|
|
2436
|
-
toReturn['id'] = this.id;
|
|
2437
|
-
}
|
|
2438
3692
|
if (typeof this.name !== 'undefined') {
|
|
2439
3693
|
toReturn['name'] = this.name;
|
|
2440
3694
|
}
|
|
2441
3695
|
if (typeof this.description !== 'undefined') {
|
|
2442
3696
|
toReturn['description'] = this.description;
|
|
2443
3697
|
}
|
|
2444
|
-
if (typeof this.
|
|
2445
|
-
toReturn['
|
|
2446
|
-
}
|
|
2447
|
-
if (typeof this.isPinned !== 'undefined') {
|
|
2448
|
-
toReturn['isPinned'] = this.isPinned;
|
|
2449
|
-
}
|
|
2450
|
-
if (typeof this.associations !== 'undefined' && this.associations !== null) {
|
|
2451
|
-
toReturn['associations'] = 'toApiJson' in this.associations ? this.associations.toApiJson() : this.associations;
|
|
2452
|
-
}
|
|
2453
|
-
if (typeof this.hexColor !== 'undefined') {
|
|
2454
|
-
toReturn['hexColor'] = this.hexColor;
|
|
3698
|
+
if (typeof this.externalDocs !== 'undefined' && this.externalDocs !== null) {
|
|
3699
|
+
toReturn['externalDocs'] = 'toApiJson' in this.externalDocs ? this.externalDocs.toApiJson() : this.externalDocs;
|
|
2455
3700
|
}
|
|
2456
|
-
if (typeof this.
|
|
2457
|
-
toReturn['
|
|
3701
|
+
if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
|
|
3702
|
+
toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
|
|
2458
3703
|
}
|
|
2459
3704
|
return toReturn;
|
|
2460
3705
|
}
|
|
@@ -3263,6 +4508,9 @@ class GuestGetBookedMeetingResponseV2 {
|
|
|
3263
4508
|
if (typeof this.previousEndTime !== 'undefined' && this.previousEndTime !== null) {
|
|
3264
4509
|
toReturn['previousEndTime'] = 'toApiJson' in this.previousEndTime ? this.previousEndTime.toApiJson() : this.previousEndTime;
|
|
3265
4510
|
}
|
|
4511
|
+
if (typeof this.isCancelled !== 'undefined') {
|
|
4512
|
+
toReturn['isCancelled'] = this.isCancelled;
|
|
4513
|
+
}
|
|
3266
4514
|
return toReturn;
|
|
3267
4515
|
}
|
|
3268
4516
|
}
|
|
@@ -5573,7 +6821,7 @@ class HostBookMeetingRequest {
|
|
|
5573
6821
|
m.timeSlot = DateRange.fromProto(proto.timeSlot);
|
|
5574
6822
|
}
|
|
5575
6823
|
if (proto.attendees) {
|
|
5576
|
-
m.attendees = proto.attendees.map(Contact.fromProto);
|
|
6824
|
+
m.attendees = proto.attendees.map(Contact$1.fromProto);
|
|
5577
6825
|
}
|
|
5578
6826
|
if (proto.bookingSource) {
|
|
5579
6827
|
m.bookingSource = enumStringToValue$3(BookingSource, proto.bookingSource);
|
|
@@ -9250,5 +10498,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
|
|
|
9250
10498
|
* Generated bundle index. Do not edit.
|
|
9251
10499
|
*/
|
|
9252
10500
|
|
|
9253
|
-
export { BookingSource, CalendarSource, CalendarType, CheckFeatureFlagRequest, CheckFeatureFlagResponse, Contact, CreateCalendarRequest, CreateCalendarResponse, DateRangeType, DayOfWeek, FeatureFlagFieldType, FormFieldType, GuestService, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, MeetingLocation, MeetingLocationType, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceOrigin, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, NotificationType, OnBoardingState, PagedResponse, RegistrationCutOffUnit, RelativeTimeUnit, TeamEventMeetingType, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
|
|
10501
|
+
export { BookingSource, CalendarSource, CalendarType, CheckFeatureFlagRequest, CheckFeatureFlagResponse, Contact$1 as Contact, CreateCalendarRequest, CreateCalendarResponse, DateRangeType, DayOfWeek, FeatureFlagFieldType, FormFieldType, GuestService, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, MeetingLocation, MeetingLocationType, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceOrigin, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, NotificationType, OnBoardingState, PagedResponse, RegistrationCutOffUnit, RelativeTimeUnit, TeamEventMeetingType, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
|
|
9254
10502
|
//# sourceMappingURL=vendasta-meetings.mjs.map
|