@wix/auto_sdk_online-programs_participants 1.0.26 → 1.0.28

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 (23) hide show
  1. package/build/cjs/index.d.ts +12 -12
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +2 -2
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.d.ts +81 -60
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/cjs/{online-programs-participants-v3-participant-participants.universal-Cpkfb79r.d.ts → online-programs-participants-v3-participant-participants.universal-BrdlJaIZ.d.ts} +119 -88
  8. package/build/es/index.d.mts +12 -12
  9. package/build/es/index.mjs.map +1 -1
  10. package/build/es/index.typings.d.mts +2 -2
  11. package/build/es/index.typings.mjs.map +1 -1
  12. package/build/es/meta.d.mts +81 -60
  13. package/build/es/meta.mjs.map +1 -1
  14. package/build/es/{online-programs-participants-v3-participant-participants.universal-Cpkfb79r.d.mts → online-programs-participants-v3-participant-participants.universal-BrdlJaIZ.d.mts} +119 -88
  15. package/build/internal/cjs/index.d.ts +12 -12
  16. package/build/internal/cjs/index.typings.d.ts +2 -2
  17. package/build/internal/cjs/meta.d.ts +81 -60
  18. package/build/internal/cjs/{online-programs-participants-v3-participant-participants.universal-Ch7bJyn2.d.ts → online-programs-participants-v3-participant-participants.universal-02Rnv8b6.d.ts} +119 -88
  19. package/build/internal/es/index.d.mts +12 -12
  20. package/build/internal/es/index.typings.d.mts +2 -2
  21. package/build/internal/es/meta.d.mts +81 -60
  22. package/build/internal/es/{online-programs-participants-v3-participant-participants.universal-Ch7bJyn2.d.mts → online-programs-participants-v3-participant-participants.universal-02Rnv8b6.d.mts} +119 -88
  23. package/package.json +2 -2
@@ -2,7 +2,7 @@ import * as _wix_sdk_types from '@wix/sdk-types';
2
2
  import { QuerySpec, SearchSpec, Query, Search, NonNullablePaths } from '@wix/sdk-types';
3
3
 
4
4
  /**
5
- * Participant entity represents a site member who takes part in a specific Online Program.
5
+ * A participant entity represents a site member who takes part in a specific Online Program.
6
6
  * Participants have access to the program's content and progress through the program by completing its steps.
7
7
  * A participant can join through a join application flow or be manually added by the program owner.
8
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.
@@ -15,17 +15,20 @@ interface Participant {
15
15
  */
16
16
  _id?: string | null;
17
17
  /**
18
- * Participant revision (for optimistic concurrency control).
18
+ * Revision number, which increments by 1 each time the participant is updated.
19
+ * To prevent conflicting changes, the current revision must be specified when updating the participant.
20
+ *
21
+ * Ignored when creating a participant.
19
22
  * @readonly
20
23
  */
21
24
  revision?: string | null;
22
25
  /**
23
- * Participant creation date.
26
+ * Date and time the participant was created.
24
27
  * @readonly
25
28
  */
26
29
  _createdDate?: Date | null;
27
30
  /**
28
- * Date the participant was last updated.
31
+ * Date and time the participant was updated.
29
32
  * @readonly
30
33
  */
31
34
  _updatedDate?: Date | null;
