@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
@@ -1,6 +1,12 @@
1
- import { BulkInviteToProgramRequest as BulkInviteToProgramRequest$1, BulkInviteToProgramResponse as BulkInviteToProgramResponse$1, BulkInviteAllToProgramRequest as BulkInviteAllToProgramRequest$1, BulkInviteAllToProgramResponse as BulkInviteAllToProgramResponse$1, BulkAddToProgramRequest as BulkAddToProgramRequest$1, BulkAddToProgramResponse as BulkAddToProgramResponse$1, BulkApproveParticipantRequest as BulkApproveParticipantRequest$1, BulkApproveParticipantResponse as BulkApproveParticipantResponse$1, BulkApproveAllParticipantRequest as BulkApproveAllParticipantRequest$1, BulkApproveAllParticipantResponse as BulkApproveAllParticipantResponse$1 } from './index.typings.js';
1
+ import { am as CreateParticipantRequest$1, an as CreateParticipantResponse$1, ao as UpdateParticipantRequest$1, ap as UpdateParticipantResponse$1, aq as BulkCreateParticipantsRequest$1, c as BulkCreateParticipantsResponse$1, aF as BulkCreateParticipantsForAllMembersRequest$1, f as BulkCreateParticipantsForAllMembersResponse$1, aG as DeleteParticipantRequest$1, aH as DeleteParticipantResponse$1, aI as IssueCertificateRequest$1, g as IssueCertificateResponse$1, aL as GetPremiumStatsRequest$1, G as GetPremiumStatsResponse$1, aM as GetParticipantRequest$1, aN as GetParticipantResponse$1, aO as QueryParticipantsRequest$1, aU as QueryParticipantsResponse$1, aX as GetAccessStatusRequest$1, j as GetAccessStatusResponse$1, aY as BulkUpdateParticipantTagsRequest$1, l as BulkUpdateParticipantTagsResponse$1, a_ as BulkUpdateParticipantTagsByFilterRequest$1, o as BulkUpdateParticipantTagsByFilterResponse$1, a$ as SearchParticipantsRequest$1, r as SearchParticipantsResponse$1, bP as ExportParticipantsStatsRequest$1, bQ as ExportParticipantsStatsResponse$1 } from './online-programs-participants-v3-participant-participants.universal-B1sw-MEh.js';
2
2
  import '@wix/sdk-types';
3
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
+ */
4
10
  interface Participant {
5
11
  /**
6
12
  * Participant ID.
@@ -8,353 +14,1414 @@ interface Participant {
8
14
  * @readonly
9
15
  */
10
16
  id?: string | null;
11
- /** @readonly */
17
+ /**
18
+ * Participant revision (for optimistic concurrency control).
19
+ * @readonly
20
+ */
12
21
  revision?: string | null;
13
- /** @readonly */
22
+ /**
23
+ * Participant creation date.
24
+ * @readonly
25
+ */
14
26
  createdDate?: Date | null;
15
- /** @readonly */
27
+ /**
28
+ * Date the participant was last updated.
29
+ * @readonly
30
+ */
16
31
  updatedDate?: Date | null;
17
32
  /**
18
- * Member ID of participant on site
19
- * @format GUID
20
- * @readonly
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).
21
928
  */
22
- memberId?: string;
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;
23
942
  /**
24
- * Program ID which participant participates in
25
- * @format GUID
26
- * @readonly
943
+ * Aggregation name, returned in `aggregations.results.name`.
944
+ * @maxLength 100
27
945
  */
28
- programId?: string;
946
+ name?: string | null;
947
+ /** Type of aggregation to perform. Must align with the corresponding aggregation field. */
948
+ type?: AggregationTypeWithLiterals;
29
949
  /**
30
- * Program completion progress
31
- * @readonly
950
+ * Field to aggregate by. Use dot notation to specify a JSON path. For example, `order.address.streetName`.
951
+ * @maxLength 200
32
952
  */
33
- progress?: Progress;
34
- /** state of participation in the program */
35
- state?: StateWithLiterals;
953
+ fieldPath?: string;
36
954
  /**
37
- * Certificate issued to participant
38
- * @readonly
955
+ * Deprecated. Use `nested` instead.
956
+ * @deprecated Deprecated. Use `nested` instead.
957
+ * @replacedBy kind.nested
958
+ * @targetRemovalDate 2024-03-30
39
959
  */
40
- certificate?: Certificate;
41
- joinedInfo?: JoinedInfo;
42
- /** @readonly */
43
- member?: Member;
44
- /** @readonly */
45
- lastActivityDate?: Date | null;
46
- extendedFields?: ExtendedFields;
47
- }
48
- declare enum JoinPath {
49
- UNKNOWN_JOIN_PATH = "UNKNOWN_JOIN_PATH",
50
- /** Member joined to the program for free */
51
- FREE = "FREE",
52
- /** Member was added to the program by site owner */
53
- ADDED = "ADDED",
54
- /** Member paid once to join the program */
55
- SINGLE_PAYMENT = "SINGLE_PAYMENT",
56
- /** Member has Paid Plan to join */
57
- PAID_PLAN = "PAID_PLAN",
58
- /** Member joined with the Free Coupon */
59
- FREE_COUPON = "FREE_COUPON"
960
+ groupBy?: GroupByAggregation;
60
961
  }
