@vendasta/meetings 1.15.4 → 1.15.6

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 (52) hide show
  1. package/esm2020/lib/_internal/enums/index.mjs +2 -2
  2. package/esm2020/lib/_internal/enums/meeting-type.enum.mjs +7 -1
  3. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  4. package/esm2020/lib/_internal/interfaces/meeting-external.interface.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +1 -1
  6. package/esm2020/lib/_internal/interfaces/meeting-host.interface.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/meeting-type.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/shared.interface.mjs +1 -1
  9. package/esm2020/lib/_internal/objects/annotations.mjs +1 -1
  10. package/esm2020/lib/_internal/objects/date-range.mjs +1 -1
  11. package/esm2020/lib/_internal/objects/field-mask.mjs +1 -1
  12. package/esm2020/lib/_internal/objects/google-meet.mjs +1 -1
  13. package/esm2020/lib/_internal/objects/groups-and-services.mjs +1 -1
  14. package/esm2020/lib/_internal/objects/index.mjs +3 -3
  15. package/esm2020/lib/_internal/objects/meeting-external.mjs +2 -2
  16. package/esm2020/lib/_internal/objects/meeting-guest.mjs +2 -2
  17. package/esm2020/lib/_internal/objects/meeting-host.mjs +9 -3
  18. package/esm2020/lib/_internal/objects/meeting-source.mjs +1 -1
  19. package/esm2020/lib/_internal/objects/meeting-type.mjs +57 -1
  20. package/esm2020/lib/_internal/objects/openapiv2.mjs +1 -1
  21. package/esm2020/lib/_internal/objects/shared.mjs +1 -1
  22. package/esm2020/lib/_internal/objects/zoom.mjs +1 -1
  23. package/esm2020/lib/index.mjs +2 -2
  24. package/esm2020/lib/shared/meeting-type.mjs +7 -1
  25. package/fesm2015/vendasta-meetings.mjs +75 -1
  26. package/fesm2015/vendasta-meetings.mjs.map +1 -1
  27. package/fesm2020/vendasta-meetings.mjs +75 -1
  28. package/fesm2020/vendasta-meetings.mjs.map +1 -1
  29. package/lib/_internal/enums/index.d.ts +1 -1
  30. package/lib/_internal/enums/meeting-type.enum.d.ts +5 -0
  31. package/lib/_internal/interfaces/index.d.ts +2 -2
  32. package/lib/_internal/interfaces/meeting-external.interface.d.ts +1 -1
  33. package/lib/_internal/interfaces/meeting-guest.interface.d.ts +1 -1
  34. package/lib/_internal/interfaces/meeting-host.interface.d.ts +3 -2
  35. package/lib/_internal/interfaces/meeting-type.interface.d.ts +11 -0
  36. package/lib/_internal/objects/annotations.d.ts +1 -1
  37. package/lib/_internal/objects/date-range.d.ts +1 -1
  38. package/lib/_internal/objects/field-mask.d.ts +1 -1
  39. package/lib/_internal/objects/google-meet.d.ts +1 -1
  40. package/lib/_internal/objects/groups-and-services.d.ts +1 -1
  41. package/lib/_internal/objects/index.d.ts +2 -2
  42. package/lib/_internal/objects/meeting-external.d.ts +2 -2
  43. package/lib/_internal/objects/meeting-guest.d.ts +2 -2
  44. package/lib/_internal/objects/meeting-host.d.ts +4 -3
  45. package/lib/_internal/objects/meeting-source.d.ts +1 -1
  46. package/lib/_internal/objects/meeting-type.d.ts +15 -1
  47. package/lib/_internal/objects/openapiv2.d.ts +1 -1
  48. package/lib/_internal/objects/shared.d.ts +1 -1
  49. package/lib/_internal/objects/zoom.d.ts +1 -1
  50. package/lib/index.d.ts +2 -2
  51. package/lib/shared/meeting-type.d.ts +4 -1
  52. package/package.json +1 -1
@@ -184,6 +184,12 @@ var NotificationType;
184
184
  NotificationType[NotificationType["SMS"] = 1] = "SMS";
185
185
  NotificationType[NotificationType["BOTH"] = 2] = "BOTH";
186
186
  })(NotificationType || (NotificationType = {}));
187
+ var PaymentCollectionMode;
188
+ (function (PaymentCollectionMode) {
189
+ PaymentCollectionMode[PaymentCollectionMode["PAYMENT_COLLECTION_MODE_INVALID"] = 0] = "PAYMENT_COLLECTION_MODE_INVALID";
190
+ PaymentCollectionMode[PaymentCollectionMode["FULL_UPFRONT"] = 1] = "FULL_UPFRONT";
191
+ PaymentCollectionMode[PaymentCollectionMode["PAY_AT_SERVICE"] = 2] = "PAY_AT_SERVICE";
192
+ })(PaymentCollectionMode || (PaymentCollectionMode = {}));
187
193
  var RegistrationCutOffUnit;
