@vendasta/meetings 0.99.9 → 0.100.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +1 -1
- package/esm2020/lib/_internal/meeting-guest.api.service.mjs +7 -2
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/meeting-guest.mjs +91 -3
- package/esm2020/lib/guest/guest.service.mjs +4 -1
- package/fesm2015/vendasta-meetings.mjs +96 -0
- package/fesm2015/vendasta-meetings.mjs.map +1 -1
- package/fesm2020/vendasta-meetings.mjs +96 -0
- package/fesm2020/vendasta-meetings.mjs.map +1 -1
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/meeting-guest.interface.d.ts +20 -2
- package/lib/_internal/meeting-guest.api.service.d.ts +3 -2
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/meeting-guest.d.ts +25 -0
- package/lib/guest/guest.service.d.ts +5 -1
- package/package.json +1 -1
|
@@ -3005,6 +3005,94 @@ class RegisterSessionRequest {
|
|
|
3005
3005
|
return toReturn;
|
|
3006
3006
|
}
|
|
3007
3007
|
}
|
|
3008
|
+
class GetSessionMeetingRequest {
|
|
3009
|
+
static fromProto(proto) {
|
|
3010
|
+
let m = new GetSessionMeetingRequest();
|
|
3011
|
+
m = Object.assign(m, proto);
|
|
3012
|
+
return m;
|
|
3013
|
+
}
|
|
3014
|
+
constructor(kwargs) {
|
|
3015
|
+
if (!kwargs) {
|
|
3016
|
+
return;
|
|
3017
|
+
}
|
|
3018
|
+
Object.assign(this, kwargs);
|
|
3019
|
+
}
|
|
3020
|
+
toApiJson() {
|
|
3021
|
+
const toReturn = {};
|
|
3022
|
+
if (typeof this.meetingId !== 'undefined') {
|
|
3023
|
+
toReturn['meetingId'] = this.meetingId;
|
|
3024
|
+
}
|
|
3025
|
+
if (typeof this.slug !== 'undefined') {
|
|
3026
|
+
toReturn['slug'] = this.slug;
|
|
3027
|
+
}
|
|
3028
|
+
return toReturn;
|
|
3029
|
+
}
|
|
3030
|
+
}
|
|
3031
|
+
class GetSessionMeetingResponse {
|
|
3032
|
+
static fromProto(proto) {
|
|
3033
|
+
let m = new GetSessionMeetingResponse();
|
|
3034
|
+
m = Object.assign(m, proto);
|
|
3035
|
+
if (proto.start) {
|
|
3036
|
+
m.start = new Date(proto.start);
|
|
3037
|
+
}
|
|
3038
|
+
if (proto.hostUsers) {
|
|
3039
|
+
m.hostUsers = proto.hostUsers.map(HostUser.fromProto);
|
|
3040
|
+
}
|
|
3041
|
+
if (proto.form) {
|
|
3042
|
+
m.form = Form.fromProto(proto.form);
|
|
3043
|
+
}
|
|
3044
|
+
if (proto.registrationCutOffTime) {
|
|
3045
|
+
m.registrationCutOffTime = new Date(proto.registrationCutOffTime);
|
|
3046
|
+
}
|
|
3047
|
+
return m;
|
|
3048
|
+
}
|
|
3049
|
+
constructor(kwargs) {
|
|
3050
|
+
if (!kwargs) {
|
|
3051
|
+
return;
|
|
3052
|
+
}
|
|
3053
|
+
Object.assign(this, kwargs);
|
|
3054
|
+
}
|
|
3055
|
+
toApiJson() {
|
|
3056
|
+
const toReturn = {};
|
|
3057
|
+
if (typeof this.title !== 'undefined') {
|
|
3058
|
+
toReturn['title'] = this.title;
|
|
3059
|
+
}
|
|
3060
|
+
if (typeof this.location !== 'undefined') {
|
|
3061
|
+
toReturn['location'] = this.location;
|
|
3062
|
+
}
|
|
3063
|
+
if (typeof this.start !== 'undefined' && this.start !== null) {
|
|
3064
|
+
toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
|
|
3065
|
+
}
|
|
3066
|
+
if (typeof this.duration !== 'undefined') {
|
|
3067
|
+
toReturn['duration'] = this.duration;
|
|
3068
|
+
}
|
|
3069
|
+
if (typeof this.businessLogoUrl !== 'undefined') {
|
|
3070
|
+
toReturn['businessLogoUrl'] = this.businessLogoUrl;
|
|
3071
|
+
}
|
|
3072
|
+
if (typeof this.imageUrl !== 'undefined') {
|
|
3073
|
+
toReturn['imageUrl'] = this.imageUrl;
|
|
3074
|
+
}
|
|
3075
|
+
if (typeof this.hostUsers !== 'undefined' && this.hostUsers !== null) {
|
|
3076
|
+
toReturn['hostUsers'] = 'toApiJson' in this.hostUsers ? this.hostUsers.toApiJson() : this.hostUsers;
|
|
3077
|
+
}
|
|
3078
|
+
if (typeof this.description !== 'undefined') {
|
|
3079
|
+
toReturn['description'] = this.description;
|
|
3080
|
+
}
|
|
3081
|
+
if (typeof this.form !== 'undefined' && this.form !== null) {
|
|
3082
|
+
toReturn['form'] = 'toApiJson' in this.form ? this.form.toApiJson() : this.form;
|
|
3083
|
+
}
|
|
3084
|
+
if (typeof this.attendeeCount !== 'undefined') {
|
|
3085
|
+
toReturn['attendeeCount'] = this.attendeeCount;
|
|
3086
|
+
}
|
|
3087
|
+
if (typeof this.registeredAttendeeCount !== 'undefined') {
|
|
3088
|
+
toReturn['registeredAttendeeCount'] = this.registeredAttendeeCount;
|
|
3089
|
+
}
|
|
3090
|
+
if (typeof this.registrationCutOffTime !== 'undefined' && this.registrationCutOffTime !== null) {
|
|
3091
|
+
toReturn['registrationCutOffTime'] = 'toApiJson' in this.registrationCutOffTime ? this.registrationCutOffTime.toApiJson() : this.registrationCutOffTime;
|
|
3092
|
+
}
|
|
3093
|
+
return toReturn;
|
|
3094
|
+
}
|
|
3095
|
+
}
|
|
3008
3096
|
|
|
3009
3097
|
function enumStringToValue$3(enumRef, value) {
|
|
3010
3098
|
if (typeof value === 'number') {
|
|
@@ -5884,6 +5972,11 @@ class MeetingGuestApiService {
|
|
|
5884
5972
|
const request = (r.toApiJson) ? r : new RegisterSessionRequest(r);
|
|
5885
5973
|
return this.http.post(this._host + "/meetings.v1.MeetingGuest/RegisterSession", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
5886
5974
|
}
|
|
5975
|
+
getSessionMeetingInfo(r) {
|
|
5976
|
+
const request = (r.toApiJson) ? r : new GetSessionMeetingRequest(r);
|
|
5977
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetSessionMeetingRequest", request.toApiJson(), this.apiOptions())
|
|
5978
|
+
.pipe(map(resp => GetSessionMeetingResponse.fromProto(resp)));
|
|
5979
|
+
}
|
|
5887
5980
|
}
|
|
5888
5981
|
MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5889
5982
|
MeetingGuestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, providedIn: 'root' });
|
|
@@ -6744,6 +6837,9 @@ class GuestService {
|
|
|
6744
6837
|
getService(req) {
|
|
6745
6838
|
return this.guestAPIService.getService(req);
|
|
6746
6839
|
}
|
|
6840
|
+
getSessionMeetingInfo(req) {
|
|
6841
|
+
return this.guestAPIService.getSessionMeetingInfo(req);
|
|
6842
|
+
}
|
|
6747
6843
|
}
|
|
6748
6844
|
GuestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GuestService, deps: [{ token: MeetingGuestApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6749
6845
|
GuestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GuestService, providedIn: 'root' });
|