@vendasta/meetings 0.96.1 → 0.97.0
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-bot.interface.mjs +1 -1
- package/esm2020/lib/_internal/meeting-bot-api.api.service.mjs +5 -21
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/meeting-bot.mjs +5 -209
- package/esm2020/lib/index.mjs +2 -1
- package/esm2020/lib/meeting-bot.service.mjs +24 -0
- package/fesm2015/vendasta-meetings.mjs +314 -513
- package/fesm2015/vendasta-meetings.mjs.map +1 -1
- package/fesm2020/vendasta-meetings.mjs +27 -226
- package/fesm2020/vendasta-meetings.mjs.map +1 -1
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/meeting-bot.interface.d.ts +2 -35
- package/lib/_internal/meeting-bot-api.api.service.d.ts +3 -6
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/meeting-bot.d.ts +4 -58
- package/lib/index.d.ts +1 -0
- package/lib/meeting-bot.service.d.ts +10 -0
- package/package.json +1 -1
|
@@ -4662,143 +4662,13 @@ function enumStringToValue$2(enumRef, value) {
|
|
|
4662
4662
|
}
|
|
4663
4663
|
return enumRef[value];
|
|
4664
4664
|
}
|
|
4665
|
-
class
|
|
4665
|
+
class ScheduleBotRequest {
|
|
4666
4666
|
static fromProto(proto) {
|
|
4667
|
-
let m = new
|
|
4667
|
+
let m = new ScheduleBotRequest();
|
|
4668
4668
|
m = Object.assign(m, proto);
|
|
4669
|
-
if (proto.meetingBot) {
|
|
4670
|
-
m.meetingBot = MeetingBot.fromProto(proto.meetingBot);
|
|
4671
|
-
}
|
|
4672
|
-
return m;
|
|
4673
|
-
}
|
|
4674
|
-
constructor(kwargs) {
|
|
4675
|
-
if (!kwargs) {
|
|
4676
|
-
return;
|
|
4677
|
-
}
|
|
4678
|
-
Object.assign(this, kwargs);
|
|
4679
|
-
}
|
|
4680
|
-
toApiJson() {
|
|
4681
|
-
const toReturn = {};
|
|
4682
|
-
if (typeof this.meetingBot !== 'undefined' && this.meetingBot !== null) {
|
|
4683
|
-
toReturn['meetingBot'] = 'toApiJson' in this.meetingBot ? this.meetingBot.toApiJson() : this.meetingBot;
|
|
4684
|
-
}
|
|
4685
|
-
return toReturn;
|
|
4686
|
-
}
|
|
4687
|
-
}
|
|
4688
|
-
class CreateMeetingBotResponse {
|
|
4689
|
-
static fromProto(proto) {
|
|
4690
|
-
let m = new CreateMeetingBotResponse();
|
|
4691
|
-
m = Object.assign(m, proto);
|
|
4692
|
-
if (proto.meetingBot) {
|
|
4693
|
-
m.meetingBot = MeetingBot.fromProto(proto.meetingBot);
|
|
4694
|
-
}
|
|
4695
|
-
return m;
|
|
4696
|
-
}
|
|
4697
|
-
constructor(kwargs) {
|
|
4698
|
-
if (!kwargs) {
|
|
4699
|
-
return;
|
|
4700
|
-
}
|
|
4701
|
-
Object.assign(this, kwargs);
|
|
4702
|
-
}
|
|
4703
|
-
toApiJson() {
|
|
4704
|
-
const toReturn = {};
|
|
4705
|
-
if (typeof this.meetingBot !== 'undefined' && this.meetingBot !== null) {
|
|
4706
|
-
toReturn['meetingBot'] = 'toApiJson' in this.meetingBot ? this.meetingBot.toApiJson() : this.meetingBot;
|
|
4707
|
-
}
|
|
4708
|
-
return toReturn;
|
|
4709
|
-
}
|
|
4710
|
-
}
|
|
4711
|
-
class DeleteMeetingBotRequest {
|
|
4712
|
-
static fromProto(proto) {
|
|
4713
|
-
let m = new DeleteMeetingBotRequest();
|
|
4714
|
-
m = Object.assign(m, proto);
|
|
4715
|
-
return m;
|
|
4716
|
-
}
|
|
4717
|
-
constructor(kwargs) {
|
|
4718
|
-
if (!kwargs) {
|
|
4719
|
-
return;
|
|
4720
|
-
}
|
|
4721
|
-
Object.assign(this, kwargs);
|
|
4722
|
-
}
|
|
4723
|
-
toApiJson() {
|
|
4724
|
-
const toReturn = {};
|
|
4725
|
-
if (typeof this.id !== 'undefined') {
|
|
4726
|
-
toReturn['id'] = this.id;
|
|
4727
|
-
}
|
|
4728
|
-
return toReturn;
|
|
4729
|
-
}
|
|
4730
|
-
}
|
|
4731
|
-
class ListMeetingBotsRequest {
|
|
4732
|
-
static fromProto(proto) {
|
|
4733
|
-
let m = new ListMeetingBotsRequest();
|
|
4734
|
-
m = Object.assign(m, proto);
|
|
4735
|
-
return m;
|
|
4736
|
-
}
|
|
4737
|
-
constructor(kwargs) {
|
|
4738
|
-
if (!kwargs) {
|
|
4739
|
-
return;
|
|
4740
|
-
}
|
|
4741
|
-
Object.assign(this, kwargs);
|
|
4742
|
-
}
|
|
4743
|
-
toApiJson() {
|
|
4744
|
-
const toReturn = {};
|
|
4745
|
-
if (typeof this.userId !== 'undefined') {
|
|
4746
|
-
toReturn['userId'] = this.userId;
|
|
4747
|
-
}
|
|
4748
|
-
if (typeof this.namespace !== 'undefined') {
|
|
4749
|
-
toReturn['namespace'] = this.namespace;
|
|
4750
|
-
}
|
|
4751
|
-
if (typeof this.eventId !== 'undefined') {
|
|
4752
|
-
toReturn['eventId'] = this.eventId;
|
|
4753
|
-
}
|
|
4754
|
-
return toReturn;
|
|
4755
|
-
}
|
|
4756
|
-
}
|
|
4757
|
-
class ListMeetingBotsResponse {
|
|
4758
|
-
static fromProto(proto) {
|
|
4759
|
-
let m = new ListMeetingBotsResponse();
|
|
4760
|
-
m = Object.assign(m, proto);
|
|
4761
|
-
if (proto.meetingBots) {
|
|
4762
|
-
m.meetingBots = proto.meetingBots.map(MeetingBot.fromProto);
|
|
4763
|
-
}
|
|
4764
|
-
return m;
|
|
4765
|
-
}
|
|
4766
|
-
constructor(kwargs) {
|
|
4767
|
-
if (!kwargs) {
|
|
4768
|
-
return;
|
|
4769
|
-
}
|
|
4770
|
-
Object.assign(this, kwargs);
|
|
4771
|
-
}
|
|
4772
|
-
toApiJson() {
|
|
4773
|
-
const toReturn = {};
|
|
4774
|
-
if (typeof this.meetingBots !== 'undefined' && this.meetingBots !== null) {
|
|
4775
|
-
toReturn['meetingBots'] = 'toApiJson' in this.meetingBots ? this.meetingBots.toApiJson() : this.meetingBots;
|
|
4776
|
-
}
|
|
4777
|
-
return toReturn;
|
|
4778
|
-
}
|
|
4779
|
-
}
|
|
4780
|
-
class MeetingBot {
|
|
4781
|
-
static fromProto(proto) {
|
|
4782
|
-
let m = new MeetingBot();
|
|
4783
|
-
m = Object.assign(m, proto);
|
|
4784
|
-
if (proto.eventUpdated) {
|
|
4785
|
-
m.eventUpdated = new Date(proto.eventUpdated);
|
|
4786
|
-
}
|
|
4787
|
-
if (proto.meetingSource) {
|
|
4788
|
-
m.meetingSource = enumStringToValue$2(MeetingSource, proto.meetingSource);
|
|
4789
|
-
}
|
|
4790
4669
|
if (proto.startTime) {
|
|
4791
4670
|
m.startTime = new Date(proto.startTime);
|
|
4792
4671
|
}
|
|
4793
|
-
if (proto.created) {
|
|
4794
|
-
m.created = new Date(proto.created);
|
|
4795
|
-
}
|
|
4796
|
-
if (proto.updated) {
|
|
4797
|
-
m.updated = new Date(proto.updated);
|
|
4798
|
-
}
|
|
4799
|
-
if (proto.deleted) {
|
|
4800
|
-
m.deleted = new Date(proto.deleted);
|
|
4801
|
-
}
|
|
4802
4672
|
return m;
|
|
4803
4673
|
}
|
|
4804
4674
|
constructor(kwargs) {
|
|
@@ -4809,88 +4679,15 @@ class MeetingBot {
|
|
|
4809
4679
|
}
|
|
4810
4680
|
toApiJson() {
|
|
4811
4681
|
const toReturn = {};
|
|
4812
|
-
if (typeof this.id !== 'undefined') {
|
|
4813
|
-
toReturn['id'] = this.id;
|
|
4814
|
-
}
|
|
4815
|
-
if (typeof this.externalBotId !== 'undefined') {
|
|
4816
|
-
toReturn['externalBotId'] = this.externalBotId;
|
|
4817
|
-
}
|
|
4818
4682
|
if (typeof this.namespace !== 'undefined') {
|
|
4819
4683
|
toReturn['namespace'] = this.namespace;
|
|
4820
4684
|
}
|
|
4821
|
-
if (typeof this.
|
|
4822
|
-
toReturn['
|
|
4823
|
-
}
|
|
4824
|
-
if (typeof this.meetingId !== 'undefined') {
|
|
4825
|
-
toReturn['meetingId'] = this.meetingId;
|
|
4826
|
-
}
|
|
4827
|
-
if (typeof this.eventId !== 'undefined') {
|
|
4828
|
-
toReturn['eventId'] = this.eventId;
|
|
4829
|
-
}
|
|
4830
|
-
if (typeof this.eventUpdated !== 'undefined' && this.eventUpdated !== null) {
|
|
4831
|
-
toReturn['eventUpdated'] = 'toApiJson' in this.eventUpdated ? this.eventUpdated.toApiJson() : this.eventUpdated;
|
|
4832
|
-
}
|
|
4833
|
-
if (typeof this.meetingSource !== 'undefined') {
|
|
4834
|
-
toReturn['meetingSource'] = this.meetingSource;
|
|
4685
|
+
if (typeof this.meetingUrl !== 'undefined') {
|
|
4686
|
+
toReturn['meetingUrl'] = this.meetingUrl;
|
|
4835
4687
|
}
|
|
4836
4688
|
if (typeof this.startTime !== 'undefined' && this.startTime !== null) {
|
|
4837
4689
|
toReturn['startTime'] = 'toApiJson' in this.startTime ? this.startTime.toApiJson() : this.startTime;
|
|
4838
4690
|
}
|
|
4839
|
-
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
4840
|
-
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
4841
|
-
}
|
|
4842
|
-
if (typeof this.updated !== 'undefined' && this.updated !== null) {
|
|
4843
|
-
toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
|
|
4844
|
-
}
|
|
4845
|
-
if (typeof this.deleted !== 'undefined' && this.deleted !== null) {
|
|
4846
|
-
toReturn['deleted'] = 'toApiJson' in this.deleted ? this.deleted.toApiJson() : this.deleted;
|
|
4847
|
-
}
|
|
4848
|
-
return toReturn;
|
|
4849
|
-
}
|
|
4850
|
-
}
|
|
4851
|
-
class UpdateMeetingBotRequest {
|
|
4852
|
-
static fromProto(proto) {
|
|
4853
|
-
let m = new UpdateMeetingBotRequest();
|
|
4854
|
-
m = Object.assign(m, proto);
|
|
4855
|
-
if (proto.meetingBot) {
|
|
4856
|
-
m.meetingBot = MeetingBot.fromProto(proto.meetingBot);
|
|
4857
|
-
}
|
|
4858
|
-
return m;
|
|
4859
|
-
}
|
|
4860
|
-
constructor(kwargs) {
|
|
4861
|
-
if (!kwargs) {
|
|
4862
|
-
return;
|
|
4863
|
-
}
|
|
4864
|
-
Object.assign(this, kwargs);
|
|
4865
|
-
}
|
|
4866
|
-
toApiJson() {
|
|
4867
|
-
const toReturn = {};
|
|
4868
|
-
if (typeof this.meetingBot !== 'undefined' && this.meetingBot !== null) {
|
|
4869
|
-
toReturn['meetingBot'] = 'toApiJson' in this.meetingBot ? this.meetingBot.toApiJson() : this.meetingBot;
|
|
4870
|
-
}
|
|
4871
|
-
return toReturn;
|
|
4872
|
-
}
|
|
4873
|
-
}
|
|
4874
|
-
class UpdateMeetingBotResponse {
|
|
4875
|
-
static fromProto(proto) {
|
|
4876
|
-
let m = new UpdateMeetingBotResponse();
|
|
4877
|
-
m = Object.assign(m, proto);
|
|
4878
|
-
if (proto.meetingBot) {
|
|
4879
|
-
m.meetingBot = MeetingBot.fromProto(proto.meetingBot);
|
|
4880
|
-
}
|
|
4881
|
-
return m;
|
|
4882
|
-
}
|
|
4883
|
-
constructor(kwargs) {
|
|
4884
|
-
if (!kwargs) {
|
|
4885
|
-
return;
|
|
4886
|
-
}
|
|
4887
|
-
Object.assign(this, kwargs);
|
|
4888
|
-
}
|
|
4889
|
-
toApiJson() {
|
|
4890
|
-
const toReturn = {};
|
|
4891
|
-
if (typeof this.meetingBot !== 'undefined' && this.meetingBot !== null) {
|
|
4892
|
-
toReturn['meetingBot'] = 'toApiJson' in this.meetingBot ? this.meetingBot.toApiJson() : this.meetingBot;
|
|
4893
|
-
}
|
|
4894
4691
|
return toReturn;
|
|
4895
4692
|
}
|
|
4896
4693
|
}
|
|
@@ -5290,24 +5087,9 @@ class MeetingBotAPIApiService {
|
|
|
5290
5087
|
withCredentials: true
|
|
5291
5088
|
};
|
|
5292
5089
|
}
|
|
5293
|
-
|
|
5294
|
-
const request = (r.toApiJson) ? r : new
|
|
5295
|
-
return this.http.post(this._host + "/meetings.v1.MeetingBotAPI/
|
|
5296
|
-
.pipe(map(resp => CreateMeetingBotResponse.fromProto(resp)));
|
|
5297
|
-
}
|
|
5298
|
-
updateMeetingBot(r) {
|
|
5299
|
-
const request = (r.toApiJson) ? r : new UpdateMeetingBotRequest(r);
|
|
5300
|
-
return this.http.post(this._host + "/meetings.v1.MeetingBotAPI/UpdateMeetingBot", request.toApiJson(), this.apiOptions())
|
|
5301
|
-
.pipe(map(resp => UpdateMeetingBotResponse.fromProto(resp)));
|
|
5302
|
-
}
|
|
5303
|
-
deleteMeetingBot(r) {
|
|
5304
|
-
const request = (r.toApiJson) ? r : new DeleteMeetingBotRequest(r);
|
|
5305
|
-
return this.http.post(this._host + "/meetings.v1.MeetingBotAPI/DeleteMeetingBot", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
5306
|
-
}
|
|
5307
|
-
listMeetingBots(r) {
|
|
5308
|
-
const request = (r.toApiJson) ? r : new ListMeetingBotsRequest(r);
|
|
5309
|
-
return this.http.post(this._host + "/meetings.v1.MeetingBotAPI/ListMeetingBots", request.toApiJson(), this.apiOptions())
|
|
5310
|
-
.pipe(map(resp => ListMeetingBotsResponse.fromProto(resp)));
|
|
5090
|
+
scheduleBot(r) {
|
|
5091
|
+
const request = (r.toApiJson) ? r : new ScheduleBotRequest(r);
|
|
5092
|
+
return this.http.post(this._host + "/meetings.v1.MeetingBotAPI/ScheduleBot", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
5311
5093
|
}
|
|
5312
5094
|
}
|
|
5313
5095
|
MeetingBotAPIApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingBotAPIApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -5631,6 +5413,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
|
|
|
5631
5413
|
|
|
5632
5414
|
// *********************************
|
|
5633
5415
|
|
|
5416
|
+
class MeetingBotService {
|
|
5417
|
+
constructor(_api) {
|
|
5418
|
+
this._api = _api;
|
|
5419
|
+
}
|
|
5420
|
+
scheduleBot(namespace, meetingUrl, startTime) {
|
|
5421
|
+
return this._api.scheduleBot({
|
|
5422
|
+
namespace: namespace,
|
|
5423
|
+
meetingUrl: meetingUrl,
|
|
5424
|
+
startTime: startTime
|
|
5425
|
+
}).pipe(map(() => true));
|
|
5426
|
+
}
|
|
5427
|
+
}
|
|
5428
|
+
MeetingBotService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingBotService, deps: [{ token: MeetingBotAPIApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5429
|
+
MeetingBotService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingBotService, providedIn: 'root' });
|
|
5430
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingBotService, decorators: [{
|
|
5431
|
+
type: Injectable,
|
|
5432
|
+
args: [{ providedIn: 'root' }]
|
|
5433
|
+
}], ctorParameters: function () { return [{ type: MeetingBotAPIApiService }]; } });
|
|
5434
|
+
|
|
5634
5435
|
function TimeSpanFromApi(tsAPI) {
|
|
5635
5436
|
return {
|
|
5636
5437
|
start: tsAPI.start,
|
|
@@ -6709,5 +6510,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
|
|
|
6709
6510
|
* Generated bundle index. Do not edit.
|
|
6710
6511
|
*/
|
|
6711
6512
|
|
|
6712
|
-
export { CalendarType, Contact, CreateCalendarRequest, CreateCalendarResponse, DayOfWeek, FormFieldType, GuestService, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, MeetingLocationType, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceOrigin, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, PagedResponse, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
|
|
6513
|
+
export { CalendarType, Contact, CreateCalendarRequest, CreateCalendarResponse, DayOfWeek, FormFieldType, GuestService, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, MeetingBotService, MeetingLocationType, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceOrigin, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, PagedResponse, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
|
|
6713
6514
|
//# sourceMappingURL=vendasta-meetings.mjs.map
|