import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { QueryV2, QueryOptions, QueryExtendedBookingResponse, CountExtendedBookingsOptions, CountExtendedBookingsResponse, ExtendedBookingQuery, QueryExtendedBookingsOptions, typedQueryExtendedBookings, ExtendedBookingsQueryBuilder } from './index.typings.js'; export { Actor, ActorWithLiterals, AdditionalFee, Address, AddressLocation, AddressStreetOneOf, Aggregation, AggregationData, AggregationKindOneOf, AggregationResults, AggregationResultsResultOneOf, AggregationResultsScalarDateResult, AggregationResultsScalarResult, AggregationType, AggregationTypeWithLiterals, AllowedActions, Attendance, AttendanceStatus, AttendanceStatusWithLiterals, Balance, BookedAddOn, BookedEntity, BookedEntityItemOneOf, BookedResource, BookedSchedule, BookedSlot, Booking, BookingFeeDetails, BookingFeeStatus, BookingFeeStatusWithLiterals, BookingParticipantsInfoOneOf, BookingPolicySettings, BookingSource, BookingStatus, BookingStatusWithLiterals, CommonAddressLocation, CommonAggregationType, CommonAggregationTypeWithLiterals, CommonPaging, CommonQueryV2, CommonQueryV2PagingMethodOneOf, CommonQueryWithEntityContext, CommonScalarType, CommonScalarTypeWithLiterals, ConferencingDetails, ContactDetails, CountExtendedBookingsRequest, CouponInfo, CursorPaging, CursorPagingMetadata, CursorSearch, CursorSearchPagingMethodOneOf, Cursors, CustomFormField, CyclePrice, DateHistogramAggregation, DateHistogramResult, DateHistogramResults, DateTimeRule, DeferredChargeDeclineReason, DeferredChargeDeclineReasonWithLiterals, DeferredChargeInfo, DeferredChargeInfoStatusDetailsOneOf, DeferredChargeStatus, DeferredChargeStatusWithLiterals, Duration, DurationUnitType, DurationUnitTypeWithLiterals, ExtendedBooking, ExtendedBookingQuerySpec, ExtendedBookingsQueryResult, ExtendedFields, FlowControlSettings, FormSubmission, Frequency, FrequencyWithLiterals, GeotileGridBucket, GeotileGridResults, GroupByAggregation, GroupByAggregationKindOneOf, GroupByValueResults, IdentificationData, IdentificationDataIdOneOf, IdentityType, IdentityTypeWithLiterals, IncludeMissingValuesOptions, Interval, IntervalWithLiterals, Location, LocationType, LocationTypeWithLiterals, MembershipName, MembershipPaymentCredits, MembershipPaymentDetails, MissingValues, MissingValuesWithLiterals, Mode, ModeWithLiterals, MultiServiceBookingInfo, MultiServiceBookingType, MultiServiceBookingTypeWithLiterals, NestedAggregation, NestedAggregationItem, NestedAggregationItemKindOneOf, NestedAggregationResults, NestedAggregationResultsResultOneOf, NestedAggregationType, NestedAggregationTypeWithLiterals, NestedResultValue, NestedResultValueResultOneOf, NestedResults, NestedValueAggregationResult, Order, OrderStatus, OrderStatusWithLiterals, OrderTransactions, Paging, PagingMetadataV2, ParticipantChoices, ParticipantNotification, ParticipantsRange, PaymentStatus, PaymentStatusEnumPaymentStatus, PaymentStatusEnumPaymentStatusWithLiterals, PaymentStatusWithLiterals, PhoneCall, Platform, PlatformWithLiterals, Price, PriceDescription, QueryExtendedBookingRequest, QueryExtendedBookingsRequest, QueryExtendedBookingsResponse, QueryV2PagingMethodOneOf, RangeAggregation, RangeAggregationResult, RangeBucket, RangeResult, RangeResults, RequestedGender, RequestedGenderValue, RequestedGenderWithLiterals, ResourceSelection, ResourceTransparency, ResourceTransparencyWithLiterals, Results, ScalarAggregation, ScalarDateResult, ScalarResult, ScalarType, ScalarTypeWithLiterals, SearchDetails, SearchExtendedBookingsRequest, SearchExtendedBookingsResponse, SelectedPaymentOption, SelectedPaymentOptionWithLiterals, SelectionMethod, SelectionMethodWithLiterals, ServiceChoice, ServiceChoiceChoiceOneOf, ServiceChoices, SortDirection, SortDirectionWithLiterals, SortOrder, SortOrderWithLiterals, SortType, SortTypeWithLiterals, Sorting, Status, StatusWithLiterals, StreetAddress, Subdivision, SubscriptionInfo, SubscriptionStatus, SubscriptionStatusWithLiterals, ValueAggregation, ValueAggregationOptionsOneOf, ValueAggregationResult, ValueResult, ValueResults, ValueType, ValueTypeWithLiterals, Waiver, ZonedDate, utils } from './index.typings.js'; declare function query$1(httpClient: HttpClient): QuerySignature; interface QuerySignature { /** * > **Deprecation Notice** * > * > **This endpoint has been replaced with [Query Extended Bookings](https://dev.wix.com/api/rest/wix-bookings/bookings-reader-v2/query-extended-bookings) and will be removed on May 31, 2025.** * > **If your app uses this endpoint, we recommend updating your code as soon as possible.** * * * Retrieves a list of bookings, given the provided paging, filtering, and sorting. * * * You can also retrieve information about which actions the customer can perform * for the bookings. To do so, pass `withBookingAllowedActions` as `true`. * * Query Bookings runs with these defaults: * * - `createdDate` sorted in `DESC` order * - `cursorPaging.limit` is `50` * * `query.fields` and `query.fieldsets` aren't supported for this endpoint. * * When using filters for dates, you must use [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). * * Bookings belonging to a schedule don't have a `sessionId`. Therefore you * must use the `sessionId` filter that isn't part of the `query` object to * filter bookings for courses. * * To learn about working with _Query_ endpoints, see * [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language), * [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), * and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection). * * When calling Query Bookings, the retrieved data may not contain your most recent changes. See * [Wix-data and Eventual Consistency](https://dev.wix.com/docs/api-reference/business-solutions/cms/eventual-consistency) * for more information. * @param - Information about filters, paging, and sorting. * @param - Additional options for performing the query. * @deprecated */ (query: QueryV2, options?: QueryOptions): Promise>; } declare function countExtendedBookings$1(httpClient: HttpClient): CountExtendedBookingsSignature; interface CountExtendedBookingsSignature { /** * Counts the number of bookings matching the specified filters. * * * See [Supported Filters](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-reader-v2/supported-filters?apiView=SDK) for a list of supported filters. */ (options?: CountExtendedBookingsOptions): Promise>; } declare function customQueryExtendedBookings(httpClient: HttpClient): { (query: ExtendedBookingQuery, options?: QueryExtendedBookingsOptions): ReturnType; (options?: QueryExtendedBookingsOptions): ExtendedBookingsQueryBuilder; }; declare const query: MaybeContext & typeof query$1>; declare const countExtendedBookings: MaybeContext & typeof countExtendedBookings$1>; declare const queryExtendedBookings: MaybeContext & typeof customQueryExtendedBookings>; export { CountExtendedBookingsOptions, CountExtendedBookingsResponse, ExtendedBookingQuery, ExtendedBookingsQueryBuilder, QueryExtendedBookingResponse, QueryExtendedBookingsOptions, QueryOptions, QueryV2, countExtendedBookings, query, queryExtendedBookings };