@wix/auto_sdk_bookings_booking-policies 1.0.76 → 1.0.78

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/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +16 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +30 -14
  5. package/build/cjs/index.typings.js +16 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +30 -6
  8. package/build/cjs/meta.js +16 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +14 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +30 -14
  14. package/build/es/index.typings.mjs +14 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +30 -6
  17. package/build/es/meta.mjs +14 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +16 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +30 -14
  23. package/build/internal/cjs/index.typings.js +16 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +30 -6
  26. package/build/internal/cjs/meta.js +16 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +14 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +30 -14
  32. package/build/internal/es/index.typings.mjs +14 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +30 -6
  35. package/build/internal/es/meta.mjs +14 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -423,17 +423,41 @@ interface CustomOptions {
423
423
  /** Policy for integrating with Intake form. Stores which form to use and when to present it. */
424
424
  interface IntakeFormPolicy {
425
425
  /**
426
- * ID of the form used as an intake form for the service.
426
+ * Whether intake form integration is enabled for the service.
427
+ * Default: `false`
428
+ */
429
+ enabled?: boolean;
430
+ /**
431
+ * ID of the intake form to integrate with the service.
427
432
  * @format GUID
428
433
  */
429
434
  formId?: string | null;
435
+ /** When to present the intake form to the customer. */
436
+ timing?: TimingWithLiterals;
437
+ completionRequirement?: CompletionRequirementWithLiterals;
438
+ }
439
+ declare enum Timing {
440
+ UNKNOWN_TIMING = "UNKNOWN_TIMING",
441
+ /** Send form after booking. */
442
+ AFTER_BOOKING = "AFTER_BOOKING",
443
+ /** Show form during booking flow. */
444
+ BEFORE_BOOKING = "BEFORE_BOOKING"
445
+ }
446
+ /** @enumType */
447
+ type TimingWithLiterals = Timing | 'UNKNOWN_TIMING' | 'AFTER_BOOKING' | 'BEFORE_BOOKING';
448
+ /** Requirement for completing the intake form. */
449
+ declare enum CompletionRequirement {
450
+ UNKNOWN_COMPLETION_REQUIREMENT = "UNKNOWN_COMPLETION_REQUIREMENT",
451
+ /** Form completion is optional and can be skipped entirely. */
452
+ OPTIONAL = "OPTIONAL",
430
453
  /**
431
- * Whether the waiver must be completed before bookings.
432
- * If `false`, the waiver is handled after bookings.
433
- * Default: `false`
454
+ * Form must be completed before the booking can be finalized.
455
+ * can used only if timing is BEFORE_BOOKING.
434
456
  */
435
- requireBeforeBook?: boolean;
457
+ REQUIRED_BEFORE_BOOKING = "REQUIRED_BEFORE_BOOKING"
436
458
  }
459
+ /** @enumType */
460
+ type CompletionRequirementWithLiterals = CompletionRequirement | 'UNKNOWN_COMPLETION_REQUIREMENT' | 'OPTIONAL' | 'REQUIRED_BEFORE_BOOKING';
437
461
  interface ExtendedFields {
438
462
  /**
439
463
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
@@ -1639,8 +1663,6 @@ interface BookingPolicyCreatedEnvelope {
1639
1663
  }
1640
1664
  /**
1641
1665
  * Triggered when a booking policy is created.
1642
- * @permissionScope Manage Stores
1643
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1644
1666
  * @permissionScope Read Bookings - Public Data
1645
1667
  * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
1646
1668
  * @permissionScope Manage Bookings Services and Settings
@@ -1668,8 +1690,6 @@ interface BookingPolicyDefaultBookingPolicySetEnvelope {
1668
1690
  * _Booking Policy Updated_
1669
1691
  * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/on-booking-policy-updated) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/booking-policy-updated))
1670
1692
  * is also triggered both for the new and the previous default policy.
1671
- * @permissionScope Manage Stores
1672
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1673
1693
  * @permissionScope Read Bookings - Public Data
1674
1694
  * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
1675
1695
  * @permissionScope Manage Bookings Services and Settings
@@ -1693,8 +1713,6 @@ interface BookingPolicyDeletedEnvelope {
1693
1713
  }
1694
1714
  /**
1695
1715
  * Triggered when a booking policy is deleted.
1696
- * @permissionScope Manage Stores
1697
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1698
1716
  * @permissionScope Read Bookings - Public Data
1699
1717
  * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
1700
1718
  * @permissionScope Manage Bookings Services and Settings
@@ -1720,8 +1738,6 @@ interface BookingPolicyUpdatedEnvelope {
1720
1738
  /**
1721
1739
  * Triggered when a booking policy is updated, including when a policy's
1722
1740
  * `default` attribute changes.
1723
- * @permissionScope Manage Stores
1724
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1725
1741
  * @permissionScope Read Bookings - Public Data
1726
1742
  * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
1727
1743
  * @permissionScope Manage Bookings Services and Settings
@@ -1998,4 +2014,4 @@ interface CountBookingPoliciesOptions {
1998
2014
  filter?: Record<string, any> | null;
1999
2015
  }
2000
2016
 
2001
- export { type ActionEvent, type Address, type AddressHint, type Asset, type BaseEventMetadata, type BookAfterStartPolicy, type BookingPoliciesQueryBuilder, type BookingPoliciesQueryResult, type BookingPolicy, type BookingPolicyCreatedEnvelope, type BookingPolicyDefaultBookingPolicySetEnvelope, type BookingPolicyDeletedEnvelope, type BookingPolicyUpdatedEnvelope, type BusinessSchedule, type CancellationFeePolicy, type CancellationPolicy, type CancellationWindow, type CancellationWindowFeeOneOf, type Categories, type ChangeContext, type ChangeContextPayloadOneOf, type ConsentPolicy, type CountBookingPoliciesOptions, type CountBookingPoliciesRequest, type CountBookingPoliciesResponse, type CreateBookingPolicyRequest, type CreateBookingPolicyResponse, type CreateBookingPolicyValidationErrors, type CreateMissingDefaultPolicyRequest, type CreateMissingDefaultPolicyResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomOptions, DayOfWeek, type DayOfWeekWithLiterals, type DefaultBookingPolicySet, type DeleteBookingPolicyApplicationErrors, type DeleteBookingPolicyRequest, type DeleteBookingPolicyResponse, type DeleteContext, DeleteStatus, type DeleteStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GeoCoordinates, type GetBookingPolicyRequest, type GetBookingPolicyResponse, type GetStrictestBookingPolicyRequest, type GetStrictestBookingPolicyResponse, type IdentificationData, type IdentificationDataIdOneOf, type IntakeFormPolicy, type LimitEarlyBookingPolicy, type LimitLateBookingPolicy, type Locale, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type Money, type Multilingual, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type ParticipantsPolicy, type PicassoAssigned, type PicassoUnassigned, PlacementType, type PlacementTypeWithLiterals, type PolicyDescription, type Properties, type PropertiesChange, type QueryBookingPoliciesRequest, type QueryBookingPoliciesResponse, type RankingOptions, RankingOrder, type RankingOrderWithLiterals, type ReschedulePolicy, ResolutionMethod, type ResolutionMethodWithLiterals, type ResourcesPolicy, type RestoreInfo, type SaveCreditCardPolicy, type ServiceProvisioned, type ServiceRemoved, type SetDefaultBookingPolicyRequest, type SetDefaultBookingPolicyResponse, type SiteCloned, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePropertiesEvent, type SitePropertiesNotification, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, SortingMethodType, type SortingMethodTypeWithLiterals, type SpecialHourPeriod, type StaffSortingPolicy, type StaffSortingPolicyOptionsOneOf, State, type StateWithLiterals, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, type SupportedLanguage, type TimePeriod, type Translation, type UpdateAllPoliciesRequest, type UpdateAllPoliciesResponse, type UpdateBookingPolicy, type UpdateBookingPolicyRequest, type UpdateBookingPolicyResponse, type UpdateBookingPolicyValidationErrors, type V4SiteCreated, type WaitlistPolicy, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, countBookingPolicies, createBookingPolicy, deleteBookingPolicy, getBookingPolicy, getStrictestBookingPolicy, onBookingPolicyCreated, onBookingPolicyDefaultBookingPolicySet, onBookingPolicyDeleted, onBookingPolicyUpdated, queryBookingPolicies, setDefaultBookingPolicy, updateBookingPolicy };
2017
+ export { type ActionEvent, type Address, type AddressHint, type Asset, type BaseEventMetadata, type BookAfterStartPolicy, type BookingPoliciesQueryBuilder, type BookingPoliciesQueryResult, type BookingPolicy, type BookingPolicyCreatedEnvelope, type BookingPolicyDefaultBookingPolicySetEnvelope, type BookingPolicyDeletedEnvelope, type BookingPolicyUpdatedEnvelope, type BusinessSchedule, type CancellationFeePolicy, type CancellationPolicy, type CancellationWindow, type CancellationWindowFeeOneOf, type Categories, type ChangeContext, type ChangeContextPayloadOneOf, CompletionRequirement, type CompletionRequirementWithLiterals, type ConsentPolicy, type CountBookingPoliciesOptions, type CountBookingPoliciesRequest, type CountBookingPoliciesResponse, type CreateBookingPolicyRequest, type CreateBookingPolicyResponse, type CreateBookingPolicyValidationErrors, type CreateMissingDefaultPolicyRequest, type CreateMissingDefaultPolicyResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomOptions, DayOfWeek, type DayOfWeekWithLiterals, type DefaultBookingPolicySet, type DeleteBookingPolicyApplicationErrors, type DeleteBookingPolicyRequest, type DeleteBookingPolicyResponse, type DeleteContext, DeleteStatus, type DeleteStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GeoCoordinates, type GetBookingPolicyRequest, type GetBookingPolicyResponse, type GetStrictestBookingPolicyRequest, type GetStrictestBookingPolicyResponse, type IdentificationData, type IdentificationDataIdOneOf, type IntakeFormPolicy, type LimitEarlyBookingPolicy, type LimitLateBookingPolicy, type Locale, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type Money, type Multilingual, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type ParticipantsPolicy, type PicassoAssigned, type PicassoUnassigned, PlacementType, type PlacementTypeWithLiterals, type PolicyDescription, type Properties, type PropertiesChange, type QueryBookingPoliciesRequest, type QueryBookingPoliciesResponse, type RankingOptions, RankingOrder, type RankingOrderWithLiterals, type ReschedulePolicy, ResolutionMethod, type ResolutionMethodWithLiterals, type ResourcesPolicy, type RestoreInfo, type SaveCreditCardPolicy, type ServiceProvisioned, type ServiceRemoved, type SetDefaultBookingPolicyRequest, type SetDefaultBookingPolicyResponse, type SiteCloned, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePropertiesEvent, type SitePropertiesNotification, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, SortingMethodType, type SortingMethodTypeWithLiterals, type SpecialHourPeriod, type StaffSortingPolicy, type StaffSortingPolicyOptionsOneOf, State, type StateWithLiterals, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, type SupportedLanguage, type TimePeriod, Timing, type TimingWithLiterals, type Translation, type UpdateAllPoliciesRequest, type UpdateAllPoliciesResponse, type UpdateBookingPolicy, type UpdateBookingPolicyRequest, type UpdateBookingPolicyResponse, type UpdateBookingPolicyValidationErrors, type V4SiteCreated, type WaitlistPolicy, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, countBookingPolicies, createBookingPolicy, deleteBookingPolicy, getBookingPolicy, getStrictestBookingPolicy, onBookingPolicyCreated, onBookingPolicyDefaultBookingPolicySet, onBookingPolicyDeleted, onBookingPolicyUpdated, queryBookingPolicies, setDefaultBookingPolicy, updateBookingPolicy };
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // index.typings.ts
21
21
  var index_typings_exports = {};
22
22
  __export(index_typings_exports, {
23
+ CompletionRequirement: () => CompletionRequirement,
23
24
  DayOfWeek: () => DayOfWeek,
24
25
  DeleteStatus: () => DeleteStatus,
25
26
  Namespace: () => Namespace,
@@ -30,6 +31,7 @@ __export(index_typings_exports, {
30
31
  SortOrder: () => SortOrder,
31
32
  SortingMethodType: () => SortingMethodType,
32
33
  State: () => State,
34
+ Timing: () => Timing,
33
35
  WebhookIdentityType: () => WebhookIdentityType,
34
36
  countBookingPolicies: () => countBookingPolicies2,
35
37
  createBookingPolicy: () => createBookingPolicy2,
@@ -348,6 +350,18 @@ var SortingMethodType = /* @__PURE__ */ ((SortingMethodType2) => {
348
350
  SortingMethodType2["CUSTOM"] = "CUSTOM";
349
351
  return SortingMethodType2;
350
352
  })(SortingMethodType || {});
353
+ var Timing = /* @__PURE__ */ ((Timing2) => {
354
+ Timing2["UNKNOWN_TIMING"] = "UNKNOWN_TIMING";
355
+ Timing2["AFTER_BOOKING"] = "AFTER_BOOKING";
356
+ Timing2["BEFORE_BOOKING"] = "BEFORE_BOOKING";
357
+ return Timing2;
358
+ })(Timing || {});
359
+ var CompletionRequirement = /* @__PURE__ */ ((CompletionRequirement2) => {
360
+ CompletionRequirement2["UNKNOWN_COMPLETION_REQUIREMENT"] = "UNKNOWN_COMPLETION_REQUIREMENT";
361
+ CompletionRequirement2["OPTIONAL"] = "OPTIONAL";
362
+ CompletionRequirement2["REQUIRED_BEFORE_BOOKING"] = "REQUIRED_BEFORE_BOOKING";
363
+ return CompletionRequirement2;
364
+ })(CompletionRequirement || {});
351
365
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
352
366
  SortOrder2["ASC"] = "ASC";
353
367
  SortOrder2["DESC"] = "DESC";
@@ -665,6 +679,7 @@ async function countBookingPolicies2(options) {
665
679
  }
666
680
  // Annotate the CommonJS export names for ESM import in node:
667
681
  0 && (module.exports = {
682
+ CompletionRequirement,
668
683
  DayOfWeek,
669
684
  DeleteStatus,
670
685
  Namespace,
@@ -675,6 +690,7 @@ async function countBookingPolicies2(options) {
675
690
  SortOrder,
676
691
  SortingMethodType,
677
692
  State,
693
+ Timing,
678
694
  WebhookIdentityType,
679
695
  countBookingPolicies,
680
696
  createBookingPolicy,