import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { Location, CreateLocationApplicationErrors, BulkCreateLocationResponse, ListLocationsOptions, ListLocationsResponse, UpdateLocation, UpdateLocationApplicationErrors, SetDefaultLocationResponse, SetDefaultLocationApplicationErrors, ArchiveLocationResponse, ArchiveLocationApplicationErrors, LocationTypeWithLiterals, AddTypeToLocationResponse, AddTypeToLocationApplicationErrors, RemoveTypeFromLocationResponse, RemoveTypeFromLocationApplicationErrors, AddLocationTypeResponse, AddLocationTypeApplicationErrors, RemoveLocationTypeResponse, RemoveLocationTypeApplicationErrors, LocationArchiveStatusEnvelope, LocationCreatedEnvelope, LocationSetDefaultLocationEnvelope, LocationUpdatedEnvelope, LocationQuery, QueryLocationsOptions, typedQueryLocations, LocationsQueryBuilder } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, AddLocationTypeRequest, AddTypeToLocationRequest, Address, AddressLocation, ArchiveLocation, ArchiveLocationRequest, BaseEventMetadata, BulkCreateLocationRequest, BulkUpdateLocationRequest, BulkUpdateLocationResponse, BusinessSchedule, CommonQueryWithEntityContext, CreateLocationRequest, CreateLocationResponse, DayOfWeek, DayOfWeekWithLiterals, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, FailedCreateLocation, FailedUpdateLocation, GetLocationRequest, GetLocationResponse, GetOrCreateDefaultLocationRequest, GetOrCreateDefaultLocationResponse, IdentificationData, IdentificationDataIdOneOf, ListLocationsRequest, LocationQuerySpec, LocationStatus, LocationStatusWithLiterals, LocationType, LocationsQueryResult, MessageEnvelope, MetasiteLocationsRequest, MetasiteLocationsResponse, Paging, PagingMetadata, Query, QueryLocationsRequest, QueryLocationsResponse, RemoveLocationTypeRequest, RemoveTypeFromLocationRequest, RestoreInfo, SetDefaultLocation, SetDefaultLocationRequest, SortOrder, SortOrderWithLiterals, Sorting, SpecialHourPeriod, StreetAddress, TimePeriod, UnarchiveLocationRequest, UnarchiveLocationResponse, UpdateLocationRequest, UpdateLocationResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js'; declare function createLocation$1(httpClient: HttpClient): CreateLocationSignature; interface CreateLocationSignature { /** * Creates a location. * @param - Location to create. * @returns Created location. */ (location: NonNullablePaths): Promise & { __applicationErrorsType?: CreateLocationApplicationErrors; }>; } /** @internal */ declare function bulkCreateLocation$1(httpClient: HttpClient): BulkCreateLocationSignature; interface BulkCreateLocationSignature { /** * Creates locations in bulk. * @param - Locations to create. */ (locations: Location[]): Promise>; } declare function getLocation$1(httpClient: HttpClient): GetLocationSignature; interface GetLocationSignature { /** * Retrieves a location. * @param - ID of the location to retrieve. * @returns Retrieved location. */ (_id: string): Promise>; } declare function listLocations$1(httpClient: HttpClient): ListLocationsSignature; interface ListLocationsSignature { /** * Retrieves locations, given the specified filters, sorting, and paging. * @param - Options to use when retrieving a list of locations. */ (options?: ListLocationsOptions): Promise>; } declare function updateLocation$1(httpClient: HttpClient): UpdateLocationSignature; interface UpdateLocationSignature { /** * Overrides an existing location. * * * > **Note:** Currently, it isn't possible to partially update a location. Therefore, you'll need to pass the full location object in the body of the call. * @param - Location ID. * @param - Updated location details. * @returns Updated location. */ (_id: string, location: NonNullablePaths): Promise & { __applicationErrorsType?: UpdateLocationApplicationErrors; }>; } declare function setDefaultLocation$1(httpClient: HttpClient): SetDefaultLocationSignature; interface SetDefaultLocationSignature { /** * Sets a new default location. * * * > **Notes:** * > + There can only be one default location per site. * > + The default location can't be archived. * @param - ID of the location to set as the default location. */ (_id: string): Promise & { __applicationErrorsType?: SetDefaultLocationApplicationErrors; }>; } declare function archiveLocation$1(httpClient: HttpClient): ArchiveLocationSignature; interface ArchiveLocationSignature { /** * Archives a location. * * * > **Notes:** * > + Changes the `archived` boolean of a location to `true`. * > + You can't change a location's `status` using this endpoint. * > + Archived locations can't be updated. * > + The `default` location can't be archived. * @param - ID of the location to archive. */ (_id: string): Promise & { __applicationErrorsType?: ArchiveLocationApplicationErrors; }>; } declare function addTypeToLocation$1(httpClient: HttpClient): AddTypeToLocationSignature; interface AddTypeToLocationSignature { /** * Adds a location type to the specified location. * @param - ID of the location where the type will be added. * @param - Location type to add. */ (_id: string, locationType: LocationTypeWithLiterals): Promise & { __applicationErrorsType?: AddTypeToLocationApplicationErrors; }>; } declare function removeTypeFromLocation$1(httpClient: HttpClient): RemoveTypeFromLocationSignature; interface RemoveTypeFromLocationSignature { /** * Removes a location type from the specified location. * @param - ID of the location where the type will be removed. * @param - Location type to remove. */ (_id: string, locationType: LocationTypeWithLiterals): Promise & { __applicationErrorsType?: RemoveTypeFromLocationApplicationErrors; }>; } declare function addLocationType$1(httpClient: HttpClient): AddLocationTypeSignature; interface AddLocationTypeSignature { /** * Add location type to a specific location. * * > **Notes:** * > + Add one the location type (UNKNOWN, BRANCH, OFFICES, RECEPTION, HEADQUARTERS, INVENTORY) to a specific location by id. * > + This EP is deprecated - Please use AddTypeFromLocation instead. * @param - Location id to add type * @deprecated */ (_id: string, locationType: LocationTypeWithLiterals): Promise & { __applicationErrorsType?: AddLocationTypeApplicationErrors; }>; } declare function removeLocationType$1(httpClient: HttpClient): RemoveLocationTypeSignature; interface RemoveLocationTypeSignature { /** * Remove location type from a specific location. * * > **Notes:** * > + Remove location type (UNKNOWN, BRANCH, OFFICES, RECEPTION, HEADQUARTERS, INVENTORY) from a specific location by id. * > + This EP is deprecated - Please use RemoveTypeFromLocation instead. * @param - Location id to add type * @deprecated */ (_id: string, locationType: LocationTypeWithLiterals): Promise & { __applicationErrorsType?: RemoveLocationTypeApplicationErrors; }>; } declare const onLocationArchiveStatus$1: EventDefinition; declare const onLocationCreated$1: EventDefinition; declare const onLocationSetDefaultLocation$1: EventDefinition; declare const onLocationUpdated$1: EventDefinition; declare function customQueryLocations(httpClient: HttpClient): { (query: LocationQuery, options?: QueryLocationsOptions): ReturnType; (options?: QueryLocationsOptions): LocationsQueryBuilder; }; declare const createLocation: MaybeContext & typeof createLocation$1>; /** @internal */ declare const bulkCreateLocation: MaybeContext & typeof bulkCreateLocation$1>; declare const getLocation: MaybeContext & typeof getLocation$1>; declare const listLocations: MaybeContext & typeof listLocations$1>; declare const updateLocation: MaybeContext & typeof updateLocation$1>; declare const setDefaultLocation: MaybeContext & typeof setDefaultLocation$1>; declare const archiveLocation: MaybeContext & typeof archiveLocation$1>; declare const addTypeToLocation: MaybeContext & typeof addTypeToLocation$1>; declare const removeTypeFromLocation: MaybeContext & typeof removeTypeFromLocation$1>; declare const addLocationType: MaybeContext & typeof addLocationType$1>; declare const removeLocationType: MaybeContext & typeof removeLocationType$1>; declare const queryLocations: MaybeContext & typeof customQueryLocations>; /** * Triggered when a location is archived. */ declare const onLocationArchiveStatus: BuildEventDefinition & typeof onLocationArchiveStatus$1; /** * Triggered when a location is created. */ declare const onLocationCreated: BuildEventDefinition & typeof onLocationCreated$1; /** * Triggered when a location is set as default. */ declare const onLocationSetDefaultLocation: BuildEventDefinition & typeof onLocationSetDefaultLocation$1; /** */ declare const onLocationUpdated: BuildEventDefinition & typeof onLocationUpdated$1; export { AddLocationTypeApplicationErrors, AddLocationTypeResponse, AddTypeToLocationApplicationErrors, AddTypeToLocationResponse, ArchiveLocationApplicationErrors, ArchiveLocationResponse, BulkCreateLocationResponse, CreateLocationApplicationErrors, ListLocationsOptions, ListLocationsResponse, Location, LocationArchiveStatusEnvelope, LocationCreatedEnvelope, LocationQuery, LocationSetDefaultLocationEnvelope, LocationTypeWithLiterals, LocationUpdatedEnvelope, LocationsQueryBuilder, QueryLocationsOptions, RemoveLocationTypeApplicationErrors, RemoveLocationTypeResponse, RemoveTypeFromLocationApplicationErrors, RemoveTypeFromLocationResponse, SetDefaultLocationApplicationErrors, SetDefaultLocationResponse, UpdateLocation, UpdateLocationApplicationErrors, addLocationType, addTypeToLocation, archiveLocation, bulkCreateLocation, createLocation, getLocation, listLocations, onLocationArchiveStatus, onLocationCreated, onLocationSetDefaultLocation, onLocationUpdated, queryLocations, removeLocationType, removeTypeFromLocation, setDefaultLocation, updateLocation };