@wix/auto_sdk_calendar_events 1.0.40 → 1.0.42
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 +12 -29
- package/build/cjs/index.js +47 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +11 -9
- package/build/cjs/index.typings.js +28 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -4
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +12 -29
- package/build/es/index.mjs +47 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +11 -9
- package/build/es/index.typings.mjs +27 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -4
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +12 -29
- package/build/internal/cjs/index.js +47 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +11 -9
- package/build/internal/cjs/index.typings.js +28 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +2 -4
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +12 -29
- package/build/internal/es/index.mjs +47 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +11 -9
- package/build/internal/es/index.typings.mjs +27 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +2 -4
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1445,16 +1445,14 @@ interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
1445
1445
|
cursorPaging?: CursorPaging;
|
|
1446
1446
|
/**
|
|
1447
1447
|
* Filter object.
|
|
1448
|
-
* See API Query Language
|
|
1449
|
-
* ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language) | [REST](https://dev.wix.com/api/rest/getting-started/api-query-language))
|
|
1448
|
+
* See [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language)
|
|
1450
1449
|
* for more information.
|
|
1451
1450
|
*
|
|
1452
1451
|
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.
|
|
1453
1452
|
*
|
|
1454
1453
|
* Do not specify filters for start and end dates inside `query.filter`, instead
|
|
1455
1454
|
* specify `fromLocalDate` and `toLocalDate`. For a detailed list of supported
|
|
1456
|
-
* filters, refer to the supported filters article
|
|
1457
|
-
* ([REST](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/supported-filters-and-sorting)).
|
|
1455
|
+
* filters, refer to the [supported filters article](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/supported-filters-and-sorting).
|
|
1458
1456
|
*/
|
|
1459
1457
|
filter?: Record<string, any> | null;
|
|
1460
1458
|
/**
|
|
@@ -2359,6 +2357,12 @@ interface EventsQueryBuilder {
|
|
|
2359
2357
|
skipTo: (cursor: string) => EventsQueryBuilder;
|
|
2360
2358
|
find: () => Promise<EventsQueryResult>;
|
|
2361
2359
|
}
|
|
2360
|
+
/**
|
|
2361
|
+
* @hidden
|
|
2362
|
+
* @fqn wix.calendar.events.v3.EventsService.QueryEvents
|
|
2363
|
+
* @requiredField query
|
|
2364
|
+
*/
|
|
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>>;
|
|
2362
2366
|
/**
|
|
2363
2367
|
* Creates an event.
|
|
2364
2368
|
*
|
|
@@ -2374,7 +2378,6 @@ interface EventsQueryBuilder {
|
|
|
2374
2378
|
* @requiredField event.conferencingDetails.type
|
|
2375
2379
|
* @requiredField event.end
|
|
2376
2380
|
* @requiredField event.end.localDate
|
|
2377
|
-
* @requiredField event.location.type
|
|
2378
2381
|
* @requiredField event.participants.list.name
|
|
2379
2382
|
* @requiredField event.recurrenceRule.days
|
|
2380
2383
|
* @requiredField event.recurrenceRule.frequency
|
|
@@ -2389,7 +2392,7 @@ interface EventsQueryBuilder {
|
|
|
2389
2392
|
* @returns Created event.
|
|
2390
2393
|
* @fqn wix.calendar.events.v3.EventsService.CreateEvent
|
|
2391
2394
|
*/
|
|
2392
|
-
declare function createEvent(event: NonNullablePaths<Event, `conferencingDetails.guestUrl` | `conferencingDetails.hostUrl` | `conferencingDetails.type` | `end` | `end.localDate` | `
|
|
2395
|
+
declare function createEvent(event: NonNullablePaths<Event, `conferencingDetails.guestUrl` | `conferencingDetails.hostUrl` | `conferencingDetails.type` | `end` | `end.localDate` | `participants.list.${number}.name` | `recurrenceRule.days` | `recurrenceRule.frequency` | `recurrenceRule.until.localDate` | `resources.${number}._id` | `scheduleId` | `start` | `start.localDate`, 5>, options?: CreateEventOptions): Promise<NonNullablePaths<Event, `status` | `recurrenceType` | `recurrenceRule.frequency` | `recurrenceRule.days` | `transparency` | `location.type` | `resources` | `resources.${number}.transparency` | `resources.${number}.permissionRole` | `participants.list` | `participants.status` | `conferencingDetails.type` | `inheritedFields` | `permissions` | `permissions.${number}.identity.wixUserId` | `permissions.${number}.role`, 5>>;
|
|
2393
2396
|
interface CreateEventOptions {
|
|
2394
2397
|
/**
|
|
2395
2398
|
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
@@ -2429,7 +2432,6 @@ interface CreateEventOptions {
|
|
|
2429
2432
|
* @requiredField events.event.conferencingDetails.type
|
|
2430
2433
|
* @requiredField events.event.end
|
|
2431
2434
|
* @requiredField events.event.end.localDate
|
|
2432
|
-
* @requiredField events.event.location.type
|
|
2433
2435
|
* @requiredField events.event.participants.list.name
|
|
2434
2436
|
* @requiredField events.event.recurrenceRule.days
|
|
2435
2437
|
* @requiredField events.event.recurrenceRule.frequency
|
|
@@ -2443,7 +2445,7 @@ interface CreateEventOptions {
|
|
|
2443
2445
|
* @applicableIdentity APP
|
|
2444
2446
|
* @fqn wix.calendar.events.v3.EventsService.BulkCreateEvent
|
|
2445
2447
|
*/
|
|
2446
|
-
declare function bulkCreateEvent(events: NonNullablePaths<MaskedEvent, `event` | `event.conferencingDetails.guestUrl` | `event.conferencingDetails.hostUrl` | `event.conferencingDetails.type` | `event.end` | `event.end.localDate` | `event.
|
|
2448
|
+
declare function bulkCreateEvent(events: NonNullablePaths<MaskedEvent, `event` | `event.conferencingDetails.guestUrl` | `event.conferencingDetails.hostUrl` | `event.conferencingDetails.type` | `event.end` | `event.end.localDate` | `event.participants.list.${number}.name` | `event.recurrenceRule.days` | `event.recurrenceRule.frequency` | `event.recurrenceRule.until.localDate` | `event.resources.${number}._id` | `event.scheduleId` | `event.start` | `event.start.localDate`, 6>[], options?: BulkCreateEventOptions): Promise<NonNullablePaths<BulkCreateEventResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.status` | `results.${number}.item.recurrenceType` | `results.${number}.item.recurrenceRule.frequency` | `results.${number}.item.transparency` | `results.${number}.item.location.type` | `results.${number}.item.participants.status` | `results.${number}.item.conferencingDetails.type` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures`, 6>>;
|
|
2447
2449
|
interface BulkCreateEventOptions {
|
|
2448
2450
|
/**
|
|
2449
2451
|
* Whether to return created events.
|
|
@@ -2958,4 +2960,4 @@ interface BulkCancelEventOptions {
|
|
|
2958
2960
|
timeZone?: string | null;
|
|
2959
2961
|
}
|
|
2960
2962
|
|
|
2961
|
-
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, updateEvent };
|
|
2963
|
+
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 };
|
|
@@ -49,6 +49,7 @@ __export(index_typings_exports, {
|
|
|
49
49
|
queryEvents: () => queryEvents2,
|
|
50
50
|
restoreEventDefaults: () => restoreEventDefaults2,
|
|
51
51
|
splitRecurringEvent: () => splitRecurringEvent2,
|
|
52
|
+
typedQueryEvents: () => typedQueryEvents,
|
|
52
53
|
updateEvent: () => updateEvent2
|
|
53
54
|
});
|
|
54
55
|
module.exports = __toCommonJS(index_typings_exports);
|
|
@@ -1047,6 +1048,32 @@ function queryEvents2(options) {
|
|
|
1047
1048
|
}
|
|
1048
1049
|
);
|
|
1049
1050
|
}
|
|
1051
|
+
async function typedQueryEvents(query, options) {
|
|
1052
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1053
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1054
|
+
query,
|
|
1055
|
+
...options
|
|
1056
|
+
});
|
|
1057
|
+
const reqOpts = queryEvents(payload);
|
|
1058
|
+
sideEffects?.onSiteCall?.();
|
|
1059
|
+
try {
|
|
1060
|
+
const result = await httpClient.request(reqOpts);
|
|
1061
|
+
sideEffects?.onSuccess?.(result);
|
|
1062
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1063
|
+
} catch (err) {
|
|
1064
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1065
|
+
err,
|
|
1066
|
+
{
|
|
1067
|
+
spreadPathsToArguments: {},
|
|
1068
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
1069
|
+
singleArgumentUnchanged: false
|
|
1070
|
+
},
|
|
1071
|
+
["query", "options"]
|
|
1072
|
+
);
|
|
1073
|
+
sideEffects?.onError?.(err);
|
|
1074
|
+
throw transformedError;
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1050
1077
|
async function createEvent2(event, options) {
|
|
1051
1078
|
const { httpClient, sideEffects } = arguments[2];
|
|
1052
1079
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1332,6 +1359,7 @@ async function bulkCancelEvent2(eventIds, options) {
|
|
|
1332
1359
|
queryEvents,
|
|
1333
1360
|
restoreEventDefaults,
|
|
1334
1361
|
splitRecurringEvent,
|
|
1362
|
+
typedQueryEvents,
|
|
1335
1363
|
updateEvent
|
|
1336
1364
|
});
|
|
1337
1365
|
//# sourceMappingURL=index.typings.js.map
|