@vendasta/meetings 1.15.1 → 1.15.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.
@@ -2343,6 +2343,9 @@ class MeetingType {
2343
2343
  if (proto.notificationType) {
2344
2344
  m.notificationType = enumStringToValue$9(NotificationType, proto.notificationType);
2345
2345
  }
2346
+ if (proto.redirectDelaySeconds) {
2347
+ m.redirectDelaySeconds = parseInt(proto.redirectDelaySeconds, 10);
2348
+ }
2346
2349
  return m;
2347
2350
  }
2348
2351
  constructor(kwargs) {
@@ -2458,6 +2461,15 @@ class MeetingType {
2458
2461
  if (typeof this.notificationType !== 'undefined') {
2459
2462
  toReturn['notificationType'] = this.notificationType;
2460
2463
  }
2464
+ if (typeof this.redirectEnabled !== 'undefined') {
2465
+ toReturn['redirectEnabled'] = this.redirectEnabled;
2466
+ }
2467
+ if (typeof this.redirectUrl !== 'undefined') {
2468
+ toReturn['redirectUrl'] = this.redirectUrl;
2469
+ }
2470
+ if (typeof this.redirectDelaySeconds !== 'undefined') {
2471
+ toReturn['redirectDelaySeconds'] = this.redirectDelaySeconds;
2472
+ }
2461
2473
  return toReturn;
2462
2474
  }
2463
2475
  }
@@ -2595,6 +2607,9 @@ class Group {
2595
2607
  if (proto.associations) {
2596
2608
  m.associations = proto.associations.map(EventGroupAndServiceAssociations.fromProto);
2597
2609
  }
2610
+ if (proto.redirectDelaySeconds) {
2611
+ m.redirectDelaySeconds = parseInt(proto.redirectDelaySeconds, 10);
2612
+ }
2598
2613
  return m;
2599
2614
  }
2600
2615
  constructor(kwargs) {
@@ -2632,6 +2647,15 @@ class Group {
2632
2647
  if (typeof this.isBatchBookingEnabled !== 'undefined') {
2633
2648
  toReturn['isBatchBookingEnabled'] = this.isBatchBookingEnabled;
2634
2649
  }
2650
+ if (typeof this.redirectEnabled !== 'undefined') {
2651
+ toReturn['redirectEnabled'] = this.redirectEnabled;
2652
+ }
2653
+ if (typeof this.redirectUrl !== 'undefined') {
2654
+ toReturn['redirectUrl'] = this.redirectUrl;
2655
+ }
2656
+ if (typeof this.redirectDelaySeconds !== 'undefined') {
2657
+ toReturn['redirectDelaySeconds'] = this.redirectDelaySeconds;
2658
+ }
2635
2659
  return toReturn;
2636
2660
  }
2637
2661
  }
@@ -2642,6 +2666,9 @@ class Service {
2642
2666
  if (proto.associations) {
2643
2667
  m.associations = proto.associations.map(EventGroupAndServiceAssociations.fromProto);
2644
2668
  }
2669
+ if (proto.redirectDelaySeconds) {
2670
+ m.redirectDelaySeconds = parseInt(proto.redirectDelaySeconds, 10);
2671
+ }
2645
2672
  return m;
2646
2673
  }
2647
2674
  constructor(kwargs) {
@@ -2679,6 +2706,15 @@ class Service {
2679
2706
  if (typeof this.isBatchBookingEnabled !== 'undefined') {
2680
2707
  toReturn['isBatchBookingEnabled'] = this.isBatchBookingEnabled;
2681
2708
  }
2709
+ if (typeof this.redirectEnabled !== 'undefined') {
2710
+ toReturn['redirectEnabled'] = this.redirectEnabled;
2711
+ }
2712
+ if (typeof this.redirectUrl !== 'undefined') {
2713
+ toReturn['redirectUrl'] = this.redirectUrl;
2714
+ }
2715
+ if (typeof this.redirectDelaySeconds !== 'undefined') {
2716
+ toReturn['redirectDelaySeconds'] = this.redirectDelaySeconds;
2717
+ }
2682
2718
  return toReturn;
2683
2719
  }
2684
2720
  }
