@vendasta/meetings 1.4.9 → 1.5.1

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.
@@ -149,6 +149,12 @@ var DateRangeType;
149
149
  DateRangeType[DateRangeType["RELATIVE"] = 0] = "RELATIVE";
150
150
  DateRangeType[DateRangeType["CUSTOM"] = 1] = "CUSTOM";
151
151
  })(DateRangeType || (DateRangeType = {}));
152
+ var MeetingLocation;
153
+ (function (MeetingLocation) {
154
+ MeetingLocation[MeetingLocation["VIDEO_MEETING"] = 0] = "VIDEO_MEETING";
155
+ MeetingLocation[MeetingLocation["IN_PERSON_MEETING"] = 1] = "IN_PERSON_MEETING";
156
+ MeetingLocation[MeetingLocation["HYBRID_MEETING"] = 2] = "HYBRID_MEETING";
157
+ })(MeetingLocation || (MeetingLocation = {}));
152
158
  var MeetingLocationType;
153
159
  (function (MeetingLocationType) {
154
160
  MeetingLocationType[MeetingLocationType["VIDEO"] = 0] = "VIDEO";
@@ -3023,6 +3029,26 @@ class GuestGetBookedMeetingRequest {
3023
3029
  return toReturn;
3024
3030
  }
3025
3031
  }
3032
+ class GuestGetBookedMeetingRequestV2 {
3033
+ static fromProto(proto) {
3034
+ let m = new GuestGetBookedMeetingRequestV2();
3035
+ m = Object.assign(m, proto);
3036
+ return m;
3037
+ }
3038
+ constructor(kwargs) {
3039
+ if (!kwargs) {
3040
+ return;
3041
+ }
3042
+ Object.assign(this, kwargs);
3043
+ }
3044
+ toApiJson() {
3045
+ const toReturn = {};
3046
+ if (typeof this.meetingId !== 'undefined') {
3047
+ toReturn['meetingId'] = this.meetingId;
3048
+ }
3049
+ return toReturn;
3050
+ }
3051
+ }
3026
3052
  class GuestGetBookedMeetingResponse {
3027
3053
  static fromProto(proto) {
3028
3054
  let m = new GuestGetBookedMeetingResponse();
@@ -3085,6 +3111,80 @@ class GuestGetBookedMeetingResponse {
3085
3111
  return toReturn;
3086
3112
  }
3087
3113
  }
3114
+ class GuestGetBookedMeetingResponseV2 {
3115
+ static fromProto(proto) {
3116
+ let m = new GuestGetBookedMeetingResponseV2();
3117
+ m = Object.assign(m, proto);
3118
+ if (proto.timeZone) {
3119
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
3120
+ }
3121
+ if (proto.startTime) {
3122
+ m.startTime = new Date(proto.startTime);
3123
+ }
3124
+ if (proto.endTime) {
3125
+ m.endTime = new Date(proto.endTime);
3126
+ }
3127
+ if (proto.meetingSource) {
3128
+ m.meetingSource = enumStringToValue$6(MeetingSource, proto.meetingSource);
3129
+ }
3130
+ if (proto.meetingLocationType) {
3131
+ m.meetingLocationType = enumStringToValue$6(MeetingLocation, proto.meetingLocationType);
3132
+ }
3133
+ return m;
3134
+ }
3135
+ constructor(kwargs) {
3136
+ if (!kwargs) {
3137
+ return;
3138
+ }
3139
+ Object.assign(this, kwargs);
3140
+ }
3141
+ toApiJson() {
3142
+ const toReturn = {};
3143
+ if (typeof this.title !== 'undefined') {
3144
+ toReturn['title'] = this.title;
3145
+ }
3146
+ if (typeof this.hostUserNames !== 'undefined') {
3147
+ toReturn['hostUserNames'] = this.hostUserNames;
3148
+ }
3149
+ if (typeof this.startTime !== 'undefined' && this.startTime !== null) {
3150
+ toReturn['startTime'] = 'toApiJson' in this.startTime ? this.startTime.toApiJson() : this.startTime;
3151
+ }
3152
+ if (typeof this.endTime !== 'undefined' && this.endTime !== null) {
3153
+ toReturn['endTime'] = 'toApiJson' in this.endTime ? this.endTime.toApiJson() : this.endTime;
3154
+ }
3155
+ if (typeof this.location !== 'undefined') {
3156
+ toReturn['location'] = this.location;
3157
+ }
3158
+ if (typeof this.meetingSourceLink !== 'undefined') {
3159
+ toReturn['meetingSourceLink'] = this.meetingSourceLink;
3160
+ }
3161
+ if (typeof this.meetingSource !== 'undefined') {
3162
+ toReturn['meetingSource'] = this.meetingSource;
3163
+ }
3164
+ if (typeof this.meetingLocationType !== 'undefined') {
3165
+ toReturn['meetingLocationType'] = this.meetingLocationType;
3166
+ }
3167
+ if (typeof this.googleCalendarLink !== 'undefined') {
3168
+ toReturn['googleCalendarLink'] = this.googleCalendarLink;
3169
+ }
3170
+ if (typeof this.outlookCalendarLink !== 'undefined') {
3171
+ toReturn['outlookCalendarLink'] = this.outlookCalendarLink;
3172
+ }
3173
+ if (typeof this.rescheduleLink !== 'undefined') {
3174
+ toReturn['rescheduleLink'] = this.rescheduleLink;
3175
+ }
3176
+ if (typeof this.cancelLink !== 'undefined') {
3177
+ toReturn['cancelLink'] = this.cancelLink;
3178
+ }
3179
+ if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
3180
+ toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
3181
+ }
3182
+ if (typeof this.businessLogo !== 'undefined') {
3183
+ toReturn['businessLogo'] = this.businessLogo;
3184
+ }
3185
+ return toReturn;
3186
+ }
3187
+ }
3088
3188
  class GuestIsHostConfiguredRequest {
3089
3189
  static fromProto(proto) {
3090
3190
  let m = new GuestIsHostConfiguredRequest();
@@ -3601,9 +3701,9 @@ function enumStringToValue$3(enumRef, value) {
3601
3701
  }
3602
3702
  return enumRef[value];
3603
3703
  }
3604
- class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
3704
+ class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
3605
3705
  static fromProto(proto) {
3606
- let m = new IsCalendarConfiguredRequestApplicationContextPropertiesEntry();
3706
+ let m = new EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry();
3607
3707
  m = Object.assign(m, proto);
3608
3708
  return m;
3609
3709
  }
@@ -3624,9 +3724,9 @@ class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
3624
3724
  return toReturn;
3625
3725
  }
3626
3726
  }
