@vendasta/meetings 1.7.2 → 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.
@@ -4592,6 +4592,9 @@ class GuestGetBookedMeetingRequestV2 {
4592
4592
  }
4593
4593
  toApiJson() {
4594
4594
  const toReturn = {};
4595
+ if (typeof this.meetingId !== 'undefined') {
4596
+ toReturn['meetingId'] = this.meetingId;
4597
+ }
4595
4598
  if (typeof this.id !== 'undefined') {
4596
4599
  toReturn['id'] = this.id;
4597
4600
  }
@@ -4686,7 +4689,7 @@ class GuestGetBookedMeetingResponseV2 {
4686
4689
  m.previousEndTime = new Date(proto.previousEndTime);
4687
4690
  }
4688
4691
  if (proto.meetings) {
4689
- m.meetings = proto.meetings.map((p) => MeetingDetail.fromProto(p));
4692
+ m.meetings = proto.meetings.map(MeetingDetail.fromProto);
4690
4693
  }
4691
4694
  return m;
4692
4695
  }
@@ -4756,105 +4759,7 @@ class GuestGetBookedMeetingResponseV2 {
4756
4759
  toReturn['bookingGroupId'] = this.bookingGroupId;
4757
4760
  }
4758
4761
  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;
4762
+ toReturn['meetings'] = 'toApiJson' in this.meetings ? this.meetings.toApiJson() : this.meetings;
4858
4763
  }
4859
4764
  return toReturn;
4860
4765
  }
@@ -5132,6 +5037,73 @@ class ListBatchAvailableTimeSlotsResponse {
5132
5037
  return toReturn;
5133
5038
  }
5134
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
+ }
5135
5107
  class ListMeetingTypesRequest {
5136
5108
  static fromProto(proto) {
5137
5109
  let m = new ListMeetingTypesRequest();
@@ -5175,6 +5147,148 @@ class ListMeetingTypesResponse {
5175
5147
  return toReturn;
5176
5148
  }
5177
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
+ }
5178
5292
  class BookMeetingRequestMetadataEntry {
5179
5293
  static fromProto(proto) {
5180
5294
  let m = new BookMeetingRequestMetadataEntry();
@@ -5278,6 +5392,9 @@ class ServiceEventType {
5278
5392
  if (proto.locationType) {
5279
5393
  m.locationType = enumStringToValue$6(MeetingLocationType, proto.locationType);
5280
5394
  }
5395
+ if (proto.serviceForm) {
5396
+ m.serviceForm = Form.fromProto(proto.serviceForm);
5397
+ }
5281
5398
  return m;
5282
5399
  }
5283
5400
  constructor(kwargs) {
@@ -5327,6 +5444,9 @@ class ServiceEventType {
5327
5444
  if (typeof this.location !== 'undefined') {
5328
5445
  toReturn['location'] = this.location;
5329
5446
  }
5447
+ if (typeof this.serviceForm !== 'undefined' && this.serviceForm !== null) {
5448
+ toReturn['serviceForm'] = 'toApiJson' in this.serviceForm ? this.serviceForm.toApiJson() : this.serviceForm;
5449
+ }
5330
5450
  return toReturn;
5331
5451
  }
5332
5452
  }
@@ -9883,6 +10003,11 @@ class MeetingGuestApiService {
9883
10003
  return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetServiceV2", request.toApiJson(), this.apiOptions())
9884
10004
  .pipe(map(resp => GetServiceV2Response.fromProto(resp)));
9885
10005
  }
10006
+ listGuestBookedMeetings(r) {
10007
+ const request = (r.toApiJson) ? r : new ListGuestBookedMeetingsRequest(r);
10008
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/ListGuestBookedMeetings", request.toApiJson(), this.apiOptions())
10009
+ .pipe(map(resp => ListGuestBookedMeetingsResponse.fromProto(resp)));
10010
+ }
9886
10011
  }
9887
10012
  MeetingGuestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
9888
10013
  MeetingGuestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingGuestApiService, providedIn: 'root' });