{"version":3,"sources":["../../src/table-reservations-v1-time-slot-time-slots.http.ts","../../src/table-reservations-v1-time-slot-time-slots.types.ts","../../src/table-reservations-v1-time-slot-time-slots.meta.ts"],"sourcesContent":["import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixTableReservationsTimeSlotV1TimeSlotsServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    _: [\n      {\n        srcPath: '/_api/table-reservations/reservations',\n        destPath: '',\n      },\n    ],\n    'editor.wixapps.net': [\n      {\n        srcPath: '/_api/table-reservations/reservations',\n        destPath: '',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/table-reservations/reservations',\n        destPath: '',\n      },\n    ],\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/table-reservations/reservations',\n        destPath: '',\n      },\n    ],\n    'api._api_base_domain_': [\n      {\n        srcPath: '/table-reservations/reservations',\n        destPath: '',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/table-reservations/reservations',\n        destPath: '',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_api/table-reservations/reservations',\n        destPath: '',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_api/table-reservations/reservations',\n        destPath: '',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_api/table-reservations/reservations',\n        destPath: '',\n      },\n    ],\n    'bo._base_domain_': [\n      {\n        srcPath: '/_api/table-reservations/reservations',\n        destPath: '',\n      },\n    ],\n    'wixbo.ai': [\n      {\n        srcPath: '/_api/table-reservations/reservations',\n        destPath: '',\n      },\n    ],\n    'wix-bo.com': [\n      {\n        srcPath: '/_api/table-reservations/reservations',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/table-reservations/reservations',\n        destPath: '',\n      },\n    ],\n    'apps._base_domain_': [\n      {\n        srcPath: '/_api/table-reservations/reservations',\n        destPath: '',\n      },\n    ],\n    'dev._base_domain_': [\n      {\n        srcPath: '/_api/table-reservations/reservations',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_table-reservations_time-slots';\n\n/**\n * Returns a list of time slots at a specified reservation location on a specified `date`, and their availability for a specified `partySize`.\n *\n * Without passing optional parameters, the list will contain a single time slot at the specified `date`.\n * Use `slotsBefore` and `slotsAfter` to get additional time slots before and after the specified `date`.\n *\n * If you do not provide a `duration`, the duration will be calculated automatically based on the reservation location's configuration.\n * The reservation location's settings used to determine the duration are its `defaultTurnoverTime` and `turnoverTimeRules`. These specify how much time should be allotted for a reservation of a party of a specified size.\n *\n * The interval between `startDate`s of time slots in the response is determined by the reservation location's `timeSlotInterval`. This interval is not affected by the `duration` provided.\n */\nexport function getTimeSlots(payload: object): RequestOptionsFactory<any> {\n  function __getTimeSlots({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [{ path: 'date' }],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.table_reservations.v1.time_slot',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.table_reservations.time_slot.v1.TimeSlotsService.GetTimeSlots',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixTableReservationsTimeSlotV1TimeSlotsServiceUrl({\n        protoPath: '/v1/time-slots',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [{ path: 'timeSlots.startDate' }],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getTimeSlots;\n}\n\n/**\n * Checks a restaurant's availability to accommodate a reservation for a given party size in a given time slot.\n *\n *  `checkTimeSlot()` returns availability information for the restaurant's table combinations, and flags any party pacing or seat pacing conflicts that the proposed reservation would cause.\n */\nexport function checkTimeSlot(payload: object): RequestOptionsFactory<any> {\n  function __checkTimeSlot({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [{ path: 'date' }],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.table_reservations.v1.time_slot',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.table_reservations.time_slot.v1.TimeSlotsService.CheckTimeSlot',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixTableReservationsTimeSlotV1TimeSlotsServiceUrl({\n        protoPath: '/v1/check-time-slot',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n    };\n\n    return metadata;\n  }\n\n  return __checkTimeSlot;\n}\n\n/**\n * Returns a list of scheduled time slots at a specified reservation location for a specified time range, and their availability for a specified `partySize`.\n *\n * Scheduled time slots are sequential time periods whose start times fall within a restaurant's opening hours. Opening hours are defined in the reservation location's `businessSchedule`.\n *\n * [Experiences](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/wix-restaurants-new/reservations/experiences/introduction) have their own business schedules that override that of the reservation location. To get scheduled time slots for an experience, pass the ID of that experience to this method.\n *\n * If a restaurant is open during distinct time periods throughout the week, the `startDate` of the first scheduled time slot returned for each period is the same as starting time of that time period.\n * If a restaurant is always open, the `startDate` of the first returned scheduled time slot for each week is Sunday at `00:00`.\n *\n * The duration of scheduled time slots and the interval between their `startDate`s is determined by the reservation location's `timeSlotInterval`.\n *\n * For example:\n *\n * A restaurant is open every night from `22:30` to `03:55` with a `timeSlotInterval` of 1 hour.\n * If you called this method with the time range `23:00` to `02:50`, it would return time slots starting at `23:30`, `00:30`, `01:30`, and `02:30`.\n */\nexport function getScheduledTimeSlots(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getScheduledTimeSlots({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [{ path: 'timeRange.startDate' }, { path: 'timeRange.endDate' }],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.table_reservations.v1.time_slot',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.table_reservations.time_slot.v1.TimeSlotsService.GetScheduledTimeSlots',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixTableReservationsTimeSlotV1TimeSlotsServiceUrl({\n        protoPath: '/v1/scheduled-time-slots',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [{ path: 'timeSlots.startDate' }],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getScheduledTimeSlots;\n}\n","export interface TimeSlot {\n  /** Start date and time of this time slot. */\n  startDate?: Date | null;\n  /** Duration in minutes of this time slot. */\n  duration?: number;\n  /** Availability status of this time slot. */\n  status?: StatusWithLiterals;\n  /** Whether manual approval is required to make a reservation in this time slot. */\n  manualApproval?: boolean | null;\n}\n\n/** Table combination. */\nexport interface TimeSlotTableCombination {\n  /**\n   * Table IDs of the tables in the combination.\n   * @format GUID\n   * @maxSize 100\n   */\n  tableIds?: string[];\n}\n\nexport enum Status {\n  /** The restaurant can accommodate a party of the given size in this time slot. */\n  AVAILABLE = 'AVAILABLE',\n  /** The restaurant can't accommodate a party of the given size in this time slot. */\n  UNAVAILABLE = 'UNAVAILABLE',\n  /** The restaurant is not open during this time slot. Time slots retrieved by Get Scheduled Time Slots never have this status. */\n  NON_WORKING_HOURS = 'NON_WORKING_HOURS',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n  | Status\n  | 'AVAILABLE'\n  | 'UNAVAILABLE'\n  | 'NON_WORKING_HOURS';\n\n/** Wrapper for table combinations. */\nexport interface MaybeTableCombinations {}\n\nexport interface GetTimeSlotsRequest {\n  /**\n   * ID of the reservation location for which to retrieve time slots.\n   * @format GUID\n   */\n  reservationLocationId: string;\n  /** Date and time for which to retrieve a time slot in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#coordinated_Universal_Time_(UTC)) format. */\n  date: Date | null;\n  /**\n   * Duration in minutes of the time slot.\n   *\n   * Min: `5`\n   * @min 5\n   * @max 1000\n   */\n  duration?: number | null;\n  /**\n   * Size of the party that needs to be seated during this time slot.\n   *\n   * Min: `1`\n   * @min 1\n   * @max 10000\n   */\n  partySize: number | null;\n  /**\n   * The number of time slots to retrieve before the specified `date`.\n   * @max 50\n   */\n  slotsBefore?: number | null;\n  /**\n   * The number of time slots to retrieve after the specified `date`.\n   * @max 50\n   */\n  slotsAfter?: number | null;\n}\n\nexport interface GetTimeSlotsResponse {\n  /** A list of time slots and their availability according to the specified party size. */\n  timeSlots?: TimeSlot[];\n}\n\nexport interface CheckReservationDetailsRequest {\n  /**\n   * Reservation location ID.\n   * @format GUID\n   */\n  reservationLocationId?: string;\n  /** Date. */\n  date?: Date | null;\n  /**\n   * Duration.\n   * @min 5\n   * @max 1000\n   */\n  duration?: number | null;\n  /**\n   * Party size.\n   * @min 1\n   * @max 10000\n   */\n  partySize?: number | null;\n  /**\n   * Reservation, that should be ignored during the check.\n   * @format GUID\n   */\n  excludeReservationId?: string | null;\n  /**\n   * Requested table combination.\n   * @format GUID\n   * @deprecated\n   * @replacedBy maybe_table_ids\n   * @targetRemovalDate 2025-12-05\n   */\n  tableIds?: string[];\n}\n\nexport interface MaybeTableIds {\n  /**\n   * @format GUID\n   * @maxSize 2000\n   */\n  tableIds?: string[];\n}\n\nexport interface CheckReservationDetailsResponse {\n  /**\n   * Tables states.\n   * @deprecated\n   * @targetRemovalDate 2025-12-05\n   */\n  tables?: Table[];\n  /**\n   * Table combinations states.\n   * @deprecated\n   * @replacedBy time_slot_availability\n   * @targetRemovalDate 2025-12-05\n   */\n  tableCombinations?: TableCombination[];\n  /**\n   * Reservation location conflicts.\n   * @deprecated\n   * @replacedBy time_slot_availability\n   * @targetRemovalDate 2025-12-05\n   */\n  reservationLocationConflicts?: ReservationLocationConflict[];\n  /**\n   * Requested table combination state.\n   * @deprecated\n   * @replacedBy time_slot_availability\n   * @targetRemovalDate 2025-12-05\n   */\n  requestedTableCombination?: TableCombination;\n  /**\n   * List of reserved tables with corresponding reservation ids.\n   * @maxSize 100\n   * @deprecated\n   * @replacedBy time_slot_availability\n   * @targetRemovalDate 2025-12-05\n   */\n  tableReservedConflicts?: TableReservedConflict[];\n  /** Whether manual approval is required to make a reservation in this time slot. */\n  manualApproval?: boolean | null;\n  /** Whether payment is required to make a reservation in this time slot. */\n  paymentRequired?: boolean | null;\n  /** Time slot availability. */\n  timeSlotAvailability?: TimeSlotAvailability;\n}\n\nexport interface TableCombinationAvailability {\n  /**\n   * IDs of the tables in the table combination.\n   * @format GUID\n   * @maxSize 2000\n   */\n  tableIds?: string[];\n  /**\n   * Conflicts that would be generated by attempting to accommodate the proposed reservation using the table combination.\n   * @maxSize 2\n   */\n  tableCombinationConflicts?: TableCombinationConflictTypeWithLiterals[];\n}\n\nexport enum TableCombinationConflictType {\n  /** Undefined conflict type. */\n  UNKNOWN = 'UNKNOWN',\n  /** One or more of the chosen tables are already reserved. */\n  RESERVED = 'RESERVED',\n  /** The party is too big for the selected table. */\n  TOO_BIG = 'TOO_BIG',\n  /** The party is too small for the selected table. */\n  TOO_SMALL = 'TOO_SMALL',\n  /** The restaurant does not allow online reservations. */\n  OFFLINE_ONLY = 'OFFLINE_ONLY',\n  /** The table is reserved for an active experience. */\n  RESERVED_FOR_EXPERIENCE = 'RESERVED_FOR_EXPERIENCE',\n  /** The table is not in the requested area. */\n  TABLE_NOT_IN_AREA = 'TABLE_NOT_IN_AREA',\n}\n\n/** @enumType */\nexport type TableCombinationConflictTypeWithLiterals =\n  | TableCombinationConflictType\n  | 'UNKNOWN'\n  | 'RESERVED'\n  | 'TOO_BIG'\n  | 'TOO_SMALL'\n  | 'OFFLINE_ONLY'\n  | 'RESERVED_FOR_EXPERIENCE'\n  | 'TABLE_NOT_IN_AREA';\n\nexport enum ReservationLocationConflictType {\n  /** Undefined reservation location conflict type. */\n  UNKNOWN = 'UNKNOWN',\n  /** The restaurant cannot accommodate a party of the given size according to party pacing settings. */\n  PARTY_PACING = 'PARTY_PACING',\n  /** The required number of seats are unavailable according to seat pacing settings. */\n  SEAT_PACING = 'SEAT_PACING',\n}\n\n/** @enumType */\nexport type ReservationLocationConflictTypeWithLiterals =\n  | ReservationLocationConflictType\n  | 'UNKNOWN'\n  | 'PARTY_PACING'\n  | 'SEAT_PACING';\n\nexport enum Type {\n  /** Undefined experience blocking conflict type. */\n  UNKNOWN = 'UNKNOWN',\n  /** Standard reservations are blocked by an active experience schedule. */\n  BLOCKED_BY_EXPERIENCE = 'BLOCKED_BY_EXPERIENCE',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'UNKNOWN' | 'BLOCKED_BY_EXPERIENCE';\n\nexport interface ExperienceTableCombinationAvailability {\n  /**\n   * IDs of the tables in the table combination.\n   * @format GUID\n   * @maxSize 2000\n   */\n  tableIds?: string[];\n  /**\n   * Conflicts that would be generated by attempting to accommodate the proposed reservation using the table combination.\n   * @maxSize 2\n   */\n  experienceTableCombinationConflicts?: ExperienceTableCombinationConflictTypeWithLiterals[];\n}\n\nexport enum ExperienceTableCombinationConflictType {\n  /** Undefined conflict type. */\n  UNKNOWN = 'UNKNOWN',\n  /** One or more of the chosen tables are already reserved. */\n  RESERVED = 'RESERVED',\n  /** The party is too big for the selected table. */\n  TOO_BIG = 'TOO_BIG',\n  /** The party is too small for the selected table. */\n  TOO_SMALL = 'TOO_SMALL',\n  /** The table or combination is not in the experience's specific table list. */\n  OUTSIDE_EXPERIENCE_TABLE_LIST = 'OUTSIDE_EXPERIENCE_TABLE_LIST',\n  /** The table is not in the requested area. */\n  TABLE_NOT_IN_AREA = 'TABLE_NOT_IN_AREA',\n}\n\n/** @enumType */\nexport type ExperienceTableCombinationConflictTypeWithLiterals =\n  | ExperienceTableCombinationConflictType\n  | 'UNKNOWN'\n  | 'RESERVED'\n  | 'TOO_BIG'\n  | 'TOO_SMALL'\n  | 'OUTSIDE_EXPERIENCE_TABLE_LIST'\n  | 'TABLE_NOT_IN_AREA';\n\nexport enum ExperienceConflictType {\n  /** Undefined reservation location conflict type. */\n  UNKNOWN = 'UNKNOWN',\n  /** The number of guests exceeds the allowed limit. */\n  MAXIMUM_NUMBER_OF_GUESTS = 'MAXIMUM_NUMBER_OF_GUESTS',\n}\n\n/** @enumType */\nexport type ExperienceConflictTypeWithLiterals =\n  | ExperienceConflictType\n  | 'UNKNOWN'\n  | 'MAXIMUM_NUMBER_OF_GUESTS';\n\nexport enum TimeSlotAvailabilityType {\n  STANDARD = 'STANDARD',\n  EXPERIENCE = 'EXPERIENCE',\n}\n\n/** @enumType */\nexport type TimeSlotAvailabilityTypeWithLiterals =\n  | TimeSlotAvailabilityType\n  | 'STANDARD'\n  | 'EXPERIENCE';\n\nexport interface StandardOptions {\n  /**\n   * Table combinations and their availability information.\n   * @maxSize 2000\n   */\n  tableCombinationAvailabilities?: TableCombinationAvailability[];\n  /**\n   * Requested table combinations.\n   * @maxSize 2000\n   */\n  requestedTableCombinations?: TableCombinationAvailability[];\n  /**\n   * Reservation location conflicts that would occur by making a reservation for the specified party size in the specified time slot.\n   * @maxSize 3\n   */\n  reservationLocationConflicts?: ReservationLocationConflictTypeWithLiterals[];\n  /**\n   * Experience blocking conflicts that would occur by making a standard reservation when an experience is active.\n   * @maxSize 3\n   */\n  experienceBlockingConflicts?: TypeWithLiterals[];\n}\n\nexport interface ExperienceOptions {\n  /**\n   * Table combinations and their availability information.\n   * @maxSize 2000\n   */\n  tableCombinationAvailabilities?: ExperienceTableCombinationAvailability[];\n  /**\n   * Requested table combinations.\n   * @maxSize 2000\n   */\n  requestedTableCombinations?: ExperienceTableCombinationAvailability[];\n  /**\n   * Experience availability conflicts that would occur by making a reservation for the specified party size in the specified time slot.\n   * @maxSize 5\n   */\n  experienceConflicts?: ExperienceConflictTypeWithLiterals[];\n}\n\nexport interface Table {\n  /** @format GUID */\n  id?: string;\n  /**\n   * Table conflicts.\n   * @maxSize 1000\n   */\n  tableConflicts?: TableConflict[];\n}\n\nexport interface TableConflict {\n  /** Conflict type. */\n  type?: TableConflictTypeWithLiterals;\n}\n\nexport enum TableConflictType {\n  UNKNOWN = 'UNKNOWN',\n  TABLE_RESERVED = 'TABLE_RESERVED',\n  TABLE_TOO_BIG = 'TABLE_TOO_BIG',\n  TABLE_TOO_SMALL = 'TABLE_TOO_SMALL',\n  OFFLINE_ONLY = 'OFFLINE_ONLY',\n  RESERVED_FOR_EXPERIENCE = 'RESERVED_FOR_EXPERIENCE',\n  TABLE_NOT_IN_AREA = 'TABLE_NOT_IN_AREA',\n}\n\n/** @enumType */\nexport type TableConflictTypeWithLiterals =\n  | TableConflictType\n  | 'UNKNOWN'\n  | 'TABLE_RESERVED'\n  | 'TABLE_TOO_BIG'\n  | 'TABLE_TOO_SMALL'\n  | 'OFFLINE_ONLY'\n  | 'RESERVED_FOR_EXPERIENCE'\n  | 'TABLE_NOT_IN_AREA';\n\nexport interface TableCombination {\n  /** @format GUID */\n  tableIds?: string[];\n  /** @maxSize 2 */\n  tableCombinationConflicts?: TableCombinationConflict[];\n}\n\nexport interface TableCombinationConflict {\n  /** Conflict type. */\n  type?: TableCombinationConflictTypeWithLiterals;\n}\n\nexport interface ReservationLocationConflict {\n  /** Reservation location conflict type. */\n  type?: ReservationLocationConflictTypeWithLiterals;\n}\n\nexport interface TableReservedConflict {\n  /**\n   * Table id.\n   * @format GUID\n   */\n  tableId?: string;\n  /**\n   * List of reservation ids.\n   * @format GUID\n   * @maxSize 1000\n   */\n  reservationIds?: string[];\n}\n\nexport interface TimeSlotAvailability extends TimeSlotAvailabilityOptionsOneOf {\n  /** Response for standard reservation. */\n  standardOptions?: StandardOptions;\n  /** Response for a reservation that contains experience. */\n  experienceOptions?: ExperienceOptions;\n  /** Type of availability. */\n  timeSlotAvailabilityType?: TimeSlotAvailabilityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TimeSlotAvailabilityOptionsOneOf {\n  /** Response for standard reservation. */\n  standardOptions?: StandardOptions;\n  /** Response for a reservation that contains experience. */\n  experienceOptions?: ExperienceOptions;\n}\n\nexport interface CheckTimeSlotRequest {\n  /**\n   * ID of the reservation location for which to check the time slot.\n   * @format GUID\n   */\n  reservationLocationId: string;\n  /** Date and time of the time slot to check. */\n  date: Date | null;\n  /**\n   * Duration of the time slot in minutes .\n   *\n   * Min: `5`\n   * @min 5\n   * @max 1000\n   */\n  duration: number | null;\n  /**\n   * Party size to check the restaurant's availability for.\n   * @min 1\n   * @max 10000\n   */\n  partySize: number | null;\n  /**\n   * ID of a reservation to ignore during the check.\n   *\n   * Use this when rescheduling a reservation to exclude it in its current state from the availability calculations.\n   * @format GUID\n   */\n  excludeReservationId?: string | null;\n}\n\nexport interface CheckTimeSlotResponse {\n  /**\n   * Table combinations and their availability information.\n   * @deprecated\n   * @replacedBy time_slot_availability\n   * @targetRemovalDate 2025-12-05\n   */\n  tableCombinationAvailabilities?: TableCombinationAvailability[];\n  /**\n   * Reservation location conflicts that would occur by making a reservation for the specified party size in the specified time slot.\n   * @deprecated\n   * @replacedBy time_slot_availability\n   * @targetRemovalDate 2025-12-05\n   */\n  reservationLocationConflicts?: ReservationLocationConflictTypeWithLiterals[];\n  /** Time slot availability */\n  timeSlotAvailability?: V1TimeSlotAvailability;\n}\n\nexport interface V1TimeSlotAvailability\n  extends V1TimeSlotAvailabilityOptionsOneOf {\n  /** Response for standard reservation. */\n  standardOptions?: TimeSlotAvailabilityStandardOptions;\n  /** Response for a reservation that contains experience. */\n  experienceOptions?: TimeSlotAvailabilityExperienceOptions;\n  /** Type of availability. */\n  timeSlotAvailabilityType?: TimeSlotAvailabilityTimeSlotAvailabilityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface V1TimeSlotAvailabilityOptionsOneOf {\n  /** Response for standard reservation. */\n  standardOptions?: TimeSlotAvailabilityStandardOptions;\n  /** Response for a reservation that contains experience. */\n  experienceOptions?: TimeSlotAvailabilityExperienceOptions;\n}\n\nexport enum TimeSlotAvailabilityTimeSlotAvailabilityType {\n  STANDARD = 'STANDARD',\n  EXPERIENCE = 'EXPERIENCE',\n}\n\n/** @enumType */\nexport type TimeSlotAvailabilityTimeSlotAvailabilityTypeWithLiterals =\n  | TimeSlotAvailabilityTimeSlotAvailabilityType\n  | 'STANDARD'\n  | 'EXPERIENCE';\n\nexport interface TimeSlotAvailabilityStandardOptions {\n  /**\n   * Table combinations and their availability information.\n   * @maxSize 2000\n   */\n  tableCombinationAvailabilities?: TableCombinationAvailability[];\n  /**\n   * Reservation location conflicts that would occur by making a reservation for the specified party size in the specified time slot.\n   * @maxSize 3\n   */\n  reservationLocationConflicts?: ReservationLocationConflictTypeWithLiterals[];\n  /**\n   * Experience blocking conflicts that would occur by making a standard reservation when an experience is active.\n   * @maxSize 3\n   */\n  experienceBlockingConflicts?: TypeWithLiterals[];\n}\n\nexport interface TimeSlotAvailabilityExperienceOptions {\n  /**\n   * Table combinations and their availability information.\n   * @maxSize 2000\n   */\n  tableCombinationAvailabilities?: ExperienceTableCombinationAvailability[];\n  /**\n   * Experience availability conflicts that would occur by making a reservation for the specified party size in the specified time slot.\n   * @maxSize 5\n   */\n  experienceConflicts?: ExperienceConflictTypeWithLiterals[];\n}\n\nexport interface GetScheduledTimeSlotsRequest {\n  /**\n   * ID of the reservation location for which to retrieve time slots.\n   * @format GUID\n   */\n  reservationLocationId: string;\n  /** Time range from which to retrieve time slots. */\n  timeRange: TimeRange;\n  /**\n   * Size of the party that needs to be seated during this time slot.\n   *\n   * Min: `1`\n   * @min 1\n   * @max 10000\n   */\n  partySize: number | null;\n}\n\nexport interface TimeRange {\n  /** Date and time from which to retrieve time slots in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#coordinated_Universal_Time_(UTC)) format. */\n  startDate?: Date | null;\n  /** Date and time to which to retrieve time slots in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#coordinated_Universal_Time_(UTC)) format. */\n  endDate?: Date | null;\n}\n\nexport interface GetScheduledTimeSlotsResponse {\n  /**\n   * A list of time slots and their availability according to the specified party size.\n   * @maxSize 100\n   */\n  timeSlots?: TimeSlot[];\n}\n","import * as ambassadorWixTableReservationsV1TimeSlot from './table-reservations-v1-time-slot-time-slots.http.js';\nimport * as ambassadorWixTableReservationsV1TimeSlotTypes from './table-reservations-v1-time-slot-time-slots.types.js';\nimport * as ambassadorWixTableReservationsV1TimeSlotUniversalTypes from './table-reservations-v1-time-slot-time-slots.universal.js';\n\nexport type __PublicMethodMetaInfo<\n  K = string,\n  M = unknown,\n  T = unknown,\n  S = unknown,\n  Q = unknown,\n  R = unknown\n> = {\n  getUrl: (context: any) => string;\n  httpMethod: K;\n  path: string;\n  pathParams: M;\n  __requestType: T;\n  __originalRequestType: S;\n  __responseType: Q;\n  __originalResponseType: R;\n};\n\nexport function getTimeSlots(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixTableReservationsV1TimeSlotUniversalTypes.GetTimeSlotsRequest,\n  ambassadorWixTableReservationsV1TimeSlotTypes.GetTimeSlotsRequest,\n  ambassadorWixTableReservationsV1TimeSlotUniversalTypes.GetTimeSlotsResponse,\n  ambassadorWixTableReservationsV1TimeSlotTypes.GetTimeSlotsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixTableReservationsV1TimeSlot.getTimeSlots(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/time-slots',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function checkTimeSlot(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixTableReservationsV1TimeSlotUniversalTypes.CheckTimeSlotRequest,\n  ambassadorWixTableReservationsV1TimeSlotTypes.CheckTimeSlotRequest,\n  ambassadorWixTableReservationsV1TimeSlotUniversalTypes.CheckTimeSlotResponse,\n  ambassadorWixTableReservationsV1TimeSlotTypes.CheckTimeSlotResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixTableReservationsV1TimeSlot.checkTimeSlot(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/check-time-slot',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function getScheduledTimeSlots(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixTableReservationsV1TimeSlotUniversalTypes.GetScheduledTimeSlotsRequest,\n  ambassadorWixTableReservationsV1TimeSlotTypes.GetScheduledTimeSlotsRequest,\n  ambassadorWixTableReservationsV1TimeSlotUniversalTypes.GetScheduledTimeSlotsResponse,\n  ambassadorWixTableReservationsV1TimeSlotTypes.GetScheduledTimeSlotsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixTableReservationsV1TimeSlot.getScheduledTimeSlots(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/scheduled-time-slots',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport {\n  TimeSlot as TimeSlotOriginal,\n  TimeSlotTableCombination as TimeSlotTableCombinationOriginal,\n  Status as StatusOriginal,\n  StatusWithLiterals as StatusWithLiteralsOriginal,\n  MaybeTableCombinations as MaybeTableCombinationsOriginal,\n  GetTimeSlotsRequest as GetTimeSlotsRequestOriginal,\n  GetTimeSlotsResponse as GetTimeSlotsResponseOriginal,\n  CheckReservationDetailsRequest as CheckReservationDetailsRequestOriginal,\n  MaybeTableIds as MaybeTableIdsOriginal,\n  CheckReservationDetailsResponse as CheckReservationDetailsResponseOriginal,\n  TableCombinationAvailability as TableCombinationAvailabilityOriginal,\n  TableCombinationConflictType as TableCombinationConflictTypeOriginal,\n  TableCombinationConflictTypeWithLiterals as TableCombinationConflictTypeWithLiteralsOriginal,\n  ReservationLocationConflictType as ReservationLocationConflictTypeOriginal,\n  ReservationLocationConflictTypeWithLiterals as ReservationLocationConflictTypeWithLiteralsOriginal,\n  Type as TypeOriginal,\n  TypeWithLiterals as TypeWithLiteralsOriginal,\n  ExperienceTableCombinationAvailability as ExperienceTableCombinationAvailabilityOriginal,\n  ExperienceTableCombinationConflictType as ExperienceTableCombinationConflictTypeOriginal,\n  ExperienceTableCombinationConflictTypeWithLiterals as ExperienceTableCombinationConflictTypeWithLiteralsOriginal,\n  ExperienceConflictType as ExperienceConflictTypeOriginal,\n  ExperienceConflictTypeWithLiterals as ExperienceConflictTypeWithLiteralsOriginal,\n  TimeSlotAvailabilityType as TimeSlotAvailabilityTypeOriginal,\n  TimeSlotAvailabilityTypeWithLiterals as TimeSlotAvailabilityTypeWithLiteralsOriginal,\n  StandardOptions as StandardOptionsOriginal,\n  ExperienceOptions as ExperienceOptionsOriginal,\n  Table as TableOriginal,\n  TableConflict as TableConflictOriginal,\n  TableConflictType as TableConflictTypeOriginal,\n  TableConflictTypeWithLiterals as TableConflictTypeWithLiteralsOriginal,\n  TableCombination as TableCombinationOriginal,\n  TableCombinationConflict as TableCombinationConflictOriginal,\n  ReservationLocationConflict as ReservationLocationConflictOriginal,\n  TableReservedConflict as TableReservedConflictOriginal,\n  TimeSlotAvailability as TimeSlotAvailabilityOriginal,\n  TimeSlotAvailabilityOptionsOneOf as TimeSlotAvailabilityOptionsOneOfOriginal,\n  CheckTimeSlotRequest as CheckTimeSlotRequestOriginal,\n  CheckTimeSlotResponse as CheckTimeSlotResponseOriginal,\n  V1TimeSlotAvailability as V1TimeSlotAvailabilityOriginal,\n  V1TimeSlotAvailabilityOptionsOneOf as V1TimeSlotAvailabilityOptionsOneOfOriginal,\n  TimeSlotAvailabilityTimeSlotAvailabilityType as TimeSlotAvailabilityTimeSlotAvailabilityTypeOriginal,\n  TimeSlotAvailabilityTimeSlotAvailabilityTypeWithLiterals as TimeSlotAvailabilityTimeSlotAvailabilityTypeWithLiteralsOriginal,\n  TimeSlotAvailabilityStandardOptions as TimeSlotAvailabilityStandardOptionsOriginal,\n  TimeSlotAvailabilityExperienceOptions as TimeSlotAvailabilityExperienceOptionsOriginal,\n  GetScheduledTimeSlotsRequest as GetScheduledTimeSlotsRequestOriginal,\n  TimeRange as TimeRangeOriginal,\n  GetScheduledTimeSlotsResponse as GetScheduledTimeSlotsResponseOriginal,\n} from './table-reservations-v1-time-slot-time-slots.types.js';\n"],"mappings":";AAAA,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,yDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;A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AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,yBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACqC,sBAAsB,OAAO;AAExE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","Status","TableCombinationConflictType","ReservationLocationConflictType","Type","ExperienceTableCombinationConflictType","ExperienceConflictType","TimeSlotAvailabilityType","TableConflictType","TimeSlotAvailabilityTimeSlotAvailabilityType","getTimeSlots","checkTimeSlot","getScheduledTimeSlots"]}