@timeback/core 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/{chunk-f69gqv7m.js → chunk-cjf6wewp.js} +222 -226
- package/dist/index.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +9 -9
|
@@ -119,6 +119,7 @@ import { z } from "zod/v4";
|
|
|
119
119
|
var IsoDateTimeRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
|
|
120
120
|
var IsoDateTimeString = z.string().min(1).regex(IsoDateTimeRegex, "must be a valid ISO 8601 datetime");
|
|
121
121
|
var IsoDateString = z.string().min(1).regex(/^\d{4}-\d{2}-\d{2}$/, "must be a valid ISO 8601 date (YYYY-MM-DD)");
|
|
122
|
+
var NonEmptyString = z.string().trim().min(1);
|
|
122
123
|
var TimebackSubject = z.enum([
|
|
123
124
|
"Reading",
|
|
124
125
|
"Language",
|
|
@@ -367,22 +368,22 @@ var CaliperEvent = z2.object({
|
|
|
367
368
|
extensions: z2.record(z2.string(), z2.unknown()).optional()
|
|
368
369
|
}).strict();
|
|
369
370
|
var CaliperEnvelopeInput = z2.object({
|
|
370
|
-
sensor:
|
|
371
|
+
sensor: NonEmptyString,
|
|
371
372
|
sendTime: IsoDateTimeString,
|
|
372
373
|
dataVersion: z2.literal("http://purl.imsglobal.org/ctx/caliper/v1p2"),
|
|
373
374
|
data: z2.array(CaliperEvent).min(1, "data must contain at least one event")
|
|
374
375
|
});
|
|
375
376
|
var CaliperSendEventsInput = z2.object({
|
|
376
|
-
sensor:
|
|
377
|
+
sensor: NonEmptyString,
|
|
377
378
|
events: z2.array(CaliperEvent).min(1, "events must contain at least one event")
|
|
378
379
|
});
|
|
379
380
|
var CaliperListEventsParams = z2.object({
|
|
380
381
|
limit: z2.number().int().positive().optional(),
|
|
381
382
|
offset: z2.number().int().min(0).optional(),
|
|
382
|
-
sensor:
|
|
383
|
+
sensor: NonEmptyString.optional(),
|
|
383
384
|
startDate: IsoDateTimeString.optional(),
|
|
384
385
|
endDate: IsoDateTimeString.optional(),
|
|
385
|
-
actorId:
|
|
386
|
+
actorId: NonEmptyString.optional(),
|
|
386
387
|
actorEmail: z2.email().optional()
|
|
387
388
|
}).strict();
|
|
388
389
|
var AssessmentItemObject = z2.object({
|
|
@@ -439,9 +440,9 @@ var QuestionGradedInput = z2.object({
|
|
|
439
440
|
// ../../types/src/zod/webhooks.ts
|
|
440
441
|
import { z as z3 } from "zod/v4";
|
|
441
442
|
var WebhookCreateInput = z3.object({
|
|
442
|
-
name:
|
|
443
|
+
name: NonEmptyString,
|
|
443
444
|
targetUrl: z3.url("targetUrl must be a valid URL"),
|
|
444
|
-
secret:
|
|
445
|
+
secret: NonEmptyString,
|
|
445
446
|
active: z3.boolean(),
|
|
446
447
|
sensor: z3.string().nullable().optional(),
|
|
447
448
|
description: z3.string().nullable().optional()
|
|
@@ -464,9 +465,9 @@ var WebhookFilterOperation = z3.enum([
|
|
|
464
465
|
"regexp"
|
|
465
466
|
]);
|
|
466
467
|
var WebhookFilterCreateInput = z3.object({
|
|
467
|
-
webhookId:
|
|
468
|
-
filterKey:
|
|
469
|
-
filterValue:
|
|
468
|
+
webhookId: NonEmptyString,
|
|
469
|
+
filterKey: NonEmptyString,
|
|
470
|
+
filterValue: NonEmptyString,
|
|
470
471
|
filterType: WebhookFilterType,
|
|
471
472
|
filterOperator: WebhookFilterOperation,
|
|
472
473
|
active: z3.boolean()
|
|
@@ -474,7 +475,6 @@ var WebhookFilterCreateInput = z3.object({
|
|
|
474
475
|
var WebhookFilterUpdateInput = WebhookFilterCreateInput;
|
|
475
476
|
// ../../types/src/zod/case.ts
|
|
476
477
|
import { z as z4 } from "zod/v4";
|
|
477
|
-
var NonEmptyString = z4.string().trim().min(1);
|
|
478
478
|
var UuidString = z4.string().uuid();
|
|
479
479
|
var InputNodeURISchema = z4.object({
|
|
480
480
|
title: NonEmptyString,
|
|
@@ -568,15 +568,15 @@ var ClrProfileSchema = z5.object({
|
|
|
568
568
|
email: z5.string().email().optional()
|
|
569
569
|
});
|
|
570
570
|
var ClrProofSchema = z5.object({
|
|
571
|
-
type:
|
|
572
|
-
proofPurpose:
|
|
573
|
-
verificationMethod:
|
|
571
|
+
type: NonEmptyString,
|
|
572
|
+
proofPurpose: NonEmptyString,
|
|
573
|
+
verificationMethod: NonEmptyString,
|
|
574
574
|
created: z5.iso.datetime(),
|
|
575
|
-
proofValue:
|
|
575
|
+
proofValue: NonEmptyString,
|
|
576
576
|
cryptosuite: z5.string().optional()
|
|
577
577
|
});
|
|
578
578
|
var ClrCredentialSchemaSchema = z5.object({
|
|
579
|
-
id:
|
|
579
|
+
id: NonEmptyString,
|
|
580
580
|
type: z5.literal("1EdTechJsonSchemaValidator2019")
|
|
581
581
|
});
|
|
582
582
|
var AchievementCriteriaSchema = z5.object({
|
|
@@ -586,8 +586,8 @@ var AchievementCriteriaSchema = z5.object({
|
|
|
586
586
|
var AchievementSchema = z5.object({
|
|
587
587
|
id: z5.url(),
|
|
588
588
|
type: z5.array(z5.string()).min(1).refine((arr) => arr.includes("Achievement"), 'type must include "Achievement"'),
|
|
589
|
-
name:
|
|
590
|
-
description:
|
|
589
|
+
name: NonEmptyString,
|
|
590
|
+
description: NonEmptyString,
|
|
591
591
|
criteria: AchievementCriteriaSchema,
|
|
592
592
|
image: ClrImageSchema.optional(),
|
|
593
593
|
achievementType: z5.string().optional(),
|
|
@@ -595,8 +595,8 @@ var AchievementSchema = z5.object({
|
|
|
595
595
|
});
|
|
596
596
|
var IdentityObjectSchema = z5.object({
|
|
597
597
|
type: z5.literal("IdentityObject"),
|
|
598
|
-
identityHash:
|
|
599
|
-
identityType:
|
|
598
|
+
identityHash: NonEmptyString,
|
|
599
|
+
identityType: NonEmptyString,
|
|
600
600
|
hashed: z5.boolean(),
|
|
601
601
|
salt: z5.string().optional()
|
|
602
602
|
});
|
|
@@ -641,7 +641,7 @@ var ClrCredentialInput = z5.object({
|
|
|
641
641
|
id: z5.url(),
|
|
642
642
|
type: z5.array(z5.string()).min(1).refine((arr) => arr.includes("VerifiableCredential") && arr.includes("ClrCredential"), 'type must include "VerifiableCredential" and "ClrCredential"'),
|
|
643
643
|
issuer: ClrProfileSchema,
|
|
644
|
-
name:
|
|
644
|
+
name: NonEmptyString,
|
|
645
645
|
description: z5.string().optional(),
|
|
646
646
|
validFrom: z5.iso.datetime(),
|
|
647
647
|
validUntil: z5.iso.datetime().optional(),
|
|
@@ -818,10 +818,9 @@ var EduBridgeEnrollmentAnalyticsResponse = z7.object({
|
|
|
818
818
|
facts: EduBridgeAnalyticsFacts,
|
|
819
819
|
factsByApp: z7.unknown()
|
|
820
820
|
});
|
|
821
|
-
var NonEmptyString2 = z7.string().trim().min(1);
|
|
822
821
|
var EmailOrStudentId = z7.object({
|
|
823
822
|
email: z7.email().optional(),
|
|
824
|
-
studentId:
|
|
823
|
+
studentId: NonEmptyString.optional()
|
|
825
824
|
}).superRefine((value, ctx) => {
|
|
826
825
|
if (!value.email && !value.studentId) {
|
|
827
826
|
ctx.addIssue({
|
|
@@ -837,17 +836,17 @@ var EmailOrStudentId = z7.object({
|
|
|
837
836
|
}
|
|
838
837
|
});
|
|
839
838
|
var SubjectTrackInput = z7.object({
|
|
840
|
-
subject:
|
|
841
|
-
grade:
|
|
842
|
-
courseId:
|
|
843
|
-
orgSourcedId:
|
|
839
|
+
subject: NonEmptyString,
|
|
840
|
+
grade: NonEmptyString,
|
|
841
|
+
courseId: NonEmptyString,
|
|
842
|
+
orgSourcedId: NonEmptyString.optional()
|
|
844
843
|
});
|
|
845
844
|
var SubjectTrackUpsertInput = SubjectTrackInput;
|
|
846
845
|
var EdubridgeListEnrollmentsParams = z7.object({
|
|
847
|
-
userId:
|
|
846
|
+
userId: NonEmptyString
|
|
848
847
|
});
|
|
849
848
|
var EdubridgeEnrollOptions = z7.object({
|
|
850
|
-
sourcedId:
|
|
849
|
+
sourcedId: NonEmptyString.optional(),
|
|
851
850
|
role: EnrollmentRole.optional(),
|
|
852
851
|
beginDate: IsoDateTimeString.optional(),
|
|
853
852
|
metadata: z7.record(z7.string(), z7.unknown()).optional()
|
|
@@ -861,7 +860,7 @@ var EdubridgeUsersListParams = z7.object({
|
|
|
861
860
|
filter: z7.string().optional(),
|
|
862
861
|
search: z7.string().optional(),
|
|
863
862
|
roles: z7.array(OneRosterUserRole).min(1),
|
|
864
|
-
orgSourcedIds: z7.array(
|
|
863
|
+
orgSourcedIds: z7.array(NonEmptyString).optional()
|
|
865
864
|
});
|
|
866
865
|
var EdubridgeActivityParams = EmailOrStudentId.extend({
|
|
867
866
|
startDate: EdubridgeDateStringInput,
|
|
@@ -873,31 +872,30 @@ var EdubridgeWeeklyFactsParams = EmailOrStudentId.extend({
|
|
|
873
872
|
timezone: z7.string().optional()
|
|
874
873
|
});
|
|
875
874
|
var EdubridgeEnrollmentFactsParams = z7.object({
|
|
876
|
-
enrollmentId:
|
|
875
|
+
enrollmentId: NonEmptyString,
|
|
877
876
|
startDate: EdubridgeDateStringInput.optional(),
|
|
878
877
|
endDate: EdubridgeDateStringInput.optional(),
|
|
879
878
|
timezone: z7.string().optional()
|
|
880
879
|
});
|
|
881
880
|
// ../../types/src/zod/masterytrack.ts
|
|
882
881
|
import { z as z8 } from "zod/v4";
|
|
883
|
-
var NonEmptyString3 = z8.string().trim().min(1);
|
|
884
882
|
var MasteryTrackAuthorizerInput = z8.object({
|
|
885
883
|
email: z8.email()
|
|
886
884
|
});
|
|
887
885
|
var MasteryTrackInventorySearchParams = z8.object({
|
|
888
|
-
name:
|
|
889
|
-
timeback_id:
|
|
890
|
-
grade:
|
|
891
|
-
subject:
|
|
886
|
+
name: NonEmptyString.optional(),
|
|
887
|
+
timeback_id: NonEmptyString.optional(),
|
|
888
|
+
grade: NonEmptyString.optional(),
|
|
889
|
+
subject: NonEmptyString.optional(),
|
|
892
890
|
all: z8.boolean().optional()
|
|
893
891
|
});
|
|
894
892
|
var MasteryTrackAssignmentInput = z8.object({
|
|
895
893
|
student_email: z8.email(),
|
|
896
|
-
timeback_id:
|
|
897
|
-
subject:
|
|
894
|
+
timeback_id: NonEmptyString.optional(),
|
|
895
|
+
subject: NonEmptyString.optional(),
|
|
898
896
|
grade_rank: z8.number().int().min(0).max(12).optional(),
|
|
899
|
-
assessment_line_item_sourced_id:
|
|
900
|
-
assessment_result_sourced_id:
|
|
897
|
+
assessment_line_item_sourced_id: NonEmptyString.optional(),
|
|
898
|
+
assessment_result_sourced_id: NonEmptyString.optional()
|
|
901
899
|
}).superRefine((value, ctx) => {
|
|
902
900
|
const hasTimebackId = !!value.timeback_id;
|
|
903
901
|
const hasSubject = !!value.subject;
|
|
@@ -934,8 +932,8 @@ var MasteryTrackAssignmentInput = z8.object({
|
|
|
934
932
|
var MasteryTrackInvalidateAssignmentInput = z8.object({
|
|
935
933
|
student_email: z8.email(),
|
|
936
934
|
assignment_id: z8.number().int().positive().optional(),
|
|
937
|
-
timeback_id:
|
|
938
|
-
subject:
|
|
935
|
+
timeback_id: NonEmptyString.optional(),
|
|
936
|
+
subject: NonEmptyString.optional(),
|
|
939
937
|
grade_rank: z8.number().int().min(0).max(12).optional()
|
|
940
938
|
}).superRefine((value, ctx) => {
|
|
941
939
|
const byAssignment = value.assignment_id !== undefined;
|
|
@@ -958,11 +956,10 @@ var MasteryTrackInvalidateAssignmentInput = z8.object({
|
|
|
958
956
|
});
|
|
959
957
|
// ../../types/src/zod/oneroster.ts
|
|
960
958
|
import { z as z9 } from "zod/v4";
|
|
961
|
-
var NonEmptyString4 = z9.string().min(1);
|
|
962
959
|
var Status = z9.enum(["active", "tobedeleted"]);
|
|
963
960
|
var Metadata = z9.record(z9.string(), z9.unknown()).nullable().optional();
|
|
964
961
|
var Ref = z9.object({
|
|
965
|
-
sourcedId:
|
|
962
|
+
sourcedId: NonEmptyString,
|
|
966
963
|
type: z9.string().optional(),
|
|
967
964
|
href: z9.string().optional()
|
|
968
965
|
}).strict();
|
|
@@ -977,58 +974,58 @@ var OneRosterUserRoleInput = z9.object({
|
|
|
977
974
|
endDate: OneRosterDateString.optional()
|
|
978
975
|
}).strict();
|
|
979
976
|
var OneRosterUserCreateInput = z9.object({
|
|
980
|
-
sourcedId:
|
|
977
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string"),
|
|
981
978
|
status: Status.optional(),
|
|
982
979
|
enabledUser: z9.boolean(),
|
|
983
|
-
givenName:
|
|
984
|
-
familyName:
|
|
985
|
-
middleName:
|
|
986
|
-
username:
|
|
980
|
+
givenName: NonEmptyString.describe("givenName must be a non-empty string"),
|
|
981
|
+
familyName: NonEmptyString.describe("familyName must be a non-empty string"),
|
|
982
|
+
middleName: NonEmptyString.optional(),
|
|
983
|
+
username: NonEmptyString.optional(),
|
|
987
984
|
email: z9.email(),
|
|
988
985
|
roles: z9.array(OneRosterUserRoleInput).min(1, "roles must include at least one role"),
|
|
989
986
|
userIds: z9.array(z9.object({
|
|
990
|
-
type:
|
|
991
|
-
identifier:
|
|
987
|
+
type: NonEmptyString,
|
|
988
|
+
identifier: NonEmptyString
|
|
992
989
|
}).strict()).optional(),
|
|
993
990
|
agents: z9.array(Ref).optional(),
|
|
994
991
|
grades: z9.array(TimebackGrade).optional(),
|
|
995
|
-
identifier:
|
|
996
|
-
sms:
|
|
997
|
-
phone:
|
|
998
|
-
pronouns:
|
|
999
|
-
password:
|
|
992
|
+
identifier: NonEmptyString.optional(),
|
|
993
|
+
sms: NonEmptyString.optional(),
|
|
994
|
+
phone: NonEmptyString.optional(),
|
|
995
|
+
pronouns: NonEmptyString.optional(),
|
|
996
|
+
password: NonEmptyString.optional(),
|
|
1000
997
|
metadata: Metadata
|
|
1001
998
|
}).strict();
|
|
1002
999
|
var OneRosterCourseCreateInput = z9.object({
|
|
1003
|
-
sourcedId:
|
|
1000
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string").optional(),
|
|
1004
1001
|
status: Status.optional(),
|
|
1005
|
-
title:
|
|
1002
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1006
1003
|
org: Ref,
|
|
1007
|
-
courseCode:
|
|
1004
|
+
courseCode: NonEmptyString.optional(),
|
|
1008
1005
|
subjects: z9.array(TimebackSubject).optional(),
|
|
1009
1006
|
grades: z9.array(TimebackGrade).optional(),
|
|
1010
|
-
level:
|
|
1007
|
+
level: NonEmptyString.optional(),
|
|
1011
1008
|
metadata: Metadata
|
|
1012
1009
|
}).strict();
|
|
1013
1010
|
var OneRosterClassCreateInput = z9.object({
|
|
1014
|
-
sourcedId:
|
|
1011
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string").optional(),
|
|
1015
1012
|
status: Status.optional(),
|
|
1016
|
-
title:
|
|
1013
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1017
1014
|
terms: z9.array(Ref).min(1, "terms must have at least one item"),
|
|
1018
1015
|
course: Ref,
|
|
1019
1016
|
org: Ref,
|
|
1020
|
-
classCode:
|
|
1017
|
+
classCode: NonEmptyString.optional(),
|
|
1021
1018
|
classType: z9.enum(["homeroom", "scheduled"]).optional(),
|
|
1022
|
-
location:
|
|
1019
|
+
location: NonEmptyString.optional(),
|
|
1023
1020
|
grades: z9.array(TimebackGrade).optional(),
|
|
1024
1021
|
subjects: z9.array(TimebackSubject).optional(),
|
|
1025
|
-
subjectCodes: z9.array(
|
|
1026
|
-
periods: z9.array(
|
|
1022
|
+
subjectCodes: z9.array(NonEmptyString).optional(),
|
|
1023
|
+
periods: z9.array(NonEmptyString).optional(),
|
|
1027
1024
|
metadata: Metadata
|
|
1028
1025
|
}).strict();
|
|
1029
1026
|
var StringBoolean = z9.enum(["true", "false"]);
|
|
1030
1027
|
var OneRosterEnrollmentCreateInput = z9.object({
|
|
1031
|
-
sourcedId:
|
|
1028
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string").optional(),
|
|
1032
1029
|
status: Status.optional(),
|
|
1033
1030
|
user: Ref,
|
|
1034
1031
|
class: Ref,
|
|
@@ -1040,15 +1037,15 @@ var OneRosterEnrollmentCreateInput = z9.object({
|
|
|
1040
1037
|
metadata: Metadata
|
|
1041
1038
|
}).strict();
|
|
1042
1039
|
var OneRosterCategoryCreateInput = z9.object({
|
|
1043
|
-
sourcedId:
|
|
1044
|
-
title:
|
|
1040
|
+
sourcedId: NonEmptyString.optional(),
|
|
1041
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1045
1042
|
status: Status,
|
|
1046
1043
|
weight: z9.number().nullable().optional(),
|
|
1047
1044
|
metadata: Metadata
|
|
1048
1045
|
}).strict();
|
|
1049
1046
|
var OneRosterLineItemCreateInput = z9.object({
|
|
1050
|
-
sourcedId:
|
|
1051
|
-
title:
|
|
1047
|
+
sourcedId: NonEmptyString.optional(),
|
|
1048
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1052
1049
|
class: Ref,
|
|
1053
1050
|
school: Ref,
|
|
1054
1051
|
category: Ref,
|
|
@@ -1062,7 +1059,7 @@ var OneRosterLineItemCreateInput = z9.object({
|
|
|
1062
1059
|
metadata: Metadata
|
|
1063
1060
|
}).strict();
|
|
1064
1061
|
var OneRosterResultCreateInput = z9.object({
|
|
1065
|
-
sourcedId:
|
|
1062
|
+
sourcedId: NonEmptyString.optional(),
|
|
1066
1063
|
lineItem: Ref,
|
|
1067
1064
|
student: Ref,
|
|
1068
1065
|
class: Ref.optional(),
|
|
@@ -1081,15 +1078,15 @@ var OneRosterResultCreateInput = z9.object({
|
|
|
1081
1078
|
metadata: Metadata
|
|
1082
1079
|
}).strict();
|
|
1083
1080
|
var OneRosterScoreScaleCreateInput = z9.object({
|
|
1084
|
-
sourcedId:
|
|
1085
|
-
title:
|
|
1081
|
+
sourcedId: NonEmptyString.optional(),
|
|
1082
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1086
1083
|
status: Status.optional(),
|
|
1087
1084
|
type: z9.string(),
|
|
1088
1085
|
class: Ref,
|
|
1089
1086
|
course: Ref.nullable().optional(),
|
|
1090
1087
|
scoreScaleValue: z9.array(z9.object({
|
|
1091
|
-
itemValueLHS:
|
|
1092
|
-
itemValueRHS:
|
|
1088
|
+
itemValueLHS: NonEmptyString,
|
|
1089
|
+
itemValueRHS: NonEmptyString,
|
|
1093
1090
|
value: z9.string().optional(),
|
|
1094
1091
|
description: z9.string().optional()
|
|
1095
1092
|
}).strict()),
|
|
@@ -1098,10 +1095,10 @@ var OneRosterScoreScaleCreateInput = z9.object({
|
|
|
1098
1095
|
metadata: Metadata
|
|
1099
1096
|
}).strict();
|
|
1100
1097
|
var OneRosterAssessmentLineItemCreateInput = z9.object({
|
|
1101
|
-
sourcedId:
|
|
1098
|
+
sourcedId: NonEmptyString.optional(),
|
|
1102
1099
|
status: Status.optional(),
|
|
1103
1100
|
dateLastModified: IsoDateTimeString.optional(),
|
|
1104
|
-
title:
|
|
1101
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1105
1102
|
description: z9.string().nullable().optional(),
|
|
1106
1103
|
class: Ref.nullable().optional(),
|
|
1107
1104
|
parentAssessmentLineItem: Ref.nullable().optional(),
|
|
@@ -1127,7 +1124,7 @@ var LearningObjectiveScoreSetSchema = z9.array(z9.object({
|
|
|
1127
1124
|
learningObjectiveResults: z9.array(LearningObjectiveResult)
|
|
1128
1125
|
}));
|
|
1129
1126
|
var OneRosterAssessmentResultCreateInput = z9.object({
|
|
1130
|
-
sourcedId:
|
|
1127
|
+
sourcedId: NonEmptyString.optional(),
|
|
1131
1128
|
status: Status.optional(),
|
|
1132
1129
|
dateLastModified: IsoDateTimeString.optional(),
|
|
1133
1130
|
metadata: Metadata,
|
|
@@ -1153,53 +1150,53 @@ var OneRosterAssessmentResultCreateInput = z9.object({
|
|
|
1153
1150
|
missing: z9.string().nullable().optional()
|
|
1154
1151
|
}).strict();
|
|
1155
1152
|
var OneRosterOrgCreateInput = z9.object({
|
|
1156
|
-
sourcedId:
|
|
1153
|
+
sourcedId: NonEmptyString.optional(),
|
|
1157
1154
|
status: Status.optional(),
|
|
1158
|
-
name:
|
|
1155
|
+
name: NonEmptyString.describe("name must be a non-empty string"),
|
|
1159
1156
|
type: OrganizationType,
|
|
1160
|
-
identifier:
|
|
1157
|
+
identifier: NonEmptyString.optional(),
|
|
1161
1158
|
parent: Ref.optional(),
|
|
1162
1159
|
metadata: Metadata
|
|
1163
1160
|
}).strict();
|
|
1164
1161
|
var OneRosterSchoolCreateInput = z9.object({
|
|
1165
|
-
sourcedId:
|
|
1162
|
+
sourcedId: NonEmptyString.optional(),
|
|
1166
1163
|
status: Status.optional(),
|
|
1167
|
-
name:
|
|
1164
|
+
name: NonEmptyString.describe("name must be a non-empty string"),
|
|
1168
1165
|
type: z9.literal("school").optional(),
|
|
1169
|
-
identifier:
|
|
1166
|
+
identifier: NonEmptyString.optional(),
|
|
1170
1167
|
parent: Ref.optional(),
|
|
1171
1168
|
metadata: Metadata
|
|
1172
1169
|
}).strict();
|
|
1173
1170
|
var OneRosterAcademicSessionCreateInput = z9.object({
|
|
1174
|
-
sourcedId:
|
|
1171
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string"),
|
|
1175
1172
|
status: Status,
|
|
1176
|
-
title:
|
|
1173
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1177
1174
|
startDate: OneRosterDateString,
|
|
1178
1175
|
endDate: OneRosterDateString,
|
|
1179
1176
|
type: z9.enum(["gradingPeriod", "semester", "schoolYear", "term"]),
|
|
1180
|
-
schoolYear:
|
|
1177
|
+
schoolYear: NonEmptyString.describe("schoolYear must be a non-empty string"),
|
|
1181
1178
|
org: Ref,
|
|
1182
1179
|
parent: Ref.optional(),
|
|
1183
1180
|
children: z9.array(Ref).optional(),
|
|
1184
1181
|
metadata: Metadata
|
|
1185
1182
|
}).strict();
|
|
1186
1183
|
var OneRosterComponentResourceCreateInput = z9.object({
|
|
1187
|
-
sourcedId:
|
|
1188
|
-
title:
|
|
1184
|
+
sourcedId: NonEmptyString.optional(),
|
|
1185
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1189
1186
|
courseComponent: Ref,
|
|
1190
1187
|
resource: Ref,
|
|
1191
1188
|
status: Status,
|
|
1192
1189
|
metadata: Metadata
|
|
1193
1190
|
}).strict();
|
|
1194
1191
|
var OneRosterCourseComponentCreateInput = z9.object({
|
|
1195
|
-
sourcedId:
|
|
1196
|
-
title:
|
|
1192
|
+
sourcedId: NonEmptyString.optional(),
|
|
1193
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1197
1194
|
course: Ref,
|
|
1198
1195
|
status: Status,
|
|
1199
1196
|
metadata: Metadata
|
|
1200
1197
|
}).strict();
|
|
1201
1198
|
var OneRosterEnrollInput = z9.object({
|
|
1202
|
-
sourcedId:
|
|
1199
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string"),
|
|
1203
1200
|
role: z9.enum(["student", "teacher"]),
|
|
1204
1201
|
primary: StringBoolean.optional(),
|
|
1205
1202
|
beginDate: IsoDateString.optional(),
|
|
@@ -1207,17 +1204,17 @@ var OneRosterEnrollInput = z9.object({
|
|
|
1207
1204
|
metadata: Metadata
|
|
1208
1205
|
}).strict();
|
|
1209
1206
|
var OneRosterAgentInput = z9.object({
|
|
1210
|
-
agentSourcedId:
|
|
1207
|
+
agentSourcedId: NonEmptyString.describe("agentSourcedId must be a non-empty string")
|
|
1211
1208
|
}).strict();
|
|
1212
1209
|
var OneRosterCredentialInput = z9.object({
|
|
1213
|
-
applicationName:
|
|
1210
|
+
applicationName: NonEmptyString.describe("applicationName must be a non-empty string"),
|
|
1214
1211
|
credentials: z9.object({
|
|
1215
|
-
username:
|
|
1216
|
-
password:
|
|
1212
|
+
username: NonEmptyString.describe("username must be a non-empty string"),
|
|
1213
|
+
password: NonEmptyString.describe("password must be a non-empty string")
|
|
1217
1214
|
})
|
|
1218
1215
|
}).strict();
|
|
1219
1216
|
var OneRosterDemographicsCreateInput = z9.object({
|
|
1220
|
-
sourcedId:
|
|
1217
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string")
|
|
1221
1218
|
}).loose();
|
|
1222
1219
|
var CommonResourceMetadataSchema = z9.object({
|
|
1223
1220
|
type: ResourceType,
|
|
@@ -1289,9 +1286,9 @@ var ResourceMetadataSchema = z9.discriminatedUnion("type", [
|
|
|
1289
1286
|
AssessmentBankMetadataSchema
|
|
1290
1287
|
]);
|
|
1291
1288
|
var OneRosterResourceCreateInput = z9.object({
|
|
1292
|
-
sourcedId:
|
|
1293
|
-
title:
|
|
1294
|
-
vendorResourceId:
|
|
1289
|
+
sourcedId: NonEmptyString.optional(),
|
|
1290
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1291
|
+
vendorResourceId: NonEmptyString.describe("vendorResourceId must be a non-empty string"),
|
|
1295
1292
|
roles: z9.array(z9.enum(["primary", "secondary"])).optional(),
|
|
1296
1293
|
importance: z9.enum(["primary", "secondary"]).optional(),
|
|
1297
1294
|
vendorId: z9.string().optional(),
|
|
@@ -1300,18 +1297,18 @@ var OneRosterResourceCreateInput = z9.object({
|
|
|
1300
1297
|
metadata: ResourceMetadataSchema.nullable().optional()
|
|
1301
1298
|
}).strict();
|
|
1302
1299
|
var CourseStructureItem = z9.object({
|
|
1303
|
-
url:
|
|
1304
|
-
skillCode:
|
|
1305
|
-
lessonCode:
|
|
1306
|
-
title:
|
|
1307
|
-
"unit-title":
|
|
1308
|
-
status:
|
|
1300
|
+
url: NonEmptyString.describe("courseStructure.url must be a non-empty string"),
|
|
1301
|
+
skillCode: NonEmptyString.describe("courseStructure.skillCode must be a non-empty string"),
|
|
1302
|
+
lessonCode: NonEmptyString.describe("courseStructure.lessonCode must be a non-empty string"),
|
|
1303
|
+
title: NonEmptyString.describe("courseStructure.title must be a non-empty string"),
|
|
1304
|
+
"unit-title": NonEmptyString.describe("courseStructure.unit-title must be a non-empty string"),
|
|
1305
|
+
status: NonEmptyString.describe("courseStructure.status must be a non-empty string"),
|
|
1309
1306
|
xp: z9.number()
|
|
1310
1307
|
}).loose();
|
|
1311
1308
|
var OneRosterCourseStructureInput = z9.object({
|
|
1312
1309
|
course: z9.object({
|
|
1313
|
-
sourcedId:
|
|
1314
|
-
title:
|
|
1310
|
+
sourcedId: NonEmptyString.describe("course.sourcedId must be a non-empty string").optional(),
|
|
1311
|
+
title: NonEmptyString.describe("course.title must be a non-empty string"),
|
|
1315
1312
|
org: Ref,
|
|
1316
1313
|
status: Status,
|
|
1317
1314
|
metadata: Metadata
|
|
@@ -1324,7 +1321,6 @@ var OneRosterBulkResultItem = z9.object({
|
|
|
1324
1321
|
var OneRosterBulkResultsInput = z9.array(OneRosterBulkResultItem).min(1, "results must have at least one item");
|
|
1325
1322
|
// ../../types/src/zod/powerpath.ts
|
|
1326
1323
|
import { z as z10 } from "zod/v4";
|
|
1327
|
-
var NonEmptyString5 = z10.string().trim().min(1);
|
|
1328
1324
|
var ToolProvider = z10.enum(["edulastic", "mastery-track"]);
|
|
1329
1325
|
var LessonTypeRequired = z10.enum([
|
|
1330
1326
|
"powerpath-100",
|
|
@@ -1337,14 +1333,14 @@ var LessonTypeRequired = z10.enum([
|
|
|
1337
1333
|
var GradeArray = z10.array(TimebackGrade);
|
|
1338
1334
|
var ResourceMetadata = z10.record(z10.string(), z10.unknown()).optional();
|
|
1339
1335
|
var ExternalTestBase = z10.object({
|
|
1340
|
-
courseId:
|
|
1341
|
-
lessonTitle:
|
|
1342
|
-
launchUrl:
|
|
1336
|
+
courseId: NonEmptyString,
|
|
1337
|
+
lessonTitle: NonEmptyString.optional(),
|
|
1338
|
+
launchUrl: NonEmptyString.optional(),
|
|
1343
1339
|
toolProvider: ToolProvider,
|
|
1344
|
-
unitTitle:
|
|
1345
|
-
courseComponentSourcedId:
|
|
1346
|
-
vendorId:
|
|
1347
|
-
description:
|
|
1340
|
+
unitTitle: NonEmptyString.optional(),
|
|
1341
|
+
courseComponentSourcedId: NonEmptyString.optional(),
|
|
1342
|
+
vendorId: NonEmptyString.optional(),
|
|
1343
|
+
description: NonEmptyString.optional(),
|
|
1348
1344
|
resourceMetadata: ResourceMetadata.nullable().optional(),
|
|
1349
1345
|
grades: GradeArray
|
|
1350
1346
|
});
|
|
@@ -1354,28 +1350,28 @@ var ExternalTestOut = ExternalTestBase.extend({
|
|
|
1354
1350
|
});
|
|
1355
1351
|
var ExternalPlacement = ExternalTestBase.extend({
|
|
1356
1352
|
lessonType: z10.literal("placement"),
|
|
1357
|
-
courseIdOnFail:
|
|
1353
|
+
courseIdOnFail: NonEmptyString.nullable().optional(),
|
|
1358
1354
|
xp: z10.number().optional()
|
|
1359
1355
|
});
|
|
1360
1356
|
var PowerPathCreateExternalPlacementTestInput = ExternalPlacement;
|
|
1361
1357
|
var PowerPathCreateExternalTestOutInput = ExternalTestOut;
|
|
1362
1358
|
var InternalTestBase = z10.object({
|
|
1363
|
-
courseId:
|
|
1359
|
+
courseId: NonEmptyString,
|
|
1364
1360
|
lessonType: LessonTypeRequired,
|
|
1365
|
-
lessonTitle:
|
|
1366
|
-
unitTitle:
|
|
1367
|
-
courseComponentSourcedId:
|
|
1361
|
+
lessonTitle: NonEmptyString.optional(),
|
|
1362
|
+
unitTitle: NonEmptyString.optional(),
|
|
1363
|
+
courseComponentSourcedId: NonEmptyString.optional(),
|
|
1368
1364
|
resourceMetadata: ResourceMetadata.nullable().optional(),
|
|
1369
1365
|
xp: z10.number().optional(),
|
|
1370
1366
|
grades: GradeArray.optional(),
|
|
1371
|
-
courseIdOnFail:
|
|
1367
|
+
courseIdOnFail: NonEmptyString.nullable().optional()
|
|
1372
1368
|
});
|
|
1373
1369
|
var PowerPathCreateInternalTestInput = z10.discriminatedUnion("testType", [
|
|
1374
1370
|
InternalTestBase.extend({
|
|
1375
1371
|
testType: z10.literal("qti"),
|
|
1376
1372
|
qti: z10.object({
|
|
1377
1373
|
url: z10.url(),
|
|
1378
|
-
title:
|
|
1374
|
+
title: NonEmptyString.optional(),
|
|
1379
1375
|
metadata: z10.record(z10.string(), z10.unknown()).optional()
|
|
1380
1376
|
})
|
|
1381
1377
|
}),
|
|
@@ -1384,28 +1380,28 @@ var PowerPathCreateInternalTestInput = z10.discriminatedUnion("testType", [
|
|
|
1384
1380
|
assessmentBank: z10.object({
|
|
1385
1381
|
resources: z10.array(z10.object({
|
|
1386
1382
|
url: z10.url(),
|
|
1387
|
-
title:
|
|
1383
|
+
title: NonEmptyString.optional(),
|
|
1388
1384
|
metadata: z10.record(z10.string(), z10.unknown()).optional()
|
|
1389
1385
|
})).min(1)
|
|
1390
1386
|
})
|
|
1391
1387
|
})
|
|
1392
1388
|
]);
|
|
1393
1389
|
var PowerPathCreateNewAttemptInput = z10.object({
|
|
1394
|
-
student:
|
|
1395
|
-
lesson:
|
|
1390
|
+
student: NonEmptyString,
|
|
1391
|
+
lesson: NonEmptyString
|
|
1396
1392
|
});
|
|
1397
1393
|
var PowerPathFinalStudentAssessmentResponseInput = z10.object({
|
|
1398
|
-
student:
|
|
1399
|
-
lesson:
|
|
1394
|
+
student: NonEmptyString,
|
|
1395
|
+
lesson: NonEmptyString
|
|
1400
1396
|
});
|
|
1401
1397
|
var PowerPathLessonPlansCreateInput = z10.object({
|
|
1402
|
-
courseId:
|
|
1403
|
-
userId:
|
|
1404
|
-
classId:
|
|
1398
|
+
courseId: NonEmptyString,
|
|
1399
|
+
userId: NonEmptyString,
|
|
1400
|
+
classId: NonEmptyString.optional()
|
|
1405
1401
|
});
|
|
1406
1402
|
var LessonPlanTarget = z10.object({
|
|
1407
1403
|
type: z10.enum(["component", "resource"]),
|
|
1408
|
-
id:
|
|
1404
|
+
id: NonEmptyString
|
|
1409
1405
|
});
|
|
1410
1406
|
var PowerPathLessonPlanOperationInput = z10.union([
|
|
1411
1407
|
z10.object({
|
|
@@ -1418,8 +1414,8 @@ var PowerPathLessonPlanOperationInput = z10.union([
|
|
|
1418
1414
|
z10.object({
|
|
1419
1415
|
type: z10.literal("add-custom-resource"),
|
|
1420
1416
|
payload: z10.object({
|
|
1421
|
-
resource_id:
|
|
1422
|
-
parent_component_id:
|
|
1417
|
+
resource_id: NonEmptyString,
|
|
1418
|
+
parent_component_id: NonEmptyString,
|
|
1423
1419
|
skipped: z10.boolean().optional()
|
|
1424
1420
|
})
|
|
1425
1421
|
}),
|
|
@@ -1427,14 +1423,14 @@ var PowerPathLessonPlanOperationInput = z10.union([
|
|
|
1427
1423
|
type: z10.literal("move-item-before"),
|
|
1428
1424
|
payload: z10.object({
|
|
1429
1425
|
target: LessonPlanTarget,
|
|
1430
|
-
reference_id:
|
|
1426
|
+
reference_id: NonEmptyString
|
|
1431
1427
|
})
|
|
1432
1428
|
}),
|
|
1433
1429
|
z10.object({
|
|
1434
1430
|
type: z10.literal("move-item-after"),
|
|
1435
1431
|
payload: z10.object({
|
|
1436
1432
|
target: LessonPlanTarget,
|
|
1437
|
-
reference_id:
|
|
1433
|
+
reference_id: NonEmptyString
|
|
1438
1434
|
})
|
|
1439
1435
|
}),
|
|
1440
1436
|
z10.object({
|
|
@@ -1453,107 +1449,107 @@ var PowerPathLessonPlanOperationInput = z10.union([
|
|
|
1453
1449
|
type: z10.literal("change-item-parent"),
|
|
1454
1450
|
payload: z10.object({
|
|
1455
1451
|
target: LessonPlanTarget,
|
|
1456
|
-
new_parent_id:
|
|
1452
|
+
new_parent_id: NonEmptyString,
|
|
1457
1453
|
position: z10.enum(["start", "end"]).optional()
|
|
1458
1454
|
})
|
|
1459
1455
|
})
|
|
1460
1456
|
]);
|
|
1461
1457
|
var PowerPathLessonPlanOperationsInput = z10.object({
|
|
1462
1458
|
operation: PowerPathLessonPlanOperationInput,
|
|
1463
|
-
reason:
|
|
1459
|
+
reason: NonEmptyString.optional()
|
|
1464
1460
|
});
|
|
1465
1461
|
var PowerPathLessonPlanUpdateStudentItemResponseInput = z10.object({
|
|
1466
|
-
studentId:
|
|
1467
|
-
componentResourceId:
|
|
1462
|
+
studentId: NonEmptyString,
|
|
1463
|
+
componentResourceId: NonEmptyString,
|
|
1468
1464
|
result: z10.object({
|
|
1469
1465
|
status: z10.enum(["active", "tobedeleted"]),
|
|
1470
1466
|
metadata: z10.record(z10.string(), z10.unknown()).optional(),
|
|
1471
1467
|
score: z10.number().optional(),
|
|
1472
|
-
textScore:
|
|
1468
|
+
textScore: NonEmptyString.optional(),
|
|
1473
1469
|
scoreDate: z10.string().datetime(),
|
|
1474
1470
|
scorePercentile: z10.number().optional(),
|
|
1475
1471
|
scoreStatus: ScoreStatus,
|
|
1476
|
-
comment:
|
|
1472
|
+
comment: NonEmptyString.optional(),
|
|
1477
1473
|
learningObjectiveSet: z10.array(z10.object({
|
|
1478
|
-
source:
|
|
1474
|
+
source: NonEmptyString,
|
|
1479
1475
|
learningObjectiveResults: z10.array(z10.object({
|
|
1480
|
-
learningObjectiveId:
|
|
1476
|
+
learningObjectiveId: NonEmptyString,
|
|
1481
1477
|
score: z10.number().optional(),
|
|
1482
|
-
textScore:
|
|
1478
|
+
textScore: NonEmptyString.optional()
|
|
1483
1479
|
}))
|
|
1484
1480
|
})).optional(),
|
|
1485
|
-
inProgress:
|
|
1486
|
-
incomplete:
|
|
1487
|
-
late:
|
|
1488
|
-
missing:
|
|
1481
|
+
inProgress: NonEmptyString.optional(),
|
|
1482
|
+
incomplete: NonEmptyString.optional(),
|
|
1483
|
+
late: NonEmptyString.optional(),
|
|
1484
|
+
missing: NonEmptyString.optional()
|
|
1489
1485
|
})
|
|
1490
1486
|
});
|
|
1491
1487
|
var PowerPathMakeExternalTestAssignmentInput = z10.object({
|
|
1492
|
-
student:
|
|
1493
|
-
lesson:
|
|
1494
|
-
applicationName:
|
|
1495
|
-
testId:
|
|
1488
|
+
student: NonEmptyString,
|
|
1489
|
+
lesson: NonEmptyString,
|
|
1490
|
+
applicationName: NonEmptyString.optional(),
|
|
1491
|
+
testId: NonEmptyString.optional(),
|
|
1496
1492
|
skipCourseEnrollment: z10.boolean().optional()
|
|
1497
1493
|
});
|
|
1498
1494
|
var PowerPathPlacementResetUserPlacementInput = z10.object({
|
|
1499
|
-
student:
|
|
1495
|
+
student: NonEmptyString,
|
|
1500
1496
|
subject: TimebackSubject
|
|
1501
1497
|
});
|
|
1502
1498
|
var PowerPathResetAttemptInput = z10.object({
|
|
1503
|
-
student:
|
|
1504
|
-
lesson:
|
|
1499
|
+
student: NonEmptyString,
|
|
1500
|
+
lesson: NonEmptyString
|
|
1505
1501
|
});
|
|
1506
1502
|
var PowerPathScreeningResetSessionInput = z10.object({
|
|
1507
|
-
userId:
|
|
1503
|
+
userId: NonEmptyString
|
|
1508
1504
|
});
|
|
1509
1505
|
var PowerPathScreeningAssignTestInput = z10.object({
|
|
1510
|
-
userId:
|
|
1506
|
+
userId: NonEmptyString,
|
|
1511
1507
|
subject: z10.enum(["Math", "Reading", "Language", "Science"])
|
|
1512
1508
|
});
|
|
1513
1509
|
var PowerPathTestAssignmentsCreateInput = z10.object({
|
|
1514
|
-
student:
|
|
1510
|
+
student: NonEmptyString,
|
|
1515
1511
|
subject: TimebackSubject,
|
|
1516
1512
|
grade: TimebackGrade,
|
|
1517
|
-
testName:
|
|
1513
|
+
testName: NonEmptyString.optional()
|
|
1518
1514
|
});
|
|
1519
1515
|
var PowerPathTestAssignmentsUpdateInput = z10.object({
|
|
1520
|
-
testName:
|
|
1516
|
+
testName: NonEmptyString
|
|
1521
1517
|
});
|
|
1522
1518
|
var PowerPathTestAssignmentItemInput = z10.object({
|
|
1523
|
-
student:
|
|
1519
|
+
student: NonEmptyString,
|
|
1524
1520
|
subject: TimebackSubject,
|
|
1525
1521
|
grade: TimebackGrade,
|
|
1526
|
-
testName:
|
|
1522
|
+
testName: NonEmptyString.optional()
|
|
1527
1523
|
});
|
|
1528
1524
|
var PowerPathTestAssignmentsBulkInput = z10.object({
|
|
1529
1525
|
items: z10.array(PowerPathTestAssignmentItemInput)
|
|
1530
1526
|
});
|
|
1531
1527
|
var PowerPathTestAssignmentsImportInput = z10.object({
|
|
1532
1528
|
spreadsheetUrl: z10.url(),
|
|
1533
|
-
sheet:
|
|
1529
|
+
sheet: NonEmptyString
|
|
1534
1530
|
});
|
|
1535
1531
|
var PowerPathTestAssignmentsListParams = z10.object({
|
|
1536
|
-
student:
|
|
1532
|
+
student: NonEmptyString,
|
|
1537
1533
|
status: z10.enum(["assigned", "in_progress", "completed", "failed", "expired", "cancelled"]).optional(),
|
|
1538
|
-
subject:
|
|
1534
|
+
subject: NonEmptyString.optional(),
|
|
1539
1535
|
grade: TimebackGrade.optional(),
|
|
1540
1536
|
limit: z10.number().int().positive().max(3000).optional(),
|
|
1541
1537
|
offset: z10.number().int().nonnegative().optional()
|
|
1542
1538
|
});
|
|
1543
1539
|
var PowerPathTestAssignmentsAdminParams = z10.object({
|
|
1544
|
-
student:
|
|
1540
|
+
student: NonEmptyString.optional(),
|
|
1545
1541
|
status: z10.enum(["assigned", "in_progress", "completed", "failed", "expired", "cancelled"]).optional(),
|
|
1546
|
-
subject:
|
|
1542
|
+
subject: NonEmptyString.optional(),
|
|
1547
1543
|
grade: TimebackGrade.optional(),
|
|
1548
1544
|
limit: z10.number().int().positive().max(3000).optional(),
|
|
1549
1545
|
offset: z10.number().int().nonnegative().optional()
|
|
1550
1546
|
});
|
|
1551
1547
|
var PowerPathUpdateStudentQuestionResponseInput = z10.object({
|
|
1552
|
-
student:
|
|
1553
|
-
question:
|
|
1554
|
-
response: z10.union([
|
|
1555
|
-
responses: z10.record(z10.string(), z10.union([
|
|
1556
|
-
lesson:
|
|
1548
|
+
student: NonEmptyString,
|
|
1549
|
+
question: NonEmptyString,
|
|
1550
|
+
response: z10.union([NonEmptyString, z10.array(NonEmptyString)]).optional(),
|
|
1551
|
+
responses: z10.record(z10.string(), z10.union([NonEmptyString, z10.array(NonEmptyString)])).optional(),
|
|
1552
|
+
lesson: NonEmptyString,
|
|
1557
1553
|
rendererOutcomes: z10.object({
|
|
1558
1554
|
score: z10.number(),
|
|
1559
1555
|
maxScore: z10.number().min(0),
|
|
@@ -1570,29 +1566,29 @@ var PowerPathUpdateStudentQuestionResponseInput = z10.object({
|
|
|
1570
1566
|
return data;
|
|
1571
1567
|
});
|
|
1572
1568
|
var PowerPathGetAssessmentProgressParams = z10.object({
|
|
1573
|
-
student:
|
|
1574
|
-
lesson:
|
|
1569
|
+
student: NonEmptyString,
|
|
1570
|
+
lesson: NonEmptyString,
|
|
1575
1571
|
attempt: z10.number().int().positive().optional()
|
|
1576
1572
|
});
|
|
1577
1573
|
var PowerPathGetNextQuestionParams = z10.object({
|
|
1578
|
-
student:
|
|
1579
|
-
lesson:
|
|
1574
|
+
student: NonEmptyString,
|
|
1575
|
+
lesson: NonEmptyString
|
|
1580
1576
|
});
|
|
1581
1577
|
var PowerPathGetAttemptsParams = z10.object({
|
|
1582
|
-
student:
|
|
1583
|
-
lesson:
|
|
1578
|
+
student: NonEmptyString,
|
|
1579
|
+
lesson: NonEmptyString
|
|
1584
1580
|
});
|
|
1585
1581
|
var PowerPathTestOutParams = z10.object({
|
|
1586
|
-
student:
|
|
1587
|
-
course:
|
|
1582
|
+
student: NonEmptyString,
|
|
1583
|
+
course: NonEmptyString
|
|
1588
1584
|
});
|
|
1589
1585
|
var PowerPathImportExternalTestAssignmentResultsParams = z10.object({
|
|
1590
|
-
student:
|
|
1591
|
-
lesson:
|
|
1592
|
-
applicationName:
|
|
1586
|
+
student: NonEmptyString,
|
|
1587
|
+
lesson: NonEmptyString,
|
|
1588
|
+
applicationName: NonEmptyString.optional()
|
|
1593
1589
|
});
|
|
1594
1590
|
var PowerPathPlacementQueryParams = z10.object({
|
|
1595
|
-
student:
|
|
1591
|
+
student: NonEmptyString,
|
|
1596
1592
|
subject: TimebackSubject
|
|
1597
1593
|
});
|
|
1598
1594
|
var PowerPathSyllabusQueryParams = z10.object({
|
|
@@ -1643,18 +1639,18 @@ var QtiCorrectResponse = z11.object({
|
|
|
1643
1639
|
value: z11.array(z11.string())
|
|
1644
1640
|
}).strict();
|
|
1645
1641
|
var QtiResponseDeclaration = z11.object({
|
|
1646
|
-
identifier:
|
|
1642
|
+
identifier: NonEmptyString,
|
|
1647
1643
|
cardinality: QtiCardinality,
|
|
1648
1644
|
baseType: QtiBaseType.optional(),
|
|
1649
1645
|
correctResponse: QtiCorrectResponse
|
|
1650
1646
|
}).strict();
|
|
1651
1647
|
var QtiOutcomeDeclaration = z11.object({
|
|
1652
|
-
identifier:
|
|
1648
|
+
identifier: NonEmptyString,
|
|
1653
1649
|
cardinality: QtiCardinality,
|
|
1654
1650
|
baseType: QtiBaseType.optional()
|
|
1655
1651
|
}).strict();
|
|
1656
1652
|
var QtiTestOutcomeDeclaration = z11.object({
|
|
1657
|
-
identifier:
|
|
1653
|
+
identifier: NonEmptyString,
|
|
1658
1654
|
cardinality: QtiCardinality.optional(),
|
|
1659
1655
|
baseType: QtiBaseType,
|
|
1660
1656
|
normalMaximum: z11.number().optional(),
|
|
@@ -1664,19 +1660,19 @@ var QtiTestOutcomeDeclaration = z11.object({
|
|
|
1664
1660
|
}).strict().optional()
|
|
1665
1661
|
}).strict();
|
|
1666
1662
|
var QtiInlineFeedback = z11.object({
|
|
1667
|
-
outcomeIdentifier:
|
|
1668
|
-
variableIdentifier:
|
|
1663
|
+
outcomeIdentifier: NonEmptyString,
|
|
1664
|
+
variableIdentifier: NonEmptyString
|
|
1669
1665
|
}).strict();
|
|
1670
1666
|
var QtiResponseProcessing = z11.object({
|
|
1671
1667
|
templateType: z11.enum(["match_correct", "map_response"]),
|
|
1672
|
-
responseDeclarationIdentifier:
|
|
1673
|
-
outcomeIdentifier:
|
|
1674
|
-
correctResponseIdentifier:
|
|
1675
|
-
incorrectResponseIdentifier:
|
|
1668
|
+
responseDeclarationIdentifier: NonEmptyString,
|
|
1669
|
+
outcomeIdentifier: NonEmptyString,
|
|
1670
|
+
correctResponseIdentifier: NonEmptyString,
|
|
1671
|
+
incorrectResponseIdentifier: NonEmptyString,
|
|
1676
1672
|
inlineFeedback: QtiInlineFeedback.optional()
|
|
1677
1673
|
}).strict();
|
|
1678
1674
|
var QtiLearningObjectiveSet = z11.object({
|
|
1679
|
-
source:
|
|
1675
|
+
source: NonEmptyString,
|
|
1680
1676
|
learningObjectiveIds: z11.array(z11.string())
|
|
1681
1677
|
}).strict();
|
|
1682
1678
|
var QtiItemMetadata = z11.object({
|
|
@@ -1686,32 +1682,32 @@ var QtiItemMetadata = z11.object({
|
|
|
1686
1682
|
learningObjectiveSet: z11.array(QtiLearningObjectiveSet).optional()
|
|
1687
1683
|
}).loose();
|
|
1688
1684
|
var QtiModalFeedback = z11.object({
|
|
1689
|
-
outcomeIdentifier:
|
|
1690
|
-
identifier:
|
|
1685
|
+
outcomeIdentifier: NonEmptyString,
|
|
1686
|
+
identifier: NonEmptyString,
|
|
1691
1687
|
showHide: QtiShowHide,
|
|
1692
1688
|
content: z11.string(),
|
|
1693
1689
|
title: z11.string()
|
|
1694
1690
|
}).strict();
|
|
1695
1691
|
var QtiFeedbackInline = z11.object({
|
|
1696
|
-
outcomeIdentifier:
|
|
1697
|
-
identifier:
|
|
1692
|
+
outcomeIdentifier: NonEmptyString,
|
|
1693
|
+
identifier: NonEmptyString,
|
|
1698
1694
|
showHide: QtiShowHide,
|
|
1699
1695
|
content: z11.string(),
|
|
1700
1696
|
class: z11.array(z11.string())
|
|
1701
1697
|
}).strict();
|
|
1702
1698
|
var QtiFeedbackBlock = z11.object({
|
|
1703
|
-
outcomeIdentifier:
|
|
1704
|
-
identifier:
|
|
1699
|
+
outcomeIdentifier: NonEmptyString,
|
|
1700
|
+
identifier: NonEmptyString,
|
|
1705
1701
|
showHide: QtiShowHide,
|
|
1706
1702
|
content: z11.string(),
|
|
1707
1703
|
class: z11.array(z11.string())
|
|
1708
1704
|
}).strict();
|
|
1709
1705
|
var QtiStylesheet = z11.object({
|
|
1710
|
-
href:
|
|
1711
|
-
type:
|
|
1706
|
+
href: NonEmptyString,
|
|
1707
|
+
type: NonEmptyString
|
|
1712
1708
|
}).strict();
|
|
1713
1709
|
var QtiCatalogInfo = z11.object({
|
|
1714
|
-
id:
|
|
1710
|
+
id: NonEmptyString,
|
|
1715
1711
|
support: z11.string(),
|
|
1716
1712
|
content: z11.string()
|
|
1717
1713
|
}).strict();
|
|
@@ -1723,12 +1719,12 @@ var QtiPaginationParams = z11.object({
|
|
|
1723
1719
|
}).strict();
|
|
1724
1720
|
var QtiAssessmentItemXmlCreateInput = z11.object({
|
|
1725
1721
|
format: z11.string().pipe(z11.literal("xml")),
|
|
1726
|
-
xml:
|
|
1722
|
+
xml: NonEmptyString,
|
|
1727
1723
|
metadata: QtiItemMetadata.optional()
|
|
1728
1724
|
}).strict();
|
|
1729
1725
|
var QtiAssessmentItemJsonCreateInput = z11.object({
|
|
1730
|
-
identifier:
|
|
1731
|
-
title:
|
|
1726
|
+
identifier: NonEmptyString,
|
|
1727
|
+
title: NonEmptyString,
|
|
1732
1728
|
type: QtiAssessmentItemType,
|
|
1733
1729
|
qtiVersion: z11.string().optional(),
|
|
1734
1730
|
timeDependent: z11.boolean().optional(),
|
|
@@ -1746,8 +1742,8 @@ var QtiAssessmentItemCreateInput = z11.union([
|
|
|
1746
1742
|
QtiAssessmentItemJsonCreateInput
|
|
1747
1743
|
]);
|
|
1748
1744
|
var QtiAssessmentItemUpdateInput = z11.object({
|
|
1749
|
-
identifier:
|
|
1750
|
-
title:
|
|
1745
|
+
identifier: NonEmptyString.optional(),
|
|
1746
|
+
title: NonEmptyString,
|
|
1751
1747
|
type: QtiAssessmentItemType,
|
|
1752
1748
|
qtiVersion: z11.string().optional(),
|
|
1753
1749
|
timeDependent: z11.boolean().optional(),
|
|
@@ -1763,17 +1759,17 @@ var QtiAssessmentItemUpdateInput = z11.object({
|
|
|
1763
1759
|
content: z11.record(z11.string(), z11.unknown())
|
|
1764
1760
|
}).strict();
|
|
1765
1761
|
var QtiAssessmentItemProcessResponseInput = z11.object({
|
|
1766
|
-
identifier:
|
|
1762
|
+
identifier: NonEmptyString,
|
|
1767
1763
|
response: z11.union([z11.string(), z11.array(z11.string())])
|
|
1768
1764
|
}).strict();
|
|
1769
1765
|
var QtiAssessmentItemRef = z11.object({
|
|
1770
|
-
identifier:
|
|
1771
|
-
href:
|
|
1766
|
+
identifier: NonEmptyString,
|
|
1767
|
+
href: NonEmptyString,
|
|
1772
1768
|
sequence: z11.number().int().positive().optional()
|
|
1773
1769
|
}).strict();
|
|
1774
1770
|
var QtiAssessmentSection = z11.object({
|
|
1775
|
-
identifier:
|
|
1776
|
-
title:
|
|
1771
|
+
identifier: NonEmptyString,
|
|
1772
|
+
title: NonEmptyString,
|
|
1777
1773
|
visible: z11.boolean(),
|
|
1778
1774
|
required: z11.boolean().optional(),
|
|
1779
1775
|
fixed: z11.boolean().optional(),
|
|
@@ -1781,7 +1777,7 @@ var QtiAssessmentSection = z11.object({
|
|
|
1781
1777
|
"qti-assessment-item-ref": z11.array(QtiAssessmentItemRef).optional()
|
|
1782
1778
|
}).strict();
|
|
1783
1779
|
var QtiTestPart = z11.object({
|
|
1784
|
-
identifier:
|
|
1780
|
+
identifier: NonEmptyString,
|
|
1785
1781
|
navigationMode: z11.string().pipe(QtiNavigationMode),
|
|
1786
1782
|
submissionMode: z11.string().pipe(QtiSubmissionMode),
|
|
1787
1783
|
"qti-assessment-section": z11.array(QtiAssessmentSection)
|
|
@@ -1793,8 +1789,8 @@ var QtiAssessmentTestMetadataUpdateInput = z11.object({
|
|
|
1793
1789
|
metadata: z11.record(z11.string(), z11.unknown()).optional()
|
|
1794
1790
|
}).strict();
|
|
1795
1791
|
var QtiAssessmentTestCreateInput = z11.object({
|
|
1796
|
-
identifier:
|
|
1797
|
-
title:
|
|
1792
|
+
identifier: NonEmptyString,
|
|
1793
|
+
title: NonEmptyString,
|
|
1798
1794
|
qtiVersion: z11.string().optional(),
|
|
1799
1795
|
toolName: z11.string().optional(),
|
|
1800
1796
|
toolVersion: z11.string().optional(),
|
|
@@ -1806,8 +1802,8 @@ var QtiAssessmentTestCreateInput = z11.object({
|
|
|
1806
1802
|
"qti-outcome-declaration": z11.array(QtiTestOutcomeDeclaration).optional()
|
|
1807
1803
|
}).strict();
|
|
1808
1804
|
var QtiAssessmentTestUpdateInput = z11.object({
|
|
1809
|
-
identifier:
|
|
1810
|
-
title:
|
|
1805
|
+
identifier: NonEmptyString.optional(),
|
|
1806
|
+
title: NonEmptyString,
|
|
1811
1807
|
qtiVersion: z11.string().optional(),
|
|
1812
1808
|
toolName: z11.string().optional(),
|
|
1813
1809
|
toolVersion: z11.string().optional(),
|
|
@@ -1819,8 +1815,8 @@ var QtiAssessmentTestUpdateInput = z11.object({
|
|
|
1819
1815
|
"qti-outcome-declaration": z11.array(QtiTestOutcomeDeclaration).optional()
|
|
1820
1816
|
}).strict();
|
|
1821
1817
|
var QtiStimulusCreateInput = z11.object({
|
|
1822
|
-
identifier:
|
|
1823
|
-
title:
|
|
1818
|
+
identifier: NonEmptyString,
|
|
1819
|
+
title: NonEmptyString,
|
|
1824
1820
|
label: z11.string().optional(),
|
|
1825
1821
|
language: z11.string().optional(),
|
|
1826
1822
|
stylesheet: QtiStylesheet.optional(),
|
|
@@ -1831,8 +1827,8 @@ var QtiStimulusCreateInput = z11.object({
|
|
|
1831
1827
|
metadata: z11.record(z11.string(), z11.unknown()).optional()
|
|
1832
1828
|
}).strict();
|
|
1833
1829
|
var QtiStimulusUpdateInput = z11.object({
|
|
1834
|
-
identifier:
|
|
1835
|
-
title:
|
|
1830
|
+
identifier: NonEmptyString.optional(),
|
|
1831
|
+
title: NonEmptyString,
|
|
1836
1832
|
label: z11.string().optional(),
|
|
1837
1833
|
language: z11.string().optional(),
|
|
1838
1834
|
stylesheet: QtiStylesheet.optional(),
|
|
@@ -1854,9 +1850,9 @@ var QtiValidateBatchInput = z11.object({
|
|
|
1854
1850
|
}).strict();
|
|
1855
1851
|
var QtiLessonFeedbackInput = z11.object({
|
|
1856
1852
|
questionId: z11.string().optional(),
|
|
1857
|
-
userId:
|
|
1858
|
-
feedback:
|
|
1859
|
-
lessonId:
|
|
1853
|
+
userId: NonEmptyString,
|
|
1854
|
+
feedback: NonEmptyString,
|
|
1855
|
+
lessonId: NonEmptyString,
|
|
1860
1856
|
humanApproved: z11.boolean().optional()
|
|
1861
1857
|
}).strict();
|
|
1862
1858
|
// ../edubridge/src/resources/analytics.ts
|
package/dist/index.js
CHANGED
package/dist/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@timeback/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
"test:e2e": "vitest run --config vitest.e2e.config.ts"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@timeback/caliper": "0.
|
|
35
|
-
"@timeback/case": "0.
|
|
36
|
-
"@timeback/clr": "0.
|
|
37
|
-
"@timeback/edubridge": "0.
|
|
34
|
+
"@timeback/caliper": "0.2.0",
|
|
35
|
+
"@timeback/case": "0.2.0",
|
|
36
|
+
"@timeback/clr": "0.2.0",
|
|
37
|
+
"@timeback/edubridge": "0.2.0",
|
|
38
38
|
"@timeback/internal-client-infra": "0.0.0",
|
|
39
39
|
"@timeback/internal-constants": "0.0.0",
|
|
40
40
|
"@timeback/internal-test": "0.0.0",
|
|
41
41
|
"@timeback/internal-utils": "0.0.0",
|
|
42
|
-
"@timeback/oneroster": "0.
|
|
43
|
-
"@timeback/powerpath": "0.
|
|
44
|
-
"@timeback/qti": "0.
|
|
45
|
-
"@timeback/webhooks": "0.
|
|
42
|
+
"@timeback/oneroster": "0.2.0",
|
|
43
|
+
"@timeback/powerpath": "0.2.0",
|
|
44
|
+
"@timeback/qti": "0.2.0",
|
|
45
|
+
"@timeback/webhooks": "0.2.0",
|
|
46
46
|
"@types/bun": "latest",
|
|
47
47
|
"esbuild": "^0.27.3"
|
|
48
48
|
},
|