@vendasta/meetings 1.13.0 → 1.14.1
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/interfaces/meeting-host.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 +71 -1
- package/esm2020/lib/_internal/objects/meeting-host.mjs +4 -1
- package/esm2020/lib/guest/guest.service.mjs +4 -1
- package/esm2020/lib/shared/meeting.mjs +2 -1
- package/fesm2015/vendasta-meetings.mjs +82 -0
- package/fesm2015/vendasta-meetings.mjs.map +1 -1
- package/fesm2020/vendasta-meetings.mjs +82 -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 +14 -0
- package/lib/_internal/interfaces/meeting-host.interface.d.ts +1 -0
- 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 +20 -0
- package/lib/_internal/objects/meeting-host.d.ts +1 -0
- package/lib/guest/guest.service.d.ts +6 -1
- package/package.json +1 -1
|
@@ -4249,6 +4249,76 @@ class GetGroupResponse {
|
|
|
4249
4249
|
return toReturn;
|
|
4250
4250
|
}
|
|
4251
4251
|
}
|
|
4252
|
+
class GetGroupV2Request {
|
|
4253
|
+
static fromProto(proto) {
|
|
4254
|
+
let m = new GetGroupV2Request();
|
|
4255
|
+
m = Object.assign(m, proto);
|
|
4256
|
+
if (proto.bookingSource) {
|
|
4257
|
+
m.bookingSource = enumStringToValue$6(BookingSource, proto.bookingSource);
|
|
4258
|
+
}
|
|
4259
|
+
return m;
|
|
4260
|
+
}
|
|
4261
|
+
constructor(kwargs) {
|
|
4262
|
+
if (!kwargs) {
|
|
4263
|
+
return;
|
|
4264
|
+
}
|
|
4265
|
+
Object.assign(this, kwargs);
|
|
4266
|
+
}
|
|
4267
|
+
toApiJson() {
|
|
4268
|
+
const toReturn = {};
|
|
4269
|
+
if (typeof this.groupId !== 'undefined') {
|
|
4270
|
+
toReturn['groupId'] = this.groupId;
|
|
4271
|
+
}
|
|
4272
|
+
if (typeof this.uniqueRequestId !== 'undefined') {
|
|
4273
|
+
toReturn['uniqueRequestId'] = this.uniqueRequestId;
|
|
4274
|
+
}
|
|
4275
|
+
if (typeof this.bookingSource !== 'undefined') {
|
|
4276
|
+
toReturn['bookingSource'] = this.bookingSource;
|
|
4277
|
+
}
|
|
4278
|
+
return toReturn;
|
|
4279
|
+
}
|
|
4280
|
+
}
|
|
4281
|
+
class GetGroupV2Response {
|
|
4282
|
+
static fromProto(proto) {
|
|
4283
|
+
let m = new GetGroupV2Response();
|
|
4284
|
+
m = Object.assign(m, proto);
|
|
4285
|
+
if (proto.eventTypes) {
|
|
4286
|
+
m.eventTypes = proto.eventTypes.map(ServiceEventType.fromProto);
|
|
4287
|
+
}
|
|
4288
|
+
return m;
|
|
4289
|
+
}
|
|
4290
|
+
constructor(kwargs) {
|
|
4291
|
+
if (!kwargs) {
|
|
4292
|
+
return;
|
|
4293
|
+
}
|
|
4294
|
+
Object.assign(this, kwargs);
|
|
4295
|
+
}
|
|
4296
|
+
toApiJson() {
|
|
4297
|
+
const toReturn = {};
|
|
4298
|
+
if (typeof this.id !== 'undefined') {
|
|
4299
|
+
toReturn['id'] = this.id;
|
|
4300
|
+
}
|
|
4301
|
+
if (typeof this.name !== 'undefined') {
|
|
4302
|
+
toReturn['name'] = this.name;
|
|
4303
|
+
}
|
|
4304
|
+
if (typeof this.description !== 'undefined') {
|
|
4305
|
+
toReturn['description'] = this.description;
|
|
4306
|
+
}
|
|
4307
|
+
if (typeof this.eventTypes !== 'undefined' && this.eventTypes !== null) {
|
|
4308
|
+
toReturn['eventTypes'] = 'toApiJson' in this.eventTypes ? this.eventTypes.toApiJson() : this.eventTypes;
|
|
4309
|
+
}
|
|
4310
|
+
if (typeof this.businessDisplayLogoUrl !== 'undefined') {
|
|
4311
|
+
toReturn['businessDisplayLogoUrl'] = this.businessDisplayLogoUrl;
|
|
4312
|
+
}
|
|
4313
|
+
if (typeof this.bookingUrl !== 'undefined') {
|
|
4314
|
+
toReturn['bookingUrl'] = this.bookingUrl;
|
|
4315
|
+
}
|
|
4316
|
+
if (typeof this.isBatchBookingEnabled !== 'undefined') {
|
|
4317
|
+
toReturn['isBatchBookingEnabled'] = this.isBatchBookingEnabled;
|
|
4318
|
+
}
|
|
4319
|
+
return toReturn;
|
|
4320
|
+
}
|
|
4321
|
+
}
|
|
4252
4322
|
class GetHostRequest {
|
|
4253
4323
|
static fromProto(proto) {
|
|
4254
4324
|
let m = new GetHostRequest();
|
|
@@ -8196,6 +8266,9 @@ class HostDetails {
|
|
|
8196
8266
|
if (typeof this.name !== 'undefined') {
|
|
8197
8267
|
toReturn['name'] = this.name;
|
|
8198
8268
|
}
|
|
8269
|
+
if (typeof this.userId !== 'undefined') {
|
|
8270
|
+
toReturn['userId'] = this.userId;
|
|
8271
|
+
}
|
|
8199
8272
|
return toReturn;
|
|
8200
8273
|
}
|
|
8201
8274
|
}
|
|
@@ -10507,6 +10580,11 @@ class MeetingGuestApiService {
|
|
|
10507
10580
|
return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetServiceV2", request.toApiJson(), this.apiOptions())
|
|
10508
10581
|
.pipe(map(resp => GetServiceV2Response.fromProto(resp)));
|
|
10509
10582
|
}
|
|
10583
|
+
getGroupV2(r) {
|
|
10584
|
+
const request = (r.toApiJson) ? r : new GetGroupV2Request(r);
|
|
10585
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetGroupV2", request.toApiJson(), this.apiOptions())
|
|
10586
|
+
.pipe(map(resp => GetGroupV2Response.fromProto(resp)));
|
|
10587
|
+
}
|
|
10510
10588
|
listGuestBookedMeetings(r) {
|
|
10511
10589
|
const request = (r.toApiJson) ? r : new ListGuestBookedMeetingsRequest(r);
|
|
10512
10590
|
return this.http.post(this._host + "/meetings.v1.MeetingGuest/ListGuestBookedMeetings", request.toApiJson(), this.apiOptions())
|
|
@@ -11088,6 +11166,7 @@ function meetingFromApi(meetingApi) {
|
|
|
11088
11166
|
return {
|
|
11089
11167
|
hostID: h.hostId || "",
|
|
11090
11168
|
name: h.name || "",
|
|
11169
|
+
userID: h.userId || "",
|
|
11091
11170
|
};
|
|
11092
11171
|
}),
|
|
11093
11172
|
meetingType: meetingApi.meetingType,
|
|
@@ -11479,6 +11558,9 @@ class GuestService {
|
|
|
11479
11558
|
getGroup(req) {
|
|
11480
11559
|
return this.guestAPIService.getGroup(req);
|
|
11481
11560
|
}
|
|
11561
|
+
getGroupV2(req) {
|
|
11562
|
+
return this.guestAPIService.getGroupV2(req);
|
|
11563
|
+
}
|
|
11482
11564
|
getService(req) {
|
|
11483
11565
|
return this.guestAPIService.getService(req);
|
|
11484
11566
|
}
|