@@ -4285,6 +4321,9 @@ class GetGroupV2Response {
4285
4321
  if (proto.eventTypes) {
4286
4322
  m.eventTypes = proto.eventTypes.map(ServiceEventType.fromProto);
4287
4323
  }
4324
+ if (proto.redirectDelaySeconds) {
4325
+ m.redirectDelaySeconds = parseInt(proto.redirectDelaySeconds, 10);
4326
+ }
4288
4327
  return m;
4289
4328
  }
4290
4329
  constructor(kwargs) {
@@ -4316,6 +4355,15 @@ class GetGroupV2Response {
4316
4355
  if (typeof this.isBatchBookingEnabled !== 'undefined') {
4317
4356
  toReturn['isBatchBookingEnabled'] = this.isBatchBookingEnabled;
4318
4357
  }
4358
+ if (typeof this.redirectEnabled !== 'undefined') {
4359
+ toReturn['redirectEnabled'] = this.redirectEnabled;
4360
+ }
4361
+ if (typeof this.redirectUrl !== 'undefined') {
4362
+ toReturn['redirectUrl'] = this.redirectUrl;
4363
+ }
4364
+ if (typeof this.redirectDelaySeconds !== 'undefined') {
4365
+ toReturn['redirectDelaySeconds'] = this.redirectDelaySeconds;
4366
+ }
4319
4367
  return toReturn;
4320
4368
  }
4321
4369
  }
@@ -4563,6 +4611,9 @@ class GetServiceV2Response {
4563
4611
  if (proto.eventTypes) {
4564
4612
  m.eventTypes = proto.eventTypes.map(ServiceEventType.fromProto);
4565
4613
  }
4614
+ if (proto.redirectDelaySeconds) {
4615
+ m.redirectDelaySeconds = parseInt(proto.redirectDelaySeconds, 10);
4616
+ }
4566
4617
  return m;
4567
4618
  }
4568
4619
  constructor(kwargs) {
@@ -4597,6 +4648,15 @@ class GetServiceV2Response {
4597
4648
  if (typeof this.isBatchBookingEnabled !== 'undefined') {
4598
4649
  toReturn['isBatchBookingEnabled'] = this.isBatchBookingEnabled;
4599
4650
  }
4651
+ if (typeof this.redirectEnabled !== 'undefined') {
4652
+ toReturn['redirectEnabled'] = this.redirectEnabled;
4653
+ }
4654
+ if (typeof this.redirectUrl !== 'undefined') {
4655
+ toReturn['redirectUrl'] = this.redirectUrl;
4656
+ }
4657
+ if (typeof this.redirectDelaySeconds !== 'undefined') {
4658
+ toReturn['redirectDelaySeconds'] = this.redirectDelaySeconds;
4659
+ }
4600
4660
  return toReturn;
4601
4661
  }
4602
4662
  }
@@ -4996,6 +5056,12 @@ class GuestGetBookedMeetingResponseV2 {
4996
5056
  if (typeof this.isLocationEditable !== 'undefined') {
4997
5057
  toReturn['isLocationEditable'] = this.isLocationEditable;
4998
5058
  }
5059
+ if (typeof this.redirectUrl !== 'undefined') {
5060
+ toReturn['redirectUrl'] = this.redirectUrl;
5061
+ }
5062
+ if (typeof this.redirectDelaySeconds !== 'undefined') {
5063
+ toReturn['redirectDelaySeconds'] = this.redirectDelaySeconds;
5064
+ }
4999
5065
  return toReturn;
5000
5066
  }
5001
5067
  }
