@wix/auto_sdk_calendar_events 1.0.48 → 1.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
1
+ import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
2
2
 
3
3
  /**
4
4
  * An event is a scheduled entry on a calendar that includes details like timing,
@@ -1981,6 +1981,8 @@ declare function onEventRecurringSplit(handler: (event: EventRecurringSplitEnvel
1981
1981
  interface EventUpdatedEnvelope {
1982
1982
  entity: Event;
1983
1983
  metadata: EventMetadata;
1984
+ /** @hidden */
1985
+ modifiedFields: Record<string, any>;
1984
1986
  }
1985
1987
  /**
1986
1988
  * Triggered when an event is updated, including when it's canceled.
@@ -2362,7 +2364,102 @@ interface EventsQueryBuilder {
2362
2364
  * @fqn wix.calendar.events.v3.EventsService.QueryEvents
2363
2365
  * @requiredField query
2364
2366
  */
2365
- declare function typedQueryEvents(query: CursorQuery, options?: QueryEventsOptions): Promise<NonNullablePaths<QueryEventsResponse, `events` | `events.${number}.status` | `events.${number}.recurrenceType` | `events.${number}.recurrenceRule.frequency` | `events.${number}.transparency` | `events.${number}.location.type` | `events.${number}.participants.status` | `events.${number}.conferencingDetails.type`, 5>>;
2367
+ declare function typedQueryEvents(query: EventQuery, options?: QueryEventsOptions): Promise<NonNullablePaths<QueryEventsResponse, `events` | `events.${number}.status` | `events.${number}.recurrenceType` | `events.${number}.recurrenceRule.frequency` | `events.${number}.transparency` | `events.${number}.location.type` | `events.${number}.participants.status` | `events.${number}.conferencingDetails.type`, 5>>;
2368
+ interface EventQuerySpec extends QuerySpec {
2369
+ paging: 'cursor';
2370
+ wql: [
2371
+ {
2372
+ fields: ['transparency'];
2373
+ operators: ['$eq'];
2374
+ sort: 'NONE';
2375
+ },
2376
+ {
2377
+ fields: [
2378
+ 'appId',
2379
+ 'externalScheduleId',
2380
+ 'location._id',
2381
+ 'location.type',
2382
+ 'recurringEventId',
2383
+ 'scheduleId',
2384
+ 'type'
2385
+ ];
2386
+ operators: ['$eq', '$in'];
2387
+ sort: 'NONE';
2388
+ },
2389
+ {
2390
+ fields: ['participants.total', 'remainingCapacity'];
2391
+ operators: ['$eq', '$gt', '$gte', '$lt', '$lte', '$ne'];
2392
+ sort: 'NONE';
2393
+ },
2394
+ {
2395
+ fields: ['totalCapacity'];
2396
+ operators: ['$eq', '$exists', '$gt', '$gte', '$lt', '$lte', '$ne'];
2397
+ sort: 'NONE';
2398
+ },
2399
+ {
2400
+ fields: ['resources._id', 'resources.transparency', 'resources.type'];
2401
+ operators: ['$hasAll', '$hasSome'];
2402
+ sort: 'NONE';
2403
+ },
2404
+ {
2405
+ fields: ['conferencingDetails', 'location'];
2406
+ operators: ['$exists'];
2407
+ sort: 'NONE';
2408
+ }
2409
+ ];
2410
+ }
2411
+ type CommonQueryWithEntityContext = Query<Event, EventQuerySpec>;
2412
+ type EventQuery = {
2413
+ /**
2414
+ Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`.
2415
+ */
2416
+ cursorPaging?: {
2417
+ /**
2418
+ Number of events to return.
2419
+ Defaults to `50`. Maximum `1000`.
2420
+ @min: 1,
2421
+ @max: 1000
2422
+ */
2423
+ limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
2424
+ /**
2425
+ Pointer to the next or previous page in the list of results.
2426
+
2427
+ You can get the relevant cursor token
2428
+ from the `pagingMetadata` object in the previous call's response.
2429
+ Not relevant for the first request.
2430
+ */
2431
+ cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
2432
+ };
2433
+ /**
2434
+ Filter object.
2435
+ See [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language)
2436
+ for more information.
2437
+
2438
+ Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.
2439
+
2440
+ Do not specify filters for start and end dates inside `query.filter`, instead
2441
+ specify `fromLocalDate` and `toLocalDate`. For a detailed list of supported
2442
+ filters, refer to the [supported filters article](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/supported-filters-and-sorting).
2443
+ */
2444
+ filter?: CommonQueryWithEntityContext['filter'] | null;
2445
+ /**
2446
+ Whether to sort events by their start date in ascending order or by their end date in descending order.
2447
+ Default is start ascending.
2448
+ @maxSize: 1
2449
+ */
2450
+ sort?: {
2451
+ /**
2452
+ The field to sort by.
2453
+ Either `start` or `end`.
2454
+ Default is `start`.
2455
+ */
2456
+ fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
2457
+ /**
2458
+ Sort order.
2459
+ */
2460
+ order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
2461
+ }[];
2462
+ };
2366
2463
  /**
2367
2464
  * Creates an event.
2368
2465
  *
@@ -2962,4 +3059,4 @@ interface BulkCancelEventOptions {
2962
3059
  timeZone?: string | null;
2963
3060
  }
2964
3061
 
2965
- export { type ActionEvent, type Address, type AddressHint, type ApplicationError, type BaseEventMetadata, type BulkActionMetadata, type BulkCancelEventApplicationErrors, type BulkCancelEventOptions, type BulkCancelEventRequest, type BulkCancelEventResponse, type BulkCreateEventOptions, type BulkCreateEventRequest, type BulkCreateEventResponse, type BulkEventResult, type BulkUpdateEventOptions, type BulkUpdateEventRequest, type BulkUpdateEventRequestMaskedEvent, type BulkUpdateEventResponse, type BusinessSchedule, type CancelEventApplicationErrors, type CancelEventOptions, type CancelEventRequest, type CancelEventResponse, type Categories, type ChangeContext, type ChangeContextPayloadOneOf, type CommonCursorPaging, type CommonCursorPagingMetadata, type CommonCursors, type CommonIdentificationData, type CommonIdentificationDataIdOneOf, type ConferencingDetails, type ConsentPolicy, type CreateEventOptions, type CreateEventRequest, type CreateEventResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, Day, DayOfWeek, type DayOfWeekWithLiterals, type DayWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type Event, type EventCancelled, type EventCancelledEnvelope, type EventCreatedEnvelope, type EventMetadata, type EventRecurringSplitEnvelope, type EventUpdatedEnvelope, type EventUpdatedWithMetadata, type EventsQueryBuilder, type EventsQueryResult, type ExtendedFields, Field, type FieldWithLiterals, Frequency, type FrequencyWithLiterals, type GeoCoordinates, type GetEventOptions, type GetEventRequest, type GetEventResponse, type IdentificationData, type IdentificationDataIdOneOf, IdentityType, type IdentityTypeWithLiterals, type ItemMetadata, type ListEventsByContactIdOptions, type ListEventsByContactIdRequest, type ListEventsByContactIdResponse, type ListEventsByMemberIdOptions, type ListEventsByMemberIdRequest, type ListEventsByMemberIdResponse, type ListEventsOptions, type ListEventsRequest, type ListEventsResponse, type ListRecurringEventInstancesHistoryRequest, type ListRecurringEventInstancesHistoryResponse, type Locale, type Location, LocationType, type LocationTypeWithLiterals, type MaskedEvent, type MessageEnvelope, type Multilingual, type Participant, type ParticipantNotification, type Participants, ParticipantsStatus, type ParticipantsStatusWithLiterals, type Permission, PlacementType, type PlacementTypeWithLiterals, type Properties, type PropertiesChange, type QueryEventsOptions, type QueryEventsRequest, type QueryEventsResponse, type RecurrenceRule, RecurrenceType, type RecurrenceTypeWithLiterals, type RecurringEventSplit, RequestedFields, type RequestedFieldsWithLiterals, ResolutionMethod, type ResolutionMethodWithLiterals, type Resource, type RestoreEventDefaultsOptions, type RestoreEventDefaultsRequest, type RestoreEventDefaultsResponse, type RestoreInfo, Role, type RoleWithLiterals, type SiteCloned, type SiteCreated, type SitePropertiesEvent, type SitePropertiesNotification, SortOrder, type SortOrderWithLiterals, type Sorting, type SpecialHourPeriod, type SplitRecurringEventOptions, type SplitRecurringEventRequest, type SplitRecurringEventResponse, Status, type StatusWithLiterals, type SupportedLanguage, type TimePeriod, type Translation, Transparency, type TransparencyWithLiterals, Type, type TypeWithLiterals, type UpdateEvent, type UpdateEventOptions, type UpdateEventParticipantsRequest, type UpdateEventParticipantsResponse, type UpdateEventRequest, type UpdateEventResponse, type UpdateEventsWithFixedBusinessResourceIdRequest, type UpdateEventsWithFixedBusinessResourceIdResponse, type UpdateScheduleWithFixedBusinessResourceIdRequest, type UpdateScheduleWithFixedBusinessResourceIdResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type ZonedDate, bulkCancelEvent, bulkCreateEvent, bulkUpdateEvent, cancelEvent, createEvent, getEvent, listEvents, listEventsByContactId, listEventsByMemberId, onEventCancelled, onEventCreated, onEventRecurringSplit, onEventUpdated, queryEvents, restoreEventDefaults, splitRecurringEvent, typedQueryEvents, updateEvent };
3062
+ export { type ActionEvent, type Address, type AddressHint, type ApplicationError, type BaseEventMetadata, type BulkActionMetadata, type BulkCancelEventApplicationErrors, type BulkCancelEventOptions, type BulkCancelEventRequest, type BulkCancelEventResponse, type BulkCreateEventOptions, type BulkCreateEventRequest, type BulkCreateEventResponse, type BulkEventResult, type BulkUpdateEventOptions, type BulkUpdateEventRequest, type BulkUpdateEventRequestMaskedEvent, type BulkUpdateEventResponse, type BusinessSchedule, type CancelEventApplicationErrors, type CancelEventOptions, type CancelEventRequest, type CancelEventResponse, type Categories, type ChangeContext, type ChangeContextPayloadOneOf, type CommonCursorPaging, type CommonCursorPagingMetadata, type CommonCursors, type CommonIdentificationData, type CommonIdentificationDataIdOneOf, type CommonQueryWithEntityContext, type ConferencingDetails, type ConsentPolicy, type CreateEventOptions, type CreateEventRequest, type CreateEventResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, Day, DayOfWeek, type DayOfWeekWithLiterals, type DayWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type Event, type EventCancelled, type EventCancelledEnvelope, type EventCreatedEnvelope, type EventMetadata, type EventQuery, type EventQuerySpec, type EventRecurringSplitEnvelope, type EventUpdatedEnvelope, type EventUpdatedWithMetadata, type EventsQueryBuilder, type EventsQueryResult, type ExtendedFields, Field, type FieldWithLiterals, Frequency, type FrequencyWithLiterals, type GeoCoordinates, type GetEventOptions, type GetEventRequest, type GetEventResponse, type IdentificationData, type IdentificationDataIdOneOf, IdentityType, type IdentityTypeWithLiterals, type ItemMetadata, type ListEventsByContactIdOptions, type ListEventsByContactIdRequest, type ListEventsByContactIdResponse, type ListEventsByMemberIdOptions, type ListEventsByMemberIdRequest, type ListEventsByMemberIdResponse, type ListEventsOptions, type ListEventsRequest, type ListEventsResponse, type ListRecurringEventInstancesHistoryRequest, type ListRecurringEventInstancesHistoryResponse, type Locale, type Location, LocationType, type LocationTypeWithLiterals, type MaskedEvent, type MessageEnvelope, type Multilingual, type Participant, type ParticipantNotification, type Participants, ParticipantsStatus, type ParticipantsStatusWithLiterals, type Permission, PlacementType, type PlacementTypeWithLiterals, type Properties, type PropertiesChange, type QueryEventsOptions, type QueryEventsRequest, type QueryEventsResponse, type RecurrenceRule, RecurrenceType, type RecurrenceTypeWithLiterals, type RecurringEventSplit, RequestedFields, type RequestedFieldsWithLiterals, ResolutionMethod, type ResolutionMethodWithLiterals, type Resource, type RestoreEventDefaultsOptions, type RestoreEventDefaultsRequest, type RestoreEventDefaultsResponse, type RestoreInfo, Role, type RoleWithLiterals, type SiteCloned, type SiteCreated, type SitePropertiesEvent, type SitePropertiesNotification, SortOrder, type SortOrderWithLiterals, type Sorting, type SpecialHourPeriod, type SplitRecurringEventOptions, type SplitRecurringEventRequest, type SplitRecurringEventResponse, Status, type StatusWithLiterals, type SupportedLanguage, type TimePeriod, type Translation, Transparency, type TransparencyWithLiterals, Type, type TypeWithLiterals, type UpdateEvent, type UpdateEventOptions, type UpdateEventParticipantsRequest, type UpdateEventParticipantsResponse, type UpdateEventRequest, type UpdateEventResponse, type UpdateEventsWithFixedBusinessResourceIdRequest, type UpdateEventsWithFixedBusinessResourceIdResponse, type UpdateScheduleWithFixedBusinessResourceIdRequest, type UpdateScheduleWithFixedBusinessResourceIdResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type ZonedDate, bulkCancelEvent, bulkCreateEvent, bulkUpdateEvent, cancelEvent, createEvent, getEvent, listEvents, listEventsByContactId, listEventsByMemberId, onEventCancelled, onEventCreated, onEventRecurringSplit, onEventUpdated, queryEvents, restoreEventDefaults, splitRecurringEvent, typedQueryEvents, updateEvent };