@wix/auto_sdk_calendar_participations 1.0.7 → 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.
Files changed (130) hide show
  1. package/build/{internal/cjs/src/calendar-v3-participation-participations.universal.d.ts → calendar-v3-participation-participations.universal-DKvqWfOR.d.mts} +46 -216
  2. package/build/{cjs/src/calendar-v3-participation-participations.universal.d.ts → calendar-v3-participation-participations.universal-DKvqWfOR.d.ts} +46 -216
  3. package/build/index.d.mts +83 -0
  4. package/build/index.d.ts +83 -0
  5. package/build/index.js +492 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +459 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/{es/src/calendar-v3-participation-participations.universal.d.ts → internal/calendar-v3-participation-participations.universal-DKvqWfOR.d.mts} +46 -216
  10. package/build/internal/{es/src/calendar-v3-participation-participations.universal.d.ts → calendar-v3-participation-participations.universal-DKvqWfOR.d.ts} +46 -216
  11. package/build/internal/index.d.mts +83 -0
  12. package/build/internal/index.d.ts +83 -0
  13. package/build/internal/index.js +492 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +459 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/{es/src/calendar-v3-participation-participations.types.d.ts → internal/meta.d.mts} +47 -186
  18. package/build/internal/{es/src/calendar-v3-participation-participations.types.d.ts → meta.d.ts} +47 -186
  19. package/build/internal/meta.js +304 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +273 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/{cjs/src/calendar-v3-participation-participations.types.d.ts → meta.d.mts} +47 -186
  24. package/build/{internal/cjs/src/calendar-v3-participation-participations.types.d.ts → meta.d.ts} +47 -186
  25. package/build/meta.js +304 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +273 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/calendar-v3-participation-participations.context.d.ts +0 -25
  40. package/build/cjs/src/calendar-v3-participation-participations.context.js +0 -30
  41. package/build/cjs/src/calendar-v3-participation-participations.context.js.map +0 -1
  42. package/build/cjs/src/calendar-v3-participation-participations.http.d.ts +0 -29
  43. package/build/cjs/src/calendar-v3-participation-participations.http.js +0 -204
  44. package/build/cjs/src/calendar-v3-participation-participations.http.js.map +0 -1
  45. package/build/cjs/src/calendar-v3-participation-participations.meta.d.ts +0 -23
  46. package/build/cjs/src/calendar-v3-participation-participations.meta.js +0 -123
  47. package/build/cjs/src/calendar-v3-participation-participations.meta.js.map +0 -1
  48. package/build/cjs/src/calendar-v3-participation-participations.public.d.ts +0 -67
  49. package/build/cjs/src/calendar-v3-participation-participations.public.js +0 -73
  50. package/build/cjs/src/calendar-v3-participation-participations.public.js.map +0 -1
  51. package/build/cjs/src/calendar-v3-participation-participations.types.js +0 -19
  52. package/build/cjs/src/calendar-v3-participation-participations.types.js.map +0 -1
  53. package/build/cjs/src/calendar-v3-participation-participations.universal.js +0 -302
  54. package/build/cjs/src/calendar-v3-participation-participations.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/calendar-v3-participation-participations.context.d.ts +0 -25
  66. package/build/es/src/calendar-v3-participation-participations.context.js +0 -25
  67. package/build/es/src/calendar-v3-participation-participations.context.js.map +0 -1
  68. package/build/es/src/calendar-v3-participation-participations.http.d.ts +0 -29
  69. package/build/es/src/calendar-v3-participation-participations.http.js +0 -196
  70. package/build/es/src/calendar-v3-participation-participations.http.js.map +0 -1
  71. package/build/es/src/calendar-v3-participation-participations.meta.d.ts +0 -23
  72. package/build/es/src/calendar-v3-participation-participations.meta.js +0 -92
  73. package/build/es/src/calendar-v3-participation-participations.meta.js.map +0 -1
  74. package/build/es/src/calendar-v3-participation-participations.public.d.ts +0 -67
  75. package/build/es/src/calendar-v3-participation-participations.public.js +0 -63
  76. package/build/es/src/calendar-v3-participation-participations.public.js.map +0 -1
  77. package/build/es/src/calendar-v3-participation-participations.types.js +0 -16
  78. package/build/es/src/calendar-v3-participation-participations.types.js.map +0 -1
  79. package/build/es/src/calendar-v3-participation-participations.universal.js +0 -271
  80. package/build/es/src/calendar-v3-participation-participations.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/calendar-v3-participation-participations.context.d.ts +0 -25
  91. package/build/internal/cjs/src/calendar-v3-participation-participations.context.js +0 -30
  92. package/build/internal/cjs/src/calendar-v3-participation-participations.context.js.map +0 -1
  93. package/build/internal/cjs/src/calendar-v3-participation-participations.http.d.ts +0 -29
  94. package/build/internal/cjs/src/calendar-v3-participation-participations.http.js +0 -204
  95. package/build/internal/cjs/src/calendar-v3-participation-participations.http.js.map +0 -1
  96. package/build/internal/cjs/src/calendar-v3-participation-participations.meta.d.ts +0 -23
  97. package/build/internal/cjs/src/calendar-v3-participation-participations.meta.js +0 -123
  98. package/build/internal/cjs/src/calendar-v3-participation-participations.meta.js.map +0 -1
  99. package/build/internal/cjs/src/calendar-v3-participation-participations.public.d.ts +0 -67
  100. package/build/internal/cjs/src/calendar-v3-participation-participations.public.js +0 -73
  101. package/build/internal/cjs/src/calendar-v3-participation-participations.public.js.map +0 -1
  102. package/build/internal/cjs/src/calendar-v3-participation-participations.types.js +0 -19
  103. package/build/internal/cjs/src/calendar-v3-participation-participations.types.js.map +0 -1
  104. package/build/internal/cjs/src/calendar-v3-participation-participations.universal.js +0 -302
  105. package/build/internal/cjs/src/calendar-v3-participation-participations.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/calendar-v3-participation-participations.context.d.ts +0 -25
  116. package/build/internal/es/src/calendar-v3-participation-participations.context.js +0 -25
  117. package/build/internal/es/src/calendar-v3-participation-participations.context.js.map +0 -1
  118. package/build/internal/es/src/calendar-v3-participation-participations.http.d.ts +0 -29
  119. package/build/internal/es/src/calendar-v3-participation-participations.http.js +0 -196
  120. package/build/internal/es/src/calendar-v3-participation-participations.http.js.map +0 -1
  121. package/build/internal/es/src/calendar-v3-participation-participations.meta.d.ts +0 -23
  122. package/build/internal/es/src/calendar-v3-participation-participations.meta.js +0 -92
  123. package/build/internal/es/src/calendar-v3-participation-participations.meta.js.map +0 -1
  124. package/build/internal/es/src/calendar-v3-participation-participations.public.d.ts +0 -67
  125. package/build/internal/es/src/calendar-v3-participation-participations.public.js +0 -63
  126. package/build/internal/es/src/calendar-v3-participation-participations.public.js.map +0 -1
  127. package/build/internal/es/src/calendar-v3-participation-participations.types.js +0 -16
  128. package/build/internal/es/src/calendar-v3-participation-participations.types.js.map +0 -1
  129. package/build/internal/es/src/calendar-v3-participation-participations.universal.js +0 -271
  130. 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
