@wix/auto_sdk_calendar_participations 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/calendar-v3-participation-participations.context.d.ts +25 -0
- package/build/cjs/src/calendar-v3-participation-participations.context.js +30 -0
- package/build/cjs/src/calendar-v3-participation-participations.context.js.map +1 -0
- package/build/cjs/src/calendar-v3-participation-participations.http.d.ts +29 -0
- package/build/cjs/src/calendar-v3-participation-participations.http.js +204 -0
- package/build/cjs/src/calendar-v3-participation-participations.http.js.map +1 -0
- package/build/cjs/src/calendar-v3-participation-participations.meta.d.ts +23 -0
- package/build/cjs/src/calendar-v3-participation-participations.meta.js +123 -0
- package/build/cjs/src/calendar-v3-participation-participations.meta.js.map +1 -0
- package/build/cjs/src/calendar-v3-participation-participations.public.d.ts +67 -0
- package/build/cjs/src/calendar-v3-participation-participations.public.js +73 -0
- package/build/cjs/src/calendar-v3-participation-participations.public.js.map +1 -0
- package/build/cjs/src/calendar-v3-participation-participations.types.d.ts +364 -0
- package/build/cjs/src/calendar-v3-participation-participations.types.js +19 -0
- package/build/cjs/src/calendar-v3-participation-participations.types.js.map +1 -0
- package/build/cjs/src/calendar-v3-participation-participations.universal.d.ts +674 -0
- package/build/cjs/src/calendar-v3-participation-participations.universal.js +291 -0
- package/build/cjs/src/calendar-v3-participation-participations.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/calendar-v3-participation-participations.context.d.ts +25 -0
- package/build/es/src/calendar-v3-participation-participations.context.js +25 -0
- package/build/es/src/calendar-v3-participation-participations.context.js.map +1 -0
- package/build/es/src/calendar-v3-participation-participations.http.d.ts +29 -0
- package/build/es/src/calendar-v3-participation-participations.http.js +196 -0
- package/build/es/src/calendar-v3-participation-participations.http.js.map +1 -0
- package/build/es/src/calendar-v3-participation-participations.meta.d.ts +23 -0
- package/build/es/src/calendar-v3-participation-participations.meta.js +92 -0
- package/build/es/src/calendar-v3-participation-participations.meta.js.map +1 -0
- package/build/es/src/calendar-v3-participation-participations.public.d.ts +67 -0
- package/build/es/src/calendar-v3-participation-participations.public.js +63 -0
- package/build/es/src/calendar-v3-participation-participations.public.js.map +1 -0
- package/build/es/src/calendar-v3-participation-participations.types.d.ts +364 -0
- package/build/es/src/calendar-v3-participation-participations.types.js +16 -0
- package/build/es/src/calendar-v3-participation-participations.types.js.map +1 -0
- package/build/es/src/calendar-v3-participation-participations.universal.d.ts +674 -0
- package/build/es/src/calendar-v3-participation-participations.universal.js +260 -0
- package/build/es/src/calendar-v3-participation-participations.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.context.d.ts +25 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.context.js +30 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.context.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.http.d.ts +29 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.http.js +204 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.http.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.meta.d.ts +23 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.meta.js +123 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.meta.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.public.d.ts +67 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.public.js +73 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.public.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.types.d.ts +364 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.types.js +19 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.types.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.universal.d.ts +674 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.universal.js +291 -0
- package/build/internal/cjs/src/calendar-v3-participation-participations.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/calendar-v3-participation-participations.context.d.ts +25 -0
- package/build/internal/es/src/calendar-v3-participation-participations.context.js +25 -0
- package/build/internal/es/src/calendar-v3-participation-participations.context.js.map +1 -0
- package/build/internal/es/src/calendar-v3-participation-participations.http.d.ts +29 -0
- package/build/internal/es/src/calendar-v3-participation-participations.http.js +196 -0
- package/build/internal/es/src/calendar-v3-participation-participations.http.js.map +1 -0
- package/build/internal/es/src/calendar-v3-participation-participations.meta.d.ts +23 -0
- package/build/internal/es/src/calendar-v3-participation-participations.meta.js +92 -0
- package/build/internal/es/src/calendar-v3-participation-participations.meta.js.map +1 -0
- package/build/internal/es/src/calendar-v3-participation-participations.public.d.ts +67 -0
- package/build/internal/es/src/calendar-v3-participation-participations.public.js +63 -0
- package/build/internal/es/src/calendar-v3-participation-participations.public.js.map +1 -0
- package/build/internal/es/src/calendar-v3-participation-participations.types.d.ts +364 -0
- package/build/internal/es/src/calendar-v3-participation-participations.types.js +16 -0
- package/build/internal/es/src/calendar-v3-participation-participations.types.js.map +1 -0
- package/build/internal/es/src/calendar-v3-participation-participations.universal.d.ts +674 -0
- package/build/internal/es/src/calendar-v3-participation-participations.universal.js +260 -0
- package/build/internal/es/src/calendar-v3-participation-participations.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
2
|
+
import { queryBuilder } from '@wix/sdk-runtime/query-builder';
|
|
3
|
+
import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
4
|
+
import * as ambassadorWixCalendarV3Participation from './calendar-v3-participation-participations.http.js';
|
|
5
|
+
export var Status;
|
|
6
|
+
(function (Status) {
|
|
7
|
+
/** The party's participation is confirmed. For example, the business owner has confirmed a [booking](https://dev.wix.com/docs/rest/business-solutions/bookings/about-wix-bookings). */
|
|
8
|
+
Status["CONFIRMED"] = "CONFIRMED";
|
|
9
|
+
/** The party's participation is awaiting confirmation. For example, the business owner still needs to approve the [booking](https://dev.wix.com/docs/rest/business-solutions/bookings/about-wix-bookings). */
|
|
10
|
+
Status["PENDING_CONFIRMATION"] = "PENDING_CONFIRMATION";
|
|
11
|
+
})(Status || (Status = {}));
|
|
12
|
+
export var WebhookIdentityType;
|
|
13
|
+
(function (WebhookIdentityType) {
|
|
14
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
15
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
16
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
17
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
18
|
+
WebhookIdentityType["APP"] = "APP";
|
|
19
|
+
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves a `participation` object.
|
|
22
|
+
* @param participationId - ID of the `participation` object to retrieve.
|
|
23
|
+
* @public
|
|
24
|
+
* @documentationMaturity preview
|
|
25
|
+
* @requiredField participationId
|
|
26
|
+
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
27
|
+
* @permissionScope Manage Calendars
|
|
28
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
29
|
+
* @permissionScope Manage Bookings
|
|
30
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
31
|
+
* @permissionScope Manage Bookings - all permissions
|
|
32
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
33
|
+
* @applicableIdentity APP
|
|
34
|
+
* @returns Retrieved `participation` object.
|
|
35
|
+
* @fqn wix.calendar.participations.v3.ParticipationsService.GetParticipation
|
|
36
|
+
*/
|
|
37
|
+
export async function getParticipation(participationId) {
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
40
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
41
|
+
participationId: participationId,
|
|
42
|
+
});
|
|
43
|
+
const reqOpts = ambassadorWixCalendarV3Participation.getParticipation(payload);
|
|
44
|
+
sideEffects?.onSiteCall?.();
|
|
45
|
+
try {
|
|
46
|
+
const result = await httpClient.request(reqOpts);
|
|
47
|
+
sideEffects?.onSuccess?.(result);
|
|
48
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.participation;
|
|
49
|
+
}
|
|
50
|
+
catch (err) {
|
|
51
|
+
const transformedError = sdkTransformError(err, {
|
|
52
|
+
spreadPathsToArguments: {},
|
|
53
|
+
explicitPathsToArguments: { participationId: '$[0]' },
|
|
54
|
+
singleArgumentUnchanged: false,
|
|
55
|
+
}, ['participationId']);
|
|
56
|
+
sideEffects?.onError?.(err);
|
|
57
|
+
throw transformedError;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Creates a query to retrieve a list of participations.
|
|
62
|
+
*
|
|
63
|
+
* The `queryParticipations()` function builds a query to retrieve a list of participations and returns a `ParticipationsQueryBuilder` object.
|
|
64
|
+
*
|
|
65
|
+
* The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/calendar/participations/participations-query-builder/find) function.
|
|
66
|
+
*
|
|
67
|
+
* You can refine the query by chaining `ParticipationsQueryBuilder` functions onto the query. `ParticipationsQueryBuilder` functions enable you to sort, filter, and control the results that `queryParticipations()` returns.
|
|
68
|
+
*
|
|
69
|
+
* `queryParticipations()` runs with the following `ParticipationsQueryBuilder` default that you can override:
|
|
70
|
+
*
|
|
71
|
+
* + `limit` is `50`.
|
|
72
|
+
* + Sorted by `createdDate` in ascending order.
|
|
73
|
+
*
|
|
74
|
+
* The functions that are chained to `queryParticipations()` are applied in the order they are called.
|
|
75
|
+
*
|
|
76
|
+
* The following `ParticipationsQueryBuilder` functions are supported for the `queryParticipations()` function. For a full description of the participations object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/calendar/participations/participations-query-result/items) property in `ParticipationsQueryResult`.
|
|
77
|
+
*
|
|
78
|
+
* @public
|
|
79
|
+
* @documentationMaturity preview
|
|
80
|
+
* @permissionScope Manage Calendars
|
|
81
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
82
|
+
* @permissionScope Manage Bookings
|
|
83
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
84
|
+
* @permissionScope Manage Bookings - all permissions
|
|
85
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
86
|
+
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
87
|
+
* @applicableIdentity APP
|
|
88
|
+
* @fqn wix.calendar.participations.v3.ParticipationsService.QueryParticipations
|
|
89
|
+
*/
|
|
90
|
+
export function queryParticipations() {
|
|
91
|
+
// @ts-ignore
|
|
92
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
93
|
+
return queryBuilder({
|
|
94
|
+
func: async (payload) => {
|
|
95
|
+
const reqOpts = ambassadorWixCalendarV3Participation.queryParticipations(payload);
|
|
96
|
+
sideEffects?.onSiteCall?.();
|
|
97
|
+
try {
|
|
98
|
+
const result = await httpClient.request(reqOpts);
|
|
99
|
+
sideEffects?.onSuccess?.(result);
|
|
100
|
+
return result;
|
|
101
|
+
}
|
|
102
|
+
catch (err) {
|
|
103
|
+
sideEffects?.onError?.(err);
|
|
104
|
+
throw err;
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
requestTransformer: (query) => {
|
|
108
|
+
const args = [query, {}];
|
|
109
|
+
return renameKeysFromSDKRequestToRESTRequest({
|
|
110
|
+
...args?.[1],
|
|
111
|
+
query: args?.[0],
|
|
112
|
+
});
|
|
113
|
+
},
|
|
114
|
+
responseTransformer: ({ data, }) => {
|
|
115
|
+
const transformedData = renameKeysFromRESTResponseToSDKResponse(data);
|
|
116
|
+
return {
|
|
117
|
+
items: transformedData?.participations,
|
|
118
|
+
pagingMetadata: transformedData?.pagingMetadata,
|
|
119
|
+
};
|
|
120
|
+
},
|
|
121
|
+
errorTransformer: (err) => {
|
|
122
|
+
const transformedError = sdkTransformError(err, {
|
|
123
|
+
spreadPathsToArguments: {},
|
|
124
|
+
explicitPathsToArguments: { query: '$[0]' },
|
|
125
|
+
singleArgumentUnchanged: false,
|
|
126
|
+
});
|
|
127
|
+
throw transformedError;
|
|
128
|
+
},
|
|
129
|
+
pagingMethod: 'CURSOR',
|
|
130
|
+
transformationPaths: {},
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Creates a `participation` object for a schedule or event.
|
|
135
|
+
* @param participation - `participation` object to create.
|
|
136
|
+
* @public
|
|
137
|
+
* @documentationMaturity preview
|
|
138
|
+
* @requiredField participation
|
|
139
|
+
* @requiredField participation.participant
|
|
140
|
+
* @requiredField participation.participant.name
|
|
141
|
+
* @requiredField participation.partySize
|
|
142
|
+
* @permissionId CALENDAR.PARTICIPATION_CREATE
|
|
143
|
+
* @permissionScope Manage Calendars
|
|
144
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
145
|
+
* @permissionScope Manage Bookings
|
|
146
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
147
|
+
* @permissionScope Manage Bookings - all permissions
|
|
148
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
149
|
+
* @applicableIdentity APP
|
|
150
|
+
* @returns Created `participation` object.
|
|
151
|
+
* @fqn wix.calendar.participations.v3.ParticipationsService.CreateParticipation
|
|
152
|
+
*/
|
|
153
|
+
export async function createParticipation(participation, options) {
|
|
154
|
+
// @ts-ignore
|
|
155
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
156
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
157
|
+
participation: participation,
|
|
158
|
+
idempotencyKey: options?.idempotencyKey,
|
|
159
|
+
});
|
|
160
|
+
const reqOpts = ambassadorWixCalendarV3Participation.createParticipation(payload);
|
|
161
|
+
sideEffects?.onSiteCall?.();
|
|
162
|
+
try {
|
|
163
|
+
const result = await httpClient.request(reqOpts);
|
|
164
|
+
sideEffects?.onSuccess?.(result);
|
|
165
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.participation;
|
|
166
|
+
}
|
|
167
|
+
catch (err) {
|
|
168
|
+
const transformedError = sdkTransformError(err, {
|
|
169
|
+
spreadPathsToArguments: {},
|
|
170
|
+
explicitPathsToArguments: {
|
|
171
|
+
participation: '$[0]',
|
|
172
|
+
idempotencyKey: '$[1].idempotencyKey',
|
|
173
|
+
},
|
|
174
|
+
singleArgumentUnchanged: false,
|
|
175
|
+
}, ['participation', 'options']);
|
|
176
|
+
sideEffects?.onError?.(err);
|
|
177
|
+
throw transformedError;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Updates a `participation` object.
|
|
182
|
+
* @param _id - Participation ID.
|
|
183
|
+
* @public
|
|
184
|
+
* @documentationMaturity preview
|
|
185
|
+
* @requiredField _id
|
|
186
|
+
* @requiredField participation
|
|
187
|
+
* @requiredField participation.revision
|
|
188
|
+
* @permissionId CALENDAR.PARTICIPATION_UPDATE
|
|
189
|
+
* @permissionScope Manage Calendars
|
|
190
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
191
|
+
* @permissionScope Manage Bookings
|
|
192
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
193
|
+
* @permissionScope Manage Bookings - all permissions
|
|
194
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
195
|
+
* @applicableIdentity APP
|
|
196
|
+
* @returns Updated `participation` object.
|
|
197
|
+
* @fqn wix.calendar.participations.v3.ParticipationsService.UpdateParticipation
|
|
198
|
+
*/
|
|
199
|
+
export async function updateParticipation(_id, participation) {
|
|
200
|
+
// @ts-ignore
|
|
201
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
202
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
203
|
+
participation: { ...participation, id: _id },
|
|
204
|
+
});
|
|
205
|
+
const reqOpts = ambassadorWixCalendarV3Participation.updateParticipation(payload);
|
|
206
|
+
sideEffects?.onSiteCall?.();
|
|
207
|
+
try {
|
|
208
|
+
const result = await httpClient.request(reqOpts);
|
|
209
|
+
sideEffects?.onSuccess?.(result);
|
|
210
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.participation;
|
|
211
|
+
}
|
|
212
|
+
catch (err) {
|
|
213
|
+
const transformedError = sdkTransformError(err, {
|
|
214
|
+
spreadPathsToArguments: { participation: '$[1]' },
|
|
215
|
+
explicitPathsToArguments: { 'participation.id': '$[0]' },
|
|
216
|
+
singleArgumentUnchanged: false,
|
|
217
|
+
}, ['_id', 'participation']);
|
|
218
|
+
sideEffects?.onError?.(err);
|
|
219
|
+
throw transformedError;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Deletes a `participation` object.
|
|
224
|
+
* @param participationId - ID of `participation` object to delete.
|
|
225
|
+
* @public
|
|
226
|
+
* @documentationMaturity preview
|
|
227
|
+
* @requiredField participationId
|
|
228
|
+
* @permissionId CALENDAR.PARTICIPATION_DELETE
|
|
229
|
+
* @permissionScope Manage Calendars
|
|
230
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
231
|
+
* @permissionScope Manage Bookings
|
|
232
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
233
|
+
* @permissionScope Manage Bookings - all permissions
|
|
234
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
235
|
+
* @applicableIdentity APP
|
|
236
|
+
* @fqn wix.calendar.participations.v3.ParticipationsService.DeleteParticipation
|
|
237
|
+
*/
|
|
238
|
+
export async function deleteParticipation(participationId) {
|
|
239
|
+
// @ts-ignore
|
|
240
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
241
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
242
|
+
participationId: participationId,
|
|
243
|
+
});
|
|
244
|
+
const reqOpts = ambassadorWixCalendarV3Participation.deleteParticipation(payload);
|
|
245
|
+
sideEffects?.onSiteCall?.();
|
|
246
|
+
try {
|
|
247
|
+
const result = await httpClient.request(reqOpts);
|
|
248
|
+
sideEffects?.onSuccess?.(result);
|
|
249
|
+
}
|
|
250
|
+
catch (err) {
|
|
251
|
+
const transformedError = sdkTransformError(err, {
|
|
252
|
+
spreadPathsToArguments: {},
|
|
253
|
+
explicitPathsToArguments: { participationId: '$[0]' },
|
|
254
|
+
singleArgumentUnchanged: false,
|
|
255
|
+
}, ['participationId']);
|
|
256
|
+
sideEffects?.onError?.(err);
|
|
257
|
+
throw transformedError;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
//# sourceMappingURL=calendar-v3-participation-participations.universal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-v3-participation-participations.universal.js","sourceRoot":"","sources":["../../../../src/calendar-v3-participation-participations.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,oCAAoC,MAAM,oDAAoD,CAAC;AA+G3G,MAAM,CAAN,IAAY,MAKX;AALD,WAAY,MAAM;IAChB,uLAAuL;IACvL,iCAAuB,CAAA;IACvB,8MAA8M;IAC9M,uDAA6C,CAAA;AAC/C,CAAC,EALW,MAAM,KAAN,MAAM,QAKjB;AAmQD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B;AAuID;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,eAA8B;IAE9B,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG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YAC1B,wBAAwB,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE;YACrD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,iBAAiB,CAAC,CACpB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wix/auto_sdk_calendar_participations",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"registry": "https://registry.npmjs.org/",
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"keywords": [],
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"main": "./build/cjs/index.js",
|
|
11
|
+
"types": "./build/es/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./build/es/index.js",
|
|
15
|
+
"require": "./build/cjs/index.js",
|
|
16
|
+
"types": "./build/es/index.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"./package.json": "./package.json",
|
|
19
|
+
"./meta": {
|
|
20
|
+
"import": "./build/es/meta.js",
|
|
21
|
+
"require": "./build/cjs/meta.js",
|
|
22
|
+
"types": "./build/es/meta.d.ts"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"build",
|
|
27
|
+
"meta",
|
|
28
|
+
"service-plugins"
|
|
29
|
+
],
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@wix/sdk-runtime": "^0.3.35",
|
|
32
|
+
"@wix/sdk-types": "^1.12.4"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"typescript": "^5.3.2"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsc -b tsconfig.json tsconfig.esm.json tsconfig.internal.json tsconfig.internal.esm.json",
|
|
39
|
+
"test": ":"
|
|
40
|
+
},
|
|
41
|
+
"wix": {
|
|
42
|
+
"artifact": {
|
|
43
|
+
"artifactId": "auto-sdk-calendar-participations",
|
|
44
|
+
"groupId": "com.wixpress.public-sdk-dependencies"
|
|
45
|
+
},
|
|
46
|
+
"sdkDependency": {
|
|
47
|
+
"fqdnNamespace": "participations",
|
|
48
|
+
"fqdn": "wix.calendar.v3.participation"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"falconPackageHash": "88086de01018668cbb273894a1d56c1d89230f3617b3bd3b8cbef77a"
|
|
52
|
+
}
|