@vendasta/meetings 1.6.8 → 1.6.9
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-guest.interface.mjs +1 -1
- package/esm2020/lib/_internal/meeting-guest.api.service.mjs +12 -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-guest.mjs +225 -1
- package/esm2020/lib/shared/groups-and-services.mjs +7 -3
- package/fesm2015/vendasta-meetings.mjs +246 -2
- package/fesm2015/vendasta-meetings.mjs.map +1 -1
- package/fesm2020/vendasta-meetings.mjs +246 -2
- 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-guest.interface.d.ts +40 -0
- package/lib/_internal/meeting-guest.api.service.d.ts +4 -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-guest.d.ts +61 -0
- 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();
|
|
@@ -4726,6 +4869,70 @@ class ListAvailableTimeSlotsResponse {
|
|
|
4726
4869
|
return toReturn;
|
|
4727
4870
|
}
|
|
4728
4871
|
}
|
|
4872
|
+
class ListBatchAvailableTimeSlotsRequest {
|
|
4873
|
+
static fromProto(proto) {
|
|
4874
|
+
let m = new ListBatchAvailableTimeSlotsRequest();
|
|
4875
|
+
m = Object.assign(m, proto);
|
|
4876
|
+
if (proto.targets) {
|
|
4877
|
+
m.targets = proto.targets.map(BatchEventTypeTarget.fromProto);
|
|
4878
|
+
}
|
|
4879
|
+
if (proto.timeSpan) {
|
|
4880
|
+
m.timeSpan = DateRange.fromProto(proto.timeSpan);
|
|
4881
|
+
}
|
|
4882
|
+
if (proto.timeZone) {
|
|
4883
|
+
m.timeZone = TimeZone.fromProto(proto.timeZone);
|
|
4884
|
+
}
|
|
4885
|
+
return m;
|
|
4886
|
+
}
|
|
4887
|
+
constructor(kwargs) {
|
|
4888
|
+
if (!kwargs) {
|
|
4889
|
+
return;
|
|
4890
|
+
}
|
|
4891
|
+
Object.assign(this, kwargs);
|
|
4892
|
+
}
|
|
4893
|
+
toApiJson() {
|
|
4894
|
+
const toReturn = {};
|
|
4895
|
+
if (typeof this.targets !== 'undefined' && this.targets !== null) {
|
|
4896
|
+
toReturn['targets'] = 'toApiJson' in this.targets ? this.targets.toApiJson() : this.targets;
|
|
4897
|
+
}
|
|
4898
|
+
if (typeof this.timeSpan !== 'undefined' && this.timeSpan !== null) {
|
|
4899
|
+
toReturn['timeSpan'] = 'toApiJson' in this.timeSpan ? this.timeSpan.toApiJson() : this.timeSpan;
|
|
4900
|
+
}
|
|
4901
|
+
if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
|
|
4902
|
+
toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
|
|
4903
|
+
}
|
|
4904
|
+
return toReturn;
|
|
4905
|
+
}
|
|
4906
|
+
}
|
|
4907
|
+
class ListBatchAvailableTimeSlotsResponse {
|
|
4908
|
+
static fromProto(proto) {
|
|
4909
|
+
let m = new ListBatchAvailableTimeSlotsResponse();
|
|
4910
|
+
m = Object.assign(m, proto);
|
|
4911
|
+
if (proto.timeSlots) {
|
|
4912
|
+
m.timeSlots = proto.timeSlots.map(DateRange.fromProto);
|
|
4913
|
+
}
|
|
4914
|
+
if (proto.isoTimeSlots) {
|
|
4915
|
+
m.isoTimeSlots = proto.isoTimeSlots.map(IsoDateTimeRange.fromProto);
|
|
4916
|
+
}
|
|
4917
|
+
return m;
|
|
4918
|
+
}
|
|
4919
|
+
constructor(kwargs) {
|
|
4920
|
+
if (!kwargs) {
|
|
4921
|
+
return;
|
|
4922
|
+
}
|
|
4923
|
+
Object.assign(this, kwargs);
|
|
4924
|
+
}
|
|
4925
|
+
toApiJson() {
|
|
4926
|
+
const toReturn = {};
|
|
4927
|
+
if (typeof this.timeSlots !== 'undefined' && this.timeSlots !== null) {
|
|
4928
|
+
toReturn['timeSlots'] = 'toApiJson' in this.timeSlots ? this.timeSlots.toApiJson() : this.timeSlots;
|
|
4929
|
+
}
|
|
4930
|
+
if (typeof this.isoTimeSlots !== 'undefined' && this.isoTimeSlots !== null) {
|
|
4931
|
+
toReturn['isoTimeSlots'] = 'toApiJson' in this.isoTimeSlots ? this.isoTimeSlots.toApiJson() : this.isoTimeSlots;
|
|
4932
|
+
}
|
|
4933
|
+
return toReturn;
|
|
4934
|
+
}
|
|
4935
|
+
}
|
|
4729
4936
|
class ListMeetingTypesRequest {
|
|
4730
4937
|
static fromProto(proto) {
|
|
4731
4938
|
let m = new ListMeetingTypesRequest();
|
|
@@ -4769,6 +4976,29 @@ class ListMeetingTypesResponse {
|
|
|
4769
4976
|
return toReturn;
|
|
4770
4977
|
}
|
|
4771
4978
|
}
|
|
4979
|
+
class BookBatchMeetingRequestMetadataEntry {
|
|
4980
|
+
static fromProto(proto) {
|
|
4981
|
+
let m = new BookBatchMeetingRequestMetadataEntry();
|
|
4982
|
+
m = Object.assign(m, proto);
|
|
4983
|
+
return m;
|
|
4984
|
+
}
|
|
4985
|
+
constructor(kwargs) {
|
|
4986
|
+
if (!kwargs) {
|
|
4987
|
+
return;
|
|
4988
|
+
}
|
|
4989
|
+
Object.assign(this, kwargs);
|
|
4990
|
+
}
|
|
4991
|
+
toApiJson() {
|
|
4992
|
+
const toReturn = {};
|
|
4993
|
+
if (typeof this.key !== 'undefined') {
|
|
4994
|
+
toReturn['key'] = this.key;
|
|
4995
|
+
}
|
|
4996
|
+
if (typeof this.value !== 'undefined') {
|
|
4997
|
+
toReturn['value'] = this.value;
|
|
4998
|
+
}
|
|
4999
|
+
return toReturn;
|
|
5000
|
+
}
|
|
5001
|
+
}
|
|
4772
5002
|
class BookMeetingRequestMetadataEntry {
|
|
4773
5003
|
static fromProto(proto) {
|
|
4774
5004
|
let m = new BookMeetingRequestMetadataEntry();
|
|
@@ -9038,6 +9268,16 @@ class MeetingGuestApiService {
|
|
|
9038
9268
|
return this.http.post(this._host + "/meetings.v1.MeetingGuest/CheckFeatureFlag", request.toApiJson(), this.apiOptions())
|
|
9039
9269
|
.pipe(map(resp => CheckFeatureFlagResponse.fromProto(resp)));
|
|
9040
9270
|
}
|
|
9271
|
+
listBatchAvailableTimeSlots(r) {
|
|
9272
|
+
const request = (r.toApiJson) ? r : new ListBatchAvailableTimeSlotsRequest(r);
|
|
9273
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/ListBatchAvailableTimeSlots", request.toApiJson(), this.apiOptions())
|
|
9274
|
+
.pipe(map(resp => ListBatchAvailableTimeSlotsResponse.fromProto(resp)));
|
|
9275
|
+
}
|
|
9276
|
+
bookBatchMeeting(r) {
|
|
9277
|
+
const request = (r.toApiJson) ? r : new BookBatchMeetingRequest(r);
|
|
9278
|
+
return this.http.post(this._host + "/meetings.v1.MeetingGuest/BookBatchMeeting", request.toApiJson(), this.apiOptions())
|
|
9279
|
+
.pipe(map(resp => BookBatchMeetingResponse.fromProto(resp)));
|
|
9280
|
+
}
|
|
9041
9281
|
}
|
|
9042
9282
|
MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9043
9283
|
MeetingGuestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, providedIn: 'root' });
|
|
@@ -9761,6 +10001,7 @@ function GroupTypeToAPi(req) {
|
|
|
9761
10001
|
isPinned: m.isPinned || undefined,
|
|
9762
10002
|
associations: m.associations ? m.associations.map(AssociationTypeToApi) : undefined,
|
|
9763
10003
|
hexColor: m.hexColor || undefined,
|
|
10004
|
+
isBatchBookingEnabled: m.isBatchBookingEnabled || undefined,
|
|
9764
10005
|
};
|
|
9765
10006
|
}
|
|
9766
10007
|
function ServiceTypeToApi(req) {
|
|
@@ -9776,6 +10017,7 @@ function ServiceTypeToApi(req) {
|
|
|
9776
10017
|
isPinned: m.isPinned || undefined,
|
|
9777
10018
|
associations: m.associations ? m.associations.map(AssociationTypeToApi) : undefined,
|
|
9778
10019
|
hexColor: m.hexColor || undefined,
|
|
10020
|
+
isBatchBookingEnabled: m.isBatchBookingEnabled || undefined,
|
|
9779
10021
|
};
|
|
9780
10022
|
}
|
|
9781
10023
|
function AssociationTypeToApi(association) {
|
|
@@ -9820,7 +10062,8 @@ function GroupFromApi(req) {
|
|
|
9820
10062
|
isPinned: req.groupApi.isPinned || false,
|
|
9821
10063
|
associations: req.groupApi.associations ? req.groupApi.associations.map(AssociationFromApi) : [],
|
|
9822
10064
|
hexColor: req.groupApi.hexColor || '',
|
|
9823
|
-
bookingUrl: bookingUrl
|
|
10065
|
+
bookingUrl: bookingUrl,
|
|
10066
|
+
isBatchBookingEnabled: req.groupApi.isBatchBookingEnabled || false,
|
|
9824
10067
|
};
|
|
9825
10068
|
}
|
|
9826
10069
|
function getBookingURL(environment, slug, calendarId) {
|
|
@@ -9846,7 +10089,8 @@ function ServiceFromApi(req) {
|
|
|
9846
10089
|
isPinned: req.serviceApi.isPinned || false,
|
|
9847
10090
|
associations: req.serviceApi.associations ? req.serviceApi.associations.map(AssociationFromApi) : [],
|
|
9848
10091
|
hexColor: req.serviceApi.hexColor || '',
|
|
9849
|
-
bookingUrl: bookingUrl
|
|
10092
|
+
bookingUrl: bookingUrl,
|
|
10093
|
+
isBatchBookingEnabled: req.serviceApi.isBatchBookingEnabled || false,
|
|
9850
10094
|
};
|
|
9851
10095
|
}
|
|
9852
10096
|
|