@wix/auto_sdk_bookings_booking-policies 1.0.74 → 1.0.76

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.
@@ -1050,6 +1050,10 @@ interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
1050
1050
  wixelAssigned?: WixelAssigned;
1051
1051
  /** Emitted when Wixel is detached. */
1052
1052
  wixelUnassigned?: WixelUnassigned;
1053
+ /** Emitted when StudioTwo is attached. */
1054
+ studioTwoAssigned?: StudioTwoAssigned;
1055
+ /** Emitted when StudioTwo is detached. */
1056
+ studioTwoUnassigned?: StudioTwoUnassigned;
1053
1057
  /**
1054
1058
  * A meta site id.
1055
1059
  * @format GUID
@@ -1120,6 +1124,10 @@ interface MetaSiteSpecialEventPayloadOneOf {
1120
1124
  wixelAssigned?: WixelAssigned;
1121
1125
  /** Emitted when Wixel is detached. */
1122
1126
  wixelUnassigned?: WixelUnassigned;
1127
+ /** Emitted when StudioTwo is attached. */
1128
+ studioTwoAssigned?: StudioTwoAssigned;
1129
+ /** Emitted when StudioTwo is detached. */
1130
+ studioTwoUnassigned?: StudioTwoUnassigned;
1123
1131
  }
