@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.
- 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 +44 -6
- package/build/cjs/index.typings.js +16 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +44 -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 +44 -6
- package/build/es/index.typings.mjs +14 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +44 -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 +44 -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 +44 -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 +44 -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 +44 -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.
|
|
@@ -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 };
|
|
@@ -307,6 +307,18 @@ var SortingMethodType = /* @__PURE__ */ ((SortingMethodType2) => {
|
|
|
307
307
|
SortingMethodType2["CUSTOM"] = "CUSTOM";
|
|
308
308
|
return SortingMethodType2;
|
|
309
309
|
})(SortingMethodType || {});
|
|
310
|
+
var Timing = /* @__PURE__ */ ((Timing2) => {
|
|
311
|
+
Timing2["UNKNOWN_TIMING"] = "UNKNOWN_TIMING";
|
|
312
|
+
Timing2["AFTER_BOOKING"] = "AFTER_BOOKING";
|
|
313
|
+
Timing2["BEFORE_BOOKING"] = "BEFORE_BOOKING";
|
|
314
|
+
return Timing2;
|
|
315
|
+
})(Timing || {});
|
|
316
|
+
var CompletionRequirement = /* @__PURE__ */ ((CompletionRequirement2) => {
|
|
317
|
+
CompletionRequirement2["UNKNOWN_COMPLETION_REQUIREMENT"] = "UNKNOWN_COMPLETION_REQUIREMENT";
|
|
318
|
+
CompletionRequirement2["OPTIONAL"] = "OPTIONAL";
|
|
319
|
+
CompletionRequirement2["REQUIRED_BEFORE_BOOKING"] = "REQUIRED_BEFORE_BOOKING";
|
|
320
|
+
return CompletionRequirement2;
|
|
321
|
+
})(CompletionRequirement || {});
|
|
310
322
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
311
323
|
SortOrder2["ASC"] = "ASC";
|
|
312
324
|
SortOrder2["DESC"] = "DESC";
|
|
@@ -623,6 +635,7 @@ async function countBookingPolicies2(options) {
|
|
|
623
635
|
}
|
|
624
636
|
}
|
|
625
637
|
export {
|
|
638
|
+
CompletionRequirement,
|
|
626
639
|
DayOfWeek,
|
|
627
640
|
DeleteStatus,
|
|
628
641
|
Namespace,
|
|
@@ -633,6 +646,7 @@ export {
|
|
|
633
646
|
SortOrder,
|
|
634
647
|
SortingMethodType,
|
|
635
648
|
State,
|
|
649
|
+
Timing,
|
|
636
650
|
WebhookIdentityType,
|
|
637
651
|
countBookingPolicies2 as countBookingPolicies,
|
|
638
652
|
createBookingPolicy2 as createBookingPolicy,
|