@contractspec/module.learning-journey 1.57.0 → 1.59.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.
Files changed (140) hide show
  1. package/dist/browser/contracts/index.js +578 -0
  2. package/dist/browser/contracts/models.js +193 -0
  3. package/dist/browser/contracts/onboarding.js +417 -0
  4. package/dist/browser/contracts/operations.js +326 -0
  5. package/dist/browser/contracts/shared.js +5 -0
  6. package/dist/browser/docs/index.js +124 -0
  7. package/dist/browser/docs/learning-journey.docblock.js +124 -0
  8. package/dist/browser/engines/index.js +526 -0
  9. package/dist/browser/engines/srs.js +198 -0
  10. package/dist/browser/engines/streak.js +159 -0
  11. package/dist/browser/engines/xp.js +171 -0
  12. package/dist/browser/entities/ai.js +343 -0
  13. package/dist/browser/entities/course.js +276 -0
  14. package/dist/browser/entities/flashcard.js +222 -0
  15. package/dist/browser/entities/gamification.js +340 -0
  16. package/dist/browser/entities/index.js +2136 -0
  17. package/dist/browser/entities/learner.js +329 -0
  18. package/dist/browser/entities/onboarding.js +301 -0
  19. package/dist/browser/entities/quiz.js +304 -0
  20. package/dist/browser/events.js +423 -0
  21. package/dist/browser/index.js +3833 -0
  22. package/dist/browser/learning-journey.capability.js +40 -0
  23. package/dist/browser/learning-journey.feature.js +56 -0
  24. package/dist/browser/track-spec.js +0 -0
  25. package/dist/contracts/index.d.ts +5 -5
  26. package/dist/contracts/index.d.ts.map +1 -0
  27. package/dist/contracts/index.js +578 -5
  28. package/dist/contracts/models.d.ts +426 -431
  29. package/dist/contracts/models.d.ts.map +1 -1
  30. package/dist/contracts/models.js +178 -372
  31. package/dist/contracts/onboarding.d.ts +621 -627
  32. package/dist/contracts/onboarding.d.ts.map +1 -1
  33. package/dist/contracts/onboarding.js +404 -388
  34. package/dist/contracts/operations.d.ts +243 -249
  35. package/dist/contracts/operations.d.ts.map +1 -1
  36. package/dist/contracts/operations.js +324 -148
  37. package/dist/contracts/shared.d.ts +1 -4
  38. package/dist/contracts/shared.d.ts.map +1 -1
  39. package/dist/contracts/shared.js +6 -6
  40. package/dist/docs/index.d.ts +2 -1
  41. package/dist/docs/index.d.ts.map +1 -0
  42. package/dist/docs/index.js +125 -1
  43. package/dist/docs/learning-journey.docblock.d.ts +2 -1
  44. package/dist/docs/learning-journey.docblock.d.ts.map +1 -0
  45. package/dist/docs/learning-journey.docblock.js +47 -58
  46. package/dist/engines/index.d.ts +4 -4
  47. package/dist/engines/index.d.ts.map +1 -0
  48. package/dist/engines/index.js +526 -4
  49. package/dist/engines/srs.d.ts +89 -92
  50. package/dist/engines/srs.d.ts.map +1 -1
  51. package/dist/engines/srs.js +197 -217
  52. package/dist/engines/streak.d.ts +84 -87
  53. package/dist/engines/streak.d.ts.map +1 -1
  54. package/dist/engines/streak.js +158 -192
  55. package/dist/engines/xp.d.ts +80 -83
  56. package/dist/engines/xp.d.ts.map +1 -1
  57. package/dist/engines/xp.js +170 -211
  58. package/dist/entities/ai.d.ts +199 -204
  59. package/dist/entities/ai.d.ts.map +1 -1
  60. package/dist/entities/ai.js +336 -368
  61. package/dist/entities/course.d.ts +149 -154
  62. package/dist/entities/course.d.ts.map +1 -1
  63. package/dist/entities/course.js +267 -306
  64. package/dist/entities/flashcard.d.ts +144 -149
  65. package/dist/entities/flashcard.d.ts.map +1 -1
  66. package/dist/entities/flashcard.js +217 -243
  67. package/dist/entities/gamification.d.ts +197 -202
  68. package/dist/entities/gamification.d.ts.map +1 -1
  69. package/dist/entities/gamification.js +331 -382
  70. package/dist/entities/index.d.ts +613 -618
  71. package/dist/entities/index.d.ts.map +1 -1
  72. package/dist/entities/index.js +2135 -43
  73. package/dist/entities/learner.d.ts +191 -196
  74. package/dist/entities/learner.d.ts.map +1 -1
  75. package/dist/entities/learner.js +322 -357
  76. package/dist/entities/onboarding.d.ts +164 -169
  77. package/dist/entities/onboarding.d.ts.map +1 -1
  78. package/dist/entities/onboarding.js +296 -301
  79. package/dist/entities/quiz.d.ts +184 -189
  80. package/dist/entities/quiz.d.ts.map +1 -1
  81. package/dist/entities/quiz.js +296 -361
  82. package/dist/events.d.ts +608 -614
  83. package/dist/events.d.ts.map +1 -1
  84. package/dist/events.js +421 -687
  85. package/dist/index.d.ts +8 -20
  86. package/dist/index.d.ts.map +1 -0
  87. package/dist/index.js +3834 -22
  88. package/dist/learning-journey.capability.d.ts +3 -8
  89. package/dist/learning-journey.capability.d.ts.map +1 -1
  90. package/dist/learning-journey.capability.js +41 -46
  91. package/dist/learning-journey.feature.d.ts +1 -6
  92. package/dist/learning-journey.feature.d.ts.map +1 -1
  93. package/dist/learning-journey.feature.js +55 -155
  94. package/dist/node/contracts/index.js +578 -0
  95. package/dist/node/contracts/models.js +193 -0
  96. package/dist/node/contracts/onboarding.js +417 -0
  97. package/dist/node/contracts/operations.js +326 -0
  98. package/dist/node/contracts/shared.js +5 -0
  99. package/dist/node/docs/index.js +124 -0
  100. package/dist/node/docs/learning-journey.docblock.js +124 -0
  101. package/dist/node/engines/index.js +526 -0
  102. package/dist/node/engines/srs.js +198 -0
  103. package/dist/node/engines/streak.js +159 -0
  104. package/dist/node/engines/xp.js +171 -0
  105. package/dist/node/entities/ai.js +343 -0
  106. package/dist/node/entities/course.js +276 -0
  107. package/dist/node/entities/flashcard.js +222 -0
  108. package/dist/node/entities/gamification.js +340 -0
  109. package/dist/node/entities/index.js +2136 -0
  110. package/dist/node/entities/learner.js +329 -0
  111. package/dist/node/entities/onboarding.js +301 -0
  112. package/dist/node/entities/quiz.js +304 -0
  113. package/dist/node/events.js +423 -0
  114. package/dist/node/index.js +3833 -0
  115. package/dist/node/learning-journey.capability.js +40 -0
  116. package/dist/node/learning-journey.feature.js +56 -0
  117. package/dist/node/track-spec.js +0 -0
  118. package/dist/track-spec.d.ts +115 -118
  119. package/dist/track-spec.d.ts.map +1 -1
  120. package/dist/track-spec.js +1 -0
  121. package/package.json +237 -60
  122. package/dist/contracts/models.js.map +0 -1
  123. package/dist/contracts/onboarding.js.map +0 -1
  124. package/dist/contracts/operations.js.map +0 -1
  125. package/dist/contracts/shared.js.map +0 -1
  126. package/dist/docs/learning-journey.docblock.js.map +0 -1
  127. package/dist/engines/srs.js.map +0 -1
  128. package/dist/engines/streak.js.map +0 -1
  129. package/dist/engines/xp.js.map +0 -1
  130. package/dist/entities/ai.js.map +0 -1
  131. package/dist/entities/course.js.map +0 -1
  132. package/dist/entities/flashcard.js.map +0 -1
  133. package/dist/entities/gamification.js.map +0 -1
  134. package/dist/entities/index.js.map +0 -1
  135. package/dist/entities/learner.js.map +0 -1
  136. package/dist/entities/onboarding.js.map +0 -1
  137. package/dist/entities/quiz.js.map +0 -1
  138. package/dist/events.js.map +0 -1
  139. package/dist/learning-journey.capability.js.map +0 -1
  140. package/dist/learning-journey.feature.js.map +0 -1
