@vendasta/meetings 1.13.0 → 1.14.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 +71 -1
- package/esm2020/lib/guest/guest.service.mjs +4 -1
- package/fesm2015/vendasta-meetings.mjs +78 -0
- package/fesm2015/vendasta-meetings.mjs.map +1 -1
- package/fesm2020/vendasta-meetings.mjs +78 -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/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/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();
|
|
@@ -10507,6 +10577,11 @@ class MeetingGuestApiService {
|
|
|
10507
10577
|
return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetServiceV2", request.toApiJson(), this.apiOptions())
|
|
10508
10578
|
.pipe(map(resp => GetServiceV2Response.fromProto(resp)));
|
|
10509
10579
|
}
|
|
10580
|
+
getGroupV2(r) {
|
|
10581
|
+
const request = (r.toApiJson) ? r : new GetGroupV2Request(r);
|
|
10582
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetGroupV2", request.toApiJson(), this.apiOptions())
|
|
10583
|
+
.pipe(map(resp => GetGroupV2Response.fromProto(resp)));
|
|
10584
|
+
}
|
|
10510
10585
|
listGuestBookedMeetings(r) {
|
|
10511
10586
|
const request = (r.toApiJson) ? r : new ListGuestBookedMeetingsRequest(r);
|
|
10512
10587
|
return this.http.post(this._host + "/meetings.v1.MeetingGuest/ListGuestBookedMeetings", request.toApiJson(), this.apiOptions())
|
|
@@ -11479,6 +11554,9 @@ class GuestService {
|
|
|
11479
11554
|
getGroup(req) {
|
|
11480
11555
|
return this.guestAPIService.getGroup(req);
|
|
11481
11556
|
}
|
|
11557
|
+
getGroupV2(req) {
|
|
11558
|
+
return this.guestAPIService.getGroupV2(req);
|
|
11559
|
+
}
|
|
11482
11560
|
getService(req) {
|
|
11483
11561
|
return this.guestAPIService.getService(req);
|
|
11484
11562
|
}
|