@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
package/dist/events.d.ts CHANGED
@@ -1,796 +1,790 @@
1
- import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
2
- import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
3
-
4
- //#region src/events.d.ts
5
- declare const CoursePublishedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
6
- courseId: {
7
- type: _contractspec_lib_schema0.FieldType<string, string>;
8
- isOptional: false;
9
- };
10
- title: {
11
- type: _contractspec_lib_schema0.FieldType<string, string>;
12
- isOptional: false;
13
- };
14
- authorId: {
15
- type: _contractspec_lib_schema0.FieldType<string, string>;
16
- isOptional: false;
17
- };
18
- publishedAt: {
19
- type: _contractspec_lib_schema0.FieldType<Date, string>;
20
- isOptional: false;
21
- };
22
- }>>;
23
- declare const EnrollmentCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
24
- enrollmentId: {
25
- type: _contractspec_lib_schema0.FieldType<string, string>;
26
- isOptional: false;
27
- };
28
- learnerId: {
29
- type: _contractspec_lib_schema0.FieldType<string, string>;
30
- isOptional: false;
31
- };
32
- courseId: {
33
- type: _contractspec_lib_schema0.FieldType<string, string>;
34
- isOptional: false;
35
- };
36
- enrolledAt: {
37
- type: _contractspec_lib_schema0.FieldType<Date, string>;
38
- isOptional: false;
39
- };
40
- }>>;
41
- declare const LessonCompletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
42
- learnerId: {
43
- type: _contractspec_lib_schema0.FieldType<string, string>;
44
- isOptional: false;
45
- };
46
- lessonId: {
47
- type: _contractspec_lib_schema0.FieldType<string, string>;
48
- isOptional: false;
49
- };
50
- courseId: {
51
- type: _contractspec_lib_schema0.FieldType<string, string>;
52
- isOptional: false;
53
- };
54
- score: {
55
- type: _contractspec_lib_schema0.FieldType<number, number>;
56
- isOptional: true;
57
- };
58
- xpEarned: {
59
- type: _contractspec_lib_schema0.FieldType<number, number>;
60
- isOptional: false;
61
- };
62
- timeSpent: {
63
- type: _contractspec_lib_schema0.FieldType<number, number>;
64
- isOptional: false;
65
- };
66
- completedAt: {
67
- type: _contractspec_lib_schema0.FieldType<Date, string>;
68
- isOptional: false;
69
- };
70
- }>>;
71
- declare const CourseCompletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
72
- learnerId: {
73
- type: _contractspec_lib_schema0.FieldType<string, string>;
74
- isOptional: false;
75
- };
76
- courseId: {
77
- type: _contractspec_lib_schema0.FieldType<string, string>;
78
- isOptional: false;
79
- };
80
- enrollmentId: {
81
- type: _contractspec_lib_schema0.FieldType<string, string>;
82
- isOptional: false;
83
- };
84
- score: {
85
- type: _contractspec_lib_schema0.FieldType<number, number>;
86
- isOptional: true;
87
- };
88
- xpEarned: {
89
- type: _contractspec_lib_schema0.FieldType<number, number>;
90
- isOptional: false;
91
- };
92
- certificateId: {
93
- type: _contractspec_lib_schema0.FieldType<string, string>;
94
- isOptional: true;
95
- };
96
- completedAt: {
97
- type: _contractspec_lib_schema0.FieldType<Date, string>;
98
- isOptional: false;
99
- };
100
- }>>;
101
- declare const OnboardingStartedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
102
- learnerId: {
103
- type: _contractspec_lib_schema0.FieldType<string, string>;
104
- isOptional: false;
105
- };
106
- trackId: {
107
- type: _contractspec_lib_schema0.FieldType<string, string>;
108
- isOptional: false;
109
- };
110
- productId: {
111
- type: _contractspec_lib_schema0.FieldType<string, string>;
112
- isOptional: false;
113
- };
114
- startedAt: {
115
- type: _contractspec_lib_schema0.FieldType<Date, string>;
116
- isOptional: false;
117
- };
118
- }>>;
119
- declare const OnboardingStepCompletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
120
- learnerId: {
121
- type: _contractspec_lib_schema0.FieldType<string, string>;
122
- isOptional: false;
123
- };
124
- trackId: {
125
- type: _contractspec_lib_schema0.FieldType<string, string>;
126
- isOptional: false;
127
- };
128
- stepId: {
129
- type: _contractspec_lib_schema0.FieldType<string, string>;
130
- isOptional: false;
131
- };
132
- triggeringEvent: {
133
- type: _contractspec_lib_schema0.FieldType<string, string>;
134
- isOptional: true;
135
- };
136
- xpEarned: {
137
- type: _contractspec_lib_schema0.FieldType<number, number>;
138
- isOptional: false;
139
- };
140
- completedAt: {
141
- type: _contractspec_lib_schema0.FieldType<Date, string>;
142
- isOptional: false;
143
- };
144
- }>>;
145
- declare const OnboardingCompletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
146
- learnerId: {
147
- type: _contractspec_lib_schema0.FieldType<string, string>;
148
- isOptional: false;
149
- };
150
- trackId: {
151
- type: _contractspec_lib_schema0.FieldType<string, string>;
152
- isOptional: false;
153
- };
154
- productId: {
155
- type: _contractspec_lib_schema0.FieldType<string, string>;
156
- isOptional: false;
157
- };
158
- xpEarned: {
159
- type: _contractspec_lib_schema0.FieldType<number, number>;
160
- isOptional: false;
161
- };
162
- completedAt: {
163
- type: _contractspec_lib_schema0.FieldType<Date, string>;
164
- isOptional: false;
165
- };
166
- }>>;
167
- declare const CardReviewedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
168
- learnerId: {
169
- type: _contractspec_lib_schema0.FieldType<string, string>;
170
- isOptional: false;
171
- };
172
- cardId: {
173
- type: _contractspec_lib_schema0.FieldType<string, string>;
174
- isOptional: false;
175
- };
176
- deckId: {
177
- type: _contractspec_lib_schema0.FieldType<string, string>;
178
- isOptional: false;
179
- };
180
- rating: {
181
- type: _contractspec_lib_schema0.FieldType<string, string>;
182
- isOptional: false;
183
- };
184
- responseTimeMs: {
185
- type: _contractspec_lib_schema0.FieldType<number, number>;
186
- isOptional: true;
187
- };
188
- reviewedAt: {
189
- type: _contractspec_lib_schema0.FieldType<Date, string>;
190
- isOptional: false;
191
- };
192
- }>>;
193
- declare const QuizStartedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
194
- learnerId: {
195
- type: _contractspec_lib_schema0.FieldType<string, string>;
196
- isOptional: false;
197
- };
198
- quizId: {
199
- type: _contractspec_lib_schema0.FieldType<string, string>;
200
- isOptional: false;
201
- };
202
- attemptId: {
203
- type: _contractspec_lib_schema0.FieldType<string, string>;
204
- isOptional: false;
205
- };
206
- attemptNumber: {
207
- type: _contractspec_lib_schema0.FieldType<number, number>;
208
- isOptional: false;
209
- };
210
- startedAt: {
211
- type: _contractspec_lib_schema0.FieldType<Date, string>;
212
- isOptional: false;
213
- };
214
- }>>;
215
- declare const QuizCompletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
216
- learnerId: {
217
- type: _contractspec_lib_schema0.FieldType<string, string>;
218
- isOptional: false;
219
- };
220
- quizId: {
221
- type: _contractspec_lib_schema0.FieldType<string, string>;
222
- isOptional: false;
223
- };
224
- attemptId: {
225
- type: _contractspec_lib_schema0.FieldType<string, string>;
226
- isOptional: false;
227
- };
228
- score: {
229
- type: _contractspec_lib_schema0.FieldType<number, number>;
230
- isOptional: false;
231
- };
232
- percentageScore: {
233
- type: _contractspec_lib_schema0.FieldType<number, number>;
234
- isOptional: false;
235
- };
236
- passed: {
237
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
238
- isOptional: false;
239
- };
240
- xpEarned: {
241
- type: _contractspec_lib_schema0.FieldType<number, number>;
242
- isOptional: false;
243
- };
244
- timeSpent: {
245
- type: _contractspec_lib_schema0.FieldType<number, number>;
246
- isOptional: false;
247
- };
248
- completedAt: {
249
- type: _contractspec_lib_schema0.FieldType<Date, string>;
250
- isOptional: false;
251
- };
252
- }>>;
253
- declare const XpEarnedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
254
- learnerId: {
255
- type: _contractspec_lib_schema0.FieldType<string, string>;
256
- isOptional: false;
257
- };
258
- amount: {
259
- type: _contractspec_lib_schema0.FieldType<number, number>;
260
- isOptional: false;
261
- };
262
- source: {
263
- type: _contractspec_lib_schema0.FieldType<string, string>;
264
- isOptional: false;
265
- };
266
- sourceId: {
267
- type: _contractspec_lib_schema0.FieldType<string, string>;
268
- isOptional: true;
269
- };
270
- totalXp: {
271
- type: _contractspec_lib_schema0.FieldType<number, number>;
272
- isOptional: false;
273
- };
274
- earnedAt: {
275
- type: _contractspec_lib_schema0.FieldType<Date, string>;
276
- isOptional: false;
277
- };
278
- }>>;
279
- declare const LevelUpEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
280
- learnerId: {
281
- type: _contractspec_lib_schema0.FieldType<string, string>;
282
- isOptional: false;
283
- };
284
- previousLevel: {
285
- type: _contractspec_lib_schema0.FieldType<number, number>;
286
- isOptional: false;
287
- };
288
- newLevel: {
289
- type: _contractspec_lib_schema0.FieldType<number, number>;
290
- isOptional: false;
291
- };
292
- totalXp: {
293
- type: _contractspec_lib_schema0.FieldType<number, number>;
294
- isOptional: false;
295
- };
296
- leveledUpAt: {
297
- type: _contractspec_lib_schema0.FieldType<Date, string>;
298
- isOptional: false;
299
- };
300
- }>>;
301
- declare const StreakUpdatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
302
- learnerId: {
303
- type: _contractspec_lib_schema0.FieldType<string, string>;
304
- isOptional: false;
305
- };
306
- previousStreak: {
307
- type: _contractspec_lib_schema0.FieldType<number, number>;
308
- isOptional: false;
309
- };
310
- currentStreak: {
311
- type: _contractspec_lib_schema0.FieldType<number, number>;
312
- isOptional: false;
313
- };
314
- longestStreak: {
315
- type: _contractspec_lib_schema0.FieldType<number, number>;
316
- isOptional: false;
317
- };
318
- freezeUsed: {
319
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
320
- isOptional: false;
321
- };
322
- updatedAt: {
323
- type: _contractspec_lib_schema0.FieldType<Date, string>;
324
- isOptional: false;
325
- };
326
- }>>;
327
- declare const AchievementUnlockedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
328
- learnerId: {
329
- type: _contractspec_lib_schema0.FieldType<string, string>;
330
- isOptional: false;
331
- };
332
- achievementId: {
333
- type: _contractspec_lib_schema0.FieldType<string, string>;
334
- isOptional: false;
335
- };
336
- achievementKey: {
337
- type: _contractspec_lib_schema0.FieldType<string, string>;
338
- isOptional: false;
339
- };
340
- achievementName: {
341
- type: _contractspec_lib_schema0.FieldType<string, string>;
342
- isOptional: false;
343
- };
344
- xpEarned: {
345
- type: _contractspec_lib_schema0.FieldType<number, number>;
346
- isOptional: false;
347
- };
348
- unlockedAt: {
349
- type: _contractspec_lib_schema0.FieldType<Date, string>;
350
- isOptional: false;
351
- };
352
- }>>;
353
- declare const DailyGoalCompletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
354
- learnerId: {
355
- type: _contractspec_lib_schema0.FieldType<string, string>;
356
- isOptional: false;
357
- };
358
- date: {
359
- type: _contractspec_lib_schema0.FieldType<string, string>;
360
- isOptional: false;
361
- };
362
- targetXp: {
363
- type: _contractspec_lib_schema0.FieldType<number, number>;
364
- isOptional: false;
365
- };
366
- actualXp: {
367
- type: _contractspec_lib_schema0.FieldType<number, number>;
368
- isOptional: false;
369
- };
370
- completedAt: {
371
- type: _contractspec_lib_schema0.FieldType<Date, string>;
372
- isOptional: false;
373
- };
374
- }>>;
375
- declare const CertificateIssuedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
376
- certificateId: {
377
- type: _contractspec_lib_schema0.FieldType<string, string>;
378
- isOptional: false;
379
- };
380
- learnerId: {
381
- type: _contractspec_lib_schema0.FieldType<string, string>;
382
- isOptional: false;
383
- };
384
- courseId: {
385
- type: _contractspec_lib_schema0.FieldType<string, string>;
386
- isOptional: false;
387
- };
388
- certificateNumber: {
389
- type: _contractspec_lib_schema0.FieldType<string, string>;
390
- isOptional: false;
391
- };
392
- issuedAt: {
393
- type: _contractspec_lib_schema0.FieldType<Date, string>;
394
- isOptional: false;
395
- };
396
- }>>;
397
- /**
398
- * All learning journey events.
399
- */
400
- declare const LearningJourneyEvents: {
401
- CoursePublishedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
1
+ export declare const CoursePublishedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
402
2
  courseId: {
403
- type: _contractspec_lib_schema0.FieldType<string, string>;
404
- isOptional: false;
3
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
4
+ isOptional: false;
405
5
  };
406
6
  title: {
407
- type: _contractspec_lib_schema0.FieldType<string, string>;
408
- isOptional: false;
7
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
8
+ isOptional: false;
409
9
  };
410
10
  authorId: {
411
- type: _contractspec_lib_schema0.FieldType<string, string>;
412
- isOptional: false;
11
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
12
+ isOptional: false;
413
13
  };
414
14
  publishedAt: {
415
- type: _contractspec_lib_schema0.FieldType<Date, string>;
416
- isOptional: false;
15
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
16
+ isOptional: false;
417
17
  };
418
- }>>;
419
- EnrollmentCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
18
+ }>>;
19
+ export declare const EnrollmentCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
420
20
  enrollmentId: {
421
- type: _contractspec_lib_schema0.FieldType<string, string>;
422
- isOptional: false;
21
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
22
+ isOptional: false;
423
23
  };
