@wix/auto_sdk_calendar_events 1.0.31 → 1.0.33
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/{internal → cjs}/index.d.ts +41 -16
- package/build/{internal → cjs}/index.js +8 -8
- package/build/cjs/index.js.map +1 -0
- package/build/{calendar-v3-event-events.universal-oZbWDSxX.d.mts → cjs/index.typings.d.ts} +624 -153
- package/build/cjs/index.typings.js +1294 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/{internal → cjs}/meta.d.ts +2 -1
- package/build/{internal → es}/index.d.mts +41 -16
- package/build/{index.mjs → es/index.mjs} +8 -8
- package/build/es/index.mjs.map +1 -0
- package/build/{calendar-v3-event-events.universal-oZbWDSxX.d.ts → es/index.typings.d.mts} +624 -153
- package/build/es/index.typings.mjs +1241 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/{internal → es}/meta.d.mts +2 -1
- package/build/es/package.json +3 -0
- package/build/{index.d.ts → internal/cjs/index.d.ts} +41 -16
- package/build/{index.js → internal/cjs/index.js} +8 -8
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/{calendar-v3-event-events.universal-oZbWDSxX.d.mts → cjs/index.typings.d.ts} +624 -153
- package/build/internal/cjs/index.typings.js +1294 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/{meta.d.ts → internal/cjs/meta.d.ts} +2 -1
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/{index.d.mts → internal/es/index.d.mts} +41 -16
- package/build/internal/{index.mjs → es/index.mjs} +8 -8
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/{calendar-v3-event-events.universal-oZbWDSxX.d.ts → es/index.typings.d.mts} +624 -153
- package/build/internal/es/index.typings.mjs +1241 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/{meta.d.mts → internal/es/meta.d.mts} +2 -1
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +11 -11
- package/build/index.js.map +0 -1
- package/build/index.mjs.map +0 -1
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs.map +0 -1
- package/build/meta.js.map +0 -1
- package/build/meta.mjs.map +0 -1
- /package/build/{internal → cjs}/meta.js +0 -0
- /package/build/{internal → cjs}/meta.js.map +0 -0
- /package/build/{internal → es}/meta.mjs +0 -0
- /package/build/{internal → es}/meta.mjs.map +0 -0
- /package/build/{meta.js → internal/cjs/meta.js} +0 -0
- /package/build/{meta.mjs → internal/es/meta.mjs} +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { ListEventsByContactIdOptions, ListEventsByContactIdResponse, ListEventsByMemberIdOptions, ListEventsByMemberIdResponse, GetEventOptions, Event, ListEventsOptions, ListEventsResponse, QueryEventsOptions, EventsQueryBuilder, CreateEventOptions, MaskedEvent, BulkCreateEventOptions, BulkCreateEventResponse, UpdateEvent, UpdateEventOptions, BulkUpdateEventRequestMaskedEvent, BulkUpdateEventOptions, BulkUpdateEventResponse, FieldWithLiterals, RestoreEventDefaultsOptions, RestoreEventDefaultsResponse, SplitRecurringEventOptions, SplitRecurringEventResponse, CancelEventOptions, CancelEventResponse, CancelEventApplicationErrors, BulkCancelEventOptions, BulkCancelEventResponse, BulkCancelEventApplicationErrors, EventCancelledEnvelope, EventCreatedEnvelope, EventRecurringSplitEnvelope, EventUpdatedEnvelope } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, Address, AddressHint, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCancelEventRequest, BulkCreateEventRequest, BulkEventResult, BulkUpdateEventRequest, BusinessSchedule, CancelEventRequest, Categories, ChangeContext, ChangeContextPayloadOneOf, CommonCursorPaging, CommonCursorPagingMetadata, CommonCursors, CommonIdentificationData, CommonIdentificationDataIdOneOf, ConferencingDetails, ConsentPolicy, CreateEventRequest, CreateEventResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, Day, DayOfWeek, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventCancelled, EventMetadata, EventUpdatedWithMetadata, EventsQueryResult, ExtendedFields, Field, Frequency, GeoCoordinates, GetEventRequest, GetEventResponse, IdentificationData, IdentificationDataIdOneOf, IdentityType, ItemMetadata, ListEventsByContactIdRequest, ListEventsByMemberIdRequest, ListEventsRequest, ListRecurringEventInstancesHistoryRequest, ListRecurringEventInstancesHistoryResponse, Locale, Location, LocationType, MessageEnvelope, Multilingual, Participant, ParticipantNotification, Participants, ParticipantsStatus, Permission, PlacementType, Properties, PropertiesChange, QueryEventsRequest, QueryEventsResponse, RecurrenceRule, RecurrenceType, RecurringEventSplit, RequestedFields, ResolutionMethod, Resource, RestoreEventDefaultsRequest, RestoreInfo, Role, SiteCloned, SiteCreated, SitePropertiesEvent, SitePropertiesNotification, SortOrder, Sorting, SpecialHourPeriod, SplitRecurringEventRequest, Status, SupportedLanguage, TimePeriod, Translation, Transparency, Type, UpdateEventParticipantsRequest, UpdateEventParticipantsResponse, UpdateEventRequest, UpdateEventResponse, UpdateEventsWithFixedBusinessResourceIdRequest, UpdateEventsWithFixedBusinessResourceIdResponse, UpdateScheduleWithFixedBusinessResourceIdRequest, UpdateScheduleWithFixedBusinessResourceIdResponse, WebhookIdentityType, ZonedDate } from './index.typings.js';
|
|
4
4
|
|
|
5
|
+
type EventNonNullablePaths = `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
6
|
declare function listEventsByContactId$1(httpClient: HttpClient): ListEventsByContactIdSignature;
|
|
6
7
|
interface ListEventsByContactIdSignature {
|
|
7
8
|
/**
|
|
@@ -15,7 +16,9 @@ interface ListEventsByContactIdSignature {
|
|
|
15
16
|
* @param - ID of the [contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)
|
|
16
17
|
* to retrieve events for. Required, unless you provide `cursorPaging`.
|
|
17
18
|
*/
|
|
18
|
-
(contactId: string, options?: ListEventsByContactIdOptions
|
|
19
|
+
(contactId: string, options?: ListEventsByContactIdOptions): Promise<NonNullablePaths<ListEventsByContactIdResponse, {
|
|
20
|
+
[P in EventNonNullablePaths]: `events.${number}.${P}`;
|
|
21
|
+
}[EventNonNullablePaths]>>;
|
|
19
22
|
}
|
|
20
23
|
declare function listEventsByMemberId$1(httpClient: HttpClient): ListEventsByMemberIdSignature;
|
|
21
24
|
interface ListEventsByMemberIdSignature {
|
|
@@ -34,7 +37,9 @@ interface ListEventsByMemberIdSignature {
|
|
|
34
37
|
* [permission scope](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app)
|
|
35
38
|
* to retrieve events for members who aren't the currently logged in member.
|
|
36
39
|
*/
|
|
37
|
-
(memberId: string, options?: ListEventsByMemberIdOptions
|
|
40
|
+
(memberId: string, options?: ListEventsByMemberIdOptions): Promise<NonNullablePaths<ListEventsByMemberIdResponse, {
|
|
41
|
+
[P in EventNonNullablePaths]: `events.${number}.${P}`;
|
|
42
|
+
}[EventNonNullablePaths]>>;
|
|
38
43
|
}
|
|
39
44
|
declare function getEvent$1(httpClient: HttpClient): GetEventSignature;
|
|
40
45
|
interface GetEventSignature {
|
|
@@ -46,7 +51,7 @@ interface GetEventSignature {
|
|
|
46
51
|
* Max: 250 characters
|
|
47
52
|
* @returns Retrieved event.
|
|
48
53
|
*/
|
|
49
|
-
(eventId: string, options?: GetEventOptions
|
|
54
|
+
(eventId: string, options?: GetEventOptions): Promise<NonNullablePaths<Event, EventNonNullablePaths>>;
|
|
50
55
|
}
|
|
51
56
|
declare function listEvents$1(httpClient: HttpClient): ListEventsSignature;
|
|
52
57
|
interface ListEventsSignature {
|
|
@@ -57,7 +62,9 @@ interface ListEventsSignature {
|
|
|
57
62
|
* Min: 1 event ID
|
|
58
63
|
* Min: 100 event IDs
|
|
59
64
|
*/
|
|
60
|
-
(eventIds: string[], options?: ListEventsOptions
|
|
65
|
+
(eventIds: string[], options?: ListEventsOptions): Promise<NonNullablePaths<ListEventsResponse, {
|
|
66
|
+
[P in EventNonNullablePaths]: `events.${number}.${P}`;
|
|
67
|
+
}[EventNonNullablePaths]>>;
|
|
61
68
|
}
|
|
62
69
|
declare function queryEvents$1(httpClient: HttpClient): QueryEventsSignature;
|
|
63
70
|
interface QueryEventsSignature {
|
|
@@ -80,7 +87,7 @@ interface QueryEventsSignature {
|
|
|
80
87
|
* The following `EventsQueryBuilder` functions are supported for the `queryEvents()` function. For a full description of the events object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/events-query-result/items) property in `EventsQueryResult`.
|
|
81
88
|
*
|
|
82
89
|
*/
|
|
83
|
-
(options?: QueryEventsOptions
|
|
90
|
+
(options?: QueryEventsOptions): EventsQueryBuilder;
|
|
84
91
|
}
|
|
85
92
|
declare function createEvent$1(httpClient: HttpClient): CreateEventSignature;
|
|
86
93
|
interface CreateEventSignature {
|
|
@@ -94,7 +101,7 @@ interface CreateEventSignature {
|
|
|
94
101
|
* @param - Event to create.
|
|
95
102
|
* @returns Created event.
|
|
96
103
|
*/
|
|
97
|
-
(event: Event, options?: CreateEventOptions
|
|
104
|
+
(event: NonNullablePaths<Event, `conferencingDetails.guestUrl` | `conferencingDetails.hostUrl` | `conferencingDetails.type` | `end` | `end.localDate` | `location.type` | `participants.list.${number}.name` | `recurrenceRule.days` | `recurrenceRule.frequency` | `recurrenceRule.until.localDate` | `resources.${number}._id` | `scheduleId` | `start` | `start.localDate`>, options?: CreateEventOptions): Promise<NonNullablePaths<Event, EventNonNullablePaths>>;
|
|
98
105
|
}
|
|
99
106
|
declare function bulkCreateEvent$1(httpClient: HttpClient): BulkCreateEventSignature;
|
|
100
107
|
interface BulkCreateEventSignature {
|
|
@@ -114,7 +121,9 @@ interface BulkCreateEventSignature {
|
|
|
114
121
|
* an `INSTANCE` event, which changes its `recurrenceType` to `EXCEPTION`.
|
|
115
122
|
* @param - Events to create.
|
|
116
123
|
*/
|
|
117
|
-
(events: MaskedEvent[], options?: BulkCreateEventOptions
|
|
124
|
+
(events: NonNullablePaths<MaskedEvent, `event` | `event.conferencingDetails.guestUrl` | `event.conferencingDetails.hostUrl` | `event.conferencingDetails.type` | `event.end` | `event.end.localDate` | `event.location.type` | `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`>[], options?: BulkCreateEventOptions): Promise<NonNullablePaths<BulkCreateEventResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
125
|
+
[P in EventNonNullablePaths]: `results.${number}.item.${P}`;
|
|
126
|
+
}[EventNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures`>>;
|
|
118
127
|
}
|
|
119
128
|
declare function updateEvent$1(httpClient: HttpClient): UpdateEventSignature;
|
|
120
129
|
interface UpdateEventSignature {
|
|
@@ -133,7 +142,7 @@ interface UpdateEventSignature {
|
|
|
133
142
|
* @param - Event ID.
|
|
134
143
|
* @returns Updated event.
|
|
135
144
|
*/
|
|
136
|
-
(_id: string, event: UpdateEvent, options?: UpdateEventOptions
|
|
145
|
+
(_id: string, event: NonNullablePaths<UpdateEvent, `conferencingDetails.guestUrl` | `conferencingDetails.hostUrl` | `conferencingDetails.type` | `end.localDate` | `location.type` | `participants.list.${number}.name` | `recurrenceRule.days` | `recurrenceRule.frequency` | `recurrenceRule.until.localDate` | `resources.${number}._id` | `revision` | `start.localDate`>, options?: UpdateEventOptions): Promise<NonNullablePaths<Event, EventNonNullablePaths>>;
|
|
137
146
|
}
|
|
138
147
|
declare function bulkUpdateEvent$1(httpClient: HttpClient): BulkUpdateEventSignature;
|
|
139
148
|
interface BulkUpdateEventSignature {
|
|
@@ -154,7 +163,9 @@ interface BulkUpdateEventSignature {
|
|
|
154
163
|
* Min: 1 event
|
|
155
164
|
* Max: 50 events
|
|
156
165
|
*/
|
|
157
|
-
(events: BulkUpdateEventRequestMaskedEvent[], options?: BulkUpdateEventOptions
|
|
166
|
+
(events: NonNullablePaths<BulkUpdateEventRequestMaskedEvent, `event` | `event._id` | `event.conferencingDetails.guestUrl` | `event.conferencingDetails.hostUrl` | `event.conferencingDetails.type` | `event.end.localDate` | `event.location.type` | `event.participants.list.${number}.name` | `event.recurrenceRule.days` | `event.recurrenceRule.frequency` | `event.recurrenceRule.until.localDate` | `event.resources.${number}._id` | `event.revision` | `event.start.localDate`>[], options?: BulkUpdateEventOptions): Promise<NonNullablePaths<BulkUpdateEventResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
167
|
+
[P in EventNonNullablePaths]: `results.${number}.item.${P}`;
|
|
168
|
+
}[EventNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures`>>;
|
|
158
169
|
}
|
|
159
170
|
declare function restoreEventDefaults$1(httpClient: HttpClient): RestoreEventDefaultsSignature;
|
|
160
171
|
interface RestoreEventDefaultsSignature {
|
|
@@ -179,7 +190,9 @@ interface RestoreEventDefaultsSignature {
|
|
|
179
190
|
*
|
|
180
191
|
* Min: 1 field
|
|
181
192
|
*/
|
|
182
|
-
(eventId: string, fields: FieldWithLiterals[], options?: RestoreEventDefaultsOptions
|
|
193
|
+
(eventId: string, fields: FieldWithLiterals[], options?: RestoreEventDefaultsOptions): Promise<NonNullablePaths<RestoreEventDefaultsResponse, {
|
|
194
|
+
[P in EventNonNullablePaths]: `event.${P}`;
|
|
195
|
+
}[EventNonNullablePaths]>>;
|
|
183
196
|
}
|
|
184
197
|
declare function splitRecurringEvent$1(httpClient: HttpClient): SplitRecurringEventSignature;
|
|
185
198
|
interface SplitRecurringEventSignature {
|
|
@@ -216,7 +229,11 @@ interface SplitRecurringEventSignature {
|
|
|
216
229
|
* `INSTANCE` or `EXCEPTION` event following this next event, as the changes
|
|
217
230
|
* wouldn't affect any event without a subsequent occurrence.
|
|
218
231
|
*/
|
|
219
|
-
(recurringEventId: string, splitLocalDate: string, options?: SplitRecurringEventOptions
|
|
232
|
+
(recurringEventId: string, splitLocalDate: string, options?: SplitRecurringEventOptions): Promise<NonNullablePaths<SplitRecurringEventResponse, {
|
|
233
|
+
[P in EventNonNullablePaths]: `updatedRecurringEventEndingBeforeSplit.${P}`;
|
|
234
|
+
}[EventNonNullablePaths] | {
|
|
235
|
+
[P in EventNonNullablePaths]: `newRecurringEventStartingFromSplit.${P}`;
|
|
236
|
+
}[EventNonNullablePaths]>>;
|
|
220
237
|
}
|
|
221
238
|
declare function cancelEvent$1(httpClient: HttpClient): CancelEventSignature;
|
|
222
239
|
interface CancelEventSignature {
|
|
@@ -224,7 +241,11 @@ interface CancelEventSignature {
|
|
|
224
241
|
* Cancels an event.
|
|
225
242
|
* @param - ID of the event to cancel.
|
|
226
243
|
*/
|
|
227
|
-
(eventId: string, options?: CancelEventOptions
|
|
244
|
+
(eventId: string, options?: CancelEventOptions): Promise<NonNullablePaths<CancelEventResponse, {
|
|
245
|
+
[P in EventNonNullablePaths]: `event.${P}`;
|
|
246
|
+
}[EventNonNullablePaths]> & {
|
|
247
|
+
__applicationErrorsType?: CancelEventApplicationErrors;
|
|
248
|
+
}>;
|
|
228
249
|
}
|
|
229
250
|
declare function bulkCancelEvent$1(httpClient: HttpClient): BulkCancelEventSignature;
|
|
230
251
|
interface BulkCancelEventSignature {
|
|
@@ -232,7 +253,11 @@ interface BulkCancelEventSignature {
|
|
|
232
253
|
* Cancels multiple events in bulk.
|
|
233
254
|
* @param - IDs of the events to cancel.
|
|
234
255
|
*/
|
|
235
|
-
(eventIds: string[], options?: BulkCancelEventOptions
|
|
256
|
+
(eventIds: string[], options?: BulkCancelEventOptions): Promise<NonNullablePaths<BulkCancelEventResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
257
|
+
[P in EventNonNullablePaths]: `results.${number}.item.${P}`;
|
|
258
|
+
}[EventNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures`> & {
|
|
259
|
+
__applicationErrorsType?: BulkCancelEventApplicationErrors;
|
|
260
|
+
}>;
|
|
236
261
|
}
|
|
237
262
|
declare const onEventCancelled$1: EventDefinition<EventCancelledEnvelope, "wix.calendar.v3.event_cancelled">;
|
|
238
263
|
declare const onEventCreated$1: EventDefinition<EventCreatedEnvelope, "wix.calendar.v3.event_created">;
|
|
@@ -787,6 +787,14 @@ var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
|
|
|
787
787
|
IdentityType2["WIX_USER"] = "WIX_USER";
|
|
788
788
|
return IdentityType2;
|
|
789
789
|
})(IdentityType || {});
|
|
790
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
791
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
792
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
793
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
794
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
795
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
796
|
+
return WebhookIdentityType2;
|
|
797
|
+
})(WebhookIdentityType || {});
|
|
790
798
|
var PlacementType = /* @__PURE__ */ ((PlacementType2) => {
|
|
791
799
|
PlacementType2["BEFORE"] = "BEFORE";
|
|
792
800
|
PlacementType2["AFTER"] = "AFTER";
|
|
@@ -809,14 +817,6 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
|
809
817
|
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
810
818
|
return ResolutionMethod2;
|
|
811
819
|
})(ResolutionMethod || {});
|
|
812
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
813
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
814
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
815
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
816
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
817
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
818
|
-
return WebhookIdentityType2;
|
|
819
|
-
})(WebhookIdentityType || {});
|
|
820
820
|
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
821
821
|
RequestedFields2["UNKNOWN_REQUESTED_FIELDS"] = "UNKNOWN_REQUESTED_FIELDS";
|
|
822
822
|
RequestedFields2["PI_FIELDS"] = "PI_FIELDS";
|