@wix/auto_sdk_calendar_events 1.0.29 → 1.0.30
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/{calendar-v3-event-events.universal-CLDnUCNu.d.mts → calendar-v3-event-events.universal-Cfq4Piiv.d.mts} +571 -811
- package/build/{calendar-v3-event-events.universal-CLDnUCNu.d.ts → calendar-v3-event-events.universal-Cfq4Piiv.d.ts} +571 -811
- package/build/index.d.mts +3 -39
- package/build/index.d.ts +3 -39
- package/build/index.js +11 -222
- package/build/index.js.map +1 -1
- package/build/index.mjs +11 -220
- package/build/index.mjs.map +1 -1
- package/build/internal/{calendar-v3-event-events.universal-CLDnUCNu.d.mts → calendar-v3-event-events.universal-Cfq4Piiv.d.mts} +571 -811
- package/build/internal/{calendar-v3-event-events.universal-CLDnUCNu.d.ts → calendar-v3-event-events.universal-Cfq4Piiv.d.ts} +571 -811
- package/build/internal/index.d.mts +3 -39
- package/build/internal/index.d.ts +3 -39
- package/build/internal/index.js +11 -222
- package/build/internal/index.js.map +1 -1
- package/build/internal/index.mjs +11 -220
- package/build/internal/index.mjs.map +1 -1
- package/build/internal/meta.d.mts +2 -160
- package/build/internal/meta.d.ts +2 -160
- package/build/internal/meta.js +0 -153
- package/build/internal/meta.js.map +1 -1
- package/build/internal/meta.mjs +0 -151
- package/build/internal/meta.mjs.map +1 -1
- package/build/meta.d.mts +2 -160
- package/build/meta.d.ts +2 -160
- package/build/meta.js +0 -153
- package/build/meta.js.map +1 -1
- package/build/meta.mjs +0 -151
- package/build/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/index.d.mts
CHANGED
|
@@ -1,41 +1,7 @@
|
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { G as GetEventOptions, E as Event, L as ListEventsOptions, a as ListEventsResponse, Q as QueryEventsOptions, b as EventsQueryBuilder, C as CreateEventOptions, M as MaskedEvent, B as BulkCreateEventOptions, c as BulkCreateEventResponse, U as UpdateEvent, d as UpdateEventOptions, e as BulkUpdateEventRequestMaskedEvent, f as BulkUpdateEventOptions, g as BulkUpdateEventResponse, F as FieldWithLiterals, R as RestoreEventDefaultsOptions, h as RestoreEventDefaultsResponse, S as SplitRecurringEventOptions, i as SplitRecurringEventResponse, j as CancelEventOptions, k as CancelEventResponse, l as BulkCancelEventOptions, m as BulkCancelEventResponse, n as EventCancelledEnvelope, o as EventCreatedEnvelope, p as EventRecurringSplitEnvelope, q as EventUpdatedEnvelope } from './calendar-v3-event-events.universal-Cfq4Piiv.mjs';
|
|
3
|
+
export { ag as ActionEvent, aS as Address, aT as AddressHint, aC as ApplicationError, b6 as BaseEventMetadata, aD as BulkActionMetadata, aM as BulkCancelEventRequest, az as BulkCreateEventRequest, aA as BulkEventResult, aG as BulkUpdateEventRequest, aV as BusinessSchedule, aL as CancelEventRequest, aQ as Categories, b0 as ChangeContext, b1 as ChangeContextPayloadOneOf, $ as CommonIdentificationData, a0 as CommonIdentificationDataIdOneOf, Y as ConferencingDetails, a_ as ConsentPolicy, ax as CreateEventRequest, ay as CreateEventResponse, ar as CursorPaging, at as CursorPagingMetadata, ao as CursorQuery, ap as CursorQueryPagingMethodOneOf, au as Cursors, D as Day, H as DayOfWeek, aa as DomainEvent, ab as DomainEventBodyOneOf, b5 as Empty, ac as EntityCreatedEvent, af as EntityDeletedEvent, ae as EntityUpdatedEvent, a3 as EventCancelled, b7 as EventMetadata, a5 as EventUpdatedWithMetadata, b8 as EventsQueryResult, a1 as ExtendedFields, x as Field, t as Frequency, aU as GeoCoordinates, ak as GetEventRequest, al as GetEventResponse, ai as IdentificationData, aj as IdentificationDataIdOneOf, I as IdentityType, aB as ItemMetadata, am as ListEventsRequest, av as ListRecurringEventInstancesHistoryRequest, aw as ListRecurringEventInstancesHistoryResponse, aR as Locale, N as Location, u as LocationType, ah as MessageEnvelope, aY as Multilingual, X as Participant, a4 as ParticipantNotification, V as Participants, P as ParticipantsStatus, _ as Permission, A as PlacementType, aP as Properties, b2 as PropertiesChange, an as QueryEventsRequest, as as QueryEventsResponse, K as RecurrenceRule, s as RecurrenceType, a2 as RecurringEventSplit, y as RequestedFields, J as ResolutionMethod, O as Resource, aJ as RestoreEventDefaultsRequest, ad as RestoreInfo, v as Role, b4 as SiteCloned, b3 as SiteCreated, aO as SitePropertiesEvent, aN as SitePropertiesNotification, z as SortOrder, aq as Sorting, aX as SpecialHourPeriod, aK as SplitRecurringEventRequest, r as Status, aZ as SupportedLanguage, aW as TimePeriod, a$ as Translation, T as Transparency, w as Type, aH as UpdateEventParticipantsRequest, aI as UpdateEventParticipantsResponse, aE as UpdateEventRequest, aF as UpdateEventResponse, a8 as UpdateEventsWithFixedBusinessResourceIdRequest, a9 as UpdateEventsWithFixedBusinessResourceIdResponse, a6 as UpdateScheduleWithFixedBusinessResourceIdRequest, a7 as UpdateScheduleWithFixedBusinessResourceIdResponse, W as WebhookIdentityType, Z as ZonedDate } from './calendar-v3-event-events.universal-Cfq4Piiv.mjs';
|
|
4
4
|
|
|
5
|
-
declare function listEventsByContactId$1(httpClient: HttpClient): ListEventsByContactIdSignature;
|
|
6
|
-
interface ListEventsByContactIdSignature {
|
|
7
|
-
/**
|
|
8
|
-
* Retrieves a list of events filtered by the participant's
|
|
9
|
-
* [contact](https://dev.wix.com/docs/sdk/backend-modules/crm/contacts/introduction)
|
|
10
|
-
* ID.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* You can't set `toLocalDate` to a value that's more than a full year after
|
|
14
|
-
* `fromLocalDate`.
|
|
15
|
-
* @param - ID of the [contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)
|
|
16
|
-
* to retrieve events for. Required, unless you provide `cursorPaging`.
|
|
17
|
-
*/
|
|
18
|
-
(contactId: string, options?: ListEventsByContactIdOptions | undefined): Promise<ListEventsByContactIdResponse>;
|
|
19
|
-
}
|
|
20
|
-
declare function listEventsByMemberId$1(httpClient: HttpClient): ListEventsByMemberIdSignature;
|
|
21
|
-
interface ListEventsByMemberIdSignature {
|
|
22
|
-
/**
|
|
23
|
-
* Retrieves a list of events filtered by the participant's
|
|
24
|
-
* [member](https://dev.wix.com/docs/sdk/backend-modules/members/members/introduction)
|
|
25
|
-
* ID.
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* You can't set `toLocalDate` to a value that's more than a full year after
|
|
29
|
-
* `fromLocalDate`.
|
|
30
|
-
* @param - ID of the [member](https://dev.wix.com/docs/rest/crm/members-contacts/members/members/member-object)
|
|
31
|
-
* to retrieve events for. Required, unless you provide `cursorPaging`.
|
|
32
|
-
* Provide `me` to retrieve events for the currently logged-in member.
|
|
33
|
-
* You must have the `Read Calendars - Including PI`
|
|
34
|
-
* [permission scope](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app)
|
|
35
|
-
* to retrieve events for members who aren't the currently logged in member.
|
|
36
|
-
*/
|
|
37
|
-
(memberId: string, options?: ListEventsByMemberIdOptions | undefined): Promise<ListEventsByMemberIdResponse>;
|
|
38
|
-
}
|
|
39
5
|
declare function getEvent$1(httpClient: HttpClient): GetEventSignature;
|
|
40
6
|
interface GetEventSignature {
|
|
41
7
|
/**
|
|
@@ -239,8 +205,6 @@ declare const onEventCreated$1: EventDefinition<EventCreatedEnvelope, "wix.calen
|
|
|
239
205
|
declare const onEventRecurringSplit$1: EventDefinition<EventRecurringSplitEnvelope, "wix.calendar.v3.event_recurring_split">;
|
|
240
206
|
declare const onEventUpdated$1: EventDefinition<EventUpdatedEnvelope, "wix.calendar.v3.event_updated">;
|
|
241
207
|
|
|
242
|
-
declare const listEventsByContactId: MaybeContext<BuildRESTFunction<typeof listEventsByContactId$1> & typeof listEventsByContactId$1>;
|
|
243
|
-
declare const listEventsByMemberId: MaybeContext<BuildRESTFunction<typeof listEventsByMemberId$1> & typeof listEventsByMemberId$1>;
|
|
244
208
|
declare const getEvent: MaybeContext<BuildRESTFunction<typeof getEvent$1> & typeof getEvent$1>;
|
|
245
209
|
declare const listEvents: MaybeContext<BuildRESTFunction<typeof listEvents$1> & typeof listEvents$1>;
|
|
246
210
|
declare const queryEvents: MaybeContext<BuildRESTFunction<typeof queryEvents$1> & typeof queryEvents$1>;
|
|
@@ -282,4 +246,4 @@ declare const onEventRecurringSplit: BuildEventDefinition<typeof onEventRecurrin
|
|
|
282
246
|
*/
|
|
283
247
|
declare const onEventUpdated: BuildEventDefinition<typeof onEventUpdated$1>;
|
|
284
248
|
|
|
285
|
-
export { BulkCancelEventOptions, BulkCancelEventResponse, BulkCreateEventOptions, BulkCreateEventResponse, BulkUpdateEventOptions, BulkUpdateEventRequestMaskedEvent, BulkUpdateEventResponse, CancelEventOptions, CancelEventResponse, CreateEventOptions, Event, EventCancelledEnvelope, EventCreatedEnvelope, EventRecurringSplitEnvelope, EventUpdatedEnvelope, EventsQueryBuilder, GetEventOptions,
|
|
249
|
+
export { BulkCancelEventOptions, BulkCancelEventResponse, BulkCreateEventOptions, BulkCreateEventResponse, BulkUpdateEventOptions, BulkUpdateEventRequestMaskedEvent, BulkUpdateEventResponse, CancelEventOptions, CancelEventResponse, CreateEventOptions, Event, EventCancelledEnvelope, EventCreatedEnvelope, EventRecurringSplitEnvelope, EventUpdatedEnvelope, EventsQueryBuilder, GetEventOptions, ListEventsOptions, ListEventsResponse, MaskedEvent, QueryEventsOptions, RestoreEventDefaultsOptions, RestoreEventDefaultsResponse, SplitRecurringEventOptions, SplitRecurringEventResponse, UpdateEvent, UpdateEventOptions, bulkCancelEvent, bulkCreateEvent, bulkUpdateEvent, cancelEvent, createEvent, getEvent, listEvents, onEventCancelled, onEventCreated, onEventRecurringSplit, onEventUpdated, queryEvents, restoreEventDefaults, splitRecurringEvent, updateEvent };
|
package/build/index.d.ts
CHANGED
|
@@ -1,41 +1,7 @@
|
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { G as GetEventOptions, E as Event, L as ListEventsOptions, a as ListEventsResponse, Q as QueryEventsOptions, b as EventsQueryBuilder, C as CreateEventOptions, M as MaskedEvent, B as BulkCreateEventOptions, c as BulkCreateEventResponse, U as UpdateEvent, d as UpdateEventOptions, e as BulkUpdateEventRequestMaskedEvent, f as BulkUpdateEventOptions, g as BulkUpdateEventResponse, F as FieldWithLiterals, R as RestoreEventDefaultsOptions, h as RestoreEventDefaultsResponse, S as SplitRecurringEventOptions, i as SplitRecurringEventResponse, j as CancelEventOptions, k as CancelEventResponse, l as BulkCancelEventOptions, m as BulkCancelEventResponse, n as EventCancelledEnvelope, o as EventCreatedEnvelope, p as EventRecurringSplitEnvelope, q as EventUpdatedEnvelope } from './calendar-v3-event-events.universal-Cfq4Piiv.js';
|
|
3
|
+
export { ag as ActionEvent, aS as Address, aT as AddressHint, aC as ApplicationError, b6 as BaseEventMetadata, aD as BulkActionMetadata, aM as BulkCancelEventRequest, az as BulkCreateEventRequest, aA as BulkEventResult, aG as BulkUpdateEventRequest, aV as BusinessSchedule, aL as CancelEventRequest, aQ as Categories, b0 as ChangeContext, b1 as ChangeContextPayloadOneOf, $ as CommonIdentificationData, a0 as CommonIdentificationDataIdOneOf, Y as ConferencingDetails, a_ as ConsentPolicy, ax as CreateEventRequest, ay as CreateEventResponse, ar as CursorPaging, at as CursorPagingMetadata, ao as CursorQuery, ap as CursorQueryPagingMethodOneOf, au as Cursors, D as Day, H as DayOfWeek, aa as DomainEvent, ab as DomainEventBodyOneOf, b5 as Empty, ac as EntityCreatedEvent, af as EntityDeletedEvent, ae as EntityUpdatedEvent, a3 as EventCancelled, b7 as EventMetadata, a5 as EventUpdatedWithMetadata, b8 as EventsQueryResult, a1 as ExtendedFields, x as Field, t as Frequency, aU as GeoCoordinates, ak as GetEventRequest, al as GetEventResponse, ai as IdentificationData, aj as IdentificationDataIdOneOf, I as IdentityType, aB as ItemMetadata, am as ListEventsRequest, av as ListRecurringEventInstancesHistoryRequest, aw as ListRecurringEventInstancesHistoryResponse, aR as Locale, N as Location, u as LocationType, ah as MessageEnvelope, aY as Multilingual, X as Participant, a4 as ParticipantNotification, V as Participants, P as ParticipantsStatus, _ as Permission, A as PlacementType, aP as Properties, b2 as PropertiesChange, an as QueryEventsRequest, as as QueryEventsResponse, K as RecurrenceRule, s as RecurrenceType, a2 as RecurringEventSplit, y as RequestedFields, J as ResolutionMethod, O as Resource, aJ as RestoreEventDefaultsRequest, ad as RestoreInfo, v as Role, b4 as SiteCloned, b3 as SiteCreated, aO as SitePropertiesEvent, aN as SitePropertiesNotification, z as SortOrder, aq as Sorting, aX as SpecialHourPeriod, aK as SplitRecurringEventRequest, r as Status, aZ as SupportedLanguage, aW as TimePeriod, a$ as Translation, T as Transparency, w as Type, aH as UpdateEventParticipantsRequest, aI as UpdateEventParticipantsResponse, aE as UpdateEventRequest, aF as UpdateEventResponse, a8 as UpdateEventsWithFixedBusinessResourceIdRequest, a9 as UpdateEventsWithFixedBusinessResourceIdResponse, a6 as UpdateScheduleWithFixedBusinessResourceIdRequest, a7 as UpdateScheduleWithFixedBusinessResourceIdResponse, W as WebhookIdentityType, Z as ZonedDate } from './calendar-v3-event-events.universal-Cfq4Piiv.js';
|
|
4
4
|
|
|
5
|
-
declare function listEventsByContactId$1(httpClient: HttpClient): ListEventsByContactIdSignature;
|
|
6
|
-
interface ListEventsByContactIdSignature {
|
|
7
|
-
/**
|
|
8
|
-
* Retrieves a list of events filtered by the participant's
|
|
9
|
-
* [contact](https://dev.wix.com/docs/sdk/backend-modules/crm/contacts/introduction)
|
|
10
|
-
* ID.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* You can't set `toLocalDate` to a value that's more than a full year after
|
|
14
|
-
* `fromLocalDate`.
|
|
15
|
-
* @param - ID of the [contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)
|
|
16
|
-
* to retrieve events for. Required, unless you provide `cursorPaging`.
|
|
17
|
-
*/
|
|
18
|
-
(contactId: string, options?: ListEventsByContactIdOptions | undefined): Promise<ListEventsByContactIdResponse>;
|
|
19
|
-
}
|
|
20
|
-
declare function listEventsByMemberId$1(httpClient: HttpClient): ListEventsByMemberIdSignature;
|
|
21
|
-
interface ListEventsByMemberIdSignature {
|
|
22
|
-
/**
|
|
23
|
-
* Retrieves a list of events filtered by the participant's
|
|
24
|
-
* [member](https://dev.wix.com/docs/sdk/backend-modules/members/members/introduction)
|
|
25
|
-
* ID.
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* You can't set `toLocalDate` to a value that's more than a full year after
|
|
29
|
-
* `fromLocalDate`.
|
|
30
|
-
* @param - ID of the [member](https://dev.wix.com/docs/rest/crm/members-contacts/members/members/member-object)
|
|
31
|
-
* to retrieve events for. Required, unless you provide `cursorPaging`.
|
|
32
|
-
* Provide `me` to retrieve events for the currently logged-in member.
|
|
33
|
-
* You must have the `Read Calendars - Including PI`
|
|
34
|
-
* [permission scope](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app)
|
|
35
|
-
* to retrieve events for members who aren't the currently logged in member.
|
|
36
|
-
*/
|
|
37
|
-
(memberId: string, options?: ListEventsByMemberIdOptions | undefined): Promise<ListEventsByMemberIdResponse>;
|
|
38
|
-
}
|
|
39
5
|
declare function getEvent$1(httpClient: HttpClient): GetEventSignature;
|
|
40
6
|
interface GetEventSignature {
|
|
41
7
|
/**
|
|
@@ -239,8 +205,6 @@ declare const onEventCreated$1: EventDefinition<EventCreatedEnvelope, "wix.calen
|
|
|
239
205
|
declare const onEventRecurringSplit$1: EventDefinition<EventRecurringSplitEnvelope, "wix.calendar.v3.event_recurring_split">;
|
|
240
206
|
declare const onEventUpdated$1: EventDefinition<EventUpdatedEnvelope, "wix.calendar.v3.event_updated">;
|
|
241
207
|
|
|
242
|
-
declare const listEventsByContactId: MaybeContext<BuildRESTFunction<typeof listEventsByContactId$1> & typeof listEventsByContactId$1>;
|
|
243
|
-
declare const listEventsByMemberId: MaybeContext<BuildRESTFunction<typeof listEventsByMemberId$1> & typeof listEventsByMemberId$1>;
|
|
244
208
|
declare const getEvent: MaybeContext<BuildRESTFunction<typeof getEvent$1> & typeof getEvent$1>;
|
|
245
209
|
declare const listEvents: MaybeContext<BuildRESTFunction<typeof listEvents$1> & typeof listEvents$1>;
|
|
246
210
|
declare const queryEvents: MaybeContext<BuildRESTFunction<typeof queryEvents$1> & typeof queryEvents$1>;
|
|
@@ -282,4 +246,4 @@ declare const onEventRecurringSplit: BuildEventDefinition<typeof onEventRecurrin
|
|
|
282
246
|
*/
|
|
283
247
|
declare const onEventUpdated: BuildEventDefinition<typeof onEventUpdated$1>;
|
|
284
248
|
|
|
285
|
-
export { BulkCancelEventOptions, BulkCancelEventResponse, BulkCreateEventOptions, BulkCreateEventResponse, BulkUpdateEventOptions, BulkUpdateEventRequestMaskedEvent, BulkUpdateEventResponse, CancelEventOptions, CancelEventResponse, CreateEventOptions, Event, EventCancelledEnvelope, EventCreatedEnvelope, EventRecurringSplitEnvelope, EventUpdatedEnvelope, EventsQueryBuilder, GetEventOptions,
|
|
249
|
+
export { BulkCancelEventOptions, BulkCancelEventResponse, BulkCreateEventOptions, BulkCreateEventResponse, BulkUpdateEventOptions, BulkUpdateEventRequestMaskedEvent, BulkUpdateEventResponse, CancelEventOptions, CancelEventResponse, CreateEventOptions, Event, EventCancelledEnvelope, EventCreatedEnvelope, EventRecurringSplitEnvelope, EventUpdatedEnvelope, EventsQueryBuilder, GetEventOptions, ListEventsOptions, ListEventsResponse, MaskedEvent, QueryEventsOptions, RestoreEventDefaultsOptions, RestoreEventDefaultsResponse, SplitRecurringEventOptions, SplitRecurringEventResponse, UpdateEvent, UpdateEventOptions, bulkCancelEvent, bulkCreateEvent, bulkUpdateEvent, cancelEvent, createEvent, getEvent, listEvents, onEventCancelled, onEventCreated, onEventRecurringSplit, onEventUpdated, queryEvents, restoreEventDefaults, splitRecurringEvent, updateEvent };
|
package/build/index.js
CHANGED
|
@@ -44,8 +44,6 @@ __export(index_exports, {
|
|
|
44
44
|
createEvent: () => createEvent4,
|
|
45
45
|
getEvent: () => getEvent4,
|
|
46
46
|
listEvents: () => listEvents4,
|
|
47
|
-
listEventsByContactId: () => listEventsByContactId4,
|
|
48
|
-
listEventsByMemberId: () => listEventsByMemberId4,
|
|
49
47
|
onEventCancelled: () => onEventCancelled2,
|
|
50
48
|
onEventCreated: () => onEventCreated2,
|
|
51
49
|
onEventRecurringSplit: () => onEventRecurringSplit2,
|
|
@@ -130,120 +128,7 @@ function resolveWixCalendarEventsV3EventsServiceUrl(opts) {
|
|
|
130
128
|
};
|
|
131
129
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
132
130
|
}
|
|
133
|
-
function resolveWixCalendarParticipanteventsV3ParticipantEventsServiceUrl(opts) {
|
|
134
|
-
const domainToMappings = {
|
|
135
|
-
"api._api_base_domain_": [
|
|
136
|
-
{
|
|
137
|
-
srcPath: "/participant-events-3",
|
|
138
|
-
destPath: ""
|
|
139
|
-
}
|
|
140
|
-
],
|
|
141
|
-
"manage._base_domain_": [
|
|
142
|
-
{
|
|
143
|
-
srcPath: "/_api/calendar/v3/events/memberId",
|
|
144
|
-
destPath: "/v3/events/memberId"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
srcPath: "/_api/calendar/v3/events/contactId",
|
|
148
|
-
destPath: "/v3/events/contactId"
|
|
149
|
-
}
|
|
150
|
-
],
|
|
151
|
-
"www.wixapis.com": [
|
|
152
|
-
{
|
|
153
|
-
srcPath: "/calendar/v3/events/contactId",
|
|
154
|
-
destPath: "/v3/events/contactId"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
srcPath: "/calendar/v3/events/memberId",
|
|
158
|
-
destPath: "/v3/events/memberId"
|
|
159
|
-
}
|
|
160
|
-
],
|
|
161
|
-
_: [
|
|
162
|
-
{
|
|
163
|
-
srcPath: "/_api/calendar/v3/events/memberId",
|
|
164
|
-
destPath: "/v3/events/memberId"
|
|
165
|
-
}
|
|
166
|
-
],
|
|
167
|
-
"*.dev.wix-code.com": [
|
|
168
|
-
{
|
|
169
|
-
srcPath: "/_api/calendar/v3/events/memberId",
|
|
170
|
-
destPath: "/v3/events/memberId"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
srcPath: "/_api/calendar/v3/events/contactId",
|
|
174
|
-
destPath: "/v3/events/contactId"
|
|
175
|
-
}
|
|
176
|
-
]
|
|
177
|
-
};
|
|
178
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
179
|
-
}
|
|
180
131
|
var PACKAGE_NAME = "@wix/auto_sdk_calendar_events";
|
|
181
|
-
function listEventsByContactId(payload) {
|
|
182
|
-
function __listEventsByContactId({ host }) {
|
|
183
|
-
const metadata = {
|
|
184
|
-
entityFqdn: "wix.calendar.v3.event",
|
|
185
|
-
method: "GET",
|
|
186
|
-
methodFqn: "wix.calendar.participantevents.v3.ParticipantEventsService.ListEventsByContactId",
|
|
187
|
-
packageName: PACKAGE_NAME,
|
|
188
|
-
url: resolveWixCalendarParticipanteventsV3ParticipantEventsServiceUrl({
|
|
189
|
-
protoPath: "/v3/events/contactId/{contactId}",
|
|
190
|
-
data: payload,
|
|
191
|
-
host
|
|
192
|
-
}),
|
|
193
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
194
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
195
|
-
{
|
|
196
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
197
|
-
paths: [
|
|
198
|
-
{ path: "events.createdDate" },
|
|
199
|
-
{ path: "events.updatedDate" },
|
|
200
|
-
{ path: "events.start.utcDate" },
|
|
201
|
-
{ path: "events.end.utcDate" },
|
|
202
|
-
{ path: "events.adjustedStart.utcDate" },
|
|
203
|
-
{ path: "events.adjustedEnd.utcDate" },
|
|
204
|
-
{ path: "events.recurrenceRule.until.utcDate" },
|
|
205
|
-
{ path: "events.recurrenceRule.adjustedUntil.utcDate" }
|
|
206
|
-
]
|
|
207
|
-
}
|
|
208
|
-
])
|
|
209
|
-
};
|
|
210
|
-
return metadata;
|
|
211
|
-
}
|
|
212
|
-
return __listEventsByContactId;
|
|
213
|
-
}
|
|
214
|
-
function listEventsByMemberId(payload) {
|
|
215
|
-
function __listEventsByMemberId({ host }) {
|
|
216
|
-
const metadata = {
|
|
217
|
-
entityFqdn: "wix.calendar.v3.event",
|
|
218
|
-
method: "GET",
|
|
219
|
-
methodFqn: "wix.calendar.participantevents.v3.ParticipantEventsService.ListEventsByMemberId",
|
|
220
|
-
packageName: PACKAGE_NAME,
|
|
221
|
-
url: resolveWixCalendarParticipanteventsV3ParticipantEventsServiceUrl({
|
|
222
|
-
protoPath: "/v3/events/memberId/{memberId}",
|
|
223
|
-
data: payload,
|
|
224
|
-
host
|
|
225
|
-
}),
|
|
226
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
227
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
228
|
-
{
|
|
229
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
230
|
-
paths: [
|
|
231
|
-
{ path: "events.createdDate" },
|
|
232
|
-
{ path: "events.updatedDate" },
|
|
233
|
-
{ path: "events.start.utcDate" },
|
|
234
|
-
{ path: "events.end.utcDate" },
|
|
235
|
-
{ path: "events.adjustedStart.utcDate" },
|
|
236
|
-
{ path: "events.adjustedEnd.utcDate" },
|
|
237
|
-
{ path: "events.recurrenceRule.until.utcDate" },
|
|
238
|
-
{ path: "events.recurrenceRule.adjustedUntil.utcDate" }
|
|
239
|
-
]
|
|
240
|
-
}
|
|
241
|
-
])
|
|
242
|
-
};
|
|
243
|
-
return metadata;
|
|
244
|
-
}
|
|
245
|
-
return __listEventsByMemberId;
|
|
246
|
-
}
|
|
247
132
|
function getEvent(payload) {
|
|
248
133
|
function __getEvent({ host }) {
|
|
249
134
|
const metadata = {
|
|
@@ -795,6 +680,17 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
795
680
|
WebhookIdentityType2["APP"] = "APP";
|
|
796
681
|
return WebhookIdentityType2;
|
|
797
682
|
})(WebhookIdentityType || {});
|
|
683
|
+
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
684
|
+
RequestedFields2["UNKNOWN_REQUESTED_FIELDS"] = "UNKNOWN_REQUESTED_FIELDS";
|
|
685
|
+
RequestedFields2["PI_FIELDS"] = "PI_FIELDS";
|
|
686
|
+
RequestedFields2["OWN_PI_FIELDS"] = "OWN_PI_FIELDS";
|
|
687
|
+
return RequestedFields2;
|
|
688
|
+
})(RequestedFields || {});
|
|
689
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
690
|
+
SortOrder2["ASC"] = "ASC";
|
|
691
|
+
SortOrder2["DESC"] = "DESC";
|
|
692
|
+
return SortOrder2;
|
|
693
|
+
})(SortOrder || {});
|
|
798
694
|
var PlacementType = /* @__PURE__ */ ((PlacementType2) => {
|
|
799
695
|
PlacementType2["BEFORE"] = "BEFORE";
|
|
800
696
|
PlacementType2["AFTER"] = "AFTER";
|
|
@@ -817,93 +713,6 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
|
817
713
|
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
818
714
|
return ResolutionMethod2;
|
|
819
715
|
})(ResolutionMethod || {});
|
|
820
|
-
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
821
|
-
RequestedFields2["UNKNOWN_REQUESTED_FIELDS"] = "UNKNOWN_REQUESTED_FIELDS";
|
|
822
|
-
RequestedFields2["PI_FIELDS"] = "PI_FIELDS";
|
|
823
|
-
RequestedFields2["OWN_PI_FIELDS"] = "OWN_PI_FIELDS";
|
|
824
|
-
return RequestedFields2;
|
|
825
|
-
})(RequestedFields || {});
|
|
826
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
827
|
-
SortOrder2["ASC"] = "ASC";
|
|
828
|
-
SortOrder2["DESC"] = "DESC";
|
|
829
|
-
return SortOrder2;
|
|
830
|
-
})(SortOrder || {});
|
|
831
|
-
async function listEventsByContactId2(contactId, options) {
|
|
832
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
833
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
834
|
-
contactId,
|
|
835
|
-
fromLocalDate: options?.fromLocalDate,
|
|
836
|
-
toLocalDate: options?.toLocalDate,
|
|
837
|
-
timeZone: options?.timeZone,
|
|
838
|
-
appId: options?.appId,
|
|
839
|
-
cursorPaging: options?.cursorPaging
|
|
840
|
-
});
|
|
841
|
-
const reqOpts = listEventsByContactId(payload);
|
|
842
|
-
sideEffects?.onSiteCall?.();
|
|
843
|
-
try {
|
|
844
|
-
const result = await httpClient.request(reqOpts);
|
|
845
|
-
sideEffects?.onSuccess?.(result);
|
|
846
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
847
|
-
} catch (err) {
|
|
848
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
849
|
-
err,
|
|
850
|
-
{
|
|
851
|
-
spreadPathsToArguments: {},
|
|
852
|
-
explicitPathsToArguments: {
|
|
853
|
-
contactId: "$[0]",
|
|
854
|
-
fromLocalDate: "$[1].fromLocalDate",
|
|
855
|
-
toLocalDate: "$[1].toLocalDate",
|
|
856
|
-
timeZone: "$[1].timeZone",
|
|
857
|
-
appId: "$[1].appId",
|
|
858
|
-
cursorPaging: "$[1].cursorPaging"
|
|
859
|
-
},
|
|
860
|
-
singleArgumentUnchanged: false
|
|
861
|
-
},
|
|
862
|
-
["contactId", "options"]
|
|
863
|
-
);
|
|
864
|
-
sideEffects?.onError?.(err);
|
|
865
|
-
throw transformedError;
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
async function listEventsByMemberId2(memberId, options) {
|
|
869
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
870
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
871
|
-
memberId,
|
|
872
|
-
fromLocalDate: options?.fromLocalDate,
|
|
873
|
-
toLocalDate: options?.toLocalDate,
|
|
874
|
-
timeZone: options?.timeZone,
|
|
875
|
-
appId: options?.appId,
|
|
876
|
-
cursorPaging: options?.cursorPaging,
|
|
877
|
-
eventIds: options?.eventIds
|
|
878
|
-
});
|
|
879
|
-
const reqOpts = listEventsByMemberId(payload);
|
|
880
|
-
sideEffects?.onSiteCall?.();
|
|
881
|
-
try {
|
|
882
|
-
const result = await httpClient.request(reqOpts);
|
|
883
|
-
sideEffects?.onSuccess?.(result);
|
|
884
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
885
|
-
} catch (err) {
|
|
886
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
887
|
-
err,
|
|
888
|
-
{
|
|
889
|
-
spreadPathsToArguments: {},
|
|
890
|
-
explicitPathsToArguments: {
|
|
891
|
-
memberId: "$[0]",
|
|
892
|
-
fromLocalDate: "$[1].fromLocalDate",
|
|
893
|
-
toLocalDate: "$[1].toLocalDate",
|
|
894
|
-
timeZone: "$[1].timeZone",
|
|
895
|
-
appId: "$[1].appId",
|
|
896
|
-
cursorPaging: "$[1].cursorPaging",
|
|
897
|
-
eventIds: "$[1].eventIds"
|
|
898
|
-
},
|
|
899
|
-
singleArgumentUnchanged: false
|
|
900
|
-
},
|
|
901
|
-
["memberId", "options"]
|
|
902
|
-
);
|
|
903
|
-
sideEffects?.onError?.(err);
|
|
904
|
-
throw transformedError;
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
716
|
async function getEvent2(eventId, options) {
|
|
908
717
|
const { httpClient, sideEffects } = arguments[2];
|
|
909
718
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1270,22 +1079,6 @@ async function bulkCancelEvent2(eventIds, options) {
|
|
|
1270
1079
|
}
|
|
1271
1080
|
|
|
1272
1081
|
// src/calendar-v3-event-events.public.ts
|
|
1273
|
-
function listEventsByContactId3(httpClient) {
|
|
1274
|
-
return (contactId, options) => listEventsByContactId2(
|
|
1275
|
-
contactId,
|
|
1276
|
-
options,
|
|
1277
|
-
// @ts-ignore
|
|
1278
|
-
{ httpClient }
|
|
1279
|
-
);
|
|
1280
|
-
}
|
|
1281
|
-
function listEventsByMemberId3(httpClient) {
|
|
1282
|
-
return (memberId, options) => listEventsByMemberId2(
|
|
1283
|
-
memberId,
|
|
1284
|
-
options,
|
|
1285
|
-
// @ts-ignore
|
|
1286
|
-
{ httpClient }
|
|
1287
|
-
);
|
|
1288
|
-
}
|
|
1289
1082
|
function getEvent3(httpClient) {
|
|
1290
1083
|
return (eventId, options) => getEvent2(
|
|
1291
1084
|
eventId,
|
|
@@ -1494,8 +1287,6 @@ var onEventUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
1494
1287
|
// src/calendar-v3-event-events.context.ts
|
|
1495
1288
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
1496
1289
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
1497
|
-
var listEventsByContactId4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listEventsByContactId3);
|
|
1498
|
-
var listEventsByMemberId4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listEventsByMemberId3);
|
|
1499
1290
|
var getEvent4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getEvent3);
|
|
1500
1291
|
var listEvents4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listEvents3);
|
|
1501
1292
|
var queryEvents4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryEvents3);
|
|
@@ -1537,8 +1328,6 @@ var onEventUpdated2 = (0, import_event_definition_modules.createEventModule)(onE
|
|
|
1537
1328
|
createEvent,
|
|
1538
1329
|
getEvent,
|
|
1539
1330
|
listEvents,
|
|
1540
|
-
listEventsByContactId,
|
|
1541
|
-
listEventsByMemberId,
|
|
1542
1331
|
onEventCancelled,
|
|
1543
1332
|
onEventCreated,
|
|
1544
1333
|
onEventRecurringSplit,
|