424
24
  learnerId: {
425
- type: _contractspec_lib_schema0.FieldType<string, string>;
426
- isOptional: false;
25
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
26
+ isOptional: false;
427
27
  };
428
28
  courseId: {
429
- type: _contractspec_lib_schema0.FieldType<string, string>;
430
- isOptional: false;
29
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
30
+ isOptional: false;
431
31
  };
432
32
  enrolledAt: {
433
- type: _contractspec_lib_schema0.FieldType<Date, string>;
434
- isOptional: false;
33
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
34
+ isOptional: false;
435
35
  };
436
- }>>;
437
- LessonCompletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
36
+ }>>;
37
+ export declare const LessonCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
438
38
  learnerId: {
439
- type: _contractspec_lib_schema0.FieldType<string, string>;
440
- isOptional: false;
39
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
40
+ isOptional: false;
441
41
  };
442
42
  lessonId: {
443
- type: _contractspec_lib_schema0.FieldType<string, string>;
444
- isOptional: false;
43
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
44
+ isOptional: false;
445
45
  };
446
46
  courseId: {
447
- type: _contractspec_lib_schema0.FieldType<string, string>;
448
- isOptional: false;
47
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
48
+ isOptional: false;
449
49
  };
450
50
  score: {
451
- type: _contractspec_lib_schema0.FieldType<number, number>;
452
- isOptional: true;
51
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
52
+ isOptional: true;
453
53
  };
