@wix/auto_sdk_calendar_events 1.0.30 → 1.0.32
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-Cfq4Piiv.d.mts → cjs/calendar-v3-event-events.universal-CLDnUCNu.d.ts} +728 -488
- package/build/{internal → cjs}/index.d.ts +39 -3
- package/build/{internal → cjs}/index.js +222 -11
- package/build/cjs/index.js.map +1 -0
- package/build/{internal → cjs}/meta.d.ts +160 -2
- package/build/{meta.js → cjs/meta.js} +153 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/{calendar-v3-event-events.universal-Cfq4Piiv.d.ts → es/calendar-v3-event-events.universal-CLDnUCNu.d.mts} +728 -488
- package/build/{internal → es}/index.d.mts +39 -3
- package/build/{internal → es}/index.mjs +220 -11
- package/build/es/index.mjs.map +1 -0
- package/build/{internal → es}/meta.d.mts +160 -2
- package/build/{internal → es}/meta.mjs +151 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/{calendar-v3-event-events.universal-Cfq4Piiv.d.mts → cjs/calendar-v3-event-events.universal-CLDnUCNu.d.ts} +728 -488
- package/build/{index.d.ts → internal/cjs/index.d.ts} +39 -3
- package/build/{index.js → internal/cjs/index.js} +222 -11
- package/build/internal/cjs/index.js.map +1 -0
- package/build/{meta.d.ts → internal/cjs/meta.d.ts} +160 -2
- package/build/internal/{meta.js → cjs/meta.js} +153 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/{calendar-v3-event-events.universal-Cfq4Piiv.d.ts → es/calendar-v3-event-events.universal-CLDnUCNu.d.mts} +728 -488
- package/build/{index.d.mts → internal/es/index.d.mts} +39 -3
- package/build/{index.mjs → internal/es/index.mjs} +220 -11
- package/build/internal/es/index.mjs.map +1 -0
- package/build/{meta.d.mts → internal/es/meta.d.mts} +160 -2
- package/build/{meta.mjs → internal/es/meta.mjs} +151 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +10 -10
- 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/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.js.map +0 -1
- package/build/meta.mjs.map +0 -1
|
@@ -1,7 +1,41 @@
|
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { G as GetEventOptions, E as Event,
|
|
3
|
-
export {
|
|
2
|
+
import { L as ListEventsByContactIdOptions, a as ListEventsByContactIdResponse, b as ListEventsByMemberIdOptions, c as ListEventsByMemberIdResponse, G as GetEventOptions, E as Event, d as ListEventsOptions, e as ListEventsResponse, Q as QueryEventsOptions, f as EventsQueryBuilder, C as CreateEventOptions, M as MaskedEvent, B as BulkCreateEventOptions, g as BulkCreateEventResponse, U as UpdateEvent, h as UpdateEventOptions, i as BulkUpdateEventRequestMaskedEvent, j as BulkUpdateEventOptions, k as BulkUpdateEventResponse, F as FieldWithLiterals, R as RestoreEventDefaultsOptions, l as RestoreEventDefaultsResponse, S as SplitRecurringEventOptions, m as SplitRecurringEventResponse, n as CancelEventOptions, o as CancelEventResponse, p as BulkCancelEventOptions, q as BulkCancelEventResponse, r as EventCancelledEnvelope, s as EventCreatedEnvelope, t as EventRecurringSplitEnvelope, u as EventUpdatedEnvelope } from './calendar-v3-event-events.universal-CLDnUCNu.js';
|
|
3
|
+
export { ak as ActionEvent, ay as Address, az as AddressHint, b4 as ApplicationError, bf as BaseEventMetadata, b5 as BulkActionMetadata, be as BulkCancelEventRequest, b1 as BulkCreateEventRequest, b2 as BulkEventResult, b8 as BulkUpdateEventRequest, aB as BusinessSchedule, bd as CancelEventRequest, aw as Categories, aI as ChangeContext, aJ as ChangeContextPayloadOneOf, ap as CommonCursorPaging, aq as CommonCursorPagingMetadata, ar as CommonCursors, a3 as CommonIdentificationData, a4 as CommonIdentificationDataIdOneOf, a1 as ConferencingDetails, aG as ConsentPolicy, a$ as CreateEventRequest, b0 as CreateEventResponse, aV as CursorPaging, aX as CursorPagingMetadata, aS as CursorQuery, aT as CursorQueryPagingMethodOneOf, aY as Cursors, D as Day, K as DayOfWeek, ae as DomainEvent, af as DomainEventBodyOneOf, aN as Empty, ag as EntityCreatedEvent, aj as EntityDeletedEvent, ai as EntityUpdatedEvent, a7 as EventCancelled, bg as EventMetadata, a9 as EventUpdatedWithMetadata, bh as EventsQueryResult, a5 as ExtendedFields, H as Field, x as Frequency, aA as GeoCoordinates, aO as GetEventRequest, aP as GetEventResponse, am as IdentificationData, an as IdentificationDataIdOneOf, I as IdentityType, b3 as ItemMetadata, ao as ListEventsByContactIdRequest, as as ListEventsByMemberIdRequest, aQ as ListEventsRequest, aZ as ListRecurringEventInstancesHistoryRequest, a_ as ListRecurringEventInstancesHistoryResponse, ax as Locale, Y as Location, y as LocationType, al as MessageEnvelope, aE as Multilingual, a0 as Participant, a8 as ParticipantNotification, $ as Participants, P as ParticipantsStatus, a2 as Permission, J as PlacementType, av as Properties, aK as PropertiesChange, aR as QueryEventsRequest, aW as QueryEventsResponse, X as RecurrenceRule, w as RecurrenceType, a6 as RecurringEventSplit, O as RequestedFields, N as ResolutionMethod, _ as Resource, bb as RestoreEventDefaultsRequest, ah as RestoreInfo, z as Role, aM as SiteCloned, aL as SiteCreated, au as SitePropertiesEvent, at as SitePropertiesNotification, V as SortOrder, aU as Sorting, aD as SpecialHourPeriod, bc as SplitRecurringEventRequest, v as Status, aF as SupportedLanguage, aC as TimePeriod, aH as Translation, T as Transparency, A as Type, b9 as UpdateEventParticipantsRequest, ba as UpdateEventParticipantsResponse, b6 as UpdateEventRequest, b7 as UpdateEventResponse, ac as UpdateEventsWithFixedBusinessResourceIdRequest, ad as UpdateEventsWithFixedBusinessResourceIdResponse, aa as UpdateScheduleWithFixedBusinessResourceIdRequest, ab as UpdateScheduleWithFixedBusinessResourceIdResponse, W as WebhookIdentityType, Z as ZonedDate } from './calendar-v3-event-events.universal-CLDnUCNu.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
|
+
}
|
|
5
39
|
declare function getEvent$1(httpClient: HttpClient): GetEventSignature;
|
|
6
40
|
interface GetEventSignature {
|
|
7
41
|
/**
|
|
@@ -205,6 +239,8 @@ declare const onEventCreated$1: EventDefinition<EventCreatedEnvelope, "wix.calen
|
|
|
205
239
|
declare const onEventRecurringSplit$1: EventDefinition<EventRecurringSplitEnvelope, "wix.calendar.v3.event_recurring_split">;
|
|
206
240
|
declare const onEventUpdated$1: EventDefinition<EventUpdatedEnvelope, "wix.calendar.v3.event_updated">;
|
|
207
241
|
|
|
242
|
+
declare const listEventsByContactId: MaybeContext<BuildRESTFunction<typeof listEventsByContactId$1> & typeof listEventsByContactId$1>;
|
|
243
|
+
declare const listEventsByMemberId: MaybeContext<BuildRESTFunction<typeof listEventsByMemberId$1> & typeof listEventsByMemberId$1>;
|
|
208
244
|
declare const getEvent: MaybeContext<BuildRESTFunction<typeof getEvent$1> & typeof getEvent$1>;
|
|
209
245
|
declare const listEvents: MaybeContext<BuildRESTFunction<typeof listEvents$1> & typeof listEvents$1>;
|
|
210
246
|
declare const queryEvents: MaybeContext<BuildRESTFunction<typeof queryEvents$1> & typeof queryEvents$1>;
|
|
@@ -246,4 +282,4 @@ declare const onEventRecurringSplit: BuildEventDefinition<typeof onEventRecurrin
|
|
|
246
282
|
*/
|
|
247
283
|
declare const onEventUpdated: BuildEventDefinition<typeof onEventUpdated$1>;
|
|
248
284
|
|
|
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 };
|
|
285
|
+
export { BulkCancelEventOptions, BulkCancelEventResponse, BulkCreateEventOptions, BulkCreateEventResponse, BulkUpdateEventOptions, BulkUpdateEventRequestMaskedEvent, BulkUpdateEventResponse, CancelEventOptions, CancelEventResponse, CreateEventOptions, Event, EventCancelledEnvelope, EventCreatedEnvelope, EventRecurringSplitEnvelope, EventUpdatedEnvelope, EventsQueryBuilder, GetEventOptions, ListEventsByContactIdOptions, ListEventsByContactIdResponse, ListEventsByMemberIdOptions, ListEventsByMemberIdResponse, ListEventsOptions, ListEventsResponse, MaskedEvent, QueryEventsOptions, RestoreEventDefaultsOptions, RestoreEventDefaultsResponse, SplitRecurringEventOptions, SplitRecurringEventResponse, UpdateEvent, UpdateEventOptions, bulkCancelEvent, bulkCreateEvent, bulkUpdateEvent, cancelEvent, createEvent, getEvent, listEvents, listEventsByContactId, listEventsByMemberId, onEventCancelled, onEventCreated, onEventRecurringSplit, onEventUpdated, queryEvents, restoreEventDefaults, splitRecurringEvent, updateEvent };
|
|
@@ -44,6 +44,8 @@ __export(index_exports, {
|
|
|
44
44
|
createEvent: () => createEvent4,
|
|
45
45
|
getEvent: () => getEvent4,
|
|
46
46
|
listEvents: () => listEvents4,
|
|
47
|
+
listEventsByContactId: () => listEventsByContactId4,
|
|
48
|
+
listEventsByMemberId: () => listEventsByMemberId4,
|
|
47
49
|
onEventCancelled: () => onEventCancelled2,
|
|
48
50
|
onEventCreated: () => onEventCreated2,
|
|
49
51
|
onEventRecurringSplit: () => onEventRecurringSplit2,
|
|
@@ -128,7 +130,120 @@ function resolveWixCalendarEventsV3EventsServiceUrl(opts) {
|
|
|
128
130
|
};
|
|
129
131
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
130
132
|
}
|
|
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
|
+
}
|
|
131
180
|
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
|
+
}
|
|
132
247
|
function getEvent(payload) {
|
|
133
248
|
function __getEvent({ host }) {
|
|
134
249
|
const metadata = {
|
|
@@ -680,17 +795,6 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
680
795
|
WebhookIdentityType2["APP"] = "APP";
|
|
681
796
|
return WebhookIdentityType2;
|
|
682
797
|
})(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 || {});
|
|
694
798
|
var PlacementType = /* @__PURE__ */ ((PlacementType2) => {
|
|
695
799
|
PlacementType2["BEFORE"] = "BEFORE";
|
|
696
800
|
PlacementType2["AFTER"] = "AFTER";
|
|
@@ -713,6 +817,93 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
|
713
817
|
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
714
818
|
return ResolutionMethod2;
|
|
715
819
|
})(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
|
+
}
|
|
716
907
|
async function getEvent2(eventId, options) {
|
|
717
908
|
const { httpClient, sideEffects } = arguments[2];
|
|
718
909
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1079,6 +1270,22 @@ async function bulkCancelEvent2(eventIds, options) {
|
|
|
1079
1270
|
}
|
|
1080
1271
|
|
|
1081
1272
|
// 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
|
+
}
|
|
1082
1289
|
function getEvent3(httpClient) {
|
|
1083
1290
|
return (eventId, options) => getEvent2(
|
|
1084
1291
|
eventId,
|
|
@@ -1287,6 +1494,8 @@ var onEventUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
1287
1494
|
// src/calendar-v3-event-events.context.ts
|
|
1288
1495
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
1289
1496
|
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);
|
|
1290
1499
|
var getEvent4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getEvent3);
|
|
1291
1500
|
var listEvents4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listEvents3);
|
|
1292
1501
|
var queryEvents4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryEvents3);
|
|
@@ -1328,6 +1537,8 @@ var onEventUpdated2 = (0, import_event_definition_modules.createEventModule)(onE
|
|
|
1328
1537
|
createEvent,
|
|
1329
1538
|
getEvent,
|
|
1330
1539
|
listEvents,
|
|
1540
|
+
listEventsByContactId,
|
|
1541
|
+
listEventsByMemberId,
|
|
1331
1542
|
onEventCancelled,
|
|
1332
1543
|
onEventCreated,
|
|
1333
1544
|
onEventRecurringSplit,
|