import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { ListEventsByContactIdOptions, ListEventsByContactIdResponse, ListEventsByMemberIdOptions, ListEventsByMemberIdResponse, GetEventOptions, Event, ListEventsOptions, ListEventsResponse, CreateEventOptions, MaskedEvent, BulkCreateEventOptions, BulkCreateEventResponse, UpdateEvent, UpdateEventOptions, BulkUpdateEventRequestMaskedEvent, BulkUpdateEventOptions, BulkUpdateEventResponse, FieldWithLiterals, RestoreEventDefaultsOptions, RestoreEventDefaultsResponse, SplitRecurringEventOptions, SplitRecurringEventResponse, CancelEventOptions, CancelEventResponse, CancelEventApplicationErrors, BulkCancelEventOptions, BulkCancelEventResponse, BulkCancelEventApplicationErrors, EventCancelledEnvelope, EventCreatedEnvelope, EventRecurringSplitEnvelope, EventUpdatedEnvelope, EventQuery, QueryEventsOptions, typedQueryEvents, EventsQueryBuilder } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, Address, AddressHint, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCancelEventRequest, BulkCreateEventRequest, BulkEventResult, BulkUpdateEventRequest, BusinessSchedule, CancelEventRequest, Categories, ChangeContext, ChangeContextPayloadOneOf, CommonCursorPaging, CommonCursorPagingMetadata, CommonCursors, CommonIdentificationData, CommonIdentificationDataIdOneOf, CommonQueryWithEntityContext, ConferencingDetails, ConsentPolicy, CreateEventRequest, CreateEventResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, Day, DayOfWeek, DayOfWeekWithLiterals, DayWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventCancelled, EventMetadata, EventQuerySpec, EventUpdatedWithMetadata, EventsQueryResult, ExtendedFields, Field, Frequency, FrequencyWithLiterals, GeoCoordinates, GetEventRequest, GetEventResponse, IdentificationData, IdentificationDataIdOneOf, IdentityType, IdentityTypeWithLiterals, ItemMetadata, ListEventsByContactIdRequest, ListEventsByMemberIdRequest, ListEventsRequest, ListRecurringEventInstancesHistoryRequest, ListRecurringEventInstancesHistoryResponse, Locale, Location, LocationType, LocationTypeWithLiterals, MessageEnvelope, Multilingual, OnlineMeetingInfo, Participant, ParticipantNotification, Participants, ParticipantsStatus, ParticipantsStatusWithLiterals, Permission, PlacementType, PlacementTypeWithLiterals, Properties, PropertiesChange, Provider, ProviderProviderInfoOneOf, ProviderType, ProviderTypeWithLiterals, QueryEventsRequest, QueryEventsResponse, RecurrenceRule, RecurrenceType, RecurrenceTypeWithLiterals, RecurringEventSplit, RequestedFields, RequestedFieldsWithLiterals, ResolutionMethod, ResolutionMethodWithLiterals, Resource, RestoreEventDefaultsRequest, RestoreInfo, Role, RoleWithLiterals, SiteCloned, SiteCreated, SitePropertiesEvent, SitePropertiesNotification, SortOrder, SortOrderWithLiterals, Sorting, SpecialHourPeriod, SplitRecurringEventRequest, Status, StatusWithLiterals, SupportedLanguage, TimePeriod, Translation, Transparency, TransparencyWithLiterals, Type, TypeWithLiterals, UpdateEventParticipantsRequest, UpdateEventParticipantsResponse, UpdateEventRequest, UpdateEventResponse, UpdateEventsWithFixedBusinessResourceIdRequest, UpdateEventsWithFixedBusinessResourceIdResponse, UpdateScheduleWithFixedBusinessResourceIdRequest, UpdateScheduleWithFixedBusinessResourceIdResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, ZonedDate, utils } from './index.typings.js'; declare function listEventsByContactId$1(httpClient: HttpClient): ListEventsByContactIdSignature; interface ListEventsByContactIdSignature { /** * Retrieves a list of events filtered by the participant's * [contact](https://dev.wix.com/docs/sdk/backend-modules/crm/contacts/introduction) * ID. * * * You can't set `toLocalDate` to a value that's more than a full year after * `fromLocalDate`. * @param - ID of the [contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object) * to retrieve events for. Required, unless you provide `cursorPaging`. */ (contactId: string, options?: ListEventsByContactIdOptions): Promise>; } declare function listEventsByMemberId$1(httpClient: HttpClient): ListEventsByMemberIdSignature; interface ListEventsByMemberIdSignature { /** * Retrieves a list of events filtered by the participant's * [member](https://dev.wix.com/docs/sdk/backend-modules/members/members/introduction) * ID. * * * You can't set `toLocalDate` to a value that's more than a full year after * `fromLocalDate`. * @param - ID of the [member](https://dev.wix.com/docs/rest/crm/members-contacts/members/members/member-object) * to retrieve events for. Required, unless you provide `cursorPaging`. * Provide `me` to retrieve events for the currently logged-in member. * You must have the `Read Calendars - Including PI` * [permission scope](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app) * to retrieve events for members who aren't the currently logged in member. */ (memberId: string, options?: ListEventsByMemberIdOptions): Promise>; } declare function getEvent$1(httpClient: HttpClient): GetEventSignature; interface GetEventSignature { /** * Retrieves an event. * @param - ID of the event to retrieve. * * Min: 36 characters * Max: 250 characters * @returns Retrieved event. */ (eventId: string, options?: GetEventOptions): Promise>; } declare function listEvents$1(httpClient: HttpClient): ListEventsSignature; interface ListEventsSignature { /** * Retrieves a list of events by their IDs. * @param - IDs of the events to retrieve. * * Min: 1 event ID * Max: 100 event IDs */ (eventIds: string[], options?: ListEventsOptions): Promise>; } declare function createEvent$1(httpClient: HttpClient): CreateEventSignature; interface CreateEventSignature { /** * Creates an event. * * * If you provide `recurrenceRule`, an event with `{"recurrenceType": "MASTER"}` is created. Then, you can't set `start.localDate` to a past date, though the time can be earlier on the same day. You can, however, create single-occurrence events for past dates. * * You can't create an event with `recurrenceType` set to `INSTANCE` or `EXCEPTION`. `INSTANCE` events are generated automatically based on the recurrence rule in the relevant `MASTER` event. `EXCEPTION` events are automatically created when you [update](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/update-event) an `INSTANCE` event, which changes its `recurrenceType` to `EXCEPTION`. * @param - Event to create. * @returns Created event. */ (event: NonNullablePaths, options?: CreateEventOptions): Promise>; } declare function bulkCreateEvent$1(httpClient: HttpClient): BulkCreateEventSignature; interface BulkCreateEventSignature { /** * Creates multiple events in bulk. * * * If you provide `recurrenceRule`, an event with `{"recurrenceType": "MASTER"}` is * created. Then, you can't set `start.localDate` to a past date, though the time can be * earlier on the same day. You can, however, create single-occurrence events for * past dates. * * You can't create an event with `recurrenceType` set to `INSTANCE` or `EXCEPTION`. * `INSTANCE` events are generated automatically based on the recurrence rule in the * relevant `MASTER` event. `EXCEPTION` events are automatically created when you * [update](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/update-event) * an `INSTANCE` event, which changes its `recurrenceType` to `EXCEPTION`. * @param - Events to create. */ (events: NonNullablePaths[], options?: BulkCreateEventOptions): Promise>; } declare function updateEvent$1(httpClient: HttpClient): UpdateEventSignature; interface UpdateEventSignature { /** * Updates an event. * * * When updating an event with `{"recurrenceType": "INSTANCE"}`, the * `recurrenceType` automatically changes to `EXCEPTION`. * * When updating an event with `{"recurrenceType": "MASTER"}`: * + Past `INSTANCE` and `EXCEPTION` events remain unchanged. * + For future `INSTANCE` events, all relevant fields are updated. * + For future `EXCEPTION` events, only changes to the `inheritedFields` are * applied, while other fields remain unchanged. * @param - Event ID. * @returns Updated event. */ (_id: string, event: NonNullablePaths, options?: UpdateEventOptions): Promise>; } declare function bulkUpdateEvent$1(httpClient: HttpClient): BulkUpdateEventSignature; interface BulkUpdateEventSignature { /** * Updates multiple events in bulk. * * * When updating an event with `{"recurrenceType": "INSTANCE"}`, the * `recurrenceType` automatically changes to `EXCEPTION`. * * When updating an event with `{"recurrenceType": "MASTER"}`: * + Past `INSTANCE` and `EXCEPTION` events remain unchanged. * + For future `INSTANCE` events, all relevant fields are updated. * + For future `EXCEPTION` events, only changes to the `inheritedFields` are * applied, while other fields remain unchanged. * @param - Events to update. * * Min: 1 event * Max: 50 events */ (events: NonNullablePaths[], options?: BulkUpdateEventOptions): Promise>; } declare function restoreEventDefaults$1(httpClient: HttpClient): RestoreEventDefaultsSignature; interface RestoreEventDefaultsSignature { /** * Restores the event's default values from the relevant schedule or `MASTER` * event. * * * You must provide `fields` to specify which `inheritedFields` are restored. * * For example, if you've created an event that takes place in a non-default * location with a custom title and capacity, but you want to reset only title * and capacity to default values without affecting the location, provide the * event ID and set `fields` to `["TITLE", "CAPACITY"]`. * * Refer to the [default values article](https://dev.wix.com/docs/sdk/backend-modules/calendar/default-values) * for more information. * @param - ID of the event for which to restore default values. * @param - Fields for which to restore default values. * * `TIME` restores default values for `start` and `end`. * * Min: 1 field */ (eventId: string, fields: FieldWithLiterals[], options?: RestoreEventDefaultsOptions): Promise>; } declare function splitRecurringEvent$1(httpClient: HttpClient): SplitRecurringEventSignature; interface SplitRecurringEventSignature { /** * Splits a recurring `MASTER` event into 2 separate `MASTER` events. * * * You must provide a `splitLocalDate` that's in the future and after the `start` * date of the next `INSTANCE` or `EXCEPTION` event in the series. Additionally, * there must be another `INSTANCE` or `EXCEPTION` event following this next event, * as the changes wouldn't affect any event without a subsequent occurrence. * * If you want to modify a `MASTER` event with the changes already applying to * the very next event, use * [updateEvent()](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/update-event) * instead, as this preserves past events and only modifies future events. * * The main consequences are: * - **The original `MASTER` event is shortened**. Its `recurrenceRule.until.localDate` * is updated to `end.localDate` of the latest `INSTANCE` or `EXCEPTION` * event starting before `splitLocalDate`. If an `INSTANCE` or `EXCEPTION` event * starts before but ends after `splitLocalDate`, `until.localDate` is set * to value that's later than `splitLocalDate`. * - **A new `MASTER` event is created**, starting from the first event that * begins after `splitLocalDate`. * - **Existing `INSTANCE` and `EXCEPTION` events that occur after the split are updated**. * Their `recurringEventId` is set to the ID of the newly created `MASTER` event. * @param - ID of the `MASTER` event to split. * @param - Local date and time at which the `MASTER` event is split in * [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example, * `2025-03-11T09:00:00`. * Must be a future date that's after the `start` date of the next `INSTANCE` or * `EXCEPTION` event in the series. Additionally, there must be another * `INSTANCE` or `EXCEPTION` event following this next event, as the changes * wouldn't affect any event without a subsequent occurrence. */ (recurringEventId: string, splitLocalDate: string, options?: SplitRecurringEventOptions): Promise>; } declare function cancelEvent$1(httpClient: HttpClient): CancelEventSignature; interface CancelEventSignature { /** * Cancels an event. * @param - ID of the event to cancel. */ (eventId: string, options?: CancelEventOptions): Promise & { __applicationErrorsType?: CancelEventApplicationErrors; }>; } declare function bulkCancelEvent$1(httpClient: HttpClient): BulkCancelEventSignature; interface BulkCancelEventSignature { /** * Cancels multiple events in bulk. * @param - IDs of the events to cancel. */ (eventIds: string[], options?: BulkCancelEventOptions): Promise & { __applicationErrorsType?: BulkCancelEventApplicationErrors; }>; } declare const onEventCancelled$1: EventDefinition; declare const onEventCreated$1: EventDefinition; declare const onEventRecurringSplit$1: EventDefinition; declare const onEventUpdated$1: EventDefinition; declare function customQueryEvents(httpClient: HttpClient): { (query: EventQuery, options?: QueryEventsOptions): ReturnType; (options?: QueryEventsOptions): EventsQueryBuilder; }; declare const listEventsByContactId: MaybeContext & typeof listEventsByContactId$1>; declare const listEventsByMemberId: MaybeContext & typeof listEventsByMemberId$1>; declare const getEvent: MaybeContext & typeof getEvent$1>; declare const listEvents: MaybeContext & typeof listEvents$1>; declare const createEvent: MaybeContext & typeof createEvent$1>; declare const bulkCreateEvent: MaybeContext & typeof bulkCreateEvent$1>; declare const updateEvent: MaybeContext & typeof updateEvent$1>; declare const bulkUpdateEvent: MaybeContext & typeof bulkUpdateEvent$1>; declare const restoreEventDefaults: MaybeContext & typeof restoreEventDefaults$1>; declare const splitRecurringEvent: MaybeContext & typeof splitRecurringEvent$1>; declare const cancelEvent: MaybeContext & typeof cancelEvent$1>; declare const bulkCancelEvent: MaybeContext & typeof bulkCancelEvent$1>; declare const queryEvents: MaybeContext & typeof customQueryEvents>; /** * Triggered when an event is canceled. * * Not triggered when `INSTANCE` events are canceled. You can use the * [Events View API](https://dev.wix.com/docs/rest/business-management/calendar/event-views-v3/introduction) * to get notified about `INSTANCE` events. */ declare const onEventCancelled: BuildEventDefinition & typeof onEventCancelled$1; /** * Triggered when an event is created, including when an existing `MASTER` * event is split. * * Not triggered when `INSTANCE` events are created. You can use the * [Events View API](https://dev.wix.com/docs/rest/business-management/calendar/event-views-v3/introduction) * to get notified about `INSTANCE` events. */ declare const onEventCreated: BuildEventDefinition & typeof onEventCreated$1; /** * Triggered when a `MASTER` event is split. */ declare const onEventRecurringSplit: BuildEventDefinition & typeof onEventRecurringSplit$1; /** * Triggered when an event is updated, including when it's canceled. * * Not triggered when `INSTANCE` events are updated. You can use the * [Events View API](https://dev.wix.com/docs/rest/business-management/calendar/event-views-v3/introduction) * to get notified about `INSTANCE` events. */ declare const onEventUpdated: BuildEventDefinition & typeof onEventUpdated$1; export { BulkCancelEventApplicationErrors, BulkCancelEventOptions, BulkCancelEventResponse, BulkCreateEventOptions, BulkCreateEventResponse, BulkUpdateEventOptions, BulkUpdateEventRequestMaskedEvent, BulkUpdateEventResponse, CancelEventApplicationErrors, CancelEventOptions, CancelEventResponse, CreateEventOptions, Event, EventCancelledEnvelope, EventCreatedEnvelope, EventQuery, EventRecurringSplitEnvelope, EventUpdatedEnvelope, EventsQueryBuilder, FieldWithLiterals, GetEventOptions, ListEventsByContactIdOptions, ListEventsByContactIdResponse, ListEventsByMemberIdOptions, ListEventsByMemberIdResponse, ListEventsOptions, ListEventsResponse, MaskedEvent, QueryEventsOptions, RestoreEventDefaultsOptions, RestoreEventDefaultsResponse, SplitRecurringEventOptions, SplitRecurringEventResponse, UpdateEvent, UpdateEventOptions, bulkCancelEvent, bulkCreateEvent, bulkUpdateEvent, cancelEvent, createEvent, getEvent, listEvents, listEventsByContactId, listEventsByMemberId, onEventCancelled, onEventCreated, onEventRecurringSplit, onEventUpdated, queryEvents, restoreEventDefaults, splitRecurringEvent, updateEvent };