454
54
  xpEarned: {
455
- type: _contractspec_lib_schema0.FieldType<number, number>;
456
- isOptional: false;
55
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
56
+ isOptional: false;
457
57
  };
458
58
  timeSpent: {
459
- type: _contractspec_lib_schema0.FieldType<number, number>;
460
- isOptional: false;
59
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
60
+ isOptional: false;
461
61
  };
462
62
  completedAt: {
463
- type: _contractspec_lib_schema0.FieldType<Date, string>;
464
- isOptional: false;
63
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
64
+ isOptional: false;
465
65
  };
466
- }>>;
467
- CourseCompletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
66
+ }>>;
67
+ export declare const CourseCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
468
68
  learnerId: {
469
- type: _contractspec_lib_schema0.FieldType<string, string>;
470
- isOptional: false;
69
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
70
+ isOptional: false;
471
71
  };
472
72
  courseId: {
473
- type: _contractspec_lib_schema0.FieldType<string, string>;
474
- isOptional: false;
73
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
74
+ isOptional: false;
475
75
  };
476
76
  enrollmentId: {
477
- type: _contractspec_lib_schema0.FieldType<string, string>;
478
- isOptional: false;
77
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
78
+ isOptional: false;
479
79
  };
480
80
  score: {
481
- type: _contractspec_lib_schema0.FieldType<number, number>;
482
- isOptional: true;
81
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
82
+ isOptional: true;
483
83
  };
