@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.
- package/build/cjs/index.d.ts +12 -12
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +81 -60
- package/build/cjs/meta.js.map +1 -1
- 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
- package/build/es/index.d.mts +12 -12
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +81 -60
- package/build/es/meta.mjs.map +1 -1
- 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
- package/build/internal/cjs/index.d.ts +12 -12
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/meta.d.ts +81 -60
- 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
- package/build/internal/es/index.d.mts +12 -12
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/meta.d.mts +81 -60
- 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
- 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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
/**
|
|
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
|
|
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
|
|
132
|
-
* (
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,13 +483,13 @@ 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
|
|
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[];
|
|
469
490
|
}
|
|
470
491
|
interface UpdateParticipantResponse {
|
|
471
|
-
/** Updated participant */
|
|
492
|
+
/** Updated participant. */
|
|
472
493
|
participant?: Participant;
|
|
473
494
|
}
|
|
474
495
|
interface BulkCreateParticipantsRequest {
|
|
@@ -478,11 +499,11 @@ interface BulkCreateParticipantsRequest {
|
|
|
478
499
|
* @maxSize 100
|
|
479
500
|
*/
|
|
480
501
|
participants: Participant[];
|
|
481
|
-
/** Whether to return
|
|
502
|
+
/** Whether to return the created participants in the response. */
|
|
482
503
|
returnEntity?: boolean;
|
|
483
504
|
/**
|
|
484
505
|
* Array of conditional fields to include in the response.
|
|
485
|
-
* Use RequestedFields.PROGRESS to include the progress field which
|
|
506
|
+
* Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
|
|
486
507
|
* @maxSize 1
|
|
487
508
|
*/
|
|
488
509
|
fields?: RequestedFieldsWithLiterals[];
|
|
@@ -500,7 +521,7 @@ interface BulkCreateParticipantsResponse {
|
|
|
500
521
|
interface BulkParticipantResult {
|
|
501
522
|
/** Metadata for the item. */
|
|
502
523
|
itemMetadata?: ItemMetadata;
|
|
503
|
-
/** The participant entity. Empty if `
|
|
524
|
+
/** The participant entity. Empty if `returnEntity` is `false`. */
|
|
504
525
|
item?: Participant;
|
|
505
526
|
}
|
|
506
527
|
interface ItemMetadata {
|
|
@@ -560,7 +581,7 @@ interface BulkUpsertParticipantsMigrationResponse {
|
|
|
560
581
|
interface BulkParticipantMigrationResult {
|
|
561
582
|
/** Metadata for the item. */
|
|
562
583
|
itemMetadata?: ItemMetadata;
|
|
563
|
-
/** Action type of bulk action (INSERT
|
|
584
|
+
/** Action type of the bulk action (INSERT or UPDATE) for that method. */
|
|
564
585
|
action?: BulkActionTypeWithLiterals;
|
|
565
586
|
}
|
|
566
587
|
declare enum BulkActionType {
|
|
@@ -596,7 +617,7 @@ interface SynchronizeTimeCapsuleTasksRequest {
|
|
|
596
617
|
}
|
|
597
618
|
interface SynchronizeTimeCapsuleTasksResponse {
|
|
598
619
|
/**
|
|
599
|
-
* ID
|
|
620
|
+
* 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.
|
|
600
621
|
* @format GUID
|
|
601
622
|
*/
|
|
602
623
|
jobId?: string;
|
|
@@ -616,7 +637,7 @@ interface BulkCreateParticipantsForAllMembersRequest {
|
|
|
616
637
|
}
|
|
617
638
|
interface BulkCreateParticipantsForAllMembersResponse {
|
|
618
639
|
/**
|
|
619
|
-
* ID
|
|
640
|
+
* 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.
|
|
620
641
|
* @format GUID
|
|
621
642
|
*/
|
|
622
643
|
jobId?: string;
|
|
@@ -638,13 +659,13 @@ interface IssueCertificateRequest {
|
|
|
638
659
|
participantId: string;
|
|
639
660
|
/**
|
|
640
661
|
* Array of conditional fields to include in the response.
|
|
641
|
-
* Use RequestedFields.PROGRESS to include the progress field which
|
|
662
|
+
* Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
|
|
642
663
|
* @maxSize 1
|
|
643
664
|
*/
|
|
644
665
|
fields?: RequestedFieldsWithLiterals[];
|
|
645
666
|
}
|
|
646
667
|
interface IssueCertificateResponse {
|
|
647
|
-
/** Updated participant */
|
|
668
|
+
/** Updated participant. */
|
|
648
669
|
participant?: Participant;
|
|
649
670
|
}
|
|
650
671
|
interface GetCertificateDownloadUrlRequest {
|
|
@@ -671,19 +692,19 @@ interface GetCompletionStatsRequest {
|
|
|
671
692
|
programId?: string;
|
|
672
693
|
}
|
|
673
694
|
interface GetCompletionStatsResponse {
|
|
674
|
-
/** Number of participants
|
|
695
|
+
/** Number of participants who completed the program. */
|
|
675
696
|
completedParticipantsCount?: number;
|
|
676
|
-
/** Percentage of participants
|
|
697
|
+
/** Percentage of participants who completed the program. */
|
|
677
698
|
completionRate?: number;
|
|
678
699
|
}
|
|
679
700
|
interface GetPremiumStatsRequest {
|
|
680
701
|
}
|
|
681
702
|
interface GetPremiumStatsResponse {
|
|
682
|
-
/**
|
|
703
|
+
/** Whether the site has the Online Programs premium feature. */
|
|
683
704
|
premiumEnabled?: boolean;
|
|
684
|
-
/**
|
|
705
|
+
/** Number of active participants on the site. */
|
|
685
706
|
activeParticipantsCount?: number;
|
|
686
|
-
/**
|
|
707
|
+
/** Maximum number of active participants allowed on a site without premium. */
|
|
687
708
|
activeParticipantsLimit?: number;
|
|
688
709
|
}
|
|
689
710
|
interface GetParticipationStatsRequest {
|
|
@@ -721,7 +742,7 @@ interface GetParticipantRequest {
|
|
|
721
742
|
participantId: string;
|
|
722
743
|
/**
|
|
723
744
|
* Array of conditional fields to include in the response.
|
|
724
|
-
* Use RequestedFields.PROGRESS to include the progress field which
|
|
745
|
+
* Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
|
|
725
746
|
* @maxSize 1
|
|
726
747
|
*/
|
|
727
748
|
fields?: RequestedFieldsWithLiterals[];
|
|
@@ -731,11 +752,11 @@ interface GetParticipantResponse {
|
|
|
731
752
|
participant?: Participant;
|
|
732
753
|
}
|
|
733
754
|
interface QueryParticipantsRequest {
|
|
734
|
-
/**
|
|
755
|
+
/** Query options. */
|
|
735
756
|
query?: QueryV2;
|
|
736
757
|
/**
|
|
737
758
|
* Array of conditional fields to include in the response.
|
|
738
|
-
* Use RequestedFields.PROGRESS to include the progress field which
|
|
759
|
+
* Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
|
|
739
760
|
* @maxSize 1
|
|
740
761
|
*/
|
|
741
762
|
fields?: RequestedFieldsWithLiterals[];
|
|
@@ -847,47 +868,47 @@ interface Cursors {
|
|
|
847
868
|
interface GetAccessStatusRequest {
|
|
848
869
|
}
|
|
849
870
|
interface GetAccessStatusResponse {
|
|
850
|
-
/**
|
|
871
|
+
/** Whether participants are blocked from accessing online programs because of site limitations. */
|
|
851
872
|
accessBlocked?: boolean;
|
|
852
873
|
}
|
|
853
874
|
interface BulkUpdateParticipantTagsRequest {
|
|
854
875
|
/**
|
|
855
|
-
*
|
|
876
|
+
* IDs of the participants to update tags for. Provide 1 to 100 IDs.
|
|
856
877
|
* @minSize 1
|
|
857
878
|
* @maxSize 100
|
|
858
879
|
* @format GUID
|
|
859
880
|
*/
|
|
860
881
|
participantIds: string[];
|
|
861
|
-
/** Tags to assign to the
|
|
882
|
+
/** Tags to assign to the participants. */
|
|
862
883
|
assignTags?: Tags;
|
|
863
|
-
/** Tags to unassign from the
|
|
884
|
+
/** Tags to unassign from the participants. */
|
|
864
885
|
unassignTags?: Tags;
|
|
865
886
|
}
|
|
866
887
|
interface BulkUpdateParticipantTagsResponse {
|
|
867
888
|
/**
|
|
868
|
-
* Results for each
|
|
889
|
+
* Results for each participant.
|
|
869
890
|
* @minSize 1
|
|
870
891
|
* @maxSize 100
|
|
871
892
|
*/
|
|
872
893
|
results?: BulkUpdateParticipantTagsResult[];
|
|
873
|
-
/** Metadata about the bulk operation */
|
|
894
|
+
/** Metadata about the bulk operation. */
|
|
874
895
|
bulkActionMetadata?: BulkActionMetadata;
|
|
875
896
|
}
|
|
876
897
|
interface BulkUpdateParticipantTagsResult {
|
|
877
|
-
/** Metadata for this specific item */
|
|
898
|
+
/** Metadata for this specific item. */
|
|
878
899
|
itemMetadata?: ItemMetadata;
|
|
879
900
|
}
|
|
880
901
|
interface BulkUpdateParticipantTagsByFilterRequest {
|
|
881
|
-
/** WQL filter to
|
|
902
|
+
/** WQL filter that selects the participants to update. */
|
|
882
903
|
filter: Record<string, any> | null;
|
|
883
|
-
/** Tags to assign to matching
|
|
904
|
+
/** Tags to assign to matching participants. */
|
|
884
905
|
assignTags?: Tags;
|
|
885
|
-
/** Tags to unassign from matching
|
|
906
|
+
/** Tags to unassign from matching participants. */
|
|
886
907
|
unassignTags?: Tags;
|
|
887
908
|
}
|
|
888
909
|
interface BulkUpdateParticipantTagsByFilterResponse {
|
|
889
910
|
/**
|
|
890
|
-
* Job ID
|
|
911
|
+
* 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.
|
|
891
912
|
* @format GUID
|
|
892
913
|
*/
|
|
893
914
|
jobId?: string;
|
|
@@ -897,7 +918,7 @@ interface SearchParticipantsRequest {
|
|
|
897
918
|
search?: CursorSearch;
|
|
898
919
|
/**
|
|
899
920
|
* Array of conditional fields to include in the response.
|
|
900
|
-
* Use RequestedFields.PROGRESS to include the progress field which
|
|
921
|
+
* Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
|
|
901
922
|
* @maxSize 1
|
|
902
923
|
*/
|
|
903
924
|
fields?: RequestedFieldsWithLiterals[];
|
|
@@ -1855,8 +1876,8 @@ declare function onParticipantUpdated(handler: (event: ParticipantUpdatedEnvelop
|
|
|
1855
1876
|
* Creates a participant.
|
|
1856
1877
|
*
|
|
1857
1878
|
* Returns an error if the member is already a participant in the specified program.
|
|
1858
|
-
* Use
|
|
1859
|
-
* @param participant - Participant to create
|
|
1879
|
+
* Use [Update Participant](https://dev.wix.com/docs/api-reference/business-management/online-programs/participants/update-participant) to modify existing participants.
|
|
1880
|
+
* @param participant - Participant to create.
|
|
1860
1881
|
* @public
|
|
1861
1882
|
* @documentationMaturity preview
|
|
1862
1883
|
* @requiredField participant
|
|
@@ -1866,7 +1887,7 @@ declare function onParticipantUpdated(handler: (event: ParticipantUpdatedEnvelop
|
|
|
1866
1887
|
* @requiredField participant.programId
|
|
1867
1888
|
* @permissionId online_programs:participants:v3:participant:create_participant
|
|
1868
1889
|
* @applicableIdentity APP
|
|
1869
|
-
* @returns Created participant
|
|
1890
|
+
* @returns Created participant.
|
|
1870
1891
|
* @fqn wix.onlineprograms.participants.v3.ParticipantsService.CreateParticipant
|
|
1871
1892
|
*/
|
|
1872
1893
|
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> & {
|
|
@@ -1875,7 +1896,7 @@ declare function createParticipant(participant: NonNullablePaths<Participant, `e
|
|
|
1875
1896
|
interface CreateParticipantOptions {
|
|
1876
1897
|
/**
|
|
1877
1898
|
* Array of conditional fields to include in the response.
|
|
1878
|
-
* 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.
|
|
1899
|
+
* 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.
|
|
1879
1900
|
* @maxSize 1
|
|
1880
1901
|
*/
|
|
1881
1902
|
fields?: RequestedFieldsWithLiterals[];
|
|
@@ -1896,7 +1917,7 @@ interface CreateParticipantOptions {
|
|
|
1896
1917
|
* @requiredField participant.revision
|
|
1897
1918
|
* @permissionId online_programs:participants:v3:participant:update_participant
|
|
1898
1919
|
* @applicableIdentity APP
|
|
1899
|
-
* @returns Updated participant
|
|
1920
|
+
* @returns Updated participant.
|
|
1900
1921
|
* @fqn wix.onlineprograms.participants.v3.ParticipantsService.UpdateParticipant
|
|
1901
1922
|
*/
|
|
1902
1923
|
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>>;
|
|
@@ -1908,17 +1929,20 @@ interface UpdateParticipant {
|
|
|
1908
1929
|
*/
|
|
1909
1930
|
_id?: string | null;
|
|
1910
1931
|
/**
|
|
1911
|
-
*
|
|
1932
|
+
* Revision number, which increments by 1 each time the participant is updated.
|
|
1933
|
+
* To prevent conflicting changes, the current revision must be specified when updating the participant.
|
|
1934
|
+
*
|
|
1935
|
+
* Ignored when creating a participant.
|
|
1912
1936
|
* @readonly
|
|
1913
1937
|
*/
|
|
1914
1938
|
revision?: string | null;
|
|
1915
1939
|
/**
|
|
1916
|
-
*
|
|
1940
|
+
* Date and time the participant was created.
|
|
1917
1941
|
* @readonly
|
|
1918
1942
|
*/
|
|
1919
1943
|
_createdDate?: Date | null;
|
|
1920
1944
|
/**
|
|
1921
|
-
* Date the participant was
|
|
1945
|
+
* Date and time the participant was updated.
|
|
1922
1946
|
* @readonly
|
|
1923
1947
|
*/
|
|
1924
1948
|
_updatedDate?: Date | null;
|
|
@@ -1935,17 +1959,19 @@ interface UpdateParticipant {
|
|
|
1935
1959
|
*/
|
|
1936
1960
|
programId?: string;
|
|
1937
1961
|
/**
|
|
1938
|
-
* Program completion progress. This field is conditional and must be explicitly requested
|
|
1962
|
+
* Program completion progress. This field is conditional and must be explicitly requested using the `fields` parameter.
|
|
1939
1963
|
* @readonly
|
|
1940
1964
|
*/
|
|
1941
1965
|
progress?: Progress;
|
|
1942
1966
|
/**
|
|
1943
|
-
*
|
|
1967
|
+
* Information about the participant's certificate.
|
|
1968
|
+
*
|
|
1969
|
+
* Returned only when a certificate has been issued to the participant.
|
|
1944
1970
|
* @readonly
|
|
1945
1971
|
*/
|
|
1946
1972
|
certificateInfo?: CertificateInfo;
|
|
1947
1973
|
/**
|
|
1948
|
-
*
|
|
1974
|
+
* Snapshot of the site member identified by `memberId`, copied from the Members API. It isn't the authoritative member record.
|
|
1949
1975
|
* @readonly
|
|
1950
1976
|
*/
|
|
1951
1977
|
member?: Member;
|
|
@@ -1966,7 +1992,11 @@ interface UpdateParticipant {
|
|
|
1966
1992
|
progressStatus?: ProgressStatusWithLiterals;
|
|
1967
1993
|
/** Additional information about the participant's enrollment and completion timeframe in the program. */
|
|
1968
1994
|
enrollmentInfo?: EnrollmentInfo;
|
|
1969
|
-
/**
|
|
1995
|
+
/**
|
|
1996
|
+
* Custom field data for the participant object.
|
|
1997
|
+
*
|
|
1998
|
+
* [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.
|
|
1999
|
+
*/
|
|
1970
2000
|
extendedFields?: ExtendedFields;
|
|
1971
2001
|
/** Tags for categorizing and organizing participants. */
|
|
1972
2002
|
tags?: Tags;
|
|
@@ -1974,7 +2004,7 @@ interface UpdateParticipant {
|
|
|
1974
2004
|
interface UpdateParticipantOptions {
|
|
1975
2005
|
/**
|
|
1976
2006
|
* Array of conditional fields to include in the response.
|
|
1977
|
-
* Use RequestedFields.PROGRESS to include the progress field which
|
|
2007
|
+
* Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
|
|
1978
2008
|
* @maxSize 1
|
|
1979
2009
|
*/
|
|
1980
2010
|
fields?: RequestedFieldsWithLiterals[];
|
|
@@ -1985,10 +2015,10 @@ interface UpdateParticipantOptions {
|
|
|
1985
2015
|
* All participants in a single bulk create request must belong to the same program.
|
|
1986
2016
|
* Returns an error if the member is already a participant in the specified program.
|
|
1987
2017
|
*
|
|
1988
|
-
* When `
|
|
1989
|
-
* When `
|
|
1990
|
-
* When `
|
|
1991
|
-
* Other pricing types (`FREE`, `ADDED_MANUALLY`)
|
|
2018
|
+
* When `pricingType` is `SINGLE_PAYMENT`, provide `singlePaymentDetails`.
|
|
2019
|
+
* When `pricingType` is `PAID_PLAN`, provide `paidPlanDetails`.
|
|
2020
|
+
* When `pricingType` is `FREE_COUPON`, provide `freeCouponDetails`.
|
|
2021
|
+
* Other pricing types (`FREE`, `ADDED_MANUALLY`) don't require details.
|
|
1992
2022
|
* @param participants - List of participants to create.
|
|
1993
2023
|
* @public
|
|
1994
2024
|
* @documentationMaturity preview
|
|
@@ -2005,11 +2035,11 @@ declare function bulkCreateParticipants(participants: NonNullablePaths<Participa
|
|
|
2005
2035
|
__applicationErrorsType?: BulkCreateParticipantsApplicationErrors;
|
|
2006
2036
|
}>;
|
|
2007
2037
|
interface BulkCreateParticipantsOptions {
|
|
2008
|
-
/** Whether to return
|
|
2038
|
+
/** Whether to return the created participants in the response. */
|
|
2009
2039
|
returnEntity?: boolean;
|
|
2010
2040
|
/**
|
|
2011
2041
|
* Array of conditional fields to include in the response.
|
|
2012
|
-
* Use RequestedFields.PROGRESS to include the progress field which
|
|
2042
|
+
* Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
|
|
2013
2043
|
* @maxSize 1
|
|
2014
2044
|
*/
|
|
2015
2045
|
fields?: RequestedFieldsWithLiterals[];
|
|
@@ -2070,7 +2100,7 @@ declare function issueCertificate(participantId: string, options?: IssueCertific
|
|
|
2070
2100
|
interface IssueCertificateOptions {
|
|
2071
2101
|
/**
|
|
2072
2102
|
* Array of conditional fields to include in the response.
|
|
2073
|
-
* Use RequestedFields.PROGRESS to include the progress field which
|
|
2103
|
+
* Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
|
|
2074
2104
|
* @maxSize 1
|
|
2075
2105
|
*/
|
|
2076
2106
|
fields?: RequestedFieldsWithLiterals[];
|
|
@@ -2085,6 +2115,7 @@ interface IssueCertificateOptions {
|
|
|
2085
2115
|
* @requiredField participantId
|
|
2086
2116
|
* @permissionId online_programs:participants:v3:participant:get_certificate_download_url
|
|
2087
2117
|
* @applicableIdentity APP
|
|
2118
|
+
* @applicableIdentity MEMBER
|
|
2088
2119
|
* @fqn wix.onlineprograms.participants.v3.ParticipantsService.GetCertificateDownloadUrl
|
|
2089
2120
|
*/
|
|
2090
2121
|
declare function getCertificateDownloadUrl(participantId: string): Promise<NonNullablePaths<GetCertificateDownloadUrlResponse, `downloadUrl`, 0> & {
|
|
@@ -2127,7 +2158,7 @@ declare function getParticipant(participantId: string, options?: GetParticipantO
|
|
|
2127
2158
|
interface GetParticipantOptions {
|
|
2128
2159
|
/**
|
|
2129
2160
|
* Array of conditional fields to include in the response.
|
|
2130
|
-
* Use RequestedFields.PROGRESS to include the progress field which
|
|
2161
|
+
* Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
|
|
2131
2162
|
* @maxSize 1
|
|
2132
2163
|
*/
|
|
2133
2164
|
fields?: RequestedFieldsWithLiterals[];
|
|
@@ -2152,7 +2183,7 @@ declare function queryParticipants(options?: QueryParticipantsOptions): Particip
|
|
|
2152
2183
|
interface QueryParticipantsOptions {
|
|
2153
2184
|
/**
|
|
2154
2185
|
* Array of conditional fields to include in the response.
|
|
2155
|
-
* Use RequestedFields.PROGRESS to include the progress field which
|
|
2186
|
+
* Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
|
|
2156
2187
|
* @maxSize 1
|
|
2157
2188
|
*/
|
|
2158
2189
|
fields?: RequestedFieldsWithLiterals[] | undefined;
|
|
@@ -2331,7 +2362,7 @@ declare function getAccessStatus(): Promise<NonNullablePaths<GetAccessStatusResp
|
|
|
2331
2362
|
* Adds or removes tags on multiple participants.
|
|
2332
2363
|
*
|
|
2333
2364
|
* Specify which tags to assign and which tags to unassign. At least one of `assignTags` or `unassignTags` must be provided.
|
|
2334
|
-
* @param participantIds -
|
|
2365
|
+
* @param participantIds - IDs of the participants to update tags for. Provide 1 to 100 IDs.
|
|
2335
2366
|
* @public
|
|
2336
2367
|
* @documentationMaturity preview
|
|
2337
2368
|
* @requiredField participantIds
|
|
@@ -2343,16 +2374,16 @@ declare function bulkUpdateParticipantTags(participantIds: string[], options?: B
|
|
|
2343
2374
|
__applicationErrorsType?: BulkUpdateParticipantTagsApplicationErrors;
|
|
2344
2375
|
}>;
|
|
2345
2376
|
interface BulkUpdateParticipantTagsOptions {
|
|
2346
|
-
/** Tags to assign to the
|
|
2377
|
+
/** Tags to assign to the participants. */
|
|
2347
2378
|
assignTags?: Tags;
|
|
2348
|
-
/** Tags to unassign from the
|
|
2379
|
+
/** Tags to unassign from the participants. */
|
|
2349
2380
|
unassignTags?: Tags;
|
|
2350
2381
|
}
|
|
2351
2382
|
/**
|
|
2352
2383
|
* Asynchronously updates tags on multiple participants that match the provided filter criteria.
|
|
2353
2384
|
*
|
|
2354
2385
|
* 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).
|
|
2355
|
-
* @param filter - WQL filter to
|
|
2386
|
+
* @param filter - WQL filter that selects the participants to update.
|
|
2356
2387
|
* @public
|
|
2357
2388
|
* @documentationMaturity preview
|
|
2358
2389
|
* @requiredField filter
|
|
@@ -2364,15 +2395,15 @@ declare function bulkUpdateParticipantTagsByFilter(filter: Record<string, any>,
|
|
|
2364
2395
|
__applicationErrorsType?: BulkUpdateParticipantTagsByFilterApplicationErrors;
|
|
2365
2396
|
}>;
|
|
2366
2397
|
interface BulkUpdateParticipantTagsByFilterOptions {
|
|
2367
|
-
/** Tags to assign to matching
|
|
2398
|
+
/** Tags to assign to matching participants. */
|
|
2368
2399
|
assignTags?: Tags;
|
|
2369
|
-
/** Tags to unassign from matching
|
|
2400
|
+
/** Tags to unassign from matching participants. */
|
|
2370
2401
|
unassignTags?: Tags;
|
|
2371
2402
|
}
|
|
2372
2403
|
interface SearchParticipantsOptions {
|
|
2373
2404
|
/**
|
|
2374
2405
|
* Array of conditional fields to include in the response.
|
|
2375
|
-
* Use RequestedFields.PROGRESS to include the progress field which
|
|
2406
|
+
* Use `RequestedFields.PROGRESS` to include the `progress` field, which isn't returned by default.
|
|
2376
2407
|
* @maxSize 1
|
|
2377
2408
|
*/
|
|
2378
2409
|
fields?: RequestedFieldsWithLiterals[];
|