@contractspec/module.learning-journey 1.57.0 → 1.58.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,280 +1,274 @@
1
- import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
2
- import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
3
-
4
- //#region src/contracts/operations.d.ts
5
1
  /**
6
2
  * Enroll in a course.
7
3
  */
8
- declare const EnrollInCourseContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
9
- courseId: {
10
- type: _contractspec_lib_schema0.FieldType<string, string>;
11
- isOptional: false;
12
- };
13
- }>, _contractspec_lib_schema0.SchemaModel<{
14
- id: {
15
- type: _contractspec_lib_schema0.FieldType<string, string>;
16
- isOptional: false;
17
- };
18
- learnerId: {
19
- type: _contractspec_lib_schema0.FieldType<string, string>;
20
- isOptional: false;
21
- };
22
- courseId: {
23
- type: _contractspec_lib_schema0.FieldType<string, string>;
24
- isOptional: false;
25
- };
26
- status: {
27
- type: _contractspec_lib_schema0.FieldType<string, string>;
28
- isOptional: false;
29
- };
30
- progress: {
31
- type: _contractspec_lib_schema0.FieldType<number, number>;
32
- isOptional: false;
33
- };
34
- startedAt: {
35
- type: _contractspec_lib_schema0.FieldType<Date, string>;
36
- isOptional: true;
37
- };
38
- completedAt: {
39
- type: _contractspec_lib_schema0.FieldType<Date, string>;
40
- isOptional: true;
41
- };
4
+ export declare const EnrollInCourseContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
5
+ courseId: {
6
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
7
+ isOptional: false;
8
+ };
9
+ }>, import("@contractspec/lib.schema").SchemaModel<{
10
+ id: {
11
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
12
+ isOptional: false;
13
+ };
14
+ learnerId: {
15
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
16
+ isOptional: false;
17
+ };
18
+ courseId: {
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
+ progress: {
27
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
28
+ isOptional: false;
29
+ };
30
+ startedAt: {
31
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
32
+ isOptional: true;
33
+ };
34
+ completedAt: {
35
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
36
+ isOptional: true;
37
+ };
42
38
  }>, undefined>;
43
39
  /**
44
40
  * Complete a lesson.
45
41
  */
46
- declare const CompleteLessonContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
47
- lessonId: {
48
- type: _contractspec_lib_schema0.FieldType<string, string>;
49
- isOptional: false;
50
- };
51
- score: {
52
- type: _contractspec_lib_schema0.FieldType<number, number>;
53
- isOptional: true;
54
- };
55
- timeSpent: {
56
- type: _contractspec_lib_schema0.FieldType<number, number>;
57
- isOptional: false;
58
- };
59
- }>, _contractspec_lib_schema0.SchemaModel<{
60
- success: {
61
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
62
- isOptional: false;
63
- };
64
- xpEarned: {
65
- type: _contractspec_lib_schema0.FieldType<number, number>;
66
- isOptional: true;
67
- };
42
+ export declare const CompleteLessonContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
43
+ lessonId: {
44
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
45
+ isOptional: false;
46
+ };
47
+ score: {
48
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
49
+ isOptional: true;
50
+ };
51
+ timeSpent: {
52
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
53
+ isOptional: false;
54
+ };
55
+ }>, import("@contractspec/lib.schema").SchemaModel<{
56
+ success: {
57
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
58
+ isOptional: false;
59
+ };
60
+ xpEarned: {
61
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
62
+ isOptional: true;
63
+ };
68
64
  }>, undefined>;
69
65
  /**
70
66
  * Submit a card review.
71
67
  */