@@ -42,17 +45,19 @@ interface Participant {
42
45
  */
43
46
  programId?: string;
44
47
  /**
45
- * Program completion progress. This field is conditional and must be explicitly requested via `fields` parameter.
48
+ * Program completion progress. This field is conditional and must be explicitly requested using the `fields` parameter.
46
49
  * @readonly
47
50
  */
48
51
  progress?: Progress;
49
52
  /**
50
- * Certificate info for participant
53
+ * Information about the participant's certificate.
54
+ *
55
+ * Returned only when a certificate has been issued to the participant.
51
56
  * @readonly
52
57
  */
53
58
  certificateInfo?: CertificateInfo;
54
59
  /**
55
- * Site member info snapshot for the participant
60
+ * Snapshot of the site member identified by `memberId`, copied from the Members API. It isn't the authoritative member record.
56
61
  * @readonly
57
62
  */
58
63
  member?: Member;
@@ -73,7 +78,11 @@ interface Participant {
73
78
  progressStatus?: ProgressStatusWithLiterals;
74
79
  /** Additional information about the participant's enrollment and completion timeframe in the program. */
75
80
  enrollmentInfo?: EnrollmentInfo;
76
- /** Extended fields for participant (can be used for storing custom data). */
81
+ /**
82
+ * Custom field data for the participant object.
83
+ *
84
+ * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.
85
+ */
77
86
  extendedFields?: ExtendedFields;
78
87
  /** Tags for categorizing and organizing participants. */
79
88
  tags?: Tags;
@@ -100,7 +109,9 @@ interface SinglePaymentDetails {
100
109
  */
101
110
  paymentOrderId?: string;
102
111
  /**
103
- * ID of the offline transaction if the participant used an offline payment method (e.g., cash, check). Null if online payment was used.
112
+ * ID of the offline transaction.
113
+ *
114
+ * Available only when the participant paid with an offline payment method, such as cash or check.
104
115
  * @format GUID
105
116
  * @immutable
106
117
  */
@@ -128,8 +139,8 @@ interface Progress {
128
139
  /** Total number of program steps available to resolve. */
129
140
  totalStepsAvailable?: number;
130
141
  /**
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.
142
+ * Participant's completion percentage. For participants who completed the program, this is `100.0`.
143
+ * Otherwise, it's calculated as (`totalStepsCompleted` / `totalStepsAvailable`) * 100, capped at `100`, and rounded to 1 decimal place.
133
144
  * @max 100
134
145
  */
135
146
  completionPercentage?: number;
@@ -143,31 +154,41 @@ interface CertificateInfo {
143
154
  }
144
155
  interface Member {
145
156
  /**
146
- * First name of the site member. Null if the member has not provided this information in their profile.
157
+ * First name of the site member.
158
+ *
159
+ * Returned only when the member has provided it in their profile.
147
160
  * @readonly
148
161
  * @maxLength 1000
149
162
  */
150
163
  firstName?: string | null;
151
164
  /**
152
- * Last name of the site member. Null if the member has not provided this information in their profile.
165
+ * Last name of the site member.
166
+ *
167
+ * Returned only when the member has provided it in their profile.
153
168
  * @readonly
154
169
  * @maxLength 1000
155
170
  */
156
171
  lastName?: string | null;
157
172
  /**
158
- * Email of the site member. Null if the member has not provided this information in their profile.
173
+ * Email of the site member.
174
+ *
175
+ * Returned only when the member has provided it in their profile.
159
176
  * @readonly
160
177
  * @format EMAIL
161
178
  */
162
179
  email?: string | null;
163
180
  /**
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.
181
+ * Contact ID for accessing additional member information with the Contacts API, such as phone numbers, addresses, and custom fields.
182
+ *
183
+ * Returned only when the member has provided this information in their profile.
165
184
  * @format GUID
166
185
  * @readonly
167
186
  */
168
187
  contactId?: string | null;
169
188
  /**
170
- * Member nickname. Null if the member has not provided this information in their profile.
189
+ * Member nickname.
190
+ *
191
+ * Returned only when the member has provided it in their profile.
171
192
  * @readonly
172
193
  * @maxLength 1000
173
194
  */
@@ -202,7 +223,7 @@ declare enum ProgressStatus {
202
223
  COMPLETED = "COMPLETED",
203
224
  /** Participant failed to complete the program within the deadline. */
204
225
  FAILED = "FAILED",
205
- /** Progress tracking is not applicable — participant left, was removed, or was auto-removed. */
226
+ /** Progress tracking isn't applicable because the participant left, was removed, or was auto-removed. */
206
227
  NOT_APPLICABLE = "NOT_APPLICABLE"
207
228
  }
208
229
  /** @enumType */
@@ -221,7 +242,8 @@ interface EnrollmentInfo extends EnrollmentInfoPricingTypeDetailsOneOf {
221
242
  */
222
243
  timeZone?: string;
223
244
  /**
224
- * Date when the participant's program timeline begins. If the program's `timeline.startDate` is set, this is that date. Otherwise, it is the local calendar date when the participant is created, based on the site's time zone.
245
+ * Date when the participant's program timeline begins, in `YYYY-MM-DD` format.
246
+ * If the program's `timeline.startDate` is set, this is that date. Otherwise, it's the local calendar date when the participant is created, based on the site's time zone.
225
247
  * @format LOCAL_DATE
226
248
  * @readonly
227
249
  */
@@ -229,7 +251,9 @@ interface EnrollmentInfo extends EnrollmentInfoPricingTypeDetailsOneOf {
229
251
  /** Pricing type used for the participant's enrollment in the program. */
230
252
  pricingType?: PricingTypeWithLiterals;
231
253
  /**
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.
254
+ * Date by which the participant must complete the program, in `YYYY-MM-DD` format.
255
+ *
256
+ * Returned only when the program has a fixed end date, or a duration-based deadline calculated from the participant's start date.
233
257
  * @format LOCAL_DATE
234
258
  * @readonly
235
259
  */
@@ -321,16 +345,13 @@ interface Schema {
321
345
  label?: string;
322
346
  clusterName?: string;
323
347
  }
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
- */
348
+ /** Domain event emitted when a participant's tags are modified. */
328
349
  interface ParticipantTagsModified {
329
- /** The Participant with updated tags */
350
+ /** The participant with the updated tags. */
330
351
  participant?: Participant;
331
- /** Tags that were assigned */
352
+ /** Tags that were assigned. */
332
353
  assignedTags?: Tags;
333
- /** Tags that were unassigned */
354
+ /** Tags that were unassigned. */
334
355
  unassignedTags?: Tags;
335
356
  }
336
357
  /** Domain event emitted when a participant completes a program. */
@@ -434,11 +455,11 @@ interface ParticipantLeft {
434
455
  participant?: Participant;
435
456
  }
436
457
  interface CreateParticipantRequest {
437
- /** Participant to create */
458
+ /** Participant to create. */
438
459
  participant: Participant;
439
460
  /**
440
461
  * Array of conditional fields to include in the response.
441
- * 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.
462
+ * 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.
442
463
  * @maxSize 1
443
464
  */
444
465
  fields?: RequestedFieldsWithLiterals[];
@@ -454,7 +475,7 @@ declare enum RequestedFields {
454
475
  /** @enumType */
455
476
  type RequestedFieldsWithLiterals = RequestedFields | 'PROGRESS';
456
477
  interface CreateParticipantResponse {
457
- /** Created participant */
478
+ /** Created participant. */
458
479
  participant?: Participant;
459
480
  }
460
481
  interface UpdateParticipantRequest {
@@ -462,7 +483,7 @@ interface UpdateParticipantRequest {
462
483
  participant: Participant;
463
484
  /**
464
485
  * Array of conditional fields to include in the response.
465
- * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
486
+ * Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
466
487
  * @maxSize 1
467
488
  */
468
489
  fields?: RequestedFieldsWithLiterals[];
@@ -473,7 +494,7 @@ interface UpdateParticipantRequest {
473
494
  fieldMask?: string[];
474
495
  }
475
496
  interface UpdateParticipantResponse {
476
- /** Updated participant */
497
+ /** Updated participant. */
477
498
  participant?: Participant;
478
499
  }
479
500
  interface BulkCreateParticipantsRequest {
@@ -483,11 +504,11 @@ interface BulkCreateParticipantsRequest {
483
504
  * @maxSize 100
484
505
  */
485
506
  participants: Participant[];
486
- /** Whether to return entities in response or not. */
507
+ /** Whether to return the created participants in the response. */
487
508
  returnEntity?: boolean;
488
509
  /**
489
510
  * Array of conditional fields to include in the response.
490
- * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
511
+ * Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
491
512
  * @maxSize 1
492
513
  */
493
514
  fields?: RequestedFieldsWithLiterals[];
@@ -505,7 +526,7 @@ interface BulkCreateParticipantsResponse {
505
526
  interface BulkParticipantResult {
506
527
  /** Metadata for the item. */
507
528
  itemMetadata?: ItemMetadata;
508
- /** The participant entity. Empty if `return_entity` is `false`. */
529
+ /** The participant entity. Empty if `returnEntity` is `false`. */
509
530
  item?: Participant;
510
531
  }
511
532
  interface ItemMetadata {
@@ -565,7 +586,7 @@ interface BulkUpsertParticipantsMigrationResponse {
565
586
  interface BulkParticipantMigrationResult {
566
587
  /** Metadata for the item. */
567
588
  itemMetadata?: ItemMetadata;
568
- /** Action type of bulk action (INSERT OR UPDATE) for that endpoint. */
589
+ /** Action type of the bulk action (INSERT or UPDATE) for that method. */
569
590
  action?: BulkActionTypeWithLiterals;
570
591
  }
571
592
  declare enum BulkActionType {
@@ -601,7 +622,7 @@ interface SynchronizeTimeCapsuleTasksRequest {
601
622
  }
602
623
  interface SynchronizeTimeCapsuleTasksResponse {
603
624
  /**
604
- * ID of the asynchronous job that will process the request. Pass this ID to Get Async Job to track the operation status.
625
+ * Job ID. Pass this ID to [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job) to retrieve the status of the asynchronous operation.
605
626
  * @format GUID
606
627
  */
607
628
  jobId?: string;
@@ -621,7 +642,7 @@ interface BulkCreateParticipantsForAllMembersRequest {
621
642
  }
622
643
  interface BulkCreateParticipantsForAllMembersResponse {
623
644
  /**
624
- * ID of the asynchronous job that will process the request. Pass this ID to Get Async Job to track the operation status.
645
+ * Job ID. Pass this ID to [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job) to retrieve the status of the asynchronous operation.
625
646
  * @format GUID
626
647
  */
627
648
  jobId?: string;
@@ -643,13 +664,13 @@ interface IssueCertificateRequest {
643
664
  participantId: string;
644
665
  /**
645
666
  * Array of conditional fields to include in the response.
646
- * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
667
+ * Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
647
668
  * @maxSize 1
648
669
  */
649
670
  fields?: RequestedFieldsWithLiterals[];
650
671
  }
651
672
  interface IssueCertificateResponse {
652
- /** Updated participant */
673
+ /** Updated participant. */
653
674
  participant?: Participant;
654
675
  }
655
676
  interface GetCertificateDownloadUrlRequest {
@@ -676,19 +697,19 @@ interface GetCompletionStatsRequest {
676
697
  programId?: string;
677
698
  }
678
699
  interface GetCompletionStatsResponse {
679
- /** Number of participants that completed the program */
700
+ /** Number of participants who completed the program. */
680
701
  completedParticipantsCount?: number;
681
- /** Percentage of participants that completed the program */
702
+ /** Percentage of participants who completed the program. */
682
703
  completionRate?: number;
683
704
  }
684
705
  interface GetPremiumStatsRequest {
685
706
  }
686
707
  interface GetPremiumStatsResponse {
687
- /** True if site has Online Programs premium feature */
708
+ /** Whether the site has the Online Programs premium feature. */
688
709
  premiumEnabled?: boolean;
689
- /** Count of active participants on the site */
710
+ /** Number of active participants on the site. */
690
711
  activeParticipantsCount?: number;
691
- /** Limit of active participants on a site without premium */
712
+ /** Maximum number of active participants allowed on a site without premium. */
692
713
  activeParticipantsLimit?: number;
693
714
  }
694
715
  interface GetParticipationStatsRequest {
@@ -726,7 +747,7 @@ interface GetParticipantRequest {
726
747
  participantId: string;
727
748
  /**
728
749
  * Array of conditional fields to include in the response.
729
- * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
750
+ * Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
730
751
  * @maxSize 1
731
752
  */
732
753
  fields?: RequestedFieldsWithLiterals[];
@@ -736,11 +757,11 @@ interface GetParticipantResponse {
736
757
  participant?: Participant;
737
758
  }
738
759
  interface QueryParticipantsRequest {
739
- /** Platformized query */
760
+ /** Query options. */
740
761
  query?: QueryV2;
741
762
  /**
742
763
  * Array of conditional fields to include in the response.
743
- * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
764
+ * Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
744
765
  * @maxSize 1
745
766
  */
746
767
  fields?: RequestedFieldsWithLiterals[];
@@ -859,47 +880,47 @@ interface Cursors {
859
880
  interface GetAccessStatusRequest {
860
881
  }
861
882
  interface GetAccessStatusResponse {
862
- /** True if participants cannot access online programs due to some limitations */
883
+ /** Whether participants are blocked from accessing online programs because of site limitations. */
863
884
  accessBlocked?: boolean;
864
885
  }
865
886
  interface BulkUpdateParticipantTagsRequest {
866
887
  /**
867
- * Participant IDs to update tags for (1-100 items)
888
+ * IDs of the participants to update tags for. Provide 1 to 100 IDs.
868
889
  * @minSize 1
869
890
  * @maxSize 100
870
891
  * @format GUID
871
892
  */
872
893
  participantIds: string[];
873
- /** Tags to assign to the Participants */
894
+ /** Tags to assign to the participants. */
874
895
  assignTags?: Tags;
875
- /** Tags to unassign from the Participants */
896
+ /** Tags to unassign from the participants. */
876
897
  unassignTags?: Tags;
877
898
  }
878
899
  interface BulkUpdateParticipantTagsResponse {
879
900
  /**
880
- * Results for each Participant
901
+ * Results for each participant.
881
902
  * @minSize 1
882
903
  * @maxSize 100
883
904
  */
884
905
  results?: BulkUpdateParticipantTagsResult[];
885
- /** Metadata about the bulk operation */
906
+ /** Metadata about the bulk operation. */
886
907
  bulkActionMetadata?: BulkActionMetadata;
887
908
  }
888
909
  interface BulkUpdateParticipantTagsResult {
889
- /** Metadata for this specific item */
910
+ /** Metadata for this specific item. */
890
911
  itemMetadata?: ItemMetadata;
891
912
  }
892
913
  interface BulkUpdateParticipantTagsByFilterRequest {
893
- /** WQL filter to select Participants */
914
+ /** WQL filter that selects the participants to update. */
894
915
  filter: Record<string, any> | null;
895
- /** Tags to assign to matching Participants */
916
+ /** Tags to assign to matching participants. */
896
917
  assignTags?: Tags;
897
- /** Tags to unassign from matching Participants */
918
+ /** Tags to unassign from matching participants. */
898
919
  unassignTags?: Tags;
899
920
  }
900
921
  interface BulkUpdateParticipantTagsByFilterResponse {
901
922
  /**
902
- * Job ID for tracking the async operation. Pass this ID to Get Async Job to track the operation status.
923
+ * Job ID. Pass this ID to [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job) to retrieve the status of the asynchronous operation.
903
924
  * @format GUID
904
925
  */
905
926
  jobId?: string;
@@ -909,7 +930,7 @@ interface SearchParticipantsRequest {
909
930
  search?: CursorSearch;
910
931
  /**
911
932
  * Array of conditional fields to include in the response.
912
- * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
933
+ * Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
913
934
  * @maxSize 1
914
935
  */
915
936
  fields?: RequestedFieldsWithLiterals[];
@@ -1884,8 +1905,8 @@ declare function onParticipantUpdated(handler: (event: ParticipantUpdatedEnvelop
1884
1905
  * Creates a participant.
1885
1906
  *
1886
1907
  * Returns an error if the member is already a participant in the specified program.
1887
- * Use UpdateParticipant to modify existing participants.
1888
- * @param participant - Participant to create
1908
+ * Use [Update Participant](https://dev.wix.com/docs/api-reference/business-management/online-programs/participants/update-participant) to modify existing participants.
1909
+ * @param participant - Participant to create.
1889
1910
  * @public
1890
1911
  * @documentationMaturity preview
1891
1912
  * @requiredField participant
@@ -1895,7 +1916,7 @@ declare function onParticipantUpdated(handler: (event: ParticipantUpdatedEnvelop
1895
1916
  * @requiredField participant.programId
1896
1917
  * @permissionId online_programs:participants:v3:participant:create_participant
1897
1918
  * @applicableIdentity APP
1898
- * @returns Created participant
1919
+ * @returns Created participant.
1899
1920
  * @fqn wix.onlineprograms.participants.v3.ParticipantsService.CreateParticipant
1900
1921
  */
1901
1922
  declare function createParticipant(participant: NonNullablePaths<Participant, `enrollmentInfo` | `enrollmentInfo.pricingType` | `memberId` | `programId`, 1>, options?: CreateParticipantOptions): Promise<NonNullablePaths<Participant, `memberId` | `programId` | `progress.totalStepsCompleted` | `progress.totalStepsAvailable` | `progress.completionPercentage` | `enrollmentStatus` | `progressStatus` | `enrollmentInfo.singlePaymentDetails.paymentOrderId` | `enrollmentInfo.paidPlanDetails.paidPlanId` | `enrollmentInfo.freeCouponDetails.freeCouponId` | `enrollmentInfo.timeZone` | `enrollmentInfo.startDate` | `enrollmentInfo.pricingType` | `tags.privateTags.tagIds`, 2> & {
@@ -1904,7 +1925,7 @@ declare function createParticipant(participant: NonNullablePaths<Participant, `e
1904
1925
  interface CreateParticipantOptions {
1905
1926
  /**
1906
1927
  * Array of conditional fields to include in the response.
1907
- * 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.
1928
+ * 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.
1908
1929
  * @maxSize 1
1909
1930
  */
1910
1931
  fields?: RequestedFieldsWithLiterals[];
@@ -1925,7 +1946,7 @@ interface CreateParticipantOptions {
1925
1946
  * @requiredField participant.revision
1926
1947
  * @permissionId online_programs:participants:v3:participant:update_participant
1927
1948
  * @applicableIdentity APP
1928
- * @returns Updated participant
1949
+ * @returns Updated participant.
1929
1950
  * @fqn wix.onlineprograms.participants.v3.ParticipantsService.UpdateParticipant
1930
1951
  */
1931
1952
  declare function updateParticipant(_id: string, participant: NonNullablePaths<UpdateParticipant, `revision`, 0>, options?: UpdateParticipantOptions): Promise<NonNullablePaths<Participant, `memberId` | `programId` | `progress.totalStepsCompleted` | `progress.totalStepsAvailable` | `progress.completionPercentage` | `enrollmentStatus` | `progressStatus` | `enrollmentInfo.singlePaymentDetails.paymentOrderId` | `enrollmentInfo.paidPlanDetails.paidPlanId` | `enrollmentInfo.freeCouponDetails.freeCouponId` | `enrollmentInfo.timeZone` | `enrollmentInfo.startDate` | `enrollmentInfo.pricingType` | `tags.privateTags.tagIds`, 2>>;
@@ -1937,17 +1958,20 @@ interface UpdateParticipant {
1937
1958
  */
1938
1959
  _id?: string | null;
1939
1960
  /**
1940
- * Participant revision (for optimistic concurrency control).
1961
+ * Revision number, which increments by 1 each time the participant is updated.
1962
+ * To prevent conflicting changes, the current revision must be specified when updating the participant.
1963
+ *
1964
+ * Ignored when creating a participant.
1941
1965
  * @readonly
1942
1966
  */
1943
1967
  revision?: string | null;
1944
1968
  /**
1945
- * Participant creation date.
1969
+ * Date and time the participant was created.
1946
1970
  * @readonly
1947
1971
  */
1948
1972
  _createdDate?: Date | null;
1949
1973
  /**
1950
- * Date the participant was last updated.
1974
+ * Date and time the participant was updated.
1951
1975
  * @readonly
1952
1976
  */
1953
1977
  _updatedDate?: Date | null;
@@ -1964,17 +1988,19 @@ interface UpdateParticipant {
1964
1988
  */
1965
1989
  programId?: string;
1966
1990
  /**
1967
- * Program completion progress. This field is conditional and must be explicitly requested via `fields` parameter.
1991
+ * Program completion progress. This field is conditional and must be explicitly requested using the `fields` parameter.
1968
1992
  * @readonly
1969
1993
  */
1970
1994
  progress?: Progress;
1971
1995
  /**
1972
- * Certificate info for participant
1996
+ * Information about the participant's certificate.
1997
+ *
1998
+ * Returned only when a certificate has been issued to the participant.
1973
1999
  * @readonly
1974
2000
  */
1975
2001
  certificateInfo?: CertificateInfo;
1976
2002
  /**
1977
- * Site member info snapshot for the participant
2003
+ * Snapshot of the site member identified by `memberId`, copied from the Members API. It isn't the authoritative member record.
1978
2004
  * @readonly
1979
2005
  */
1980
2006
  member?: Member;
@@ -1995,7 +2021,11 @@ interface UpdateParticipant {
1995
2021
  progressStatus?: ProgressStatusWithLiterals;
1996
2022
  /** Additional information about the participant's enrollment and completion timeframe in the program. */
1997
2023
  enrollmentInfo?: EnrollmentInfo;
1998
- /** Extended fields for participant (can be used for storing custom data). */
2024
+ /**
2025
+ * Custom field data for the participant object.
2026
+ *
2027
+ * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.
2028
+ */
1999
2029
  extendedFields?: ExtendedFields;
2000
2030
  /** Tags for categorizing and organizing participants. */
2001
2031
  tags?: Tags;
@@ -2003,7 +2033,7 @@ interface UpdateParticipant {
2003
2033
  interface UpdateParticipantOptions {
2004
2034
  /**
2005
2035
  * Array of conditional fields to include in the response.
2006
- * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
2036
+ * Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
2007
2037
  * @maxSize 1
2008
2038
  */
2009
2039
  fields?: RequestedFieldsWithLiterals[];
@@ -2014,10 +2044,10 @@ interface UpdateParticipantOptions {
2014
2044
  * All participants in a single bulk create request must belong to the same program.
2015
2045
  * Returns an error if the member is already a participant in the specified program.
2016
2046
  *
2017
- * When `pricing_type` is `SINGLE_PAYMENT`, provide `single_payment_details`.
2018
- * When `pricing_type` is `PAID_PLAN`, provide `paid_plan_details`.
2019
- * When `pricing_type` is `FREE_COUPON`, provide `free_coupon_details`.
2020
- * Other pricing types (`FREE`, `ADDED_MANUALLY`) do not require details.
2047
+ * When `pricingType` is `SINGLE_PAYMENT`, provide `singlePaymentDetails`.
2048
+ * When `pricingType` is `PAID_PLAN`, provide `paidPlanDetails`.
2049
+ * When `pricingType` is `FREE_COUPON`, provide `freeCouponDetails`.
2050
+ * Other pricing types (`FREE`, `ADDED_MANUALLY`) don't require details.
2021
2051
  * @param participants - List of participants to create.
2022
2052
  * @public
2023
2053
  * @documentationMaturity preview
@@ -2034,11 +2064,11 @@ declare function bulkCreateParticipants(participants: NonNullablePaths<Participa
2034
2064
  __applicationErrorsType?: BulkCreateParticipantsApplicationErrors;
2035
2065
  }>;
2036
2066
  interface BulkCreateParticipantsOptions {
2037
- /** Whether to return entities in response or not. */
2067
+ /** Whether to return the created participants in the response. */
2038
2068
  returnEntity?: boolean;
2039
2069
  /**
2040
2070
  * Array of conditional fields to include in the response.
2041
- * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
2071
+ * Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
2042
2072
  * @maxSize 1
2043
2073
  */
2044
2074
  fields?: RequestedFieldsWithLiterals[];
@@ -2099,7 +2129,7 @@ declare function issueCertificate(participantId: string, options?: IssueCertific
2099
2129
  interface IssueCertificateOptions {
2100
2130
  /**
2101
2131
  * Array of conditional fields to include in the response.
2102
- * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
2132
+ * Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
2103
2133
  * @maxSize 1
2104
2134
  */
2105
2135
  fields?: RequestedFieldsWithLiterals[];
@@ -2114,6 +2144,7 @@ interface IssueCertificateOptions {
2114
2144
  * @requiredField participantId
2115
2145
  * @permissionId online_programs:participants:v3:participant:get_certificate_download_url
2116
2146
  * @applicableIdentity APP
2147
+ * @applicableIdentity MEMBER
2117
2148
  * @fqn wix.onlineprograms.participants.v3.ParticipantsService.GetCertificateDownloadUrl
2118
2149
  */
2119
2150
  declare function getCertificateDownloadUrl(participantId: string): Promise<NonNullablePaths<GetCertificateDownloadUrlResponse, `downloadUrl`, 0> & {
@@ -2156,7 +2187,7 @@ declare function getParticipant(participantId: string, options?: GetParticipantO
2156
2187
  interface GetParticipantOptions {
2157
2188
  /**
2158
2189
  * Array of conditional fields to include in the response.
2159
- * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
2190
+ * Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
2160
2191
  * @maxSize 1
2161
2192
  */
2162
2193
  fields?: RequestedFieldsWithLiterals[];
@@ -2181,7 +2212,7 @@ declare function queryParticipants(options?: QueryParticipantsOptions): Particip
2181
2212
  interface QueryParticipantsOptions {
2182
2213
  /**
2183
2214
  * Array of conditional fields to include in the response.
2184
- * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
2215
+ * Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
2185
2216
  * @maxSize 1
2186
2217
  */
2187
2218
  fields?: RequestedFieldsWithLiterals[] | undefined;
@@ -2360,7 +2391,7 @@ declare function getAccessStatus(): Promise<NonNullablePaths<GetAccessStatusResp
2360
2391
  * Adds or removes tags on multiple participants.
2361
2392
  *
2362
2393
  * Specify which tags to assign and which tags to unassign. At least one of `assignTags` or `unassignTags` must be provided.
2363
- * @param participantIds - Participant IDs to update tags for (1-100 items)
2394
+ * @param participantIds - IDs of the participants to update tags for. Provide 1 to 100 IDs.
2364
2395
  * @public
2365
2396
  * @documentationMaturity preview
2366
2397
  * @requiredField participantIds
@@ -2372,16 +2403,16 @@ declare function bulkUpdateParticipantTags(participantIds: string[], options?: B
2372
2403
  __applicationErrorsType?: BulkUpdateParticipantTagsApplicationErrors;
2373
2404
  }>;
2374
2405
  interface BulkUpdateParticipantTagsOptions {
2375
- /** Tags to assign to the Participants */
2406
+ /** Tags to assign to the participants. */
2376
2407
  assignTags?: Tags;
2377
- /** Tags to unassign from the Participants */
2408
+ /** Tags to unassign from the participants. */
2378
2409
  unassignTags?: Tags;
2379
2410
  }
2380
2411
  /**
2381
2412
  * Asynchronously updates tags on multiple participants that match the provided filter criteria.
2382
2413
  *
2383
2414
  * To check the status of the bulk update, pass the returned `jobId` to [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job).
2384
- * @param filter - WQL filter to select Participants
2415
+ * @param filter - WQL filter that selects the participants to update.
2385
2416
  * @public
2386
2417
  * @documentationMaturity preview
2387
2418
  * @requiredField filter
@@ -2393,15 +2424,15 @@ declare function bulkUpdateParticipantTagsByFilter(filter: Record<string, any>,
2393
2424
  __applicationErrorsType?: BulkUpdateParticipantTagsByFilterApplicationErrors;
2394
2425
  }>;
2395
2426
  interface BulkUpdateParticipantTagsByFilterOptions {
2396
- /** Tags to assign to matching Participants */
2427
+ /** Tags to assign to matching participants. */
2397
2428
  assignTags?: Tags;
2398
- /** Tags to unassign from matching Participants */
2429
+ /** Tags to unassign from matching participants. */
2399
2430
  unassignTags?: Tags;
2400
2431
  }
2401
2432
  interface SearchParticipantsOptions {
2402
2433
  /**
2403
2434
  * Array of conditional fields to include in the response.
2404
- * Use RequestedFields.PROGRESS to include the progress field which is conditionally returned.
2435
+ * Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
2405
2436
  * @maxSize 1
2406
2437
  */
2407
2438
  fields?: RequestedFieldsWithLiterals[];