@vendasta/meetings 1.7.2 → 1.7.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.
@@ -3979,6 +3979,41 @@ class CancelBatchMeetingRequest {
3979
3979
  return toReturn;
3980
3980
  }
3981
3981
  }
3982
+ class RescheduleBatchMeetingRequest {
3983
+ static fromProto(proto) {
3984
+ let m = new RescheduleBatchMeetingRequest();
3985
+ m = Object.assign(m, proto);
3986
+ if (proto.start) {
3987
+ m.start = new Date(proto.start);
3988
+ }
3989
+ if (proto.timeZone) {
3990
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
3991
+ }
3992
+ return m;
3993
+ }
3994
+ constructor(kwargs) {
3995
+ if (!kwargs) {
3996
+ return;
3997
+ }
3998
+ Object.assign(this, kwargs);
3999
+ }
4000
+ toApiJson() {
4001
+ const toReturn = {};
4002
+ if (typeof this.id !== 'undefined') {
4003
+ toReturn['id'] = this.id;
4004
+ }
4005
+ if (typeof this.start !== 'undefined' && this.start !== null) {
4006
+ toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
4007
+ }
4008
+ if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
4009
+ toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
4010
+ }
4011
+ if (typeof this.location !== 'undefined') {
4012
+ toReturn['location'] = this.location;
4013
+ }
4014
+ return toReturn;
4015
+ }
4016
+ }
3982
4017
  class CheckFeatureFlagRequest {
3983
4018
  static fromProto(proto) {
3984
4019
  let m = new CheckFeatureFlagRequest();
@@ -4592,6 +4627,9 @@ class GuestGetBookedMeetingRequestV2 {
4592
4627
  }
4593
4628
  toApiJson() {
4594
4629
  const toReturn = {};
4630
+ if (typeof this.meetingId !== 'undefined') {
4631
+ toReturn['meetingId'] = this.meetingId;
4632
+ }
4595
4633
  if (typeof this.id !== 'undefined') {
4596
4634
  toReturn['id'] = this.id;
4597
4635
  }
@@ -4686,7 +4724,7 @@ class GuestGetBookedMeetingResponseV2 {
4686
4724
  m.previousEndTime = new Date(proto.previousEndTime);
4687
4725
  }
4688
4726
  if (proto.meetings) {
4689
- m.meetings = proto.meetings.map((p) => MeetingDetail.fromProto(p));
4727
+ m.meetings = proto.meetings.map(MeetingDetail.fromProto);
4690
4728
  }
4691
4729
  return m;
4692
4730
  }
@@ -4756,105 +4794,7 @@ class GuestGetBookedMeetingResponseV2 {
4756
4794
  toReturn['bookingGroupId'] = this.bookingGroupId;
4757
4795
  }
4758
4796
  if (typeof this.meetings !== 'undefined' && this.meetings !== null) {
4759
- toReturn['meetings'] = this.meetings.map((m) => m.toApiJson());
4760
- }
4761
- return toReturn;
4762
- }
4763
- }
4764
- class MeetingDetail {
4765
- static fromProto(proto) {
4766
- let m = new MeetingDetail();
4767
- m = Object.assign(m, proto);
4768
- if (proto.startTime) {
4769
- m.startTime = new Date(proto.startTime);
4770
- }
4771
- if (proto.endTime) {
4772
- m.endTime = new Date(proto.endTime);
4773
- }
4774
- if (proto.meetingSource) {
4775
- m.meetingSource = enumStringToValue$6(MeetingSource, proto.meetingSource);
4776
- }
4777
- if (proto.meetingLocationType) {
4778
- m.meetingLocationType = enumStringToValue$6(MeetingLocation, proto.meetingLocationType);
4779
- }
4780
- if (proto.timeZone) {
4781
- m.timeZone = TimeZone.fromProto(proto.timeZone);
4782
- }
4783
- if (proto.previousStartTime) {
4784
- m.previousStartTime = new Date(proto.previousStartTime);
4785
- }
4786
- if (proto.previousEndTime) {
4787
- m.previousEndTime = new Date(proto.previousEndTime);
4788
- }
4789
- return m;
4790
- }
4791
- constructor(kwargs) {
4792
- if (!kwargs) {
4793
- return;
4794
- }
4795
- Object.assign(this, kwargs);
4796
- }
4797
- toApiJson() {
4798
- const toReturn = {};
4799
- if (typeof this.meetingId !== 'undefined') {
4800
- toReturn['meetingId'] = this.meetingId;
4801
- }
4802
- if (typeof this.title !== 'undefined') {
4803
- toReturn['title'] = this.title;
4804
- }
4805
- if (typeof this.hostUserNames !== 'undefined') {
4806
- toReturn['hostUserNames'] = this.hostUserNames;
4807
- }
4808
- if (typeof this.startTime !== 'undefined' && this.startTime !== null) {
4809
- toReturn['startTime'] = 'toApiJson' in this.startTime ? this.startTime.toApiJson() : this.startTime;
4810
- }
4811
- if (typeof this.endTime !== 'undefined' && this.endTime !== null) {
4812
- toReturn['endTime'] = 'toApiJson' in this.endTime ? this.endTime.toApiJson() : this.endTime;
4813
- }
4814
- if (typeof this.location !== 'undefined') {
4815
- toReturn['location'] = this.location;
4816
- }
4817
- if (typeof this.meetingSourceLink !== 'undefined') {
4818
- toReturn['meetingSourceLink'] = this.meetingSourceLink;
4819
- }
4820
- if (typeof this.meetingSource !== 'undefined') {
4821
- toReturn['meetingSource'] = this.meetingSource;
4822
- }
4823
- if (typeof this.meetingLocationType !== 'undefined') {
4824
- toReturn['meetingLocationType'] = this.meetingLocationType;
4825
- }
4826
- if (typeof this.googleCalendarLink !== 'undefined') {
4827
- toReturn['googleCalendarLink'] = this.googleCalendarLink;
4828
- }
4829
- if (typeof this.outlookCalendarLink !== 'undefined') {
4830
- toReturn['outlookCalendarLink'] = this.outlookCalendarLink;
4831
- }
4832
- if (typeof this.rescheduleLink !== 'undefined') {
4833
- toReturn['rescheduleLink'] = this.rescheduleLink;
4834
- }
4835
- if (typeof this.cancelLink !== 'undefined') {
4836
- toReturn['cancelLink'] = this.cancelLink;
4837
- }
4838
- if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
4839
- toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
4840
- }
4841
- if (typeof this.businessLogo !== 'undefined') {
4842
- toReturn['businessLogo'] = this.businessLogo;
4843
- }
4844
- if (typeof this.bookingUrl !== 'undefined') {
4845
- toReturn['bookingUrl'] = this.bookingUrl;
4846
- }
4847
- if (typeof this.previousStartTime !== 'undefined' && this.previousStartTime !== null) {
4848
- toReturn['previousStartTime'] = 'toApiJson' in this.previousStartTime ? this.previousStartTime.toApiJson() : this.previousStartTime;
4849
- }
4850
- if (typeof this.previousEndTime !== 'undefined' && this.previousEndTime !== null) {
4851
- toReturn['previousEndTime'] = 'toApiJson' in this.previousEndTime ? this.previousEndTime.toApiJson() : this.previousEndTime;
4852
- }
4853
- if (typeof this.isCancelled !== 'undefined') {
4854
- toReturn['isCancelled'] = this.isCancelled;
4855
- }
4856
- if (typeof this.order !== 'undefined') {
4857
- toReturn['order'] = this.order;
4797
+ toReturn['meetings'] = 'toApiJson' in this.meetings ? this.meetings.toApiJson() : this.meetings;
4858
4798
  }
4859
4799
  return toReturn;
4860
4800
  }
