@vendasta/meetings 0.95.3 → 0.95.4
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/meeting-host.api.service.mjs +7 -2
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/meeting-host.mjs +50 -1
- package/esm2020/lib/host/host.service.mjs +4 -1
- package/esm2020/lib/index.mjs +1 -1
- package/esm2020/lib/shared/groups-and-services.mjs +1 -1
- package/fesm2015/vendasta-meetings.mjs +57 -0
- package/fesm2015/vendasta-meetings.mjs.map +1 -1
- package/fesm2020/vendasta-meetings.mjs +57 -0
- 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 +7 -0
- package/lib/_internal/meeting-host.api.service.d.ts +3 -2
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/meeting-host.d.ts +13 -0
- package/lib/host/host.service.d.ts +4 -1
- package/lib/index.d.ts +1 -1
- package/lib/shared/groups-and-services.d.ts +4 -0
- package/package.json +1 -1
|
@@ -4717,6 +4717,55 @@ class WeekdayAvailability {
|
|
|
4717
4717
|
return toReturn;
|
|
4718
4718
|
}
|
|
4719
4719
|
}
|
|
4720
|
+
class GetEntityAssociationsRequest {
|
|
4721
|
+
static fromProto(proto) {
|
|
4722
|
+
let m = new GetEntityAssociationsRequest();
|
|
4723
|
+
m = Object.assign(m, proto);
|
|
4724
|
+
return m;
|
|
4725
|
+
}
|
|
4726
|
+
constructor(kwargs) {
|
|
4727
|
+
if (!kwargs) {
|
|
4728
|
+
return;
|
|
4729
|
+
}
|
|
4730
|
+
Object.assign(this, kwargs);
|
|
4731
|
+
}
|
|
4732
|
+
toApiJson() {
|
|
4733
|
+
const toReturn = {};
|
|
4734
|
+
if (typeof this.entityId !== 'undefined') {
|
|
4735
|
+
toReturn['entityId'] = this.entityId;
|
|
4736
|
+
}
|
|
4737
|
+
return toReturn;
|
|
4738
|
+
}
|
|
4739
|
+
}
|
|
4740
|
+
class GetEntityAssociationsResponse {
|
|
4741
|
+
static fromProto(proto) {
|
|
4742
|
+
let m = new GetEntityAssociationsResponse();
|
|
4743
|
+
m = Object.assign(m, proto);
|
|
4744
|
+
if (proto.services) {
|
|
4745
|
+
m.services = proto.services;
|
|
4746
|
+
}
|
|
4747
|
+
if (proto.group) {
|
|
4748
|
+
m.groups = proto.groups;
|
|
4749
|
+
}
|
|
4750
|
+
return m;
|
|
4751
|
+
}
|
|
4752
|
+
constructor(kwargs) {
|
|
4753
|
+
if (!kwargs) {
|
|
4754
|
+
return;
|
|
4755
|
+
}
|
|
4756
|
+
Object.assign(this, kwargs);
|
|
4757
|
+
}
|
|
4758
|
+
toApiJson() {
|
|
4759
|
+
const toReturn = {};
|
|
4760
|
+
if (typeof this.groups !== 'undefined' && this.groups.length > 0) {
|
|
4761
|
+
toReturn['groups'] = this.groups;
|
|
4762
|
+
}
|
|
4763
|
+
if (typeof this.services !== 'undefined' && this.services.length > 0) {
|
|
4764
|
+
toReturn['services'] = this.services;
|
|
4765
|
+
}
|
|
4766
|
+
return toReturn;
|
|
4767
|
+
}
|
|
4768
|
+
}
|
|
4720
4769
|
|
|
4721
4770
|
function enumStringToValue(enumRef, value) {
|
|
4722
4771
|
if (typeof value === 'number') {
|
|
@@ -5565,6 +5614,11 @@ class MeetingHostApiService {
|
|
|
5565
5614
|
return this.http.post(this._host + "/meetings.v1.MeetingHost/HostBookMeeting", request.toApiJson(), this.apiOptions())
|
|
5566
5615
|
.pipe(map(resp => BookMeetingResponse.fromProto(resp)));
|
|
5567
5616
|
}
|
|
5617
|
+
getEntityAssociations(r) {
|
|
5618
|
+
const request = (r.toApiJson) ? r : new GetEntityAssociationsRequest(r);
|
|
5619
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/GetEntityAssociations", request.toApiJson(), this.apiOptions())
|
|
5620
|
+
.pipe(map(resp => GetEntityAssociationsResponse.fromProto(resp)));
|
|
5621
|
+
}
|
|
5568
5622
|
}
|
|
5569
5623
|
MeetingHostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, deps: [{ token: i1.HttpClient }, { token: HostService$1 }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5570
5624
|
MeetingHostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, providedIn: 'root' });
|
|
@@ -6637,6 +6691,9 @@ class HostService {
|
|
|
6637
6691
|
.checkGroupOrServiceSlugExist(req)
|
|
6638
6692
|
.pipe(map((res) => res.exists));
|
|
6639
6693
|
}
|
|
6694
|
+
getEntityAssociations(req) {
|
|
6695
|
+
return this.hostAPIService.getEntityAssociations(req);
|
|
6696
|
+
}
|
|
6640
6697
|
}
|
|
6641
6698
|
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, deps: [{ token: MeetingHostApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6642
6699
|
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, providedIn: "root" });
|