3627
- class BuildHostIdRequestApplicationContextPropertiesEntry {
3727
+ class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
3628
3728
  static fromProto(proto) {
3629
- let m = new BuildHostIdRequestApplicationContextPropertiesEntry();
3729
+ let m = new IsCalendarConfiguredRequestApplicationContextPropertiesEntry();
3630
3730
  m = Object.assign(m, proto);
3631
3731
  return m;
3632
3732
  }
@@ -3647,9 +3747,9 @@ class BuildHostIdRequestApplicationContextPropertiesEntry {
3647
3747
  return toReturn;
3648
3748
  }
3649
3749
  }
3650
- class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
3750
+ class BuildHostIdRequestApplicationContextPropertiesEntry {
3651
3751
  static fromProto(proto) {
3652
- let m = new EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry();
3752
+ let m = new BuildHostIdRequestApplicationContextPropertiesEntry();
3653
3753
  m = Object.assign(m, proto);
3654
3754
  return m;
3655
3755
  }
@@ -5705,9 +5805,9 @@ class MeetingTypeList {
5705
5805
  return toReturn;
5706
5806
  }
5707
5807
  }
5708
- class UpdateMeetingMetadataRequestMetadataEntry {
5808
+ class MeetingMetadataEntry {
5709
5809
  static fromProto(proto) {
5710
- let m = new UpdateMeetingMetadataRequestMetadataEntry();
5810
+ let m = new MeetingMetadataEntry();
5711
5811
  m = Object.assign(m, proto);
5712
5812
  return m;
5713
5813
  }
@@ -5728,9 +5828,9 @@ class UpdateMeetingMetadataRequestMetadataEntry {
5728
5828
  return toReturn;
5729
5829
  }
5730
5830
  }
5731
- class MeetingMetadataEntry {
5831
+ class UpdateMeetingMetadataRequestMetadataEntry {
5732
5832
  static fromProto(proto) {
5733
- let m = new MeetingMetadataEntry();
5833
+ let m = new UpdateMeetingMetadataRequestMetadataEntry();
5734
5834
  m = Object.assign(m, proto);
5735
5835
  return m;
5736
5836
  }
@@ -6777,6 +6877,11 @@ class MeetingGuestApiService {
6777
6877
  return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetGuestBookedMeeting", request.toApiJson(), this.apiOptions())
6778
6878
  .pipe(map(resp => GuestGetBookedMeetingResponse.fromProto(resp)));
6779
6879
  }
6880
+ getGuestBookedMeetingV2(r) {
6881
+ const request = (r.toApiJson) ? r : new GuestGetBookedMeetingRequestV2(r);
6882
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetGuestBookedMeetingV2", request.toApiJson(), this.apiOptions())
6883
+ .pipe(map(resp => GuestGetBookedMeetingResponseV2.fromProto(resp)));
6884
+ }
6780
6885
  getCalendar(r) {
6781
6886
  const request = (r.toApiJson) ? r : new GetCalendarRequest(r);
6782
6887
  return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetCalendar", request.toApiJson(), this.apiOptions())
@@ -7697,6 +7802,9 @@ class GuestService {
7697
7802
  calendarId: resp.calendarId,
7698
7803
  })));
7699
7804
  }
7805
+ getGuestBookedMeetingV2(req) {
7806
+ return this.guestAPIService.getGuestBookedMeetingV2(req);
7807
+ }
7700
7808
  isHostConfigured(req) {
7701
7809
  return this.guestAPIService.isHostConfigured(req).pipe(map((resp) => resp.isConfigured));
7702
7810
  }
@@ -8274,5 +8382,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
8274
8382
  * Generated bundle index. Do not edit.
8275
8383
  */
8276
8384
 
8277
- export { CalendarSource, CalendarType, Contact, CreateCalendarRequest, CreateCalendarResponse, DateRangeType, DayOfWeek, FormFieldType, GuestService, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, MeetingLocationType, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceOrigin, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, NotificationType, OnBoardingState, PagedResponse, RegistrationCutOffUnit, RelativeTimeUnit, TeamEventMeetingType, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
8385
+ export { BookingSource, CalendarSource, CalendarType, Contact, CreateCalendarRequest, CreateCalendarResponse, DateRangeType, DayOfWeek, FormFieldType, GuestService, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, MeetingLocation, MeetingLocationType, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceOrigin, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, NotificationType, OnBoardingState, PagedResponse, RegistrationCutOffUnit, RelativeTimeUnit, TeamEventMeetingType, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
8278
8386
  //# sourceMappingURL=vendasta-meetings.mjs.map