484
84
  xpEarned: {
485
- type: _contractspec_lib_schema0.FieldType<number, number>;
486
- isOptional: false;
85
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
86
+ isOptional: false;
487
87
  };
488
88
  certificateId: {
489
- type: _contractspec_lib_schema0.FieldType<string, string>;
490
- isOptional: true;
89
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
90
+ isOptional: true;
491
91
  };
492
92
  completedAt: {
493
- type: _contractspec_lib_schema0.FieldType<Date, string>;
494
- isOptional: false;
93
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
94
+ isOptional: false;
495
95
  };
496
- }>>;
497
- OnboardingStartedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
96
+ }>>;
97
+ export declare const OnboardingStartedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
498
98
  learnerId: {
499
- type: _contractspec_lib_schema0.FieldType<string, string>;
500
- isOptional: false;
99
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
100
+ isOptional: false;
501
101
  };
502
102
  trackId: {
503
- type: _contractspec_lib_schema0.FieldType<string, string>;
504
- isOptional: false;
103
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
104
+ isOptional: false;
505
105
  };
506
106
  productId: {
507
- type: _contractspec_lib_schema0.FieldType<string, string>;
508
- isOptional: false;
107
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
108
+ isOptional: false;
509
109
  };
510
110
  startedAt: {
511
- type: _contractspec_lib_schema0.FieldType<Date, string>;
512
- isOptional: false;
111
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
112
+ isOptional: false;
513
113
  };
514
- }>>;
515
- OnboardingStepCompletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
114
+ }>>;
115
+ export declare const OnboardingStepCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
516
116
  learnerId: {
517
- type: _contractspec_lib_schema0.FieldType<string, string>;
518
- isOptional: false;
117
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
118
+ isOptional: false;
519
119
  };
520
120
  trackId: {
521
- type: _contractspec_lib_schema0.FieldType<string, string>;
522
- isOptional: false;
121
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
122
+ isOptional: false;
523
123
  };
524
124
  stepId: {
525
- type: _contractspec_lib_schema0.FieldType<string, string>;
526
- isOptional: false;
125
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
126
+ isOptional: false;
527
127
  };
528
128
  triggeringEvent: {
529
- type: _contractspec_lib_schema0.FieldType<string, string>;
530
- isOptional: true;
129
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
130
+ isOptional: true;
531
131
  };
532
132
  xpEarned: {
533
- type: _contractspec_lib_schema0.FieldType<number, number>;
534
- isOptional: false;
133
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
134
+ isOptional: false;
535
135
  };
536
136
  completedAt: {
537
- type: _contractspec_lib_schema0.FieldType<Date, string>;
538
- isOptional: false;
137
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
138
+ isOptional: false;
539
139
  };
540
- }>>;
541
- OnboardingCompletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
140
+ }>>;
141
+ export declare const OnboardingCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
542
142
  learnerId: {
543
- type: _contractspec_lib_schema0.FieldType<string, string>;
544
- isOptional: false;
143
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
144
+ isOptional: false;
545
145
  };
546
146
  trackId: {
547
- type: _contractspec_lib_schema0.FieldType<string, string>;
548
- isOptional: false;
147
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
148
+ isOptional: false;
549
149
  };
