@wix/auto_sdk_online-programs_participants 1.0.14 → 1.0.16

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 (41) hide show
  1. package/build/cjs/index.d.ts +181 -48
  2. package/build/cjs/index.js +1425 -188
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +12 -690
  5. package/build/cjs/index.typings.js +1074 -129
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +1302 -165
  8. package/build/cjs/meta.js +924 -110
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/online-programs-participants-v3-participant-participants.universal-CVjCdKBh.d.ts +2461 -0
  11. package/build/es/index.d.mts +181 -48
  12. package/build/es/index.mjs +1371 -162
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +12 -690
  15. package/build/es/index.typings.mjs +1036 -114
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +1302 -165
  18. package/build/es/meta.mjs +888 -95
  19. package/build/es/meta.mjs.map +1 -1
  20. package/build/es/online-programs-participants-v3-participant-participants.universal-CVjCdKBh.d.mts +2461 -0
  21. package/build/internal/cjs/index.d.ts +196 -48
  22. package/build/internal/cjs/index.typings.d.ts +12 -690
  23. package/build/internal/cjs/meta.d.ts +1473 -265
  24. package/build/internal/cjs/online-programs-participants-v3-participant-participants.universal-B1sw-MEh.d.ts +2504 -0
  25. package/build/internal/es/index.d.mts +196 -48
  26. package/build/internal/es/index.typings.d.mts +12 -690
  27. package/build/internal/es/meta.d.mts +1473 -265
  28. package/build/internal/es/online-programs-participants-v3-participant-participants.universal-B1sw-MEh.d.mts +2504 -0
  29. package/package.json +5 -5
  30. package/build/internal/cjs/index.js +0 -495
  31. package/build/internal/cjs/index.js.map +0 -1
  32. package/build/internal/cjs/index.typings.js +0 -390
  33. package/build/internal/cjs/index.typings.js.map +0 -1
  34. package/build/internal/cjs/meta.js +0 -327
  35. package/build/internal/cjs/meta.js.map +0 -1
  36. package/build/internal/es/index.mjs +0 -461
  37. package/build/internal/es/index.mjs.map +0 -1
  38. package/build/internal/es/index.typings.mjs +0 -359
  39. package/build/internal/es/index.typings.mjs.map +0 -1
  40. package/build/internal/es/meta.mjs +0 -293
  41. package/build/internal/es/meta.mjs.map +0 -1
