@vendasta/meetings 1.7.1 → 1.7.3

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.
@@ -4595,6 +4595,9 @@ class GuestGetBookedMeetingRequestV2 {
4595
4595
  if (typeof this.meetingId !== 'undefined') {
4596
4596
  toReturn['meetingId'] = this.meetingId;
4597
4597
  }
4598
+ if (typeof this.id !== 'undefined') {
4599
+ toReturn['id'] = this.id;
4600
+ }
4598
4601
  return toReturn;
4599
4602
  }
4600
4603
  }
@@ -4685,6 +4688,9 @@ class GuestGetBookedMeetingResponseV2 {
4685
4688
  if (proto.previousEndTime) {
4686
4689
  m.previousEndTime = new Date(proto.previousEndTime);
4687
4690
  }
4691
+ if (proto.meetings) {
4692
+ m.meetings = proto.meetings.map(MeetingDetail.fromProto);
4693
+ }
4688
4694
  return m;
4689
4695
  }
4690
4696
  constructor(kwargs) {
@@ -4749,6 +4755,12 @@ class GuestGetBookedMeetingResponseV2 {
4749
4755
  if (typeof this.isCancelled !== 'undefined') {
4750
4756
  toReturn['isCancelled'] = this.isCancelled;
4751
4757
  }
4758
+ if (typeof this.bookingGroupId !== 'undefined') {
4759
+ toReturn['bookingGroupId'] = this.bookingGroupId;
4760
+ }
4761
+ if (typeof this.meetings !== 'undefined' && this.meetings !== null) {
4762
+ toReturn['meetings'] = 'toApiJson' in this.meetings ? this.meetings.toApiJson() : this.meetings;
4763
+ }
4752
4764
  return toReturn;
4753
4765
  }
4754
4766
  }
@@ -5025,6 +5037,73 @@ class ListBatchAvailableTimeSlotsResponse {
5025
5037
  return toReturn;
5026
5038
  }
5027
5039
  }