188
194
  (function (RegistrationCutOffUnit) {
189
195
  RegistrationCutOffUnit[RegistrationCutOffUnit["REGISTRATION_CUTOFF_DAYS"] = 0] = "REGISTRATION_CUTOFF_DAYS";
@@ -2242,6 +2248,47 @@ class EventTypeDateRange {
2242
2248
  return toReturn;
2243
2249
  }
2244
2250
  }
2251
+ class EventTypePaymentSettings {
2252
+ static fromProto(proto) {
2253
+ let m = new EventTypePaymentSettings();
2254
+ m = Object.assign(m, proto);
2255
+ if (proto.collectionMode) {
2256
+ m.collectionMode = enumStringToValue$9(PaymentCollectionMode, proto.collectionMode);
2257
+ }
2258
+ if (proto.price) {
2259
+ m.price = parseInt(proto.price, 10);
2260
+ }
2261
+ return m;
2262
+ }
2263
+ constructor(kwargs) {
2264
+ if (!kwargs) {
2265
+ return;
2266
+ }
2267
+ Object.assign(this, kwargs);
2268
+ }
2269
+ toApiJson() {
2270
+ const toReturn = {};
2271
+ if (typeof this.acceptPayments !== 'undefined') {
2272
+ toReturn['acceptPayments'] = this.acceptPayments;
2273
+ }
2274
+ if (typeof this.inventoryItemId !== 'undefined') {
2275
+ toReturn['inventoryItemId'] = this.inventoryItemId;
2276
+ }
2277
+ if (typeof this.collectionMode !== 'undefined') {
2278
+ toReturn['collectionMode'] = this.collectionMode;
2279
+ }
2280
+ if (typeof this.inventoryItemName !== 'undefined') {
2281
+ toReturn['inventoryItemName'] = this.inventoryItemName;
2282
+ }
2283
+ if (typeof this.price !== 'undefined') {
2284
+ toReturn['price'] = this.price;
2285
+ }
2286
+ if (typeof this.currency !== 'undefined') {
2287
+ toReturn['currency'] = this.currency;
2288
+ }
2289
+ return toReturn;
2290
+ }
2291
+ }
2245
2292
  class Field {
2246
2293
  static fromProto(proto) {
2247
2294
  let m = new Field();
@@ -2346,6 +2393,12 @@ class MeetingType {
2346
2393
  if (proto.redirectDelaySeconds) {
2347
2394
  m.redirectDelaySeconds = parseInt(proto.redirectDelaySeconds, 10);
2348
2395
  }
2396
+ if (proto.paymentSettings) {
2397
+ m.paymentSettings = EventTypePaymentSettings.fromProto(proto.paymentSettings);
2398
+ }
2399
+ if (proto.dailyMeetingLimit) {
2400
+ m.dailyMeetingLimit = parseInt(proto.dailyMeetingLimit, 10);
2401
+ }
2349
2402
  return m;
2350
2403
  }
2351
2404
  constructor(kwargs) {
@@ -2470,6 +2523,15 @@ class MeetingType {
2470
2523
  if (typeof this.redirectDelaySeconds !== 'undefined') {
2471
2524
  toReturn['redirectDelaySeconds'] = this.redirectDelaySeconds;
2472
2525
  }
2526
+ if (typeof this.paymentSettings !== 'undefined' && this.paymentSettings !== null) {
2527
+ toReturn['paymentSettings'] = 'toApiJson' in this.paymentSettings ? this.paymentSettings.toApiJson() : this.paymentSettings;
2528
+ }
2529
+ if (typeof this.dailyMeetingLimitEnabled !== 'undefined') {
2530
+ toReturn['dailyMeetingLimitEnabled'] = this.dailyMeetingLimitEnabled;
2531
+ }
2532
+ if (typeof this.dailyMeetingLimit !== 'undefined') {
2533
+ toReturn['dailyMeetingLimit'] = this.dailyMeetingLimit;
2534
+ }
2473
2535
  return toReturn;
2474
2536
  }
2475
2537
  }
@@ -7524,6 +7586,9 @@ class EventTypeSummary {
7524
7586
  if (proto.bufferDurationBeforeMeeting) {
7525
7587
  m.bufferDurationBeforeMeeting = parseInt(proto.bufferDurationBeforeMeeting, 10);
7526
7588
  }
7589
+ if (proto.paymentSettings) {
7590
+ m.paymentSettings = EventTypePaymentSettings.fromProto(proto.paymentSettings);
7591
+ }
7527
7592
  return m;
7528
7593
  }
7529
7594
  constructor(kwargs) {
@@ -7588,6 +7653,9 @@ class EventTypeSummary {
7588
7653
  if (typeof this.bufferDurationBeforeMeeting !== 'undefined') {
7589
7654
  toReturn['bufferDurationBeforeMeeting'] = this.bufferDurationBeforeMeeting;
7590
7655
  }
7656
+ if (typeof this.paymentSettings !== 'undefined' && this.paymentSettings !== null) {
7657
+ toReturn['paymentSettings'] = 'toApiJson' in this.paymentSettings ? this.paymentSettings.toApiJson() : this.paymentSettings;
7658
+ }
7591
7659
  return toReturn;
7592
7660
  }
7593
7661
  }
@@ -11237,6 +11305,9 @@ function MeetingTypeFromApi(req) {
11237
11305
  redirectEnabled: req.meetingTypeApi.redirectEnabled || false,
11238
11306
  redirectUrl: req.meetingTypeApi.redirectUrl || "",
11239
11307
  redirectDelaySeconds: req.meetingTypeApi.redirectDelaySeconds || 0,
11308
+ paymentSettings: req.meetingTypeApi.paymentSettings || undefined,
11309
+ dailyMeetingLimitEnabled: req.meetingTypeApi.dailyMeetingLimitEnabled || false,
11310
+ dailyMeetingLimit: req.meetingTypeApi.dailyMeetingLimit || 0,
11240
11311
  };
11241
11312
  }
11242
11313
  function MeetingTypeToApi(req) {
@@ -11280,6 +11351,9 @@ function MeetingTypeToApi(req) {
11280
11351
  redirectEnabled: m.redirectEnabled || false,
11281
11352
  redirectUrl: m.redirectUrl || undefined,
11282
11353
  redirectDelaySeconds: m.redirectDelaySeconds || 0,
11354
+ paymentSettings: m.paymentSettings || undefined,
11355
+ dailyMeetingLimitEnabled: m.dailyMeetingLimitEnabled || false,
11356
+ dailyMeetingLimit: m.dailyMeetingLimit || 0,
11283
11357
  };
11284
11358
  }
11285
11359
 
@@ -12507,5 +12581,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
12507
12581
  * Generated bundle index. Do not edit.
12508
12582
  */
12509
12583
 
12510
- export { BookBatchMeetingResponse, BookedMeetingV2, BookingSource, CalendarMember, CalendarSource, CalendarType, CalendarView, CheckFeatureFlagRequest, CheckFeatureFlagResponse, Contact$1 as Contact, CreateCalendarRequest, CreateCalendarResponse, DateRangeType, DayOfWeek, FeatureFlagFieldType, FormFieldType, GetServiceV2Response, GuestGetBookedMeetingResponseV2, GuestService, HostBookBatchMeetingResponse, HostListBatchAvailableTimeSlotsResponse, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, ListBatchAvailableTimeSlotsResponse, ListBookedMeetingsV2Response, ListGuestBookedMeetingsResponse, MeetingDetail, MeetingLocation, MeetingLocationType, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceOrigin, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, NotificationType, OnBoardingState, PagedResponse, RegistrationCutOffUnit, RelativeTimeUnit, ServiceEventType, ServiceGroup, TeamEventMeetingType, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
12584
+ export { BookBatchMeetingResponse, BookedMeetingV2, BookingSource, CalendarMember, CalendarSource, CalendarType, CalendarView, CheckFeatureFlagRequest, CheckFeatureFlagResponse, Contact$1 as Contact, CreateCalendarRequest, CreateCalendarResponse, DateRangeType, DayOfWeek, FeatureFlagFieldType, FormFieldType, GetServiceV2Response, GuestGetBookedMeetingResponseV2, GuestService, HostBookBatchMeetingResponse, HostListBatchAvailableTimeSlotsResponse, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, ListBatchAvailableTimeSlotsResponse, ListBookedMeetingsV2Response, ListGuestBookedMeetingsResponse, MeetingDetail, MeetingLocation, MeetingLocationType, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceOrigin, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, NotificationType, OnBoardingState, PagedResponse, PaymentCollectionMode, RegistrationCutOffUnit, RelativeTimeUnit, ServiceEventType, ServiceGroup, TeamEventMeetingType, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
12511
12585
  //# sourceMappingURL=vendasta-meetings.mjs.map