@@ -1,451 +1,446 @@
1
- import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
2
-
3
- //#region src/contracts/models.d.ts
4
- declare const CourseModel: _contractspec_lib_schema0.SchemaModel<{
5
- id: {
6
- type: _contractspec_lib_schema0.FieldType<string, string>;
7
- isOptional: false;
8
- };
9
- title: {
10
- type: _contractspec_lib_schema0.FieldType<string, string>;
11
- isOptional: false;
12
- };
13
- slug: {
14
- type: _contractspec_lib_schema0.FieldType<string, string>;
15
- isOptional: false;
16
- };
17
- description: {
18
- type: _contractspec_lib_schema0.FieldType<string, string>;
19
- isOptional: true;
20
- };
21
- difficulty: {
22
- type: _contractspec_lib_schema0.FieldType<string, string>;
23
- isOptional: false;
24
- };
25
- status: {
26
- type: _contractspec_lib_schema0.FieldType<string, string>;
27
- isOptional: false;
28
- };
29
- estimatedDuration: {
30
- type: _contractspec_lib_schema0.FieldType<number, number>;
31
- isOptional: true;
32
- };
33
- thumbnailUrl: {
34
- type: _contractspec_lib_schema0.FieldType<string, string>;
35
- isOptional: true;
36
- };
37
- createdAt: {
38
- type: _contractspec_lib_schema0.FieldType<Date, string>;
39
- isOptional: false;
40
- };
41
- }>;
42
- declare const LearnerModel: _contractspec_lib_schema0.SchemaModel<{
43
- id: {
44
- type: _contractspec_lib_schema0.FieldType<string, string>;
45
- isOptional: false;
46
- };
47
- userId: {
48
- type: _contractspec_lib_schema0.FieldType<string, string>;
49
- isOptional: false;
50
- };
51
- displayName: {
52
- type: _contractspec_lib_schema0.FieldType<string, string>;
53
- isOptional: true;
54
- };
55
- level: {
56
- type: _contractspec_lib_schema0.FieldType<number, number>;
57
- isOptional: false;
58
- };
59
- totalXp: {
60
- type: _contractspec_lib_schema0.FieldType<number, number>;
61
- isOptional: false;
62
- };
63
- currentStreak: {
64
- type: _contractspec_lib_schema0.FieldType<number, number>;
65
- isOptional: false;
66
- };
67
- longestStreak: {
68
- type: _contractspec_lib_schema0.FieldType<number, number>;
69
- isOptional: false;
70
- };
71
- createdAt: {
72
- type: _contractspec_lib_schema0.FieldType<Date, string>;
73
- isOptional: false;
74
- };
75
- }>;
76
- declare const EnrollmentModel: _contractspec_lib_schema0.SchemaModel<{
77
- id: {
78
- type: _contractspec_lib_schema0.FieldType<string, string>;
79
- isOptional: false;
80
- };
81
- learnerId: {
82
- type: _contractspec_lib_schema0.FieldType<string, string>;
83
- isOptional: false;
84
- };
85
- courseId: {
86
- type: _contractspec_lib_schema0.FieldType<string, string>;
87
- isOptional: false;
88
- };
89
- status: {
90
- type: _contractspec_lib_schema0.FieldType<string, string>;
91
- isOptional: false;
92
- };
93
- progress: {
94
- type: _contractspec_lib_schema0.FieldType<number, number>;
95
- isOptional: false;
96
- };
97
- startedAt: {
98
- type: _contractspec_lib_schema0.FieldType<Date, string>;
99
- isOptional: true;
100
- };
101
- completedAt: {
102
- type: _contractspec_lib_schema0.FieldType<Date, string>;
103
- isOptional: true;
104
- };
105
- }>;
106
- declare const ProgressModel: _contractspec_lib_schema0.SchemaModel<{
107
- id: {
108
- type: _contractspec_lib_schema0.FieldType<string, string>;
109
- isOptional: false;
110
- };
111
- learnerId: {
112
- type: _contractspec_lib_schema0.FieldType<string, string>;
113
- isOptional: false;
114
- };
115
- lessonId: {
116
- type: _contractspec_lib_schema0.FieldType<string, string>;
117
- isOptional: false;
118
- };
119
- status: {
120
- type: _contractspec_lib_schema0.FieldType<string, string>;
121
- isOptional: false;
122
- };
123
- progress: {
124
- type: _contractspec_lib_schema0.FieldType<number, number>;
125
- isOptional: false;
126
- };
127
- score: {
128
- type: _contractspec_lib_schema0.FieldType<number, number>;
129
- isOptional: true;
130
- };
131
- timeSpent: {
132
- type: _contractspec_lib_schema0.FieldType<number, number>;
133
- isOptional: false;
134
- };
135
- completedAt: {
136
- type: _contractspec_lib_schema0.FieldType<Date, string>;
137
- isOptional: true;
138
- };
139
- }>;
140
- declare const DeckModel: _contractspec_lib_schema0.SchemaModel<{
141
- id: {
142
- type: _contractspec_lib_schema0.FieldType<string, string>;
143
- isOptional: false;
144
- };
145
- title: {
146
- type: _contractspec_lib_schema0.FieldType<string, string>;
147
- isOptional: false;
148
- };
149
- description: {
150
- type: _contractspec_lib_schema0.FieldType<string, string>;
151
- isOptional: true;
152
- };
153
- cardCount: {
154
- type: _contractspec_lib_schema0.FieldType<number, number>;
155
- isOptional: false;
156
- };
157
- isPublic: {
158
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
159
- isOptional: false;
160
- };
161
- createdAt: {
162
- type: _contractspec_lib_schema0.FieldType<Date, string>;
163
- isOptional: false;
164
- };
165
- }>;
166
- declare const CardModel: _contractspec_lib_schema0.SchemaModel<{
167
- id: {
168
- type: _contractspec_lib_schema0.FieldType<string, string>;
169
- isOptional: false;
170
- };
171
- deckId: {
172
- type: _contractspec_lib_schema0.FieldType<string, string>;
173
- isOptional: false;
174
- };
175
- front: {
176
- type: _contractspec_lib_schema0.FieldType<string, string>;
177
- isOptional: false;
178
- };
179
- back: {
180
- type: _contractspec_lib_schema0.FieldType<string, string>;
181
- isOptional: false;
182
- };
183
- hints: {
184
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
185
- isOptional: true;
186
- };
187
- isDue: {
188
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
189
- isOptional: false;
190
- };
191
- nextReviewAt: {
192
- type: _contractspec_lib_schema0.FieldType<Date, string>;
193
- isOptional: true;
194
- };
1
+ export declare const CourseModel: import("@contractspec/lib.schema").SchemaModel<{
2
+ id: {
3
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
4
+ isOptional: false;
5
+ };
6
+ title: {
7
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
8
+ isOptional: false;
9
+ };
10
+ slug: {
11
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
12
+ isOptional: false;
13
+ };
14
+ description: {
15
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
16
+ isOptional: true;
17
+ };
18
+ difficulty: {
19
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
20
+ isOptional: false;
21
+ };
22
+ status: {
23
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
24
+ isOptional: false;
25
+ };
26
+ estimatedDuration: {
27
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
28
+ isOptional: true;
29
+ };
30
+ thumbnailUrl: {
31
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
32
+ isOptional: true;
33
+ };
34
+ createdAt: {
35
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
36
+ isOptional: false;
37
+ };
195
38
  }>;
196
- declare const AchievementModel: _contractspec_lib_schema0.SchemaModel<{
197
- id: {
198
- type: _contractspec_lib_schema0.FieldType<string, string>;
199
- isOptional: false;
200
- };
201
- key: {
202
- type: _contractspec_lib_schema0.FieldType<string, string>;
203
- isOptional: false;
204
- };
205
- name: {
206
- type: _contractspec_lib_schema0.FieldType<string, string>;
207
- isOptional: false;
208
- };
209
- description: {
210
- type: _contractspec_lib_schema0.FieldType<string, string>;
211
- isOptional: false;
212
- };
213
- icon: {
214
- type: _contractspec_lib_schema0.FieldType<string, string>;
215
- isOptional: true;
216
- };
217
- xpReward: {
218
- type: _contractspec_lib_schema0.FieldType<number, number>;
219
- isOptional: false;
220
- };
221
- unlockedAt: {
222
- type: _contractspec_lib_schema0.FieldType<Date, string>;
223
- isOptional: true;
224
- };
39
+ export declare const LearnerModel: import("@contractspec/lib.schema").SchemaModel<{
40
+ id: {
41
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
42
+ isOptional: false;
43
+ };
44
+ userId: {
45
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
46
+ isOptional: false;
47
+ };
48
+ displayName: {
49
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
50
+ isOptional: true;
51
+ };
52
+ level: {
53
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
54
+ isOptional: false;
55
+ };
56
+ totalXp: {
57
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
58
+ isOptional: false;
59
+ };
60
+ currentStreak: {
61
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
62
+ isOptional: false;
63
+ };
64
+ longestStreak: {
65
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
66
+ isOptional: false;
67
+ };
68
+ createdAt: {
69
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
70
+ isOptional: false;
71
+ };
225
72
  }>;
226
- declare const EnrollInCourseInput: _contractspec_lib_schema0.SchemaModel<{
227
- courseId: {
228
- type: _contractspec_lib_schema0.FieldType<string, string>;
229
- isOptional: false;
230
- };
73
+ export declare const EnrollmentModel: import("@contractspec/lib.schema").SchemaModel<{
74
+ id: {
75
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
76
+ isOptional: false;
77
+ };
78
+ learnerId: {
79
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
80
+ isOptional: false;
81
+ };
82
+ courseId: {
83
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
84
+ isOptional: false;
85
+ };
86
+ status: {
87
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
88
+ isOptional: false;
89
+ };
90
+ progress: {
91
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
92
+ isOptional: false;
93
+ };
94
+ startedAt: {
95
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
96
+ isOptional: true;
97
+ };
98
+ completedAt: {
99
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
100
+ isOptional: true;
101
+ };
231
102
  }>;
232
- declare const CompleteLessonInput: _contractspec_lib_schema0.SchemaModel<{
233
- lessonId: {
234
- type: _contractspec_lib_schema0.FieldType<string, string>;
235
- isOptional: false;
236
- };
237
- score: {
238
- type: _contractspec_lib_schema0.FieldType<number, number>;
239
- isOptional: true;
240
- };
241
- timeSpent: {
242
- type: _contractspec_lib_schema0.FieldType<number, number>;
243
- isOptional: false;
244
- };
103
+ export declare const ProgressModel: import("@contractspec/lib.schema").SchemaModel<{
104
+ id: {
105
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
106
+ isOptional: false;
107
+ };
108
+ learnerId: {
109
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
110
+ isOptional: false;
111
+ };
112
+ lessonId: {
113
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
114
+ isOptional: false;
115
+ };
116
+ status: {
117
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
118
+ isOptional: false;
119
+ };
120
+ progress: {
121
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
122
+ isOptional: false;
123
+ };
124
+ score: {
125
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
126
+ isOptional: true;
127
+ };
128
+ timeSpent: {
129
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
130
+ isOptional: false;
131
+ };
132
+ completedAt: {
133
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
134
+ isOptional: true;
135
+ };
245
136
  }>;
246
- declare const SubmitCardReviewInput: _contractspec_lib_schema0.SchemaModel<{
247
- cardId: {
248
- type: _contractspec_lib_schema0.FieldType<string, string>;
249
- isOptional: false;
250
- };
251
- rating: {
252
- type: _contractspec_lib_schema0.FieldType<string, string>;
253
- isOptional: false;
254
- };
255
- responseTimeMs: {
256
- type: _contractspec_lib_schema0.FieldType<number, number>;
257
- isOptional: true;
258
- };
137
+ export declare const DeckModel: import("@contractspec/lib.schema").SchemaModel<{
138
+ id: {
139
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
140
+ isOptional: false;
141
+ };
142
+ title: {
143
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
144
+ isOptional: false;
145
+ };
146
+ description: {
147
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
148
+ isOptional: true;
149
+ };
150
+ cardCount: {
151
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
152
+ isOptional: false;
153
+ };
154
+ isPublic: {
155
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
156
+ isOptional: false;
157
+ };
158
+ createdAt: {
159
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
160
+ isOptional: false;
161
+ };
259
162
  }>;
260
- declare const GetDueCardsInput: _contractspec_lib_schema0.SchemaModel<{
261
- deckId: {
262
- type: _contractspec_lib_schema0.FieldType<string, string>;
263
- isOptional: true;
264
- };
265
- limit: {
266
- type: _contractspec_lib_schema0.FieldType<number, number>;
267
- isOptional: true;
268
- };
163
+ export declare const CardModel: import("@contractspec/lib.schema").SchemaModel<{
164
+ id: {
165
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
166
+ isOptional: false;
167
+ };
168
+ deckId: {
169
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
170
+ isOptional: false;
171
+ };
172
+ front: {
173
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
174
+ isOptional: false;
175
+ };
176
+ back: {
177
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
178
+ isOptional: false;
179
+ };
180
+ hints: {
181
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
182
+ isOptional: true;
183
+ };
184
+ isDue: {
185
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
186
+ isOptional: false;
187
+ };
188
+ nextReviewAt: {
189
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
190
+ isOptional: true;
191
+ };
269
192
  }>;
270
- declare const GetDueCardsOutput: _contractspec_lib_schema0.SchemaModel<{
271
- cards: {
272
- type: _contractspec_lib_schema0.SchemaModel<{
273
- id: {
274
- type: _contractspec_lib_schema0.FieldType<string, string>;
275
- isOptional: false;
276
- };
277
- deckId: {
278
- type: _contractspec_lib_schema0.FieldType<string, string>;
279
- isOptional: false;
280
- };
281
- front: {
282
- type: _contractspec_lib_schema0.FieldType<string, string>;
283
- isOptional: false;
284
- };
285
- back: {
286
- type: _contractspec_lib_schema0.FieldType<string, string>;
287
- isOptional: false;
288
- };
289
- hints: {
290
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
193
+ export declare const AchievementModel: import("@contractspec/lib.schema").SchemaModel<{
194
+ id: {
195
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
196
+ isOptional: false;
197
+ };
198
+ key: {
199
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
200
+ isOptional: false;
201
+ };
202
+ name: {
203
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
204
+ isOptional: false;
205
+ };
206
+ description: {
207
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
208
+ isOptional: false;
209
+ };
210
+ icon: {
211
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
291
212
  isOptional: true;
292
- };
293
- isDue: {
294
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
213
+ };
214
+ xpReward: {
215
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
295
216
  isOptional: false;
296
- };
297
- nextReviewAt: {
298
- type: _contractspec_lib_schema0.FieldType<Date, string>;
217
+ };
218
+ unlockedAt: {
219
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
299
220
  isOptional: true;
300
- };
301
- }>;
302
- isArray: true;
303
- isOptional: false;
304
- };
305
- total: {
306
- type: _contractspec_lib_schema0.FieldType<number, number>;
307
- isOptional: false;
308
- };
221
+ };
309
222
  }>;
310
- declare const GetLearnerDashboardInput: _contractspec_lib_schema0.SchemaModel<{
311
- learnerId: {
312
- type: _contractspec_lib_schema0.FieldType<string, string>;
313
- isOptional: true;
314
- };
223
+ export declare const EnrollInCourseInput: import("@contractspec/lib.schema").SchemaModel<{
224
+ courseId: {
225
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
226
+ isOptional: false;
227
+ };
315
228
  }>;
316
- declare const LearnerDashboardModel: _contractspec_lib_schema0.SchemaModel<{
317
- learner: {
318
- type: _contractspec_lib_schema0.SchemaModel<{
319
- id: {
320
- type: _contractspec_lib_schema0.FieldType<string, string>;
321
- isOptional: false;
322
- };
323
- userId: {
324
- type: _contractspec_lib_schema0.FieldType<string, string>;
325
- isOptional: false;
326
- };
327
- displayName: {
328
- type: _contractspec_lib_schema0.FieldType<string, string>;
229
+ export declare const CompleteLessonInput: import("@contractspec/lib.schema").SchemaModel<{
230
+ lessonId: {
231
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
232
+ isOptional: false;
233
+ };
234
+ score: {
235
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
329
236
  isOptional: true;
330
- };
331
- level: {
332
- type: _contractspec_lib_schema0.FieldType<number, number>;
333
- isOptional: false;
334
- };
335
- totalXp: {
336
- type: _contractspec_lib_schema0.FieldType<number, number>;
337
- isOptional: false;
338
- };
339
- currentStreak: {
340
- type: _contractspec_lib_schema0.FieldType<number, number>;
341
- isOptional: false;
342
- };
343
- longestStreak: {
344
- type: _contractspec_lib_schema0.FieldType<number, number>;
345
- isOptional: false;
346
- };
347
- createdAt: {
348
- type: _contractspec_lib_schema0.FieldType<Date, string>;
349
- isOptional: false;
350
- };
351
- }>;
352
- isOptional: false;
353
- };
354
- currentStreak: {
355
- type: _contractspec_lib_schema0.FieldType<number, number>;
356
- isOptional: false;
357
- };
358
- dailyXpGoal: {
359
- type: _contractspec_lib_schema0.FieldType<number, number>;
360
- isOptional: false;
361
- };
362
- dailyXpProgress: {
363
- type: _contractspec_lib_schema0.FieldType<number, number>;
364
- isOptional: false;
365
- };
366
- activeEnrollments: {
367
- type: _contractspec_lib_schema0.SchemaModel<{
368
- id: {
369
- type: _contractspec_lib_schema0.FieldType<string, string>;
370
- isOptional: false;
371
- };
372
- learnerId: {
373
- type: _contractspec_lib_schema0.FieldType<string, string>;
374
- isOptional: false;
375
- };
376
- courseId: {
377
- type: _contractspec_lib_schema0.FieldType<string, string>;
378
- isOptional: false;
379
- };
380
- status: {
381
- type: _contractspec_lib_schema0.FieldType<string, string>;
382
- isOptional: false;
383
- };
384
- progress: {
385
- type: _contractspec_lib_schema0.FieldType<number, number>;
386
- isOptional: false;
387
- };
388
- startedAt: {
389
- type: _contractspec_lib_schema0.FieldType<Date, string>;
237
+ };
238
+ timeSpent: {
239
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
240
+ isOptional: false;
241
+ };
242
+ }>;
243
+ export declare const SubmitCardReviewInput: import("@contractspec/lib.schema").SchemaModel<{
244
+ cardId: {
245
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
246
+ isOptional: false;
247
+ };
248
+ rating: {
249
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
250
+ isOptional: false;
251
+ };
252
+ responseTimeMs: {
253
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
390
254
  isOptional: true;
391
- };
392
- completedAt: {
393
- type: _contractspec_lib_schema0.FieldType<Date, string>;
255
+ };
256
+ }>;
257
+ export declare const GetDueCardsInput: import("@contractspec/lib.schema").SchemaModel<{
258
+ deckId: {
259
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
394
260
  isOptional: true;
395
- };
396
- }>;
397
- isArray: true;
398
- isOptional: false;
399
- };
400
- recentAchievements: {
401
- type: _contractspec_lib_schema0.SchemaModel<{
402
- id: {
403
- type: _contractspec_lib_schema0.FieldType<string, string>;
404
- isOptional: false;
405
- };
406
- key: {
407
- type: _contractspec_lib_schema0.FieldType<string, string>;
408
- isOptional: false;
409
- };
410
- name: {
411
- type: _contractspec_lib_schema0.FieldType<string, string>;
412
- isOptional: false;
413
- };
414
- description: {
415
- type: _contractspec_lib_schema0.FieldType<string, string>;
416
- isOptional: false;
417
- };
418
- icon: {
419
- type: _contractspec_lib_schema0.FieldType<string, string>;
261
+ };
262
+ limit: {
263
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
420
264
  isOptional: true;
421
- };
422
- xpReward: {
423
- type: _contractspec_lib_schema0.FieldType<number, number>;
265
+ };
266
+ }>;
267
+ export declare const GetDueCardsOutput: import("@contractspec/lib.schema").SchemaModel<{
268
+ cards: {
269
+ type: import("@contractspec/lib.schema").SchemaModel<{
270
+ id: {
271
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
272
+ isOptional: false;
273
+ };
274
+ deckId: {
275
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
276
+ isOptional: false;
277
+ };
278
+ front: {
279
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
280
+ isOptional: false;
281
+ };
282
+ back: {
283
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
284
+ isOptional: false;
285
+ };
286
+ hints: {
287
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
288
+ isOptional: true;
289
+ };
290
+ isDue: {
291
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
292
+ isOptional: false;
293
+ };
294
+ nextReviewAt: {
295
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
296
+ isOptional: true;
297
+ };
298
+ }>;
299
+ isArray: true;
300
+ isOptional: false;
301
+ };
302
+ total: {
303
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
424
304
  isOptional: false;
425
- };
426
- unlockedAt: {
427
- type: _contractspec_lib_schema0.FieldType<Date, string>;
305
+ };
306
+ }>;
307
+ export declare const GetLearnerDashboardInput: import("@contractspec/lib.schema").SchemaModel<{
308
+ learnerId: {
309
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
428
310
  isOptional: true;
429
- };
430
- }>;
431
- isArray: true;
432
- isOptional: false;
433
- };
434
- dueCardCount: {
435
- type: _contractspec_lib_schema0.FieldType<number, number>;
436
- isOptional: false;
437
- };
311
+ };
312
+ }>;
313
+ export declare const LearnerDashboardModel: import("@contractspec/lib.schema").SchemaModel<{
314
+ learner: {
315
+ type: import("@contractspec/lib.schema").SchemaModel<{
316
+ id: {
317
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
318
+ isOptional: false;
319
+ };
320
+ userId: {
321
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
322
+ isOptional: false;
323
+ };
324
+ displayName: {
325
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
326
+ isOptional: true;
327
+ };
328
+ level: {
329
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
330
+ isOptional: false;
331
+ };
332
+ totalXp: {
333
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
334
+ isOptional: false;
335
+ };
336
+ currentStreak: {
337
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
338
+ isOptional: false;
339
+ };
340
+ longestStreak: {
341
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
342
+ isOptional: false;
343
+ };
344
+ createdAt: {
345
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
346
+ isOptional: false;
347
+ };
348
+ }>;
349
+ isOptional: false;
350
+ };
351
+ currentStreak: {
352
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
353
+ isOptional: false;
354
+ };
355
+ dailyXpGoal: {
356
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
357
+ isOptional: false;
358
+ };
359
+ dailyXpProgress: {
360
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
361
+ isOptional: false;
362
+ };
363
+ activeEnrollments: {
364
+ type: import("@contractspec/lib.schema").SchemaModel<{
365
+ id: {
366
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
367
+ isOptional: false;
368
+ };
369
+ learnerId: {
370
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
371
+ isOptional: false;
372
+ };
373
+ courseId: {
374
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
375
+ isOptional: false;
376
+ };
377
+ status: {
378
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
379
+ isOptional: false;
380
+ };
381
+ progress: {
382
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
383
+ isOptional: false;
384
+ };
385
+ startedAt: {
386
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
387
+ isOptional: true;
388
+ };
389
+ completedAt: {
390
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
391
+ isOptional: true;
392
+ };
393
+ }>;
394
+ isArray: true;
395
+ isOptional: false;
396
+ };
397
+ recentAchievements: {
398
+ type: import("@contractspec/lib.schema").SchemaModel<{
399
+ id: {
400
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
401
+ isOptional: false;
402
+ };
403
+ key: {
404
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
405
+ isOptional: false;
406
+ };
407
+ name: {
408
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
409
+ isOptional: false;
410
+ };
411
+ description: {
412
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
413
+ isOptional: false;
414
+ };
415
+ icon: {
416
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
417
+ isOptional: true;
418
+ };
419
+ xpReward: {
420
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
421
+ isOptional: false;
422
+ };
423
+ unlockedAt: {
424
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
425
+ isOptional: true;
426
+ };
427
+ }>;
428
+ isArray: true;
429
+ isOptional: false;
430
+ };
431
+ dueCardCount: {
432
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
433
+ isOptional: false;
434
+ };
438
435
  }>;
439
- declare const SuccessOutput: _contractspec_lib_schema0.SchemaModel<{
440
- success: {
441
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
442
- isOptional: false;
443
- };
444
- xpEarned: {
445
- type: _contractspec_lib_schema0.FieldType<number, number>;
446
- isOptional: true;
447
- };
436
+ export declare const SuccessOutput: import("@contractspec/lib.schema").SchemaModel<{
437
+ success: {
438
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
439
+ isOptional: false;
440
+ };
441
+ xpEarned: {
442
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
443
+ isOptional: true;
444
+ };
448
445
  }>;
449
- //#endregion
450
- export { AchievementModel, CardModel, CompleteLessonInput, CourseModel, DeckModel, EnrollInCourseInput, EnrollmentModel, GetDueCardsInput, GetDueCardsOutput, GetLearnerDashboardInput, LearnerDashboardModel, LearnerModel, ProgressModel, SubmitCardReviewInput, SuccessOutput };
451
446
  //# sourceMappingURL=models.d.ts.map