@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,CAG9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AC1B,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/calendar-v3-participation-participations.context.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/calendar-v3-participation-participations.context.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4FAA0E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/calendar-v3-participation-participations.universal.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/calendar-v3-participation-participations.universal.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.typings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8FAA4E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/calendar-v3-participation-participations.meta.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/calendar-v3-participation-participations.meta.js"), exports);
|
|
18
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yFAAuE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getParticipation as publicGetParticipation, queryParticipations as publicQueryParticipations, createParticipation as publicCreateParticipation, updateParticipation as publicUpdateParticipation, deleteParticipation as publicDeleteParticipation } from './calendar-v3-participation-participations.public.js';
|
|
2
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
3
|
+
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
4
|
+
import { onParticipationCreated as publicOnParticipationCreated } from './calendar-v3-participation-participations.public.js';
|
|
5
|
+
import { onParticipationDeleted as publicOnParticipationDeleted } from './calendar-v3-participation-participations.public.js';
|
|
6
|
+
import { onParticipationUpdated as publicOnParticipationUpdated } from './calendar-v3-participation-participations.public.js';
|
|
7
|
+
export declare const getParticipation: MaybeContext<BuildRESTFunction<typeof publicGetParticipation> & typeof publicGetParticipation>;
|
|
8
|
+
export declare const queryParticipations: MaybeContext<BuildRESTFunction<typeof publicQueryParticipations> & typeof publicQueryParticipations>;
|
|
9
|
+
export declare const createParticipation: MaybeContext<BuildRESTFunction<typeof publicCreateParticipation> & typeof publicCreateParticipation>;
|
|
10
|
+
export declare const updateParticipation: MaybeContext<BuildRESTFunction<typeof publicUpdateParticipation> & typeof publicUpdateParticipation>;
|
|
11
|
+
export declare const deleteParticipation: MaybeContext<BuildRESTFunction<typeof publicDeleteParticipation> & typeof publicDeleteParticipation>;
|
|
12
|
+
/**
|
|
13
|
+
* Triggered when a `participation` object is created.
|
|
14
|
+
*/
|
|
15
|
+
export declare const onParticipationCreated: ReturnType<typeof createEventModule<typeof publicOnParticipationCreated>>;
|
|
16
|
+
/**
|
|
17
|
+
* Triggered when a `participation` object is deleted.
|
|
18
|
+
*/
|
|
19
|
+
export declare const onParticipationDeleted: ReturnType<typeof createEventModule<typeof publicOnParticipationDeleted>>;
|
|
20
|
+
/**
|
|
21
|
+
* Triggered when a `participation` object is updated.
|
|
22
|
+
*/
|
|
23
|
+
export declare const onParticipationUpdated: ReturnType<typeof createEventModule<typeof publicOnParticipationUpdated>>;
|
|
24
|
+
export { Status, WebhookIdentityType, } from './calendar-v3-participation-participations.universal.js';
|
|
25
|
+
export { Participation, ParticipationParticipatedItemOneOf, Participant, ExtendedFields, GetParticipationRequest, GetParticipationResponse, QueryParticipationsRequest, CursorQuery, CursorQueryPagingMethodOneOf, CursorPaging, QueryParticipationsResponse, CursorPagingMetadata, Cursors, CreateParticipationRequest, CreateParticipationResponse, UpdateParticipationRequest, UpdateParticipationResponse, ParticipationUpdatedWithMetadata, DeleteParticipationRequest, DeleteParticipationResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, SumParticipationsPartySizeByScheduleIdRequest, SumParticipationsPartySizeByScheduleIdResponse, PartySizeSumByScheduleId, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, ParticipationNonNullableFields, GetParticipationResponseNonNullableFields, QueryParticipationsResponseNonNullableFields, CreateParticipationResponseNonNullableFields, UpdateParticipationResponseNonNullableFields, BaseEventMetadata, EventMetadata, ParticipationCreatedEnvelope, ParticipationDeletedEnvelope, ParticipationUpdatedEnvelope, ParticipationsQueryResult, ParticipationsQueryBuilder, CreateParticipationOptions, UpdateParticipation, } from './calendar-v3-participation-participations.universal.js';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.Status = exports.onParticipationUpdated = exports.onParticipationDeleted = exports.onParticipationCreated = exports.deleteParticipation = exports.updateParticipation = exports.createParticipation = exports.queryParticipations = exports.getParticipation = void 0;
|
|
4
|
+
const calendar_v3_participation_participations_public_js_1 = require("./calendar-v3-participation-participations.public.js");
|
|
5
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
|
+
const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules");
|
|
7
|
+
const calendar_v3_participation_participations_public_js_2 = require("./calendar-v3-participation-participations.public.js");
|
|
8
|
+
const calendar_v3_participation_participations_public_js_3 = require("./calendar-v3-participation-participations.public.js");
|
|
9
|
+
const calendar_v3_participation_participations_public_js_4 = require("./calendar-v3-participation-participations.public.js");
|
|
10
|
+
exports.getParticipation = (0, rest_modules_1.createRESTModule)(calendar_v3_participation_participations_public_js_1.getParticipation);
|
|
11
|
+
exports.queryParticipations = (0, rest_modules_1.createRESTModule)(calendar_v3_participation_participations_public_js_1.queryParticipations);
|
|
12
|
+
exports.createParticipation = (0, rest_modules_1.createRESTModule)(calendar_v3_participation_participations_public_js_1.createParticipation);
|
|
13
|
+
exports.updateParticipation = (0, rest_modules_1.createRESTModule)(calendar_v3_participation_participations_public_js_1.updateParticipation);
|
|
14
|
+
exports.deleteParticipation = (0, rest_modules_1.createRESTModule)(calendar_v3_participation_participations_public_js_1.deleteParticipation);
|
|
15
|
+
/**
|
|
16
|
+
* Triggered when a `participation` object is created.
|
|
17
|
+
*/
|
|
18
|
+
exports.onParticipationCreated = (0, event_definition_modules_1.createEventModule)(calendar_v3_participation_participations_public_js_2.onParticipationCreated);
|
|
19
|
+
/**
|
|
20
|
+
* Triggered when a `participation` object is deleted.
|
|
21
|
+
*/
|
|
22
|
+
exports.onParticipationDeleted = (0, event_definition_modules_1.createEventModule)(calendar_v3_participation_participations_public_js_3.onParticipationDeleted);
|
|
23
|
+
/**
|
|
24
|
+
* Triggered when a `participation` object is updated.
|
|
25
|
+
*/
|
|
26
|
+
exports.onParticipationUpdated = (0, event_definition_modules_1.createEventModule)(calendar_v3_participation_participations_public_js_4.onParticipationUpdated);
|
|
27
|
+
var calendar_v3_participation_participations_universal_js_1 = require("./calendar-v3-participation-participations.universal.js");
|
|
28
|
+
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return calendar_v3_participation_participations_universal_js_1.Status; } });
|
|
29
|
+
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return calendar_v3_participation_participations_universal_js_1.WebhookIdentityType; } });
|
|
30
|
+
//# sourceMappingURL=calendar-v3-participation-participations.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-v3-participation-participations.context.js","sourceRoot":"","sources":["../../../../src/calendar-v3-participation-participations.context.ts"],"names":[],"mappings":";;;AAAA,6HAM8D;AAC9D,gEAAiE;AACjE,wFAA8E;AAE9E,6HAA8H;AAC9H,6HAA8H;AAC9H,6HAA8H;AAEjH,QAAA,gBAAgB,GAGX,IAAA,+BAAgB,EAAC,qEAAsB,CAAC,CAAC;AAC9C,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,wEAAyB,CAAC,CAAC;AACjD,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,wEAAyB,CAAC,CAAC;AACjD,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,wEAAyB,CAAC,CAAC;AACjD,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,wEAAyB,CAAC,CAAC;AAC9D;;GAEG;AACU,QAAA,sBAAsB,GAE/B,IAAA,4CAAiB,EAAC,2EAA4B,CAAC,CAAC;AACpD;;GAEG;AACU,QAAA,sBAAsB,GAE/B,IAAA,4CAAiB,EAAC,2EAA4B,CAAC,CAAC;AACpD;;GAEG;AACU,QAAA,sBAAsB,GAE/B,IAAA,4CAAiB,EAAC,2EAA4B,CAAC,CAAC;AAEpD,iIAGiE;AAF/D,+IAAA,MAAM,OAAA;AACN,4JAAA,mBAAmB,OAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
/** Retrieves a `participation` object. */
|
|
3
|
+
export declare function getParticipation(payload: object): RequestOptionsFactory<any>;
|
|
4
|
+
/**
|
|
5
|
+
* Creates a query to retrieve a list of participations.
|
|
6
|
+
*
|
|
7
|
+
* The `queryParticipations()` function builds a query to retrieve a list of participations and returns a `ParticipationsQueryBuilder` object.
|
|
8
|
+
*
|
|
9
|
+
* 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.
|
|
10
|
+
*
|
|
11
|
+
* 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.
|
|
12
|
+
*
|
|
13
|
+
* `queryParticipations()` runs with the following `ParticipationsQueryBuilder` default that you can override:
|
|
14
|
+
*
|
|
15
|
+
* + `limit` is `50`.
|
|
16
|
+
* + Sorted by `createdDate` in ascending order.
|
|
17
|
+
*
|
|
18
|
+
* The functions that are chained to `queryParticipations()` are applied in the order they are called.
|
|
19
|
+
*
|
|
20
|
+
* 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`.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare function queryParticipations(payload: object): RequestOptionsFactory<any>;
|
|
24
|
+
/** Creates a `participation` object for a schedule or event. */
|
|
25
|
+
export declare function createParticipation(payload: object): RequestOptionsFactory<any>;
|
|
26
|
+
/** Updates a `participation` object. */
|
|
27
|
+
export declare function updateParticipation(payload: object): RequestOptionsFactory<any>;
|
|
28
|
+
/** Deletes a `participation` object. */
|
|
29
|
+
export declare function deleteParticipation(payload: object): RequestOptionsFactory<any>;
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteParticipation = exports.updateParticipation = exports.createParticipation = exports.queryParticipations = exports.getParticipation = void 0;
|
|
4
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
5
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
|
+
const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
7
|
+
const field_mask_1 = require("@wix/sdk-runtime/transformations/field-mask");
|
|
8
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
9
|
+
const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
|
|
10
|
+
function resolveWixCalendarParticipationsV3ParticipationsServiceUrl(opts) {
|
|
11
|
+
const domainToMappings = {
|
|
12
|
+
'manage._base_domain_': [
|
|
13
|
+
{
|
|
14
|
+
srcPath: '/_api/calendar/v3/participations',
|
|
15
|
+
destPath: '/v3/participations',
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
'www.wixapis.com': [
|
|
19
|
+
{
|
|
20
|
+
srcPath: '/calendar/v3/participations',
|
|
21
|
+
destPath: '/v3/participations',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
};
|
|
25
|
+
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
26
|
+
}
|
|
27
|
+
const PACKAGE_NAME = '@wix/auto_sdk_calendar_participations';
|
|
28
|
+
/** Retrieves a `participation` object. */
|
|
29
|
+
function getParticipation(payload) {
|
|
30
|
+
function __getParticipation({ host }) {
|
|
31
|
+
const metadata = {
|
|
32
|
+
entityFqdn: 'wix.calendar.v3.participation',
|
|
33
|
+
method: 'GET',
|
|
34
|
+
methodFqn: 'wix.calendar.participations.v3.ParticipationsService.GetParticipation',
|
|
35
|
+
packageName: PACKAGE_NAME,
|
|
36
|
+
url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({
|
|
37
|
+
protoPath: '/v3/participations/{participationId}',
|
|
38
|
+
data: payload,
|
|
39
|
+
host,
|
|
40
|
+
}),
|
|
41
|
+
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
42
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
43
|
+
{
|
|
44
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
45
|
+
paths: [
|
|
46
|
+
{ path: 'participation.createdDate' },
|
|
47
|
+
{ path: 'participation.updatedDate' },
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
]),
|
|
51
|
+
};
|
|
52
|
+
return metadata;
|
|
53
|
+
}
|
|
54
|
+
return __getParticipation;
|
|
55
|
+
}
|
|
56
|
+
exports.getParticipation = getParticipation;
|
|
57
|
+
/**
|
|
58
|
+
* Creates a query to retrieve a list of participations.
|
|
59
|
+
*
|
|
60
|
+
* The `queryParticipations()` function builds a query to retrieve a list of participations and returns a `ParticipationsQueryBuilder` object.
|
|
61
|
+
*
|
|
62
|
+
* 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.
|
|
63
|
+
*
|
|
64
|
+
* 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.
|
|
65
|
+
*
|
|
66
|
+
* `queryParticipations()` runs with the following `ParticipationsQueryBuilder` default that you can override:
|
|
67
|
+
*
|
|
68
|
+
* + `limit` is `50`.
|
|
69
|
+
* + Sorted by `createdDate` in ascending order.
|
|
70
|
+
*
|
|
71
|
+
* The functions that are chained to `queryParticipations()` are applied in the order they are called.
|
|
72
|
+
*
|
|
73
|
+
* 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`.
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
76
|
+
function queryParticipations(payload) {
|
|
77
|
+
function __queryParticipations({ host }) {
|
|
78
|
+
const metadata = {
|
|
79
|
+
entityFqdn: 'wix.calendar.v3.participation',
|
|
80
|
+
method: 'POST',
|
|
81
|
+
methodFqn: 'wix.calendar.participations.v3.ParticipationsService.QueryParticipations',
|
|
82
|
+
packageName: PACKAGE_NAME,
|
|
83
|
+
url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({
|
|
84
|
+
protoPath: '/v3/participations/query',
|
|
85
|
+
data: payload,
|
|
86
|
+
host,
|
|
87
|
+
}),
|
|
88
|
+
data: payload,
|
|
89
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
90
|
+
{
|
|
91
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
92
|
+
paths: [
|
|
93
|
+
{ path: 'participations.createdDate' },
|
|
94
|
+
{ path: 'participations.updatedDate' },
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
]),
|
|
98
|
+
};
|
|
99
|
+
return metadata;
|
|
100
|
+
}
|
|
101
|
+
return __queryParticipations;
|
|
102
|
+
}
|
|
103
|
+
exports.queryParticipations = queryParticipations;
|
|
104
|
+
/** Creates a `participation` object for a schedule or event. */
|
|
105
|
+
function createParticipation(payload) {
|
|
106
|
+
function __createParticipation({ host }) {
|
|
107
|
+
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
108
|
+
{
|
|
109
|
+
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
110
|
+
paths: [
|
|
111
|
+
{ path: 'participation.createdDate' },
|
|
112
|
+
{ path: 'participation.updatedDate' },
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
]);
|
|
116
|
+
const metadata = {
|
|
117
|
+
entityFqdn: 'wix.calendar.v3.participation',
|
|
118
|
+
method: 'POST',
|
|
119
|
+
methodFqn: 'wix.calendar.participations.v3.ParticipationsService.CreateParticipation',
|
|
120
|
+
packageName: PACKAGE_NAME,
|
|
121
|
+
url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({
|
|
122
|
+
protoPath: '/v3/participations',
|
|
123
|
+
data: serializedData,
|
|
124
|
+
host,
|
|
125
|
+
}),
|
|
126
|
+
data: serializedData,
|
|
127
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
128
|
+
{
|
|
129
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
130
|
+
paths: [
|
|
131
|
+
{ path: 'participation.createdDate' },
|
|
132
|
+
{ path: 'participation.updatedDate' },
|
|
133
|
+
],
|
|
134
|
+
},
|
|
135
|
+
]),
|
|
136
|
+
};
|
|
137
|
+
return metadata;
|
|
138
|
+
}
|
|
139
|
+
return __createParticipation;
|
|
140
|
+
}
|
|
141
|
+
exports.createParticipation = createParticipation;
|
|
142
|
+
/** Updates a `participation` object. */
|
|
143
|
+
function updateParticipation(payload) {
|
|
144
|
+
function __updateParticipation({ host }) {
|
|
145
|
+
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
146
|
+
{
|
|
147
|
+
transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
|
|
148
|
+
paths: [{ path: 'fieldmask' }],
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
152
|
+
paths: [
|
|
153
|
+
{ path: 'participation.createdDate' },
|
|
154
|
+
{ path: 'participation.updatedDate' },
|
|
155
|
+
],
|
|
156
|
+
},
|
|
157
|
+
]);
|
|
158
|
+
const metadata = {
|
|
159
|
+
entityFqdn: 'wix.calendar.v3.participation',
|
|
160
|
+
method: 'PATCH',
|
|
161
|
+
methodFqn: 'wix.calendar.participations.v3.ParticipationsService.UpdateParticipation',
|
|
162
|
+
packageName: PACKAGE_NAME,
|
|
163
|
+
url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({
|
|
164
|
+
protoPath: '/v3/participations/{participation.id}',
|
|
165
|
+
data: serializedData,
|
|
166
|
+
host,
|
|
167
|
+
}),
|
|
168
|
+
data: serializedData,
|
|
169
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
170
|
+
{
|
|
171
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
172
|
+
paths: [
|
|
173
|
+
{ path: 'participation.createdDate' },
|
|
174
|
+
{ path: 'participation.updatedDate' },
|
|
175
|
+
],
|
|
176
|
+
},
|
|
177
|
+
]),
|
|
178
|
+
};
|
|
179
|
+
return metadata;
|
|
180
|
+
}
|
|
181
|
+
return __updateParticipation;
|
|
182
|
+
}
|
|
183
|
+
exports.updateParticipation = updateParticipation;
|
|
184
|
+
/** Deletes a `participation` object. */
|
|
185
|
+
function deleteParticipation(payload) {
|
|
186
|
+
function __deleteParticipation({ host }) {
|
|
187
|
+
const metadata = {
|
|
188
|
+
entityFqdn: 'wix.calendar.v3.participation',
|
|
189
|
+
method: 'DELETE',
|
|
190
|
+
methodFqn: 'wix.calendar.participations.v3.ParticipationsService.DeleteParticipation',
|
|
191
|
+
packageName: PACKAGE_NAME,
|
|
192
|
+
url: resolveWixCalendarParticipationsV3ParticipationsServiceUrl({
|
|
193
|
+
protoPath: '/v3/participations/{participationId}',
|
|
194
|
+
data: payload,
|
|
195
|
+
host,
|
|
196
|
+
}),
|
|
197
|
+
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
198
|
+
};
|
|
199
|
+
return metadata;
|
|
200
|
+
}
|
|
201
|
+
return __deleteParticipation;
|
|
202
|
+
}
|
|
203
|
+
exports.deleteParticipation = deleteParticipation;
|
|
204
|
+
//# sourceMappingURL=calendar-v3-participation-participations.http.js.map
|