@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') {
|
|
@@ -9329,6 +9732,21 @@ class MeetingGuestApiService {
|
|
|
9329
9732
|
return this.http.post(this._host + "/meetings.v1.MeetingGuest/CheckFeatureFlag", request.toApiJson(), this.apiOptions())
|
|
9330
9733
|
.pipe(map(resp => CheckFeatureFlagResponse.fromProto(resp)));
|
|
9331
9734
|
}
|
|
9735
|
+
listBatchAvailableTimeSlots(r) {
|
|
9736
|
+
const request = (r.toApiJson) ? r : new ListBatchAvailableTimeSlotsRequest(r);
|
|
9737
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/ListBatchAvailableTimeSlots", request.toApiJson(), this.apiOptions())
|
|
9738
|
+
.pipe(map(resp => ListBatchAvailableTimeSlotsResponse.fromProto(resp)));
|
|
9739
|
+
}
|
|
9740
|
+
bookBatchMeeting(r) {
|
|
9741
|
+
const request = (r.toApiJson) ? r : new BookBatchMeetingRequest(r);
|
|
9742
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/BookBatchMeeting", request.toApiJson(), this.apiOptions())
|
|
9743
|
+
.pipe(map(resp => BookBatchMeetingResponse.fromProto(resp)));
|
|
9744
|
+
}
|
|
9745
|
+
getServiceV2(r) {
|
|
9746
|
+
const request = (r.toApiJson) ? r : new GetServiceV2Request(r);
|
|
9747
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetServicesV2", request.toApiJson(), this.apiOptions())
|
|
9748
|
+
.pipe(map(resp => GetServiceV2Response.fromProto(resp)));
|
|
9749
|
+
}
|
|
9332
9750
|
}
|
|
9333
9751
|
MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9334
9752
|
MeetingGuestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, providedIn: 'root' });
|
|
@@ -9754,6 +10172,7 @@ function GroupTypeToAPi(req) {
|
|
|
9754
10172
|
isPinned: m.isPinned || undefined,
|
|
9755
10173
|
associations: m.associations ? m.associations.map(AssociationTypeToApi) : undefined,
|
|
9756
10174
|
hexColor: m.hexColor || undefined,
|
|
10175
|
+
isBatchBookingEnabled: m.isBatchBookingEnabled || undefined,
|
|
9757
10176
|
};
|
|
9758
10177
|
}
|
|
9759
10178
|
function ServiceTypeToApi(req) {
|
|
@@ -9769,6 +10188,7 @@ function ServiceTypeToApi(req) {
|
|
|
9769
10188
|
isPinned: m.isPinned || undefined,
|
|
9770
10189
|
associations: m.associations ? m.associations.map(AssociationTypeToApi) : undefined,
|
|
9771
10190
|
hexColor: m.hexColor || undefined,
|
|
10191
|
+
isBatchBookingEnabled: m.isBatchBookingEnabled || undefined,
|
|
9772
10192
|
};
|
|
9773
10193
|
}
|
|
9774
10194
|
function AssociationTypeToApi(association) {
|
|
@@ -9814,7 +10234,8 @@ function GroupFromApi(req) {
|
|
|
9814
10234
|
isPinned: req.groupApi.isPinned || false,
|
|
9815
10235
|
associations: req.groupApi.associations ? req.groupApi.associations.map(AssociationFromApi) : [],
|
|
9816
10236
|
hexColor: req.groupApi.hexColor || '',
|
|
9817
|
-
bookingUrl: bookingUrl
|
|
10237
|
+
bookingUrl: bookingUrl,
|
|
10238
|
+
isBatchBookingEnabled: req.groupApi.isBatchBookingEnabled || false,
|
|
9818
10239
|
};
|
|
9819
10240
|
}
|
|
9820
10241
|
function getBookingURL(environment, slug, calendarId) {
|
|
@@ -9841,7 +10262,8 @@ function ServiceFromApi(req) {
|
|
|
9841
10262
|
isPinned: req.serviceApi.isPinned || false,
|
|
9842
10263
|
associations: req.serviceApi.associations ? req.serviceApi.associations.map(AssociationFromApi) : [],
|
|
9843
10264
|
hexColor: req.serviceApi.hexColor || '',
|
|
9844
|
-
bookingUrl: bookingUrl
|
|
10265
|
+
bookingUrl: bookingUrl,
|
|
10266
|
+
isBatchBookingEnabled: req.serviceApi.isBatchBookingEnabled || false,
|
|
9845
10267
|
};
|
|
9846
10268
|
}
|
|
9847
10269
|
|
|
@@ -9858,12 +10280,14 @@ class GuestService {
|
|
|
9858
10280
|
this.guestAPIService = guestAPIService;
|
|
9859
10281
|
}
|
|
9860
10282
|
getMeetingType(req) {
|
|
9861
|
-
return this.guestAPIService.getMeetingType(req).pipe(map(resp => {
|
|
10283
|
+
return this.guestAPIService.getMeetingType(req).pipe(map((resp) => {
|
|
9862
10284
|
if (!resp || !resp.meetingType) {
|
|
9863
10285
|
return {};
|
|
9864
10286
|
}
|
|
9865
10287
|
return MeetingTypeFromApi({
|
|
9866
|
-
environment: onProductionGlobal()
|
|
10288
|
+
environment: onProductionGlobal()
|
|
10289
|
+
? Environment.PROD
|
|
10290
|
+
: Environment.DEMO,
|
|
9867
10291
|
calendarId: req.calendarSlug,
|
|
9868
10292
|
meetingTypeApi: resp.meetingType,
|
|
9869
10293
|
metadata: req.metadata,
|
|
@@ -9872,13 +10296,15 @@ class GuestService {
|
|
|
9872
10296
|
}));
|
|
9873
10297
|
}
|
|
9874
10298
|
listMeetingTypes(req) {
|
|
9875
|
-
return this.guestAPIService.listMeetingTypes(req).pipe(map(resp => {
|
|
10299
|
+
return this.guestAPIService.listMeetingTypes(req).pipe(map((resp) => {
|
|
9876
10300
|
if (!resp || !resp.meetingTypes) {
|
|
9877
10301
|
return [];
|
|
9878
10302
|
}
|
|
9879
|
-
return resp.meetingTypes.map(mt => {
|
|
10303
|
+
return resp.meetingTypes.map((mt) => {
|
|
9880
10304
|
return MeetingTypeFromApi({
|
|
9881
|
-
environment: onProductionGlobal()
|
|
10305
|
+
environment: onProductionGlobal()
|
|
10306
|
+
? Environment.PROD
|
|
10307
|
+
: Environment.DEMO,
|
|
9882
10308
|
calendarId: req.hostId,
|
|
9883
10309
|
meetingTypeApi: mt,
|
|
9884
10310
|
metadata: req.metadata,
|
|
@@ -9888,7 +10314,9 @@ class GuestService {
|
|
|
9888
10314
|
}));
|
|
9889
10315
|
}
|
|
9890
10316
|
listAvailableTimeSlots(req) {
|
|
9891
|
-
return this.guestAPIService
|
|
10317
|
+
return this.guestAPIService
|
|
10318
|
+
.listAvailableTimeSlots(req)
|
|
10319
|
+
.pipe(map((resp) => resp.timeSlots ? resp.timeSlots.map((ts) => TimeSpanFromApi(ts)) : []));
|
|
9892
10320
|
}
|
|
9893
10321
|
bookMeeting(req) {
|
|
9894
10322
|
return this.guestAPIService.bookMeeting(Object.assign(Object.assign({}, req), { attendees: req.attendees, formAnswers: answersToAPI(req.formAnswers) }));
|
|
@@ -9901,16 +10329,23 @@ class GuestService {
|
|
|
9901
10329
|
}
|
|
9902
10330
|
// getHost returns an individual host by their hostId
|
|
9903
10331
|
getHost(req) {
|
|
9904
|
-
return this.guestAPIService
|
|
10332
|
+
return this.guestAPIService
|
|
10333
|
+
.getHost(req)
|
|
10334
|
+
.pipe(map((resp) => HostFromApi(resp.host)));
|
|
9905
10335
|
}
|
|
9906
10336
|
// getCalendar returns a Calendar, which may represent an individual host OR a grouping of hosts (I.e., a team)
|
|
9907
10337
|
getCalendar(req) {
|
|
9908
|
-
return this.guestAPIService
|
|
10338
|
+
return this.guestAPIService
|
|
10339
|
+
.getCalendar(req)
|
|
10340
|
+
.pipe(map((resp) => CalendarFromApi(resp.calendar)));
|
|
9909
10341
|
}
|
|
9910
10342
|
getBookedMeetingInfo(meetingId, authToken) {
|
|
9911
|
-
return this.guestAPIService
|
|
9912
|
-
|
|
9913
|
-
|
|
10343
|
+
return this.guestAPIService
|
|
10344
|
+
.getGuestBookedMeeting({
|
|
10345
|
+
meetingId: meetingId,
|
|
10346
|
+
authToken: authToken,
|
|
10347
|
+
})
|
|
10348
|
+
.pipe(map((resp) => ({
|
|
9914
10349
|
start: resp.startTime,
|
|
9915
10350
|
end: resp.endTime,
|
|
9916
10351
|
timeZone: resp.timeZone,
|
|
@@ -9927,7 +10362,9 @@ class GuestService {
|
|
|
9927
10362
|
return this.guestAPIService.getGuestBookedMeetingV2(req);
|
|
9928
10363
|
}
|
|
9929
10364
|
isHostConfigured(req) {
|
|
9930
|
-
return this.guestAPIService
|
|
10365
|
+
return this.guestAPIService
|
|
10366
|
+
.isHostConfigured(req)
|
|
10367
|
+
.pipe(map((resp) => resp.isConfigured));
|
|
9931
10368
|
}
|
|
9932
10369
|
getGroup(req) {
|
|
9933
10370
|
return this.guestAPIService.getGroup(req);
|
|
@@ -9939,13 +10376,17 @@ class GuestService {
|
|
|
9939
10376
|
return this.guestAPIService.getSessionMeetingInfo(req);
|
|
9940
10377
|
}
|
|
9941
10378
|
inviteeRegisterSessionMeeting(req) {
|
|
9942
|
-
return this.guestAPIService
|
|
10379
|
+
return this.guestAPIService
|
|
10380
|
+
.inviteeRegisterSessionMeeting(req)
|
|
10381
|
+
.pipe(mapTo(null));
|
|
9943
10382
|
}
|
|
9944
10383
|
getSessionInviteeMeetingInfo(req) {
|
|
9945
10384
|
return this.guestAPIService.getSessionInviteeMeetingInfo(req);
|
|
9946
10385
|
}
|
|
9947
10386
|
inviteeDeregisterSessionMeeting(req) {
|
|
9948
|
-
return this.guestAPIService
|
|
10387
|
+
return this.guestAPIService
|
|
10388
|
+
.inviteeDeregisterSessionMeeting(req)
|
|
10389
|
+
.pipe(mapTo(null));
|
|
9949
10390
|
}
|
|
9950
10391
|
getMeetingCalendarInfo(req) {
|
|
9951
10392
|
return this.guestAPIService.getMeetingCalendarInfo(req);
|
|
@@ -9953,12 +10394,15 @@ class GuestService {
|
|
|
9953
10394
|
checkFeatureFlag(req) {
|
|
9954
10395
|
return this.guestAPIService.checkFeatureFlag(req);
|
|
9955
10396
|
}
|
|
10397
|
+
getServiceV2(req) {
|
|
10398
|
+
return this.guestAPIService.getServiceV2(req);
|
|
10399
|
+
}
|
|
9956
10400
|
}
|
|
9957
10401
|
GuestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GuestService, deps: [{ token: MeetingGuestApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9958
|
-
GuestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GuestService, providedIn:
|
|
10402
|
+
GuestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GuestService, providedIn: "root" });
|
|
9959
10403
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: GuestService, decorators: [{
|
|
9960
10404
|
type: Injectable,
|
|
9961
|
-
args: [{ providedIn:
|
|
10405
|
+
args: [{ providedIn: "root" }]
|
|
9962
10406
|
}], ctorParameters: function () { return [{ type: MeetingGuestApiService }]; } });
|
|
9963
10407
|
|
|
9964
10408
|
class HostService {
|