@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.mjs';
|
|
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.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
|
+
}
|
|
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 };
|
|
@@ -74,7 +74,120 @@ function resolveWixCalendarEventsV3EventsServiceUrl(opts) {
|
|
|
74
74
|
};
|
|
75
75
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
76
76
|
}
|
|
77
|
+
function resolveWixCalendarParticipanteventsV3ParticipantEventsServiceUrl(opts) {
|
|
78
|
+
const domainToMappings = {
|
|
79
|
+
"api._api_base_domain_": [
|
|
80
|
+
{
|
|
81
|
+
srcPath: "/participant-events-3",
|
|
82
|
+
destPath: ""
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"manage._base_domain_": [
|
|
86
|
+
{
|
|
87
|
+
srcPath: "/_api/calendar/v3/events/memberId",
|
|
88
|
+
destPath: "/v3/events/memberId"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
srcPath: "/_api/calendar/v3/events/contactId",
|
|
92
|
+
destPath: "/v3/events/contactId"
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"www.wixapis.com": [
|
|
96
|
+
{
|
|
97
|
+
srcPath: "/calendar/v3/events/contactId",
|
|
98
|
+
destPath: "/v3/events/contactId"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
srcPath: "/calendar/v3/events/memberId",
|
|
102
|
+
destPath: "/v3/events/memberId"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
_: [
|
|
106
|
+
{
|
|
107
|
+
srcPath: "/_api/calendar/v3/events/memberId",
|
|
108
|
+
destPath: "/v3/events/memberId"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"*.dev.wix-code.com": [
|
|
112
|
+
{
|
|
113
|
+
srcPath: "/_api/calendar/v3/events/memberId",
|
|
114
|
+
destPath: "/v3/events/memberId"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
srcPath: "/_api/calendar/v3/events/contactId",
|
|
118
|
+
destPath: "/v3/events/contactId"
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
};
|
|
122
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
123
|
+
}
|
|
77
124
|
var PACKAGE_NAME = "@wix/auto_sdk_calendar_events";
|
|
125
|
+
function listEventsByContactId(payload) {
|
|
126
|
+
function __listEventsByContactId({ host }) {
|
|
127
|
+
const metadata = {
|
|
128
|
+
entityFqdn: "wix.calendar.v3.event",
|
|
129
|
+
method: "GET",
|
|
130
|
+
methodFqn: "wix.calendar.participantevents.v3.ParticipantEventsService.ListEventsByContactId",
|
|
131
|
+
packageName: PACKAGE_NAME,
|
|
132
|
+
url: resolveWixCalendarParticipanteventsV3ParticipantEventsServiceUrl({
|
|
133
|
+
protoPath: "/v3/events/contactId/{contactId}",
|
|
134
|
+
data: payload,
|
|
135
|
+
host
|
|
136
|
+
}),
|
|
137
|
+
params: toURLSearchParams(payload),
|
|
138
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
139
|
+
{
|
|
140
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
141
|
+
paths: [
|
|
142
|
+
{ path: "events.createdDate" },
|
|
143
|
+
{ path: "events.updatedDate" },
|
|
144
|
+
{ path: "events.start.utcDate" },
|
|
145
|
+
{ path: "events.end.utcDate" },
|
|
146
|
+
{ path: "events.adjustedStart.utcDate" },
|
|
147
|
+
{ path: "events.adjustedEnd.utcDate" },
|
|
148
|
+
{ path: "events.recurrenceRule.until.utcDate" },
|
|
149
|
+
{ path: "events.recurrenceRule.adjustedUntil.utcDate" }
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
])
|
|
153
|
+
};
|
|
154
|
+
return metadata;
|
|
155
|
+
}
|
|
156
|
+
return __listEventsByContactId;
|
|
157
|
+
}
|
|
158
|
+
function listEventsByMemberId(payload) {
|
|
159
|
+
function __listEventsByMemberId({ host }) {
|
|
160
|
+
const metadata = {
|
|
161
|
+
entityFqdn: "wix.calendar.v3.event",
|
|
162
|
+
method: "GET",
|
|
163
|
+
methodFqn: "wix.calendar.participantevents.v3.ParticipantEventsService.ListEventsByMemberId",
|
|
164
|
+
packageName: PACKAGE_NAME,
|
|
165
|
+
url: resolveWixCalendarParticipanteventsV3ParticipantEventsServiceUrl({
|
|
166
|
+
protoPath: "/v3/events/memberId/{memberId}",
|
|
167
|
+
data: payload,
|
|
168
|
+
host
|
|
169
|
+
}),
|
|
170
|
+
params: toURLSearchParams(payload),
|
|
171
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
172
|
+
{
|
|
173
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
174
|
+
paths: [
|
|
175
|
+
{ path: "events.createdDate" },
|
|
176
|
+
{ path: "events.updatedDate" },
|
|
177
|
+
{ path: "events.start.utcDate" },
|
|
178
|
+
{ path: "events.end.utcDate" },
|
|
179
|
+
{ path: "events.adjustedStart.utcDate" },
|
|
180
|
+
{ path: "events.adjustedEnd.utcDate" },
|
|
181
|
+
{ path: "events.recurrenceRule.until.utcDate" },
|
|
182
|
+
{ path: "events.recurrenceRule.adjustedUntil.utcDate" }
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
])
|
|
186
|
+
};
|
|
187
|
+
return metadata;
|
|
188
|
+
}
|
|
189
|
+
return __listEventsByMemberId;
|
|
190
|
+
}
|
|
78
191
|
function getEvent(payload) {
|
|
79
192
|
function __getEvent({ host }) {
|
|
80
193
|
const metadata = {
|
|
@@ -626,17 +739,6 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
626
739
|
WebhookIdentityType2["APP"] = "APP";
|
|
627
740
|
return WebhookIdentityType2;
|
|
628
741
|
})(WebhookIdentityType || {});
|
|
629
|
-
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
630
|
-
RequestedFields2["UNKNOWN_REQUESTED_FIELDS"] = "UNKNOWN_REQUESTED_FIELDS";
|
|
631
|
-
RequestedFields2["PI_FIELDS"] = "PI_FIELDS";
|
|
632
|
-
RequestedFields2["OWN_PI_FIELDS"] = "OWN_PI_FIELDS";
|
|
633
|
-
return RequestedFields2;
|
|
634
|
-
})(RequestedFields || {});
|
|
635
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
636
|
-
SortOrder2["ASC"] = "ASC";
|
|
637
|
-
SortOrder2["DESC"] = "DESC";
|
|
638
|
-
return SortOrder2;
|
|
639
|
-
})(SortOrder || {});
|
|
640
742
|
var PlacementType = /* @__PURE__ */ ((PlacementType2) => {
|
|
641
743
|
PlacementType2["BEFORE"] = "BEFORE";
|
|
642
744
|
PlacementType2["AFTER"] = "AFTER";
|
|
@@ -659,6 +761,93 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
|
659
761
|
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
660
762
|
return ResolutionMethod2;
|
|
661
763
|
})(ResolutionMethod || {});
|
|
764
|
+
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
765
|
+
RequestedFields2["UNKNOWN_REQUESTED_FIELDS"] = "UNKNOWN_REQUESTED_FIELDS";
|
|
766
|
+
RequestedFields2["PI_FIELDS"] = "PI_FIELDS";
|
|
767
|
+
RequestedFields2["OWN_PI_FIELDS"] = "OWN_PI_FIELDS";
|
|
768
|
+
return RequestedFields2;
|
|
769
|
+
})(RequestedFields || {});
|
|
770
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
771
|
+
SortOrder2["ASC"] = "ASC";
|
|
772
|
+
SortOrder2["DESC"] = "DESC";
|
|
773
|
+
return SortOrder2;
|
|
774
|
+
})(SortOrder || {});
|
|
775
|
+
async function listEventsByContactId2(contactId, options) {
|
|
776
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
777
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
778
|
+
contactId,
|
|
779
|
+
fromLocalDate: options?.fromLocalDate,
|
|
780
|
+
toLocalDate: options?.toLocalDate,
|
|
781
|
+
timeZone: options?.timeZone,
|
|
782
|
+
appId: options?.appId,
|
|
783
|
+
cursorPaging: options?.cursorPaging
|
|
784
|
+
});
|
|
785
|
+
const reqOpts = listEventsByContactId(payload);
|
|
786
|
+
sideEffects?.onSiteCall?.();
|
|
787
|
+
try {
|
|
788
|
+
const result = await httpClient.request(reqOpts);
|
|
789
|
+
sideEffects?.onSuccess?.(result);
|
|
790
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
791
|
+
} catch (err) {
|
|
792
|
+
const transformedError = sdkTransformError(
|
|
793
|
+
err,
|
|
794
|
+
{
|
|
795
|
+
spreadPathsToArguments: {},
|
|
796
|
+
explicitPathsToArguments: {
|
|
797
|
+
contactId: "$[0]",
|
|
798
|
+
fromLocalDate: "$[1].fromLocalDate",
|
|
799
|
+
toLocalDate: "$[1].toLocalDate",
|
|
800
|
+
timeZone: "$[1].timeZone",
|
|
801
|
+
appId: "$[1].appId",
|
|
802
|
+
cursorPaging: "$[1].cursorPaging"
|
|
803
|
+
},
|
|
804
|
+
singleArgumentUnchanged: false
|
|
805
|
+
},
|
|
806
|
+
["contactId", "options"]
|
|
807
|
+
);
|
|
808
|
+
sideEffects?.onError?.(err);
|
|
809
|
+
throw transformedError;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
async function listEventsByMemberId2(memberId, options) {
|
|
813
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
814
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
815
|
+
memberId,
|
|
816
|
+
fromLocalDate: options?.fromLocalDate,
|
|
817
|
+
toLocalDate: options?.toLocalDate,
|
|
818
|
+
timeZone: options?.timeZone,
|
|
819
|
+
appId: options?.appId,
|
|
820
|
+
cursorPaging: options?.cursorPaging,
|
|
821
|
+
eventIds: options?.eventIds
|
|
822
|
+
});
|
|
823
|
+
const reqOpts = listEventsByMemberId(payload);
|
|
824
|
+
sideEffects?.onSiteCall?.();
|
|
825
|
+
try {
|
|
826
|
+
const result = await httpClient.request(reqOpts);
|
|
827
|
+
sideEffects?.onSuccess?.(result);
|
|
828
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
829
|
+
} catch (err) {
|
|
830
|
+
const transformedError = sdkTransformError(
|
|
831
|
+
err,
|
|
832
|
+
{
|
|
833
|
+
spreadPathsToArguments: {},
|
|
834
|
+
explicitPathsToArguments: {
|
|
835
|
+
memberId: "$[0]",
|
|
836
|
+
fromLocalDate: "$[1].fromLocalDate",
|
|
837
|
+
toLocalDate: "$[1].toLocalDate",
|
|
838
|
+
timeZone: "$[1].timeZone",
|
|
839
|
+
appId: "$[1].appId",
|
|
840
|
+
cursorPaging: "$[1].cursorPaging",
|
|
841
|
+
eventIds: "$[1].eventIds"
|
|
842
|
+
},
|
|
843
|
+
singleArgumentUnchanged: false
|
|
844
|
+
},
|
|
845
|
+
["memberId", "options"]
|
|
846
|
+
);
|
|
847
|
+
sideEffects?.onError?.(err);
|
|
848
|
+
throw transformedError;
|
|
849
|
+
}
|
|
850
|
+
}
|
|
662
851
|
async function getEvent2(eventId, options) {
|
|
663
852
|
const { httpClient, sideEffects } = arguments[2];
|
|
664
853
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -1025,6 +1214,22 @@ async function bulkCancelEvent2(eventIds, options) {
|
|
|
1025
1214
|
}
|
|
1026
1215
|
|
|
1027
1216
|
// src/calendar-v3-event-events.public.ts
|
|
1217
|
+
function listEventsByContactId3(httpClient) {
|
|
1218
|
+
return (contactId, options) => listEventsByContactId2(
|
|
1219
|
+
contactId,
|
|
1220
|
+
options,
|
|
1221
|
+
// @ts-ignore
|
|
1222
|
+
{ httpClient }
|
|
1223
|
+
);
|
|
1224
|
+
}
|
|
1225
|
+
function listEventsByMemberId3(httpClient) {
|
|
1226
|
+
return (memberId, options) => listEventsByMemberId2(
|
|
1227
|
+
memberId,
|
|
1228
|
+
options,
|
|
1229
|
+
// @ts-ignore
|
|
1230
|
+
{ httpClient }
|
|
1231
|
+
);
|
|
1232
|
+
}
|
|
1028
1233
|
function getEvent3(httpClient) {
|
|
1029
1234
|
return (eventId, options) => getEvent2(
|
|
1030
1235
|
eventId,
|
|
@@ -1233,6 +1438,8 @@ var onEventUpdated = EventDefinition(
|
|
|
1233
1438
|
// src/calendar-v3-event-events.context.ts
|
|
1234
1439
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
1235
1440
|
import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
|
|
1441
|
+
var listEventsByContactId4 = /* @__PURE__ */ createRESTModule(listEventsByContactId3);
|
|
1442
|
+
var listEventsByMemberId4 = /* @__PURE__ */ createRESTModule(listEventsByMemberId3);
|
|
1236
1443
|
var getEvent4 = /* @__PURE__ */ createRESTModule(getEvent3);
|
|
1237
1444
|
var listEvents4 = /* @__PURE__ */ createRESTModule(listEvents3);
|
|
1238
1445
|
var queryEvents4 = /* @__PURE__ */ createRESTModule(queryEvents3);
|
|
@@ -1273,6 +1480,8 @@ export {
|
|
|
1273
1480
|
createEvent4 as createEvent,
|
|
1274
1481
|
getEvent4 as getEvent,
|
|
1275
1482
|
listEvents4 as listEvents,
|
|
1483
|
+
listEventsByContactId4 as listEventsByContactId,
|
|
1484
|
+
listEventsByMemberId4 as listEventsByMemberId,
|
|
1276
1485
|
onEventCancelled2 as onEventCancelled,
|
|
1277
1486
|
onEventCreated2 as onEventCreated,
|
|
1278
1487
|
onEventRecurringSplit2 as onEventRecurringSplit,
|