@vendasta/meetings 0.99.2 → 0.99.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 -2
- package/esm2020/lib/_internal/enums/meeting-type.enum.mjs +7 -1
- package/esm2020/lib/_internal/enums/shared.enum.mjs +2 -1
- package/esm2020/lib/_internal/interfaces/google-meet.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-host.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-type.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/shared.interface.mjs +1 -1
- package/esm2020/lib/_internal/meeting-guest.api.service.mjs +6 -2
- package/esm2020/lib/_internal/meeting-host.api.service.mjs +12 -2
- package/esm2020/lib/_internal/objects/google-meet.mjs +4 -1
- package/esm2020/lib/_internal/objects/index.mjs +13 -13
- package/esm2020/lib/_internal/objects/meeting-guest.mjs +39 -1
- package/esm2020/lib/_internal/objects/meeting-host.mjs +143 -6
- package/esm2020/lib/_internal/objects/meeting-type.mjs +34 -5
- package/esm2020/lib/_internal/objects/shared.mjs +4 -1
- package/esm2020/lib/guest/guest.service.mjs +1 -1
- package/esm2020/lib/host/host.service.mjs +6 -1
- package/esm2020/lib/shared/host-user.mjs +3 -2
- package/esm2020/lib/shared/meeting-type.mjs +34 -29
- package/fesm2015/vendasta-meetings.mjs +275 -33
- package/fesm2015/vendasta-meetings.mjs.map +1 -1
- package/fesm2020/vendasta-meetings.mjs +277 -35
- package/fesm2020/vendasta-meetings.mjs.map +1 -1
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/enums/meeting-type.enum.d.ts +5 -0
- package/lib/_internal/enums/shared.enum.d.ts +2 -1
- package/lib/_internal/interfaces/google-meet.interface.d.ts +1 -0
- package/lib/_internal/interfaces/index.d.ts +12 -12
- package/lib/_internal/interfaces/meeting-guest.interface.d.ts +7 -0
- package/lib/_internal/interfaces/meeting-host.interface.d.ts +28 -3
- package/lib/_internal/interfaces/meeting-type.interface.d.ts +5 -1
- package/lib/_internal/interfaces/shared.interface.d.ts +1 -0
- package/lib/_internal/meeting-guest.api.service.d.ts +3 -2
- package/lib/_internal/meeting-host.api.service.d.ts +4 -2
- package/lib/_internal/objects/google-meet.d.ts +1 -0
- package/lib/_internal/objects/index.d.ts +12 -12
- package/lib/_internal/objects/meeting-guest.d.ts +10 -0
- package/lib/_internal/objects/meeting-host.d.ts +44 -7
- package/lib/_internal/objects/meeting-type.d.ts +8 -1
- package/lib/_internal/objects/shared.d.ts +1 -0
- package/lib/host/host.service.d.ts +5 -2
- package/lib/shared/host-user.d.ts +1 -0
- package/lib/shared/meeting-type.d.ts +4 -4
- package/package.json +1 -1
|
@@ -109,6 +109,7 @@ var CalendarType;
|
|
|
109
109
|
CalendarType[CalendarType["CALENDAR_TYPE_INVALID"] = 0] = "CALENDAR_TYPE_INVALID";
|
|
110
110
|
CalendarType[CalendarType["CALENDAR_TYPE_PERSONAL"] = 1] = "CALENDAR_TYPE_PERSONAL";
|
|
111
111
|
CalendarType[CalendarType["CALENDAR_TYPE_GROUP"] = 2] = "CALENDAR_TYPE_GROUP";
|
|
112
|
+
CalendarType[CalendarType["CALENDAR_TYPE_SESSION"] = 3] = "CALENDAR_TYPE_SESSION";
|
|
112
113
|
})(CalendarType || (CalendarType = {}));
|
|
113
114
|
var FormFieldType;
|
|
114
115
|
(function (FormFieldType) {
|
|
@@ -144,6 +145,12 @@ var MeetingLocationType;
|
|
|
144
145
|
MeetingLocationType[MeetingLocationType["IN_PERSON_USER_SITE"] = 1] = "IN_PERSON_USER_SITE";
|
|
145
146
|
MeetingLocationType[MeetingLocationType["IN_PERSON_CLIENT_SITE"] = 2] = "IN_PERSON_CLIENT_SITE";
|
|
146
147
|
})(MeetingLocationType || (MeetingLocationType = {}));
|
|
148
|
+
var RegistrationCutOffUnit;
|
|
149
|
+
(function (RegistrationCutOffUnit) {
|
|
150
|
+
RegistrationCutOffUnit[RegistrationCutOffUnit["REGISTRATION_CUTOFF_DAYS"] = 0] = "REGISTRATION_CUTOFF_DAYS";
|
|
151
|
+
RegistrationCutOffUnit[RegistrationCutOffUnit["REGISTRATION_CUTOFF_HOURS"] = 1] = "REGISTRATION_CUTOFF_HOURS";
|
|
152
|
+
RegistrationCutOffUnit[RegistrationCutOffUnit["REGISTRATION_CUTOFF_MINUTES"] = 2] = "REGISTRATION_CUTOFF_MINUTES";
|
|
153
|
+
})(RegistrationCutOffUnit || (RegistrationCutOffUnit = {}));
|
|
147
154
|
var RelativeTimeUnit;
|
|
148
155
|
(function (RelativeTimeUnit) {
|
|
149
156
|
RelativeTimeUnit[RelativeTimeUnit["DAYS"] = 0] = "DAYS";
|
|
@@ -848,6 +855,9 @@ class GoogleMeetListMeetingsRequest {
|
|
|
848
855
|
if (typeof this.timeMax !== 'undefined' && this.timeMax !== null) {
|
|
849
856
|
toReturn['timeMax'] = 'toApiJson' in this.timeMax ? this.timeMax.toApiJson() : this.timeMax;
|
|
850
857
|
}
|
|
858
|
+
if (typeof this.singleEvents !== 'undefined') {
|
|
859
|
+
toReturn['singleEvents'] = this.singleEvents;
|
|
860
|
+
}
|
|
851
861
|
return toReturn;
|
|
852
862
|
}
|
|
853
863
|
}
|
|
@@ -1624,6 +1634,9 @@ class HostUser {
|
|
|
1624
1634
|
if (typeof this.isConfigured !== 'undefined') {
|
|
1625
1635
|
toReturn['isConfigured'] = this.isConfigured;
|
|
1626
1636
|
}
|
|
1637
|
+
if (typeof this.isConnected !== 'undefined') {
|
|
1638
|
+
toReturn['isConnected'] = this.isConnected;
|
|
1639
|
+
}
|
|
1627
1640
|
return toReturn;
|
|
1628
1641
|
}
|
|
1629
1642
|
}
|
|
@@ -1941,7 +1954,7 @@ class MeetingType {
|
|
|
1941
1954
|
m.attendeeCount = parseInt(proto.attendeeCount, 10);
|
|
1942
1955
|
}
|
|
1943
1956
|
if (proto.registrationCutoff) {
|
|
1944
|
-
m.registrationCutoff =
|
|
1957
|
+
m.registrationCutoff = RegistrationCutOff.fromProto(proto.registrationCutoff);
|
|
1945
1958
|
}
|
|
1946
1959
|
return m;
|
|
1947
1960
|
}
|
|
@@ -2040,12 +2053,41 @@ class MeetingType {
|
|
|
2040
2053
|
if (typeof this.attendeeCount !== 'undefined') {
|
|
2041
2054
|
toReturn['attendeeCount'] = this.attendeeCount;
|
|
2042
2055
|
}
|
|
2043
|
-
if (typeof this.registrationCutoff !== 'undefined') {
|
|
2044
|
-
toReturn['registrationCutoff'] = this.registrationCutoff;
|
|
2045
|
-
}
|
|
2046
2056
|
if (typeof this.sessionTitle !== 'undefined') {
|
|
2047
2057
|
toReturn['sessionTitle'] = this.sessionTitle;
|
|
2048
2058
|
}
|
|
2059
|
+
if (typeof this.registrationCutoff !== 'undefined' && this.registrationCutoff !== null) {
|
|
2060
|
+
toReturn['registrationCutoff'] = 'toApiJson' in this.registrationCutoff ? this.registrationCutoff.toApiJson() : this.registrationCutoff;
|
|
2061
|
+
}
|
|
2062
|
+
return toReturn;
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
class RegistrationCutOff {
|
|
2066
|
+
static fromProto(proto) {
|
|
2067
|
+
let m = new RegistrationCutOff();
|
|
2068
|
+
m = Object.assign(m, proto);
|
|
2069
|
+
if (proto.unit) {
|
|
2070
|
+
m.unit = enumStringToValue$6(RegistrationCutOffUnit, proto.unit);
|
|
2071
|
+
}
|
|
2072
|
+
if (proto.value) {
|
|
2073
|
+
m.value = parseInt(proto.value, 10);
|
|
2074
|
+
}
|
|
2075
|
+
return m;
|
|
2076
|
+
}
|
|
2077
|
+
constructor(kwargs) {
|
|
2078
|
+
if (!kwargs) {
|
|
2079
|
+
return;
|
|
2080
|
+
}
|
|
2081
|
+
Object.assign(this, kwargs);
|
|
2082
|
+
}
|
|
2083
|
+
toApiJson() {
|
|
2084
|
+
const toReturn = {};
|
|
2085
|
+
if (typeof this.unit !== 'undefined') {
|
|
2086
|
+
toReturn['unit'] = this.unit;
|
|
2087
|
+
}
|
|
2088
|
+
if (typeof this.value !== 'undefined') {
|
|
2089
|
+
toReturn['value'] = this.value;
|
|
2090
|
+
}
|
|
2049
2091
|
return toReturn;
|
|
2050
2092
|
}
|
|
2051
2093
|
}
|
|
@@ -2902,6 +2944,44 @@ class BookMeetingRequestMetadataEntry {
|
|
|
2902
2944
|
return toReturn;
|
|
2903
2945
|
}
|
|
2904
2946
|
}
|
|
2947
|
+
class RegisterSessionRequest {
|
|
2948
|
+
static fromProto(proto) {
|
|
2949
|
+
let m = new RegisterSessionRequest();
|
|
2950
|
+
m = Object.assign(m, proto);
|
|
2951
|
+
if (proto.attendees) {
|
|
2952
|
+
m.attendees = proto.attendees.map(Contact.fromProto);
|
|
2953
|
+
}
|
|
2954
|
+
if (proto.formAnswers) {
|
|
2955
|
+
m.formAnswers = Answers.fromProto(proto.formAnswers);
|
|
2956
|
+
}
|
|
2957
|
+
return m;
|
|
2958
|
+
}
|
|
2959
|
+
constructor(kwargs) {
|
|
2960
|
+
if (!kwargs) {
|
|
2961
|
+
return;
|
|
2962
|
+
}
|
|
2963
|
+
Object.assign(this, kwargs);
|
|
2964
|
+
}
|
|
2965
|
+
toApiJson() {
|
|
2966
|
+
const toReturn = {};
|
|
2967
|
+
if (typeof this.meetingId !== 'undefined') {
|
|
2968
|
+
toReturn['meetingId'] = this.meetingId;
|
|
2969
|
+
}
|
|
2970
|
+
if (typeof this.attendees !== 'undefined' && this.attendees !== null) {
|
|
2971
|
+
toReturn['attendees'] = 'toApiJson' in this.attendees ? this.attendees.toApiJson() : this.attendees;
|
|
2972
|
+
}
|
|
2973
|
+
if (typeof this.comment !== 'undefined') {
|
|
2974
|
+
toReturn['comment'] = this.comment;
|
|
2975
|
+
}
|
|
2976
|
+
if (typeof this.formAnswers !== 'undefined' && this.formAnswers !== null) {
|
|
2977
|
+
toReturn['formAnswers'] = 'toApiJson' in this.formAnswers ? this.formAnswers.toApiJson() : this.formAnswers;
|
|
2978
|
+
}
|
|
2979
|
+
if (typeof this.recaptchaToken !== 'undefined') {
|
|
2980
|
+
toReturn['recaptchaToken'] = this.recaptchaToken;
|
|
2981
|
+
}
|
|
2982
|
+
return toReturn;
|
|
2983
|
+
}
|
|
2984
|
+
}
|
|
2905
2985
|
|
|
2906
2986
|
function enumStringToValue$3(enumRef, value) {
|
|
2907
2987
|
if (typeof value === 'number') {
|
|
@@ -2959,9 +3039,9 @@ class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
|
|
|
2959
3039
|
return toReturn;
|
|
2960
3040
|
}
|
|
2961
3041
|
}
|
|
2962
|
-
class
|
|
3042
|
+
class BuildHostIdRequestApplicationContextPropertiesEntry {
|
|
2963
3043
|
static fromProto(proto) {
|
|
2964
|
-
let m = new
|
|
3044
|
+
let m = new BuildHostIdRequestApplicationContextPropertiesEntry();
|
|
2965
3045
|
m = Object.assign(m, proto);
|
|
2966
3046
|
return m;
|
|
2967
3047
|
}
|
|
@@ -2982,9 +3062,9 @@ class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
|
|
|
2982
3062
|
return toReturn;
|
|
2983
3063
|
}
|
|
2984
3064
|
}
|
|
2985
|
-
class
|
|
3065
|
+
class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
|
|
2986
3066
|
static fromProto(proto) {
|
|
2987
|
-
let m = new
|
|
3067
|
+
let m = new EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry();
|
|
2988
3068
|
m = Object.assign(m, proto);
|
|
2989
3069
|
return m;
|
|
2990
3070
|
}
|
|
@@ -3695,6 +3775,46 @@ class EnsurePersonalCalendarExistsResponse {
|
|
|
3695
3775
|
return toReturn;
|
|
3696
3776
|
}
|
|
3697
3777
|
}
|
|
3778
|
+
class EnsureSessionEventCalendarsExistRequest {
|
|
3779
|
+
static fromProto(proto) {
|
|
3780
|
+
let m = new EnsureSessionEventCalendarsExistRequest();
|
|
3781
|
+
m = Object.assign(m, proto);
|
|
3782
|
+
return m;
|
|
3783
|
+
}
|
|
3784
|
+
constructor(kwargs) {
|
|
3785
|
+
if (!kwargs) {
|
|
3786
|
+
return;
|
|
3787
|
+
}
|
|
3788
|
+
Object.assign(this, kwargs);
|
|
3789
|
+
}
|
|
3790
|
+
toApiJson() {
|
|
3791
|
+
const toReturn = {};
|
|
3792
|
+
if (typeof this.externalId !== 'undefined') {
|
|
3793
|
+
toReturn['externalId'] = this.externalId;
|
|
3794
|
+
}
|
|
3795
|
+
return toReturn;
|
|
3796
|
+
}
|
|
3797
|
+
}
|
|
3798
|
+
class EnsureSessionEventCalendarsExistResponse {
|
|
3799
|
+
static fromProto(proto) {
|
|
3800
|
+
let m = new EnsureSessionEventCalendarsExistResponse();
|
|
3801
|
+
m = Object.assign(m, proto);
|
|
3802
|
+
return m;
|
|
3803
|
+
}
|
|
3804
|
+
constructor(kwargs) {
|
|
3805
|
+
if (!kwargs) {
|
|
3806
|
+
return;
|
|
3807
|
+
}
|
|
3808
|
+
Object.assign(this, kwargs);
|
|
3809
|
+
}
|
|
3810
|
+
toApiJson() {
|
|
3811
|
+
const toReturn = {};
|
|
3812
|
+
if (typeof this.calendarId !== 'undefined') {
|
|
3813
|
+
toReturn['calendarId'] = this.calendarId;
|
|
3814
|
+
}
|
|
3815
|
+
return toReturn;
|
|
3816
|
+
}
|
|
3817
|
+
}
|
|
3698
3818
|
class ListBookedMeetingsRequestFilters {
|
|
3699
3819
|
static fromProto(proto) {
|
|
3700
3820
|
let m = new ListBookedMeetingsRequestFilters();
|
|
@@ -4041,6 +4161,103 @@ class HostBookMeetingResponse {
|
|
|
4041
4161
|
return toReturn;
|
|
4042
4162
|
}
|
|
4043
4163
|
}
|
|
4164
|
+
class HostBookSessionRequest {
|
|
4165
|
+
static fromProto(proto) {
|
|
4166
|
+
let m = new HostBookSessionRequest();
|
|
4167
|
+
m = Object.assign(m, proto);
|
|
4168
|
+
if (proto.locationType) {
|
|
4169
|
+
m.locationType = enumStringToValue$2(MeetingLocationType, proto.locationType);
|
|
4170
|
+
}
|
|
4171
|
+
if (proto.maxAttendees) {
|
|
4172
|
+
m.maxAttendees = parseInt(proto.maxAttendees, 10);
|
|
4173
|
+
}
|
|
4174
|
+
if (proto.hostUsers) {
|
|
4175
|
+
m.hostUsers = proto.hostUsers.map(HostUser.fromProto);
|
|
4176
|
+
}
|
|
4177
|
+
if (proto.registrationCutoff) {
|
|
4178
|
+
m.registrationCutoff = RegistrationCutOff.fromProto(proto.registrationCutoff);
|
|
4179
|
+
}
|
|
4180
|
+
if (proto.timeSlot) {
|
|
4181
|
+
m.timeSlot = DateRange.fromProto(proto.timeSlot);
|
|
4182
|
+
}
|
|
4183
|
+
if (proto.start) {
|
|
4184
|
+
m.start = new Date(proto.start);
|
|
4185
|
+
}
|
|
4186
|
+
return m;
|
|
4187
|
+
}
|
|
4188
|
+
constructor(kwargs) {
|
|
4189
|
+
if (!kwargs) {
|
|
4190
|
+
return;
|
|
4191
|
+
}
|
|
4192
|
+
Object.assign(this, kwargs);
|
|
4193
|
+
}
|
|
4194
|
+
toApiJson() {
|
|
4195
|
+
const toReturn = {};
|
|
4196
|
+
if (typeof this.title !== 'undefined') {
|
|
4197
|
+
toReturn['title'] = this.title;
|
|
4198
|
+
}
|
|
4199
|
+
if (typeof this.location !== 'undefined') {
|
|
4200
|
+
toReturn['location'] = this.location;
|
|
4201
|
+
}
|
|
4202
|
+
if (typeof this.locationType !== 'undefined') {
|
|
4203
|
+
toReturn['locationType'] = this.locationType;
|
|
4204
|
+
}
|
|
4205
|
+
if (typeof this.duration !== 'undefined') {
|
|
4206
|
+
toReturn['duration'] = this.duration;
|
|
4207
|
+
}
|
|
4208
|
+
if (typeof this.description !== 'undefined') {
|
|
4209
|
+
toReturn['description'] = this.description;
|
|
4210
|
+
}
|
|
4211
|
+
if (typeof this.maxAttendees !== 'undefined') {
|
|
4212
|
+
toReturn['maxAttendees'] = this.maxAttendees;
|
|
4213
|
+
}
|
|
4214
|
+
if (typeof this.logoUrl !== 'undefined') {
|
|
4215
|
+
toReturn['logoUrl'] = this.logoUrl;
|
|
4216
|
+
}
|
|
4217
|
+
if (typeof this.hostUsers !== 'undefined' && this.hostUsers !== null) {
|
|
4218
|
+
toReturn['hostUsers'] = 'toApiJson' in this.hostUsers ? this.hostUsers.toApiJson() : this.hostUsers;
|
|
4219
|
+
}
|
|
4220
|
+
if (typeof this.registrationCutoff !== 'undefined' && this.registrationCutoff !== null) {
|
|
4221
|
+
toReturn['registrationCutoff'] = 'toApiJson' in this.registrationCutoff ? this.registrationCutoff.toApiJson() : this.registrationCutoff;
|
|
4222
|
+
}
|
|
4223
|
+
if (typeof this.timeSlot !== 'undefined' && this.timeSlot !== null) {
|
|
4224
|
+
toReturn['timeSlot'] = 'toApiJson' in this.timeSlot ? this.timeSlot.toApiJson() : this.timeSlot;
|
|
4225
|
+
}
|
|
4226
|
+
if (typeof this.slug !== 'undefined') {
|
|
4227
|
+
toReturn['slug'] = this.slug;
|
|
4228
|
+
}
|
|
4229
|
+
if (typeof this.start !== 'undefined' && this.start !== null) {
|
|
4230
|
+
toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
|
|
4231
|
+
}
|
|
4232
|
+
if (typeof this.meetingTypeId !== 'undefined') {
|
|
4233
|
+
toReturn['meetingTypeId'] = this.meetingTypeId;
|
|
4234
|
+
}
|
|
4235
|
+
return toReturn;
|
|
4236
|
+
}
|
|
4237
|
+
}
|
|
4238
|
+
class HostBookSessionResponse {
|
|
4239
|
+
static fromProto(proto) {
|
|
4240
|
+
let m = new HostBookSessionResponse();
|
|
4241
|
+
m = Object.assign(m, proto);
|
|
4242
|
+
return m;
|
|
4243
|
+
}
|
|
4244
|
+
constructor(kwargs) {
|
|
4245
|
+
if (!kwargs) {
|
|
4246
|
+
return;
|
|
4247
|
+
}
|
|
4248
|
+
Object.assign(this, kwargs);
|
|
4249
|
+
}
|
|
4250
|
+
toApiJson() {
|
|
4251
|
+
const toReturn = {};
|
|
4252
|
+
if (typeof this.meetingId !== 'undefined') {
|
|
4253
|
+
toReturn['meetingId'] = this.meetingId;
|
|
4254
|
+
}
|
|
4255
|
+
if (typeof this.bookingUrl !== 'undefined') {
|
|
4256
|
+
toReturn['bookingUrl'] = this.bookingUrl;
|
|
4257
|
+
}
|
|
4258
|
+
return toReturn;
|
|
4259
|
+
}
|
|
4260
|
+
}
|
|
4044
4261
|
class HostDetails {
|
|
4045
4262
|
static fromProto(proto) {
|
|
4046
4263
|
let m = new HostDetails();
|
|
@@ -5506,53 +5723,58 @@ function addMetadataToBookingLink(req) {
|
|
|
5506
5723
|
|
|
5507
5724
|
function MeetingTypeFromApi(req) {
|
|
5508
5725
|
var _a;
|
|
5509
|
-
let bookingUrl = ((_a = req === null || req === void 0 ? void 0 : req.meetingTypeApi) === null || _a === void 0 ? void 0 : _a.bookingUrl) ||
|
|
5510
|
-
if (bookingUrl ===
|
|
5726
|
+
let bookingUrl = ((_a = req === null || req === void 0 ? void 0 : req.meetingTypeApi) === null || _a === void 0 ? void 0 : _a.bookingUrl) || "";
|
|
5727
|
+
if (bookingUrl === "") {
|
|
5511
5728
|
bookingUrl = getBookingUrlImplementation({
|
|
5512
5729
|
environment: req.environment,
|
|
5513
5730
|
calendarId: req.calendarId,
|
|
5514
|
-
meetingTypeSlug: req.meetingTypeApi.meetingTypeSlug || req.meetingTypeApi.id ||
|
|
5731
|
+
meetingTypeSlug: req.meetingTypeApi.meetingTypeSlug || req.meetingTypeApi.id || "",
|
|
5515
5732
|
metadata: req.metadata,
|
|
5516
5733
|
calendarSlug: req.calendarSlug,
|
|
5517
5734
|
});
|
|
5518
5735
|
}
|
|
5519
5736
|
else {
|
|
5520
|
-
bookingUrl = addMetadataToBookingLink({
|
|
5737
|
+
bookingUrl = addMetadataToBookingLink({
|
|
5738
|
+
link: bookingUrl,
|
|
5739
|
+
metadata: req.metadata || {},
|
|
5740
|
+
});
|
|
5521
5741
|
}
|
|
5522
|
-
const form = Object.assign(Object.assign({}, (req.meetingTypeApi.form || { fields: [] })), { fields: (req.meetingTypeApi.form && req.meetingTypeApi.form.fields
|
|
5523
|
-
|
|
5742
|
+
const form = Object.assign(Object.assign({}, (req.meetingTypeApi.form || { fields: [] })), { fields: (req.meetingTypeApi.form && req.meetingTypeApi.form.fields
|
|
5743
|
+
? req.meetingTypeApi.form.fields
|
|
5744
|
+
: []).map((field) => {
|
|
5745
|
+
return Object.assign(Object.assign({}, field), { id: field.id || "", label: field.label || "", type: field.type || FormFieldType.FORM_FIELD_TYPE_INVALID, required: field.required || false });
|
|
5524
5746
|
}) });
|
|
5525
5747
|
return {
|
|
5526
|
-
id: req.meetingTypeApi.id ||
|
|
5527
|
-
calendarId: req.meetingTypeApi.calendarId ||
|
|
5528
|
-
name: req.meetingTypeApi.name ||
|
|
5529
|
-
duration: req.meetingTypeApi.duration ||
|
|
5748
|
+
id: req.meetingTypeApi.id || "",
|
|
5749
|
+
calendarId: req.meetingTypeApi.calendarId || "",
|
|
5750
|
+
name: req.meetingTypeApi.name || "",
|
|
5751
|
+
duration: req.meetingTypeApi.duration || "",
|
|
5530
5752
|
bookingUrl: bookingUrl,
|
|
5531
|
-
bookingLink: req.meetingTypeApi.meetingTypeSlug ||
|
|
5532
|
-
meetingTypeSlug: req.meetingTypeApi.meetingTypeSlug ||
|
|
5533
|
-
description: req.meetingTypeApi.description ||
|
|
5534
|
-
hexColor: req.meetingTypeApi.hexColor ||
|
|
5753
|
+
bookingLink: req.meetingTypeApi.meetingTypeSlug || "",
|
|
5754
|
+
meetingTypeSlug: req.meetingTypeApi.meetingTypeSlug || "",
|
|
5755
|
+
description: req.meetingTypeApi.description || "",
|
|
5756
|
+
hexColor: req.meetingTypeApi.hexColor || "",
|
|
5535
5757
|
form: form,
|
|
5536
5758
|
hostUserIds: req.meetingTypeApi.hostUserIds || [],
|
|
5537
5759
|
availabilityIncrement: req.meetingTypeApi.availabilityIncrement || -1,
|
|
5538
5760
|
bufferDurationAfterMeeting: req.meetingTypeApi.bufferDurationAfterMeeting || 0,
|
|
5539
5761
|
bufferDurationBeforeMeeting: req.meetingTypeApi.bufferDurationBeforeMeeting || 0,
|
|
5540
5762
|
noticeTime: req.meetingTypeApi.noticeTime || 0,
|
|
5541
|
-
location: req.meetingTypeApi.location ||
|
|
5542
|
-
locationGuidelines: req.meetingTypeApi.locationGuidelines ||
|
|
5543
|
-
emailSubject: req.meetingTypeApi.emailSubject ||
|
|
5544
|
-
emailDescription: req.meetingTypeApi.emailDescription ||
|
|
5763
|
+
location: req.meetingTypeApi.location || "",
|
|
5764
|
+
locationGuidelines: req.meetingTypeApi.locationGuidelines || "",
|
|
5765
|
+
emailSubject: req.meetingTypeApi.emailSubject || "",
|
|
5766
|
+
emailDescription: req.meetingTypeApi.emailDescription || "",
|
|
5545
5767
|
isPinned: req.meetingTypeApi.isPinned || false,
|
|
5546
|
-
CalendarType: req.meetingTypeApi.calendarType ||
|
|
5768
|
+
CalendarType: req.meetingTypeApi.calendarType || "",
|
|
5547
5769
|
hostUsers: req.meetingTypeApi.hostUsers || [],
|
|
5548
|
-
teamName: req.meetingTypeApi.teamName ||
|
|
5770
|
+
teamName: req.meetingTypeApi.teamName || "",
|
|
5549
5771
|
isVideoLinkDisabled: req.meetingTypeApi.isVideoLinkDisabled || false,
|
|
5550
5772
|
locationType: req.meetingTypeApi.locationType || MeetingLocationType.VIDEO,
|
|
5551
5773
|
meetingType: req.meetingTypeApi.meetingType || TeamEventMeetingType.ROUND_ROBIN,
|
|
5552
5774
|
dateRange: req.meetingTypeApi.dateRange || {},
|
|
5553
5775
|
attendeeCount: req.meetingTypeApi.attendeeCount || 0,
|
|
5554
|
-
registrationCutoff: req.meetingTypeApi.registrationCutoff ||
|
|
5555
|
-
sessionTitle: req.meetingTypeApi.sessionTitle ||
|
|
5776
|
+
registrationCutoff: req.meetingTypeApi.registrationCutoff || undefined,
|
|
5777
|
+
sessionTitle: req.meetingTypeApi.sessionTitle || "",
|
|
5556
5778
|
};
|
|
5557
5779
|
}
|
|
5558
5780
|
function MeetingTypeToApi(req) {
|
|
@@ -5587,8 +5809,8 @@ function MeetingTypeToApi(req) {
|
|
|
5587
5809
|
meetingType: m.meetingType || TeamEventMeetingType.ROUND_ROBIN,
|
|
5588
5810
|
dateRange: m.dateRange || undefined,
|
|
5589
5811
|
attendeeCount: m.attendeeCount || 0,
|
|
5590
|
-
registrationCutoff: m.registrationCutoff ||
|
|
5591
|
-
sessionTitle: m.sessionTitle || undefined
|
|
5812
|
+
registrationCutoff: m.registrationCutoff || undefined,
|
|
5813
|
+
sessionTitle: m.sessionTitle || undefined,
|
|
5592
5814
|
};
|
|
5593
5815
|
}
|
|
5594
5816
|
|
|
@@ -5770,6 +5992,10 @@ class MeetingGuestApiService {
|
|
|
5770
5992
|
return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetService", request.toApiJson(), this.apiOptions())
|
|
5771
5993
|
.pipe(map(resp => GetServiceResponse.fromProto(resp)));
|
|
5772
5994
|
}
|
|
5995
|
+
registerSession(r) {
|
|
5996
|
+
const request = (r.toApiJson) ? r : new RegisterSessionRequest(r);
|
|
5997
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/RegisterSession", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
5998
|
+
}
|
|
5773
5999
|
}
|
|
5774
6000
|
MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5775
6001
|
MeetingGuestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, providedIn: 'root' });
|
|
@@ -5827,6 +6053,11 @@ class MeetingHostApiService {
|
|
|
5827
6053
|
return this.http.post(this._host + "/meetings.v1.MeetingHost/EnsureGroupCalendarsExist", request.toApiJson(), this.apiOptions())
|
|
5828
6054
|
.pipe(map(resp => EnsureGroupCalendarsExistResponse.fromProto(resp)));
|
|
5829
6055
|
}
|
|
6056
|
+
ensureSessionEventCalendarsExist(r) {
|
|
6057
|
+
const request = (r.toApiJson) ? r : new EnsureSessionEventCalendarsExistRequest(r);
|
|
6058
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/EnsureSessionEventCalendarsExist", request.toApiJson(), this.apiOptions())
|
|
6059
|
+
.pipe(map(resp => EnsureSessionEventCalendarsExistResponse.fromProto(resp)));
|
|
6060
|
+
}
|
|
5830
6061
|
getHostsForCalendar(r) {
|
|
5831
6062
|
const request = (r.toApiJson) ? r : new GetHostsForCalendarRequest(r);
|
|
5832
6063
|
return this.http.post(this._host + "/meetings.v1.MeetingHost/GetHostsForCalendar", request.toApiJson(), this.apiOptions())
|
|
@@ -6001,6 +6232,11 @@ class MeetingHostApiService {
|
|
|
6001
6232
|
return this.http.post(this._host + "/meetings.v1.MeetingHost/GetEntityAssociations", request.toApiJson(), this.apiOptions())
|
|
6002
6233
|
.pipe(map(resp => GetEntityAssociationResponse.fromProto(resp)));
|
|
6003
6234
|
}
|
|
6235
|
+
hostBookSession(r) {
|
|
6236
|
+
const request = (r.toApiJson) ? r : new HostBookSessionRequest(r);
|
|
6237
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/HostBookSession", request.toApiJson(), this.apiOptions())
|
|
6238
|
+
.pipe(map(resp => HostBookSessionResponse.fromProto(resp)));
|
|
6239
|
+
}
|
|
6004
6240
|
}
|
|
6005
6241
|
MeetingHostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6006
6242
|
MeetingHostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, providedIn: 'root' });
|
|
@@ -6124,7 +6360,8 @@ function hostUserFromApi(hostUser) {
|
|
|
6124
6360
|
return {
|
|
6125
6361
|
userId: hostUser.userId || '',
|
|
6126
6362
|
displayName: hostUser.displayName || '',
|
|
6127
|
-
isConfigured: hostUser.isConfigured || false
|
|
6363
|
+
isConfigured: hostUser.isConfigured || false,
|
|
6364
|
+
isConnected: hostUser.isConnected || false,
|
|
6128
6365
|
};
|
|
6129
6366
|
}
|
|
6130
6367
|
|
|
@@ -6795,6 +7032,11 @@ class HostService {
|
|
|
6795
7032
|
getEntityAssociations(req) {
|
|
6796
7033
|
return this.hostAPIService.getEntityAssociations(req);
|
|
6797
7034
|
}
|
|
7035
|
+
ensureSessionEventCalendarsExist(req) {
|
|
7036
|
+
return this.hostAPIService
|
|
7037
|
+
.ensureSessionEventCalendarsExist({ externalId: req.externalId })
|
|
7038
|
+
.pipe(map((res) => (res === null || res === void 0 ? void 0 : res.calendarId) || ""));
|
|
7039
|
+
}
|
|
6798
7040
|
}
|
|
6799
7041
|
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, deps: [{ token: MeetingHostApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6800
7042
|
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, providedIn: "root" });
|