@wix/auto_sdk_calendar_participations 1.0.6 → 1.0.8
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-DKvqWfOR.d.mts} +46 -229
- package/build/{cjs/src/calendar-v3-participation-participations.universal.d.ts → calendar-v3-participation-participations.universal-DKvqWfOR.d.ts} +46 -229
- package/build/index.d.mts +83 -0
- package/build/index.d.ts +83 -0
- package/build/index.js +492 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +459 -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-DKvqWfOR.d.mts} +46 -229
- package/build/internal/{es/src/calendar-v3-participation-participations.universal.d.ts → calendar-v3-participation-participations.universal-DKvqWfOR.d.ts} +46 -229
- package/build/internal/index.d.mts +83 -0
- package/build/internal/index.d.ts +83 -0
- package/build/internal/index.js +492 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +459 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{es/src/calendar-v3-participation-participations.types.d.ts → internal/meta.d.mts} +47 -202
- package/build/internal/{es/src/calendar-v3-participation-participations.types.d.ts → meta.d.ts} +47 -202
- 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} +47 -202
- package/build/{internal/cjs/src/calendar-v3-participation-participations.types.d.ts → meta.d.ts} +47 -202
- 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 -302
- 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 -271
- 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 -302
- 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 -271
- package/build/internal/es/src/calendar-v3-participation-participations.universal.js.map +0 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* It includes details about the participant, whether the participation status is confirmed or
|
|
6
6
|
* pending, which app owns the relevant event or schedule, and allows for custom data extensions.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
interface Participation extends ParticipationParticipatedItemOneOf {
|
|
9
9
|
/**
|
|
10
10
|
* ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)
|
|
11
11
|
* associated with the participation.
|
|
@@ -86,7 +86,7 @@ export interface Participation extends ParticipationParticipatedItemOneOf {
|
|
|
86
86
|
extendedFields?: ExtendedFields;
|
|
87
87
|
}
|
|
88
88
|
/** @oneof */
|
|
89
|
-
|
|
89
|
+
interface ParticipationParticipatedItemOneOf {
|
|
90
90
|
/**
|
|
91
91
|
* ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)
|
|
92
92
|
* associated with the participation.
|
|
@@ -103,7 +103,7 @@ export interface ParticipationParticipatedItemOneOf {
|
|
|
103
103
|
*/
|
|
104
104
|
eventId?: string | null;
|
|
105
105
|
}
|
|
106
|
-
|
|
106
|
+
interface Participant {
|
|
107
107
|
/**
|
|
108
108
|
* Participant name.
|
|
109
109
|
*
|
|
@@ -130,13 +130,13 @@ export interface Participant {
|
|
|
130
130
|
*/
|
|
131
131
|
contactId?: string | null;
|
|
132
132
|
}
|
|
133
|
-
|
|
133
|
+
declare enum Status {
|
|
134
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). */
|
|
135
135
|
CONFIRMED = "CONFIRMED",
|
|
136
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). */
|
|
137
137
|
PENDING_CONFIRMATION = "PENDING_CONFIRMATION"
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
interface ExtendedFields {
|
|
140
140
|
/**
|
|
141
141
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
142
142
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -147,22 +147,22 @@ export interface ExtendedFields {
|
|
|
147
147
|
*/
|
|
148
148
|
namespaces?: Record<string, Record<string, any>>;
|
|
149
149
|
}
|
|
150
|
-
|
|
150
|
+
interface GetParticipationRequest {
|
|
151
151
|
/**
|
|
152
152
|
* ID of the `participation` object to retrieve.
|
|
153
153
|
* @format GUID
|
|
154
154
|
*/
|
|
155
155
|
participationId: string | null;
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
interface GetParticipationResponse {
|
|
158
158
|
/** Retrieved `participation` object. */
|
|
159
159
|
participation?: Participation;
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
interface QueryParticipationsRequest {
|
|
162
162
|
/** Query containing filters and paging. */
|
|
163
163
|
query?: CursorQuery;
|
|
164
164
|
}
|
|
165
|
-
|
|
165
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
166
166
|
/** 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`. */
|
|
167
167
|
cursorPaging?: CursorPaging;
|
|
168
168
|
/**
|
|
@@ -176,11 +176,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
176
176
|
filter?: Record<string, any> | null;
|
|
177
177
|
}
|
|
178
178
|
/** @oneof */
|
|
179
|
-
|
|
179
|
+
interface CursorQueryPagingMethodOneOf {
|
|
180
180
|
/** 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`. */
|
|
181
181
|
cursorPaging?: CursorPaging;
|
|
182
182
|
}
|
|
183
|
-
|
|
183
|
+
interface CursorPaging {
|
|
184
184
|
/**
|
|
185
185
|
* Number of participations to load.
|
|
186
186
|
* @min 1
|
|
@@ -196,13 +196,13 @@ export interface CursorPaging {
|
|
|
196
196
|
*/
|
|
197
197
|
cursor?: string | null;
|
|
198
198
|
}
|
|
199
|
-
|
|
199
|
+
interface QueryParticipationsResponse {
|
|
200
200
|
/** Retrieved `participation` objects matching the provided query. */
|
|
201
201
|
participations?: Participation[];
|
|
202
202
|
/** Paging metadata. */
|
|
203
203
|
pagingMetadata?: CursorPagingMetadata;
|
|
204
204
|
}
|
|
205
|
-
|
|
205
|
+
interface CursorPagingMetadata {
|
|
206
206
|
/** Number of items returned in the response. */
|
|
207
207
|
count?: number | null;
|
|
208
208
|
/** Offset that was requested. */
|
|
@@ -214,13 +214,13 @@ export interface CursorPagingMetadata {
|
|
|
214
214
|
*/
|
|
215
215
|
hasNext?: boolean | null;
|
|
216
216
|
}
|
|
217
|
-
|
|
217
|
+
interface Cursors {
|
|
218
218
|
/** Cursor pointing to next page in the list of results. */
|
|
219
219
|
next?: string | null;
|
|
220
220
|
/** Cursor pointing to previous page in the list of results. */
|
|
221
221
|
prev?: string | null;
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
interface CreateParticipationRequest {
|
|
224
224
|
/** `participation` object to create. */
|
|
225
225
|
participation: Participation;
|
|
226
226
|
/**
|
|
@@ -230,28 +230,28 @@ export interface CreateParticipationRequest {
|
|
|
230
230
|
*/
|
|
231
231
|
idempotencyKey?: string | null;
|
|
232
232
|
}
|
|
233
|
-
|
|
233
|
+
interface CreateParticipationResponse {
|
|
234
234
|
/** Created `participation` object. */
|
|
235
235
|
participation?: Participation;
|
|
236
236
|
}
|
|
237
|
-
|
|
237
|
+
interface UpdateParticipationRequest {
|
|
238
238
|
/** `participation` object to update. */
|
|
239
239
|
participation: Participation;
|
|
240
240
|
}
|
|
241
|
-
|
|
241
|
+
interface UpdateParticipationResponse {
|
|
242
242
|
/** Updated `participation` object. */
|
|
243
243
|
participation?: Participation;
|
|
244
244
|
}
|
|
245
|
-
|
|
245
|
+
interface DeleteParticipationRequest {
|
|
246
246
|
/**
|
|
247
247
|
* ID of `participation` object to delete.
|
|
248
248
|
* @format GUID
|
|
249
249
|
*/
|
|
250
250
|
participationId: string | null;
|
|
251
251
|
}
|
|
252
|
-
|
|
252
|
+
interface DeleteParticipationResponse {
|
|
253
253
|
}
|
|
254
|
-
|
|
254
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
255
255
|
createdEvent?: EntityCreatedEvent;
|
|
256
256
|
updatedEvent?: EntityUpdatedEvent;
|
|
257
257
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -294,19 +294,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
294
294
|
entityEventSequence?: string | null;
|
|
295
295
|
}
|
|
296
296
|
/** @oneof */
|
|
297
|
-
|
|
297
|
+
interface DomainEventBodyOneOf {
|
|
298
298
|
createdEvent?: EntityCreatedEvent;
|
|
299
299
|
updatedEvent?: EntityUpdatedEvent;
|
|
300
300
|
deletedEvent?: EntityDeletedEvent;
|
|
301
301
|
actionEvent?: ActionEvent;
|
|
302
302
|
}
|
|
303
|
-
|
|
303
|
+
interface EntityCreatedEvent {
|
|
304
304
|
entity?: string;
|
|
305
305
|
}
|
|
306
|
-
|
|
306
|
+
interface RestoreInfo {
|
|
307
307
|
deletedDate?: Date | null;
|
|
308
308
|
}
|
|
309
|
-
|
|
309
|
+
interface EntityUpdatedEvent {
|
|
310
310
|
/**
|
|
311
311
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
312
312
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -314,16 +314,16 @@ export interface EntityUpdatedEvent {
|
|
|
314
314
|
*/
|
|
315
315
|
currentEntity?: string;
|
|
316
316
|
}
|
|
317
|
-
|
|
317
|
+
interface EntityDeletedEvent {
|
|
318
318
|
/** Entity that was deleted */
|
|
319
319
|
deletedEntity?: string | null;
|
|
320
320
|
}
|
|
321
|
-
|
|
321
|
+
interface ActionEvent {
|
|
322
322
|
body?: string;
|
|
323
323
|
}
|
|
324
|
-
|
|
324
|
+
interface Empty {
|
|
325
325
|
}
|
|
326
|
-
|
|
326
|
+
interface SumParticipationsPartySizeByScheduleIdRequest {
|
|
327
327
|
/**
|
|
328
328
|
* The schedule IDs.
|
|
329
329
|
* @format GUID
|
|
@@ -331,11 +331,11 @@ export interface SumParticipationsPartySizeByScheduleIdRequest {
|
|
|
331
331
|
*/
|
|
332
332
|
scheduleIds?: string[] | null;
|
|
333
333
|
}
|
|
334
|
-
|
|
334
|
+
interface SumParticipationsPartySizeByScheduleIdResponse {
|
|
335
335
|
/** The sum of party size by schedule ID. */
|
|
336
336
|
partySizeSumByScheduleId?: PartySizeSumByScheduleId[];
|
|
337
337
|
}
|
|
338
|
-
|
|
338
|
+
interface PartySizeSumByScheduleId {
|
|
339
339
|
/**
|
|
340
340
|
* The ID of the schedule.
|
|
341
341
|
* @format GUID
|
|
@@ -344,7 +344,7 @@ export interface PartySizeSumByScheduleId {
|
|
|
344
344
|
/** The sum of the participations party size. */
|
|
345
345
|
partySizeSum?: number | null;
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
interface MessageEnvelope {
|
|
348
348
|
/**
|
|
349
349
|
* App instance ID.
|
|
350
350
|
* @format GUID
|
|
@@ -360,7 +360,7 @@ export interface MessageEnvelope {
|
|
|
360
360
|
/** Stringify payload. */
|
|
361
361
|
data?: string;
|
|
362
362
|
}
|
|
363
|
-
|
|
363
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
364
364
|
/**
|
|
365
365
|
* ID of a site visitor that has not logged in to the site.
|
|
366
366
|
* @format GUID
|
|
@@ -385,7 +385,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
385
385
|
identityType?: WebhookIdentityType;
|
|
386
386
|
}
|
|
387
387
|
/** @oneof */
|
|
388
|
-
|
|
388
|
+
interface IdentificationDataIdOneOf {
|
|
389
389
|
/**
|
|
390
390
|
* ID of a site visitor that has not logged in to the site.
|
|
391
391
|
* @format GUID
|
|
@@ -407,29 +407,14 @@ export interface IdentificationDataIdOneOf {
|
|
|
407
407
|
*/
|
|
408
408
|
appId?: string;
|
|
409
409
|
}
|
|
410
|
-
|
|
410
|
+
declare enum WebhookIdentityType {
|
|
411
411
|
UNKNOWN = "UNKNOWN",
|
|
412
412
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
413
413
|
MEMBER = "MEMBER",
|
|
414
414
|
WIX_USER = "WIX_USER",
|
|
415
415
|
APP = "APP"
|
|
416
416
|
}
|
|
417
|
-
|
|
418
|
-
status: Status;
|
|
419
|
-
}
|
|
420
|
-
export interface GetParticipationResponseNonNullableFields {
|
|
421
|
-
participation?: ParticipationNonNullableFields;
|
|
422
|
-
}
|
|
423
|
-
export interface QueryParticipationsResponseNonNullableFields {
|
|
424
|
-
participations: ParticipationNonNullableFields[];
|
|
425
|
-
}
|
|
426
|
-
export interface CreateParticipationResponseNonNullableFields {
|
|
427
|
-
participation?: ParticipationNonNullableFields;
|
|
428
|
-
}
|
|
429
|
-
export interface UpdateParticipationResponseNonNullableFields {
|
|
430
|
-
participation?: ParticipationNonNullableFields;
|
|
431
|
-
}
|
|
432
|
-
export interface BaseEventMetadata {
|
|
417
|
+
interface BaseEventMetadata {
|
|
433
418
|
/**
|
|
434
419
|
* App instance ID.
|
|
435
420
|
* @format GUID
|
|
@@ -443,7 +428,7 @@ export interface BaseEventMetadata {
|
|
|
443
428
|
/** The identification type and identity data. */
|
|
444
429
|
identity?: IdentificationData;
|
|
445
430
|
}
|
|
446
|
-
|
|
431
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
447
432
|
/**
|
|
448
433
|
* Unique event ID.
|
|
449
434
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -481,121 +466,17 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
481
466
|
*/
|
|
482
467
|
entityEventSequence?: string | null;
|
|
483
468
|
}
|
|
484
|
-
|
|
469
|
+
interface ParticipationCreatedEnvelope {
|
|
485
470
|
entity: Participation;
|
|
486
471
|
metadata: EventMetadata;
|
|
487
472
|
}
|
|
488
|
-
|
|
489
|
-
* Triggered when a `participation` object is created.
|
|
490
|
-
* @permissionScope Manage Calendars
|
|
491
|
-
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
492
|
-
* @permissionScope Manage Bookings
|
|
493
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
494
|
-
* @permissionScope Manage Bookings - all permissions
|
|
495
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
496
|
-
* @permissionScope Picasso private app mega scope
|
|
497
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
498
|
-
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
499
|
-
* @webhook
|
|
500
|
-
* @eventType wix.calendar.v3.participation_created
|
|
501
|
-
* @slug created
|
|
502
|
-
* @documentationMaturity preview
|
|
503
|
-
*/
|
|
504
|
-
export declare function onParticipationCreated(handler: (event: ParticipationCreatedEnvelope) => void | Promise<void>): void;
|
|
505
|
-
export interface ParticipationDeletedEnvelope {
|
|
473
|
+
interface ParticipationDeletedEnvelope {
|
|
506
474
|
metadata: EventMetadata;
|
|
507
475
|
}
|
|
508
|
-
|
|
509
|
-
* Triggered when a `participation` object is deleted.
|
|
510
|
-
* @permissionScope Manage Calendars
|
|
511
|
-
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
512
|
-
* @permissionScope Manage Bookings
|
|
513
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
514
|
-
* @permissionScope Manage Bookings - all permissions
|
|
515
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
516
|
-
* @permissionScope Picasso private app mega scope
|
|
517
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
518
|
-
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
519
|
-
* @webhook
|
|
520
|
-
* @eventType wix.calendar.v3.participation_deleted
|
|
521
|
-
* @slug deleted
|
|
522
|
-
* @documentationMaturity preview
|
|
523
|
-
*/
|
|
524
|
-
export declare function onParticipationDeleted(handler: (event: ParticipationDeletedEnvelope) => void | Promise<void>): void;
|
|
525
|
-
export interface ParticipationUpdatedEnvelope {
|
|
476
|
+
interface ParticipationUpdatedEnvelope {
|
|
526
477
|
entity: Participation;
|
|
527
478
|
metadata: EventMetadata;
|
|
528
479
|
}
|
|
529
|
-
/**
|
|
530
|
-
* Triggered when a `participation` object is updated.
|
|
531
|
-
* @permissionScope Manage Calendars
|
|
532
|
-
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
533
|
-
* @permissionScope Manage Bookings
|
|
534
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
535
|
-
* @permissionScope Manage Bookings - all permissions
|
|
536
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
537
|
-
* @permissionScope Picasso private app mega scope
|
|
538
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
539
|
-
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
540
|
-
* @webhook
|
|
541
|
-
* @eventType wix.calendar.v3.participation_updated
|
|
542
|
-
* @slug updated
|
|
543
|
-
* @documentationMaturity preview
|
|
544
|
-
*/
|
|
545
|
-
export declare function onParticipationUpdated(handler: (event: ParticipationUpdatedEnvelope) => void | Promise<void>): void;
|
|
546
|
-
/**
|
|
547
|
-
* Retrieves a `participation` object.
|
|
548
|
-
* @param participationId - ID of the `participation` object to retrieve.
|
|
549
|
-
* @public
|
|
550
|
-
* @documentationMaturity preview
|
|
551
|
-
* @requiredField participationId
|
|
552
|
-
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
553
|
-
* @permissionScope Manage Calendars
|
|
554
|
-
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
555
|
-
* @permissionScope Manage Bookings
|
|
556
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
557
|
-
* @permissionScope Manage Bookings - all permissions
|
|
558
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
559
|
-
* @permissionScope Picasso private app mega scope
|
|
560
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
561
|
-
* @applicableIdentity APP
|
|
562
|
-
* @returns Retrieved `participation` object.
|
|
563
|
-
* @fqn wix.calendar.participations.v3.ParticipationsService.GetParticipation
|
|
564
|
-
*/
|
|
565
|
-
export declare function getParticipation(participationId: string | null): Promise<Participation & ParticipationNonNullableFields>;
|
|
566
|
-
/**
|
|
567
|
-
* Creates a query to retrieve a list of participations.
|
|
568
|
-
*
|
|
569
|
-
* The `queryParticipations()` function builds a query to retrieve a list of participations and returns a `ParticipationsQueryBuilder` object.
|
|
570
|
-
*
|
|
571
|
-
* 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.
|
|
572
|
-
*
|
|
573
|
-
* 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.
|
|
574
|
-
*
|
|
575
|
-
* `queryParticipations()` runs with the following `ParticipationsQueryBuilder` default that you can override:
|
|
576
|
-
*
|
|
577
|
-
* + `limit` is `50`.
|
|
578
|
-
* + Sorted by `createdDate` in ascending order.
|
|
579
|
-
*
|
|
580
|
-
* The functions that are chained to `queryParticipations()` are applied in the order they are called.
|
|
581
|
-
*
|
|
582
|
-
* 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`.
|
|
583
|
-
*
|
|
584
|
-
* @public
|
|
585
|
-
* @documentationMaturity preview
|
|
586
|
-
* @permissionScope Manage Calendars
|
|
587
|
-
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
588
|
-
* @permissionScope Manage Bookings
|
|
589
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
590
|
-
* @permissionScope Manage Bookings - all permissions
|
|
591
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
592
|
-
* @permissionScope Picasso private app mega scope
|
|
593
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
594
|
-
* @permissionId CALENDAR.PARTICIPATION_READ
|
|
595
|
-
* @applicableIdentity APP
|
|
596
|
-
* @fqn wix.calendar.participations.v3.ParticipationsService.QueryParticipations
|
|
597
|
-
*/
|
|
598
|
-
export declare function queryParticipations(): ParticipationsQueryBuilder;
|
|
599
480
|
interface QueryCursorResult {
|
|
600
481
|
cursors: Cursors;
|
|
601
482
|
hasNext: () => boolean;
|
|
@@ -603,13 +484,13 @@ interface QueryCursorResult {
|
|
|
603
484
|
length: number;
|
|
604
485
|
pageSize: number;
|
|
605
486
|
}
|
|
606
|
-
|
|
487
|
+
interface ParticipationsQueryResult extends QueryCursorResult {
|
|
607
488
|
items: Participation[];
|
|
608
489
|
query: ParticipationsQueryBuilder;
|
|
609
490
|
next: () => Promise<ParticipationsQueryResult>;
|
|
610
491
|
prev: () => Promise<ParticipationsQueryResult>;
|
|
611
492
|
}
|
|
612
|
-
|
|
493
|
+
interface ParticipationsQueryBuilder {
|
|
613
494
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
614
495
|
* @param value - Value to compare against.
|
|
615
496
|
* @documentationMaturity preview
|
|
@@ -628,31 +509,7 @@ export interface ParticipationsQueryBuilder {
|
|
|
628
509
|
/** @documentationMaturity preview */
|
|
629
510
|
find: () => Promise<ParticipationsQueryResult>;
|
|
630
511
|
}
|
|
631
|
-
|
|
632
|
-
* Creates a `participation` object for a schedule or event.
|
|
633
|
-
* @param participation - `participation` object to create.
|
|
634
|
-
* @public
|
|
635
|
-
* @documentationMaturity preview
|
|
636
|
-
* @requiredField participation
|
|
637
|
-
* @requiredField participation.participant
|
|
638
|
-
* @requiredField participation.participant.name
|
|
639
|
-
* @requiredField participation.participatedItem
|
|
640
|
-
* @requiredField participation.partySize
|
|
641
|
-
* @permissionId CALENDAR.PARTICIPATION_CREATE
|
|
642
|
-
* @permissionScope Manage Calendars
|
|
643
|
-
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
644
|
-
* @permissionScope Manage Bookings
|
|
645
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
646
|
-
* @permissionScope Manage Bookings - all permissions
|
|
647
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
648
|
-
* @permissionScope Picasso private app mega scope
|
|
649
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
650
|
-
* @applicableIdentity APP
|
|
651
|
-
* @returns Created `participation` object.
|
|
652
|
-
* @fqn wix.calendar.participations.v3.ParticipationsService.CreateParticipation
|
|
653
|
-
*/
|
|
654
|
-
export declare function createParticipation(participation: Participation, options?: CreateParticipationOptions): Promise<Participation & ParticipationNonNullableFields>;
|
|
655
|
-
export interface CreateParticipationOptions {
|
|
512
|
+
interface CreateParticipationOptions {
|
|
656
513
|
/**
|
|
657
514
|
* Idempotency key guaranteeing that you don't create the same `participation`
|
|
658
515
|
* object more than once.
|
|
@@ -660,29 +517,7 @@ export interface CreateParticipationOptions {
|
|
|
660
517
|
*/
|
|
661
518
|
idempotencyKey?: string | null;
|
|
662
519
|
}
|
|
663
|
-
|
|
664
|
-
* Updates a `participation` object.
|
|
665
|
-
* @param _id - Participation ID.
|
|
666
|
-
* @public
|
|
667
|
-
* @documentationMaturity preview
|
|
668
|
-
* @requiredField _id
|
|
669
|
-
* @requiredField participation
|
|
670
|
-
* @requiredField participation.revision
|
|
671
|
-
* @permissionId CALENDAR.PARTICIPATION_UPDATE
|
|
672
|
-
* @permissionScope Manage Calendars
|
|
673
|
-
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
674
|
-
* @permissionScope Manage Bookings
|
|
675
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
676
|
-
* @permissionScope Manage Bookings - all permissions
|
|
677
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
678
|
-
* @permissionScope Picasso private app mega scope
|
|
679
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
680
|
-
* @applicableIdentity APP
|
|
681
|
-
* @returns Updated `participation` object.
|
|
682
|
-
* @fqn wix.calendar.participations.v3.ParticipationsService.UpdateParticipation
|
|
683
|
-
*/
|
|
684
|
-
export declare function updateParticipation(_id: string | null, participation: UpdateParticipation): Promise<Participation & ParticipationNonNullableFields>;
|
|
685
|
-
export interface UpdateParticipation {
|
|
520
|
+
interface UpdateParticipation {
|
|
686
521
|
/**
|
|
687
522
|
* ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)
|
|
688
523
|
* associated with the participation.
|
|
@@ -762,23 +597,5 @@ export interface UpdateParticipation {
|
|
|
762
597
|
/** Extensions enabling applications or users to save custom data related to the participation. */
|
|
763
598
|
extendedFields?: ExtendedFields;
|
|
764
599
|
}
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
* @param participationId - ID of `participation` object to delete.
|
|
768
|
-
* @public
|
|
769
|
-
* @documentationMaturity preview
|
|
770
|
-
* @requiredField participationId
|
|
771
|
-
* @permissionId CALENDAR.PARTICIPATION_DELETE
|
|
772
|
-
* @permissionScope Manage Calendars
|
|
773
|
-
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
774
|
-
* @permissionScope Manage Bookings
|
|
775
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
776
|
-
* @permissionScope Manage Bookings - all permissions
|
|
777
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
778
|
-
* @permissionScope Picasso private app mega scope
|
|
779
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
780
|
-
* @applicableIdentity APP
|
|
781
|
-
* @fqn wix.calendar.participations.v3.ParticipationsService.DeleteParticipation
|
|
782
|
-
*/
|
|
783
|
-
export declare function deleteParticipation(participationId: string | null): Promise<void>;
|
|
784
|
-
export {};
|
|
600
|
+
|
|
601
|
+
export { type ActionEvent as A, type BaseEventMetadata as B, type CreateParticipationOptions as C, type DeleteParticipationRequest as D, type ExtendedFields as E, type ParticipationCreatedEnvelope as F, type GetParticipationRequest as G, type ParticipationDeletedEnvelope as H, type IdentificationData as I, type ParticipationUpdatedEnvelope 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 ParticipationParticipatedItemOneOf as b, type Participant as c, type GetParticipationResponse as d, type CursorQuery as e, type CursorQueryPagingMethodOneOf as f, type CursorPaging as g, type QueryParticipationsResponse as h, type CursorPagingMetadata as i, type Cursors as j, type CreateParticipationRequest as k, type CreateParticipationResponse as l, type UpdateParticipationRequest as m, type UpdateParticipationResponse as n, type DeleteParticipationResponse as o, type DomainEvent as p, type DomainEventBodyOneOf as q, type EntityCreatedEvent as r, type EntityUpdatedEvent as s, type EntityDeletedEvent as t, type Empty as u, type SumParticipationsPartySizeByScheduleIdRequest as v, type SumParticipationsPartySizeByScheduleIdResponse as w, type PartySizeSumByScheduleId as x, type IdentificationDataIdOneOf as y, type EventMetadata as z };
|