@vendasta/meetings 1.15.0 → 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.
Files changed (37) hide show
  1. package/esm2020/lib/_internal/interfaces/groups-and-services.interface.mjs +1 -1
  2. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  3. package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +1 -1
  4. package/esm2020/lib/_internal/interfaces/meeting-host.interface.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/meeting-type.interface.mjs +1 -1
  6. package/esm2020/lib/_internal/meeting-guest.api.service.mjs +7 -2
  7. package/esm2020/lib/_internal/meeting-host.api.service.mjs +7 -2
  8. package/esm2020/lib/_internal/objects/groups-and-services.mjs +25 -1
  9. package/esm2020/lib/_internal/objects/index.mjs +3 -3
  10. package/esm2020/lib/_internal/objects/meeting-guest.mjs +67 -5
  11. package/esm2020/lib/_internal/objects/meeting-host.mjs +63 -28
  12. package/esm2020/lib/_internal/objects/meeting-type.mjs +13 -1
  13. package/esm2020/lib/guest/guest.service.mjs +18 -1
  14. package/esm2020/lib/host/host.service.mjs +17 -1
  15. package/esm2020/lib/shared/groups-and-services.mjs +13 -1
  16. package/esm2020/lib/shared/meeting-type.mjs +7 -1
  17. package/fesm2015/vendasta-meetings.mjs +227 -31
  18. package/fesm2015/vendasta-meetings.mjs.map +1 -1
  19. package/fesm2020/vendasta-meetings.mjs +225 -31
  20. package/fesm2020/vendasta-meetings.mjs.map +1 -1
  21. package/lib/_internal/interfaces/groups-and-services.interface.d.ts +6 -0
  22. package/lib/_internal/interfaces/index.d.ts +2 -2
  23. package/lib/_internal/interfaces/meeting-guest.interface.d.ts +15 -2
  24. package/lib/_internal/interfaces/meeting-host.interface.d.ts +15 -9
  25. package/lib/_internal/interfaces/meeting-type.interface.d.ts +3 -0
  26. package/lib/_internal/meeting-guest.api.service.d.ts +3 -2
  27. package/lib/_internal/meeting-host.api.service.d.ts +3 -2
  28. package/lib/_internal/objects/groups-and-services.d.ts +6 -0
  29. package/lib/_internal/objects/index.d.ts +2 -2
  30. package/lib/_internal/objects/meeting-guest.d.ts +22 -6
  31. package/lib/_internal/objects/meeting-host.d.ts +29 -20
  32. package/lib/_internal/objects/meeting-type.d.ts +3 -0
  33. package/lib/guest/guest.service.d.ts +5 -0
  34. package/lib/host/host.service.d.ts +6 -1
  35. package/lib/shared/groups-and-services.d.ts +6 -0
  36. package/lib/shared/meeting-type.d.ts +3 -0
  37. package/package.json +1 -1
@@ -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
  }
@@ -5214,6 +5280,38 @@ class ListAvailableTimeSlotsResponse {
5214
5280
  return toReturn;
5215
5281
  }
5216
5282
  }
