import * as _wix_sdk_types from '@wix/sdk-types'; import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types'; interface ReservationLocation { /** * Reservation location ID. * @format GUID * @readonly */ _id?: string | null; /** * Represents the current state of a reservation location. Each time the reservation location is modified, its `revision` changes. For an update operation to succeed, you must specify the latest revision. * @immutable */ revision?: string | null; /** * The date and time this reservation location was created. * @readonly */ _createdDate?: Date | null; /** * The date and time this reservation location was last updated. * @readonly */ _updatedDate?: Date | null; /** * Physical location details. * * Locations can be created and configured using the Locations API. * or on the [Business Info](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fsettings/business-info) page in the Dashboard. * @readonly */ location?: Location; /** Reservation location configuration. */ configuration?: Configuration; /** * Whether this reservation location's `location` is the default location of the business. * @readonly */ default?: boolean | null; /** * Whether this reservation location's `location` is archived. * @readonly */ archived?: boolean | null; /** * PRIVATE Seating plan ID. * @internal * @format GUID */ seatingPlanId?: string | null; /** * Currency code. Must be a valid [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. For example, `USD`. * @internal * @format CURRENCY * @readonly */ currency?: string | null; /** * Custom field data for the reservation location object. * * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls. */ extendedFields?: ExtendedFields; } interface StreetAddress { /** * Street number. * @maxLength 100 */ number?: string; /** * Street name. * @maxLength 100 */ name?: string; /** * Apartment number. * @maxLength 100 */ apt?: string; } /** Address geolocation information. */ interface AddressLocation { /** Latitude of the location. Must be between -90 and 90. */ latitude?: number | null; /** Longitude of the location. Must be between -180 and 180. */ longitude?: number | null; } interface LocationAddress { /** * 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * @format COUNTRY */ country?: string | null; /** * Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format. * @maxLength 100 */ subdivision?: string | null; /** * City name. * @maxLength 100 */ city?: string | null; /** * Postal or zip code. * @maxLength 20 */ postalCode?: string | null; /** Street address of the location. Includes street name, number, and apartment number in separate fields. */ streetAddress?: StreetAddress; /** * Full address of the location. * @maxLength 10000 */ formatted?: string | null; /** * Extra information that helps guests find the location. * @maxLength 10000 */ hint?: string | null; /** Geographic coordinates of the location. */ location?: AddressLocation; } /** * Time periods that this location is open for business. Includes a collection of TimePeriod instances. * Aligned with https://developers.google.com/my-business/reference/rest/v4/accounts.locations#businesshours * With a few minor adjustments */ interface CommonBusinessSchedule { periods?: CommonTimePeriod[]; /** * Time periods during which this location is open. Each period represents a range of hours during the week during which the location is * open. * * Max: 100 time periods * @maxSize 50 */ specialHourPeriod?: CommonSpecialHourPeriod[]; } /** * A span of time that the business is open, * starting on the specified open day/time and closing on the specified close day/time. * Closing time must occur after the opening time, for example later in the same day, or on a subsequent day. */ interface CommonTimePeriod { /** Day of the week this period starts on. */ openDay?: CommonDayOfWeekWithLiterals; /** * Time this period starts in 24hr [ISO 8601](http://www.w3.org/TR/NOTE-datetime) extended format (hh:mm). Valid values are `00:00-24:00`, where `24:00` represents * midnight at the end of the specified day field. */ openTime?: string; /** Day of the week this period ends on. */ closeDay?: CommonDayOfWeekWithLiterals; /** * Time this period ends in 24hr [ISO 8601](http://www.w3.org/TR/NOTE-datetime) extended format (hh:mm). Valid values are `00:00-24:00`, where `24:00` represents * midnight at the end of the specified day field. * * This is the last time a reservation can be made at the restaurant, not the time the restaurant closes its doors. */ closeTime?: string; } /** Enumerates the days of the week. */ declare enum CommonDayOfWeek { MONDAY = "MONDAY", TUESDAY = "TUESDAY", WEDNESDAY = "WEDNESDAY", THURSDAY = "THURSDAY", FRIDAY = "FRIDAY", SATURDAY = "SATURDAY", SUNDAY = "SUNDAY" } /** @enumType */ type CommonDayOfWeekWithLiterals = CommonDayOfWeek | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY'; /** Set of time periods when a location's operational hours differ from its normal business hours. */ interface CommonSpecialHourPeriod { /** Start date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format. */ startDate?: string; /** End date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format. */ endDate?: string; /** Whether or not the location is closed during this period. */ isClosed?: boolean; /** Additional details about the period. */ comment?: string; } interface Area { /** * Area ID. * @format GUID */ _id?: string | null; /** * Area name. * @minLength 1 * @maxLength 50 */ name?: string | null; /** * Area description. * @maxLength 100 */ description?: string | null; } declare enum TableManagementMode { /** Tables can be assigned manually for reservations at this location. When tables aren't manually assigned, Wix assigns them automatically. */ ON = "ON", /** Tables can be assigned manually for reservations at this location. Wix doesn't assign tables automatically. */ IN_HOUSE_ONLY = "IN_HOUSE_ONLY", /** Tables can't be assigned manually for reservations at this location. Wix doesn't assign tables automatically. If you try to assign a table manually, the request will fail. */ OFF = "OFF" } /** @enumType */ type TableManagementModeWithLiterals = TableManagementMode | 'ON' | 'IN_HOUSE_ONLY' | 'OFF'; interface TableDefinition { /** * Table ID. * @format GUID * @readonly */ _id?: string | null; /** * Table name. * @minLength 1 * @maxLength 50 */ name?: string; /** * Minimum number of seats. * @max 10000 */ seatsMin?: number; /** * Maximum number of seats. * @max 10000 */ seatsMax?: number; /** Whether the table is active (available to be reserved). */ isActive?: boolean | null; /** * ID of the area this table belongs to. Must reference an existing area in the `areas` list. * @internal * @format GUID */ areaId?: string | null; } interface TableCombination { /** * Table combination ID. * @format GUID * @readonly */ _id?: string | null; /** * IDs of tables in the combination. * @maxSize 1000 * @maxLength 36 */ tableIds?: string[] | null; /** * Minimum number of seats that can be reserved in this table combination. * @max 10000 */ seatsMin?: number; /** * Maximum number of seats that can be reserved in this table combination. * @max 10000 */ seatsMax?: number; /** Whether the table combination is active (available to be reserved). */ isActive?: boolean | null; } declare enum Unit { UNKNOWN = "UNKNOWN", MINUTES = "MINUTES", HOURS = "HOURS", DAYS = "DAYS" } /** @enumType */ type UnitWithLiterals = Unit | 'UNKNOWN' | 'MINUTES' | 'HOURS' | 'DAYS'; declare enum Mode { /** Reservations are confirmed automatically without restaurant owner review. */ AUTOMATIC = "AUTOMATIC", /** Every reservation requires manual approval from the restaurant owner before it's confirmed. */ MANUAL = "MANUAL", /** Only reservations meeting or exceeding `manualForLargePartiesOptions.partySizeThreshold` require manual approval. Smaller parties are confirmed automatically. */ MANUAL_FOR_LARGE_PARTIES = "MANUAL_FOR_LARGE_PARTIES" } /** @enumType */ type ModeWithLiterals = Mode | 'AUTOMATIC' | 'MANUAL' | 'MANUAL_FOR_LARGE_PARTIES'; interface ManualForLargePartiesOptions { /** * The minimum party size that requires manual approval. * @max 10000 */ partySizeThreshold?: number | null; /** Use tables for manual approval part. */ considerTablesForManualApproval?: boolean | null; } /** Settings for pausing standard online reservations. */ interface StandardReservations { /** * Timestamp from which online reservations are paused. Read-only, set automatically when pause is configured. * @readonly */ pauseFrom?: Date | null; /** * Timestamp until which online reservations are paused. * When set and the current time is before this timestamp, online reservations are blocked. * When the current time passes this timestamp, reservations automatically resume. */ pauseUntil?: Date | null; } /** reCAPTCHA mode. */ declare enum CaptchaMode { /** Guests are never asked to complete reCAPTCHA. */ OFF = "OFF", /** Guests are asked to complete reCAPTCHA only when Wix's risk signals flag their request as suspicious. */ SUSPECTED_BOTS = "SUSPECTED_BOTS", /** Wix asks every guest to complete reCAPTCHA. Protection is best effort. */ ALWAYS = "ALWAYS" } /** @enumType */ type CaptchaModeWithLiterals = CaptchaMode | 'OFF' | 'SUSPECTED_BOTS' | 'ALWAYS'; /** Approval settings. */ interface Approval extends ApprovalOptionsOneOf { /** Manual approval for large parties options. */ manualForLargePartiesOptions?: ManualForLargePartiesOptions; /** Approval mode. */ mode?: ModeWithLiterals; } /** @oneof */ interface ApprovalOptionsOneOf { /** Manual approval for large parties options. */ manualForLargePartiesOptions?: ManualForLargePartiesOptions; } /** * Seat pacing. * The maximum number of seats that can be filled by new reservations within a `timeSlotInterval`. * For example, if `timeSlotInterval` is 15 minutes then setting a seat pacing of 20 would mean that between `10:00.000`-`10:14.999` there will be no more than 20 new seats available for reservation. */ interface SeatPacing { /** * Maximum number of seats allowed per `timeSlotInterval`. * @max 10000 */ number?: number; /** Whether this option is enabled. */ enabled?: boolean; } /** * Party pacing. * The maximum number of party reservations that can start within a `timSlotInterval`. * For example, if `timeSlotInterval` is 15 minutes then a party pacing of 5 would mean that no more than 5 parties could make a reservation for the period between `10:00.000`-`10:14.999`. */ interface PartyPacing { /** * Maximum number of new party reservations allowed per `timeSlotInterval`. * @max 10000 */ number?: number; /** Whether this option is enabled. */ enabled?: boolean; } /** The party size limits for a single reservation. */ interface PartiesSize { /** * Minimum number of seats a party can reserve. * @max 10000 */ min?: number; /** * Maximum number of seats a party can reserve. * @max 10000 */ max?: number; } /** The party size limits for a single reservation. */ interface PartySize { /** * Minimum number of seats a party can reserve. * @max 10000 */ min?: number; /** * Maximum number of seats a party can reserve. * @max 10000 */ max?: number; } /** * Reservation notice period. * * The period of time between making a reservation and that reservation's start time. Reservations cannot be made after the start of this period. */ interface NoticePeriod { /** * The quantity of the chosen time unit. * @min 1 * @max 1000 */ number?: number; /** * Time unit. * * Supported values: * 'UNKNOWN', 'MINUTES, 'HOURS', 'DAYS'. */ unit?: UnitWithLiterals; } /** Turnover time rule. A turnover time is defined per party size range. */ interface TurnoverTimeRule { /** * Minimum number of seats to qualify for this rule. * @min 1 * @max 10000 */ seatsMin?: number; /** * Maximum number of seats to qualify for this rule. * @min 1 * @max 10000 */ seatsMax?: number; /** * Turnover time in minutes for qualifying parties. * @max 1440 */ minutes?: number; } /** Turnover rule. A turnover time is defined per party size range. */ interface TurnoverRule { /** * Minimum number of seats to qualify for this rule. * @min 1 * @max 10000 */ minSeats?: number; /** * Maximum number of seats to qualify for this rule. * @min 1 * @max 10000 */ maxSeats?: number; /** * Turnover time in minutes for qualifying parties. * @max 1440 */ minutes?: number; } /** Pause settings for online reservations. */ interface PauseSettings { /** Pause settings for standard reservations. */ standardReservations?: StandardReservations; } /** Manual approval settings. */ interface ManualApproval extends ManualApprovalValueOneOf { /** * The minimum party size that requires manual approval. * @max 10000 */ partySizeThreshold?: number; /** Whether manual approval is required for online reservations. */ enabled?: boolean; } /** @oneof */ interface ManualApprovalValueOneOf { /** * The minimum party size that requires manual approval. * @max 10000 */ partySizeThreshold?: number; } /** Guest verification settings for online reservations. */ interface GuestVerification { /** When guests are asked to complete reCAPTCHA. */ captchaMode?: CaptchaModeWithLiterals; } /** Type of the field. */ declare enum FieldType { UNKNOWN = "UNKNOWN", TABLE = "TABLE", START_DATE = "START_DATE", END_DATE = "END_DATE", CREATED_DATE = "CREATED_DATE", UPDATED_DATE = "UPDATED_DATE", PARTY_SIZE = "PARTY_SIZE", FIRST_NAME = "FIRST_NAME", LAST_NAME = "LAST_NAME", EMAIL = "EMAIL", PHONE = "PHONE", ADDITIONAL_INFO = "ADDITIONAL_INFO", TEAM_MESSAGE = "TEAM_MESSAGE", CUSTOM_FIELD = "CUSTOM_FIELD", STATUS = "STATUS" } /** @enumType */ type FieldTypeWithLiterals = FieldType | 'UNKNOWN' | 'TABLE' | 'START_DATE' | 'END_DATE' | 'CREATED_DATE' | 'UPDATED_DATE' | 'PARTY_SIZE' | 'FIRST_NAME' | 'LAST_NAME' | 'EMAIL' | 'PHONE' | 'ADDITIONAL_INFO' | 'TEAM_MESSAGE' | 'CUSTOM_FIELD' | 'STATUS'; /** Terms and conditions. */ interface TermsAndConditions extends TermsAndConditionsValueOneOf { /** Terms and conditions URL. */ url?: string; /** * Terms and conditions text. * @maxLength 1000000 */ text?: string | null; /** * Whether the terms and conditions are shown to the customer. * * Default: `false` */ enabled?: boolean; } /** @oneof */ interface TermsAndConditionsValueOneOf { /** Terms and conditions URL. */ url?: string; /** * Terms and conditions text. * @maxLength 1000000 */ text?: string | null; } /** Privacy policy. */ interface PrivacyPolicy extends PrivacyPolicyValueOneOf { /** Privacy policy URL. */ url?: string; /** * Privacy policy text. * @maxLength 1000000 */ text?: string | null; /** * Whether the privacy policy is shown to the customer. * * Default: `false` */ enabled?: boolean; } /** @oneof */ interface PrivacyPolicyValueOneOf { /** Privacy policy URL. */ url?: string; /** * Privacy policy text. * @maxLength 1000000 */ text?: string | null; } /** Custom field definition. Definitions of the fields that are added to the reservation form. */ interface CustomFieldDefinition { /** * Custom field ID. * @format GUID * @readonly */ _id?: string | null; /** * Custom field name. * @minLength 1 * @maxLength 1000 */ name?: string; /** * Whether the custom field is required. * * Default: `false` */ required?: boolean; } /** Email marketing checkbox. */ interface EmailMarketingCheckbox { /** * Whether the checkbox is shown to the customer. * * Default: `false` */ enabled?: boolean; /** * Whether the checkbox is checked by default. * * Default: `false` */ checkedByDefault?: boolean; } declare enum PaymentPolicyType { /** Undefined payment policy type. */ UNKNOWN_PAYMENT_POLICY = "UNKNOWN_PAYMENT_POLICY", /** A fee is charged for each guest in the reservation. */ PER_GUEST = "PER_GUEST", /** A fee is charged for the entire reservation. */ PER_RESERVATION = "PER_RESERVATION" } /** @enumType */ type PaymentPolicyTypeWithLiterals = PaymentPolicyType | 'UNKNOWN_PAYMENT_POLICY' | 'PER_GUEST' | 'PER_RESERVATION'; /** Payment per guest policy. */ interface PerGuestOptions { /** * Monetary amount to charge. Must be a decimal string with a period as a decimal separator. For example, `"3.99"`. * @decimalValue options { gt:0.000, maxScale:3 } */ price?: string; /** * Minimum party size required to apply the payment policy. * @min 1 * @max 1000 */ minPartySize?: number; } /** Payment per reservation policy. */ interface PerReservationOptions { /** * Monetary amount to charge. Must be a decimal string with a period as a decimal separator. For example, `"3.99"`. * @decimalValue options { gt:0.000, maxScale:3 } */ price?: string; /** * Minimum party size required to apply the payment policy. * @min 1 * @max 1000 */ minPartySize?: number; } interface OnlineReservations { /** Approval settings. */ approval?: Approval; /** * Seat pacing settings. * * The maximum number of seats that can be filled by new reservations within a 15-minute period. * For example, setting a seat pacing of 15 would mean that between `10:00.000`-`10:14.999` there will be no more than 15 new seats available for reservation. */ seatPacing?: SeatPacing; /** * Party pacing settings. * * The maximum number of party reservations that can start within a `timeSlotInterval` period. * For example, if `timeSlotInterval` is 15 minutes, then a party pacing of 5 would mean that no more than 5 parties could make a reservation for the period between `10:00.000`-`10:14.999`. */ partyPacing?: PartyPacing; /** * PRIVATE Party size limits. * @deprecated PRIVATE Party size limits. * @replacedBy party_size * @targetRemovalDate 2023-11-01 */ partiesSize?: PartiesSize; /** Party size limits for a reservation. */ partySize?: PartySize; /** * Minimum reservation notice. * * The minimum amount of time that must be allowed between making a reservation and that reservation's start time. */ minimumReservationNotice?: NoticePeriod; /** * Maximum reservation notice. * * The maximum amount of time that can be allowed between making a reservation and that reservation's start time. */ maximumReservationNotice?: NoticePeriod; /** * Default turnover time in minutes. * * Turnover time is how much time a party is allotted for their entire reservation - from being seated to leaving the restaurant. * @max 1440 */ defaultTurnoverTime?: number | null; /** * Custom turnover time rules. * * This allows you to set different turnover times for different party sizes. * @maxSize 1000 */ turnoverTimeRules?: TurnoverTimeRule[]; /** * PRIVATE Turnover rules. * @internal * @maxSize 1000 */ turnoverRules?: TurnoverRule[]; /** * The location's business schedule. * * Limited to 100 time periods. */ businessSchedule?: CommonBusinessSchedule; /** Whether a phone number is shown. */ showPhoneNumber?: boolean | null; /** Whether online reservations are enabled. */ onlineReservationsEnabled?: boolean | null; /** Pause settings for reservations. */ pauseSettings?: PauseSettings; /** * Manual approval settings. * @deprecated Manual approval settings. * @replacedBy approval * @targetRemovalDate 2025-07-05 */ manualApproval?: ManualApproval; /** * Interval between a reservation location's time slots in minutes. * * This controls the interval between time slots on a Wix site's Reservations page, and the interval between time slots returned by [getTimeSlots()](/time-slots/get-time-slots). * * Default: `15` * @min 15 * @max 120 */ timeSlotInterval?: number | null; /** * Guest verification settings: when guests booking online must complete a reCAPTCHA bot challenge. This doesn't verify the guest's identity. * * Absent until the guest verification settings are saved for this location. When absent, or when `captchaMode` is `UNKNOWN_CAPTCHA_MODE`, Wix decides per request whether to ask for reCAPTCHA. * * Updates replace the whole object. Any update whose field mask includes `guestVerification` or a path under it must include `captchaMode`. * @internal */ guestVerification?: GuestVerification; } /** Reservation form settings. */ interface ReservationForm { /** * A message shown to the customer in the registration form. * @maxLength 1000000 */ submitMessage?: string | null; /** Whether to show policies (the terms and conditions, and the privacy policy) to the customer. */ policiesEnabled?: boolean | null; /** Settings for displaying the terms and conditions. */ termsAndConditions?: TermsAndConditions; /** Settings for displaying the privacy policy. */ privacyPolicy?: PrivacyPolicy; /** * Custom fields you wish to add to the registration form for the customer to fill in. * @maxSize 1000 */ customFieldDefinitions?: CustomFieldDefinition[]; /** * Whether a last_name is required in the reservation form. * * Default: `false` */ lastNameRequired?: boolean | null; /** * Whether an email is required in the reservation form. * * Default: `false` */ emailRequired?: boolean | null; /** Email marketing checkbox settings. */ emailMarketingCheckbox?: EmailMarketingCheckbox; } /** My reservations field definition. */ interface MyReservationsField { /** Field type. */ fieldType?: FieldTypeWithLiterals; /** * Custom field ID. * * This should only be provided if the `fieldType` is `CUSTOM_FIELD`, in which case it is required and must match the ID of a custom field in the `customFieldDefinitions` array of the `reservationForm`. * @format GUID * @readonly */ customFieldId?: string | null; /** Whether the field is shown. */ shown?: boolean; } interface TableManagement { /** Table management mode. The mode determines how tables are assigned for reservations at this location. */ mode?: TableManagementModeWithLiterals; /** * Table definitions. * @maxSize 1000 */ tableDefinitions?: TableDefinition[]; /** * Deleted table definitions. * @maxSize 1000 */ deletedTableDefinitions?: TableDefinition[]; /** * Table combinations. * @maxSize 1000 */ tableCombinations?: TableCombination[]; } /** Reservation payment. */ interface ReservationPayment { /** * Monetary amount to charge. Decimal string with a period as a decimal separator (e.g., 3.99) * @decimalValue options { gte:0.000, maxScale:3 } */ value?: string; /** * Minimum party size to apply the payment policy. * @min 1 * @max 1000 */ minPartySize?: number; } /** Payment policy. */ interface PaymentPolicy extends PaymentPolicyOptionsOneOf { /** Settings for charging per guest. */ perGuestOptions?: PerGuestOptions; /** Settings for charging per reservation. */ perReservationOptions?: PerReservationOptions; /** Type of payment policy. */ paymentPolicyType?: PaymentPolicyTypeWithLiterals; } /** @oneof */ interface PaymentPolicyOptionsOneOf { /** Settings for charging per guest. */ perGuestOptions?: PerGuestOptions; /** Settings for charging per reservation. */ perReservationOptions?: PerReservationOptions; } interface AreaConfiguration { /** Whether areas are enabled for this location. */ enabled?: boolean | null; /** Whether area selection is visible for guests on the live site. */ visibleToGuests?: boolean | null; /** * Area definitions. Areas group tables into named sections (e.g., "Terrace", "Bar", "Indoor"). * @maxSize 100 */ areas?: Area[]; } /** * Cancellation policy configuration for a reservation location. * * Payment protection is on when `cancellation_fee` is set. The effective method is derived at * runtime: with a legacy prepayment-type `payment_policy` / `reservation_payment` on the location * → PREPAYMENT; otherwise → CARD_GUARANTEE; with no fee → NO_PAYMENT_METHOD. * When a reservation is created, the current policy is copied onto the reservation. Changes to * the location's policy do not affect existing reservations. */ interface CancellationPolicy { /** Cancellation and no-show fee terms. Present ⇒ payment protection is on. */ cancellationFee?: CancellationFee; /** * Guest-facing policy text shown to the guest before they confirm their reservation. * @maxLength 2500 */ guestPolicy?: string | null; } declare enum FeeUnit { /** Amount is calculated for each guest in the reservation. */ PER_GUEST = "PER_GUEST", /** Amount is calculated once for the reservation. */ PER_RESERVATION = "PER_RESERVATION" } /** @enumType */ type FeeUnitWithLiterals = FeeUnit | 'PER_GUEST' | 'PER_RESERVATION'; /** Free-cancellation window before the reservation start time. */ interface FreeCancellationWindow { /** * Duration of the window expressed in the chosen `unit`. The window must be between 1 hour and 180 days. * When `unit` is `HOURS`, the maximum is 4320. When `unit` is `DAYS`, the maximum is 180. * @min 1 * @max 4320 */ number?: number; /** Time unit for the window duration. */ unit?: WindowUnitWithLiterals; } declare enum WindowUnit { /** Window is measured in hours. */ HOURS = "HOURS", /** Window is measured in days. */ DAYS = "DAYS" } /** @enumType */ type WindowUnitWithLiterals = WindowUnit | 'HOURS' | 'DAYS'; /** Cancellation and no-show fee calculation terms. */ interface CancellationFee { /** * Monetary amount to charge or retain per unit. Must be a decimal string with a period as a decimal separator. For example, `"3.99"`. * @decimalValue options { gt:0.000, maxScale:3 } */ amount?: string; /** Unit used to calculate the total fee amount. */ unit?: FeeUnitWithLiterals; /** * Minimum party size required for the fee to apply. * @min 1 * @max 1000 */ minPartySize?: number; /** * Period before the reservation start time during which cancellation is free. * When absent, all cancellations incur the fee. */ freeCancellationWindow?: FreeCancellationWindow; } interface Location { /** * Location ID. * @format GUID * @readonly */ _id?: string | null; /** * PRIVATE Location name. * @internal * @readonly * @maxLength 150 */ name?: string | null; /** * PRIVATE Location description. * @internal * @readonly * @maxLength 500 */ description?: string | null; /** * PRIVATE Fax number for the location. * @internal * @readonly * @maxLength 40 */ fax?: string | null; /** * PRIVATE Timezone of the location in `America/New_York` format. * @internal * @readonly * @maxLength 40 */ timeZone?: string | null; /** * PRIVATE Email address for the location. * @internal * @maxLength 254 */ email?: string | null; /** * PRIVATE Phone number for the location. * @internal * @readonly * @maxLength 40 */ phone?: string | null; /** * PRIVATE Address of the location. * @internal * @readonly */ address?: LocationAddress; /** * PRIVATE * The location's business schedule. * A business schedule is an operational timetable of the business. It is represented by an array of weekly recurring time periods when the location is open for business. The business schedule is limited to 100 time periods. * @internal * @readonly */ businessSchedule?: CommonBusinessSchedule; } interface Configuration { /** Settings for this location that are used to determine restaurant availability for reservations made online. */ onlineReservations?: OnlineReservations; /** Reservation form settings. */ reservationForm?: ReservationForm; /** * "My reservations" field details. * * These are the fields that appear in the "My reservations" section of the Table Reservations page on the restaurant's Wix site dashboard. * @maxSize 100 * @deprecated "My reservations" field details. * * These are the fields that appear in the "My reservations" section of the Table Reservations page on the restaurant's Wix site dashboard. * @targetRemovalDate 2025-06-19 */ myReservationsFields?: MyReservationsField[]; /** Table management settings. */ tableManagement?: TableManagement; /** * Reservation payment details. Used to charge flat fee prepayment or deposit. * @internal */ reservationPayment?: ReservationPayment; /** Reservation payment policy. This policy determines how the restaurant charges for reservations. */ paymentPolicy?: PaymentPolicy; /** * Area configuration. * @internal */ areaConfiguration?: AreaConfiguration; /** * Cancellation policy for this location. * * When a reservation is created, the current policy is copied onto the reservation and governs * any cancellation fee that may apply, even if the policy is later updated. */ cancellationPolicy?: CancellationPolicy; } interface ExtendedFields { /** * Extended field data. Each key corresponds to the namespace of the app that created the extended fields. * The value of each key is structured according to the schema defined when the extended fields were configured. * * You can only access fields for which you have the appropriate permissions. * * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields). */ namespaces?: Record>; } interface InvalidateCache extends InvalidateCacheGetByOneOf { /** * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! * @format GUID */ metaSiteId?: string; /** * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! * @format GUID */ siteId?: string; /** Invalidate by App */ app?: App; /** Invalidate by page id */ page?: Page; /** Invalidate by URI path */ uri?: URI; /** Invalidate by file (for media files such as PDFs) */ file?: File; /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */ customTag?: CustomTag; /** Invalidate by multiple page ids */ pages?: Pages; /** Invalidate by multiple URI paths */ uris?: URIs; /** * tell us why you're invalidating the cache. You don't need to add your app name * @maxLength 256 */ reason?: string | null; /** Is local DS */ localDc?: boolean; hardPurge?: boolean; /** * Optional caller-provided ID for tracking this invalidation through the system. * When set, the corresponding CDN purge completion event will include this ID, * allowing you to confirm when the invalidation has fully propagated. * Example: generate a UUID, pass it here, and later match it in the CDN purge completion event. * @maxLength 256 */ correlationId?: string | null; } /** @oneof */ interface InvalidateCacheGetByOneOf { /** * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! * @format GUID */ metaSiteId?: string; /** * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! * @format GUID */ siteId?: string; /** Invalidate by App */ app?: App; /** Invalidate by page id */ page?: Page; /** Invalidate by URI path */ uri?: URI; /** Invalidate by file (for media files such as PDFs) */ file?: File; /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */ customTag?: CustomTag; /** Invalidate by multiple page ids */ pages?: Pages; /** Invalidate by multiple URI paths */ uris?: URIs; } interface App { /** * The AppDefId * @minLength 1 */ appDefId?: string; /** * The instance Id * @format GUID */ instanceId?: string; } interface Page { /** * the msid the page is on * @format GUID */ metaSiteId?: string; /** * Invalidate by Page ID * @minLength 1 */ pageId?: string; } interface URI { /** * the msid the URI is on * @format GUID */ metaSiteId?: string; /** * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes * @minLength 1 */ uriPath?: string; } interface File { /** * the msid the file is related to * @format GUID */ metaSiteId?: string; /** * Invalidate by filename (for media files such as PDFs) * @minLength 1 * @maxLength 256 */ fileName?: string; } interface CustomTag { /** * the msid the tag is related to * @format GUID */ metaSiteId?: string; /** * Tag to invalidate by * @minLength 1 * @maxLength 256 */ tag?: string; } interface Pages { /** * the msid the pages are on * @format GUID */ metaSiteId?: string; /** * Invalidate by multiple Page IDs in a single message * @maxSize 100 * @minLength 1 */ pageIds?: string[]; } interface URIs { /** * the msid the URIs are on * @format GUID */ metaSiteId?: string; /** * URI paths to invalidate (e.g. page/my/path) - without leading/trailing slashes * @maxSize 100 * @minLength 1 */ uriPaths?: string[]; } interface GetReservationLocationRequest { /** * ID of the ReservationLocation to retrieve. * @format GUID */ reservationLocationId: string; } interface GetReservationLocationResponse { /** The retrieved reservation location. */ reservationLocation?: ReservationLocation; } interface UpdateReservationLocationRequest { /** ReservationLocation to be updated, may be partial. */ reservationLocation: ReservationLocation; /** * Explicit list of fields to update. * @internal */ mask?: string[]; } interface UpdateReservationLocationResponse { /** The updated reservation location. */ reservationLocation?: ReservationLocation; } interface TablesDeleted { /** * ID of the affected reservation location. * @maxLength 36 */ reservationLocationId?: string; /** * IDs of deleted tables. * @maxSize 1000 * @maxLength 36 */ tableIds?: string[]; } interface ReservationLocationViolation extends ReservationLocationViolationViolationOneOf { /** Not all fields violation. */ notAllReservationFieldsViolation?: NotAllReservationFieldsViolation; /** Field not exists violation. */ reservationFieldNotExistViolation?: ReservationFieldNotExistViolation; /** Field must have type violation. */ reservationFieldMustHaveTypeViolation?: ReservationFieldMustHaveTypeViolation; /** Custom field names duplication violation. */ customFieldNamesDuplicationViolation?: CustomFieldNamesDuplicationViolation; /** Custom field ids duplication violation. */ customFieldIdsDuplicationViolation?: CustomFieldIdsDuplicationViolation; /** Table definition names duplication violation. */ tableDefinitionNamesDuplicationViolation?: TableDefinitionNamesDuplicationViolation; /** Table definition ids duplication violation. */ tableDefinitionIdsDuplicationViolation?: TableDefinitionIdsDuplicationViolation; /** Table definition not exist violation. */ tableDefinitionNotExistViolation?: TableDefinitionNotExistViolation; /** Table definition incorrect boundaries violation. */ tableDefinitionIncorrectBoundariesViolation?: TableDefinitionIncorrectBoundariesViolation; /** Turnover time rules intersection violation. */ turnoverTimeRulesIntersectViolation?: TurnoverTimeRulesIntersectViolation; /** Turnover time rules incorrect boundaries violation. */ turnoverTimeRulesIncorrectBoundariesViolation?: TurnoverTimeRulesIncorrectBoundariesViolation; /** Table combinations list contains combinations with not unique id. */ tableCombinationIdsDuplicationViolation?: TableCombinationIdsDuplicationViolation; /** Table ids list inside a combination contains not unique id. */ tableCombinationTableIdsDuplicationViolation?: TableCombinationTableIdsDuplicationViolation; /** Table combinations list contains more then one combination with the same table_ids. */ tableCombinationTableIdsCombinationDuplicationViolation?: TableCombinationTableIdsCombinationDuplicationViolation; /** Table combination not exist violation. */ tableCombinationNotExistViolation?: TableCombinationNotExistViolation; /** Table combination contains less than 2 tables. */ tableCombinationContainsLessThan2TablesViolation?: TableCombinationContainsLessThan2TablesViolation; /** Table combination min max seats violation. */ tableCombinationMinMaxSeatsViolation?: TableCombinationMinMaxSeatsViolation; /** Non existent tables used in table combinations. */ nonExistentTablesInTableCombinationViolation?: NonExistentTablesInTableCombinationViolation; /** Turnover rules intersection violation. */ turnoverRulesIntersectViolation?: TurnoverRulesIntersectViolation; /** Turnover time rules incorrect boundaries violation. */ turnoverRulesIncorrectBoundariesViolation?: TurnoverRulesIncorrectBoundariesViolation; /** Business schedule time period invalid violation. */ businessScheduleTimePeriodInvalidViolation?: BusinessScheduleTimePeriodInvalidViolation; /** Business schedule special hour period invalid violation. */ businessScheduleSpecialHourPeriodInvalidViolation?: BusinessScheduleSpecialHourPeriodInvalidViolation; /** Reservations fields duplication violation. */ myReservationsFieldsDuplicationViolation?: MyReservationsFieldsDuplicationViolation; /** Business schedule special hour period end date is before or equal to start date violation. */ businessScheduleSpecialHourPeriodEndBeforeStartViolation?: BusinessScheduleSpecialHourPeriodEndBeforeStartViolation; /** Business schedule time period close day and time before open day and time violation. */ businessScheduleTimePeriodCloseBeforeOpenViolation?: BusinessScheduleTimePeriodCloseBeforeOpenViolation; /** Area name duplication violation. */ areaNameDuplicationViolation?: AreaNameDuplicationViolation; /** Area ID duplication violation. */ areaIdDuplicationViolation?: AreaIdDuplicationViolation; /** Table definitions are missing area ID while area configuration is enabled. */ tableDefinitionAreaIdMissingViolation?: TableDefinitionAreaIdMissingViolation; /** Table definitions reference non-existent area IDs. */ tableDefinitionAreaIdNonExistentViolation?: TableDefinitionAreaIdNonExistentViolation; /** Type of the violation. */ type?: TypeWithLiterals; } /** @oneof */ interface ReservationLocationViolationViolationOneOf { /** Not all fields violation. */ notAllReservationFieldsViolation?: NotAllReservationFieldsViolation; /** Field not exists violation. */ reservationFieldNotExistViolation?: ReservationFieldNotExistViolation; /** Field must have type violation. */ reservationFieldMustHaveTypeViolation?: ReservationFieldMustHaveTypeViolation; /** Custom field names duplication violation. */ customFieldNamesDuplicationViolation?: CustomFieldNamesDuplicationViolation; /** Custom field ids duplication violation. */ customFieldIdsDuplicationViolation?: CustomFieldIdsDuplicationViolation; /** Table definition names duplication violation. */ tableDefinitionNamesDuplicationViolation?: TableDefinitionNamesDuplicationViolation; /** Table definition ids duplication violation. */ tableDefinitionIdsDuplicationViolation?: TableDefinitionIdsDuplicationViolation; /** Table definition not exist violation. */ tableDefinitionNotExistViolation?: TableDefinitionNotExistViolation; /** Table definition incorrect boundaries violation. */ tableDefinitionIncorrectBoundariesViolation?: TableDefinitionIncorrectBoundariesViolation; /** Turnover time rules intersection violation. */ turnoverTimeRulesIntersectViolation?: TurnoverTimeRulesIntersectViolation; /** Turnover time rules incorrect boundaries violation. */ turnoverTimeRulesIncorrectBoundariesViolation?: TurnoverTimeRulesIncorrectBoundariesViolation; /** Table combinations list contains combinations with not unique id. */ tableCombinationIdsDuplicationViolation?: TableCombinationIdsDuplicationViolation; /** Table ids list inside a combination contains not unique id. */ tableCombinationTableIdsDuplicationViolation?: TableCombinationTableIdsDuplicationViolation; /** Table combinations list contains more then one combination with the same table_ids. */ tableCombinationTableIdsCombinationDuplicationViolation?: TableCombinationTableIdsCombinationDuplicationViolation; /** Table combination not exist violation. */ tableCombinationNotExistViolation?: TableCombinationNotExistViolation; /** Table combination contains less than 2 tables. */ tableCombinationContainsLessThan2TablesViolation?: TableCombinationContainsLessThan2TablesViolation; /** Table combination min max seats violation. */ tableCombinationMinMaxSeatsViolation?: TableCombinationMinMaxSeatsViolation; /** Non existent tables used in table combinations. */ nonExistentTablesInTableCombinationViolation?: NonExistentTablesInTableCombinationViolation; /** Turnover rules intersection violation. */ turnoverRulesIntersectViolation?: TurnoverRulesIntersectViolation; /** Turnover time rules incorrect boundaries violation. */ turnoverRulesIncorrectBoundariesViolation?: TurnoverRulesIncorrectBoundariesViolation; /** Business schedule time period invalid violation. */ businessScheduleTimePeriodInvalidViolation?: BusinessScheduleTimePeriodInvalidViolation; /** Business schedule special hour period invalid violation. */ businessScheduleSpecialHourPeriodInvalidViolation?: BusinessScheduleSpecialHourPeriodInvalidViolation; /** Reservations fields duplication violation. */ myReservationsFieldsDuplicationViolation?: MyReservationsFieldsDuplicationViolation; /** Business schedule special hour period end date is before or equal to start date violation. */ businessScheduleSpecialHourPeriodEndBeforeStartViolation?: BusinessScheduleSpecialHourPeriodEndBeforeStartViolation; /** Business schedule time period close day and time before open day and time violation. */ businessScheduleTimePeriodCloseBeforeOpenViolation?: BusinessScheduleTimePeriodCloseBeforeOpenViolation; /** Area name duplication violation. */ areaNameDuplicationViolation?: AreaNameDuplicationViolation; /** Area ID duplication violation. */ areaIdDuplicationViolation?: AreaIdDuplicationViolation; /** Table definitions are missing area ID while area configuration is enabled. */ tableDefinitionAreaIdMissingViolation?: TableDefinitionAreaIdMissingViolation; /** Table definitions reference non-existent area IDs. */ tableDefinitionAreaIdNonExistentViolation?: TableDefinitionAreaIdNonExistentViolation; } interface DuplicatedName { /** * Duplicated field name. * @maxLength 50 */ name?: string; /** * Indexes of the invalid field. * @maxSize 1000 */ indexes?: number[]; } interface DuplicatedId { /** * Duplicated field id. * @maxLength 36 */ _id?: string; /** * Indexes of the invalid field. * @maxSize 1000 */ indexes?: number[]; } interface Violation { /** Duplicated field type. */ fieldType?: FieldTypeWithLiterals; /** * Id of custom field. * @format GUID * @readonly */ customFieldId?: string | null; /** * Indexes of the violated elements. * @maxSize 1000 */ myReservationsFieldIndexes?: number[]; } interface TableCombinationIdsDuplicationViolationViolation { /** * Duplicated table ID. * @maxLength 36 */ tableCombinationId?: string; /** * Indexes of the violated elements. * @maxSize 1000 */ tableCombinationIndexes?: number[]; } interface TableCombinationTableIdsDuplicationViolationViolation { /** Index of the table combination that contains not unique table IDs. */ tableCombinationIndex?: number; /** * Indexes of the violated elements. * @maxSize 1000 */ tableIndexes?: number[]; } interface NonExistentTablesInTableCombinationViolationViolation { /** Index of the table combination that contains non-existent table IDs. */ tableCombinationIndex?: number; /** * Indexes of the violated elements. * @maxSize 1000 */ tableIndexes?: number[]; } declare enum Type { /** Undefined violation type. */ UNKNOWN = "UNKNOWN", /** A `myReservationsFields` entry has `fieldType` `CUSTOM_FIELD` but its `customFieldId` doesn't match any custom field already configured in `myReservationsFields`. */ RESERVATION_FIELD_NOT_EXIST = "RESERVATION_FIELD_NOT_EXIST", /** A `myReservationsFields` entry has `fieldType` set to `UNKNOWN`; every entry must specify a type. */ RESERVATION_FIELD_MUST_HAVE_TYPE = "RESERVATION_FIELD_MUST_HAVE_TYPE", /** Two or more entries in `reservationForm.customFieldDefinitions` have the same name. */ CUSTOM_FIELD_NAMES_DUPLICATION = "CUSTOM_FIELD_NAMES_DUPLICATION", /** Two or more entries in `reservationForm.customFieldDefinitions` have the same ID. */ CUSTOM_FIELD_IDS_DUPLICATION = "CUSTOM_FIELD_IDS_DUPLICATION", /** Two or more table definitions have the same name. */ TABLE_DEFINITION_NAMES_DUPLICATION = "TABLE_DEFINITION_NAMES_DUPLICATION", /** Two or more table definitions have the same ID. */ TABLE_DEFINITION_IDS_DUPLICATION = "TABLE_DEFINITION_IDS_DUPLICATION", /** A table definition's `seatsMin` is greater than its `seatsMax`. */ TABLE_RESERVATION_INCORRECT_BOUNDARIES = "TABLE_RESERVATION_INCORRECT_BOUNDARIES", /** A table definition in the request has an `id` that doesn't match any existing table definition for this location. */ TABLE_DEFINITION_NOT_EXIST = "TABLE_DEFINITION_NOT_EXIST", /** Two or more entries in `turnoverTimeRules` have overlapping seat count ranges (`seatsMin`-`seatsMax`). */ TURNOVER_TIME_RULES_INTERSECT = "TURNOVER_TIME_RULES_INTERSECT", /** A `turnoverTimeRules` entry has `seatsMax` less than `seatsMin`. */ TURNOVER_TIME_RULES_INCORRECT_BOUNDARIES = "TURNOVER_TIME_RULES_INCORRECT_BOUNDARIES", /** `minimumReservationNotice.unit` is unset or unrecognized. */ MINIMUM_RESERVATION_NOTICE_PERIOD = "MINIMUM_RESERVATION_NOTICE_PERIOD", /** Two or more table combinations have the same ID. */ TABLE_COMBINATION_IDS_DUPLICATION = "TABLE_COMBINATION_IDS_DUPLICATION", /** A table combination's `tableIds` list contains the same table ID more than once. */ TABLE_COMBINATION_TABLE_IDS_DUPLICATION = "TABLE_COMBINATION_TABLE_IDS_DUPLICATION", /** Two or more table combinations reference the exact same set of table IDs. */ TABLE_COMBINATION_TABLE_IDS_COMBINATION_DUPLICATION = "TABLE_COMBINATION_TABLE_IDS_COMBINATION_DUPLICATION", /** A table combination in the request has an `id` that doesn't match any existing table combination for this location. */ TABLE_COMBINATION_NOT_EXIST = "TABLE_COMBINATION_NOT_EXIST", /** A table combination's `tableIds` list contains fewer than 2 tables. */ TABLE_COMBINATION_CONTAINS_LESS_THAN_2_TABLES = "TABLE_COMBINATION_CONTAINS_LESS_THAN_2_TABLES", /** A table combination's `seatsMin` is greater than its `seatsMax`. */ TABLE_COMBINATION_MIN_MAX_SEATS = "TABLE_COMBINATION_MIN_MAX_SEATS", /** A table combination's `tableIds` references one or more table IDs that don't exist in `tableDefinitions`. */ NON_EXISTENT_TABLES_IN_TABLE_COMBINATION = "NON_EXISTENT_TABLES_IN_TABLE_COMBINATION", /** Both `partySize` and the deprecated `partiesSize` were set with different `min`/`max` values, or only one of the two was provided. The server keeps them in sync, so an explicit mismatch is rejected. */ PARTY_SIZE_AND_PARTIES_SIZE_ARE_DIFFERENT = "PARTY_SIZE_AND_PARTIES_SIZE_ARE_DIFFERENT", /** Both `turnoverTimeRules` and the deprecated `turnoverRules` were set with different rule sets, or only one of the two was provided. The server keeps them in sync, so an explicit mismatch is rejected. */ TURNOVER_TIME_RULES_AND_TURNOVER_RULES_ARE_DIFFERENT = "TURNOVER_TIME_RULES_AND_TURNOVER_RULES_ARE_DIFFERENT", /** Two or more entries in the deprecated `turnoverRules` have overlapping seat count ranges (`minSeats`-`maxSeats`). */ TURNOVER_RULES_INTERSECT = "TURNOVER_RULES_INTERSECT", /** A deprecated `turnoverRules` entry has `maxSeats` less than `minSeats`. */ TURNOVER_RULES_INCORRECT_BOUNDARIES = "TURNOVER_RULES_INCORRECT_BOUNDARIES", /** The deprecated `partiesSize.min` is greater than `partiesSize.max`. */ PARTIES_SIZE_MIN_GREATER_THAN_MAX = "PARTIES_SIZE_MIN_GREATER_THAN_MAX", /** `partySize.min` is greater than `partySize.max`. */ PARTY_SIZE_MIN_GREATER_THAN_MAX = "PARTY_SIZE_MIN_GREATER_THAN_MAX", /** A `businessSchedule` time period has an invalid `openTime`/`closeTime` format or an unrecognized day of week. */ BUSINESS_SCHEDULE_TIME_PERIOD_INVALID = "BUSINESS_SCHEDULE_TIME_PERIOD_INVALID", /** A `businessSchedule` special hour period has a `startDate` or `endDate` that isn't a valid timestamp. */ BUSINESS_SCHEDULE_SPECIAL_HOUR_PERIOD_INVALID = "BUSINESS_SCHEDULE_SPECIAL_HOUR_PERIOD_INVALID", /** Two or more entries in `myReservationsFields` have the same `fieldType` and `customFieldId`. */ MY_RESERVATIONS_FIELDS_DUPLICATION = "MY_RESERVATIONS_FIELDS_DUPLICATION", /** `configuration.reservationForm.termsAndConditions.value` (its `url` or `text`) is required but wasn't provided. */ TERMS_AND_CONDITIONS_VALUE_ABSENT = "TERMS_AND_CONDITIONS_VALUE_ABSENT", /** `configuration.reservationForm.privacyPolicy.value` (its `url` or `text`) is required but wasn't provided. */ PRIVACY_POLICY_VALUE_ABSENT = "PRIVACY_POLICY_VALUE_ABSENT", /** `configuration.onlineReservations.defaultTurnoverTime` is required but wasn't provided. */ DEFAULT_TURNOVER_TIME_ABSENT = "DEFAULT_TURNOVER_TIME_ABSENT", /** An update to `myReservationsFields` dropped one or more previously configured predefined field types or custom field IDs. */ NOT_ALL_RESERVATION_FIELDS = "NOT_ALL_RESERVATION_FIELDS", /** A table definition's `seatsMin` is greater than its `seatsMax`. */ TABLE_DEFINITION_INCORRECT_BOUNDARIES = "TABLE_DEFINITION_INCORRECT_BOUNDARIES", /** A `businessSchedule` special hour period has an `endDate` before or equal to its `startDate`. */ BUSINESS_SCHEDULE_SPECIAL_HOUR_PERIOD_END_BEFORE_START = "BUSINESS_SCHEDULE_SPECIAL_HOUR_PERIOD_END_BEFORE_START", /** A `businessSchedule` time period's close day and time occur before its open day and time within the same week (Sunday is the first day of the week). */ BUSINESS_SCHEDULE_TIME_PERIOD_CLOSE_BEFORE_OPEN = "BUSINESS_SCHEDULE_TIME_PERIOD_CLOSE_BEFORE_OPEN", /** The deprecated `manualApproval.partySizeThreshold` falls outside the `partySize` min/max range. */ MANUAL_APPROVAL_THRESHOLD_OUTSIDE_PARTY_SIZE = "MANUAL_APPROVAL_THRESHOLD_OUTSIDE_PARTY_SIZE", /** `configuration.onlineReservations.approval` is required but wasn't provided. */ APPROVAL_ABSENT = "APPROVAL_ABSENT", /** The request changes the deprecated `manualApproval` field directly on a location that already has `approval` set; update `approval` instead. */ MANUAL_APPROVAL_DEPRECATED = "MANUAL_APPROVAL_DEPRECATED", /** `approval.manualForLargePartiesOptions.partySizeThreshold` falls outside the `partySize` min/max range. */ APPROVAL_THRESHOLD_OUTSIDE_PARTY_SIZE = "APPROVAL_THRESHOLD_OUTSIDE_PARTY_SIZE", /** Both `approval` and the deprecated `manualApproval` were set with values that don't correspond to each other. The server keeps them in sync, so an explicit mismatch is rejected. */ APPROVAL_AND_MANUAL_APPROVAL_ARE_DIFFERENT = "APPROVAL_AND_MANUAL_APPROVAL_ARE_DIFFERENT", /** The deprecated `manualApproval.partySizeThreshold` falls outside the deprecated `partiesSize` min/max range. */ MANUAL_APPROVAL_THRESHOLD_OUTSIDE_PARTIES_SIZE = "MANUAL_APPROVAL_THRESHOLD_OUTSIDE_PARTIES_SIZE", /** `configuration.onlineReservations.partySize` is required but wasn't provided. */ PARTY_SIZE_ABSENT = "PARTY_SIZE_ABSENT", /** The deprecated `configuration.onlineReservations.partiesSize` is required but wasn't provided. */ PARTIES_SIZE_ABSENT = "PARTIES_SIZE_ABSENT", /** `configuration.tableManagement.mode` is required but wasn't provided or is set to `UNKNOWN`. */ TABLE_MANAGEMENT_MODE_ABSENT = "TABLE_MANAGEMENT_MODE_ABSENT", /** `approval.manualForLargePartiesOptions.partySizeThreshold` is required but wasn't provided when `approval.mode` is `MANUAL_FOR_LARGE_PARTIES`. */ PARTY_SIZE_THRESHOLD_ABSENT = "PARTY_SIZE_THRESHOLD_ABSENT", /** `approval.manualForLargePartiesOptions.considerTablesForManualApproval` is required but wasn't provided when `approval.mode` is `MANUAL_FOR_LARGE_PARTIES`. */ CONSIDER_TABLES_FOR_MANUAL_APPROVAL_ABSENT = "CONSIDER_TABLES_FOR_MANUAL_APPROVAL_ABSENT", /** `approval.mode` and `approval.options` are inconsistent; `manualForLargePartiesOptions` must be set if and only if `mode` is `MANUAL_FOR_LARGE_PARTIES`. */ APPROVAL_MODE_AND_OPTIONS_NOT_CORRESPOND = "APPROVAL_MODE_AND_OPTIONS_NOT_CORRESPOND", /** The deprecated `configuration.reservationPayment` was set on a location that already uses `paymentPolicy`; use `paymentPolicy` instead. */ RESERVATION_PAYMENT_DEPRECATED = "RESERVATION_PAYMENT_DEPRECATED", /** `maximumReservationNotice.unit` is unset or unrecognized. */ MAXIMUM_RESERVATION_NOTICE_PERIOD = "MAXIMUM_RESERVATION_NOTICE_PERIOD", /** `minimumReservationNotice` is greater than `maximumReservationNotice`. */ NOTICE_PERIOD_MINIMUM_GREATER_THAN_MAXIMUM = "NOTICE_PERIOD_MINIMUM_GREATER_THAN_MAXIMUM", /** `pauseSettings.standardReservations.pauseUntil` is invalid: it's either in the past or more than 24 hours in the future. */ PAUSE_UNTIL_INVALID = "PAUSE_UNTIL_INVALID", /** Two or more areas in `areaConfiguration.areas` have the same name. */ AREA_NAME_DUPLICATION = "AREA_NAME_DUPLICATION", /** Two or more areas in `areaConfiguration.areas` have the same ID. */ AREA_ID_DUPLICATION = "AREA_ID_DUPLICATION", /** `areaConfiguration.enabled` is `true` but `areaConfiguration.areas` is empty. */ AREA_CONFIGURATION_ENABLED_WITH_NO_AREAS = "AREA_CONFIGURATION_ENABLED_WITH_NO_AREAS", /** A table definition is missing an `areaId` while area configuration is enabled. */ TABLE_DEFINITION_AREA_ID_MISSING = "TABLE_DEFINITION_AREA_ID_MISSING", /** A table definition's `areaId` doesn't match any existing area in `areaConfiguration.areas`. */ TABLE_DEFINITION_AREA_ID_NON_EXISTENT = "TABLE_DEFINITION_AREA_ID_NON_EXISTENT", /** `onlineReservations.guestVerification` is missing, or its `captchaMode` is unset or unrecognized. Returned by Update Reservation Location when the field mask touches `onlineReservations.guestVerification`. */ GUEST_VERIFICATION_CAPTCHA_MODE_INVALID = "GUEST_VERIFICATION_CAPTCHA_MODE_INVALID" } /** @enumType */ type TypeWithLiterals = Type | 'UNKNOWN' | 'RESERVATION_FIELD_NOT_EXIST' | 'RESERVATION_FIELD_MUST_HAVE_TYPE' | 'CUSTOM_FIELD_NAMES_DUPLICATION' | 'CUSTOM_FIELD_IDS_DUPLICATION' | 'TABLE_DEFINITION_NAMES_DUPLICATION' | 'TABLE_DEFINITION_IDS_DUPLICATION' | 'TABLE_RESERVATION_INCORRECT_BOUNDARIES' | 'TABLE_DEFINITION_NOT_EXIST' | 'TURNOVER_TIME_RULES_INTERSECT' | 'TURNOVER_TIME_RULES_INCORRECT_BOUNDARIES' | 'MINIMUM_RESERVATION_NOTICE_PERIOD' | 'TABLE_COMBINATION_IDS_DUPLICATION' | 'TABLE_COMBINATION_TABLE_IDS_DUPLICATION' | 'TABLE_COMBINATION_TABLE_IDS_COMBINATION_DUPLICATION' | 'TABLE_COMBINATION_NOT_EXIST' | 'TABLE_COMBINATION_CONTAINS_LESS_THAN_2_TABLES' | 'TABLE_COMBINATION_MIN_MAX_SEATS' | 'NON_EXISTENT_TABLES_IN_TABLE_COMBINATION' | 'PARTY_SIZE_AND_PARTIES_SIZE_ARE_DIFFERENT' | 'TURNOVER_TIME_RULES_AND_TURNOVER_RULES_ARE_DIFFERENT' | 'TURNOVER_RULES_INTERSECT' | 'TURNOVER_RULES_INCORRECT_BOUNDARIES' | 'PARTIES_SIZE_MIN_GREATER_THAN_MAX' | 'PARTY_SIZE_MIN_GREATER_THAN_MAX' | 'BUSINESS_SCHEDULE_TIME_PERIOD_INVALID' | 'BUSINESS_SCHEDULE_SPECIAL_HOUR_PERIOD_INVALID' | 'MY_RESERVATIONS_FIELDS_DUPLICATION' | 'TERMS_AND_CONDITIONS_VALUE_ABSENT' | 'PRIVACY_POLICY_VALUE_ABSENT' | 'DEFAULT_TURNOVER_TIME_ABSENT' | 'NOT_ALL_RESERVATION_FIELDS' | 'TABLE_DEFINITION_INCORRECT_BOUNDARIES' | 'BUSINESS_SCHEDULE_SPECIAL_HOUR_PERIOD_END_BEFORE_START' | 'BUSINESS_SCHEDULE_TIME_PERIOD_CLOSE_BEFORE_OPEN' | 'MANUAL_APPROVAL_THRESHOLD_OUTSIDE_PARTY_SIZE' | 'APPROVAL_ABSENT' | 'MANUAL_APPROVAL_DEPRECATED' | 'APPROVAL_THRESHOLD_OUTSIDE_PARTY_SIZE' | 'APPROVAL_AND_MANUAL_APPROVAL_ARE_DIFFERENT' | 'MANUAL_APPROVAL_THRESHOLD_OUTSIDE_PARTIES_SIZE' | 'PARTY_SIZE_ABSENT' | 'PARTIES_SIZE_ABSENT' | 'TABLE_MANAGEMENT_MODE_ABSENT' | 'PARTY_SIZE_THRESHOLD_ABSENT' | 'CONSIDER_TABLES_FOR_MANUAL_APPROVAL_ABSENT' | 'APPROVAL_MODE_AND_OPTIONS_NOT_CORRESPOND' | 'RESERVATION_PAYMENT_DEPRECATED' | 'MAXIMUM_RESERVATION_NOTICE_PERIOD' | 'NOTICE_PERIOD_MINIMUM_GREATER_THAN_MAXIMUM' | 'PAUSE_UNTIL_INVALID' | 'AREA_NAME_DUPLICATION' | 'AREA_ID_DUPLICATION' | 'AREA_CONFIGURATION_ENABLED_WITH_NO_AREAS' | 'TABLE_DEFINITION_AREA_ID_MISSING' | 'TABLE_DEFINITION_AREA_ID_NON_EXISTENT' | 'GUEST_VERIFICATION_CAPTCHA_MODE_INVALID'; interface NotAllReservationFieldsViolation { /** * Field types that are absent. * @maxSize 1000 */ absentPredefinedFieldTypes?: FieldTypeWithLiterals[]; /** * Custom field IDs that are absent. * @maxSize 1000 * @maxLength 36 */ absentCustomFieldIds?: string[]; } interface ReservationFieldNotExistViolation { /** * Indexes of the fields that are absent. * @maxSize 1000 */ indexes?: number[]; } interface ReservationFieldMustHaveTypeViolation { /** * Indexes of the fields that don't have types. * @maxSize 1000 */ indexes?: number[]; } interface CustomFieldNamesDuplicationViolation { /** * Duplicated names. * @maxSize 1000 * @maxLength 1000 */ names?: string[]; } interface CustomFieldIdsDuplicationViolation { /** * Duplicated IDs. * @maxSize 1000 * @maxLength 36 */ ids?: string[]; } interface TableDefinitionNamesDuplicationViolation { /** * Duplicated names. * @maxSize 1000 */ names?: DuplicatedName[]; } interface TableDefinitionIdsDuplicationViolation { /** * Indexes of the violated elements. * @maxSize 1000 */ ids?: DuplicatedId[]; } interface TableDefinitionNotExistViolation { /** * Indexes of the violated elements. * @maxSize 1000 */ indexes?: number[]; } interface TableDefinitionIncorrectBoundariesViolation { /** * Indexes of the violated elements. * @maxSize 1000 */ indexes?: number[]; } interface TurnoverTimeRulesIntersectViolation { /** * Violated rules. * @maxSize 1000 */ rules?: TurnoverTimeRule[]; } interface TurnoverTimeRulesIncorrectBoundariesViolation { /** * Violated rules. * @maxSize 1000 */ rules?: TurnoverTimeRule[]; } interface TableCombinationIdsDuplicationViolation { /** * List of violations. * @maxSize 1000 */ violations?: TableCombinationIdsDuplicationViolationViolation[]; } interface TableCombinationTableIdsDuplicationViolation { /** * List of violations. * @maxSize 1000 */ violations?: TableCombinationTableIdsDuplicationViolationViolation[]; } interface TableCombinationTableIdsCombinationDuplicationViolation { /** * Indexes of the violated elements. * @maxSize 1000 */ indexes?: number[]; } interface TableCombinationNotExistViolation { /** * Indexes of the violated elements. * @maxSize 1000 */ indexes?: number[]; } interface TableCombinationContainsLessThan2TablesViolation { /** * Indexes of the violated elements. * @maxSize 1000 */ indexes?: number[]; } interface TableCombinationMinMaxSeatsViolation { /** * Indexes of the violated elements. * @maxSize 1000 */ indexes?: number[]; } interface NonExistentTablesInTableCombinationViolation { /** * List of violations. * @maxSize 1000 */ violations?: NonExistentTablesInTableCombinationViolationViolation[]; } interface TurnoverRulesIntersectViolation { /** * Violated rules. * @maxSize 1000 */ rules?: TurnoverRule[]; } interface TurnoverRulesIncorrectBoundariesViolation { /** * Violated rules. * @maxSize 1000 */ rules?: TurnoverRule[]; } interface BusinessScheduleTimePeriodInvalidViolation { /** * Positions of invalid time periods in array. * @maxSize 1000 */ indexes?: number[]; } interface BusinessScheduleSpecialHourPeriodInvalidViolation { /** * Positions of invalid special hour periods in array. * @maxSize 1000 */ indexes?: number[]; } interface MyReservationsFieldsDuplicationViolation { /** * Duplicated fields. * @maxSize 1000 */ violations?: Violation[]; } interface BusinessScheduleSpecialHourPeriodEndBeforeStartViolation { /** * Positions of invalid special hour periods in array. * @maxSize 1000 */ indexes?: number[]; } interface BusinessScheduleTimePeriodCloseBeforeOpenViolation { /** * Positions of invalid time periods in array. * @maxSize 1000 */ indexes?: number[]; } interface AreaNameDuplicationViolation { /** * Duplicated area names. * @maxSize 1000 * @maxLength 100 */ names?: string[]; } interface AreaIdDuplicationViolation { /** * Duplicated area IDs. * @maxSize 1000 * @format GUID */ ids?: string[]; } interface TableDefinitionAreaIdMissingViolation { /** * Names of table definitions that are missing an area ID. * @maxSize 1000 * @maxLength 100 */ tableNames?: string[]; } interface TableDefinitionAreaIdNonExistentViolation { /** * Names of table definitions that reference non-existent area IDs. * @maxSize 1000 * @maxLength 100 */ tableNames?: string[]; } interface QueryReservationLocationsRequest { /** Query options. */ query: QueryV2; } interface QueryV2 extends QueryV2PagingMethodOneOf { /** Paging options to limit and skip the number of items. */ paging?: Paging; /** 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`. */ cursorPaging?: CursorPaging; /** * Filter object in the following format: * `"filter" : { * "fieldName1": "value1", * "fieldName2":{"$operator":"value2"} * }` * * For a detailed list of supported operations, see the [Supported Filters and Sorting](https://dev.wix.com/docs/rest/api-reference/wix-restaurants/reservations/reservations/sorting-and-filtering) article. * To learn how to query reservations, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language). */ filter?: Record | null; /** * Sort object in the following format: * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]` */ sort?: Sorting[]; } /** @oneof */ interface QueryV2PagingMethodOneOf { /** Paging options to limit and skip the number of items. */ paging?: Paging; /** 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`. */ cursorPaging?: CursorPaging; } interface Sorting { /** Name of the field to sort by. */ fieldName?: string; /** * Sort order. * * Defaults to `ASC`. */ order?: SortOrderWithLiterals; } declare enum SortOrder { /** Soer by ascending order. */ ASC = "ASC", /** Sort by descending order. */ DESC = "DESC" } /** @enumType */ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC'; interface Paging { /** Number of items to load. */ limit?: number | null; /** Number of items to skip in the current sort order. */ offset?: number | null; } interface CursorPaging { /** * Number of items to load. * @max 100 */ limit?: number | null; /** * Pointer to the next or previous page in the list of results. * * You can get the relevant cursor token * from the `pagingMetadata` object in the previous call's response. * Not relevant for the first request. */ cursor?: string | null; } interface QueryReservationLocationsResponse { /** * List of reservation locations. * @maxSize 100 */ reservationLocations?: ReservationLocation[]; /** Metadata for the paginated results. */ pagingMetadata?: PagingMetadataV2; } interface PagingMetadataV2 { /** Offset that was requested. */ offset?: number | null; /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */ cursors?: Cursors; /** * Indicates if there are more results after the current page. * If `true`, another page of results can be retrieved. * If `false`, this is the last page. * @internal */ hasNext?: boolean | null; } interface Cursors { /** Cursor pointing to next page in the list of results. */ next?: string | null; /** Cursor pointing to previous page in the list of results. */ prev?: string | null; } interface ListReservationLocationsRequest { /** 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`. */ paging?: CursorPaging; /** Sorting for the locations list. */ sort?: Sorting; } interface ListReservationLocationsResponse { /** * Locations list. * @maxSize 100 */ reservationLocations?: ReservationLocation[]; /** Metadata for the paginated results. */ pagingMetadata?: CursorPagingMetadata; } interface CursorPagingMetadata { /** Number of items returned in the response. */ count?: number | null; /** Offset that was requested. */ cursors?: Cursors; /** * Indicates if there are more results after the current page. * If `true`, another page of results can be retrieved. * If `false`, this is the last page. */ hasNext?: boolean | null; } interface DeleteOrphanReservationLocationRequest { /** * Id of the ReservationLocation. * @format GUID */ reservationLocationId?: string; } interface DeleteOrphanReservationLocationResponse { } interface CheckReservationLocationsCreatedRequest { } interface CheckReservationLocationsCreatedResponse { /** Reservation locations created. */ created?: boolean; } interface DomainEvent extends DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; /** Event ID. With this ID you can easily spot duplicated events and ignore them. */ _id?: string; /** * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities. * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`. */ entityFqdn?: string; /** * Event action name, placed at the top level to make it easier for users to dispatch messages. * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`. */ slug?: string; /** ID of the entity associated with the event. */ entityId?: string; /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */ eventTime?: Date | null; /** * Whether the event was triggered as a result of a privacy regulation application * (for example, GDPR). */ triggeredByAnonymizeRequest?: boolean | null; /** If present, indicates the action that triggered the event. */ originatedFrom?: string | null; /** * 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. * 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. */ entityEventSequence?: string | null; } /** @oneof */ interface DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; } interface EntityCreatedEvent { entity?: string; } interface RestoreInfo { deletedDate?: Date | null; } interface EntityUpdatedEvent { /** * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff. * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects. * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it. */ currentEntity?: string; } interface EntityDeletedEvent { /** Entity that was deleted. */ deletedEntity?: string | null; } interface ActionEvent { body?: string; } interface Empty { } interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf { /** Emitted on a meta site creation. */ siteCreated?: SiteCreated; /** Emitted on a meta site transfer completion. */ siteTransferred?: SiteTransferred; /** Emitted on a meta site deletion. */ siteDeleted?: SiteDeleted; /** Emitted on a meta site restoration. */ siteUndeleted?: SiteUndeleted; /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */ sitePublished?: SitePublished; /** Emitted on a meta site unpublish. */ siteUnpublished?: SiteUnpublished; /** Emitted when meta site is marked as template. */ siteMarkedAsTemplate?: SiteMarkedAsTemplate; /** Emitted when meta site is marked as a WixSite. */ siteMarkedAsWixSite?: SiteMarkedAsWixSite; /** Emitted when an application is provisioned (installed). */ serviceProvisioned?: ServiceProvisioned; /** Emitted when an application is removed (uninstalled). */ serviceRemoved?: ServiceRemoved; /** Emitted when meta site name (URL slug) is changed. */ siteRenamedPayload?: SiteRenamed; /** Emitted when meta site was permanently deleted. */ hardDeleted?: SiteHardDeleted; /** Emitted on a namespace change. */ namespaceChanged?: NamespaceChanged; /** Emitted when Studio is attached. */ studioAssigned?: StudioAssigned; /** Emitted when Studio is detached. */ studioUnassigned?: StudioUnassigned; /** * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch * the actual URL. * * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459 */ urlChanged?: SiteUrlChanged; /** Site is marked as PurgedExternally */ sitePurgedExternally?: SitePurgedExternally; /** Emitted when Odeditor is attached. */ odeditorAssigned?: OdeditorAssigned; /** Emitted when Odeditor is detached. */ odeditorUnassigned?: OdeditorUnassigned; /** Emitted when Picasso is attached. */ picassoAssigned?: PicassoAssigned; /** Emitted when Picasso is detached. */ picassoUnassigned?: PicassoUnassigned; /** Emitted when Wixel is attached. */ wixelAssigned?: WixelAssigned; /** Emitted when Wixel is detached. */ wixelUnassigned?: WixelUnassigned; /** Emitted when StudioTwo is attached. */ studioTwoAssigned?: StudioTwoAssigned; /** Emitted when StudioTwo is detached. */ studioTwoUnassigned?: StudioTwoUnassigned; /** Emitted when media from user domain is enabled. */ userDomainMediaEnabled?: UserDomainMediaEnabled; /** Emitted when media from user domain is disabled. */ userDomainMediaDisabled?: UserDomainMediaDisabled; /** Emitted when Editorless is attached. */ editorlessAssigned?: EditorlessAssigned; /** Emitted when Editorless is detached. */ editorlessUnassigned?: EditorlessUnassigned; /** * A meta site id. * @format GUID */ metaSiteId?: string; /** A meta site version. Monotonically increasing. */ version?: string; /** A timestamp of the event. */ timestamp?: string; /** * TODO(meta-site): Change validation once validations are disabled for consumers * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659 * @maxSize 4000 */ assets?: Asset[]; } /** @oneof */ interface MetaSiteSpecialEventPayloadOneOf { /** Emitted on a meta site creation. */ siteCreated?: SiteCreated; /** Emitted on a meta site transfer completion. */ siteTransferred?: SiteTransferred; /** Emitted on a meta site deletion. */ siteDeleted?: SiteDeleted; /** Emitted on a meta site restoration. */ siteUndeleted?: SiteUndeleted; /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */ sitePublished?: SitePublished; /** Emitted on a meta site unpublish. */ siteUnpublished?: SiteUnpublished; /** Emitted when meta site is marked as template. */ siteMarkedAsTemplate?: SiteMarkedAsTemplate; /** Emitted when meta site is marked as a WixSite. */ siteMarkedAsWixSite?: SiteMarkedAsWixSite; /** Emitted when an application is provisioned (installed). */ serviceProvisioned?: ServiceProvisioned; /** Emitted when an application is removed (uninstalled). */ serviceRemoved?: ServiceRemoved; /** Emitted when meta site name (URL slug) is changed. */ siteRenamedPayload?: SiteRenamed; /** Emitted when meta site was permanently deleted. */ hardDeleted?: SiteHardDeleted; /** Emitted on a namespace change. */ namespaceChanged?: NamespaceChanged; /** Emitted when Studio is attached. */ studioAssigned?: StudioAssigned; /** Emitted when Studio is detached. */ studioUnassigned?: StudioUnassigned; /** * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch * the actual URL. * * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459 */ urlChanged?: SiteUrlChanged; /** Site is marked as PurgedExternally */ sitePurgedExternally?: SitePurgedExternally; /** Emitted when Odeditor is attached. */ odeditorAssigned?: OdeditorAssigned; /** Emitted when Odeditor is detached. */ odeditorUnassigned?: OdeditorUnassigned; /** Emitted when Picasso is attached. */ picassoAssigned?: PicassoAssigned; /** Emitted when Picasso is detached. */ picassoUnassigned?: PicassoUnassigned; /** Emitted when Wixel is attached. */ wixelAssigned?: WixelAssigned; /** Emitted when Wixel is detached. */ wixelUnassigned?: WixelUnassigned; /** Emitted when StudioTwo is attached. */ studioTwoAssigned?: StudioTwoAssigned; /** Emitted when StudioTwo is detached. */ studioTwoUnassigned?: StudioTwoUnassigned; /** Emitted when media from user domain is enabled. */ userDomainMediaEnabled?: UserDomainMediaEnabled; /** Emitted when media from user domain is disabled. */ userDomainMediaDisabled?: UserDomainMediaDisabled; /** Emitted when Editorless is attached. */ editorlessAssigned?: EditorlessAssigned; /** Emitted when Editorless is detached. */ editorlessUnassigned?: EditorlessUnassigned; } interface Asset { /** * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum). * @maxLength 36 */ appDefId?: string; /** * An instance id. For legacy reasons may be UUID or a string. * @maxLength 200 */ instanceId?: string; /** An application state. */ state?: StateWithLiterals; } declare enum State { UNKNOWN = "UNKNOWN", ENABLED = "ENABLED", DISABLED = "DISABLED", PENDING = "PENDING", DEMO = "DEMO" } /** @enumType */ type StateWithLiterals = State | 'UNKNOWN' | 'ENABLED' | 'DISABLED' | 'PENDING' | 'DEMO'; interface SiteCreated { /** * A template identifier (empty if not created from a template). * @maxLength 36 */ originTemplateId?: string; /** * An account id of the owner. * @format GUID */ ownerId?: string; /** A context in which meta site was created. */ context?: SiteCreatedContextWithLiterals; /** * A meta site id from which this site was created. * * In case of a creation from a template it's a template id. * In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site. * @format GUID */ originMetaSiteId?: string | null; /** * A meta site name (URL slug). * @maxLength 20 */ siteName?: string; /** A namespace. */ namespace?: NamespaceWithLiterals; } declare enum SiteCreatedContext { /** A valid option, we don't expose all reasons why site might be created. */ OTHER = "OTHER", /** A meta site was created from template. */ FROM_TEMPLATE = "FROM_TEMPLATE", /** A meta site was created by copying of the transfferred meta site. */ DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER", /** A copy of existing meta site. */ DUPLICATE = "DUPLICATE", /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */ OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER", /** deprecated A meta site was created for Flash editor. */ FLASH = "FLASH" } /** @enumType */ type SiteCreatedContextWithLiterals = SiteCreatedContext | 'OTHER' | 'FROM_TEMPLATE' | 'DUPLICATE_BY_SITE_TRANSFER' | 'DUPLICATE' | 'OLD_SITE_TRANSFER' | 'FLASH'; declare enum Namespace { UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE", /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */ WIX = "WIX", /** 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. */ SHOUT_OUT = "SHOUT_OUT", /** 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. */ ALBUMS = "ALBUMS", /** 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. */ WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE", /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */ HOTELS = "HOTELS", /** 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. */ CLUBS = "CLUBS", /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */ ONBOARDING_DRAFT = "ONBOARDING_DRAFT", /** * AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. * Not the dev-center dev site (see Flag.DEV_CENTER_DEV_SITE_FLAG). */ DEV_SITE = "DEV_SITE", /** 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. */ LOGOS = "LOGOS", /** 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. */ VIDEO_MAKER = "VIDEO_MAKER", /** MetaSites with this namespace will *not* be shown in a user's site list by default. */ PARTNER_DASHBOARD = "PARTNER_DASHBOARD", /** MetaSites with this namespace will *not* be shown in a user's site list by default. */ DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY", /** * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain. * * Meta site with this namespace will *not* be shown in a user's site list by default. */ HTML_DRAFT = "HTML_DRAFT", /** * the user-journey for Fitness users who want to start from managing their business instead of designing their website. * Will be accessible from Site List and will not have a website app. * Once the user attaches a site, the site will become a regular wixsite. */ SITELESS_BUSINESS = "SITELESS_BUSINESS", /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */ CREATOR_ECONOMY = "CREATOR_ECONOMY", /** It is to be used in the Business First efforts. */ DASHBOARD_FIRST = "DASHBOARD_FIRST", /** Bookings business flow with no site. */ ANYWHERE = "ANYWHERE", /** Namespace for Headless Backoffice with no editor */ HEADLESS = "HEADLESS", /** * Namespace for master site that will exist in parent account that will be referenced by subaccounts * The site will be used for account level CSM feature for enterprise */ ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS", /** Rise.ai Siteless account management for Gift Cards and Store Credit. */ RISE = "RISE", /** * As part of the branded app new funnel, users now can create a meta site that will be branded app first. * There's a blank site behind the scene but it's blank). * The Mobile company will be the owner of this namespace. */ BRANDED_FIRST = "BRANDED_FIRST", /** Nownia.com Siteless account management for Ai Scheduling Assistant. */ NOWNIA = "NOWNIA", /** * UGC Templates are templates that are created by users for personal use and to sale to other users. * The Partners company owns this namespace. */ UGC_TEMPLATE = "UGC_TEMPLATE", /** Codux Headless Sites */ CODUX = "CODUX", /** Bobb - AI Design Creator. */ MEDIA_DESIGN_CREATOR = "MEDIA_DESIGN_CREATOR", /** * Shared Blog Site is a unique single site across Enterprise account, * This site will hold all Blog posts related to the Marketing product. */ SHARED_BLOG_ENTERPRISE = "SHARED_BLOG_ENTERPRISE", /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */ STANDALONE_FORMS = "STANDALONE_FORMS", /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */ STANDALONE_EVENTS = "STANDALONE_EVENTS", /** MIMIR - Siteless account for MIMIR Ai Job runner. */ MIMIR = "MIMIR", /** Wix Twins platform. */ TWINS = "TWINS", /** Wix Nano. */ NANO = "NANO", /** Base44 headless sites. */ BASE44 = "BASE44", /** Wix Channels Sites */ CHANNELS = "CHANNELS", /** Nautilus platform. */ NAUTILUS = "NAUTILUS", /** * Symphony — a siteless site representing a project within Symphony (the evolution of Orion). * Holds project data, conversations, assets, and manages collaborators / shared team members for the project. */ SYMPHONY = "SYMPHONY", /** Nautilus platform app. */ NAUTILUS_APPS = "NAUTILUS_APPS", /** * Vibu — a siteless site representing a project built with Vibu (the AI app builder). * Holds the project's generated code, conversations, assets, and manages collaborators for the project. */ VIBU = "VIBU", /** * Ghost site for the BrandKit multi-site platform. Each ghost backs a single BrandKit * (an Enterprise account may have several), holding that BrandKit's brand definition * (theme, typography, assets) which is rolled out to the BrandKit's connected sites. * MetaSites with this namespace will *not* be shown in a user's site list by default. */ ENTERPRISE_BRAND_KIT = "ENTERPRISE_BRAND_KIT", /** * Dev-center development sites (com.wixpress.devcenter.dsm). * DEPRECATED: replaced by Flag.DEV_CENTER_DEV_SITE_FLAG (a dev site is orthogonal to the namespace). Do not use for new sites. */ DEV_CENTER_DEV_SITE = "DEV_CENTER_DEV_SITE", /** * KidOS (Tuned): a siteless site representing one kid in a Tuned family, owned by the parent's account. Holds the kid's data. * MetaSites with this namespace will *not* be shown in a user's site list by default. */ KIDOS = "KIDOS" } /** @enumType */ type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR' | 'TWINS' | 'NANO' | 'BASE44' | 'CHANNELS' | 'NAUTILUS' | 'SYMPHONY' | 'NAUTILUS_APPS' | 'VIBU' | 'ENTERPRISE_BRAND_KIT' | 'DEV_CENTER_DEV_SITE' | 'KIDOS'; /** Site transferred to another user. */ interface SiteTransferred { /** * A previous owner id (user that transfers meta site). * @format GUID */ oldOwnerId?: string; /** * A new owner id (user that accepts meta site). * @format GUID */ newOwnerId?: string; } /** Soft deletion of the meta site. Could be restored. */ interface SiteDeleted { /** A deletion context. */ deleteContext?: DeleteContext; } interface DeleteContext { /** When the meta site was deleted. */ dateDeleted?: Date | null; /** A status. */ deleteStatus?: DeleteStatusWithLiterals; /** * A reason (flow). * @maxLength 255 */ deleteOrigin?: string; /** * A service that deleted it. * @maxLength 255 */ initiatorId?: string | null; } declare enum DeleteStatus { UNKNOWN = "UNKNOWN", TRASH = "TRASH", DELETED = "DELETED", PENDING_PURGE = "PENDING_PURGE", PURGED_EXTERNALLY = "PURGED_EXTERNALLY" } /** @enumType */ type DeleteStatusWithLiterals = DeleteStatus | 'UNKNOWN' | 'TRASH' | 'DELETED' | 'PENDING_PURGE' | 'PURGED_EXTERNALLY'; /** Restoration of the meta site. */ interface SiteUndeleted { } /** First publish of a meta site. Or subsequent publish after unpublish. */ interface SitePublished { } interface SiteUnpublished { /** * A list of URLs previously associated with the meta site. * @maxLength 4000 * @maxSize 10000 */ urls?: string[]; } interface SiteMarkedAsTemplate { } interface SiteMarkedAsWixSite { } /** * Represents a service provisioned a site. * * Note on `origin_instance_id`: * There is no guarantee that you will be able to find a meta site using `origin_instance_id`. * This is because of the following scenario: * * Imagine you have a template where a third-party application (TPA) includes some stub data, * such as a product catalog. When you create a site from this template, you inherit this * default product catalog. However, if the template's product catalog is modified, * your site will retain the catalog as it was at the time of site creation. This ensures that * your site remains consistent with what you initially received and does not include any * changes made to the original template afterward. * To ensure this, the TPA on the template gets a new instance_id. */ interface ServiceProvisioned { /** * Either UUID or EmbeddedServiceType. * @maxLength 36 */ appDefId?: string; /** * Not only UUID. Something here could be something weird. * @maxLength 36 */ instanceId?: string; /** * An instance id from which this instance is originated. * @maxLength 36 */ originInstanceId?: string; /** * A version. * @maxLength 500 */ version?: string | null; /** * The origin meta site id * @format GUID */ originMetaSiteId?: string | null; } interface ServiceRemoved { /** * Either UUID or EmbeddedServiceType. * @maxLength 36 */ appDefId?: string; /** * Not only UUID. Something here could be something weird. * @maxLength 36 */ instanceId?: string; /** * A version. * @maxLength 500 */ version?: string | null; } /** Rename of the site. Meaning, free public url has been changed as well. */ interface SiteRenamed { /** * A new meta site name (URL slug). * @maxLength 20 */ newSiteName?: string; /** * A previous meta site name (URL slug). * @maxLength 255 */ oldSiteName?: string; } /** * Hard deletion of the meta site. * * Could not be restored. Therefore it's desirable to cleanup data. */ interface SiteHardDeleted { /** A deletion context. */ deleteContext?: DeleteContext; } interface NamespaceChanged { /** A previous namespace. */ oldNamespace?: NamespaceWithLiterals; /** A new namespace. */ newNamespace?: NamespaceWithLiterals; } /** Assigned Studio editor */ interface StudioAssigned { } /** Unassigned Studio editor */ interface StudioUnassigned { } /** * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc. * * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up * with sites and its urls, you need to listen to another topic/event. Read about it: * * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service */ interface SiteUrlChanged { } /** * Used at the end of the deletion flow for both draft sites and when a user deletes a site. * Consumed by other teams to remove relevant data. */ interface SitePurgedExternally { /** * @maxLength 2048 * @maxSize 100 * @deprecated * @targetRemovalDate 2025-04-15 */ appDefId?: string[]; } /** Assigned Odeditor */ interface OdeditorAssigned { } /** Unassigned Odeditor */ interface OdeditorUnassigned { } /** Assigned Picasso editor */ interface PicassoAssigned { } /** Unassigned Picasso */ interface PicassoUnassigned { } /** Assigned Wixel */ interface WixelAssigned { } /** Unassigned Wixel */ interface WixelUnassigned { } /** Assigned StudioTwo */ interface StudioTwoAssigned { } /** Unassigned StudioTwo */ interface StudioTwoUnassigned { } /** Media from user domain is enabled. */ interface UserDomainMediaEnabled { } /** Media from user domain is disabled. */ interface UserDomainMediaDisabled { } /** Assigned Editorless */ interface EditorlessAssigned { } /** Unassigned Editorless */ interface EditorlessUnassigned { } /** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */ interface SitePropertiesNotification { /** The site ID for which this update notification applies. */ metasiteId?: string; /** The actual update event. */ event?: SitePropertiesEvent; /** * A convenience set of mappings from the MetaSite ID to its constituent services. * @maxSize 500 */ translations?: Translation[]; /** Context of the notification */ changeContext?: ChangeContext; } /** The actual update event for a particular notification. */ interface SitePropertiesEvent { /** Version of the site's properties represented by this update. */ version?: number; /** Set of properties that were updated - corresponds to the fields in "properties". */ fields?: string[]; /** Updated properties. */ properties?: Properties; } interface Properties { /** Site categories. */ categories?: Categories; /** Site locale. */ locale?: Locale; /** * Site language. * * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */ language?: string | null; /** * Site currency used to bill customers. * * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. */ paymentCurrency?: string | null; /** Site time zone in IANA time zone database format. For example, `America/New_York`. */ timeZone?: string | null; /** Email address. */ email?: string | null; /** Phone number. */ phone?: string | null; /** Fax number. */ fax?: string | null; /** Address. */ address?: Address; /** Site display name. */ siteDisplayName?: string | null; /** Business name. */ businessName?: string | null; /** Path to the site's logo in Wix Media (without Wix Media base URL). */ logo?: string | null; /** Site description. */ description?: string | null; /** * Business schedule. Regular and exceptional time periods when the business is open or the service is available. * * __Note:__ Not supported by Wix Bookings. */ businessSchedule?: BusinessSchedule; /** Supported languages of a site and the primary language. */ multilingual?: Multilingual; /** Cookie policy the Wix user defined for their site (before the site visitor interacts with/limits it). */ consentPolicy?: ConsentPolicy; /** * Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`. * * Site business type. */ businessConfig?: string | null; /** External site URL that uses Wix as its headless business solution. */ externalSiteUrl?: string | null; /** Track clicks analytics. */ trackClicksAnalytics?: boolean; /** * Company ID issued to the business by local authorities. Appears on invoices and price quotes. * @maxLength 50 */ companyId?: string | null; } interface Categories { /** Primary site category. */ primary?: string; /** * Secondary site category. * @maxSize 50 */ secondary?: string[]; /** Business Term Id */ businessTermId?: string | null; } interface Locale { /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */ languageCode?: string; /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */ country?: string; } interface Address { /** Street name. */ street?: string; /** City name. */ city?: string; /** Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */ country?: string; /** State. */ state?: string; /** * Zip or postal code. * @maxLength 20 */ zip?: string; /** Extra information to be displayed in the address. */ hint?: AddressHint; /** Whether this address represents a physical location. */ isPhysical?: boolean; /** Google-formatted version of this address. */ googleFormattedAddress?: string; /** Street number. */ streetNumber?: string; /** Apartment number. */ apartmentNumber?: string; /** Geographic coordinates of location. */ coordinates?: GeoCoordinates; } /** * Extra information on displayed addresses. * This is used for display purposes. Used to add additional data about the address, such as "In the passage". * Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string. */ interface AddressHint { /** Extra text displayed next to, or instead of, the actual address. */ text?: string; /** Where the extra text should be displayed. */ placement?: PlacementTypeWithLiterals; } /** Where the extra text should be displayed: before, after or instead of the actual address. */ declare enum PlacementType { BEFORE = "BEFORE", AFTER = "AFTER", REPLACE = "REPLACE" } /** @enumType */ type PlacementTypeWithLiterals = PlacementType | 'BEFORE' | 'AFTER' | 'REPLACE'; /** Geocoordinates for a particular address. */ interface GeoCoordinates { /** Latitude of the location. Must be between -90 and 90. */ latitude?: number; /** Longitude of the location. Must be between -180 and 180. */ longitude?: number; } /** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */ interface BusinessSchedule { /** * Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods. * @maxSize 100 */ periods?: TimePeriod[]; /** * Exceptions to the business's regular hours. The business can be open or closed during the exception. * @maxSize 100 */ specialHourPeriod?: SpecialHourPeriod[]; } /** Weekly recurring time periods when the business is regularly open or the service is available. */ interface TimePeriod { /** Day of the week the period starts on. */ openDay?: DayOfWeekWithLiterals; /** * 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 * midnight at the end of the specified day. */ openTime?: string; /** Day of the week the period ends on. */ closeDay?: DayOfWeekWithLiterals; /** * 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 * midnight at the end of the specified day. * * __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`. */ closeTime?: string; } /** Enumerates the days of the week. */ declare enum DayOfWeek { MONDAY = "MONDAY", TUESDAY = "TUESDAY", WEDNESDAY = "WEDNESDAY", THURSDAY = "THURSDAY", FRIDAY = "FRIDAY", SATURDAY = "SATURDAY", SUNDAY = "SUNDAY" } /** @enumType */ type DayOfWeekWithLiterals = DayOfWeek | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY'; /** Exception to the business's regular hours. The business can be open or closed during the exception. */ interface SpecialHourPeriod { /** 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). */ startDate?: string; /** 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). */ endDate?: string; /** * Whether the business is closed (or the service is not available) during the exception. * * Default: `true`. */ isClosed?: boolean; /** Additional info about the exception. For example, "We close earlier on New Year's Eve." */ comment?: string; } interface Multilingual { /** * Supported languages list. * @maxSize 200 */ supportedLanguages?: SupportedLanguage[]; /** Whether to redirect to user language. */ autoRedirect?: boolean; } interface SupportedLanguage { /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */ languageCode?: string; /** Locale. */ locale?: Locale; /** Whether the supported language is the primary language for the site. */ isPrimary?: boolean; /** Language icon. */ countryCode?: string; /** How the language will be resolved. For internal use. */ resolutionMethod?: ResolutionMethodWithLiterals; /** Whether the supported language is the primary language for site visitors. */ isVisitorPrimary?: boolean | null; } declare enum ResolutionMethod { QUERY_PARAM = "QUERY_PARAM", SUBDOMAIN = "SUBDOMAIN", SUBDIRECTORY = "SUBDIRECTORY" } /** @enumType */ type ResolutionMethodWithLiterals = ResolutionMethod | 'QUERY_PARAM' | 'SUBDOMAIN' | 'SUBDIRECTORY'; interface ConsentPolicy { /** Whether the site uses cookies that are essential to site operation. Always `true`. */ essential?: boolean | null; /** Whether the site uses cookies that affect site performance and other functional measurements. */ functional?: boolean | null; /** Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). */ analytics?: boolean | null; /** Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. */ advertising?: boolean | null; /** CCPA compliance flag. */ dataToThirdParty?: boolean | null; } /** A single mapping from the MetaSite ID to a particular service. */ interface Translation { /** The service type. */ serviceType?: string; /** The application definition ID; this only applies to services of type ThirdPartyApps. */ appDefId?: string; /** The instance ID of the service. */ instanceId?: string; } interface ChangeContext extends ChangeContextPayloadOneOf { /** Properties were updated. */ propertiesChange?: PropertiesChange; /** Default properties were created on site creation. */ siteCreated?: V4SiteCreated; /** Properties were cloned on site cloning. */ siteCloned?: SiteCloned; } /** @oneof */ interface ChangeContextPayloadOneOf { /** Properties were updated. */ propertiesChange?: PropertiesChange; /** Default properties were created on site creation. */ siteCreated?: V4SiteCreated; /** Properties were cloned on site cloning. */ siteCloned?: SiteCloned; } interface PropertiesChange { } interface V4SiteCreated { /** Origin template site id. */ originTemplateId?: string | null; } interface SiteCloned { /** Origin site id. */ originMetaSiteId?: string; } interface FeatureEvent extends FeatureEventEventOneOf { /** * Information about an event that makes a feature eligible to the user. * Triggered for example, for new features or when a feature is reassigned * to an account or a site. */ enabled?: FeatureEnabled; /** * Information about an event that disables a feature for the user. * Triggered for example, when a feature is unassigned from a site, * reassigned to a different site, or the user switched to a different contract. */ disabled?: FeatureDisabled; /** * Information about an event that updates a feature. An `updated` event * is triggered for example by the * [Report Quota Usage](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/report-quota-usage) * and [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter) * endpoints. */ updated?: FeatureUpdated; /** * Information about an event that cancels a feature for the user. * Triggered for example, when a feature is canceled, transferred to * another account, or the user switched to a different contract. */ cancelled?: FeatureCancelled; /** * Information about a quota usage change for a feature. Triggered when * quota usage is reported via Report Quota Usage endpoint. Includes * before/after usage and remaining values. */ quotaUsageChanged?: FeatureQuotaUsageChanged; /** * Timestamp of the event in * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */ timestamp?: Date | null; } /** @oneof */ interface FeatureEventEventOneOf { /** * Information about an event that makes a feature eligible to the user. * Triggered for example, for new features or when a feature is reassigned * to an account or a site. */ enabled?: FeatureEnabled; /** * Information about an event that disables a feature for the user. * Triggered for example, when a feature is unassigned from a site, * reassigned to a different site, or the user switched to a different contract. */ disabled?: FeatureDisabled; /** * Information about an event that updates a feature. An `updated` event * is triggered for example by the * [Report Quota Usage](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/report-quota-usage) * and [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter) * endpoints. */ updated?: FeatureUpdated; /** * Information about an event that cancels a feature for the user. * Triggered for example, when a feature is canceled, transferred to * another account, or the user switched to a different contract. */ cancelled?: FeatureCancelled; /** * Information about a quota usage change for a feature. Triggered when * quota usage is reported via Report Quota Usage endpoint. Includes * before/after usage and remaining values. */ quotaUsageChanged?: FeatureQuotaUsageChanged; } /** Feature created or enabled after disabled state */ interface FeatureEnabled extends FeatureEnabledReasonOneOf { /** Information about a transfer from another account. */ transferredFromAnotherAccount?: TransferredFromAnotherAccountReason; /** Information about a transfer from another site. */ reassignedFromSite?: ReassignedFromSiteReason; /** Information about a feature that hadn't been assigned to site. */ assignedFromFloating?: AssignedFromFloatingReason; /** Information about the new feature. */ newFeature?: NewFeatureReason; /** Information about the contract switch. */ contractSwitched?: ContractSwitchedReason; /** Information about the manually created features. */ manualFeatureCreation?: ManualFeatureCreationReason; /** Information about a feature that was migrated from legacy. */ migratedFromLegacy?: MigratedFromLegacyReason; /** Information about manual sync (e.g. immigrator task). */ manualSync?: ManualSyncReason; /** Enabled feature. */ feature?: Feature; /** * Information about a transfer from another account. * __Deprecated__. Use `reason.transferred_from_another_account` instead. * @format GUID */ transferredFromAccount?: string | null; /** * Information about a transfer from another site. * __Deprecated__. Use `reason.reassigned_from_site` instead. * @format GUID */ reassignedFromMetasite?: string | null; } /** @oneof */ interface FeatureEnabledReasonOneOf { /** Information about a transfer from another account. */ transferredFromAnotherAccount?: TransferredFromAnotherAccountReason; /** Information about a transfer from another site. */ reassignedFromSite?: ReassignedFromSiteReason; /** Information about a feature that hadn't been assigned to site. */ assignedFromFloating?: AssignedFromFloatingReason; /** Information about the new feature. */ newFeature?: NewFeatureReason; /** Information about the contract switch. */ contractSwitched?: ContractSwitchedReason; /** Information about the manually created features. */ manualFeatureCreation?: ManualFeatureCreationReason; /** Information about a feature that was migrated from legacy. */ migratedFromLegacy?: MigratedFromLegacyReason; /** Information about manual sync (e.g. immigrator task). */ manualSync?: ManualSyncReason; } interface Feature extends FeatureQuantityInfoOneOf { /** * Deprecated. Use `enabled` instead. * @deprecated */ booleanFeature?: BooleanFeature; /** * Deprecated. Use `quotaInfo` instead. * @deprecated */ quotaFeature?: QuotaFeature; /** * ID of the feature. __Note:__ Isn't unique. For example, all features that * are available to free Wix accounts or site in some capacity have * `{"id": "DEFAULT"}`. Use `uniqueName` as unique identifier for a feature. * @readonly */ _id?: string; /** * Unique name of the feature. Only lower case letters, numbers, and dashes * `-` are supported. Used in the endpoints of the * [Features Manager API](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/introduction) * to specify the feature. Not visible to customers. We recommend to start * the unique name with a prefix describing your organization or Wix company. * For example, `bookings` or `crm`. * * Min: 2 characters * Max: 50 characters * @minLength 2 * @maxLength 50 */ uniqueName?: string; /** * Information about whether the feature belongs to a Wix account or site. * Account features have `context.userId`. Site features have `context.metaSiteId` in case * they're assigned to a specific site. Site features that aren't assigned to * a specific site have neither ID. */ context?: FeatureContext; /** * Deprecated. * @readonly * @deprecated */ createdAt?: Date | null; /** * Deprecated. * @readonly * @deprecated */ updatedAt?: Date | null; /** * Aggregated information about how often customers can use the feature. * Available only for quota features. */ quotaInfo?: QuotaInfo; /** * Whether the customer is currently allowed to use the feature. * `true` means that the customer can use the feature. This means a boolean * feature is active or a quota feature has remaining usage. * `false` means that the customer can't use the feature. * This means a boolean feature isn't active or a quota feature doesn't * have remaining usage. */ enabled?: boolean; /** * ID of the [subscription](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/subscription-object) * to which the feature instance belongs. * @format GUID */ subscriptionId?: string | null; /** * Metadata of the feature. Wix Premium uses the metadata object to indicate * that customers who purchase a product with the feature also get * access to an additional product. For these bundled products `metadata` * looks like this: `{"tpa": "{"appDefId": "sample-app-def-id-1234567890", "vendorProductId": "sample-productId"}}"`. * But you can use the `metadata` property for other purposes, too. */ metadata?: Record; } /** @oneof */ interface FeatureQuantityInfoOneOf { /** * Deprecated. Use `enabled` instead. * @deprecated */ booleanFeature?: BooleanFeature; /** * Deprecated. Use `quotaInfo` instead. * @deprecated */ quotaFeature?: QuotaFeature; } /** * Context this feature is currently connected to. * Note: Do not confuse with feature scope which is configured in the product catalog * and defines in which context the product can be used */ interface FeatureContext { /** * ID of the Wix account that the feature instance belongs to. * Available for both site and account level feature instances. * @format GUID */ userId?: string; /** * ID of the meta site that the feature instance is assigned to. * Only available for site level feature instances that are assigned to a Wix * site. Not available for account level and unassigned site level feature * instances. * @format GUID */ metaSiteId?: string | null; } /** * A feature that can be either "enabled" or "disabled". The default/freemium setting is always OFF, and the premium setting is always ON (meaning, unlimited usage without tracking). * A boolean feature is similar to a quantitive feature with a default limit of 0 and UNLIMITED premium limit (although a bit simplified). */ interface BooleanFeature { } /** A feature with a periodic usage limitation. The default limit is defined in the Feature Spec, the Premium limits are defined in the respective ProductFeature. */ interface QuotaFeature { /** Default (or Freemium) quota limitation. if left undefined the free feature has unlimited amount. */ limit?: string | null; /** Periodic time-frame to reset the usage counter. You may use NO_PERIOD if counter shouldn't be reset. */ period?: FeaturePeriodWithLiterals; /** Usage measurement units (seconds? MBs? unitless?). Usage reported will be counted in multiples of this basic unit. */ units?: string | null; } /** Determines the reset cycle of the feature usage. */ declare enum FeaturePeriod { NO_PERIOD = "NO_PERIOD", MILLISECOND = "MILLISECOND", SECOND = "SECOND", MINUTE = "MINUTE", HOUR = "HOUR", DAY = "DAY", WEEK = "WEEK", MONTH = "MONTH", YEAR = "YEAR" } /** @enumType */ type FeaturePeriodWithLiterals = FeaturePeriod | 'NO_PERIOD' | 'MILLISECOND' | 'SECOND' | 'MINUTE' | 'HOUR' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR'; interface QuotaInfo { /** * Aggregation of how often the customer is allowed to use the feature at the time of the request. * `null` means that the customer has unlimited access to the feature. */ limit?: string | null; /** * Deprecated because a feature can have multiple periods defined. Use `period` in `breakdown` entries instead. * Time frame for the usage limitation. `NO_PERIOD` means that `remainingUsage` * isn't automatically reset to the feature's `limit` after a specific period. * You may still manually call * [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter). * @deprecated * @replacedBy breakdown.period * @targetRemovalDate 2026-03-31 */ period?: FeaturePeriodWithLiterals; /** * Aggregation of how often the customer has used the feature. * This value is retrieved from the Quota Manager/Rate Limiter system. If the * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`, * this field will contain the value `-1`. */ currentUsage?: string; /** * Aggregation of how often the customer can still use the feature. * `null` means that the customer has unlimited access to the feature. * This value is retrieved from the Quota Manager/Rate Limiter system. If the * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`, * this field will not be populated. */ remainingUsage?: string | null; /** * Breakdown of quota information entries, entry per feature instance. * @maxSize 1000 */ breakdown?: QuotaInfoEntry[]; } interface QuotaInfoEntry { /** * If quota is of free feature, the id would be empty (None). * If quota is of premium feature, this is the ID of the feature instance. * @format GUID */ featureInstanceId?: string | null; /** * How often the customer is allowed to use the feature during the specified * period. `null` means that the customer has unlimited access to the feature. */ limit?: string | null; /** * Time frame for the usage limitation. `NO_PERIOD` means that `remainingUsage` * isn't automatically reset to the feature's `limit` after a specific period. * You may still manually call * [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter). */ period?: FeaturePeriodWithLiterals; /** * How often the customer has used the feature during the current * period. * This value is retrieved from the Quota Manager/Rate Limiter system. If the * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`, * this field will contain the value `-1`. */ currentUsage?: string; /** * How often the customer can still use the feature during the current * period. `null` means that the customer has unlimited access to the feature. * This value is retrieved from the Quota Manager/Rate Limiter system. If the * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`, * this field will not be populated. */ remainingUsage?: string | null; /** * ID of the subscription to which the feature instance belongs. * @format GUID */ subscriptionId?: string | null; /** * Reset date of the quota. * Relevant only for features with a period that is not `NO_PERIOD`, and only for features that are managed by the Quota Manager system. */ resetDate?: Date | null; } /** Subscription transferred from another account, features on the current account were enabled. */ interface TransferredFromAnotherAccountReason { /** * Information about a transfer from another account. * @format GUID */ transferredFromAccount?: string; } /** Subscription moved from one site to another in the same account, features enabled on the target site */ interface ReassignedFromSiteReason { /** * Information about a transfer from another site. * @format GUID */ reassignedFromMetasite?: string; } /** Subscription was floating and assigned to site, features enabled on the target site */ interface AssignedFromFloatingReason { } /** New subscription created and features created as enabled */ interface NewFeatureReason { } /** Subscription was upgraded or downgraded, as a result new features enabled, missing features disabled , quantities are updated */ interface ContractSwitchedReason { /** Classification of the contract switch (upgrade, downgrade, or price increase) */ classification?: ContractSwitchClassificationWithLiterals; } /** * Classification of contract switch events for quota reset behavior * Needed to determine whether to reset usage and/or reset date for features affected by the contract switch. * For example, for an upgrade we want to reset both usage and date. * For a downgrade we want to keep the usage and date but update the limit, and for a price increase we want to reset the usage but keep the date. */ declare enum ContractSwitchClassification { /** Unknown or unclassified contract switch */ UNKNOWN = "UNKNOWN", /** Upgrade - reset usage, reset date, and update limit */ UPGRADE = "UPGRADE", /** Downgrade - only update limit (no reset) */ DOWNGRADE = "DOWNGRADE", /** Price increase - reset usage only (not reset date), update limit */ PRICE_INCREASE = "PRICE_INCREASE" } /** @enumType */ type ContractSwitchClassificationWithLiterals = ContractSwitchClassification | 'UNKNOWN' | 'UPGRADE' | 'DOWNGRADE' | 'PRICE_INCREASE'; /** a call to CreateFeature in features-writer, creates feature that is not attached to subscription */ interface ManualFeatureCreationReason { } /** Subscription created due to migration from old premium model */ interface MigratedFromLegacyReason { } /** Feature was synced manually, for example by immigrator task */ interface ManualSyncReason { /** * Optional description of the manual sync source (e.g. "immigrator", "quota-sync"). * @maxLength 100 */ source?: string | null; } /** Feature disabled and can be enabled in the future */ interface FeatureDisabled extends FeatureDisabledReasonOneOf { /** Information about a feature that's no longer assigned to a site. */ unassingedToFloating?: UnAssingedToFloatingReason; /** * Information about a feature that's been replaced by a feature from a * different subscription. */ replacedByAnotherSubscription?: ReplacedByAnotherSubscriptionReason; /** * Information about a feature that's been reassigned to a different * site. */ reassignedToAnotherSite?: ReassignedToAnotherSiteReason; /** * Disabled feature. Includes information about the feature's new state, * possibly its new context. */ feature?: Feature; /** * ID of the meta site for which the feature has been disabled. * @format GUID */ metaSiteId?: string | null; } /** @oneof */ interface FeatureDisabledReasonOneOf { /** Information about a feature that's no longer assigned to a site. */ unassingedToFloating?: UnAssingedToFloatingReason; /** * Information about a feature that's been replaced by a feature from a * different subscription. */ replacedByAnotherSubscription?: ReplacedByAnotherSubscriptionReason; /** * Information about a feature that's been reassigned to a different * site. */ reassignedToAnotherSite?: ReassignedToAnotherSiteReason; } /** Subscription was unassigned from the site and moved into floating state */ interface UnAssingedToFloatingReason { } /** Another subscription was assigned to the site, causing existing features on this site to be disabled */ interface ReplacedByAnotherSubscriptionReason { } /** Subscription was assigned to another site, causing features on the origin site to be disabled. */ interface ReassignedToAnotherSiteReason { /** * Information about a transfer to the site. * @format GUID */ reassignedToMetasite?: string; } /** Feature updated, for example Quota was increased due to upgrade */ interface FeatureUpdated extends FeatureUpdatedPreviousQuantityInfoOneOf, FeatureUpdatedReasonOneOf { /** Information about a feature that doesn't have a usage quota. */ booleanFeature?: BooleanFeature; /** Information about a feature that has a usage quota. */ quotaFeature?: QuotaFeature; /** Information about the contract switch. */ contractSwitched?: ContractSwitchedReason; /** Information about manual sync (e.g. immigrator task). */ manualSync?: ManualSyncReason; /** * Updated feature. Includes information about the feature's new state and * possibly its new context. */ feature?: Feature; } /** @oneof */ interface FeatureUpdatedPreviousQuantityInfoOneOf { /** Information about a feature that doesn't have a usage quota. */ booleanFeature?: BooleanFeature; /** Information about a feature that has a usage quota. */ quotaFeature?: QuotaFeature; } /** @oneof */ interface FeatureUpdatedReasonOneOf { /** Information about the contract switch. */ contractSwitched?: ContractSwitchedReason; /** Information about manual sync (e.g. immigrator task). */ manualSync?: ManualSyncReason; } /** Feature was permanently cancelled */ interface FeatureCancelled extends FeatureCancelledReasonOneOf { /** Information about a transfer to the account. */ transferredToAnotherAccount?: TransferredToAnotherAccountReason; /** Information about the contract switch. */ contractSwitched?: ContractSwitchedReason; /** Information about the feature cancellation. */ cancelRequest?: CancelRequestedReason; /** Information about manual sync (e.g. immigrator task). */ manualSync?: ManualSyncReason; /** Feature was automatically cancelled because its quota was fully consumed. */ quotaExhausted?: QuotaExhaustedReason; /** Canceled feature. */ feature?: Feature; /** * Information about a transfer to the account. * __Deprecated__. Use `reason.transferred_to_account` instead. * @format GUID */ transferredToAccount?: string | null; } /** @oneof */ interface FeatureCancelledReasonOneOf { /** Information about a transfer to the account. */ transferredToAnotherAccount?: TransferredToAnotherAccountReason; /** Information about the contract switch. */ contractSwitched?: ContractSwitchedReason; /** Information about the feature cancellation. */ cancelRequest?: CancelRequestedReason; /** Information about manual sync (e.g. immigrator task). */ manualSync?: ManualSyncReason; /** Feature was automatically cancelled because its quota was fully consumed. */ quotaExhausted?: QuotaExhaustedReason; } /** Subscription was transferred to another account, features in the origin account were cancelled */ interface TransferredToAnotherAccountReason { /** * Information about a transfer to the account. * @format GUID */ transferredToAccount?: string; } /** Cancellation was requested from the subscription manager api, might be a result of billing event, or direct call */ interface CancelRequestedReason { } /** Feature was automatically cancelled because its quota was fully consumed (e.g. topup feature) */ interface QuotaExhaustedReason { } /** Quota usage changed for a feature. */ interface FeatureQuotaUsageChanged { /** Full feature state before this quota usage report. */ featureBefore?: Feature; /** Full feature state after this quota usage report. */ featureAfter?: Feature; } interface MessageEnvelope { /** * App instance ID. * @format GUID */ instanceId?: string | null; /** * Event type. * @maxLength 150 */ eventType?: string; /** The identification type and identity data. */ identity?: IdentificationData; /** Stringify payload. */ data?: string; /** Details related to the account */ accountInfo?: AccountInfo; } interface IdentificationData extends IdentificationDataIdOneOf { /** * ID of a site visitor that has not logged in to the site. * @format GUID */ anonymousVisitorId?: string; /** * ID of a site visitor that has logged in to the site. * @format GUID */ memberId?: string; /** * ID of a Wix user (site owner, contributor, etc.). * @format GUID */ wixUserId?: string; /** * ID of an app. * @format GUID */ appId?: string; /** @readonly */ identityType?: WebhookIdentityTypeWithLiterals; } /** @oneof */ interface IdentificationDataIdOneOf { /** * ID of a site visitor that has not logged in to the site. * @format GUID */ anonymousVisitorId?: string; /** * ID of a site visitor that has logged in to the site. * @format GUID */ memberId?: string; /** * ID of a Wix user (site owner, contributor, etc.). * @format GUID */ wixUserId?: string; /** * ID of an app. * @format GUID */ appId?: string; } declare enum WebhookIdentityType { UNKNOWN = "UNKNOWN", ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR", MEMBER = "MEMBER", WIX_USER = "WIX_USER", APP = "APP" } /** @enumType */ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP'; interface AccountInfo { /** * ID of the Wix account associated with the event. * @format GUID */ accountId?: string | null; /** * ID of the parent Wix account. Only included when accountId belongs to a child account. * @format GUID */ parentAccountId?: string | null; /** * ID of the Wix site associated with the event. Only included when the event is tied to a specific site. * @format GUID */ siteId?: string | null; } /** @docsIgnore */ type UpdateReservationLocationValidationErrors = { ruleName?: 'RESERVATION_LOCATION_VIOLATION'; }; interface BaseEventMetadata { /** * App instance ID. * @format GUID */ instanceId?: string | null; /** * Event type. * @maxLength 150 */ eventType?: string; /** The identification type and identity data. */ identity?: IdentificationData; /** Details related to the account */ accountInfo?: AccountInfo; } interface EventMetadata extends BaseEventMetadata { /** Event ID. With this ID you can easily spot duplicated events and ignore them. */ _id?: string; /** * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities. * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`. */ entityFqdn?: string; /** * Event action name, placed at the top level to make it easier for users to dispatch messages. * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`. */ slug?: string; /** ID of the entity associated with the event. */ entityId?: string; /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */ eventTime?: Date | null; /** * Whether the event was triggered as a result of a privacy regulation application * (for example, GDPR). */ triggeredByAnonymizeRequest?: boolean | null; /** If present, indicates the action that triggered the event. */ originatedFrom?: string | null; /** * 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. * 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. */ entityEventSequence?: string | null; accountInfo?: AccountInfoMetadata; } interface AccountInfoMetadata { /** ID of the Wix account associated with the event */ accountId: string; /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */ siteId?: string; /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */ parentAccountId?: string; } interface ReservationLocationCreatedEnvelope { entity: ReservationLocation; metadata: EventMetadata; } /** * Triggered when a reservation location is created. * @permissionScope Read Reservation Locations (Full) * @permissionScopeId SCOPE.DC-RESERVATIONS.READ-LOCATIONS-FULL * @permissionScope Manage Reservation Locations * @permissionScopeId SCOPE.DC-RESERVATIONS.MANAGE-LOCATIONS * @permissionScope Manage Restaurants - all permissions * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES * @permissionId TABLE_RESERVATIONS.RESERVATION_LOCATION_READ_FULL * @webhook * @eventType wix.table_reservations.v1.reservation_location_created * @serviceIdentifier wix.table_reservations.reservation_location.v1.ReservationLocationsService * @slug created */ declare function onReservationLocationCreated(handler: (event: ReservationLocationCreatedEnvelope) => void | Promise): void; interface ReservationLocationUpdatedEnvelope { entity: ReservationLocation; metadata: EventMetadata; /** @hidden */ modifiedFields: Record; } /** * Triggered when a reservation location is updated. * @permissionScope Read Reservation Locations (Full) * @permissionScopeId SCOPE.DC-RESERVATIONS.READ-LOCATIONS-FULL * @permissionScope Manage Reservation Locations * @permissionScopeId SCOPE.DC-RESERVATIONS.MANAGE-LOCATIONS * @permissionScope Manage Restaurants - all permissions * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES * @permissionId TABLE_RESERVATIONS.RESERVATION_LOCATION_READ_FULL * @webhook * @eventType wix.table_reservations.v1.reservation_location_updated * @serviceIdentifier wix.table_reservations.reservation_location.v1.ReservationLocationsService * @slug updated */ declare function onReservationLocationUpdated(handler: (event: ReservationLocationUpdatedEnvelope) => void | Promise): void; /** * Retrieves a reservation location by ID. * @param reservationLocationId - ID of the ReservationLocation to retrieve. * @public * @requiredField reservationLocationId * @param options - An object representing the available options for retrieving a reservation location. * @permissionId TABLE_RESERVATIONS.RESERVATION_LOCATION_READ * @permissionId TABLE_RESERVATIONS.RESERVATION_LOCATION_READ_FULL * @applicableIdentity APP * @returns The retrieved reservation location. * @fqn wix.table_reservations.reservation_location.v1.ReservationLocationsService.GetReservationLocation */ declare function getReservationLocation(reservationLocationId: string): Promise>; /** * Updates a reservation location. Supports partial updates. * * Each time the reservation location is updated, `revision` increments by 1. The existing revision must be included when updating the reservation location. This ensures you're working with the latest reservation location information, and it prevents unintended overwrites. * * You cannot use this method to change a reservation location's `location` object. Attempting to do so will cause the server to return an application error. * @param _id - Reservation location ID. * @public * @requiredField _id * @requiredField reservationLocation * @requiredField reservationLocation.revision * @param reservationLocation - Reservation location information to update. * @permissionId TABLE_RESERVATIONS.RESERVATION_LOCATION_UPDATE * @applicableIdentity APP * @returns The updated reservation location. * @fqn wix.table_reservations.reservation_location.v1.ReservationLocationsService.UpdateReservationLocation */ declare function updateReservationLocation(_id: string, reservationLocation: NonNullablePaths): Promise & { __validationErrorsType?: UpdateReservationLocationValidationErrors; }>; interface UpdateReservationLocation { /** * Reservation location ID. * @format GUID * @readonly */ _id?: string | null; /** * Represents the current state of a reservation location. Each time the reservation location is modified, its `revision` changes. For an update operation to succeed, you must specify the latest revision. * @immutable */ revision?: string | null; /** * The date and time this reservation location was created. * @readonly */ _createdDate?: Date | null; /** * The date and time this reservation location was last updated. * @readonly */ _updatedDate?: Date | null; /** * Physical location details. * * Locations can be created and configured using the Locations API. * or on the [Business Info](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fsettings/business-info) page in the Dashboard. * @readonly */ location?: Location; /** Reservation location configuration. */ configuration?: Configuration; /** * Whether this reservation location's `location` is the default location of the business. * @readonly */ default?: boolean | null; /** * Whether this reservation location's `location` is archived. * @readonly */ archived?: boolean | null; /** * PRIVATE Seating plan ID. * @internal * @format GUID */ seatingPlanId?: string | null; /** * Currency code. Must be a valid [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. For example, `USD`. * @internal * @format CURRENCY * @readonly */ currency?: string | null; /** * Custom field data for the reservation location object. * * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls. */ extendedFields?: ExtendedFields; } /** * Creates a query to retrieve a list of reservation locations. * * * The `queryReservationLocations()` function builds a query to retrieve a list of reservation locations and returns a `ReservationLocationsQueryBuilder` object. * * The returned object contains the query definition, which is used to run the query using the [find()](/reservation-locations/reservation-locations-query-builder/find) function. * * You can refine the query by chaining `ReservationLocationsQueryBuilder` functions onto the query. `ReservationLocationsQueryBuilder` functions enable you to filter, sort, and control the results that `queryReservationLocations()` returns. * * `queryReservationLocations()` runs with the following `ReservationLocationsQueryBuilder` defaults, which you can override: * * * [`limit(50)`](/reservation-locations/reservation-locations-query-builder/limit) * * The following `ReservationLocationsQueryBuilder` functions are supported for `queryReservationLocations()`. For a full description of the reservation location object, see the object returned for the [`items`](/reservation-locations/reservation-locations-query-result/items) property in [`ReservationLocationsQueryResult`](/reservation-locations/reservation-locations-query-result). * @public * @param options - An object representing the available options for querying reservation locations. * @permissionId TABLE_RESERVATIONS.RESERVATION_LOCATION_READ * @permissionId TABLE_RESERVATIONS.RESERVATION_LOCATION_READ_FULL * @applicableIdentity APP * @fqn wix.table_reservations.reservation_location.v1.ReservationLocationsService.QueryReservationLocations */ declare function queryReservationLocations(): ReservationLocationsQueryBuilder; interface QueryCursorResult { cursors: Cursors; hasNext: () => boolean; hasPrev: () => boolean; length: number; pageSize: number; } interface ReservationLocationsQueryResult extends QueryCursorResult { items: ReservationLocation[]; query: ReservationLocationsQueryBuilder; next: () => Promise; prev: () => Promise; } interface ReservationLocationsQueryBuilder { /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. */ eq: (propertyName: '_id', value: any) => ReservationLocationsQueryBuilder; /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. */ ne: (propertyName: '_id', value: any) => ReservationLocationsQueryBuilder; in: (propertyName: '_id', value: any) => ReservationLocationsQueryBuilder; /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */ limit: (limit: number) => ReservationLocationsQueryBuilder; /** @param cursor - A pointer to specific record */ skipTo: (cursor: string) => ReservationLocationsQueryBuilder; find: () => Promise; } /** * @hidden * @fqn wix.table_reservations.reservation_location.v1.ReservationLocationsService.QueryReservationLocations * @requiredField query */ declare function typedQueryReservationLocations(query: ReservationLocationQuery): Promise>; interface ReservationLocationQuerySpec extends QuerySpec { paging: 'cursor'; wql: [ { fields: ['_id']; operators: ['$eq', '$in', '$ne']; sort: 'NONE'; } ]; } type CommonQueryWithEntityContext = Query; type ReservationLocationQuery = { /** 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`. */ cursorPaging?: { /** Number of items to load. @max: 100 */ limit?: NonNullable['limit'] | null; /** Pointer to the next or previous page in the list of results. You can get the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request. */ cursor?: NonNullable['cursor'] | null; }; /** Filter object in the following format: `"filter" : { "fieldName1": "value1", "fieldName2":{"$operator":"value2"} }` For a detailed list of supported operations, see the [Supported Filters and Sorting](https://dev.wix.com/docs/rest/api-reference/wix-restaurants/reservations/reservations/sorting-and-filtering) article. To learn how to query reservations, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language). */ filter?: CommonQueryWithEntityContext['filter'] | null; /** Sort object in the following format: `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]` */ sort?: { /** Name of the field to sort by. */ fieldName?: NonNullable[number]['fieldName']; /** Sort order. Defaults to `ASC`. */ order?: NonNullable[number]['order']; }[]; }; declare const utils: { query: _wix_sdk_types.QueryHelpers; }; /** * Retrieves a list of up to 100 reservation locations. * @public * @param options - An object representing the available options for listing reservation locations. * @permissionId TABLE_RESERVATIONS.RESERVATION_LOCATION_READ * @permissionId TABLE_RESERVATIONS.RESERVATION_LOCATION_READ_FULL * @applicableIdentity APP * @fqn wix.table_reservations.reservation_location.v1.ReservationLocationsService.ListReservationLocations */ declare function listReservationLocations(options?: ListReservationLocationsOptions): Promise>; interface ListReservationLocationsOptions { /** 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`. */ paging?: CursorPaging; /** Sorting for the locations list. */ sort?: Sorting; } export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type Address, type AddressHint, type AddressLocation, type App, type Approval, type ApprovalOptionsOneOf, type Area, type AreaConfiguration, type AreaIdDuplicationViolation, type AreaNameDuplicationViolation, type Asset, type AssignedFromFloatingReason, type BaseEventMetadata, type BooleanFeature, type BusinessSchedule, type BusinessScheduleSpecialHourPeriodEndBeforeStartViolation, type BusinessScheduleSpecialHourPeriodInvalidViolation, type BusinessScheduleTimePeriodCloseBeforeOpenViolation, type BusinessScheduleTimePeriodInvalidViolation, type CancelRequestedReason, type CancellationFee, type CancellationPolicy, CaptchaMode, type CaptchaModeWithLiterals, type Categories, type ChangeContext, type ChangeContextPayloadOneOf, type CheckReservationLocationsCreatedRequest, type CheckReservationLocationsCreatedResponse, type CommonBusinessSchedule, CommonDayOfWeek, type CommonDayOfWeekWithLiterals, type CommonQueryWithEntityContext, type CommonSpecialHourPeriod, type CommonTimePeriod, type Configuration, type ConsentPolicy, ContractSwitchClassification, type ContractSwitchClassificationWithLiterals, type ContractSwitchedReason, type CursorPaging, type CursorPagingMetadata, type Cursors, type CustomFieldDefinition, type CustomFieldIdsDuplicationViolation, type CustomFieldNamesDuplicationViolation, type CustomTag, DayOfWeek, type DayOfWeekWithLiterals, type DeleteContext, type DeleteOrphanReservationLocationRequest, type DeleteOrphanReservationLocationResponse, DeleteStatus, type DeleteStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type DuplicatedId, type DuplicatedName, type EditorlessAssigned, type EditorlessUnassigned, type EmailMarketingCheckbox, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type Feature, type FeatureCancelled, type FeatureCancelledReasonOneOf, type FeatureContext, type FeatureDisabled, type FeatureDisabledReasonOneOf, type FeatureEnabled, type FeatureEnabledReasonOneOf, type FeatureEvent, type FeatureEventEventOneOf, FeaturePeriod, type FeaturePeriodWithLiterals, type FeatureQuantityInfoOneOf, type FeatureQuotaUsageChanged, type FeatureUpdated, type FeatureUpdatedPreviousQuantityInfoOneOf, type FeatureUpdatedReasonOneOf, FeeUnit, type FeeUnitWithLiterals, FieldType, type FieldTypeWithLiterals, type File, type FreeCancellationWindow, type GeoCoordinates, type GetReservationLocationRequest, type GetReservationLocationResponse, type GuestVerification, type IdentificationData, type IdentificationDataIdOneOf, type InvalidateCache, type InvalidateCacheGetByOneOf, type ListReservationLocationsOptions, type ListReservationLocationsRequest, type ListReservationLocationsResponse, type Locale, type Location, type LocationAddress, type ManualApproval, type ManualApprovalValueOneOf, type ManualFeatureCreationReason, type ManualForLargePartiesOptions, type ManualSyncReason, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type MigratedFromLegacyReason, Mode, type ModeWithLiterals, type Multilingual, type MyReservationsField, type MyReservationsFieldsDuplicationViolation, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type NewFeatureReason, type NonExistentTablesInTableCombinationViolation, type NonExistentTablesInTableCombinationViolationViolation, type NotAllReservationFieldsViolation, type NoticePeriod, type OdeditorAssigned, type OdeditorUnassigned, type OnlineReservations, type Page, type Pages, type Paging, type PagingMetadataV2, type PartiesSize, type PartyPacing, type PartySize, type PauseSettings, type PaymentPolicy, type PaymentPolicyOptionsOneOf, PaymentPolicyType, type PaymentPolicyTypeWithLiterals, type PerGuestOptions, type PerReservationOptions, type PicassoAssigned, type PicassoUnassigned, PlacementType, type PlacementTypeWithLiterals, type PrivacyPolicy, type PrivacyPolicyValueOneOf, type Properties, type PropertiesChange, type QueryReservationLocationsRequest, type QueryReservationLocationsResponse, type QueryV2, type QueryV2PagingMethodOneOf, type QuotaExhaustedReason, type QuotaFeature, type QuotaInfo, type QuotaInfoEntry, type ReassignedFromSiteReason, type ReassignedToAnotherSiteReason, type ReplacedByAnotherSubscriptionReason, type ReservationFieldMustHaveTypeViolation, type ReservationFieldNotExistViolation, type ReservationForm, type ReservationLocation, type ReservationLocationCreatedEnvelope, type ReservationLocationQuery, type ReservationLocationQuerySpec, type ReservationLocationUpdatedEnvelope, type ReservationLocationViolation, type ReservationLocationViolationViolationOneOf, type ReservationLocationsQueryBuilder, type ReservationLocationsQueryResult, type ReservationPayment, ResolutionMethod, type ResolutionMethodWithLiterals, type RestoreInfo, type SeatPacing, type ServiceProvisioned, type ServiceRemoved, type SiteCloned, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePropertiesEvent, type SitePropertiesNotification, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, type SpecialHourPeriod, type StandardReservations, State, type StateWithLiterals, type StreetAddress, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, type SupportedLanguage, type TableCombination, type TableCombinationContainsLessThan2TablesViolation, type TableCombinationIdsDuplicationViolation, type TableCombinationIdsDuplicationViolationViolation, type TableCombinationMinMaxSeatsViolation, type TableCombinationNotExistViolation, type TableCombinationTableIdsCombinationDuplicationViolation, type TableCombinationTableIdsDuplicationViolation, type TableCombinationTableIdsDuplicationViolationViolation, type TableDefinition, type TableDefinitionAreaIdMissingViolation, type TableDefinitionAreaIdNonExistentViolation, type TableDefinitionIdsDuplicationViolation, type TableDefinitionIncorrectBoundariesViolation, type TableDefinitionNamesDuplicationViolation, type TableDefinitionNotExistViolation, type TableManagement, TableManagementMode, type TableManagementModeWithLiterals, type TablesDeleted, type TermsAndConditions, type TermsAndConditionsValueOneOf, type TimePeriod, type TransferredFromAnotherAccountReason, type TransferredToAnotherAccountReason, type Translation, type TurnoverRule, type TurnoverRulesIncorrectBoundariesViolation, type TurnoverRulesIntersectViolation, type TurnoverTimeRule, type TurnoverTimeRulesIncorrectBoundariesViolation, type TurnoverTimeRulesIntersectViolation, Type, type TypeWithLiterals, type URI, type URIs, type UnAssingedToFloatingReason, Unit, type UnitWithLiterals, type UpdateReservationLocation, type UpdateReservationLocationRequest, type UpdateReservationLocationResponse, type UpdateReservationLocationValidationErrors, type UserDomainMediaDisabled, type UserDomainMediaEnabled, type V4SiteCreated, type Violation, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WindowUnit, type WindowUnitWithLiterals, type WixelAssigned, type WixelUnassigned, getReservationLocation, listReservationLocations, onReservationLocationCreated, onReservationLocationUpdated, queryReservationLocations, typedQueryReservationLocations, updateReservationLocation, utils };