import { EventDefinition, HttpClient } from '@wix/sdk-types'; import { BulkCreateResourcesOptions, BulkCreateResourcesResponse, BulkCreateResourcesResponseNonNullableFields, BulkDeleteResourcesResponse, BulkDeleteResourcesResponseNonNullableFields, CountResourcesOptions, CountResourcesResponse, CountResourcesResponseNonNullableFields, Resource, ResourceCreatedEnvelope, ResourceDeletedEnvelope, ResourceNonNullableFields, ResourceUpdatedEnvelope, ResourcesQueryBuilder, SearchResourcesOptions, SearchResourcesResponse, SearchResourcesResponseNonNullableFields, UpdateResource } from './bookings-resources-v2-resource-resources.universal.js'; export declare const __metadata: { PACKAGE_NAME: string; }; export declare function createResource(httpClient: HttpClient): CreateResourceSignature; interface CreateResourceSignature { /** * 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`. * @param - Resource to create. * @returns The created resource. */ (resource: Resource): Promise; } export declare function bulkCreateResources(httpClient: HttpClient): BulkCreateResourcesSignature; interface BulkCreateResourcesSignature { /** * Creates multiple resources. * @param - Resources to create. */ (resources: Resource[], options?: BulkCreateResourcesOptions | undefined): Promise; } export declare function getResource(httpClient: HttpClient): GetResourceSignature; interface GetResourceSignature { /** * Retrieves a resource by ID. * @param - ID of the resource to retrieve. * @returns The retrieved resource. */ (resourceId: string): Promise; } export declare function updateResource(httpClient: HttpClient): UpdateResourceSignature; interface UpdateResourceSignature { /** * 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. * @param - Resource ID. * @returns The updated resource. */ (_id: string | null, resource: UpdateResource): Promise; } export declare function deleteResource(httpClient: HttpClient): DeleteResourceSignature; interface DeleteResourceSignature { /** * Deletes a resource. * * Also cancels the associated events schedule and any working hours schedule that isn’t shared among multiple resources. * @param - ID of the resource to delete. */ (resourceId: string): Promise; } export declare function bulkDeleteResources(httpClient: HttpClient): BulkDeleteResourcesSignature; interface BulkDeleteResourcesSignature { /** * Deletes multiple resources. * @param - The IDs of the resources to delete. */ (ids: string[]): Promise; } export declare function searchResources(httpClient: HttpClient): SearchResourcesSignature; interface SearchResourcesSignature { /** * 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. */ (options?: SearchResourcesOptions | undefined): Promise; } export declare function queryResources(httpClient: HttpClient): QueryResourcesSignature; interface QueryResourcesSignature { /** * 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`. */ (): ResourcesQueryBuilder; } export declare function countResources(httpClient: HttpClient): CountResourcesSignature; interface CountResourcesSignature { /** * 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. * @param - Filter to base the count on. See * [queryResources()](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/query-resources) * for supported filters. */ (options?: CountResourcesOptions | undefined): Promise; } export declare const onResourceCreated: EventDefinition; export declare const onResourceDeleted: EventDefinition; export declare const onResourceUpdated: EventDefinition; export { ActionEvent, Aggregation, AggregationData, AggregationKindOneOf, AggregationResults, AggregationResultsResultOneOf, AggregationResultsScalarResult, AggregationType, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateResourcesOptions, BulkCreateResourcesRequest, BulkCreateResourcesResponse, BulkCreateResourcesResponseNonNullableFields, BulkDeleteResourcesRequest, BulkDeleteResourcesResponse, BulkDeleteResourcesResponseNonNullableFields, BulkResourceResult, BusinessLocation, CountResourcesOptions, CountResourcesRequest, CountResourcesResponse, CountResourcesResponseNonNullableFields, CreateResourceRequest, CreateResourceResponse, CreateResourceResponseNonNullableFields, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, CursorSearch, CursorSearchPagingMethodOneOf, Cursors, DateHistogramAggregation, DateHistogramResult, DateHistogramResults, DeleteResourceRequest, DeleteResourceResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, EventsSchedule, ExtendedFields, FixResourceSchedulesRequest, FixResourceSchedulesResponse, GetDeletedResourceRequest, GetDeletedResourceResponse, GetResourceRequest, GetResourceResponse, GetResourceResponseNonNullableFields, GroupByAggregation, GroupByAggregationKindOneOf, GroupByValueResults, IdentificationData, IdentificationDataIdOneOf, ImportResourceRequest, ImportResourceResponse, IncludeMissingValuesOptions, Interval, ItemMetadata, ListDeletedResourcesRequest, ListDeletedResourcesResponse, LocationOptions, ManagementType, MessageEnvelope, MissingValues, Mode, NestedAggregation, NestedAggregationItem, NestedAggregationItemKindOneOf, NestedAggregationResults, NestedAggregationResultsResultOneOf, NestedAggregationType, NestedResultValue, NestedResultValueResultOneOf, NestedResults, NestedValueAggregationResult, QueryResourcesRequest, QueryResourcesResponse, QueryResourcesResponseNonNullableFields, RangeAggregation, RangeAggregationResult, RangeBucket, RangeResult, RangeResults, ReindexTenantRequest, ReindexTenantResponse, RemoveResourceFromTrashBinRequest, RemoveResourceFromTrashBinResponse, Resource, ResourceCompositionDetailsOneOf, ResourceCreatedEnvelope, ResourceDeletedEnvelope, ResourceNonNullableFields, ResourceUpdatedEnvelope, ResourcesQueryBuilder, ResourcesQueryResult, RestoreInfo, RestoreResourceFromTrashBinRequest, RestoreResourceFromTrashBinResponse, Results, ScalarAggregation, ScalarResult, ScalarType, Schedule, SearchDetails, SearchResourcesOptions, SearchResourcesRequest, SearchResourcesResponse, SearchResourcesResponseNonNullableFields, SingleResource, SortDirection, SortOrder, SortType, Sorting, SpecificLocation, UpdateResource, UpdateResourceRequest, UpdateResourceResponse, UpdateResourceResponseNonNullableFields, V2WorkingHoursSchedules, ValueAggregation, ValueAggregationOptionsOneOf, ValueAggregationResult, ValueResult, ValueResults, WebhookIdentityType, WorkingHoursSchedule, WorkingHoursSchedules, } from './bookings-resources-v2-resource-resources.universal.js';