61
- /** @enumType */
62
- type JoinPathWithLiterals = JoinPath | 'UNKNOWN_JOIN_PATH' | 'FREE' | 'ADDED' | 'SINGLE_PAYMENT' | 'PAID_PLAN' | 'FREE_COUPON';
63
- interface SinglePaymentDetails {
64
- /** @format GUID */
65
- paymentOrderId?: string;
66
- /** @format GUID */
67
- offlineTransactionId?: string | null;
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;
68
974
  }
69
- interface PaidPlanDetails {
70
- /** @format GUID */
71
- paidPlanId?: string;
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;
72
980
  }
73
- interface FreeCouponDetails {
74
- /** @format GUID */
75
- freeCouponId?: string;
981
+ declare enum SortType {
982
+ /** Number of matches in the results. */
983
+ COUNT = "COUNT",
984
+ /** Alphabetically by the field value. */
985
+ VALUE = "VALUE"
76
986
  }
77
- interface Progress {
78
- /** Number of program steps completed by member */
79
- totalStepsCompleted?: number;
80
- /** Total number of program steps available to resolve */
81
- totalStepsAvailable?: number;
82
- /**
83
- * Completion percentage
84
- * @max 100
85
- */
86
- completionPercentage?: number;
987
+ /** @enumType */
988
+ type SortTypeWithLiterals = SortType | 'COUNT' | 'VALUE';
989
+ declare enum SortDirection {
990
+ /** Descending order. */
991
+ DESC = "DESC",
992
+ /** Ascending order. */
993
+ ASC = "ASC"
87
994
  }
88
- declare enum State {
89
- /** Unknown state */
90
- UNKNOWN_STATE = "UNKNOWN_STATE",
91
- /** Member joined the program and became participant */
92
- JOINED = "JOINED",
93
- /** Participant completed the program, and could join again */
94
- COMPLETED = "COMPLETED",
95
- /** Participant failed to complete the program, and could join again */
96
- FAILED = "FAILED",
97
- /** Participant with ended pricing plan (PP), will be joined as renew PP */
98
- SUSPENDED = "SUSPENDED",
99
- /** Participant removed automatically after some program condition */
100
- AUTO_REMOVED = "AUTO_REMOVED",
101
- /** Participant removed by site owner */
102
- REMOVED = "REMOVED",
103
- /** Participant left the program by himself */
104
- LEFT = "LEFT"
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"
105
1002
  }
106
1003
  /** @enumType */
107
- type StateWithLiterals = State | 'UNKNOWN_STATE' | 'JOINED' | 'COMPLETED' | 'FAILED' | 'SUSPENDED' | 'AUTO_REMOVED' | 'REMOVED' | 'LEFT';
108
- interface Certificate {
1004
+ type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE';
1005
+ interface IncludeMissingValuesOptions {
109
1006
  /**
110
- * when certificate was issued, UTC
111
- * @readonly
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
112
1009
  */
113
- issuedDate?: Date | null;
1010
+ addToBucket?: string;
114
1011
  }
115
- interface JoinedInfo extends JoinedInfoJoinPathDetailsOneOf {
116
- singlePaymentDetails?: SinglePaymentDetails;
117
- paidPlanDetails?: PaidPlanDetails;
118
- freeCouponDetails?: FreeCouponDetails;
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",
119
1019
  /**
120
- * @maxLength 50
121
- * @readonly
1020
+ * Sum of values.
1021
+ * @internal
122
1022
  */
123
- timeZone?: string;
1023
+ SUM = "SUM",
124
1024
  /**
125
- * @format LOCAL_DATE
126
- * @readonly
1025
+ * Average of values.
1026
+ * @internal
127
1027
  */
128
- startDate?: string;
129
- joinPath?: JoinPathWithLiterals;
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;
130
1039
  /**
131
- * @format LOCAL_DATE
132
- * @readonly
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`.
133
1049
  */
134
- finishDate?: string | null;
1050
+ missingValues?: MissingValuesWithLiterals;
135
1051
  }
136
1052
  /** @oneof */
137
- interface JoinedInfoJoinPathDetailsOneOf {
138
- singlePaymentDetails?: SinglePaymentDetails;
139
- paidPlanDetails?: PaidPlanDetails;
140
- freeCouponDetails?: FreeCouponDetails;
1053
+ interface ValueAggregationOptionsOneOf {
1054
+ /** Options for including missing values in results. */
1055
+ includeOptions?: IncludeMissingValuesOptions;
141
1056
  }
142
- interface Member {
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 {
143
1070
  /**
144
- * @readonly
145
- * @maxLength 100
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
146
1073
  */
147
- firstName?: string | null;
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;
148
1104
  /**
149
- * @readonly
1105
+ * Unique, caller-defined aggregation name, returned in `aggregations.results`.
150
1106
  * @maxLength 100
151
1107
  */
152
- lastName?: string | null;
153
- /**
154
- * @readonly
155
- * @format EMAIL
156
- */
157
- email?: string | null;
158
- /** @format GUID */
159
- contactId?: string;
1108
+ name?: string | null;
1109
+ /** Type of aggregation to perform. The matching aggregation field must be passed. */
1110
+ type?: NestedAggregationTypeWithLiterals;
160
1111
  /**
161
- * @readonly
162
- * @format WEB_URL
1112
+ * Field to aggregate by. Use dot notation to specify a JSON path. For example, `order.address.streetName`.
1113
+ * @maxLength 200
163
1114
  */
164
- profileImageUrl?: string | null;
1115
+ fieldPath?: string;
165
1116
  }
166
- interface ExtendedFields {
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 {
167
1144
  /**
168
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
169
- * The value of each key is structured according to the schema defined when the extended fields were configured.
170
- *
171
- * You can only access fields for which you have the appropriate permissions.
172
- *
173
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
1145
+ * Flattened list of aggregations, where each aggregation is nested within previous one.
1146
+ * @minSize 2
1147
+ * @maxSize 3
174
1148
  */
175
- namespaces?: Record<string, Record<string, any>>;
1149
+ nestedAggregations?: NestedAggregationItem[];
176
1150
  }
177
- interface ParticipantAdded {
1151
+ interface GroupByAggregation extends GroupByAggregationKindOneOf {
1152
+ /** Value aggregation configuration. */
1153
+ value?: ValueAggregation;
178
1154
  /**
179
- * Program ID which participant was added
180
- * @format GUID
1155
+ * Unique, caller-defined aggregation name, returned in `aggregations.results`.
1156
+ * @maxLength 100
181
1157
  */
182
- programId?: string;
1158
+ name?: string | null;
183
1159
  /**
184
- * Member ID of participant on site
185
- * @format GUID
1160
+ * Field to aggregate by.
1161
+ * @maxLength 200
186
1162
  */
187
- memberId?: string;
1163
+ fieldPath?: string;
1164
+ }
1165
+ /** @oneof */
1166
+ interface GroupByAggregationKindOneOf {
1167
+ /** Value aggregation configuration. */
1168
+ value?: ValueAggregation;
188
1169
  }
189
- interface BulkInviteToProgramRequest {
1170
+ interface SearchDetails {
1171
+ /** Search mode. Defines the search logic for combining multiple terms in the `expression`. */
1172
+ mode?: ModeWithLiterals;
190
1173
  /**
191
- * Program to which bulk invite participants.
192
- * @format GUID
1174
+ * Search term or expression.
1175
+ * @maxLength 100
193
1176
  */
194
- programId: string;
1177
+ expression?: string | null;
195
1178
  /**
196
- * Return added participants in the response or not.
197
- * @format GUID
198
- * @minSize 1
199
- * @maxSize 100
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
200
1182
  */
201
- memberIds?: string[];
202
- /** Return invited participants in the response or not. */
203
- returnEntity?: boolean;
204
- }
205
- interface BulkInviteToProgramResponse {
206
- /** Participants created by bulk action */
207
- results?: BulkInviteToProgramResult[];
208
- /** Bulk action metadata. */
209
- bulkActionMetadata?: BulkActionMetadata;
210
- }
211
- interface ItemMetadata {
212
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
213
- id?: string | null;
214
- /** Index of the item within the request array. Allows for correlation between request and response items. */
215
- originalIndex?: number;
216
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
217
- success?: boolean;
218
- /** Details about the error in case of failure. */
219
- error?: ApplicationError;
220
- }
221
- interface ApplicationError {
222
- /** Error code. */
223
- code?: string;
224
- /** Description of the error. */
225
- description?: string;
226
- /** Data related to the error. */
227
- data?: Record<string, any> | null;
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;
228
1186
  }
229
- interface BulkInviteToProgramResult {
230
- /** Invited participant metadata. */
231
- itemMetadata?: ItemMetadata;
232
- /** Invited participant */
233
- item?: Participant;
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"
234
1192
  }
235
- interface BulkActionMetadata {
236
- /** Number of items that were successfully processed. */
237
- totalSuccesses?: number;
238
- /** Number of items that couldn't be processed. */
239
- totalFailures?: number;
240
- /** Number of failures without details because detailed failure threshold was exceeded. */
241
- undetailedFailures?: number;
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;
242
1202
  }
243
- interface ParticipantInvited {
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;
244
1208
  /**
245
- * Program to which bulk invite participants.
246
- * @format GUID
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.
247
1213
  */
248
- programId?: string;
1214
+ hasNext?: boolean | null;
249
1215
  /**
250
- * Invited member to program
251
- * @format GUID
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
252
1220
  */
253
- memberId?: string;
1221
+ total?: number | null;
254
1222
  }
255
- interface BulkInviteAllToProgramRequest {
1223
+ interface AggregationData {
256
1224
  /**
257
- * Program to which bulk add participants.
258
- * @format GUID
1225
+ * key = aggregation name (as derived from search request).
1226
+ * @maxSize 10000
259
1227
  */
260
- programId: string;
1228
+ results?: AggregationResults[];
1229
+ }
1230
+ interface ValueAggregationResult {
261
1231
  /**
262
- * Exclude site members.
263
- * @format GUID
264
- * @maxSize 100
1232
+ * Value of the field.
1233
+ * @maxLength 100
265
1234
  */
266
- excludeMemberIds?: string[];
1235
+ value?: string;
1236
+ /** Count of entities with this value. */
1237
+ count?: number;
267
1238
  }
268
- interface BulkInviteAllToProgramResponse {
269
- /** Bulk action metadata. */
270
- bulkActionMetadata?: BulkActionMetadata;
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;
271
1246
  }
272
- interface BulkAddToProgramRequest {
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;
273
1254
  /**
274
- * Program to which bulk add participants.
275
- * @format GUID
1255
+ * User-defined name of aggregation, matches the one provided in request.
1256
+ * @maxLength 100
276
1257
  */
277
- programId: string;
1258
+ name?: string;
1259
+ /** Type of aggregation that matches result. */
1260
+ type?: AggregationTypeWithLiterals;
278
1261
  /**
279
- * Site members.
280
- * @format GUID
281
- * @minSize 1
282
- * @maxSize 1000
1262
+ * Field to aggregate by, matches the one provided in request.
1263
+ * @maxLength 200
283
1264
  */
284
- memberIds?: string[];
285
- /** Return added participants in the response or not. */
286
- returnEntity?: boolean;
1265
+ fieldPath?: string;
287
1266
  }
288
- interface BulkAddToProgramResponse {
289
- /** Participants created by bulk action */
290
- results?: BulkAddToProgramResult[];
291
- /** Bulk action metadata. */
292
- bulkActionMetadata?: BulkActionMetadata;
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;
293
1275
  }
294
- interface BulkAddToProgramResult {
295
- /** Added participant metadata. */
296
- itemMetadata?: ItemMetadata;
297
- /** Added participant */
298
- item?: Participant;
1276
+ interface ValueResults {
1277
+ /**
1278
+ * List of value aggregations.
1279
+ * @maxSize 250
1280
+ */
1281
+ results?: ValueAggregationResult[];
299
1282
  }
300
- interface BulkApproveParticipantRequest {
1283
+ interface RangeResults {
301
1284
  /**
302
- * Participants to add
303
- * @format GUID
304
- * @maxSize 100
1285
+ * List of ranges returned in same order as requested.
1286
+ * @maxSize 50
305
1287
  */
306
- participantIds: string[];
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 {
307
1297
  /**
308
- * program to approve participant
309
- * @format GUID
1298
+ * Value of the field.
1299
+ * @maxLength 1000
310
1300
  */
311
- programId?: string;
312
- /** Return approved participants in the response or not */
313
- returnEntity?: boolean;
1301
+ value?: string;
1302
+ /** Nested aggregations. */
1303
+ nestedResults?: NestedAggregationResults;
314
1304
  }
315
- interface BulkApproveParticipantResponse {
316
- /** Participants approved by bulk action */
317
- results?: BulkApproveParticipantResult[];
318
- /** Bulk action metadata */
319
- bulkActionMetadata?: BulkActionMetadata;
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;
320
1313
  }
321
- interface BulkApproveParticipantResult {
322
- /** Approved participant metadata */
323
- itemMetadata?: ItemMetadata;
324
- /** Approved or existing participant */
325
- item?: Participant;
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;
326
1321
  }
327
- interface ParticipantApproved {
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 {
328
1352
  /**
329
- * Program ID which participant approved
330
- * @format GUID
1353
+ * Date in ISO 8601 format.
1354
+ * @maxLength 100
331
1355
  */
332
- programId?: string;
1356
+ value?: string;
1357
+ /** Count of documents in the bucket. */
1358
+ count?: number;
1359
+ }
1360
+ interface GroupByValueResults {
333
1361
  /**
334
- * Member ID of participant approved
335
- * @format GUID
1362
+ * List of value aggregations.
1363
+ * @maxSize 1000
336
1364
  */
337
- memberId?: string;
1365
+ results?: NestedValueAggregationResult[];
338
1366
  }
339
- interface BulkApproveAllParticipantRequest {
1367
+ interface DateHistogramResults {
340
1368
  /**
341
- * Program to approve all participants.
342
- * @format GUID
1369
+ * List of date histogram aggregations.
1370
+ * @maxSize 200
343
1371
  */
344
- programId?: string;
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 {
345
1379
  /**
346
- * Exclude site members.
347
- * @format GUID
348
- * @maxSize 100
1380
+ * List of nested aggregations.
1381
+ * @maxSize 1000
349
1382
  */
350
- excludeParticipantIds?: string[];
1383
+ results?: Results[];
351
1384
  }
352
- interface BulkApproveAllParticipantResponse {
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;
353
1398
  /**
354
- * Job id with async process
355
- * @format GUID
1399
+ * User-defined name of aggregation as derived from search request.
1400
+ * @maxLength 100
356
1401
  */
357
- jobId?: string;
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;
358
1425
  }
359
1426
  interface DomainEvent extends DomainEventBodyOneOf {
360
1427
  createdEvent?: EntityCreatedEvent;
@@ -385,7 +1452,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
385
1452
  /** If present, indicates the action that triggered the event. */
386
1453
  originatedFrom?: string | null;
387
1454
  /**
388
- * 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.
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.
389
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.
390
1457
  */
391
1458
  entityEventSequence?: string | null;
@@ -399,8 +1466,18 @@ interface DomainEventBodyOneOf {
399
1466
  }
400
1467
  interface EntityCreatedEvent {
401
1468
  entityAsJson?: string;
1469
+ /**
1470
+ * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
1471
+ * @internal
1472
+ */
1473
+ triggeredByUndelete?: boolean | null;
402
1474
  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
403
1475
  restoreInfo?: RestoreInfo;
1476
+ /**
1477
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
1478
+ * @internal
1479
+ */
1480
+ additionalMetadataAsJson?: string | null;
404
1481
  }
405
1482
  interface RestoreInfo {
406
1483
  deletedDate?: Date | null;
@@ -412,14 +1489,48 @@ interface EntityUpdatedEvent {
412
1489
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
413
1490
  */
414
1491
  currentEntityAsJson?: string;
1492
+ /**
1493
+ * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
1494
+ * wont populate it / have any reference to it in the API.
1495
+ * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
1496
+ * the developer should send only the new (current) entity.
1497
+ * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
1498
+ * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
1499
+ * @internal
1500
+ * @deprecated
1501
+ */
1502
+ previousEntityAsJson?: string | null;
1503
+ /**
1504
+ * Map of fully qualified field paths to their previous values for fields that changed.
1505
+ * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
1506
+ * @internal
1507
+ */
1508
+ modifiedFields?: Record<string, any>;
1509
+ /**
1510
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
1511
+ * @internal
1512
+ */
1513
+ additionalMetadataAsJson?: string | null;
415
1514
  }
416
1515
  interface EntityDeletedEvent {
1516
+ /**
1517
+ * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
1518
+ * @internal
1519
+ */
1520
+ movedToTrash?: boolean | null;
417
1521
  /** Entity that was deleted. */
418
1522
  deletedEntityAsJson?: string | null;
1523
+ /**
1524
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
1525
+ * @internal
1526
+ */
1527
+ additionalMetadataAsJson?: string | null;
419
1528
  }
420
1529
  interface ActionEvent {
421
1530
  bodyAsJson?: string;
422
1531
  }
1532
+ interface Empty {
1533
+ }
423
1534
  interface MessageEnvelope {
424
1535
  /**
425
1536
  * App instance ID.
@@ -435,6 +1546,8 @@ interface MessageEnvelope {
435
1546
  identity?: IdentificationData;
436
1547
  /** Stringify payload. */
437
1548
  data?: string;
1549
+ /** Details related to the account */
1550
+ accountInfo?: AccountInfo;
438
1551
  }
439
1552
  interface IdentificationData extends IdentificationDataIdOneOf {
440
1553
  /**
@@ -492,6 +1605,82 @@ declare enum WebhookIdentityType {
492
1605
  }
493
1606
  /** @enumType */
494
1607
  type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1608
+ interface AccountInfo {
1609
+ /**
1610
+ * ID of the Wix account associated with the event.
1611
+ * @format GUID
1612
+ */
1613
+ accountId?: string | null;
1614
+ /**
1615
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
1616
+ * @format GUID
1617
+ */
1618
+ parentAccountId?: string | null;
1619
+ /**
1620
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
1621
+ * @format GUID
1622
+ */
1623
+ siteId?: string | null;
1624
+ }
1625
+ interface ExportParticipantsStatsRequest {
1626
+ /**
1627
+ * program id to export data from
1628
+ * @format GUID
1629
+ */
1630
+ programId: string;
1631
+ }
1632
+ interface ExportParticipantsStatsResponse {
1633
+ }
1634
+ /** @docsIgnore */
1635
+ type CreateParticipantApplicationErrors = {
1636
+ code?: 'PREMIUM_PLAN_REQUIRED';
1637
+ description?: string;
1638
+ data?: Record<string, any>;
1639
+ } | {
1640
+ code?: 'PARTICIPANTS_LIMIT_EXCEEDED';
1641
+ description?: string;
1642
+ data?: Record<string, any>;
1643
+ };
1644
+ /** @docsIgnore */
1645
+ type BulkCreateParticipantsApplicationErrors = {
1646
+ code?: 'MULTIPLE_PROGRAM_IDS_IN_BULK_CREATE';
1647
+ description?: string;
1648
+ data?: Record<string, any>;
1649
+ } | {
1650
+ code?: 'PREMIUM_PLAN_REQUIRED';
1651
+ description?: string;
1652
+ data?: Record<string, any>;
1653
+ } | {
1654
+ code?: 'PARTICIPANTS_LIMIT_EXCEEDED';
1655
+ description?: string;
1656
+ data?: Record<string, any>;
1657
+ };
1658
+ /** @docsIgnore */
1659
+ type IssueCertificateApplicationErrors = {
1660
+ code?: 'PARTICIPANT_NOT_ACTIVE';
1661
+ description?: string;
1662
+ data?: Record<string, any>;
1663
+ } | {
1664
+ code?: 'NO_CERTIFICATE_REWARD';
1665
+ description?: string;
1666
+ data?: Record<string, any>;
1667
+ } | {
1668
+ code?: 'PARTICIPANT_NOT_COMPLETED_PROGRAM';
1669
+ description?: string;
1670
+ data?: Record<string, any>;
1671
+ };
1672
+ /** @docsIgnore */
1673
+ type BulkUpdateParticipantTagsApplicationErrors = {
1674
+ code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
1675
+ description?: string;
1676
+ data?: Record<string, any>;
1677
+ };
1678
+ /** @docsIgnore */
1679
+ type BulkUpdateParticipantTagsByFilterApplicationErrors = {
1680
+ code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
1681
+ description?: string;
1682
+ data?: Record<string, any>;
1683
+ };
495
1684
 
496
1685
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
497
1686
  getUrl: (context: any) => string;
@@ -503,10 +1692,29 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
503
1692
  __responseType: Q;
504
1693
  __originalResponseType: R;
505
1694
  };
506
- declare function bulkInviteToProgram(): __PublicMethodMetaInfo<'POST', {}, BulkInviteToProgramRequest$1, BulkInviteToProgramRequest, BulkInviteToProgramResponse$1, BulkInviteToProgramResponse>;
507
- declare function bulkInviteAllToProgram(): __PublicMethodMetaInfo<'POST', {}, BulkInviteAllToProgramRequest$1, BulkInviteAllToProgramRequest, BulkInviteAllToProgramResponse$1, BulkInviteAllToProgramResponse>;
508
- declare function bulkAddToProgram(): __PublicMethodMetaInfo<'POST', {}, BulkAddToProgramRequest$1, BulkAddToProgramRequest, BulkAddToProgramResponse$1, BulkAddToProgramResponse>;
509
- declare function bulkApproveParticipant(): __PublicMethodMetaInfo<'POST', {}, BulkApproveParticipantRequest$1, BulkApproveParticipantRequest, BulkApproveParticipantResponse$1, BulkApproveParticipantResponse>;
510
- declare function bulkApproveAllParticipant(): __PublicMethodMetaInfo<'POST', {}, BulkApproveAllParticipantRequest$1, BulkApproveAllParticipantRequest, BulkApproveAllParticipantResponse$1, BulkApproveAllParticipantResponse>;
1695
+ declare function createParticipant(): __PublicMethodMetaInfo<'POST', {}, CreateParticipantRequest$1, CreateParticipantRequest, CreateParticipantResponse$1, CreateParticipantResponse>;
1696
+ declare function updateParticipant(): __PublicMethodMetaInfo<'PATCH', {
1697
+ participantId: string;
1698
+ }, UpdateParticipantRequest$1, UpdateParticipantRequest, UpdateParticipantResponse$1, UpdateParticipantResponse>;
1699
+ declare function bulkCreateParticipants(): __PublicMethodMetaInfo<'POST', {}, BulkCreateParticipantsRequest$1, BulkCreateParticipantsRequest, BulkCreateParticipantsResponse$1, BulkCreateParticipantsResponse>;
1700
+ declare function bulkCreateParticipantsForAllMembers(): __PublicMethodMetaInfo<'POST', {}, BulkCreateParticipantsForAllMembersRequest$1, BulkCreateParticipantsForAllMembersRequest, BulkCreateParticipantsForAllMembersResponse$1, BulkCreateParticipantsForAllMembersResponse>;
1701
+ declare function deleteParticipant(): __PublicMethodMetaInfo<'DELETE', {
1702
+ participantId: string;
1703
+ }, DeleteParticipantRequest$1, DeleteParticipantRequest, DeleteParticipantResponse$1, DeleteParticipantResponse>;
1704
+ declare function issueCertificate(): __PublicMethodMetaInfo<'POST', {
1705
+ participantId: string;
1706
+ }, IssueCertificateRequest$1, IssueCertificateRequest, IssueCertificateResponse$1, IssueCertificateResponse>;
1707
+ declare function getPremiumStats(): __PublicMethodMetaInfo<'GET', {}, GetPremiumStatsRequest$1, GetPremiumStatsRequest, GetPremiumStatsResponse$1, GetPremiumStatsResponse>;
1708
+ declare function getParticipant(): __PublicMethodMetaInfo<'GET', {
1709
+ participantId: string;
1710
+ }, GetParticipantRequest$1, GetParticipantRequest, GetParticipantResponse$1, GetParticipantResponse>;
1711
+ declare function queryParticipants(): __PublicMethodMetaInfo<'POST', {}, QueryParticipantsRequest$1, QueryParticipantsRequest, QueryParticipantsResponse$1, QueryParticipantsResponse>;
1712
+ declare function getAccessStatus(): __PublicMethodMetaInfo<'GET', {}, GetAccessStatusRequest$1, GetAccessStatusRequest, GetAccessStatusResponse$1, GetAccessStatusResponse>;
1713
+ declare function bulkUpdateParticipantTags(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateParticipantTagsRequest$1, BulkUpdateParticipantTagsRequest, BulkUpdateParticipantTagsResponse$1, BulkUpdateParticipantTagsResponse>;
1714
+ declare function bulkUpdateParticipantTagsByFilter(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateParticipantTagsByFilterRequest$1, BulkUpdateParticipantTagsByFilterRequest, BulkUpdateParticipantTagsByFilterResponse$1, BulkUpdateParticipantTagsByFilterResponse>;
1715
+ declare function searchParticipants(): __PublicMethodMetaInfo<'POST', {}, SearchParticipantsRequest$1, SearchParticipantsRequest, SearchParticipantsResponse$1, SearchParticipantsResponse>;
1716
+ declare function exportParticipantsStats(): __PublicMethodMetaInfo<'GET', {
1717
+ programId: string;
1718
+ }, ExportParticipantsStatsRequest$1, ExportParticipantsStatsRequest, ExportParticipantsStatsResponse$1, ExportParticipantsStatsResponse>;
511
1719
 
512
- export { type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkAddToProgramRequest as BulkAddToProgramRequestOriginal, type BulkAddToProgramResponse as BulkAddToProgramResponseOriginal, type BulkAddToProgramResult as BulkAddToProgramResultOriginal, type BulkApproveAllParticipantRequest as BulkApproveAllParticipantRequestOriginal, type BulkApproveAllParticipantResponse as BulkApproveAllParticipantResponseOriginal, type BulkApproveParticipantRequest as BulkApproveParticipantRequestOriginal, type BulkApproveParticipantResponse as BulkApproveParticipantResponseOriginal, type BulkApproveParticipantResult as BulkApproveParticipantResultOriginal, type BulkInviteAllToProgramRequest as BulkInviteAllToProgramRequestOriginal, type BulkInviteAllToProgramResponse as BulkInviteAllToProgramResponseOriginal, type BulkInviteToProgramRequest as BulkInviteToProgramRequestOriginal, type BulkInviteToProgramResponse as BulkInviteToProgramResponseOriginal, type BulkInviteToProgramResult as BulkInviteToProgramResultOriginal, type Certificate as CertificateOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FreeCouponDetails as FreeCouponDetailsOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemMetadata as ItemMetadataOriginal, JoinPath as JoinPathOriginal, type JoinPathWithLiterals as JoinPathWithLiteralsOriginal, type JoinedInfoJoinPathDetailsOneOf as JoinedInfoJoinPathDetailsOneOfOriginal, type JoinedInfo as JoinedInfoOriginal, type Member as MemberOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type PaidPlanDetails as PaidPlanDetailsOriginal, type ParticipantAdded as ParticipantAddedOriginal, type ParticipantApproved as ParticipantApprovedOriginal, type ParticipantInvited as ParticipantInvitedOriginal, type Participant as ParticipantOriginal, type Progress as ProgressOriginal, type RestoreInfo as RestoreInfoOriginal, type SinglePaymentDetails as SinglePaymentDetailsOriginal, State as StateOriginal, type StateWithLiterals as StateWithLiteralsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkAddToProgram, bulkApproveAllParticipant, bulkApproveParticipant, bulkInviteAllToProgram, bulkInviteToProgram };
1720
+ export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AggregationData as AggregationDataOriginal, type AggregationKindOneOf as AggregationKindOneOfOriginal, type Aggregation as AggregationOriginal, type AggregationResults as AggregationResultsOriginal, type AggregationResultsResultOneOf as AggregationResultsResultOneOfOriginal, type AggregationResultsScalarResult as AggregationResultsScalarResultOriginal, AggregationType as AggregationTypeOriginal, type AggregationTypeWithLiterals as AggregationTypeWithLiteralsOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, BulkActionType as BulkActionTypeOriginal, type BulkActionTypeWithLiterals as BulkActionTypeWithLiteralsOriginal, type BulkCreateParticipantsApplicationErrors as BulkCreateParticipantsApplicationErrorsOriginal, type BulkCreateParticipantsForAllMembersRequest as BulkCreateParticipantsForAllMembersRequestOriginal, type BulkCreateParticipantsForAllMembersResponse as BulkCreateParticipantsForAllMembersResponseOriginal, type BulkCreateParticipantsRequest as BulkCreateParticipantsRequestOriginal, type BulkCreateParticipantsResponse as BulkCreateParticipantsResponseOriginal, type BulkParticipantMigrationResult as BulkParticipantMigrationResultOriginal, type BulkParticipantResult as BulkParticipantResultOriginal, type BulkUpdateParticipantTagsApplicationErrors as BulkUpdateParticipantTagsApplicationErrorsOriginal, type BulkUpdateParticipantTagsByFilterApplicationErrors as BulkUpdateParticipantTagsByFilterApplicationErrorsOriginal, type BulkUpdateParticipantTagsByFilterRequest as BulkUpdateParticipantTagsByFilterRequestOriginal, type BulkUpdateParticipantTagsByFilterResponse as BulkUpdateParticipantTagsByFilterResponseOriginal, type BulkUpdateParticipantTagsRequest as BulkUpdateParticipantTagsRequestOriginal, type BulkUpdateParticipantTagsResponse as BulkUpdateParticipantTagsResponseOriginal, type BulkUpdateParticipantTagsResult as BulkUpdateParticipantTagsResultOriginal, type BulkUpsertParticipantsMigrationRequest as BulkUpsertParticipantsMigrationRequestOriginal, type BulkUpsertParticipantsMigrationResponse as BulkUpsertParticipantsMigrationResponseOriginal, type CertificateInfo as CertificateInfoOriginal, type CreateParticipantApplicationErrors as CreateParticipantApplicationErrorsOriginal, type CreateParticipantRequest as CreateParticipantRequestOriginal, type CreateParticipantResponse as CreateParticipantResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorSearch as CursorSearchOriginal, type CursorSearchPagingMethodOneOf as CursorSearchPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DateHistogramAggregation as DateHistogramAggregationOriginal, type DateHistogramResult as DateHistogramResultOriginal, type DateHistogramResults as DateHistogramResultsOriginal, type DeleteAllParticipantsMigrationRequest as DeleteAllParticipantsMigrationRequestOriginal, type DeleteAllParticipantsMigrationResponse as DeleteAllParticipantsMigrationResponseOriginal, type Delete as DeleteOriginal, type DeleteParticipantRequest as DeleteParticipantRequestOriginal, type DeleteParticipantResponse as DeleteParticipantResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EnrollmentInfo as EnrollmentInfoOriginal, type EnrollmentInfoPricingTypeDetailsOneOf as EnrollmentInfoPricingTypeDetailsOneOfOriginal, EnrollmentStatus as EnrollmentStatusOriginal, type EnrollmentStatusWithLiterals as EnrollmentStatusWithLiteralsOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExportParticipantsStatsRequest as ExportParticipantsStatsRequestOriginal, type ExportParticipantsStatsResponse as ExportParticipantsStatsResponseOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FreeCouponDetails as FreeCouponDetailsOriginal, type GetAccessStatusRequest as GetAccessStatusRequestOriginal, type GetAccessStatusResponse as GetAccessStatusResponseOriginal, type GetCompletionStatsRequest as GetCompletionStatsRequestOriginal, type GetCompletionStatsResponse as GetCompletionStatsResponseOriginal, type GetParticipantRequest as GetParticipantRequestOriginal, type GetParticipantResponse as GetParticipantResponseOriginal, type GetPremiumStatsRequest as GetPremiumStatsRequestOriginal, type GetPremiumStatsResponse as GetPremiumStatsResponseOriginal, type GroupByAggregationKindOneOf as GroupByAggregationKindOneOfOriginal, type GroupByAggregation as GroupByAggregationOriginal, type GroupByValueResults as GroupByValueResultsOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type IncludeMissingValuesOptions as IncludeMissingValuesOptionsOriginal, Interval as IntervalOriginal, type IntervalWithLiterals as IntervalWithLiteralsOriginal, type IssueCertificateApplicationErrors as IssueCertificateApplicationErrorsOriginal, type IssueCertificateRequest as IssueCertificateRequestOriginal, type IssueCertificateResponse as IssueCertificateResponseOriginal, type ItemMetadata as ItemMetadataOriginal, type Member as MemberOriginal, type MessageEnvelope as MessageEnvelopeOriginal, MissingValues as MissingValuesOriginal, type MissingValuesWithLiterals as MissingValuesWithLiteralsOriginal, Mode as ModeOriginal, type ModeWithLiterals as ModeWithLiteralsOriginal, type NestedAggregationItemKindOneOf as NestedAggregationItemKindOneOfOriginal, type NestedAggregationItem as NestedAggregationItemOriginal, type NestedAggregation as NestedAggregationOriginal, type NestedAggregationResults as NestedAggregationResultsOriginal, type NestedAggregationResultsResultOneOf as NestedAggregationResultsResultOneOfOriginal, NestedAggregationType as NestedAggregationTypeOriginal, type NestedAggregationTypeWithLiterals as NestedAggregationTypeWithLiteralsOriginal, type NestedResultValue as NestedResultValueOriginal, type NestedResultValueResultOneOf as NestedResultValueResultOneOfOriginal, type NestedResults as NestedResultsOriginal, type NestedValueAggregationResult as NestedValueAggregationResultOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type PaidPlanDetails as PaidPlanDetailsOriginal, type ParticipantCompletedProgram as ParticipantCompletedProgramOriginal, type ParticipantExportsFinished as ParticipantExportsFinishedOriginal, type ParticipantLeft as ParticipantLeftOriginal, type ParticipantMigration as ParticipantMigrationOriginal, type ParticipantMissedProgramDeadline as ParticipantMissedProgramDeadlineOriginal, type Participant as ParticipantOriginal, type ParticipantProgramDurationEnded as ParticipantProgramDurationEndedOriginal, type ParticipantRemoved as ParticipantRemovedOriginal, type ParticipantTagsModified as ParticipantTagsModifiedOriginal, PricingType as PricingTypeOriginal, type PricingTypeWithLiterals as PricingTypeWithLiteralsOriginal, type Progress as ProgressOriginal, ProgressStatus as ProgressStatusOriginal, type ProgressStatusWithLiterals as ProgressStatusWithLiteralsOriginal, type QueryParticipantsRequest as QueryParticipantsRequestOriginal, type QueryParticipantsResponse as QueryParticipantsResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type RangeAggregation as RangeAggregationOriginal, type RangeAggregationResult as RangeAggregationResultOriginal, type RangeBucket as RangeBucketOriginal, type RangeResult as RangeResultOriginal, type RangeResults as RangeResultsOriginal, type ReindexMessageActionOneOf as ReindexMessageActionOneOfOriginal, type ReindexMessage as ReindexMessageOriginal, type ReindexParticipantsSearchRequest as ReindexParticipantsSearchRequestOriginal, type ReindexParticipantsSearchResponse as ReindexParticipantsSearchResponseOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type Results as ResultsOriginal, type ScalarAggregation as ScalarAggregationOriginal, type ScalarResult as ScalarResultOriginal, ScalarType as ScalarTypeOriginal, type ScalarTypeWithLiterals as ScalarTypeWithLiteralsOriginal, type Schema as SchemaOriginal, type SearchDetails as SearchDetailsOriginal, type SearchParticipantsRequest as SearchParticipantsRequestOriginal, type SearchParticipantsResponse as SearchParticipantsResponseOriginal, type SinglePaymentDetails as SinglePaymentDetailsOriginal, SortDirection as SortDirectionOriginal, type SortDirectionWithLiterals as SortDirectionWithLiteralsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, SortType as SortTypeOriginal, type SortTypeWithLiterals as SortTypeWithLiteralsOriginal, type Sorting as SortingOriginal, type SynchronizeTimeCapsuleTasksRequest as SynchronizeTimeCapsuleTasksRequestOriginal, type SynchronizeTimeCapsuleTasksResponse as SynchronizeTimeCapsuleTasksResponseOriginal, type TagList as TagListOriginal, type Tags as TagsOriginal, type UpdateParticipantRequest as UpdateParticipantRequestOriginal, type UpdateParticipantResponse as UpdateParticipantResponseOriginal, type Upsert as UpsertOriginal, type ValueAggregationOptionsOneOf as ValueAggregationOptionsOneOfOriginal, type ValueAggregation as ValueAggregationOriginal, type ValueAggregationResult as ValueAggregationResultOriginal, type ValueResult as ValueResultOriginal, type ValueResults as ValueResultsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateParticipants, bulkCreateParticipantsForAllMembers, bulkUpdateParticipantTags, bulkUpdateParticipantTagsByFilter, createParticipant, deleteParticipant, exportParticipantsStats, getAccessStatus, getParticipant, getPremiumStats, issueCertificate, queryParticipants, searchParticipants, updateParticipant };