550
150
  productId: {
551
- type: _contractspec_lib_schema0.FieldType<string, string>;
552
- isOptional: false;
151
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
152
+ isOptional: false;
553
153
  };
554
154
  xpEarned: {
555
- type: _contractspec_lib_schema0.FieldType<number, number>;
556
- isOptional: false;
155
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
156
+ isOptional: false;
557
157
  };
558
158
  completedAt: {
559
- type: _contractspec_lib_schema0.FieldType<Date, string>;
560
- isOptional: false;
159
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
160
+ isOptional: false;
561
161
  };
562
- }>>;
563
- CardReviewedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
162
+ }>>;
163
+ export declare const CardReviewedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
564
164
  learnerId: {
565
- type: _contractspec_lib_schema0.FieldType<string, string>;
566
- isOptional: false;
165
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
166
+ isOptional: false;
567
167
  };
568
168
  cardId: {
569
- type: _contractspec_lib_schema0.FieldType<string, string>;
570
- isOptional: false;
169
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
170
+ isOptional: false;
571
171
  };
572
172
  deckId: {
573
- type: _contractspec_lib_schema0.FieldType<string, string>;
574
- isOptional: false;
173
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
174
+ isOptional: false;
575
175
  };
576
176
  rating: {
577
- type: _contractspec_lib_schema0.FieldType<string, string>;
578
- isOptional: false;
177
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
178
+ isOptional: false;
579
179
  };
580
180
  responseTimeMs: {
581
- type: _contractspec_lib_schema0.FieldType<number, number>;
582
- isOptional: true;
181
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
182
+ isOptional: true;
583
183
  };
584
184
  reviewedAt: {
585
- type: _contractspec_lib_schema0.FieldType<Date, string>;
586
- isOptional: false;
185
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
186
+ isOptional: false;
587
187
  };
588
- }>>;
589
- QuizStartedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
188
+ }>>;
189
+ export declare const QuizStartedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
590
190
  learnerId: {
591
- type: _contractspec_lib_schema0.FieldType<string, string>;
592
- isOptional: false;
191
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
192
+ isOptional: false;
593
193
  };
594
194
  quizId: {
595
- type: _contractspec_lib_schema0.FieldType<string, string>;
596
- isOptional: false;
195
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
196
+ isOptional: false;
597
197
  };
598
198
  attemptId: {
599
- type: _contractspec_lib_schema0.FieldType<string, string>;
600
- isOptional: false;
199
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
200
+ isOptional: false;
601
201
  };
602
202
  attemptNumber: {
603
- type: _contractspec_lib_schema0.FieldType<number, number>;
604
- isOptional: false;
203
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
204
+ isOptional: false;
605
205
  };
606
206
  startedAt: {
607
- type: _contractspec_lib_schema0.FieldType<Date, string>;
608
- isOptional: false;
207
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
208
+ isOptional: false;
609
209
  };
610
- }>>;
611
- QuizCompletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
210
+ }>>;
211
+ export declare const QuizCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
612
212
  learnerId: {
613
- type: _contractspec_lib_schema0.FieldType<string, string>;
614
- isOptional: false;
213
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
214
+ isOptional: false;
615
215
  };
616
216
  quizId: {
617
- type: _contractspec_lib_schema0.FieldType<string, string>;
618
- isOptional: false;
217
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
218
+ isOptional: false;
619
219
  };
620
220
  attemptId: {
621
- type: _contractspec_lib_schema0.FieldType<string, string>;
622
- isOptional: false;
221
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
222
+ isOptional: false;
623
223
  };
624
224
  score: {
625
- type: _contractspec_lib_schema0.FieldType<number, number>;
626
- isOptional: false;
225
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
226
+ isOptional: false;
627
227
  };
628
228
  percentageScore: {
629
- type: _contractspec_lib_schema0.FieldType<number, number>;
630
- isOptional: false;
229
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
230
+ isOptional: false;
631
231
  };
632
232
  passed: {
633
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
634
- isOptional: false;
233
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
234
+ isOptional: false;
635
235
  };
636
236
  xpEarned: {
637
- type: _contractspec_lib_schema0.FieldType<number, number>;
638
- isOptional: false;
237
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
238
+ isOptional: false;
639
239
  };
640
240
  timeSpent: {
641
- type: _contractspec_lib_schema0.FieldType<number, number>;
642
- isOptional: false;
241
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
242
+ isOptional: false;
643
243
  };
644
244
  completedAt: {
645
- type: _contractspec_lib_schema0.FieldType<Date, string>;
646
- isOptional: false;
245
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
246
+ isOptional: false;
647
247
  };
648
- }>>;
649
- XpEarnedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
248
+ }>>;
249
+ export declare const XpEarnedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
650
250
  learnerId: {
651
- type: _contractspec_lib_schema0.FieldType<string, string>;
652
- isOptional: false;
251
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
252
+ isOptional: false;
653
253
  };
654
254
  amount: {
655
- type: _contractspec_lib_schema0.FieldType<number, number>;
656
- isOptional: false;
255
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
256
+ isOptional: false;
657
257
  };