5283
+ class ListBatchAvailableTimeSlotsForRescheduleRequest {
5284
+ static fromProto(proto) {
5285
+ let m = new ListBatchAvailableTimeSlotsForRescheduleRequest();
5286
+ m = Object.assign(m, proto);
5287
+ if (proto.timeSpan) {
5288
+ m.timeSpan = DateRange.fromProto(proto.timeSpan);
5289
+ }
5290
+ if (proto.timeZone) {
5291
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
5292
+ }
5293
+ return m;
5294
+ }
5295
+ constructor(kwargs) {
5296
+ if (!kwargs) {
5297
+ return;
5298
+ }
5299
+ Object.assign(this, kwargs);
5300
+ }
5301
+ toApiJson() {
5302
+ const toReturn = {};
5303
+ if (typeof this.id !== 'undefined') {
5304
+ toReturn['id'] = this.id;
5305
+ }
5306
+ if (typeof this.timeSpan !== 'undefined' && this.timeSpan !== null) {
5307
+ toReturn['timeSpan'] = 'toApiJson' in this.timeSpan ? this.timeSpan.toApiJson() : this.timeSpan;
5308
+ }
5309
+ if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
5310
+ toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
5311
+ }
5312
+ return toReturn;
5313
+ }
5314
+ }
5217
5315
  class ListBatchAvailableTimeSlotsRequest {
5218
5316
  static fromProto(proto) {
5219
5317
  let m = new ListBatchAvailableTimeSlotsRequest();
@@ -5551,9 +5649,9 @@ class MeetingSummary {
5551
5649
  return toReturn;
5552
5650
  }
5553
5651
  }
5554
- class BookMeetingRequestMetadataEntry {
5652
+ class BookBatchMeetingRequestMetadataEntry {
5555
5653
  static fromProto(proto) {
5556
- let m = new BookMeetingRequestMetadataEntry();
5654
+ let m = new BookBatchMeetingRequestMetadataEntry();
5557
5655
  m = Object.assign(m, proto);
5558
5656
  return m;
5559
5657
  }
@@ -5574,9 +5672,9 @@ class BookMeetingRequestMetadataEntry {
5574
5672
  return toReturn;
5575
5673
  }
5576
5674
  }
5577
- class BookBatchMeetingRequestMetadataEntry {
5675
+ class BookMeetingRequestMetadataEntry {
5578
5676
  static fromProto(proto) {
5579
- let m = new BookBatchMeetingRequestMetadataEntry();
5677
+ let m = new BookMeetingRequestMetadataEntry();
5580
5678
  m = Object.assign(m, proto);
5581
5679
  return m;
5582
5680
  }
@@ -6541,9 +6639,9 @@ class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
6541
6639
  return toReturn;
6542
6640
  }
6543
6641
  }
6544
- class BuildHostIdRequestApplicationContextPropertiesEntry {
6642
+ class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
6545
6643
  static fromProto(proto) {
6546
- let m = new BuildHostIdRequestApplicationContextPropertiesEntry();
6644
+ let m = new EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry();
6547
6645
  m = Object.assign(m, proto);
6548
6646
  return m;
6549
6647
  }
@@ -6564,9 +6662,9 @@ class BuildHostIdRequestApplicationContextPropertiesEntry {
6564
6662
  return toReturn;
6565
6663
  }
6566
6664
  }
6567
- class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
6665
+ class BuildHostIdRequestApplicationContextPropertiesEntry {
6568
6666
  static fromProto(proto) {
6569
- let m = new EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry();
6667
+ let m = new BuildHostIdRequestApplicationContextPropertiesEntry();
6570
6668
  m = Object.assign(m, proto);
6571
6669
  return m;
6572
6670
  }
@@ -7493,13 +7591,10 @@ class EventTypeSummary {
7493
7591
  return toReturn;
7494
7592
  }
7495
7593
  }
7496
- class ListBookedMeetingsRequestFilters {
7594
+ class ListAvailabilityRequestFilters {
7497
7595
  static fromProto(proto) {
7498
- let m = new ListBookedMeetingsRequestFilters();
7596
+ let m = new ListAvailabilityRequestFilters();
7499
7597
  m = Object.assign(m, proto);
7500
- if (proto.timeSpan) {
7501
- m.timeSpan = DateRange.fromProto(proto.timeSpan);
7502
- }
7503
7598
  return m;
7504
7599
  }
7505
7600
  constructor(kwargs) {
@@ -7510,25 +7605,22 @@ class ListBookedMeetingsRequestFilters {
7510
7605
  }
7511
7606
  toApiJson() {
7512
7607
  const toReturn = {};
7513
- if (typeof this.meetingTypeIds !== 'undefined') {
7514
- toReturn['meetingTypeIds'] = this.meetingTypeIds;
7515
- }
7516
7608
  if (typeof this.hostId !== 'undefined') {
7517
7609
  toReturn['hostId'] = this.hostId;
7518
7610
  }
7519
- if (typeof this.timeSpan !== 'undefined' && this.timeSpan !== null) {
7520
- toReturn['timeSpan'] = 'toApiJson' in this.timeSpan ? this.timeSpan.toApiJson() : this.timeSpan;
7521
- }
7522
- if (typeof this.userIds !== 'undefined') {
7523
- toReturn['userIds'] = this.userIds;
7611
+ if (typeof this.meetingTypeId !== 'undefined') {
7612
+ toReturn['meetingTypeId'] = this.meetingTypeId;
7524
7613
  }
7525
7614
  return toReturn;
7526
7615
  }
7527
7616
  }
7528
- class ListAvailabilityRequestFilters {
7617
+ class ListBookedMeetingsRequestFilters {
7529
7618
  static fromProto(proto) {
7530
- let m = new ListAvailabilityRequestFilters();
7619
+ let m = new ListBookedMeetingsRequestFilters();
7531
7620
  m = Object.assign(m, proto);
7621
+ if (proto.timeSpan) {
7622
+ m.timeSpan = DateRange.fromProto(proto.timeSpan);
7623
+ }
7532
7624
  return m;
7533
7625
  }
7534
7626
  constructor(kwargs) {
@@ -7539,11 +7631,17 @@ class ListAvailabilityRequestFilters {
7539
7631
  }
7540
7632
  toApiJson() {
7541
7633
  const toReturn = {};
7634
+ if (typeof this.meetingTypeIds !== 'undefined') {
7635
+ toReturn['meetingTypeIds'] = this.meetingTypeIds;
7636
+ }
7542
7637
  if (typeof this.hostId !== 'undefined') {
7543
7638
  toReturn['hostId'] = this.hostId;
7544
7639
  }
7545
- if (typeof this.meetingTypeId !== 'undefined') {
7546
- toReturn['meetingTypeId'] = this.meetingTypeId;
7640
+ if (typeof this.timeSpan !== 'undefined' && this.timeSpan !== null) {
7641
+ toReturn['timeSpan'] = 'toApiJson' in this.timeSpan ? this.timeSpan.toApiJson() : this.timeSpan;
7642
+ }
7643
+ if (typeof this.userIds !== 'undefined') {
7644
+ toReturn['userIds'] = this.userIds;
7547
7645
  }
7548
7646
  return toReturn;
7549
7647
  }
@@ -8361,6 +8459,38 @@ class HostGetMeetingTypeResponse {
8361
8459
  return toReturn;
8362
8460
  }
8363
8461
  }
8462
+ class HostListBatchAvailableTimeSlotsForRescheduleRequest {
8463
+ static fromProto(proto) {
8464
+ let m = new HostListBatchAvailableTimeSlotsForRescheduleRequest();
8465
+ m = Object.assign(m, proto);
8466
+ if (proto.timeSpan) {
8467
+ m.timeSpan = DateRange.fromProto(proto.timeSpan);
8468
+ }
8469
+ if (proto.timeZone) {
8470
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
8471
+ }
8472
+ return m;
8473
+ }
8474
+ constructor(kwargs) {
8475
+ if (!kwargs) {
8476
+ return;
8477
+ }
8478
+ Object.assign(this, kwargs);
8479
+ }
8480
+ toApiJson() {
8481
+ const toReturn = {};
8482
+ if (typeof this.id !== 'undefined') {
8483
+ toReturn['id'] = this.id;
8484
+ }
8485
+ if (typeof this.timeSpan !== 'undefined' && this.timeSpan !== null) {
8486
+ toReturn['timeSpan'] = 'toApiJson' in this.timeSpan ? this.timeSpan.toApiJson() : this.timeSpan;
8487
+ }
8488
+ if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
8489
+ toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
8490
+ }
8491
+ return toReturn;
8492
+ }
8493
+ }
8364
8494
  class HostListBatchAvailableTimeSlotsRequest {
8365
8495
  static fromProto(proto) {
8366
8496
  let m = new HostListBatchAvailableTimeSlotsRequest();
@@ -8396,6 +8526,9 @@ class HostListBatchAvailableTimeSlotsRequest {
8396
8526
  if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
8397
8527
  toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
8398
8528
  }
8529
+ if (typeof this.namespace !== 'undefined') {
8530
+ toReturn['namespace'] = this.namespace;
8531
+ }
8399
8532
  return toReturn;
8400
8533
  }
8401
8534
  }
@@ -9363,9 +9496,9 @@ class MeetingTypeList {
9363
9496
  return toReturn;
9364
9497
  }
9365
9498
  }
9366
- class HostBookBatchMeetingRequestMetadataEntry {
9499
+ class UpdateMeetingMetadataRequestMetadataEntry {
9367
9500
  static fromProto(proto) {
9368
- let m = new HostBookBatchMeetingRequestMetadataEntry();
9501
+ let m = new UpdateMeetingMetadataRequestMetadataEntry();
9369
9502
  m = Object.assign(m, proto);
9370
9503
  return m;
9371
9504
  }
@@ -9386,9 +9519,9 @@ class HostBookBatchMeetingRequestMetadataEntry {
9386
9519
  return toReturn;
9387
9520
  }
9388
9521
  }
9389
- class MeetingMetadataEntry {
9522
+ class HostBookBatchMeetingRequestMetadataEntry {
9390
9523
  static fromProto(proto) {
9391
- let m = new MeetingMetadataEntry();
9524
+ let m = new HostBookBatchMeetingRequestMetadataEntry();
9392
9525
  m = Object.assign(m, proto);
9393
9526
  return m;
9394
9527
  }
@@ -9409,9 +9542,9 @@ class MeetingMetadataEntry {
9409
9542
  return toReturn;
9410
9543
  }
9411
9544
  }
9412
- class UpdateMeetingMetadataRequestMetadataEntry {
9545
+ class MeetingMetadataEntry {
9413
9546
  static fromProto(proto) {
9414
- let m = new UpdateMeetingMetadataRequestMetadataEntry();
9547
+ let m = new MeetingMetadataEntry();
9415
9548
  m = Object.assign(m, proto);
9416
9549
  return m;
9417
9550
  }
@@ -10519,6 +10652,9 @@ function MeetingTypeFromApi(req) {
10519
10652
  isEmailRequired: req.meetingTypeApi.isEmailRequired || false,
10520
10653
  isPhoneNumberRequired: req.meetingTypeApi.isPhoneNumberRequired || false,
10521
10654
  notificationType: req.meetingTypeApi.notificationType || NotificationType.EMAIL,
10655
+ redirectEnabled: req.meetingTypeApi.redirectEnabled || false,
10656
+ redirectUrl: req.meetingTypeApi.redirectUrl || "",
10657
+ redirectDelaySeconds: req.meetingTypeApi.redirectDelaySeconds || 0,
10522
10658
  };
10523
10659
  }
10524
10660
  function MeetingTypeToApi(req) {
@@ -10559,6 +10695,9 @@ function MeetingTypeToApi(req) {
10559
10695
  isEmailRequired: m.isEmailRequired || false,
10560
10696
  isPhoneNumberRequired: m.isPhoneNumberRequired || false,
10561
10697
  notificationType: m.notificationType || NotificationType.EMAIL,
10698
+ redirectEnabled: m.redirectEnabled || false,
10699
+ redirectUrl: m.redirectUrl || undefined,
10700
+ redirectDelaySeconds: m.redirectDelaySeconds || 0,
10562
10701
  };
10563
10702
  }
10564
10703
 
@@ -10857,6 +10996,11 @@ class MeetingGuestApiService {
10857
10996
  return this.http.post(this._host + "/meetings.v1.MeetingGuest/ListBatchAvailableTimeSlots", request.toApiJson(), this.apiOptions())
10858
10997
  .pipe(map(resp => ListBatchAvailableTimeSlotsResponse.fromProto(resp)));
10859
10998
  }
10999
+ listBatchAvailableTimeSlotsForReschedule(r) {
11000
+ const request = (r.toApiJson) ? r : new ListBatchAvailableTimeSlotsForRescheduleRequest(r);
11001
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/ListBatchAvailableTimeSlotsForReschedule", request.toApiJson(), this.apiOptions())
11002
+ .pipe(map(resp => ListBatchAvailableTimeSlotsResponse.fromProto(resp)));
11003
+ }
10860
11004
  bookBatchMeeting(r) {
10861
11005
  const request = (r.toApiJson) ? r : new BookBatchMeetingRequest(r);
10862
11006
  return this.http.post(this._host + "/meetings.v1.MeetingGuest/BookBatchMeeting", request.toApiJson(), this.apiOptions())
@@ -11053,6 +11197,11 @@ class MeetingHostApiService {
11053
11197
  return this.http.post(this._host + "/meetings.v1.MeetingHost/HostListBatchAvailableTimeSlots", request.toApiJson(), this.apiOptions())
11054
11198
  .pipe(map(resp => HostListBatchAvailableTimeSlotsResponse.fromProto(resp)));
11055
11199
  }
11200
+ hostListBatchAvailableTimeSlotsForReschedule(r) {
11201
+ const request = (r.toApiJson) ? r : new HostListBatchAvailableTimeSlotsForRescheduleRequest(r);
11202
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/HostListBatchAvailableTimeSlotsForReschedule", request.toApiJson(), this.apiOptions())
11203
+ .pipe(map(resp => HostListBatchAvailableTimeSlotsResponse.fromProto(resp)));
11204
+ }
11056
11205
  getMeetingType(r) {
11057
11206
  const request = (r.toApiJson) ? r : new HostGetMeetingTypeRequest(r);
11058
11207
  return this.http.post(this._host + "/meetings.v1.MeetingHost/GetMeetingType", request.toApiJson(), this.apiOptions())
@@ -11347,6 +11496,9 @@ function GroupTypeToAPi(req) {
11347
11496
  associations: m.associations ? m.associations.map(AssociationTypeToApi) : undefined,
11348
11497
  hexColor: m.hexColor || undefined,
11349
11498
  isBatchBookingEnabled: m.isBatchBookingEnabled || undefined,
11499
+ redirectEnabled: m.redirectEnabled || false,
11500
+ redirectUrl: m.redirectUrl || undefined,
11501
+ redirectDelaySeconds: m.redirectDelaySeconds || 0,
11350
11502
  };
11351
11503
  }
11352
11504
  function ServiceTypeToApi(req) {
@@ -11363,6 +11515,9 @@ function ServiceTypeToApi(req) {
11363
11515
  associations: m.associations ? m.associations.map(AssociationTypeToApi) : undefined,
11364
11516
  hexColor: m.hexColor || undefined,
11365
11517
  isBatchBookingEnabled: m.isBatchBookingEnabled || undefined,
11518
+ redirectEnabled: m.redirectEnabled || false,
11519
+ redirectUrl: m.redirectUrl || undefined,
11520
+ redirectDelaySeconds: m.redirectDelaySeconds || 0,
11366
11521
  };
11367
11522
  }
11368
11523
  function AssociationTypeToApi(association) {
@@ -11410,6 +11565,9 @@ function GroupFromApi(req) {
11410
11565
  hexColor: req.groupApi.hexColor || '',
11411
11566
  bookingUrl: bookingUrl,
11412
11567
  isBatchBookingEnabled: req.groupApi.isBatchBookingEnabled || false,
11568
+ redirectEnabled: req.groupApi.redirectEnabled || false,
11569
+ redirectUrl: req.groupApi.redirectUrl || "",
11570
+ redirectDelaySeconds: req.groupApi.redirectDelaySeconds || 0,
11413
11571
  };
11414
11572
  }
11415
11573
  function getBookingURL(environment, slug, calendarId) {
@@ -11438,6 +11596,9 @@ function ServiceFromApi(req) {
11438
11596
  hexColor: req.serviceApi.hexColor || '',
11439
11597
  bookingUrl: bookingUrl,
11440
11598
  isBatchBookingEnabled: req.serviceApi.isBatchBookingEnabled || false,
11599
+ redirectEnabled: req.serviceApi.redirectEnabled || false,
11600
+ redirectUrl: req.serviceApi.redirectUrl || "",
11601
+ redirectDelaySeconds: req.serviceApi.redirectDelaySeconds || 0,
11441
11602
  };
11442
11603
  }
11443
11604
 
@@ -11594,6 +11755,24 @@ class GuestService {
11594
11755
  return [];
11595
11756
  }));
11596
11757
  }
11758
+ // listBatchAvailableTimeSlotsForReschedule returns valid chain start times for rescheduling an
11759
+ // existing meeting or booking group (id is a meeting_id or BG- group id). Config is resolved from
11760
+ // the booked record(s) rather than the current event-type settings.
11761
+ listBatchAvailableTimeSlotsForReschedule(req) {
11762
+ return this.guestAPIService.listBatchAvailableTimeSlotsForReschedule(req).pipe(map((resp) => {
11763
+ var _a, _b;
11764
+ if ((_a = resp.timeSlots) === null || _a === void 0 ? void 0 : _a.length) {
11765
+ return resp.timeSlots.map((ts) => TimeSpanFromApi(ts));
11766
+ }
11767
+ if ((_b = resp.isoTimeSlots) === null || _b === void 0 ? void 0 : _b.length) {
11768
+ return resp.isoTimeSlots.map((iso) => ({
11769
+ start: new Date(iso.start),
11770
+ end: new Date(iso.end),
11771
+ }));
11772
+ }
11773
+ return [];
11774
+ }));
11775
+ }
11597
11776
  bookBatchMeeting(req) {
11598
11777
  return this.guestAPIService.bookBatchMeeting(Object.assign(Object.assign({}, req), { formAnswers: answersToAPI(req.formAnswers) }));
11599
11778
  }
@@ -11982,6 +12161,23 @@ class HostService {
11982
12161
  return [];
11983
12162
  }));
11984
12163
  }
12164
+ // hostListBatchAvailableTimeSlotsForReschedule returns valid chain start times for rescheduling
12165
+ // an existing meeting or booking group (id is a meeting_id or BG- group id). Config is resolved
12166
+ // from the booked record(s) rather than the current event-type settings.
12167
+ hostListBatchAvailableTimeSlotsForReschedule(req) {
12168
+ return this.hostAPIService
12169
+ .hostListBatchAvailableTimeSlotsForReschedule(req)
12170
+ .pipe(map((resp) => {
12171
+ var _a;
12172
+ if ((_a = resp.isoTimeSlots) === null || _a === void 0 ? void 0 : _a.length) {
12173
+ return resp.isoTimeSlots.map((iso) => ({
12174
+ start: new Date(iso.start),
12175
+ end: new Date(iso.end),
12176
+ }));
12177
+ }
12178
+ return [];
12179
+ }));
12180
+ }
11985
12181
  // createDefaultMeetingTypes will create what Meeting Scheduler deems to be the default meeting types.
11986
12182
  // If the calendar already has meeting types, this is guaranteed to be a no-op.
11987
12183
  createDefaultMeetingTypes(req) {