1124
1132
  interface Asset {
1125
1133
  /**
@@ -1472,6 +1480,12 @@ interface WixelAssigned {
1472
1480
  /** Unassigned Wixel */
1473
1481
  interface WixelUnassigned {
1474
1482
  }
1483
+ /** Assigned StudioTwo */
1484
+ interface StudioTwoAssigned {
1485
+ }
1486
+ /** Unassigned StudioTwo */
1487
+ interface StudioTwoUnassigned {
1488
+ }
1475
1489
  interface MessageEnvelope {
1476
1490
  /**
1477
1491
  * App instance ID.
@@ -1606,4 +1620,4 @@ declare function deleteBookingPolicy(): __PublicMethodMetaInfo<'DELETE', {
1606
1620
  declare function queryBookingPolicies(): __PublicMethodMetaInfo<'POST', {}, QueryBookingPoliciesRequest$1, QueryBookingPoliciesRequest, QueryBookingPoliciesResponse$1, QueryBookingPoliciesResponse>;
1607
1621
  declare function countBookingPolicies(): __PublicMethodMetaInfo<'POST', {}, CountBookingPoliciesRequest$1, CountBookingPoliciesRequest, CountBookingPoliciesResponse$1, CountBookingPoliciesResponse>;
1608
1622
 
1609
- export { type ActionEvent as ActionEventOriginal, type AddressHint as AddressHintOriginal, type Address as AddressOriginal, type Asset as AssetOriginal, type BookAfterStartPolicy as BookAfterStartPolicyOriginal, type BookingPolicy as BookingPolicyOriginal, type BusinessSchedule as BusinessScheduleOriginal, type CancellationFeePolicy as CancellationFeePolicyOriginal, type CancellationPolicy as CancellationPolicyOriginal, type CancellationWindowFeeOneOf as CancellationWindowFeeOneOfOriginal, type CancellationWindow as CancellationWindowOriginal, type Categories as CategoriesOriginal, type ChangeContext as ChangeContextOriginal, type ChangeContextPayloadOneOf as ChangeContextPayloadOneOfOriginal, type ConsentPolicy as ConsentPolicyOriginal, type CountBookingPoliciesRequest as CountBookingPoliciesRequestOriginal, type CountBookingPoliciesResponse as CountBookingPoliciesResponseOriginal, type CreateBookingPolicyRequest as CreateBookingPolicyRequestOriginal, type CreateBookingPolicyResponse as CreateBookingPolicyResponseOriginal, type CreateBookingPolicyValidationErrors as CreateBookingPolicyValidationErrorsOriginal, type CreateMissingDefaultPolicyRequest as CreateMissingDefaultPolicyRequestOriginal, type CreateMissingDefaultPolicyResponse as CreateMissingDefaultPolicyResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomOptions as CustomOptionsOriginal, DayOfWeek as DayOfWeekOriginal, type DayOfWeekWithLiterals as DayOfWeekWithLiteralsOriginal, type DefaultBookingPolicySet as DefaultBookingPolicySetOriginal, type DeleteBookingPolicyApplicationErrors as DeleteBookingPolicyApplicationErrorsOriginal, type DeleteBookingPolicyRequest as DeleteBookingPolicyRequestOriginal, type DeleteBookingPolicyResponse as DeleteBookingPolicyResponseOriginal, type DeleteContext as DeleteContextOriginal, DeleteStatus as DeleteStatusOriginal, type DeleteStatusWithLiterals as DeleteStatusWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GeoCoordinates as GeoCoordinatesOriginal, type GetBookingPolicyRequest as GetBookingPolicyRequestOriginal, type GetBookingPolicyResponse as GetBookingPolicyResponseOriginal, type GetStrictestBookingPolicyRequest as GetStrictestBookingPolicyRequestOriginal, type GetStrictestBookingPolicyResponse as GetStrictestBookingPolicyResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type IntakeFormPolicy as IntakeFormPolicyOriginal, type LimitEarlyBookingPolicy as LimitEarlyBookingPolicyOriginal, type LimitLateBookingPolicy as LimitLateBookingPolicyOriginal, type Locale as LocaleOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MetaSiteSpecialEvent as MetaSiteSpecialEventOriginal, type MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOfOriginal, type Money as MoneyOriginal, type Multilingual as MultilingualOriginal, type NamespaceChanged as NamespaceChangedOriginal, Namespace as NamespaceOriginal, type NamespaceWithLiterals as NamespaceWithLiteralsOriginal, type OdeditorAssigned as OdeditorAssignedOriginal, type OdeditorUnassigned as OdeditorUnassignedOriginal, type ParticipantsPolicy as ParticipantsPolicyOriginal, type PicassoAssigned as PicassoAssignedOriginal, type PicassoUnassigned as PicassoUnassignedOriginal, PlacementType as PlacementTypeOriginal, type PlacementTypeWithLiterals as PlacementTypeWithLiteralsOriginal, type PolicyDescription as PolicyDescriptionOriginal, type PropertiesChange as PropertiesChangeOriginal, type Properties as PropertiesOriginal, type QueryBookingPoliciesRequest as QueryBookingPoliciesRequestOriginal, type QueryBookingPoliciesResponse as QueryBookingPoliciesResponseOriginal, type RankingOptions as RankingOptionsOriginal, RankingOrder as RankingOrderOriginal, type RankingOrderWithLiterals as RankingOrderWithLiteralsOriginal, type ReschedulePolicy as ReschedulePolicyOriginal, ResolutionMethod as ResolutionMethodOriginal, type ResolutionMethodWithLiterals as ResolutionMethodWithLiteralsOriginal, type ResourcesPolicy as ResourcesPolicyOriginal, type RestoreInfo as RestoreInfoOriginal, type SaveCreditCardPolicy as SaveCreditCardPolicyOriginal, type ServiceProvisioned as ServiceProvisionedOriginal, type ServiceRemoved as ServiceRemovedOriginal, type SetDefaultBookingPolicyRequest as SetDefaultBookingPolicyRequestOriginal, type SetDefaultBookingPolicyResponse as SetDefaultBookingPolicyResponseOriginal, type SiteCloned as SiteClonedOriginal, SiteCreatedContext as SiteCreatedContextOriginal, type SiteCreatedContextWithLiterals as SiteCreatedContextWithLiteralsOriginal, type SiteCreated as SiteCreatedOriginal, type SiteDeleted as SiteDeletedOriginal, type SiteHardDeleted as SiteHardDeletedOriginal, type SiteMarkedAsTemplate as SiteMarkedAsTemplateOriginal, type SiteMarkedAsWixSite as SiteMarkedAsWixSiteOriginal, type SitePropertiesEvent as SitePropertiesEventOriginal, type SitePropertiesNotification as SitePropertiesNotificationOriginal, type SitePublished as SitePublishedOriginal, type SitePurgedExternally as SitePurgedExternallyOriginal, type SiteRenamed as SiteRenamedOriginal, type SiteTransferred as SiteTransferredOriginal, type SiteUndeleted as SiteUndeletedOriginal, type SiteUnpublished as SiteUnpublishedOriginal, type SiteUrlChanged as SiteUrlChangedOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, SortingMethodType as SortingMethodTypeOriginal, type SortingMethodTypeWithLiterals as SortingMethodTypeWithLiteralsOriginal, type Sorting as SortingOriginal, type SpecialHourPeriod as SpecialHourPeriodOriginal, type StaffSortingPolicyOptionsOneOf as StaffSortingPolicyOptionsOneOfOriginal, type StaffSortingPolicy as StaffSortingPolicyOriginal, State as StateOriginal, type StateWithLiterals as StateWithLiteralsOriginal, type StudioAssigned as StudioAssignedOriginal, type StudioUnassigned as StudioUnassignedOriginal, type SupportedLanguage as SupportedLanguageOriginal, type TimePeriod as TimePeriodOriginal, type Translation as TranslationOriginal, type UpdateAllPoliciesRequest as UpdateAllPoliciesRequestOriginal, type UpdateAllPoliciesResponse as UpdateAllPoliciesResponseOriginal, type UpdateBookingPolicyRequest as UpdateBookingPolicyRequestOriginal, type UpdateBookingPolicyResponse as UpdateBookingPolicyResponseOriginal, type UpdateBookingPolicyValidationErrors as UpdateBookingPolicyValidationErrorsOriginal, type V4SiteCreated as V4SiteCreatedOriginal, type WaitlistPolicy as WaitlistPolicyOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WixelAssigned as WixelAssignedOriginal, type WixelUnassigned as WixelUnassignedOriginal, type __PublicMethodMetaInfo, countBookingPolicies, createBookingPolicy, deleteBookingPolicy, getBookingPolicy, getStrictestBookingPolicy, queryBookingPolicies, setDefaultBookingPolicy, updateBookingPolicy };
1623
+ export { type ActionEvent as ActionEventOriginal, type AddressHint as AddressHintOriginal, type Address as AddressOriginal, type Asset as AssetOriginal, type BookAfterStartPolicy as BookAfterStartPolicyOriginal, type BookingPolicy as BookingPolicyOriginal, type BusinessSchedule as BusinessScheduleOriginal, type CancellationFeePolicy as CancellationFeePolicyOriginal, type CancellationPolicy as CancellationPolicyOriginal, type CancellationWindowFeeOneOf as CancellationWindowFeeOneOfOriginal, type CancellationWindow as CancellationWindowOriginal, type Categories as CategoriesOriginal, type ChangeContext as ChangeContextOriginal, type ChangeContextPayloadOneOf as ChangeContextPayloadOneOfOriginal, type ConsentPolicy as ConsentPolicyOriginal, type CountBookingPoliciesRequest as CountBookingPoliciesRequestOriginal, type CountBookingPoliciesResponse as CountBookingPoliciesResponseOriginal, type CreateBookingPolicyRequest as CreateBookingPolicyRequestOriginal, type CreateBookingPolicyResponse as CreateBookingPolicyResponseOriginal, type CreateBookingPolicyValidationErrors as CreateBookingPolicyValidationErrorsOriginal, type CreateMissingDefaultPolicyRequest as CreateMissingDefaultPolicyRequestOriginal, type CreateMissingDefaultPolicyResponse as CreateMissingDefaultPolicyResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomOptions as CustomOptionsOriginal, DayOfWeek as DayOfWeekOriginal, type DayOfWeekWithLiterals as DayOfWeekWithLiteralsOriginal, type DefaultBookingPolicySet as DefaultBookingPolicySetOriginal, type DeleteBookingPolicyApplicationErrors as DeleteBookingPolicyApplicationErrorsOriginal, type DeleteBookingPolicyRequest as DeleteBookingPolicyRequestOriginal, type DeleteBookingPolicyResponse as DeleteBookingPolicyResponseOriginal, type DeleteContext as DeleteContextOriginal, DeleteStatus as DeleteStatusOriginal, type DeleteStatusWithLiterals as DeleteStatusWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GeoCoordinates as GeoCoordinatesOriginal, type GetBookingPolicyRequest as GetBookingPolicyRequestOriginal, type GetBookingPolicyResponse as GetBookingPolicyResponseOriginal, type GetStrictestBookingPolicyRequest as GetStrictestBookingPolicyRequestOriginal, type GetStrictestBookingPolicyResponse as GetStrictestBookingPolicyResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type IntakeFormPolicy as IntakeFormPolicyOriginal, type LimitEarlyBookingPolicy as LimitEarlyBookingPolicyOriginal, type LimitLateBookingPolicy as LimitLateBookingPolicyOriginal, type Locale as LocaleOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MetaSiteSpecialEvent as MetaSiteSpecialEventOriginal, type MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOfOriginal, type Money as MoneyOriginal, type Multilingual as MultilingualOriginal, type NamespaceChanged as NamespaceChangedOriginal, Namespace as NamespaceOriginal, type NamespaceWithLiterals as NamespaceWithLiteralsOriginal, type OdeditorAssigned as OdeditorAssignedOriginal, type OdeditorUnassigned as OdeditorUnassignedOriginal, type ParticipantsPolicy as ParticipantsPolicyOriginal, type PicassoAssigned as PicassoAssignedOriginal, type PicassoUnassigned as PicassoUnassignedOriginal, PlacementType as PlacementTypeOriginal, type PlacementTypeWithLiterals as PlacementTypeWithLiteralsOriginal, type PolicyDescription as PolicyDescriptionOriginal, type PropertiesChange as PropertiesChangeOriginal, type Properties as PropertiesOriginal, type QueryBookingPoliciesRequest as QueryBookingPoliciesRequestOriginal, type QueryBookingPoliciesResponse as QueryBookingPoliciesResponseOriginal, type RankingOptions as RankingOptionsOriginal, RankingOrder as RankingOrderOriginal, type RankingOrderWithLiterals as RankingOrderWithLiteralsOriginal, type ReschedulePolicy as ReschedulePolicyOriginal, ResolutionMethod as ResolutionMethodOriginal, type ResolutionMethodWithLiterals as ResolutionMethodWithLiteralsOriginal, type ResourcesPolicy as ResourcesPolicyOriginal, type RestoreInfo as RestoreInfoOriginal, type SaveCreditCardPolicy as SaveCreditCardPolicyOriginal, type ServiceProvisioned as ServiceProvisionedOriginal, type ServiceRemoved as ServiceRemovedOriginal, type SetDefaultBookingPolicyRequest as SetDefaultBookingPolicyRequestOriginal, type SetDefaultBookingPolicyResponse as SetDefaultBookingPolicyResponseOriginal, type SiteCloned as SiteClonedOriginal, SiteCreatedContext as SiteCreatedContextOriginal, type SiteCreatedContextWithLiterals as SiteCreatedContextWithLiteralsOriginal, type SiteCreated as SiteCreatedOriginal, type SiteDeleted as SiteDeletedOriginal, type SiteHardDeleted as SiteHardDeletedOriginal, type SiteMarkedAsTemplate as SiteMarkedAsTemplateOriginal, type SiteMarkedAsWixSite as SiteMarkedAsWixSiteOriginal, type SitePropertiesEvent as SitePropertiesEventOriginal, type SitePropertiesNotification as SitePropertiesNotificationOriginal, type SitePublished as SitePublishedOriginal, type SitePurgedExternally as SitePurgedExternallyOriginal, type SiteRenamed as SiteRenamedOriginal, type SiteTransferred as SiteTransferredOriginal, type SiteUndeleted as SiteUndeletedOriginal, type SiteUnpublished as SiteUnpublishedOriginal, type SiteUrlChanged as SiteUrlChangedOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, SortingMethodType as SortingMethodTypeOriginal, type SortingMethodTypeWithLiterals as SortingMethodTypeWithLiteralsOriginal, type Sorting as SortingOriginal, type SpecialHourPeriod as SpecialHourPeriodOriginal, type StaffSortingPolicyOptionsOneOf as StaffSortingPolicyOptionsOneOfOriginal, type StaffSortingPolicy as StaffSortingPolicyOriginal, State as StateOriginal, type StateWithLiterals as StateWithLiteralsOriginal, type StudioAssigned as StudioAssignedOriginal, type StudioTwoAssigned as StudioTwoAssignedOriginal, type StudioTwoUnassigned as StudioTwoUnassignedOriginal, type StudioUnassigned as StudioUnassignedOriginal, type SupportedLanguage as SupportedLanguageOriginal, type TimePeriod as TimePeriodOriginal, type Translation as TranslationOriginal, type UpdateAllPoliciesRequest as UpdateAllPoliciesRequestOriginal, type UpdateAllPoliciesResponse as UpdateAllPoliciesResponseOriginal, type UpdateBookingPolicyRequest as UpdateBookingPolicyRequestOriginal, type UpdateBookingPolicyResponse as UpdateBookingPolicyResponseOriginal, type UpdateBookingPolicyValidationErrors as UpdateBookingPolicyValidationErrorsOriginal, type V4SiteCreated as V4SiteCreatedOriginal, type WaitlistPolicy as WaitlistPolicyOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WixelAssigned as WixelAssignedOriginal, type WixelUnassigned as WixelUnassignedOriginal, type __PublicMethodMetaInfo, countBookingPolicies, createBookingPolicy, deleteBookingPolicy, getBookingPolicy, getStrictestBookingPolicy, queryBookingPolicies, setDefaultBookingPolicy, updateBookingPolicy };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../meta.ts","../../../src/bookings-v1-booking-policy-booking-policies.http.ts","../../../src/bookings-v1-booking-policy-booking-policies.types.ts","../../../src/bookings-v1-booking-policy-booking-policies.meta.ts"],"sourcesContent":["export * from './src/bookings-v1-booking-policy-booking-policies.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixBookingsV1BookingPoliciesServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/bookings/v1/booking-policies',\n destPath: '/v1/booking-policies',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/bookings/v1/booking-policies',\n destPath: '/v1/booking-policies',\n },\n ],\n _: [\n {\n srcPath: '/_api/bookings/v1/booking-policies/strictest',\n destPath: '/v1/booking-policies/strictest',\n },\n {\n srcPath: '/_api/bookings/v1/booking-policies/query',\n destPath: '/v1/booking-policies/query',\n },\n {\n srcPath: '/bookings/v1/booking-policies',\n destPath: '/v1/booking-policies',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_bookings_booking-policies';\n\n/** Creates a booking policy. */\nexport function createBookingPolicy(\n payload: object\n): RequestOptionsFactory<any> {\n function __createBookingPolicy({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'bookingPolicy.createdDate' },\n { path: 'bookingPolicy.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.v1.booking_policy',\n method: 'POST' as any,\n methodFqn: 'wix.bookings.v1.BookingPoliciesService.CreateBookingPolicy',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsV1BookingPoliciesServiceUrl({\n protoPath: '/v1/booking-policies',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'bookingPolicy.createdDate' },\n { path: 'bookingPolicy.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createBookingPolicy;\n}\n\n/** Retrieves a booking policy. */\nexport function getBookingPolicy(payload: object): RequestOptionsFactory<any> {\n function __getBookingPolicy({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.v1.booking_policy',\n method: 'GET' as any,\n methodFqn: 'wix.bookings.v1.BookingPoliciesService.GetBookingPolicy',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsV1BookingPoliciesServiceUrl({\n protoPath: '/v1/booking-policies/{bookingPolicyId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'bookingPolicy.createdDate' },\n { path: 'bookingPolicy.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getBookingPolicy;\n}\n\n/**\n * Retrieves the strictest version of each policy rule from a list of booking\n * policies.\n *\n *\n * Returns a hypothetical `bookingPolicy` object that combines the strictest\n * version of each rule. The `id` of the returned policy is `null` and no\n * corresponding `bookingPolicy` object is created. To create a new policy, you\n * can call *Create Booking Policy*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/create-booking-policy) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/create-booking-policy)).\n */\nexport function getStrictestBookingPolicy(\n payload: object\n): RequestOptionsFactory<any> {\n function __getStrictestBookingPolicy({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.v1.booking_policy',\n method: 'POST' as any,\n methodFqn:\n 'wix.bookings.v1.BookingPoliciesService.GetStrictestBookingPolicy',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsV1BookingPoliciesServiceUrl({\n protoPath: '/v1/booking-policies/strictest',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'bookingPolicy.createdDate' },\n { path: 'bookingPolicy.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getStrictestBookingPolicy;\n}\n\n/**\n * Updates a booking policy.\n *\n *\n * Each time the booking policy is updated, `revision` increments by 1.\n * The current `revision` must be specified when updating the booking policy.\n * This ensures you're working with the latest booking policy and prevents unintended overwrites.\n */\nexport function updateBookingPolicy(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateBookingPolicy({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'bookingPolicy.createdDate' },\n { path: 'bookingPolicy.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.v1.booking_policy',\n method: 'PATCH' as any,\n methodFqn: 'wix.bookings.v1.BookingPoliciesService.UpdateBookingPolicy',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsV1BookingPoliciesServiceUrl({\n protoPath: '/v1/booking-policies/{bookingPolicy.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'bookingPolicy.createdDate' },\n { path: 'bookingPolicy.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateBookingPolicy;\n}\n\n/**\n * Sets a booking policy as the default.\n *\n *\n * Also updates the site's current default policy by setting its `default`\n * attribute to `false`. If the provided policy is already the site's\n * default, the call succeeds without changing any `bookingPolicy` object.\n */\nexport function setDefaultBookingPolicy(\n payload: object\n): RequestOptionsFactory<any> {\n function __setDefaultBookingPolicy({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.v1.booking_policy',\n method: 'POST' as any,\n methodFqn:\n 'wix.bookings.v1.BookingPoliciesService.SetDefaultBookingPolicy',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsV1BookingPoliciesServiceUrl({\n protoPath: '/v1/booking-policies/{bookingPolicyId}:setDefault',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'currentDefaultBookingPolicy.createdDate' },\n { path: 'currentDefaultBookingPolicy.updatedDate' },\n { path: 'previousDefaultBookingPolicy.createdDate' },\n { path: 'previousDefaultBookingPolicy.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __setDefaultBookingPolicy;\n}\n\n/**\n * Deletes a booking policy.\n *\n *\n * You can't delete the default policy without first *setting a different policy as default*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/set-default-booking-policy) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/set-default-booking-policy)).\n */\nexport function deleteBookingPolicy(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteBookingPolicy({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.v1.booking_policy',\n method: 'DELETE' as any,\n methodFqn: 'wix.bookings.v1.BookingPoliciesService.DeleteBookingPolicy',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsV1BookingPoliciesServiceUrl({\n protoPath: '/v1/booking-policies/{bookingPolicyId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteBookingPolicy;\n}\n\n/**\n * Creates a query to retrieve a list of `bookingPolicy` objects.\n *\n * The `queryBookingPolicies()` function builds a query to retrieve a list of `bookingPolicy` objects and returns a `BookingPoliciesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/booking-policies-query-builder/find) function.\n *\n * You can refine the query by chaining `BookingPoliciesQueryBuilder` functions onto the query. `BookingPoliciesQueryBuilder` functions enable you to sort, filter, and control the results that `queryBookingPolicies()` returns.\n *\n * `queryBookingPolicies()` runs with the following `BookingPoliciesQueryBuilder` defaults that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `createdDate` in ascending order.\n *\n * The functions that are chained to `queryBookingPolicies()` are applied in the order they are called. For example, if you apply `ascending(\"waitlistPolicy.capacity\")` and then `ascending(\"name\")`, the results are sorted first by `waitlistPolicy.capacity`, and then, if there are multiple results with the same `waitlistPolicy.capacity`, the items are sorted by `name`.\n *\n * The following `BookingPoliciesQueryBuilder` functions are supported for the `queryBookingPolicies()` function. For a full description of the `bookingPolicy` object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/booking-policies-query-result/items) property in `BookingPoliciesQueryResult`.\n */\nexport function queryBookingPolicies(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryBookingPolicies({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.v1.booking_policy',\n method: 'POST' as any,\n methodFqn: 'wix.bookings.v1.BookingPoliciesService.QueryBookingPolicies',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsV1BookingPoliciesServiceUrl({\n protoPath: '/v1/booking-policies/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'bookingPolicies.createdDate' },\n { path: 'bookingPolicies.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryBookingPolicies;\n}\n\n/**\n * Counts booking policies, given the provided filtering.\n *\n *\n * See *supported filters*\n * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters))\n * for a complete list of supported filters.\n */\nexport function countBookingPolicies(\n payload: object\n): RequestOptionsFactory<any> {\n function __countBookingPolicies({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.v1.booking_policy',\n method: 'POST' as any,\n methodFqn: 'wix.bookings.v1.BookingPoliciesService.CountBookingPolicies',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsV1BookingPoliciesServiceUrl({\n protoPath: '/v1/booking-policies/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countBookingPolicies;\n}\n","/**\n * A booking policy is a set of rules that determine how customers can book a\n * service, including timeframes for booking, canceling, or rescheduling.\n */\nexport interface BookingPolicy {\n /**\n * ID of the booking policy.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Revision number, which increments by 1 each time the booking policy is updated.\n * To prevent conflicting changes, the current `revision` must be passed when\n * updating the booking policy.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the booking policy was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the booking policy was updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Name of the booking policy.\n * @maxLength 400\n */\n name?: string | null;\n /**\n * Custom description for the booking policy and whether it's displayed to the\n * participant.\n */\n customPolicyDescription?: PolicyDescription;\n /**\n * Whether the booking policy is the default.\n * @readonly\n */\n default?: boolean | null;\n /** Rule for limiting early bookings. */\n limitEarlyBookingPolicy?: LimitEarlyBookingPolicy;\n /**\n * Rule for limiting late bookings. This rule and `bookAfterStartPolicy` can't\n * be both enabled at the same time.\n */\n limitLateBookingPolicy?: LimitLateBookingPolicy;\n /**\n * Rule for booking after the start of a session or course. This rule and\n * `limitLateBookingPolicy` can't be both enabled at the same time.\n */\n bookAfterStartPolicy?: BookAfterStartPolicy;\n /** Rule for canceling a booking. */\n cancellationPolicy?: CancellationPolicy;\n /** Rule for rescheduling a booking. */\n reschedulePolicy?: ReschedulePolicy;\n /** Waitlist rule for the service. */\n waitlistPolicy?: WaitlistPolicy;\n /** Rule for participants per booking. */\n participantsPolicy?: ParticipantsPolicy;\n /** Rules for cancellation fees. */\n cancellationFeePolicy?: CancellationFeePolicy;\n /** Rule for saving credit card details. */\n saveCreditCardPolicy?: SaveCreditCardPolicy;\n /** Extensions enabling users to save custom data related to the booking policies. */\n extendedFields?: ExtendedFields;\n}\n\n/** A description of the booking policy to display to participants. */\nexport interface PolicyDescription {\n /**\n * Whether the description is displayed to the participant. `true` means the\n * description is displayed.\n *\n * Default: `false`\n */\n enabled?: boolean;\n /**\n * Description of the booking policy.\n *\n * Default: Empty\n * Max length: 2500 characters\n * @maxLength 2500\n */\n description?: string;\n}\n\n/** The rule for limiting early bookings. */\nexport interface LimitEarlyBookingPolicy {\n /**\n * Whether there's a limit about how early a customer can book. `false` means there's\n * no limit to the earliest supported booking time.\n *\n * Default: `false`\n */\n enabled?: boolean;\n /**\n * Maximum number of minutes before the start of a session or course customers can book.\n * Must be greater than `limitLateBookingPolicy.latestBookingInMinutes`.\n *\n * Default: `10080` minutes (7 days)\n * Min: `1` minute\n * @min 1\n */\n earliestBookingInMinutes?: number;\n}\n\n/**\n * Rule limiting late bookings.\n *\n * This rule and `bookAfterStartPolicy` can't be both enabled at the same time.\n */\nexport interface LimitLateBookingPolicy {\n /**\n * Whether there's a limit about how late customers can book. `false` means\n * customers can book up to the last minute. If specified as `true`,\n * `bookAfterStartPolicy.enabled` must be `false`.\n *\n * Default: `false`\n */\n enabled?: boolean;\n /**\n * Minimum number of minutes before the start of the session customers can book.\n * For courses, this is relative to the start time of the next session and doesn't\n * consider course sessions in the past. This value must be less than\n * `limitEarlyBookingPolicy.earliestBookingInMinutes`.\n *\n * Default: `1440` minutes (1 day)\n * Min: `1` minute\n * @min 1\n */\n latestBookingInMinutes?: number;\n}\n\n/**\n * The rule for whether a session can be booked after the start of the schedule.\n * This rule and `LimitLateBookingPolicy` cannot be enabled at the same time. So if this rule\n * is enabled, the `LimitLateBookingPolicy` rule must be disabled.\n */\nexport interface BookAfterStartPolicy {\n /**\n * Whether customers can book after the session has started. `true` means\n * customers can book after the session has started. For courses, this refers to\n * the start of the last course session. If specified as `true`,\n * `limitLateBookingPolicy.enabled` must be `false`.\n *\n * Default: `false`\n */\n enabled?: boolean;\n}\n\n/** The rule for canceling a booked session. */\nexport interface CancellationPolicy {\n /**\n * Whether customers can cancel the booking. `true` means customers can cancel\n * the booking.\n *\n * Default: `false`\n */\n enabled?: boolean;\n /**\n * Whether there's a limit on the latest cancellation time. `false` means customers\n * can cancel the booking until the last minute before the course or session starts.\n *\n * Default: `false`\n */\n limitLatestCancellation?: boolean;\n /**\n * Minimum number of minutes before the start of the session customers can cancel.\n * For courses, this refers to the start of the first course session.\n *\n * Default: `1440` minutes (1 day)\n * Min: `1` minute\n * @min 1\n */\n latestCancellationInMinutes?: number;\n}\n\n/** The rule for rescheduling a booked session. */\nexport interface ReschedulePolicy {\n /**\n * Whether customers can reschedule a booking for an appointment-based service.\n * `true` means customers can reschedule.\n *\n * Default: `false`\n */\n enabled?: boolean;\n /**\n * Whether there's a limit on the latest supported rescheduling time. `false`\n * means customers can reschedule until the last minute before the session start.\n *\n * Default: `false`\n */\n limitLatestReschedule?: boolean;\n /**\n * Minimum number of minutes before the session start session customers can\n * reschedule their booking.\n *\n * Default: `1440` minutes (1 day)\n * Min: `1` minute\n * @min 1\n */\n latestRescheduleInMinutes?: number;\n}\n\n/** The rule for the waitlist. */\nexport interface WaitlistPolicy {\n /**\n * Whether the service has a waitlist. `true` means there's a waitlist.\n *\n * Default: `false`\n */\n enabled?: boolean;\n /**\n * Number of spots in the waitlist.\n *\n * Default: `10` spots\n * Min: `1` spot\n * @min 1\n */\n capacity?: number;\n /**\n * Time in minutes the potential customer is given to book after they've been\n * notified that a spot has opened up for them. If they don't respond in time,\n * the open spot is offered to the next potential customer on the waitlist.\n *\n * Default: `10` minutes\n * Min: `1` minute\n * @min 1\n */\n reservationTimeInMinutes?: number;\n}\n\n/** The rule for the maximum number of participants per booking. */\nexport interface ParticipantsPolicy {\n /**\n * Maximum number of participants per booking.\n *\n * Default: `1` participant\n * Min: `1` participant\n * @min 1\n */\n maxParticipantsPerBooking?: number;\n}\n\n/** The rule regarding the allocation of resources (e.g. staff members). */\nexport interface ResourcesPolicy {\n /**\n * Whether the customer must select a resource, for example a staff member, when\n * booking. `false` means the customer can book without selecting a resource.\n *\n * Default: `false`\n */\n enabled?: boolean;\n /**\n * Whether Wix Bookings automatically assigns a resource, for example a *staff member*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/staff-members/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/introduction)),\n * to the booking. `false` means the customer must select the resource\n * themselves and Wix Bookings doesn't assign it automatically.\n *\n * Default: `false`\n */\n autoAssignAllowed?: boolean;\n}\n\nexport interface CancellationFeePolicy {\n /**\n * Whether customers must pay a cancellation fee when canceling a booking.\n *\n * Default: `false`\n */\n enabled?: boolean;\n /**\n * Time windows relative to the session start during which customers can cancel\n * their booking. Each window includes details about the fee for canceling within it.\n * @maxSize 2\n */\n cancellationWindows?: CancellationWindow[];\n /**\n * Whether Wix automatically charges the cancellation fee from the customer once\n * they cancel their booking.\n *\n * Default: `true`\n */\n autoCollectFeeEnabled?: boolean | null;\n}\n\n/**\n * Money.\n * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.\n */\nexport interface Money {\n /**\n * Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.\n * @format DECIMAL_VALUE\n * @decimalValue options { gt:0, maxScale:2 }\n */\n value?: string;\n /**\n * Currency code. Must be valid ISO 4217 currency code (e.g., USD).\n * @format CURRENCY\n * @readonly\n */\n currency?: string;\n /**\n * Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative.\n * @maxLength 50\n */\n formattedValue?: string | null;\n}\n\nexport interface CancellationWindow extends CancellationWindowFeeOneOf {\n /** Fixed amount customers must pay when canceling the booking within this window. */\n amount?: Money;\n /**\n * Percentage of the booking price customers must pay when canceling within\n * this window.\n *\n * Min: `0.01` percent\n * Max: `100` percent\n * @decimalValue options { gt:0, lte:100, maxScale:2 }\n */\n percentage?: string;\n /**\n * Start of the cancellation window in minutes before the session start. For\n * courses, this refers to the start of the first course session.\n * @min 1\n */\n startInMinutes?: number | null;\n}\n\n/** @oneof */\nexport interface CancellationWindowFeeOneOf {\n /** Fixed amount customers must pay when canceling the booking within this window. */\n amount?: Money;\n /**\n * Percentage of the booking price customers must pay when canceling within\n * this window.\n *\n * Min: `0.01` percent\n * Max: `100` percent\n * @decimalValue options { gt:0, lte:100, maxScale:2 }\n */\n percentage?: string;\n}\n\nexport interface SaveCreditCardPolicy {\n /**\n * Whether Wix stores credit card details of the customer. Storing the details\n * allows Wix to prefill the *eCommerce checkout*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction))\n * and thus increases the likelihood that the customer completes the booking\n * process.\n *\n * Default: `false`\n */\n enabled?: boolean;\n}\n\n/**\n * Policy for determining how staff members are sorted and selected during the booking process.\n * This affects which staff member is chosen when multiple staff members are available for a service.\n */\nexport interface StaffSortingPolicy extends StaffSortingPolicyOptionsOneOf {\n rankingOptions?: RankingOptions;\n customOptions?: CustomOptions;\n /**\n * Method used for sorting and selecting staff members.\n *\n * Default: `RANDOM`\n */\n sortingMethodType?: SortingMethodTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface StaffSortingPolicyOptionsOneOf {\n rankingOptions?: RankingOptions;\n customOptions?: CustomOptions;\n}\n\n/** Order for ranking-based staff selection. */\nexport enum RankingOrder {\n UNKNOWN_RANKING_ORDER = 'UNKNOWN_RANKING_ORDER',\n /** Staff members with lower priority values are selected first. */\n LOWEST_TO_HIGHEST = 'LOWEST_TO_HIGHEST',\n /** Staff members with higher priority values are selected first. */\n HIGHEST_TO_LOWEST = 'HIGHEST_TO_LOWEST',\n}\n\n/** @enumType */\nexport type RankingOrderWithLiterals =\n | RankingOrder\n | 'UNKNOWN_RANKING_ORDER'\n | 'LOWEST_TO_HIGHEST'\n | 'HIGHEST_TO_LOWEST';\n\n/** Method used to sort and select staff members. */\nexport enum SortingMethodType {\n UNKNOWN_SORTING_METHOD_TYPE = 'UNKNOWN_SORTING_METHOD_TYPE',\n /** Staff members are selected randomly from available options. */\n RANDOM = 'RANDOM',\n /** Staff members are selected based on their priority ranking. */\n RANKING = 'RANKING',\n /**\n * Staff members are selected using a custom implementation provided by SortStaffSPI.\n * This allows third-party apps to implement custom staff sorting logic.\n */\n CUSTOM = 'CUSTOM',\n}\n\n/** @enumType */\nexport type SortingMethodTypeWithLiterals =\n | SortingMethodType\n | 'UNKNOWN_SORTING_METHOD_TYPE'\n | 'RANDOM'\n | 'RANKING'\n | 'CUSTOM';\n\n/**\n * Configuration options for ranking-based staff selection.\n * Used when `sorting_method_type` is set to `RANKING`.\n */\nexport interface RankingOptions {\n /**\n * Order in which staff members are sorted by their priority ranking.\n *\n * Default: `LOWEST_TO_HIGHEST`\n */\n order?: RankingOrderWithLiterals;\n}\n\n/**\n * Configuration options for custom staff selection methods.\n * Used when `sorting_method_type` is set to `CUSTOM`.\n */\nexport interface CustomOptions {\n /**\n * ID of the custom sorting method implemented in SortStaffSPI.\n * This identifies which custom sorting algorithm to use.\n * @format GUID\n */\n implementationId?: string;\n /**\n * ID of the app that provides the custom sorting method.\n * @format GUID\n */\n appId?: string;\n}\n\n/** Policy for integrating with Intake form. Stores which form to use and when to present it. */\nexport interface IntakeFormPolicy {\n /**\n * ID of the form used as an intake form for the service.\n * @format GUID\n */\n formId?: string | null;\n /**\n * Whether the waiver must be completed before bookings.\n * If `false`, the waiver is handled after bookings.\n * Default: `false`\n */\n requireBeforeBook?: boolean;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\n/** This event is triggered when a different booking policy has been set as the default policy. */\nexport interface DefaultBookingPolicySet {\n /** The new default booking policy. */\n currentDefaultBookingPolicy?: BookingPolicy;\n /**\n * The booking policy that was the default before this endpoint was called.\n * This field will be empty if there was no default booking policy before this method was called.\n */\n previousDefaultBookingPolicy?: BookingPolicy;\n}\n\nexport interface CreateBookingPolicyRequest {\n /** Booking policy to create. */\n bookingPolicy: BookingPolicy;\n}\n\nexport interface CreateBookingPolicyResponse {\n /** Created booking policy. */\n bookingPolicy?: BookingPolicy;\n}\n\nexport interface GetBookingPolicyRequest {\n /**\n * ID of the booking policy to retrieve.\n * @format GUID\n */\n bookingPolicyId: string;\n}\n\nexport interface GetBookingPolicyResponse {\n /** Retrieved booking policy. */\n bookingPolicy?: BookingPolicy;\n}\n\nexport interface GetStrictestBookingPolicyRequest {\n /**\n * IDs of the booking policies for which to retrieve the strictest rules for.\n * @format GUID\n * @maxSize 100\n */\n bookingPolicyIds: string[];\n}\n\nexport interface GetStrictestBookingPolicyResponse {\n /**\n * Hypothetical `bookingPolicy` object that combines the strictest version of\n * each rule. `bookingPolicy.id` is `null` and the returned object isn't actually\n * created. To create a new policy, you can call *Create Booking Policy*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/create-booking-policy) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/create-booking-policy)).\n */\n bookingPolicy?: BookingPolicy;\n}\n\nexport interface UpdateBookingPolicyRequest {\n /** Booking policy to update. */\n bookingPolicy: BookingPolicy;\n}\n\nexport interface UpdateBookingPolicyResponse {\n /** Updated booking policy. */\n bookingPolicy?: BookingPolicy;\n}\n\nexport interface SetDefaultBookingPolicyRequest {\n /**\n * ID of the booking policy that's set as default.\n * @format GUID\n */\n bookingPolicyId: string;\n}\n\nexport interface SetDefaultBookingPolicyResponse {\n /** New default booking policy. */\n currentDefaultBookingPolicy?: BookingPolicy;\n /**\n * Previous default booking policy. Not available if the provided booking policy\n * was already the default.\n */\n previousDefaultBookingPolicy?: BookingPolicy;\n}\n\nexport interface DeleteBookingPolicyRequest {\n /**\n * ID of the booking policy to delete.\n * @format GUID\n */\n bookingPolicyId: string;\n}\n\nexport interface DeleteBookingPolicyResponse {}\n\nexport interface QueryBookingPoliciesRequest {\n /**\n * The query by which to select booking policies. See\n * [the supported filters article](https://dev.wix.com/docs/rest/business-solutions/bookings/services/booking-policy/supported-filters)\n * for details.\n */\n query: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 10\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryBookingPoliciesResponse {\n /** Retrieved booking policies. */\n bookingPolicies?: BookingPolicy[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor pointing to next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface CountBookingPoliciesRequest {\n /**\n * Filter to base the count on. See\n * supported filters*\n * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters))\n * for details.\n */\n filter?: Record<string, any> | null;\n}\n\nexport interface CountBookingPoliciesResponse {\n /** Number of booking policies matching the provided filter. */\n count?: number;\n}\n\nexport interface UpdateAllPoliciesRequest {\n /** Fields to set to all booking policies. */\n bookingPolicy?: BookingPolicy;\n}\n\nexport interface UpdateAllPoliciesResponse {}\n\nexport interface CreateMissingDefaultPolicyRequest {}\n\nexport interface CreateMissingDefaultPolicyResponse {\n /** The default booking policy. */\n defaultBookingPolicy?: BookingPolicy;\n /** Whether a new default policy was created. */\n wasANewPolicyCreated?: boolean;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\n/** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */\nexport interface SitePropertiesNotification {\n /** The site ID for which this update notification applies. */\n metasiteId?: string;\n /** The actual update event. */\n event?: SitePropertiesEvent;\n /**\n * A convenience set of mappings from the MetaSite ID to its constituent services.\n * @maxSize 500\n */\n translations?: Translation[];\n /** Context of the notification */\n changeContext?: ChangeContext;\n}\n\n/** The actual update event for a particular notification. */\nexport interface SitePropertiesEvent {\n /** Version of the site's properties represented by this update. */\n version?: number;\n /** Set of properties that were updated - corresponds to the fields in \"properties\". */\n fields?: string[];\n /** Updated properties. */\n properties?: Properties;\n}\n\nexport interface Properties {\n /** Site categories. */\n categories?: Categories;\n /** Site locale. */\n locale?: Locale;\n /**\n * Site language.\n *\n * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\n */\n language?: string | null;\n /**\n * Site currency format used to bill customers.\n *\n * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n */\n paymentCurrency?: string | null;\n /** Timezone in `America/New_York` format. */\n timeZone?: string | null;\n /** Email address. */\n email?: string | null;\n /** Phone number. */\n phone?: string | null;\n /** Fax number. */\n fax?: string | null;\n /** Address. */\n address?: Address;\n /** Site display name. */\n siteDisplayName?: string | null;\n /** Business name. */\n businessName?: string | null;\n /** Path to the site's logo in Wix Media (without Wix Media base URL). */\n logo?: string | null;\n /** Site description. */\n description?: string | null;\n /**\n * Business schedule. Regular and exceptional time periods when the business is open or the service is available.\n *\n * __Note:__ Not supported by Wix Bookings.\n */\n businessSchedule?: BusinessSchedule;\n /** Supported languages of a site and the primary language. */\n multilingual?: Multilingual;\n /** Cookie policy the Wix user defined for their site (before the site visitor interacts with/limits it). */\n consentPolicy?: ConsentPolicy;\n /**\n * Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`.\n *\n * Site business type.\n */\n businessConfig?: string | null;\n /** External site URL that uses Wix as its headless business solution. */\n externalSiteUrl?: string | null;\n /** Track clicks analytics. */\n trackClicksAnalytics?: boolean;\n}\n\nexport interface Categories {\n /** Primary site category. */\n primary?: string;\n /**\n * Secondary site category.\n * @maxSize 50\n */\n secondary?: string[];\n /** Business Term Id */\n businessTermId?: string | null;\n}\n\nexport interface Locale {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */\n country?: string;\n}\n\nexport interface Address {\n /** Street name. */\n street?: string;\n /** City name. */\n city?: string;\n /** Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */\n country?: string;\n /** State. */\n state?: string;\n /**\n * Zip or postal code.\n * @maxLength 20\n */\n zip?: string;\n /** Extra information to be displayed in the address. */\n hint?: AddressHint;\n /** Whether this address represents a physical location. */\n isPhysical?: boolean;\n /** Google-formatted version of this address. */\n googleFormattedAddress?: string;\n /** Street number. */\n streetNumber?: string;\n /** Apartment number. */\n apartmentNumber?: string;\n /** Geographic coordinates of location. */\n coordinates?: GeoCoordinates;\n}\n\n/**\n * Extra information on displayed addresses.\n * This is used for display purposes. Used to add additional data about the address, such as \"In the passage\".\n * Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string.\n */\nexport interface AddressHint {\n /** Extra text displayed next to, or instead of, the actual address. */\n text?: string;\n /** Where the extra text should be displayed. */\n placement?: PlacementTypeWithLiterals;\n}\n\n/** Where the extra text should be displayed: before, after or instead of the actual address. */\nexport enum PlacementType {\n BEFORE = 'BEFORE',\n AFTER = 'AFTER',\n REPLACE = 'REPLACE',\n}\n\n/** @enumType */\nexport type PlacementTypeWithLiterals =\n | PlacementType\n | 'BEFORE'\n | 'AFTER'\n | 'REPLACE';\n\n/** Geocoordinates for a particular address. */\nexport interface GeoCoordinates {\n /** Latitude of the location. Must be between -90 and 90. */\n latitude?: number;\n /** Longitude of the location. Must be between -180 and 180. */\n longitude?: number;\n}\n\n/** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */\nexport interface BusinessSchedule {\n /**\n * Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods.\n * @maxSize 100\n */\n periods?: TimePeriod[];\n /**\n * Exceptions to the business's regular hours. The business can be open or closed during the exception.\n * @maxSize 100\n */\n specialHourPeriod?: SpecialHourPeriod[];\n}\n\n/** Weekly recurring time periods when the business is regularly open or the service is available. */\nexport interface TimePeriod {\n /** Day of the week the period starts on. */\n openDay?: DayOfWeekWithLiterals;\n /**\n * Time the period starts in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n * midnight at the end of the specified day.\n */\n openTime?: string;\n /** Day of the week the period ends on. */\n closeDay?: DayOfWeekWithLiterals;\n /**\n * Time the period ends in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n * midnight at the end of the specified day.\n *\n * __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`.\n */\n closeTime?: string;\n}\n\n/** Enumerates the days of the week. */\nexport enum DayOfWeek {\n MONDAY = 'MONDAY',\n TUESDAY = 'TUESDAY',\n WEDNESDAY = 'WEDNESDAY',\n THURSDAY = 'THURSDAY',\n FRIDAY = 'FRIDAY',\n SATURDAY = 'SATURDAY',\n SUNDAY = 'SUNDAY',\n}\n\n/** @enumType */\nexport type DayOfWeekWithLiterals =\n | DayOfWeek\n | 'MONDAY'\n | 'TUESDAY'\n | 'WEDNESDAY'\n | 'THURSDAY'\n | 'FRIDAY'\n | 'SATURDAY'\n | 'SUNDAY';\n\n/** Exception to the business's regular hours. The business can be open or closed during the exception. */\nexport interface SpecialHourPeriod {\n /** Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n startDate?: string;\n /** End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n endDate?: string;\n /**\n * Whether the business is closed (or the service is not available) during the exception.\n *\n * Default: `true`.\n */\n isClosed?: boolean;\n /** Additional info about the exception. For example, \"We close earlier on New Year's Eve.\" */\n comment?: string;\n}\n\nexport interface Multilingual {\n /**\n * Supported languages list.\n * @maxSize 200\n */\n supportedLanguages?: SupportedLanguage[];\n /** Whether to redirect to user language. */\n autoRedirect?: boolean;\n}\n\nexport interface SupportedLanguage {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Locale. */\n locale?: Locale;\n /** Whether the supported language is the primary language for the site. */\n isPrimary?: boolean;\n /** Language icon. */\n countryCode?: string;\n /** How the language will be resolved. For internal use. */\n resolutionMethod?: ResolutionMethodWithLiterals;\n /** Whether the supported language is the primary language for site visitors. */\n isVisitorPrimary?: boolean | null;\n}\n\nexport enum ResolutionMethod {\n QUERY_PARAM = 'QUERY_PARAM',\n SUBDOMAIN = 'SUBDOMAIN',\n SUBDIRECTORY = 'SUBDIRECTORY',\n}\n\n/** @enumType */\nexport type ResolutionMethodWithLiterals =\n | ResolutionMethod\n | 'QUERY_PARAM'\n | 'SUBDOMAIN'\n | 'SUBDIRECTORY';\n\nexport interface ConsentPolicy {\n /** Whether the site uses cookies that are essential to site operation. Always `true`. */\n essential?: boolean | null;\n /** Whether the site uses cookies that affect site performance and other functional measurements. */\n functional?: boolean | null;\n /** Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). */\n analytics?: boolean | null;\n /** Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. */\n advertising?: boolean | null;\n /** CCPA compliance flag. */\n dataToThirdParty?: boolean | null;\n}\n\n/** A single mapping from the MetaSite ID to a particular service. */\nexport interface Translation {\n /** The service type. */\n serviceType?: string;\n /** The application definition ID; this only applies to services of type ThirdPartyApps. */\n appDefId?: string;\n /** The instance ID of the service. */\n instanceId?: string;\n}\n\nexport interface ChangeContext extends ChangeContextPayloadOneOf {\n /** Properties were updated. */\n propertiesChange?: PropertiesChange;\n /** Default properties were created on site creation. */\n siteCreated?: V4SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\n/** @oneof */\nexport interface ChangeContextPayloadOneOf {\n /** Properties were updated. */\n propertiesChange?: PropertiesChange;\n /** Default properties were created on site creation. */\n siteCreated?: V4SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\nexport interface PropertiesChange {}\n\nexport interface V4SiteCreated {\n /** Origin template site id. */\n originTemplateId?: string | null;\n}\n\nexport interface SiteCloned {\n /** Origin site id. */\n originMetaSiteId?: string;\n}\n\nexport interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /**\n * A meta site id.\n * @format GUID\n */\n metaSiteId?: string;\n /** A meta site version. Monotonically increasing. */\n version?: string;\n /** A timestamp of the event. */\n timestamp?: string;\n /**\n * TODO(meta-site): Change validation once validations are disabled for consumers\n * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659\n * @maxSize 4000\n */\n assets?: Asset[];\n}\n\n/** @oneof */\nexport interface MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n}\n\nexport interface Asset {\n /**\n * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * An instance id. For legacy reasons may be UUID or a string.\n * @maxLength 200\n */\n instanceId?: string;\n /** An application state. */\n state?: StateWithLiterals;\n}\n\nexport enum State {\n UNKNOWN = 'UNKNOWN',\n ENABLED = 'ENABLED',\n DISABLED = 'DISABLED',\n PENDING = 'PENDING',\n DEMO = 'DEMO',\n}\n\n/** @enumType */\nexport type StateWithLiterals =\n | State\n | 'UNKNOWN'\n | 'ENABLED'\n | 'DISABLED'\n | 'PENDING'\n | 'DEMO';\n\nexport interface SiteCreated {\n /**\n * A template identifier (empty if not created from a template).\n * @maxLength 36\n */\n originTemplateId?: string;\n /**\n * An account id of the owner.\n * @format GUID\n */\n ownerId?: string;\n /** A context in which meta site was created. */\n context?: SiteCreatedContextWithLiterals;\n /**\n * A meta site id from which this site was created.\n *\n * In case of a creation from a template it's a template id.\n * In case of a site duplication (\"Save As\" in dashboard or duplicate in UM) it's an id of a source site.\n * @format GUID\n */\n originMetaSiteId?: string | null;\n /**\n * A meta site name (URL slug).\n * @maxLength 20\n */\n siteName?: string;\n /** A namespace. */\n namespace?: NamespaceWithLiterals;\n}\n\nexport enum SiteCreatedContext {\n /** A valid option, we don't expose all reasons why site might be created. */\n OTHER = 'OTHER',\n /** A meta site was created from template. */\n FROM_TEMPLATE = 'FROM_TEMPLATE',\n /** A meta site was created by copying of the transfferred meta site. */\n DUPLICATE_BY_SITE_TRANSFER = 'DUPLICATE_BY_SITE_TRANSFER',\n /** A copy of existing meta site. */\n DUPLICATE = 'DUPLICATE',\n /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */\n OLD_SITE_TRANSFER = 'OLD_SITE_TRANSFER',\n /** deprecated A meta site was created for Flash editor. */\n FLASH = 'FLASH',\n}\n\n/** @enumType */\nexport type SiteCreatedContextWithLiterals =\n | SiteCreatedContext\n | 'OTHER'\n | 'FROM_TEMPLATE'\n | 'DUPLICATE_BY_SITE_TRANSFER'\n | 'DUPLICATE'\n | 'OLD_SITE_TRANSFER'\n | 'FLASH';\n\nexport enum Namespace {\n UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */\n WIX = 'WIX',\n /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n SHOUT_OUT = 'SHOUT_OUT',\n /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ALBUMS = 'ALBUMS',\n /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n HOTELS = 'HOTELS',\n /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n CLUBS = 'CLUBS',\n /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_SITE = 'DEV_SITE',\n /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n LOGOS = 'LOGOS',\n /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n VIDEO_MAKER = 'VIDEO_MAKER',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n /**\n * A draft created by HTML editor on open. Upon \"first save\" it will be moved to be of WIX domain.\n *\n * Meta site with this namespace will *not* be shown in a user's site list by default.\n */\n HTML_DRAFT = 'HTML_DRAFT',\n /**\n * the user-journey for Fitness users who want to start from managing their business instead of designing their website.\n * Will be accessible from Site List and will not have a website app.\n * Once the user attaches a site, the site will become a regular wixsite.\n */\n SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n /** Belongs to \"strategic products\" company. Supports new product in the creator's economy space. */\n CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n /** It is to be used in the Business First efforts. */\n DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n /** Bookings business flow with no site. */\n ANYWHERE = 'ANYWHERE',\n /** Namespace for Headless Backoffice with no editor */\n HEADLESS = 'HEADLESS',\n /**\n * Namespace for master site that will exist in parent account that will be referenced by subaccounts\n * The site will be used for account level CSM feature for enterprise\n */\n ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n /** Rise.ai Siteless account management for Gift Cards and Store Credit. */\n RISE = 'RISE',\n /**\n * As part of the branded app new funnel, users now can create a meta site that will be branded app first.\n * There's a blank site behind the scene but it's blank).\n * The Mobile company will be the owner of this namespace.\n */\n BRANDED_FIRST = 'BRANDED_FIRST',\n /** Nownia.com Siteless account management for Ai Scheduling Assistant. */\n NOWNIA = 'NOWNIA',\n /**\n * UGC Templates are templates that are created by users for personal use and to sale to other users.\n * The Partners company owns this namespace.\n */\n UGC_TEMPLATE = 'UGC_TEMPLATE',\n /** Codux Headless Sites */\n CODUX = 'CODUX',\n /** Bobb - AI Design Creator. */\n MEDIA_DESIGN_CREATOR = 'MEDIA_DESIGN_CREATOR',\n /**\n * Shared Blog Site is a unique single site across Enterprise account,\n * This site will hold all Blog posts related to the Marketing product.\n */\n SHARED_BLOG_ENTERPRISE = 'SHARED_BLOG_ENTERPRISE',\n /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_FORMS = 'STANDALONE_FORMS',\n /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_EVENTS = 'STANDALONE_EVENTS',\n /** MIMIR - Siteless account for MIMIR Ai Job runner. */\n MIMIR = 'MIMIR',\n /** Wix Twins platform. */\n TWINS = 'TWINS',\n /** Wix Nano. */\n NANO = 'NANO',\n}\n\n/** @enumType */\nexport type NamespaceWithLiterals =\n | Namespace\n | 'UNKNOWN_NAMESPACE'\n | 'WIX'\n | 'SHOUT_OUT'\n | 'ALBUMS'\n | 'WIX_STORES_TEST_DRIVE'\n | 'HOTELS'\n | 'CLUBS'\n | 'ONBOARDING_DRAFT'\n | 'DEV_SITE'\n | 'LOGOS'\n | 'VIDEO_MAKER'\n | 'PARTNER_DASHBOARD'\n | 'DEV_CENTER_COMPANY'\n | 'HTML_DRAFT'\n | 'SITELESS_BUSINESS'\n | 'CREATOR_ECONOMY'\n | 'DASHBOARD_FIRST'\n | 'ANYWHERE'\n | 'HEADLESS'\n | 'ACCOUNT_MASTER_CMS'\n | 'RISE'\n | 'BRANDED_FIRST'\n | 'NOWNIA'\n | 'UGC_TEMPLATE'\n | 'CODUX'\n | 'MEDIA_DESIGN_CREATOR'\n | 'SHARED_BLOG_ENTERPRISE'\n | 'STANDALONE_FORMS'\n | 'STANDALONE_EVENTS'\n | 'MIMIR'\n | 'TWINS'\n | 'NANO';\n\n/** Site transferred to another user. */\nexport interface SiteTransferred {\n /**\n * A previous owner id (user that transfers meta site).\n * @format GUID\n */\n oldOwnerId?: string;\n /**\n * A new owner id (user that accepts meta site).\n * @format GUID\n */\n newOwnerId?: string;\n}\n\n/** Soft deletion of the meta site. Could be restored. */\nexport interface SiteDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface DeleteContext {\n /** When the meta site was deleted. */\n dateDeleted?: Date | null;\n /** A status. */\n deleteStatus?: DeleteStatusWithLiterals;\n /**\n * A reason (flow).\n * @maxLength 255\n */\n deleteOrigin?: string;\n /**\n * A service that deleted it.\n * @maxLength 255\n */\n initiatorId?: string | null;\n}\n\nexport enum DeleteStatus {\n UNKNOWN = 'UNKNOWN',\n TRASH = 'TRASH',\n DELETED = 'DELETED',\n PENDING_PURGE = 'PENDING_PURGE',\n PURGED_EXTERNALLY = 'PURGED_EXTERNALLY',\n}\n\n/** @enumType */\nexport type DeleteStatusWithLiterals =\n | DeleteStatus\n | 'UNKNOWN'\n | 'TRASH'\n | 'DELETED'\n | 'PENDING_PURGE'\n | 'PURGED_EXTERNALLY';\n\n/** Restoration of the meta site. */\nexport interface SiteUndeleted {}\n\n/** First publish of a meta site. Or subsequent publish after unpublish. */\nexport interface SitePublished {}\n\nexport interface SiteUnpublished {\n /**\n * A list of URLs previously associated with the meta site.\n * @maxLength 4000\n * @maxSize 10000\n */\n urls?: string[];\n}\n\nexport interface SiteMarkedAsTemplate {}\n\nexport interface SiteMarkedAsWixSite {}\n\n/**\n * Represents a service provisioned a site.\n *\n * Note on `origin_instance_id`:\n * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.\n * This is because of the following scenario:\n *\n * Imagine you have a template where a third-party application (TPA) includes some stub data,\n * such as a product catalog. When you create a site from this template, you inherit this\n * default product catalog. However, if the template's product catalog is modified,\n * your site will retain the catalog as it was at the time of site creation. This ensures that\n * your site remains consistent with what you initially received and does not include any\n * changes made to the original template afterward.\n * To ensure this, the TPA on the template gets a new instance_id.\n */\nexport interface ServiceProvisioned {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * An instance id from which this instance is originated.\n * @maxLength 36\n */\n originInstanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n /**\n * The origin meta site id\n * @format GUID\n */\n originMetaSiteId?: string | null;\n}\n\nexport interface ServiceRemoved {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n}\n\n/** Rename of the site. Meaning, free public url has been changed as well. */\nexport interface SiteRenamed {\n /**\n * A new meta site name (URL slug).\n * @maxLength 20\n */\n newSiteName?: string;\n /**\n * A previous meta site name (URL slug).\n * @maxLength 255\n */\n oldSiteName?: string;\n}\n\n/**\n * Hard deletion of the meta site.\n *\n * Could not be restored. Therefore it's desirable to cleanup data.\n */\nexport interface SiteHardDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface NamespaceChanged {\n /** A previous namespace. */\n oldNamespace?: NamespaceWithLiterals;\n /** A new namespace. */\n newNamespace?: NamespaceWithLiterals;\n}\n\n/** Assigned Studio editor */\nexport interface StudioAssigned {}\n\n/** Unassigned Studio editor */\nexport interface StudioUnassigned {}\n\n/**\n * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.\n *\n * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up\n * with sites and its urls, you need to listen to another topic/event. Read about it:\n *\n * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service\n */\nexport interface SiteUrlChanged {}\n\n/**\n * Used at the end of the deletion flow for both draft sites and when a user deletes a site.\n * Consumed by other teams to remove relevant data.\n */\nexport interface SitePurgedExternally {\n /**\n * @maxLength 2048\n * @maxSize 100\n * @deprecated\n * @targetRemovalDate 2025-04-15\n */\n appDefId?: string[];\n}\n\n/** Assigned Odeditor */\nexport interface OdeditorAssigned {}\n\n/** Unassigned Odeditor */\nexport interface OdeditorUnassigned {}\n\n/** Assigned Picasso editor */\nexport interface PicassoAssigned {}\n\n/** Unassigned Picasso */\nexport interface PicassoUnassigned {}\n\n/** Assigned Wixel */\nexport interface WixelAssigned {}\n\n/** Unassigned Wixel */\nexport interface WixelUnassigned {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n/** @docsIgnore */\nexport type CreateBookingPolicyValidationErrors =\n | {\n ruleName?: 'BOTH_LATE_AND_AFTER_START_POLICIES_NOT_ALLOWED';\n }\n | {\n ruleName?: 'INVALID_BOOKING_WINDOW';\n }\n | {\n ruleName?: 'CANCELLATION_FEE_WITHOUT_CREDIT_CARD';\n }\n | {\n ruleName?: 'CANCELLATION_FEE_WITHOUT_DESCRIPTION';\n }\n | {\n ruleName?: 'INVALID_CANCELLATION_WINDOWS_ORDER';\n }\n | {\n ruleName?: 'EMPTY_CANCELLATION_WINDOWS_LIST';\n };\n/** @docsIgnore */\nexport type UpdateBookingPolicyValidationErrors =\n | {\n ruleName?: 'BOTH_LATE_AND_AFTER_START_POLICIES_NOT_ALLOWED';\n }\n | {\n ruleName?: 'INVALID_BOOKING_WINDOW';\n }\n | {\n ruleName?: 'CANCELLATION_FEE_WITHOUT_CREDIT_CARD';\n }\n | {\n ruleName?: 'CANCELLATION_FEE_WITHOUT_DESCRIPTION';\n }\n | {\n ruleName?: 'INVALID_CANCELLATION_WINDOWS_ORDER';\n }\n | {\n ruleName?: 'EMPTY_CANCELLATION_WINDOWS_LIST';\n };\n/** @docsIgnore */\nexport type DeleteBookingPolicyApplicationErrors = {\n code?: 'DEFAULT_POLICY_CANNOT_BE_DELETED';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixBookingsV1BookingPolicy from './bookings-v1-booking-policy-booking-policies.http.js';\nimport * as ambassadorWixBookingsV1BookingPolicyTypes from './bookings-v1-booking-policy-booking-policies.types.js';\nimport * as ambassadorWixBookingsV1BookingPolicyUniversalTypes from './bookings-v1-booking-policy-booking-policies.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createBookingPolicy(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.CreateBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyTypes.CreateBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.CreateBookingPolicyResponse,\n ambassadorWixBookingsV1BookingPolicyTypes.CreateBookingPolicyResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV1BookingPolicy.createBookingPolicy(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/booking-policies',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getBookingPolicy(): __PublicMethodMetaInfo<\n 'GET',\n { bookingPolicyId: string },\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.GetBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyTypes.GetBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.GetBookingPolicyResponse,\n ambassadorWixBookingsV1BookingPolicyTypes.GetBookingPolicyResponse\n> {\n const payload = { bookingPolicyId: ':bookingPolicyId' } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV1BookingPolicy.getBookingPolicy(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/booking-policies/{bookingPolicyId}',\n pathParams: { bookingPolicyId: 'bookingPolicyId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getStrictestBookingPolicy(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.GetStrictestBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyTypes.GetStrictestBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.GetStrictestBookingPolicyResponse,\n ambassadorWixBookingsV1BookingPolicyTypes.GetStrictestBookingPolicyResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV1BookingPolicy.getStrictestBookingPolicy(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/booking-policies/strictest',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateBookingPolicy(): __PublicMethodMetaInfo<\n 'PATCH',\n { bookingPolicyId: string },\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.UpdateBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyTypes.UpdateBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.UpdateBookingPolicyResponse,\n ambassadorWixBookingsV1BookingPolicyTypes.UpdateBookingPolicyResponse\n> {\n const payload = { bookingPolicy: { id: ':bookingPolicyId' } } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV1BookingPolicy.updateBookingPolicy(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/booking-policies/{bookingPolicy.id}',\n pathParams: { bookingPolicyId: 'bookingPolicyId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setDefaultBookingPolicy(): __PublicMethodMetaInfo<\n 'POST',\n { bookingPolicyId: string },\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.SetDefaultBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyTypes.SetDefaultBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.SetDefaultBookingPolicyResponse,\n ambassadorWixBookingsV1BookingPolicyTypes.SetDefaultBookingPolicyResponse\n> {\n const payload = { bookingPolicyId: ':bookingPolicyId' } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV1BookingPolicy.setDefaultBookingPolicy(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/booking-policies/{bookingPolicyId}:setDefault',\n pathParams: { bookingPolicyId: 'bookingPolicyId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteBookingPolicy(): __PublicMethodMetaInfo<\n 'DELETE',\n { bookingPolicyId: string },\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.DeleteBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyTypes.DeleteBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.DeleteBookingPolicyResponse,\n ambassadorWixBookingsV1BookingPolicyTypes.DeleteBookingPolicyResponse\n> {\n const payload = { bookingPolicyId: ':bookingPolicyId' } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV1BookingPolicy.deleteBookingPolicy(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/booking-policies/{bookingPolicyId}',\n pathParams: { bookingPolicyId: 'bookingPolicyId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryBookingPolicies(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.QueryBookingPoliciesRequest,\n ambassadorWixBookingsV1BookingPolicyTypes.QueryBookingPoliciesRequest,\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.QueryBookingPoliciesResponse,\n ambassadorWixBookingsV1BookingPolicyTypes.QueryBookingPoliciesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV1BookingPolicy.queryBookingPolicies(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/booking-policies/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function countBookingPolicies(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.CountBookingPoliciesRequest,\n ambassadorWixBookingsV1BookingPolicyTypes.CountBookingPoliciesRequest,\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.CountBookingPoliciesResponse,\n ambassadorWixBookingsV1BookingPolicyTypes.CountBookingPoliciesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV1BookingPolicy.countBookingPolicies(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/booking-policies/count',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n BookingPolicy as BookingPolicyOriginal,\n PolicyDescription as PolicyDescriptionOriginal,\n LimitEarlyBookingPolicy as LimitEarlyBookingPolicyOriginal,\n LimitLateBookingPolicy as LimitLateBookingPolicyOriginal,\n BookAfterStartPolicy as BookAfterStartPolicyOriginal,\n CancellationPolicy as CancellationPolicyOriginal,\n ReschedulePolicy as ReschedulePolicyOriginal,\n WaitlistPolicy as WaitlistPolicyOriginal,\n ParticipantsPolicy as ParticipantsPolicyOriginal,\n ResourcesPolicy as ResourcesPolicyOriginal,\n CancellationFeePolicy as CancellationFeePolicyOriginal,\n Money as MoneyOriginal,\n CancellationWindow as CancellationWindowOriginal,\n CancellationWindowFeeOneOf as CancellationWindowFeeOneOfOriginal,\n SaveCreditCardPolicy as SaveCreditCardPolicyOriginal,\n StaffSortingPolicy as StaffSortingPolicyOriginal,\n StaffSortingPolicyOptionsOneOf as StaffSortingPolicyOptionsOneOfOriginal,\n RankingOrder as RankingOrderOriginal,\n RankingOrderWithLiterals as RankingOrderWithLiteralsOriginal,\n SortingMethodType as SortingMethodTypeOriginal,\n SortingMethodTypeWithLiterals as SortingMethodTypeWithLiteralsOriginal,\n RankingOptions as RankingOptionsOriginal,\n CustomOptions as CustomOptionsOriginal,\n IntakeFormPolicy as IntakeFormPolicyOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n DefaultBookingPolicySet as DefaultBookingPolicySetOriginal,\n CreateBookingPolicyRequest as CreateBookingPolicyRequestOriginal,\n CreateBookingPolicyResponse as CreateBookingPolicyResponseOriginal,\n GetBookingPolicyRequest as GetBookingPolicyRequestOriginal,\n GetBookingPolicyResponse as GetBookingPolicyResponseOriginal,\n GetStrictestBookingPolicyRequest as GetStrictestBookingPolicyRequestOriginal,\n GetStrictestBookingPolicyResponse as GetStrictestBookingPolicyResponseOriginal,\n UpdateBookingPolicyRequest as UpdateBookingPolicyRequestOriginal,\n UpdateBookingPolicyResponse as UpdateBookingPolicyResponseOriginal,\n SetDefaultBookingPolicyRequest as SetDefaultBookingPolicyRequestOriginal,\n SetDefaultBookingPolicyResponse as SetDefaultBookingPolicyResponseOriginal,\n DeleteBookingPolicyRequest as DeleteBookingPolicyRequestOriginal,\n DeleteBookingPolicyResponse as DeleteBookingPolicyResponseOriginal,\n QueryBookingPoliciesRequest as QueryBookingPoliciesRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryBookingPoliciesResponse as QueryBookingPoliciesResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n CountBookingPoliciesRequest as CountBookingPoliciesRequestOriginal,\n CountBookingPoliciesResponse as CountBookingPoliciesResponseOriginal,\n UpdateAllPoliciesRequest as UpdateAllPoliciesRequestOriginal,\n UpdateAllPoliciesResponse as UpdateAllPoliciesResponseOriginal,\n CreateMissingDefaultPolicyRequest as CreateMissingDefaultPolicyRequestOriginal,\n CreateMissingDefaultPolicyResponse as CreateMissingDefaultPolicyResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n SitePropertiesNotification as SitePropertiesNotificationOriginal,\n SitePropertiesEvent as SitePropertiesEventOriginal,\n Properties as PropertiesOriginal,\n Categories as CategoriesOriginal,\n Locale as LocaleOriginal,\n Address as AddressOriginal,\n AddressHint as AddressHintOriginal,\n PlacementType as PlacementTypeOriginal,\n PlacementTypeWithLiterals as PlacementTypeWithLiteralsOriginal,\n GeoCoordinates as GeoCoordinatesOriginal,\n BusinessSchedule as BusinessScheduleOriginal,\n TimePeriod as TimePeriodOriginal,\n DayOfWeek as DayOfWeekOriginal,\n DayOfWeekWithLiterals as DayOfWeekWithLiteralsOriginal,\n SpecialHourPeriod as SpecialHourPeriodOriginal,\n Multilingual as MultilingualOriginal,\n SupportedLanguage as SupportedLanguageOriginal,\n ResolutionMethod as ResolutionMethodOriginal,\n ResolutionMethodWithLiterals as ResolutionMethodWithLiteralsOriginal,\n ConsentPolicy as ConsentPolicyOriginal,\n Translation as TranslationOriginal,\n ChangeContext as ChangeContextOriginal,\n ChangeContextPayloadOneOf as ChangeContextPayloadOneOfOriginal,\n PropertiesChange as PropertiesChangeOriginal,\n V4SiteCreated as V4SiteCreatedOriginal,\n SiteCloned as SiteClonedOriginal,\n MetaSiteSpecialEvent as MetaSiteSpecialEventOriginal,\n MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOfOriginal,\n Asset as AssetOriginal,\n State as StateOriginal,\n StateWithLiterals as StateWithLiteralsOriginal,\n SiteCreated as SiteCreatedOriginal,\n SiteCreatedContext as SiteCreatedContextOriginal,\n SiteCreatedContextWithLiterals as SiteCreatedContextWithLiteralsOriginal,\n Namespace as NamespaceOriginal,\n NamespaceWithLiterals as NamespaceWithLiteralsOriginal,\n SiteTransferred as SiteTransferredOriginal,\n SiteDeleted as SiteDeletedOriginal,\n DeleteContext as DeleteContextOriginal,\n DeleteStatus as DeleteStatusOriginal,\n DeleteStatusWithLiterals as DeleteStatusWithLiteralsOriginal,\n SiteUndeleted as SiteUndeletedOriginal,\n SitePublished as SitePublishedOriginal,\n SiteUnpublished as SiteUnpublishedOriginal,\n SiteMarkedAsTemplate as SiteMarkedAsTemplateOriginal,\n SiteMarkedAsWixSite as SiteMarkedAsWixSiteOriginal,\n ServiceProvisioned as ServiceProvisionedOriginal,\n ServiceRemoved as ServiceRemovedOriginal,\n SiteRenamed as SiteRenamedOriginal,\n SiteHardDeleted as SiteHardDeletedOriginal,\n NamespaceChanged as NamespaceChangedOriginal,\n StudioAssigned as StudioAssignedOriginal,\n StudioUnassigned as StudioUnassignedOriginal,\n SiteUrlChanged as SiteUrlChangedOriginal,\n SitePurgedExternally as SitePurgedExternallyOriginal,\n OdeditorAssigned as OdeditorAssignedOriginal,\n OdeditorUnassigned as OdeditorUnassignedOriginal,\n PicassoAssigned as PicassoAssignedOriginal,\n PicassoUnassigned as PicassoUnassignedOriginal,\n WixelAssigned as WixelAssignedOriginal,\n WixelUnassigned as WixelUnassignedOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n CreateBookingPolicyValidationErrors as CreateBookingPolicyValidationErrorsOriginal,\n UpdateBookingPolicyValidationErrors as UpdateBookingPolicyValidationErrorsOriginal,\n DeleteBookingPolicyApplicationErrors as DeleteBookingPolicyApplicationErrorsOriginal,\n} from './bookings-v1-booking-policy-booking-policies.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAAA;AAAA,EAAA,2BAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,iCAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,2BAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;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,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,wBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACiC,qBAAqB,OAAO;AAEnE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["countBookingPolicies","createBookingPolicy","deleteBookingPolicy","getBookingPolicy","getStrictestBookingPolicy","queryBookingPolicies","setDefaultBookingPolicy","updateBookingPolicy","import_timestamp","import_rest_modules","payload","RankingOrder","SortingMethodType","SortOrder","PlacementType","DayOfWeek","ResolutionMethod","State","SiteCreatedContext","Namespace","DeleteStatus","WebhookIdentityType","createBookingPolicy","getBookingPolicy","getStrictestBookingPolicy","updateBookingPolicy","setDefaultBookingPolicy","deleteBookingPolicy","queryBookingPolicies","countBookingPolicies"]}
1
+ {"version":3,"sources":["../../../meta.ts","../../../src/bookings-v1-booking-policy-booking-policies.http.ts","../../../src/bookings-v1-booking-policy-booking-policies.types.ts","../../../src/bookings-v1-booking-policy-booking-policies.meta.ts"],"sourcesContent":["export * from './src/bookings-v1-booking-policy-booking-policies.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixBookingsV1BookingPoliciesServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/bookings/v1/booking-policies',\n destPath: '/v1/booking-policies',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/bookings/v1/booking-policies',\n destPath: '/v1/booking-policies',\n },\n ],\n _: [\n {\n srcPath: '/_api/bookings/v1/booking-policies/strictest',\n destPath: '/v1/booking-policies/strictest',\n },\n {\n srcPath: '/_api/bookings/v1/booking-policies/query',\n destPath: '/v1/booking-policies/query',\n },\n {\n srcPath: '/bookings/v1/booking-policies',\n destPath: '/v1/booking-policies',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_bookings_booking-policies';\n\n/** Creates a booking policy. */\nexport function createBookingPolicy(\n payload: object\n): RequestOptionsFactory<any> {\n function __createBookingPolicy({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'bookingPolicy.createdDate' },\n { path: 'bookingPolicy.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.v1.booking_policy',\n method: 'POST' as any,\n methodFqn: 'wix.bookings.v1.BookingPoliciesService.CreateBookingPolicy',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsV1BookingPoliciesServiceUrl({\n protoPath: '/v1/booking-policies',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'bookingPolicy.createdDate' },\n { path: 'bookingPolicy.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createBookingPolicy;\n}\n\n/** Retrieves a booking policy. */\nexport function getBookingPolicy(payload: object): RequestOptionsFactory<any> {\n function __getBookingPolicy({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.v1.booking_policy',\n method: 'GET' as any,\n methodFqn: 'wix.bookings.v1.BookingPoliciesService.GetBookingPolicy',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsV1BookingPoliciesServiceUrl({\n protoPath: '/v1/booking-policies/{bookingPolicyId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'bookingPolicy.createdDate' },\n { path: 'bookingPolicy.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getBookingPolicy;\n}\n\n/**\n * Retrieves the strictest version of each policy rule from a list of booking\n * policies.\n *\n *\n * Returns a hypothetical `bookingPolicy` object that combines the strictest\n * version of each rule. The `id` of the returned policy is `null` and no\n * corresponding `bookingPolicy` object is created. To create a new policy, you\n * can call *Create Booking Policy*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/create-booking-policy) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/create-booking-policy)).\n */\nexport function getStrictestBookingPolicy(\n payload: object\n): RequestOptionsFactory<any> {\n function __getStrictestBookingPolicy({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.v1.booking_policy',\n method: 'POST' as any,\n methodFqn:\n 'wix.bookings.v1.BookingPoliciesService.GetStrictestBookingPolicy',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsV1BookingPoliciesServiceUrl({\n protoPath: '/v1/booking-policies/strictest',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'bookingPolicy.createdDate' },\n { path: 'bookingPolicy.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getStrictestBookingPolicy;\n}\n\n/**\n * Updates a booking policy.\n *\n *\n * Each time the booking policy is updated, `revision` increments by 1.\n * The current `revision` must be specified when updating the booking policy.\n * This ensures you're working with the latest booking policy and prevents unintended overwrites.\n */\nexport function updateBookingPolicy(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateBookingPolicy({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'bookingPolicy.createdDate' },\n { path: 'bookingPolicy.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.v1.booking_policy',\n method: 'PATCH' as any,\n methodFqn: 'wix.bookings.v1.BookingPoliciesService.UpdateBookingPolicy',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsV1BookingPoliciesServiceUrl({\n protoPath: '/v1/booking-policies/{bookingPolicy.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'bookingPolicy.createdDate' },\n { path: 'bookingPolicy.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateBookingPolicy;\n}\n\n/**\n * Sets a booking policy as the default.\n *\n *\n * Also updates the site's current default policy by setting its `default`\n * attribute to `false`. If the provided policy is already the site's\n * default, the call succeeds without changing any `bookingPolicy` object.\n */\nexport function setDefaultBookingPolicy(\n payload: object\n): RequestOptionsFactory<any> {\n function __setDefaultBookingPolicy({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.v1.booking_policy',\n method: 'POST' as any,\n methodFqn:\n 'wix.bookings.v1.BookingPoliciesService.SetDefaultBookingPolicy',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsV1BookingPoliciesServiceUrl({\n protoPath: '/v1/booking-policies/{bookingPolicyId}:setDefault',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'currentDefaultBookingPolicy.createdDate' },\n { path: 'currentDefaultBookingPolicy.updatedDate' },\n { path: 'previousDefaultBookingPolicy.createdDate' },\n { path: 'previousDefaultBookingPolicy.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __setDefaultBookingPolicy;\n}\n\n/**\n * Deletes a booking policy.\n *\n *\n * You can't delete the default policy without first *setting a different policy as default*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/set-default-booking-policy) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/set-default-booking-policy)).\n */\nexport function deleteBookingPolicy(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteBookingPolicy({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.v1.booking_policy',\n method: 'DELETE' as any,\n methodFqn: 'wix.bookings.v1.BookingPoliciesService.DeleteBookingPolicy',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsV1BookingPoliciesServiceUrl({\n protoPath: '/v1/booking-policies/{bookingPolicyId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteBookingPolicy;\n}\n\n/**\n * Creates a query to retrieve a list of `bookingPolicy` objects.\n *\n * The `queryBookingPolicies()` function builds a query to retrieve a list of `bookingPolicy` objects and returns a `BookingPoliciesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/booking-policies-query-builder/find) function.\n *\n * You can refine the query by chaining `BookingPoliciesQueryBuilder` functions onto the query. `BookingPoliciesQueryBuilder` functions enable you to sort, filter, and control the results that `queryBookingPolicies()` returns.\n *\n * `queryBookingPolicies()` runs with the following `BookingPoliciesQueryBuilder` defaults that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `createdDate` in ascending order.\n *\n * The functions that are chained to `queryBookingPolicies()` are applied in the order they are called. For example, if you apply `ascending(\"waitlistPolicy.capacity\")` and then `ascending(\"name\")`, the results are sorted first by `waitlistPolicy.capacity`, and then, if there are multiple results with the same `waitlistPolicy.capacity`, the items are sorted by `name`.\n *\n * The following `BookingPoliciesQueryBuilder` functions are supported for the `queryBookingPolicies()` function. For a full description of the `bookingPolicy` object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/booking-policies-query-result/items) property in `BookingPoliciesQueryResult`.\n */\nexport function queryBookingPolicies(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryBookingPolicies({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.v1.booking_policy',\n method: 'POST' as any,\n methodFqn: 'wix.bookings.v1.BookingPoliciesService.QueryBookingPolicies',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsV1BookingPoliciesServiceUrl({\n protoPath: '/v1/booking-policies/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'bookingPolicies.createdDate' },\n { path: 'bookingPolicies.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryBookingPolicies;\n}\n\n/**\n * Counts booking policies, given the provided filtering.\n *\n *\n * See *supported filters*\n * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters))\n * for a complete list of supported filters.\n */\nexport function countBookingPolicies(\n payload: object\n): RequestOptionsFactory<any> {\n function __countBookingPolicies({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.v1.booking_policy',\n method: 'POST' as any,\n methodFqn: 'wix.bookings.v1.BookingPoliciesService.CountBookingPolicies',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsV1BookingPoliciesServiceUrl({\n protoPath: '/v1/booking-policies/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countBookingPolicies;\n}\n","/**\n * A booking policy is a set of rules that determine how customers can book a\n * service, including timeframes for booking, canceling, or rescheduling.\n */\nexport interface BookingPolicy {\n /**\n * ID of the booking policy.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Revision number, which increments by 1 each time the booking policy is updated.\n * To prevent conflicting changes, the current `revision` must be passed when\n * updating the booking policy.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the booking policy was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the booking policy was updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Name of the booking policy.\n * @maxLength 400\n */\n name?: string | null;\n /**\n * Custom description for the booking policy and whether it's displayed to the\n * participant.\n */\n customPolicyDescription?: PolicyDescription;\n /**\n * Whether the booking policy is the default.\n * @readonly\n */\n default?: boolean | null;\n /** Rule for limiting early bookings. */\n limitEarlyBookingPolicy?: LimitEarlyBookingPolicy;\n /**\n * Rule for limiting late bookings. This rule and `bookAfterStartPolicy` can't\n * be both enabled at the same time.\n */\n limitLateBookingPolicy?: LimitLateBookingPolicy;\n /**\n * Rule for booking after the start of a session or course. This rule and\n * `limitLateBookingPolicy` can't be both enabled at the same time.\n */\n bookAfterStartPolicy?: BookAfterStartPolicy;\n /** Rule for canceling a booking. */\n cancellationPolicy?: CancellationPolicy;\n /** Rule for rescheduling a booking. */\n reschedulePolicy?: ReschedulePolicy;\n /** Waitlist rule for the service. */\n waitlistPolicy?: WaitlistPolicy;\n /** Rule for participants per booking. */\n participantsPolicy?: ParticipantsPolicy;\n /** Rules for cancellation fees. */\n cancellationFeePolicy?: CancellationFeePolicy;\n /** Rule for saving credit card details. */\n saveCreditCardPolicy?: SaveCreditCardPolicy;\n /** Extensions enabling users to save custom data related to the booking policies. */\n extendedFields?: ExtendedFields;\n}\n\n/** A description of the booking policy to display to participants. */\nexport interface PolicyDescription {\n /**\n * Whether the description is displayed to the participant. `true` means the\n * description is displayed.\n *\n * Default: `false`\n */\n enabled?: boolean;\n /**\n * Description of the booking policy.\n *\n * Default: Empty\n * Max length: 2500 characters\n * @maxLength 2500\n */\n description?: string;\n}\n\n/** The rule for limiting early bookings. */\nexport interface LimitEarlyBookingPolicy {\n /**\n * Whether there's a limit about how early a customer can book. `false` means there's\n * no limit to the earliest supported booking time.\n *\n * Default: `false`\n */\n enabled?: boolean;\n /**\n * Maximum number of minutes before the start of a session or course customers can book.\n * Must be greater than `limitLateBookingPolicy.latestBookingInMinutes`.\n *\n * Default: `10080` minutes (7 days)\n * Min: `1` minute\n * @min 1\n */\n earliestBookingInMinutes?: number;\n}\n\n/**\n * Rule limiting late bookings.\n *\n * This rule and `bookAfterStartPolicy` can't be both enabled at the same time.\n */\nexport interface LimitLateBookingPolicy {\n /**\n * Whether there's a limit about how late customers can book. `false` means\n * customers can book up to the last minute. If specified as `true`,\n * `bookAfterStartPolicy.enabled` must be `false`.\n *\n * Default: `false`\n */\n enabled?: boolean;\n /**\n * Minimum number of minutes before the start of the session customers can book.\n * For courses, this is relative to the start time of the next session and doesn't\n * consider course sessions in the past. This value must be less than\n * `limitEarlyBookingPolicy.earliestBookingInMinutes`.\n *\n * Default: `1440` minutes (1 day)\n * Min: `1` minute\n * @min 1\n */\n latestBookingInMinutes?: number;\n}\n\n/**\n * The rule for whether a session can be booked after the start of the schedule.\n * This rule and `LimitLateBookingPolicy` cannot be enabled at the same time. So if this rule\n * is enabled, the `LimitLateBookingPolicy` rule must be disabled.\n */\nexport interface BookAfterStartPolicy {\n /**\n * Whether customers can book after the session has started. `true` means\n * customers can book after the session has started. For courses, this refers to\n * the start of the last course session. If specified as `true`,\n * `limitLateBookingPolicy.enabled` must be `false`.\n *\n * Default: `false`\n */\n enabled?: boolean;\n}\n\n/** The rule for canceling a booked session. */\nexport interface CancellationPolicy {\n /**\n * Whether customers can cancel the booking. `true` means customers can cancel\n * the booking.\n *\n * Default: `false`\n */\n enabled?: boolean;\n /**\n * Whether there's a limit on the latest cancellation time. `false` means customers\n * can cancel the booking until the last minute before the course or session starts.\n *\n * Default: `false`\n */\n limitLatestCancellation?: boolean;\n /**\n * Minimum number of minutes before the start of the session customers can cancel.\n * For courses, this refers to the start of the first course session.\n *\n * Default: `1440` minutes (1 day)\n * Min: `1` minute\n * @min 1\n */\n latestCancellationInMinutes?: number;\n}\n\n/** The rule for rescheduling a booked session. */\nexport interface ReschedulePolicy {\n /**\n * Whether customers can reschedule a booking for an appointment-based service.\n * `true` means customers can reschedule.\n *\n * Default: `false`\n */\n enabled?: boolean;\n /**\n * Whether there's a limit on the latest supported rescheduling time. `false`\n * means customers can reschedule until the last minute before the session start.\n *\n * Default: `false`\n */\n limitLatestReschedule?: boolean;\n /**\n * Minimum number of minutes before the session start session customers can\n * reschedule their booking.\n *\n * Default: `1440` minutes (1 day)\n * Min: `1` minute\n * @min 1\n */\n latestRescheduleInMinutes?: number;\n}\n\n/** The rule for the waitlist. */\nexport interface WaitlistPolicy {\n /**\n * Whether the service has a waitlist. `true` means there's a waitlist.\n *\n * Default: `false`\n */\n enabled?: boolean;\n /**\n * Number of spots in the waitlist.\n *\n * Default: `10` spots\n * Min: `1` spot\n * @min 1\n */\n capacity?: number;\n /**\n * Time in minutes the potential customer is given to book after they've been\n * notified that a spot has opened up for them. If they don't respond in time,\n * the open spot is offered to the next potential customer on the waitlist.\n *\n * Default: `10` minutes\n * Min: `1` minute\n * @min 1\n */\n reservationTimeInMinutes?: number;\n}\n\n/** The rule for the maximum number of participants per booking. */\nexport interface ParticipantsPolicy {\n /**\n * Maximum number of participants per booking.\n *\n * Default: `1` participant\n * Min: `1` participant\n * @min 1\n */\n maxParticipantsPerBooking?: number;\n}\n\n/** The rule regarding the allocation of resources (e.g. staff members). */\nexport interface ResourcesPolicy {\n /**\n * Whether the customer must select a resource, for example a staff member, when\n * booking. `false` means the customer can book without selecting a resource.\n *\n * Default: `false`\n */\n enabled?: boolean;\n /**\n * Whether Wix Bookings automatically assigns a resource, for example a *staff member*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/staff-members/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/introduction)),\n * to the booking. `false` means the customer must select the resource\n * themselves and Wix Bookings doesn't assign it automatically.\n *\n * Default: `false`\n */\n autoAssignAllowed?: boolean;\n}\n\nexport interface CancellationFeePolicy {\n /**\n * Whether customers must pay a cancellation fee when canceling a booking.\n *\n * Default: `false`\n */\n enabled?: boolean;\n /**\n * Time windows relative to the session start during which customers can cancel\n * their booking. Each window includes details about the fee for canceling within it.\n * @maxSize 2\n */\n cancellationWindows?: CancellationWindow[];\n /**\n * Whether Wix automatically charges the cancellation fee from the customer once\n * they cancel their booking.\n *\n * Default: `true`\n */\n autoCollectFeeEnabled?: boolean | null;\n}\n\n/**\n * Money.\n * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.\n */\nexport interface Money {\n /**\n * Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.\n * @format DECIMAL_VALUE\n * @decimalValue options { gt:0, maxScale:2 }\n */\n value?: string;\n /**\n * Currency code. Must be valid ISO 4217 currency code (e.g., USD).\n * @format CURRENCY\n * @readonly\n */\n currency?: string;\n /**\n * Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative.\n * @maxLength 50\n */\n formattedValue?: string | null;\n}\n\nexport interface CancellationWindow extends CancellationWindowFeeOneOf {\n /** Fixed amount customers must pay when canceling the booking within this window. */\n amount?: Money;\n /**\n * Percentage of the booking price customers must pay when canceling within\n * this window.\n *\n * Min: `0.01` percent\n * Max: `100` percent\n * @decimalValue options { gt:0, lte:100, maxScale:2 }\n */\n percentage?: string;\n /**\n * Start of the cancellation window in minutes before the session start. For\n * courses, this refers to the start of the first course session.\n * @min 1\n */\n startInMinutes?: number | null;\n}\n\n/** @oneof */\nexport interface CancellationWindowFeeOneOf {\n /** Fixed amount customers must pay when canceling the booking within this window. */\n amount?: Money;\n /**\n * Percentage of the booking price customers must pay when canceling within\n * this window.\n *\n * Min: `0.01` percent\n * Max: `100` percent\n * @decimalValue options { gt:0, lte:100, maxScale:2 }\n */\n percentage?: string;\n}\n\nexport interface SaveCreditCardPolicy {\n /**\n * Whether Wix stores credit card details of the customer. Storing the details\n * allows Wix to prefill the *eCommerce checkout*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction))\n * and thus increases the likelihood that the customer completes the booking\n * process.\n *\n * Default: `false`\n */\n enabled?: boolean;\n}\n\n/**\n * Policy for determining how staff members are sorted and selected during the booking process.\n * This affects which staff member is chosen when multiple staff members are available for a service.\n */\nexport interface StaffSortingPolicy extends StaffSortingPolicyOptionsOneOf {\n rankingOptions?: RankingOptions;\n customOptions?: CustomOptions;\n /**\n * Method used for sorting and selecting staff members.\n *\n * Default: `RANDOM`\n */\n sortingMethodType?: SortingMethodTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface StaffSortingPolicyOptionsOneOf {\n rankingOptions?: RankingOptions;\n customOptions?: CustomOptions;\n}\n\n/** Order for ranking-based staff selection. */\nexport enum RankingOrder {\n UNKNOWN_RANKING_ORDER = 'UNKNOWN_RANKING_ORDER',\n /** Staff members with lower priority values are selected first. */\n LOWEST_TO_HIGHEST = 'LOWEST_TO_HIGHEST',\n /** Staff members with higher priority values are selected first. */\n HIGHEST_TO_LOWEST = 'HIGHEST_TO_LOWEST',\n}\n\n/** @enumType */\nexport type RankingOrderWithLiterals =\n | RankingOrder\n | 'UNKNOWN_RANKING_ORDER'\n | 'LOWEST_TO_HIGHEST'\n | 'HIGHEST_TO_LOWEST';\n\n/** Method used to sort and select staff members. */\nexport enum SortingMethodType {\n UNKNOWN_SORTING_METHOD_TYPE = 'UNKNOWN_SORTING_METHOD_TYPE',\n /** Staff members are selected randomly from available options. */\n RANDOM = 'RANDOM',\n /** Staff members are selected based on their priority ranking. */\n RANKING = 'RANKING',\n /**\n * Staff members are selected using a custom implementation provided by SortStaffSPI.\n * This allows third-party apps to implement custom staff sorting logic.\n */\n CUSTOM = 'CUSTOM',\n}\n\n/** @enumType */\nexport type SortingMethodTypeWithLiterals =\n | SortingMethodType\n | 'UNKNOWN_SORTING_METHOD_TYPE'\n | 'RANDOM'\n | 'RANKING'\n | 'CUSTOM';\n\n/**\n * Configuration options for ranking-based staff selection.\n * Used when `sorting_method_type` is set to `RANKING`.\n */\nexport interface RankingOptions {\n /**\n * Order in which staff members are sorted by their priority ranking.\n *\n * Default: `LOWEST_TO_HIGHEST`\n */\n order?: RankingOrderWithLiterals;\n}\n\n/**\n * Configuration options for custom staff selection methods.\n * Used when `sorting_method_type` is set to `CUSTOM`.\n */\nexport interface CustomOptions {\n /**\n * ID of the custom sorting method implemented in SortStaffSPI.\n * This identifies which custom sorting algorithm to use.\n * @format GUID\n */\n implementationId?: string;\n /**\n * ID of the app that provides the custom sorting method.\n * @format GUID\n */\n appId?: string;\n}\n\n/** Policy for integrating with Intake form. Stores which form to use and when to present it. */\nexport interface IntakeFormPolicy {\n /**\n * ID of the form used as an intake form for the service.\n * @format GUID\n */\n formId?: string | null;\n /**\n * Whether the waiver must be completed before bookings.\n * If `false`, the waiver is handled after bookings.\n * Default: `false`\n */\n requireBeforeBook?: boolean;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\n/** This event is triggered when a different booking policy has been set as the default policy. */\nexport interface DefaultBookingPolicySet {\n /** The new default booking policy. */\n currentDefaultBookingPolicy?: BookingPolicy;\n /**\n * The booking policy that was the default before this endpoint was called.\n * This field will be empty if there was no default booking policy before this method was called.\n */\n previousDefaultBookingPolicy?: BookingPolicy;\n}\n\nexport interface CreateBookingPolicyRequest {\n /** Booking policy to create. */\n bookingPolicy: BookingPolicy;\n}\n\nexport interface CreateBookingPolicyResponse {\n /** Created booking policy. */\n bookingPolicy?: BookingPolicy;\n}\n\nexport interface GetBookingPolicyRequest {\n /**\n * ID of the booking policy to retrieve.\n * @format GUID\n */\n bookingPolicyId: string;\n}\n\nexport interface GetBookingPolicyResponse {\n /** Retrieved booking policy. */\n bookingPolicy?: BookingPolicy;\n}\n\nexport interface GetStrictestBookingPolicyRequest {\n /**\n * IDs of the booking policies for which to retrieve the strictest rules for.\n * @format GUID\n * @maxSize 100\n */\n bookingPolicyIds: string[];\n}\n\nexport interface GetStrictestBookingPolicyResponse {\n /**\n * Hypothetical `bookingPolicy` object that combines the strictest version of\n * each rule. `bookingPolicy.id` is `null` and the returned object isn't actually\n * created. To create a new policy, you can call *Create Booking Policy*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/create-booking-policy) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/create-booking-policy)).\n */\n bookingPolicy?: BookingPolicy;\n}\n\nexport interface UpdateBookingPolicyRequest {\n /** Booking policy to update. */\n bookingPolicy: BookingPolicy;\n}\n\nexport interface UpdateBookingPolicyResponse {\n /** Updated booking policy. */\n bookingPolicy?: BookingPolicy;\n}\n\nexport interface SetDefaultBookingPolicyRequest {\n /**\n * ID of the booking policy that's set as default.\n * @format GUID\n */\n bookingPolicyId: string;\n}\n\nexport interface SetDefaultBookingPolicyResponse {\n /** New default booking policy. */\n currentDefaultBookingPolicy?: BookingPolicy;\n /**\n * Previous default booking policy. Not available if the provided booking policy\n * was already the default.\n */\n previousDefaultBookingPolicy?: BookingPolicy;\n}\n\nexport interface DeleteBookingPolicyRequest {\n /**\n * ID of the booking policy to delete.\n * @format GUID\n */\n bookingPolicyId: string;\n}\n\nexport interface DeleteBookingPolicyResponse {}\n\nexport interface QueryBookingPoliciesRequest {\n /**\n * The query by which to select booking policies. See\n * [the supported filters article](https://dev.wix.com/docs/rest/business-solutions/bookings/services/booking-policy/supported-filters)\n * for details.\n */\n query: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 10\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryBookingPoliciesResponse {\n /** Retrieved booking policies. */\n bookingPolicies?: BookingPolicy[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor pointing to next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface CountBookingPoliciesRequest {\n /**\n * Filter to base the count on. See\n * supported filters*\n * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters))\n * for details.\n */\n filter?: Record<string, any> | null;\n}\n\nexport interface CountBookingPoliciesResponse {\n /** Number of booking policies matching the provided filter. */\n count?: number;\n}\n\nexport interface UpdateAllPoliciesRequest {\n /** Fields to set to all booking policies. */\n bookingPolicy?: BookingPolicy;\n}\n\nexport interface UpdateAllPoliciesResponse {}\n\nexport interface CreateMissingDefaultPolicyRequest {}\n\nexport interface CreateMissingDefaultPolicyResponse {\n /** The default booking policy. */\n defaultBookingPolicy?: BookingPolicy;\n /** Whether a new default policy was created. */\n wasANewPolicyCreated?: boolean;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\n/** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */\nexport interface SitePropertiesNotification {\n /** The site ID for which this update notification applies. */\n metasiteId?: string;\n /** The actual update event. */\n event?: SitePropertiesEvent;\n /**\n * A convenience set of mappings from the MetaSite ID to its constituent services.\n * @maxSize 500\n */\n translations?: Translation[];\n /** Context of the notification */\n changeContext?: ChangeContext;\n}\n\n/** The actual update event for a particular notification. */\nexport interface SitePropertiesEvent {\n /** Version of the site's properties represented by this update. */\n version?: number;\n /** Set of properties that were updated - corresponds to the fields in \"properties\". */\n fields?: string[];\n /** Updated properties. */\n properties?: Properties;\n}\n\nexport interface Properties {\n /** Site categories. */\n categories?: Categories;\n /** Site locale. */\n locale?: Locale;\n /**\n * Site language.\n *\n * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\n */\n language?: string | null;\n /**\n * Site currency format used to bill customers.\n *\n * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n */\n paymentCurrency?: string | null;\n /** Timezone in `America/New_York` format. */\n timeZone?: string | null;\n /** Email address. */\n email?: string | null;\n /** Phone number. */\n phone?: string | null;\n /** Fax number. */\n fax?: string | null;\n /** Address. */\n address?: Address;\n /** Site display name. */\n siteDisplayName?: string | null;\n /** Business name. */\n businessName?: string | null;\n /** Path to the site's logo in Wix Media (without Wix Media base URL). */\n logo?: string | null;\n /** Site description. */\n description?: string | null;\n /**\n * Business schedule. Regular and exceptional time periods when the business is open or the service is available.\n *\n * __Note:__ Not supported by Wix Bookings.\n */\n businessSchedule?: BusinessSchedule;\n /** Supported languages of a site and the primary language. */\n multilingual?: Multilingual;\n /** Cookie policy the Wix user defined for their site (before the site visitor interacts with/limits it). */\n consentPolicy?: ConsentPolicy;\n /**\n * Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`.\n *\n * Site business type.\n */\n businessConfig?: string | null;\n /** External site URL that uses Wix as its headless business solution. */\n externalSiteUrl?: string | null;\n /** Track clicks analytics. */\n trackClicksAnalytics?: boolean;\n}\n\nexport interface Categories {\n /** Primary site category. */\n primary?: string;\n /**\n * Secondary site category.\n * @maxSize 50\n */\n secondary?: string[];\n /** Business Term Id */\n businessTermId?: string | null;\n}\n\nexport interface Locale {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */\n country?: string;\n}\n\nexport interface Address {\n /** Street name. */\n street?: string;\n /** City name. */\n city?: string;\n /** Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */\n country?: string;\n /** State. */\n state?: string;\n /**\n * Zip or postal code.\n * @maxLength 20\n */\n zip?: string;\n /** Extra information to be displayed in the address. */\n hint?: AddressHint;\n /** Whether this address represents a physical location. */\n isPhysical?: boolean;\n /** Google-formatted version of this address. */\n googleFormattedAddress?: string;\n /** Street number. */\n streetNumber?: string;\n /** Apartment number. */\n apartmentNumber?: string;\n /** Geographic coordinates of location. */\n coordinates?: GeoCoordinates;\n}\n\n/**\n * Extra information on displayed addresses.\n * This is used for display purposes. Used to add additional data about the address, such as \"In the passage\".\n * Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string.\n */\nexport interface AddressHint {\n /** Extra text displayed next to, or instead of, the actual address. */\n text?: string;\n /** Where the extra text should be displayed. */\n placement?: PlacementTypeWithLiterals;\n}\n\n/** Where the extra text should be displayed: before, after or instead of the actual address. */\nexport enum PlacementType {\n BEFORE = 'BEFORE',\n AFTER = 'AFTER',\n REPLACE = 'REPLACE',\n}\n\n/** @enumType */\nexport type PlacementTypeWithLiterals =\n | PlacementType\n | 'BEFORE'\n | 'AFTER'\n | 'REPLACE';\n\n/** Geocoordinates for a particular address. */\nexport interface GeoCoordinates {\n /** Latitude of the location. Must be between -90 and 90. */\n latitude?: number;\n /** Longitude of the location. Must be between -180 and 180. */\n longitude?: number;\n}\n\n/** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */\nexport interface BusinessSchedule {\n /**\n * Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods.\n * @maxSize 100\n */\n periods?: TimePeriod[];\n /**\n * Exceptions to the business's regular hours. The business can be open or closed during the exception.\n * @maxSize 100\n */\n specialHourPeriod?: SpecialHourPeriod[];\n}\n\n/** Weekly recurring time periods when the business is regularly open or the service is available. */\nexport interface TimePeriod {\n /** Day of the week the period starts on. */\n openDay?: DayOfWeekWithLiterals;\n /**\n * Time the period starts in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n * midnight at the end of the specified day.\n */\n openTime?: string;\n /** Day of the week the period ends on. */\n closeDay?: DayOfWeekWithLiterals;\n /**\n * Time the period ends in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n * midnight at the end of the specified day.\n *\n * __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`.\n */\n closeTime?: string;\n}\n\n/** Enumerates the days of the week. */\nexport enum DayOfWeek {\n MONDAY = 'MONDAY',\n TUESDAY = 'TUESDAY',\n WEDNESDAY = 'WEDNESDAY',\n THURSDAY = 'THURSDAY',\n FRIDAY = 'FRIDAY',\n SATURDAY = 'SATURDAY',\n SUNDAY = 'SUNDAY',\n}\n\n/** @enumType */\nexport type DayOfWeekWithLiterals =\n | DayOfWeek\n | 'MONDAY'\n | 'TUESDAY'\n | 'WEDNESDAY'\n | 'THURSDAY'\n | 'FRIDAY'\n | 'SATURDAY'\n | 'SUNDAY';\n\n/** Exception to the business's regular hours. The business can be open or closed during the exception. */\nexport interface SpecialHourPeriod {\n /** Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n startDate?: string;\n /** End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n endDate?: string;\n /**\n * Whether the business is closed (or the service is not available) during the exception.\n *\n * Default: `true`.\n */\n isClosed?: boolean;\n /** Additional info about the exception. For example, \"We close earlier on New Year's Eve.\" */\n comment?: string;\n}\n\nexport interface Multilingual {\n /**\n * Supported languages list.\n * @maxSize 200\n */\n supportedLanguages?: SupportedLanguage[];\n /** Whether to redirect to user language. */\n autoRedirect?: boolean;\n}\n\nexport interface SupportedLanguage {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Locale. */\n locale?: Locale;\n /** Whether the supported language is the primary language for the site. */\n isPrimary?: boolean;\n /** Language icon. */\n countryCode?: string;\n /** How the language will be resolved. For internal use. */\n resolutionMethod?: ResolutionMethodWithLiterals;\n /** Whether the supported language is the primary language for site visitors. */\n isVisitorPrimary?: boolean | null;\n}\n\nexport enum ResolutionMethod {\n QUERY_PARAM = 'QUERY_PARAM',\n SUBDOMAIN = 'SUBDOMAIN',\n SUBDIRECTORY = 'SUBDIRECTORY',\n}\n\n/** @enumType */\nexport type ResolutionMethodWithLiterals =\n | ResolutionMethod\n | 'QUERY_PARAM'\n | 'SUBDOMAIN'\n | 'SUBDIRECTORY';\n\nexport interface ConsentPolicy {\n /** Whether the site uses cookies that are essential to site operation. Always `true`. */\n essential?: boolean | null;\n /** Whether the site uses cookies that affect site performance and other functional measurements. */\n functional?: boolean | null;\n /** Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). */\n analytics?: boolean | null;\n /** Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. */\n advertising?: boolean | null;\n /** CCPA compliance flag. */\n dataToThirdParty?: boolean | null;\n}\n\n/** A single mapping from the MetaSite ID to a particular service. */\nexport interface Translation {\n /** The service type. */\n serviceType?: string;\n /** The application definition ID; this only applies to services of type ThirdPartyApps. */\n appDefId?: string;\n /** The instance ID of the service. */\n instanceId?: string;\n}\n\nexport interface ChangeContext extends ChangeContextPayloadOneOf {\n /** Properties were updated. */\n propertiesChange?: PropertiesChange;\n /** Default properties were created on site creation. */\n siteCreated?: V4SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\n/** @oneof */\nexport interface ChangeContextPayloadOneOf {\n /** Properties were updated. */\n propertiesChange?: PropertiesChange;\n /** Default properties were created on site creation. */\n siteCreated?: V4SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\nexport interface PropertiesChange {}\n\nexport interface V4SiteCreated {\n /** Origin template site id. */\n originTemplateId?: string | null;\n}\n\nexport interface SiteCloned {\n /** Origin site id. */\n originMetaSiteId?: string;\n}\n\nexport interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n /**\n * A meta site id.\n * @format GUID\n */\n metaSiteId?: string;\n /** A meta site version. Monotonically increasing. */\n version?: string;\n /** A timestamp of the event. */\n timestamp?: string;\n /**\n * TODO(meta-site): Change validation once validations are disabled for consumers\n * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659\n * @maxSize 4000\n */\n assets?: Asset[];\n}\n\n/** @oneof */\nexport interface MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n}\n\nexport interface Asset {\n /**\n * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * An instance id. For legacy reasons may be UUID or a string.\n * @maxLength 200\n */\n instanceId?: string;\n /** An application state. */\n state?: StateWithLiterals;\n}\n\nexport enum State {\n UNKNOWN = 'UNKNOWN',\n ENABLED = 'ENABLED',\n DISABLED = 'DISABLED',\n PENDING = 'PENDING',\n DEMO = 'DEMO',\n}\n\n/** @enumType */\nexport type StateWithLiterals =\n | State\n | 'UNKNOWN'\n | 'ENABLED'\n | 'DISABLED'\n | 'PENDING'\n | 'DEMO';\n\nexport interface SiteCreated {\n /**\n * A template identifier (empty if not created from a template).\n * @maxLength 36\n */\n originTemplateId?: string;\n /**\n * An account id of the owner.\n * @format GUID\n */\n ownerId?: string;\n /** A context in which meta site was created. */\n context?: SiteCreatedContextWithLiterals;\n /**\n * A meta site id from which this site was created.\n *\n * In case of a creation from a template it's a template id.\n * In case of a site duplication (\"Save As\" in dashboard or duplicate in UM) it's an id of a source site.\n * @format GUID\n */\n originMetaSiteId?: string | null;\n /**\n * A meta site name (URL slug).\n * @maxLength 20\n */\n siteName?: string;\n /** A namespace. */\n namespace?: NamespaceWithLiterals;\n}\n\nexport enum SiteCreatedContext {\n /** A valid option, we don't expose all reasons why site might be created. */\n OTHER = 'OTHER',\n /** A meta site was created from template. */\n FROM_TEMPLATE = 'FROM_TEMPLATE',\n /** A meta site was created by copying of the transfferred meta site. */\n DUPLICATE_BY_SITE_TRANSFER = 'DUPLICATE_BY_SITE_TRANSFER',\n /** A copy of existing meta site. */\n DUPLICATE = 'DUPLICATE',\n /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */\n OLD_SITE_TRANSFER = 'OLD_SITE_TRANSFER',\n /** deprecated A meta site was created for Flash editor. */\n FLASH = 'FLASH',\n}\n\n/** @enumType */\nexport type SiteCreatedContextWithLiterals =\n | SiteCreatedContext\n | 'OTHER'\n | 'FROM_TEMPLATE'\n | 'DUPLICATE_BY_SITE_TRANSFER'\n | 'DUPLICATE'\n | 'OLD_SITE_TRANSFER'\n | 'FLASH';\n\nexport enum Namespace {\n UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */\n WIX = 'WIX',\n /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n SHOUT_OUT = 'SHOUT_OUT',\n /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ALBUMS = 'ALBUMS',\n /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n HOTELS = 'HOTELS',\n /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n CLUBS = 'CLUBS',\n /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_SITE = 'DEV_SITE',\n /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n LOGOS = 'LOGOS',\n /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n VIDEO_MAKER = 'VIDEO_MAKER',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n /**\n * A draft created by HTML editor on open. Upon \"first save\" it will be moved to be of WIX domain.\n *\n * Meta site with this namespace will *not* be shown in a user's site list by default.\n */\n HTML_DRAFT = 'HTML_DRAFT',\n /**\n * the user-journey for Fitness users who want to start from managing their business instead of designing their website.\n * Will be accessible from Site List and will not have a website app.\n * Once the user attaches a site, the site will become a regular wixsite.\n */\n SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n /** Belongs to \"strategic products\" company. Supports new product in the creator's economy space. */\n CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n /** It is to be used in the Business First efforts. */\n DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n /** Bookings business flow with no site. */\n ANYWHERE = 'ANYWHERE',\n /** Namespace for Headless Backoffice with no editor */\n HEADLESS = 'HEADLESS',\n /**\n * Namespace for master site that will exist in parent account that will be referenced by subaccounts\n * The site will be used for account level CSM feature for enterprise\n */\n ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n /** Rise.ai Siteless account management for Gift Cards and Store Credit. */\n RISE = 'RISE',\n /**\n * As part of the branded app new funnel, users now can create a meta site that will be branded app first.\n * There's a blank site behind the scene but it's blank).\n * The Mobile company will be the owner of this namespace.\n */\n BRANDED_FIRST = 'BRANDED_FIRST',\n /** Nownia.com Siteless account management for Ai Scheduling Assistant. */\n NOWNIA = 'NOWNIA',\n /**\n * UGC Templates are templates that are created by users for personal use and to sale to other users.\n * The Partners company owns this namespace.\n */\n UGC_TEMPLATE = 'UGC_TEMPLATE',\n /** Codux Headless Sites */\n CODUX = 'CODUX',\n /** Bobb - AI Design Creator. */\n MEDIA_DESIGN_CREATOR = 'MEDIA_DESIGN_CREATOR',\n /**\n * Shared Blog Site is a unique single site across Enterprise account,\n * This site will hold all Blog posts related to the Marketing product.\n */\n SHARED_BLOG_ENTERPRISE = 'SHARED_BLOG_ENTERPRISE',\n /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_FORMS = 'STANDALONE_FORMS',\n /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_EVENTS = 'STANDALONE_EVENTS',\n /** MIMIR - Siteless account for MIMIR Ai Job runner. */\n MIMIR = 'MIMIR',\n /** Wix Twins platform. */\n TWINS = 'TWINS',\n /** Wix Nano. */\n NANO = 'NANO',\n}\n\n/** @enumType */\nexport type NamespaceWithLiterals =\n | Namespace\n | 'UNKNOWN_NAMESPACE'\n | 'WIX'\n | 'SHOUT_OUT'\n | 'ALBUMS'\n | 'WIX_STORES_TEST_DRIVE'\n | 'HOTELS'\n | 'CLUBS'\n | 'ONBOARDING_DRAFT'\n | 'DEV_SITE'\n | 'LOGOS'\n | 'VIDEO_MAKER'\n | 'PARTNER_DASHBOARD'\n | 'DEV_CENTER_COMPANY'\n | 'HTML_DRAFT'\n | 'SITELESS_BUSINESS'\n | 'CREATOR_ECONOMY'\n | 'DASHBOARD_FIRST'\n | 'ANYWHERE'\n | 'HEADLESS'\n | 'ACCOUNT_MASTER_CMS'\n | 'RISE'\n | 'BRANDED_FIRST'\n | 'NOWNIA'\n | 'UGC_TEMPLATE'\n | 'CODUX'\n | 'MEDIA_DESIGN_CREATOR'\n | 'SHARED_BLOG_ENTERPRISE'\n | 'STANDALONE_FORMS'\n | 'STANDALONE_EVENTS'\n | 'MIMIR'\n | 'TWINS'\n | 'NANO';\n\n/** Site transferred to another user. */\nexport interface SiteTransferred {\n /**\n * A previous owner id (user that transfers meta site).\n * @format GUID\n */\n oldOwnerId?: string;\n /**\n * A new owner id (user that accepts meta site).\n * @format GUID\n */\n newOwnerId?: string;\n}\n\n/** Soft deletion of the meta site. Could be restored. */\nexport interface SiteDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface DeleteContext {\n /** When the meta site was deleted. */\n dateDeleted?: Date | null;\n /** A status. */\n deleteStatus?: DeleteStatusWithLiterals;\n /**\n * A reason (flow).\n * @maxLength 255\n */\n deleteOrigin?: string;\n /**\n * A service that deleted it.\n * @maxLength 255\n */\n initiatorId?: string | null;\n}\n\nexport enum DeleteStatus {\n UNKNOWN = 'UNKNOWN',\n TRASH = 'TRASH',\n DELETED = 'DELETED',\n PENDING_PURGE = 'PENDING_PURGE',\n PURGED_EXTERNALLY = 'PURGED_EXTERNALLY',\n}\n\n/** @enumType */\nexport type DeleteStatusWithLiterals =\n | DeleteStatus\n | 'UNKNOWN'\n | 'TRASH'\n | 'DELETED'\n | 'PENDING_PURGE'\n | 'PURGED_EXTERNALLY';\n\n/** Restoration of the meta site. */\nexport interface SiteUndeleted {}\n\n/** First publish of a meta site. Or subsequent publish after unpublish. */\nexport interface SitePublished {}\n\nexport interface SiteUnpublished {\n /**\n * A list of URLs previously associated with the meta site.\n * @maxLength 4000\n * @maxSize 10000\n */\n urls?: string[];\n}\n\nexport interface SiteMarkedAsTemplate {}\n\nexport interface SiteMarkedAsWixSite {}\n\n/**\n * Represents a service provisioned a site.\n *\n * Note on `origin_instance_id`:\n * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.\n * This is because of the following scenario:\n *\n * Imagine you have a template where a third-party application (TPA) includes some stub data,\n * such as a product catalog. When you create a site from this template, you inherit this\n * default product catalog. However, if the template's product catalog is modified,\n * your site will retain the catalog as it was at the time of site creation. This ensures that\n * your site remains consistent with what you initially received and does not include any\n * changes made to the original template afterward.\n * To ensure this, the TPA on the template gets a new instance_id.\n */\nexport interface ServiceProvisioned {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * An instance id from which this instance is originated.\n * @maxLength 36\n */\n originInstanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n /**\n * The origin meta site id\n * @format GUID\n */\n originMetaSiteId?: string | null;\n}\n\nexport interface ServiceRemoved {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n}\n\n/** Rename of the site. Meaning, free public url has been changed as well. */\nexport interface SiteRenamed {\n /**\n * A new meta site name (URL slug).\n * @maxLength 20\n */\n newSiteName?: string;\n /**\n * A previous meta site name (URL slug).\n * @maxLength 255\n */\n oldSiteName?: string;\n}\n\n/**\n * Hard deletion of the meta site.\n *\n * Could not be restored. Therefore it's desirable to cleanup data.\n */\nexport interface SiteHardDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface NamespaceChanged {\n /** A previous namespace. */\n oldNamespace?: NamespaceWithLiterals;\n /** A new namespace. */\n newNamespace?: NamespaceWithLiterals;\n}\n\n/** Assigned Studio editor */\nexport interface StudioAssigned {}\n\n/** Unassigned Studio editor */\nexport interface StudioUnassigned {}\n\n/**\n * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.\n *\n * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up\n * with sites and its urls, you need to listen to another topic/event. Read about it:\n *\n * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service\n */\nexport interface SiteUrlChanged {}\n\n/**\n * Used at the end of the deletion flow for both draft sites and when a user deletes a site.\n * Consumed by other teams to remove relevant data.\n */\nexport interface SitePurgedExternally {\n /**\n * @maxLength 2048\n * @maxSize 100\n * @deprecated\n * @targetRemovalDate 2025-04-15\n */\n appDefId?: string[];\n}\n\n/** Assigned Odeditor */\nexport interface OdeditorAssigned {}\n\n/** Unassigned Odeditor */\nexport interface OdeditorUnassigned {}\n\n/** Assigned Picasso editor */\nexport interface PicassoAssigned {}\n\n/** Unassigned Picasso */\nexport interface PicassoUnassigned {}\n\n/** Assigned Wixel */\nexport interface WixelAssigned {}\n\n/** Unassigned Wixel */\nexport interface WixelUnassigned {}\n\n/** Assigned StudioTwo */\nexport interface StudioTwoAssigned {}\n\n/** Unassigned StudioTwo */\nexport interface StudioTwoUnassigned {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n/** @docsIgnore */\nexport type CreateBookingPolicyValidationErrors =\n | {\n ruleName?: 'BOTH_LATE_AND_AFTER_START_POLICIES_NOT_ALLOWED';\n }\n | {\n ruleName?: 'INVALID_BOOKING_WINDOW';\n }\n | {\n ruleName?: 'CANCELLATION_FEE_WITHOUT_CREDIT_CARD';\n }\n | {\n ruleName?: 'CANCELLATION_FEE_WITHOUT_DESCRIPTION';\n }\n | {\n ruleName?: 'INVALID_CANCELLATION_WINDOWS_ORDER';\n }\n | {\n ruleName?: 'EMPTY_CANCELLATION_WINDOWS_LIST';\n };\n/** @docsIgnore */\nexport type UpdateBookingPolicyValidationErrors =\n | {\n ruleName?: 'BOTH_LATE_AND_AFTER_START_POLICIES_NOT_ALLOWED';\n }\n | {\n ruleName?: 'INVALID_BOOKING_WINDOW';\n }\n | {\n ruleName?: 'CANCELLATION_FEE_WITHOUT_CREDIT_CARD';\n }\n | {\n ruleName?: 'CANCELLATION_FEE_WITHOUT_DESCRIPTION';\n }\n | {\n ruleName?: 'INVALID_CANCELLATION_WINDOWS_ORDER';\n }\n | {\n ruleName?: 'EMPTY_CANCELLATION_WINDOWS_LIST';\n };\n/** @docsIgnore */\nexport type DeleteBookingPolicyApplicationErrors = {\n code?: 'DEFAULT_POLICY_CANNOT_BE_DELETED';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixBookingsV1BookingPolicy from './bookings-v1-booking-policy-booking-policies.http.js';\nimport * as ambassadorWixBookingsV1BookingPolicyTypes from './bookings-v1-booking-policy-booking-policies.types.js';\nimport * as ambassadorWixBookingsV1BookingPolicyUniversalTypes from './bookings-v1-booking-policy-booking-policies.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createBookingPolicy(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.CreateBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyTypes.CreateBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.CreateBookingPolicyResponse,\n ambassadorWixBookingsV1BookingPolicyTypes.CreateBookingPolicyResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV1BookingPolicy.createBookingPolicy(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/booking-policies',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getBookingPolicy(): __PublicMethodMetaInfo<\n 'GET',\n { bookingPolicyId: string },\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.GetBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyTypes.GetBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.GetBookingPolicyResponse,\n ambassadorWixBookingsV1BookingPolicyTypes.GetBookingPolicyResponse\n> {\n const payload = { bookingPolicyId: ':bookingPolicyId' } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV1BookingPolicy.getBookingPolicy(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/booking-policies/{bookingPolicyId}',\n pathParams: { bookingPolicyId: 'bookingPolicyId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getStrictestBookingPolicy(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.GetStrictestBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyTypes.GetStrictestBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.GetStrictestBookingPolicyResponse,\n ambassadorWixBookingsV1BookingPolicyTypes.GetStrictestBookingPolicyResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV1BookingPolicy.getStrictestBookingPolicy(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/booking-policies/strictest',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateBookingPolicy(): __PublicMethodMetaInfo<\n 'PATCH',\n { bookingPolicyId: string },\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.UpdateBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyTypes.UpdateBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.UpdateBookingPolicyResponse,\n ambassadorWixBookingsV1BookingPolicyTypes.UpdateBookingPolicyResponse\n> {\n const payload = { bookingPolicy: { id: ':bookingPolicyId' } } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV1BookingPolicy.updateBookingPolicy(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/booking-policies/{bookingPolicy.id}',\n pathParams: { bookingPolicyId: 'bookingPolicyId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setDefaultBookingPolicy(): __PublicMethodMetaInfo<\n 'POST',\n { bookingPolicyId: string },\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.SetDefaultBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyTypes.SetDefaultBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.SetDefaultBookingPolicyResponse,\n ambassadorWixBookingsV1BookingPolicyTypes.SetDefaultBookingPolicyResponse\n> {\n const payload = { bookingPolicyId: ':bookingPolicyId' } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV1BookingPolicy.setDefaultBookingPolicy(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/booking-policies/{bookingPolicyId}:setDefault',\n pathParams: { bookingPolicyId: 'bookingPolicyId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteBookingPolicy(): __PublicMethodMetaInfo<\n 'DELETE',\n { bookingPolicyId: string },\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.DeleteBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyTypes.DeleteBookingPolicyRequest,\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.DeleteBookingPolicyResponse,\n ambassadorWixBookingsV1BookingPolicyTypes.DeleteBookingPolicyResponse\n> {\n const payload = { bookingPolicyId: ':bookingPolicyId' } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV1BookingPolicy.deleteBookingPolicy(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/booking-policies/{bookingPolicyId}',\n pathParams: { bookingPolicyId: 'bookingPolicyId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryBookingPolicies(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.QueryBookingPoliciesRequest,\n ambassadorWixBookingsV1BookingPolicyTypes.QueryBookingPoliciesRequest,\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.QueryBookingPoliciesResponse,\n ambassadorWixBookingsV1BookingPolicyTypes.QueryBookingPoliciesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV1BookingPolicy.queryBookingPolicies(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/booking-policies/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function countBookingPolicies(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.CountBookingPoliciesRequest,\n ambassadorWixBookingsV1BookingPolicyTypes.CountBookingPoliciesRequest,\n ambassadorWixBookingsV1BookingPolicyUniversalTypes.CountBookingPoliciesResponse,\n ambassadorWixBookingsV1BookingPolicyTypes.CountBookingPoliciesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV1BookingPolicy.countBookingPolicies(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/booking-policies/count',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n BookingPolicy as BookingPolicyOriginal,\n PolicyDescription as PolicyDescriptionOriginal,\n LimitEarlyBookingPolicy as LimitEarlyBookingPolicyOriginal,\n LimitLateBookingPolicy as LimitLateBookingPolicyOriginal,\n BookAfterStartPolicy as BookAfterStartPolicyOriginal,\n CancellationPolicy as CancellationPolicyOriginal,\n ReschedulePolicy as ReschedulePolicyOriginal,\n WaitlistPolicy as WaitlistPolicyOriginal,\n ParticipantsPolicy as ParticipantsPolicyOriginal,\n ResourcesPolicy as ResourcesPolicyOriginal,\n CancellationFeePolicy as CancellationFeePolicyOriginal,\n Money as MoneyOriginal,\n CancellationWindow as CancellationWindowOriginal,\n CancellationWindowFeeOneOf as CancellationWindowFeeOneOfOriginal,\n SaveCreditCardPolicy as SaveCreditCardPolicyOriginal,\n StaffSortingPolicy as StaffSortingPolicyOriginal,\n StaffSortingPolicyOptionsOneOf as StaffSortingPolicyOptionsOneOfOriginal,\n RankingOrder as RankingOrderOriginal,\n RankingOrderWithLiterals as RankingOrderWithLiteralsOriginal,\n SortingMethodType as SortingMethodTypeOriginal,\n SortingMethodTypeWithLiterals as SortingMethodTypeWithLiteralsOriginal,\n RankingOptions as RankingOptionsOriginal,\n CustomOptions as CustomOptionsOriginal,\n IntakeFormPolicy as IntakeFormPolicyOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n DefaultBookingPolicySet as DefaultBookingPolicySetOriginal,\n CreateBookingPolicyRequest as CreateBookingPolicyRequestOriginal,\n CreateBookingPolicyResponse as CreateBookingPolicyResponseOriginal,\n GetBookingPolicyRequest as GetBookingPolicyRequestOriginal,\n GetBookingPolicyResponse as GetBookingPolicyResponseOriginal,\n GetStrictestBookingPolicyRequest as GetStrictestBookingPolicyRequestOriginal,\n GetStrictestBookingPolicyResponse as GetStrictestBookingPolicyResponseOriginal,\n UpdateBookingPolicyRequest as UpdateBookingPolicyRequestOriginal,\n UpdateBookingPolicyResponse as UpdateBookingPolicyResponseOriginal,\n SetDefaultBookingPolicyRequest as SetDefaultBookingPolicyRequestOriginal,\n SetDefaultBookingPolicyResponse as SetDefaultBookingPolicyResponseOriginal,\n DeleteBookingPolicyRequest as DeleteBookingPolicyRequestOriginal,\n DeleteBookingPolicyResponse as DeleteBookingPolicyResponseOriginal,\n QueryBookingPoliciesRequest as QueryBookingPoliciesRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryBookingPoliciesResponse as QueryBookingPoliciesResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n CountBookingPoliciesRequest as CountBookingPoliciesRequestOriginal,\n CountBookingPoliciesResponse as CountBookingPoliciesResponseOriginal,\n UpdateAllPoliciesRequest as UpdateAllPoliciesRequestOriginal,\n UpdateAllPoliciesResponse as UpdateAllPoliciesResponseOriginal,\n CreateMissingDefaultPolicyRequest as CreateMissingDefaultPolicyRequestOriginal,\n CreateMissingDefaultPolicyResponse as CreateMissingDefaultPolicyResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n SitePropertiesNotification as SitePropertiesNotificationOriginal,\n SitePropertiesEvent as SitePropertiesEventOriginal,\n Properties as PropertiesOriginal,\n Categories as CategoriesOriginal,\n Locale as LocaleOriginal,\n Address as AddressOriginal,\n AddressHint as AddressHintOriginal,\n PlacementType as PlacementTypeOriginal,\n PlacementTypeWithLiterals as PlacementTypeWithLiteralsOriginal,\n GeoCoordinates as GeoCoordinatesOriginal,\n BusinessSchedule as BusinessScheduleOriginal,\n TimePeriod as TimePeriodOriginal,\n DayOfWeek as DayOfWeekOriginal,\n DayOfWeekWithLiterals as DayOfWeekWithLiteralsOriginal,\n SpecialHourPeriod as SpecialHourPeriodOriginal,\n Multilingual as MultilingualOriginal,\n SupportedLanguage as SupportedLanguageOriginal,\n ResolutionMethod as ResolutionMethodOriginal,\n ResolutionMethodWithLiterals as ResolutionMethodWithLiteralsOriginal,\n ConsentPolicy as ConsentPolicyOriginal,\n Translation as TranslationOriginal,\n ChangeContext as ChangeContextOriginal,\n ChangeContextPayloadOneOf as ChangeContextPayloadOneOfOriginal,\n PropertiesChange as PropertiesChangeOriginal,\n V4SiteCreated as V4SiteCreatedOriginal,\n SiteCloned as SiteClonedOriginal,\n MetaSiteSpecialEvent as MetaSiteSpecialEventOriginal,\n MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOfOriginal,\n Asset as AssetOriginal,\n State as StateOriginal,\n StateWithLiterals as StateWithLiteralsOriginal,\n SiteCreated as SiteCreatedOriginal,\n SiteCreatedContext as SiteCreatedContextOriginal,\n SiteCreatedContextWithLiterals as SiteCreatedContextWithLiteralsOriginal,\n Namespace as NamespaceOriginal,\n NamespaceWithLiterals as NamespaceWithLiteralsOriginal,\n SiteTransferred as SiteTransferredOriginal,\n SiteDeleted as SiteDeletedOriginal,\n DeleteContext as DeleteContextOriginal,\n DeleteStatus as DeleteStatusOriginal,\n DeleteStatusWithLiterals as DeleteStatusWithLiteralsOriginal,\n SiteUndeleted as SiteUndeletedOriginal,\n SitePublished as SitePublishedOriginal,\n SiteUnpublished as SiteUnpublishedOriginal,\n SiteMarkedAsTemplate as SiteMarkedAsTemplateOriginal,\n SiteMarkedAsWixSite as SiteMarkedAsWixSiteOriginal,\n ServiceProvisioned as ServiceProvisionedOriginal,\n ServiceRemoved as ServiceRemovedOriginal,\n SiteRenamed as SiteRenamedOriginal,\n SiteHardDeleted as SiteHardDeletedOriginal,\n NamespaceChanged as NamespaceChangedOriginal,\n StudioAssigned as StudioAssignedOriginal,\n StudioUnassigned as StudioUnassignedOriginal,\n SiteUrlChanged as SiteUrlChangedOriginal,\n SitePurgedExternally as SitePurgedExternallyOriginal,\n OdeditorAssigned as OdeditorAssignedOriginal,\n OdeditorUnassigned as OdeditorUnassignedOriginal,\n PicassoAssigned as PicassoAssignedOriginal,\n PicassoUnassigned as PicassoUnassignedOriginal,\n WixelAssigned as WixelAssignedOriginal,\n WixelUnassigned as WixelUnassignedOriginal,\n StudioTwoAssigned as StudioTwoAssignedOriginal,\n StudioTwoUnassigned as StudioTwoUnassignedOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n CreateBookingPolicyValidationErrors as CreateBookingPolicyValidationErrorsOriginal,\n UpdateBookingPolicyValidationErrors as UpdateBookingPolicyValidationErrorsOriginal,\n DeleteBookingPolicyApplicationErrors as DeleteBookingPolicyApplicationErrorsOriginal,\n} from './bookings-v1-booking-policy-booking-policies.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAAA;AAAA,EAAA,2BAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,iCAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,2BAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,oBACd,SAC4B;AAC5B,WAAS,sBAAsB,EAAE,KAAK,GAAQ;AAC5C,UAAM,qBAAiB,uCAAe,SAAS;AAAA,MAC7C;AAAA,QACE,aAAa;AAAA,QACb,OAAO;AAAA,UACL,EAAE,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BAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["countBookingPolicies","createBookingPolicy","deleteBookingPolicy","getBookingPolicy","getStrictestBookingPolicy","queryBookingPolicies","setDefaultBookingPolicy","updateBookingPolicy","import_timestamp","import_rest_modules","payload","RankingOrder","SortingMethodType","SortOrder","PlacementType","DayOfWeek","ResolutionMethod","State","SiteCreatedContext","Namespace","DeleteStatus","WebhookIdentityType","createBookingPolicy","getBookingPolicy","getStrictestBookingPolicy","updateBookingPolicy","setDefaultBookingPolicy","deleteBookingPolicy","queryBookingPolicies","countBookingPolicies"]}
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
2
  import { BookingPolicy, CreateBookingPolicyValidationErrors, GetStrictestBookingPolicyResponse, UpdateBookingPolicy, UpdateBookingPolicyValidationErrors, SetDefaultBookingPolicyResponse, DeleteBookingPolicyApplicationErrors, BookingPoliciesQueryBuilder, CountBookingPoliciesOptions, CountBookingPoliciesResponse, BookingPolicyCreatedEnvelope, BookingPolicyDefaultBookingPolicySetEnvelope, BookingPolicyDeletedEnvelope, BookingPolicyUpdatedEnvelope } from './index.typings.mjs';
3
- export { ActionEvent, Address, AddressHint, Asset, BaseEventMetadata, BookAfterStartPolicy, BookingPoliciesQueryResult, BusinessSchedule, CancellationFeePolicy, CancellationPolicy, CancellationWindow, CancellationWindowFeeOneOf, Categories, ChangeContext, ChangeContextPayloadOneOf, ConsentPolicy, CountBookingPoliciesRequest, CreateBookingPolicyRequest, CreateBookingPolicyResponse, CreateMissingDefaultPolicyRequest, CreateMissingDefaultPolicyResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomOptions, DayOfWeek, DayOfWeekWithLiterals, DefaultBookingPolicySet, DeleteBookingPolicyRequest, DeleteBookingPolicyResponse, DeleteContext, DeleteStatus, DeleteStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GeoCoordinates, GetBookingPolicyRequest, GetBookingPolicyResponse, GetStrictestBookingPolicyRequest, IdentificationData, IdentificationDataIdOneOf, IntakeFormPolicy, LimitEarlyBookingPolicy, LimitLateBookingPolicy, Locale, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Money, Multilingual, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, ParticipantsPolicy, PicassoAssigned, PicassoUnassigned, PlacementType, PlacementTypeWithLiterals, PolicyDescription, Properties, PropertiesChange, QueryBookingPoliciesRequest, QueryBookingPoliciesResponse, RankingOptions, RankingOrder, RankingOrderWithLiterals, ReschedulePolicy, ResolutionMethod, ResolutionMethodWithLiterals, ResourcesPolicy, RestoreInfo, SaveCreditCardPolicy, ServiceProvisioned, ServiceRemoved, SetDefaultBookingPolicyRequest, SiteCloned, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePropertiesEvent, SitePropertiesNotification, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, SortingMethodType, SortingMethodTypeWithLiterals, SpecialHourPeriod, StaffSortingPolicy, StaffSortingPolicyOptionsOneOf, State, StateWithLiterals, StudioAssigned, StudioUnassigned, SupportedLanguage, TimePeriod, Translation, UpdateAllPoliciesRequest, UpdateAllPoliciesResponse, UpdateBookingPolicyRequest, UpdateBookingPolicyResponse, V4SiteCreated, WaitlistPolicy, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned } from './index.typings.mjs';
3
+ export { ActionEvent, Address, AddressHint, Asset, BaseEventMetadata, BookAfterStartPolicy, BookingPoliciesQueryResult, BusinessSchedule, CancellationFeePolicy, CancellationPolicy, CancellationWindow, CancellationWindowFeeOneOf, Categories, ChangeContext, ChangeContextPayloadOneOf, ConsentPolicy, CountBookingPoliciesRequest, CreateBookingPolicyRequest, CreateBookingPolicyResponse, CreateMissingDefaultPolicyRequest, CreateMissingDefaultPolicyResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomOptions, DayOfWeek, DayOfWeekWithLiterals, DefaultBookingPolicySet, DeleteBookingPolicyRequest, DeleteBookingPolicyResponse, DeleteContext, DeleteStatus, DeleteStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GeoCoordinates, GetBookingPolicyRequest, GetBookingPolicyResponse, GetStrictestBookingPolicyRequest, IdentificationData, IdentificationDataIdOneOf, IntakeFormPolicy, LimitEarlyBookingPolicy, LimitLateBookingPolicy, Locale, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Money, Multilingual, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, ParticipantsPolicy, PicassoAssigned, PicassoUnassigned, PlacementType, PlacementTypeWithLiterals, PolicyDescription, Properties, PropertiesChange, QueryBookingPoliciesRequest, QueryBookingPoliciesResponse, RankingOptions, RankingOrder, RankingOrderWithLiterals, ReschedulePolicy, ResolutionMethod, ResolutionMethodWithLiterals, ResourcesPolicy, RestoreInfo, SaveCreditCardPolicy, ServiceProvisioned, ServiceRemoved, SetDefaultBookingPolicyRequest, SiteCloned, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePropertiesEvent, SitePropertiesNotification, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, SortingMethodType, SortingMethodTypeWithLiterals, SpecialHourPeriod, StaffSortingPolicy, StaffSortingPolicyOptionsOneOf, State, StateWithLiterals, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, SupportedLanguage, TimePeriod, Translation, UpdateAllPoliciesRequest, UpdateAllPoliciesResponse, UpdateBookingPolicyRequest, UpdateBookingPolicyResponse, V4SiteCreated, WaitlistPolicy, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned } from './index.typings.mjs';
4
4
 
5
5
  declare function createBookingPolicy$1(httpClient: HttpClient): CreateBookingPolicySignature;
6
6
  interface CreateBookingPolicySignature {