@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.
- package/dist/browser/contracts/index.js +578 -0
- package/dist/browser/contracts/models.js +193 -0
- package/dist/browser/contracts/onboarding.js +417 -0
- package/dist/browser/contracts/operations.js +326 -0
- package/dist/browser/contracts/shared.js +5 -0
- package/dist/browser/docs/index.js +124 -0
- package/dist/browser/docs/learning-journey.docblock.js +124 -0
- package/dist/browser/engines/index.js +526 -0
- package/dist/browser/engines/srs.js +198 -0
- package/dist/browser/engines/streak.js +159 -0
- package/dist/browser/engines/xp.js +171 -0
- package/dist/browser/entities/ai.js +343 -0
- package/dist/browser/entities/course.js +276 -0
- package/dist/browser/entities/flashcard.js +222 -0
- package/dist/browser/entities/gamification.js +340 -0
- package/dist/browser/entities/index.js +2136 -0
- package/dist/browser/entities/learner.js +329 -0
- package/dist/browser/entities/onboarding.js +301 -0
- package/dist/browser/entities/quiz.js +304 -0
- package/dist/browser/events.js +423 -0
- package/dist/browser/index.js +3833 -0
- package/dist/browser/learning-journey.capability.js +40 -0
- package/dist/browser/learning-journey.feature.js +56 -0
- package/dist/browser/track-spec.js +0 -0
- package/dist/contracts/index.d.ts +5 -5
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/index.js +578 -5
- package/dist/contracts/models.d.ts +426 -431
- package/dist/contracts/models.d.ts.map +1 -1
- package/dist/contracts/models.js +178 -372
- package/dist/contracts/onboarding.d.ts +621 -627
- package/dist/contracts/onboarding.d.ts.map +1 -1
- package/dist/contracts/onboarding.js +404 -388
- package/dist/contracts/operations.d.ts +243 -249
- package/dist/contracts/operations.d.ts.map +1 -1
- package/dist/contracts/operations.js +324 -148
- package/dist/contracts/shared.d.ts +1 -4
- package/dist/contracts/shared.d.ts.map +1 -1
- package/dist/contracts/shared.js +6 -6
- package/dist/docs/index.d.ts +2 -1
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +125 -1
- package/dist/docs/learning-journey.docblock.d.ts +2 -1
- package/dist/docs/learning-journey.docblock.d.ts.map +1 -0
- package/dist/docs/learning-journey.docblock.js +47 -58
- package/dist/engines/index.d.ts +4 -4
- package/dist/engines/index.d.ts.map +1 -0
- package/dist/engines/index.js +526 -4
- package/dist/engines/srs.d.ts +89 -92
- package/dist/engines/srs.d.ts.map +1 -1
- package/dist/engines/srs.js +197 -217
- package/dist/engines/streak.d.ts +84 -87
- package/dist/engines/streak.d.ts.map +1 -1
- package/dist/engines/streak.js +158 -192
- package/dist/engines/xp.d.ts +80 -83
- package/dist/engines/xp.d.ts.map +1 -1
- package/dist/engines/xp.js +170 -211
- package/dist/entities/ai.d.ts +199 -204
- package/dist/entities/ai.d.ts.map +1 -1
- package/dist/entities/ai.js +336 -368
- package/dist/entities/course.d.ts +149 -154
- package/dist/entities/course.d.ts.map +1 -1
- package/dist/entities/course.js +267 -306
- package/dist/entities/flashcard.d.ts +144 -149
- package/dist/entities/flashcard.d.ts.map +1 -1
- package/dist/entities/flashcard.js +217 -243
- package/dist/entities/gamification.d.ts +197 -202
- package/dist/entities/gamification.d.ts.map +1 -1
- package/dist/entities/gamification.js +331 -382
- package/dist/entities/index.d.ts +613 -618
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +2135 -43
- package/dist/entities/learner.d.ts +191 -196
- package/dist/entities/learner.d.ts.map +1 -1
- package/dist/entities/learner.js +322 -357
- package/dist/entities/onboarding.d.ts +164 -169
- package/dist/entities/onboarding.d.ts.map +1 -1
- package/dist/entities/onboarding.js +296 -301
- package/dist/entities/quiz.d.ts +184 -189
- package/dist/entities/quiz.d.ts.map +1 -1
- package/dist/entities/quiz.js +296 -361
- package/dist/events.d.ts +608 -614
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +421 -687
- package/dist/index.d.ts +8 -20
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3834 -22
- package/dist/learning-journey.capability.d.ts +3 -8
- package/dist/learning-journey.capability.d.ts.map +1 -1
- package/dist/learning-journey.capability.js +41 -46
- package/dist/learning-journey.feature.d.ts +1 -6
- package/dist/learning-journey.feature.d.ts.map +1 -1
- package/dist/learning-journey.feature.js +55 -155
- package/dist/node/contracts/index.js +578 -0
- package/dist/node/contracts/models.js +193 -0
- package/dist/node/contracts/onboarding.js +417 -0
- package/dist/node/contracts/operations.js +326 -0
- package/dist/node/contracts/shared.js +5 -0
- package/dist/node/docs/index.js +124 -0
- package/dist/node/docs/learning-journey.docblock.js +124 -0
- package/dist/node/engines/index.js +526 -0
- package/dist/node/engines/srs.js +198 -0
- package/dist/node/engines/streak.js +159 -0
- package/dist/node/engines/xp.js +171 -0
- package/dist/node/entities/ai.js +343 -0
- package/dist/node/entities/course.js +276 -0
- package/dist/node/entities/flashcard.js +222 -0
- package/dist/node/entities/gamification.js +340 -0
- package/dist/node/entities/index.js +2136 -0
- package/dist/node/entities/learner.js +329 -0
- package/dist/node/entities/onboarding.js +301 -0
- package/dist/node/entities/quiz.js +304 -0
- package/dist/node/events.js +423 -0
- package/dist/node/index.js +3833 -0
- package/dist/node/learning-journey.capability.js +40 -0
- package/dist/node/learning-journey.feature.js +56 -0
- package/dist/node/track-spec.js +0 -0
- package/dist/track-spec.d.ts +115 -118
- package/dist/track-spec.d.ts.map +1 -1
- package/dist/track-spec.js +1 -0
- package/package.json +237 -60
- package/dist/contracts/models.js.map +0 -1
- package/dist/contracts/onboarding.js.map +0 -1
- package/dist/contracts/operations.js.map +0 -1
- package/dist/contracts/shared.js.map +0 -1
- package/dist/docs/learning-journey.docblock.js.map +0 -1
- package/dist/engines/srs.js.map +0 -1
- package/dist/engines/streak.js.map +0 -1
- package/dist/engines/xp.js.map +0 -1
- package/dist/entities/ai.js.map +0 -1
- package/dist/entities/course.js.map +0 -1
- package/dist/entities/flashcard.js.map +0 -1
- package/dist/entities/gamification.js.map +0 -1
- package/dist/entities/index.js.map +0 -1
- package/dist/entities/learner.js.map +0 -1
- package/dist/entities/onboarding.js.map +0 -1
- package/dist/entities/quiz.js.map +0 -1
- package/dist/events.js.map +0 -1
- package/dist/learning-journey.capability.js.map +0 -1
- 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:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}>,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}>,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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:
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
|
|
119
|
-
type:
|
|
72
|
+
};
|
|
73
|
+
rating: {
|
|
74
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
120
75
|
isOptional: false;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
type:
|
|
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
|
-
|
|
131
|
-
|
|
80
|
+
};
|
|
81
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
82
|
+
success: {
|
|
83
|
+
type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
|
|
132
84
|
isOptional: false;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
type:
|
|
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
|
|
92
|
+
* Get cards due for review.
|
|
149
93
|
*/
|
|
150
|
-
declare const
|
|
151
|
-
|
|
152
|
-
|
|
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
|
-
|
|
171
|
-
type:
|
|
172
|
-
isOptional:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
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
|
-
|
|
216
|
-
type:
|
|
137
|
+
};
|
|
138
|
+
total: {
|
|
139
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
217
140
|
isOptional: false;
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
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
|
-
|
|
224
|
-
type:
|
|
188
|
+
};
|
|
189
|
+
currentStreak: {
|
|
190
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
225
191
|
isOptional: false;
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
type:
|
|
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
|
-
|
|
246
|
-
type:
|
|
196
|
+
};
|
|
197
|
+
dailyXpProgress: {
|
|
198
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
247
199
|
isOptional: false;
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
type:
|
|
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
|
-
|
|
254
|
-
type:
|
|
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
|
-
|
|
258
|
-
type:
|
|
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","
|
|
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"}
|