import { RequestOptionsFactory } from '@wix/sdk-types'; /** * Creates a new resource. * * A new events schedule is automatically created specific to this resource. This schedule will contain information * on when the resource is booked in order to prevent double bookings. * See [Schedules API](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) for more information. * * - If the request does not include the field `locationOptions`, then the service will create this field and set * `availableInAllLocations` in this structure to `true`. * - If the request includes one or more business location IDs in the `locationOptions.specificLocationOptions.businessLocations` * field, then the field `locationOptions.specificLocationOptions.availableInBusinessLocations` must be set * to `true`. */ export declare function createResource(payload: object): RequestOptionsFactory; /** Creates multiple resources. */ export declare function bulkCreateResources(payload: object): RequestOptionsFactory; /** Retrieves a resource by ID. */ export declare function getResource(payload: object): RequestOptionsFactory; /** * Updates a resource. * * Each time the resource is updated, `revision` increments by 1. You must include the current revision of the resource when updating it. * This ensures you're working with the latest service information and prevents unintended overwrites. */ export declare function updateResource(payload: object): RequestOptionsFactory; /** * Deletes a resource. * * Also cancels the associated events schedule and any working hours schedule that isn’t shared among multiple resources. */ export declare function deleteResource(payload: object): RequestOptionsFactory; /** Deletes multiple resources. */ export declare function bulkDeleteResources(payload: object): RequestOptionsFactory; /** * Retrieves a list of resources matching the provided search criteria. * * The search endpoints allow to perform advanced search including partial text search, exact match, and more. * The endpoint also allows to aggregate resources by type, name, app id, management type, management type and location options. */ export declare function searchResources(payload: object): RequestOptionsFactory; /** * Creates a query to retrieve a list of resources. * * The `queryResources()` function builds a query to retrieve a list of resources and returns a `ResourcesQueryBuilder` object. * * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/resources-query-builder/find) function. * * You can refine the query by chaining `ResourcesQueryBuilder` functions onto the query. `ResourcesQueryBuilder` functions enable you to sort, filter, and control the results that `queryResources()` returns. * * `queryResources()` runs with the following `ResourcesQueryBuilder` default that you can override: * * + `limit` is `50`. * + Sorted by `id` in ascending order. * * The functions that are chained to `queryResources()` are applied in the order they are called. For example, if you apply `ascending("typeId")` and then `ascending("id")`, the results are sorted first by the `"typeId"`, and then, if there are multiple results with the same `"typeId"`, the items are sorted by `"id"`. * * The following `ResourcesQueryBuilder` functions are supported for the `queryResources()` function. For a full description of the resource object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/resources-query-result/items) property in `ResourcesQueryResult`. */ export declare function queryResources(payload: object): RequestOptionsFactory; /** * Counts resources according to given criteria. * * Use [WQL filter](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section) to define the criteria. */ export declare function countResources(payload: object): RequestOptionsFactory;