@contractspec/module.learning-journey 1.46.2 → 1.47.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/contracts/models.d.ts +118 -118
- package/dist/contracts/onboarding.d.ts +168 -168
- package/dist/contracts/operations.d.ts +71 -71
- package/dist/engines/srs.js.map +1 -1
- package/dist/engines/streak.js.map +1 -1
- package/dist/engines/xp.js.map +1 -1
- package/dist/entities/ai.d.ts +200 -200
- package/dist/entities/course.d.ts +150 -150
- package/dist/entities/gamification.d.ts +198 -198
- package/dist/entities/index.d.ts +605 -605
- package/dist/entities/index.js.map +1 -1
- package/dist/learning-journey.capability.d.ts +9 -0
- package/dist/learning-journey.capability.d.ts.map +1 -0
- package/dist/learning-journey.capability.js +46 -0
- package/dist/learning-journey.capability.js.map +1 -0
- package/dist/learning-journey.feature.d.ts +2 -2
- package/dist/learning-journey.feature.d.ts.map +1 -1
- package/dist/learning-journey.feature.js +9 -2
- package/dist/learning-journey.feature.js.map +1 -1
- package/package.json +7 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/entities/index.ts"],"sourcesContent":["import type { ModuleSchemaContribution } from '@contractspec/lib.schema';\n\n// Course entities\nexport * from './course';\nimport { courseEntities, courseEnums } from './course';\n\n// Learner entities\nexport * from './learner';\nimport { learnerEntities, learnerEnums } from './learner';\n\n// Onboarding entities\nexport * from './onboarding';\nimport { onboardingEntities, onboardingEnums } from './onboarding';\n\n// Flashcard entities\nexport * from './flashcard';\nimport { flashcardEntities, flashcardEnums } from './flashcard';\n\n// Quiz entities\nexport * from './quiz';\nimport { quizEntities, quizEnums } from './quiz';\n\n// Gamification entities\nexport * from './gamification';\nimport { gamificationEntities, gamificationEnums } from './gamification';\n\n// AI entities\nexport * from './ai';\nimport { aiEntities, aiEnums } from './ai';\n\n/**\n * All learning journey entities for schema composition.\n */\nexport const learningJourneyEntities = [\n ...courseEntities,\n ...learnerEntities,\n ...onboardingEntities,\n ...flashcardEntities,\n ...quizEntities,\n ...gamificationEntities,\n ...aiEntities,\n];\n\n/**\n * All learning journey enums.\n */\nexport const learningJourneyEnums = [\n ...courseEnums,\n ...learnerEnums,\n ...onboardingEnums,\n ...flashcardEnums,\n ...quizEnums,\n ...gamificationEnums,\n ...aiEnums,\n];\n\n/**\n * Module schema contribution for learning journey.\n */\nexport const learningJourneySchemaContribution: ModuleSchemaContribution = {\n moduleId: '@contractspec/module.learning-journey',\n entities: learningJourneyEntities,\n enums: learningJourneyEnums,\n};\n"],"mappings":";;;;;;;;;;;;AAiCA,MAAa,0BAA0B;CACrC,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACJ;;;;AAKD,MAAa,uBAAuB;CAClC,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACJ;;;;AAKD,MAAa,oCAA8D;CACzE,UAAU;CACV,UAAU;CACV,OAAO;CACR"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as _contractspec_lib_contracts31 from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/learning-journey.capability.d.ts
|
|
4
|
+
declare const LearningJourneyCapability: _contractspec_lib_contracts31.CapabilitySpec;
|
|
5
|
+
declare const OnboardingCapability: _contractspec_lib_contracts31.CapabilitySpec;
|
|
6
|
+
declare const GamificationCapability: _contractspec_lib_contracts31.CapabilitySpec;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { GamificationCapability, LearningJourneyCapability, OnboardingCapability };
|
|
9
|
+
//# sourceMappingURL=learning-journey.capability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"learning-journey.capability.d.ts","names":[],"sources":["../src/learning-journey.capability.ts"],"sourcesContent":[],"mappings":";;;cAEa,2BAUX,6BAAA,CAVoC;cAYzB,sBAUX,6BAAA,CAV+B;cAYpB,wBAUX,6BAAA,CAViC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { StabilityEnum, defineCapability } from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/learning-journey.capability.ts
|
|
4
|
+
const LearningJourneyCapability = defineCapability({ meta: {
|
|
5
|
+
key: "learning-journey",
|
|
6
|
+
version: "1.0.0",
|
|
7
|
+
kind: "ui",
|
|
8
|
+
stability: StabilityEnum.Experimental,
|
|
9
|
+
description: "Guided learning paths and progress tracking",
|
|
10
|
+
owners: ["platform.core"],
|
|
11
|
+
tags: [
|
|
12
|
+
"learning",
|
|
13
|
+
"onboarding",
|
|
14
|
+
"ui"
|
|
15
|
+
]
|
|
16
|
+
} });
|
|
17
|
+
const OnboardingCapability = defineCapability({ meta: {
|
|
18
|
+
key: "onboarding",
|
|
19
|
+
version: "1.0.0",
|
|
20
|
+
kind: "ui",
|
|
21
|
+
stability: StabilityEnum.Experimental,
|
|
22
|
+
description: "User onboarding and first-time experience flows",
|
|
23
|
+
owners: ["platform.core"],
|
|
24
|
+
tags: [
|
|
25
|
+
"onboarding",
|
|
26
|
+
"ux",
|
|
27
|
+
"ui"
|
|
28
|
+
]
|
|
29
|
+
} });
|
|
30
|
+
const GamificationCapability = defineCapability({ meta: {
|
|
31
|
+
key: "gamification",
|
|
32
|
+
version: "1.0.0",
|
|
33
|
+
kind: "ui",
|
|
34
|
+
stability: StabilityEnum.Experimental,
|
|
35
|
+
description: "Gamification elements like badges, points, and achievements",
|
|
36
|
+
owners: ["platform.core"],
|
|
37
|
+
tags: [
|
|
38
|
+
"gamification",
|
|
39
|
+
"engagement",
|
|
40
|
+
"ui"
|
|
41
|
+
]
|
|
42
|
+
} });
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
export { GamificationCapability, LearningJourneyCapability, OnboardingCapability };
|
|
46
|
+
//# sourceMappingURL=learning-journey.capability.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"learning-journey.capability.js","names":[],"sources":["../src/learning-journey.capability.ts"],"sourcesContent":["import { defineCapability, StabilityEnum } from '@contractspec/lib.contracts';\n\nexport const LearningJourneyCapability = defineCapability({\n meta: {\n key: 'learning-journey',\n version: '1.0.0',\n kind: 'ui',\n stability: StabilityEnum.Experimental,\n description: 'Guided learning paths and progress tracking',\n owners: ['platform.core'],\n tags: ['learning', 'onboarding', 'ui'],\n },\n});\n\nexport const OnboardingCapability = defineCapability({\n meta: {\n key: 'onboarding',\n version: '1.0.0',\n kind: 'ui',\n stability: StabilityEnum.Experimental,\n description: 'User onboarding and first-time experience flows',\n owners: ['platform.core'],\n tags: ['onboarding', 'ux', 'ui'],\n },\n});\n\nexport const GamificationCapability = defineCapability({\n meta: {\n key: 'gamification',\n version: '1.0.0',\n kind: 'ui',\n stability: StabilityEnum.Experimental,\n description: 'Gamification elements like badges, points, and achievements',\n owners: ['platform.core'],\n tags: ['gamification', 'engagement', 'ui'],\n },\n});\n"],"mappings":";;;AAEA,MAAa,4BAA4B,iBAAiB,EACxD,MAAM;CACJ,KAAK;CACL,SAAS;CACT,MAAM;CACN,WAAW,cAAc;CACzB,aAAa;CACb,QAAQ,CAAC,gBAAgB;CACzB,MAAM;EAAC;EAAY;EAAc;EAAK;CACvC,EACF,CAAC;AAEF,MAAa,uBAAuB,iBAAiB,EACnD,MAAM;CACJ,KAAK;CACL,SAAS;CACT,MAAM;CACN,WAAW,cAAc;CACzB,aAAa;CACb,QAAQ,CAAC,gBAAgB;CACzB,MAAM;EAAC;EAAc;EAAM;EAAK;CACjC,EACF,CAAC;AAEF,MAAa,yBAAyB,iBAAiB,EACrD,MAAM;CACJ,KAAK;CACL,SAAS;CACT,MAAM;CACN,WAAW,cAAc;CACzB,aAAa;CACb,QAAQ,CAAC,gBAAgB;CACzB,MAAM;EAAC;EAAgB;EAAc;EAAK;CAC3C,EACF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _contractspec_lib_contracts34 from "@contractspec/lib.contracts";
|
|
2
2
|
|
|
3
3
|
//#region src/learning-journey.feature.d.ts
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import { FeatureModuleSpec } from "@contractspec/lib.contracts";
|
|
|
6
6
|
* Learning Journey feature module that bundles course enrollment,
|
|
7
7
|
* onboarding tracks, flashcard review, and gamification capabilities.
|
|
8
8
|
*/
|
|
9
|
-
declare const LearningJourneyFeature: FeatureModuleSpec;
|
|
9
|
+
declare const LearningJourneyFeature: _contractspec_lib_contracts34.FeatureModuleSpec;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { LearningJourneyFeature };
|
|
12
12
|
//# sourceMappingURL=learning-journey.feature.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"learning-journey.feature.d.ts","names":[],"sources":["../src/learning-journey.feature.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"learning-journey.feature.d.ts","names":[],"sources":["../src/learning-journey.feature.ts"],"sourcesContent":[],"mappings":";;;;;;;AAWA;cAAa,wBA6EX,6BAAA,CA7EiC"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import { defineFeature } from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
1
3
|
//#region src/learning-journey.feature.ts
|
|
2
4
|
/**
|
|
5
|
+
* Learning Journey Feature Module Specification
|
|
6
|
+
*
|
|
7
|
+
* Defines the feature module for learning, onboarding, and gamification.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
3
10
|
* Learning Journey feature module that bundles course enrollment,
|
|
4
11
|
* onboarding tracks, flashcard review, and gamification capabilities.
|
|
5
12
|
*/
|
|
6
|
-
const LearningJourneyFeature = {
|
|
13
|
+
const LearningJourneyFeature = defineFeature({
|
|
7
14
|
meta: {
|
|
8
15
|
key: "learning-journey",
|
|
9
16
|
version: "1.0.0",
|
|
@@ -143,7 +150,7 @@ const LearningJourneyFeature = {
|
|
|
143
150
|
version: "1.0.0"
|
|
144
151
|
}]
|
|
145
152
|
}
|
|
146
|
-
};
|
|
153
|
+
});
|
|
147
154
|
|
|
148
155
|
//#endregion
|
|
149
156
|
export { LearningJourneyFeature };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"learning-journey.feature.js","names":[
|
|
1
|
+
{"version":3,"file":"learning-journey.feature.js","names":[],"sources":["../src/learning-journey.feature.ts"],"sourcesContent":["/**\n * Learning Journey Feature Module Specification\n *\n * Defines the feature module for learning, onboarding, and gamification.\n */\nimport { defineFeature } from '@contractspec/lib.contracts';\n\n/**\n * Learning Journey feature module that bundles course enrollment,\n * onboarding tracks, flashcard review, and gamification capabilities.\n */\nexport const LearningJourneyFeature = defineFeature({\n meta: {\n key: 'learning-journey',\n version: '1.0.0',\n title: 'Learning Journey',\n description:\n 'Learning platform with courses, onboarding, flashcards, and gamification',\n domain: 'learning',\n owners: ['@platform.learning-journey'],\n tags: ['learning', 'onboarding', 'courses', 'flashcards', 'gamification'],\n stability: 'stable',\n },\n\n // All contract operations included in this feature\n operations: [\n // Onboarding operations\n { key: 'learning.onboarding.recordEvent', version: '1.0.0' },\n { key: 'learning.onboarding.listTracks', version: '1.0.0' },\n { key: 'learning.onboarding.getProgress', version: '1.0.0' },\n\n // Core learning operations\n { key: 'learning.enroll', version: '1.0.0' },\n { key: 'learning.completeLesson', version: '1.0.0' },\n { key: 'learning.submitCardReview', version: '1.0.0' },\n { key: 'learning.getDueCards', version: '1.0.0' },\n { key: 'learning.getDashboard', version: '1.0.0' },\n ],\n\n // Events emitted by this feature\n events: [\n // Course events\n { key: 'course.published', version: '1.0.0' },\n { key: 'course.completed', version: '1.0.0' },\n\n // Enrollment events\n { key: 'enrollment.created', version: '1.0.0' },\n\n // Progress events\n { key: 'lesson.completed', version: '1.0.0' },\n\n // Onboarding events\n { key: 'onboarding.started', version: '1.0.0' },\n { key: 'onboarding.step_completed', version: '1.0.0' },\n { key: 'onboarding.completed', version: '1.0.0' },\n\n // Flashcard events\n { key: 'flashcard.reviewed', version: '1.0.0' },\n\n // Quiz events\n { key: 'quiz.started', version: '1.0.0' },\n { key: 'quiz.completed', version: '1.0.0' },\n\n // Gamification events\n { key: 'xp.earned', version: '1.0.0' },\n { key: 'level.up', version: '1.0.0' },\n { key: 'streak.updated', version: '1.0.0' },\n { key: 'achievement.unlocked', version: '1.0.0' },\n { key: 'daily_goal.completed', version: '1.0.0' },\n\n // Certificate events\n { key: 'certificate.issued', version: '1.0.0' },\n ],\n\n // No presentations for this module feature\n presentations: [],\n opToPresentation: [],\n presentationsTargets: [],\n\n // Capability definitions\n capabilities: {\n provides: [\n { key: 'learning-journey', version: '1.0.0' },\n { key: 'onboarding', version: '1.0.0' },\n { key: 'gamification', version: '1.0.0' },\n ],\n requires: [{ key: 'identity', version: '1.0.0' }],\n },\n});\n"],"mappings":";;;;;;;;;;;;AAWA,MAAa,yBAAyB,cAAc;CAClD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,6BAA6B;EACtC,MAAM;GAAC;GAAY;GAAc;GAAW;GAAc;GAAe;EACzE,WAAW;EACZ;CAGD,YAAY;EAEV;GAAE,KAAK;GAAmC,SAAS;GAAS;EAC5D;GAAE,KAAK;GAAkC,SAAS;GAAS;EAC3D;GAAE,KAAK;GAAmC,SAAS;GAAS;EAG5D;GAAE,KAAK;GAAmB,SAAS;GAAS;EAC5C;GAAE,KAAK;GAA2B,SAAS;GAAS;EACpD;GAAE,KAAK;GAA6B,SAAS;GAAS;EACtD;GAAE,KAAK;GAAwB,SAAS;GAAS;EACjD;GAAE,KAAK;GAAyB,SAAS;GAAS;EACnD;CAGD,QAAQ;EAEN;GAAE,KAAK;GAAoB,SAAS;GAAS;EAC7C;GAAE,KAAK;GAAoB,SAAS;GAAS;EAG7C;GAAE,KAAK;GAAsB,SAAS;GAAS;EAG/C;GAAE,KAAK;GAAoB,SAAS;GAAS;EAG7C;GAAE,KAAK;GAAsB,SAAS;GAAS;EAC/C;GAAE,KAAK;GAA6B,SAAS;GAAS;EACtD;GAAE,KAAK;GAAwB,SAAS;GAAS;EAGjD;GAAE,KAAK;GAAsB,SAAS;GAAS;EAG/C;GAAE,KAAK;GAAgB,SAAS;GAAS;EACzC;GAAE,KAAK;GAAkB,SAAS;GAAS;EAG3C;GAAE,KAAK;GAAa,SAAS;GAAS;EACtC;GAAE,KAAK;GAAY,SAAS;GAAS;EACrC;GAAE,KAAK;GAAkB,SAAS;GAAS;EAC3C;GAAE,KAAK;GAAwB,SAAS;GAAS;EACjD;GAAE,KAAK;GAAwB,SAAS;GAAS;EAGjD;GAAE,KAAK;GAAsB,SAAS;GAAS;EAChD;CAGD,eAAe,EAAE;CACjB,kBAAkB,EAAE;CACpB,sBAAsB,EAAE;CAGxB,cAAc;EACZ,UAAU;GACR;IAAE,KAAK;IAAoB,SAAS;IAAS;GAC7C;IAAE,KAAK;IAAc,SAAS;IAAS;GACvC;IAAE,KAAK;IAAgB,SAAS;IAAS;GAC1C;EACD,UAAU,CAAC;GAAE,KAAK;GAAY,SAAS;GAAS,CAAC;EAClD;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/module.learning-journey",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.47.0",
|
|
4
4
|
"description": "Comprehensive learning journey engine - onboarding, LMS, flashcards, gamification, and AI personalization",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"lms",
|
|
11
11
|
"typescript"
|
|
12
12
|
],
|
|
13
|
-
"main": "./dist/index.js",
|
|
14
13
|
"types": "./dist/index.d.ts",
|
|
15
14
|
"type": "module",
|
|
16
15
|
"scripts": {
|
|
@@ -26,13 +25,13 @@
|
|
|
26
25
|
"lint:check": "eslint src"
|
|
27
26
|
},
|
|
28
27
|
"dependencies": {
|
|
29
|
-
"@contractspec/lib.schema": "1.
|
|
30
|
-
"@contractspec/lib.contracts": "1.
|
|
31
|
-
"zod": "^4.
|
|
28
|
+
"@contractspec/lib.schema": "1.47.0",
|
|
29
|
+
"@contractspec/lib.contracts": "1.47.0",
|
|
30
|
+
"zod": "^4.3.5"
|
|
32
31
|
},
|
|
33
32
|
"devDependencies": {
|
|
34
|
-
"@contractspec/tool.typescript": "1.
|
|
35
|
-
"@contractspec/tool.tsdown": "1.
|
|
33
|
+
"@contractspec/tool.typescript": "1.47.0",
|
|
34
|
+
"@contractspec/tool.tsdown": "1.47.0",
|
|
36
35
|
"typescript": "^5.9.3"
|
|
37
36
|
},
|
|
38
37
|
"exports": {
|
|
@@ -57,11 +56,11 @@
|
|
|
57
56
|
"./entities/onboarding": "./dist/entities/onboarding.js",
|
|
58
57
|
"./entities/quiz": "./dist/entities/quiz.js",
|
|
59
58
|
"./events": "./dist/events.js",
|
|
59
|
+
"./learning-journey.capability": "./dist/learning-journey.capability.js",
|
|
60
60
|
"./learning-journey.feature": "./dist/learning-journey.feature.js",
|
|
61
61
|
"./track-spec": "./dist/track-spec.js",
|
|
62
62
|
"./*": "./*"
|
|
63
63
|
},
|
|
64
|
-
"module": "./dist/index.js",
|
|
65
64
|
"files": [
|
|
66
65
|
"dist",
|
|
67
66
|
"README.md"
|