@wix/auto_sdk_bookings_booking-policies 1.0.76 → 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.
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +16 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +30 -6
- package/build/cjs/index.typings.js +16 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +30 -6
- package/build/cjs/meta.js +16 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +14 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +30 -6
- package/build/es/index.typings.mjs +14 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +30 -6
- package/build/es/meta.mjs +14 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +16 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +30 -6
- package/build/internal/cjs/index.typings.js +16 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +30 -6
- package/build/internal/cjs/meta.js +16 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +14 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +30 -6
- package/build/internal/es/index.typings.mjs +14 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +30 -6
- package/build/internal/es/meta.mjs +14 -0
- package/build/internal/es/meta.mjs.map +1 -1
- 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
|
-
*
|
|
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
|
-
*
|
|
432
|
-
*
|
|
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
|
-
|
|
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.
|
|
@@ -1998,4 +2022,4 @@ interface CountBookingPoliciesOptions {
|
|
|
1998
2022
|
filter?: Record<string, any> | null;
|
|
1999
2023
|
}
|
|
2000
2024
|
|
|
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 };
|
|
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,
|