- export interface Participation extends ParticipationParticipatedItemOneOf {
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
- export interface ParticipationParticipatedItemOneOf {
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
- export interface Participant {
106
+ interface Participant {
108
107
  /**
109
108
  * Participant name.
110
109
  *
@@ -131,13 +130,13 @@ export interface Participant {
131
130
  */
132
131
  contactId?: string | null;
133
132
  }
134
- export declare enum Status {
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
- export interface ExtendedFields {
139
+ interface ExtendedFields {
141
140
  /**
142
141
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
143
142
  * The value of each key is structured according to the schema defined when the extended fields were configured.
@@ -148,22 +147,22 @@ export interface ExtendedFields {
148
147
  */
149
148
  namespaces?: Record<string, Record<string, any>>;
150
149
  }
151
- export interface GetParticipationRequest {
150
+ interface GetParticipationRequest {
152
151
  /**
153
152
  * ID of the `participation` object to retrieve.
154
153
  * @format GUID
155
154
  */
156
155
  participationId: string | null;
157
156
  }
158
- export interface GetParticipationResponse {
157
+ interface GetParticipationResponse {
159
158
  /** Retrieved `participation` object. */
160
159
  participation?: Participation;
161
160
  }
162
- export interface QueryParticipationsRequest {
161
+ interface QueryParticipationsRequest {
163
162
  /** Query containing filters and paging. */
164
163
  query?: CursorQuery;
165
164
  }
166
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
165
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
167
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`. */
168
167
  cursorPaging?: CursorPaging;
169
168
  /**
@@ -177,11 +176,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
177
176
  filter?: Record<string, any> | null;
178
177
  }
179
178
  /** @oneof */
180
- export interface CursorQueryPagingMethodOneOf {
179
+ interface CursorQueryPagingMethodOneOf {
181
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`. */
182
181
  cursorPaging?: CursorPaging;
183
182
  }
184
- export interface CursorPaging {
183
+ interface CursorPaging {
185
184
  /**
186
185
  * Number of participations to load.
187
186
  * @min 1
@@ -197,13 +196,13 @@ export interface CursorPaging {
197
196
  */
198
197
  cursor?: string | null;
199
198
  }
200
- export interface QueryParticipationsResponse {
199
+ interface QueryParticipationsResponse {
201
200
  /** Retrieved `participation` objects matching the provided query. */
202
201
  participations?: Participation[];
203
202
  /** Paging metadata. */
204
203
  pagingMetadata?: CursorPagingMetadata;
205
204
  }
206
- export interface CursorPagingMetadata {
205
+ interface CursorPagingMetadata {
207
206
  /** Number of items returned in the response. */
208
207
  count?: number | null;
209
208
  /** Offset that was requested. */
@@ -215,13 +214,13 @@ export interface CursorPagingMetadata {
215
214
  */
216
215
  hasNext?: boolean | null;
217
216
  }
218
- export interface Cursors {
217
+ interface Cursors {
219
218
  /** Cursor pointing to next page in the list of results. */
220
219
  next?: string | null;
221
220
  /** Cursor pointing to previous page in the list of results. */
222
221
  prev?: string | null;
223
222
  }
224
- export interface CreateParticipationRequest {
223
+ interface CreateParticipationRequest {
225
224
  /** `participation` object to create. */
226
225
  participation: Participation;
227
226
  /**
@@ -231,28 +230,28 @@ export interface CreateParticipationRequest {
231
230
  */
232
231
  idempotencyKey?: string | null;
233
232
  }
234
- export interface CreateParticipationResponse {
233
+ interface CreateParticipationResponse {
235
234
  /** Created `participation` object. */
236
235
  participation?: Participation;
237
236
  }
238
- export interface UpdateParticipationRequest {
237
+ interface UpdateParticipationRequest {
239
238
  /** `participation` object to update. */
240
239
  participation: Participation;
241
240
  }
242
- export interface UpdateParticipationResponse {
241
+ interface UpdateParticipationResponse {
243
242
  /** Updated `participation` object. */
244
243
  participation?: Participation;
245
244
  }
246
- export interface DeleteParticipationRequest {
245
+ interface DeleteParticipationRequest {
247
246
  /**
248
247
  * ID of `participation` object to delete.
249
248
  * @format GUID
250
249
  */
251
250
  participationId: string | null;
252
251
  }
253
- export interface DeleteParticipationResponse {
252
+ interface DeleteParticipationResponse {
254
253
  }
255
- export interface DomainEvent extends DomainEventBodyOneOf {
254
+ interface DomainEvent extends DomainEventBodyOneOf {
256
255
  createdEvent?: EntityCreatedEvent;
257
256
  updatedEvent?: EntityUpdatedEvent;
258
257
  deletedEvent?: EntityDeletedEvent;
@@ -295,19 +294,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
295
294
  entityEventSequence?: string | null;
296
295
  }
297
296
  /** @oneof */
298
- export interface DomainEventBodyOneOf {
297
+ interface DomainEventBodyOneOf {
299
298
  createdEvent?: EntityCreatedEvent;
300
299
  updatedEvent?: EntityUpdatedEvent;
301
300
  deletedEvent?: EntityDeletedEvent;
302
301
  actionEvent?: ActionEvent;
303
302
  }
304
- export interface EntityCreatedEvent {
303
+ interface EntityCreatedEvent {
305
304
  entity?: string;
306
305
  }
307
- export interface RestoreInfo {
306
+ interface RestoreInfo {
308
307
  deletedDate?: Date | null;
309
308
  }
310
- export interface EntityUpdatedEvent {
309
+ interface EntityUpdatedEvent {
311
310
  /**
312
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.
313
312
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -315,16 +314,16 @@ export interface EntityUpdatedEvent {
315
314
  */
316
315
  currentEntity?: string;
317
316
  }
318
- export interface EntityDeletedEvent {
317
+ interface EntityDeletedEvent {
319
318
  /** Entity that was deleted */
320
319
  deletedEntity?: string | null;
321
320
  }
322
- export interface ActionEvent {
321
+ interface ActionEvent {
323
322
  body?: string;
324
323
  }
325
- export interface Empty {
324
+ interface Empty {
326
325
  }
327
- export interface SumParticipationsPartySizeByScheduleIdRequest {
326
+ interface SumParticipationsPartySizeByScheduleIdRequest {
328
327
  /**
329
328
  * The schedule IDs.
330
329
  * @format GUID
@@ -332,11 +331,11 @@ export interface SumParticipationsPartySizeByScheduleIdRequest {
332
331
  */
333
332
  scheduleIds?: string[] | null;
334
333
  }
335
- export interface SumParticipationsPartySizeByScheduleIdResponse {
334
+ interface SumParticipationsPartySizeByScheduleIdResponse {
336
335
  /** The sum of party size by schedule ID. */
337
336
  partySizeSumByScheduleId?: PartySizeSumByScheduleId[];
338
337
  }
339
- export interface PartySizeSumByScheduleId {
338
+ interface PartySizeSumByScheduleId {
340
339
  /**
341
340
  * The ID of the schedule.
342
341
  * @format GUID
@@ -345,7 +344,7 @@ export interface PartySizeSumByScheduleId {
345
344
  /** The sum of the participations party size. */
346
345
  partySizeSum?: number | null;
347
346
  }
348
- export interface MessageEnvelope {
347
+ interface MessageEnvelope {
349
348
  /**
350
349
  * App instance ID.
351
350
  * @format GUID
@@ -361,7 +360,7 @@ export interface MessageEnvelope {
361
360
  /** Stringify payload. */
362
361
  data?: string;
363
362
  }
364
- export interface IdentificationData extends IdentificationDataIdOneOf {
363
+ interface IdentificationData extends IdentificationDataIdOneOf {
365
364
  /**
366
365
  * ID of a site visitor that has not logged in to the site.
367
366
  * @format GUID
@@ -386,7 +385,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
386
385
  identityType?: WebhookIdentityType;
387
386
  }
388
387
  /** @oneof */
389
- export interface IdentificationDataIdOneOf {
388
+ interface IdentificationDataIdOneOf {
390
389
  /**
391
390
  * ID of a site visitor that has not logged in to the site.
392
391
  * @format GUID
@@ -408,14 +407,14 @@ export interface IdentificationDataIdOneOf {
408
407
  */
409
408
  appId?: string;
410
409
  }
411
- export declare enum WebhookIdentityType {
410
+ declare enum WebhookIdentityType {
412
411
  UNKNOWN = "UNKNOWN",
413
412
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
414
413
  MEMBER = "MEMBER",
415
414
  WIX_USER = "WIX_USER",
416
415
  APP = "APP"
417
416
  }
418
- export interface BaseEventMetadata {
417
+ interface BaseEventMetadata {
419
418
  /**
420
419
  * App instance ID.
421
420
  * @format GUID
@@ -429,7 +428,7 @@ export interface BaseEventMetadata {
429
428
  /** The identification type and identity data. */
430
429
  identity?: IdentificationData;
431
430
  }
432
- export interface EventMetadata extends BaseEventMetadata {
431
+ interface EventMetadata extends BaseEventMetadata {
433
432
  /**
434
433
  * Unique event ID.
435
434
  * Allows clients to ignore duplicate webhooks.
@@ -467,122 +466,17 @@ export interface EventMetadata extends BaseEventMetadata {
467
466
  */
468
467
  entityEventSequence?: string | null;
469
468
  }
470
- export interface ParticipationCreatedEnvelope {
469
+ interface ParticipationCreatedEnvelope {
471
470
  entity: Participation;
472
471
  metadata: EventMetadata;
473
472
  }
474
- /**
475
- * Triggered when a `participation` object is created.
476
- * @permissionScope Manage Calendars
477
- * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
478
- * @permissionScope Manage Bookings
479
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
480
- * @permissionScope Manage Bookings - all permissions
481
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
482
- * @permissionScope Picasso private app mega scope
483
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
484
- * @permissionId CALENDAR.PARTICIPATION_READ
485
- * @webhook
486
- * @eventType wix.calendar.v3.participation_created
487
- * @slug created
488
- * @documentationMaturity preview
489
- */
490
- export declare function onParticipationCreated(handler: (event: ParticipationCreatedEnvelope) => void | Promise<void>): void;
491
- export interface ParticipationDeletedEnvelope {
473
+ interface ParticipationDeletedEnvelope {
492
474
  metadata: EventMetadata;
493
475
  }
494
- /**
495
- * Triggered when a `participation` object is deleted.
496
- * @permissionScope Manage Calendars
497
- * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
498
- * @permissionScope Manage Bookings
499
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
500
- * @permissionScope Manage Bookings - all permissions
501
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
502
- * @permissionScope Picasso private app mega scope
503
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
504
- * @permissionId CALENDAR.PARTICIPATION_READ
505
- * @webhook
506
- * @eventType wix.calendar.v3.participation_deleted
507
- * @slug deleted
508
- * @documentationMaturity preview
509
- */
510
- export declare function onParticipationDeleted(handler: (event: ParticipationDeletedEnvelope) => void | Promise<void>): void;
511
- export interface ParticipationUpdatedEnvelope {
476
+ interface ParticipationUpdatedEnvelope {
512
477
  entity: Participation;
513
478
  metadata: EventMetadata;
514
479
  }
515
- /**
516
- * Triggered when a `participation` object is updated.
517
- * @permissionScope Manage Calendars
518
- * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
519
- * @permissionScope Manage Bookings
520
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
521
- * @permissionScope Manage Bookings - all permissions
522
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
523
- * @permissionScope Picasso private app mega scope
524
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
525
- * @permissionId CALENDAR.PARTICIPATION_READ
526
- * @webhook
527
- * @eventType wix.calendar.v3.participation_updated
528
- * @slug updated
529
- * @documentationMaturity preview
530
- */
531
- export declare function onParticipationUpdated(handler: (event: ParticipationUpdatedEnvelope) => void | Promise<void>): void;
532
- type ParticipationNonNullablePaths = `status`;
533
- /**
534
- * Retrieves a `participation` object.
535
- * @param participationId - ID of the `participation` object to retrieve.
536
- * @public
537
- * @documentationMaturity preview
538
- * @requiredField participationId
539
- * @permissionId CALENDAR.PARTICIPATION_READ
540
- * @permissionScope Manage Calendars
541
- * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
542
- * @permissionScope Manage Bookings
543
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
544
- * @permissionScope Manage Bookings - all permissions
545
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
546
- * @permissionScope Picasso private app mega scope
547
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
548
- * @applicableIdentity APP
549
- * @returns Retrieved `participation` object.
550
- * @fqn wix.calendar.participations.v3.ParticipationsService.GetParticipation
551
- */
552
- export declare function getParticipation(participationId: string): Promise<NonNullablePaths<Participation, ParticipationNonNullablePaths>>;
553
- /**
554
- * Creates a query to retrieve a list of participations.
555
- *
556
- * The `queryParticipations()` function builds a query to retrieve a list of participations and returns a `ParticipationsQueryBuilder` object.
557
- *
558
- * 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.
559
- *
560
- * 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.
561
- *
562
- * `queryParticipations()` runs with the following `ParticipationsQueryBuilder` default that you can override:
563
- *
564
- * + `limit` is `50`.
565
- * + Sorted by `createdDate` in ascending order.
566
- *
567
- * The functions that are chained to `queryParticipations()` are applied in the order they are called.
568
- *
569
- * 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`.
570
- *
571
- * @public
572
- * @documentationMaturity preview
573
- * @permissionScope Manage Calendars
574
- * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
575
- * @permissionScope Manage Bookings
576
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
577
- * @permissionScope Manage Bookings - all permissions
578
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
579
- * @permissionScope Picasso private app mega scope
580
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
581
- * @permissionId CALENDAR.PARTICIPATION_READ
582
- * @applicableIdentity APP
583
- * @fqn wix.calendar.participations.v3.ParticipationsService.QueryParticipations
584
- */
585
- export declare function queryParticipations(): ParticipationsQueryBuilder;
586
480
  interface QueryCursorResult {
587
481
  cursors: Cursors;
588
482
  hasNext: () => boolean;
@@ -590,13 +484,13 @@ interface QueryCursorResult {
590
484
  length: number;
591
485
  pageSize: number;
592
486
  }
593
- export interface ParticipationsQueryResult extends QueryCursorResult {
487
+ interface ParticipationsQueryResult extends QueryCursorResult {
594
488
  items: Participation[];
595
489
  query: ParticipationsQueryBuilder;
596
490
  next: () => Promise<ParticipationsQueryResult>;
597
491
  prev: () => Promise<ParticipationsQueryResult>;
598
492
  }
599
- export interface ParticipationsQueryBuilder {
493
+ interface ParticipationsQueryBuilder {
600
494
  /** @param propertyName - Property whose value is compared with `value`.
601
495
  * @param value - Value to compare against.
602
496
  * @documentationMaturity preview
@@ -615,31 +509,7 @@ export interface ParticipationsQueryBuilder {
615
509
  /** @documentationMaturity preview */
616
510
  find: () => Promise<ParticipationsQueryResult>;
617
511
  }
618
- /**
619
- * Creates a `participation` object for a schedule or event.
620
- * @param participation - `participation` object to create.
621
- * @public
622
- * @documentationMaturity preview
623
- * @requiredField participation
624
- * @requiredField participation.participant
625
- * @requiredField participation.participant.name
626
- * @requiredField participation.participatedItem
627
- * @requiredField participation.partySize
628
- * @permissionId CALENDAR.PARTICIPATION_CREATE
629
- * @permissionScope Manage Calendars
630
- * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
631
- * @permissionScope Manage Bookings
632
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
633
- * @permissionScope Manage Bookings - all permissions
634
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
635
- * @permissionScope Picasso private app mega scope
636
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
637
- * @applicableIdentity APP
638
- * @returns Created `participation` object.
639
- * @fqn wix.calendar.participations.v3.ParticipationsService.CreateParticipation
640
- */
641
- export declare function createParticipation(participation: NonNullablePaths<Participation, `participant` | `participant.name` | `partySize`>, options?: CreateParticipationOptions): Promise<NonNullablePaths<Participation, ParticipationNonNullablePaths>>;
642
- export interface CreateParticipationOptions {
512
+ interface CreateParticipationOptions {
643
513
  /**
644
514
  * Idempotency key guaranteeing that you don't create the same `participation`
645
515
  * object more than once.
@@ -647,29 +517,7 @@ export interface CreateParticipationOptions {
647
517
  */
648
518
  idempotencyKey?: string | null;
649
519
  }
650
- /**
651
- * Updates a `participation` object.
652
- * @param _id - Participation ID.
653
- * @public
654
- * @documentationMaturity preview
655
- * @requiredField _id
656
- * @requiredField participation
657
- * @requiredField participation.revision
658
- * @permissionId CALENDAR.PARTICIPATION_UPDATE
659
- * @permissionScope Manage Calendars
660
- * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
661
- * @permissionScope Manage Bookings
662
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
663
- * @permissionScope Manage Bookings - all permissions
664
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
665
- * @permissionScope Picasso private app mega scope
666
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
667
- * @applicableIdentity APP
668
- * @returns Updated `participation` object.
669
- * @fqn wix.calendar.participations.v3.ParticipationsService.UpdateParticipation
670
- */
671
- export declare function updateParticipation(_id: string, participation: NonNullablePaths<UpdateParticipation, `revision`>): Promise<NonNullablePaths<Participation, ParticipationNonNullablePaths>>;
672
- export interface UpdateParticipation {
520
+ interface UpdateParticipation {
673
521
  /**
674
522
  * ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)
675
523
  * associated with the participation.
@@ -749,23 +597,5 @@ export interface UpdateParticipation {
749
597
  /** Extensions enabling applications or users to save custom data related to the participation. */
750
598
  extendedFields?: ExtendedFields;
751
599
  }
752
- /**
753
- * Deletes a `participation` object.
754
- * @param participationId - ID of `participation` object to delete.
755
- * @public
756
- * @documentationMaturity preview
757
- * @requiredField participationId
758
- * @permissionId CALENDAR.PARTICIPATION_DELETE
759
- * @permissionScope Manage Calendars
760
- * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
761
- * @permissionScope Manage Bookings
762
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
763
- * @permissionScope Manage Bookings - all permissions
764
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
765
- * @permissionScope Picasso private app mega scope
766
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
767
- * @applicableIdentity APP
768
- * @fqn wix.calendar.participations.v3.ParticipationsService.DeleteParticipation
769
- */
770
- export declare function deleteParticipation(participationId: string): Promise<void>;
771
- 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 };