@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,2504 @@
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
+ * Optional explicit field mask. If omitted, the API infers it from writable fields in `participant`.
485
+ * @internal
486
+ */
487
+ fieldMask?: string[];
488
+ }
489
+ interface UpdateParticipantResponse {
490
+ /** Updated participant */
491
+ participant?: Participant;
492
+ }
493
+ interface BulkCreateParticipantsRequest {
494
+ /**
495
+ * List of participants to create.
496
+ * @minSize 1
497
+ * @maxSize 100
498
+ */
499
+ participants: Participant[];
500
+ /** Whether to return entities in response or not. */
501
+ returnEntity?: boolean;
502
+ /**
503
+ * Array of conditional fields to include in the response.
504
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
505
+ * @maxSize 1
506
+ */
507
+ fields?: RequestedFieldsWithLiterals[];
508
+ }
509
+ interface BulkCreateParticipantsResponse {
510
+ /**
511
+ * Results of the bulk create operation.
512
+ * @minSize 1
513
+ * @maxSize 100
514
+ */
515
+ results?: BulkParticipantResult[];
516
+ /** Metadata about the bulk action. */
517
+ bulkActionMetadata?: BulkActionMetadata;
518
+ }
519
+ interface BulkParticipantResult {
520
+ /** Metadata for the item. */
521
+ itemMetadata?: ItemMetadata;
522
+ /** The participant entity. Empty if `return_entity` is `false`. */
523
+ item?: Participant;
524
+ }
525
+ interface ItemMetadata {
526
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
527
+ _id?: string | null;
528
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
529
+ originalIndex?: number;
530
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
531
+ success?: boolean;
532
+ /** Details about the error in case of failure. */
533
+ error?: ApplicationError;
534
+ }
535
+ interface ApplicationError {
536
+ /** Error code. */
537
+ code?: string;
538
+ /** Description of the error. */
539
+ description?: string;
540
+ /** Data related to the error. */
541
+ data?: Record<string, any> | null;
542
+ }
543
+ interface BulkActionMetadata {
544
+ /** Number of items that were successfully processed. */
545
+ totalSuccesses?: number;
546
+ /** Number of items that couldn't be processed. */
547
+ totalFailures?: number;
548
+ /** Number of failures without details because detailed failure threshold was exceeded. */
549
+ undetailedFailures?: number;
550
+ }
551
+ interface BulkUpsertParticipantsMigrationRequest {
552
+ /**
553
+ * List of participants to create or update.
554
+ * @minSize 1
555
+ * @maxSize 100
556
+ */
557
+ participants?: ParticipantMigration[];
558
+ }
559
+ interface ParticipantMigration {
560
+ /** Participant to create or update. */
561
+ participant?: Participant;
562
+ /**
563
+ * Resolved step IDs to restore on participant.
564
+ * @maxSize 5000
565
+ * @format GUID
566
+ */
567
+ resolvedStepIds?: string[];
568
+ }
569
+ interface BulkUpsertParticipantsMigrationResponse {
570
+ /**
571
+ * Results of the bulk migration operation.
572
+ * @minSize 1
573
+ * @maxSize 100
574
+ */
575
+ results?: BulkParticipantMigrationResult[];
576
+ /** Metadata about the bulk action. */
577
+ bulkActionMetadata?: BulkActionMetadata;
578
+ }
579
+ interface BulkParticipantMigrationResult {
580
+ /** Metadata for the item. */
581
+ itemMetadata?: ItemMetadata;
582
+ /** Action type of bulk action (INSERT OR UPDATE) for that endpoint. */
583
+ action?: BulkActionTypeWithLiterals;
584
+ }
585
+ declare enum BulkActionType {
586
+ /** default action type, should never be used */
587
+ UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
588
+ /** Action type for inserting new items. */
589
+ INSERT = "INSERT",
590
+ /** Action type for updating existing items. */
591
+ UPDATE = "UPDATE"
592
+ }
593
+ /** @enumType */
594
+ type BulkActionTypeWithLiterals = BulkActionType | 'UNKNOWN_ACTION_TYPE' | 'INSERT' | 'UPDATE';
595
+ interface DeleteAllParticipantsMigrationRequest {
596
+ }
597
+ interface DeleteAllParticipantsMigrationResponse {
598
+ }
599
+ interface ReindexParticipantsSearchRequest {
600
+ /**
601
+ * @minSize 1
602
+ * @maxSize 1000
603
+ * @format GUID
604
+ */
605
+ participantIds?: string[];
606
+ }
607
+ interface ReindexParticipantsSearchResponse {
608
+ }
609
+ interface SynchronizeTimeCapsuleTasksRequest {
610
+ /**
611
+ * Metasite whose participant finish tasks should be synchronized.
612
+ * @format GUID
613
+ */
614
+ metaSiteId?: string;
615
+ }
616
+ interface SynchronizeTimeCapsuleTasksResponse {
617
+ /**
618
+ * ID of the asynchronous job that will process the request. Pass this ID to Get Async Job to track the operation status.
619
+ * @format GUID
620
+ */
621
+ jobId?: string;
622
+ }
623
+ interface BulkCreateParticipantsForAllMembersRequest {
624
+ /**
625
+ * ID of the program for which to create participants for all site members in bulk.
626
+ * @format GUID
627
+ */
628
+ programId: string;
629
+ /**
630
+ * Site member IDs to exclude from bulk participant creation. Maximum 100 member IDs can be excluded.
631
+ * @format GUID
632
+ * @maxSize 100
633
+ */
634
+ excludeMemberIds?: string[];
635
+ }
636
+ interface BulkCreateParticipantsForAllMembersResponse {
637
+ /**
638
+ * ID of the asynchronous job that will process the request. Pass this ID to Get Async Job to track the operation status.
639
+ * @format GUID
640
+ */
641
+ jobId?: string;
642
+ }
643
+ interface DeleteParticipantRequest {
644
+ /**
645
+ * ID of the participant to delete.
646
+ * @format GUID
647
+ */
648
+ participantId: string;
649
+ }
650
+ interface DeleteParticipantResponse {
651
+ }
652
+ interface IssueCertificateRequest {
653
+ /**
654
+ * ID of the participant to issue the certificate to.
655
+ * @format GUID
656
+ */
657
+ participantId: string;
658
+ /**
659
+ * Array of conditional fields to include in the response.
660
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
661
+ * @maxSize 1
662
+ */
663
+ fields?: RequestedFieldsWithLiterals[];
664
+ }
665
+ interface IssueCertificateResponse {
666
+ /** Updated participant */
667
+ participant?: Participant;
668
+ }
669
+ interface GetCompletionStatsRequest {
670
+ /**
671
+ * ID of the program to retrieve completion statistics for.
672
+ * @format GUID
673
+ */
674
+ programId?: string;
675
+ }
676
+ interface GetCompletionStatsResponse {
677
+ /** Number of participants that completed the program */
678
+ completedParticipantsCount?: number;
679
+ /** Percentage of participants that completed the program */
680
+ completionRate?: number;
681
+ }
682
+ interface GetPremiumStatsRequest {
683
+ }
684
+ interface GetPremiumStatsResponse {
685
+ /** True if site has Online Programs premium feature */
686
+ premiumEnabled?: boolean;
687
+ /** Count of active participants on the site */
688
+ activeParticipantsCount?: number;
689
+ /** Limit of active participants on a site without premium */
690
+ activeParticipantsLimit?: number;
691
+ }
692
+ interface GetParticipantRequest {
693
+ /**
694
+ * ID of the participant to fetch.
695
+ * @format GUID
696
+ */
697
+ participantId: string;
698
+ /**
699
+ * Array of conditional fields to include in the response.
700
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
701
+ * @maxSize 1
702
+ */
703
+ fields?: RequestedFieldsWithLiterals[];
704
+ }
705
+ interface GetParticipantResponse {
706
+ /** The retrieved participant. */
707
+ participant?: Participant;
708
+ }
709
+ interface QueryParticipantsRequest {
710
+ /** Platformized query */
711
+ query?: QueryV2;
712
+ /**
713
+ * Array of conditional fields to include in the response.
714
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
715
+ * @maxSize 1
716
+ */
717
+ fields?: RequestedFieldsWithLiterals[];
718
+ }
719
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
720
+ /** Paging options to limit and offset the number of items. */
721
+ paging?: Paging;
722
+ /** 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`. */
723
+ cursorPaging?: CursorPaging;
724
+ /**
725
+ * Filter object.
726
+ *
727
+ * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
728
+ */
729
+ filter?: Record<string, any> | null;
730
+ /**
731
+ * Sort object.
732
+ *
733
+ * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
734
+ * @maxSize 100
735
+ */
736
+ sort?: Sorting[];
737
+ /**
738
+ * 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.
739
+ * @maxSize 100
740
+ * @maxLength 1000
741
+ */
742
+ fields?: string[];
743
+ /**
744
+ * 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.
745
+ * @maxSize 100
746
+ * @maxLength 1000
747
+ */
748
+ fieldsets?: string[];
749
+ }
750
+ /** @oneof */
751
+ interface QueryV2PagingMethodOneOf {
752
+ /** Paging options to limit and offset the number of items. */
753
+ paging?: Paging;
754
+ /** 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`. */
755
+ cursorPaging?: CursorPaging;
756
+ }
757
+ interface Sorting {
758
+ /**
759
+ * Name of the field to sort by.
760
+ * @maxLength 512
761
+ */
762
+ fieldName?: string;
763
+ /** Sort order. */
764
+ order?: SortOrderWithLiterals;
765
+ }
766
+ declare enum SortOrder {
767
+ ASC = "ASC",
768
+ DESC = "DESC"
769
+ }
770
+ /** @enumType */
771
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
772
+ interface Paging {
773
+ /** Number of items to load. */
774
+ limit?: number | null;
775
+ /** Number of items to skip in the current sort order. */
776
+ offset?: number | null;
777
+ }
778
+ interface CursorPaging {
779
+ /**
780
+ * Maximum number of items to return in the results.
781
+ * @max 100
782
+ */
783
+ limit?: number | null;
784
+ /**
785
+ * Pointer to the next or previous page in the list of results.
786
+ *
787
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
788
+ * Not relevant for the first request.
789
+ * @maxLength 16000
790
+ */
791
+ cursor?: string | null;
792
+ }
793
+ interface QueryParticipantsResponse {
794
+ /** List of participants matching the query. */
795
+ participants?: Participant[];
796
+ /** Paging metadata. */
797
+ pagingMetadata?: PagingMetadataV2;
798
+ }
799
+ interface PagingMetadataV2 {
800
+ /** Number of items returned in the response. */
801
+ count?: number | null;
802
+ /** Offset that was requested. */
803
+ offset?: number | null;
804
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
805
+ total?: number | null;
806
+ /** Flag that indicates the server failed to calculate the `total` field. */
807
+ tooManyToCount?: boolean | null;
808
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
809
+ cursors?: Cursors;
810
+ /**
811
+ * Indicates if there are more results after the current page.
812
+ * If `true`, another page of results can be retrieved.
813
+ * If `false`, this is the last page.
814
+ * @internal
815
+ */
816
+ hasNext?: boolean | null;
817
+ }
818
+ interface Cursors {
819
+ /**
820
+ * Cursor string pointing to the next page in the list of results.
821
+ * @maxLength 16000
822
+ */
823
+ next?: string | null;
824
+ /**
825
+ * Cursor pointing to the previous page in the list of results.
826
+ * @maxLength 16000
827
+ */
828
+ prev?: string | null;
829
+ }
830
+ interface GetAccessStatusRequest {
831
+ }
832
+ interface GetAccessStatusResponse {
833
+ /** True if participants cannot access online programs due to some limitations */
834
+ accessBlocked?: boolean;
835
+ }
836
+ interface BulkUpdateParticipantTagsRequest {
837
+ /**
838
+ * Participant IDs to update tags for (1-100 items)
839
+ * @minSize 1
840
+ * @maxSize 100
841
+ * @format GUID
842
+ */
843
+ participantIds: string[];
844
+ /** Tags to assign to the Participants */
845
+ assignTags?: Tags;
846
+ /** Tags to unassign from the Participants */
847
+ unassignTags?: Tags;
848
+ }
849
+ interface BulkUpdateParticipantTagsResponse {
850
+ /**
851
+ * Results for each Participant
852
+ * @minSize 1
853
+ * @maxSize 100
854
+ */
855
+ results?: BulkUpdateParticipantTagsResult[];
856
+ /** Metadata about the bulk operation */
857
+ bulkActionMetadata?: BulkActionMetadata;
858
+ }
859
+ interface BulkUpdateParticipantTagsResult {
860
+ /** Metadata for this specific item */
861
+ itemMetadata?: ItemMetadata;
862
+ }
863
+ interface BulkUpdateParticipantTagsByFilterRequest {
864
+ /** WQL filter to select Participants */
865
+ filter: Record<string, any> | null;
866
+ /** Tags to assign to matching Participants */
867
+ assignTags?: Tags;
868
+ /** Tags to unassign from matching Participants */
869
+ unassignTags?: Tags;
870
+ }
871
+ interface BulkUpdateParticipantTagsByFilterResponse {
872
+ /**
873
+ * Job ID for tracking the async operation. Pass this ID to Get Async Job to track the operation status.
874
+ * @format GUID
875
+ */
876
+ jobId?: string;
877
+ }
878
+ interface SearchParticipantsRequest {
879
+ /** Query to search participants. */
880
+ search?: CursorSearch;
881
+ /**
882
+ * Array of conditional fields to include in the response.
883
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
884
+ * @maxSize 1
885
+ */
886
+ fields?: RequestedFieldsWithLiterals[];
887
+ }
888
+ interface CursorSearch extends CursorSearchPagingMethodOneOf {
889
+ /**
890
+ * Cursor paging options.
891
+ *
892
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
893
+ */
894
+ cursorPaging?: CursorPaging;
895
+ /**
896
+ * Filter object.
897
+ *
898
+ * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
899
+ */
900
+ filter?: Record<string, any> | null;
901
+ /**
902
+ * List of sort objects.
903
+ *
904
+ * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
905
+ * @maxSize 10
906
+ */
907
+ sort?: Sorting[];
908
+ /**
909
+ * 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.
910
+ * @maxSize 10
911
+ */
912
+ aggregations?: Aggregation[];
913
+ /** Free text to match in searchable fields. */
914
+ search?: SearchDetails;
915
+ /**
916
+ * 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.
917
+ * Applies to all relevant filters and aggregations, unless overridden by providing timestamps including time zone. For example, "2023-12-20T10:52:34.795Z".
918
+ * @maxLength 50
919
+ */
920
+ timeZone?: string | null;
921
+ }
922
+ /** @oneof */
923
+ interface CursorSearchPagingMethodOneOf {
924
+ /**
925
+ * Cursor paging options.
926
+ *
927
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
928
+ */
929
+ cursorPaging?: CursorPaging;
930
+ }
931
+ interface Aggregation extends AggregationKindOneOf {
932
+ /** 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. */
933
+ value?: ValueAggregation;
934
+ /** 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. */
935
+ range?: RangeAggregation;
936
+ /** 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`. */
937
+ scalar?: ScalarAggregation;
938
+ /** 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. */
939
+ dateHistogram?: DateHistogramAggregation;
940
+ /** 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`. */
941
+ nested?: NestedAggregation;
942
+ /**
943
+ * Aggregation name, returned in `aggregations.results.name`.
944
+ * @maxLength 100
945
+ */
946
+ name?: string | null;
947
+ /** Type of aggregation to perform. Must align with the corresponding aggregation field. */
948
+ type?: AggregationTypeWithLiterals;
949
+ /**
950
+ * Field to aggregate by. Use dot notation to specify a JSON path. For example, `order.address.streetName`.
951
+ * @maxLength 200
952
+ */
953
+ fieldPath?: string;
954
+ /**
955
+ * Deprecated. Use `nested` instead.
956
+ * @deprecated Deprecated. Use `nested` instead.
957
+ * @replacedBy kind.nested
958
+ * @targetRemovalDate 2024-03-30
959
+ */
960
+ groupBy?: GroupByAggregation;
961
+ }
962
+ /** @oneof */
963
+ interface AggregationKindOneOf {
964
+ /** 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. */
965
+ value?: ValueAggregation;
966
+ /** 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. */
967
+ range?: RangeAggregation;
968
+ /** 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`. */
969
+ scalar?: ScalarAggregation;
970
+ /** 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. */
971
+ dateHistogram?: DateHistogramAggregation;
972
+ /** 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`. */
973
+ nested?: NestedAggregation;
974
+ }
975
+ interface RangeBucket {
976
+ /** Inclusive lower bound of the range. Required if `to` is not provided. */
977
+ from?: number | null;
978
+ /** Exclusive upper bound of the range. Required if `from` is not provided. */
979
+ to?: number | null;
980
+ }
981
+ declare enum SortType {
982
+ /** Number of matches in the results. */
983
+ COUNT = "COUNT",
984
+ /** Alphabetically by the field value. */
985
+ VALUE = "VALUE"
986
+ }
987
+ /** @enumType */
988
+ type SortTypeWithLiterals = SortType | 'COUNT' | 'VALUE';
989
+ declare enum SortDirection {
990
+ /** Descending order. */
991
+ DESC = "DESC",
992
+ /** Ascending order. */
993
+ ASC = "ASC"
994
+ }
995
+ /** @enumType */
996
+ type SortDirectionWithLiterals = SortDirection | 'DESC' | 'ASC';
997
+ declare enum MissingValues {
998
+ /** Exclude missing values from the aggregation results. */
999
+ EXCLUDE = "EXCLUDE",
1000
+ /** Include missing values in the aggregation results. */
1001
+ INCLUDE = "INCLUDE"
1002
+ }
1003
+ /** @enumType */
1004
+ type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE';
1005
+ interface IncludeMissingValuesOptions {
1006
+ /**
1007
+ * Specify a custom name for the bucket containing the missing values. Defaults are `"N/A"` for strings, `0` for integers, and `false` for booleans.
1008
+ * @maxLength 20
1009
+ */
1010
+ addToBucket?: string;
1011
+ }
1012
+ declare enum ScalarType {
1013
+ /** Total number of distinct values. */
1014
+ COUNT_DISTINCT = "COUNT_DISTINCT",
1015
+ /** Minimum value. */
1016
+ MIN = "MIN",
1017
+ /** Maximum value. */
1018
+ MAX = "MAX",
1019
+ /**
1020
+ * Sum of values.
1021
+ * @internal
1022
+ */
1023
+ SUM = "SUM",
1024
+ /**
1025
+ * Average of values.
1026
+ * @internal
1027
+ */
1028
+ AVG = "AVG"
1029
+ }
1030
+ /** @enumType */
1031
+ type ScalarTypeWithLiterals = ScalarType | 'COUNT_DISTINCT' | 'MIN' | 'MAX';
1032
+ interface ValueAggregation extends ValueAggregationOptionsOneOf {
1033
+ /** Options for including missing values in results. */
1034
+ includeOptions?: IncludeMissingValuesOptions;
1035
+ /** Sort type. */
1036
+ sortType?: SortTypeWithLiterals;
1037
+ /** Sort direction. */
1038
+ sortDirection?: SortDirectionWithLiterals;
1039
+ /**
1040
+ * Number of aggregation results to return.
1041
+ * Min: `1`
1042
+ * Max: `250`
1043
+ * Default: `10`
1044
+ */
1045
+ limit?: number | null;
1046
+ /**
1047
+ * Whether to include or exclude missing values in the aggregation results.
1048
+ * Default: `EXCLUDE`.
1049
+ */
1050
+ missingValues?: MissingValuesWithLiterals;
1051
+ }
1052
+ /** @oneof */
1053
+ interface ValueAggregationOptionsOneOf {
1054
+ /** Options for including missing values in results. */
1055
+ includeOptions?: IncludeMissingValuesOptions;
1056
+ }
1057
+ declare enum NestedAggregationType {
1058
+ /** Calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. */
1059
+ VALUE = "VALUE",
1060
+ /** Calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. */
1061
+ RANGE = "RANGE",
1062
+ /** Calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */
1063
+ SCALAR = "SCALAR",
1064
+ /** 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.). */
1065
+ DATE_HISTOGRAM = "DATE_HISTOGRAM"
1066
+ }
1067
+ /** @enumType */
1068
+ type NestedAggregationTypeWithLiterals = NestedAggregationType | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM';
1069
+ interface RangeAggregation {
1070
+ /**
1071
+ * List of range buckets. During aggregation each entity is placed in the first bucket its value falls into, based on the provided range bounds.
1072
+ * @maxSize 50
1073
+ */
1074
+ buckets?: RangeBucket[];
1075
+ }
1076
+ interface ScalarAggregation {
1077
+ /** Operator type for the scalar aggregation. */
1078
+ type?: ScalarTypeWithLiterals;
1079
+ }
1080
+ interface DateHistogramAggregation {
1081
+ /** Interval for date histogram aggregation. */
1082
+ interval?: IntervalWithLiterals;
1083
+ }
1084
+ declare enum Interval {
1085
+ YEAR = "YEAR",
1086
+ MONTH = "MONTH",
1087
+ WEEK = "WEEK",
1088
+ DAY = "DAY",
1089
+ HOUR = "HOUR",
1090
+ MINUTE = "MINUTE",
1091
+ SECOND = "SECOND"
1092
+ }
1093
+ /** @enumType */
1094
+ type IntervalWithLiterals = Interval | 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR' | 'MINUTE' | 'SECOND';
1095
+ interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
1096
+ /** 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. */
1097
+ value?: ValueAggregation;
1098
+ /** 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. */
1099
+ range?: RangeAggregation;
1100
+ /** 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`. */
1101
+ scalar?: ScalarAggregation;
1102
+ /** 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. */
1103
+ dateHistogram?: DateHistogramAggregation;
1104
+ /**
1105
+ * Unique, caller-defined aggregation name, returned in `aggregations.results`.
1106
+ * @maxLength 100
1107
+ */
1108
+ name?: string | null;
1109
+ /** Type of aggregation to perform. The matching aggregation field must be passed. */
1110
+ type?: NestedAggregationTypeWithLiterals;
1111
+ /**
1112
+ * Field to aggregate by. Use dot notation to specify a JSON path. For example, `order.address.streetName`.
1113
+ * @maxLength 200
1114
+ */
1115
+ fieldPath?: string;
1116
+ }
1117
+ /** @oneof */
1118
+ interface NestedAggregationItemKindOneOf {
1119
+ /** 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. */
1120
+ value?: ValueAggregation;
1121
+ /** 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. */
1122
+ range?: RangeAggregation;
1123
+ /** 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`. */
1124
+ scalar?: ScalarAggregation;
1125
+ /** 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. */
1126
+ dateHistogram?: DateHistogramAggregation;
1127
+ }
1128
+ declare enum AggregationType {
1129
+ /** Calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. */
1130
+ VALUE = "VALUE",
1131
+ /** Calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. */
1132
+ RANGE = "RANGE",
1133
+ /** Calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */
1134
+ SCALAR = "SCALAR",
1135
+ /** 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.). */
1136
+ DATE_HISTOGRAM = "DATE_HISTOGRAM",
1137
+ /** Flattened list of aggregations, where each aggregation is nested within previous one. */
1138
+ NESTED = "NESTED"
1139
+ }
1140
+ /** @enumType */
1141
+ type AggregationTypeWithLiterals = AggregationType | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM' | 'NESTED';
1142
+ /** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one. */
1143
+ interface NestedAggregation {
1144
+ /**
1145
+ * Flattened list of aggregations, where each aggregation is nested within previous one.
1146
+ * @minSize 2
1147
+ * @maxSize 3
1148
+ */
1149
+ nestedAggregations?: NestedAggregationItem[];
1150
+ }
1151
+ interface GroupByAggregation extends GroupByAggregationKindOneOf {
1152
+ /** Value aggregation configuration. */
1153
+ value?: ValueAggregation;
1154
+ /**
1155
+ * Unique, caller-defined aggregation name, returned in `aggregations.results`.
1156
+ * @maxLength 100
1157
+ */
1158
+ name?: string | null;
1159
+ /**
1160
+ * Field to aggregate by.
1161
+ * @maxLength 200
1162
+ */
1163
+ fieldPath?: string;
1164
+ }
1165
+ /** @oneof */
1166
+ interface GroupByAggregationKindOneOf {
1167
+ /** Value aggregation configuration. */
1168
+ value?: ValueAggregation;
1169
+ }
1170
+ interface SearchDetails {
1171
+ /** Search mode. Defines the search logic for combining multiple terms in the `expression`. */
1172
+ mode?: ModeWithLiterals;
1173
+ /**
1174
+ * Search term or expression.
1175
+ * @maxLength 100
1176
+ */
1177
+ expression?: string | null;
1178
+ /**
1179
+ * 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`.
1180
+ * @maxLength 200
1181
+ * @maxSize 20
1182
+ */
1183
+ fields?: string[];
1184
+ /** 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. */
1185
+ fuzzy?: boolean;
1186
+ }
1187
+ declare enum Mode {
1188
+ /** At least one of the search terms must be present. */
1189
+ OR = "OR",
1190
+ /** All search terms must be present. */
1191
+ AND = "AND"
1192
+ }
1193
+ /** @enumType */
1194
+ type ModeWithLiterals = Mode | 'OR' | 'AND';
1195
+ interface SearchParticipantsResponse {
1196
+ /** Participants matching the search criteria. */
1197
+ participants?: Participant[];
1198
+ /** Paging metadata. */
1199
+ pagingMetadata?: CursorPagingMetadata;
1200
+ /** Aggregation data in case aggregations were requested. */
1201
+ aggregationData?: AggregationData;
1202
+ }
1203
+ interface CursorPagingMetadata {
1204
+ /** Number of items returned in current page. */
1205
+ count?: number | null;
1206
+ /** Cursor strings that point to the next page, previous page, or both. */
1207
+ cursors?: Cursors;
1208
+ /**
1209
+ * Whether there are more pages to retrieve following the current page.
1210
+ *
1211
+ * + `true`: Another page of results can be retrieved.
1212
+ * + `false`: This is the last page.
1213
+ */
1214
+ hasNext?: boolean | null;
1215
+ /**
1216
+ * Total number of items matching the filter.
1217
+ * Available only on the first page of *Search* results, not included in *Query* or *List* results.
1218
+ * If the Search results span multiple pages, the value of `total` will exceed the number of items returned on the first page.
1219
+ * @internal
1220
+ */
1221
+ total?: number | null;
1222
+ }
1223
+ interface AggregationData {
1224
+ /**
1225
+ * key = aggregation name (as derived from search request).
1226
+ * @maxSize 10000
1227
+ */
1228
+ results?: AggregationResults[];
1229
+ }
1230
+ interface ValueAggregationResult {
1231
+ /**
1232
+ * Value of the field.
1233
+ * @maxLength 100
1234
+ */
1235
+ value?: string;
1236
+ /** Count of entities with this value. */
1237
+ count?: number;
1238
+ }
1239
+ interface RangeAggregationResult {
1240
+ /** Inclusive lower bound of the range. */
1241
+ from?: number | null;
1242
+ /** Exclusive upper bound of the range. */
1243
+ to?: number | null;
1244
+ /** Count of entities in this range. */
1245
+ count?: number;
1246
+ }
1247
+ interface NestedAggregationResults extends NestedAggregationResultsResultOneOf {
1248
+ /** Value aggregation results. */
1249
+ values?: ValueResults;
1250
+ /** Range aggregation results. */
1251
+ ranges?: RangeResults;
1252
+ /** Scalar aggregation results. */
1253
+ scalar?: AggregationResultsScalarResult;
1254
+ /**
1255
+ * User-defined name of aggregation, matches the one provided in request.
1256
+ * @maxLength 100
1257
+ */
1258
+ name?: string;
1259
+ /** Type of aggregation that matches result. */
1260
+ type?: AggregationTypeWithLiterals;
1261
+ /**
1262
+ * Field to aggregate by, matches the one provided in request.
1263
+ * @maxLength 200
1264
+ */
1265
+ fieldPath?: string;
1266
+ }
1267
+ /** @oneof */
1268
+ interface NestedAggregationResultsResultOneOf {
1269
+ /** Value aggregation results. */
1270
+ values?: ValueResults;
1271
+ /** Range aggregation results. */
1272
+ ranges?: RangeResults;
1273
+ /** Scalar aggregation results. */
1274
+ scalar?: AggregationResultsScalarResult;
1275
+ }
1276
+ interface ValueResults {
1277
+ /**
1278
+ * List of value aggregations.
1279
+ * @maxSize 250
1280
+ */
1281
+ results?: ValueAggregationResult[];
1282
+ }
1283
+ interface RangeResults {
1284
+ /**
1285
+ * List of ranges returned in same order as requested.
1286
+ * @maxSize 50
1287
+ */
1288
+ results?: RangeAggregationResult[];
1289
+ }
1290
+ interface AggregationResultsScalarResult {
1291
+ /** Type of scalar aggregation. */
1292
+ type?: ScalarTypeWithLiterals;
1293
+ /** Value of the scalar aggregation. */
1294
+ value?: number;
1295
+ }
1296
+ interface NestedValueAggregationResult {
1297
+ /**
1298
+ * Value of the field.
1299
+ * @maxLength 1000
1300
+ */
1301
+ value?: string;
1302
+ /** Nested aggregations. */
1303
+ nestedResults?: NestedAggregationResults;
1304
+ }
1305
+ interface ValueResult {
1306
+ /**
1307
+ * Value of the field.
1308
+ * @maxLength 1000
1309
+ */
1310
+ value?: string;
1311
+ /** Count of entities with this value. */
1312
+ count?: number | null;
1313
+ }
1314
+ interface RangeResult {
1315
+ /** Inclusive lower bound of the range. */
1316
+ from?: number | null;
1317
+ /** Exclusive upper bound of the range. */
1318
+ to?: number | null;
1319
+ /** Count of entities in this range. */
1320
+ count?: number | null;
1321
+ }
1322
+ interface ScalarResult {
1323
+ /** Value of the scalar aggregation. */
1324
+ value?: number;
1325
+ }
1326
+ interface NestedResultValue extends NestedResultValueResultOneOf {
1327
+ /** Value aggregation result. */
1328
+ value?: ValueResult;
1329
+ /** Range aggregation result. */
1330
+ range?: RangeResult;
1331
+ /** Scalar aggregation result. */
1332
+ scalar?: ScalarResult;
1333
+ /** Date histogram aggregation result. */
1334
+ dateHistogram?: ValueResult;
1335
+ }
1336
+ /** @oneof */
1337
+ interface NestedResultValueResultOneOf {
1338
+ /** Value aggregation result. */
1339
+ value?: ValueResult;
1340
+ /** Range aggregation result. */
1341
+ range?: RangeResult;
1342
+ /** Scalar aggregation result. */
1343
+ scalar?: ScalarResult;
1344
+ /** Date histogram aggregation result. */
1345
+ dateHistogram?: ValueResult;
1346
+ }
1347
+ interface Results {
1348
+ /** List of nested aggregations. */
1349
+ results?: Record<string, NestedResultValue>;
1350
+ }
1351
+ interface DateHistogramResult {
1352
+ /**
1353
+ * Date in ISO 8601 format.
1354
+ * @maxLength 100
1355
+ */
1356
+ value?: string;
1357
+ /** Count of documents in the bucket. */
1358
+ count?: number;
1359
+ }
1360
+ interface GroupByValueResults {
1361
+ /**
1362
+ * List of value aggregations.
1363
+ * @maxSize 1000
1364
+ */
1365
+ results?: NestedValueAggregationResult[];
1366
+ }
1367
+ interface DateHistogramResults {
1368
+ /**
1369
+ * List of date histogram aggregations.
1370
+ * @maxSize 200
1371
+ */
1372
+ results?: DateHistogramResult[];
1373
+ }
1374
+ /**
1375
+ * Results of `NESTED` aggregation type in a flattened form.
1376
+ * Aggregations in resulting array are keyed by requested aggregation `name`.
1377
+ */
1378
+ interface NestedResults {
1379
+ /**
1380
+ * List of nested aggregations.
1381
+ * @maxSize 1000
1382
+ */
1383
+ results?: Results[];
1384
+ }
1385
+ interface AggregationResults extends AggregationResultsResultOneOf {
1386
+ /** Value aggregation results. */
1387
+ values?: ValueResults;
1388
+ /** Range aggregation results. */
1389
+ ranges?: RangeResults;
1390
+ /** Scalar aggregation results. */
1391
+ scalar?: AggregationResultsScalarResult;
1392
+ /** Group by value aggregation results. */
1393
+ groupedByValue?: GroupByValueResults;
1394
+ /** Date histogram aggregation results. */
1395
+ dateHistogram?: DateHistogramResults;
1396
+ /** Nested aggregation results. */
1397
+ nested?: NestedResults;
1398
+ /**
1399
+ * User-defined name of aggregation as derived from search request.
1400
+ * @maxLength 100
1401
+ */
1402
+ name?: string;
1403
+ /** Type of aggregation that must match provided kind as derived from search request. */
1404
+ type?: AggregationTypeWithLiterals;
1405
+ /**
1406
+ * Field to aggregate by as derived from search request.
1407
+ * @maxLength 200
1408
+ */
1409
+ fieldPath?: string;
1410
+ }
1411
+ /** @oneof */
1412
+ interface AggregationResultsResultOneOf {
1413
+ /** Value aggregation results. */
1414
+ values?: ValueResults;
1415
+ /** Range aggregation results. */
1416
+ ranges?: RangeResults;
1417
+ /** Scalar aggregation results. */
1418
+ scalar?: AggregationResultsScalarResult;
1419
+ /** Group by value aggregation results. */
1420
+ groupedByValue?: GroupByValueResults;
1421
+ /** Date histogram aggregation results. */
1422
+ dateHistogram?: DateHistogramResults;
1423
+ /** Nested aggregation results. */
1424
+ nested?: NestedResults;
1425
+ }
1426
+ interface DomainEvent extends DomainEventBodyOneOf {
1427
+ createdEvent?: EntityCreatedEvent;
1428
+ updatedEvent?: EntityUpdatedEvent;
1429
+ deletedEvent?: EntityDeletedEvent;
1430
+ actionEvent?: ActionEvent;
1431
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
1432
+ _id?: string;
1433
+ /**
1434
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
1435
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
1436
+ */
1437
+ entityFqdn?: string;
1438
+ /**
1439
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
1440
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
1441
+ */
1442
+ slug?: string;
1443
+ /** ID of the entity associated with the event. */
1444
+ entityId?: string;
1445
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
1446
+ eventTime?: Date | null;
1447
+ /**
1448
+ * Whether the event was triggered as a result of a privacy regulation application
1449
+ * (for example, GDPR).
1450
+ */
1451
+ triggeredByAnonymizeRequest?: boolean | null;
1452
+ /** If present, indicates the action that triggered the event. */
1453
+ originatedFrom?: string | null;
1454
+ /**
1455
+ * 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.
1456
+ * 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.
1457
+ */
1458
+ entityEventSequence?: string | null;
1459
+ }
1460
+ /** @oneof */
1461
+ interface DomainEventBodyOneOf {
1462
+ createdEvent?: EntityCreatedEvent;
1463
+ updatedEvent?: EntityUpdatedEvent;
1464
+ deletedEvent?: EntityDeletedEvent;
1465
+ actionEvent?: ActionEvent;
1466
+ }
1467
+ interface EntityCreatedEvent {
1468
+ entity?: string;
1469
+ }
1470
+ interface RestoreInfo {
1471
+ deletedDate?: Date | null;
1472
+ }
1473
+ interface EntityUpdatedEvent {
1474
+ /**
1475
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1476
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1477
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1478
+ */
1479
+ currentEntity?: string;
1480
+ }
1481
+ interface EntityDeletedEvent {
1482
+ /** Entity that was deleted. */
1483
+ deletedEntity?: string | null;
1484
+ }
1485
+ interface ActionEvent {
1486
+ body?: string;
1487
+ }
1488
+ interface Empty {
1489
+ }
1490
+ interface MessageEnvelope {
1491
+ /**
1492
+ * App instance ID.
1493
+ * @format GUID
1494
+ */
1495
+ instanceId?: string | null;
1496
+ /**
1497
+ * Event type.
1498
+ * @maxLength 150
1499
+ */
1500
+ eventType?: string;
1501
+ /** The identification type and identity data. */
1502
+ identity?: IdentificationData;
1503
+ /** Stringify payload. */
1504
+ data?: string;
1505
+ /** Details related to the account */
1506
+ accountInfo?: AccountInfo;
1507
+ }
1508
+ interface IdentificationData extends IdentificationDataIdOneOf {
1509
+ /**
1510
+ * ID of a site visitor that has not logged in to the site.
1511
+ * @format GUID
1512
+ */
1513
+ anonymousVisitorId?: string;
1514
+ /**
1515
+ * ID of a site visitor that has logged in to the site.
1516
+ * @format GUID
1517
+ */
1518
+ memberId?: string;
1519
+ /**
1520
+ * ID of a Wix user (site owner, contributor, etc.).
1521
+ * @format GUID
1522
+ */
1523
+ wixUserId?: string;
1524
+ /**
1525
+ * ID of an app.
1526
+ * @format GUID
1527
+ */
1528
+ appId?: string;
1529
+ /** @readonly */
1530
+ identityType?: WebhookIdentityTypeWithLiterals;
1531
+ }
1532
+ /** @oneof */
1533
+ interface IdentificationDataIdOneOf {
1534
+ /**
1535
+ * ID of a site visitor that has not logged in to the site.
1536
+ * @format GUID
1537
+ */
1538
+ anonymousVisitorId?: string;
1539
+ /**
1540
+ * ID of a site visitor that has logged in to the site.
1541
+ * @format GUID
1542
+ */
1543
+ memberId?: string;
1544
+ /**
1545
+ * ID of a Wix user (site owner, contributor, etc.).
1546
+ * @format GUID
1547
+ */
1548
+ wixUserId?: string;
1549
+ /**
1550
+ * ID of an app.
1551
+ * @format GUID
1552
+ */
1553
+ appId?: string;
1554
+ }
1555
+ declare enum WebhookIdentityType {
1556
+ UNKNOWN = "UNKNOWN",
1557
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1558
+ MEMBER = "MEMBER",
1559
+ WIX_USER = "WIX_USER",
1560
+ APP = "APP"
1561
+ }
1562
+ /** @enumType */
1563
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1564
+ interface AccountInfo {
1565
+ /**
1566
+ * ID of the Wix account associated with the event.
1567
+ * @format GUID
1568
+ */
1569
+ accountId?: string | null;
1570
+ /**
1571
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
1572
+ * @format GUID
1573
+ */
1574
+ parentAccountId?: string | null;
1575
+ /**
1576
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
1577
+ * @format GUID
1578
+ */
1579
+ siteId?: string | null;
1580
+ }
1581
+ interface ExportParticipantsStatsRequest {
1582
+ /**
1583
+ * program id to export data from
1584
+ * @format GUID
1585
+ */
1586
+ programId: string;
1587
+ }
1588
+ interface ExportParticipantsStatsResponse {
1589
+ }
1590
+ /** @docsIgnore */
1591
+ type CreateParticipantApplicationErrors = {
1592
+ code?: 'PREMIUM_PLAN_REQUIRED';
1593
+ description?: string;
1594
+ data?: Record<string, any>;
1595
+ } | {
1596
+ code?: 'PARTICIPANTS_LIMIT_EXCEEDED';
1597
+ description?: string;
1598
+ data?: Record<string, any>;
1599
+ };
1600
+ /** @docsIgnore */
1601
+ type BulkCreateParticipantsApplicationErrors = {
1602
+ code?: 'MULTIPLE_PROGRAM_IDS_IN_BULK_CREATE';
1603
+ description?: string;
1604
+ data?: Record<string, any>;
1605
+ } | {
1606
+ code?: 'PREMIUM_PLAN_REQUIRED';
1607
+ description?: string;
1608
+ data?: Record<string, any>;
1609
+ } | {
1610
+ code?: 'PARTICIPANTS_LIMIT_EXCEEDED';
1611
+ description?: string;
1612
+ data?: Record<string, any>;
1613
+ };
1614
+ /** @docsIgnore */
1615
+ type IssueCertificateApplicationErrors = {
1616
+ code?: 'PARTICIPANT_NOT_ACTIVE';
1617
+ description?: string;
1618
+ data?: Record<string, any>;
1619
+ } | {
1620
+ code?: 'NO_CERTIFICATE_REWARD';
1621
+ description?: string;
1622
+ data?: Record<string, any>;
1623
+ } | {
1624
+ code?: 'PARTICIPANT_NOT_COMPLETED_PROGRAM';
1625
+ description?: string;
1626
+ data?: Record<string, any>;
1627
+ };
1628
+ /** @docsIgnore */
1629
+ type BulkUpdateParticipantTagsApplicationErrors = {
1630
+ code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
1631
+ description?: string;
1632
+ data?: Record<string, any>;
1633
+ };
1634
+ /** @docsIgnore */
1635
+ type BulkUpdateParticipantTagsByFilterApplicationErrors = {
1636
+ code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
1637
+ description?: string;
1638
+ data?: Record<string, any>;
1639
+ };
1640
+ interface BaseEventMetadata {
1641
+ /**
1642
+ * App instance ID.
1643
+ * @format GUID
1644
+ */
1645
+ instanceId?: string | null;
1646
+ /**
1647
+ * Event type.
1648
+ * @maxLength 150
1649
+ */
1650
+ eventType?: string;
1651
+ /** The identification type and identity data. */
1652
+ identity?: IdentificationData;
1653
+ /** Details related to the account */
1654
+ accountInfo?: AccountInfo;
1655
+ }
1656
+ interface EventMetadata extends BaseEventMetadata {
1657
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
1658
+ _id?: string;
1659
+ /**
1660
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
1661
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
1662
+ */
1663
+ entityFqdn?: string;
1664
+ /**
1665
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
1666
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
1667
+ */
1668
+ slug?: string;
1669
+ /** ID of the entity associated with the event. */
1670
+ entityId?: string;
1671
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
1672
+ eventTime?: Date | null;
1673
+ /**
1674
+ * Whether the event was triggered as a result of a privacy regulation application
1675
+ * (for example, GDPR).
1676
+ */
1677
+ triggeredByAnonymizeRequest?: boolean | null;
1678
+ /** If present, indicates the action that triggered the event. */
1679
+ originatedFrom?: string | null;
1680
+ /**
1681
+ * 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.
1682
+ * 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.
1683
+ */
1684
+ entityEventSequence?: string | null;
1685
+ accountInfo?: AccountInfoMetadata;
1686
+ }
1687
+ interface AccountInfoMetadata {
1688
+ /** ID of the Wix account associated with the event */
1689
+ accountId: string;
1690
+ /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */
1691
+ siteId?: string;
1692
+ /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */
1693
+ parentAccountId?: string;
1694
+ }
1695
+ interface ParticipantCompletedProgramEnvelope {
1696
+ data: ParticipantCompletedProgram;
1697
+ metadata: EventMetadata;
1698
+ }
1699
+ /**
1700
+ * Triggered when a participant completes a program.
1701
+ * @permissionScope Manage Online Programs
1702
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1703
+ * @permissionId online_programs:participants:v3:participant:read_events
1704
+ * @webhook
1705
+ * @eventType wix.online_programs.participants.v3.participant_completed_program
1706
+ * @slug completed_program
1707
+ * @documentationMaturity preview
1708
+ */
1709
+ declare function onParticipantCompletedProgram(handler: (event: ParticipantCompletedProgramEnvelope) => void | Promise<void>): void;
1710
+ interface ParticipantCreatedEnvelope {
1711
+ entity: Participant;
1712
+ metadata: EventMetadata;
1713
+ }
1714
+ /**
1715
+ * Triggered when a participant is created.
1716
+ * @permissionScope Manage Online Programs
1717
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1718
+ * @permissionId online_programs:participants:v3:participant:read_events
1719
+ * @webhook
1720
+ * @eventType wix.online_programs.participants.v3.participant_created
1721
+ * @slug created
1722
+ * @documentationMaturity preview
1723
+ */
1724
+ declare function onParticipantCreated(handler: (event: ParticipantCreatedEnvelope) => void | Promise<void>): void;
1725
+ interface ParticipantDeletedEnvelope {
1726
+ entity: Participant;
1727
+ metadata: EventMetadata;
1728
+ }
1729
+ /**
1730
+ * Triggered when a participant is deleted.
1731
+ * @permissionScope Manage Online Programs
1732
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1733
+ * @permissionId online_programs:participants:v3:participant:read_events
1734
+ * @webhook
1735
+ * @eventType wix.online_programs.participants.v3.participant_deleted
1736
+ * @slug deleted
1737
+ * @documentationMaturity preview
1738
+ */
1739
+ declare function onParticipantDeleted(handler: (event: ParticipantDeletedEnvelope) => void | Promise<void>): void;
1740
+ interface ParticipantLeftEnvelope {
1741
+ data: ParticipantLeft;
1742
+ metadata: EventMetadata;
1743
+ }
1744
+ /**
1745
+ * Triggered when a participant voluntarily leaves a program.
1746
+ * @permissionScope Manage Online Programs
1747
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1748
+ * @permissionId online_programs:participants:v3:participant:read_events
1749
+ * @webhook
1750
+ * @eventType wix.online_programs.participants.v3.participant_left
1751
+ * @slug left
1752
+ * @documentationMaturity preview
1753
+ */
1754
+ declare function onParticipantLeft(handler: (event: ParticipantLeftEnvelope) => void | Promise<void>): void;
1755
+ interface ParticipantMissedProgramDeadlineEnvelope {
1756
+ data: ParticipantMissedProgramDeadline;
1757
+ metadata: EventMetadata;
1758
+ }
1759
+ /**
1760
+ * Triggered when a participant misses a program deadline.
1761
+ * @permissionScope Manage Online Programs
1762
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1763
+ * @permissionId online_programs:participants:v3:participant:read_events
1764
+ * @webhook
1765
+ * @eventType wix.online_programs.participants.v3.participant_missed_program_deadline
1766
+ * @slug missed_program_deadline
1767
+ * @documentationMaturity preview
1768
+ */
1769
+ declare function onParticipantMissedProgramDeadline(handler: (event: ParticipantMissedProgramDeadlineEnvelope) => void | Promise<void>): void;
1770
+ interface ParticipantProgramDurationEndedEnvelope {
1771
+ data: ParticipantProgramDurationEnded;
1772
+ metadata: EventMetadata;
1773
+ }
1774
+ /**
1775
+ * Triggered when a participant's program duration ends.
1776
+ * @permissionScope Manage Online Programs
1777
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1778
+ * @permissionId online_programs:participants:v3:participant:read_events
1779
+ * @webhook
1780
+ * @eventType wix.online_programs.participants.v3.participant_program_duration_ended
1781
+ * @slug program_duration_ended
1782
+ * @documentationMaturity preview
1783
+ */
1784
+ declare function onParticipantProgramDurationEnded(handler: (event: ParticipantProgramDurationEndedEnvelope) => void | Promise<void>): void;
1785
+ interface ParticipantRemovedEnvelope {
1786
+ data: ParticipantRemoved;
1787
+ metadata: EventMetadata;
1788
+ }
1789
+ /**
1790
+ * Triggered when an administrator removes a participant from a program.
1791
+ * @permissionScope Manage Online Programs
1792
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1793
+ * @permissionId online_programs:participants:v3:participant:read_events
1794
+ * @webhook
1795
+ * @eventType wix.online_programs.participants.v3.participant_removed
1796
+ * @slug removed
1797
+ * @documentationMaturity preview
1798
+ */
1799
+ declare function onParticipantRemoved(handler: (event: ParticipantRemovedEnvelope) => void | Promise<void>): void;
1800
+ interface ParticipantTagsModifiedEnvelope {
1801
+ data: ParticipantTagsModified;
1802
+ metadata: EventMetadata;
1803
+ }
1804
+ /**
1805
+ * Triggered when a participant's tags are modified.
1806
+ * @permissionScope Manage Online Programs
1807
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1808
+ * @permissionId online_programs:participants:v3:participant:read_events
1809
+ * @webhook
1810
+ * @eventType wix.online_programs.participants.v3.participant_tags_modified
1811
+ * @slug tags_modified
1812
+ * @documentationMaturity preview
1813
+ */
1814
+ declare function onParticipantTagsModified(handler: (event: ParticipantTagsModifiedEnvelope) => void | Promise<void>): void;
1815
+ interface ParticipantUpdatedEnvelope {
1816
+ entity: Participant;
1817
+ metadata: EventMetadata;
1818
+ /** @hidden */
1819
+ modifiedFields: Record<string, any>;
1820
+ }
1821
+ /**
1822
+ * Triggered when a participant is updated.
1823
+ * @permissionScope Manage Online Programs
1824
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1825
+ * @permissionId online_programs:participants:v3:participant:read_events
1826
+ * @webhook
1827
+ * @eventType wix.online_programs.participants.v3.participant_updated
1828
+ * @slug updated
1829
+ * @documentationMaturity preview
1830
+ */
1831
+ declare function onParticipantUpdated(handler: (event: ParticipantUpdatedEnvelope) => void | Promise<void>): void;
1832
+ /**
1833
+ * Creates a participant.
1834
+ *
1835
+ * Returns an error if the member is already a participant in the specified program.
1836
+ * Use UpdateParticipant to modify existing participants.
1837
+ * @param participant - Participant to create
1838
+ * @public
1839
+ * @documentationMaturity preview
1840
+ * @requiredField participant
1841
+ * @requiredField participant.enrollmentInfo
1842
+ * @requiredField participant.enrollmentInfo.pricingType
1843
+ * @requiredField participant.memberId
1844
+ * @requiredField participant.programId
1845
+ * @permissionId online_programs:participants:v3:participant:create_participant
1846
+ * @applicableIdentity APP
1847
+ * @returns Created participant
1848
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.CreateParticipant
1849
+ */
1850
+ 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> & {
1851
+ __applicationErrorsType?: CreateParticipantApplicationErrors;
1852
+ }>;
1853
+ interface CreateParticipantOptions {
1854
+ /**
1855
+ * Array of conditional fields to include in the response.
1856
+ * 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.
1857
+ * @maxSize 1
1858
+ */
1859
+ fields?: RequestedFieldsWithLiterals[];
1860
+ }
1861
+ /**
1862
+ * Updates a participant's enrollment status, progress status, or enrollment pricing details.
1863
+ * @param _id - Participant ID.
1864
+ * @public
1865
+ * @documentationMaturity preview
1866
+ * @requiredField _id
1867
+ * @requiredField participant
1868
+ * @requiredField participant.revision
1869
+ * @permissionId online_programs:participants:v3:participant:update_participant
1870
+ * @applicableIdentity APP
1871
+ * @returns Updated participant
1872
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.UpdateParticipant
1873
+ */
1874
+ 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>>;
1875
+ interface UpdateParticipant {
1876
+ /**
1877
+ * Participant ID.
1878
+ * @format GUID
1879
+ * @readonly
1880
+ */
1881
+ _id?: string | null;
1882
+ /**
1883
+ * Participant revision (for optimistic concurrency control).
1884
+ * @readonly
1885
+ */
1886
+ revision?: string | null;
1887
+ /**
1888
+ * Participant creation date.
1889
+ * @readonly
1890
+ */
1891
+ _createdDate?: Date | null;
1892
+ /**
1893
+ * Date the participant was last updated.
1894
+ * @readonly
1895
+ */
1896
+ _updatedDate?: Date | null;
1897
+ /**
1898
+ * Member ID of the participant on the site.
1899
+ * @format GUID
1900
+ * @readonly
1901
+ */
1902
+ memberId?: string;
1903
+ /**
1904
+ * ID of the program the participant is enrolled in.
1905
+ * @format GUID
1906
+ * @readonly
1907
+ */
1908
+ programId?: string;
1909
+ /**
1910
+ * Program completion progress. This field is conditional and must be explicitly requested via `fields` parameter.
1911
+ * @readonly
1912
+ */
1913
+ progress?: Progress;
1914
+ /**
1915
+ * Certificate info for participant
1916
+ * @readonly
1917
+ */
1918
+ certificateInfo?: CertificateInfo;
1919
+ /**
1920
+ * Site member info snapshot for the participant
1921
+ * @readonly
1922
+ */
1923
+ member?: Member;
1924
+ /**
1925
+ * Last activity date of the participant in the program (can either be status change or step resolution).
1926
+ * @readonly
1927
+ */
1928
+ lastActivityDate?: Date | null;
1929
+ /**
1930
+ * Participant's enrollment status in the program.
1931
+ * @readonly
1932
+ */
1933
+ enrollmentStatus?: EnrollmentStatusWithLiterals;
1934
+ /**
1935
+ * Participant's progress status in the program.
1936
+ * @readonly
1937
+ */
1938
+ progressStatus?: ProgressStatusWithLiterals;
1939
+ /** Additional information about the participant's enrollment and completion timeframe in the program. */
1940
+ enrollmentInfo?: EnrollmentInfo;
1941
+ /** Extended fields for participant (can be used for storing custom data). */
1942
+ extendedFields?: ExtendedFields;
1943
+ /** Tags for categorizing and organizing participants. */
1944
+ tags?: Tags;
1945
+ }
1946
+ interface UpdateParticipantOptions {
1947
+ /**
1948
+ * Array of conditional fields to include in the response.
1949
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
1950
+ * @maxSize 1
1951
+ */
1952
+ fields?: RequestedFieldsWithLiterals[];
1953
+ }
1954
+ /**
1955
+ * Creates participants in bulk.
1956
+ *
1957
+ * All participants in a single bulk create request must belong to the same program.
1958
+ * Returns an error if the member is already a participant in the specified program.
1959
+ *
1960
+ * When `pricing_type` is `SINGLE_PAYMENT`, provide `single_payment_details`.
1961
+ * When `pricing_type` is `PAID_PLAN`, provide `paid_plan_details`.
1962
+ * When `pricing_type` is `FREE_COUPON`, provide `free_coupon_details`.
1963
+ * Other pricing types (`FREE`, `ADDED_MANUALLY`) do not require details.
1964
+ * @param participants - List of participants to create.
1965
+ * @public
1966
+ * @documentationMaturity preview
1967
+ * @requiredField participants
1968
+ * @requiredField participants.enrollmentInfo
1969
+ * @requiredField participants.enrollmentInfo.pricingType
1970
+ * @requiredField participants.memberId
1971
+ * @requiredField participants.programId
1972
+ * @permissionId online_programs:participants:v3:participant:bulk_create_participants
1973
+ * @applicableIdentity APP
1974
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.BulkCreateParticipants
1975
+ */
1976
+ 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> & {
1977
+ __applicationErrorsType?: BulkCreateParticipantsApplicationErrors;
1978
+ }>;
1979
+ interface BulkCreateParticipantsOptions {
1980
+ /** Whether to return entities in response or not. */
1981
+ returnEntity?: boolean;
1982
+ /**
1983
+ * Array of conditional fields to include in the response.
1984
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
1985
+ * @maxSize 1
1986
+ */
1987
+ fields?: RequestedFieldsWithLiterals[];
1988
+ }
1989
+ /**
1990
+ * Creates participants in bulk for all site members in a program, with an optional exclusion filter.
1991
+ *
1992
+ * Participants are created in the `JOINED` state with the join path set to `ADDED`.
1993
+ * Members who are already participants in the program will be skipped.
1994
+ * Only members who are not yet participants will be added.
1995
+ * @param programId - ID of the program for which to create participants for all site members in bulk.
1996
+ * @public
1997
+ * @documentationMaturity preview
1998
+ * @requiredField programId
1999
+ * @permissionId online_programs:participants:v3:participant:bulk_create_participants_for_all_members
2000
+ * @applicableIdentity APP
2001
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.BulkCreateParticipantsForAllMembers
2002
+ */
2003
+ declare function bulkCreateParticipantsForAllMembers(programId: string, options?: BulkCreateParticipantsForAllMembersOptions): Promise<NonNullablePaths<BulkCreateParticipantsForAllMembersResponse, `jobId`, 2>>;
2004
+ interface BulkCreateParticipantsForAllMembersOptions {
2005
+ /**
2006
+ * Site member IDs to exclude from bulk participant creation. Maximum 100 member IDs can be excluded.
2007
+ * @format GUID
2008
+ * @maxSize 100
2009
+ */
2010
+ excludeMemberIds?: string[];
2011
+ }
2012
+ /**
2013
+ * Removes a participant from the program.
2014
+ *
2015
+ * The member will lose access to program content but will remain in any associated social groups.
2016
+ * @param participantId - ID of the participant to delete.
2017
+ * @public
2018
+ * @documentationMaturity preview
2019
+ * @requiredField participantId
2020
+ * @permissionId online_programs:participants:v3:participant:delete_participant
2021
+ * @applicableIdentity APP
2022
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.DeleteParticipant
2023
+ */
2024
+ declare function deleteParticipant(participantId: string): Promise<void>;
2025
+ /**
2026
+ * Issues a certificate to a participant who has completed the program.
2027
+ * @param participantId - ID of the participant to issue the certificate to.
2028
+ * @public
2029
+ * @documentationMaturity preview
2030
+ * @requiredField participantId
2031
+ * @permissionId online_programs:participants:v3:participant:issue_certificate
2032
+ * @applicableIdentity APP
2033
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.IssueCertificate
2034
+ */
2035
+ 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> & {
2036
+ __applicationErrorsType?: IssueCertificateApplicationErrors;
2037
+ }>;
2038
+ interface IssueCertificateOptions {
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
+ * Retrieves premium plan statistics for the site.
2048
+ * @public
2049
+ * @documentationMaturity preview
2050
+ * @permissionId online_programs:participants:v3:participant:get_premium_stats
2051
+ * @applicableIdentity APP
2052
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.GetPremiumStats
2053
+ */
2054
+ declare function getPremiumStats(): Promise<NonNullablePaths<GetPremiumStatsResponse, `premiumEnabled` | `activeParticipantsCount` | `activeParticipantsLimit`, 2>>;
2055
+ /**
2056
+ * Returns a participant by ID.
2057
+ * @param participantId - ID of the participant to fetch.
2058
+ * @public
2059
+ * @documentationMaturity preview
2060
+ * @requiredField participantId
2061
+ * @permissionId online_programs:participants:v3:participant:get_participant
2062
+ * @applicableIdentity APP
2063
+ * @returns The retrieved participant.
2064
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.GetParticipant
2065
+ */
2066
+ 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>>;
2067
+ interface GetParticipantOptions {
2068
+ /**
2069
+ * Array of conditional fields to include in the response.
2070
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
2071
+ * @maxSize 1
2072
+ */
2073
+ fields?: RequestedFieldsWithLiterals[];
2074
+ }
2075
+ /**
2076
+ * Queries existing participants.
2077
+ * @public
2078
+ * @documentationMaturity preview
2079
+ * @permissionId online_programs:participants:v3:participant:query_participants
2080
+ * @applicableIdentity APP
2081
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants
2082
+ */
2083
+ declare function queryParticipants(options?: QueryParticipantsOptions): ParticipantsQueryBuilder;
2084
+ interface QueryParticipantsOptions {
2085
+ /**
2086
+ * Array of conditional fields to include in the response.
2087
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
2088
+ * @maxSize 1
2089
+ */
2090
+ fields?: RequestedFieldsWithLiterals[] | undefined;
2091
+ }
2092
+ interface QueryCursorResult {
2093
+ cursors: Cursors;
2094
+ hasNext: () => boolean;
2095
+ hasPrev: () => boolean;
2096
+ length: number;
2097
+ pageSize: number;
2098
+ }
2099
+ interface ParticipantsQueryResult extends QueryCursorResult {
2100
+ items: Participant[];
2101
+ query: ParticipantsQueryBuilder;
2102
+ next: () => Promise<ParticipantsQueryResult>;
2103
+ prev: () => Promise<ParticipantsQueryResult>;
2104
+ }
2105
+ interface ParticipantsQueryBuilder {
2106
+ /** @param propertyName - Property whose value is compared with `value`.
2107
+ * @param value - Value to compare against.
2108
+ * @documentationMaturity preview
2109
+ */
2110
+ eq: (propertyName: '_id' | '_createdDate' | 'memberId' | 'programId' | 'progress.totalStepsCompleted' | 'lastActivityDate' | 'enrollmentStatus' | 'progressStatus', value: any) => ParticipantsQueryBuilder;
2111
+ /** @param propertyName - Property whose value is compared with `value`.
2112
+ * @param value - Value to compare against.
2113
+ * @documentationMaturity preview
2114
+ */
2115
+ ne: (propertyName: '_createdDate' | 'progress.totalStepsCompleted' | 'lastActivityDate', value: any) => ParticipantsQueryBuilder;
2116
+ /** @param propertyName - Property whose value is compared with `value`.
2117
+ * @param value - Value to compare against.
2118
+ * @documentationMaturity preview
2119
+ */
2120
+ ge: (propertyName: '_createdDate' | 'progress.totalStepsCompleted' | 'lastActivityDate' | 'enrollmentInfo.startDate', value: any) => ParticipantsQueryBuilder;
2121
+ /** @param propertyName - Property whose value is compared with `value`.
2122
+ * @param value - Value to compare against.
2123
+ * @documentationMaturity preview
2124
+ */
2125
+ gt: (propertyName: '_createdDate' | 'progress.totalStepsCompleted' | 'lastActivityDate' | 'enrollmentInfo.startDate', value: any) => ParticipantsQueryBuilder;
2126
+ /** @param propertyName - Property whose value is compared with `value`.
2127
+ * @param value - Value to compare against.
2128
+ * @documentationMaturity preview
2129
+ */
2130
+ le: (propertyName: '_createdDate' | 'progress.totalStepsCompleted' | 'lastActivityDate' | 'enrollmentInfo.startDate', value: any) => ParticipantsQueryBuilder;
2131
+ /** @param propertyName - Property whose value is compared with `value`.
2132
+ * @param value - Value to compare against.
2133
+ * @documentationMaturity preview
2134
+ */
2135
+ lt: (propertyName: '_createdDate' | 'progress.totalStepsCompleted' | 'lastActivityDate' | 'enrollmentInfo.startDate', value: any) => ParticipantsQueryBuilder;
2136
+ /** @documentationMaturity preview */
2137
+ in: (propertyName: '_id' | '_createdDate' | 'memberId' | 'progress.totalStepsCompleted' | 'lastActivityDate' | 'enrollmentStatus' | 'progressStatus', value: any) => ParticipantsQueryBuilder;
2138
+ /** @documentationMaturity preview */
2139
+ exists: (propertyName: '_createdDate' | 'progress.totalStepsCompleted' | 'lastActivityDate', value: boolean) => ParticipantsQueryBuilder;
2140
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
2141
+ * @documentationMaturity preview
2142
+ */
2143
+ ascending: (...propertyNames: Array<'_id' | '_createdDate' | 'progress.totalStepsCompleted' | 'lastActivityDate' | 'enrollmentStatus' | 'progressStatus' | 'enrollmentInfo.startDate'>) => ParticipantsQueryBuilder;
2144
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
2145
+ * @documentationMaturity preview
2146
+ */
2147
+ descending: (...propertyNames: Array<'_id' | '_createdDate' | 'progress.totalStepsCompleted' | 'lastActivityDate' | 'enrollmentStatus' | 'progressStatus' | 'enrollmentInfo.startDate'>) => ParticipantsQueryBuilder;
2148
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
2149
+ * @documentationMaturity preview
2150
+ */
2151
+ limit: (limit: number) => ParticipantsQueryBuilder;
2152
+ /** @param cursor - A pointer to specific record
2153
+ * @documentationMaturity preview
2154
+ */
2155
+ skipTo: (cursor: string) => ParticipantsQueryBuilder;
2156
+ /** @documentationMaturity preview */
2157
+ find: () => Promise<ParticipantsQueryResult>;
2158
+ }
2159
+ /**
2160
+ * @hidden
2161
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants
2162
+ * @requiredField query
2163
+ */
2164
+ 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>>;
2165
+ interface ParticipantQuerySpec extends QuerySpec {
2166
+ paging: 'cursor';
2167
+ wql: [
2168
+ {
2169
+ fields: ['_id'];
2170
+ operators: ['$eq', '$in'];
2171
+ sort: 'BOTH';
2172
+ },
2173
+ {
2174
+ fields: ['enrollmentStatus', 'progressStatus'];
2175
+ operators: ['$eq', '$in'];
2176
+ sort: 'BOTH';
2177
+ },
2178
+ {
2179
+ fields: ['memberId'];
2180
+ operators: ['$eq', '$in'];
2181
+ sort: 'NONE';
2182
+ },
2183
+ {
2184
+ fields: ['programId'];
2185
+ operators: ['$eq'];
2186
+ sort: 'NONE';
2187
+ },
2188
+ {
2189
+ fields: [
2190
+ '_createdDate',
2191
+ 'lastActivityDate',
2192
+ 'progress.totalStepsCompleted'
2193
+ ];
2194
+ operators: '*';
2195
+ sort: 'BOTH';
2196
+ },
2197
+ {
2198
+ fields: ['enrollmentInfo.startDate'];
2199
+ operators: ['$gt', '$gte', '$lt', '$lte'];
2200
+ sort: 'BOTH';
2201
+ }
2202
+ ];
2203
+ }
2204
+ type CommonQueryWithEntityContext = Query<Participant, ParticipantQuerySpec>;
2205
+ type ParticipantQuery = {
2206
+ /**
2207
+ 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`.
2208
+ */
2209
+ cursorPaging?: {
2210
+ /**
2211
+ Maximum number of items to return in the results.
2212
+ @max: 100
2213
+ */
2214
+ limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
2215
+ /**
2216
+ Pointer to the next or previous page in the list of results.
2217
+
2218
+ Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
2219
+ Not relevant for the first request.
2220
+ @maxLength: 16000
2221
+ */
2222
+ cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
2223
+ };
2224
+ /**
2225
+ Filter object.
2226
+
2227
+ Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
2228
+ */
2229
+ filter?: CommonQueryWithEntityContext['filter'] | null;
2230
+ /**
2231
+ Sort object.
2232
+
2233
+ Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
2234
+ @maxSize: 100
2235
+ */
2236
+ sort?: {
2237
+ /**
2238
+ Name of the field to sort by.
2239
+ @maxLength: 512
2240
+ */
2241
+ fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
2242
+ /**
2243
+ Sort order.
2244
+ */
2245
+ order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
2246
+ }[];
2247
+ };
2248
+ declare const utils: {
2249
+ query: _wix_sdk_types.QueryHelpers<Participant, ParticipantQuerySpec, ParticipantQuery>;
2250
+ search: _wix_sdk_types.SearchHelpers<Participant, ParticipantSearchSpec, ParticipantSearch>;
2251
+ };
2252
+ /**
2253
+ * Retrieves the access status for the current site, indicating whether participants can access
2254
+ * online programs or if access is blocked due to plan limitations or other restrictions.
2255
+ * @public
2256
+ * @documentationMaturity preview
2257
+ * @permissionId online_programs:participants:v3:participant:get_access_status
2258
+ * @applicableIdentity APP
2259
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.GetAccessStatus
2260
+ */
2261
+ declare function getAccessStatus(): Promise<NonNullablePaths<GetAccessStatusResponse, `accessBlocked`, 2>>;
2262
+ /**
2263
+ * Updates tags for multiple Participants by IDs.
2264
+ *
2265
+ * Allows assigning and/or unassigning tags in a single operation.
2266
+ * At least one of assign_tags or unassign_tags must be provided.
2267
+ * @param participantIds - Participant IDs to update tags for (1-100 items)
2268
+ * @public
2269
+ * @documentationMaturity preview
2270
+ * @requiredField participantIds
2271
+ * @permissionId online_programs:participants:v3:participant:bulk_update_participant_tags
2272
+ * @applicableIdentity APP
2273
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTags
2274
+ */
2275
+ 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> & {
2276
+ __applicationErrorsType?: BulkUpdateParticipantTagsApplicationErrors;
2277
+ }>;
2278
+ interface BulkUpdateParticipantTagsOptions {
2279
+ /** Tags to assign to the Participants */
2280
+ assignTags?: Tags;
2281
+ /** Tags to unassign from the Participants */
2282
+ unassignTags?: Tags;
2283
+ }
2284
+ /**
2285
+ * Updates tags for Participants matching a filter.
2286
+ *
2287
+ * Allows assigning and/or unassigning tags for all Participants matching the filter.
2288
+ * Returns a job ID for tracking the async operation.
2289
+ * @param filter - WQL filter to select Participants
2290
+ * @public
2291
+ * @documentationMaturity preview
2292
+ * @requiredField filter
2293
+ * @permissionId online_programs:participants:v3:participant:bulk_update_participant_tags_by_filter
2294
+ * @applicableIdentity APP
2295
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTagsByFilter
2296
+ */
2297
+ declare function bulkUpdateParticipantTagsByFilter(filter: Record<string, any>, options?: BulkUpdateParticipantTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateParticipantTagsByFilterResponse, `jobId`, 2> & {
2298
+ __applicationErrorsType?: BulkUpdateParticipantTagsByFilterApplicationErrors;
2299
+ }>;
2300
+ interface BulkUpdateParticipantTagsByFilterOptions {
2301
+ /** Tags to assign to matching Participants */
2302
+ assignTags?: Tags;
2303
+ /** Tags to unassign from matching Participants */
2304
+ unassignTags?: Tags;
2305
+ }
2306
+ interface SearchParticipantsOptions {
2307
+ /**
2308
+ * Array of conditional fields to include in the response.
2309
+ * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
2310
+ * @maxSize 1
2311
+ */
2312
+ fields?: RequestedFieldsWithLiterals[];
2313
+ }
2314
+ interface ParticipantSearchSpec extends SearchSpec {
2315
+ searchable: [
2316
+ 'member.email',
2317
+ 'member.firstName',
2318
+ 'member.lastName',
2319
+ 'member.nickname'
2320
+ ];
2321
+ aggregatable: [
2322
+ '_createdDate',
2323
+ '_id',
2324
+ '_updatedDate',
2325
+ 'enrollmentInfo.startDate',
2326
+ 'enrollmentStatus',
2327
+ 'lastActivityDate',
2328
+ 'member.contactId',
2329
+ 'memberId',
2330
+ 'programId',
2331
+ 'progress.completionPercentage',
2332
+ 'progress.totalStepsCompleted',
2333
+ 'progressStatus'
2334
+ ];
2335
+ paging: 'cursor';
2336
+ wql: [
2337
+ {
2338
+ operators: '*';
2339
+ fields: [
2340
+ '_id',
2341
+ 'enrollmentInfo.startDate',
2342
+ 'member.contactId',
2343
+ 'member.email',
2344
+ 'member.firstName',
2345
+ 'member.lastName',
2346
+ 'member.nickname',
2347
+ 'memberId',
2348
+ 'programId',
2349
+ 'progress.completionPercentage',
2350
+ 'progress.totalStepsCompleted'
2351
+ ];
2352
+ sort: 'BOTH';
2353
+ },
2354
+ {
2355
+ operators: ['$eq', '$in', '$nin'];
2356
+ fields: ['enrollmentStatus', 'progressStatus'];
2357
+ sort: 'BOTH';
2358
+ },
2359
+ {
2360
+ operators: '*';
2361
+ fields: ['_createdDate', '_updatedDate', 'lastActivityDate'];
2362
+ sort: 'BOTH';
2363
+ }
2364
+ ];
2365
+ }
2366
+ type CommonSearchWithEntityContext = Search<Participant, ParticipantSearchSpec>;
2367
+ type ParticipantSearch = {
2368
+ /**
2369
+ Cursor paging options.
2370
+
2371
+ Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
2372
+ */
2373
+ cursorPaging?: {
2374
+ /**
2375
+ Maximum number of items to return in the results.
2376
+ @max: 100
2377
+ */
2378
+ limit?: NonNullable<CommonSearchWithEntityContext['cursorPaging']>['limit'] | null;
2379
+ /**
2380
+ Pointer to the next or previous page in the list of results.
2381
+
2382
+ Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
2383
+ Not relevant for the first request.
2384
+ @maxLength: 16000
2385
+ */
2386
+ cursor?: NonNullable<CommonSearchWithEntityContext['cursorPaging']>['cursor'] | null;
2387
+ };
2388
+ /**
2389
+ Filter object.
2390
+
2391
+ Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
2392
+ */
2393
+ filter?: CommonSearchWithEntityContext['filter'] | null;
2394
+ /**
2395
+ List of sort objects.
2396
+
2397
+ Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
2398
+ @maxSize: 10
2399
+ */
2400
+ sort?: {
2401
+ /**
2402
+ Name of the field to sort by.
2403
+ @maxLength: 512
2404
+ */
2405
+ fieldName?: NonNullable<CommonSearchWithEntityContext['sort']>[number]['fieldName'];
2406
+ /**
2407
+ Sort order.
2408
+ */
2409
+ order?: NonNullable<CommonSearchWithEntityContext['sort']>[number]['order'];
2410
+ }[];
2411
+ /**
2412
+ 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.
2413
+ @maxSize: 10
2414
+ */
2415
+ aggregations?: {
2416
+ /**
2417
+ 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.
2418
+ */
2419
+ value?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['value'];
2420
+ /**
2421
+ 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.
2422
+ */
2423
+ range?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['range'];
2424
+ /**
2425
+ 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`.
2426
+ */
2427
+ scalar?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['scalar'];
2428
+ /**
2429
+ 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.
2430
+ */
2431
+ dateHistogram?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['dateHistogram'];
2432
+ /**
2433
+ 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`.
2434
+ */
2435
+ nested?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['nested'];
2436
+ /**
2437
+ Aggregation name, returned in `aggregations.results.name`.
2438
+ @maxLength: 100
2439
+ */
2440
+ name?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['name'] | null;
2441
+ /**
2442
+ Type of aggregation to perform. Must align with the corresponding aggregation field.
2443
+ */
2444
+ type?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['type'];
2445
+ /**
2446
+ Field to aggregate by. Use dot notation to specify a JSON path. For example, `order.address.streetName`.
2447
+ @maxLength: 200
2448
+ */
2449
+ fieldPath?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['fieldPath'];
2450
+ /**
2451
+ Deprecated. Use `nested` instead.
2452
+ @deprecated: Deprecated. Use `nested` instead.,
2453
+ @replacedBy: kind.nested,
2454
+ @targetRemovalDate: 2024-03-30
2455
+ */
2456
+ groupBy?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['groupBy'];
2457
+ }[];
2458
+ /**
2459
+ Free text to match in searchable fields.
2460
+ */
2461
+ search?: {
2462
+ /**
2463
+ Search mode. Defines the search logic for combining multiple terms in the `expression`.
2464
+ */
2465
+ mode?: NonNullable<CommonSearchWithEntityContext['search']>['mode'];
2466
+ /**
2467
+ Search term or expression.
2468
+ @maxLength: 100
2469
+ */
2470
+ expression?: NonNullable<CommonSearchWithEntityContext['search']>['expression'] | null;
2471
+ /**
2472
+ 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`.
2473
+ @maxLength: 200,
2474
+ @maxSize: 20
2475
+ */
2476
+ fields?: NonNullable<CommonSearchWithEntityContext['search']>['fields'];
2477
+ /**
2478
+ 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.
2479
+ */
2480
+ fuzzy?: NonNullable<CommonSearchWithEntityContext['search']>['fuzzy'];
2481
+ };
2482
+ /**
2483
+ 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.
2484
+ Applies to all relevant filters and aggregations, unless overridden by providing timestamps including time zone. For example, "2023-12-20T10:52:34.795Z".
2485
+ @maxLength: 50
2486
+ */
2487
+ timeZone?: CommonSearchWithEntityContext['timeZone'] | null;
2488
+ };
2489
+ /**
2490
+ * Exports participant data and step completion statistics for a program as a CSV file.
2491
+ * The export includes participant details, progress, status, and completion dates for each step.
2492
+ *
2493
+ * This method initiates an asynchronous export. Subscribe to the `ParticipantExportsFinished`
2494
+ * event to receive the download URL when the export completes.
2495
+ * @param programId - program id to export data from
2496
+ * @internal
2497
+ * @documentationMaturity preview
2498
+ * @requiredField programId
2499
+ * @permissionId online_programs:participants:v3:participant:export_participants_stats
2500
+ * @fqn wix.onlineprograms.participants.v3.ParticipantExportsService.ExportParticipantsStats
2501
+ */
2502
+ declare function exportParticipantsStats(programId: string): Promise<void>;
2503
+
2504
+ 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, exportParticipantsStats as cy, 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 };