import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { Attendance, GetAttendanceApplicationErrors, SetAttendanceOptions, SetAttendanceResponse, SetAttendanceApplicationErrors, BulkSetAttendanceOptions, BulkSetAttendanceResponse, BulkSetAttendanceApplicationErrors, CountAttendancesOptions, CountAttendancesResponse, DeleteAttendanceApplicationErrors, BulkDeleteAttendancesResponse, AttendanceDeletedEnvelope, AttendancesQueryBuilder, AttendanceQuery, typedQueryAttendance } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, ApplicationError, AttendanceDetails, AttendanceMarkedAsNotAttended, AttendanceQuerySpec, AttendanceStatus, AttendanceStatusWithLiterals, AttendancesQueryResult, BaseEventMetadata, BulkActionMetadata, BulkAttendanceResult, BulkDeleteAttendancesRequest, BulkDeleteAttendancesResult, BulkSetAttendanceRequest, CommonQueryWithEntityContext, CountAttendancesRequest, CursorPaging, CursorPagingMetadata, Cursors, DeleteAttendanceRequest, DeleteAttendanceResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, GetAttendanceRequest, GetAttendanceResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, Paging, ParticipantNotification, QueryAttendanceRequest, QueryAttendanceResponse, QueryV2, QueryV2PagingMethodOneOf, RestoreInfo, SetAttendanceRequest, SortOrder, SortOrderWithLiterals, Sorting, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js'; declare function getAttendance$1(httpClient: HttpClient): GetAttendanceSignature; interface GetAttendanceSignature { /** * Retrieves attendance information. * @param - ID of the attendance object to retrieve. * @returns Retrieved attendance. */ (attendanceId: string): Promise & { __applicationErrorsType?: GetAttendanceApplicationErrors; }>; } declare function setAttendance$1(httpClient: HttpClient): SetAttendanceSignature; interface SetAttendanceSignature { /** * Sets or updates attendance information for a booking session. This * information is stored in an `attendance` object. * * If an `attendance` object already exists for the session, it's updated. * Otherwise, a new object is created. * * By default, `numberOfAttendees` is set to `1`, but you can specify a higher * number if multiple participants attended. Do not set `numberOfAttendees` to * `0` to indicate no attendance, instead specify `{"status": "NOT_ATTENDED"}`. * * Validation guidelines: * * + The call succeeds for mismatches between `numberOfAttendees` * and `status`. For example, make sure that your code doesn't specify * `{"status": "NOT_ATTENDED"}` with `{"numberOfAttendees": 5}`. * + The API also allows `numberOfAttendees` to exceed the booking's * `numberOfParticipants`. Use higher values only when scenarios like * walk-ins justify the exception. * @param - Attendance to create or update. * @param - Options to use when setting an attendance. */ (attendance: NonNullablePaths, options?: SetAttendanceOptions): Promise & { __applicationErrorsType?: SetAttendanceApplicationErrors; }>; } declare function bulkSetAttendance$1(httpClient: HttpClient): BulkSetAttendanceSignature; interface BulkSetAttendanceSignature { /** * Sets or updates attendance information for multiple booking sessions. * * * Refer to Set Attendance for detailed behavior of individual attendance * entries. * * The call fails entirely if any entry in `attendanceDetails` is missing a * required field. * * If attendance details are provided for a non-existent session, the call * succeeds for valid sessions while marking the unavailable session as a * failure in the response. * @param - Options to use when setting multiple attendances in bulk. */ (options?: BulkSetAttendanceOptions): Promise & { __applicationErrorsType?: BulkSetAttendanceApplicationErrors; }>; } declare function countAttendances$1(httpClient: HttpClient): CountAttendancesSignature; interface CountAttendancesSignature { /** * Counts attendance records for the calling [member](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/introduction). * The member is identified from the site member ID in the `Authorization` header's auth token. * Calls with other [identity types](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities) return a `PERMISSION_DENIED` error. * Returns the total number of attendance records matching the provided filters. * If no filters are provided, returns the count of all attendance records for the caller. * * Filter the results by providing a `filter` object with any of the following fields: * * + `status`: Filter by attendance status. Supported values: `ATTENDED`, `NOT_ATTENDED`. * + `serviceId`: Filter by service ID. Accepts a single ID or an array of IDs. */ (options?: CountAttendancesOptions): Promise>; } declare function deleteAttendance$1(httpClient: HttpClient): DeleteAttendanceSignature; interface DeleteAttendanceSignature { /** * Deletes an attendance record. * * * This permanently removes the attendance information for a booking session. * To recreate the attendance information, call [Set Attendance](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/attendance/set-attendance). * * To delete multiple attendance records in a single call, call * [Bulk Delete Attendances](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/attendance/bulk-delete-attendances). * @param - ID of the attendance record to delete. */ (attendanceId: string): Promise; } declare function bulkDeleteAttendances$1(httpClient: HttpClient): BulkDeleteAttendancesSignature; interface BulkDeleteAttendancesSignature { /** * Deletes multiple attendance records. * * * This permanently removes the attendance information for multiple booking sessions. * To recreate the attendance information, call [Set Attendance](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/attendance/set-attendance) or * [Bulk Set Attendance](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/attendance/bulk-set-attendance). * * To delete a single attendance record, call [Delete Attendance](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/attendance/delete-attendance). * @param - IDs of the attendance records to delete. */ (attendanceIds: string[]): Promise>; } declare const onAttendanceDeleted$1: EventDefinition; declare function customQueryAttendance(httpClient: HttpClient): { (): AttendancesQueryBuilder; (query: AttendanceQuery): ReturnType; }; declare const getAttendance: MaybeContext & typeof getAttendance$1>; declare const setAttendance: MaybeContext & typeof setAttendance$1>; declare const bulkSetAttendance: MaybeContext & typeof bulkSetAttendance$1>; declare const countAttendances: MaybeContext & typeof countAttendances$1>; declare const deleteAttendance: MaybeContext & typeof deleteAttendance$1>; declare const bulkDeleteAttendances: MaybeContext & typeof bulkDeleteAttendances$1>; declare const queryAttendance: MaybeContext & typeof customQueryAttendance>; /** */ declare const onAttendanceDeleted: BuildEventDefinition & typeof onAttendanceDeleted$1; export { Attendance, AttendanceDeletedEnvelope, AttendanceQuery, AttendancesQueryBuilder, BulkDeleteAttendancesResponse, BulkSetAttendanceApplicationErrors, BulkSetAttendanceOptions, BulkSetAttendanceResponse, CountAttendancesOptions, CountAttendancesResponse, DeleteAttendanceApplicationErrors, GetAttendanceApplicationErrors, SetAttendanceApplicationErrors, SetAttendanceOptions, SetAttendanceResponse, bulkDeleteAttendances, bulkSetAttendance, countAttendances, deleteAttendance, getAttendance, onAttendanceDeleted, queryAttendance, setAttendance };