@wix/auto_sdk_bookings_booking-policies 1.0.75 → 1.0.77

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 +44 -6
  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 +44 -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 +44 -6
  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 +44 -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 +44 -6
  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 +44 -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 +44 -6
  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 +44 -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.
@@ -1047,6 +1071,10 @@ interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
1047
1071
  wixelAssigned?: WixelAssigned;
1048
1072
  /** Emitted when Wixel is detached. */
1049
1073
  wixelUnassigned?: WixelUnassigned;
1074
+ /** Emitted when StudioTwo is attached. */
1075
+ studioTwoAssigned?: StudioTwoAssigned;
1076
+ /** Emitted when StudioTwo is detached. */
1077
+ studioTwoUnassigned?: StudioTwoUnassigned;
1050
1078
  /**
1051
1079
  * A meta site id.
1052
1080
  * @format GUID
@@ -1117,6 +1145,10 @@ interface MetaSiteSpecialEventPayloadOneOf {
1117
1145
  wixelAssigned?: WixelAssigned;
1118
1146
  /** Emitted when Wixel is detached. */
1119
1147
  wixelUnassigned?: WixelUnassigned;
1148
+ /** Emitted when StudioTwo is attached. */
1149
+ studioTwoAssigned?: StudioTwoAssigned;
1150
+ /** Emitted when StudioTwo is detached. */
1151
+ studioTwoUnassigned?: StudioTwoUnassigned;
1120
1152
  }
1121
1153
  interface Asset {
1122
1154
  /**
@@ -1469,6 +1501,12 @@ interface WixelAssigned {
1469
1501
  /** Unassigned Wixel */
1470
1502
  interface WixelUnassigned {
1471
1503
  }
1504
+ /** Assigned StudioTwo */
1505
+ interface StudioTwoAssigned {
1506
+ }
1507
+ /** Unassigned StudioTwo */
1508
+ interface StudioTwoUnassigned {
1509
+ }
1472
1510
  interface MessageEnvelope {
1473
1511
  /**
1474
1512
  * App instance ID.
@@ -1984,4 +2022,4 @@ interface CountBookingPoliciesOptions {
1984
2022
  filter?: Record<string, any> | null;
1985
2023
  }
1986
2024
 
1987
- 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 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 };
2025
+ 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,