@@ -0,0 +1,2461 @@
1
+ import * as _wix_sdk_types from '@wix/sdk-types';
2
+ import { QuerySpec, SearchSpec, Query, Search, NonNullablePaths } from '@wix/sdk-types';
3
+
4
+ /**
5
+ * Participant entity represents a site member who takes part in a specific Online Program.
6
+ * Participants have access to the program's content and progress through the program by completing its steps.
7
+ * A participant can join through a join application flow or be manually added by the program owner.
8
+ * A participant's status depends on their progress and the program's settings (e.g., start and end dates). Participation may also be temporarily suspended.
9
+ */
10
+ interface Participant {
11
+ /**
12
+ * Participant ID.
13
+ * @format GUID
14
+ * @readonly
15
+ */
16
+ _id?: string | null;
17
+ /**
18
+ * Participant revision (for optimistic concurrency control).
19
+ * @readonly
20
+ */
21
+ revision?: string | null;
22
+ /**
23
+ * Participant creation date.
24
+ * @readonly
25
+ */
26
+ _createdDate?: Date | null;
27
+ /**
28
+ * Date the participant was last updated.
29
+ * @readonly
30
+ */
31
+ _updatedDate?: Date | null;
32
+ /**
33
+ * Member ID of the participant on the site.
34
+ * @format GUID
35
+ * @readonly
36
+ */
37
+ memberId?: string;
38
+ /**
39
+ * ID of the program the participant is enrolled in.
40
+ * @format GUID
41
+ * @readonly
42
+ */
43
+ programId?: string;
44
+ /**
45
+ * Program completion progress. This field is conditional and must be explicitly requested via `fields` parameter.
46
+ * @readonly
47
+ */
48
+ progress?: Progress;
49
+ /**
50
+ * Certificate info for participant
51
+ * @readonly
52
+ */
53
+ certificateInfo?: CertificateInfo;
54
+ /**
55
+ * Site member info snapshot for the participant
56
+ * @readonly
57
+ */
58
+ member?: Member;
59
+ /**
60
+ * Last activity date of the participant in the program (can either be status change or step resolution).
61
+ * @readonly
62
+ */
63
+ lastActivityDate?: Date | null;
64
+ /**
65
+ * Participant's enrollment status in the program.
66
+ * @readonly
67
+ */
68
+ enrollmentStatus?: EnrollmentStatusWithLiterals;
69
+ /**
70
+ * Participant's progress status in the program.
71
+ * @readonly
72
+ */
73
+ progressStatus?: ProgressStatusWithLiterals;
74
+ /** Additional information about the participant's enrollment and completion timeframe in the program. */
75
+ enrollmentInfo?: EnrollmentInfo;
76
+ /** Extended fields for participant (can be used for storing custom data). */
77
+ extendedFields?: ExtendedFields;
78
+ /** Tags for categorizing and organizing participants. */
79
+ tags?: Tags;
80
+ }
81
+ declare enum PricingType {
82
+ /** Member joined a program that is configured as free to join, with no payment required. */
83
+ FREE = "FREE",
84
+ /** Member was added to the program by site owner. */
85
+ ADDED_MANUALLY = "ADDED_MANUALLY",
86
+ /** Member paid once to join the program. */
87
+ SINGLE_PAYMENT = "SINGLE_PAYMENT",
88
+ /** Member joined using a Pricing Plan. */
89
+ PAID_PLAN = "PAID_PLAN",
90
+ /** Member joined a paid program using a coupon that provided 100% discount. */
91
+ FREE_COUPON = "FREE_COUPON"
92
+ }
93
+ /** @enumType */
94
+ type PricingTypeWithLiterals = PricingType | 'FREE' | 'ADDED_MANUALLY' | 'SINGLE_PAYMENT' | 'PAID_PLAN' | 'FREE_COUPON';
95
+ interface SinglePaymentDetails {
96
+ /**
97
+ * ID of the cashier order which was used to pay for joining the program.
98
+ * @format GUID
99
+ * @immutable
100
+ */
101
+ paymentOrderId?: string;
102
+ /**
103
+ * ID of the offline transaction if the participant used an offline payment method (e.g., cash, check). Null if online payment was used.
104
+ * @format GUID
105
+ * @immutable
106
+ */
107
+ offlineTransactionId?: string | null;
108
+ }
109
+ interface PaidPlanDetails {
110
+ /**
111
+ * ID of the Paid Plan for which member has paid to join the program.
112
+ * @format GUID
113
+ * @immutable
114
+ */
115
+ paidPlanId?: string;
116
+ }
117
+ interface FreeCouponDetails {
118
+ /**
119
+ * ID of the coupon which was applied and gave 100% discount to join the program for free.
120
+ * @format GUID
121
+ * @immutable
122
+ */
123
+ freeCouponId?: string;
124
+ }
125
+ interface Progress {
126
+ /** Number of program steps completed by member. */
127
+ totalStepsCompleted?: number;
128
+ /** Total number of program steps available to resolve. */
129
+ totalStepsAvailable?: number;
130
+ /**
131
+ * Participant's completion percentage. For completed participants, this is 100.0. Otherwise, it is calculated as
132
+ * (total_steps_completed / total_steps_available) * 100, capped at 100, and rounded to 1 decimal place.
133
+ * @max 100
134
+ */
135
+ completionPercentage?: number;
136
+ }
137
+ interface CertificateInfo {
138
+ /**
139
+ * Date when the certificate was issued (UTC).
140
+ * @readonly
141
+ */
142
+ issueDate?: Date | null;
143
+ }
144
+ interface Member {
145
+ /**
146
+ * First name of the site member. Null if the member has not provided this information in their profile.
147
+ * @readonly
148
+ * @maxLength 1000
149
+ */
150
+ firstName?: string | null;
151
+ /**
152
+ * Last name of the site member. Null if the member has not provided this information in their profile.
153
+ * @readonly
154
+ * @maxLength 1000
155
+ */
156
+ lastName?: string | null;
157
+ /**
158
+ * Email of the site member. Null if the member has not provided this information in their profile.
159
+ * @readonly
160
+ * @format EMAIL
161
+ */
162
+ email?: string | null;
163
+ /**
164
+ * Contact ID for accessing additional member information via the Contacts API. Use this to retrieve extended contact details like phone numbers, addresses, and custom fields. Null if the member has not provided this information in their profile.
165
+ * @format GUID
166
+ * @readonly
167
+ */
168
+ contactId?: string | null;
169
+ /**
170
+ * Member nickname. Null if the member has not provided this information in their profile.
171
+ * @readonly
172
+ * @maxLength 1000
173
+ */
174
+ nickname?: string | null;
175
+ /**
176
+ * Profile image URL of the site member.
177
+ * @readonly
178
+ * @format WEB_URL
179
+ */
180
+ profileImageUrl?: string | null;
181
+ }
182
+ declare enum EnrollmentStatus {
183
+ /** Participant is actively enrolled in the program. */
184
+ JOINED = "JOINED",
185
+ /** Enrollment temporarily suspended due to payment issues. */
186
+ SUSPENDED = "SUSPENDED",
187
+ /** Automatically removed via a Wix Automations workflow. */
188
+ AUTO_REMOVED = "AUTO_REMOVED",
189
+ /** Removed from the program by the site owner. */
190
+ REMOVED = "REMOVED",
191
+ /** Participant voluntarily left the program. */
192
+ LEFT = "LEFT"
193
+ }
194
+ /** @enumType */
195
+ type EnrollmentStatusWithLiterals = EnrollmentStatus | 'JOINED' | 'SUSPENDED' | 'AUTO_REMOVED' | 'REMOVED' | 'LEFT';
196
+ declare enum ProgressStatus {
197
+ /** Enrolled but no steps completed yet. */
198
+ NOT_STARTED = "NOT_STARTED",
199
+ /** At least one step completed but program not yet finished. */
200
+ IN_PROGRESS = "IN_PROGRESS",
201
+ /** Participant successfully completed the program. */
202
+ COMPLETED = "COMPLETED",
203
+ /** Participant failed to complete the program within the deadline. */
204
+ FAILED = "FAILED",
205
+ /** Progress tracking is not applicable — participant left, was removed, or was auto-removed. */
206
+ NOT_APPLICABLE = "NOT_APPLICABLE"
207
+ }
208
+ /** @enumType */
209
+ type ProgressStatusWithLiterals = ProgressStatus | 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | 'NOT_APPLICABLE';
210
+ interface EnrollmentInfo extends EnrollmentInfoPricingTypeDetailsOneOf {
211
+ /** Details about a Single Payment enrollment. */
212
+ singlePaymentDetails?: SinglePaymentDetails;
213
+ /** Details about a Paid Plan enrollment. */
214
+ paidPlanDetails?: PaidPlanDetails;
215
+ /** Details about a Free Coupon enrollment. */
216
+ freeCouponDetails?: FreeCouponDetails;
217
+ /**
218
+ * Time zone of the site when the participant was enrolled in the program, in IANA timezone format (e.g., "America/New_York").
219
+ * @maxLength 50
220
+ * @readonly
221
+ */
222
+ timeZone?: string;
223
+ /**
224
+ * Date when the participant starts the program. Equals the participant's `created_date` if the program has no configured start date; otherwise, equals the program's start date if the participant enrolled before it began.
225
+ * @format LOCAL_DATE
226
+ * @readonly
227
+ */
228
+ startDate?: string;
229
+ /** Pricing type used for the participant's enrollment in the program. */
230
+ pricingType?: PricingTypeWithLiterals;
231
+ /**
232
+ * Date by which the participant must complete the program. Null if the program has no deadline. Set if the program has a fixed end date or a duration-based deadline calculated from the participant's start date.
233
+ * @format LOCAL_DATE
234
+ * @readonly
235
+ */
236
+ deadline?: string | null;
237
+ }
238
+ /** @oneof */
239
+ interface EnrollmentInfoPricingTypeDetailsOneOf {
240
+ /** Details about a Single Payment enrollment. */
241
+ singlePaymentDetails?: SinglePaymentDetails;
242
+ /** Details about a Paid Plan enrollment. */
243
+ paidPlanDetails?: PaidPlanDetails;
244
+ /** Details about a Free Coupon enrollment. */
245
+ freeCouponDetails?: FreeCouponDetails;
246
+ }
247
+ interface ExtendedFields {
248
+ /**
249
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
250
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
251
+ *
252
+ * You can only access fields for which you have the appropriate permissions.
253
+ *
254
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
255
+ */
256
+ namespaces?: Record<string, Record<string, any>>;
257
+ }
258
+ /**
259
+ * Common object for tags.
260
+ * Should be use as in this example:
261
+ * message Foo {
262
+ * option (.wix.api.decomposite_of) = "wix.commons.v2.tags.Foo";
263
+ * string id = 1;
264
+ * ...
265
+ * Tags tags = 5
266
+ * }
267
+ *
268
+ * example of taggable entity
269
+ * {
270
+ * id: "123"
271
+ * tags: {
272
+ * public_tags: {
273
+ * tag_ids:["11","22"]
274
+ * },
275
+ * private_tags: {
276
+ * tag_ids: ["33", "44"]
277
+ * }
278
+ * }
279
+ * }
280
+ */
281
+ interface Tags {
282
+ /** Tags that require an additional permission in order to access them, typically restricted from site members and visitors. */
283
+ privateTags?: TagList;
284
+ /** Tags that are exposed to anyone with access to the entity, including site members and visitors. */
285
+ publicTags?: TagList;
286
+ }
287
+ interface TagList {
288
+ /**
289
+ * List of tag IDs.
290
+ * @maxSize 100
291
+ * @maxLength 5
292
+ */
293
+ tagIds?: string[];
294
+ }
295
+ /**
296
+ * Message for reindexing search data to a given search schema. Support both upsert and delete flows as well as
297
+ * performs context manipulation with adding tenant, provided in message to callscope.
298
+ */
299
+ interface ReindexMessage extends ReindexMessageActionOneOf {
300
+ upsert?: Upsert;
301
+ delete?: Delete;
302
+ entityFqdn?: string;
303
+ tenantId?: string;
304
+ eventTime?: Date | null;
305
+ entityEventSequence?: string | null;
306
+ schema?: Schema;
307
+ }
308
+ /** @oneof */
309
+ interface ReindexMessageActionOneOf {
310
+ upsert?: Upsert;
311
+ delete?: Delete;
312
+ }
313
+ interface Upsert {
314
+ entityId?: string;
315
+ entityAsJson?: string;
316
+ }
317
+ interface Delete {
318
+ entityId?: string;
319
+ }
320
+ interface Schema {
321
+ label?: string;
322
+ clusterName?: string;
323
+ }
324
+ /**
325
+ * Domain event emitted when a participant's tags are modified.
326
+ * Pre-publication rename from TagsModified; no consumers of the legacy FQN are known.
327
+ */
328
+ interface ParticipantTagsModified {
329
+ /** The Participant with updated tags */
330
+ participant?: Participant;
331
+ /** Tags that were assigned */
332
+ assignedTags?: Tags;
333
+ /** Tags that were unassigned */
334
+ unassignedTags?: Tags;
335
+ }
336
+ /** Domain event emitted when a participant completes a program. */
337
+ interface ParticipantCompletedProgram {
338
+ /**
339
+ * ID of the participant who completed the program.
340
+ * @format GUID
341
+ */
342
+ participantId?: string;
343
+ /**
344
+ * ID of the program which was completed.
345
+ * @format GUID
346
+ */
347
+ programId?: string;
348
+ /**
349
+ * Member ID of the participant who completed the program.
350
+ * @format GUID
351
+ */
352
+ memberId?: string;
353
+ /** Snapshot of the participant after completing the program. */
354
+ participant?: Participant;
355
+ }
356
+ /** Domain event emitted when a participant misses a program deadline. */
357
+ interface ParticipantMissedProgramDeadline {
358
+ /**
359
+ * ID of the participant who missed the deadline.
360
+ * @format GUID
361
+ */
362
+ participantId?: string;
363
+ /**
364
+ * ID of the program for which the deadline was missed.
365
+ * @format GUID
366
+ */
367
+ programId?: string;
368
+ /**
369
+ * Member ID of the participant who missed the deadline.
370
+ * @format GUID
371
+ */
372
+ memberId?: string;
373
+ /** Snapshot of the participant after missing the deadline. */
374
+ participant?: Participant;
375
+ }
376
+ /** Domain event emitted when a participant's program duration ends. */
377
+ interface ParticipantProgramDurationEnded {
378
+ /**
379
+ * ID of the participant whose program duration ended.
380
+ * @format GUID
381
+ */
382
+ participantId?: string;
383
+ /**
384
+ * ID of the program whose duration ended for the participant.
385
+ * @format GUID
386
+ */
387
+ programId?: string;
388
+ /**
389
+ * Member ID of the participant whose program duration ended.
390
+ * @format GUID
391
+ */
392
+ memberId?: string;
393
+ /** Snapshot of the participant when the program duration ended. */
394
+ participant?: Participant;
395
+ }
396
+ /** Domain event emitted when a participant is removed from a program by an administrator. */
397
+ interface ParticipantRemoved {
398
+ /**
399
+ * ID of the participant who was removed.
400
+ * @format GUID
401
+ */
402
+ participantId?: string;
403
+ /**
404
+ * ID of the program from which the participant was removed.
405
+ * @format GUID
406
+ */
407
+ programId?: string;
408
+ /**
409
+ * Member ID of the participant who was removed.
410
+ * @format GUID
411
+ */
412
+ memberId?: string;
413
+ /** Snapshot of the participant after being removed from the program. */
414
+ participant?: Participant;
415
+ }
416
+ /** Domain event emitted when a participant voluntarily leaves a program. */
417
+ interface ParticipantLeft {
418
+ /**
419
+ * ID of the participant who left the program.
420
+ * @format GUID
421
+ */
422
+ participantId?: string;
423
+ /**
424
+ * ID of the program the participant left.
425
+ * @format GUID
426
+ */
427
+ programId?: string;
428
+ /**
429
+ * Member ID of the participant who left.
430
+ * @format GUID
431
+ */
432
+ memberId?: string;
433
+ /** Snapshot of the participant after leaving the program. */
434
+ participant?: Participant;
435
+ }
436
+ interface ParticipantExportsFinished {
437
+ /**
438
+ * program id from which stats were exported
439
+ * @format GUID
440
+ */
441
+ programId?: string;
442
+ /**
443
+ * url to download report
444
+ * @format WEB_URL
445
+ */
446
+ downloadUrl?: string;
447
+ /** days url will be downloadable */
448
+ downloadUrlTtlDays?: number;
449
+ }
450
+ interface CreateParticipantRequest {
451
+ /** Participant to create */
452
+ participant: Participant;
453
+ /**
454
+ * Array of conditional fields to include in the response.
455
+ * Use `RequestedFields.PROGRESS` to include the progress field, which requires calculating completion statistics across all program steps. Only request this field when you need current progress data, as it impacts performance.
456
+ * @maxSize 1
457
+ */
458
+ fields?: RequestedFieldsWithLiterals[];
459
+ }
460
+ /**
461
+ * Enum for specifying which conditional fields to include in responses.
462
+ * Use these values in the `fields` parameter to request expensive or conditional fields.
463
+ */
464
+ declare enum RequestedFields {
465
+ /** Request the progress field to be calculated and included in the response. */
466
+ PROGRESS = "PROGRESS"
467
+ }
468
+ /** @enumType */
469
+ type RequestedFieldsWithLiterals = RequestedFields | 'PROGRESS';
470
+ interface CreateParticipantResponse {
471
+ /** Created participant */
472
+ participant?: Participant;
473
+ }
474
+ interface UpdateParticipantRequest {
475
+ /** Participant to update. Must include the participant ID. */
476
+ participant: Participant;
477
+ /**
478
+ * Array of conditional fields to include in the response.
479
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
480
+ * @maxSize 1
481
+ */
482
+ fields?: RequestedFieldsWithLiterals[];
483
+ }
484
+ interface UpdateParticipantResponse {
485
+ /** Updated participant */
486
+ participant?: Participant;
487
+ }
488
+ interface BulkCreateParticipantsRequest {
489
+ /**
490
+ * List of participants to create.
491
+ * @minSize 1
492
+ * @maxSize 100
493
+ */
494
+ participants: Participant[];
495
+ /** Whether to return entities in response or not. */
496
+ returnEntity?: boolean;
497
+ /**
498
+ * Array of conditional fields to include in the response.
499
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
500
+ * @maxSize 1
501
+ */
502
+ fields?: RequestedFieldsWithLiterals[];
503
+ }
504
+ interface BulkCreateParticipantsResponse {
505
+ /**
506
+ * Results of the bulk create operation.
507
+ * @minSize 1
508
+ * @maxSize 100
509
+ */
510
+ results?: BulkParticipantResult[];
511
+ /** Metadata about the bulk action. */
512
+ bulkActionMetadata?: BulkActionMetadata;
513
+ }
514
+ interface BulkParticipantResult {
515
+ /** Metadata for the item. */
516
+ itemMetadata?: ItemMetadata;
517
+ /** The participant entity. Empty if `return_entity` is `false`. */
518
+ item?: Participant;
519
+ }
520
+ interface ItemMetadata {
521
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
522
+ _id?: string | null;
523
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
524
+ originalIndex?: number;
525
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
526
+ success?: boolean;
527
+ /** Details about the error in case of failure. */
528
+ error?: ApplicationError;
529
+ }
530
+ interface ApplicationError {
531
+ /** Error code. */
532
+ code?: string;
533
+ /** Description of the error. */
534
+ description?: string;
535
+ /** Data related to the error. */
536
+ data?: Record<string, any> | null;
537
+ }
538
+ interface BulkActionMetadata {
539
+ /** Number of items that were successfully processed. */
540
+ totalSuccesses?: number;
541
+ /** Number of items that couldn't be processed. */
542
+ totalFailures?: number;
543
+ /** Number of failures without details because detailed failure threshold was exceeded. */
544
+ undetailedFailures?: number;
545
+ }
546
+ interface BulkUpsertParticipantsMigrationRequest {
547
+ /**
548
+ * List of participants to create or update.
549
+ * @minSize 1
550
+ * @maxSize 100
551
+ */
552
+ participants?: ParticipantMigration[];
553
+ }
554
+ interface ParticipantMigration {
555
+ /** Participant to create or update. */
556
+ participant?: Participant;
557
+ /**
558
+ * Resolved step IDs to restore on participant.
559
+ * @maxSize 5000
560
+ * @format GUID
561
+ */
562
+ resolvedStepIds?: string[];
563
+ }
564
+ interface BulkUpsertParticipantsMigrationResponse {
565
+ /**
566
+ * Results of the bulk migration operation.
567
+ * @minSize 1
568
+ * @maxSize 100
569
+ */
570
+ results?: BulkParticipantMigrationResult[];
571
+ /** Metadata about the bulk action. */
572
+ bulkActionMetadata?: BulkActionMetadata;
573
+ }
574
+ interface BulkParticipantMigrationResult {
575
+ /** Metadata for the item. */
576
+ itemMetadata?: ItemMetadata;
577
+ /** Action type of bulk action (INSERT OR UPDATE) for that endpoint. */
578
+ action?: BulkActionTypeWithLiterals;
579
+ }
580
+ declare enum BulkActionType {
581
+ /** default action type, should never be used */
582
+ UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
583
+ /** Action type for inserting new items. */
584
+ INSERT = "INSERT",
585
+ /** Action type for updating existing items. */
586
+ UPDATE = "UPDATE"
587
+ }
588
+ /** @enumType */
589
+ type BulkActionTypeWithLiterals = BulkActionType | 'UNKNOWN_ACTION_TYPE' | 'INSERT' | 'UPDATE';
590
+ interface DeleteAllParticipantsMigrationRequest {
591
+ }
592
+ interface DeleteAllParticipantsMigrationResponse {
593
+ }
594
+ interface ReindexParticipantsSearchRequest {
595
+ /**
596
+ * @minSize 1
597
+ * @maxSize 1000
598
+ * @format GUID
599
+ */
600
+ participantIds?: string[];
601
+ }
602
+ interface ReindexParticipantsSearchResponse {
603
+ }
604
+ interface SynchronizeTimeCapsuleTasksRequest {
605
+ /**
606
+ * Metasite whose participant finish tasks should be synchronized.
607
+ * @format GUID
608
+ */
609
+ metaSiteId?: string;
610
+ }
611
+ interface SynchronizeTimeCapsuleTasksResponse {
612
+ /**
613
+ * ID of the asynchronous job that will process the request. Pass this ID to Get Async Job to track the operation status.
614
+ * @format GUID
615
+ */
616
+ jobId?: string;
617
+ }
618
+ interface BulkCreateParticipantsForAllMembersRequest {
619
+ /**
620
+ * ID of the program for which to create participants for all site members in bulk.
621
+ * @format GUID
622
+ */
623
+ programId: string;
624
+ /**
625
+ * Site member IDs to exclude from bulk participant creation. Maximum 100 member IDs can be excluded.
626
+ * @format GUID
627
+ * @maxSize 100
628
+ */
629
+ excludeMemberIds?: string[];
630
+ }
631
+ interface BulkCreateParticipantsForAllMembersResponse {
632
+ /**
633
+ * ID of the asynchronous job that will process the request. Pass this ID to Get Async Job to track the operation status.
634
+ * @format GUID
635
+ */
636
+ jobId?: string;
637
+ }
638
+ interface DeleteParticipantRequest {
639
+ /**
640
+ * ID of the participant to delete.
641
+ * @format GUID
642
+ */
643
+ participantId: string;
644
+ }
645
+ interface DeleteParticipantResponse {
646
+ }
647
+ interface IssueCertificateRequest {
648
+ /**
649
+ * ID of the participant to issue the certificate to.
650
+ * @format GUID
651
+ */
652
+ participantId: string;
653
+ /**
654
+ * Array of conditional fields to include in the response.
655
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
656
+ * @maxSize 1
657
+ */
658
+ fields?: RequestedFieldsWithLiterals[];
659
+ }
660
+ interface IssueCertificateResponse {
661
+ /** Updated participant */
662
+ participant?: Participant;
663
+ }
664
+ interface GetCompletionStatsRequest {
665
+ /**
666
+ * ID of the program to retrieve completion statistics for.
667
+ * @format GUID
668
+ */
669
+ programId?: string;
670
+ }
671
+ interface GetCompletionStatsResponse {
672
+ /** Number of participants that completed the program */
673
+ completedParticipantsCount?: number;
674
+ /** Percentage of participants that completed the program */
675
+ completionRate?: number;
676
+ }
677
+ interface GetPremiumStatsRequest {
678
+ }
679
+ interface GetPremiumStatsResponse {
680
+ /** True if site has Online Programs premium feature */
681
+ premiumEnabled?: boolean;
682
+ /** Count of active participants on the site */
683
+ activeParticipantsCount?: number;
684
+ /** Limit of active participants on a site without premium */
685
+ activeParticipantsLimit?: number;
686
+ }
687
+ interface GetParticipantRequest {
688
+ /**
689
+ * ID of the participant to fetch.
690
+ * @format GUID
691
+ */
692
+ participantId: string;
693
+ /**
694
+ * Array of conditional fields to include in the response.
695
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
696
+ * @maxSize 1
697
+ */
698
+ fields?: RequestedFieldsWithLiterals[];
699
+ }
700
+ interface GetParticipantResponse {
701
+ /** The retrieved participant. */
702
+ participant?: Participant;
703
+ }
704
+ interface QueryParticipantsRequest {
705
+ /** Platformized query */
706
+ query?: QueryV2;
707
+ /**
708
+ * Array of conditional fields to include in the response.
709
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
710
+ * @maxSize 1
711
+ */
712
+ fields?: RequestedFieldsWithLiterals[];
713
+ }
714
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
715
+ /** Paging options to limit and offset the number of items. */
716
+ paging?: Paging;
717
+ /** 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`. */
718
+ cursorPaging?: CursorPaging;
719
+ /**
720
+ * Filter object.
721
+ *
722
+ * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
723
+ */
724
+ filter?: Record<string, any> | null;
725
+ /**
726
+ * Sort object.
727
+ *
728
+ * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
729
+ * @maxSize 100
730
+ */
731
+ sort?: Sorting[];
732
+ /**
733
+ * Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned.
734
+ * @maxSize 100
735
+ * @maxLength 1000
736
+ */
737
+ fields?: string[];
738
+ /**
739
+ * Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned.
740
+ * @maxSize 100
741
+ * @maxLength 1000
742
+ */
743
+ fieldsets?: string[];
744
+ }
745
+ /** @oneof */
746
+ interface QueryV2PagingMethodOneOf {
747
+ /** Paging options to limit and offset the number of items. */
748
+ paging?: Paging;
749
+ /** 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`. */
750
+ cursorPaging?: CursorPaging;
751
+ }
752
+ interface Sorting {
753
+ /**
754
+ * Name of the field to sort by.
755
+ * @maxLength 512
756
+ */
757
+ fieldName?: string;
758
+ /** Sort order. */
759
+ order?: SortOrderWithLiterals;
760
+ }
761
+ declare enum SortOrder {
762
+ ASC = "ASC",
763
+ DESC = "DESC"
764
+ }
765
+ /** @enumType */
766
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
767
+ interface Paging {
768
+ /** Number of items to load. */
769
+ limit?: number | null;
770
+ /** Number of items to skip in the current sort order. */
771
+ offset?: number | null;
772
+ }
773
+ interface CursorPaging {
774
+ /**
775
+ * Maximum number of items to return in the results.
776
+ * @max 100
777
+ */
778
+ limit?: number | null;
779
+ /**
780
+ * Pointer to the next or previous page in the list of results.
781
+ *
782
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
783
+ * Not relevant for the first request.
784
+ * @maxLength 16000
785
+ */
786
+ cursor?: string | null;
787
+ }
788
+ interface QueryParticipantsResponse {
789
+ /** List of participants matching the query. */
790
+ participants?: Participant[];
791
+ /** Paging metadata. */
792
+ pagingMetadata?: PagingMetadataV2;
793
+ }
794
+ interface PagingMetadataV2 {
795
+ /** Number of items returned in the response. */
796
+ count?: number | null;
797
+ /** Offset that was requested. */
798
+ offset?: number | null;
799
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
800
+ total?: number | null;
801
+ /** Flag that indicates the server failed to calculate the `total` field. */
802
+ tooManyToCount?: boolean | null;
803
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
804
+ cursors?: Cursors;
805
+ }
806
+ interface Cursors {
807
+ /**
808
+ * Cursor string pointing to the next page in the list of results.
809
+ * @maxLength 16000
810
+ */
811
+ next?: string | null;
812
+ /**
813
+ * Cursor pointing to the previous page in the list of results.
814
+ * @maxLength 16000
815
+ */
816
+ prev?: string | null;
817
+ }
818
+ interface GetAccessStatusRequest {
819
+ }
820
+ interface GetAccessStatusResponse {
821
+ /** True if participants cannot access online programs due to some limitations */
822
+ accessBlocked?: boolean;
823
+ }
824
+ interface BulkUpdateParticipantTagsRequest {
825
+ /**
826
+ * Participant IDs to update tags for (1-100 items)
827
+ * @minSize 1
828
+ * @maxSize 100
829
+ * @format GUID
830
+ */
831
+ participantIds: string[];
832
+ /** Tags to assign to the Participants */
833
+ assignTags?: Tags;
834
+ /** Tags to unassign from the Participants */
835
+ unassignTags?: Tags;
836
+ }
837
+ interface BulkUpdateParticipantTagsResponse {
838
+ /**
839
+ * Results for each Participant
840
+ * @minSize 1
841
+ * @maxSize 100
842
+ */
843
+ results?: BulkUpdateParticipantTagsResult[];
844
+ /** Metadata about the bulk operation */
845
+ bulkActionMetadata?: BulkActionMetadata;
846
+ }
847
+ interface BulkUpdateParticipantTagsResult {
848
+ /** Metadata for this specific item */
849
+ itemMetadata?: ItemMetadata;
850
+ }
851
+ interface BulkUpdateParticipantTagsByFilterRequest {
852
+ /** WQL filter to select Participants */
853
+ filter: Record<string, any> | null;
854
+ /** Tags to assign to matching Participants */
855
+ assignTags?: Tags;
856
+ /** Tags to unassign from matching Participants */
857
+ unassignTags?: Tags;
858
+ }
859
+ interface BulkUpdateParticipantTagsByFilterResponse {
860
+ /**
861
+ * Job ID for tracking the async operation. Pass this ID to Get Async Job to track the operation status.
862
+ * @format GUID
863
+ */
864
+ jobId?: string;
865
+ }
866
+ interface SearchParticipantsRequest {
867
+ /** Query to search participants. */
868
+ search?: CursorSearch;
869
+ /**
870
+ * Array of conditional fields to include in the response.
871
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
872
+ * @maxSize 1
873
+ */
874
+ fields?: RequestedFieldsWithLiterals[];
875
+ }
876
+ interface CursorSearch extends CursorSearchPagingMethodOneOf {
877
+ /**
878
+ * Cursor paging options.
879
+ *
880
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
881
+ */
882
+ cursorPaging?: CursorPaging;
883
+ /**
884
+ * Filter object.
885
+ *
886
+ * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
887
+ */
888
+ filter?: Record<string, any> | null;
889
+ /**
890
+ * List of sort objects.
891
+ *
892
+ * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
893
+ * @maxSize 10
894
+ */
895
+ sort?: Sorting[];
896
+ /**
897
+ * Logical groupings of data into facets, with summaries for each facet. For example, use aggregations to allow site visitors to narrow down their search results by selecting specific categories.
898
+ * @maxSize 10
899
+ */
900
+ aggregations?: Aggregation[];
901
+ /** Free text to match in searchable fields. */
902
+ search?: SearchDetails;
903
+ /**
904
+ * Time zone to adjust date-time-based filters and aggregations, in ISO 8601 (including offsets) or IANA time zone database (including time zone IDs) format.
905
+ * Applies to all relevant filters and aggregations, unless overridden by providing timestamps including time zone. For example, "2023-12-20T10:52:34.795Z".
906
+ * @maxLength 50
907
+ */
908
+ timeZone?: string | null;
909
+ }
910
+ /** @oneof */
911
+ interface CursorSearchPagingMethodOneOf {
912
+ /**
913
+ * Cursor paging options.
914
+ *
915
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
916
+ */
917
+ cursorPaging?: CursorPaging;
918
+ }
919
+ interface Aggregation extends AggregationKindOneOf {
920
+ /** A value aggregation calculates metrics such as count for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number (count) of products for each price listed in the store. */
921
+ value?: ValueAggregation;
922
+ /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. */
923
+ range?: RangeAggregation;
924
+ /** A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */
925
+ scalar?: ScalarAggregation;
926
+ /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.) For example, use a date histogram to find how many reservations have been made at a restaurant each week. */
927
+ dateHistogram?: DateHistogramAggregation;
928
+ /** A nested aggregation is applied within the results of another aggregation. Rather than aggregating directly on the primary dataset, first group data using one aggregation and then apply another aggregation within each group. It allows for more complex analyses where you can summarize data at different levels of detail or hierarchy. For example, to get the number of products that are in stock and out of stock for each price listed, first perform a value aggregation on `discountedPriceNumeric`, and a second value aggregation on `inStock`. */
929
+ nested?: NestedAggregation;
930
+ /**
931
+ * Aggregation name, returned in `aggregations.results.name`.
932
+ * @maxLength 100
933
+ */
934
+ name?: string | null;
935
+ /** Type of aggregation to perform. Must align with the corresponding aggregation field. */
936
+ type?: AggregationTypeWithLiterals;
937
+ /**
938
+ * Field to aggregate by. Use dot notation to specify a JSON path. For example, `order.address.streetName`.
939
+ * @maxLength 200
940
+ */
941
+ fieldPath?: string;
942
+ /**
943
+ * Deprecated. Use `nested` instead.
944
+ * @deprecated Deprecated. Use `nested` instead.
945
+ * @replacedBy kind.nested
946
+ * @targetRemovalDate 2024-03-30
947
+ */
948
+ groupBy?: GroupByAggregation;
949
+ }
950
+ /** @oneof */
951
+ interface AggregationKindOneOf {
952
+ /** A value aggregation calculates metrics such as count for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number (count) of products for each price listed in the store. */
953
+ value?: ValueAggregation;
954
+ /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. */
955
+ range?: RangeAggregation;
956
+ /** A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */
957
+ scalar?: ScalarAggregation;
958
+ /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.) For example, use a date histogram to find how many reservations have been made at a restaurant each week. */
959
+ dateHistogram?: DateHistogramAggregation;
960
+ /** A nested aggregation is applied within the results of another aggregation. Rather than aggregating directly on the primary dataset, first group data using one aggregation and then apply another aggregation within each group. It allows for more complex analyses where you can summarize data at different levels of detail or hierarchy. For example, to get the number of products that are in stock and out of stock for each price listed, first perform a value aggregation on `discountedPriceNumeric`, and a second value aggregation on `inStock`. */
961
+ nested?: NestedAggregation;
962
+ }
963
+ interface RangeBucket {
964
+ /** Inclusive lower bound of the range. Required if `to` is not provided. */
965
+ from?: number | null;
966
+ /** Exclusive upper bound of the range. Required if `from` is not provided. */
967
+ to?: number | null;
968
+ }
969
+ declare enum SortType {
970
+ /** Number of matches in the results. */
971
+ COUNT = "COUNT",
972
+ /** Alphabetically by the field value. */
973
+ VALUE = "VALUE"
974
+ }
975
+ /** @enumType */
976
+ type SortTypeWithLiterals = SortType | 'COUNT' | 'VALUE';
977
+ declare enum SortDirection {
978
+ /** Descending order. */
979
+ DESC = "DESC",
980
+ /** Ascending order. */
981
+ ASC = "ASC"
982
+ }
983
+ /** @enumType */
984
+ type SortDirectionWithLiterals = SortDirection | 'DESC' | 'ASC';
985
+ declare enum MissingValues {
986
+ /** Exclude missing values from the aggregation results. */
987
+ EXCLUDE = "EXCLUDE",
988
+ /** Include missing values in the aggregation results. */
989
+ INCLUDE = "INCLUDE"
990
+ }
991
+ /** @enumType */
992
+ type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE';
993
+ interface IncludeMissingValuesOptions {
994
+ /**
995
+ * Specify a custom name for the bucket containing the missing values. Defaults are `"N/A"` for strings, `0` for integers, and `false` for booleans.
996
+ * @maxLength 20
997
+ */
998
+ addToBucket?: string;
999
+ }
1000
+ declare enum ScalarType {
1001
+ /** Total number of distinct values. */
1002
+ COUNT_DISTINCT = "COUNT_DISTINCT",
1003
+ /** Minimum value. */
1004
+ MIN = "MIN",
1005
+ /** Maximum value. */
1006
+ MAX = "MAX"
1007
+ }
1008
+ /** @enumType */
1009
+ type ScalarTypeWithLiterals = ScalarType | 'COUNT_DISTINCT' | 'MIN' | 'MAX';
1010
+ interface ValueAggregation extends ValueAggregationOptionsOneOf {
1011
+ /** Options for including missing values in results. */
1012
+ includeOptions?: IncludeMissingValuesOptions;
1013
+ /** Sort type. */
1014
+ sortType?: SortTypeWithLiterals;
1015
+ /** Sort direction. */
1016
+ sortDirection?: SortDirectionWithLiterals;
1017
+ /**
1018
+ * Number of aggregation results to return.
1019
+ * Min: `1`
1020
+ * Max: `250`
1021
+ * Default: `10`
1022
+ */
1023
+ limit?: number | null;
1024
+ /**
1025
+ * Whether to include or exclude missing values in the aggregation results.
1026
+ * Default: `EXCLUDE`.
1027
+ */
1028
+ missingValues?: MissingValuesWithLiterals;
1029
+ }
1030
+ /** @oneof */
1031
+ interface ValueAggregationOptionsOneOf {
1032
+ /** Options for including missing values in results. */
1033
+ includeOptions?: IncludeMissingValuesOptions;
1034
+ }
1035
+ declare enum NestedAggregationType {
1036
+ /** Calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. */
1037
+ VALUE = "VALUE",
1038
+ /** Calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. */
1039
+ RANGE = "RANGE",
1040
+ /** Calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */
1041
+ SCALAR = "SCALAR",
1042
+ /** Calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). */
1043
+ DATE_HISTOGRAM = "DATE_HISTOGRAM"
1044
+ }
1045
+ /** @enumType */
1046
+ type NestedAggregationTypeWithLiterals = NestedAggregationType | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM';
1047
+ interface RangeAggregation {
1048
+ /**
1049
+ * List of range buckets. During aggregation each entity is placed in the first bucket its value falls into, based on the provided range bounds.
1050
+ * @maxSize 50
1051
+ */
1052
+ buckets?: RangeBucket[];
1053
+ }
1054
+ interface ScalarAggregation {
1055
+ /** Operator type for the scalar aggregation. */
1056
+ type?: ScalarTypeWithLiterals;
1057
+ }
1058
+ interface DateHistogramAggregation {
1059
+ /** Interval for date histogram aggregation. */
1060
+ interval?: IntervalWithLiterals;
1061
+ }
1062
+ declare enum Interval {
1063
+ YEAR = "YEAR",
1064
+ MONTH = "MONTH",
1065
+ WEEK = "WEEK",
1066
+ DAY = "DAY",
1067
+ HOUR = "HOUR",
1068
+ MINUTE = "MINUTE",
1069
+ SECOND = "SECOND"
1070
+ }
1071
+ /** @enumType */
1072
+ type IntervalWithLiterals = Interval | 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR' | 'MINUTE' | 'SECOND';
1073
+ interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
1074
+ /** A value aggregation calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number (count) of orders for each order status. */
1075
+ value?: ValueAggregation;
1076
+ /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. If ranges overlap, a record that fits more than one range will only be counted in the first range that matches the criteria. */
1077
+ range?: RangeAggregation;
1078
+ /** A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */
1079
+ scalar?: ScalarAggregation;
1080
+ /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). For example, use a date histogram to determine how many reservations have been made at a restaurant each week. If ranges overlap, a record that fits more than one range will only be counted in the first range that matches the criteria. */
1081
+ dateHistogram?: DateHistogramAggregation;
1082
+ /**
1083
+ * Unique, caller-defined aggregation name, returned in `aggregations.results`.
1084
+ * @maxLength 100
1085
+ */
1086
+ name?: string | null;
1087
+ /** Type of aggregation to perform. The matching aggregation field must be passed. */
1088
+ type?: NestedAggregationTypeWithLiterals;
1089
+ /**
1090
+ * Field to aggregate by. Use dot notation to specify a JSON path. For example, `order.address.streetName`.
1091
+ * @maxLength 200
1092
+ */
1093
+ fieldPath?: string;
1094
+ }
1095
+ /** @oneof */
1096
+ interface NestedAggregationItemKindOneOf {
1097
+ /** A value aggregation calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number (count) of orders for each order status. */
1098
+ value?: ValueAggregation;
1099
+ /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. If ranges overlap, a record that fits more than one range will only be counted in the first range that matches the criteria. */
1100
+ range?: RangeAggregation;
1101
+ /** A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */
1102
+ scalar?: ScalarAggregation;
1103
+ /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). For example, use a date histogram to determine how many reservations have been made at a restaurant each week. If ranges overlap, a record that fits more than one range will only be counted in the first range that matches the criteria. */
1104
+ dateHistogram?: DateHistogramAggregation;
1105
+ }
1106
+ declare enum AggregationType {
1107
+ /** Calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. */
1108
+ VALUE = "VALUE",
1109
+ /** Calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. */
1110
+ RANGE = "RANGE",
1111
+ /** Calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */
1112
+ SCALAR = "SCALAR",
1113
+ /** Calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). */
1114
+ DATE_HISTOGRAM = "DATE_HISTOGRAM",
1115
+ /** Flattened list of aggregations, where each aggregation is nested within previous one. */
1116
+ NESTED = "NESTED"
1117
+ }
1118
+ /** @enumType */
1119
+ type AggregationTypeWithLiterals = AggregationType | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM' | 'NESTED';
1120
+ /** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one. */
1121
+ interface NestedAggregation {
1122
+ /**
1123
+ * Flattened list of aggregations, where each aggregation is nested within previous one.
1124
+ * @minSize 2
1125
+ * @maxSize 3
1126
+ */
1127
+ nestedAggregations?: NestedAggregationItem[];
1128
+ }
1129
+ interface GroupByAggregation extends GroupByAggregationKindOneOf {
1130
+ /** Value aggregation configuration. */
1131
+ value?: ValueAggregation;
1132
+ /**
1133
+ * Unique, caller-defined aggregation name, returned in `aggregations.results`.
1134
+ * @maxLength 100
1135
+ */
1136
+ name?: string | null;
1137
+ /**
1138
+ * Field to aggregate by.
1139
+ * @maxLength 200
1140
+ */
1141
+ fieldPath?: string;
1142
+ }
1143
+ /** @oneof */
1144
+ interface GroupByAggregationKindOneOf {
1145
+ /** Value aggregation configuration. */
1146
+ value?: ValueAggregation;
1147
+ }
1148
+ interface SearchDetails {
1149
+ /** Search mode. Defines the search logic for combining multiple terms in the `expression`. */
1150
+ mode?: ModeWithLiterals;
1151
+ /**
1152
+ * Search term or expression.
1153
+ * @maxLength 100
1154
+ */
1155
+ expression?: string | null;
1156
+ /**
1157
+ * Fields to search in. If the array is empty, all searchable fields are searched. Use dot notation to specify a JSON path. For example, `order.address.streetName`.
1158
+ * @maxLength 200
1159
+ * @maxSize 20
1160
+ */
1161
+ fields?: string[];
1162
+ /** Whether to enable the search function to use an algorithm to automatically find results that are close to the search expression, such as typos and declensions. */
1163
+ fuzzy?: boolean;
1164
+ }
1165
+ declare enum Mode {
1166
+ /** At least one of the search terms must be present. */
1167
+ OR = "OR",
1168
+ /** All search terms must be present. */
1169
+ AND = "AND"
1170
+ }
1171
+ /** @enumType */
1172
+ type ModeWithLiterals = Mode | 'OR' | 'AND';
1173
+ interface SearchParticipantsResponse {
1174
+ /** Participants matching the search criteria. */
1175
+ participants?: Participant[];
1176
+ /** Paging metadata. */
1177
+ pagingMetadata?: CursorPagingMetadata;
1178
+ /** Aggregation data in case aggregations were requested. */
1179
+ aggregationData?: AggregationData;
1180
+ }
1181
+ interface CursorPagingMetadata {
1182
+ /** Number of items returned in current page. */
1183
+ count?: number | null;
1184
+ /** Cursor strings that point to the next page, previous page, or both. */
1185
+ cursors?: Cursors;
1186
+ /**
1187
+ * Whether there are more pages to retrieve following the current page.
1188
+ *
1189
+ * + `true`: Another page of results can be retrieved.
1190
+ * + `false`: This is the last page.
1191
+ */
1192
+ hasNext?: boolean | null;
1193
+ }
1194
+ interface AggregationData {
1195
+ /**
1196
+ * key = aggregation name (as derived from search request).
1197
+ * @maxSize 10000
1198
+ */
1199
+ results?: AggregationResults[];
1200
+ }
1201
+ interface ValueAggregationResult {
1202
+ /**
1203
+ * Value of the field.
1204
+ * @maxLength 100
1205
+ */
1206
+ value?: string;
1207
+ /** Count of entities with this value. */
1208
+ count?: number;
1209
+ }
1210
+ interface RangeAggregationResult {
1211
+ /** Inclusive lower bound of the range. */
1212
+ from?: number | null;
1213
+ /** Exclusive upper bound of the range. */
1214
+ to?: number | null;
1215
+ /** Count of entities in this range. */
1216
+ count?: number;
1217
+ }
1218
+ interface NestedAggregationResults extends NestedAggregationResultsResultOneOf {
1219
+ /** Value aggregation results. */
1220
+ values?: ValueResults;
1221
+ /** Range aggregation results. */
1222
+ ranges?: RangeResults;
1223
+ /** Scalar aggregation results. */
1224
+ scalar?: AggregationResultsScalarResult;
1225
+ /**
1226
+ * User-defined name of aggregation, matches the one provided in request.
1227
+ * @maxLength 100
1228
+ */
1229
+ name?: string;
1230
+ /** Type of aggregation that matches result. */
1231
+ type?: AggregationTypeWithLiterals;
1232
+ /**
1233
+ * Field to aggregate by, matches the one provided in request.
1234
+ * @maxLength 200
1235
+ */
1236
+ fieldPath?: string;
1237
+ }
1238
+ /** @oneof */
1239
+ interface NestedAggregationResultsResultOneOf {
1240
+ /** Value aggregation results. */
1241
+ values?: ValueResults;
1242
+ /** Range aggregation results. */
1243
+ ranges?: RangeResults;
1244
+ /** Scalar aggregation results. */
1245
+ scalar?: AggregationResultsScalarResult;
1246
+ }
1247
+ interface ValueResults {
1248
+ /**
1249
+ * List of value aggregations.
1250
+ * @maxSize 250
1251
+ */
1252
+ results?: ValueAggregationResult[];
1253
+ }
1254
+ interface RangeResults {
1255
+ /**
1256
+ * List of ranges returned in same order as requested.
1257
+ * @maxSize 50
1258
+ */
1259
+ results?: RangeAggregationResult[];
1260
+ }
1261
+ interface AggregationResultsScalarResult {
1262
+ /** Type of scalar aggregation. */
1263
+ type?: ScalarTypeWithLiterals;
1264
+ /** Value of the scalar aggregation. */
1265
+ value?: number;
1266
+ }
1267
+ interface NestedValueAggregationResult {
1268
+ /**
1269
+ * Value of the field.
1270
+ * @maxLength 1000
1271
+ */
1272
+ value?: string;
1273
+ /** Nested aggregations. */
1274
+ nestedResults?: NestedAggregationResults;
1275
+ }
1276
+ interface ValueResult {
1277
+ /**
1278
+ * Value of the field.
1279
+ * @maxLength 1000
1280
+ */
1281
+ value?: string;
1282
+ /** Count of entities with this value. */
1283
+ count?: number | null;
1284
+ }
1285
+ interface RangeResult {
1286
+ /** Inclusive lower bound of the range. */
1287
+ from?: number | null;
1288
+ /** Exclusive upper bound of the range. */
1289
+ to?: number | null;
1290
+ /** Count of entities in this range. */
1291
+ count?: number | null;
1292
+ }
1293
+ interface ScalarResult {
1294
+ /** Value of the scalar aggregation. */
1295
+ value?: number;
1296
+ }
1297
+ interface NestedResultValue extends NestedResultValueResultOneOf {
1298
+ /** Value aggregation result. */
1299
+ value?: ValueResult;
1300
+ /** Range aggregation result. */
1301
+ range?: RangeResult;
1302
+ /** Scalar aggregation result. */
1303
+ scalar?: ScalarResult;
1304
+ /** Date histogram aggregation result. */
1305
+ dateHistogram?: ValueResult;
1306
+ }
1307
+ /** @oneof */
1308
+ interface NestedResultValueResultOneOf {
1309
+ /** Value aggregation result. */
1310
+ value?: ValueResult;
1311
+ /** Range aggregation result. */
1312
+ range?: RangeResult;
1313
+ /** Scalar aggregation result. */
1314
+ scalar?: ScalarResult;
1315
+ /** Date histogram aggregation result. */
1316
+ dateHistogram?: ValueResult;
1317
+ }
1318
+ interface Results {
1319
+ /** List of nested aggregations. */
1320
+ results?: Record<string, NestedResultValue>;
1321
+ }
1322
+ interface DateHistogramResult {
1323
+ /**
1324
+ * Date in ISO 8601 format.
1325
+ * @maxLength 100
1326
+ */
1327
+ value?: string;
1328
+ /** Count of documents in the bucket. */
1329
+ count?: number;
1330
+ }
1331
+ interface GroupByValueResults {
1332
+ /**
1333
+ * List of value aggregations.
1334
+ * @maxSize 1000
1335
+ */
1336
+ results?: NestedValueAggregationResult[];
1337
+ }
1338
+ interface DateHistogramResults {
1339
+ /**
1340
+ * List of date histogram aggregations.
1341
+ * @maxSize 200
1342
+ */
1343
+ results?: DateHistogramResult[];
1344
+ }
1345
+ /**
1346
+ * Results of `NESTED` aggregation type in a flattened form.
1347
+ * Aggregations in resulting array are keyed by requested aggregation `name`.
1348
+ */
1349
+ interface NestedResults {
1350
+ /**
1351
+ * List of nested aggregations.
1352
+ * @maxSize 1000
1353
+ */
1354
+ results?: Results[];
1355
+ }
1356
+ interface AggregationResults extends AggregationResultsResultOneOf {
1357
+ /** Value aggregation results. */
1358
+ values?: ValueResults;
1359
+ /** Range aggregation results. */
1360
+ ranges?: RangeResults;
1361
+ /** Scalar aggregation results. */
1362
+ scalar?: AggregationResultsScalarResult;
1363
+ /** Group by value aggregation results. */
1364
+ groupedByValue?: GroupByValueResults;
1365
+ /** Date histogram aggregation results. */
1366
+ dateHistogram?: DateHistogramResults;
1367
+ /** Nested aggregation results. */
1368
+ nested?: NestedResults;
1369
+ /**
1370
+ * User-defined name of aggregation as derived from search request.
1371
+ * @maxLength 100
1372
+ */
1373
+ name?: string;
1374
+ /** Type of aggregation that must match provided kind as derived from search request. */
1375
+ type?: AggregationTypeWithLiterals;
1376
+ /**
1377
+ * Field to aggregate by as derived from search request.
1378
+ * @maxLength 200
1379
+ */
1380
+ fieldPath?: string;
1381
+ }
1382
+ /** @oneof */
1383
+ interface AggregationResultsResultOneOf {
1384
+ /** Value aggregation results. */
1385
+ values?: ValueResults;
1386
+ /** Range aggregation results. */
1387
+ ranges?: RangeResults;
1388
+ /** Scalar aggregation results. */
1389
+ scalar?: AggregationResultsScalarResult;
1390
+ /** Group by value aggregation results. */
1391
+ groupedByValue?: GroupByValueResults;
1392
+ /** Date histogram aggregation results. */
1393
+ dateHistogram?: DateHistogramResults;
1394
+ /** Nested aggregation results. */
1395
+ nested?: NestedResults;
1396
+ }
1397
+ interface DomainEvent extends DomainEventBodyOneOf {
1398
+ createdEvent?: EntityCreatedEvent;
1399
+ updatedEvent?: EntityUpdatedEvent;
1400
+ deletedEvent?: EntityDeletedEvent;
1401
+ actionEvent?: ActionEvent;
1402
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
1403
+ _id?: string;
1404
+ /**
1405
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
1406
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
1407
+ */
1408
+ entityFqdn?: string;
1409
+ /**
1410
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
1411
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
1412
+ */
1413
+ slug?: string;
1414
+ /** ID of the entity associated with the event. */
1415
+ entityId?: string;
1416
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
1417
+ eventTime?: Date | null;
1418
+ /**
1419
+ * Whether the event was triggered as a result of a privacy regulation application
1420
+ * (for example, GDPR).
1421
+ */
1422
+ triggeredByAnonymizeRequest?: boolean | null;
1423
+ /** If present, indicates the action that triggered the event. */
1424
+ originatedFrom?: string | null;
1425
+ /**
1426
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
1427
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
1428
+ */
1429
+ entityEventSequence?: string | null;
1430
+ }
1431
+ /** @oneof */
1432
+ interface DomainEventBodyOneOf {
1433
+ createdEvent?: EntityCreatedEvent;
1434
+ updatedEvent?: EntityUpdatedEvent;
1435
+ deletedEvent?: EntityDeletedEvent;
1436
+ actionEvent?: ActionEvent;
1437
+ }
1438
+ interface EntityCreatedEvent {
1439
+ entity?: string;
1440
+ }
1441
+ interface RestoreInfo {
1442
+ deletedDate?: Date | null;
1443
+ }
1444
+ interface EntityUpdatedEvent {
1445
+ /**
1446
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1447
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1448
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1449
+ */
1450
+ currentEntity?: string;
1451
+ }
1452
+ interface EntityDeletedEvent {
1453
+ /** Entity that was deleted. */
1454
+ deletedEntity?: string | null;
1455
+ }
1456
+ interface ActionEvent {
1457
+ body?: string;
1458
+ }
1459
+ interface Empty {
1460
+ }
1461
+ interface MessageEnvelope {
1462
+ /**
1463
+ * App instance ID.
1464
+ * @format GUID
1465
+ */
1466
+ instanceId?: string | null;
1467
+ /**
1468
+ * Event type.
1469
+ * @maxLength 150
1470
+ */
1471
+ eventType?: string;
1472
+ /** The identification type and identity data. */
1473
+ identity?: IdentificationData;
1474
+ /** Stringify payload. */
1475
+ data?: string;
1476
+ /** Details related to the account */
1477
+ accountInfo?: AccountInfo;
1478
+ }
1479
+ interface IdentificationData extends IdentificationDataIdOneOf {
1480
+ /**
1481
+ * ID of a site visitor that has not logged in to the site.
1482
+ * @format GUID
1483
+ */
1484
+ anonymousVisitorId?: string;
1485
+ /**
1486
+ * ID of a site visitor that has logged in to the site.
1487
+ * @format GUID
1488
+ */
1489
+ memberId?: string;
1490
+ /**
1491
+ * ID of a Wix user (site owner, contributor, etc.).
1492
+ * @format GUID
1493
+ */
1494
+ wixUserId?: string;
1495
+ /**
1496
+ * ID of an app.
1497
+ * @format GUID
1498
+ */
1499
+ appId?: string;
1500
+ /** @readonly */
1501
+ identityType?: WebhookIdentityTypeWithLiterals;
1502
+ }
1503
+ /** @oneof */
1504
+ interface IdentificationDataIdOneOf {
1505
+ /**
1506
+ * ID of a site visitor that has not logged in to the site.
1507
+ * @format GUID
1508
+ */
1509
+ anonymousVisitorId?: string;
1510
+ /**
1511
+ * ID of a site visitor that has logged in to the site.
1512
+ * @format GUID
1513
+ */
1514
+ memberId?: string;
1515
+ /**
1516
+ * ID of a Wix user (site owner, contributor, etc.).
1517
+ * @format GUID
1518
+ */
1519
+ wixUserId?: string;
1520
+ /**
1521
+ * ID of an app.
1522
+ * @format GUID
1523
+ */
1524
+ appId?: string;
1525
+ }
1526
+ declare enum WebhookIdentityType {
1527
+ UNKNOWN = "UNKNOWN",
1528
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1529
+ MEMBER = "MEMBER",
1530
+ WIX_USER = "WIX_USER",
1531
+ APP = "APP"
1532
+ }
1533
+ /** @enumType */
1534
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1535
+ interface AccountInfo {
1536
+ /**
1537
+ * ID of the Wix account associated with the event.
1538
+ * @format GUID
1539
+ */
1540
+ accountId?: string | null;
1541
+ /**
1542
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
1543
+ * @format GUID
1544
+ */
1545
+ parentAccountId?: string | null;
1546
+ /**
1547
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
1548
+ * @format GUID
1549
+ */
1550
+ siteId?: string | null;
1551
+ }
1552
+ interface ExportParticipantsStatsRequest {
1553
+ /**
1554
+ * program id to export data from
1555
+ * @format GUID
1556
+ */
1557
+ programId: string;
1558
+ }
1559
+ interface ExportParticipantsStatsResponse {
1560
+ }
1561
+ /** @docsIgnore */
1562
+ type CreateParticipantApplicationErrors = {
1563
+ code?: 'PREMIUM_PLAN_REQUIRED';
1564
+ description?: string;
1565
+ data?: Record<string, any>;
1566
+ } | {
1567
+ code?: 'PARTICIPANTS_LIMIT_EXCEEDED';
1568
+ description?: string;
1569
+ data?: Record<string, any>;
1570
+ };
1571
+ /** @docsIgnore */
1572
+ type BulkCreateParticipantsApplicationErrors = {
1573
+ code?: 'MULTIPLE_PROGRAM_IDS_IN_BULK_CREATE';
1574
+ description?: string;
1575
+ data?: Record<string, any>;
1576
+ } | {
1577
+ code?: 'PREMIUM_PLAN_REQUIRED';
1578
+ description?: string;
1579
+ data?: Record<string, any>;
1580
+ } | {
1581
+ code?: 'PARTICIPANTS_LIMIT_EXCEEDED';
1582
+ description?: string;
1583
+ data?: Record<string, any>;
1584
+ };
1585
+ /** @docsIgnore */
1586
+ type IssueCertificateApplicationErrors = {
1587
+ code?: 'PARTICIPANT_NOT_ACTIVE';
1588
+ description?: string;
1589
+ data?: Record<string, any>;
1590
+ } | {
1591
+ code?: 'NO_CERTIFICATE_REWARD';
1592
+ description?: string;
1593
+ data?: Record<string, any>;
1594
+ } | {
1595
+ code?: 'PARTICIPANT_NOT_COMPLETED_PROGRAM';
1596
+ description?: string;
1597
+ data?: Record<string, any>;
1598
+ };
1599
+ /** @docsIgnore */
1600
+ type BulkUpdateParticipantTagsApplicationErrors = {
1601
+ code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
1602
+ description?: string;
1603
+ data?: Record<string, any>;
1604
+ };
1605
+ /** @docsIgnore */
1606
+ type BulkUpdateParticipantTagsByFilterApplicationErrors = {
1607
+ code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
1608
+ description?: string;
1609
+ data?: Record<string, any>;
1610
+ };
1611
+ interface BaseEventMetadata {
1612
+ /**
1613
+ * App instance ID.
1614
+ * @format GUID
1615
+ */
1616
+ instanceId?: string | null;
1617
+ /**
1618
+ * Event type.
1619
+ * @maxLength 150
1620
+ */
1621
+ eventType?: string;
1622
+ /** The identification type and identity data. */
1623
+ identity?: IdentificationData;
1624
+ /** Details related to the account */
1625
+ accountInfo?: AccountInfo;
1626
+ }
1627
+ interface EventMetadata extends BaseEventMetadata {
1628
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
1629
+ _id?: string;
1630
+ /**
1631
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
1632
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
1633
+ */
1634
+ entityFqdn?: string;
1635
+ /**
1636
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
1637
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
1638
+ */
1639
+ slug?: string;
1640
+ /** ID of the entity associated with the event. */
1641
+ entityId?: string;
1642
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
1643
+ eventTime?: Date | null;
1644
+ /**
1645
+ * Whether the event was triggered as a result of a privacy regulation application
1646
+ * (for example, GDPR).
1647
+ */
1648
+ triggeredByAnonymizeRequest?: boolean | null;
1649
+ /** If present, indicates the action that triggered the event. */
1650
+ originatedFrom?: string | null;
1651
+ /**
1652
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
1653
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
1654
+ */
1655
+ entityEventSequence?: string | null;
1656
+ accountInfo?: AccountInfoMetadata;
1657
+ }
1658
+ interface AccountInfoMetadata {
1659
+ /** ID of the Wix account associated with the event */
1660
+ accountId: string;
1661
+ /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */
1662
+ siteId?: string;
1663
+ /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */
1664
+ parentAccountId?: string;
1665
+ }
1666
+ interface ParticipantCompletedProgramEnvelope {
1667
+ data: ParticipantCompletedProgram;
1668
+ metadata: EventMetadata;
1669
+ }
1670
+ /**
1671
+ * Triggered when a participant completes a program.
1672
+ * @permissionScope Manage Online Programs
1673
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1674
+ * @permissionId online_programs:participants:v3:participant:read_events
1675
+ * @webhook
1676
+ * @eventType wix.online_programs.participants.v3.participant_completed_program
1677
+ * @slug completed_program
1678
+ * @documentationMaturity preview
1679
+ */
1680
+ declare function onParticipantCompletedProgram(handler: (event: ParticipantCompletedProgramEnvelope) => void | Promise<void>): void;
1681
+ interface ParticipantCreatedEnvelope {
1682
+ entity: Participant;
1683
+ metadata: EventMetadata;
1684
+ }
1685
+ /**
1686
+ * Triggered when a participant is created.
1687
+ * @permissionScope Manage Online Programs
1688
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1689
+ * @permissionId online_programs:participants:v3:participant:read_events
1690
+ * @webhook
1691
+ * @eventType wix.online_programs.participants.v3.participant_created
1692
+ * @slug created
1693
+ * @documentationMaturity preview
1694
+ */
1695
+ declare function onParticipantCreated(handler: (event: ParticipantCreatedEnvelope) => void | Promise<void>): void;
1696
+ interface ParticipantDeletedEnvelope {
1697
+ entity: Participant;
1698
+ metadata: EventMetadata;
1699
+ }
1700
+ /**
1701
+ * Triggered when a participant is deleted.
1702
+ * @permissionScope Manage Online Programs
1703
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1704
+ * @permissionId online_programs:participants:v3:participant:read_events
1705
+ * @webhook
1706
+ * @eventType wix.online_programs.participants.v3.participant_deleted
1707
+ * @slug deleted
1708
+ * @documentationMaturity preview
1709
+ */
1710
+ declare function onParticipantDeleted(handler: (event: ParticipantDeletedEnvelope) => void | Promise<void>): void;
1711
+ interface ParticipantLeftEnvelope {
1712
+ data: ParticipantLeft;
1713
+ metadata: EventMetadata;
1714
+ }
1715
+ /**
1716
+ * Triggered when a participant voluntarily leaves a program.
1717
+ * @permissionScope Manage Online Programs
1718
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1719
+ * @permissionId online_programs:participants:v3:participant:read_events
1720
+ * @webhook
1721
+ * @eventType wix.online_programs.participants.v3.participant_left
1722
+ * @slug left
1723
+ * @documentationMaturity preview
1724
+ */
1725
+ declare function onParticipantLeft(handler: (event: ParticipantLeftEnvelope) => void | Promise<void>): void;
1726
+ interface ParticipantMissedProgramDeadlineEnvelope {
1727
+ data: ParticipantMissedProgramDeadline;
1728
+ metadata: EventMetadata;
1729
+ }
1730
+ /**
1731
+ * Triggered when a participant misses a program deadline.
1732
+ * @permissionScope Manage Online Programs
1733
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1734
+ * @permissionId online_programs:participants:v3:participant:read_events
1735
+ * @webhook
1736
+ * @eventType wix.online_programs.participants.v3.participant_missed_program_deadline
1737
+ * @slug missed_program_deadline
1738
+ * @documentationMaturity preview
1739
+ */
1740
+ declare function onParticipantMissedProgramDeadline(handler: (event: ParticipantMissedProgramDeadlineEnvelope) => void | Promise<void>): void;
1741
+ interface ParticipantProgramDurationEndedEnvelope {
1742
+ data: ParticipantProgramDurationEnded;
1743
+ metadata: EventMetadata;
1744
+ }
1745
+ /**
1746
+ * Triggered when a participant's program duration ends.
1747
+ * @permissionScope Manage Online Programs
1748
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1749
+ * @permissionId online_programs:participants:v3:participant:read_events
1750
+ * @webhook
1751
+ * @eventType wix.online_programs.participants.v3.participant_program_duration_ended
1752
+ * @slug program_duration_ended
1753
+ * @documentationMaturity preview
1754
+ */
1755
+ declare function onParticipantProgramDurationEnded(handler: (event: ParticipantProgramDurationEndedEnvelope) => void | Promise<void>): void;
1756
+ interface ParticipantRemovedEnvelope {
1757
+ data: ParticipantRemoved;
1758
+ metadata: EventMetadata;
1759
+ }
1760
+ /**
1761
+ * Triggered when an administrator removes a participant from a program.
1762
+ * @permissionScope Manage Online Programs
1763
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1764
+ * @permissionId online_programs:participants:v3:participant:read_events
1765
+ * @webhook
1766
+ * @eventType wix.online_programs.participants.v3.participant_removed
1767
+ * @slug removed
1768
+ * @documentationMaturity preview
1769
+ */
1770
+ declare function onParticipantRemoved(handler: (event: ParticipantRemovedEnvelope) => void | Promise<void>): void;
1771
+ interface ParticipantTagsModifiedEnvelope {
1772
+ data: ParticipantTagsModified;
1773
+ metadata: EventMetadata;
1774
+ }
1775
+ /**
1776
+ * Triggered when a participant's tags are modified.
1777
+ * @permissionScope Manage Online Programs
1778
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1779
+ * @permissionId online_programs:participants:v3:participant:read_events
1780
+ * @webhook
1781
+ * @eventType wix.online_programs.participants.v3.participant_tags_modified
1782
+ * @slug tags_modified
1783
+ * @documentationMaturity preview
1784
+ */
1785
+ declare function onParticipantTagsModified(handler: (event: ParticipantTagsModifiedEnvelope) => void | Promise<void>): void;
1786
+ interface ParticipantUpdatedEnvelope {
1787
+ entity: Participant;
1788
+ metadata: EventMetadata;
1789
+ /** @hidden */
1790
+ modifiedFields: Record<string, any>;
1791
+ }
1792
+ /**
1793
+ * Triggered when a participant is updated.
1794
+ * @permissionScope Manage Online Programs
1795
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1796
+ * @permissionId online_programs:participants:v3:participant:read_events
1797
+ * @webhook
1798
+ * @eventType wix.online_programs.participants.v3.participant_updated
1799
+ * @slug updated
1800
+ * @documentationMaturity preview
1801
+ */
1802
+ declare function onParticipantUpdated(handler: (event: ParticipantUpdatedEnvelope) => void | Promise<void>): void;
1803
+ /**
1804
+ * Creates a participant.
1805
+ *
1806
+ * Returns an error if the member is already a participant in the specified program.
1807
+ * Use UpdateParticipant to modify existing participants.
1808
+ * @param participant - Participant to create
1809
+ * @public
1810
+ * @documentationMaturity preview
1811
+ * @requiredField participant
1812
+ * @requiredField participant.enrollmentInfo
1813
+ * @requiredField participant.enrollmentInfo.pricingType
1814
+ * @requiredField participant.memberId
1815
+ * @requiredField participant.programId
1816
+ * @permissionId online_programs:participants:v3:participant:create_participant
1817
+ * @applicableIdentity APP
1818
+ * @returns Created participant
1819
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.CreateParticipant
1820
+ */
1821
+ declare function createParticipant(participant: NonNullablePaths<Participant, `enrollmentInfo` | `enrollmentInfo.pricingType` | `memberId` | `programId`, 3>, options?: CreateParticipantOptions): Promise<NonNullablePaths<Participant, `memberId` | `programId` | `progress.totalStepsCompleted` | `progress.totalStepsAvailable` | `progress.completionPercentage` | `enrollmentStatus` | `progressStatus` | `enrollmentInfo.singlePaymentDetails.paymentOrderId` | `enrollmentInfo.paidPlanDetails.paidPlanId` | `enrollmentInfo.freeCouponDetails.freeCouponId` | `enrollmentInfo.timeZone` | `enrollmentInfo.startDate` | `enrollmentInfo.pricingType` | `tags.privateTags.tagIds`, 4> & {
1822
+ __applicationErrorsType?: CreateParticipantApplicationErrors;
1823
+ }>;
1824
+ interface CreateParticipantOptions {
1825
+ /**
1826
+ * Array of conditional fields to include in the response.
1827
+ * Use `RequestedFields.PROGRESS` to include the progress field, which requires calculating completion statistics across all program steps. Only request this field when you need current progress data, as it impacts performance.
1828
+ * @maxSize 1
1829
+ */
1830
+ fields?: RequestedFieldsWithLiterals[];
1831
+ }
1832
+ /**
1833
+ * Updates a participant's enrollment status, progress status, or enrollment pricing details.
1834
+ * @param _id - Participant ID.
1835
+ * @public
1836
+ * @documentationMaturity preview
1837
+ * @requiredField _id
1838
+ * @requiredField participant
1839
+ * @requiredField participant.revision
1840
+ * @permissionId online_programs:participants:v3:participant:update_participant
1841
+ * @applicableIdentity APP
1842
+ * @returns Updated participant
1843
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.UpdateParticipant
1844
+ */
1845
+ declare function updateParticipant(_id: string, participant: NonNullablePaths<UpdateParticipant, `revision`, 2>, options?: UpdateParticipantOptions): Promise<NonNullablePaths<Participant, `memberId` | `programId` | `progress.totalStepsCompleted` | `progress.totalStepsAvailable` | `progress.completionPercentage` | `enrollmentStatus` | `progressStatus` | `enrollmentInfo.singlePaymentDetails.paymentOrderId` | `enrollmentInfo.paidPlanDetails.paidPlanId` | `enrollmentInfo.freeCouponDetails.freeCouponId` | `enrollmentInfo.timeZone` | `enrollmentInfo.startDate` | `enrollmentInfo.pricingType` | `tags.privateTags.tagIds`, 4>>;
1846
+ interface UpdateParticipant {
1847
+ /**
1848
+ * Participant ID.
1849
+ * @format GUID
1850
+ * @readonly
1851
+ */
1852
+ _id?: string | null;
1853
+ /**
1854
+ * Participant revision (for optimistic concurrency control).
1855
+ * @readonly
1856
+ */
1857
+ revision?: string | null;
1858
+ /**
1859
+ * Participant creation date.
1860
+ * @readonly
1861
+ */
1862
+ _createdDate?: Date | null;
1863
+ /**
1864
+ * Date the participant was last updated.
1865
+ * @readonly
1866
+ */
1867
+ _updatedDate?: Date | null;
1868
+ /**
1869
+ * Member ID of the participant on the site.
1870
+ * @format GUID
1871
+ * @readonly
1872
+ */
1873
+ memberId?: string;
1874
+ /**
1875
+ * ID of the program the participant is enrolled in.
1876
+ * @format GUID
1877
+ * @readonly
1878
+ */
1879
+ programId?: string;
1880
+ /**
1881
+ * Program completion progress. This field is conditional and must be explicitly requested via `fields` parameter.
1882
+ * @readonly
1883
+ */
1884
+ progress?: Progress;
1885
+ /**
1886
+ * Certificate info for participant
1887
+ * @readonly
1888
+ */
1889
+ certificateInfo?: CertificateInfo;
1890
+ /**
1891
+ * Site member info snapshot for the participant
1892
+ * @readonly
1893
+ */
1894
+ member?: Member;
1895
+ /**
1896
+ * Last activity date of the participant in the program (can either be status change or step resolution).
1897
+ * @readonly
1898
+ */
1899
+ lastActivityDate?: Date | null;
1900
+ /**
1901
+ * Participant's enrollment status in the program.
1902
+ * @readonly
1903
+ */
1904
+ enrollmentStatus?: EnrollmentStatusWithLiterals;
1905
+ /**
1906
+ * Participant's progress status in the program.
1907
+ * @readonly
1908
+ */
1909
+ progressStatus?: ProgressStatusWithLiterals;
1910
+ /** Additional information about the participant's enrollment and completion timeframe in the program. */
1911
+ enrollmentInfo?: EnrollmentInfo;
1912
+ /** Extended fields for participant (can be used for storing custom data). */
1913
+ extendedFields?: ExtendedFields;
1914
+ /** Tags for categorizing and organizing participants. */
1915
+ tags?: Tags;
1916
+ }
1917
+ interface UpdateParticipantOptions {
1918
+ /**
1919
+ * Array of conditional fields to include in the response.
1920
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
1921
+ * @maxSize 1
1922
+ */
1923
+ fields?: RequestedFieldsWithLiterals[];
1924
+ }
1925
+ /**
1926
+ * Creates participants in bulk.
1927
+ *
1928
+ * All participants in a single bulk create request must belong to the same program.
1929
+ * Returns an error if the member is already a participant in the specified program.
1930
+ *
1931
+ * When `pricing_type` is `SINGLE_PAYMENT`, provide `single_payment_details`.
1932
+ * When `pricing_type` is `PAID_PLAN`, provide `paid_plan_details`.
1933
+ * When `pricing_type` is `FREE_COUPON`, provide `free_coupon_details`.
1934
+ * Other pricing types (`FREE`, `ADDED_MANUALLY`) do not require details.
1935
+ * @param participants - List of participants to create.
1936
+ * @public
1937
+ * @documentationMaturity preview
1938
+ * @requiredField participants
1939
+ * @requiredField participants.enrollmentInfo
1940
+ * @requiredField participants.enrollmentInfo.pricingType
1941
+ * @requiredField participants.memberId
1942
+ * @requiredField participants.programId
1943
+ * @permissionId online_programs:participants:v3:participant:bulk_create_participants
1944
+ * @applicableIdentity APP
1945
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.BulkCreateParticipants
1946
+ */
1947
+ declare function bulkCreateParticipants(participants: NonNullablePaths<Participant, `enrollmentInfo` | `enrollmentInfo.pricingType` | `memberId` | `programId`, 3>[], options?: BulkCreateParticipantsOptions): Promise<NonNullablePaths<BulkCreateParticipantsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.memberId` | `results.${number}.item.programId` | `results.${number}.item.progress.totalStepsCompleted` | `results.${number}.item.progress.totalStepsAvailable` | `results.${number}.item.progress.completionPercentage` | `results.${number}.item.enrollmentStatus` | `results.${number}.item.progressStatus` | `results.${number}.item.enrollmentInfo.timeZone` | `results.${number}.item.enrollmentInfo.startDate` | `results.${number}.item.enrollmentInfo.pricingType` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
1948
+ __applicationErrorsType?: BulkCreateParticipantsApplicationErrors;
1949
+ }>;
1950
+ interface BulkCreateParticipantsOptions {
1951
+ /** Whether to return entities in response or not. */
1952
+ returnEntity?: boolean;
1953
+ /**
1954
+ * Array of conditional fields to include in the response.
1955
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
1956
+ * @maxSize 1
1957
+ */
1958
+ fields?: RequestedFieldsWithLiterals[];
1959
+ }
1960
+ /**
1961
+ * Creates participants in bulk for all site members in a program, with an optional exclusion filter.
1962
+ *
1963
+ * Participants are created in the `JOINED` state with the join path set to `ADDED`.
1964
+ * Members who are already participants in the program will be skipped.
1965
+ * Only members who are not yet participants will be added.
1966
+ * @param programId - ID of the program for which to create participants for all site members in bulk.
1967
+ * @public
1968
+ * @documentationMaturity preview
1969
+ * @requiredField programId
1970
+ * @permissionId online_programs:participants:v3:participant:bulk_create_participants_for_all_members
1971
+ * @applicableIdentity APP
1972
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.BulkCreateParticipantsForAllMembers
1973
+ */
1974
+ declare function bulkCreateParticipantsForAllMembers(programId: string, options?: BulkCreateParticipantsForAllMembersOptions): Promise<NonNullablePaths<BulkCreateParticipantsForAllMembersResponse, `jobId`, 2>>;
1975
+ interface BulkCreateParticipantsForAllMembersOptions {
1976
+ /**
1977
+ * Site member IDs to exclude from bulk participant creation. Maximum 100 member IDs can be excluded.
1978
+ * @format GUID
1979
+ * @maxSize 100
1980
+ */
1981
+ excludeMemberIds?: string[];
1982
+ }
1983
+ /**
1984
+ * Removes a participant from the program.
1985
+ *
1986
+ * The member will lose access to program content but will remain in any associated social groups.
1987
+ * @param participantId - ID of the participant to delete.
1988
+ * @public
1989
+ * @documentationMaturity preview
1990
+ * @requiredField participantId
1991
+ * @permissionId online_programs:participants:v3:participant:delete_participant
1992
+ * @applicableIdentity APP
1993
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.DeleteParticipant
1994
+ */
1995
+ declare function deleteParticipant(participantId: string): Promise<void>;
1996
+ /**
1997
+ * Issues a certificate to a participant who has completed the program.
1998
+ * @param participantId - ID of the participant to issue the certificate to.
1999
+ * @public
2000
+ * @documentationMaturity preview
2001
+ * @requiredField participantId
2002
+ * @permissionId online_programs:participants:v3:participant:issue_certificate
2003
+ * @applicableIdentity APP
2004
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.IssueCertificate
2005
+ */
2006
+ declare function issueCertificate(participantId: string, options?: IssueCertificateOptions): Promise<NonNullablePaths<IssueCertificateResponse, `participant.memberId` | `participant.programId` | `participant.progress.totalStepsCompleted` | `participant.progress.totalStepsAvailable` | `participant.progress.completionPercentage` | `participant.enrollmentStatus` | `participant.progressStatus` | `participant.enrollmentInfo.singlePaymentDetails.paymentOrderId` | `participant.enrollmentInfo.paidPlanDetails.paidPlanId` | `participant.enrollmentInfo.freeCouponDetails.freeCouponId` | `participant.enrollmentInfo.timeZone` | `participant.enrollmentInfo.startDate` | `participant.enrollmentInfo.pricingType` | `participant.tags.privateTags.tagIds`, 5> & {
2007
+ __applicationErrorsType?: IssueCertificateApplicationErrors;
2008
+ }>;
2009
+ interface IssueCertificateOptions {
2010
+ /**
2011
+ * Array of conditional fields to include in the response.
2012
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
2013
+ * @maxSize 1
2014
+ */
2015
+ fields?: RequestedFieldsWithLiterals[];
2016
+ }
2017
+ /**
2018
+ * Retrieves premium plan statistics for the site.
2019
+ * @public
2020
+ * @documentationMaturity preview
2021
+ * @permissionId online_programs:participants:v3:participant:get_premium_stats
2022
+ * @applicableIdentity APP
2023
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.GetPremiumStats
2024
+ */
2025
+ declare function getPremiumStats(): Promise<NonNullablePaths<GetPremiumStatsResponse, `premiumEnabled` | `activeParticipantsCount` | `activeParticipantsLimit`, 2>>;
2026
+ /**
2027
+ * Returns a participant by ID.
2028
+ * @param participantId - ID of the participant to fetch.
2029
+ * @public
2030
+ * @documentationMaturity preview
2031
+ * @requiredField participantId
2032
+ * @permissionId online_programs:participants:v3:participant:get_participant
2033
+ * @applicableIdentity APP
2034
+ * @returns The retrieved participant.
2035
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.GetParticipant
2036
+ */
2037
+ declare function getParticipant(participantId: string, options?: GetParticipantOptions): Promise<NonNullablePaths<Participant, `memberId` | `programId` | `progress.totalStepsCompleted` | `progress.totalStepsAvailable` | `progress.completionPercentage` | `enrollmentStatus` | `progressStatus` | `enrollmentInfo.singlePaymentDetails.paymentOrderId` | `enrollmentInfo.paidPlanDetails.paidPlanId` | `enrollmentInfo.freeCouponDetails.freeCouponId` | `enrollmentInfo.timeZone` | `enrollmentInfo.startDate` | `enrollmentInfo.pricingType` | `tags.privateTags.tagIds`, 4>>;
2038
+ interface GetParticipantOptions {
2039
+ /**
2040
+ * Array of conditional fields to include in the response.
2041
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
2042
+ * @maxSize 1
2043
+ */
2044
+ fields?: RequestedFieldsWithLiterals[];
2045
+ }
2046
+ /**
2047
+ * Queries existing participants.
2048
+ * @public
2049
+ * @documentationMaturity preview
2050
+ * @permissionId online_programs:participants:v3:participant:query_participants
2051
+ * @applicableIdentity APP
2052
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants
2053
+ */
2054
+ declare function queryParticipants(options?: QueryParticipantsOptions): ParticipantsQueryBuilder;
2055
+ interface QueryParticipantsOptions {
2056
+ /**
2057
+ * Array of conditional fields to include in the response.
2058
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
2059
+ * @maxSize 1
2060
+ */
2061
+ fields?: RequestedFieldsWithLiterals[] | undefined;
2062
+ }
2063
+ interface QueryCursorResult {
2064
+ cursors: Cursors;
2065
+ hasNext: () => boolean;
2066
+ hasPrev: () => boolean;
2067
+ length: number;
2068
+ pageSize: number;
2069
+ }
2070
+ interface ParticipantsQueryResult extends QueryCursorResult {
2071
+ items: Participant[];
2072
+ query: ParticipantsQueryBuilder;
2073
+ next: () => Promise<ParticipantsQueryResult>;
2074
+ prev: () => Promise<ParticipantsQueryResult>;
2075
+ }
2076
+ interface ParticipantsQueryBuilder {
2077
+ /** @param propertyName - Property whose value is compared with `value`.
2078
+ * @param value - Value to compare against.
2079
+ * @documentationMaturity preview
2080
+ */
2081
+ eq: (propertyName: '_id' | '_createdDate' | 'memberId' | 'programId' | 'progress.totalStepsCompleted' | 'lastActivityDate' | 'enrollmentStatus' | 'progressStatus', value: any) => ParticipantsQueryBuilder;
2082
+ /** @param propertyName - Property whose value is compared with `value`.
2083
+ * @param value - Value to compare against.
2084
+ * @documentationMaturity preview
2085
+ */
2086
+ ne: (propertyName: '_createdDate' | 'progress.totalStepsCompleted' | 'lastActivityDate', value: any) => ParticipantsQueryBuilder;
2087
+ /** @param propertyName - Property whose value is compared with `value`.
2088
+ * @param value - Value to compare against.
2089
+ * @documentationMaturity preview
2090
+ */
2091
+ ge: (propertyName: '_createdDate' | 'progress.totalStepsCompleted' | 'lastActivityDate' | 'enrollmentInfo.startDate', value: any) => ParticipantsQueryBuilder;
2092
+ /** @param propertyName - Property whose value is compared with `value`.
2093
+ * @param value - Value to compare against.
2094
+ * @documentationMaturity preview
2095
+ */
2096
+ gt: (propertyName: '_createdDate' | 'progress.totalStepsCompleted' | 'lastActivityDate' | 'enrollmentInfo.startDate', value: any) => ParticipantsQueryBuilder;
2097
+ /** @param propertyName - Property whose value is compared with `value`.
2098
+ * @param value - Value to compare against.
2099
+ * @documentationMaturity preview
2100
+ */
2101
+ le: (propertyName: '_createdDate' | 'progress.totalStepsCompleted' | 'lastActivityDate' | 'enrollmentInfo.startDate', value: any) => ParticipantsQueryBuilder;
2102
+ /** @param propertyName - Property whose value is compared with `value`.
2103
+ * @param value - Value to compare against.
2104
+ * @documentationMaturity preview
2105
+ */
2106
+ lt: (propertyName: '_createdDate' | 'progress.totalStepsCompleted' | 'lastActivityDate' | 'enrollmentInfo.startDate', value: any) => ParticipantsQueryBuilder;
2107
+ /** @documentationMaturity preview */
2108
+ in: (propertyName: '_id' | '_createdDate' | 'memberId' | 'progress.totalStepsCompleted' | 'lastActivityDate' | 'enrollmentStatus' | 'progressStatus', value: any) => ParticipantsQueryBuilder;
2109
+ /** @documentationMaturity preview */
2110
+ exists: (propertyName: '_createdDate' | 'progress.totalStepsCompleted' | 'lastActivityDate', value: boolean) => ParticipantsQueryBuilder;
2111
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
2112
+ * @documentationMaturity preview
2113
+ */
2114
+ ascending: (...propertyNames: Array<'_id' | '_createdDate' | 'progress.totalStepsCompleted' | 'lastActivityDate' | 'enrollmentStatus' | 'progressStatus' | 'enrollmentInfo.startDate'>) => ParticipantsQueryBuilder;
2115
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
2116
+ * @documentationMaturity preview
2117
+ */
2118
+ descending: (...propertyNames: Array<'_id' | '_createdDate' | 'progress.totalStepsCompleted' | 'lastActivityDate' | 'enrollmentStatus' | 'progressStatus' | 'enrollmentInfo.startDate'>) => ParticipantsQueryBuilder;
2119
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
2120
+ * @documentationMaturity preview
2121
+ */
2122
+ limit: (limit: number) => ParticipantsQueryBuilder;
2123
+ /** @param cursor - A pointer to specific record
2124
+ * @documentationMaturity preview
2125
+ */
2126
+ skipTo: (cursor: string) => ParticipantsQueryBuilder;
2127
+ /** @documentationMaturity preview */
2128
+ find: () => Promise<ParticipantsQueryResult>;
2129
+ }
2130
+ /**
2131
+ * @hidden
2132
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants
2133
+ * @requiredField query
2134
+ */
2135
+ declare function typedQueryParticipants(query: ParticipantQuery, options?: QueryParticipantsOptions): Promise<NonNullablePaths<QueryParticipantsResponse, `participants` | `participants.${number}.memberId` | `participants.${number}.programId` | `participants.${number}.progress.totalStepsCompleted` | `participants.${number}.progress.totalStepsAvailable` | `participants.${number}.progress.completionPercentage` | `participants.${number}.enrollmentStatus` | `participants.${number}.progressStatus` | `participants.${number}.enrollmentInfo.singlePaymentDetails.paymentOrderId` | `participants.${number}.enrollmentInfo.paidPlanDetails.paidPlanId` | `participants.${number}.enrollmentInfo.freeCouponDetails.freeCouponId` | `participants.${number}.enrollmentInfo.timeZone` | `participants.${number}.enrollmentInfo.startDate` | `participants.${number}.enrollmentInfo.pricingType`, 6>>;
2136
+ interface ParticipantQuerySpec extends QuerySpec {
2137
+ paging: 'cursor';
2138
+ wql: [
2139
+ {
2140
+ fields: ['_id'];
2141
+ operators: ['$eq', '$in'];
2142
+ sort: 'BOTH';
2143
+ },
2144
+ {
2145
+ fields: ['enrollmentStatus', 'progressStatus'];
2146
+ operators: ['$eq', '$in'];
2147
+ sort: 'BOTH';
2148
+ },
2149
+ {
2150
+ fields: ['memberId'];
2151
+ operators: ['$eq', '$in'];
2152
+ sort: 'NONE';
2153
+ },
2154
+ {
2155
+ fields: ['programId'];
2156
+ operators: ['$eq'];
2157
+ sort: 'NONE';
2158
+ },
2159
+ {
2160
+ fields: [
2161
+ '_createdDate',
2162
+ 'lastActivityDate',
2163
+ 'progress.totalStepsCompleted'
2164
+ ];
2165
+ operators: '*';
2166
+ sort: 'BOTH';
2167
+ },
2168
+ {
2169
+ fields: ['enrollmentInfo.startDate'];
2170
+ operators: ['$gt', '$gte', '$lt', '$lte'];
2171
+ sort: 'BOTH';
2172
+ }
2173
+ ];
2174
+ }
2175
+ type CommonQueryWithEntityContext = Query<Participant, ParticipantQuerySpec>;
2176
+ type ParticipantQuery = {
2177
+ /**
2178
+ 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`.
2179
+ */
2180
+ cursorPaging?: {
2181
+ /**
2182
+ Maximum number of items to return in the results.
2183
+ @max: 100
2184
+ */
2185
+ limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
2186
+ /**
2187
+ Pointer to the next or previous page in the list of results.
2188
+
2189
+ Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
2190
+ Not relevant for the first request.
2191
+ @maxLength: 16000
2192
+ */
2193
+ cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
2194
+ };
2195
+ /**
2196
+ Filter object.
2197
+
2198
+ Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
2199
+ */
2200
+ filter?: CommonQueryWithEntityContext['filter'] | null;
2201
+ /**
2202
+ Sort object.
2203
+
2204
+ Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
2205
+ @maxSize: 100
2206
+ */
2207
+ sort?: {
2208
+ /**
2209
+ Name of the field to sort by.
2210
+ @maxLength: 512
2211
+ */
2212
+ fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
2213
+ /**
2214
+ Sort order.
2215
+ */
2216
+ order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
2217
+ }[];
2218
+ };
2219
+ declare const utils: {
2220
+ query: _wix_sdk_types.QueryHelpers<Participant, ParticipantQuerySpec, ParticipantQuery>;
2221
+ search: _wix_sdk_types.SearchHelpers<Participant, ParticipantSearchSpec, ParticipantSearch>;
2222
+ };
2223
+ /**
2224
+ * Retrieves the access status for the current site, indicating whether participants can access
2225
+ * online programs or if access is blocked due to plan limitations or other restrictions.
2226
+ * @public
2227
+ * @documentationMaturity preview
2228
+ * @permissionId online_programs:participants:v3:participant:get_access_status
2229
+ * @applicableIdentity APP
2230
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.GetAccessStatus
2231
+ */
2232
+ declare function getAccessStatus(): Promise<NonNullablePaths<GetAccessStatusResponse, `accessBlocked`, 2>>;
2233
+ /**
2234
+ * Updates tags for multiple Participants by IDs.
2235
+ *
2236
+ * Allows assigning and/or unassigning tags in a single operation.
2237
+ * At least one of assign_tags or unassign_tags must be provided.
2238
+ * @param participantIds - Participant IDs to update tags for (1-100 items)
2239
+ * @public
2240
+ * @documentationMaturity preview
2241
+ * @requiredField participantIds
2242
+ * @permissionId online_programs:participants:v3:participant:bulk_update_participant_tags
2243
+ * @applicableIdentity APP
2244
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTags
2245
+ */
2246
+ declare function bulkUpdateParticipantTags(participantIds: string[], options?: BulkUpdateParticipantTagsOptions): Promise<NonNullablePaths<BulkUpdateParticipantTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
2247
+ __applicationErrorsType?: BulkUpdateParticipantTagsApplicationErrors;
2248
+ }>;
2249
+ interface BulkUpdateParticipantTagsOptions {
2250
+ /** Tags to assign to the Participants */
2251
+ assignTags?: Tags;
2252
+ /** Tags to unassign from the Participants */
2253
+ unassignTags?: Tags;
2254
+ }
2255
+ /**
2256
+ * Updates tags for Participants matching a filter.
2257
+ *
2258
+ * Allows assigning and/or unassigning tags for all Participants matching the filter.
2259
+ * Returns a job ID for tracking the async operation.
2260
+ * @param filter - WQL filter to select Participants
2261
+ * @public
2262
+ * @documentationMaturity preview
2263
+ * @requiredField filter
2264
+ * @permissionId online_programs:participants:v3:participant:bulk_update_participant_tags_by_filter
2265
+ * @applicableIdentity APP
2266
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTagsByFilter
2267
+ */
2268
+ declare function bulkUpdateParticipantTagsByFilter(filter: Record<string, any>, options?: BulkUpdateParticipantTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateParticipantTagsByFilterResponse, `jobId`, 2> & {
2269
+ __applicationErrorsType?: BulkUpdateParticipantTagsByFilterApplicationErrors;
2270
+ }>;
2271
+ interface BulkUpdateParticipantTagsByFilterOptions {
2272
+ /** Tags to assign to matching Participants */
2273
+ assignTags?: Tags;
2274
+ /** Tags to unassign from matching Participants */
2275
+ unassignTags?: Tags;
2276
+ }
2277
+ interface SearchParticipantsOptions {
2278
+ /**
2279
+ * Array of conditional fields to include in the response.
2280
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
2281
+ * @maxSize 1
2282
+ */
2283
+ fields?: RequestedFieldsWithLiterals[];
2284
+ }
2285
+ interface ParticipantSearchSpec extends SearchSpec {
2286
+ searchable: [
2287
+ 'member.email',
2288
+ 'member.firstName',
2289
+ 'member.lastName',
2290
+ 'member.nickname'
2291
+ ];
2292
+ aggregatable: [
2293
+ '_createdDate',
2294
+ '_id',
2295
+ '_updatedDate',
2296
+ 'enrollmentInfo.startDate',
2297
+ 'enrollmentStatus',
2298
+ 'lastActivityDate',
2299
+ 'member.contactId',
2300
+ 'memberId',
2301
+ 'programId',
2302
+ 'progress.completionPercentage',
2303
+ 'progress.totalStepsCompleted',
2304
+ 'progressStatus'
2305
+ ];
2306
+ paging: 'cursor';
2307
+ wql: [
2308
+ {
2309
+ operators: '*';
2310
+ fields: [
2311
+ '_id',
2312
+ 'enrollmentInfo.startDate',
2313
+ 'member.contactId',
2314
+ 'member.email',
2315
+ 'member.firstName',
2316
+ 'member.lastName',
2317
+ 'member.nickname',
2318
+ 'memberId',
2319
+ 'programId',
2320
+ 'progress.completionPercentage',
2321
+ 'progress.totalStepsCompleted'
2322
+ ];
2323
+ sort: 'BOTH';
2324
+ },
2325
+ {
2326
+ operators: ['$eq', '$in', '$nin'];
2327
+ fields: ['enrollmentStatus', 'progressStatus'];
2328
+ sort: 'BOTH';
2329
+ },
2330
+ {
2331
+ operators: '*';
2332
+ fields: ['_createdDate', '_updatedDate', 'lastActivityDate'];
2333
+ sort: 'BOTH';
2334
+ }
2335
+ ];
2336
+ }
2337
+ type CommonSearchWithEntityContext = Search<Participant, ParticipantSearchSpec>;
2338
+ type ParticipantSearch = {
2339
+ /**
2340
+ Cursor paging options.
2341
+
2342
+ Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
2343
+ */
2344
+ cursorPaging?: {
2345
+ /**
2346
+ Maximum number of items to return in the results.
2347
+ @max: 100
2348
+ */
2349
+ limit?: NonNullable<CommonSearchWithEntityContext['cursorPaging']>['limit'] | null;
2350
+ /**
2351
+ Pointer to the next or previous page in the list of results.
2352
+
2353
+ Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
2354
+ Not relevant for the first request.
2355
+ @maxLength: 16000
2356
+ */
2357
+ cursor?: NonNullable<CommonSearchWithEntityContext['cursorPaging']>['cursor'] | null;
2358
+ };
2359
+ /**
2360
+ Filter object.
2361
+
2362
+ Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
2363
+ */
2364
+ filter?: CommonSearchWithEntityContext['filter'] | null;
2365
+ /**
2366
+ List of sort objects.
2367
+
2368
+ Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
2369
+ @maxSize: 10
2370
+ */
2371
+ sort?: {
2372
+ /**
2373
+ Name of the field to sort by.
2374
+ @maxLength: 512
2375
+ */
2376
+ fieldName?: NonNullable<CommonSearchWithEntityContext['sort']>[number]['fieldName'];
2377
+ /**
2378
+ Sort order.
2379
+ */
2380
+ order?: NonNullable<CommonSearchWithEntityContext['sort']>[number]['order'];
2381
+ }[];
2382
+ /**
2383
+ Logical groupings of data into facets, with summaries for each facet. For example, use aggregations to allow site visitors to narrow down their search results by selecting specific categories.
2384
+ @maxSize: 10
2385
+ */
2386
+ aggregations?: {
2387
+ /**
2388
+ A value aggregation calculates metrics such as count for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number (count) of products for each price listed in the store.
2389
+ */
2390
+ value?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['value'];
2391
+ /**
2392
+ A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more.
2393
+ */
2394
+ range?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['range'];
2395
+ /**
2396
+ A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`.
2397
+ */
2398
+ scalar?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['scalar'];
2399
+ /**
2400
+ A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.) For example, use a date histogram to find how many reservations have been made at a restaurant each week.
2401
+ */
2402
+ dateHistogram?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['dateHistogram'];
2403
+ /**
2404
+ A nested aggregation is applied within the results of another aggregation. Rather than aggregating directly on the primary dataset, first group data using one aggregation and then apply another aggregation within each group. It allows for more complex analyses where you can summarize data at different levels of detail or hierarchy. For example, to get the number of products that are in stock and out of stock for each price listed, first perform a value aggregation on `discountedPriceNumeric`, and a second value aggregation on `inStock`.
2405
+ */
2406
+ nested?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['nested'];
2407
+ /**
2408
+ Aggregation name, returned in `aggregations.results.name`.
2409
+ @maxLength: 100
2410
+ */
2411
+ name?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['name'] | null;
2412
+ /**
2413
+ Type of aggregation to perform. Must align with the corresponding aggregation field.
2414
+ */
2415
+ type?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['type'];
2416
+ /**
2417
+ Field to aggregate by. Use dot notation to specify a JSON path. For example, `order.address.streetName`.
2418
+ @maxLength: 200
2419
+ */
2420
+ fieldPath?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['fieldPath'];
2421
+ /**
2422
+ Deprecated. Use `nested` instead.
2423
+ @deprecated: Deprecated. Use `nested` instead.,
2424
+ @replacedBy: kind.nested,
2425
+ @targetRemovalDate: 2024-03-30
2426
+ */
2427
+ groupBy?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['groupBy'];
2428
+ }[];
2429
+ /**
2430
+ Free text to match in searchable fields.
2431
+ */
2432
+ search?: {
2433
+ /**
2434
+ Search mode. Defines the search logic for combining multiple terms in the `expression`.
2435
+ */
2436
+ mode?: NonNullable<CommonSearchWithEntityContext['search']>['mode'];
2437
+ /**
2438
+ Search term or expression.
2439
+ @maxLength: 100
2440
+ */
2441
+ expression?: NonNullable<CommonSearchWithEntityContext['search']>['expression'] | null;
2442
+ /**
2443
+ Fields to search in. If the array is empty, all searchable fields are searched. Use dot notation to specify a JSON path. For example, `order.address.streetName`.
2444
+ @maxLength: 200,
2445
+ @maxSize: 20
2446
+ */
2447
+ fields?: NonNullable<CommonSearchWithEntityContext['search']>['fields'];
2448
+ /**
2449
+ Whether to enable the search function to use an algorithm to automatically find results that are close to the search expression, such as typos and declensions.
2450
+ */
2451
+ fuzzy?: NonNullable<CommonSearchWithEntityContext['search']>['fuzzy'];
2452
+ };
2453
+ /**
2454
+ Time zone to adjust date-time-based filters and aggregations, in ISO 8601 (including offsets) or IANA time zone database (including time zone IDs) format.
2455
+ Applies to all relevant filters and aggregations, unless overridden by providing timestamps including time zone. For example, "2023-12-20T10:52:34.795Z".
2456
+ @maxLength: 50
2457
+ */
2458
+ timeZone?: CommonSearchWithEntityContext['timeZone'] | null;
2459
+ };
2460
+
2461
+ export { type SinglePaymentDetails as $, type ParticipantUpdatedEnvelope as A, type BulkCreateParticipantsOptions as B, type CreateParticipantOptions as C, type ParticipantQuery as D, typedQueryParticipants as E, type ParticipantsQueryBuilder as F, type GetPremiumStatsResponse as G, PricingType as H, type IssueCertificateOptions as I, EnrollmentStatus as J, ProgressStatus as K, BulkActionType as L, SortOrder as M, SortType as N, SortDirection as O, type Participant as P, type QueryParticipantsOptions as Q, RequestedFields as R, type SearchParticipantsOptions as S, MissingValues as T, type UpdateParticipant as U, ScalarType as V, NestedAggregationType as W, Interval as X, AggregationType as Y, Mode as Z, WebhookIdentityType as _, type CreateParticipantApplicationErrors as a, type SearchParticipantsRequest as a$, type PaidPlanDetails as a0, type FreeCouponDetails as a1, type Progress as a2, type CertificateInfo as a3, type Member as a4, type EnrollmentInfo as a5, type EnrollmentInfoPricingTypeDetailsOneOf as a6, type ExtendedFields as a7, type Tags as a8, type TagList as a9, type DeleteAllParticipantsMigrationResponse as aA, type ReindexParticipantsSearchRequest as aB, type ReindexParticipantsSearchResponse as aC, type SynchronizeTimeCapsuleTasksRequest as aD, type SynchronizeTimeCapsuleTasksResponse as aE, type BulkCreateParticipantsForAllMembersRequest as aF, type DeleteParticipantRequest as aG, type DeleteParticipantResponse as aH, type IssueCertificateRequest as aI, type GetCompletionStatsRequest as aJ, type GetCompletionStatsResponse as aK, type GetPremiumStatsRequest as aL, type GetParticipantRequest as aM, type GetParticipantResponse as aN, type QueryParticipantsRequest as aO, type QueryV2 as aP, type QueryV2PagingMethodOneOf as aQ, type Sorting as aR, type Paging as aS, type CursorPaging as aT, type QueryParticipantsResponse as aU, type PagingMetadataV2 as aV, type Cursors as aW, type GetAccessStatusRequest as aX, type BulkUpdateParticipantTagsRequest as aY, type BulkUpdateParticipantTagsResult as aZ, type BulkUpdateParticipantTagsByFilterRequest as a_, type ReindexMessage as aa, type ReindexMessageActionOneOf as ab, type Upsert as ac, type Delete as ad, type Schema as ae, type ParticipantTagsModified as af, type ParticipantCompletedProgram as ag, type ParticipantMissedProgramDeadline as ah, type ParticipantProgramDurationEnded as ai, type ParticipantRemoved as aj, type ParticipantLeft as ak, type ParticipantExportsFinished as al, type CreateParticipantRequest as am, type CreateParticipantResponse as an, type UpdateParticipantRequest as ao, type UpdateParticipantResponse as ap, type BulkCreateParticipantsRequest as aq, type BulkParticipantResult as ar, type ItemMetadata as as, type ApplicationError as at, type BulkActionMetadata as au, type BulkUpsertParticipantsMigrationRequest as av, type ParticipantMigration as aw, type BulkUpsertParticipantsMigrationResponse as ax, type BulkParticipantMigrationResult as ay, type DeleteAllParticipantsMigrationRequest as az, type UpdateParticipantOptions as b, type RequestedFieldsWithLiterals as b$, type CursorSearch as b0, type CursorSearchPagingMethodOneOf as b1, type Aggregation as b2, type AggregationKindOneOf as b3, type RangeBucket as b4, type IncludeMissingValuesOptions as b5, type ValueAggregation as b6, type ValueAggregationOptionsOneOf as b7, type RangeAggregation as b8, type ScalarAggregation as b9, type NestedResults as bA, type AggregationResults as bB, type AggregationResultsResultOneOf as bC, type DomainEvent as bD, type DomainEventBodyOneOf as bE, type EntityCreatedEvent as bF, type RestoreInfo as bG, type EntityUpdatedEvent as bH, type EntityDeletedEvent as bI, type ActionEvent as bJ, type Empty as bK, type MessageEnvelope as bL, type IdentificationData as bM, type IdentificationDataIdOneOf as bN, type AccountInfo as bO, type ExportParticipantsStatsRequest as bP, type ExportParticipantsStatsResponse as bQ, type BaseEventMetadata as bR, type EventMetadata as bS, type AccountInfoMetadata as bT, type ParticipantsQueryResult as bU, type ParticipantQuerySpec as bV, type ParticipantSearchSpec as bW, utils as bX, type PricingTypeWithLiterals as bY, type EnrollmentStatusWithLiterals as bZ, type ProgressStatusWithLiterals as b_, type DateHistogramAggregation as ba, type NestedAggregationItem as bb, type NestedAggregationItemKindOneOf as bc, type NestedAggregation as bd, type GroupByAggregation as be, type GroupByAggregationKindOneOf as bf, type SearchDetails as bg, type CursorPagingMetadata as bh, type AggregationData as bi, type ValueAggregationResult as bj, type RangeAggregationResult as bk, type NestedAggregationResults as bl, type NestedAggregationResultsResultOneOf as bm, type ValueResults as bn, type RangeResults as bo, type AggregationResultsScalarResult as bp, type NestedValueAggregationResult as bq, type ValueResult as br, type RangeResult as bs, type ScalarResult as bt, type NestedResultValue as bu, type NestedResultValueResultOneOf as bv, type Results as bw, type DateHistogramResult as bx, type GroupByValueResults as by, type DateHistogramResults as bz, type BulkCreateParticipantsResponse as c, type BulkActionTypeWithLiterals as c0, type SortOrderWithLiterals as c1, type SortTypeWithLiterals as c2, type SortDirectionWithLiterals as c3, type MissingValuesWithLiterals as c4, type ScalarTypeWithLiterals as c5, type NestedAggregationTypeWithLiterals as c6, type IntervalWithLiterals as c7, type AggregationTypeWithLiterals as c8, type ModeWithLiterals as c9, type WebhookIdentityTypeWithLiterals as ca, type CommonQueryWithEntityContext as cb, type CommonSearchWithEntityContext as cc, onParticipantCompletedProgram as cd, onParticipantCreated as ce, onParticipantDeleted as cf, onParticipantLeft as cg, onParticipantMissedProgramDeadline as ch, onParticipantProgramDurationEnded as ci, onParticipantRemoved as cj, onParticipantTagsModified as ck, onParticipantUpdated as cl, createParticipant as cm, updateParticipant as cn, bulkCreateParticipants as co, bulkCreateParticipantsForAllMembers as cp, deleteParticipant as cq, issueCertificate as cr, getPremiumStats as cs, getParticipant as ct, queryParticipants as cu, getAccessStatus as cv, bulkUpdateParticipantTags as cw, bulkUpdateParticipantTagsByFilter as cx, type BulkCreateParticipantsApplicationErrors as d, type BulkCreateParticipantsForAllMembersOptions as e, type BulkCreateParticipantsForAllMembersResponse as f, type IssueCertificateResponse as g, type IssueCertificateApplicationErrors as h, type GetParticipantOptions as i, type GetAccessStatusResponse as j, type BulkUpdateParticipantTagsOptions as k, type BulkUpdateParticipantTagsResponse as l, type BulkUpdateParticipantTagsApplicationErrors as m, type BulkUpdateParticipantTagsByFilterOptions as n, type BulkUpdateParticipantTagsByFilterResponse as o, type BulkUpdateParticipantTagsByFilterApplicationErrors as p, type ParticipantSearch as q, type SearchParticipantsResponse as r, type ParticipantCompletedProgramEnvelope as s, type ParticipantCreatedEnvelope as t, type ParticipantDeletedEnvelope as u, type ParticipantLeftEnvelope as v, type ParticipantMissedProgramDeadlineEnvelope as w, type ParticipantProgramDurationEndedEnvelope as x, type ParticipantRemovedEnvelope as y, type ParticipantTagsModifiedEnvelope as z };