658
258
  source: {
659
- type: _contractspec_lib_schema0.FieldType<string, string>;
660
- isOptional: false;
259
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
260
+ isOptional: false;
661
261
  };
662
262
  sourceId: {
663
- type: _contractspec_lib_schema0.FieldType<string, string>;
664
- isOptional: true;
263
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
264
+ isOptional: true;
665
265
  };
666
266
  totalXp: {
667
- type: _contractspec_lib_schema0.FieldType<number, number>;
668
- isOptional: false;
267
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
268
+ isOptional: false;
669
269
  };
670
270
  earnedAt: {
671
- type: _contractspec_lib_schema0.FieldType<Date, string>;
672
- isOptional: false;
271
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
272
+ isOptional: false;
673
273
  };
674
- }>>;
675
- LevelUpEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
274
+ }>>;
275
+ export declare const LevelUpEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
676
276
  learnerId: {
677
- type: _contractspec_lib_schema0.FieldType<string, string>;
678
- isOptional: false;
277
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
278
+ isOptional: false;
679
279
  };
680
280
  previousLevel: {
681
- type: _contractspec_lib_schema0.FieldType<number, number>;
682
- isOptional: false;
281
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
282
+ isOptional: false;
683
283
  };
684
284
  newLevel: {
685
- type: _contractspec_lib_schema0.FieldType<number, number>;
686
- isOptional: false;
285
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
286
+ isOptional: false;
687
287
  };
688
288
  totalXp: {
689
- type: _contractspec_lib_schema0.FieldType<number, number>;
690
- isOptional: false;
289
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
290
+ isOptional: false;
691
291
  };
692
292
  leveledUpAt: {
693
- type: _contractspec_lib_schema0.FieldType<Date, string>;
694
- isOptional: false;
293
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
294
+ isOptional: false;
695
295
  };
696
- }>>;
697
- StreakUpdatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
296
+ }>>;
297
+ export declare const StreakUpdatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
698
298
  learnerId: {
699
- type: _contractspec_lib_schema0.FieldType<string, string>;
700
- isOptional: false;
299
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
300
+ isOptional: false;
701
301
  };
702
302
  previousStreak: {
703
- type: _contractspec_lib_schema0.FieldType<number, number>;
704
- isOptional: false;
303
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
304
+ isOptional: false;
705
305
  };
706
306
  currentStreak: {
707
- type: _contractspec_lib_schema0.FieldType<number, number>;
708
- isOptional: false;
307
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
308
+ isOptional: false;
709
309
  };
710
310
  longestStreak: {
711
- type: _contractspec_lib_schema0.FieldType<number, number>;
712
- isOptional: false;
311
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
312
+ isOptional: false;
713
313
  };
714
314
  freezeUsed: {
715
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
716
- isOptional: false;
315
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
316
+ isOptional: false;
717
317
  };
718
318
  updatedAt: {
719
- type: _contractspec_lib_schema0.FieldType<Date, string>;
720
- isOptional: false;
319
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
320
+ isOptional: false;
721
321
  };
722
- }>>;
723
- AchievementUnlockedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
322
+ }>>;
323
+ export declare const AchievementUnlockedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
724
324
  learnerId: {
725
- type: _contractspec_lib_schema0.FieldType<string, string>;
726
- isOptional: false;
325
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
326
+ isOptional: false;
727
327
  };
728
328
  achievementId: {
729
- type: _contractspec_lib_schema0.FieldType<string, string>;
730
- isOptional: false;
329
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
330
+ isOptional: false;
731
331
  };
732
332
  achievementKey: {
733
- type: _contractspec_lib_schema0.FieldType<string, string>;
734
- isOptional: false;
333
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
334
+ isOptional: false;
735
335
  };
736
336
  achievementName: {
737
- type: _contractspec_lib_schema0.FieldType<string, string>;
738
- isOptional: false;
337
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
338
+ isOptional: false;
739
339
  };
740
340
  xpEarned: {
741
- type: _contractspec_lib_schema0.FieldType<number, number>;
742
- isOptional: false;
341
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
342
+ isOptional: false;
743
343
  };
744
344
  unlockedAt: {
745
- type: _contractspec_lib_schema0.FieldType<Date, string>;
746
- isOptional: false;
345
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
346
+ isOptional: false;
747
347
  };
748
- }>>;
749
- DailyGoalCompletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
348
+ }>>;
349
+ export declare const DailyGoalCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
750
350
  learnerId: {
751
- type: _contractspec_lib_schema0.FieldType<string, string>;
752
- isOptional: false;
351
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
352
+ isOptional: false;
753
353
  };
754
354
  date: {
755
- type: _contractspec_lib_schema0.FieldType<string, string>;
756
- isOptional: false;
355
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
356
+ isOptional: false;
757
357
  };
758
358
  targetXp: {
759
- type: _contractspec_lib_schema0.FieldType<number, number>;
760
- isOptional: false;
359
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
360
+ isOptional: false;
761
361
  };
762
362
  actualXp: {
763
- type: _contractspec_lib_schema0.FieldType<number, number>;
764
- isOptional: false;
363
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
364
+ isOptional: false;
765
365
  };