@@ -11136,6 +11202,9 @@ function MeetingTypeFromApi(req) {
11136
11202
  isEmailRequired: req.meetingTypeApi.isEmailRequired || false,
11137
11203
  isPhoneNumberRequired: req.meetingTypeApi.isPhoneNumberRequired || false,
11138
11204
  notificationType: req.meetingTypeApi.notificationType || NotificationType.EMAIL,
11205
+ redirectEnabled: req.meetingTypeApi.redirectEnabled || false,
11206
+ redirectUrl: req.meetingTypeApi.redirectUrl || "",
11207
+ redirectDelaySeconds: req.meetingTypeApi.redirectDelaySeconds || 0,
11139
11208
  };
11140
11209
  }
11141
11210
  function MeetingTypeToApi(req) {
@@ -11176,6 +11245,9 @@ function MeetingTypeToApi(req) {
11176
11245
  isEmailRequired: m.isEmailRequired || false,
11177
11246
  isPhoneNumberRequired: m.isPhoneNumberRequired || false,
11178
11247
  notificationType: m.notificationType || NotificationType.EMAIL,
11248
+ redirectEnabled: m.redirectEnabled || false,
11249
+ redirectUrl: m.redirectUrl || undefined,
11250
+ redirectDelaySeconds: m.redirectDelaySeconds || 0,
11179
11251
  };
11180
11252
  }
11181
11253
 
@@ -11432,6 +11504,9 @@ function GroupTypeToAPi(req) {
11432
11504
  associations: m.associations ? m.associations.map(AssociationTypeToApi) : undefined,
11433
11505
  hexColor: m.hexColor || undefined,
11434
11506
  isBatchBookingEnabled: m.isBatchBookingEnabled || undefined,
11507
+ redirectEnabled: m.redirectEnabled || false,
11508
+ redirectUrl: m.redirectUrl || undefined,
11509
+ redirectDelaySeconds: m.redirectDelaySeconds || 0,
11435
11510
  };
11436
11511
  }
11437
11512
  function ServiceTypeToApi(req) {
@@ -11448,6 +11523,9 @@ function ServiceTypeToApi(req) {
11448
11523
  associations: m.associations ? m.associations.map(AssociationTypeToApi) : undefined,
11449
11524
  hexColor: m.hexColor || undefined,
11450
11525
  isBatchBookingEnabled: m.isBatchBookingEnabled || undefined,
11526
+ redirectEnabled: m.redirectEnabled || false,
11527
+ redirectUrl: m.redirectUrl || undefined,
11528
+ redirectDelaySeconds: m.redirectDelaySeconds || 0,
11451
11529
  };
11452
11530
  }
11453
11531
  function AssociationTypeToApi(association) {
@@ -11494,6 +11572,9 @@ function GroupFromApi(req) {
11494
11572
  hexColor: req.groupApi.hexColor || '',
11495
11573
  bookingUrl: bookingUrl,
11496
11574
  isBatchBookingEnabled: req.groupApi.isBatchBookingEnabled || false,
11575
+ redirectEnabled: req.groupApi.redirectEnabled || false,
11576
+ redirectUrl: req.groupApi.redirectUrl || "",
11577
+ redirectDelaySeconds: req.groupApi.redirectDelaySeconds || 0,
11497
11578
  };
11498
11579
  }
11499
11580
  function getBookingURL(environment, slug, calendarId) {
@@ -11521,6 +11602,9 @@ function ServiceFromApi(req) {
11521
11602
  hexColor: req.serviceApi.hexColor || '',
11522
11603
  bookingUrl: bookingUrl,
11523
11604
  isBatchBookingEnabled: req.serviceApi.isBatchBookingEnabled || false,
11605
+ redirectEnabled: req.serviceApi.redirectEnabled || false,
11606
+ redirectUrl: req.serviceApi.redirectUrl || "",
11607
+ redirectDelaySeconds: req.serviceApi.redirectDelaySeconds || 0,
11524
11608
  };
11525
11609
  }
11526
11610