@wix/auto_sdk_calendar_events 1.0.48 → 1.0.50
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.
- package/build/cjs/index.d.ts +4 -4
- package/build/cjs/index.js +9 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +109 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +12 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs +9 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +109 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +12 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js +9 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +109 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +12 -2
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.mjs +9 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +109 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +12 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -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,
|
|
@@ -662,6 +662,15 @@ interface ParticipantNotification {
|
|
|
662
662
|
* @maxLength 5000
|
|
663
663
|
*/
|
|
664
664
|
message?: string | null;
|
|
665
|
+
/**
|
|
666
|
+
* Information about the delivery channels used to send the notification.
|
|
667
|
+
* For example, `{"channels": "SMS" }`, `{"channels": "EMAIL" }`, or `{"channels": "EMAIL, SMS" }`.
|
|
668
|
+
*
|
|
669
|
+
* Max: 10 keys
|
|
670
|
+
* Max key length: 64 characters
|
|
671
|
+
* Max value length: 1000 characters
|
|
672
|
+
*/
|
|
673
|
+
metadata?: Record<string, string>;
|
|
665
674
|
}
|
|
666
675
|
/** Deprecated. Use EventUpdated instead, which includes the modified fields and additional metadata. */
|
|
667
676
|
interface EventUpdatedWithMetadata {
|
|
@@ -1981,6 +1990,8 @@ declare function onEventRecurringSplit(handler: (event: EventRecurringSplitEnvel
|
|
|
1981
1990
|
interface EventUpdatedEnvelope {
|
|
1982
1991
|
entity: Event;
|
|
1983
1992
|
metadata: EventMetadata;
|
|
1993
|
+
/** @hidden */
|
|
1994
|
+
modifiedFields: Record<string, any>;
|
|
1984
1995
|
}
|
|
1985
1996
|
/**
|
|
1986
1997
|
* Triggered when an event is updated, including when it's canceled.
|
|
@@ -2362,7 +2373,102 @@ interface EventsQueryBuilder {
|
|
|
2362
2373
|
* @fqn wix.calendar.events.v3.EventsService.QueryEvents
|
|
2363
2374
|
* @requiredField query
|
|
2364
2375
|
*/
|
|
2365
|
-
declare function typedQueryEvents(query:
|
|
2376
|
+
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>>;
|
|
2377
|
+
interface EventQuerySpec extends QuerySpec {
|
|
2378
|
+
paging: 'cursor';
|
|
2379
|
+
wql: [
|
|
2380
|
+
{
|
|
2381
|
+
fields: ['transparency'];
|
|
2382
|
+
operators: ['$eq'];
|
|
2383
|
+
sort: 'NONE';
|
|
2384
|
+
},
|
|
2385
|
+
{
|
|
2386
|
+
fields: [
|
|
2387
|
+
'appId',
|
|
2388
|
+
'externalScheduleId',
|
|
2389
|
+
'location._id',
|
|
2390
|
+
'location.type',
|
|
2391
|
+
'recurringEventId',
|
|
2392
|
+
'scheduleId',
|
|
2393
|
+
'type'
|
|
2394
|
+
];
|
|
2395
|
+
operators: ['$eq', '$in'];
|
|
2396
|
+
sort: 'NONE';
|
|
2397
|
+
},
|
|
2398
|
+
{
|
|
2399
|
+
fields: ['participants.total', 'remainingCapacity'];
|
|
2400
|
+
operators: ['$eq', '$gt', '$gte', '$lt', '$lte', '$ne'];
|
|
2401
|
+
sort: 'NONE';
|
|
2402
|
+
},
|
|
2403
|
+
{
|
|
2404
|
+
fields: ['totalCapacity'];
|
|
2405
|
+
operators: ['$eq', '$exists', '$gt', '$gte', '$lt', '$lte', '$ne'];
|
|
2406
|
+
sort: 'NONE';
|
|
2407
|
+
},
|
|
2408
|
+
{
|
|
2409
|
+
fields: ['resources._id', 'resources.transparency', 'resources.type'];
|
|
2410
|
+
operators: ['$hasAll', '$hasSome'];
|
|
2411
|
+
sort: 'NONE';
|
|
2412
|
+
},
|
|
2413
|
+
{
|
|
2414
|
+
fields: ['conferencingDetails', 'location'];
|
|
2415
|
+
operators: ['$exists'];
|
|
2416
|
+
sort: 'NONE';
|
|
2417
|
+
}
|
|
2418
|
+
];
|
|
2419
|
+
}
|
|
2420
|
+
type CommonQueryWithEntityContext = Query<Event, EventQuerySpec>;
|
|
2421
|
+
type EventQuery = {
|
|
2422
|
+
/**
|
|
2423
|
+
Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`.
|
|
2424
|
+
*/
|
|
2425
|
+
cursorPaging?: {
|
|
2426
|
+
/**
|
|
2427
|
+
Number of events to return.
|
|
2428
|
+
Defaults to `50`. Maximum `1000`.
|
|
2429
|
+
@min: 1,
|
|
2430
|
+
@max: 1000
|
|
2431
|
+
*/
|
|
2432
|
+
limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
|
|
2433
|
+
/**
|
|
2434
|
+
Pointer to the next or previous page in the list of results.
|
|
2435
|
+
|
|
2436
|
+
You can get the relevant cursor token
|
|
2437
|
+
from the `pagingMetadata` object in the previous call's response.
|
|
2438
|
+
Not relevant for the first request.
|
|
2439
|
+
*/
|
|
2440
|
+
cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
|
|
2441
|
+
};
|
|
2442
|
+
/**
|
|
2443
|
+
Filter object.
|
|
2444
|
+
See [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language)
|
|
2445
|
+
for more information.
|
|
2446
|
+
|
|
2447
|
+
Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.
|
|
2448
|
+
|
|
2449
|
+
Do not specify filters for start and end dates inside `query.filter`, instead
|
|
2450
|
+
specify `fromLocalDate` and `toLocalDate`. For a detailed list of supported
|
|
2451
|
+
filters, refer to the [supported filters article](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/supported-filters-and-sorting).
|
|
2452
|
+
*/
|
|
2453
|
+
filter?: CommonQueryWithEntityContext['filter'] | null;
|
|
2454
|
+
/**
|
|
2455
|
+
Whether to sort events by their start date in ascending order or by their end date in descending order.
|
|
2456
|
+
Default is start ascending.
|
|
2457
|
+
@maxSize: 1
|
|
2458
|
+
*/
|
|
2459
|
+
sort?: {
|
|
2460
|
+
/**
|
|
2461
|
+
The field to sort by.
|
|
2462
|
+
Either `start` or `end`.
|
|
2463
|
+
Default is `start`.
|
|
2464
|
+
*/
|
|
2465
|
+
fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
|
|
2466
|
+
/**
|
|
2467
|
+
Sort order.
|
|
2468
|
+
*/
|
|
2469
|
+
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
2470
|
+
}[];
|
|
2471
|
+
};
|
|
2366
2472
|
/**
|
|
2367
2473
|
* Creates an event.
|
|
2368
2474
|
*
|
|
@@ -2962,4 +3068,4 @@ interface BulkCancelEventOptions {
|
|
|
2962
3068
|
timeZone?: string | null;
|
|
2963
3069
|
}
|
|
2964
3070
|
|
|
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 };
|
|
3071
|
+
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 };
|