@timeback/powerpath 0.1.2 → 0.1.4
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/client.d.ts +8 -4
- package/dist/client.d.ts.map +1 -1
- package/dist/errors.d.ts +1 -9
- package/dist/errors.js +433 -39
- package/dist/index.d.ts +1006 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +539 -141
- package/dist/public-types.d.ts +660 -0
- package/dist/public-types.d.ts.map +1 -0
- package/package.json +5 -4
- /package/dist/{types.js → public-types.js} +0 -0
|
@@ -0,0 +1,660 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PowerPath Base Types
|
|
3
|
+
*
|
|
4
|
+
* Common types and enums for PowerPath API responses.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
8
|
+
// ENUMS
|
|
9
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Test assignment status values.
|
|
13
|
+
*/
|
|
14
|
+
type TestAssignmentStatus =
|
|
15
|
+
| 'assigned'
|
|
16
|
+
| 'in_progress'
|
|
17
|
+
| 'completed'
|
|
18
|
+
| 'failed'
|
|
19
|
+
| 'expired'
|
|
20
|
+
| 'cancelled'
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Lesson plan operation types.
|
|
24
|
+
*/
|
|
25
|
+
type LessonPlanOperationType =
|
|
26
|
+
| 'set-skipped'
|
|
27
|
+
| 'add-custom-resource'
|
|
28
|
+
| 'move-item-before'
|
|
29
|
+
| 'move-item-after'
|
|
30
|
+
| 'move-item-to-start'
|
|
31
|
+
| 'move-item-to-end'
|
|
32
|
+
| 'change-item-parent'
|
|
33
|
+
|
|
34
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
35
|
+
// PAGINATION
|
|
36
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Pagination metadata from PowerPath list responses.
|
|
40
|
+
*/
|
|
41
|
+
interface PaginationMeta {
|
|
42
|
+
/** Total items across all pages */
|
|
43
|
+
totalCount: number
|
|
44
|
+
/** Total number of pages */
|
|
45
|
+
pageCount: number
|
|
46
|
+
/** Current page number (1-indexed) */
|
|
47
|
+
pageNumber: number
|
|
48
|
+
/**
|
|
49
|
+
* Offset for the next page of results.
|
|
50
|
+
*
|
|
51
|
+
* This API uses offset pagination: request `offset` is the number of items to skip.
|
|
52
|
+
* List responses also include an `offset` field; treat it as the server-provided
|
|
53
|
+
* next offset (and fall back to `currentOffset + limit` when implementing iterators).
|
|
54
|
+
*/
|
|
55
|
+
offset: number
|
|
56
|
+
/** Items per page (default 100, max 3000) */
|
|
57
|
+
limit: number
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* PowerPath Response Types
|
|
62
|
+
*
|
|
63
|
+
* Entity types returned by PowerPath API endpoints.
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
69
|
+
// TEST ASSIGNMENTS
|
|
70
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* A single test assignment entity.
|
|
74
|
+
*/
|
|
75
|
+
interface TestAssignment {
|
|
76
|
+
sourcedId: string
|
|
77
|
+
studentSourcedId: string
|
|
78
|
+
studentEmail: string
|
|
79
|
+
assignedByUserSourcedId?: string
|
|
80
|
+
subject: string
|
|
81
|
+
grade: string
|
|
82
|
+
assignmentStatus: TestAssignmentStatus
|
|
83
|
+
testName?: string
|
|
84
|
+
assignedAt?: string
|
|
85
|
+
expiresAt?: string
|
|
86
|
+
completedAt?: string
|
|
87
|
+
resourceSourcedId?: string
|
|
88
|
+
componentResourceSourcedId?: string
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* List response for test assignments.
|
|
93
|
+
*/
|
|
94
|
+
interface TestAssignmentsListResponse extends PaginationMeta {
|
|
95
|
+
testAssignments: TestAssignment[]
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Result from creating a test assignment.
|
|
100
|
+
*/
|
|
101
|
+
interface AssignmentResult {
|
|
102
|
+
assignmentId: string
|
|
103
|
+
lessonId: string
|
|
104
|
+
resourceId: string
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Result from bulk operations.
|
|
109
|
+
*/
|
|
110
|
+
interface BulkResult {
|
|
111
|
+
success: boolean
|
|
112
|
+
results: AssignmentResult[]
|
|
113
|
+
errors: Array<{ row: number; message: string }>
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
117
|
+
// ASSESSMENTS
|
|
118
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Result from creating an external test (test-out, placement, or internal).
|
|
122
|
+
*/
|
|
123
|
+
interface ExternalTestCreateResponse {
|
|
124
|
+
lessonId: string
|
|
125
|
+
resourceId: string
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* A single attempt record.
|
|
130
|
+
*/
|
|
131
|
+
interface Attempt {
|
|
132
|
+
attempt?: number
|
|
133
|
+
score: number
|
|
134
|
+
scoreStatus: string
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Result from creating a new attempt.
|
|
139
|
+
*/
|
|
140
|
+
interface CreateAttemptResponse {
|
|
141
|
+
attempt: Attempt
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Result from getting attempts for a lesson.
|
|
146
|
+
*/
|
|
147
|
+
interface GetAttemptsResponse {
|
|
148
|
+
attempts: Attempt[]
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Result from getting assessment progress.
|
|
153
|
+
* Shape varies by context; stable fields are typed.
|
|
154
|
+
*/
|
|
155
|
+
interface GetAssessmentProgressResponse {
|
|
156
|
+
lessonType?: string
|
|
157
|
+
[key: string]: unknown
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Result from resetting an attempt.
|
|
162
|
+
*/
|
|
163
|
+
interface ResetAttemptResponse {
|
|
164
|
+
success: boolean
|
|
165
|
+
score: number
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
169
|
+
// PLACEMENT
|
|
170
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Result from getting all placement tests.
|
|
174
|
+
*/
|
|
175
|
+
interface GetAllPlacementTestsResponse {
|
|
176
|
+
placementTests: unknown[]
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Result from getting current placement level.
|
|
181
|
+
*/
|
|
182
|
+
interface GetCurrentLevelResponse {
|
|
183
|
+
gradeLevel?: unknown
|
|
184
|
+
onboarded?: boolean
|
|
185
|
+
availableTests: number
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Result from getting the next placement test.
|
|
190
|
+
*/
|
|
191
|
+
interface GetNextPlacementTestResponse {
|
|
192
|
+
availableTests: number
|
|
193
|
+
lesson: string
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Result from getting subject progress.
|
|
198
|
+
*/
|
|
199
|
+
interface GetSubjectProgressResponse {
|
|
200
|
+
progress: unknown[]
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Result from resetting placement.
|
|
205
|
+
*/
|
|
206
|
+
interface ResetPlacementResponse {
|
|
207
|
+
success: boolean
|
|
208
|
+
placementResultsDeleted: number
|
|
209
|
+
onboardingReset: boolean
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
213
|
+
// SCREENING
|
|
214
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Result from screening getResults.
|
|
218
|
+
* Response shape depends on MAP integration configuration.
|
|
219
|
+
*/
|
|
220
|
+
interface ScreeningResultsResponse {
|
|
221
|
+
[key: string]: unknown
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Result from screening getSession.
|
|
226
|
+
* Response shape depends on MAP integration configuration.
|
|
227
|
+
*/
|
|
228
|
+
interface ScreeningSessionResponse {
|
|
229
|
+
[key: string]: unknown
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Result from resetting a screening session.
|
|
234
|
+
*/
|
|
235
|
+
interface ScreeningResetSessionResponse {
|
|
236
|
+
success?: boolean
|
|
237
|
+
[key: string]: unknown
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Result from assigning a screening test.
|
|
242
|
+
*/
|
|
243
|
+
interface ScreeningAssignTestResponse {
|
|
244
|
+
success?: boolean
|
|
245
|
+
[key: string]: unknown
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
249
|
+
// LESSON PLANS
|
|
250
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Result from creating a lesson plan.
|
|
254
|
+
*/
|
|
255
|
+
interface LessonPlanCreateResponse {
|
|
256
|
+
lessonPlanId: string
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* A lesson plan operation record.
|
|
261
|
+
*/
|
|
262
|
+
interface LessonPlanOperation {
|
|
263
|
+
id: string
|
|
264
|
+
type: string
|
|
265
|
+
payload?: unknown
|
|
266
|
+
reason?: string
|
|
267
|
+
createdAt: string
|
|
268
|
+
sequenceNumber: number
|
|
269
|
+
createdBy?: string
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Response containing lesson plan operations.
|
|
274
|
+
*/
|
|
275
|
+
interface LessonPlanOperationsResponse {
|
|
276
|
+
operations: LessonPlanOperation[]
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Result from a single lesson plan operation.
|
|
281
|
+
*/
|
|
282
|
+
interface LessonPlanOperationResult {
|
|
283
|
+
success: boolean
|
|
284
|
+
message?: string
|
|
285
|
+
operationId?: string
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Result from syncing lesson plan operations.
|
|
290
|
+
*/
|
|
291
|
+
interface LessonPlanSyncResult {
|
|
292
|
+
success: boolean
|
|
293
|
+
message?: string
|
|
294
|
+
operationCount: number
|
|
295
|
+
operationResults: Array<{ success: boolean; errors?: Array<{ message: string }> }>
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Result from syncing a course.
|
|
300
|
+
*/
|
|
301
|
+
interface LessonPlanCourseSyncResult {
|
|
302
|
+
lessonPlansAffected: string[]
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Response containing a lesson plan.
|
|
307
|
+
*/
|
|
308
|
+
interface LessonPlanResponse {
|
|
309
|
+
lessonPlan: Record<string, unknown>
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Response containing course progress.
|
|
314
|
+
*/
|
|
315
|
+
interface CourseProgressResponse {
|
|
316
|
+
lineItems: Record<string, unknown>[]
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Result from updating student item response.
|
|
321
|
+
*/
|
|
322
|
+
interface UpdateStudentItemResponseResult {
|
|
323
|
+
success?: boolean
|
|
324
|
+
[key: string]: unknown
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
328
|
+
// SYLLABUS
|
|
329
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Response containing syllabus data.
|
|
333
|
+
*/
|
|
334
|
+
interface SyllabusResponse {
|
|
335
|
+
syllabus?: unknown
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
type input<T> = T extends {
|
|
339
|
+
_zod: {
|
|
340
|
+
input: any;
|
|
341
|
+
};
|
|
342
|
+
} ? T["_zod"]["input"] : unknown;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* PowerPath Schemas
|
|
346
|
+
*
|
|
347
|
+
* Zod schemas for the PowerPath adaptive learning API.
|
|
348
|
+
*/
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
declare const ExternalTestOut = ExternalTestBase.extend({
|
|
353
|
+
lessonType: z.literal('test-out'),
|
|
354
|
+
xp: z.number(),
|
|
355
|
+
})
|
|
356
|
+
|
|
357
|
+
declare const ExternalPlacement = ExternalTestBase.extend({
|
|
358
|
+
lessonType: z.literal('placement'),
|
|
359
|
+
courseIdOnFail: NonEmptyString.optional(),
|
|
360
|
+
xp: z.number().optional(),
|
|
361
|
+
})
|
|
362
|
+
|
|
363
|
+
declare const PowerPathCreateExternalPlacementTestInput = ExternalPlacement
|
|
364
|
+
|
|
365
|
+
declare const PowerPathCreateExternalTestOutInput = ExternalTestOut
|
|
366
|
+
|
|
367
|
+
declare const PowerPathCreateInternalTestInput = z.union([
|
|
368
|
+
InternalTestBase.extend({
|
|
369
|
+
testType: z.literal('qti'),
|
|
370
|
+
qti: z.object({
|
|
371
|
+
url: z.url(),
|
|
372
|
+
title: NonEmptyString.optional(),
|
|
373
|
+
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
374
|
+
}),
|
|
375
|
+
}),
|
|
376
|
+
InternalTestBase.extend({
|
|
377
|
+
testType: z.literal('assessment-bank'),
|
|
378
|
+
assessmentBank: z.object({
|
|
379
|
+
resources: z.array(
|
|
380
|
+
z.object({
|
|
381
|
+
url: z.url(),
|
|
382
|
+
title: NonEmptyString.optional(),
|
|
383
|
+
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
384
|
+
}),
|
|
385
|
+
),
|
|
386
|
+
}),
|
|
387
|
+
}),
|
|
388
|
+
])
|
|
389
|
+
|
|
390
|
+
declare const PowerPathCreateNewAttemptInput = z.object({
|
|
391
|
+
student: NonEmptyString,
|
|
392
|
+
lesson: NonEmptyString,
|
|
393
|
+
})
|
|
394
|
+
|
|
395
|
+
declare const PowerPathFinalStudentAssessmentResponseInput = z.object({
|
|
396
|
+
student: NonEmptyString,
|
|
397
|
+
lesson: NonEmptyString,
|
|
398
|
+
})
|
|
399
|
+
|
|
400
|
+
declare const PowerPathLessonPlansCreateInput = z.object({
|
|
401
|
+
courseId: NonEmptyString,
|
|
402
|
+
userId: NonEmptyString,
|
|
403
|
+
classId: NonEmptyString.optional(),
|
|
404
|
+
})
|
|
405
|
+
|
|
406
|
+
declare const PowerPathLessonPlanOperationInput = z.union([
|
|
407
|
+
z.object({
|
|
408
|
+
type: z.literal('set-skipped'),
|
|
409
|
+
payload: z.object({
|
|
410
|
+
target: LessonPlanTarget,
|
|
411
|
+
value: z.boolean(),
|
|
412
|
+
}),
|
|
413
|
+
}),
|
|
414
|
+
z.object({
|
|
415
|
+
type: z.literal('add-custom-resource'),
|
|
416
|
+
payload: z.object({
|
|
417
|
+
resource_id: NonEmptyString,
|
|
418
|
+
parent_component_id: NonEmptyString,
|
|
419
|
+
skipped: z.boolean().optional(),
|
|
420
|
+
}),
|
|
421
|
+
}),
|
|
422
|
+
z.object({
|
|
423
|
+
type: z.literal('move-item-before'),
|
|
424
|
+
payload: z.object({
|
|
425
|
+
target: LessonPlanTarget,
|
|
426
|
+
reference_id: NonEmptyString,
|
|
427
|
+
}),
|
|
428
|
+
}),
|
|
429
|
+
z.object({
|
|
430
|
+
type: z.literal('move-item-after'),
|
|
431
|
+
payload: z.object({
|
|
432
|
+
target: LessonPlanTarget,
|
|
433
|
+
reference_id: NonEmptyString,
|
|
434
|
+
}),
|
|
435
|
+
}),
|
|
436
|
+
z.object({
|
|
437
|
+
type: z.literal('move-item-to-start'),
|
|
438
|
+
payload: z.object({
|
|
439
|
+
target: LessonPlanTarget,
|
|
440
|
+
}),
|
|
441
|
+
}),
|
|
442
|
+
z.object({
|
|
443
|
+
type: z.literal('move-item-to-end'),
|
|
444
|
+
payload: z.object({
|
|
445
|
+
target: LessonPlanTarget,
|
|
446
|
+
}),
|
|
447
|
+
}),
|
|
448
|
+
z.object({
|
|
449
|
+
type: z.literal('change-item-parent'),
|
|
450
|
+
payload: z.object({
|
|
451
|
+
target: LessonPlanTarget,
|
|
452
|
+
new_parent_id: NonEmptyString,
|
|
453
|
+
position: z.enum(['start', 'end']).optional(),
|
|
454
|
+
}),
|
|
455
|
+
}),
|
|
456
|
+
])
|
|
457
|
+
|
|
458
|
+
declare const PowerPathLessonPlanOperationsInput = z.object({
|
|
459
|
+
operation: z.array(PowerPathLessonPlanOperationInput),
|
|
460
|
+
reason: NonEmptyString.optional(),
|
|
461
|
+
})
|
|
462
|
+
|
|
463
|
+
declare const PowerPathLessonPlanUpdateStudentItemResponseInput = z.object({
|
|
464
|
+
studentId: NonEmptyString,
|
|
465
|
+
componentResourceId: NonEmptyString,
|
|
466
|
+
result: z.object({
|
|
467
|
+
status: z.enum(['active', 'tobedeleted']),
|
|
468
|
+
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
469
|
+
score: z.number().optional(),
|
|
470
|
+
textScore: NonEmptyString.optional(),
|
|
471
|
+
scoreDate: NonEmptyString,
|
|
472
|
+
scorePercentile: z.number().optional(),
|
|
473
|
+
scoreStatus: ScoreStatus,
|
|
474
|
+
comment: NonEmptyString.optional(),
|
|
475
|
+
learningObjectiveSet: z
|
|
476
|
+
.array(
|
|
477
|
+
z.object({
|
|
478
|
+
source: NonEmptyString,
|
|
479
|
+
learningObjectiveResults: z.array(
|
|
480
|
+
z.object({
|
|
481
|
+
learningObjectiveId: NonEmptyString,
|
|
482
|
+
score: z.number().optional(),
|
|
483
|
+
textScore: NonEmptyString.optional(),
|
|
484
|
+
}),
|
|
485
|
+
),
|
|
486
|
+
}),
|
|
487
|
+
)
|
|
488
|
+
.optional(),
|
|
489
|
+
inProgress: NonEmptyString.optional(),
|
|
490
|
+
incomplete: NonEmptyString.optional(),
|
|
491
|
+
late: NonEmptyString.optional(),
|
|
492
|
+
missing: NonEmptyString.optional(),
|
|
493
|
+
}),
|
|
494
|
+
})
|
|
495
|
+
|
|
496
|
+
declare const PowerPathMakeExternalTestAssignmentInput = z.object({
|
|
497
|
+
student: NonEmptyString,
|
|
498
|
+
lesson: NonEmptyString,
|
|
499
|
+
applicationName: NonEmptyString.optional(),
|
|
500
|
+
testId: NonEmptyString.optional(),
|
|
501
|
+
skipCourseEnrollment: z.boolean().optional(),
|
|
502
|
+
})
|
|
503
|
+
|
|
504
|
+
declare const PowerPathPlacementResetUserPlacementInput = z.object({
|
|
505
|
+
student: NonEmptyString,
|
|
506
|
+
subject: TimebackSubject,
|
|
507
|
+
})
|
|
508
|
+
|
|
509
|
+
declare const PowerPathResetAttemptInput = z.object({
|
|
510
|
+
student: NonEmptyString,
|
|
511
|
+
lesson: NonEmptyString,
|
|
512
|
+
})
|
|
513
|
+
|
|
514
|
+
declare const PowerPathScreeningResetSessionInput = z.object({
|
|
515
|
+
userId: NonEmptyString,
|
|
516
|
+
})
|
|
517
|
+
|
|
518
|
+
declare const PowerPathScreeningAssignTestInput = z.object({
|
|
519
|
+
userId: NonEmptyString,
|
|
520
|
+
subject: z.enum(['Math', 'Reading', 'Language', 'Science']),
|
|
521
|
+
})
|
|
522
|
+
|
|
523
|
+
declare const PowerPathTestAssignmentsCreateInput = z.object({
|
|
524
|
+
student: NonEmptyString,
|
|
525
|
+
subject: TimebackSubject,
|
|
526
|
+
grade: TimebackGrade,
|
|
527
|
+
testName: NonEmptyString.optional(),
|
|
528
|
+
})
|
|
529
|
+
|
|
530
|
+
declare const PowerPathTestAssignmentsUpdateInput = z.object({
|
|
531
|
+
testName: NonEmptyString,
|
|
532
|
+
})
|
|
533
|
+
|
|
534
|
+
declare const PowerPathTestAssignmentsBulkInput = z.object({
|
|
535
|
+
items: z.array(PowerPathTestAssignmentItemInput),
|
|
536
|
+
})
|
|
537
|
+
|
|
538
|
+
declare const PowerPathTestAssignmentsImportInput = z.object({
|
|
539
|
+
spreadsheetUrl: z.url(),
|
|
540
|
+
sheet: NonEmptyString,
|
|
541
|
+
})
|
|
542
|
+
|
|
543
|
+
declare const PowerPathTestAssignmentsListParams = z.object({
|
|
544
|
+
student: NonEmptyString,
|
|
545
|
+
status: z
|
|
546
|
+
.enum(['assigned', 'in_progress', 'completed', 'failed', 'expired', 'cancelled'])
|
|
547
|
+
.optional(),
|
|
548
|
+
subject: NonEmptyString.optional(),
|
|
549
|
+
grade: TimebackGrade.optional(),
|
|
550
|
+
limit: z.number().int().positive().max(3000).optional(),
|
|
551
|
+
offset: z.number().int().nonnegative().optional(),
|
|
552
|
+
})
|
|
553
|
+
|
|
554
|
+
declare const PowerPathTestAssignmentsAdminParams = z.object({
|
|
555
|
+
student: NonEmptyString.optional(),
|
|
556
|
+
status: z
|
|
557
|
+
.enum(['assigned', 'in_progress', 'completed', 'failed', 'expired', 'cancelled'])
|
|
558
|
+
.optional(),
|
|
559
|
+
subject: NonEmptyString.optional(),
|
|
560
|
+
grade: TimebackGrade.optional(),
|
|
561
|
+
limit: z.number().int().positive().max(3000).optional(),
|
|
562
|
+
offset: z.number().int().nonnegative().optional(),
|
|
563
|
+
})
|
|
564
|
+
|
|
565
|
+
declare const PowerPathUpdateStudentQuestionResponseInput = z.object({
|
|
566
|
+
student: NonEmptyString,
|
|
567
|
+
question: NonEmptyString,
|
|
568
|
+
response: z.union([NonEmptyString, z.array(NonEmptyString)]).optional(),
|
|
569
|
+
responses: z.record(z.string(), z.union([NonEmptyString, z.array(NonEmptyString)])).optional(),
|
|
570
|
+
lesson: NonEmptyString,
|
|
571
|
+
})
|
|
572
|
+
|
|
573
|
+
declare const PowerPathGetAssessmentProgressParams = z.object({
|
|
574
|
+
student: NonEmptyString,
|
|
575
|
+
lesson: NonEmptyString,
|
|
576
|
+
attempt: z.number().int().positive().optional(),
|
|
577
|
+
})
|
|
578
|
+
|
|
579
|
+
declare const PowerPathGetNextQuestionParams = z.object({
|
|
580
|
+
student: NonEmptyString,
|
|
581
|
+
lesson: NonEmptyString,
|
|
582
|
+
})
|
|
583
|
+
|
|
584
|
+
declare const PowerPathGetAttemptsParams = z.object({
|
|
585
|
+
student: NonEmptyString,
|
|
586
|
+
lesson: NonEmptyString,
|
|
587
|
+
})
|
|
588
|
+
|
|
589
|
+
declare const PowerPathTestOutParams = z.object({
|
|
590
|
+
student: NonEmptyString,
|
|
591
|
+
lesson: NonEmptyString.optional(),
|
|
592
|
+
finalized: z.boolean().optional(),
|
|
593
|
+
toolProvider: NonEmptyString.optional(),
|
|
594
|
+
attempt: z.number().int().positive().optional(),
|
|
595
|
+
})
|
|
596
|
+
|
|
597
|
+
declare const PowerPathImportExternalTestAssignmentResultsParams = z.object({
|
|
598
|
+
student: NonEmptyString,
|
|
599
|
+
lesson: NonEmptyString,
|
|
600
|
+
applicationName: NonEmptyString.optional(),
|
|
601
|
+
})
|
|
602
|
+
|
|
603
|
+
declare const PowerPathPlacementQueryParams = z.object({
|
|
604
|
+
student: NonEmptyString,
|
|
605
|
+
subject: TimebackSubject,
|
|
606
|
+
})
|
|
607
|
+
|
|
608
|
+
declare const PowerPathSyllabusQueryParams = z.object({
|
|
609
|
+
status: z.enum(['active', 'tobedeleted']).optional(),
|
|
610
|
+
})
|
|
611
|
+
|
|
612
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
613
|
+
// TYPE EXPORTS (REQUEST INPUTS)
|
|
614
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
615
|
+
|
|
616
|
+
// Shorter type aliases (like OneRoster pattern: schema = OneRosterFoo, type = Foo)
|
|
617
|
+
type CreateExternalPlacementTestInput = input<
|
|
618
|
+
typeof PowerPathCreateExternalPlacementTestInput
|
|
619
|
+
>
|
|
620
|
+
type CreateExternalTestOutInput = input<typeof PowerPathCreateExternalTestOutInput>
|
|
621
|
+
type CreateInternalTestInput = input<typeof PowerPathCreateInternalTestInput>
|
|
622
|
+
type CreateNewAttemptInput = input<typeof PowerPathCreateNewAttemptInput>
|
|
623
|
+
type FinalStudentAssessmentResponseInput = input<
|
|
624
|
+
typeof PowerPathFinalStudentAssessmentResponseInput
|
|
625
|
+
>
|
|
626
|
+
type LessonPlansCreateInput = input<typeof PowerPathLessonPlansCreateInput>
|
|
627
|
+
type LessonPlanOperationInput = input<typeof PowerPathLessonPlanOperationInput>
|
|
628
|
+
type LessonPlanOperationsInput = input<typeof PowerPathLessonPlanOperationsInput>
|
|
629
|
+
type LessonPlanUpdateStudentItemResponseInput = input<
|
|
630
|
+
typeof PowerPathLessonPlanUpdateStudentItemResponseInput
|
|
631
|
+
>
|
|
632
|
+
type MakeExternalTestAssignmentInput = input<
|
|
633
|
+
typeof PowerPathMakeExternalTestAssignmentInput
|
|
634
|
+
>
|
|
635
|
+
type PlacementResetUserPlacementInput = input<
|
|
636
|
+
typeof PowerPathPlacementResetUserPlacementInput
|
|
637
|
+
>
|
|
638
|
+
type ResetAttemptInput = input<typeof PowerPathResetAttemptInput>
|
|
639
|
+
type ScreeningResetSessionInput = input<typeof PowerPathScreeningResetSessionInput>
|
|
640
|
+
type ScreeningAssignTestInput = input<typeof PowerPathScreeningAssignTestInput>
|
|
641
|
+
type TestAssignmentsCreateInput = input<typeof PowerPathTestAssignmentsCreateInput>
|
|
642
|
+
type TestAssignmentsUpdateInput = input<typeof PowerPathTestAssignmentsUpdateInput>
|
|
643
|
+
type TestAssignmentsBulkInput = input<typeof PowerPathTestAssignmentsBulkInput>
|
|
644
|
+
type TestAssignmentsImportInput = input<typeof PowerPathTestAssignmentsImportInput>
|
|
645
|
+
type TestAssignmentsListParams = input<typeof PowerPathTestAssignmentsListParams>
|
|
646
|
+
type TestAssignmentsAdminParams = input<typeof PowerPathTestAssignmentsAdminParams>
|
|
647
|
+
type UpdateStudentQuestionResponseInput = input<
|
|
648
|
+
typeof PowerPathUpdateStudentQuestionResponseInput
|
|
649
|
+
>
|
|
650
|
+
type GetAssessmentProgressParams = input<typeof PowerPathGetAssessmentProgressParams>
|
|
651
|
+
type GetNextQuestionParams = input<typeof PowerPathGetNextQuestionParams>
|
|
652
|
+
type GetAttemptsParams = input<typeof PowerPathGetAttemptsParams>
|
|
653
|
+
type TestOutParams = input<typeof PowerPathTestOutParams>
|
|
654
|
+
type ImportExternalTestAssignmentResultsParams = input<
|
|
655
|
+
typeof PowerPathImportExternalTestAssignmentResultsParams
|
|
656
|
+
>
|
|
657
|
+
type PlacementQueryParams = input<typeof PowerPathPlacementQueryParams>
|
|
658
|
+
type SyllabusQueryParams = input<typeof PowerPathSyllabusQueryParams>
|
|
659
|
+
|
|
660
|
+
export type { AssignmentResult, Attempt, BulkResult, CourseProgressResponse, CreateAttemptResponse, CreateExternalPlacementTestInput, CreateExternalTestOutInput, CreateInternalTestInput, CreateNewAttemptInput, ExternalTestCreateResponse, FinalStudentAssessmentResponseInput, GetAllPlacementTestsResponse, GetAssessmentProgressParams, GetAssessmentProgressResponse, GetAttemptsParams, GetAttemptsResponse, GetCurrentLevelResponse, GetNextPlacementTestResponse, GetNextQuestionParams, GetSubjectProgressResponse, ImportExternalTestAssignmentResultsParams, LessonPlanCourseSyncResult, LessonPlanCreateResponse, LessonPlanOperation, LessonPlanOperationInput, LessonPlanOperationResult, LessonPlanOperationType, LessonPlanOperationsInput, LessonPlanOperationsResponse, LessonPlanResponse, LessonPlanSyncResult, LessonPlanUpdateStudentItemResponseInput, LessonPlansCreateInput, MakeExternalTestAssignmentInput, PaginationMeta, PlacementQueryParams, PlacementResetUserPlacementInput, ResetAttemptInput, ResetAttemptResponse, ResetPlacementResponse, ScreeningAssignTestInput, ScreeningAssignTestResponse, ScreeningResetSessionInput, ScreeningResetSessionResponse, ScreeningResultsResponse, ScreeningSessionResponse, SyllabusQueryParams, SyllabusResponse, TestAssignment, TestAssignmentStatus, TestAssignmentsAdminParams, TestAssignmentsBulkInput, TestAssignmentsCreateInput, TestAssignmentsImportInput, TestAssignmentsListParams, TestAssignmentsListResponse, TestAssignmentsUpdateInput, TestOutParams, UpdateStudentItemResponseResult, UpdateStudentQuestionResponseInput };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-types.d.ts","sourceRoot":"","sources":["../src/public-types.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAA;AAEnD,YAAY,EACX,gCAAgC,EAChC,0BAA0B,EAC1B,uBAAuB,EACvB,qBAAqB,EACrB,mCAAmC,EACnC,2BAA2B,EAC3B,iBAAiB,EACjB,qBAAqB,EACrB,yCAAyC,EACzC,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,wCAAwC,EACxC,+BAA+B,EAC/B,oBAAoB,EACpB,gCAAgC,EAChC,iBAAiB,EACjB,wBAAwB,EACxB,0BAA0B,EAC1B,mBAAmB,EACnB,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,0BAA0B,EAC1B,aAAa,EACb,kCAAkC,GAClC,MAAM,qBAAqB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@timeback/powerpath",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "PowerPath client SDK for Timeback",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"import": "./dist/errors.js"
|
|
14
14
|
},
|
|
15
15
|
"./types": {
|
|
16
|
-
"types": "./dist/types.d.ts",
|
|
17
|
-
"import": "./dist/types.js"
|
|
16
|
+
"types": "./dist/public-types.d.ts",
|
|
17
|
+
"import": "./dist/public-types.js"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"main": "dist/index.js",
|
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
"@timeback/internal-test": "0.0.0",
|
|
38
38
|
"@timeback/internal-utils": "0.0.0",
|
|
39
39
|
"@timeback/types": "0.0.0",
|
|
40
|
-
"@types/bun": "latest"
|
|
40
|
+
"@types/bun": "latest",
|
|
41
|
+
"esbuild": "^0.27.3"
|
|
41
42
|
},
|
|
42
43
|
"peerDependencies": {
|
|
43
44
|
"typescript": "^5"
|
|
File without changes
|