import { GetRestaurantLocationRequest as GetRestaurantLocationRequest$1, GetRestaurantLocationResponse as GetRestaurantLocationResponse$1, ListRestaurantLocationsRequest as ListRestaurantLocationsRequest$1, ListRestaurantLocationsResponse as ListRestaurantLocationsResponse$1 } from './index.typings.mjs'; import '@wix/sdk-types'; /** RestaurantLocation is the main entity of RestaurantLocations that can be used for lorem ipsum dolor */ interface RestaurantLocation { /** * Restaurant Location ID * @format GUID * @immutable */ id?: string | null; /** * Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision * @immutable */ revision?: string | null; /** * Whether this restaurant location is active. * @readonly */ active?: boolean; /** * Restaurant location - location * @readonly */ location?: Location; } interface Location { /** * The associated location id * @format GUID */ locationId?: string | null; /** * Whether this is the default restaurant location. There can only be one default restaurant location per site. * @readonly */ default?: boolean; /** * Restaurant location address * @readonly */ address?: Address; /** * Restaurant location contact details * @readonly */ contactDetails?: ContactDetails; /** * Restaurant location timeZone * @readonly */ timeZone?: string; /** * Restaurant location locale * @readonly */ locale?: Locale; /** * Restaurant location name * @readonly */ name?: string | null; /** * Restaurant location currency * @format CURRENCY * @readonly */ currency?: string | null; /** * Restaurant location schedule. Array of weekly recurring time periods when the location is open for restaurant location. Limited to 100 time periods. * @readonly */ availability?: Availability; } /** Physical address */ interface Address extends AddressStreetOneOf { /** Street name and number. */ streetAddress?: StreetAddress; /** Main address line, usually street and number as free text. */ addressLine?: string | null; /** * Country code. * @format COUNTRY */ country?: string | null; /** Subdivision shorthand. Usually, a short code (2 or 3 letters) that represents a state, region, prefecture, or province. e.g. NY */ subdivision?: string | null; /** * Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2), e.g. US-NY * @internal * @maxLength 20 */ subdivisionIso31662?: string | null; /** City name. */ city?: string | null; /** Zip/postal code. */ postalCode?: string | null; /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */ addressLine2?: string | null; /** * A string containing the full address of this location. * @internal */ formattedAddress?: string | null; /** * Free text to help find the address. * @internal */ hint?: string | null; /** * Coordinates of the physical address. * @internal */ geocode?: AddressLocation; /** * Country full name. * @internal */ countryFullname?: string | null; /** * Subdivision full name. * @internal */ subdivisionFullname?: string | null; /** * Multi-level subdivisions from top to bottom. * @internal * @maxSize 6 */ subdivisions?: Subdivision[]; } /** @oneof */ interface AddressStreetOneOf { /** Street name and number. */ streetAddress?: StreetAddress; /** Main address line, usually street and number as free text. */ addressLine?: string | null; } interface StreetAddress { /** Street number. */ number?: string; /** Street name. */ name?: string; /** * Apartment number. * @internal */ apt?: string; /** * Optional address line 1 * @internal */ formattedAddressLine?: string | null; } interface AddressLocation { /** Address latitude. */ latitude?: number | null; /** Address longitude. */ longitude?: number | null; } interface Subdivision { /** Short subdivision code. */ code?: string; /** Subdivision full name. */ name?: string; /** * Subdivision level * @internal */ type?: SubdivisionTypeWithLiterals; /** * Free text description of subdivision type. * @internal */ typeInfo?: string | null; /** * Standard organizations details (e.g. ISO). * @internal */ standardDetails?: StandardDetails; } declare enum SubdivisionType { UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE", /** State */ ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1", /** County */ ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2", /** City/town */ ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3", /** Neighborhood/quarter */ ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4", /** Street/block */ ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5", /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */ COUNTRY = "COUNTRY" } /** @enumType */ type SubdivisionTypeWithLiterals = SubdivisionType | 'UNKNOWN_SUBDIVISION_TYPE' | 'ADMINISTRATIVE_AREA_LEVEL_1' | 'ADMINISTRATIVE_AREA_LEVEL_2' | 'ADMINISTRATIVE_AREA_LEVEL_3' | 'ADMINISTRATIVE_AREA_LEVEL_4' | 'ADMINISTRATIVE_AREA_LEVEL_5' | 'COUNTRY'; /** Subdivision Concordance values */ interface StandardDetails { /** * subdivision iso-3166-2 code according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). e.g. US-NY, GB-SCT, NO-30 * @maxLength 20 */ iso31662?: string | null; } interface ContactDetails { /** * Restaurant location email * @format EMAIL */ email?: string | null; /** * Restaurant location phone * @format PHONE */ phone?: string | null; /** * Restaurant location fax * @format PHONE */ fax?: string | null; } interface Locale { /** * Locale in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. * Typically, this is a lowercase 2-letter language code, * followed by a hyphen, followed by an uppercase 2-letter country code. * For example, `en-US` for U.S. English, and `de-DE` for Germany German. */ languageCode?: string | null; /** 2-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 | null; } interface Availability { /** * Weekly recurring time periods when the entity is available. Limited to 100 time periods. * @maxSize 100 */ periods?: TimePeriod[]; /** * Exceptions to the entity's regular availability. The entity can be available or not available during the special hour period. * @maxSize 100 */ specialHourPeriods?: SpecialHourPeriod[]; } /** Weekly recurring time periods when the entity 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.orgwikiISO_8601) extended format. Valid values are 00:00-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.orgwikiISO_8601) extended format. Valid values are 00:00-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; } declare enum DayOfWeek { MON = "MON", TUE = "TUE", WED = "WED", THU = "THU", FRI = "FRI", SAT = "SAT", SUN = "SUN" } /** @enumType */ type DayOfWeekWithLiterals = DayOfWeek | 'MON' | 'TUE' | 'WED' | 'THU' | 'FRI' | 'SAT' | 'SUN'; /** 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.orgwikiISO_8601) format and [Coordinated Universal Time (UTC)](https:en.wikipedia.orgwikiCoordinated_Universal_Time). */ startDate?: string; /** End date and time of the exception in [ISO 8601](https:en.wikipedia.orgwikiISO_8601) format and [Coordinated Universal Time (UTC)](https:en.wikipedia.orgwikiCoordinated_Universal_Time). */ endDate?: string; /** Whether the item is available during the exception. Defaults to `false`. */ available?: boolean; /** Name of the special hour period. In the Business Manager the special hour period is called event. */ eventName?: string | null; } interface GetRestaurantLocationRequest { /** * Id of the Restaurant location to retrieve * @format GUID */ restaurantLocationId: string; } interface GetRestaurantLocationResponse { /** The retrieved RestaurantLocation */ restaurantLocation?: RestaurantLocation; } interface ListRestaurantLocationsRequest { /** * location ids * @format GUID */ locationIds?: string[] | null; /** Includes archived restaurant locations. Default is false */ includeArchived?: boolean; /** default restaurant location. Default is false */ default?: boolean; } interface ListRestaurantLocationsResponse { /** The retrieved RestaurantLocation */ restaurantLocations?: RestaurantLocation[]; } type __PublicMethodMetaInfo = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; declare function getRestaurantLocation(): __PublicMethodMetaInfo<'GET', { restaurantLocationId: string; }, GetRestaurantLocationRequest$1, GetRestaurantLocationRequest, GetRestaurantLocationResponse$1, GetRestaurantLocationResponse>; declare function listRestaurantLocations(): __PublicMethodMetaInfo<'GET', {}, ListRestaurantLocationsRequest$1, ListRestaurantLocationsRequest, ListRestaurantLocationsResponse$1, ListRestaurantLocationsResponse>; export { type AddressLocation as AddressLocationOriginal, type Address as AddressOriginal, type AddressStreetOneOf as AddressStreetOneOfOriginal, type Availability as AvailabilityOriginal, type ContactDetails as ContactDetailsOriginal, DayOfWeek as DayOfWeekOriginal, type DayOfWeekWithLiterals as DayOfWeekWithLiteralsOriginal, type GetRestaurantLocationRequest as GetRestaurantLocationRequestOriginal, type GetRestaurantLocationResponse as GetRestaurantLocationResponseOriginal, type ListRestaurantLocationsRequest as ListRestaurantLocationsRequestOriginal, type ListRestaurantLocationsResponse as ListRestaurantLocationsResponseOriginal, type Locale as LocaleOriginal, type Location as LocationOriginal, type RestaurantLocation as RestaurantLocationOriginal, type SpecialHourPeriod as SpecialHourPeriodOriginal, type StandardDetails as StandardDetailsOriginal, type StreetAddress as StreetAddressOriginal, type Subdivision as SubdivisionOriginal, SubdivisionType as SubdivisionTypeOriginal, type SubdivisionTypeWithLiterals as SubdivisionTypeWithLiteralsOriginal, type TimePeriod as TimePeriodOriginal, type __PublicMethodMetaInfo, getRestaurantLocation, listRestaurantLocations };