@happyvertical/smrt-education 0.57.49 → 0.57.51
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/README.md +18 -1
- package/agents/course-authoring-service.md +39 -0
- package/agents/course-generation-review.md +53 -0
- package/agents/learner-service.md +20 -0
- package/agents/tutor-context.md +2 -1
- package/dist/chunks/{workbook-photo-service-WwDDC5GF.js → workbook-photo-service-BtMQsbhq.js} +1036 -402
- package/dist/chunks/workbook-photo-service-BtMQsbhq.js.map +1 -0
- package/dist/course-authoring-contracts.d.ts +23 -1
- package/dist/course-authoring-contracts.d.ts.map +1 -1
- package/dist/course-authoring-models.d.ts +2 -0
- package/dist/course-authoring-models.d.ts.map +1 -1
- package/dist/course-authoring-service.d.ts +56 -2
- package/dist/course-authoring-service.d.ts.map +1 -1
- package/dist/course-generation-contracts.d.ts +91 -0
- package/dist/course-generation-contracts.d.ts.map +1 -1
- package/dist/course-generation-models.d.ts +29 -0
- package/dist/course-generation-models.d.ts.map +1 -1
- package/dist/course-generation-output.d.ts +9 -3
- package/dist/course-generation-output.d.ts.map +1 -1
- package/dist/course-generation-proposal-generator.d.ts +171 -1
- package/dist/course-generation-proposal-generator.d.ts.map +1 -1
- package/dist/course-generation-review-service.d.ts +15 -1
- package/dist/course-generation-review-service.d.ts.map +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +364 -327
- package/dist/index.js.map +1 -1
- package/dist/ingestion.js +1 -1
- package/dist/learner-history.d.ts +23 -0
- package/dist/learner-history.d.ts.map +1 -1
- package/dist/learner-interest-theme.d.ts +25 -0
- package/dist/learner-interest-theme.d.ts.map +1 -0
- package/dist/learner-service.d.ts +31 -2
- package/dist/learner-service.d.ts.map +1 -1
- package/dist/learners.d.ts +4 -0
- package/dist/learners.d.ts.map +1 -1
- package/dist/manifest.json +3699 -2802
- package/dist/question-authoring-service.d.ts +12 -0
- package/dist/question-authoring-service.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +363 -13
- package/dist/tutor-context-service.d.ts.map +1 -1
- package/dist/tutor-contracts.d.ts +8 -0
- package/dist/tutor-contracts.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/chunks/workbook-photo-service-WwDDC5GF.js.map +0 -1
|
@@ -3,6 +3,7 @@ import type { DatabaseInterface } from '@happyvertical/sql';
|
|
|
3
3
|
import { type CourseAuthoringActor, type CourseAuthoringAuthorizer } from './course-authoring-contracts.js';
|
|
4
4
|
import { CourseAuthoringService, type CourseAuthoringServiceOptions } from './course-authoring-service.js';
|
|
5
5
|
import { type AttachGeneratedPrintableRequest, type GeneratedPrintableResult, type LearningObjectiveInput, type LearningObjectiveView, type QuestionContentInput, type QuestionHeadView, type QuestionRevisionView, type ReleasedLessonView, type ResolvedQuestionRevisions, type WorksheetBundle } from './question-contracts.js';
|
|
6
|
+
type Tx = DatabaseInterface;
|
|
6
7
|
export interface QuestionAuthoringServiceOptions extends CourseAuthoringServiceOptions {
|
|
7
8
|
/** Trusted concept ids; when supplied, question and objective concepts must belong. */
|
|
8
9
|
conceptVocabulary?: ReadonlyArray<{
|
|
@@ -43,6 +44,16 @@ export declare class QuestionAuthoringService extends CourseAuthoringService {
|
|
|
43
44
|
courseId?: string;
|
|
44
45
|
content: QuestionContentInput;
|
|
45
46
|
}): Promise<QuestionHeadView>;
|
|
47
|
+
/**
|
|
48
|
+
* The create path on a caller-supplied transaction, so a composed write (a
|
|
49
|
+
* generated lesson's worksheet) shares authorization, the request key and the
|
|
50
|
+
* transaction with the rest of the unit.
|
|
51
|
+
*/
|
|
52
|
+
protected createQuestionIn(tx: Tx, request: CourseAuthoringActor & {
|
|
53
|
+
requestKey: string;
|
|
54
|
+
courseId?: string;
|
|
55
|
+
content: QuestionContentInput;
|
|
56
|
+
}): Promise<QuestionHeadView>;
|
|
46
57
|
private appendQuestionRevision;
|
|
47
58
|
/**
|
|
48
59
|
* Appends an immutable revision when `expectedHeadRevisionId` is still the
|
|
@@ -151,4 +162,5 @@ export declare class QuestionAuthoringService extends CourseAuthoringService {
|
|
|
151
162
|
lessonKey: string;
|
|
152
163
|
}): Promise<ReleasedLessonView>;
|
|
153
164
|
}
|
|
165
|
+
export {};
|
|
154
166
|
//# sourceMappingURL=question-authoring-service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"question-authoring-service.d.ts","sourceRoot":"","sources":["../src/question-authoring-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,mBAAmB,EAGzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,EACL,KAAK,oBAAoB,EAEzB,KAAK,yBAAyB,EAK/B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,sBAAsB,EACtB,KAAK,6BAA6B,EACnC,MAAM,+BAA+B,CAAC;AAOvC,OAAO,EACL,KAAK,+BAA+B,EAGpC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAG3B,KAAK,qBAAqB,EAS1B,KAAK,oBAAoB,EAEzB,KAAK,gBAAgB,EAMrB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EAErB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"question-authoring-service.d.ts","sourceRoot":"","sources":["../src/question-authoring-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,mBAAmB,EAGzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,EACL,KAAK,oBAAoB,EAEzB,KAAK,yBAAyB,EAK/B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,sBAAsB,EACtB,KAAK,6BAA6B,EACnC,MAAM,+BAA+B,CAAC;AAOvC,OAAO,EACL,KAAK,+BAA+B,EAGpC,KAAK,wBAA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