@vendasta/meetings 1.6.1 → 1.6.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.
@@ -1610,6 +1610,9 @@ class Calendar {
1610
1610
  if (typeof this.encodedApplicationContext !== 'undefined') {
1611
1611
  toReturn['encodedApplicationContext'] = this.encodedApplicationContext;
1612
1612
  }
1613
+ if (typeof this.businessName !== 'undefined') {
1614
+ toReturn['businessName'] = this.businessName;
1615
+ }
1613
1616
  return toReturn;
1614
1617
  }
1615
1618
  }
@@ -2531,6 +2534,9 @@ class BookMeetingRequest {
2531
2534
  if (typeof this.bookingSource !== 'undefined') {
2532
2535
  toReturn['bookingSource'] = this.bookingSource;
2533
2536
  }
2537
+ if (typeof this.hasSmsConsent !== 'undefined') {
2538
+ toReturn['hasSmsConsent'] = this.hasSmsConsent;
2539
+ }
2534
2540
  return toReturn;
2535
2541
  }
2536
2542
  }
@@ -3600,8 +3606,8 @@ class AvailableTimeSlotsRequest {
3600
3606
  }
3601
3607
  toApiJson() {
3602
3608
  const toReturn = {};
3603
- if (typeof this.namespace !== 'undefined') {
3604
- toReturn['namespace'] = this.namespace;
3609
+ if (typeof this.businessId !== 'undefined') {
3610
+ toReturn['businessId'] = this.businessId;
3605
3611
  }
3606
3612
  if (typeof this.eventTypeId !== 'undefined') {
3607
3613
  toReturn['eventTypeId'] = this.eventTypeId;
@@ -3664,8 +3670,8 @@ class BookMeetingExternalRequest {
3664
3670
  }
3665
3671
  toApiJson() {
3666
3672
  const toReturn = {};
3667
- if (typeof this.namespace !== 'undefined') {
3668
- toReturn['namespace'] = this.namespace;
3673
+ if (typeof this.businessId !== 'undefined') {
3674
+ toReturn['businessId'] = this.businessId;
3669
3675
  }
3670
3676
  if (typeof this.eventTypeId !== 'undefined') {
3671
3677
  toReturn['eventTypeId'] = this.eventTypeId;
@@ -3701,9 +3707,6 @@ class BookMeetingExternalResponse {
3701
3707
  if (proto.meetingEndTime) {
3702
3708
  m.meetingEndTime = new Date(proto.meetingEndTime);
3703
3709
  }
3704
- if (proto.hostDetails) {
3705
- m.hostDetails = proto.hostDetails.map(HostUserDetails.fromProto);
3706
- }
3707
3710
  return m;
3708
3711
  }
3709
3712
  constructor(kwargs) {
@@ -3735,21 +3738,6 @@ class BookMeetingExternalResponse {
3735
3738
  if (typeof this.location !== 'undefined') {
3736
3739
  toReturn['location'] = this.location;
3737
3740
  }
3738
- if (typeof this.hostDetails !== 'undefined' && this.hostDetails !== null) {
3739
- toReturn['hostDetails'] = 'toApiJson' in this.hostDetails ? this.hostDetails.toApiJson() : this.hostDetails;
3740
- }
3741
- if (typeof this.bookingUrl !== 'undefined') {
3742
- toReturn['bookingUrl'] = this.bookingUrl;
3743
- }
3744
- if (typeof this.cancelUrl !== 'undefined') {
3745
- toReturn['cancelUrl'] = this.cancelUrl;
3746
- }
3747
- if (typeof this.rescheduleUrl !== 'undefined') {
3748
- toReturn['rescheduleUrl'] = this.rescheduleUrl;
3749
- }
3750
- if (typeof this.meetingLink !== 'undefined') {
3751
- toReturn['meetingLink'] = this.meetingLink;
3752
- }
3753
3741
  if (typeof this.attendeeEmails !== 'undefined') {
3754
3742
  toReturn['attendeeEmails'] = this.attendeeEmails;
3755
3743
  }
@@ -3764,7 +3752,7 @@ class EventType {
3764
3752
  m.locationType = enumStringToValue$5(MeetingLocationType, proto.locationType);
3765
3753
  }
3766
3754
  if (proto.hostUsers) {
3767
- m.hostUsers = proto.hostUsers.map(HostUser.fromProto);
3755
+ m.hostUsers = proto.hostUsers.map(UserResponse.fromProto);
3768
3756
  }
3769
3757
  if (proto.bookingWindow) {
3770
3758
  m.bookingWindow = EventTypeDateRange.fromProto(proto.bookingWindow);
@@ -3850,8 +3838,8 @@ class ExternalCancelMeetingRequest {
3850
3838
  }
3851
3839
  toApiJson() {
3852
3840
  const toReturn = {};
3853
- if (typeof this.namespace !== 'undefined') {
3854
- toReturn['namespace'] = this.namespace;
3841
+ if (typeof this.businessId !== 'undefined') {
3842
+ toReturn['businessId'] = this.businessId;
3855
3843
  }
3856
3844
  if (typeof this.meetingId !== 'undefined') {
3857
3845
  toReturn['meetingId'] = this.meetingId;
@@ -3882,8 +3870,8 @@ class ExternalRescheduleMeetingRequest {
3882
3870
  }
3883
3871
  toApiJson() {
3884
3872
  const toReturn = {};
3885
- if (typeof this.namespace !== 'undefined') {
3886
- toReturn['namespace'] = this.namespace;
3873
+ if (typeof this.businessId !== 'undefined') {
3874
+ toReturn['businessId'] = this.businessId;
3887
3875
  }
3888
3876
  if (typeof this.meetingId !== 'undefined') {
3889
3877
  toReturn['meetingId'] = this.meetingId;
@@ -3910,9 +3898,6 @@ class ExternalRescheduleMeetingResponse {
3910
3898
  if (proto.endTime) {
3911
3899
  m.endTime = new Date(proto.endTime);
3912
3900
  }
3913
- if (proto.hostDetails) {
3914
- m.hostDetails = proto.hostDetails.map(HostUserDetails.fromProto);
3915
- }
3916
3901
  return m;
3917
3902
  }
3918
3903
  constructor(kwargs) {
@@ -3932,9 +3917,6 @@ class ExternalRescheduleMeetingResponse {
3932
3917
  if (typeof this.endTime !== 'undefined' && this.endTime !== null) {
3933
3918
  toReturn['endTime'] = 'toApiJson' in this.endTime ? this.endTime.toApiJson() : this.endTime;
3934
3919
  }
3935
- if (typeof this.hostDetails !== 'undefined' && this.hostDetails !== null) {
3936
- toReturn['hostDetails'] = 'toApiJson' in this.hostDetails ? this.hostDetails.toApiJson() : this.hostDetails;
3937
- }
3938
3920
  if (typeof this.eventTypeId !== 'undefined') {
3939
3921
  toReturn['eventTypeId'] = this.eventTypeId;
3940
3922
  }
@@ -3944,18 +3926,6 @@ class ExternalRescheduleMeetingResponse {
3944
3926
  if (typeof this.location !== 'undefined') {
3945
3927
  toReturn['location'] = this.location;
3946
3928
  }
3947
- if (typeof this.meetingUrl !== 'undefined') {
3948
- toReturn['meetingUrl'] = this.meetingUrl;
3949
- }
3950
- if (typeof this.bookingUrl !== 'undefined') {
3951
- toReturn['bookingUrl'] = this.bookingUrl;
3952
- }
3953
- if (typeof this.rescheduleUrl !== 'undefined') {
3954
- toReturn['rescheduleUrl'] = this.rescheduleUrl;
3955
- }
3956
- if (typeof this.cancelUrl !== 'undefined') {
3957
- toReturn['cancelUrl'] = this.cancelUrl;
3958
- }
3959
3929
  return toReturn;
3960
3930
  }
3961
3931
  }
@@ -3963,9 +3933,6 @@ class GetUsersRequest {
3963
3933
  static fromProto(proto) {
3964
3934
  let m = new GetUsersRequest();
3965
3935
  m = Object.assign(m, proto);
3966
- if (proto.pagedRequestOptions) {
3967
- m.pagedRequestOptions = PagedRequestOptions.fromProto(proto.pagedRequestOptions);
3968
- }
3969
3936
  return m;
3970
3937
  }
3971
3938
  constructor(kwargs) {
@@ -3976,11 +3943,8 @@ class GetUsersRequest {
3976
3943
  }
3977
3944
  toApiJson() {
3978
3945
  const toReturn = {};
3979
- if (typeof this.namespace !== 'undefined') {
3980
- toReturn['namespace'] = this.namespace;
3981
- }
3982
- if (typeof this.pagedRequestOptions !== 'undefined' && this.pagedRequestOptions !== null) {
3983
- toReturn['pagedRequestOptions'] = 'toApiJson' in this.pagedRequestOptions ? this.pagedRequestOptions.toApiJson() : this.pagedRequestOptions;
3946
+ if (typeof this.businessId !== 'undefined') {
3947
+ toReturn['businessId'] = this.businessId;
3984
3948
  }
3985
3949
  return toReturn;
3986
3950
  }
@@ -3992,9 +3956,6 @@ class GetUsersResponse {
3992
3956
  if (proto.users) {
3993
3957
  m.users = proto.users.map(UserResponse.fromProto);
3994
3958
  }
3995
- if (proto.pagedResponseMetadata) {
3996
- m.pagedResponseMetadata = PagedResponseMetadata.fromProto(proto.pagedResponseMetadata);
3997
- }
3998
3959
  return m;
3999
3960
  }
4000
3961
  constructor(kwargs) {
@@ -4008,9 +3969,6 @@ class GetUsersResponse {
4008
3969
  if (typeof this.users !== 'undefined' && this.users !== null) {
4009
3970
  toReturn['users'] = 'toApiJson' in this.users ? this.users.toApiJson() : this.users;
4010
3971
  }
4011
- if (typeof this.pagedResponseMetadata !== 'undefined' && this.pagedResponseMetadata !== null) {
4012
- toReturn['pagedResponseMetadata'] = 'toApiJson' in this.pagedResponseMetadata ? this.pagedResponseMetadata.toApiJson() : this.pagedResponseMetadata;
4013
- }
4014
3972
  return toReturn;
4015
3973
  }
4016
3974
  }
@@ -4060,8 +4018,8 @@ class GroupsRequest {
4060
4018
  }
4061
4019
  toApiJson() {
4062
4020
  const toReturn = {};
4063
- if (typeof this.namespace !== 'undefined') {
4064
- toReturn['namespace'] = this.namespace;
4021
+ if (typeof this.businessId !== 'undefined') {
4022
+ toReturn['businessId'] = this.businessId;
4065
4023
  }
4066
4024
  return toReturn;
4067
4025
  }
@@ -4129,8 +4087,8 @@ class ListTeamEventTypesRequest {
4129
4087
  }
4130
4088
  toApiJson() {
4131
4089
  const toReturn = {};
4132
- if (typeof this.namespace !== 'undefined') {
4133
- toReturn['namespace'] = this.namespace;
4090
+ if (typeof this.businessId !== 'undefined') {
4091
+ toReturn['businessId'] = this.businessId;
4134
4092
  }
4135
4093
  if (typeof this.cursor !== 'undefined') {
4136
4094
  toReturn['cursor'] = this.cursor;
@@ -4184,8 +4142,8 @@ class ListUserEventTypesRequest {
4184
4142
  }
4185
4143
  toApiJson() {
4186
4144
  const toReturn = {};
4187
- if (typeof this.namespace !== 'undefined') {
4188
- toReturn['namespace'] = this.namespace;
4145
+ if (typeof this.businessId !== 'undefined') {
4146
+ toReturn['businessId'] = this.businessId;
4189
4147
  }
4190
4148
  if (typeof this.userId !== 'undefined') {
4191
4149
  toReturn['userId'] = this.userId;
@@ -4262,8 +4220,8 @@ class ServicesRequest {
4262
4220
  }
4263
4221
  toApiJson() {
4264
4222
  const toReturn = {};
4265
- if (typeof this.namespace !== 'undefined') {
4266
- toReturn['namespace'] = this.namespace;
4223
+ if (typeof this.businessId !== 'undefined') {
4224
+ toReturn['businessId'] = this.businessId;
4267
4225
  }
4268
4226
  return toReturn;
4269
4227
  }
@@ -4311,8 +4269,8 @@ class UserResponse {
4311
4269
  if (typeof this.displayName !== 'undefined') {
4312
4270
  toReturn['displayName'] = this.displayName;
4313
4271
  }
4314
- if (typeof this.isConfigured !== 'undefined') {
4315
- toReturn['isConfigured'] = this.isConfigured;
4272
+ if (typeof this.isConnected !== 'undefined') {
4273
+ toReturn['isConnected'] = this.isConnected;
4316
4274
  }
4317
4275
  return toReturn;
4318
4276
  }
@@ -5206,6 +5164,21 @@ class EventTypeSummary {
5206
5164
  if (proto.duration) {
5207
5165
  m.duration = parseInt(proto.duration, 10);
5208
5166
  }
5167
+ if (proto.calendarType) {
5168
+ m.calendarType = enumStringToValue$3(CalendarType, proto.calendarType);
5169
+ }
5170
+ if (proto.locationType) {
5171
+ m.locationType = enumStringToValue$3(MeetingLocationType, proto.locationType);
5172
+ }
5173
+ if (proto.meetingType) {
5174
+ m.meetingType = enumStringToValue$3(TeamEventMeetingType, proto.meetingType);
5175
+ }
5176
+ if (proto.hostUsers) {
5177
+ m.hostUsers = proto.hostUsers.map(HostUser.fromProto);
5178
+ }
5179
+ if (proto.dateRange) {
5180
+ m.dateRange = EventTypeDateRange.fromProto(proto.dateRange);
5181
+ }
5209
5182
  return m;
5210
5183
  }
5211
5184
  constructor(kwargs) {
@@ -5237,8 +5210,8 @@ class EventTypeSummary {
5237
5210
  if (typeof this.location !== 'undefined') {
5238
5211
  toReturn['location'] = this.location;
5239
5212
  }
5240
- if (typeof this.category !== 'undefined') {
5241
- toReturn['category'] = this.category;
5213
+ if (typeof this.calendarType !== 'undefined') {
5214
+ toReturn['calendarType'] = this.calendarType;
5242
5215
  }
5243
5216
  if (typeof this.teamName !== 'undefined') {
5244
5217
  toReturn['teamName'] = this.teamName;
@@ -5246,6 +5219,24 @@ class EventTypeSummary {
5246
5219
  if (typeof this.calendarId !== 'undefined') {
5247
5220
  toReturn['calendarId'] = this.calendarId;
5248
5221
  }
5222
+ if (typeof this.locationType !== 'undefined') {
5223
+ toReturn['locationType'] = this.locationType;
5224
+ }
5225
+ if (typeof this.meetingType !== 'undefined') {
5226
+ toReturn['meetingType'] = this.meetingType;
5227
+ }
5228
+ if (typeof this.hostUsers !== 'undefined' && this.hostUsers !== null) {
5229
+ toReturn['hostUsers'] = 'toApiJson' in this.hostUsers ? this.hostUsers.toApiJson() : this.hostUsers;
5230
+ }
5231
+ if (typeof this.dateRange !== 'undefined' && this.dateRange !== null) {
5232
+ toReturn['dateRange'] = 'toApiJson' in this.dateRange ? this.dateRange.toApiJson() : this.dateRange;
5233
+ }
5234
+ if (typeof this.locationGuidelines !== 'undefined') {
5235
+ toReturn['locationGuidelines'] = this.locationGuidelines;
5236
+ }
5237
+ if (typeof this.description !== 'undefined') {
5238
+ toReturn['description'] = this.description;
5239
+ }
5249
5240
  return toReturn;
5250
5241
  }
5251
5242
  }
@@ -8390,6 +8381,7 @@ function CalendarFromApi(calendarAPI) {
8390
8381
  hostUserIds: calendarAPI.hostUserIds || [],
8391
8382
  applicationContext: calendarAPI.applicationContext || {},
8392
8383
  encodedApplicationContext: '',
8384
+ businessName: calendarAPI.businessName || '',
8393
8385
  };
8394
8386
  }
8395
8387
  // From meetings/internal/meetingscheduler/calendar/model.go