72
- declare const SubmitCardReviewContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
73
- cardId: {
74
- type: _contractspec_lib_schema0.FieldType<string, string>;
75
- isOptional: false;
76
- };
77
- rating: {
78
- type: _contractspec_lib_schema0.FieldType<string, string>;
79
- isOptional: false;
80
- };
81
- responseTimeMs: {
82
- type: _contractspec_lib_schema0.FieldType<number, number>;
83
- isOptional: true;
84
- };
85
- }>, _contractspec_lib_schema0.SchemaModel<{
86
- success: {
87
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
88
- isOptional: false;
89
- };
90
- xpEarned: {
91
- type: _contractspec_lib_schema0.FieldType<number, number>;
92
- isOptional: true;
93
- };
94
- }>, undefined>;
95
- /**
96
- * Get cards due for review.
97
- */
98
- declare const GetDueCardsContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
99
- deckId: {
100
- type: _contractspec_lib_schema0.FieldType<string, string>;
101
- isOptional: true;
102
- };
103
- limit: {
104
- type: _contractspec_lib_schema0.FieldType<number, number>;
105
- isOptional: true;
106
- };
107
- }>, _contractspec_lib_schema0.SchemaModel<{
108
- cards: {
109
- type: _contractspec_lib_schema0.SchemaModel<{
110
- id: {
111
- type: _contractspec_lib_schema0.FieldType<string, string>;
112
- isOptional: false;
113
- };
114
- deckId: {
115
- type: _contractspec_lib_schema0.FieldType<string, string>;
68
+ export declare const SubmitCardReviewContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
69
+ cardId: {
70
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
116
71
  isOptional: false;
117
- };
118
- front: {
119
- type: _contractspec_lib_schema0.FieldType<string, string>;
72
+ };
73
+ rating: {
74
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
120
75
  isOptional: false;
121
- };
122
- back: {
123
- type: _contractspec_lib_schema0.FieldType<string, string>;
124
- isOptional: false;
125
- };
126
- hints: {
127
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
76
+ };
77
+ responseTimeMs: {
78
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
128
79
  isOptional: true;
129
- };
130
- isDue: {
131
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
80
+ };
81
+ }>, import("@contractspec/lib.schema").SchemaModel<{
82
+ success: {
83
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
132
84
  isOptional: false;
133
- };
134
- nextReviewAt: {
135
- type: _contractspec_lib_schema0.FieldType<Date, string>;
85
+ };
86
+ xpEarned: {
87
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
136
88
  isOptional: true;
137
- };
138
- }>;
139
- isArray: true;
140
- isOptional: false;
141
- };
142
- total: {
143
- type: _contractspec_lib_schema0.FieldType<number, number>;
144
- isOptional: false;
145
- };
89
+ };
146
90
  }>, undefined>;
147
91
  /**
148
- * Get learner dashboard.
92
+ * Get cards due for review.
149
93
  */
