@vendasta/meetings 0.99.3 → 0.99.6
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/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/guest/guest.service.mjs +8 -1
- package/esm2020/lib/host/host.service.mjs +11 -1
- package/esm2020/lib/shared/meeting-type.mjs +34 -29
- package/fesm2015/vendasta-meetings.mjs +276 -32
- package/fesm2015/vendasta-meetings.mjs.map +1 -1
- package/fesm2020/vendasta-meetings.mjs +284 -34
- 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/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/guest/guest.service.d.ts +11 -0
- package/lib/host/host.service.d.ts +20 -2
- 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";
|
|
@@ -977,6 +984,9 @@ class GoogleMeetListMeetingsRequest {
|
|
|
977
984
|
if (typeof this.timeMax !== 'undefined' && this.timeMax !== null) {
|
|
978
985
|
toReturn['timeMax'] = 'toApiJson' in this.timeMax ? this.timeMax.toApiJson() : this.timeMax;
|
|
979
986
|
}
|
|
987
|
+
if (typeof this.singleEvents !== 'undefined') {
|
|
988
|
+
toReturn['singleEvents'] = this.singleEvents;
|
|
989
|
+
}
|
|
980
990
|
return toReturn;
|
|
981
991
|
}
|
|
982
992
|
}
|
|
@@ -1944,7 +1954,7 @@ class MeetingType {
|
|
|
1944
1954
|
m.attendeeCount = parseInt(proto.attendeeCount, 10);
|
|
1945
1955
|
}
|
|
1946
1956
|
if (proto.registrationCutoff) {
|
|
1947
|
-
m.registrationCutoff =
|
|
1957
|
+
m.registrationCutoff = RegistrationCutOff.fromProto(proto.registrationCutoff);
|
|
1948
1958
|
}
|
|
1949
1959
|
return m;
|
|
1950
1960
|
}
|
|
@@ -2043,12 +2053,41 @@ class MeetingType {
|
|
|
2043
2053
|
if (typeof this.attendeeCount !== 'undefined') {
|
|
2044
2054
|
toReturn['attendeeCount'] = this.attendeeCount;
|
|
2045
2055
|
}
|
|
2046
|
-
if (typeof this.registrationCutoff !== 'undefined') {
|
|
2047
|
-
toReturn['registrationCutoff'] = this.registrationCutoff;
|
|
2048
|
-
}
|
|
2049
2056
|
if (typeof this.sessionTitle !== 'undefined') {
|
|
2050
2057
|
toReturn['sessionTitle'] = this.sessionTitle;
|
|
2051
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
|
+
}
|
|
2052
2091
|
return toReturn;
|
|
2053
2092
|
}
|
|
2054
2093
|
}
|
|
@@ -2905,6 +2944,44 @@ class BookMeetingRequestMetadataEntry {
|
|
|
2905
2944
|
return toReturn;
|
|
2906
2945
|
}
|
|
2907
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
|
+
}
|
|
2908
2985
|
|
|
2909
2986
|
function enumStringToValue$3(enumRef, value) {
|
|
2910
2987
|
if (typeof value === 'number') {
|
|
@@ -2962,9 +3039,9 @@ class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
|
|
|
2962
3039
|
return toReturn;
|
|
2963
3040
|
}
|
|
2964
3041
|
}
|
|
2965
|
-
class
|
|
3042
|
+
class BuildHostIdRequestApplicationContextPropertiesEntry {
|
|
2966
3043
|
static fromProto(proto) {
|
|
2967
|
-
let m = new
|
|
3044
|
+
let m = new BuildHostIdRequestApplicationContextPropertiesEntry();
|
|
2968
3045
|
m = Object.assign(m, proto);
|
|
2969
3046
|
return m;
|
|
2970
3047
|
}
|
|
@@ -2985,9 +3062,9 @@ class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
|
|
|
2985
3062
|
return toReturn;
|
|
2986
3063
|
}
|
|
2987
3064
|
}
|
|
2988
|
-
class
|
|
3065
|
+
class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
|
|
2989
3066
|
static fromProto(proto) {
|
|
2990
|
-
let m = new
|
|
3067
|
+
let m = new EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry();
|
|
2991
3068
|
m = Object.assign(m, proto);
|
|
2992
3069
|
return m;
|
|
2993
3070
|
}
|
|
@@ -3698,6 +3775,46 @@ class EnsurePersonalCalendarExistsResponse {
|
|
|
3698
3775
|
return toReturn;
|
|
3699
3776
|
}
|
|
3700
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
|
+
}
|
|
3701
3818
|
class ListBookedMeetingsRequestFilters {
|
|
3702
3819
|
static fromProto(proto) {
|
|
3703
3820
|
let m = new ListBookedMeetingsRequestFilters();
|
|
@@ -4044,6 +4161,103 @@ class HostBookMeetingResponse {
|
|
|
4044
4161
|
return toReturn;
|
|
4045
4162
|
}
|
|
4046
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
|
+
}
|
|
4047
4261
|
class HostDetails {
|
|
4048
4262
|
static fromProto(proto) {
|
|
4049
4263
|
let m = new HostDetails();
|
|
@@ -5503,6 +5717,10 @@ class MeetingGuestApiService {
|
|
|
5503
5717
|
return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetService", request.toApiJson(), this.apiOptions())
|
|
5504
5718
|
.pipe(map(resp => GetServiceResponse.fromProto(resp)));
|
|
5505
5719
|
}
|
|
5720
|
+
registerSession(r) {
|
|
5721
|
+
const request = (r.toApiJson) ? r : new RegisterSessionRequest(r);
|
|
5722
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/RegisterSession", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
5723
|
+
}
|
|
5506
5724
|
}
|
|
5507
5725
|
MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5508
5726
|
MeetingGuestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, providedIn: 'root' });
|
|
@@ -5560,6 +5778,11 @@ class MeetingHostApiService {
|
|
|
5560
5778
|
return this.http.post(this._host + "/meetings.v1.MeetingHost/EnsureGroupCalendarsExist", request.toApiJson(), this.apiOptions())
|
|
5561
5779
|
.pipe(map(resp => EnsureGroupCalendarsExistResponse.fromProto(resp)));
|
|
5562
5780
|
}
|
|
5781
|
+
ensureSessionEventCalendarsExist(r) {
|
|
5782
|
+
const request = (r.toApiJson) ? r : new EnsureSessionEventCalendarsExistRequest(r);
|
|
5783
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/EnsureSessionEventCalendarsExist", request.toApiJson(), this.apiOptions())
|
|
5784
|
+
.pipe(map(resp => EnsureSessionEventCalendarsExistResponse.fromProto(resp)));
|
|
5785
|
+
}
|
|
5563
5786
|
getHostsForCalendar(r) {
|
|
5564
5787
|
const request = (r.toApiJson) ? r : new GetHostsForCalendarRequest(r);
|
|
5565
5788
|
return this.http.post(this._host + "/meetings.v1.MeetingHost/GetHostsForCalendar", request.toApiJson(), this.apiOptions())
|
|
@@ -5734,6 +5957,11 @@ class MeetingHostApiService {
|
|
|
5734
5957
|
return this.http.post(this._host + "/meetings.v1.MeetingHost/GetEntityAssociations", request.toApiJson(), this.apiOptions())
|
|
5735
5958
|
.pipe(map(resp => GetEntityAssociationResponse.fromProto(resp)));
|
|
5736
5959
|
}
|
|
5960
|
+
hostBookSession(r) {
|
|
5961
|
+
const request = (r.toApiJson) ? r : new HostBookSessionRequest(r);
|
|
5962
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/HostBookSession", request.toApiJson(), this.apiOptions())
|
|
5963
|
+
.pipe(map(resp => HostBookSessionResponse.fromProto(resp)));
|
|
5964
|
+
}
|
|
5737
5965
|
}
|
|
5738
5966
|
MeetingHostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5739
5967
|
MeetingHostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, providedIn: 'root' });
|
|
@@ -5821,62 +6049,67 @@ function addMetadataToBookingLink(req) {
|
|
|
5821
6049
|
}
|
|
5822
6050
|
|
|
5823
6051
|
function MeetingTypeFromApi(req) {
|
|
5824
|
-
let bookingUrl = req?.meetingTypeApi?.bookingUrl ||
|
|
5825
|
-
if (bookingUrl ===
|
|
6052
|
+
let bookingUrl = req?.meetingTypeApi?.bookingUrl || "";
|
|
6053
|
+
if (bookingUrl === "") {
|
|
5826
6054
|
bookingUrl = getBookingUrlImplementation({
|
|
5827
6055
|
environment: req.environment,
|
|
5828
6056
|
calendarId: req.calendarId,
|
|
5829
|
-
meetingTypeSlug: req.meetingTypeApi.meetingTypeSlug || req.meetingTypeApi.id ||
|
|
6057
|
+
meetingTypeSlug: req.meetingTypeApi.meetingTypeSlug || req.meetingTypeApi.id || "",
|
|
5830
6058
|
metadata: req.metadata,
|
|
5831
6059
|
calendarSlug: req.calendarSlug,
|
|
5832
6060
|
});
|
|
5833
6061
|
}
|
|
5834
6062
|
else {
|
|
5835
|
-
bookingUrl = addMetadataToBookingLink({
|
|
6063
|
+
bookingUrl = addMetadataToBookingLink({
|
|
6064
|
+
link: bookingUrl,
|
|
6065
|
+
metadata: req.metadata || {},
|
|
6066
|
+
});
|
|
5836
6067
|
}
|
|
5837
6068
|
const form = {
|
|
5838
6069
|
...(req.meetingTypeApi.form || { fields: [] }),
|
|
5839
|
-
fields: (req.meetingTypeApi.form && req.meetingTypeApi.form.fields
|
|
6070
|
+
fields: (req.meetingTypeApi.form && req.meetingTypeApi.form.fields
|
|
6071
|
+
? req.meetingTypeApi.form.fields
|
|
6072
|
+
: []).map((field) => {
|
|
5840
6073
|
return {
|
|
5841
6074
|
...field,
|
|
5842
|
-
id: field.id ||
|
|
5843
|
-
label: field.label ||
|
|
6075
|
+
id: field.id || "",
|
|
6076
|
+
label: field.label || "",
|
|
5844
6077
|
type: field.type || FormFieldType.FORM_FIELD_TYPE_INVALID,
|
|
5845
6078
|
required: field.required || false,
|
|
5846
6079
|
};
|
|
5847
|
-
})
|
|
6080
|
+
}),
|
|
5848
6081
|
};
|
|
5849
6082
|
return {
|
|
5850
|
-
id: req.meetingTypeApi.id ||
|
|
5851
|
-
calendarId: req.meetingTypeApi.calendarId ||
|
|
5852
|
-
name: req.meetingTypeApi.name ||
|
|
5853
|
-
duration: req.meetingTypeApi.duration ||
|
|
6083
|
+
id: req.meetingTypeApi.id || "",
|
|
6084
|
+
calendarId: req.meetingTypeApi.calendarId || "",
|
|
6085
|
+
name: req.meetingTypeApi.name || "",
|
|
6086
|
+
duration: req.meetingTypeApi.duration || "",
|
|
5854
6087
|
bookingUrl: bookingUrl,
|
|
5855
|
-
bookingLink: req.meetingTypeApi.meetingTypeSlug ||
|
|
5856
|
-
meetingTypeSlug: req.meetingTypeApi.meetingTypeSlug ||
|
|
5857
|
-
description: req.meetingTypeApi.description ||
|
|
5858
|
-
hexColor: req.meetingTypeApi.hexColor ||
|
|
6088
|
+
bookingLink: req.meetingTypeApi.meetingTypeSlug || "",
|
|
6089
|
+
meetingTypeSlug: req.meetingTypeApi.meetingTypeSlug || "",
|
|
6090
|
+
description: req.meetingTypeApi.description || "",
|
|
6091
|
+
hexColor: req.meetingTypeApi.hexColor || "",
|
|
5859
6092
|
form: form,
|
|
5860
6093
|
hostUserIds: req.meetingTypeApi.hostUserIds || [],
|
|
5861
6094
|
availabilityIncrement: req.meetingTypeApi.availabilityIncrement || -1,
|
|
5862
6095
|
bufferDurationAfterMeeting: req.meetingTypeApi.bufferDurationAfterMeeting || 0,
|
|
5863
6096
|
bufferDurationBeforeMeeting: req.meetingTypeApi.bufferDurationBeforeMeeting || 0,
|
|
5864
6097
|
noticeTime: req.meetingTypeApi.noticeTime || 0,
|
|
5865
|
-
location: req.meetingTypeApi.location ||
|
|
5866
|
-
locationGuidelines: req.meetingTypeApi.locationGuidelines ||
|
|
5867
|
-
emailSubject: req.meetingTypeApi.emailSubject ||
|
|
5868
|
-
emailDescription: req.meetingTypeApi.emailDescription ||
|
|
6098
|
+
location: req.meetingTypeApi.location || "",
|
|
6099
|
+
locationGuidelines: req.meetingTypeApi.locationGuidelines || "",
|
|
6100
|
+
emailSubject: req.meetingTypeApi.emailSubject || "",
|
|
6101
|
+
emailDescription: req.meetingTypeApi.emailDescription || "",
|
|
5869
6102
|
isPinned: req.meetingTypeApi.isPinned || false,
|
|
5870
|
-
CalendarType: req.meetingTypeApi.calendarType ||
|
|
6103
|
+
CalendarType: req.meetingTypeApi.calendarType || "",
|
|
5871
6104
|
hostUsers: req.meetingTypeApi.hostUsers || [],
|
|
5872
|
-
teamName: req.meetingTypeApi.teamName ||
|
|
6105
|
+
teamName: req.meetingTypeApi.teamName || "",
|
|
5873
6106
|
isVideoLinkDisabled: req.meetingTypeApi.isVideoLinkDisabled || false,
|
|
5874
6107
|
locationType: req.meetingTypeApi.locationType || MeetingLocationType.VIDEO,
|
|
5875
6108
|
meetingType: req.meetingTypeApi.meetingType || TeamEventMeetingType.ROUND_ROBIN,
|
|
5876
6109
|
dateRange: req.meetingTypeApi.dateRange || {},
|
|
5877
6110
|
attendeeCount: req.meetingTypeApi.attendeeCount || 0,
|
|
5878
|
-
registrationCutoff: req.meetingTypeApi.registrationCutoff ||
|
|
5879
|
-
sessionTitle: req.meetingTypeApi.sessionTitle ||
|
|
6111
|
+
registrationCutoff: req.meetingTypeApi.registrationCutoff || undefined,
|
|
6112
|
+
sessionTitle: req.meetingTypeApi.sessionTitle || "",
|
|
5880
6113
|
};
|
|
5881
6114
|
}
|
|
5882
6115
|
function MeetingTypeToApi(req) {
|
|
@@ -5911,8 +6144,8 @@ function MeetingTypeToApi(req) {
|
|
|
5911
6144
|
meetingType: m.meetingType || TeamEventMeetingType.ROUND_ROBIN,
|
|
5912
6145
|
dateRange: m.dateRange || undefined,
|
|
5913
6146
|
attendeeCount: m.attendeeCount || 0,
|
|
5914
|
-
registrationCutoff: m.registrationCutoff ||
|
|
5915
|
-
sessionTitle: m.sessionTitle || undefined
|
|
6147
|
+
registrationCutoff: m.registrationCutoff || undefined,
|
|
6148
|
+
sessionTitle: m.sessionTitle || undefined,
|
|
5916
6149
|
};
|
|
5917
6150
|
}
|
|
5918
6151
|
|
|
@@ -6299,6 +6532,13 @@ class GuestService {
|
|
|
6299
6532
|
rescheduleMeeting(req) {
|
|
6300
6533
|
return this.guestAPIService.rescheduleMeeting(req).pipe(mapTo(null));
|
|
6301
6534
|
}
|
|
6535
|
+
registerSession(req) {
|
|
6536
|
+
return this.guestAPIService.registerSession({
|
|
6537
|
+
...req,
|
|
6538
|
+
attendees: req.attendees,
|
|
6539
|
+
formAnswers: req.formAnswers,
|
|
6540
|
+
}).pipe(mapTo(null));
|
|
6541
|
+
}
|
|
6302
6542
|
// getHost returns an individual host by their hostId
|
|
6303
6543
|
getHost(req) {
|
|
6304
6544
|
return this.guestAPIService.getHost(req).pipe(map(resp => HostFromApi(resp.host)));
|
|
@@ -6635,6 +6875,11 @@ class HostService {
|
|
|
6635
6875
|
attendees: req.attendees,
|
|
6636
6876
|
});
|
|
6637
6877
|
}
|
|
6878
|
+
hostBookSession(req) {
|
|
6879
|
+
return this.hostAPIService.hostBookSession({
|
|
6880
|
+
...req,
|
|
6881
|
+
});
|
|
6882
|
+
}
|
|
6638
6883
|
bookMeeting(req) {
|
|
6639
6884
|
return this.hostAPIService
|
|
6640
6885
|
.bookMeeting(req)
|
|
@@ -6836,6 +7081,11 @@ class HostService {
|
|
|
6836
7081
|
getEntityAssociations(req) {
|
|
6837
7082
|
return this.hostAPIService.getEntityAssociations(req);
|
|
6838
7083
|
}
|
|
7084
|
+
ensureSessionEventCalendarsExist(req) {
|
|
7085
|
+
return this.hostAPIService
|
|
7086
|
+
.ensureSessionEventCalendarsExist({ externalId: req.externalId })
|
|
7087
|
+
.pipe(map((res) => res?.calendarId || ""));
|
|
7088
|
+
}
|
|
6839
7089
|
}
|
|
6840
7090
|
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, deps: [{ token: MeetingHostApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6841
7091
|
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, providedIn: "root" });
|