@timeback/caliper 0.1.7-beta.20260311174536 → 0.2.0
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/dist/index.d.ts +2 -2
- package/dist/index.js +222 -226
- package/dist/public-types.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -960,10 +960,10 @@ declare const CaliperListEventsParams = z
|
|
|
960
960
|
.object({
|
|
961
961
|
limit: z.number().int().positive().optional(),
|
|
962
962
|
offset: z.number().int().min(0).optional(),
|
|
963
|
-
sensor:
|
|
963
|
+
sensor: NonEmptyString.optional(),
|
|
964
964
|
startDate: IsoDateTimeString.optional(),
|
|
965
965
|
endDate: IsoDateTimeString.optional(),
|
|
966
|
-
actorId:
|
|
966
|
+
actorId: NonEmptyString.optional(),
|
|
967
967
|
actorEmail: z.email().optional(),
|
|
968
968
|
})
|
|
969
969
|
.strict()
|
package/dist/index.js
CHANGED
|
@@ -286,6 +286,7 @@ import { z } from "zod/v4";
|
|
|
286
286
|
var IsoDateTimeRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
|
|
287
287
|
var IsoDateTimeString = z.string().min(1).regex(IsoDateTimeRegex, "must be a valid ISO 8601 datetime");
|
|
288
288
|
var IsoDateString = z.string().min(1).regex(/^\d{4}-\d{2}-\d{2}$/, "must be a valid ISO 8601 date (YYYY-MM-DD)");
|
|
289
|
+
var NonEmptyString = z.string().trim().min(1);
|
|
289
290
|
var TimebackSubject = z.enum([
|
|
290
291
|
"Reading",
|
|
291
292
|
"Language",
|
|
@@ -534,22 +535,22 @@ var CaliperEvent = z2.object({
|
|
|
534
535
|
extensions: z2.record(z2.string(), z2.unknown()).optional()
|
|
535
536
|
}).strict();
|
|
536
537
|
var CaliperEnvelopeInput = z2.object({
|
|
537
|
-
sensor:
|
|
538
|
+
sensor: NonEmptyString,
|
|
538
539
|
sendTime: IsoDateTimeString,
|
|
539
540
|
dataVersion: z2.literal("http://purl.imsglobal.org/ctx/caliper/v1p2"),
|
|
540
541
|
data: z2.array(CaliperEvent).min(1, "data must contain at least one event")
|
|
541
542
|
});
|
|
542
543
|
var CaliperSendEventsInput = z2.object({
|
|
543
|
-
sensor:
|
|
544
|
+
sensor: NonEmptyString,
|
|
544
545
|
events: z2.array(CaliperEvent).min(1, "events must contain at least one event")
|
|
545
546
|
});
|
|
546
547
|
var CaliperListEventsParams = z2.object({
|
|
547
548
|
limit: z2.number().int().positive().optional(),
|
|
548
549
|
offset: z2.number().int().min(0).optional(),
|
|
549
|
-
sensor:
|
|
550
|
+
sensor: NonEmptyString.optional(),
|
|
550
551
|
startDate: IsoDateTimeString.optional(),
|
|
551
552
|
endDate: IsoDateTimeString.optional(),
|
|
552
|
-
actorId:
|
|
553
|
+
actorId: NonEmptyString.optional(),
|
|
553
554
|
actorEmail: z2.email().optional()
|
|
554
555
|
}).strict();
|
|
555
556
|
var AssessmentItemObject = z2.object({
|
|
@@ -606,9 +607,9 @@ var QuestionGradedInput = z2.object({
|
|
|
606
607
|
// ../../types/src/zod/webhooks.ts
|
|
607
608
|
import { z as z3 } from "zod/v4";
|
|
608
609
|
var WebhookCreateInput = z3.object({
|
|
609
|
-
name:
|
|
610
|
+
name: NonEmptyString,
|
|
610
611
|
targetUrl: z3.url("targetUrl must be a valid URL"),
|
|
611
|
-
secret:
|
|
612
|
+
secret: NonEmptyString,
|
|
612
613
|
active: z3.boolean(),
|
|
613
614
|
sensor: z3.string().nullable().optional(),
|
|
614
615
|
description: z3.string().nullable().optional()
|
|
@@ -630,16 +631,15 @@ var WebhookFilterOperation = z3.enum([
|
|
|
630
631
|
"regexp"
|
|
631
632
|
]);
|
|
632
633
|
var WebhookFilterCreateInput = z3.object({
|
|
633
|
-
webhookId:
|
|
634
|
-
filterKey:
|
|
635
|
-
filterValue:
|
|
634
|
+
webhookId: NonEmptyString,
|
|
635
|
+
filterKey: NonEmptyString,
|
|
636
|
+
filterValue: NonEmptyString,
|
|
636
637
|
filterType: WebhookFilterType,
|
|
637
638
|
filterOperator: WebhookFilterOperation,
|
|
638
639
|
active: z3.boolean()
|
|
639
640
|
}).strict();
|
|
640
641
|
// ../../types/src/zod/case.ts
|
|
641
642
|
import { z as z4 } from "zod/v4";
|
|
642
|
-
var NonEmptyString = z4.string().trim().min(1);
|
|
643
643
|
var UuidString = z4.string().uuid();
|
|
644
644
|
var InputNodeURISchema = z4.object({
|
|
645
645
|
title: NonEmptyString,
|
|
@@ -733,15 +733,15 @@ var ClrProfileSchema = z5.object({
|
|
|
733
733
|
email: z5.string().email().optional()
|
|
734
734
|
});
|
|
735
735
|
var ClrProofSchema = z5.object({
|
|
736
|
-
type:
|
|
737
|
-
proofPurpose:
|
|
738
|
-
verificationMethod:
|
|
736
|
+
type: NonEmptyString,
|
|
737
|
+
proofPurpose: NonEmptyString,
|
|
738
|
+
verificationMethod: NonEmptyString,
|
|
739
739
|
created: z5.iso.datetime(),
|
|
740
|
-
proofValue:
|
|
740
|
+
proofValue: NonEmptyString,
|
|
741
741
|
cryptosuite: z5.string().optional()
|
|
742
742
|
});
|
|
743
743
|
var ClrCredentialSchemaSchema = z5.object({
|
|
744
|
-
id:
|
|
744
|
+
id: NonEmptyString,
|
|
745
745
|
type: z5.literal("1EdTechJsonSchemaValidator2019")
|
|
746
746
|
});
|
|
747
747
|
var AchievementCriteriaSchema = z5.object({
|
|
@@ -751,8 +751,8 @@ var AchievementCriteriaSchema = z5.object({
|
|
|
751
751
|
var AchievementSchema = z5.object({
|
|
752
752
|
id: z5.url(),
|
|
753
753
|
type: z5.array(z5.string()).min(1).refine((arr) => arr.includes("Achievement"), 'type must include "Achievement"'),
|
|
754
|
-
name:
|
|
755
|
-
description:
|
|
754
|
+
name: NonEmptyString,
|
|
755
|
+
description: NonEmptyString,
|
|
756
756
|
criteria: AchievementCriteriaSchema,
|
|
757
757
|
image: ClrImageSchema.optional(),
|
|
758
758
|
achievementType: z5.string().optional(),
|
|
@@ -760,8 +760,8 @@ var AchievementSchema = z5.object({
|
|
|
760
760
|
});
|
|
761
761
|
var IdentityObjectSchema = z5.object({
|
|
762
762
|
type: z5.literal("IdentityObject"),
|
|
763
|
-
identityHash:
|
|
764
|
-
identityType:
|
|
763
|
+
identityHash: NonEmptyString,
|
|
764
|
+
identityType: NonEmptyString,
|
|
765
765
|
hashed: z5.boolean(),
|
|
766
766
|
salt: z5.string().optional()
|
|
767
767
|
});
|
|
@@ -806,7 +806,7 @@ var ClrCredentialInput = z5.object({
|
|
|
806
806
|
id: z5.url(),
|
|
807
807
|
type: z5.array(z5.string()).min(1).refine((arr) => arr.includes("VerifiableCredential") && arr.includes("ClrCredential"), 'type must include "VerifiableCredential" and "ClrCredential"'),
|
|
808
808
|
issuer: ClrProfileSchema,
|
|
809
|
-
name:
|
|
809
|
+
name: NonEmptyString,
|
|
810
810
|
description: z5.string().optional(),
|
|
811
811
|
validFrom: z5.iso.datetime(),
|
|
812
812
|
validUntil: z5.iso.datetime().optional(),
|
|
@@ -983,10 +983,9 @@ var EduBridgeEnrollmentAnalyticsResponse = z7.object({
|
|
|
983
983
|
facts: EduBridgeAnalyticsFacts,
|
|
984
984
|
factsByApp: z7.unknown()
|
|
985
985
|
});
|
|
986
|
-
var NonEmptyString2 = z7.string().trim().min(1);
|
|
987
986
|
var EmailOrStudentId = z7.object({
|
|
988
987
|
email: z7.email().optional(),
|
|
989
|
-
studentId:
|
|
988
|
+
studentId: NonEmptyString.optional()
|
|
990
989
|
}).superRefine((value, ctx) => {
|
|
991
990
|
if (!value.email && !value.studentId) {
|
|
992
991
|
ctx.addIssue({
|
|
@@ -1002,16 +1001,16 @@ var EmailOrStudentId = z7.object({
|
|
|
1002
1001
|
}
|
|
1003
1002
|
});
|
|
1004
1003
|
var SubjectTrackInput = z7.object({
|
|
1005
|
-
subject:
|
|
1006
|
-
grade:
|
|
1007
|
-
courseId:
|
|
1008
|
-
orgSourcedId:
|
|
1004
|
+
subject: NonEmptyString,
|
|
1005
|
+
grade: NonEmptyString,
|
|
1006
|
+
courseId: NonEmptyString,
|
|
1007
|
+
orgSourcedId: NonEmptyString.optional()
|
|
1009
1008
|
});
|
|
1010
1009
|
var EdubridgeListEnrollmentsParams = z7.object({
|
|
1011
|
-
userId:
|
|
1010
|
+
userId: NonEmptyString
|
|
1012
1011
|
});
|
|
1013
1012
|
var EdubridgeEnrollOptions = z7.object({
|
|
1014
|
-
sourcedId:
|
|
1013
|
+
sourcedId: NonEmptyString.optional(),
|
|
1015
1014
|
role: EnrollmentRole.optional(),
|
|
1016
1015
|
beginDate: IsoDateTimeString.optional(),
|
|
1017
1016
|
metadata: z7.record(z7.string(), z7.unknown()).optional()
|
|
@@ -1025,7 +1024,7 @@ var EdubridgeUsersListParams = z7.object({
|
|
|
1025
1024
|
filter: z7.string().optional(),
|
|
1026
1025
|
search: z7.string().optional(),
|
|
1027
1026
|
roles: z7.array(OneRosterUserRole).min(1),
|
|
1028
|
-
orgSourcedIds: z7.array(
|
|
1027
|
+
orgSourcedIds: z7.array(NonEmptyString).optional()
|
|
1029
1028
|
});
|
|
1030
1029
|
var EdubridgeActivityParams = EmailOrStudentId.extend({
|
|
1031
1030
|
startDate: EdubridgeDateStringInput,
|
|
@@ -1037,31 +1036,30 @@ var EdubridgeWeeklyFactsParams = EmailOrStudentId.extend({
|
|
|
1037
1036
|
timezone: z7.string().optional()
|
|
1038
1037
|
});
|
|
1039
1038
|
var EdubridgeEnrollmentFactsParams = z7.object({
|
|
1040
|
-
enrollmentId:
|
|
1039
|
+
enrollmentId: NonEmptyString,
|
|
1041
1040
|
startDate: EdubridgeDateStringInput.optional(),
|
|
1042
1041
|
endDate: EdubridgeDateStringInput.optional(),
|
|
1043
1042
|
timezone: z7.string().optional()
|
|
1044
1043
|
});
|
|
1045
1044
|
// ../../types/src/zod/masterytrack.ts
|
|
1046
1045
|
import { z as z8 } from "zod/v4";
|
|
1047
|
-
var NonEmptyString3 = z8.string().trim().min(1);
|
|
1048
1046
|
var MasteryTrackAuthorizerInput = z8.object({
|
|
1049
1047
|
email: z8.email()
|
|
1050
1048
|
});
|
|
1051
1049
|
var MasteryTrackInventorySearchParams = z8.object({
|
|
1052
|
-
name:
|
|
1053
|
-
timeback_id:
|
|
1054
|
-
grade:
|
|
1055
|
-
subject:
|
|
1050
|
+
name: NonEmptyString.optional(),
|
|
1051
|
+
timeback_id: NonEmptyString.optional(),
|
|
1052
|
+
grade: NonEmptyString.optional(),
|
|
1053
|
+
subject: NonEmptyString.optional(),
|
|
1056
1054
|
all: z8.boolean().optional()
|
|
1057
1055
|
});
|
|
1058
1056
|
var MasteryTrackAssignmentInput = z8.object({
|
|
1059
1057
|
student_email: z8.email(),
|
|
1060
|
-
timeback_id:
|
|
1061
|
-
subject:
|
|
1058
|
+
timeback_id: NonEmptyString.optional(),
|
|
1059
|
+
subject: NonEmptyString.optional(),
|
|
1062
1060
|
grade_rank: z8.number().int().min(0).max(12).optional(),
|
|
1063
|
-
assessment_line_item_sourced_id:
|
|
1064
|
-
assessment_result_sourced_id:
|
|
1061
|
+
assessment_line_item_sourced_id: NonEmptyString.optional(),
|
|
1062
|
+
assessment_result_sourced_id: NonEmptyString.optional()
|
|
1065
1063
|
}).superRefine((value, ctx) => {
|
|
1066
1064
|
const hasTimebackId = !!value.timeback_id;
|
|
1067
1065
|
const hasSubject = !!value.subject;
|
|
@@ -1098,8 +1096,8 @@ var MasteryTrackAssignmentInput = z8.object({
|
|
|
1098
1096
|
var MasteryTrackInvalidateAssignmentInput = z8.object({
|
|
1099
1097
|
student_email: z8.email(),
|
|
1100
1098
|
assignment_id: z8.number().int().positive().optional(),
|
|
1101
|
-
timeback_id:
|
|
1102
|
-
subject:
|
|
1099
|
+
timeback_id: NonEmptyString.optional(),
|
|
1100
|
+
subject: NonEmptyString.optional(),
|
|
1103
1101
|
grade_rank: z8.number().int().min(0).max(12).optional()
|
|
1104
1102
|
}).superRefine((value, ctx) => {
|
|
1105
1103
|
const byAssignment = value.assignment_id !== undefined;
|
|
@@ -1122,11 +1120,10 @@ var MasteryTrackInvalidateAssignmentInput = z8.object({
|
|
|
1122
1120
|
});
|
|
1123
1121
|
// ../../types/src/zod/oneroster.ts
|
|
1124
1122
|
import { z as z9 } from "zod/v4";
|
|
1125
|
-
var NonEmptyString4 = z9.string().min(1);
|
|
1126
1123
|
var Status = z9.enum(["active", "tobedeleted"]);
|
|
1127
1124
|
var Metadata = z9.record(z9.string(), z9.unknown()).nullable().optional();
|
|
1128
1125
|
var Ref = z9.object({
|
|
1129
|
-
sourcedId:
|
|
1126
|
+
sourcedId: NonEmptyString,
|
|
1130
1127
|
type: z9.string().optional(),
|
|
1131
1128
|
href: z9.string().optional()
|
|
1132
1129
|
}).strict();
|
|
@@ -1141,58 +1138,58 @@ var OneRosterUserRoleInput = z9.object({
|
|
|
1141
1138
|
endDate: OneRosterDateString.optional()
|
|
1142
1139
|
}).strict();
|
|
1143
1140
|
var OneRosterUserCreateInput = z9.object({
|
|
1144
|
-
sourcedId:
|
|
1141
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string"),
|
|
1145
1142
|
status: Status.optional(),
|
|
1146
1143
|
enabledUser: z9.boolean(),
|
|
1147
|
-
givenName:
|
|
1148
|
-
familyName:
|
|
1149
|
-
middleName:
|
|
1150
|
-
username:
|
|
1144
|
+
givenName: NonEmptyString.describe("givenName must be a non-empty string"),
|
|
1145
|
+
familyName: NonEmptyString.describe("familyName must be a non-empty string"),
|
|
1146
|
+
middleName: NonEmptyString.optional(),
|
|
1147
|
+
username: NonEmptyString.optional(),
|
|
1151
1148
|
email: z9.email(),
|
|
1152
1149
|
roles: z9.array(OneRosterUserRoleInput).min(1, "roles must include at least one role"),
|
|
1153
1150
|
userIds: z9.array(z9.object({
|
|
1154
|
-
type:
|
|
1155
|
-
identifier:
|
|
1151
|
+
type: NonEmptyString,
|
|
1152
|
+
identifier: NonEmptyString
|
|
1156
1153
|
}).strict()).optional(),
|
|
1157
1154
|
agents: z9.array(Ref).optional(),
|
|
1158
1155
|
grades: z9.array(TimebackGrade).optional(),
|
|
1159
|
-
identifier:
|
|
1160
|
-
sms:
|
|
1161
|
-
phone:
|
|
1162
|
-
pronouns:
|
|
1163
|
-
password:
|
|
1156
|
+
identifier: NonEmptyString.optional(),
|
|
1157
|
+
sms: NonEmptyString.optional(),
|
|
1158
|
+
phone: NonEmptyString.optional(),
|
|
1159
|
+
pronouns: NonEmptyString.optional(),
|
|
1160
|
+
password: NonEmptyString.optional(),
|
|
1164
1161
|
metadata: Metadata
|
|
1165
1162
|
}).strict();
|
|
1166
1163
|
var OneRosterCourseCreateInput = z9.object({
|
|
1167
|
-
sourcedId:
|
|
1164
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string").optional(),
|
|
1168
1165
|
status: Status.optional(),
|
|
1169
|
-
title:
|
|
1166
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1170
1167
|
org: Ref,
|
|
1171
|
-
courseCode:
|
|
1168
|
+
courseCode: NonEmptyString.optional(),
|
|
1172
1169
|
subjects: z9.array(TimebackSubject).optional(),
|
|
1173
1170
|
grades: z9.array(TimebackGrade).optional(),
|
|
1174
|
-
level:
|
|
1171
|
+
level: NonEmptyString.optional(),
|
|
1175
1172
|
metadata: Metadata
|
|
1176
1173
|
}).strict();
|
|
1177
1174
|
var OneRosterClassCreateInput = z9.object({
|
|
1178
|
-
sourcedId:
|
|
1175
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string").optional(),
|
|
1179
1176
|
status: Status.optional(),
|
|
1180
|
-
title:
|
|
1177
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1181
1178
|
terms: z9.array(Ref).min(1, "terms must have at least one item"),
|
|
1182
1179
|
course: Ref,
|
|
1183
1180
|
org: Ref,
|
|
1184
|
-
classCode:
|
|
1181
|
+
classCode: NonEmptyString.optional(),
|
|
1185
1182
|
classType: z9.enum(["homeroom", "scheduled"]).optional(),
|
|
1186
|
-
location:
|
|
1183
|
+
location: NonEmptyString.optional(),
|
|
1187
1184
|
grades: z9.array(TimebackGrade).optional(),
|
|
1188
1185
|
subjects: z9.array(TimebackSubject).optional(),
|
|
1189
|
-
subjectCodes: z9.array(
|
|
1190
|
-
periods: z9.array(
|
|
1186
|
+
subjectCodes: z9.array(NonEmptyString).optional(),
|
|
1187
|
+
periods: z9.array(NonEmptyString).optional(),
|
|
1191
1188
|
metadata: Metadata
|
|
1192
1189
|
}).strict();
|
|
1193
1190
|
var StringBoolean = z9.enum(["true", "false"]);
|
|
1194
1191
|
var OneRosterEnrollmentCreateInput = z9.object({
|
|
1195
|
-
sourcedId:
|
|
1192
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string").optional(),
|
|
1196
1193
|
status: Status.optional(),
|
|
1197
1194
|
user: Ref,
|
|
1198
1195
|
class: Ref,
|
|
@@ -1204,15 +1201,15 @@ var OneRosterEnrollmentCreateInput = z9.object({
|
|
|
1204
1201
|
metadata: Metadata
|
|
1205
1202
|
}).strict();
|
|
1206
1203
|
var OneRosterCategoryCreateInput = z9.object({
|
|
1207
|
-
sourcedId:
|
|
1208
|
-
title:
|
|
1204
|
+
sourcedId: NonEmptyString.optional(),
|
|
1205
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1209
1206
|
status: Status,
|
|
1210
1207
|
weight: z9.number().nullable().optional(),
|
|
1211
1208
|
metadata: Metadata
|
|
1212
1209
|
}).strict();
|
|
1213
1210
|
var OneRosterLineItemCreateInput = z9.object({
|
|
1214
|
-
sourcedId:
|
|
1215
|
-
title:
|
|
1211
|
+
sourcedId: NonEmptyString.optional(),
|
|
1212
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1216
1213
|
class: Ref,
|
|
1217
1214
|
school: Ref,
|
|
1218
1215
|
category: Ref,
|
|
@@ -1226,7 +1223,7 @@ var OneRosterLineItemCreateInput = z9.object({
|
|
|
1226
1223
|
metadata: Metadata
|
|
1227
1224
|
}).strict();
|
|
1228
1225
|
var OneRosterResultCreateInput = z9.object({
|
|
1229
|
-
sourcedId:
|
|
1226
|
+
sourcedId: NonEmptyString.optional(),
|
|
1230
1227
|
lineItem: Ref,
|
|
1231
1228
|
student: Ref,
|
|
1232
1229
|
class: Ref.optional(),
|
|
@@ -1245,15 +1242,15 @@ var OneRosterResultCreateInput = z9.object({
|
|
|
1245
1242
|
metadata: Metadata
|
|
1246
1243
|
}).strict();
|
|
1247
1244
|
var OneRosterScoreScaleCreateInput = z9.object({
|
|
1248
|
-
sourcedId:
|
|
1249
|
-
title:
|
|
1245
|
+
sourcedId: NonEmptyString.optional(),
|
|
1246
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1250
1247
|
status: Status.optional(),
|
|
1251
1248
|
type: z9.string(),
|
|
1252
1249
|
class: Ref,
|
|
1253
1250
|
course: Ref.nullable().optional(),
|
|
1254
1251
|
scoreScaleValue: z9.array(z9.object({
|
|
1255
|
-
itemValueLHS:
|
|
1256
|
-
itemValueRHS:
|
|
1252
|
+
itemValueLHS: NonEmptyString,
|
|
1253
|
+
itemValueRHS: NonEmptyString,
|
|
1257
1254
|
value: z9.string().optional(),
|
|
1258
1255
|
description: z9.string().optional()
|
|
1259
1256
|
}).strict()),
|
|
@@ -1262,10 +1259,10 @@ var OneRosterScoreScaleCreateInput = z9.object({
|
|
|
1262
1259
|
metadata: Metadata
|
|
1263
1260
|
}).strict();
|
|
1264
1261
|
var OneRosterAssessmentLineItemCreateInput = z9.object({
|
|
1265
|
-
sourcedId:
|
|
1262
|
+
sourcedId: NonEmptyString.optional(),
|
|
1266
1263
|
status: Status.optional(),
|
|
1267
1264
|
dateLastModified: IsoDateTimeString.optional(),
|
|
1268
|
-
title:
|
|
1265
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1269
1266
|
description: z9.string().nullable().optional(),
|
|
1270
1267
|
class: Ref.nullable().optional(),
|
|
1271
1268
|
parentAssessmentLineItem: Ref.nullable().optional(),
|
|
@@ -1291,7 +1288,7 @@ var LearningObjectiveScoreSetSchema = z9.array(z9.object({
|
|
|
1291
1288
|
learningObjectiveResults: z9.array(LearningObjectiveResult)
|
|
1292
1289
|
}));
|
|
1293
1290
|
var OneRosterAssessmentResultCreateInput = z9.object({
|
|
1294
|
-
sourcedId:
|
|
1291
|
+
sourcedId: NonEmptyString.optional(),
|
|
1295
1292
|
status: Status.optional(),
|
|
1296
1293
|
dateLastModified: IsoDateTimeString.optional(),
|
|
1297
1294
|
metadata: Metadata,
|
|
@@ -1317,53 +1314,53 @@ var OneRosterAssessmentResultCreateInput = z9.object({
|
|
|
1317
1314
|
missing: z9.string().nullable().optional()
|
|
1318
1315
|
}).strict();
|
|
1319
1316
|
var OneRosterOrgCreateInput = z9.object({
|
|
1320
|
-
sourcedId:
|
|
1317
|
+
sourcedId: NonEmptyString.optional(),
|
|
1321
1318
|
status: Status.optional(),
|
|
1322
|
-
name:
|
|
1319
|
+
name: NonEmptyString.describe("name must be a non-empty string"),
|
|
1323
1320
|
type: OrganizationType,
|
|
1324
|
-
identifier:
|
|
1321
|
+
identifier: NonEmptyString.optional(),
|
|
1325
1322
|
parent: Ref.optional(),
|
|
1326
1323
|
metadata: Metadata
|
|
1327
1324
|
}).strict();
|
|
1328
1325
|
var OneRosterSchoolCreateInput = z9.object({
|
|
1329
|
-
sourcedId:
|
|
1326
|
+
sourcedId: NonEmptyString.optional(),
|
|
1330
1327
|
status: Status.optional(),
|
|
1331
|
-
name:
|
|
1328
|
+
name: NonEmptyString.describe("name must be a non-empty string"),
|
|
1332
1329
|
type: z9.literal("school").optional(),
|
|
1333
|
-
identifier:
|
|
1330
|
+
identifier: NonEmptyString.optional(),
|
|
1334
1331
|
parent: Ref.optional(),
|
|
1335
1332
|
metadata: Metadata
|
|
1336
1333
|
}).strict();
|
|
1337
1334
|
var OneRosterAcademicSessionCreateInput = z9.object({
|
|
1338
|
-
sourcedId:
|
|
1335
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string"),
|
|
1339
1336
|
status: Status,
|
|
1340
|
-
title:
|
|
1337
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1341
1338
|
startDate: OneRosterDateString,
|
|
1342
1339
|
endDate: OneRosterDateString,
|
|
1343
1340
|
type: z9.enum(["gradingPeriod", "semester", "schoolYear", "term"]),
|
|
1344
|
-
schoolYear:
|
|
1341
|
+
schoolYear: NonEmptyString.describe("schoolYear must be a non-empty string"),
|
|
1345
1342
|
org: Ref,
|
|
1346
1343
|
parent: Ref.optional(),
|
|
1347
1344
|
children: z9.array(Ref).optional(),
|
|
1348
1345
|
metadata: Metadata
|
|
1349
1346
|
}).strict();
|
|
1350
1347
|
var OneRosterComponentResourceCreateInput = z9.object({
|
|
1351
|
-
sourcedId:
|
|
1352
|
-
title:
|
|
1348
|
+
sourcedId: NonEmptyString.optional(),
|
|
1349
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1353
1350
|
courseComponent: Ref,
|
|
1354
1351
|
resource: Ref,
|
|
1355
1352
|
status: Status,
|
|
1356
1353
|
metadata: Metadata
|
|
1357
1354
|
}).strict();
|
|
1358
1355
|
var OneRosterCourseComponentCreateInput = z9.object({
|
|
1359
|
-
sourcedId:
|
|
1360
|
-
title:
|
|
1356
|
+
sourcedId: NonEmptyString.optional(),
|
|
1357
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1361
1358
|
course: Ref,
|
|
1362
1359
|
status: Status,
|
|
1363
1360
|
metadata: Metadata
|
|
1364
1361
|
}).strict();
|
|
1365
1362
|
var OneRosterEnrollInput = z9.object({
|
|
1366
|
-
sourcedId:
|
|
1363
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string"),
|
|
1367
1364
|
role: z9.enum(["student", "teacher"]),
|
|
1368
1365
|
primary: StringBoolean.optional(),
|
|
1369
1366
|
beginDate: IsoDateString.optional(),
|
|
@@ -1371,17 +1368,17 @@ var OneRosterEnrollInput = z9.object({
|
|
|
1371
1368
|
metadata: Metadata
|
|
1372
1369
|
}).strict();
|
|
1373
1370
|
var OneRosterAgentInput = z9.object({
|
|
1374
|
-
agentSourcedId:
|
|
1371
|
+
agentSourcedId: NonEmptyString.describe("agentSourcedId must be a non-empty string")
|
|
1375
1372
|
}).strict();
|
|
1376
1373
|
var OneRosterCredentialInput = z9.object({
|
|
1377
|
-
applicationName:
|
|
1374
|
+
applicationName: NonEmptyString.describe("applicationName must be a non-empty string"),
|
|
1378
1375
|
credentials: z9.object({
|
|
1379
|
-
username:
|
|
1380
|
-
password:
|
|
1376
|
+
username: NonEmptyString.describe("username must be a non-empty string"),
|
|
1377
|
+
password: NonEmptyString.describe("password must be a non-empty string")
|
|
1381
1378
|
})
|
|
1382
1379
|
}).strict();
|
|
1383
1380
|
var OneRosterDemographicsCreateInput = z9.object({
|
|
1384
|
-
sourcedId:
|
|
1381
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string")
|
|
1385
1382
|
}).loose();
|
|
1386
1383
|
var CommonResourceMetadataSchema = z9.object({
|
|
1387
1384
|
type: ResourceType,
|
|
@@ -1453,9 +1450,9 @@ var ResourceMetadataSchema = z9.discriminatedUnion("type", [
|
|
|
1453
1450
|
AssessmentBankMetadataSchema
|
|
1454
1451
|
]);
|
|
1455
1452
|
var OneRosterResourceCreateInput = z9.object({
|
|
1456
|
-
sourcedId:
|
|
1457
|
-
title:
|
|
1458
|
-
vendorResourceId:
|
|
1453
|
+
sourcedId: NonEmptyString.optional(),
|
|
1454
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1455
|
+
vendorResourceId: NonEmptyString.describe("vendorResourceId must be a non-empty string"),
|
|
1459
1456
|
roles: z9.array(z9.enum(["primary", "secondary"])).optional(),
|
|
1460
1457
|
importance: z9.enum(["primary", "secondary"]).optional(),
|
|
1461
1458
|
vendorId: z9.string().optional(),
|
|
@@ -1464,18 +1461,18 @@ var OneRosterResourceCreateInput = z9.object({
|
|
|
1464
1461
|
metadata: ResourceMetadataSchema.nullable().optional()
|
|
1465
1462
|
}).strict();
|
|
1466
1463
|
var CourseStructureItem = z9.object({
|
|
1467
|
-
url:
|
|
1468
|
-
skillCode:
|
|
1469
|
-
lessonCode:
|
|
1470
|
-
title:
|
|
1471
|
-
"unit-title":
|
|
1472
|
-
status:
|
|
1464
|
+
url: NonEmptyString.describe("courseStructure.url must be a non-empty string"),
|
|
1465
|
+
skillCode: NonEmptyString.describe("courseStructure.skillCode must be a non-empty string"),
|
|
1466
|
+
lessonCode: NonEmptyString.describe("courseStructure.lessonCode must be a non-empty string"),
|
|
1467
|
+
title: NonEmptyString.describe("courseStructure.title must be a non-empty string"),
|
|
1468
|
+
"unit-title": NonEmptyString.describe("courseStructure.unit-title must be a non-empty string"),
|
|
1469
|
+
status: NonEmptyString.describe("courseStructure.status must be a non-empty string"),
|
|
1473
1470
|
xp: z9.number()
|
|
1474
1471
|
}).loose();
|
|
1475
1472
|
var OneRosterCourseStructureInput = z9.object({
|
|
1476
1473
|
course: z9.object({
|
|
1477
|
-
sourcedId:
|
|
1478
|
-
title:
|
|
1474
|
+
sourcedId: NonEmptyString.describe("course.sourcedId must be a non-empty string").optional(),
|
|
1475
|
+
title: NonEmptyString.describe("course.title must be a non-empty string"),
|
|
1479
1476
|
org: Ref,
|
|
1480
1477
|
status: Status,
|
|
1481
1478
|
metadata: Metadata
|
|
@@ -1488,7 +1485,6 @@ var OneRosterBulkResultItem = z9.object({
|
|
|
1488
1485
|
var OneRosterBulkResultsInput = z9.array(OneRosterBulkResultItem).min(1, "results must have at least one item");
|
|
1489
1486
|
// ../../types/src/zod/powerpath.ts
|
|
1490
1487
|
import { z as z10 } from "zod/v4";
|
|
1491
|
-
var NonEmptyString5 = z10.string().trim().min(1);
|
|
1492
1488
|
var ToolProvider = z10.enum(["edulastic", "mastery-track"]);
|
|
1493
1489
|
var LessonTypeRequired = z10.enum([
|
|
1494
1490
|
"powerpath-100",
|
|
@@ -1501,14 +1497,14 @@ var LessonTypeRequired = z10.enum([
|
|
|
1501
1497
|
var GradeArray = z10.array(TimebackGrade);
|
|
1502
1498
|
var ResourceMetadata = z10.record(z10.string(), z10.unknown()).optional();
|
|
1503
1499
|
var ExternalTestBase = z10.object({
|
|
1504
|
-
courseId:
|
|
1505
|
-
lessonTitle:
|
|
1506
|
-
launchUrl:
|
|
1500
|
+
courseId: NonEmptyString,
|
|
1501
|
+
lessonTitle: NonEmptyString.optional(),
|
|
1502
|
+
launchUrl: NonEmptyString.optional(),
|
|
1507
1503
|
toolProvider: ToolProvider,
|
|
1508
|
-
unitTitle:
|
|
1509
|
-
courseComponentSourcedId:
|
|
1510
|
-
vendorId:
|
|
1511
|
-
description:
|
|
1504
|
+
unitTitle: NonEmptyString.optional(),
|
|
1505
|
+
courseComponentSourcedId: NonEmptyString.optional(),
|
|
1506
|
+
vendorId: NonEmptyString.optional(),
|
|
1507
|
+
description: NonEmptyString.optional(),
|
|
1512
1508
|
resourceMetadata: ResourceMetadata.nullable().optional(),
|
|
1513
1509
|
grades: GradeArray
|
|
1514
1510
|
});
|
|
@@ -1518,26 +1514,26 @@ var ExternalTestOut = ExternalTestBase.extend({
|
|
|
1518
1514
|
});
|
|
1519
1515
|
var ExternalPlacement = ExternalTestBase.extend({
|
|
1520
1516
|
lessonType: z10.literal("placement"),
|
|
1521
|
-
courseIdOnFail:
|
|
1517
|
+
courseIdOnFail: NonEmptyString.nullable().optional(),
|
|
1522
1518
|
xp: z10.number().optional()
|
|
1523
1519
|
});
|
|
1524
1520
|
var InternalTestBase = z10.object({
|
|
1525
|
-
courseId:
|
|
1521
|
+
courseId: NonEmptyString,
|
|
1526
1522
|
lessonType: LessonTypeRequired,
|
|
1527
|
-
lessonTitle:
|
|
1528
|
-
unitTitle:
|
|
1529
|
-
courseComponentSourcedId:
|
|
1523
|
+
lessonTitle: NonEmptyString.optional(),
|
|
1524
|
+
unitTitle: NonEmptyString.optional(),
|
|
1525
|
+
courseComponentSourcedId: NonEmptyString.optional(),
|
|
1530
1526
|
resourceMetadata: ResourceMetadata.nullable().optional(),
|
|
1531
1527
|
xp: z10.number().optional(),
|
|
1532
1528
|
grades: GradeArray.optional(),
|
|
1533
|
-
courseIdOnFail:
|
|
1529
|
+
courseIdOnFail: NonEmptyString.nullable().optional()
|
|
1534
1530
|
});
|
|
1535
1531
|
var PowerPathCreateInternalTestInput = z10.discriminatedUnion("testType", [
|
|
1536
1532
|
InternalTestBase.extend({
|
|
1537
1533
|
testType: z10.literal("qti"),
|
|
1538
1534
|
qti: z10.object({
|
|
1539
1535
|
url: z10.url(),
|
|
1540
|
-
title:
|
|
1536
|
+
title: NonEmptyString.optional(),
|
|
1541
1537
|
metadata: z10.record(z10.string(), z10.unknown()).optional()
|
|
1542
1538
|
})
|
|
1543
1539
|
}),
|
|
@@ -1546,28 +1542,28 @@ var PowerPathCreateInternalTestInput = z10.discriminatedUnion("testType", [
|
|
|
1546
1542
|
assessmentBank: z10.object({
|
|
1547
1543
|
resources: z10.array(z10.object({
|
|
1548
1544
|
url: z10.url(),
|
|
1549
|
-
title:
|
|
1545
|
+
title: NonEmptyString.optional(),
|
|
1550
1546
|
metadata: z10.record(z10.string(), z10.unknown()).optional()
|
|
1551
1547
|
})).min(1)
|
|
1552
1548
|
})
|
|
1553
1549
|
})
|
|
1554
1550
|
]);
|
|
1555
1551
|
var PowerPathCreateNewAttemptInput = z10.object({
|
|
1556
|
-
student:
|
|
1557
|
-
lesson:
|
|
1552
|
+
student: NonEmptyString,
|
|
1553
|
+
lesson: NonEmptyString
|
|
1558
1554
|
});
|
|
1559
1555
|
var PowerPathFinalStudentAssessmentResponseInput = z10.object({
|
|
1560
|
-
student:
|
|
1561
|
-
lesson:
|
|
1556
|
+
student: NonEmptyString,
|
|
1557
|
+
lesson: NonEmptyString
|
|
1562
1558
|
});
|
|
1563
1559
|
var PowerPathLessonPlansCreateInput = z10.object({
|
|
1564
|
-
courseId:
|
|
1565
|
-
userId:
|
|
1566
|
-
classId:
|
|
1560
|
+
courseId: NonEmptyString,
|
|
1561
|
+
userId: NonEmptyString,
|
|
1562
|
+
classId: NonEmptyString.optional()
|
|
1567
1563
|
});
|
|
1568
1564
|
var LessonPlanTarget = z10.object({
|
|
1569
1565
|
type: z10.enum(["component", "resource"]),
|
|
1570
|
-
id:
|
|
1566
|
+
id: NonEmptyString
|
|
1571
1567
|
});
|
|
1572
1568
|
var PowerPathLessonPlanOperationInput = z10.union([
|
|
1573
1569
|
z10.object({
|
|
@@ -1580,8 +1576,8 @@ var PowerPathLessonPlanOperationInput = z10.union([
|
|
|
1580
1576
|
z10.object({
|
|
1581
1577
|
type: z10.literal("add-custom-resource"),
|
|
1582
1578
|
payload: z10.object({
|
|
1583
|
-
resource_id:
|
|
1584
|
-
parent_component_id:
|
|
1579
|
+
resource_id: NonEmptyString,
|
|
1580
|
+
parent_component_id: NonEmptyString,
|
|
1585
1581
|
skipped: z10.boolean().optional()
|
|
1586
1582
|
})
|
|
1587
1583
|
}),
|
|
@@ -1589,14 +1585,14 @@ var PowerPathLessonPlanOperationInput = z10.union([
|
|
|
1589
1585
|
type: z10.literal("move-item-before"),
|
|
1590
1586
|
payload: z10.object({
|
|
1591
1587
|
target: LessonPlanTarget,
|
|
1592
|
-
reference_id:
|
|
1588
|
+
reference_id: NonEmptyString
|
|
1593
1589
|
})
|
|
1594
1590
|
}),
|
|
1595
1591
|
z10.object({
|
|
1596
1592
|
type: z10.literal("move-item-after"),
|
|
1597
1593
|
payload: z10.object({
|
|
1598
1594
|
target: LessonPlanTarget,
|
|
1599
|
-
reference_id:
|
|
1595
|
+
reference_id: NonEmptyString
|
|
1600
1596
|
})
|
|
1601
1597
|
}),
|
|
1602
1598
|
z10.object({
|
|
@@ -1615,107 +1611,107 @@ var PowerPathLessonPlanOperationInput = z10.union([
|
|
|
1615
1611
|
type: z10.literal("change-item-parent"),
|
|
1616
1612
|
payload: z10.object({
|
|
1617
1613
|
target: LessonPlanTarget,
|
|
1618
|
-
new_parent_id:
|
|
1614
|
+
new_parent_id: NonEmptyString,
|
|
1619
1615
|
position: z10.enum(["start", "end"]).optional()
|
|
1620
1616
|
})
|
|
1621
1617
|
})
|
|
1622
1618
|
]);
|
|
1623
1619
|
var PowerPathLessonPlanOperationsInput = z10.object({
|
|
1624
1620
|
operation: PowerPathLessonPlanOperationInput,
|
|
1625
|
-
reason:
|
|
1621
|
+
reason: NonEmptyString.optional()
|
|
1626
1622
|
});
|
|
1627
1623
|
var PowerPathLessonPlanUpdateStudentItemResponseInput = z10.object({
|
|
1628
|
-
studentId:
|
|
1629
|
-
componentResourceId:
|
|
1624
|
+
studentId: NonEmptyString,
|
|
1625
|
+
componentResourceId: NonEmptyString,
|
|
1630
1626
|
result: z10.object({
|
|
1631
1627
|
status: z10.enum(["active", "tobedeleted"]),
|
|
1632
1628
|
metadata: z10.record(z10.string(), z10.unknown()).optional(),
|
|
1633
1629
|
score: z10.number().optional(),
|
|
1634
|
-
textScore:
|
|
1630
|
+
textScore: NonEmptyString.optional(),
|
|
1635
1631
|
scoreDate: z10.string().datetime(),
|
|
1636
1632
|
scorePercentile: z10.number().optional(),
|
|
1637
1633
|
scoreStatus: ScoreStatus,
|
|
1638
|
-
comment:
|
|
1634
|
+
comment: NonEmptyString.optional(),
|
|
1639
1635
|
learningObjectiveSet: z10.array(z10.object({
|
|
1640
|
-
source:
|
|
1636
|
+
source: NonEmptyString,
|
|
1641
1637
|
learningObjectiveResults: z10.array(z10.object({
|
|
1642
|
-
learningObjectiveId:
|
|
1638
|
+
learningObjectiveId: NonEmptyString,
|
|
1643
1639
|
score: z10.number().optional(),
|
|
1644
|
-
textScore:
|
|
1640
|
+
textScore: NonEmptyString.optional()
|
|
1645
1641
|
}))
|
|
1646
1642
|
})).optional(),
|
|
1647
|
-
inProgress:
|
|
1648
|
-
incomplete:
|
|
1649
|
-
late:
|
|
1650
|
-
missing:
|
|
1643
|
+
inProgress: NonEmptyString.optional(),
|
|
1644
|
+
incomplete: NonEmptyString.optional(),
|
|
1645
|
+
late: NonEmptyString.optional(),
|
|
1646
|
+
missing: NonEmptyString.optional()
|
|
1651
1647
|
})
|
|
1652
1648
|
});
|
|
1653
1649
|
var PowerPathMakeExternalTestAssignmentInput = z10.object({
|
|
1654
|
-
student:
|
|
1655
|
-
lesson:
|
|
1656
|
-
applicationName:
|
|
1657
|
-
testId:
|
|
1650
|
+
student: NonEmptyString,
|
|
1651
|
+
lesson: NonEmptyString,
|
|
1652
|
+
applicationName: NonEmptyString.optional(),
|
|
1653
|
+
testId: NonEmptyString.optional(),
|
|
1658
1654
|
skipCourseEnrollment: z10.boolean().optional()
|
|
1659
1655
|
});
|
|
1660
1656
|
var PowerPathPlacementResetUserPlacementInput = z10.object({
|
|
1661
|
-
student:
|
|
1657
|
+
student: NonEmptyString,
|
|
1662
1658
|
subject: TimebackSubject
|
|
1663
1659
|
});
|
|
1664
1660
|
var PowerPathResetAttemptInput = z10.object({
|
|
1665
|
-
student:
|
|
1666
|
-
lesson:
|
|
1661
|
+
student: NonEmptyString,
|
|
1662
|
+
lesson: NonEmptyString
|
|
1667
1663
|
});
|
|
1668
1664
|
var PowerPathScreeningResetSessionInput = z10.object({
|
|
1669
|
-
userId:
|
|
1665
|
+
userId: NonEmptyString
|
|
1670
1666
|
});
|
|
1671
1667
|
var PowerPathScreeningAssignTestInput = z10.object({
|
|
1672
|
-
userId:
|
|
1668
|
+
userId: NonEmptyString,
|
|
1673
1669
|
subject: z10.enum(["Math", "Reading", "Language", "Science"])
|
|
1674
1670
|
});
|
|
1675
1671
|
var PowerPathTestAssignmentsCreateInput = z10.object({
|
|
1676
|
-
student:
|
|
1672
|
+
student: NonEmptyString,
|
|
1677
1673
|
subject: TimebackSubject,
|
|
1678
1674
|
grade: TimebackGrade,
|
|
1679
|
-
testName:
|
|
1675
|
+
testName: NonEmptyString.optional()
|
|
1680
1676
|
});
|
|
1681
1677
|
var PowerPathTestAssignmentsUpdateInput = z10.object({
|
|
1682
|
-
testName:
|
|
1678
|
+
testName: NonEmptyString
|
|
1683
1679
|
});
|
|
1684
1680
|
var PowerPathTestAssignmentItemInput = z10.object({
|
|
1685
|
-
student:
|
|
1681
|
+
student: NonEmptyString,
|
|
1686
1682
|
subject: TimebackSubject,
|
|
1687
1683
|
grade: TimebackGrade,
|
|
1688
|
-
testName:
|
|
1684
|
+
testName: NonEmptyString.optional()
|
|
1689
1685
|
});
|
|
1690
1686
|
var PowerPathTestAssignmentsBulkInput = z10.object({
|
|
1691
1687
|
items: z10.array(PowerPathTestAssignmentItemInput)
|
|
1692
1688
|
});
|
|
1693
1689
|
var PowerPathTestAssignmentsImportInput = z10.object({
|
|
1694
1690
|
spreadsheetUrl: z10.url(),
|
|
1695
|
-
sheet:
|
|
1691
|
+
sheet: NonEmptyString
|
|
1696
1692
|
});
|
|
1697
1693
|
var PowerPathTestAssignmentsListParams = z10.object({
|
|
1698
|
-
student:
|
|
1694
|
+
student: NonEmptyString,
|
|
1699
1695
|
status: z10.enum(["assigned", "in_progress", "completed", "failed", "expired", "cancelled"]).optional(),
|
|
1700
|
-
subject:
|
|
1696
|
+
subject: NonEmptyString.optional(),
|
|
1701
1697
|
grade: TimebackGrade.optional(),
|
|
1702
1698
|
limit: z10.number().int().positive().max(3000).optional(),
|
|
1703
1699
|
offset: z10.number().int().nonnegative().optional()
|
|
1704
1700
|
});
|
|
1705
1701
|
var PowerPathTestAssignmentsAdminParams = z10.object({
|
|
1706
|
-
student:
|
|
1702
|
+
student: NonEmptyString.optional(),
|
|
1707
1703
|
status: z10.enum(["assigned", "in_progress", "completed", "failed", "expired", "cancelled"]).optional(),
|
|
1708
|
-
subject:
|
|
1704
|
+
subject: NonEmptyString.optional(),
|
|
1709
1705
|
grade: TimebackGrade.optional(),
|
|
1710
1706
|
limit: z10.number().int().positive().max(3000).optional(),
|
|
1711
1707
|
offset: z10.number().int().nonnegative().optional()
|
|
1712
1708
|
});
|
|
1713
1709
|
var PowerPathUpdateStudentQuestionResponseInput = z10.object({
|
|
1714
|
-
student:
|
|
1715
|
-
question:
|
|
1716
|
-
response: z10.union([
|
|
1717
|
-
responses: z10.record(z10.string(), z10.union([
|
|
1718
|
-
lesson:
|
|
1710
|
+
student: NonEmptyString,
|
|
1711
|
+
question: NonEmptyString,
|
|
1712
|
+
response: z10.union([NonEmptyString, z10.array(NonEmptyString)]).optional(),
|
|
1713
|
+
responses: z10.record(z10.string(), z10.union([NonEmptyString, z10.array(NonEmptyString)])).optional(),
|
|
1714
|
+
lesson: NonEmptyString,
|
|
1719
1715
|
rendererOutcomes: z10.object({
|
|
1720
1716
|
score: z10.number(),
|
|
1721
1717
|
maxScore: z10.number().min(0),
|
|
@@ -1732,29 +1728,29 @@ var PowerPathUpdateStudentQuestionResponseInput = z10.object({
|
|
|
1732
1728
|
return data;
|
|
1733
1729
|
});
|
|
1734
1730
|
var PowerPathGetAssessmentProgressParams = z10.object({
|
|
1735
|
-
student:
|
|
1736
|
-
lesson:
|
|
1731
|
+
student: NonEmptyString,
|
|
1732
|
+
lesson: NonEmptyString,
|
|
1737
1733
|
attempt: z10.number().int().positive().optional()
|
|
1738
1734
|
});
|
|
1739
1735
|
var PowerPathGetNextQuestionParams = z10.object({
|
|
1740
|
-
student:
|
|
1741
|
-
lesson:
|
|
1736
|
+
student: NonEmptyString,
|
|
1737
|
+
lesson: NonEmptyString
|
|
1742
1738
|
});
|
|
1743
1739
|
var PowerPathGetAttemptsParams = z10.object({
|
|
1744
|
-
student:
|
|
1745
|
-
lesson:
|
|
1740
|
+
student: NonEmptyString,
|
|
1741
|
+
lesson: NonEmptyString
|
|
1746
1742
|
});
|
|
1747
1743
|
var PowerPathTestOutParams = z10.object({
|
|
1748
|
-
student:
|
|
1749
|
-
course:
|
|
1744
|
+
student: NonEmptyString,
|
|
1745
|
+
course: NonEmptyString
|
|
1750
1746
|
});
|
|
1751
1747
|
var PowerPathImportExternalTestAssignmentResultsParams = z10.object({
|
|
1752
|
-
student:
|
|
1753
|
-
lesson:
|
|
1754
|
-
applicationName:
|
|
1748
|
+
student: NonEmptyString,
|
|
1749
|
+
lesson: NonEmptyString,
|
|
1750
|
+
applicationName: NonEmptyString.optional()
|
|
1755
1751
|
});
|
|
1756
1752
|
var PowerPathPlacementQueryParams = z10.object({
|
|
1757
|
-
student:
|
|
1753
|
+
student: NonEmptyString,
|
|
1758
1754
|
subject: TimebackSubject
|
|
1759
1755
|
});
|
|
1760
1756
|
var PowerPathSyllabusQueryParams = z10.object({
|
|
@@ -1805,18 +1801,18 @@ var QtiCorrectResponse = z11.object({
|
|
|
1805
1801
|
value: z11.array(z11.string())
|
|
1806
1802
|
}).strict();
|
|
1807
1803
|
var QtiResponseDeclaration = z11.object({
|
|
1808
|
-
identifier:
|
|
1804
|
+
identifier: NonEmptyString,
|
|
1809
1805
|
cardinality: QtiCardinality,
|
|
1810
1806
|
baseType: QtiBaseType.optional(),
|
|
1811
1807
|
correctResponse: QtiCorrectResponse
|
|
1812
1808
|
}).strict();
|
|
1813
1809
|
var QtiOutcomeDeclaration = z11.object({
|
|
1814
|
-
identifier:
|
|
1810
|
+
identifier: NonEmptyString,
|
|
1815
1811
|
cardinality: QtiCardinality,
|
|
1816
1812
|
baseType: QtiBaseType.optional()
|
|
1817
1813
|
}).strict();
|
|
1818
1814
|
var QtiTestOutcomeDeclaration = z11.object({
|
|
1819
|
-
identifier:
|
|
1815
|
+
identifier: NonEmptyString,
|
|
1820
1816
|
cardinality: QtiCardinality.optional(),
|
|
1821
1817
|
baseType: QtiBaseType,
|
|
1822
1818
|
normalMaximum: z11.number().optional(),
|
|
@@ -1826,19 +1822,19 @@ var QtiTestOutcomeDeclaration = z11.object({
|
|
|
1826
1822
|
}).strict().optional()
|
|
1827
1823
|
}).strict();
|
|
1828
1824
|
var QtiInlineFeedback = z11.object({
|
|
1829
|
-
outcomeIdentifier:
|
|
1830
|
-
variableIdentifier:
|
|
1825
|
+
outcomeIdentifier: NonEmptyString,
|
|
1826
|
+
variableIdentifier: NonEmptyString
|
|
1831
1827
|
}).strict();
|
|
1832
1828
|
var QtiResponseProcessing = z11.object({
|
|
1833
1829
|
templateType: z11.enum(["match_correct", "map_response"]),
|
|
1834
|
-
responseDeclarationIdentifier:
|
|
1835
|
-
outcomeIdentifier:
|
|
1836
|
-
correctResponseIdentifier:
|
|
1837
|
-
incorrectResponseIdentifier:
|
|
1830
|
+
responseDeclarationIdentifier: NonEmptyString,
|
|
1831
|
+
outcomeIdentifier: NonEmptyString,
|
|
1832
|
+
correctResponseIdentifier: NonEmptyString,
|
|
1833
|
+
incorrectResponseIdentifier: NonEmptyString,
|
|
1838
1834
|
inlineFeedback: QtiInlineFeedback.optional()
|
|
1839
1835
|
}).strict();
|
|
1840
1836
|
var QtiLearningObjectiveSet = z11.object({
|
|
1841
|
-
source:
|
|
1837
|
+
source: NonEmptyString,
|
|
1842
1838
|
learningObjectiveIds: z11.array(z11.string())
|
|
1843
1839
|
}).strict();
|
|
1844
1840
|
var QtiItemMetadata = z11.object({
|
|
@@ -1848,32 +1844,32 @@ var QtiItemMetadata = z11.object({
|
|
|
1848
1844
|
learningObjectiveSet: z11.array(QtiLearningObjectiveSet).optional()
|
|
1849
1845
|
}).loose();
|
|
1850
1846
|
var QtiModalFeedback = z11.object({
|
|
1851
|
-
outcomeIdentifier:
|
|
1852
|
-
identifier:
|
|
1847
|
+
outcomeIdentifier: NonEmptyString,
|
|
1848
|
+
identifier: NonEmptyString,
|
|
1853
1849
|
showHide: QtiShowHide,
|
|
1854
1850
|
content: z11.string(),
|
|
1855
1851
|
title: z11.string()
|
|
1856
1852
|
}).strict();
|
|
1857
1853
|
var QtiFeedbackInline = z11.object({
|
|
1858
|
-
outcomeIdentifier:
|
|
1859
|
-
identifier:
|
|
1854
|
+
outcomeIdentifier: NonEmptyString,
|
|
1855
|
+
identifier: NonEmptyString,
|
|
1860
1856
|
showHide: QtiShowHide,
|
|
1861
1857
|
content: z11.string(),
|
|
1862
1858
|
class: z11.array(z11.string())
|
|
1863
1859
|
}).strict();
|
|
1864
1860
|
var QtiFeedbackBlock = z11.object({
|
|
1865
|
-
outcomeIdentifier:
|
|
1866
|
-
identifier:
|
|
1861
|
+
outcomeIdentifier: NonEmptyString,
|
|
1862
|
+
identifier: NonEmptyString,
|
|
1867
1863
|
showHide: QtiShowHide,
|
|
1868
1864
|
content: z11.string(),
|
|
1869
1865
|
class: z11.array(z11.string())
|
|
1870
1866
|
}).strict();
|
|
1871
1867
|
var QtiStylesheet = z11.object({
|
|
1872
|
-
href:
|
|
1873
|
-
type:
|
|
1868
|
+
href: NonEmptyString,
|
|
1869
|
+
type: NonEmptyString
|
|
1874
1870
|
}).strict();
|
|
1875
1871
|
var QtiCatalogInfo = z11.object({
|
|
1876
|
-
id:
|
|
1872
|
+
id: NonEmptyString,
|
|
1877
1873
|
support: z11.string(),
|
|
1878
1874
|
content: z11.string()
|
|
1879
1875
|
}).strict();
|
|
@@ -1885,12 +1881,12 @@ var QtiPaginationParams = z11.object({
|
|
|
1885
1881
|
}).strict();
|
|
1886
1882
|
var QtiAssessmentItemXmlCreateInput = z11.object({
|
|
1887
1883
|
format: z11.string().pipe(z11.literal("xml")),
|
|
1888
|
-
xml:
|
|
1884
|
+
xml: NonEmptyString,
|
|
1889
1885
|
metadata: QtiItemMetadata.optional()
|
|
1890
1886
|
}).strict();
|
|
1891
1887
|
var QtiAssessmentItemJsonCreateInput = z11.object({
|
|
1892
|
-
identifier:
|
|
1893
|
-
title:
|
|
1888
|
+
identifier: NonEmptyString,
|
|
1889
|
+
title: NonEmptyString,
|
|
1894
1890
|
type: QtiAssessmentItemType,
|
|
1895
1891
|
qtiVersion: z11.string().optional(),
|
|
1896
1892
|
timeDependent: z11.boolean().optional(),
|
|
@@ -1908,8 +1904,8 @@ var QtiAssessmentItemCreateInput = z11.union([
|
|
|
1908
1904
|
QtiAssessmentItemJsonCreateInput
|
|
1909
1905
|
]);
|
|
1910
1906
|
var QtiAssessmentItemUpdateInput = z11.object({
|
|
1911
|
-
identifier:
|
|
1912
|
-
title:
|
|
1907
|
+
identifier: NonEmptyString.optional(),
|
|
1908
|
+
title: NonEmptyString,
|
|
1913
1909
|
type: QtiAssessmentItemType,
|
|
1914
1910
|
qtiVersion: z11.string().optional(),
|
|
1915
1911
|
timeDependent: z11.boolean().optional(),
|
|
@@ -1925,17 +1921,17 @@ var QtiAssessmentItemUpdateInput = z11.object({
|
|
|
1925
1921
|
content: z11.record(z11.string(), z11.unknown())
|
|
1926
1922
|
}).strict();
|
|
1927
1923
|
var QtiAssessmentItemProcessResponseInput = z11.object({
|
|
1928
|
-
identifier:
|
|
1924
|
+
identifier: NonEmptyString,
|
|
1929
1925
|
response: z11.union([z11.string(), z11.array(z11.string())])
|
|
1930
1926
|
}).strict();
|
|
1931
1927
|
var QtiAssessmentItemRef = z11.object({
|
|
1932
|
-
identifier:
|
|
1933
|
-
href:
|
|
1928
|
+
identifier: NonEmptyString,
|
|
1929
|
+
href: NonEmptyString,
|
|
1934
1930
|
sequence: z11.number().int().positive().optional()
|
|
1935
1931
|
}).strict();
|
|
1936
1932
|
var QtiAssessmentSection = z11.object({
|
|
1937
|
-
identifier:
|
|
1938
|
-
title:
|
|
1933
|
+
identifier: NonEmptyString,
|
|
1934
|
+
title: NonEmptyString,
|
|
1939
1935
|
visible: z11.boolean(),
|
|
1940
1936
|
required: z11.boolean().optional(),
|
|
1941
1937
|
fixed: z11.boolean().optional(),
|
|
@@ -1943,7 +1939,7 @@ var QtiAssessmentSection = z11.object({
|
|
|
1943
1939
|
"qti-assessment-item-ref": z11.array(QtiAssessmentItemRef).optional()
|
|
1944
1940
|
}).strict();
|
|
1945
1941
|
var QtiTestPart = z11.object({
|
|
1946
|
-
identifier:
|
|
1942
|
+
identifier: NonEmptyString,
|
|
1947
1943
|
navigationMode: z11.string().pipe(QtiNavigationMode),
|
|
1948
1944
|
submissionMode: z11.string().pipe(QtiSubmissionMode),
|
|
1949
1945
|
"qti-assessment-section": z11.array(QtiAssessmentSection)
|
|
@@ -1955,8 +1951,8 @@ var QtiAssessmentTestMetadataUpdateInput = z11.object({
|
|
|
1955
1951
|
metadata: z11.record(z11.string(), z11.unknown()).optional()
|
|
1956
1952
|
}).strict();
|
|
1957
1953
|
var QtiAssessmentTestCreateInput = z11.object({
|
|
1958
|
-
identifier:
|
|
1959
|
-
title:
|
|
1954
|
+
identifier: NonEmptyString,
|
|
1955
|
+
title: NonEmptyString,
|
|
1960
1956
|
qtiVersion: z11.string().optional(),
|
|
1961
1957
|
toolName: z11.string().optional(),
|
|
1962
1958
|
toolVersion: z11.string().optional(),
|
|
@@ -1968,8 +1964,8 @@ var QtiAssessmentTestCreateInput = z11.object({
|
|
|
1968
1964
|
"qti-outcome-declaration": z11.array(QtiTestOutcomeDeclaration).optional()
|
|
1969
1965
|
}).strict();
|
|
1970
1966
|
var QtiAssessmentTestUpdateInput = z11.object({
|
|
1971
|
-
identifier:
|
|
1972
|
-
title:
|
|
1967
|
+
identifier: NonEmptyString.optional(),
|
|
1968
|
+
title: NonEmptyString,
|
|
1973
1969
|
qtiVersion: z11.string().optional(),
|
|
1974
1970
|
toolName: z11.string().optional(),
|
|
1975
1971
|
toolVersion: z11.string().optional(),
|
|
@@ -1981,8 +1977,8 @@ var QtiAssessmentTestUpdateInput = z11.object({
|
|
|
1981
1977
|
"qti-outcome-declaration": z11.array(QtiTestOutcomeDeclaration).optional()
|
|
1982
1978
|
}).strict();
|
|
1983
1979
|
var QtiStimulusCreateInput = z11.object({
|
|
1984
|
-
identifier:
|
|
1985
|
-
title:
|
|
1980
|
+
identifier: NonEmptyString,
|
|
1981
|
+
title: NonEmptyString,
|
|
1986
1982
|
label: z11.string().optional(),
|
|
1987
1983
|
language: z11.string().optional(),
|
|
1988
1984
|
stylesheet: QtiStylesheet.optional(),
|
|
@@ -1993,8 +1989,8 @@ var QtiStimulusCreateInput = z11.object({
|
|
|
1993
1989
|
metadata: z11.record(z11.string(), z11.unknown()).optional()
|
|
1994
1990
|
}).strict();
|
|
1995
1991
|
var QtiStimulusUpdateInput = z11.object({
|
|
1996
|
-
identifier:
|
|
1997
|
-
title:
|
|
1992
|
+
identifier: NonEmptyString.optional(),
|
|
1993
|
+
title: NonEmptyString,
|
|
1998
1994
|
label: z11.string().optional(),
|
|
1999
1995
|
language: z11.string().optional(),
|
|
2000
1996
|
stylesheet: QtiStylesheet.optional(),
|
|
@@ -2016,9 +2012,9 @@ var QtiValidateBatchInput = z11.object({
|
|
|
2016
2012
|
}).strict();
|
|
2017
2013
|
var QtiLessonFeedbackInput = z11.object({
|
|
2018
2014
|
questionId: z11.string().optional(),
|
|
2019
|
-
userId:
|
|
2020
|
-
feedback:
|
|
2021
|
-
lessonId:
|
|
2015
|
+
userId: NonEmptyString,
|
|
2016
|
+
feedback: NonEmptyString,
|
|
2017
|
+
lessonId: NonEmptyString,
|
|
2022
2018
|
humanApproved: z11.boolean().optional()
|
|
2023
2019
|
}).strict();
|
|
2024
2020
|
// src/resources/events.ts
|
package/dist/public-types.d.ts
CHANGED
|
@@ -959,10 +959,10 @@ declare const CaliperListEventsParams = z
|
|
|
959
959
|
.object({
|
|
960
960
|
limit: z.number().int().positive().optional(),
|
|
961
961
|
offset: z.number().int().min(0).optional(),
|
|
962
|
-
sensor:
|
|
962
|
+
sensor: NonEmptyString.optional(),
|
|
963
963
|
startDate: IsoDateTimeString.optional(),
|
|
964
964
|
endDate: IsoDateTimeString.optional(),
|
|
965
|
-
actorId:
|
|
965
|
+
actorId: NonEmptyString.optional(),
|
|
966
966
|
actorEmail: z.email().optional(),
|
|
967
967
|
})
|
|
968
968
|
.strict()
|