150
- declare const GetLearnerDashboardContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
151
- learnerId: {
152
- type: _contractspec_lib_schema0.FieldType<string, string>;
153
- isOptional: true;
154
- };
155
- }>, _contractspec_lib_schema0.SchemaModel<{
156
- learner: {
157
- type: _contractspec_lib_schema0.SchemaModel<{
158
- id: {
159
- type: _contractspec_lib_schema0.FieldType<string, string>;
160
- isOptional: false;
161
- };
162
- userId: {
163
- type: _contractspec_lib_schema0.FieldType<string, string>;
164
- isOptional: false;
165
- };
166
- displayName: {
167
- type: _contractspec_lib_schema0.FieldType<string, string>;
94
+ export declare const GetDueCardsContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
95
+ deckId: {
96
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
168
97
  isOptional: true;
169
- };
170
- level: {
171
- type: _contractspec_lib_schema0.FieldType<number, number>;
172
- isOptional: false;
173
- };
174
- totalXp: {
175
- type: _contractspec_lib_schema0.FieldType<number, number>;
176
- isOptional: false;
177
- };
178
- currentStreak: {
179
- type: _contractspec_lib_schema0.FieldType<number, number>;
180
- isOptional: false;
181
- };
182
- longestStreak: {
183
- type: _contractspec_lib_schema0.FieldType<number, number>;
184
- isOptional: false;
185
- };
186
- createdAt: {
187
- type: _contractspec_lib_schema0.FieldType<Date, string>;
188
- isOptional: false;
189
- };
190
- }>;
191
- isOptional: false;
192
- };
193
- currentStreak: {
194
- type: _contractspec_lib_schema0.FieldType<number, number>;
195
- isOptional: false;
196
- };
197
- dailyXpGoal: {
198
- type: _contractspec_lib_schema0.FieldType<number, number>;
199
- isOptional: false;
200
- };
201
- dailyXpProgress: {
202
- type: _contractspec_lib_schema0.FieldType<number, number>;
203
- isOptional: false;
204
- };
205
- activeEnrollments: {
206
- type: _contractspec_lib_schema0.SchemaModel<{
207
- id: {
208
- type: _contractspec_lib_schema0.FieldType<string, string>;
209
- isOptional: false;
210
- };
211
- learnerId: {
212
- type: _contractspec_lib_schema0.FieldType<string, string>;
98
+ };
99
+ limit: {
100
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
101
+ isOptional: true;
102
+ };
103
+ }>, import("@contractspec/lib.schema").SchemaModel<{
104
+ cards: {
105
+ type: import("@contractspec/lib.schema").SchemaModel<{
106
+ id: {
107
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
108
+ isOptional: false;
109
+ };
110
+ deckId: {
111
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
112
+ isOptional: false;
113
+ };
114
+ front: {
115
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
116
+ isOptional: false;
117
+ };
118
+ back: {
119
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
120
+ isOptional: false;
121
+ };
122
+ hints: {
123
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
124
+ isOptional: true;
125
+ };
126
+ isDue: {
127
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
128
+ isOptional: false;
129
+ };
130
+ nextReviewAt: {
131
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
132
+ isOptional: true;
133
+ };
134
+ }>;
135
+ isArray: true;
213
136
  isOptional: false;
214
- };
215
- courseId: {
216
- type: _contractspec_lib_schema0.FieldType<string, string>;
137
+ };
138
+ total: {
139
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
217
140
  isOptional: false;
218
- };
219
- status: {
220
- type: _contractspec_lib_schema0.FieldType<string, string>;
141
+ };
142
+ }>, undefined>;
143
+ /**
144
+ * Get learner dashboard.
145
+ */
146
+ export declare const GetLearnerDashboardContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
147
+ learnerId: {
148
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
149
+ isOptional: true;
150
+ };
151
+ }>, import("@contractspec/lib.schema").SchemaModel<{
152
+ learner: {
153
+ type: import("@contractspec/lib.schema").SchemaModel<{
154
+ id: {
155
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
156
+ isOptional: false;
157
+ };
158
+ userId: {
159
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
160
+ isOptional: false;
161
+ };
162
+ displayName: {
163
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
164
+ isOptional: true;
165
+ };
166
+ level: {
167
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
168
+ isOptional: false;
169
+ };
170
+ totalXp: {
171
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
172
+ isOptional: false;
173
+ };
174
+ currentStreak: {
175
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
176
+ isOptional: false;
177
+ };
178
+ longestStreak: {
179
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
180
+ isOptional: false;
181
+ };
182
+ createdAt: {
183
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
184
+ isOptional: false;
185
+ };
186
+ }>;
221
187
  isOptional: false;
222
- };
223
- progress: {
224
- type: _contractspec_lib_schema0.FieldType<number, number>;
188
+ };
189
+ currentStreak: {
190
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
225
191
  isOptional: false;
226
- };
227
- startedAt: {
228
- type: _contractspec_lib_schema0.FieldType<Date, string>;
229
- isOptional: true;
230
- };
231
- completedAt: {
232
- type: _contractspec_lib_schema0.FieldType<Date, string>;
233
- isOptional: true;
234
- };
235
- }>;
236
- isArray: true;
237
- isOptional: false;
238
- };
239
- recentAchievements: {
240
- type: _contractspec_lib_schema0.SchemaModel<{
241
- id: {
242
- type: _contractspec_lib_schema0.FieldType<string, string>;
192
+ };
193
+ dailyXpGoal: {
194
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
243
195
  isOptional: false;
244
- };
245
- key: {
246
- type: _contractspec_lib_schema0.FieldType<string, string>;
196
+ };
197
+ dailyXpProgress: {
198
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
247
199
  isOptional: false;
248
- };
249
- name: {
250
- type: _contractspec_lib_schema0.FieldType<string, string>;
200
+ };
201
+ activeEnrollments: {
202
+ type: import("@contractspec/lib.schema").SchemaModel<{
203
+ id: {
204
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
205
+ isOptional: false;
206
+ };
207
+ learnerId: {
208
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
209
+ isOptional: false;
210
+ };
211
+ courseId: {
212
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
213
+ isOptional: false;
214
+ };
215
+ status: {
216
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
217
+ isOptional: false;
218
+ };
219
+ progress: {
220
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
221
+ isOptional: false;
222
+ };
223
+ startedAt: {
224
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
225
+ isOptional: true;
226
+ };
227
+ completedAt: {
228
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
229
+ isOptional: true;
230
+ };
231
+ }>;
232
+ isArray: true;
251
233
  isOptional: false;
252
- };
253
- description: {
254
- type: _contractspec_lib_schema0.FieldType<string, string>;
234
+ };
235
+ recentAchievements: {
236
+ type: import("@contractspec/lib.schema").SchemaModel<{
237
+ id: {
238
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
239
+ isOptional: false;
240
+ };
241
+ key: {
242
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
243
+ isOptional: false;
244
+ };
245
+ name: {
246
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
247
+ isOptional: false;
248
+ };
249
+ description: {
250
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
251
+ isOptional: false;
252
+ };
253
+ icon: {
254
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
255
+ isOptional: true;
256
+ };
257
+ xpReward: {
258
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
259
+ isOptional: false;
260
+ };
261
+ unlockedAt: {
262
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
263
+ isOptional: true;
264
+ };
265
+ }>;
266
+ isArray: true;
255
267
  isOptional: false;
256
- };
257
- icon: {
258
- type: _contractspec_lib_schema0.FieldType<string, string>;
259
- isOptional: true;
260
- };
261
- xpReward: {
262
- type: _contractspec_lib_schema0.FieldType<number, number>;
268
+ };
269
+ dueCardCount: {
270
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
263
271
  isOptional: false;
264
- };
265
- unlockedAt: {
266
- type: _contractspec_lib_schema0.FieldType<Date, string>;
267
- isOptional: true;
268
- };
269
- }>;
270
- isArray: true;
271
- isOptional: false;
272
- };
273
- dueCardCount: {
274
- type: _contractspec_lib_schema0.FieldType<number, number>;
275
- isOptional: false;
276
- };
272
+ };
277
273
  }>, undefined>;
