@vendasta/meetings 1.15.3 → 1.15.5
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-host.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-type.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/meeting-host.mjs +58 -26
- package/esm2020/lib/_internal/objects/meeting-type.mjs +10 -1
- package/esm2020/lib/host/host.service.mjs +4 -2
- package/esm2020/lib/shared/meeting-type.mjs +5 -1
- package/fesm2015/vendasta-meetings.mjs +73 -26
- package/fesm2015/vendasta-meetings.mjs.map +1 -1
- package/fesm2020/vendasta-meetings.mjs +73 -26
- package/fesm2020/vendasta-meetings.mjs.map +1 -1
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/meeting-host.interface.d.ts +13 -8
- package/lib/_internal/interfaces/meeting-type.interface.d.ts +2 -1
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/meeting-host.d.ts +27 -19
- package/lib/_internal/objects/meeting-type.d.ts +2 -1
- package/lib/host/host.service.d.ts +4 -2
- package/lib/shared/meeting-type.d.ts +2 -0
- package/package.json +1 -1
|
@@ -2346,6 +2346,9 @@ class MeetingType {
|
|
|
2346
2346
|
if (proto.redirectDelaySeconds) {
|
|
2347
2347
|
m.redirectDelaySeconds = parseInt(proto.redirectDelaySeconds, 10);
|
|
2348
2348
|
}
|
|
2349
|
+
if (proto.dailyMeetingLimit) {
|
|
2350
|
+
m.dailyMeetingLimit = parseInt(proto.dailyMeetingLimit, 10);
|
|
2351
|
+
}
|
|
2349
2352
|
return m;
|
|
2350
2353
|
}
|
|
2351
2354
|
constructor(kwargs) {
|
|
@@ -2470,6 +2473,12 @@ class MeetingType {
|
|
|
2470
2473
|
if (typeof this.redirectDelaySeconds !== 'undefined') {
|
|
2471
2474
|
toReturn['redirectDelaySeconds'] = this.redirectDelaySeconds;
|
|
2472
2475
|
}
|
|
2476
|
+
if (typeof this.dailyMeetingLimitEnabled !== 'undefined') {
|
|
2477
|
+
toReturn['dailyMeetingLimitEnabled'] = this.dailyMeetingLimitEnabled;
|
|
2478
|
+
}
|
|
2479
|
+
if (typeof this.dailyMeetingLimit !== 'undefined') {
|
|
2480
|
+
toReturn['dailyMeetingLimit'] = this.dailyMeetingLimit;
|
|
2481
|
+
}
|
|
2473
2482
|
return toReturn;
|
|
2474
2483
|
}
|
|
2475
2484
|
}
|
|
@@ -6616,9 +6625,9 @@ function enumStringToValue$3(enumRef, value) {
|
|
|
6616
6625
|
}
|
|
6617
6626
|
return enumRef[value];
|
|
6618
6627
|
}
|
|
6619
|
-
class
|
|
6628
|
+
class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
|
|
6620
6629
|
static fromProto(proto) {
|
|
6621
|
-
let m = new
|
|
6630
|
+
let m = new EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry();
|
|
6622
6631
|
m = Object.assign(m, proto);
|
|
6623
6632
|
return m;
|
|
6624
6633
|
}
|
|
@@ -6639,9 +6648,9 @@ class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
|
|
|
6639
6648
|
return toReturn;
|
|
6640
6649
|
}
|
|
6641
6650
|
}
|
|
6642
|
-
class
|
|
6651
|
+
class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
|
|
6643
6652
|
static fromProto(proto) {
|
|
6644
|
-
let m = new
|
|
6653
|
+
let m = new IsCalendarConfiguredRequestApplicationContextPropertiesEntry();
|
|
6645
6654
|
m = Object.assign(m, proto);
|
|
6646
6655
|
return m;
|
|
6647
6656
|
}
|
|
@@ -7591,10 +7600,13 @@ class EventTypeSummary {
|
|
|
7591
7600
|
return toReturn;
|
|
7592
7601
|
}
|
|
7593
7602
|
}
|
|
7594
|
-
class
|
|
7603
|
+
class ListBookedMeetingsRequestFilters {
|
|
7595
7604
|
static fromProto(proto) {
|
|
7596
|
-
let m = new
|
|
7605
|
+
let m = new ListBookedMeetingsRequestFilters();
|
|
7597
7606
|
m = Object.assign(m, proto);
|
|
7607
|
+
if (proto.timeSpan) {
|
|
7608
|
+
m.timeSpan = DateRange.fromProto(proto.timeSpan);
|
|
7609
|
+
}
|
|
7598
7610
|
return m;
|
|
7599
7611
|
}
|
|
7600
7612
|
constructor(kwargs) {
|
|
@@ -7605,22 +7617,25 @@ class ListAvailabilityRequestFilters {
|
|
|
7605
7617
|
}
|
|
7606
7618
|
toApiJson() {
|
|
7607
7619
|
const toReturn = {};
|
|
7620
|
+
if (typeof this.meetingTypeIds !== 'undefined') {
|
|
7621
|
+
toReturn['meetingTypeIds'] = this.meetingTypeIds;
|
|
7622
|
+
}
|
|
7608
7623
|
if (typeof this.hostId !== 'undefined') {
|
|
7609
7624
|
toReturn['hostId'] = this.hostId;
|
|
7610
7625
|
}
|
|
7611
|
-
if (typeof this.
|
|
7612
|
-
toReturn['
|
|
7626
|
+
if (typeof this.timeSpan !== 'undefined' && this.timeSpan !== null) {
|
|
7627
|
+
toReturn['timeSpan'] = 'toApiJson' in this.timeSpan ? this.timeSpan.toApiJson() : this.timeSpan;
|
|
7628
|
+
}
|
|
7629
|
+
if (typeof this.userIds !== 'undefined') {
|
|
7630
|
+
toReturn['userIds'] = this.userIds;
|
|
7613
7631
|
}
|
|
7614
7632
|
return toReturn;
|
|
7615
7633
|
}
|
|
7616
7634
|
}
|
|
7617
|
-
class
|
|
7635
|
+
class ListAvailabilityRequestFilters {
|
|
7618
7636
|
static fromProto(proto) {
|
|
7619
|
-
let m = new
|
|
7637
|
+
let m = new ListAvailabilityRequestFilters();
|
|
7620
7638
|
m = Object.assign(m, proto);
|
|
7621
|
-
if (proto.timeSpan) {
|
|
7622
|
-
m.timeSpan = DateRange.fromProto(proto.timeSpan);
|
|
7623
|
-
}
|
|
7624
7639
|
return m;
|
|
7625
7640
|
}
|
|
7626
7641
|
constructor(kwargs) {
|
|
@@ -7631,17 +7646,11 @@ class ListBookedMeetingsRequestFilters {
|
|
|
7631
7646
|
}
|
|
7632
7647
|
toApiJson() {
|
|
7633
7648
|
const toReturn = {};
|
|
7634
|
-
if (typeof this.meetingTypeIds !== 'undefined') {
|
|
7635
|
-
toReturn['meetingTypeIds'] = this.meetingTypeIds;
|
|
7636
|
-
}
|
|
7637
7649
|
if (typeof this.hostId !== 'undefined') {
|
|
7638
7650
|
toReturn['hostId'] = this.hostId;
|
|
7639
7651
|
}
|
|
7640
|
-
if (typeof this.
|
|
7641
|
-
toReturn['
|
|
7642
|
-
}
|
|
7643
|
-
if (typeof this.userIds !== 'undefined') {
|
|
7644
|
-
toReturn['userIds'] = this.userIds;
|
|
7652
|
+
if (typeof this.meetingTypeId !== 'undefined') {
|
|
7653
|
+
toReturn['meetingTypeId'] = this.meetingTypeId;
|
|
7645
7654
|
}
|
|
7646
7655
|
return toReturn;
|
|
7647
7656
|
}
|
|
@@ -9107,6 +9116,9 @@ class ListBookedMeetingsV2Response {
|
|
|
9107
9116
|
if (proto.pagingMetadata) {
|
|
9108
9117
|
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
9109
9118
|
}
|
|
9119
|
+
if (proto.userBusyTimes) {
|
|
9120
|
+
m.userBusyTimes = proto.userBusyTimes.map(UserBusyTimes.fromProto);
|
|
9121
|
+
}
|
|
9110
9122
|
return m;
|
|
9111
9123
|
}
|
|
9112
9124
|
constructor(kwargs) {
|
|
@@ -9123,6 +9135,9 @@ class ListBookedMeetingsV2Response {
|
|
|
9123
9135
|
if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
|
|
9124
9136
|
toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
|
|
9125
9137
|
}
|
|
9138
|
+
if (typeof this.userBusyTimes !== 'undefined' && this.userBusyTimes !== null) {
|
|
9139
|
+
toReturn['userBusyTimes'] = 'toApiJson' in this.userBusyTimes ? this.userBusyTimes.toApiJson() : this.userBusyTimes;
|
|
9140
|
+
}
|
|
9126
9141
|
return toReturn;
|
|
9127
9142
|
}
|
|
9128
9143
|
}
|
|
@@ -9519,9 +9534,9 @@ class UpdateMeetingMetadataRequestMetadataEntry {
|
|
|
9519
9534
|
return toReturn;
|
|
9520
9535
|
}
|
|
9521
9536
|
}
|
|
9522
|
-
class
|
|
9537
|
+
class MeetingMetadataEntry {
|
|
9523
9538
|
static fromProto(proto) {
|
|
9524
|
-
let m = new
|
|
9539
|
+
let m = new MeetingMetadataEntry();
|
|
9525
9540
|
m = Object.assign(m, proto);
|
|
9526
9541
|
return m;
|
|
9527
9542
|
}
|
|
@@ -9542,9 +9557,9 @@ class HostBookBatchMeetingRequestMetadataEntry {
|
|
|
9542
9557
|
return toReturn;
|
|
9543
9558
|
}
|
|
9544
9559
|
}
|
|
9545
|
-
class
|
|
9560
|
+
class HostBookBatchMeetingRequestMetadataEntry {
|
|
9546
9561
|
static fromProto(proto) {
|
|
9547
|
-
let m = new
|
|
9562
|
+
let m = new HostBookBatchMeetingRequestMetadataEntry();
|
|
9548
9563
|
m = Object.assign(m, proto);
|
|
9549
9564
|
return m;
|
|
9550
9565
|
}
|
|
@@ -10046,6 +10061,32 @@ class UpdateServiceRequest {
|
|
|
10046
10061
|
return toReturn;
|
|
10047
10062
|
}
|
|
10048
10063
|
}
|
|
10064
|
+
class UserBusyTimes {
|
|
10065
|
+
static fromProto(proto) {
|
|
10066
|
+
let m = new UserBusyTimes();
|
|
10067
|
+
m = Object.assign(m, proto);
|
|
10068
|
+
if (proto.busyIntervals) {
|
|
10069
|
+
m.busyIntervals = proto.busyIntervals.map(IsoDateTimeRange.fromProto);
|
|
10070
|
+
}
|
|
10071
|
+
return m;
|
|
10072
|
+
}
|
|
10073
|
+
constructor(kwargs) {
|
|
10074
|
+
if (!kwargs) {
|
|
10075
|
+
return;
|
|
10076
|
+
}
|
|
10077
|
+
Object.assign(this, kwargs);
|
|
10078
|
+
}
|
|
10079
|
+
toApiJson() {
|
|
10080
|
+
const toReturn = {};
|
|
10081
|
+
if (typeof this.userId !== 'undefined') {
|
|
10082
|
+
toReturn['userId'] = this.userId;
|
|
10083
|
+
}
|
|
10084
|
+
if (typeof this.busyIntervals !== 'undefined' && this.busyIntervals !== null) {
|
|
10085
|
+
toReturn['busyIntervals'] = 'toApiJson' in this.busyIntervals ? this.busyIntervals.toApiJson() : this.busyIntervals;
|
|
10086
|
+
}
|
|
10087
|
+
return toReturn;
|
|
10088
|
+
}
|
|
10089
|
+
}
|
|
10049
10090
|
class WeekdayAvailability {
|
|
10050
10091
|
static fromProto(proto) {
|
|
10051
10092
|
let m = new WeekdayAvailability();
|
|
@@ -11205,6 +11246,8 @@ function MeetingTypeFromApi(req) {
|
|
|
11205
11246
|
redirectEnabled: req.meetingTypeApi.redirectEnabled || false,
|
|
11206
11247
|
redirectUrl: req.meetingTypeApi.redirectUrl || "",
|
|
11207
11248
|
redirectDelaySeconds: req.meetingTypeApi.redirectDelaySeconds || 0,
|
|
11249
|
+
dailyMeetingLimitEnabled: req.meetingTypeApi.dailyMeetingLimitEnabled || false,
|
|
11250
|
+
dailyMeetingLimit: req.meetingTypeApi.dailyMeetingLimit || 0,
|
|
11208
11251
|
};
|
|
11209
11252
|
}
|
|
11210
11253
|
function MeetingTypeToApi(req) {
|
|
@@ -11248,6 +11291,8 @@ function MeetingTypeToApi(req) {
|
|
|
11248
11291
|
redirectEnabled: m.redirectEnabled || false,
|
|
11249
11292
|
redirectUrl: m.redirectUrl || undefined,
|
|
11250
11293
|
redirectDelaySeconds: m.redirectDelaySeconds || 0,
|
|
11294
|
+
dailyMeetingLimitEnabled: m.dailyMeetingLimitEnabled || false,
|
|
11295
|
+
dailyMeetingLimit: m.dailyMeetingLimit || 0,
|
|
11251
11296
|
};
|
|
11252
11297
|
}
|
|
11253
11298
|
|
|
@@ -12149,7 +12194,9 @@ class HostService {
|
|
|
12149
12194
|
bookingGroupId: booking.bookingGroupId || "",
|
|
12150
12195
|
meetings: (booking.meetings || []).map((meeting) => meetingFromApi(meeting)),
|
|
12151
12196
|
}));
|
|
12152
|
-
|
|
12197
|
+
const page = new PagedResponse(bookings, resp.pagingMetadata.nextCursor, resp.pagingMetadata.hasMore);
|
|
12198
|
+
page.userBusyTimes = resp.userBusyTimes || [];
|
|
12199
|
+
return page;
|
|
12153
12200
|
}));
|
|
12154
12201
|
}
|
|
12155
12202
|
// hostBookBatchMeeting books a meeting on the host calendar — single-service
|