@@ -5132,6 +5072,73 @@ class ListBatchAvailableTimeSlotsResponse {
5132
5072
  return toReturn;
5133
5073
  }
5134
5074
  }
5075
+ class ListGuestBookedMeetingsRequest {
5076
+ static fromProto(proto) {
5077
+ let m = new ListGuestBookedMeetingsRequest();
5078
+ m = Object.assign(m, proto);
5079
+ if (proto.phoneNumber) {
5080
+ m.phoneNumber = PhoneFields.fromProto(proto.phoneNumber);
5081
+ }
5082
+ if (proto.timeSpan) {
5083
+ m.timeSpan = DateRange.fromProto(proto.timeSpan);
5084
+ }
5085
+ if (proto.timeZone) {
5086
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
5087
+ }
5088
+ return m;
5089
+ }
5090
+ constructor(kwargs) {
5091
+ if (!kwargs) {
5092
+ return;
5093
+ }
5094
+ Object.assign(this, kwargs);
5095
+ }
5096
+ toApiJson() {
5097
+ const toReturn = {};
5098
+ if (typeof this.phoneNumber !== 'undefined' && this.phoneNumber !== null) {
5099
+ toReturn['phoneNumber'] = 'toApiJson' in this.phoneNumber ? this.phoneNumber.toApiJson() : this.phoneNumber;
5100
+ }
5101
+ if (typeof this.email !== 'undefined') {
5102
+ toReturn['email'] = this.email;
5103
+ }
5104
+ if (typeof this.namespace !== 'undefined') {
5105
+ toReturn['namespace'] = this.namespace;
5106
+ }
5107
+ if (typeof this.timeSpan !== 'undefined' && this.timeSpan !== null) {
5108
+ toReturn['timeSpan'] = 'toApiJson' in this.timeSpan ? this.timeSpan.toApiJson() : this.timeSpan;
5109
+ }
5110
+ if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
5111
+ toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
5112
+ }
5113
+ if (typeof this.useIsoDates !== 'undefined') {
5114
+ toReturn['useIsoDates'] = this.useIsoDates;
5115
+ }
5116
+ return toReturn;
5117
+ }
5118
+ }
5119
+ class ListGuestBookedMeetingsResponse {
5120
+ static fromProto(proto) {
5121
+ let m = new ListGuestBookedMeetingsResponse();
5122
+ m = Object.assign(m, proto);
5123
+ if (proto.meetings) {
5124
+ m.meetings = proto.meetings.map(MeetingSummary.fromProto);
5125
+ }
5126
+ return m;
5127
+ }
5128
+ constructor(kwargs) {
5129
+ if (!kwargs) {
5130
+ return;
5131
+ }
5132
+ Object.assign(this, kwargs);
5133
+ }
5134
+ toApiJson() {
5135
+ const toReturn = {};
5136
+ if (typeof this.meetings !== 'undefined' && this.meetings !== null) {
5137
+ toReturn['meetings'] = 'toApiJson' in this.meetings ? this.meetings.toApiJson() : this.meetings;
5138
+ }
5139
+ return toReturn;
5140
+ }
5141
+ }
5135
5142
  class ListMeetingTypesRequest {
5136
5143
  static fromProto(proto) {
5137
5144
  let m = new ListMeetingTypesRequest();
@@ -5175,6 +5182,148 @@ class ListMeetingTypesResponse {
5175
5182
  return toReturn;
5176
5183
  }
5177
5184
  }
5185
+ class MeetingDetail {
5186
+ static fromProto(proto) {
5187
+ let m = new MeetingDetail();
5188
+ m = Object.assign(m, proto);
5189
+ if (proto.startTime) {
5190
+ m.startTime = new Date(proto.startTime);
5191
+ }
5192
+ if (proto.endTime) {
5193
+ m.endTime = new Date(proto.endTime);
5194
+ }
5195
+ if (proto.meetingSource) {
5196
+ m.meetingSource = enumStringToValue$6(MeetingSource, proto.meetingSource);
5197
+ }
5198
+ if (proto.meetingLocationType) {
5199
+ m.meetingLocationType = enumStringToValue$6(MeetingLocation, proto.meetingLocationType);
5200
+ }
5201
+ if (proto.timeZone) {
5202
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
5203
+ }
5204
+ if (proto.previousStartTime) {
5205
+ m.previousStartTime = new Date(proto.previousStartTime);
5206
+ }
5207
+ if (proto.previousEndTime) {
5208
+ m.previousEndTime = new Date(proto.previousEndTime);
5209
+ }
5210
+ return m;
5211
+ }
5212
+ constructor(kwargs) {
5213
+ if (!kwargs) {
5214
+ return;
5215
+ }
5216
+ Object.assign(this, kwargs);
5217
+ }
5218
+ toApiJson() {
5219
+ const toReturn = {};
5220
+ if (typeof this.meetingId !== 'undefined') {
5221
+ toReturn['meetingId'] = this.meetingId;
5222
+ }
5223
+ if (typeof this.title !== 'undefined') {
5224
+ toReturn['title'] = this.title;
5225
+ }
5226
+ if (typeof this.hostUserNames !== 'undefined') {
5227
+ toReturn['hostUserNames'] = this.hostUserNames;
5228
+ }
5229
+ if (typeof this.startTime !== 'undefined' && this.startTime !== null) {
5230
+ toReturn['startTime'] = 'toApiJson' in this.startTime ? this.startTime.toApiJson() : this.startTime;
5231
+ }
5232
+ if (typeof this.endTime !== 'undefined' && this.endTime !== null) {
5233
+ toReturn['endTime'] = 'toApiJson' in this.endTime ? this.endTime.toApiJson() : this.endTime;
5234
+ }
5235
+ if (typeof this.location !== 'undefined') {
5236
+ toReturn['location'] = this.location;
5237
+ }
5238
+ if (typeof this.meetingSourceLink !== 'undefined') {
5239
+ toReturn['meetingSourceLink'] = this.meetingSourceLink;
5240
+ }
5241
+ if (typeof this.meetingSource !== 'undefined') {
5242
+ toReturn['meetingSource'] = this.meetingSource;
5243
+ }
5244
+ if (typeof this.meetingLocationType !== 'undefined') {
5245
+ toReturn['meetingLocationType'] = this.meetingLocationType;
5246
+ }
5247
+ if (typeof this.googleCalendarLink !== 'undefined') {
5248
+ toReturn['googleCalendarLink'] = this.googleCalendarLink;
5249
+ }
5250
+ if (typeof this.outlookCalendarLink !== 'undefined') {
5251
+ toReturn['outlookCalendarLink'] = this.outlookCalendarLink;
5252
+ }
5253
+ if (typeof this.rescheduleLink !== 'undefined') {
5254
+ toReturn['rescheduleLink'] = this.rescheduleLink;
5255
+ }
5256
+ if (typeof this.cancelLink !== 'undefined') {
5257
+ toReturn['cancelLink'] = this.cancelLink;
5258
+ }
5259
+ if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
5260
+ toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
5261
+ }
5262
+ if (typeof this.businessLogo !== 'undefined') {
5263
+ toReturn['businessLogo'] = this.businessLogo;
5264
+ }
5265
+ if (typeof this.bookingUrl !== 'undefined') {
5266
+ toReturn['bookingUrl'] = this.bookingUrl;
5267
+ }
5268
+ if (typeof this.previousStartTime !== 'undefined' && this.previousStartTime !== null) {
5269
+ toReturn['previousStartTime'] = 'toApiJson' in this.previousStartTime ? this.previousStartTime.toApiJson() : this.previousStartTime;
5270
+ }
5271
+ if (typeof this.previousEndTime !== 'undefined' && this.previousEndTime !== null) {
5272
+ toReturn['previousEndTime'] = 'toApiJson' in this.previousEndTime ? this.previousEndTime.toApiJson() : this.previousEndTime;
5273
+ }
5274
+ if (typeof this.isCancelled !== 'undefined') {
5275
+ toReturn['isCancelled'] = this.isCancelled;
5276
+ }
5277
+ if (typeof this.order !== 'undefined') {
5278
+ toReturn['order'] = this.order;
5279
+ }
5280
+ return toReturn;
5281
+ }
5282
+ }
5283
+ class MeetingSummary {
5284
+ static fromProto(proto) {
5285
+ let m = new MeetingSummary();
5286
+ m = Object.assign(m, proto);
5287
+ if (proto.startTime) {
5288
+ m.startTime = new Date(proto.startTime);
5289
+ }
5290
+ if (proto.endTime) {
5291
+ m.endTime = new Date(proto.endTime);
5292
+ }
5293
+ return m;
5294
+ }
5295
+ constructor(kwargs) {
5296
+ if (!kwargs) {
5297
+ return;
5298
+ }
5299
+ Object.assign(this, kwargs);
5300
+ }
5301
+ toApiJson() {
5302
+ const toReturn = {};
5303
+ if (typeof this.id !== 'undefined') {
5304
+ toReturn['id'] = this.id;
5305
+ }
5306
+ if (typeof this.title !== 'undefined') {
5307
+ toReturn['title'] = this.title;
5308
+ }
5309
+ if (typeof this.startTime !== 'undefined' && this.startTime !== null) {
5310
+ toReturn['startTime'] = 'toApiJson' in this.startTime ? this.startTime.toApiJson() : this.startTime;
5311
+ }
5312
+ if (typeof this.endTime !== 'undefined' && this.endTime !== null) {
5313
+ toReturn['endTime'] = 'toApiJson' in this.endTime ? this.endTime.toApiJson() : this.endTime;
5314
+ }
5315
+ if (typeof this.isoStartTime !== 'undefined') {
5316
+ toReturn['isoStartTime'] = this.isoStartTime;
5317
+ }
5318
+ if (typeof this.isoEndTime !== 'undefined') {
5319
+ toReturn['isoEndTime'] = this.isoEndTime;
5320
+ }
5321
+ if (typeof this.location !== 'undefined') {
5322
+ toReturn['location'] = this.location;
5323
+ }
5324
+ return toReturn;
5325
+ }
5326
+ }
5178
5327
  class BookMeetingRequestMetadataEntry {
5179
5328
  static fromProto(proto) {
5180
5329
  let m = new BookMeetingRequestMetadataEntry();
@@ -5278,6 +5427,9 @@ class ServiceEventType {
5278
5427
  if (proto.locationType) {
5279
5428
  m.locationType = enumStringToValue$6(MeetingLocationType, proto.locationType);
5280
5429
  }
5430
+ if (proto.serviceForm) {
5431
+ m.serviceForm = Form.fromProto(proto.serviceForm);
5432
+ }
5281
5433
  return m;
5282
5434
  }
5283
5435
  constructor(kwargs) {
@@ -5327,6 +5479,9 @@ class ServiceEventType {
5327
5479
  if (typeof this.location !== 'undefined') {
5328
5480
  toReturn['location'] = this.location;
5329
5481
  }
5482
+ if (typeof this.serviceForm !== 'undefined' && this.serviceForm !== null) {
5483
+ toReturn['serviceForm'] = 'toApiJson' in this.serviceForm ? this.serviceForm.toApiJson() : this.serviceForm;
5484
+ }
5330
5485
  return toReturn;
5331
5486
  }
5332
5487
  }
@@ -9587,11 +9742,20 @@ class MeetingGuestApiService {
9587
9742
  const request = (r.toApiJson) ? r : new CancelBatchMeetingRequest(r);
9588
9743
  return this.http.post(this._host + "/meetings.v1.MeetingGuest/CancelBatchMeeting", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
9589
9744
  }
9745
+ rescheduleBatchMeeting(r) {
9746
+ const request = (r.toApiJson) ? r : new RescheduleBatchMeetingRequest(r);
9747
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/RescheduleBatchMeeting", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
9748
+ }
9590
9749
  getServiceV2(r) {
9591
9750
  const request = (r.toApiJson) ? r : new GetServiceV2Request(r);
9592
9751
  return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetServiceV2", request.toApiJson(), this.apiOptions())
9593
9752
  .pipe(map(resp => GetServiceV2Response.fromProto(resp)));
9594
9753
  }
9754
+ listGuestBookedMeetings(r) {
9755
+ const request = (r.toApiJson) ? r : new ListGuestBookedMeetingsRequest(r);
9756
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/ListGuestBookedMeetings", request.toApiJson(), this.apiOptions())
9757
+ .pipe(map(resp => ListGuestBookedMeetingsResponse.fromProto(resp)));
9758
+ }
9595
9759
  }
9596
9760
  MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
9597
9761
  MeetingGuestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, providedIn: 'root' });