@vendasta/meetings 1.10.1 → 1.11.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/meeting-guest.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/meeting-guest.mjs +13 -1
- package/esm2020/lib/guest/guest.service.mjs +2 -17
- package/fesm2015/vendasta-meetings.mjs +13 -16
- package/fesm2015/vendasta-meetings.mjs.map +1 -1
- package/fesm2020/vendasta-meetings.mjs +13 -16
- package/fesm2020/vendasta-meetings.mjs.map +1 -1
- package/lib/_internal/interfaces/meeting-guest.interface.d.ts +3 -0
- package/lib/_internal/objects/meeting-guest.d.ts +3 -0
- package/lib/guest/guest.service.d.ts +7 -3
- package/package.json +1 -1
|
@@ -5271,6 +5271,9 @@ class ListMeetingTypesRequest {
|
|
|
5271
5271
|
static fromProto(proto) {
|
|
5272
5272
|
let m = new ListMeetingTypesRequest();
|
|
5273
5273
|
m = Object.assign(m, proto);
|
|
5274
|
+
if (proto.bookingSource) {
|
|
5275
|
+
m.bookingSource = enumStringToValue$6(BookingSource, proto.bookingSource);
|
|
5276
|
+
}
|
|
5274
5277
|
return m;
|
|
5275
5278
|
}
|
|
5276
5279
|
constructor(kwargs) {
|
|
@@ -5284,6 +5287,12 @@ class ListMeetingTypesRequest {
|
|
|
5284
5287
|
if (typeof this.hostId !== 'undefined') {
|
|
5285
5288
|
toReturn['hostId'] = this.hostId;
|
|
5286
5289
|
}
|
|
5290
|
+
if (typeof this.uniqueRequestId !== 'undefined') {
|
|
5291
|
+
toReturn['uniqueRequestId'] = this.uniqueRequestId;
|
|
5292
|
+
}
|
|
5293
|
+
if (typeof this.bookingSource !== 'undefined') {
|
|
5294
|
+
toReturn['bookingSource'] = this.bookingSource;
|
|
5295
|
+
}
|
|
5287
5296
|
return toReturn;
|
|
5288
5297
|
}
|
|
5289
5298
|
}
|
|
@@ -5307,6 +5316,9 @@ class ListMeetingTypesResponse {
|
|
|
5307
5316
|
if (typeof this.meetingTypes !== 'undefined' && this.meetingTypes !== null) {
|
|
5308
5317
|
toReturn['meetingTypes'] = 'toApiJson' in this.meetingTypes ? this.meetingTypes.toApiJson() : this.meetingTypes;
|
|
5309
5318
|
}
|
|
5319
|
+
if (typeof this.businessDisplayLogoUrl !== 'undefined') {
|
|
5320
|
+
toReturn['businessDisplayLogoUrl'] = this.businessDisplayLogoUrl;
|
|
5321
|
+
}
|
|
5310
5322
|
return toReturn;
|
|
5311
5323
|
}
|
|
5312
5324
|
}
|
|
@@ -11374,22 +11386,7 @@ class GuestService {
|
|
|
11374
11386
|
}));
|
|
11375
11387
|
}
|
|
11376
11388
|
listMeetingTypes(req) {
|
|
11377
|
-
return this.guestAPIService.listMeetingTypes(req)
|
|
11378
|
-
if (!resp || !resp.meetingTypes) {
|
|
11379
|
-
return [];
|
|
11380
|
-
}
|
|
11381
|
-
return resp.meetingTypes.map((mt) => {
|
|
11382
|
-
return MeetingTypeFromApi({
|
|
11383
|
-
environment: onProductionGlobal()
|
|
11384
|
-
? Environment.PROD
|
|
11385
|
-
: Environment.DEMO,
|
|
11386
|
-
calendarId: req.hostId,
|
|
11387
|
-
meetingTypeApi: mt,
|
|
11388
|
-
metadata: req.metadata,
|
|
11389
|
-
calendarSlug: req.calendarSlug,
|
|
11390
|
-
});
|
|
11391
|
-
});
|
|
11392
|
-
}));
|
|
11389
|
+
return this.guestAPIService.listMeetingTypes(req);
|
|
11393
11390
|
}
|
|
11394
11391
|
listAvailableTimeSlots(req) {
|
|
11395
11392
|
return this.guestAPIService
|