@vendasta/meetings 1.6.8 → 1.6.10
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/groups-and-services.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-external.interface.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/interfaces/shared.interface.mjs +1 -1
- package/esm2020/lib/_internal/meeting-guest.api.service.mjs +17 -2
- package/esm2020/lib/_internal/objects/groups-and-services.mjs +7 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/meeting-external.mjs +2 -2
- package/esm2020/lib/_internal/objects/meeting-guest.mjs +399 -2
- package/esm2020/lib/_internal/objects/meeting-host.mjs +2 -2
- package/esm2020/lib/_internal/objects/shared.mjs +1 -1
- package/esm2020/lib/guest/guest.service.mjs +43 -21
- package/esm2020/lib/shared/groups-and-services.mjs +7 -3
- package/fesm2015/vendasta-meetings.mjs +462 -18
- package/fesm2015/vendasta-meetings.mjs.map +1 -1
- package/fesm2020/vendasta-meetings.mjs +462 -18
- package/fesm2020/vendasta-meetings.mjs.map +1 -1
- package/lib/_internal/interfaces/groups-and-services.interface.d.ts +2 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/meeting-external.interface.d.ts +1 -1
- package/lib/_internal/interfaces/meeting-guest.interface.d.ts +76 -1
- package/lib/_internal/interfaces/meeting-host.interface.d.ts +1 -1
- package/lib/_internal/meeting-guest.api.service.d.ts +5 -2
- package/lib/_internal/objects/groups-and-services.d.ts +2 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/meeting-external.d.ts +1 -1
- package/lib/_internal/objects/meeting-guest.d.ts +109 -1
- package/lib/_internal/objects/meeting-host.d.ts +1 -1
- package/lib/guest/guest.service.d.ts +7 -4
- package/lib/shared/groups-and-services.d.ts +2 -0
- package/package.json +1 -1
|
@@ -2470,6 +2470,9 @@ class Group {
|
|
|
2470
2470
|
if (typeof this.bookingUrl !== 'undefined') {
|
|
2471
2471
|
toReturn['bookingUrl'] = this.bookingUrl;
|
|
2472
2472
|
}
|
|
2473
|
+
if (typeof this.isBatchBookingEnabled !== 'undefined') {
|
|
2474
|
+
toReturn['isBatchBookingEnabled'] = this.isBatchBookingEnabled;
|
|
2475
|
+
}
|
|
2473
2476
|
return toReturn;
|
|
2474
2477
|
}
|
|
2475
2478
|
}
|
|
@@ -2514,6 +2517,9 @@ class Service {
|
|
|
2514
2517
|
if (typeof this.bookingUrl !== 'undefined') {
|
|
2515
2518
|
toReturn['bookingUrl'] = this.bookingUrl;
|
|
2516
2519
|
}
|
|
2520
|
+
if (typeof this.isBatchBookingEnabled !== 'undefined') {
|
|
2521
|
+
toReturn['isBatchBookingEnabled'] = this.isBatchBookingEnabled;
|
|
2522
|
+
}
|
|
2517
2523
|
return toReturn;
|
|
2518
2524
|
}
|
|
2519
2525
|
}
|
|
@@ -3714,6 +3720,143 @@ function enumStringToValue$6(enumRef, value) {
|
|
|
3714
3720
|
}
|
|
3715
3721
|
return enumRef[value];
|
|
3716
3722
|
}
|
|
3723
|
+
class BatchBookingTarget {
|
|
3724
|
+
static fromProto(proto) {
|
|
3725
|
+
let m = new BatchBookingTarget();
|
|
3726
|
+
m = Object.assign(m, proto);
|
|
3727
|
+
return m;
|
|
3728
|
+
}
|
|
3729
|
+
constructor(kwargs) {
|
|
3730
|
+
if (!kwargs) {
|
|
3731
|
+
return;
|
|
3732
|
+
}
|
|
3733
|
+
Object.assign(this, kwargs);
|
|
3734
|
+
}
|
|
3735
|
+
toApiJson() {
|
|
3736
|
+
const toReturn = {};
|
|
3737
|
+
if (typeof this.eventTypeId !== 'undefined') {
|
|
3738
|
+
toReturn['eventTypeId'] = this.eventTypeId;
|
|
3739
|
+
}
|
|
3740
|
+
if (typeof this.userId !== 'undefined') {
|
|
3741
|
+
toReturn['userId'] = this.userId;
|
|
3742
|
+
}
|
|
3743
|
+
if (typeof this.order !== 'undefined') {
|
|
3744
|
+
toReturn['order'] = this.order;
|
|
3745
|
+
}
|
|
3746
|
+
return toReturn;
|
|
3747
|
+
}
|
|
3748
|
+
}
|
|
3749
|
+
class BatchEventTypeTarget {
|
|
3750
|
+
static fromProto(proto) {
|
|
3751
|
+
let m = new BatchEventTypeTarget();
|
|
3752
|
+
m = Object.assign(m, proto);
|
|
3753
|
+
return m;
|
|
3754
|
+
}
|
|
3755
|
+
constructor(kwargs) {
|
|
3756
|
+
if (!kwargs) {
|
|
3757
|
+
return;
|
|
3758
|
+
}
|
|
3759
|
+
Object.assign(this, kwargs);
|
|
3760
|
+
}
|
|
3761
|
+
toApiJson() {
|
|
3762
|
+
const toReturn = {};
|
|
3763
|
+
if (typeof this.eventTypeId !== 'undefined') {
|
|
3764
|
+
toReturn['eventTypeId'] = this.eventTypeId;
|
|
3765
|
+
}
|
|
3766
|
+
if (typeof this.userId !== 'undefined') {
|
|
3767
|
+
toReturn['userId'] = this.userId;
|
|
3768
|
+
}
|
|
3769
|
+
if (typeof this.order !== 'undefined') {
|
|
3770
|
+
toReturn['order'] = this.order;
|
|
3771
|
+
}
|
|
3772
|
+
return toReturn;
|
|
3773
|
+
}
|
|
3774
|
+
}
|
|
3775
|
+
class BookBatchMeetingRequest {
|
|
3776
|
+
static fromProto(proto) {
|
|
3777
|
+
let m = new BookBatchMeetingRequest();
|
|
3778
|
+
m = Object.assign(m, proto);
|
|
3779
|
+
if (proto.targets) {
|
|
3780
|
+
m.targets = proto.targets.map(BatchBookingTarget.fromProto);
|
|
3781
|
+
}
|
|
3782
|
+
if (proto.start) {
|
|
3783
|
+
m.start = new Date(proto.start);
|
|
3784
|
+
}
|
|
3785
|
+
if (proto.attendees) {
|
|
3786
|
+
m.attendees = proto.attendees.map(Contact.fromProto);
|
|
3787
|
+
}
|
|
3788
|
+
if (proto.metadata) {
|
|
3789
|
+
m.metadata = Object.keys(proto.metadata).reduce((obj, k) => { obj[k] = proto.metadata[k]; return obj; }, {});
|
|
3790
|
+
}
|
|
3791
|
+
if (proto.formAnswers) {
|
|
3792
|
+
m.formAnswers = Answers.fromProto(proto.formAnswers);
|
|
3793
|
+
}
|
|
3794
|
+
if (proto.bookingSource) {
|
|
3795
|
+
m.bookingSource = enumStringToValue$6(BookingSource, proto.bookingSource);
|
|
3796
|
+
}
|
|
3797
|
+
return m;
|
|
3798
|
+
}
|
|
3799
|
+
constructor(kwargs) {
|
|
3800
|
+
if (!kwargs) {
|
|
3801
|
+
return;
|
|
3802
|
+
}
|
|
3803
|
+
Object.assign(this, kwargs);
|
|
3804
|
+
}
|
|
3805
|
+
toApiJson() {
|
|
3806
|
+
const toReturn = {};
|
|
3807
|
+
if (typeof this.targets !== 'undefined' && this.targets !== null) {
|
|
3808
|
+
toReturn['targets'] = 'toApiJson' in this.targets ? this.targets.toApiJson() : this.targets;
|
|
3809
|
+
}
|
|
3810
|
+
if (typeof this.start !== 'undefined' && this.start !== null) {
|
|
3811
|
+
toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
|
|
3812
|
+
}
|
|
3813
|
+
if (typeof this.attendees !== 'undefined' && this.attendees !== null) {
|
|
3814
|
+
toReturn['attendees'] = 'toApiJson' in this.attendees ? this.attendees.toApiJson() : this.attendees;
|
|
3815
|
+
}
|
|
3816
|
+
if (typeof this.comment !== 'undefined') {
|
|
3817
|
+
toReturn['comment'] = this.comment;
|
|
3818
|
+
}
|
|
3819
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
3820
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
3821
|
+
}
|
|
3822
|
+
if (typeof this.formAnswers !== 'undefined' && this.formAnswers !== null) {
|
|
3823
|
+
toReturn['formAnswers'] = 'toApiJson' in this.formAnswers ? this.formAnswers.toApiJson() : this.formAnswers;
|
|
3824
|
+
}
|
|
3825
|
+
if (typeof this.recaptchaToken !== 'undefined') {
|
|
3826
|
+
toReturn['recaptchaToken'] = this.recaptchaToken;
|
|
3827
|
+
}
|
|
3828
|
+
if (typeof this.location !== 'undefined') {
|
|
3829
|
+
toReturn['location'] = this.location;
|
|
3830
|
+
}
|
|
3831
|
+
if (typeof this.bookingSource !== 'undefined') {
|
|
3832
|
+
toReturn['bookingSource'] = this.bookingSource;
|
|
3833
|
+
}
|
|
3834
|
+
if (typeof this.bookingOriginId !== 'undefined') {
|
|
3835
|
+
toReturn['bookingOriginId'] = this.bookingOriginId;
|
|
3836
|
+
}
|
|
3837
|
+
return toReturn;
|
|
3838
|
+
}
|
|
3839
|
+
}
|
|
3840
|
+
class BookBatchMeetingResponse {
|
|
3841
|
+
static fromProto(proto) {
|
|
3842
|
+
let m = new BookBatchMeetingResponse();
|
|
3843
|
+
m = Object.assign(m, proto);
|
|
3844
|
+
return m;
|
|
3845
|
+
}
|
|
3846
|
+
constructor(kwargs) {
|
|
3847
|
+
if (!kwargs) {
|
|
3848
|
+
return;
|
|
3849
|
+
}
|
|
3850
|
+
Object.assign(this, kwargs);
|
|
3851
|
+
}
|
|
3852
|
+
toApiJson() {
|
|
3853
|
+
const toReturn = {};
|
|
3854
|
+
if (typeof this.bookingGroupId !== 'undefined') {
|
|
3855
|
+
toReturn['bookingGroupId'] = this.bookingGroupId;
|
|
3856
|
+
}
|
|
3857
|
+
return toReturn;
|
|
3858
|
+
}
|
|
3859
|
+
}
|
|
3717
3860
|
class BookMeetingRequest {
|
|
3718
3861
|
static fromProto(proto) {
|
|
3719
3862
|
let m = new BookMeetingRequest();
|
|
@@ -4142,6 +4285,73 @@ class GetServiceResponse {
|
|
|
4142
4285
|
return toReturn;
|
|
4143
4286
|
}
|
|
4144
4287
|
}
|
|
4288
|
+
class GetServiceV2Request {
|
|
4289
|
+
static fromProto(proto) {
|
|
4290
|
+
let m = new GetServiceV2Request();
|
|
4291
|
+
m = Object.assign(m, proto);
|
|
4292
|
+
return m;
|
|
4293
|
+
}
|
|
4294
|
+
constructor(kwargs) {
|
|
4295
|
+
if (!kwargs) {
|
|
4296
|
+
return;
|
|
4297
|
+
}
|
|
4298
|
+
Object.assign(this, kwargs);
|
|
4299
|
+
}
|
|
4300
|
+
toApiJson() {
|
|
4301
|
+
const toReturn = {};
|
|
4302
|
+
if (typeof this.serviceId !== 'undefined') {
|
|
4303
|
+
toReturn['serviceId'] = this.serviceId;
|
|
4304
|
+
}
|
|
4305
|
+
return toReturn;
|
|
4306
|
+
}
|
|
4307
|
+
}
|
|
4308
|
+
class GetServiceV2Response {
|
|
4309
|
+
static fromProto(proto) {
|
|
4310
|
+
let m = new GetServiceV2Response();
|
|
4311
|
+
m = Object.assign(m, proto);
|
|
4312
|
+
if (proto.groups) {
|
|
4313
|
+
m.groups = proto.groups.map(ServiceGroup.fromProto);
|
|
4314
|
+
}
|
|
4315
|
+
if (proto.eventTypes) {
|
|
4316
|
+
m.eventTypes = proto.eventTypes.map(ServiceEventType.fromProto);
|
|
4317
|
+
}
|
|
4318
|
+
return m;
|
|
4319
|
+
}
|
|
4320
|
+
constructor(kwargs) {
|
|
4321
|
+
if (!kwargs) {
|
|
4322
|
+
return;
|
|
4323
|
+
}
|
|
4324
|
+
Object.assign(this, kwargs);
|
|
4325
|
+
}
|
|
4326
|
+
toApiJson() {
|
|
4327
|
+
const toReturn = {};
|
|
4328
|
+
if (typeof this.id !== 'undefined') {
|
|
4329
|
+
toReturn['id'] = this.id;
|
|
4330
|
+
}
|
|
4331
|
+
if (typeof this.name !== 'undefined') {
|
|
4332
|
+
toReturn['name'] = this.name;
|
|
4333
|
+
}
|
|
4334
|
+
if (typeof this.description !== 'undefined') {
|
|
4335
|
+
toReturn['description'] = this.description;
|
|
4336
|
+
}
|
|
4337
|
+
if (typeof this.groups !== 'undefined' && this.groups !== null) {
|
|
4338
|
+
toReturn['groups'] = 'toApiJson' in this.groups ? this.groups.toApiJson() : this.groups;
|
|
4339
|
+
}
|
|
4340
|
+
if (typeof this.eventTypes !== 'undefined' && this.eventTypes !== null) {
|
|
4341
|
+
toReturn['eventTypes'] = 'toApiJson' in this.eventTypes ? this.eventTypes.toApiJson() : this.eventTypes;
|
|
4342
|
+
}
|
|
4343
|
+
if (typeof this.businessDisplayLogoUrl !== 'undefined') {
|
|
4344
|
+
toReturn['businessDisplayLogoUrl'] = this.businessDisplayLogoUrl;
|
|
4345
|
+
}
|
|
4346
|
+
if (typeof this.bookingUrl !== 'undefined') {
|
|
4347
|
+
toReturn['bookingUrl'] = this.bookingUrl;
|
|
4348
|
+
}
|
|
4349
|
+
if (typeof this.isBatchBookingEnabled !== 'undefined') {
|
|
4350
|
+
toReturn['isBatchBookingEnabled'] = this.isBatchBookingEnabled;
|
|
4351
|
+
}
|
|
4352
|
+
return toReturn;
|
|
4353
|
+
}
|
|
4354
|
+
}
|
|
4145
4355
|
class GetSessionInviteeMeetingInfoRequest {
|
|
4146
4356
|
static fromProto(proto) {
|
|
4147
4357
|
let m = new GetSessionInviteeMeetingInfoRequest();
|
|
@@ -4726,6 +4936,70 @@ class ListAvailableTimeSlotsResponse {
|
|
|
4726
4936
|
return toReturn;
|
|
4727
4937
|
}
|
|
4728
4938
|
}
|
|
4939
|
+
class ListBatchAvailableTimeSlotsRequest {
|
|
4940
|
+
static fromProto(proto) {
|
|
4941
|
+
let m = new ListBatchAvailableTimeSlotsRequest();
|
|
4942
|
+
m = Object.assign(m, proto);
|
|
4943
|
+
if (proto.targets) {
|
|
4944
|
+
m.targets = proto.targets.map(BatchEventTypeTarget.fromProto);
|
|
4945
|
+
}
|
|
4946
|
+
if (proto.timeSpan) {
|
|
4947
|
+
m.timeSpan = DateRange.fromProto(proto.timeSpan);
|
|
4948
|
+
}
|
|
4949
|
+
if (proto.timeZone) {
|
|
4950
|
+
m.timeZone = TimeZone.fromProto(proto.timeZone);
|
|
4951
|
+
}
|
|
4952
|
+
return m;
|
|
4953
|
+
}
|
|
4954
|
+
constructor(kwargs) {
|
|
4955
|
+
if (!kwargs) {
|
|
4956
|
+
return;
|
|
4957
|
+
}
|
|
4958
|
+
Object.assign(this, kwargs);
|
|
4959
|
+
}
|
|
4960
|
+
toApiJson() {
|
|
4961
|
+
const toReturn = {};
|
|
4962
|
+
if (typeof this.targets !== 'undefined' && this.targets !== null) {
|
|
4963
|
+
toReturn['targets'] = 'toApiJson' in this.targets ? this.targets.toApiJson() : this.targets;
|
|
4964
|
+
}
|
|
4965
|
+
if (typeof this.timeSpan !== 'undefined' && this.timeSpan !== null) {
|
|
4966
|
+
toReturn['timeSpan'] = 'toApiJson' in this.timeSpan ? this.timeSpan.toApiJson() : this.timeSpan;
|
|
4967
|
+
}
|
|
4968
|
+
if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
|
|
4969
|
+
toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
|
|
4970
|
+
}
|
|
4971
|
+
return toReturn;
|
|
4972
|
+
}
|
|
4973
|
+
}
|
|
4974
|
+
class ListBatchAvailableTimeSlotsResponse {
|
|
4975
|
+
static fromProto(proto) {
|
|
4976
|
+
let m = new ListBatchAvailableTimeSlotsResponse();
|
|
4977
|
+
m = Object.assign(m, proto);
|
|
4978
|
+
if (proto.timeSlots) {
|
|
4979
|
+
m.timeSlots = proto.timeSlots.map(DateRange.fromProto);
|
|
4980
|
+
}
|
|
4981
|
+
if (proto.isoTimeSlots) {
|
|
4982
|
+
m.isoTimeSlots = proto.isoTimeSlots.map(IsoDateTimeRange.fromProto);
|
|
4983
|
+
}
|
|
4984
|
+
return m;
|
|
4985
|
+
}
|
|
4986
|
+
constructor(kwargs) {
|
|
4987
|
+
if (!kwargs) {
|
|
4988
|
+
return;
|
|
4989
|
+
}
|
|
4990
|
+
Object.assign(this, kwargs);
|
|
4991
|
+
}
|
|
4992
|
+
toApiJson() {
|
|
4993
|
+
const toReturn = {};
|
|
4994
|
+
if (typeof this.timeSlots !== 'undefined' && this.timeSlots !== null) {
|
|
4995
|
+
toReturn['timeSlots'] = 'toApiJson' in this.timeSlots ? this.timeSlots.toApiJson() : this.timeSlots;
|
|
4996
|
+
}
|
|
4997
|
+
if (typeof this.isoTimeSlots !== 'undefined' && this.isoTimeSlots !== null) {
|
|
4998
|
+
toReturn['isoTimeSlots'] = 'toApiJson' in this.isoTimeSlots ? this.isoTimeSlots.toApiJson() : this.isoTimeSlots;
|
|
4999
|
+
}
|
|
5000
|
+
return toReturn;
|
|
5001
|
+
}
|
|
5002
|
+
}
|
|
4729
5003
|
class ListMeetingTypesRequest {
|
|
4730
5004
|
static fromProto(proto) {
|
|
4731
5005
|
let m = new ListMeetingTypesRequest();
|
|
@@ -4769,6 +5043,29 @@ class ListMeetingTypesResponse {
|
|
|
4769
5043
|
return toReturn;
|
|
4770
5044
|
}
|
|
4771
5045
|
}
|
|
5046
|
+
class BookBatchMeetingRequestMetadataEntry {
|
|
5047
|
+
static fromProto(proto) {
|
|
5048
|
+
let m = new BookBatchMeetingRequestMetadataEntry();
|
|
5049
|
+
m = Object.assign(m, proto);
|
|
5050
|
+
return m;
|
|
5051
|
+
}
|
|
5052
|
+
constructor(kwargs) {
|
|
5053
|
+
if (!kwargs) {
|
|
5054
|
+
return;
|
|
5055
|
+
}
|
|
5056
|
+
Object.assign(this, kwargs);
|
|
5057
|
+
}
|
|
5058
|
+
toApiJson() {
|
|
5059
|
+
const toReturn = {};
|
|
5060
|
+
if (typeof this.key !== 'undefined') {
|
|
5061
|
+
toReturn['key'] = this.key;
|
|
5062
|
+
}
|
|
5063
|
+
if (typeof this.value !== 'undefined') {
|
|
5064
|
+
toReturn['value'] = this.value;
|
|
5065
|
+
}
|
|
5066
|
+
return toReturn;
|
|
5067
|
+
}
|
|
5068
|
+
}
|
|
4772
5069
|
class BookMeetingRequestMetadataEntry {
|
|
4773
5070
|
static fromProto(proto) {
|
|
4774
5071
|
let m = new BookMeetingRequestMetadataEntry();
|
|
@@ -4830,6 +5127,112 @@ class RegisterSessionRequest {
|
|
|
4830
5127
|
return toReturn;
|
|
4831
5128
|
}
|
|
4832
5129
|
}
|
|
5130
|
+
class ServiceEventType {
|
|
5131
|
+
static fromProto(proto) {
|
|
5132
|
+
let m = new ServiceEventType();
|
|
5133
|
+
m = Object.assign(m, proto);
|
|
5134
|
+
if (proto.hostUser) {
|
|
5135
|
+
m.hostUser = proto.hostUser.map(HostUser.fromProto);
|
|
5136
|
+
}
|
|
5137
|
+
if (proto.notificationType) {
|
|
5138
|
+
m.notificationType = enumStringToValue$6(NotificationType, proto.notificationType);
|
|
5139
|
+
}
|
|
5140
|
+
if (proto.eventType) {
|
|
5141
|
+
m.eventType = enumStringToValue$6(TeamEventMeetingType, proto.eventType);
|
|
5142
|
+
}
|
|
5143
|
+
if (proto.meetingType) {
|
|
5144
|
+
m.meetingType = enumStringToValue$6(MeetingLocation, proto.meetingType);
|
|
5145
|
+
}
|
|
5146
|
+
if (proto.locationType) {
|
|
5147
|
+
m.locationType = enumStringToValue$6(MeetingLocationType, proto.locationType);
|
|
5148
|
+
}
|
|
5149
|
+
return m;
|
|
5150
|
+
}
|
|
5151
|
+
constructor(kwargs) {
|
|
5152
|
+
if (!kwargs) {
|
|
5153
|
+
return;
|
|
5154
|
+
}
|
|
5155
|
+
Object.assign(this, kwargs);
|
|
5156
|
+
}
|
|
5157
|
+
toApiJson() {
|
|
5158
|
+
const toReturn = {};
|
|
5159
|
+
if (typeof this.id !== 'undefined') {
|
|
5160
|
+
toReturn['id'] = this.id;
|
|
5161
|
+
}
|
|
5162
|
+
if (typeof this.name !== 'undefined') {
|
|
5163
|
+
toReturn['name'] = this.name;
|
|
5164
|
+
}
|
|
5165
|
+
if (typeof this.description !== 'undefined') {
|
|
5166
|
+
toReturn['description'] = this.description;
|
|
5167
|
+
}
|
|
5168
|
+
if (typeof this.hostUser !== 'undefined' && this.hostUser !== null) {
|
|
5169
|
+
toReturn['hostUser'] = 'toApiJson' in this.hostUser ? this.hostUser.toApiJson() : this.hostUser;
|
|
5170
|
+
}
|
|
5171
|
+
if (typeof this.duration !== 'undefined') {
|
|
5172
|
+
toReturn['duration'] = this.duration;
|
|
5173
|
+
}
|
|
5174
|
+
if (typeof this.emailRequired !== 'undefined') {
|
|
5175
|
+
toReturn['emailRequired'] = this.emailRequired;
|
|
5176
|
+
}
|
|
5177
|
+
if (typeof this.smsRequired !== 'undefined') {
|
|
5178
|
+
toReturn['smsRequired'] = this.smsRequired;
|
|
5179
|
+
}
|
|
5180
|
+
if (typeof this.notificationType !== 'undefined') {
|
|
5181
|
+
toReturn['notificationType'] = this.notificationType;
|
|
5182
|
+
}
|
|
5183
|
+
if (typeof this.eventType !== 'undefined') {
|
|
5184
|
+
toReturn['eventType'] = this.eventType;
|
|
5185
|
+
}
|
|
5186
|
+
if (typeof this.meetingType !== 'undefined') {
|
|
5187
|
+
toReturn['meetingType'] = this.meetingType;
|
|
5188
|
+
}
|
|
5189
|
+
if (typeof this.locationType !== 'undefined') {
|
|
5190
|
+
toReturn['locationType'] = this.locationType;
|
|
5191
|
+
}
|
|
5192
|
+
if (typeof this.locationGuideline !== 'undefined') {
|
|
5193
|
+
toReturn['locationGuideline'] = this.locationGuideline;
|
|
5194
|
+
}
|
|
5195
|
+
if (typeof this.location !== 'undefined') {
|
|
5196
|
+
toReturn['location'] = this.location;
|
|
5197
|
+
}
|
|
5198
|
+
return toReturn;
|
|
5199
|
+
}
|
|
5200
|
+
}
|
|
5201
|
+
class ServiceGroup {
|
|
5202
|
+
static fromProto(proto) {
|
|
5203
|
+
let m = new ServiceGroup();
|
|
5204
|
+
m = Object.assign(m, proto);
|
|
5205
|
+
if (proto.eventTypes) {
|
|
5206
|
+
m.eventTypes = proto.eventTypes.map(ServiceEventType.fromProto);
|
|
5207
|
+
}
|
|
5208
|
+
return m;
|
|
5209
|
+
}
|
|
5210
|
+
constructor(kwargs) {
|
|
5211
|
+
if (!kwargs) {
|
|
5212
|
+
return;
|
|
5213
|
+
}
|
|
5214
|
+
Object.assign(this, kwargs);
|
|
5215
|
+
}
|
|
5216
|
+
toApiJson() {
|
|
5217
|
+
const toReturn = {};
|
|
5218
|
+
if (typeof this.id !== 'undefined') {
|
|
5219
|
+
toReturn['id'] = this.id;
|
|
5220
|
+
}
|
|
5221
|
+
if (typeof this.name !== 'undefined') {
|
|
5222
|
+
toReturn['name'] = this.name;
|
|
5223
|
+
}
|
|
5224
|
+
if (typeof this.description !== 'undefined') {
|
|
5225
|
+
toReturn['description'] = this.description;
|
|
5226
|
+
}
|
|
5227
|
+
if (typeof this.eventTypes !== 'undefined' && this.eventTypes !== null) {
|
|
5228
|
+
toReturn['eventTypes'] = 'toApiJson' in this.eventTypes ? this.eventTypes.toApiJson() : this.eventTypes;
|
|
5229
|
+
}
|
|
5230
|
+
if (typeof this.isBatchBookingEnabled !== 'undefined') {
|
|
5231
|
+
toReturn['isBatchBookingEnabled'] = this.isBatchBookingEnabled;
|
|
5232
|
+
}
|
|
5233
|
+
return toReturn;
|
|
5234
|
+
}
|
|
5235
|
+
}
|
|
4833
5236
|
|
|
4834
5237
|
function enumStringToValue$5(enumRef, value) {
|
|
4835
5238
|
if (typeof value === 'number') {
|
|
@@ -9038,6 +9441,21 @@ class MeetingGuestApiService {
|
|
|
9038
9441
|
return this.http.post(this._host + "/meetings.v1.MeetingGuest/CheckFeatureFlag", request.toApiJson(), this.apiOptions())
|
|
9039
9442
|
.pipe(map(resp => CheckFeatureFlagResponse.fromProto(resp)));
|
|
9040
9443
|
}
|
|
9444
|
+
listBatchAvailableTimeSlots(r) {
|
|
9445
|
+
const request = (r.toApiJson) ? r : new ListBatchAvailableTimeSlotsRequest(r);
|
|
9446
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/ListBatchAvailableTimeSlots", request.toApiJson(), this.apiOptions())
|
|
9447
|
+
.pipe(map(resp => ListBatchAvailableTimeSlotsResponse.fromProto(resp)));
|
|
9448
|
+
}
|
|
9449
|
+
bookBatchMeeting(r) {
|
|
9450
|
+
const request = (r.toApiJson) ? r : new BookBatchMeetingRequest(r);
|
|
9451
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/BookBatchMeeting", request.toApiJson(), this.apiOptions())
|
|
9452
|
+
.pipe(map(resp => BookBatchMeetingResponse.fromProto(resp)));
|
|
9453
|
+
}
|
|
9454
|
+
getServiceV2(r) {
|
|
9455
|
+
const request = (r.toApiJson) ? r : new GetServiceV2Request(r);
|
|
9456
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetServicesV2", request.toApiJson(), this.apiOptions())
|
|
9457
|
+
.pipe(map(resp => GetServiceV2Response.fromProto(resp)));
|
|
9458
|
+
}
|
|
9041
9459
|
}
|
|
9042
9460
|
MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9043
9461
|
MeetingGuestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, providedIn: 'root' });
|
|
@@ -9761,6 +10179,7 @@ function GroupTypeToAPi(req) {
|
|
|
9761
10179
|
isPinned: m.isPinned || undefined,
|
|
9762
10180
|
associations: m.associations ? m.associations.map(AssociationTypeToApi) : undefined,
|
|
9763
10181
|
hexColor: m.hexColor || undefined,
|
|
10182
|
+
isBatchBookingEnabled: m.isBatchBookingEnabled || undefined,
|
|
9764
10183
|
};
|
|
9765
10184
|
}
|
|
9766
10185
|
function ServiceTypeToApi(req) {
|
|
@@ -9776,6 +10195,7 @@ function ServiceTypeToApi(req) {
|
|
|
9776
10195
|
isPinned: m.isPinned || undefined,
|
|
9777
10196
|
associations: m.associations ? m.associations.map(AssociationTypeToApi) : undefined,
|
|
9778
10197
|
hexColor: m.hexColor || undefined,
|
|
10198
|
+
isBatchBookingEnabled: m.isBatchBookingEnabled || undefined,
|
|
9779
10199
|
};
|
|
9780
10200
|
}
|
|
9781
10201
|
function AssociationTypeToApi(association) {
|
|
@@ -9820,7 +10240,8 @@ function GroupFromApi(req) {
|
|
|
9820
10240
|
isPinned: req.groupApi.isPinned || false,
|
|
9821
10241
|
associations: req.groupApi.associations ? req.groupApi.associations.map(AssociationFromApi) : [],
|
|
9822
10242
|
hexColor: req.groupApi.hexColor || '',
|
|
9823
|
-
bookingUrl: bookingUrl
|
|
10243
|
+
bookingUrl: bookingUrl,
|
|
10244
|
+
isBatchBookingEnabled: req.groupApi.isBatchBookingEnabled || false,
|
|
9824
10245
|
};
|
|
9825
10246
|
}
|
|
9826
10247
|
function getBookingURL(environment, slug, calendarId) {
|
|
@@ -9846,7 +10267,8 @@ function ServiceFromApi(req) {
|
|
|
9846
10267
|
isPinned: req.serviceApi.isPinned || false,
|
|
9847
10268
|
associations: req.serviceApi.associations ? req.serviceApi.associations.map(AssociationFromApi) : [],
|
|
9848
10269
|
hexColor: req.serviceApi.hexColor || '',
|
|
9849
|
-
bookingUrl: bookingUrl
|
|
10270
|
+
bookingUrl: bookingUrl,
|
|
10271
|
+
isBatchBookingEnabled: req.serviceApi.isBatchBookingEnabled || false,
|
|
9850
10272
|
};
|
|
9851
10273
|
}
|
|
9852
10274
|
|
|
@@ -9863,12 +10285,14 @@ class GuestService {
|
|
|
9863
10285
|
this.guestAPIService = guestAPIService;
|
|
9864
10286
|
}
|
|
9865
10287
|
getMeetingType(req) {
|
|
9866
|
-
return this.guestAPIService.getMeetingType(req).pipe(map(resp => {
|
|
10288
|
+
return this.guestAPIService.getMeetingType(req).pipe(map((resp) => {
|
|
9867
10289
|
if (!resp || !resp.meetingType) {
|
|
9868
10290
|
return {};
|
|
9869
10291
|
}
|
|
9870
10292
|
return MeetingTypeFromApi({
|
|
9871
|
-
environment: onProductionGlobal()
|
|
10293
|
+
environment: onProductionGlobal()
|
|
10294
|
+
? Environment.PROD
|
|
10295
|
+
: Environment.DEMO,
|
|
9872
10296
|
calendarId: req.calendarSlug,
|
|
9873
10297
|
meetingTypeApi: resp.meetingType,
|
|
9874
10298
|
metadata: req.metadata,
|
|
@@ -9877,13 +10301,15 @@ class GuestService {
|
|
|
9877
10301
|
}));
|
|
9878
10302
|
}
|
|
9879
10303
|
listMeetingTypes(req) {
|
|
9880
|
-
return this.guestAPIService.listMeetingTypes(req).pipe(map(resp => {
|
|
10304
|
+
return this.guestAPIService.listMeetingTypes(req).pipe(map((resp) => {
|
|
9881
10305
|
if (!resp || !resp.meetingTypes) {
|
|
9882
10306
|
return [];
|
|
9883
10307
|
}
|
|
9884
|
-
return resp.meetingTypes.map(mt => {
|
|
10308
|
+
return resp.meetingTypes.map((mt) => {
|
|
9885
10309
|
return MeetingTypeFromApi({
|
|
9886
|
-
environment: onProductionGlobal()
|
|
10310
|
+
environment: onProductionGlobal()
|
|
10311
|
+
? Environment.PROD
|
|
10312
|
+
: Environment.DEMO,
|
|
9887
10313
|
calendarId: req.hostId,
|
|
9888
10314
|
meetingTypeApi: mt,
|
|
9889
10315
|
metadata: req.metadata,
|
|
@@ -9893,7 +10319,9 @@ class GuestService {
|
|
|
9893
10319
|
}));
|
|
9894
10320
|
}
|
|
9895
10321
|
listAvailableTimeSlots(req) {
|
|
9896
|
-
return this.guestAPIService
|
|
10322
|
+
return this.guestAPIService
|
|
10323
|
+
.listAvailableTimeSlots(req)
|
|
10324
|
+
.pipe(map((resp) => resp.timeSlots ? resp.timeSlots.map((ts) => TimeSpanFromApi(ts)) : []));
|
|
9897
10325
|
}
|
|
9898
10326
|
bookMeeting(req) {
|
|
9899
10327
|
return this.guestAPIService.bookMeeting({
|
|
@@ -9910,16 +10338,23 @@ class GuestService {
|
|
|
9910
10338
|
}
|
|
9911
10339
|
// getHost returns an individual host by their hostId
|
|
9912
10340
|
getHost(req) {
|
|
9913
|
-
return this.guestAPIService
|
|
10341
|
+
return this.guestAPIService
|
|
10342
|
+
.getHost(req)
|
|
10343
|
+
.pipe(map((resp) => HostFromApi(resp.host)));
|
|
9914
10344
|
}
|
|
9915
10345
|
// getCalendar returns a Calendar, which may represent an individual host OR a grouping of hosts (I.e., a team)
|
|
9916
10346
|
getCalendar(req) {
|
|
9917
|
-
return this.guestAPIService
|
|
10347
|
+
return this.guestAPIService
|
|
10348
|
+
.getCalendar(req)
|
|
10349
|
+
.pipe(map((resp) => CalendarFromApi(resp.calendar)));
|
|
9918
10350
|
}
|
|
9919
10351
|
getBookedMeetingInfo(meetingId, authToken) {
|
|
9920
|
-
return this.guestAPIService
|
|
9921
|
-
|
|
9922
|
-
|
|
10352
|
+
return this.guestAPIService
|
|
10353
|
+
.getGuestBookedMeeting({
|
|
10354
|
+
meetingId: meetingId,
|
|
10355
|
+
authToken: authToken,
|
|
10356
|
+
})
|
|
10357
|
+
.pipe(map((resp) => ({
|
|
9923
10358
|
start: resp.startTime,
|
|
9924
10359
|
end: resp.endTime,
|
|
9925
10360
|
timeZone: resp.timeZone,
|
|
@@ -9936,7 +10371,9 @@ class GuestService {
|
|
|
9936
10371
|
return this.guestAPIService.getGuestBookedMeetingV2(req);
|
|
9937
10372
|
}
|
|
9938
10373
|
isHostConfigured(req) {
|
|
9939
|
-
return this.guestAPIService
|
|
10374
|
+
return this.guestAPIService
|
|
10375
|
+
.isHostConfigured(req)
|
|
10376
|
+
.pipe(map((resp) => resp.isConfigured));
|
|
9940
10377
|
}
|
|
9941
10378
|
getGroup(req) {
|
|
9942
10379
|
return this.guestAPIService.getGroup(req);
|
|
@@ -9948,13 +10385,17 @@ class GuestService {
|
|
|
9948
10385
|
return this.guestAPIService.getSessionMeetingInfo(req);
|
|
9949
10386
|
}
|
|
9950
10387
|
inviteeRegisterSessionMeeting(req) {
|
|
9951
|
-
return this.guestAPIService
|
|
10388
|
+
return this.guestAPIService
|
|
10389
|
+
.inviteeRegisterSessionMeeting(req)
|
|
10390
|
+
.pipe(mapTo(null));
|
|
9952
10391
|
}
|
|
9953
10392
|
getSessionInviteeMeetingInfo(req) {
|
|
9954
10393
|
return this.guestAPIService.getSessionInviteeMeetingInfo(req);
|
|
9955
10394
|
}
|
|
9956
10395
|
inviteeDeregisterSessionMeeting(req) {
|
|
9957
|
-
return this.guestAPIService
|
|
10396
|
+
return this.guestAPIService
|
|
10397
|
+
.inviteeDeregisterSessionMeeting(req)
|
|
10398
|
+
.pipe(mapTo(null));
|
|
9958
10399
|
}
|
|
9959
10400
|
getMeetingCalendarInfo(req) {
|
|
9960
10401
|
return this.guestAPIService.getMeetingCalendarInfo(req);
|
|
@@ -9962,12 +10403,15 @@ class GuestService {
|
|
|
9962
10403
|
checkFeatureFlag(req) {
|
|
9963
10404
|
return this.guestAPIService.checkFeatureFlag(req);
|
|
9964
10405
|
}
|
|
10406
|
+
getServiceV2(req) {
|
|
10407
|
+
return this.guestAPIService.getServiceV2(req);
|
|
10408
|
+
}
|
|
9965
10409
|
}
|
|
9966
10410
|
GuestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GuestService, deps: [{ token: MeetingGuestApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9967
|
-
GuestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GuestService, providedIn:
|
|
10411
|
+
GuestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GuestService, providedIn: "root" });
|
|
9968
10412
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GuestService, decorators: [{
|
|
9969
10413
|
type: Injectable,
|
|
9970
|
-
args: [{ providedIn:
|
|
10414
|
+
args: [{ providedIn: "root" }]
|
|
9971
10415
|
}], ctorParameters: function () { return [{ type: MeetingGuestApiService }]; } });
|
|
9972
10416
|
|
|
9973
10417
|
class HostService {
|