278
- //#endregion
279
- export { CompleteLessonContract, EnrollInCourseContract, GetDueCardsContract, GetLearnerDashboardContract, SubmitCardReviewContract };
280
274
  //# sourceMappingURL=operations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","names":[],"sources":["../../src/contracts/operations.ts"],"mappings":";;;;;;;cAkBa,sBAAA,+BAAsB,aAAA,2BAAA,WAAA;;UAgCjC,yBAAA,CAAA,SAAA;;;;;UAhCiC,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqCtB,sBAAA,+BAAsB,aAAA,2BAAA,WAAA;;UAgCjC,yBAAA,CAAA,SAAA;;;;;;;;;;;;;UAhCiC,yBAAA,CAAA,SAAA;;;;;;;;;;;cAqCtB,wBAAA,+BAAwB,aAAA,2BAAA,WAAA;;UAgCnC,yBAAA,CAAA,SAAA;;;;;;;;;;;;;UAhCmC,yBAAA,CAAA,SAAA;;;;;;;;;;;cAqCxB,mBAAA,+BAAmB,aAAA,2BAAA,WAAA;;UAkB9B,yBAAA,CAAA,SAAA;;;;;;;;;;;cAlB8B,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuBnB,2BAAA,+BAA2B,aAAA,2BAAA,WAAA;;UAkBtC,yBAAA,CAAA,SAAA;;;;;;;cAlBsC,yBAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/contracts/operations.ts"],"names":[],"mappings":"AAeA;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCjC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;cAgCjC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;cAgCnC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkB9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkBtC,CAAC"}