@contractspec/module.learning-journey 1.46.2 → 1.48.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/entities/learner.d.ts +192 -192
- 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"}
|
|
@@ -1,224 +1,224 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema1436 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/learner.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Enrollment status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const EnrollmentStatusEnum:
|
|
7
|
+
declare const EnrollmentStatusEnum: _contractspec_lib_schema1436.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Progress status enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const ProgressStatusEnum:
|
|
11
|
+
declare const ProgressStatusEnum: _contractspec_lib_schema1436.EntityEnumDef;
|
|
12
12
|
/**
|
|
13
13
|
* Learner entity - learning profile.
|
|
14
14
|
*/
|
|
15
|
-
declare const LearnerEntity:
|
|
16
|
-
id:
|
|
17
|
-
userId:
|
|
18
|
-
displayName:
|
|
19
|
-
avatarUrl:
|
|
20
|
-
bio:
|
|
21
|
-
level:
|
|
22
|
-
totalXp:
|
|
23
|
-
currentStreak:
|
|
24
|
-
longestStreak:
|
|
25
|
-
lastActivityAt:
|
|
26
|
-
timezone:
|
|
27
|
-
dailyGoalXp:
|
|
28
|
-
reminderEnabled:
|
|
29
|
-
reminderTime:
|
|
30
|
-
orgId:
|
|
31
|
-
metadata:
|
|
32
|
-
createdAt:
|
|
33
|
-
updatedAt:
|
|
34
|
-
enrollments:
|
|
35
|
-
lessonProgress:
|
|
36
|
-
achievements:
|
|
37
|
-
decks:
|
|
38
|
-
profile:
|
|
15
|
+
declare const LearnerEntity: _contractspec_lib_schema1436.EntitySpec<{
|
|
16
|
+
id: _contractspec_lib_schema1436.EntityScalarField;
|
|
17
|
+
userId: _contractspec_lib_schema1436.EntityScalarField;
|
|
18
|
+
displayName: _contractspec_lib_schema1436.EntityScalarField;
|
|
19
|
+
avatarUrl: _contractspec_lib_schema1436.EntityScalarField;
|
|
20
|
+
bio: _contractspec_lib_schema1436.EntityScalarField;
|
|
21
|
+
level: _contractspec_lib_schema1436.EntityScalarField;
|
|
22
|
+
totalXp: _contractspec_lib_schema1436.EntityScalarField;
|
|
23
|
+
currentStreak: _contractspec_lib_schema1436.EntityScalarField;
|
|
24
|
+
longestStreak: _contractspec_lib_schema1436.EntityScalarField;
|
|
25
|
+
lastActivityAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
26
|
+
timezone: _contractspec_lib_schema1436.EntityScalarField;
|
|
27
|
+
dailyGoalXp: _contractspec_lib_schema1436.EntityScalarField;
|
|
28
|
+
reminderEnabled: _contractspec_lib_schema1436.EntityScalarField;
|
|
29
|
+
reminderTime: _contractspec_lib_schema1436.EntityScalarField;
|
|
30
|
+
orgId: _contractspec_lib_schema1436.EntityScalarField;
|
|
31
|
+
metadata: _contractspec_lib_schema1436.EntityScalarField;
|
|
32
|
+
createdAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
33
|
+
updatedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
34
|
+
enrollments: _contractspec_lib_schema1436.EntityRelationField;
|
|
35
|
+
lessonProgress: _contractspec_lib_schema1436.EntityRelationField;
|
|
36
|
+
achievements: _contractspec_lib_schema1436.EntityRelationField;
|
|
37
|
+
decks: _contractspec_lib_schema1436.EntityRelationField;
|
|
38
|
+
profile: _contractspec_lib_schema1436.EntityRelationField;
|
|
39
39
|
}>;
|
|
40
40
|
/**
|
|
41
41
|
* Enrollment entity - course enrollment.
|
|
42
42
|
*/
|
|
43
|
-
declare const EnrollmentEntity:
|
|
44
|
-
id:
|
|
45
|
-
learnerId:
|
|
46
|
-
courseId:
|
|
47
|
-
status:
|
|
48
|
-
progress:
|
|
49
|
-
completedLessons:
|
|
50
|
-
totalLessons:
|
|
51
|
-
xpEarned:
|
|
52
|
-
startedAt:
|
|
53
|
-
completedAt:
|
|
54
|
-
lastAccessedAt:
|
|
55
|
-
certificateId:
|
|
56
|
-
metadata:
|
|
57
|
-
createdAt:
|
|
58
|
-
updatedAt:
|
|
59
|
-
learner:
|
|
60
|
-
course:
|
|
43
|
+
declare const EnrollmentEntity: _contractspec_lib_schema1436.EntitySpec<{
|
|
44
|
+
id: _contractspec_lib_schema1436.EntityScalarField;
|
|
45
|
+
learnerId: _contractspec_lib_schema1436.EntityScalarField;
|
|
46
|
+
courseId: _contractspec_lib_schema1436.EntityScalarField;
|
|
47
|
+
status: _contractspec_lib_schema1436.EntityEnumField;
|
|
48
|
+
progress: _contractspec_lib_schema1436.EntityScalarField;
|
|
49
|
+
completedLessons: _contractspec_lib_schema1436.EntityScalarField;
|
|
50
|
+
totalLessons: _contractspec_lib_schema1436.EntityScalarField;
|
|
51
|
+
xpEarned: _contractspec_lib_schema1436.EntityScalarField;
|
|
52
|
+
startedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
53
|
+
completedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
54
|
+
lastAccessedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
55
|
+
certificateId: _contractspec_lib_schema1436.EntityScalarField;
|
|
56
|
+
metadata: _contractspec_lib_schema1436.EntityScalarField;
|
|
57
|
+
createdAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
58
|
+
updatedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
59
|
+
learner: _contractspec_lib_schema1436.EntityRelationField;
|
|
60
|
+
course: _contractspec_lib_schema1436.EntityRelationField;
|
|
61
61
|
}>;
|
|
62
62
|
/**
|
|
63
63
|
* LessonProgress entity - tracks individual lesson progress.
|
|
64
64
|
*/
|
|
65
|
-
declare const LessonProgressEntity:
|
|
66
|
-
id:
|
|
67
|
-
learnerId:
|
|
68
|
-
lessonId:
|
|
69
|
-
status:
|
|
70
|
-
progress:
|
|
71
|
-
score:
|
|
72
|
-
attempts:
|
|
73
|
-
bestScore:
|
|
74
|
-
timeSpent:
|
|
75
|
-
xpEarned:
|
|
76
|
-
startedAt:
|
|
77
|
-
completedAt:
|
|
78
|
-
lastAccessedAt:
|
|
79
|
-
bookmarks:
|
|
80
|
-
notes:
|
|
81
|
-
createdAt:
|
|
82
|
-
updatedAt:
|
|
83
|
-
learner:
|
|
84
|
-
lesson:
|
|
65
|
+
declare const LessonProgressEntity: _contractspec_lib_schema1436.EntitySpec<{
|
|
66
|
+
id: _contractspec_lib_schema1436.EntityScalarField;
|
|
67
|
+
learnerId: _contractspec_lib_schema1436.EntityScalarField;
|
|
68
|
+
lessonId: _contractspec_lib_schema1436.EntityScalarField;
|
|
69
|
+
status: _contractspec_lib_schema1436.EntityEnumField;
|
|
70
|
+
progress: _contractspec_lib_schema1436.EntityScalarField;
|
|
71
|
+
score: _contractspec_lib_schema1436.EntityScalarField;
|
|
72
|
+
attempts: _contractspec_lib_schema1436.EntityScalarField;
|
|
73
|
+
bestScore: _contractspec_lib_schema1436.EntityScalarField;
|
|
74
|
+
timeSpent: _contractspec_lib_schema1436.EntityScalarField;
|
|
75
|
+
xpEarned: _contractspec_lib_schema1436.EntityScalarField;
|
|
76
|
+
startedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
77
|
+
completedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
78
|
+
lastAccessedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
79
|
+
bookmarks: _contractspec_lib_schema1436.EntityScalarField;
|
|
80
|
+
notes: _contractspec_lib_schema1436.EntityScalarField;
|
|
81
|
+
createdAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
82
|
+
updatedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
83
|
+
learner: _contractspec_lib_schema1436.EntityRelationField;
|
|
84
|
+
lesson: _contractspec_lib_schema1436.EntityRelationField;
|
|
85
85
|
}>;
|
|
86
86
|
/**
|
|
87
87
|
* ModuleCompletion entity - tracks module completion.
|
|
88
88
|
*/
|
|
89
|
-
declare const ModuleCompletionEntity:
|
|
90
|
-
id:
|
|
91
|
-
learnerId:
|
|
92
|
-
moduleId:
|
|
93
|
-
score:
|
|
94
|
-
xpEarned:
|
|
95
|
-
timeSpent:
|
|
96
|
-
completedAt:
|
|
97
|
-
createdAt:
|
|
98
|
-
learner:
|
|
99
|
-
module:
|
|
89
|
+
declare const ModuleCompletionEntity: _contractspec_lib_schema1436.EntitySpec<{
|
|
90
|
+
id: _contractspec_lib_schema1436.EntityScalarField;
|
|
91
|
+
learnerId: _contractspec_lib_schema1436.EntityScalarField;
|
|
92
|
+
moduleId: _contractspec_lib_schema1436.EntityScalarField;
|
|
93
|
+
score: _contractspec_lib_schema1436.EntityScalarField;
|
|
94
|
+
xpEarned: _contractspec_lib_schema1436.EntityScalarField;
|
|
95
|
+
timeSpent: _contractspec_lib_schema1436.EntityScalarField;
|
|
96
|
+
completedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
97
|
+
createdAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
98
|
+
learner: _contractspec_lib_schema1436.EntityRelationField;
|
|
99
|
+
module: _contractspec_lib_schema1436.EntityRelationField;
|
|
100
100
|
}>;
|
|
101
101
|
/**
|
|
102
102
|
* Certificate entity - course completion certificate.
|
|
103
103
|
*/
|
|
104
|
-
declare const CertificateEntity:
|
|
105
|
-
id:
|
|
106
|
-
learnerId:
|
|
107
|
-
courseId:
|
|
108
|
-
enrollmentId:
|
|
109
|
-
certificateNumber:
|
|
110
|
-
title:
|
|
111
|
-
description:
|
|
112
|
-
score:
|
|
113
|
-
grade:
|
|
114
|
-
issuedAt:
|
|
115
|
-
validUntil:
|
|
116
|
-
verificationUrl:
|
|
117
|
-
credentialHash:
|
|
118
|
-
isRevoked:
|
|
119
|
-
revokedAt:
|
|
120
|
-
revokedReason:
|
|
121
|
-
metadata:
|
|
122
|
-
createdAt:
|
|
123
|
-
learner:
|
|
124
|
-
course:
|
|
104
|
+
declare const CertificateEntity: _contractspec_lib_schema1436.EntitySpec<{
|
|
105
|
+
id: _contractspec_lib_schema1436.EntityScalarField;
|
|
106
|
+
learnerId: _contractspec_lib_schema1436.EntityScalarField;
|
|
107
|
+
courseId: _contractspec_lib_schema1436.EntityScalarField;
|
|
108
|
+
enrollmentId: _contractspec_lib_schema1436.EntityScalarField;
|
|
109
|
+
certificateNumber: _contractspec_lib_schema1436.EntityScalarField;
|
|
110
|
+
title: _contractspec_lib_schema1436.EntityScalarField;
|
|
111
|
+
description: _contractspec_lib_schema1436.EntityScalarField;
|
|
112
|
+
score: _contractspec_lib_schema1436.EntityScalarField;
|
|
113
|
+
grade: _contractspec_lib_schema1436.EntityScalarField;
|
|
114
|
+
issuedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
115
|
+
validUntil: _contractspec_lib_schema1436.EntityScalarField;
|
|
116
|
+
verificationUrl: _contractspec_lib_schema1436.EntityScalarField;
|
|
117
|
+
credentialHash: _contractspec_lib_schema1436.EntityScalarField;
|
|
118
|
+
isRevoked: _contractspec_lib_schema1436.EntityScalarField;
|
|
119
|
+
revokedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
120
|
+
revokedReason: _contractspec_lib_schema1436.EntityScalarField;
|
|
121
|
+
metadata: _contractspec_lib_schema1436.EntityScalarField;
|
|
122
|
+
createdAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
123
|
+
learner: _contractspec_lib_schema1436.EntityRelationField;
|
|
124
|
+
course: _contractspec_lib_schema1436.EntityRelationField;
|
|
125
125
|
}>;
|
|
126
|
-
declare const learnerEntities: (
|
|
127
|
-
id:
|
|
128
|
-
userId:
|
|
129
|
-
displayName:
|
|
130
|
-
avatarUrl:
|
|
131
|
-
bio:
|
|
132
|
-
level:
|
|
133
|
-
totalXp:
|
|
134
|
-
currentStreak:
|
|
135
|
-
longestStreak:
|
|
136
|
-
lastActivityAt:
|
|
137
|
-
timezone:
|
|
138
|
-
dailyGoalXp:
|
|
139
|
-
reminderEnabled:
|
|
140
|
-
reminderTime:
|
|
141
|
-
orgId:
|
|
142
|
-
metadata:
|
|
143
|
-
createdAt:
|
|
144
|
-
updatedAt:
|
|
145
|
-
enrollments:
|
|
146
|
-
lessonProgress:
|
|
147
|
-
achievements:
|
|
148
|
-
decks:
|
|
149
|
-
profile:
|
|
150
|
-
}> |
|
|
151
|
-
id:
|
|
152
|
-
learnerId:
|
|
153
|
-
courseId:
|
|
154
|
-
status:
|
|
155
|
-
progress:
|
|
156
|
-
completedLessons:
|
|
157
|
-
totalLessons:
|
|
158
|
-
xpEarned:
|
|
159
|
-
startedAt:
|
|
160
|
-
completedAt:
|
|
161
|
-
lastAccessedAt:
|
|
162
|
-
certificateId:
|
|
163
|
-
metadata:
|
|
164
|
-
createdAt:
|
|
165
|
-
updatedAt:
|
|
166
|
-
learner:
|
|
167
|
-
course:
|
|
168
|
-
}> |
|
|
169
|
-
id:
|
|
170
|
-
learnerId:
|
|
171
|
-
lessonId:
|
|
172
|
-
status:
|
|
173
|
-
progress:
|
|
174
|
-
score:
|
|
175
|
-
attempts:
|
|
176
|
-
bestScore:
|
|
177
|
-
timeSpent:
|
|
178
|
-
xpEarned:
|
|
179
|
-
startedAt:
|
|
180
|
-
completedAt:
|
|
181
|
-
lastAccessedAt:
|
|
182
|
-
bookmarks:
|
|
183
|
-
notes:
|
|
184
|
-
createdAt:
|
|
185
|
-
updatedAt:
|
|
186
|
-
learner:
|
|
187
|
-
lesson:
|
|
188
|
-
}> |
|
|
189
|
-
id:
|
|
190
|
-
learnerId:
|
|
191
|
-
moduleId:
|
|
192
|
-
score:
|
|
193
|
-
xpEarned:
|
|
194
|
-
timeSpent:
|
|
195
|
-
completedAt:
|
|
196
|
-
createdAt:
|
|
197
|
-
learner:
|
|
198
|
-
module:
|
|
199
|
-
}> |
|
|
200
|
-
id:
|
|
201
|
-
learnerId:
|
|
202
|
-
courseId:
|
|
203
|
-
enrollmentId:
|
|
204
|
-
certificateNumber:
|
|
205
|
-
title:
|
|
206
|
-
description:
|
|
207
|
-
score:
|
|
208
|
-
grade:
|
|
209
|
-
issuedAt:
|
|
210
|
-
validUntil:
|
|
211
|
-
verificationUrl:
|
|
212
|
-
credentialHash:
|
|
213
|
-
isRevoked:
|
|
214
|
-
revokedAt:
|
|
215
|
-
revokedReason:
|
|
216
|
-
metadata:
|
|
217
|
-
createdAt:
|
|
218
|
-
learner:
|
|
219
|
-
course:
|
|
126
|
+
declare const learnerEntities: (_contractspec_lib_schema1436.EntitySpec<{
|
|
127
|
+
id: _contractspec_lib_schema1436.EntityScalarField;
|
|
128
|
+
userId: _contractspec_lib_schema1436.EntityScalarField;
|
|
129
|
+
displayName: _contractspec_lib_schema1436.EntityScalarField;
|
|
130
|
+
avatarUrl: _contractspec_lib_schema1436.EntityScalarField;
|
|
131
|
+
bio: _contractspec_lib_schema1436.EntityScalarField;
|
|
132
|
+
level: _contractspec_lib_schema1436.EntityScalarField;
|
|
133
|
+
totalXp: _contractspec_lib_schema1436.EntityScalarField;
|
|
134
|
+
currentStreak: _contractspec_lib_schema1436.EntityScalarField;
|
|
135
|
+
longestStreak: _contractspec_lib_schema1436.EntityScalarField;
|
|
136
|
+
lastActivityAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
137
|
+
timezone: _contractspec_lib_schema1436.EntityScalarField;
|
|
138
|
+
dailyGoalXp: _contractspec_lib_schema1436.EntityScalarField;
|
|
139
|
+
reminderEnabled: _contractspec_lib_schema1436.EntityScalarField;
|
|
140
|
+
reminderTime: _contractspec_lib_schema1436.EntityScalarField;
|
|
141
|
+
orgId: _contractspec_lib_schema1436.EntityScalarField;
|
|
142
|
+
metadata: _contractspec_lib_schema1436.EntityScalarField;
|
|
143
|
+
createdAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
144
|
+
updatedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
145
|
+
enrollments: _contractspec_lib_schema1436.EntityRelationField;
|
|
146
|
+
lessonProgress: _contractspec_lib_schema1436.EntityRelationField;
|
|
147
|
+
achievements: _contractspec_lib_schema1436.EntityRelationField;
|
|
148
|
+
decks: _contractspec_lib_schema1436.EntityRelationField;
|
|
149
|
+
profile: _contractspec_lib_schema1436.EntityRelationField;
|
|
150
|
+
}> | _contractspec_lib_schema1436.EntitySpec<{
|
|
151
|
+
id: _contractspec_lib_schema1436.EntityScalarField;
|
|
152
|
+
learnerId: _contractspec_lib_schema1436.EntityScalarField;
|
|
153
|
+
courseId: _contractspec_lib_schema1436.EntityScalarField;
|
|
154
|
+
status: _contractspec_lib_schema1436.EntityEnumField;
|
|
155
|
+
progress: _contractspec_lib_schema1436.EntityScalarField;
|
|
156
|
+
completedLessons: _contractspec_lib_schema1436.EntityScalarField;
|
|
157
|
+
totalLessons: _contractspec_lib_schema1436.EntityScalarField;
|
|
158
|
+
xpEarned: _contractspec_lib_schema1436.EntityScalarField;
|
|
159
|
+
startedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
160
|
+
completedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
161
|
+
lastAccessedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
162
|
+
certificateId: _contractspec_lib_schema1436.EntityScalarField;
|
|
163
|
+
metadata: _contractspec_lib_schema1436.EntityScalarField;
|
|
164
|
+
createdAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
165
|
+
updatedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
166
|
+
learner: _contractspec_lib_schema1436.EntityRelationField;
|
|
167
|
+
course: _contractspec_lib_schema1436.EntityRelationField;
|
|
168
|
+
}> | _contractspec_lib_schema1436.EntitySpec<{
|
|
169
|
+
id: _contractspec_lib_schema1436.EntityScalarField;
|
|
170
|
+
learnerId: _contractspec_lib_schema1436.EntityScalarField;
|
|
171
|
+
lessonId: _contractspec_lib_schema1436.EntityScalarField;
|
|
172
|
+
status: _contractspec_lib_schema1436.EntityEnumField;
|
|
173
|
+
progress: _contractspec_lib_schema1436.EntityScalarField;
|
|
174
|
+
score: _contractspec_lib_schema1436.EntityScalarField;
|
|
175
|
+
attempts: _contractspec_lib_schema1436.EntityScalarField;
|
|
176
|
+
bestScore: _contractspec_lib_schema1436.EntityScalarField;
|
|
177
|
+
timeSpent: _contractspec_lib_schema1436.EntityScalarField;
|
|
178
|
+
xpEarned: _contractspec_lib_schema1436.EntityScalarField;
|
|
179
|
+
startedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
180
|
+
completedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
181
|
+
lastAccessedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
182
|
+
bookmarks: _contractspec_lib_schema1436.EntityScalarField;
|
|
183
|
+
notes: _contractspec_lib_schema1436.EntityScalarField;
|
|
184
|
+
createdAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
185
|
+
updatedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
186
|
+
learner: _contractspec_lib_schema1436.EntityRelationField;
|
|
187
|
+
lesson: _contractspec_lib_schema1436.EntityRelationField;
|
|
188
|
+
}> | _contractspec_lib_schema1436.EntitySpec<{
|
|
189
|
+
id: _contractspec_lib_schema1436.EntityScalarField;
|
|
190
|
+
learnerId: _contractspec_lib_schema1436.EntityScalarField;
|
|
191
|
+
moduleId: _contractspec_lib_schema1436.EntityScalarField;
|
|
192
|
+
score: _contractspec_lib_schema1436.EntityScalarField;
|
|
193
|
+
xpEarned: _contractspec_lib_schema1436.EntityScalarField;
|
|
194
|
+
timeSpent: _contractspec_lib_schema1436.EntityScalarField;
|
|
195
|
+
completedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
196
|
+
createdAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
197
|
+
learner: _contractspec_lib_schema1436.EntityRelationField;
|
|
198
|
+
module: _contractspec_lib_schema1436.EntityRelationField;
|
|
199
|
+
}> | _contractspec_lib_schema1436.EntitySpec<{
|
|
200
|
+
id: _contractspec_lib_schema1436.EntityScalarField;
|
|
201
|
+
learnerId: _contractspec_lib_schema1436.EntityScalarField;
|
|
202
|
+
courseId: _contractspec_lib_schema1436.EntityScalarField;
|
|
203
|
+
enrollmentId: _contractspec_lib_schema1436.EntityScalarField;
|
|
204
|
+
certificateNumber: _contractspec_lib_schema1436.EntityScalarField;
|
|
205
|
+
title: _contractspec_lib_schema1436.EntityScalarField;
|
|
206
|
+
description: _contractspec_lib_schema1436.EntityScalarField;
|
|
207
|
+
score: _contractspec_lib_schema1436.EntityScalarField;
|
|
208
|
+
grade: _contractspec_lib_schema1436.EntityScalarField;
|
|
209
|
+
issuedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
210
|
+
validUntil: _contractspec_lib_schema1436.EntityScalarField;
|
|
211
|
+
verificationUrl: _contractspec_lib_schema1436.EntityScalarField;
|
|
212
|
+
credentialHash: _contractspec_lib_schema1436.EntityScalarField;
|
|
213
|
+
isRevoked: _contractspec_lib_schema1436.EntityScalarField;
|
|
214
|
+
revokedAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
215
|
+
revokedReason: _contractspec_lib_schema1436.EntityScalarField;
|
|
216
|
+
metadata: _contractspec_lib_schema1436.EntityScalarField;
|
|
217
|
+
createdAt: _contractspec_lib_schema1436.EntityScalarField;
|
|
218
|
+
learner: _contractspec_lib_schema1436.EntityRelationField;
|
|
219
|
+
course: _contractspec_lib_schema1436.EntityRelationField;
|
|
220
220
|
}>)[];
|
|
221
|
-
declare const learnerEnums:
|
|
221
|
+
declare const learnerEnums: _contractspec_lib_schema1436.EntityEnumDef[];
|
|
222
222
|
//#endregion
|
|
223
223
|
export { CertificateEntity, EnrollmentEntity, EnrollmentStatusEnum, LearnerEntity, LessonProgressEntity, ModuleCompletionEntity, ProgressStatusEnum, learnerEntities, learnerEnums };
|
|
224
224
|
//# sourceMappingURL=learner.d.ts.map
|
|
@@ -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.48.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.48.0",
|
|
29
|
+
"@contractspec/lib.contracts": "1.48.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.48.0",
|
|
34
|
+
"@contractspec/tool.tsdown": "1.48.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"
|