5040
+ class ListGuestBookedMeetingsRequest {
5041
+ static fromProto(proto) {
5042
+ let m = new ListGuestBookedMeetingsRequest();
5043
+ m = Object.assign(m, proto);
5044
+ if (proto.phoneNumber) {
5045
+ m.phoneNumber = PhoneFields.fromProto(proto.phoneNumber);
5046
+ }
5047
+ if (proto.timeSpan) {
5048
+ m.timeSpan = DateRange.fromProto(proto.timeSpan);
5049
+ }
5050
+ if (proto.timeZone) {
5051
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
5052
+ }
5053
+ return m;
5054
+ }
5055
+ constructor(kwargs) {
5056
+ if (!kwargs) {
5057
+ return;
5058
+ }
5059
+ Object.assign(this, kwargs);
5060
+ }
5061
+ toApiJson() {
5062
+ const toReturn = {};
5063
+ if (typeof this.phoneNumber !== 'undefined' && this.phoneNumber !== null) {
5064
+ toReturn['phoneNumber'] = 'toApiJson' in this.phoneNumber ? this.phoneNumber.toApiJson() : this.phoneNumber;
5065
+ }
5066
+ if (typeof this.email !== 'undefined') {
5067
+ toReturn['email'] = this.email;
5068
+ }
5069
+ if (typeof this.namespace !== 'undefined') {
5070
+ toReturn['namespace'] = this.namespace;
5071
+ }
5072
+ if (typeof this.timeSpan !== 'undefined' && this.timeSpan !== null) {
5073
+ toReturn['timeSpan'] = 'toApiJson' in this.timeSpan ? this.timeSpan.toApiJson() : this.timeSpan;
5074
+ }
5075
+ if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
5076
+ toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
5077
+ }
5078
+ if (typeof this.useIsoDates !== 'undefined') {
5079
+ toReturn['useIsoDates'] = this.useIsoDates;
5080
+ }
5081
+ return toReturn;
5082
+ }
5083
+ }
5084
+ class ListGuestBookedMeetingsResponse {
5085
+ static fromProto(proto) {
5086
+ let m = new ListGuestBookedMeetingsResponse();
5087
+ m = Object.assign(m, proto);
5088
+ if (proto.meetings) {
5089
+ m.meetings = proto.meetings.map(MeetingSummary.fromProto);
5090
+ }
5091
+ return m;
5092
+ }
5093
+ constructor(kwargs) {
5094
+ if (!kwargs) {
5095
+ return;
5096
+ }
5097
+ Object.assign(this, kwargs);
5098
+ }
5099
+ toApiJson() {
5100
+ const toReturn = {};
5101
+ if (typeof this.meetings !== 'undefined' && this.meetings !== null) {
5102
+ toReturn['meetings'] = 'toApiJson' in this.meetings ? this.meetings.toApiJson() : this.meetings;
5103
+ }
5104
+ return toReturn;
5105
+ }
5106
+ }
5028
5107
  class ListMeetingTypesRequest {
5029
5108
  static fromProto(proto) {
5030
5109
  let m = new ListMeetingTypesRequest();
@@ -5068,6 +5147,148 @@ class ListMeetingTypesResponse {
5068
5147
  return toReturn;
5069
5148
  }
5070
5149
  }
5150
+ class MeetingDetail {
5151
+ static fromProto(proto) {
5152
+ let m = new MeetingDetail();
5153
+ m = Object.assign(m, proto);
5154
+ if (proto.startTime) {
5155
+ m.startTime = new Date(proto.startTime);
5156
+ }
5157
+ if (proto.endTime) {
5158
+ m.endTime = new Date(proto.endTime);
5159
+ }
5160
+ if (proto.meetingSource) {
5161
+ m.meetingSource = enumStringToValue$6(MeetingSource, proto.meetingSource);
5162
+ }
5163
+ if (proto.meetingLocationType) {
5164
+ m.meetingLocationType = enumStringToValue$6(MeetingLocation, proto.meetingLocationType);
5165
+ }
5166
+ if (proto.timeZone) {
5167
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
5168
+ }
5169
+ if (proto.previousStartTime) {
5170
+ m.previousStartTime = new Date(proto.previousStartTime);
5171
+ }
5172
+ if (proto.previousEndTime) {
5173
+ m.previousEndTime = new Date(proto.previousEndTime);
5174
+ }
5175
+ return m;
5176
+ }
5177
+ constructor(kwargs) {
5178
+ if (!kwargs) {
5179
+ return;
5180
+ }
5181
+ Object.assign(this, kwargs);
5182
+ }
5183
+ toApiJson() {
5184
+ const toReturn = {};
5185
+ if (typeof this.meetingId !== 'undefined') {
5186
+ toReturn['meetingId'] = this.meetingId;
5187
+ }
5188
+ if (typeof this.title !== 'undefined') {
5189
+ toReturn['title'] = this.title;
5190
+ }
5191
+ if (typeof this.hostUserNames !== 'undefined') {
5192
+ toReturn['hostUserNames'] = this.hostUserNames;
5193
+ }
5194
+ if (typeof this.startTime !== 'undefined' && this.startTime !== null) {
5195
+ toReturn['startTime'] = 'toApiJson' in this.startTime ? this.startTime.toApiJson() : this.startTime;
5196
+ }
5197
+ if (typeof this.endTime !== 'undefined' && this.endTime !== null) {
5198
+ toReturn['endTime'] = 'toApiJson' in this.endTime ? this.endTime.toApiJson() : this.endTime;
5199
+ }
5200
+ if (typeof this.location !== 'undefined') {
5201
+ toReturn['location'] = this.location;
5202
+ }
5203
+ if (typeof this.meetingSourceLink !== 'undefined') {
5204
+ toReturn['meetingSourceLink'] = this.meetingSourceLink;
5205
+ }
5206
+ if (typeof this.meetingSource !== 'undefined') {
5207
+ toReturn['meetingSource'] = this.meetingSource;
5208
+ }
5209
+ if (typeof this.meetingLocationType !== 'undefined') {
5210
+ toReturn['meetingLocationType'] = this.meetingLocationType;
5211
+ }
5212
+ if (typeof this.googleCalendarLink !== 'undefined') {
5213
+ toReturn['googleCalendarLink'] = this.googleCalendarLink;
5214
+ }
5215
+ if (typeof this.outlookCalendarLink !== 'undefined') {
5216
+ toReturn['outlookCalendarLink'] = this.outlookCalendarLink;
5217
+ }
5218
+ if (typeof this.rescheduleLink !== 'undefined') {
5219
+ toReturn['rescheduleLink'] = this.rescheduleLink;
5220
+ }
5221
+ if (typeof this.cancelLink !== 'undefined') {
5222
+ toReturn['cancelLink'] = this.cancelLink;
5223
+ }
5224
+ if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
5225
+ toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
5226
+ }
5227
+ if (typeof this.businessLogo !== 'undefined') {
5228
+ toReturn['businessLogo'] = this.businessLogo;
5229
+ }
5230
+ if (typeof this.bookingUrl !== 'undefined') {
5231
+ toReturn['bookingUrl'] = this.bookingUrl;
5232
+ }
5233
+ if (typeof this.previousStartTime !== 'undefined' && this.previousStartTime !== null) {
5234
+ toReturn['previousStartTime'] = 'toApiJson' in this.previousStartTime ? this.previousStartTime.toApiJson() : this.previousStartTime;
5235
+ }
5236
+ if (typeof this.previousEndTime !== 'undefined' && this.previousEndTime !== null) {
5237
+ toReturn['previousEndTime'] = 'toApiJson' in this.previousEndTime ? this.previousEndTime.toApiJson() : this.previousEndTime;
5238
+ }
5239
+ if (typeof this.isCancelled !== 'undefined') {
5240
+ toReturn['isCancelled'] = this.isCancelled;
5241
+ }
5242
+ if (typeof this.order !== 'undefined') {
5243
+ toReturn['order'] = this.order;
5244
+ }
5245
+ return toReturn;
5246
+ }
5247
+ }
5248
+ class MeetingSummary {
5249
+ static fromProto(proto) {
5250
+ let m = new MeetingSummary();
5251
+ m = Object.assign(m, proto);
5252
+ if (proto.startTime) {
5253
+ m.startTime = new Date(proto.startTime);
5254
+ }
5255
+ if (proto.endTime) {
5256
+ m.endTime = new Date(proto.endTime);
5257
+ }
5258
+ return m;
5259
+ }
5260
+ constructor(kwargs) {
5261
+ if (!kwargs) {
5262
+ return;
5263
+ }
5264
+ Object.assign(this, kwargs);
5265
+ }
5266
+ toApiJson() {
5267
+ const toReturn = {};
5268
+ if (typeof this.id !== 'undefined') {
5269
+ toReturn['id'] = this.id;
5270
+ }
5271
+ if (typeof this.title !== 'undefined') {
5272
+ toReturn['title'] = this.title;
5273
+ }
5274
+ if (typeof this.startTime !== 'undefined' && this.startTime !== null) {
5275
+ toReturn['startTime'] = 'toApiJson' in this.startTime ? this.startTime.toApiJson() : this.startTime;
5276
+ }
5277
+ if (typeof this.endTime !== 'undefined' && this.endTime !== null) {
5278
+ toReturn['endTime'] = 'toApiJson' in this.endTime ? this.endTime.toApiJson() : this.endTime;
5279
+ }
5280
+ if (typeof this.isoStartTime !== 'undefined') {
5281
+ toReturn['isoStartTime'] = this.isoStartTime;
5282
+ }
5283
+ if (typeof this.isoEndTime !== 'undefined') {
5284
+ toReturn['isoEndTime'] = this.isoEndTime;
5285
+ }
5286
+ if (typeof this.location !== 'undefined') {
5287
+ toReturn['location'] = this.location;
5288
+ }
5289
+ return toReturn;
5290
+ }
5291
+ }
5071
5292
  class BookMeetingRequestMetadataEntry {
5072
5293
  static fromProto(proto) {
5073
5294
  let m = new BookMeetingRequestMetadataEntry();
@@ -5171,6 +5392,9 @@ class ServiceEventType {
5171
5392
  if (proto.locationType) {
5172
5393
  m.locationType = enumStringToValue$6(MeetingLocationType, proto.locationType);
5173
5394
  }
5395
+ if (proto.serviceForm) {
5396
+ m.serviceForm = Form.fromProto(proto.serviceForm);
5397
+ }
5174
5398
  return m;
5175
5399
  }
5176
5400
  constructor(kwargs) {
@@ -5220,6 +5444,9 @@ class ServiceEventType {
5220
5444
  if (typeof this.location !== 'undefined') {
5221
5445
  toReturn['location'] = this.location;
5222
5446
  }
5447
+ if (typeof this.serviceForm !== 'undefined' && this.serviceForm !== null) {
5448
+ toReturn['serviceForm'] = 'toApiJson' in this.serviceForm ? this.serviceForm.toApiJson() : this.serviceForm;
5449
+ }
5223
5450
  return toReturn;
5224
5451
  }
5225
5452
  }
@@ -9485,6 +9712,11 @@ class MeetingGuestApiService {
9485
9712
  return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetServiceV2", request.toApiJson(), this.apiOptions())
9486
9713
  .pipe(map(resp => GetServiceV2Response.fromProto(resp)));
9487
9714
  }
9715
+ listGuestBookedMeetings(r) {
9716
+ const request = (r.toApiJson) ? r : new ListGuestBookedMeetingsRequest(r);
9717
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/ListGuestBookedMeetings", request.toApiJson(), this.apiOptions())
9718
+ .pipe(map(resp => ListGuestBookedMeetingsResponse.fromProto(resp)));
9719
+ }
9488
9720
  }
9489
9721
  MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
9490
9722
  MeetingGuestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, providedIn: 'root' });
@@ -10399,6 +10631,9 @@ class GuestService {
10399
10631
  getGuestBookedMeetingV2(req) {
10400
10632
  return this.guestAPIService.getGuestBookedMeetingV2(req);
10401
10633
  }
10634
+ cancelBatchMeeting(req) {
10635
+ return this.guestAPIService.cancelBatchMeeting(req).pipe(map(() => null));
10636
+ }
10402
10637
  isHostConfigured(req) {
10403
10638
  return this.guestAPIService
10404
10639
  .isHostConfigured(req)