@timeback/oneroster 0.1.9-beta.20260310173551 → 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-567r42vy.js → chunk-4fwv2yyb.js} +13 -5
- package/dist/errors.js +1 -1
- package/dist/index.d.ts +64 -64
- package/dist/index.js +278 -231
- package/dist/resources/assessment/line-items.d.ts +2 -2
- package/dist/resources/base.d.ts +8 -8
- package/dist/resources/rostering/academic-sessions.d.ts +4 -4
- package/dist/resources/rostering/classes.d.ts +18 -18
- package/dist/resources/rostering/courses.d.ts +6 -6
- package/dist/resources/rostering/schools.d.ts +22 -22
- package/dist/resources/rostering/users.d.ts +8 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
validateSourcedId,
|
|
13
13
|
validateWithSchema,
|
|
14
14
|
whereToFilter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4fwv2yyb.js";
|
|
16
16
|
import"./chunk-6jf1natv.js";
|
|
17
17
|
|
|
18
18
|
// src/constants.ts
|
|
@@ -67,6 +67,7 @@ import { z } from "zod/v4";
|
|
|
67
67
|
var IsoDateTimeRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
|
|
68
68
|
var IsoDateTimeString = z.string().min(1).regex(IsoDateTimeRegex, "must be a valid ISO 8601 datetime");
|
|
69
69
|
var IsoDateString = z.string().min(1).regex(/^\d{4}-\d{2}-\d{2}$/, "must be a valid ISO 8601 date (YYYY-MM-DD)");
|
|
70
|
+
var NonEmptyString = z.string().trim().min(1);
|
|
70
71
|
var TimebackSubject = z.enum([
|
|
71
72
|
"Reading",
|
|
72
73
|
"Language",
|
|
@@ -180,6 +181,7 @@ var IMSErrorResponse = z.object({
|
|
|
180
181
|
});
|
|
181
182
|
// ../../types/src/zod/caliper.ts
|
|
182
183
|
import { z as z2 } from "zod/v4";
|
|
184
|
+
var CaliperIri = z2.union([z2.url(), z2.string().regex(/^urn:/, "Must be a URL or URN")]);
|
|
183
185
|
var TimebackUser = z2.object({
|
|
184
186
|
id: z2.url(),
|
|
185
187
|
type: z2.literal("TimebackUser"),
|
|
@@ -289,11 +291,10 @@ var CaliperProfile = z2.enum([
|
|
|
289
291
|
]);
|
|
290
292
|
var CaliperEntity = z2.union([z2.string(), z2.record(z2.string(), z2.unknown())]);
|
|
291
293
|
var CaliperActor = z2.object({
|
|
292
|
-
id:
|
|
294
|
+
id: CaliperIri,
|
|
293
295
|
type: z2.string(),
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
}).loose()
|
|
296
|
+
name: z2.string().optional(),
|
|
297
|
+
extensions: z2.record(z2.string(), z2.unknown()).optional()
|
|
297
298
|
}).strict();
|
|
298
299
|
var CaliperEvent = z2.object({
|
|
299
300
|
"@context": z2.string().optional(),
|
|
@@ -315,30 +316,81 @@ var CaliperEvent = z2.object({
|
|
|
315
316
|
extensions: z2.record(z2.string(), z2.unknown()).optional()
|
|
316
317
|
}).strict();
|
|
317
318
|
var CaliperEnvelopeInput = z2.object({
|
|
318
|
-
sensor:
|
|
319
|
+
sensor: NonEmptyString,
|
|
319
320
|
sendTime: IsoDateTimeString,
|
|
320
321
|
dataVersion: z2.literal("http://purl.imsglobal.org/ctx/caliper/v1p2"),
|
|
321
322
|
data: z2.array(CaliperEvent).min(1, "data must contain at least one event")
|
|
322
323
|
});
|
|
323
324
|
var CaliperSendEventsInput = z2.object({
|
|
324
|
-
sensor:
|
|
325
|
+
sensor: NonEmptyString,
|
|
325
326
|
events: z2.array(CaliperEvent).min(1, "events must contain at least one event")
|
|
326
327
|
});
|
|
327
328
|
var CaliperListEventsParams = z2.object({
|
|
328
329
|
limit: z2.number().int().positive().optional(),
|
|
329
330
|
offset: z2.number().int().min(0).optional(),
|
|
330
|
-
sensor:
|
|
331
|
+
sensor: NonEmptyString.optional(),
|
|
331
332
|
startDate: IsoDateTimeString.optional(),
|
|
332
333
|
endDate: IsoDateTimeString.optional(),
|
|
333
|
-
actorId:
|
|
334
|
+
actorId: NonEmptyString.optional(),
|
|
334
335
|
actorEmail: z2.email().optional()
|
|
335
336
|
}).strict();
|
|
337
|
+
var AssessmentItemObject = z2.object({
|
|
338
|
+
id: z2.string(),
|
|
339
|
+
name: z2.string().optional(),
|
|
340
|
+
isPartOf: CaliperEntity.optional(),
|
|
341
|
+
extensions: z2.record(z2.string(), z2.unknown()).optional()
|
|
342
|
+
});
|
|
343
|
+
var ResponseGenerated = z2.object({
|
|
344
|
+
id: z2.string(),
|
|
345
|
+
attempt: z2.union([z2.string(), z2.record(z2.string(), z2.unknown())]).optional(),
|
|
346
|
+
startedAtTime: IsoDateTimeString.optional(),
|
|
347
|
+
endedAtTime: IsoDateTimeString.optional(),
|
|
348
|
+
duration: z2.string().optional(),
|
|
349
|
+
extensions: z2.record(z2.string(), z2.unknown()).optional()
|
|
350
|
+
});
|
|
351
|
+
var ScoreGenerated = z2.object({
|
|
352
|
+
id: z2.string().optional(),
|
|
353
|
+
scoreGiven: z2.number(),
|
|
354
|
+
maxScore: z2.number().optional(),
|
|
355
|
+
attempt: z2.union([z2.string(), z2.record(z2.string(), z2.unknown())]).optional(),
|
|
356
|
+
comment: z2.string().optional(),
|
|
357
|
+
extensions: z2.record(z2.string(), z2.unknown()).optional()
|
|
358
|
+
});
|
|
359
|
+
var QuestionSeenInput = z2.object({
|
|
360
|
+
actor: z2.union([z2.string(), CaliperActor, TimebackUser]),
|
|
361
|
+
object: AssessmentItemObject,
|
|
362
|
+
edApp: CaliperEntity,
|
|
363
|
+
id: z2.string().optional(),
|
|
364
|
+
eventTime: IsoDateTimeString.optional(),
|
|
365
|
+
session: CaliperEntity.optional(),
|
|
366
|
+
extensions: z2.record(z2.string(), z2.unknown()).optional()
|
|
367
|
+
}).strict();
|
|
368
|
+
var QuestionAnsweredInput = z2.object({
|
|
369
|
+
actor: z2.union([z2.string(), CaliperActor, TimebackUser]),
|
|
370
|
+
object: AssessmentItemObject,
|
|
371
|
+
edApp: CaliperEntity,
|
|
372
|
+
generated: ResponseGenerated.optional(),
|
|
373
|
+
id: z2.string().optional(),
|
|
374
|
+
eventTime: IsoDateTimeString.optional(),
|
|
375
|
+
session: CaliperEntity.optional(),
|
|
376
|
+
extensions: z2.record(z2.string(), z2.unknown()).optional()
|
|
377
|
+
}).strict();
|
|
378
|
+
var QuestionGradedInput = z2.object({
|
|
379
|
+
actor: z2.union([z2.string(), CaliperActor, TimebackUser]),
|
|
380
|
+
object: z2.string(),
|
|
381
|
+
generated: ScoreGenerated,
|
|
382
|
+
edApp: CaliperEntity,
|
|
383
|
+
id: z2.string().optional(),
|
|
384
|
+
eventTime: IsoDateTimeString.optional(),
|
|
385
|
+
session: CaliperEntity.optional(),
|
|
386
|
+
extensions: z2.record(z2.string(), z2.unknown()).optional()
|
|
387
|
+
}).strict();
|
|
336
388
|
// ../../types/src/zod/webhooks.ts
|
|
337
389
|
import { z as z3 } from "zod/v4";
|
|
338
390
|
var WebhookCreateInput = z3.object({
|
|
339
|
-
name:
|
|
391
|
+
name: NonEmptyString,
|
|
340
392
|
targetUrl: z3.url("targetUrl must be a valid URL"),
|
|
341
|
-
secret:
|
|
393
|
+
secret: NonEmptyString,
|
|
342
394
|
active: z3.boolean(),
|
|
343
395
|
sensor: z3.string().nullable().optional(),
|
|
344
396
|
description: z3.string().nullable().optional()
|
|
@@ -360,16 +412,15 @@ var WebhookFilterOperation = z3.enum([
|
|
|
360
412
|
"regexp"
|
|
361
413
|
]);
|
|
362
414
|
var WebhookFilterCreateInput = z3.object({
|
|
363
|
-
webhookId:
|
|
364
|
-
filterKey:
|
|
365
|
-
filterValue:
|
|
415
|
+
webhookId: NonEmptyString,
|
|
416
|
+
filterKey: NonEmptyString,
|
|
417
|
+
filterValue: NonEmptyString,
|
|
366
418
|
filterType: WebhookFilterType,
|
|
367
419
|
filterOperator: WebhookFilterOperation,
|
|
368
420
|
active: z3.boolean()
|
|
369
421
|
}).strict();
|
|
370
422
|
// ../../types/src/zod/case.ts
|
|
371
423
|
import { z as z4 } from "zod/v4";
|
|
372
|
-
var NonEmptyString = z4.string().trim().min(1);
|
|
373
424
|
var UuidString = z4.string().uuid();
|
|
374
425
|
var InputNodeURISchema = z4.object({
|
|
375
426
|
title: NonEmptyString,
|
|
@@ -463,15 +514,15 @@ var ClrProfileSchema = z5.object({
|
|
|
463
514
|
email: z5.string().email().optional()
|
|
464
515
|
});
|
|
465
516
|
var ClrProofSchema = z5.object({
|
|
466
|
-
type:
|
|
467
|
-
proofPurpose:
|
|
468
|
-
verificationMethod:
|
|
517
|
+
type: NonEmptyString,
|
|
518
|
+
proofPurpose: NonEmptyString,
|
|
519
|
+
verificationMethod: NonEmptyString,
|
|
469
520
|
created: z5.iso.datetime(),
|
|
470
|
-
proofValue:
|
|
521
|
+
proofValue: NonEmptyString,
|
|
471
522
|
cryptosuite: z5.string().optional()
|
|
472
523
|
});
|
|
473
524
|
var ClrCredentialSchemaSchema = z5.object({
|
|
474
|
-
id:
|
|
525
|
+
id: NonEmptyString,
|
|
475
526
|
type: z5.literal("1EdTechJsonSchemaValidator2019")
|
|
476
527
|
});
|
|
477
528
|
var AchievementCriteriaSchema = z5.object({
|
|
@@ -481,8 +532,8 @@ var AchievementCriteriaSchema = z5.object({
|
|
|
481
532
|
var AchievementSchema = z5.object({
|
|
482
533
|
id: z5.url(),
|
|
483
534
|
type: z5.array(z5.string()).min(1).refine((arr) => arr.includes("Achievement"), 'type must include "Achievement"'),
|
|
484
|
-
name:
|
|
485
|
-
description:
|
|
535
|
+
name: NonEmptyString,
|
|
536
|
+
description: NonEmptyString,
|
|
486
537
|
criteria: AchievementCriteriaSchema,
|
|
487
538
|
image: ClrImageSchema.optional(),
|
|
488
539
|
achievementType: z5.string().optional(),
|
|
@@ -490,8 +541,8 @@ var AchievementSchema = z5.object({
|
|
|
490
541
|
});
|
|
491
542
|
var IdentityObjectSchema = z5.object({
|
|
492
543
|
type: z5.literal("IdentityObject"),
|
|
493
|
-
identityHash:
|
|
494
|
-
identityType:
|
|
544
|
+
identityHash: NonEmptyString,
|
|
545
|
+
identityType: NonEmptyString,
|
|
495
546
|
hashed: z5.boolean(),
|
|
496
547
|
salt: z5.string().optional()
|
|
497
548
|
});
|
|
@@ -536,7 +587,7 @@ var ClrCredentialInput = z5.object({
|
|
|
536
587
|
id: z5.url(),
|
|
537
588
|
type: z5.array(z5.string()).min(1).refine((arr) => arr.includes("VerifiableCredential") && arr.includes("ClrCredential"), 'type must include "VerifiableCredential" and "ClrCredential"'),
|
|
538
589
|
issuer: ClrProfileSchema,
|
|
539
|
-
name:
|
|
590
|
+
name: NonEmptyString,
|
|
540
591
|
description: z5.string().optional(),
|
|
541
592
|
validFrom: z5.iso.datetime(),
|
|
542
593
|
validUntil: z5.iso.datetime().optional(),
|
|
@@ -713,10 +764,9 @@ var EduBridgeEnrollmentAnalyticsResponse = z7.object({
|
|
|
713
764
|
facts: EduBridgeAnalyticsFacts,
|
|
714
765
|
factsByApp: z7.unknown()
|
|
715
766
|
});
|
|
716
|
-
var NonEmptyString2 = z7.string().trim().min(1);
|
|
717
767
|
var EmailOrStudentId = z7.object({
|
|
718
768
|
email: z7.email().optional(),
|
|
719
|
-
studentId:
|
|
769
|
+
studentId: NonEmptyString.optional()
|
|
720
770
|
}).superRefine((value, ctx) => {
|
|
721
771
|
if (!value.email && !value.studentId) {
|
|
722
772
|
ctx.addIssue({
|
|
@@ -732,16 +782,16 @@ var EmailOrStudentId = z7.object({
|
|
|
732
782
|
}
|
|
733
783
|
});
|
|
734
784
|
var SubjectTrackInput = z7.object({
|
|
735
|
-
subject:
|
|
736
|
-
grade:
|
|
737
|
-
courseId:
|
|
738
|
-
orgSourcedId:
|
|
785
|
+
subject: NonEmptyString,
|
|
786
|
+
grade: NonEmptyString,
|
|
787
|
+
courseId: NonEmptyString,
|
|
788
|
+
orgSourcedId: NonEmptyString.optional()
|
|
739
789
|
});
|
|
740
790
|
var EdubridgeListEnrollmentsParams = z7.object({
|
|
741
|
-
userId:
|
|
791
|
+
userId: NonEmptyString
|
|
742
792
|
});
|
|
743
793
|
var EdubridgeEnrollOptions = z7.object({
|
|
744
|
-
sourcedId:
|
|
794
|
+
sourcedId: NonEmptyString.optional(),
|
|
745
795
|
role: EnrollmentRole.optional(),
|
|
746
796
|
beginDate: IsoDateTimeString.optional(),
|
|
747
797
|
metadata: z7.record(z7.string(), z7.unknown()).optional()
|
|
@@ -755,7 +805,7 @@ var EdubridgeUsersListParams = z7.object({
|
|
|
755
805
|
filter: z7.string().optional(),
|
|
756
806
|
search: z7.string().optional(),
|
|
757
807
|
roles: z7.array(OneRosterUserRole).min(1),
|
|
758
|
-
orgSourcedIds: z7.array(
|
|
808
|
+
orgSourcedIds: z7.array(NonEmptyString).optional()
|
|
759
809
|
});
|
|
760
810
|
var EdubridgeActivityParams = EmailOrStudentId.extend({
|
|
761
811
|
startDate: EdubridgeDateStringInput,
|
|
@@ -767,31 +817,30 @@ var EdubridgeWeeklyFactsParams = EmailOrStudentId.extend({
|
|
|
767
817
|
timezone: z7.string().optional()
|
|
768
818
|
});
|
|
769
819
|
var EdubridgeEnrollmentFactsParams = z7.object({
|
|
770
|
-
enrollmentId:
|
|
820
|
+
enrollmentId: NonEmptyString,
|
|
771
821
|
startDate: EdubridgeDateStringInput.optional(),
|
|
772
822
|
endDate: EdubridgeDateStringInput.optional(),
|
|
773
823
|
timezone: z7.string().optional()
|
|
774
824
|
});
|
|
775
825
|
// ../../types/src/zod/masterytrack.ts
|
|
776
826
|
import { z as z8 } from "zod/v4";
|
|
777
|
-
var NonEmptyString3 = z8.string().trim().min(1);
|
|
778
827
|
var MasteryTrackAuthorizerInput = z8.object({
|
|
779
828
|
email: z8.email()
|
|
780
829
|
});
|
|
781
830
|
var MasteryTrackInventorySearchParams = z8.object({
|
|
782
|
-
name:
|
|
783
|
-
timeback_id:
|
|
784
|
-
grade:
|
|
785
|
-
subject:
|
|
831
|
+
name: NonEmptyString.optional(),
|
|
832
|
+
timeback_id: NonEmptyString.optional(),
|
|
833
|
+
grade: NonEmptyString.optional(),
|
|
834
|
+
subject: NonEmptyString.optional(),
|
|
786
835
|
all: z8.boolean().optional()
|
|
787
836
|
});
|
|
788
837
|
var MasteryTrackAssignmentInput = z8.object({
|
|
789
838
|
student_email: z8.email(),
|
|
790
|
-
timeback_id:
|
|
791
|
-
subject:
|
|
839
|
+
timeback_id: NonEmptyString.optional(),
|
|
840
|
+
subject: NonEmptyString.optional(),
|
|
792
841
|
grade_rank: z8.number().int().min(0).max(12).optional(),
|
|
793
|
-
assessment_line_item_sourced_id:
|
|
794
|
-
assessment_result_sourced_id:
|
|
842
|
+
assessment_line_item_sourced_id: NonEmptyString.optional(),
|
|
843
|
+
assessment_result_sourced_id: NonEmptyString.optional()
|
|
795
844
|
}).superRefine((value, ctx) => {
|
|
796
845
|
const hasTimebackId = !!value.timeback_id;
|
|
797
846
|
const hasSubject = !!value.subject;
|
|
@@ -828,8 +877,8 @@ var MasteryTrackAssignmentInput = z8.object({
|
|
|
828
877
|
var MasteryTrackInvalidateAssignmentInput = z8.object({
|
|
829
878
|
student_email: z8.email(),
|
|
830
879
|
assignment_id: z8.number().int().positive().optional(),
|
|
831
|
-
timeback_id:
|
|
832
|
-
subject:
|
|
880
|
+
timeback_id: NonEmptyString.optional(),
|
|
881
|
+
subject: NonEmptyString.optional(),
|
|
833
882
|
grade_rank: z8.number().int().min(0).max(12).optional()
|
|
834
883
|
}).superRefine((value, ctx) => {
|
|
835
884
|
const byAssignment = value.assignment_id !== undefined;
|
|
@@ -852,11 +901,10 @@ var MasteryTrackInvalidateAssignmentInput = z8.object({
|
|
|
852
901
|
});
|
|
853
902
|
// ../../types/src/zod/oneroster.ts
|
|
854
903
|
import { z as z9 } from "zod/v4";
|
|
855
|
-
var NonEmptyString4 = z9.string().min(1);
|
|
856
904
|
var Status = z9.enum(["active", "tobedeleted"]);
|
|
857
905
|
var Metadata = z9.record(z9.string(), z9.unknown()).nullable().optional();
|
|
858
906
|
var Ref = z9.object({
|
|
859
|
-
sourcedId:
|
|
907
|
+
sourcedId: NonEmptyString,
|
|
860
908
|
type: z9.string().optional(),
|
|
861
909
|
href: z9.string().optional()
|
|
862
910
|
}).strict();
|
|
@@ -871,58 +919,58 @@ var OneRosterUserRoleInput = z9.object({
|
|
|
871
919
|
endDate: OneRosterDateString.optional()
|
|
872
920
|
}).strict();
|
|
873
921
|
var OneRosterUserCreateInput = z9.object({
|
|
874
|
-
sourcedId:
|
|
922
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string"),
|
|
875
923
|
status: Status.optional(),
|
|
876
924
|
enabledUser: z9.boolean(),
|
|
877
|
-
givenName:
|
|
878
|
-
familyName:
|
|
879
|
-
middleName:
|
|
880
|
-
username:
|
|
925
|
+
givenName: NonEmptyString.describe("givenName must be a non-empty string"),
|
|
926
|
+
familyName: NonEmptyString.describe("familyName must be a non-empty string"),
|
|
927
|
+
middleName: NonEmptyString.optional(),
|
|
928
|
+
username: NonEmptyString.optional(),
|
|
881
929
|
email: z9.email(),
|
|
882
930
|
roles: z9.array(OneRosterUserRoleInput).min(1, "roles must include at least one role"),
|
|
883
931
|
userIds: z9.array(z9.object({
|
|
884
|
-
type:
|
|
885
|
-
identifier:
|
|
932
|
+
type: NonEmptyString,
|
|
933
|
+
identifier: NonEmptyString
|
|
886
934
|
}).strict()).optional(),
|
|
887
935
|
agents: z9.array(Ref).optional(),
|
|
888
936
|
grades: z9.array(TimebackGrade).optional(),
|
|
889
|
-
identifier:
|
|
890
|
-
sms:
|
|
891
|
-
phone:
|
|
892
|
-
pronouns:
|
|
893
|
-
password:
|
|
937
|
+
identifier: NonEmptyString.optional(),
|
|
938
|
+
sms: NonEmptyString.optional(),
|
|
939
|
+
phone: NonEmptyString.optional(),
|
|
940
|
+
pronouns: NonEmptyString.optional(),
|
|
941
|
+
password: NonEmptyString.optional(),
|
|
894
942
|
metadata: Metadata
|
|
895
943
|
}).strict();
|
|
896
944
|
var OneRosterCourseCreateInput = z9.object({
|
|
897
|
-
sourcedId:
|
|
945
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string").optional(),
|
|
898
946
|
status: Status.optional(),
|
|
899
|
-
title:
|
|
947
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
900
948
|
org: Ref,
|
|
901
|
-
courseCode:
|
|
949
|
+
courseCode: NonEmptyString.optional(),
|
|
902
950
|
subjects: z9.array(TimebackSubject).optional(),
|
|
903
951
|
grades: z9.array(TimebackGrade).optional(),
|
|
904
|
-
level:
|
|
952
|
+
level: NonEmptyString.optional(),
|
|
905
953
|
metadata: Metadata
|
|
906
954
|
}).strict();
|
|
907
955
|
var OneRosterClassCreateInput = z9.object({
|
|
908
|
-
sourcedId:
|
|
956
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string").optional(),
|
|
909
957
|
status: Status.optional(),
|
|
910
|
-
title:
|
|
958
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
911
959
|
terms: z9.array(Ref).min(1, "terms must have at least one item"),
|
|
912
960
|
course: Ref,
|
|
913
961
|
org: Ref,
|
|
914
|
-
classCode:
|
|
962
|
+
classCode: NonEmptyString.optional(),
|
|
915
963
|
classType: z9.enum(["homeroom", "scheduled"]).optional(),
|
|
916
|
-
location:
|
|
964
|
+
location: NonEmptyString.optional(),
|
|
917
965
|
grades: z9.array(TimebackGrade).optional(),
|
|
918
966
|
subjects: z9.array(TimebackSubject).optional(),
|
|
919
|
-
subjectCodes: z9.array(
|
|
920
|
-
periods: z9.array(
|
|
967
|
+
subjectCodes: z9.array(NonEmptyString).optional(),
|
|
968
|
+
periods: z9.array(NonEmptyString).optional(),
|
|
921
969
|
metadata: Metadata
|
|
922
970
|
}).strict();
|
|
923
971
|
var StringBoolean = z9.enum(["true", "false"]);
|
|
924
972
|
var OneRosterEnrollmentCreateInput = z9.object({
|
|
925
|
-
sourcedId:
|
|
973
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string").optional(),
|
|
926
974
|
status: Status.optional(),
|
|
927
975
|
user: Ref,
|
|
928
976
|
class: Ref,
|
|
@@ -934,15 +982,15 @@ var OneRosterEnrollmentCreateInput = z9.object({
|
|
|
934
982
|
metadata: Metadata
|
|
935
983
|
}).strict();
|
|
936
984
|
var OneRosterCategoryCreateInput = z9.object({
|
|
937
|
-
sourcedId:
|
|
938
|
-
title:
|
|
985
|
+
sourcedId: NonEmptyString.optional(),
|
|
986
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
939
987
|
status: Status,
|
|
940
988
|
weight: z9.number().nullable().optional(),
|
|
941
989
|
metadata: Metadata
|
|
942
990
|
}).strict();
|
|
943
991
|
var OneRosterLineItemCreateInput = z9.object({
|
|
944
|
-
sourcedId:
|
|
945
|
-
title:
|
|
992
|
+
sourcedId: NonEmptyString.optional(),
|
|
993
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
946
994
|
class: Ref,
|
|
947
995
|
school: Ref,
|
|
948
996
|
category: Ref,
|
|
@@ -956,7 +1004,7 @@ var OneRosterLineItemCreateInput = z9.object({
|
|
|
956
1004
|
metadata: Metadata
|
|
957
1005
|
}).strict();
|
|
958
1006
|
var OneRosterResultCreateInput = z9.object({
|
|
959
|
-
sourcedId:
|
|
1007
|
+
sourcedId: NonEmptyString.optional(),
|
|
960
1008
|
lineItem: Ref,
|
|
961
1009
|
student: Ref,
|
|
962
1010
|
class: Ref.optional(),
|
|
@@ -975,15 +1023,15 @@ var OneRosterResultCreateInput = z9.object({
|
|
|
975
1023
|
metadata: Metadata
|
|
976
1024
|
}).strict();
|
|
977
1025
|
var OneRosterScoreScaleCreateInput = z9.object({
|
|
978
|
-
sourcedId:
|
|
979
|
-
title:
|
|
1026
|
+
sourcedId: NonEmptyString.optional(),
|
|
1027
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
980
1028
|
status: Status.optional(),
|
|
981
1029
|
type: z9.string(),
|
|
982
1030
|
class: Ref,
|
|
983
1031
|
course: Ref.nullable().optional(),
|
|
984
1032
|
scoreScaleValue: z9.array(z9.object({
|
|
985
|
-
itemValueLHS:
|
|
986
|
-
itemValueRHS:
|
|
1033
|
+
itemValueLHS: NonEmptyString,
|
|
1034
|
+
itemValueRHS: NonEmptyString,
|
|
987
1035
|
value: z9.string().optional(),
|
|
988
1036
|
description: z9.string().optional()
|
|
989
1037
|
}).strict()),
|
|
@@ -992,10 +1040,10 @@ var OneRosterScoreScaleCreateInput = z9.object({
|
|
|
992
1040
|
metadata: Metadata
|
|
993
1041
|
}).strict();
|
|
994
1042
|
var OneRosterAssessmentLineItemCreateInput = z9.object({
|
|
995
|
-
sourcedId:
|
|
1043
|
+
sourcedId: NonEmptyString.optional(),
|
|
996
1044
|
status: Status.optional(),
|
|
997
1045
|
dateLastModified: IsoDateTimeString.optional(),
|
|
998
|
-
title:
|
|
1046
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
999
1047
|
description: z9.string().nullable().optional(),
|
|
1000
1048
|
class: Ref.nullable().optional(),
|
|
1001
1049
|
parentAssessmentLineItem: Ref.nullable().optional(),
|
|
@@ -1021,7 +1069,7 @@ var LearningObjectiveScoreSetSchema = z9.array(z9.object({
|
|
|
1021
1069
|
learningObjectiveResults: z9.array(LearningObjectiveResult)
|
|
1022
1070
|
}));
|
|
1023
1071
|
var OneRosterAssessmentResultCreateInput = z9.object({
|
|
1024
|
-
sourcedId:
|
|
1072
|
+
sourcedId: NonEmptyString.optional(),
|
|
1025
1073
|
status: Status.optional(),
|
|
1026
1074
|
dateLastModified: IsoDateTimeString.optional(),
|
|
1027
1075
|
metadata: Metadata,
|
|
@@ -1047,53 +1095,53 @@ var OneRosterAssessmentResultCreateInput = z9.object({
|
|
|
1047
1095
|
missing: z9.string().nullable().optional()
|
|
1048
1096
|
}).strict();
|
|
1049
1097
|
var OneRosterOrgCreateInput = z9.object({
|
|
1050
|
-
sourcedId:
|
|
1098
|
+
sourcedId: NonEmptyString.optional(),
|
|
1051
1099
|
status: Status.optional(),
|
|
1052
|
-
name:
|
|
1100
|
+
name: NonEmptyString.describe("name must be a non-empty string"),
|
|
1053
1101
|
type: OrganizationType,
|
|
1054
|
-
identifier:
|
|
1102
|
+
identifier: NonEmptyString.optional(),
|
|
1055
1103
|
parent: Ref.optional(),
|
|
1056
1104
|
metadata: Metadata
|
|
1057
1105
|
}).strict();
|
|
1058
1106
|
var OneRosterSchoolCreateInput = z9.object({
|
|
1059
|
-
sourcedId:
|
|
1107
|
+
sourcedId: NonEmptyString.optional(),
|
|
1060
1108
|
status: Status.optional(),
|
|
1061
|
-
name:
|
|
1109
|
+
name: NonEmptyString.describe("name must be a non-empty string"),
|
|
1062
1110
|
type: z9.literal("school").optional(),
|
|
1063
|
-
identifier:
|
|
1111
|
+
identifier: NonEmptyString.optional(),
|
|
1064
1112
|
parent: Ref.optional(),
|
|
1065
1113
|
metadata: Metadata
|
|
1066
1114
|
}).strict();
|
|
1067
1115
|
var OneRosterAcademicSessionCreateInput = z9.object({
|
|
1068
|
-
sourcedId:
|
|
1116
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string"),
|
|
1069
1117
|
status: Status,
|
|
1070
|
-
title:
|
|
1118
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1071
1119
|
startDate: OneRosterDateString,
|
|
1072
1120
|
endDate: OneRosterDateString,
|
|
1073
1121
|
type: z9.enum(["gradingPeriod", "semester", "schoolYear", "term"]),
|
|
1074
|
-
schoolYear:
|
|
1122
|
+
schoolYear: NonEmptyString.describe("schoolYear must be a non-empty string"),
|
|
1075
1123
|
org: Ref,
|
|
1076
1124
|
parent: Ref.optional(),
|
|
1077
1125
|
children: z9.array(Ref).optional(),
|
|
1078
1126
|
metadata: Metadata
|
|
1079
1127
|
}).strict();
|
|
1080
1128
|
var OneRosterComponentResourceCreateInput = z9.object({
|
|
1081
|
-
sourcedId:
|
|
1082
|
-
title:
|
|
1129
|
+
sourcedId: NonEmptyString.optional(),
|
|
1130
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1083
1131
|
courseComponent: Ref,
|
|
1084
1132
|
resource: Ref,
|
|
1085
1133
|
status: Status,
|
|
1086
1134
|
metadata: Metadata
|
|
1087
1135
|
}).strict();
|
|
1088
1136
|
var OneRosterCourseComponentCreateInput = z9.object({
|
|
1089
|
-
sourcedId:
|
|
1090
|
-
title:
|
|
1137
|
+
sourcedId: NonEmptyString.optional(),
|
|
1138
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1091
1139
|
course: Ref,
|
|
1092
1140
|
status: Status,
|
|
1093
1141
|
metadata: Metadata
|
|
1094
1142
|
}).strict();
|
|
1095
1143
|
var OneRosterEnrollInput = z9.object({
|
|
1096
|
-
sourcedId:
|
|
1144
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string"),
|
|
1097
1145
|
role: z9.enum(["student", "teacher"]),
|
|
1098
1146
|
primary: StringBoolean.optional(),
|
|
1099
1147
|
beginDate: IsoDateString.optional(),
|
|
@@ -1101,17 +1149,17 @@ var OneRosterEnrollInput = z9.object({
|
|
|
1101
1149
|
metadata: Metadata
|
|
1102
1150
|
}).strict();
|
|
1103
1151
|
var OneRosterAgentInput = z9.object({
|
|
1104
|
-
agentSourcedId:
|
|
1152
|
+
agentSourcedId: NonEmptyString.describe("agentSourcedId must be a non-empty string")
|
|
1105
1153
|
}).strict();
|
|
1106
1154
|
var OneRosterCredentialInput = z9.object({
|
|
1107
|
-
applicationName:
|
|
1155
|
+
applicationName: NonEmptyString.describe("applicationName must be a non-empty string"),
|
|
1108
1156
|
credentials: z9.object({
|
|
1109
|
-
username:
|
|
1110
|
-
password:
|
|
1157
|
+
username: NonEmptyString.describe("username must be a non-empty string"),
|
|
1158
|
+
password: NonEmptyString.describe("password must be a non-empty string")
|
|
1111
1159
|
})
|
|
1112
1160
|
}).strict();
|
|
1113
1161
|
var OneRosterDemographicsCreateInput = z9.object({
|
|
1114
|
-
sourcedId:
|
|
1162
|
+
sourcedId: NonEmptyString.describe("sourcedId must be a non-empty string")
|
|
1115
1163
|
}).loose();
|
|
1116
1164
|
var CommonResourceMetadataSchema = z9.object({
|
|
1117
1165
|
type: ResourceType,
|
|
@@ -1183,9 +1231,9 @@ var ResourceMetadataSchema = z9.discriminatedUnion("type", [
|
|
|
1183
1231
|
AssessmentBankMetadataSchema
|
|
1184
1232
|
]);
|
|
1185
1233
|
var OneRosterResourceCreateInput = z9.object({
|
|
1186
|
-
sourcedId:
|
|
1187
|
-
title:
|
|
1188
|
-
vendorResourceId:
|
|
1234
|
+
sourcedId: NonEmptyString.optional(),
|
|
1235
|
+
title: NonEmptyString.describe("title must be a non-empty string"),
|
|
1236
|
+
vendorResourceId: NonEmptyString.describe("vendorResourceId must be a non-empty string"),
|
|
1189
1237
|
roles: z9.array(z9.enum(["primary", "secondary"])).optional(),
|
|
1190
1238
|
importance: z9.enum(["primary", "secondary"]).optional(),
|
|
1191
1239
|
vendorId: z9.string().optional(),
|
|
@@ -1194,18 +1242,18 @@ var OneRosterResourceCreateInput = z9.object({
|
|
|
1194
1242
|
metadata: ResourceMetadataSchema.nullable().optional()
|
|
1195
1243
|
}).strict();
|
|
1196
1244
|
var CourseStructureItem = z9.object({
|
|
1197
|
-
url:
|
|
1198
|
-
skillCode:
|
|
1199
|
-
lessonCode:
|
|
1200
|
-
title:
|
|
1201
|
-
"unit-title":
|
|
1202
|
-
status:
|
|
1245
|
+
url: NonEmptyString.describe("courseStructure.url must be a non-empty string"),
|
|
1246
|
+
skillCode: NonEmptyString.describe("courseStructure.skillCode must be a non-empty string"),
|
|
1247
|
+
lessonCode: NonEmptyString.describe("courseStructure.lessonCode must be a non-empty string"),
|
|
1248
|
+
title: NonEmptyString.describe("courseStructure.title must be a non-empty string"),
|
|
1249
|
+
"unit-title": NonEmptyString.describe("courseStructure.unit-title must be a non-empty string"),
|
|
1250
|
+
status: NonEmptyString.describe("courseStructure.status must be a non-empty string"),
|
|
1203
1251
|
xp: z9.number()
|
|
1204
1252
|
}).loose();
|
|
1205
1253
|
var OneRosterCourseStructureInput = z9.object({
|
|
1206
1254
|
course: z9.object({
|
|
1207
|
-
sourcedId:
|
|
1208
|
-
title:
|
|
1255
|
+
sourcedId: NonEmptyString.describe("course.sourcedId must be a non-empty string").optional(),
|
|
1256
|
+
title: NonEmptyString.describe("course.title must be a non-empty string"),
|
|
1209
1257
|
org: Ref,
|
|
1210
1258
|
status: Status,
|
|
1211
1259
|
metadata: Metadata
|
|
@@ -1218,7 +1266,6 @@ var OneRosterBulkResultItem = z9.object({
|
|
|
1218
1266
|
var OneRosterBulkResultsInput = z9.array(OneRosterBulkResultItem).min(1, "results must have at least one item");
|
|
1219
1267
|
// ../../types/src/zod/powerpath.ts
|
|
1220
1268
|
import { z as z10 } from "zod/v4";
|
|
1221
|
-
var NonEmptyString5 = z10.string().trim().min(1);
|
|
1222
1269
|
var ToolProvider = z10.enum(["edulastic", "mastery-track"]);
|
|
1223
1270
|
var LessonTypeRequired = z10.enum([
|
|
1224
1271
|
"powerpath-100",
|
|
@@ -1231,14 +1278,14 @@ var LessonTypeRequired = z10.enum([
|
|
|
1231
1278
|
var GradeArray = z10.array(TimebackGrade);
|
|
1232
1279
|
var ResourceMetadata = z10.record(z10.string(), z10.unknown()).optional();
|
|
1233
1280
|
var ExternalTestBase = z10.object({
|
|
1234
|
-
courseId:
|
|
1235
|
-
lessonTitle:
|
|
1236
|
-
launchUrl:
|
|
1281
|
+
courseId: NonEmptyString,
|
|
1282
|
+
lessonTitle: NonEmptyString.optional(),
|
|
1283
|
+
launchUrl: NonEmptyString.optional(),
|
|
1237
1284
|
toolProvider: ToolProvider,
|
|
1238
|
-
unitTitle:
|
|
1239
|
-
courseComponentSourcedId:
|
|
1240
|
-
vendorId:
|
|
1241
|
-
description:
|
|
1285
|
+
unitTitle: NonEmptyString.optional(),
|
|
1286
|
+
courseComponentSourcedId: NonEmptyString.optional(),
|
|
1287
|
+
vendorId: NonEmptyString.optional(),
|
|
1288
|
+
description: NonEmptyString.optional(),
|
|
1242
1289
|
resourceMetadata: ResourceMetadata.nullable().optional(),
|
|
1243
1290
|
grades: GradeArray
|
|
1244
1291
|
});
|
|
@@ -1248,26 +1295,26 @@ var ExternalTestOut = ExternalTestBase.extend({
|
|
|
1248
1295
|
});
|
|
1249
1296
|
var ExternalPlacement = ExternalTestBase.extend({
|
|
1250
1297
|
lessonType: z10.literal("placement"),
|
|
1251
|
-
courseIdOnFail:
|
|
1298
|
+
courseIdOnFail: NonEmptyString.nullable().optional(),
|
|
1252
1299
|
xp: z10.number().optional()
|
|
1253
1300
|
});
|
|
1254
1301
|
var InternalTestBase = z10.object({
|
|
1255
|
-
courseId:
|
|
1302
|
+
courseId: NonEmptyString,
|
|
1256
1303
|
lessonType: LessonTypeRequired,
|
|
1257
|
-
lessonTitle:
|
|
1258
|
-
unitTitle:
|
|
1259
|
-
courseComponentSourcedId:
|
|
1304
|
+
lessonTitle: NonEmptyString.optional(),
|
|
1305
|
+
unitTitle: NonEmptyString.optional(),
|
|
1306
|
+
courseComponentSourcedId: NonEmptyString.optional(),
|
|
1260
1307
|
resourceMetadata: ResourceMetadata.nullable().optional(),
|
|
1261
1308
|
xp: z10.number().optional(),
|
|
1262
1309
|
grades: GradeArray.optional(),
|
|
1263
|
-
courseIdOnFail:
|
|
1310
|
+
courseIdOnFail: NonEmptyString.nullable().optional()
|
|
1264
1311
|
});
|
|
1265
1312
|
var PowerPathCreateInternalTestInput = z10.discriminatedUnion("testType", [
|
|
1266
1313
|
InternalTestBase.extend({
|
|
1267
1314
|
testType: z10.literal("qti"),
|
|
1268
1315
|
qti: z10.object({
|
|
1269
1316
|
url: z10.url(),
|
|
1270
|
-
title:
|
|
1317
|
+
title: NonEmptyString.optional(),
|
|
1271
1318
|
metadata: z10.record(z10.string(), z10.unknown()).optional()
|
|
1272
1319
|
})
|
|
1273
1320
|
}),
|
|
@@ -1276,28 +1323,28 @@ var PowerPathCreateInternalTestInput = z10.discriminatedUnion("testType", [
|
|
|
1276
1323
|
assessmentBank: z10.object({
|
|
1277
1324
|
resources: z10.array(z10.object({
|
|
1278
1325
|
url: z10.url(),
|
|
1279
|
-
title:
|
|
1326
|
+
title: NonEmptyString.optional(),
|
|
1280
1327
|
metadata: z10.record(z10.string(), z10.unknown()).optional()
|
|
1281
1328
|
})).min(1)
|
|
1282
1329
|
})
|
|
1283
1330
|
})
|
|
1284
1331
|
]);
|
|
1285
1332
|
var PowerPathCreateNewAttemptInput = z10.object({
|
|
1286
|
-
student:
|
|
1287
|
-
lesson:
|
|
1333
|
+
student: NonEmptyString,
|
|
1334
|
+
lesson: NonEmptyString
|
|
1288
1335
|
});
|
|
1289
1336
|
var PowerPathFinalStudentAssessmentResponseInput = z10.object({
|
|
1290
|
-
student:
|
|
1291
|
-
lesson:
|
|
1337
|
+
student: NonEmptyString,
|
|
1338
|
+
lesson: NonEmptyString
|
|
1292
1339
|
});
|
|
1293
1340
|
var PowerPathLessonPlansCreateInput = z10.object({
|
|
1294
|
-
courseId:
|
|
1295
|
-
userId:
|
|
1296
|
-
classId:
|
|
1341
|
+
courseId: NonEmptyString,
|
|
1342
|
+
userId: NonEmptyString,
|
|
1343
|
+
classId: NonEmptyString.optional()
|
|
1297
1344
|
});
|
|
1298
1345
|
var LessonPlanTarget = z10.object({
|
|
1299
1346
|
type: z10.enum(["component", "resource"]),
|
|
1300
|
-
id:
|
|
1347
|
+
id: NonEmptyString
|
|
1301
1348
|
});
|
|
1302
1349
|
var PowerPathLessonPlanOperationInput = z10.union([
|
|
1303
1350
|
z10.object({
|
|
@@ -1310,8 +1357,8 @@ var PowerPathLessonPlanOperationInput = z10.union([
|
|
|
1310
1357
|
z10.object({
|
|
1311
1358
|
type: z10.literal("add-custom-resource"),
|
|
1312
1359
|
payload: z10.object({
|
|
1313
|
-
resource_id:
|
|
1314
|
-
parent_component_id:
|
|
1360
|
+
resource_id: NonEmptyString,
|
|
1361
|
+
parent_component_id: NonEmptyString,
|
|
1315
1362
|
skipped: z10.boolean().optional()
|
|
1316
1363
|
})
|
|
1317
1364
|
}),
|
|
@@ -1319,14 +1366,14 @@ var PowerPathLessonPlanOperationInput = z10.union([
|
|
|
1319
1366
|
type: z10.literal("move-item-before"),
|
|
1320
1367
|
payload: z10.object({
|
|
1321
1368
|
target: LessonPlanTarget,
|
|
1322
|
-
reference_id:
|
|
1369
|
+
reference_id: NonEmptyString
|
|
1323
1370
|
})
|
|
1324
1371
|
}),
|
|
1325
1372
|
z10.object({
|
|
1326
1373
|
type: z10.literal("move-item-after"),
|
|
1327
1374
|
payload: z10.object({
|
|
1328
1375
|
target: LessonPlanTarget,
|
|
1329
|
-
reference_id:
|
|
1376
|
+
reference_id: NonEmptyString
|
|
1330
1377
|
})
|
|
1331
1378
|
}),
|
|
1332
1379
|
z10.object({
|
|
@@ -1345,107 +1392,107 @@ var PowerPathLessonPlanOperationInput = z10.union([
|
|
|
1345
1392
|
type: z10.literal("change-item-parent"),
|
|
1346
1393
|
payload: z10.object({
|
|
1347
1394
|
target: LessonPlanTarget,
|
|
1348
|
-
new_parent_id:
|
|
1395
|
+
new_parent_id: NonEmptyString,
|
|
1349
1396
|
position: z10.enum(["start", "end"]).optional()
|
|
1350
1397
|
})
|
|
1351
1398
|
})
|
|
1352
1399
|
]);
|
|
1353
1400
|
var PowerPathLessonPlanOperationsInput = z10.object({
|
|
1354
1401
|
operation: PowerPathLessonPlanOperationInput,
|
|
1355
|
-
reason:
|
|
1402
|
+
reason: NonEmptyString.optional()
|
|
1356
1403
|
});
|
|
1357
1404
|
var PowerPathLessonPlanUpdateStudentItemResponseInput = z10.object({
|
|
1358
|
-
studentId:
|
|
1359
|
-
componentResourceId:
|
|
1405
|
+
studentId: NonEmptyString,
|
|
1406
|
+
componentResourceId: NonEmptyString,
|
|
1360
1407
|
result: z10.object({
|
|
1361
1408
|
status: z10.enum(["active", "tobedeleted"]),
|
|
1362
1409
|
metadata: z10.record(z10.string(), z10.unknown()).optional(),
|
|
1363
1410
|
score: z10.number().optional(),
|
|
1364
|
-
textScore:
|
|
1411
|
+
textScore: NonEmptyString.optional(),
|
|
1365
1412
|
scoreDate: z10.string().datetime(),
|
|
1366
1413
|
scorePercentile: z10.number().optional(),
|
|
1367
1414
|
scoreStatus: ScoreStatus,
|
|
1368
|
-
comment:
|
|
1415
|
+
comment: NonEmptyString.optional(),
|
|
1369
1416
|
learningObjectiveSet: z10.array(z10.object({
|
|
1370
|
-
source:
|
|
1417
|
+
source: NonEmptyString,
|
|
1371
1418
|
learningObjectiveResults: z10.array(z10.object({
|
|
1372
|
-
learningObjectiveId:
|
|
1419
|
+
learningObjectiveId: NonEmptyString,
|
|
1373
1420
|
score: z10.number().optional(),
|
|
1374
|
-
textScore:
|
|
1421
|
+
textScore: NonEmptyString.optional()
|
|
1375
1422
|
}))
|
|
1376
1423
|
})).optional(),
|
|
1377
|
-
inProgress:
|
|
1378
|
-
incomplete:
|
|
1379
|
-
late:
|
|
1380
|
-
missing:
|
|
1424
|
+
inProgress: NonEmptyString.optional(),
|
|
1425
|
+
incomplete: NonEmptyString.optional(),
|
|
1426
|
+
late: NonEmptyString.optional(),
|
|
1427
|
+
missing: NonEmptyString.optional()
|
|
1381
1428
|
})
|
|
1382
1429
|
});
|
|
1383
1430
|
var PowerPathMakeExternalTestAssignmentInput = z10.object({
|
|
1384
|
-
student:
|
|
1385
|
-
lesson:
|
|
1386
|
-
applicationName:
|
|
1387
|
-
testId:
|
|
1431
|
+
student: NonEmptyString,
|
|
1432
|
+
lesson: NonEmptyString,
|
|
1433
|
+
applicationName: NonEmptyString.optional(),
|
|
1434
|
+
testId: NonEmptyString.optional(),
|
|
1388
1435
|
skipCourseEnrollment: z10.boolean().optional()
|
|
1389
1436
|
});
|
|
1390
1437
|
var PowerPathPlacementResetUserPlacementInput = z10.object({
|
|
1391
|
-
student:
|
|
1438
|
+
student: NonEmptyString,
|
|
1392
1439
|
subject: TimebackSubject
|
|
1393
1440
|
});
|
|
1394
1441
|
var PowerPathResetAttemptInput = z10.object({
|
|
1395
|
-
student:
|
|
1396
|
-
lesson:
|
|
1442
|
+
student: NonEmptyString,
|
|
1443
|
+
lesson: NonEmptyString
|
|
1397
1444
|
});
|
|
1398
1445
|
var PowerPathScreeningResetSessionInput = z10.object({
|
|
1399
|
-
userId:
|
|
1446
|
+
userId: NonEmptyString
|
|
1400
1447
|
});
|
|
1401
1448
|
var PowerPathScreeningAssignTestInput = z10.object({
|
|
1402
|
-
userId:
|
|
1449
|
+
userId: NonEmptyString,
|
|
1403
1450
|
subject: z10.enum(["Math", "Reading", "Language", "Science"])
|
|
1404
1451
|
});
|
|
1405
1452
|
var PowerPathTestAssignmentsCreateInput = z10.object({
|
|
1406
|
-
student:
|
|
1453
|
+
student: NonEmptyString,
|
|
1407
1454
|
subject: TimebackSubject,
|
|
1408
1455
|
grade: TimebackGrade,
|
|
1409
|
-
testName:
|
|
1456
|
+
testName: NonEmptyString.optional()
|
|
1410
1457
|
});
|
|
1411
1458
|
var PowerPathTestAssignmentsUpdateInput = z10.object({
|
|
1412
|
-
testName:
|
|
1459
|
+
testName: NonEmptyString
|
|
1413
1460
|
});
|
|
1414
1461
|
var PowerPathTestAssignmentItemInput = z10.object({
|
|
1415
|
-
student:
|
|
1462
|
+
student: NonEmptyString,
|
|
1416
1463
|
subject: TimebackSubject,
|
|
1417
1464
|
grade: TimebackGrade,
|
|
1418
|
-
testName:
|
|
1465
|
+
testName: NonEmptyString.optional()
|
|
1419
1466
|
});
|
|
1420
1467
|
var PowerPathTestAssignmentsBulkInput = z10.object({
|
|
1421
1468
|
items: z10.array(PowerPathTestAssignmentItemInput)
|
|
1422
1469
|
});
|
|
1423
1470
|
var PowerPathTestAssignmentsImportInput = z10.object({
|
|
1424
1471
|
spreadsheetUrl: z10.url(),
|
|
1425
|
-
sheet:
|
|
1472
|
+
sheet: NonEmptyString
|
|
1426
1473
|
});
|
|
1427
1474
|
var PowerPathTestAssignmentsListParams = z10.object({
|
|
1428
|
-
student:
|
|
1475
|
+
student: NonEmptyString,
|
|
1429
1476
|
status: z10.enum(["assigned", "in_progress", "completed", "failed", "expired", "cancelled"]).optional(),
|
|
1430
|
-
subject:
|
|
1477
|
+
subject: NonEmptyString.optional(),
|
|
1431
1478
|
grade: TimebackGrade.optional(),
|
|
1432
1479
|
limit: z10.number().int().positive().max(3000).optional(),
|
|
1433
1480
|
offset: z10.number().int().nonnegative().optional()
|
|
1434
1481
|
});
|
|
1435
1482
|
var PowerPathTestAssignmentsAdminParams = z10.object({
|
|
1436
|
-
student:
|
|
1483
|
+
student: NonEmptyString.optional(),
|
|
1437
1484
|
status: z10.enum(["assigned", "in_progress", "completed", "failed", "expired", "cancelled"]).optional(),
|
|
1438
|
-
subject:
|
|
1485
|
+
subject: NonEmptyString.optional(),
|
|
1439
1486
|
grade: TimebackGrade.optional(),
|
|
1440
1487
|
limit: z10.number().int().positive().max(3000).optional(),
|
|
1441
1488
|
offset: z10.number().int().nonnegative().optional()
|
|
1442
1489
|
});
|
|
1443
1490
|
var PowerPathUpdateStudentQuestionResponseInput = z10.object({
|
|
1444
|
-
student:
|
|
1445
|
-
question:
|
|
1446
|
-
response: z10.union([
|
|
1447
|
-
responses: z10.record(z10.string(), z10.union([
|
|
1448
|
-
lesson:
|
|
1491
|
+
student: NonEmptyString,
|
|
1492
|
+
question: NonEmptyString,
|
|
1493
|
+
response: z10.union([NonEmptyString, z10.array(NonEmptyString)]).optional(),
|
|
1494
|
+
responses: z10.record(z10.string(), z10.union([NonEmptyString, z10.array(NonEmptyString)])).optional(),
|
|
1495
|
+
lesson: NonEmptyString,
|
|
1449
1496
|
rendererOutcomes: z10.object({
|
|
1450
1497
|
score: z10.number(),
|
|
1451
1498
|
maxScore: z10.number().min(0),
|
|
@@ -1462,29 +1509,29 @@ var PowerPathUpdateStudentQuestionResponseInput = z10.object({
|
|
|
1462
1509
|
return data;
|
|
1463
1510
|
});
|
|
1464
1511
|
var PowerPathGetAssessmentProgressParams = z10.object({
|
|
1465
|
-
student:
|
|
1466
|
-
lesson:
|
|
1512
|
+
student: NonEmptyString,
|
|
1513
|
+
lesson: NonEmptyString,
|
|
1467
1514
|
attempt: z10.number().int().positive().optional()
|
|
1468
1515
|
});
|
|
1469
1516
|
var PowerPathGetNextQuestionParams = z10.object({
|
|
1470
|
-
student:
|
|
1471
|
-
lesson:
|
|
1517
|
+
student: NonEmptyString,
|
|
1518
|
+
lesson: NonEmptyString
|
|
1472
1519
|
});
|
|
1473
1520
|
var PowerPathGetAttemptsParams = z10.object({
|
|
1474
|
-
student:
|
|
1475
|
-
lesson:
|
|
1521
|
+
student: NonEmptyString,
|
|
1522
|
+
lesson: NonEmptyString
|
|
1476
1523
|
});
|
|
1477
1524
|
var PowerPathTestOutParams = z10.object({
|
|
1478
|
-
student:
|
|
1479
|
-
course:
|
|
1525
|
+
student: NonEmptyString,
|
|
1526
|
+
course: NonEmptyString
|
|
1480
1527
|
});
|
|
1481
1528
|
var PowerPathImportExternalTestAssignmentResultsParams = z10.object({
|
|
1482
|
-
student:
|
|
1483
|
-
lesson:
|
|
1484
|
-
applicationName:
|
|
1529
|
+
student: NonEmptyString,
|
|
1530
|
+
lesson: NonEmptyString,
|
|
1531
|
+
applicationName: NonEmptyString.optional()
|
|
1485
1532
|
});
|
|
1486
1533
|
var PowerPathPlacementQueryParams = z10.object({
|
|
1487
|
-
student:
|
|
1534
|
+
student: NonEmptyString,
|
|
1488
1535
|
subject: TimebackSubject
|
|
1489
1536
|
});
|
|
1490
1537
|
var PowerPathSyllabusQueryParams = z10.object({
|
|
@@ -1535,18 +1582,18 @@ var QtiCorrectResponse = z11.object({
|
|
|
1535
1582
|
value: z11.array(z11.string())
|
|
1536
1583
|
}).strict();
|
|
1537
1584
|
var QtiResponseDeclaration = z11.object({
|
|
1538
|
-
identifier:
|
|
1585
|
+
identifier: NonEmptyString,
|
|
1539
1586
|
cardinality: QtiCardinality,
|
|
1540
1587
|
baseType: QtiBaseType.optional(),
|
|
1541
1588
|
correctResponse: QtiCorrectResponse
|
|
1542
1589
|
}).strict();
|
|
1543
1590
|
var QtiOutcomeDeclaration = z11.object({
|
|
1544
|
-
identifier:
|
|
1591
|
+
identifier: NonEmptyString,
|
|
1545
1592
|
cardinality: QtiCardinality,
|
|
1546
1593
|
baseType: QtiBaseType.optional()
|
|
1547
1594
|
}).strict();
|
|
1548
1595
|
var QtiTestOutcomeDeclaration = z11.object({
|
|
1549
|
-
identifier:
|
|
1596
|
+
identifier: NonEmptyString,
|
|
1550
1597
|
cardinality: QtiCardinality.optional(),
|
|
1551
1598
|
baseType: QtiBaseType,
|
|
1552
1599
|
normalMaximum: z11.number().optional(),
|
|
@@ -1556,19 +1603,19 @@ var QtiTestOutcomeDeclaration = z11.object({
|
|
|
1556
1603
|
}).strict().optional()
|
|
1557
1604
|
}).strict();
|
|
1558
1605
|
var QtiInlineFeedback = z11.object({
|
|
1559
|
-
outcomeIdentifier:
|
|
1560
|
-
variableIdentifier:
|
|
1606
|
+
outcomeIdentifier: NonEmptyString,
|
|
1607
|
+
variableIdentifier: NonEmptyString
|
|
1561
1608
|
}).strict();
|
|
1562
1609
|
var QtiResponseProcessing = z11.object({
|
|
1563
1610
|
templateType: z11.enum(["match_correct", "map_response"]),
|
|
1564
|
-
responseDeclarationIdentifier:
|
|
1565
|
-
outcomeIdentifier:
|
|
1566
|
-
correctResponseIdentifier:
|
|
1567
|
-
incorrectResponseIdentifier:
|
|
1611
|
+
responseDeclarationIdentifier: NonEmptyString,
|
|
1612
|
+
outcomeIdentifier: NonEmptyString,
|
|
1613
|
+
correctResponseIdentifier: NonEmptyString,
|
|
1614
|
+
incorrectResponseIdentifier: NonEmptyString,
|
|
1568
1615
|
inlineFeedback: QtiInlineFeedback.optional()
|
|
1569
1616
|
}).strict();
|
|
1570
1617
|
var QtiLearningObjectiveSet = z11.object({
|
|
1571
|
-
source:
|
|
1618
|
+
source: NonEmptyString,
|
|
1572
1619
|
learningObjectiveIds: z11.array(z11.string())
|
|
1573
1620
|
}).strict();
|
|
1574
1621
|
var QtiItemMetadata = z11.object({
|
|
@@ -1578,32 +1625,32 @@ var QtiItemMetadata = z11.object({
|
|
|
1578
1625
|
learningObjectiveSet: z11.array(QtiLearningObjectiveSet).optional()
|
|
1579
1626
|
}).loose();
|
|
1580
1627
|
var QtiModalFeedback = z11.object({
|
|
1581
|
-
outcomeIdentifier:
|
|
1582
|
-
identifier:
|
|
1628
|
+
outcomeIdentifier: NonEmptyString,
|
|
1629
|
+
identifier: NonEmptyString,
|
|
1583
1630
|
showHide: QtiShowHide,
|
|
1584
1631
|
content: z11.string(),
|
|
1585
1632
|
title: z11.string()
|
|
1586
1633
|
}).strict();
|
|
1587
1634
|
var QtiFeedbackInline = z11.object({
|
|
1588
|
-
outcomeIdentifier:
|
|
1589
|
-
identifier:
|
|
1635
|
+
outcomeIdentifier: NonEmptyString,
|
|
1636
|
+
identifier: NonEmptyString,
|
|
1590
1637
|
showHide: QtiShowHide,
|
|
1591
1638
|
content: z11.string(),
|
|
1592
1639
|
class: z11.array(z11.string())
|
|
1593
1640
|
}).strict();
|
|
1594
1641
|
var QtiFeedbackBlock = z11.object({
|
|
1595
|
-
outcomeIdentifier:
|
|
1596
|
-
identifier:
|
|
1642
|
+
outcomeIdentifier: NonEmptyString,
|
|
1643
|
+
identifier: NonEmptyString,
|
|
1597
1644
|
showHide: QtiShowHide,
|
|
1598
1645
|
content: z11.string(),
|
|
1599
1646
|
class: z11.array(z11.string())
|
|
1600
1647
|
}).strict();
|
|
1601
1648
|
var QtiStylesheet = z11.object({
|
|
1602
|
-
href:
|
|
1603
|
-
type:
|
|
1649
|
+
href: NonEmptyString,
|
|
1650
|
+
type: NonEmptyString
|
|
1604
1651
|
}).strict();
|
|
1605
1652
|
var QtiCatalogInfo = z11.object({
|
|
1606
|
-
id:
|
|
1653
|
+
id: NonEmptyString,
|
|
1607
1654
|
support: z11.string(),
|
|
1608
1655
|
content: z11.string()
|
|
1609
1656
|
}).strict();
|
|
@@ -1615,12 +1662,12 @@ var QtiPaginationParams = z11.object({
|
|
|
1615
1662
|
}).strict();
|
|
1616
1663
|
var QtiAssessmentItemXmlCreateInput = z11.object({
|
|
1617
1664
|
format: z11.string().pipe(z11.literal("xml")),
|
|
1618
|
-
xml:
|
|
1665
|
+
xml: NonEmptyString,
|
|
1619
1666
|
metadata: QtiItemMetadata.optional()
|
|
1620
1667
|
}).strict();
|
|
1621
1668
|
var QtiAssessmentItemJsonCreateInput = z11.object({
|
|
1622
|
-
identifier:
|
|
1623
|
-
title:
|
|
1669
|
+
identifier: NonEmptyString,
|
|
1670
|
+
title: NonEmptyString,
|
|
1624
1671
|
type: QtiAssessmentItemType,
|
|
1625
1672
|
qtiVersion: z11.string().optional(),
|
|
1626
1673
|
timeDependent: z11.boolean().optional(),
|
|
@@ -1638,8 +1685,8 @@ var QtiAssessmentItemCreateInput = z11.union([
|
|
|
1638
1685
|
QtiAssessmentItemJsonCreateInput
|
|
1639
1686
|
]);
|
|
1640
1687
|
var QtiAssessmentItemUpdateInput = z11.object({
|
|
1641
|
-
identifier:
|
|
1642
|
-
title:
|
|
1688
|
+
identifier: NonEmptyString.optional(),
|
|
1689
|
+
title: NonEmptyString,
|
|
1643
1690
|
type: QtiAssessmentItemType,
|
|
1644
1691
|
qtiVersion: z11.string().optional(),
|
|
1645
1692
|
timeDependent: z11.boolean().optional(),
|
|
@@ -1655,17 +1702,17 @@ var QtiAssessmentItemUpdateInput = z11.object({
|
|
|
1655
1702
|
content: z11.record(z11.string(), z11.unknown())
|
|
1656
1703
|
}).strict();
|
|
1657
1704
|
var QtiAssessmentItemProcessResponseInput = z11.object({
|
|
1658
|
-
identifier:
|
|
1705
|
+
identifier: NonEmptyString,
|
|
1659
1706
|
response: z11.union([z11.string(), z11.array(z11.string())])
|
|
1660
1707
|
}).strict();
|
|
1661
1708
|
var QtiAssessmentItemRef = z11.object({
|
|
1662
|
-
identifier:
|
|
1663
|
-
href:
|
|
1709
|
+
identifier: NonEmptyString,
|
|
1710
|
+
href: NonEmptyString,
|
|
1664
1711
|
sequence: z11.number().int().positive().optional()
|
|
1665
1712
|
}).strict();
|
|
1666
1713
|
var QtiAssessmentSection = z11.object({
|
|
1667
|
-
identifier:
|
|
1668
|
-
title:
|
|
1714
|
+
identifier: NonEmptyString,
|
|
1715
|
+
title: NonEmptyString,
|
|
1669
1716
|
visible: z11.boolean(),
|
|
1670
1717
|
required: z11.boolean().optional(),
|
|
1671
1718
|
fixed: z11.boolean().optional(),
|
|
@@ -1673,7 +1720,7 @@ var QtiAssessmentSection = z11.object({
|
|
|
1673
1720
|
"qti-assessment-item-ref": z11.array(QtiAssessmentItemRef).optional()
|
|
1674
1721
|
}).strict();
|
|
1675
1722
|
var QtiTestPart = z11.object({
|
|
1676
|
-
identifier:
|
|
1723
|
+
identifier: NonEmptyString,
|
|
1677
1724
|
navigationMode: z11.string().pipe(QtiNavigationMode),
|
|
1678
1725
|
submissionMode: z11.string().pipe(QtiSubmissionMode),
|
|
1679
1726
|
"qti-assessment-section": z11.array(QtiAssessmentSection)
|
|
@@ -1685,8 +1732,8 @@ var QtiAssessmentTestMetadataUpdateInput = z11.object({
|
|
|
1685
1732
|
metadata: z11.record(z11.string(), z11.unknown()).optional()
|
|
1686
1733
|
}).strict();
|
|
1687
1734
|
var QtiAssessmentTestCreateInput = z11.object({
|
|
1688
|
-
identifier:
|
|
1689
|
-
title:
|
|
1735
|
+
identifier: NonEmptyString,
|
|
1736
|
+
title: NonEmptyString,
|
|
1690
1737
|
qtiVersion: z11.string().optional(),
|
|
1691
1738
|
toolName: z11.string().optional(),
|
|
1692
1739
|
toolVersion: z11.string().optional(),
|
|
@@ -1698,8 +1745,8 @@ var QtiAssessmentTestCreateInput = z11.object({
|
|
|
1698
1745
|
"qti-outcome-declaration": z11.array(QtiTestOutcomeDeclaration).optional()
|
|
1699
1746
|
}).strict();
|
|
1700
1747
|
var QtiAssessmentTestUpdateInput = z11.object({
|
|
1701
|
-
identifier:
|
|
1702
|
-
title:
|
|
1748
|
+
identifier: NonEmptyString.optional(),
|
|
1749
|
+
title: NonEmptyString,
|
|
1703
1750
|
qtiVersion: z11.string().optional(),
|
|
1704
1751
|
toolName: z11.string().optional(),
|
|
1705
1752
|
toolVersion: z11.string().optional(),
|
|
@@ -1711,8 +1758,8 @@ var QtiAssessmentTestUpdateInput = z11.object({
|
|
|
1711
1758
|
"qti-outcome-declaration": z11.array(QtiTestOutcomeDeclaration).optional()
|
|
1712
1759
|
}).strict();
|
|
1713
1760
|
var QtiStimulusCreateInput = z11.object({
|
|
1714
|
-
identifier:
|
|
1715
|
-
title:
|
|
1761
|
+
identifier: NonEmptyString,
|
|
1762
|
+
title: NonEmptyString,
|
|
1716
1763
|
label: z11.string().optional(),
|
|
1717
1764
|
language: z11.string().optional(),
|
|
1718
1765
|
stylesheet: QtiStylesheet.optional(),
|
|
@@ -1723,8 +1770,8 @@ var QtiStimulusCreateInput = z11.object({
|
|
|
1723
1770
|
metadata: z11.record(z11.string(), z11.unknown()).optional()
|
|
1724
1771
|
}).strict();
|
|
1725
1772
|
var QtiStimulusUpdateInput = z11.object({
|
|
1726
|
-
identifier:
|
|
1727
|
-
title:
|
|
1773
|
+
identifier: NonEmptyString.optional(),
|
|
1774
|
+
title: NonEmptyString,
|
|
1728
1775
|
label: z11.string().optional(),
|
|
1729
1776
|
language: z11.string().optional(),
|
|
1730
1777
|
stylesheet: QtiStylesheet.optional(),
|
|
@@ -1746,9 +1793,9 @@ var QtiValidateBatchInput = z11.object({
|
|
|
1746
1793
|
}).strict();
|
|
1747
1794
|
var QtiLessonFeedbackInput = z11.object({
|
|
1748
1795
|
questionId: z11.string().optional(),
|
|
1749
|
-
userId:
|
|
1750
|
-
feedback:
|
|
1751
|
-
lessonId:
|
|
1796
|
+
userId: NonEmptyString,
|
|
1797
|
+
feedback: NonEmptyString,
|
|
1798
|
+
lessonId: NonEmptyString,
|
|
1752
1799
|
humanApproved: z11.boolean().optional()
|
|
1753
1800
|
}).strict();
|
|
1754
1801
|
// src/lib/validation.ts
|