@wix/auto_sdk_online-programs_online-program-participants 1.0.3 → 1.0.5
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.js.map +1 -1
- package/build/cjs/index.typings.d.ts +273 -45
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +103 -19
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +273 -45
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +103 -19
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +273 -45
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +103 -19
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +273 -45
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +103 -19
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -623,13 +623,23 @@ interface RemoveCouponFromOrderResponse {
|
|
|
623
623
|
total?: string;
|
|
624
624
|
}
|
|
625
625
|
interface ListParticipantStepsRequest {
|
|
626
|
-
/**
|
|
626
|
+
/**
|
|
627
|
+
* Challenge/Program (tenant) ID. GUID.
|
|
628
|
+
* @format GUID
|
|
629
|
+
*/
|
|
627
630
|
challengeId: string;
|
|
628
|
-
/**
|
|
631
|
+
/**
|
|
632
|
+
* Participant entity ID within the challenge. GUID.
|
|
633
|
+
* @format GUID
|
|
634
|
+
*/
|
|
629
635
|
participantId: string;
|
|
636
|
+
/** Optional parent step ID to scope to sub-steps. */
|
|
630
637
|
parentId?: string;
|
|
638
|
+
/** Optional absolute time window for time-based progress. */
|
|
631
639
|
timeInterval?: TimeInterval;
|
|
640
|
+
/** Optional local date window for date-based progress. */
|
|
632
641
|
dateInterval?: DateInterval;
|
|
642
|
+
/** Controls verbose description fields in response. */
|
|
633
643
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
634
644
|
}
|
|
635
645
|
declare enum DescriptionFieldSet {
|
|
@@ -641,6 +651,7 @@ declare enum DescriptionFieldSet {
|
|
|
641
651
|
/** @enumType */
|
|
642
652
|
type DescriptionFieldSetWithLiterals = DescriptionFieldSet | 'EXTENDED' | 'STANDARD';
|
|
643
653
|
interface ListParticipantStepsResponse {
|
|
654
|
+
/** Participant steps matching the query. */
|
|
644
655
|
steps?: ParticipantStep[];
|
|
645
656
|
}
|
|
646
657
|
interface ParticipantStep {
|
|
@@ -941,28 +952,52 @@ interface QuizSubmission {
|
|
|
941
952
|
passingGrade?: number | null;
|
|
942
953
|
}
|
|
943
954
|
interface GetParticipantStepRequest {
|
|
944
|
-
/**
|
|
955
|
+
/**
|
|
956
|
+
* Challenge/Program (tenant) ID. GUID.
|
|
957
|
+
* @format GUID
|
|
958
|
+
*/
|
|
945
959
|
challengeId: string;
|
|
946
|
-
/**
|
|
960
|
+
/**
|
|
961
|
+
* Participant entity ID. GUID.
|
|
962
|
+
* @format GUID
|
|
963
|
+
*/
|
|
947
964
|
participantId: string;
|
|
965
|
+
/** Step ID (program step or resolved instance). */
|
|
948
966
|
stepId: string;
|
|
967
|
+
/** Optional absolute time window for time-based progress. */
|
|
949
968
|
timeInterval?: TimeInterval;
|
|
969
|
+
/** Controls verbose description fields in response. */
|
|
950
970
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
951
971
|
}
|
|
952
972
|
interface GetParticipantStepResponse {
|
|
973
|
+
/** Requested participant step details. */
|
|
953
974
|
step?: ParticipantStep;
|
|
975
|
+
/** Immediate sub-steps for hierarchical steps (if any). */
|
|
954
976
|
subSteps?: ParticipantStep[];
|
|
955
977
|
}
|
|
956
978
|
interface ResolveParticipantStepRequest {
|
|
957
|
-
/**
|
|
979
|
+
/**
|
|
980
|
+
* Challenge/Program (tenant) ID. GUID.
|
|
981
|
+
* @format GUID
|
|
982
|
+
*/
|
|
958
983
|
challengeId: string;
|
|
959
|
-
/**
|
|
984
|
+
/**
|
|
985
|
+
* Participant entity ID. GUID.
|
|
986
|
+
* @format GUID
|
|
987
|
+
*/
|
|
960
988
|
participantId: string;
|
|
989
|
+
/** Target step ID to resolve. */
|
|
961
990
|
stepId: string;
|
|
991
|
+
/** Resolution action to apply. */
|
|
962
992
|
status?: ResolutionStatusWithLiterals;
|
|
993
|
+
/** Optional instructor feedback payload. */
|
|
963
994
|
feedback?: Feedback;
|
|
995
|
+
/** Optional idempotency key for action tracking. */
|
|
964
996
|
actionId?: string;
|
|
965
|
-
/**
|
|
997
|
+
/**
|
|
998
|
+
* Optional quiz submission to attach. GUID.
|
|
999
|
+
* @format GUID
|
|
1000
|
+
*/
|
|
966
1001
|
quizSubmissionId?: string | null;
|
|
967
1002
|
}
|
|
968
1003
|
declare enum ResolutionStatus {
|
|
@@ -974,8 +1009,12 @@ declare enum ResolutionStatus {
|
|
|
974
1009
|
/** @enumType */
|
|
975
1010
|
type ResolutionStatusWithLiterals = ResolutionStatus | 'COMPLETED' | 'SKIPPED' | 'UNDO' | 'QUIZ_SUBMIT';
|
|
976
1011
|
interface ResolveParticipantStepResponse {
|
|
1012
|
+
/** Updated participant step after resolution. */
|
|
977
1013
|
step?: ParticipantStep;
|
|
978
|
-
/**
|
|
1014
|
+
/**
|
|
1015
|
+
* Server-generated action id. GUID.
|
|
1016
|
+
* @format GUID
|
|
1017
|
+
*/
|
|
979
1018
|
actionId?: string;
|
|
980
1019
|
}
|
|
981
1020
|
interface StepResolved {
|
|
@@ -1024,39 +1063,71 @@ declare enum Status {
|
|
|
1024
1063
|
/** @enumType */
|
|
1025
1064
|
type StatusWithLiterals = Status | 'COMPLETED' | 'FAILED';
|
|
1026
1065
|
interface UpdateStepFeedbackRequest {
|
|
1027
|
-
/**
|
|
1066
|
+
/**
|
|
1067
|
+
* Challenge/Program (tenant) ID. GUID.
|
|
1068
|
+
* @format GUID
|
|
1069
|
+
*/
|
|
1028
1070
|
challengeId: string;
|
|
1029
|
-
/**
|
|
1071
|
+
/**
|
|
1072
|
+
* Participant entity ID. GUID.
|
|
1073
|
+
* @format GUID
|
|
1074
|
+
*/
|
|
1030
1075
|
participantId: string;
|
|
1076
|
+
/** Target step ID to update feedback for. */
|
|
1031
1077
|
stepId: string;
|
|
1078
|
+
/** New feedback payload. */
|
|
1032
1079
|
feedback?: Feedback;
|
|
1033
|
-
/**
|
|
1080
|
+
/**
|
|
1081
|
+
* Idempotency key for feedback update. GUID.
|
|
1082
|
+
* @format GUID
|
|
1083
|
+
*/
|
|
1034
1084
|
actionId?: string;
|
|
1035
1085
|
}
|
|
1036
1086
|
interface UpdateStepFeedbackResponse {
|
|
1087
|
+
/** Participant step with updated feedback. */
|
|
1037
1088
|
step?: ParticipantStep;
|
|
1038
|
-
/**
|
|
1089
|
+
/**
|
|
1090
|
+
* Server-generated action id. GUID.
|
|
1091
|
+
* @format GUID
|
|
1092
|
+
*/
|
|
1039
1093
|
actionId?: string;
|
|
1040
1094
|
}
|
|
1041
1095
|
interface GetMediaUploadInfoRequest {
|
|
1042
|
-
/**
|
|
1096
|
+
/**
|
|
1097
|
+
* Challenge/Program (tenant) ID. GUID.
|
|
1098
|
+
* @format GUID
|
|
1099
|
+
*/
|
|
1043
1100
|
challengeId: string;
|
|
1044
|
-
/**
|
|
1101
|
+
/**
|
|
1102
|
+
* Participant entity ID. GUID.
|
|
1103
|
+
* @format GUID
|
|
1104
|
+
*/
|
|
1045
1105
|
participantId: string;
|
|
1106
|
+
/** Original filename to derive content-type and path. */
|
|
1046
1107
|
fileName?: string;
|
|
1047
1108
|
}
|
|
1048
1109
|
interface GetMediaUploadInfoResponse {
|
|
1110
|
+
/** Pre-signed URL to upload media. */
|
|
1049
1111
|
uploadUrl?: string;
|
|
1112
|
+
/** Token required by media service for upload. */
|
|
1050
1113
|
uploadToken?: string;
|
|
1051
1114
|
}
|
|
1052
1115
|
interface ListParticipantSectionsRequest {
|
|
1053
|
-
/**
|
|
1116
|
+
/**
|
|
1117
|
+
* Challenge/Program (tenant) ID. GUID.
|
|
1118
|
+
* @format GUID
|
|
1119
|
+
*/
|
|
1054
1120
|
challengeId: string;
|
|
1055
|
-
/**
|
|
1121
|
+
/**
|
|
1122
|
+
* Participant entity ID. GUID.
|
|
1123
|
+
* @format GUID
|
|
1124
|
+
*/
|
|
1056
1125
|
participantId: string;
|
|
1126
|
+
/** Controls verbose description fields in response. */
|
|
1057
1127
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
1058
1128
|
}
|
|
1059
1129
|
interface ListParticipantSectionsResponse {
|
|
1130
|
+
/** Participant sections for the program. */
|
|
1060
1131
|
sections?: ParticipantSection[];
|
|
1061
1132
|
}
|
|
1062
1133
|
interface ParticipantSection {
|
|
@@ -1116,15 +1187,26 @@ interface Progress {
|
|
|
1116
1187
|
nCompletedSteps?: string;
|
|
1117
1188
|
}
|
|
1118
1189
|
interface GetParticipantSectionRequest {
|
|
1119
|
-
/**
|
|
1190
|
+
/**
|
|
1191
|
+
* Challenge/Program (tenant) ID. GUID.
|
|
1192
|
+
* @format GUID
|
|
1193
|
+
*/
|
|
1120
1194
|
challengeId: string;
|
|
1121
|
-
/**
|
|
1195
|
+
/**
|
|
1196
|
+
* Participant entity ID. GUID.
|
|
1197
|
+
* @format GUID
|
|
1198
|
+
*/
|
|
1122
1199
|
participantId: string;
|
|
1123
|
-
/**
|
|
1200
|
+
/**
|
|
1201
|
+
* Section ID to fetch. GUID.
|
|
1202
|
+
* @format GUID
|
|
1203
|
+
*/
|
|
1124
1204
|
sectionId: string;
|
|
1205
|
+
/** Controls verbose description fields in response. */
|
|
1125
1206
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
1126
1207
|
}
|
|
1127
1208
|
interface GetParticipantSectionResponse {
|
|
1209
|
+
/** Requested participant section details. */
|
|
1128
1210
|
section?: ParticipantSection;
|
|
1129
1211
|
}
|
|
1130
1212
|
interface MyProgramRequest {
|
|
@@ -1139,6 +1221,7 @@ interface MyProgramStepRequest {
|
|
|
1139
1221
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
1140
1222
|
}
|
|
1141
1223
|
interface MyProgramStepResponse {
|
|
1224
|
+
/** Viewer's participant step derived for the program step. */
|
|
1142
1225
|
participantStep?: ParticipantStep;
|
|
1143
1226
|
}
|
|
1144
1227
|
interface MyProgramSectionRequest {
|
|
@@ -1147,6 +1230,7 @@ interface MyProgramSectionRequest {
|
|
|
1147
1230
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
1148
1231
|
}
|
|
1149
1232
|
interface MyProgramSectionResponse {
|
|
1233
|
+
/** Viewer's participant section derived for the program section. */
|
|
1150
1234
|
participantSection?: ParticipantSection;
|
|
1151
1235
|
}
|
|
1152
1236
|
interface DomainEvent extends DomainEventBodyOneOf {
|