@wix/auto_sdk_calendar_participations 1.0.16 → 1.0.18
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/{internal/cjs/src/calendar-v3-participation-participations.universal.d.ts → calendar-v3-participation-participations.universal-Utp3ht5A.d.mts} +48 -194
- package/build/{cjs/src/calendar-v3-participation-participations.universal.d.ts → calendar-v3-participation-participations.universal-Utp3ht5A.d.ts} +48 -194
- package/build/index.d.mts +85 -0
- package/build/index.d.ts +85 -0
- package/build/index.js +495 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +462 -0
- package/build/index.mjs.map +1 -0
- package/build/{es/src/calendar-v3-participation-participations.universal.d.ts → internal/calendar-v3-participation-participations.universal-Utp3ht5A.d.mts} +48 -194
- package/build/internal/{es/src/calendar-v3-participation-participations.universal.d.ts → calendar-v3-participation-participations.universal-Utp3ht5A.d.ts} +48 -194
- package/build/internal/index.d.mts +85 -0
- package/build/internal/index.d.ts +85 -0
- package/build/internal/index.js +495 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +462 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{es/src/calendar-v3-participation-participations.types.d.ts → internal/meta.d.mts} +48 -181
- package/build/internal/{es/src/calendar-v3-participation-participations.types.d.ts → meta.d.ts} +48 -181
- package/build/internal/meta.js +304 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +273 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{cjs/src/calendar-v3-participation-participations.types.d.ts → meta.d.mts} +48 -181
- package/build/{internal/cjs/src/calendar-v3-participation-participations.types.d.ts → meta.d.ts} +48 -181
- package/build/meta.js +304 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +273 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/calendar-v3-participation-participations.context.d.ts +0 -25
- package/build/cjs/src/calendar-v3-participation-participations.context.js +0 -30
- package/build/cjs/src/calendar-v3-participation-participations.context.js.map +0 -1
- package/build/cjs/src/calendar-v3-participation-participations.http.d.ts +0 -29
- package/build/cjs/src/calendar-v3-participation-participations.http.js +0 -204
- package/build/cjs/src/calendar-v3-participation-participations.http.js.map +0 -1
- package/build/cjs/src/calendar-v3-participation-participations.meta.d.ts +0 -23
- package/build/cjs/src/calendar-v3-participation-participations.meta.js +0 -123
- package/build/cjs/src/calendar-v3-participation-participations.meta.js.map +0 -1
- package/build/cjs/src/calendar-v3-participation-participations.public.d.ts +0 -67
- package/build/cjs/src/calendar-v3-participation-participations.public.js +0 -73
- package/build/cjs/src/calendar-v3-participation-participations.public.js.map +0 -1
- package/build/cjs/src/calendar-v3-participation-participations.types.js +0 -19
- package/build/cjs/src/calendar-v3-participation-participations.types.js.map +0 -1
- package/build/cjs/src/calendar-v3-participation-participations.universal.js +0 -289
- package/build/cjs/src/calendar-v3-participation-participations.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/calendar-v3-participation-participations.context.d.ts +0 -25
- package/build/es/src/calendar-v3-participation-participations.context.js +0 -25
- package/build/es/src/calendar-v3-participation-participations.context.js.map +0 -1
- package/build/es/src/calendar-v3-participation-participations.http.d.ts +0 -29
- package/build/es/src/calendar-v3-participation-participations.http.js +0 -196
- package/build/es/src/calendar-v3-participation-participations.http.js.map +0 -1
- package/build/es/src/calendar-v3-participation-participations.meta.d.ts +0 -23
- package/build/es/src/calendar-v3-participation-participations.meta.js +0 -92
- package/build/es/src/calendar-v3-participation-participations.meta.js.map +0 -1
- package/build/es/src/calendar-v3-participation-participations.public.d.ts +0 -67
- package/build/es/src/calendar-v3-participation-participations.public.js +0 -63
- package/build/es/src/calendar-v3-participation-participations.public.js.map +0 -1
- package/build/es/src/calendar-v3-participation-participations.types.js +0 -16
- package/build/es/src/calendar-v3-participation-participations.types.js.map +0 -1
- package/build/es/src/calendar-v3-participation-participations.universal.js +0 -258
- package/build/es/src/calendar-v3-participation-participations.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/calendar-v3-participation-participations.context.d.ts +0 -25
- package/build/internal/cjs/src/calendar-v3-participation-participations.context.js +0 -30
- package/build/internal/cjs/src/calendar-v3-participation-participations.context.js.map +0 -1
- package/build/internal/cjs/src/calendar-v3-participation-participations.http.d.ts +0 -29
- package/build/internal/cjs/src/calendar-v3-participation-participations.http.js +0 -204
- package/build/internal/cjs/src/calendar-v3-participation-participations.http.js.map +0 -1
- package/build/internal/cjs/src/calendar-v3-participation-participations.meta.d.ts +0 -23
- package/build/internal/cjs/src/calendar-v3-participation-participations.meta.js +0 -123
- package/build/internal/cjs/src/calendar-v3-participation-participations.meta.js.map +0 -1
- package/build/internal/cjs/src/calendar-v3-participation-participations.public.d.ts +0 -67
- package/build/internal/cjs/src/calendar-v3-participation-participations.public.js +0 -73
- package/build/internal/cjs/src/calendar-v3-participation-participations.public.js.map +0 -1
- package/build/internal/cjs/src/calendar-v3-participation-participations.types.js +0 -19
- package/build/internal/cjs/src/calendar-v3-participation-participations.types.js.map +0 -1
- package/build/internal/cjs/src/calendar-v3-participation-participations.universal.js +0 -289
- package/build/internal/cjs/src/calendar-v3-participation-participations.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/calendar-v3-participation-participations.context.d.ts +0 -25
- package/build/internal/es/src/calendar-v3-participation-participations.context.js +0 -25
- package/build/internal/es/src/calendar-v3-participation-participations.context.js.map +0 -1
- package/build/internal/es/src/calendar-v3-participation-participations.http.d.ts +0 -29
- package/build/internal/es/src/calendar-v3-participation-participations.http.js +0 -196
- package/build/internal/es/src/calendar-v3-participation-participations.http.js.map +0 -1
- package/build/internal/es/src/calendar-v3-participation-participations.meta.d.ts +0 -23
- package/build/internal/es/src/calendar-v3-participation-participations.meta.js +0 -92
- package/build/internal/es/src/calendar-v3-participation-participations.meta.js.map +0 -1
- package/build/internal/es/src/calendar-v3-participation-participations.public.d.ts +0 -67
- package/build/internal/es/src/calendar-v3-participation-participations.public.js +0 -63
- package/build/internal/es/src/calendar-v3-participation-participations.public.js.map +0 -1
- package/build/internal/es/src/calendar-v3-participation-participations.types.js +0 -16
- package/build/internal/es/src/calendar-v3-participation-participations.types.js.map +0 -1
- package/build/internal/es/src/calendar-v3-participation-participations.universal.js +0 -258
- package/build/internal/es/src/calendar-v3-participation-participations.universal.js.map +0 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
1
|
/**
|
|
3
2
|
* The `participation` object represents the relationship between a participant and
|
|
4
3
|
* an [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
|
|
@@ -6,7 +5,7 @@ import { NonNullablePaths } from '@wix/sdk-types';
|
|
|
6
5
|
* It includes details about the participant, whether the participation status is confirmed or
|
|
7
6
|
* pending, which app owns the relevant event or schedule, and allows for custom data extensions.
|
|
8
7
|
*/
|
|
9
|
-
|
|
8
|
+
interface Participation extends ParticipationParticipatedItemOneOf {
|
|
10
9
|
/**
|
|
11
10
|
* ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)
|
|
12
11
|
* associated with the participation.
|
|
@@ -87,7 +86,7 @@ export interface Participation extends ParticipationParticipatedItemOneOf {
|
|
|
87
86
|
extendedFields?: ExtendedFields;
|
|
88
87
|
}
|
|
89
88
|
/** @oneof */
|
|
90
|
-
|
|
89
|
+
interface ParticipationParticipatedItemOneOf {
|
|
91
90
|
/**
|
|
92
91
|
* ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)
|
|
93
92
|
* associated with the participation.
|
|
@@ -104,7 +103,7 @@ export interface ParticipationParticipatedItemOneOf {
|
|
|
104
103
|
*/
|
|
105
104
|
eventId?: string | null;
|
|
106
105
|
}
|
|
107
|
-
|
|
106
|
+
interface Participant {
|
|
108
107
|
/**
|
|
109
108
|
* Participant name.
|
|
110
109
|
*
|
|
@@ -131,15 +130,15 @@ export interface Participant {
|
|
|
131
130
|
*/
|
|
132
131
|
contactId?: string | null;
|
|
133
132
|
}
|
|
134
|
-
|
|
133
|
+
declare enum Status {
|
|
135
134
|
/** 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). */
|
|
136
135
|
CONFIRMED = "CONFIRMED",
|
|
137
136
|
/** 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). */
|
|
138
137
|
PENDING_CONFIRMATION = "PENDING_CONFIRMATION"
|
|
139
138
|
}
|
|
140
139
|
/** @enumType */
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
type StatusWithLiterals = Status | 'CONFIRMED' | 'PENDING_CONFIRMATION';
|
|
141
|
+
interface ExtendedFields {
|
|
143
142
|
/**
|
|
144
143
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
145
144
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -150,22 +149,22 @@ export interface ExtendedFields {
|
|
|
150
149
|
*/
|
|
151
150
|
namespaces?: Record<string, Record<string, any>>;
|
|
152
151
|
}
|
|
153
|
-
|
|
152
|
+
interface GetParticipationRequest {
|
|
154
153
|
/**
|
|
155
154
|
* ID of the `participation` object to retrieve.
|
|
156
155
|
* @format GUID
|
|
157
156
|
*/
|
|
158
157
|
participationId: string | null;
|
|
159
158
|
}
|
|
160
|
-
|
|
159
|
+
interface GetParticipationResponse {
|
|
161
160
|
/** Retrieved `participation` object. */
|
|
162
161
|
participation?: Participation;
|
|
163
162
|
}
|
|
164
|
-
|
|
163
|
+
interface QueryParticipationsRequest {
|
|
165
164
|
/** Query containing filters and paging. */
|
|
166
165
|
query?: CursorQuery;
|
|
167
166
|
}
|
|
168
|
-
|
|
167
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
169
168
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
170
169
|
cursorPaging?: CursorPaging;
|
|
171
170
|
/**
|
|
@@ -179,11 +178,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
179
178
|
filter?: Record<string, any> | null;
|
|
180
179
|
}
|
|
181
180
|
/** @oneof */
|
|
182
|
-
|
|
181
|
+
interface CursorQueryPagingMethodOneOf {
|
|
183
182
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
184
183
|
cursorPaging?: CursorPaging;
|
|
185
184
|
}
|
|
186
|
-
|
|
185
|
+
interface CursorPaging {
|
|
187
186
|
/**
|
|
188
187
|
* Number of participations to load.
|
|
189
188
|
* @min 1
|
|
@@ -199,13 +198,13 @@ export interface CursorPaging {
|
|
|
199
198
|
*/
|
|
200
199
|
cursor?: string | null;
|
|
201
200
|
}
|
|
202
|
-
|
|
201
|
+
interface QueryParticipationsResponse {
|
|
203
202
|
/** Retrieved `participation` objects matching the provided query. */
|
|
204
203
|
participations?: Participation[];
|
|
205
204
|
/** Paging metadata. */
|
|
206
205
|
pagingMetadata?: CursorPagingMetadata;
|
|
207
206
|
}
|
|
208
|
-
|
|
207
|
+
interface CursorPagingMetadata {
|
|
209
208
|
/** Number of items returned in the response. */
|
|
210
209
|
count?: number | null;
|
|
211
210
|
/** Offset that was requested. */
|
|
@@ -217,13 +216,13 @@ export interface CursorPagingMetadata {
|
|
|
217
216
|
*/
|
|
218
217
|
hasNext?: boolean | null;
|
|
219
218
|
}
|
|
220
|
-
|
|
219
|
+
interface Cursors {
|
|
221
220
|
/** Cursor pointing to next page in the list of results. */
|
|
222
221
|
next?: string | null;
|
|
223
222
|
/** Cursor pointing to previous page in the list of results. */
|
|
224
223
|
prev?: string | null;
|
|
225
224
|
}
|
|
226
|
-
|
|
225
|
+
interface CreateParticipationRequest {
|
|
227
226
|
/** `participation` object to create. */
|
|
228
227
|
participation: Participation;
|
|
229
228
|
/**
|
|
@@ -233,28 +232,28 @@ export interface CreateParticipationRequest {
|
|
|
233
232
|
*/
|
|
234
233
|
idempotencyKey?: string | null;
|
|
235
234
|
}
|
|
236
|
-
|
|
235
|
+
interface CreateParticipationResponse {
|
|
237
236
|
/** Created `participation` object. */
|
|
238
237
|
participation?: Participation;
|
|
239
238
|
}
|
|
240
|
-
|
|
239
|
+
interface UpdateParticipationRequest {
|
|
241
240
|
/** `participation` object to update. */
|
|
242
241
|
participation: Participation;
|
|
243
242
|
}
|
|
244
|
-
|
|
243
|
+
interface UpdateParticipationResponse {
|
|
245
244
|
/** Updated `participation` object. */
|
|
246
245
|
participation?: Participation;
|
|
247
246
|
}
|
|
248
|
-
|
|
247
|
+
interface DeleteParticipationRequest {
|
|
249
248
|
/**
|
|
250
249
|
* ID of `participation` object to delete.
|
|
251
250
|
* @format GUID
|
|
252
251
|
*/
|
|
253
252
|
participationId: string | null;
|
|
254
253
|
}
|
|
255
|
-
|
|
254
|
+
interface DeleteParticipationResponse {
|
|
256
255
|
}
|
|
257
|
-
|
|
256
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
258
257
|
createdEvent?: EntityCreatedEvent;
|
|
259
258
|
updatedEvent?: EntityUpdatedEvent;
|
|
260
259
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -289,19 +288,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
289
288
|
entityEventSequence?: string | null;
|
|
290
289
|
}
|
|
291
290
|
/** @oneof */
|
|
292
|
-
|
|
291
|
+
interface DomainEventBodyOneOf {
|
|
293
292
|
createdEvent?: EntityCreatedEvent;
|
|
294
293
|
updatedEvent?: EntityUpdatedEvent;
|
|
295
294
|
deletedEvent?: EntityDeletedEvent;
|
|
296
295
|
actionEvent?: ActionEvent;
|
|
297
296
|
}
|
|
298
|
-
|
|
297
|
+
interface EntityCreatedEvent {
|
|
299
298
|
entity?: string;
|
|
300
299
|
}
|
|
301
|
-
|
|
300
|
+
interface RestoreInfo {
|
|
302
301
|
deletedDate?: Date | null;
|
|
303
302
|
}
|
|
304
|
-
|
|
303
|
+
interface EntityUpdatedEvent {
|
|
305
304
|
/**
|
|
306
305
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
307
306
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -309,16 +308,16 @@ export interface EntityUpdatedEvent {
|
|
|
309
308
|
*/
|
|
310
309
|
currentEntity?: string;
|
|
311
310
|
}
|
|
312
|
-
|
|
311
|
+
interface EntityDeletedEvent {
|
|
313
312
|
/** Entity that was deleted. */
|
|
314
313
|
deletedEntity?: string | null;
|
|
315
314
|
}
|
|
316
|
-
|
|
315
|
+
interface ActionEvent {
|
|
317
316
|
body?: string;
|
|
318
317
|
}
|
|
319
|
-
|
|
318
|
+
interface Empty {
|
|
320
319
|
}
|
|
321
|
-
|
|
320
|
+
interface SumParticipationsPartySizeByScheduleIdRequest {
|
|
322
321
|
/**
|
|
323
322
|
* The schedule IDs.
|
|
324
323
|
* @format GUID
|
|
@@ -326,11 +325,11 @@ export interface SumParticipationsPartySizeByScheduleIdRequest {
|
|
|
326
325
|
*/
|
|
327
326
|
scheduleIds?: string[] | null;
|
|
328
327
|
}
|
|
329
|
-
|
|
328
|
+
interface SumParticipationsPartySizeByScheduleIdResponse {
|
|
330
329
|
/** The sum of party size by schedule ID. */
|
|
331
330
|
partySizeSumByScheduleId?: PartySizeSumByScheduleId[];
|
|
332
331
|
}
|
|
333
|
-
|
|
332
|
+
interface PartySizeSumByScheduleId {
|
|
334
333
|
/**
|
|
335
334
|
* The ID of the schedule.
|
|
336
335
|
* @format GUID
|
|
@@ -339,7 +338,7 @@ export interface PartySizeSumByScheduleId {
|
|
|
339
338
|
/** The sum of the participations party size. */
|
|
340
339
|
partySizeSum?: number | null;
|
|
341
340
|
}
|
|
342
|
-
|
|
341
|
+
interface MessageEnvelope {
|
|
343
342
|
/**
|
|
344
343
|
* App instance ID.
|
|
345
344
|
* @format GUID
|
|
@@ -355,7 +354,7 @@ export interface MessageEnvelope {
|
|
|
355
354
|
/** Stringify payload. */
|
|
356
355
|
data?: string;
|
|
357
356
|
}
|
|
358
|
-
|
|
357
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
359
358
|
/**
|
|
360
359
|
* ID of a site visitor that has not logged in to the site.
|
|
361
360
|
* @format GUID
|
|
@@ -380,7 +379,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
380
379
|
identityType?: WebhookIdentityTypeWithLiterals;
|
|
381
380
|
}
|
|
382
381
|
/** @oneof */
|
|
383
|
-
|
|
382
|
+
interface IdentificationDataIdOneOf {
|
|
384
383
|
/**
|
|
385
384
|
* ID of a site visitor that has not logged in to the site.
|
|
386
385
|
* @format GUID
|
|
@@ -402,7 +401,7 @@ export interface IdentificationDataIdOneOf {
|
|
|
402
401
|
*/
|
|
403
402
|
appId?: string;
|
|
404
403
|
}
|
|
405
|
-
|
|
404
|
+
declare enum WebhookIdentityType {
|
|
406
405
|
UNKNOWN = "UNKNOWN",
|
|
407
406
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
408
407
|
MEMBER = "MEMBER",
|
|
@@ -410,8 +409,8 @@ export declare enum WebhookIdentityType {
|
|
|
410
409
|
APP = "APP"
|
|
411
410
|
}
|
|
412
411
|
/** @enumType */
|
|
413
|
-
|
|
414
|
-
|
|
412
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
413
|
+
interface BaseEventMetadata {
|
|
415
414
|
/**
|
|
416
415
|
* App instance ID.
|
|
417
416
|
* @format GUID
|
|
@@ -425,7 +424,7 @@ export interface BaseEventMetadata {
|
|
|
425
424
|
/** The identification type and identity data. */
|
|
426
425
|
identity?: IdentificationData;
|
|
427
426
|
}
|
|
428
|
-
|
|
427
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
429
428
|
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
430
429
|
_id?: string;
|
|
431
430
|
/**
|
|
@@ -455,107 +454,17 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
455
454
|
*/
|
|
456
455
|
entityEventSequence?: string | null;
|
|
457
456
|
}
|
|
458
|
-
|
|
457
|
+
interface ParticipationCreatedEnvelope {
|
|
459
458
|
entity: Participation;
|
|
460
459
|
metadata: EventMetadata;
|
|
461
460
|
}
|
|
462
|
-
|
|
463
|
-
* Triggered when a `participation` object is created.
|
|
464
|
-
* @permissionScope Manage Calendars
|
|
465
|
-
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
466
|
-
* @permissionScope Manage Bookings
|
|
467
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
468
|
-
* @permissionScope Manage Bookings - all permissions
|
|
469
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
470
|
-
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
471
|
-
* @webhook
|
|
472
|
-
* @eventType wix.calendar.v3.participation_created
|
|
473
|
-
* @slug created
|
|
474
|
-
*/
|
|
475
|
-
export declare function onParticipationCreated(handler: (event: ParticipationCreatedEnvelope) => void | Promise<void>): void;
|
|
476
|
-
export interface ParticipationDeletedEnvelope {
|
|
461
|
+
interface ParticipationDeletedEnvelope {
|
|
477
462
|
metadata: EventMetadata;
|
|
478
463
|
}
|
|
479
|
-
|
|
480
|
-
* Triggered when a `participation` object is deleted.
|
|
481
|
-
* @permissionScope Manage Calendars
|
|
482
|
-
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
483
|
-
* @permissionScope Manage Bookings
|
|
484
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
485
|
-
* @permissionScope Manage Bookings - all permissions
|
|
486
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
487
|
-
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
488
|
-
* @webhook
|
|
489
|
-
* @eventType wix.calendar.v3.participation_deleted
|
|
490
|
-
* @slug deleted
|
|
491
|
-
*/
|
|
492
|
-
export declare function onParticipationDeleted(handler: (event: ParticipationDeletedEnvelope) => void | Promise<void>): void;
|
|
493
|
-
export interface ParticipationUpdatedEnvelope {
|
|
464
|
+
interface ParticipationUpdatedEnvelope {
|
|
494
465
|
entity: Participation;
|
|
495
466
|
metadata: EventMetadata;
|
|
496
467
|
}
|
|
497
|
-
/**
|
|
498
|
-
* Triggered when a `participation` object is updated.
|
|
499
|
-
* @permissionScope Manage Calendars
|
|
500
|
-
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
501
|
-
* @permissionScope Manage Bookings
|
|
502
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
503
|
-
* @permissionScope Manage Bookings - all permissions
|
|
504
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
505
|
-
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
506
|
-
* @webhook
|
|
507
|
-
* @eventType wix.calendar.v3.participation_updated
|
|
508
|
-
* @slug updated
|
|
509
|
-
*/
|
|
510
|
-
export declare function onParticipationUpdated(handler: (event: ParticipationUpdatedEnvelope) => void | Promise<void>): void;
|
|
511
|
-
type ParticipationNonNullablePaths = `status`;
|
|
512
|
-
/**
|
|
513
|
-
* Retrieves a `participation` object.
|
|
514
|
-
* @param participationId - ID of the `participation` object to retrieve.
|
|
515
|
-
* @public
|
|
516
|
-
* @requiredField participationId
|
|
517
|
-
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
518
|
-
* @permissionScope Manage Calendars
|
|
519
|
-
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
520
|
-
* @permissionScope Manage Bookings
|
|
521
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
522
|
-
* @permissionScope Manage Bookings - all permissions
|
|
523
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
524
|
-
* @applicableIdentity APP
|
|
525
|
-
* @returns Retrieved `participation` object.
|
|
526
|
-
* @fqn wix.calendar.participations.v3.ParticipationsService.GetParticipation
|
|
527
|
-
*/
|
|
528
|
-
export declare function getParticipation(participationId: string): Promise<NonNullablePaths<Participation, ParticipationNonNullablePaths>>;
|
|
529
|
-
/**
|
|
530
|
-
* Creates a query to retrieve a list of participations.
|
|
531
|
-
*
|
|
532
|
-
* The `queryParticipations()` function builds a query to retrieve a list of participations and returns a `ParticipationsQueryBuilder` object.
|
|
533
|
-
*
|
|
534
|
-
* 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.
|
|
535
|
-
*
|
|
536
|
-
* 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.
|
|
537
|
-
*
|
|
538
|
-
* `queryParticipations()` runs with the following `ParticipationsQueryBuilder` default that you can override:
|
|
539
|
-
*
|
|
540
|
-
* + `limit` is `50`.
|
|
541
|
-
* + Sorted by `createdDate` in ascending order.
|
|
542
|
-
*
|
|
543
|
-
* The functions that are chained to `queryParticipations()` are applied in the order they are called.
|
|
544
|
-
*
|
|
545
|
-
* 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`.
|
|
546
|
-
*
|
|
547
|
-
* @public
|
|
548
|
-
* @permissionScope Manage Calendars
|
|
549
|
-
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
550
|
-
* @permissionScope Manage Bookings
|
|
551
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
552
|
-
* @permissionScope Manage Bookings - all permissions
|
|
553
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
554
|
-
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
555
|
-
* @applicableIdentity APP
|
|
556
|
-
* @fqn wix.calendar.participations.v3.ParticipationsService.QueryParticipations
|
|
557
|
-
*/
|
|
558
|
-
export declare function queryParticipations(): ParticipationsQueryBuilder;
|
|
559
468
|
interface QueryCursorResult {
|
|
560
469
|
cursors: Cursors;
|
|
561
470
|
hasNext: () => boolean;
|
|
@@ -563,13 +472,13 @@ interface QueryCursorResult {
|
|
|
563
472
|
length: number;
|
|
564
473
|
pageSize: number;
|
|
565
474
|
}
|
|
566
|
-
|
|
475
|
+
interface ParticipationsQueryResult extends QueryCursorResult {
|
|
567
476
|
items: Participation[];
|
|
568
477
|
query: ParticipationsQueryBuilder;
|
|
569
478
|
next: () => Promise<ParticipationsQueryResult>;
|
|
570
479
|
prev: () => Promise<ParticipationsQueryResult>;
|
|
571
480
|
}
|
|
572
|
-
|
|
481
|
+
interface ParticipationsQueryBuilder {
|
|
573
482
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
574
483
|
* @param value - Value to compare against.
|
|
575
484
|
*/
|
|
@@ -581,28 +490,7 @@ export interface ParticipationsQueryBuilder {
|
|
|
581
490
|
skipTo: (cursor: string) => ParticipationsQueryBuilder;
|
|
582
491
|
find: () => Promise<ParticipationsQueryResult>;
|
|
583
492
|
}
|
|
584
|
-
|
|
585
|
-
* Creates a `participation` object for a schedule or event.
|
|
586
|
-
* @param participation - `participation` object to create.
|
|
587
|
-
* @public
|
|
588
|
-
* @requiredField participation
|
|
589
|
-
* @requiredField participation.participant
|
|
590
|
-
* @requiredField participation.participant.name
|
|
591
|
-
* @requiredField participation.participatedItem
|
|
592
|
-
* @requiredField participation.partySize
|
|
593
|
-
* @permissionId CALENDAR.PARTICIPATION_CREATE
|
|
594
|
-
* @permissionScope Manage Calendars
|
|
595
|
-
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
596
|
-
* @permissionScope Manage Bookings
|
|
597
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
598
|
-
* @permissionScope Manage Bookings - all permissions
|
|
599
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
600
|
-
* @applicableIdentity APP
|
|
601
|
-
* @returns Created `participation` object.
|
|
602
|
-
* @fqn wix.calendar.participations.v3.ParticipationsService.CreateParticipation
|
|
603
|
-
*/
|
|
604
|
-
export declare function createParticipation(participation: NonNullablePaths<Participation, `participant` | `participant.name` | `partySize`>, options?: CreateParticipationOptions): Promise<NonNullablePaths<Participation, ParticipationNonNullablePaths>>;
|
|
605
|
-
export interface CreateParticipationOptions {
|
|
493
|
+
interface CreateParticipationOptions {
|
|
606
494
|
/**
|
|
607
495
|
* Idempotency key guaranteeing that you don't create the same `participation`
|
|
608
496
|
* object more than once.
|
|
@@ -610,26 +498,7 @@ export interface CreateParticipationOptions {
|
|
|
610
498
|
*/
|
|
611
499
|
idempotencyKey?: string | null;
|
|
612
500
|
}
|
|
613
|
-
|
|
614
|
-
* Updates a `participation` object.
|
|
615
|
-
* @param _id - Participation ID.
|
|
616
|
-
* @public
|
|
617
|
-
* @requiredField _id
|
|
618
|
-
* @requiredField participation
|
|
619
|
-
* @requiredField participation.revision
|
|
620
|
-
* @permissionId CALENDAR.PARTICIPATION_UPDATE
|
|
621
|
-
* @permissionScope Manage Calendars
|
|
622
|
-
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
623
|
-
* @permissionScope Manage Bookings
|
|
624
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
625
|
-
* @permissionScope Manage Bookings - all permissions
|
|
626
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
627
|
-
* @applicableIdentity APP
|
|
628
|
-
* @returns Updated `participation` object.
|
|
629
|
-
* @fqn wix.calendar.participations.v3.ParticipationsService.UpdateParticipation
|
|
630
|
-
*/
|
|
631
|
-
export declare function updateParticipation(_id: string, participation: NonNullablePaths<UpdateParticipation, `revision`>): Promise<NonNullablePaths<Participation, ParticipationNonNullablePaths>>;
|
|
632
|
-
export interface UpdateParticipation {
|
|
501
|
+
interface UpdateParticipation {
|
|
633
502
|
/**
|
|
634
503
|
* ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)
|
|
635
504
|
* associated with the participation.
|
|
@@ -709,20 +578,5 @@ export interface UpdateParticipation {
|
|
|
709
578
|
/** Extensions enabling applications or users to save custom data related to the participation. */
|
|
710
579
|
extendedFields?: ExtendedFields;
|
|
711
580
|
}
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
* @param participationId - ID of `participation` object to delete.
|
|
715
|
-
* @public
|
|
716
|
-
* @requiredField participationId
|
|
717
|
-
* @permissionId CALENDAR.PARTICIPATION_DELETE
|
|
718
|
-
* @permissionScope Manage Calendars
|
|
719
|
-
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
720
|
-
* @permissionScope Manage Bookings
|
|
721
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
722
|
-
* @permissionScope Manage Bookings - all permissions
|
|
723
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
724
|
-
* @applicableIdentity APP
|
|
725
|
-
* @fqn wix.calendar.participations.v3.ParticipationsService.DeleteParticipation
|
|
726
|
-
*/
|
|
727
|
-
export declare function deleteParticipation(participationId: string): Promise<void>;
|
|
728
|
-
export {};
|
|
581
|
+
|
|
582
|
+
export { type ActionEvent as A, type PartySizeSumByScheduleId as B, type CreateParticipationOptions as C, type DeleteParticipationRequest as D, type ExtendedFields as E, type IdentificationDataIdOneOf as F, type GetParticipationRequest as G, type BaseEventMetadata as H, type IdentificationData as I, type EventMetadata as J, type ParticipationsQueryResult as K, type MessageEnvelope as M, type Participation as P, type QueryParticipationsRequest as Q, type RestoreInfo as R, Status as S, type UpdateParticipation as U, WebhookIdentityType as W, type ParticipationsQueryBuilder as a, type ParticipationCreatedEnvelope as b, type ParticipationDeletedEnvelope as c, type ParticipationUpdatedEnvelope as d, type ParticipationParticipatedItemOneOf as e, type Participant as f, type GetParticipationResponse as g, type CursorQuery as h, type CursorQueryPagingMethodOneOf as i, type CursorPaging as j, type QueryParticipationsResponse as k, type CursorPagingMetadata as l, type Cursors as m, type CreateParticipationRequest as n, type CreateParticipationResponse as o, type UpdateParticipationRequest as p, type UpdateParticipationResponse as q, type DeleteParticipationResponse as r, type DomainEvent as s, type DomainEventBodyOneOf as t, type EntityCreatedEvent as u, type EntityUpdatedEvent as v, type EntityDeletedEvent as w, type Empty as x, type SumParticipationsPartySizeByScheduleIdRequest as y, type SumParticipationsPartySizeByScheduleIdResponse as z };
|