766
366
  completedAt: {
767
- type: _contractspec_lib_schema0.FieldType<Date, string>;
768
- isOptional: false;
367
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
368
+ isOptional: false;
769
369
  };
770
- }>>;
771
- CertificateIssuedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
370
+ }>>;
371
+ export declare const CertificateIssuedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
772
372
  certificateId: {
773
- type: _contractspec_lib_schema0.FieldType<string, string>;
774
- isOptional: false;
373
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
374
+ isOptional: false;
775
375
  };
776
376
  learnerId: {
777
- type: _contractspec_lib_schema0.FieldType<string, string>;
778
- isOptional: false;
377
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
378
+ isOptional: false;
779
379
  };
780
380
  courseId: {
781
- type: _contractspec_lib_schema0.FieldType<string, string>;
782
- isOptional: false;
381
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
382
+ isOptional: false;
783
383
  };
784
384
  certificateNumber: {
785
- type: _contractspec_lib_schema0.FieldType<string, string>;
786
- isOptional: false;
385
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
386
+ isOptional: false;
787
387
  };
788
388
  issuedAt: {
789
- type: _contractspec_lib_schema0.FieldType<Date, string>;
790
- isOptional: false;
389
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
390
+ isOptional: false;
791
391
  };
792
- }>>;
392
+ }>>;
393
+ /**
394
+ * All learning journey events.
395
+ */
396
+ export declare const LearningJourneyEvents: {
397
+ CoursePublishedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
398
+ courseId: {
399
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
400
+ isOptional: false;
401
+ };
402
+ title: {
403
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
404
+ isOptional: false;
405
+ };
406
+ authorId: {
407
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
408
+ isOptional: false;
409
+ };
410
+ publishedAt: {
411
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
412
+ isOptional: false;
413
+ };
414
+ }>>;
415
+ EnrollmentCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
416
+ enrollmentId: {
417
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
418
+ isOptional: false;
419
+ };
420
+ learnerId: {
421
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
422
+ isOptional: false;
423
+ };
424
+ courseId: {
425
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
426
+ isOptional: false;
427
+ };
428
+ enrolledAt: {
429
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
430
+ isOptional: false;
431
+ };
432
+ }>>;
433
+ LessonCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
434
+ learnerId: {
435
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
436
+ isOptional: false;
437
+ };
438
+ lessonId: {
439
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
440
+ isOptional: false;
441
+ };
442
+ courseId: {
443
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
444
+ isOptional: false;
445
+ };
446
+ score: {
447
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
448
+ isOptional: true;
449
+ };
450
+ xpEarned: {
451
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
452
+ isOptional: false;
453
+ };
454
+ timeSpent: {
455
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
456
+ isOptional: false;
457
+ };
458
+ completedAt: {
459
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
460
+ isOptional: false;
461
+ };
462
+ }>>;
463
+ CourseCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
464
+ learnerId: {
465
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
466
+ isOptional: false;
467
+ };
468
+ courseId: {
469
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
470
+ isOptional: false;
471
+ };
472
+ enrollmentId: {
473
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
474
+ isOptional: false;
475
+ };
476
+ score: {
477
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
478
+ isOptional: true;
479
+ };
480
+ xpEarned: {
481
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
482
+ isOptional: false;
483
+ };
484
+ certificateId: {
485
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
486
+ isOptional: true;
487
+ };
488
+ completedAt: {
489
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
490
+ isOptional: false;
491
+ };
492
+ }>>;
493
+ OnboardingStartedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
494
+ learnerId: {
495
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
496
+ isOptional: false;
497
+ };
498
+ trackId: {
499
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
500
+ isOptional: false;
501
+ };
502
+ productId: {
503
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
504
+ isOptional: false;
505
+ };
506
+ startedAt: {
507
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
508
+ isOptional: false;
509
+ };
510
+ }>>;
511
+ OnboardingStepCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
512
+ learnerId: {
513
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
514
+ isOptional: false;
515
+ };
516
+ trackId: {
517
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
518
+ isOptional: false;
519
+ };
520
+ stepId: {
521
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
522
+ isOptional: false;
523
+ };
524
+ triggeringEvent: {
525
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
526
+ isOptional: true;
527
+ };
528
+ xpEarned: {
529
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
530
+ isOptional: false;
531
+ };
532
+ completedAt: {
533
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
534
+ isOptional: false;
535
+ };
536
+ }>>;
537
+ OnboardingCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
538
+ learnerId: {
539
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
540
+ isOptional: false;
541
+ };
542
+ trackId: {
543
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
544
+ isOptional: false;
545
+ };
546
+ productId: {
547
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
548
+ isOptional: false;
549
+ };
550
+ xpEarned: {
551
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
552
+ isOptional: false;
553
+ };
554
+ completedAt: {
555
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
556
+ isOptional: false;
557
+ };
558
+ }>>;
559
+ CardReviewedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
560
+ learnerId: {
561
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
562
+ isOptional: false;
563
+ };
564
+ cardId: {
565
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
566
+ isOptional: false;
567
+ };
568
+ deckId: {
569
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
570
+ isOptional: false;
571
+ };
572
+ rating: {
573
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
574
+ isOptional: false;
575
+ };
576
+ responseTimeMs: {
577
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
578
+ isOptional: true;
579
+ };
580
+ reviewedAt: {
581
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
582
+ isOptional: false;
583
+ };
584
+ }>>;
585
+ QuizStartedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
586
+ learnerId: {
587
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
588
+ isOptional: false;
589
+ };
590
+ quizId: {
591
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
592
+ isOptional: false;
593
+ };
594
+ attemptId: {
595
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
596
+ isOptional: false;
597
+ };
598
+ attemptNumber: {
599
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
600
+ isOptional: false;
601
+ };
602
+ startedAt: {
603
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
604
+ isOptional: false;
605
+ };
606
+ }>>;
607
+ QuizCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
608
+ learnerId: {
609
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
610
+ isOptional: false;
611
+ };
612
+ quizId: {
613
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
614
+ isOptional: false;
615
+ };
616
+ attemptId: {
617
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
618
+ isOptional: false;
619
+ };
620
+ score: {
621
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
622
+ isOptional: false;
623
+ };
624
+ percentageScore: {
625
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
626
+ isOptional: false;
627
+ };
628
+ passed: {
629
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
630
+ isOptional: false;
631
+ };
632
+ xpEarned: {
633
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
634
+ isOptional: false;
635
+ };
636
+ timeSpent: {
637
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
638
+ isOptional: false;
639
+ };
640
+ completedAt: {
641
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
642
+ isOptional: false;
643
+ };
644
+ }>>;
645
+ XpEarnedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
646
+ learnerId: {
647
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
648
+ isOptional: false;
649
+ };
650
+ amount: {
651
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
652
+ isOptional: false;
653
+ };
654
+ source: {
655
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
656
+ isOptional: false;
657
+ };
658
+ sourceId: {
659
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
660
+ isOptional: true;
661
+ };
662
+ totalXp: {
663
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
664
+ isOptional: false;
665
+ };
666
+ earnedAt: {
667
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
668
+ isOptional: false;
669
+ };
670
+ }>>;
671
+ LevelUpEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
672
+ learnerId: {
673
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
674
+ isOptional: false;
675
+ };
676
+ previousLevel: {
677
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
678
+ isOptional: false;
679
+ };
680
+ newLevel: {
681
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
682
+ isOptional: false;
683
+ };
684
+ totalXp: {
685
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
686
+ isOptional: false;
687
+ };
688
+ leveledUpAt: {
689
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
690
+ isOptional: false;
691
+ };
692
+ }>>;
693
+ StreakUpdatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
694
+ learnerId: {
695
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
696
+ isOptional: false;
697
+ };
698
+ previousStreak: {
699
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
700
+ isOptional: false;
701
+ };
702
+ currentStreak: {
703
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
704
+ isOptional: false;
705
+ };
706
+ longestStreak: {
707
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
708
+ isOptional: false;
709
+ };
710
+ freezeUsed: {
711
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
712
+ isOptional: false;
713
+ };
714
+ updatedAt: {
715
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
716
+ isOptional: false;
717
+ };
718
+ }>>;
719
+ AchievementUnlockedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
720
+ learnerId: {
721
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
722
+ isOptional: false;
723
+ };
724
+ achievementId: {
725
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
726
+ isOptional: false;
727
+ };
728
+ achievementKey: {
729
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
730
+ isOptional: false;
731
+ };
732
+ achievementName: {
733
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
734
+ isOptional: false;
735
+ };
736
+ xpEarned: {
737
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
738
+ isOptional: false;
739
+ };
740
+ unlockedAt: {
741
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
742
+ isOptional: false;
743
+ };
744
+ }>>;
745
+ DailyGoalCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
746
+ learnerId: {
747
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
748
+ isOptional: false;
749
+ };
750
+ date: {
751
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
752
+ isOptional: false;
753
+ };
754
+ targetXp: {
755
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
756
+ isOptional: false;
757
+ };
758
+ actualXp: {
759
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
760
+ isOptional: false;
761
+ };
762
+ completedAt: {
763
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
764
+ isOptional: false;
765
+ };
766
+ }>>;
767
+ CertificateIssuedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
768
+ certificateId: {
769
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
770
+ isOptional: false;
771
+ };
772
+ learnerId: {
773
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
774
+ isOptional: false;
775
+ };
776
+ courseId: {
777
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
778
+ isOptional: false;
779
+ };
780
+ certificateNumber: {
781
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
782
+ isOptional: false;
783
+ };
784
+ issuedAt: {
785
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
786
+ isOptional: false;
787
+ };
788
+ }>>;
793
789
  };
794
- //#endregion
795
- export { AchievementUnlockedEvent, CardReviewedEvent, CertificateIssuedEvent, CourseCompletedEvent, CoursePublishedEvent, DailyGoalCompletedEvent, EnrollmentCreatedEvent, LearningJourneyEvents, LessonCompletedEvent, LevelUpEvent, OnboardingCompletedEvent, OnboardingStartedEvent, OnboardingStepCompletedEvent, QuizCompletedEvent, QuizStartedEvent, StreakUpdatedEvent, XpEarnedEvent };
796
790
  //# sourceMappingURL=events.d.ts.map