@neutron.co.id/pendidikan-operation 1.4.2 → 1.4.3
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/build/index.cjs +60 -0
- package/build/index.d.ts +30 -1
- package/build/index.mjs +60 -1
- package/package.json +2 -2
package/build/index.cjs
CHANGED
|
@@ -136,6 +136,64 @@ const syncCommitment = operation.Action.define({
|
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
138
|
|
|
139
|
+
const getStudentId = operation.Action.define({
|
|
140
|
+
key: "getStudentId",
|
|
141
|
+
name: "Get StudentId",
|
|
142
|
+
type: "command",
|
|
143
|
+
category: "domain",
|
|
144
|
+
execute: async (input, stream) => {
|
|
145
|
+
const dbs = stream.core.dbs;
|
|
146
|
+
const dbStudent = dbs["neu-akademik"].models["neu:akademik:student"];
|
|
147
|
+
const findStudent = await dbStudent.findOne({ userId: input.userId });
|
|
148
|
+
const dbQuestion = dbs["neu-tanya"].models["neu:tanya:question"];
|
|
149
|
+
const findQuestion = await dbQuestion.find({ studentId: findStudent.id });
|
|
150
|
+
const dbClassGroup = dbs["neu-jadwal"].models["neu:jadwal:classGroup"];
|
|
151
|
+
const findClassGroup = await dbClassGroup.find({
|
|
152
|
+
studentId: findStudent.id
|
|
153
|
+
});
|
|
154
|
+
const dbClassActivity = dbs["neu-jadwal"].models["neu:jadwal:classActivity"];
|
|
155
|
+
const findClassActivity = await dbClassActivity.find({
|
|
156
|
+
studentId: findStudent.id
|
|
157
|
+
});
|
|
158
|
+
const dbClassAttendance = dbs["neu-jadwal"].models["neu:jadwal:classAttendance"];
|
|
159
|
+
const findClassAttendance = await dbClassAttendance.find({
|
|
160
|
+
studentId: findStudent.id
|
|
161
|
+
});
|
|
162
|
+
const dbClassSession = dbs["neu-jadwal"].models["neu:jadwal:classSession"];
|
|
163
|
+
const findClassSession = await dbClassSession.find({
|
|
164
|
+
studentId: findStudent.id
|
|
165
|
+
});
|
|
166
|
+
const dbClassConsultation = dbs["neu-jadwal"].models["neu:jadwal:classConsultation"];
|
|
167
|
+
const findClassConsultation = await dbClassConsultation.find({
|
|
168
|
+
studentId: findStudent.id
|
|
169
|
+
});
|
|
170
|
+
const dbGrading = dbs["neu-penilaian"].models["neu:penilaian:grading"];
|
|
171
|
+
const findGrading = await dbGrading.find({
|
|
172
|
+
studentId: findStudent.id
|
|
173
|
+
});
|
|
174
|
+
const dbGradingR = dbs["neu-penilaian"].models["neu:penilaian:gradingRasionalization"];
|
|
175
|
+
const findGradingRasionalization = await dbGradingR.find({
|
|
176
|
+
studentId: findStudent.id
|
|
177
|
+
});
|
|
178
|
+
return core.Result.ok({
|
|
179
|
+
state: "StudentIdGet",
|
|
180
|
+
message: "StudentId has been get.",
|
|
181
|
+
data: {
|
|
182
|
+
studentId: findStudent.id,
|
|
183
|
+
questionCount: findQuestion.length,
|
|
184
|
+
classGroupCount: findClassGroup.length,
|
|
185
|
+
classActivityCount: findClassActivity.length,
|
|
186
|
+
classAttendanceCount: findClassAttendance.length,
|
|
187
|
+
classSessionCount: findClassSession.length,
|
|
188
|
+
classConsultationCount: findClassConsultation.length,
|
|
189
|
+
// checkInCount: findCheckIn.length,
|
|
190
|
+
gradingCount: findGrading.length,
|
|
191
|
+
gradingRasionalizationCount: findGradingRasionalization.length
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
|
|
139
197
|
const prepareConflict = operation.Action.define({
|
|
140
198
|
key: "prepareConflict",
|
|
141
199
|
name: "Prepare Conflict",
|
|
@@ -1220,6 +1278,7 @@ const index = {
|
|
|
1220
1278
|
createGradingAndScores: createGradingAndScores,
|
|
1221
1279
|
editAnswer: editAnswer,
|
|
1222
1280
|
generateGrading: generateGrading,
|
|
1281
|
+
getStudentId: getStudentId,
|
|
1223
1282
|
hasUnderstand: hasUnderstand,
|
|
1224
1283
|
notUnderstand: notUnderstand,
|
|
1225
1284
|
prepareConflict: prepareConflict,
|
|
@@ -1244,6 +1303,7 @@ exports.clearGrading = clearGrading;
|
|
|
1244
1303
|
exports.createGradingAndScores = createGradingAndScores;
|
|
1245
1304
|
exports.editAnswer = editAnswer;
|
|
1246
1305
|
exports.generateGrading = generateGrading;
|
|
1306
|
+
exports.getStudentId = getStudentId;
|
|
1247
1307
|
exports.hasUnderstand = hasUnderstand;
|
|
1248
1308
|
exports.notUnderstand = notUnderstand;
|
|
1249
1309
|
exports.prepareConflict = prepareConflict;
|
package/build/index.d.ts
CHANGED
|
@@ -43,6 +43,25 @@ interface SyncCommitmentMeta {
|
|
|
43
43
|
declare const syncCommitment: Action<"syncCommitment", SyncCommitmentInput, SyncCommitmentOutput, SyncCommitmentMeta>;
|
|
44
44
|
type SyncCommitmentAction = typeof syncCommitment;
|
|
45
45
|
|
|
46
|
+
interface GetStudentIdInput {
|
|
47
|
+
userId: string;
|
|
48
|
+
}
|
|
49
|
+
interface GetStudentIdOutput {
|
|
50
|
+
studentId: string;
|
|
51
|
+
questionCount: number;
|
|
52
|
+
classGroupCount: number;
|
|
53
|
+
classActivityCount: number;
|
|
54
|
+
classAttendanceCount: number;
|
|
55
|
+
classSessionCount: number;
|
|
56
|
+
classConsultationCount: number;
|
|
57
|
+
gradingCount: number;
|
|
58
|
+
gradingRasionalizationCount: number;
|
|
59
|
+
}
|
|
60
|
+
interface GetStudentIdMeta {
|
|
61
|
+
}
|
|
62
|
+
declare const getStudentId: Action<"getStudentId", GetStudentIdInput, GetStudentIdOutput, GetStudentIdMeta>;
|
|
63
|
+
type GetStudentIdAction = typeof getStudentId;
|
|
64
|
+
|
|
46
65
|
interface PrepareConflictInput {
|
|
47
66
|
userId: string;
|
|
48
67
|
startedAt: string;
|
|
@@ -276,6 +295,10 @@ type index_GenerateGradingAction = GenerateGradingAction;
|
|
|
276
295
|
type index_GenerateGradingInput = GenerateGradingInput;
|
|
277
296
|
type index_GenerateGradingMeta = GenerateGradingMeta;
|
|
278
297
|
type index_GenerateGradingOutput = GenerateGradingOutput;
|
|
298
|
+
type index_GetStudentIdAction = GetStudentIdAction;
|
|
299
|
+
type index_GetStudentIdInput = GetStudentIdInput;
|
|
300
|
+
type index_GetStudentIdMeta = GetStudentIdMeta;
|
|
301
|
+
type index_GetStudentIdOutput = GetStudentIdOutput;
|
|
279
302
|
type index_GradingComparator = GradingComparator;
|
|
280
303
|
type index_GradingComparatorComparison = GradingComparatorComparison;
|
|
281
304
|
type index_HasUnderstandAction = HasUnderstandAction;
|
|
@@ -332,6 +355,7 @@ declare const index_clearGrading: typeof clearGrading;
|
|
|
332
355
|
declare const index_createGradingAndScores: typeof createGradingAndScores;
|
|
333
356
|
declare const index_editAnswer: typeof editAnswer;
|
|
334
357
|
declare const index_generateGrading: typeof generateGrading;
|
|
358
|
+
declare const index_getStudentId: typeof getStudentId;
|
|
335
359
|
declare const index_hasUnderstand: typeof hasUnderstand;
|
|
336
360
|
declare const index_notUnderstand: typeof notUnderstand;
|
|
337
361
|
declare const index_prepareConflict: typeof prepareConflict;
|
|
@@ -381,6 +405,10 @@ declare namespace index {
|
|
|
381
405
|
index_GenerateGradingInput as GenerateGradingInput,
|
|
382
406
|
index_GenerateGradingMeta as GenerateGradingMeta,
|
|
383
407
|
index_GenerateGradingOutput as GenerateGradingOutput,
|
|
408
|
+
index_GetStudentIdAction as GetStudentIdAction,
|
|
409
|
+
index_GetStudentIdInput as GetStudentIdInput,
|
|
410
|
+
index_GetStudentIdMeta as GetStudentIdMeta,
|
|
411
|
+
index_GetStudentIdOutput as GetStudentIdOutput,
|
|
384
412
|
index_GradingComparator as GradingComparator,
|
|
385
413
|
index_GradingComparatorComparison as GradingComparatorComparison,
|
|
386
414
|
index_HasUnderstandAction as HasUnderstandAction,
|
|
@@ -437,6 +465,7 @@ declare namespace index {
|
|
|
437
465
|
index_createGradingAndScores as createGradingAndScores,
|
|
438
466
|
index_editAnswer as editAnswer,
|
|
439
467
|
index_generateGrading as generateGrading,
|
|
468
|
+
index_getStudentId as getStudentId,
|
|
440
469
|
index_hasUnderstand as hasUnderstand,
|
|
441
470
|
index_notUnderstand as notUnderstand,
|
|
442
471
|
index_prepareConflict as prepareConflict,
|
|
@@ -451,4 +480,4 @@ declare namespace index {
|
|
|
451
480
|
};
|
|
452
481
|
}
|
|
453
482
|
|
|
454
|
-
export { AcceptQuestionAction, AcceptQuestionInput, AcceptQuestionMeta, AcceptQuestionOutput, CalculateGradingAction, CalculateGradingInput, CalculateGradingMeta, CalculateGradingOutput, CalculateManyComparatorAction, CalculateManyComparatorInput, CalculateManyComparatorMeta, CalculateManyComparatorOutput, CalculateOneComparatorAction, CalculateOneComparatorInput, CalculateOneComparatorMeta, CalculateOneComparatorOutput, ClearAllOverridesAction, ClearAllOverridesInput, ClearAllOverridesMeta, ClearAllOverridesOutput, ClearGradingAction, ClearGradingInput, ClearGradingMeta, ClearGradingOutput, CreateGradingAndScoresAction, CreateGradingAndScoresInput, CreateGradingAndScoresMeta, CreateGradingAndScoresOutput, EditAnswerAction, EditAnswerInput, EditAnswerMeta, EditAnswerOutput, GenerateGradingAction, GenerateGradingInput, GenerateGradingMeta, GenerateGradingOutput, GradingComparator, GradingComparatorComparison, HasUnderstandAction, HasUnderstandInput, HasUnderstandMeta, HasUnderstandOutput, NotUnderstandAction, NotUnderstandInput, NotUnderstandMeta, NotUnderstandOutput, PrepareConflictAction, PrepareConflictInput, PrepareConflictMeta, PrepareConflictOutput, PresenceSessionStudentAction, PresenceSessionStudentInput, PresenceSessionStudentMeta, PresenceSessionStudentOutput, PresenceSessionTeacherAction, PresenceSessionTeacherInput, PresenceSessionTeacherMeta, PresenceSessionTeacherOutput, RasionalizeGradingAction, RasionalizeGradingInput, RasionalizeGradingMeta, RasionalizeGradingOutput, SendAnswerAction, SendAnswerInput, SendAnswerMeta, SendAnswerOutput, SendQuestionAction, SendQuestionInput, SendQuestionMeta, SendQuestionOutput, SetSomethingAction, SetSomethingInput, SetSomethingMeta, SetSomethingOutput, SyncCommitmentAction, SyncCommitmentInput, SyncCommitmentMeta, SyncCommitmentOutput, UpdateGradingAndScoresAction, UpdateGradingAndScoresInput, UpdateGradingAndScoresMeta, UpdateGradingAndScoresOutput, _calculateComparison, acceptQuestion, index as actions, calculateGrading, calculateManyComparator, calculateOneComparator, clearAllOverrides, clearGrading, createGradingAndScores, editAnswer, generateGrading, hasUnderstand, notUnderstand, prepareConflict, presenceSessionStudent, presenceSessionTeacher, rasionalizeGrading, sendAnswer, sendQuestion, setSomething, syncCommitment, updateGradingAndScores };
|
|
483
|
+
export { AcceptQuestionAction, AcceptQuestionInput, AcceptQuestionMeta, AcceptQuestionOutput, CalculateGradingAction, CalculateGradingInput, CalculateGradingMeta, CalculateGradingOutput, CalculateManyComparatorAction, CalculateManyComparatorInput, CalculateManyComparatorMeta, CalculateManyComparatorOutput, CalculateOneComparatorAction, CalculateOneComparatorInput, CalculateOneComparatorMeta, CalculateOneComparatorOutput, ClearAllOverridesAction, ClearAllOverridesInput, ClearAllOverridesMeta, ClearAllOverridesOutput, ClearGradingAction, ClearGradingInput, ClearGradingMeta, ClearGradingOutput, CreateGradingAndScoresAction, CreateGradingAndScoresInput, CreateGradingAndScoresMeta, CreateGradingAndScoresOutput, EditAnswerAction, EditAnswerInput, EditAnswerMeta, EditAnswerOutput, GenerateGradingAction, GenerateGradingInput, GenerateGradingMeta, GenerateGradingOutput, GetStudentIdAction, GetStudentIdInput, GetStudentIdMeta, GetStudentIdOutput, GradingComparator, GradingComparatorComparison, HasUnderstandAction, HasUnderstandInput, HasUnderstandMeta, HasUnderstandOutput, NotUnderstandAction, NotUnderstandInput, NotUnderstandMeta, NotUnderstandOutput, PrepareConflictAction, PrepareConflictInput, PrepareConflictMeta, PrepareConflictOutput, PresenceSessionStudentAction, PresenceSessionStudentInput, PresenceSessionStudentMeta, PresenceSessionStudentOutput, PresenceSessionTeacherAction, PresenceSessionTeacherInput, PresenceSessionTeacherMeta, PresenceSessionTeacherOutput, RasionalizeGradingAction, RasionalizeGradingInput, RasionalizeGradingMeta, RasionalizeGradingOutput, SendAnswerAction, SendAnswerInput, SendAnswerMeta, SendAnswerOutput, SendQuestionAction, SendQuestionInput, SendQuestionMeta, SendQuestionOutput, SetSomethingAction, SetSomethingInput, SetSomethingMeta, SetSomethingOutput, SyncCommitmentAction, SyncCommitmentInput, SyncCommitmentMeta, SyncCommitmentOutput, UpdateGradingAndScoresAction, UpdateGradingAndScoresInput, UpdateGradingAndScoresMeta, UpdateGradingAndScoresOutput, _calculateComparison, acceptQuestion, index as actions, calculateGrading, calculateManyComparator, calculateOneComparator, clearAllOverrides, clearGrading, createGradingAndScores, editAnswer, generateGrading, getStudentId, hasUnderstand, notUnderstand, prepareConflict, presenceSessionStudent, presenceSessionTeacher, rasionalizeGrading, sendAnswer, sendQuestion, setSomething, syncCommitment, updateGradingAndScores };
|
package/build/index.mjs
CHANGED
|
@@ -134,6 +134,64 @@ const syncCommitment = Action.define({
|
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
|
|
137
|
+
const getStudentId = Action.define({
|
|
138
|
+
key: "getStudentId",
|
|
139
|
+
name: "Get StudentId",
|
|
140
|
+
type: "command",
|
|
141
|
+
category: "domain",
|
|
142
|
+
execute: async (input, stream) => {
|
|
143
|
+
const dbs = stream.core.dbs;
|
|
144
|
+
const dbStudent = dbs["neu-akademik"].models["neu:akademik:student"];
|
|
145
|
+
const findStudent = await dbStudent.findOne({ userId: input.userId });
|
|
146
|
+
const dbQuestion = dbs["neu-tanya"].models["neu:tanya:question"];
|
|
147
|
+
const findQuestion = await dbQuestion.find({ studentId: findStudent.id });
|
|
148
|
+
const dbClassGroup = dbs["neu-jadwal"].models["neu:jadwal:classGroup"];
|
|
149
|
+
const findClassGroup = await dbClassGroup.find({
|
|
150
|
+
studentId: findStudent.id
|
|
151
|
+
});
|
|
152
|
+
const dbClassActivity = dbs["neu-jadwal"].models["neu:jadwal:classActivity"];
|
|
153
|
+
const findClassActivity = await dbClassActivity.find({
|
|
154
|
+
studentId: findStudent.id
|
|
155
|
+
});
|
|
156
|
+
const dbClassAttendance = dbs["neu-jadwal"].models["neu:jadwal:classAttendance"];
|
|
157
|
+
const findClassAttendance = await dbClassAttendance.find({
|
|
158
|
+
studentId: findStudent.id
|
|
159
|
+
});
|
|
160
|
+
const dbClassSession = dbs["neu-jadwal"].models["neu:jadwal:classSession"];
|
|
161
|
+
const findClassSession = await dbClassSession.find({
|
|
162
|
+
studentId: findStudent.id
|
|
163
|
+
});
|
|
164
|
+
const dbClassConsultation = dbs["neu-jadwal"].models["neu:jadwal:classConsultation"];
|
|
165
|
+
const findClassConsultation = await dbClassConsultation.find({
|
|
166
|
+
studentId: findStudent.id
|
|
167
|
+
});
|
|
168
|
+
const dbGrading = dbs["neu-penilaian"].models["neu:penilaian:grading"];
|
|
169
|
+
const findGrading = await dbGrading.find({
|
|
170
|
+
studentId: findStudent.id
|
|
171
|
+
});
|
|
172
|
+
const dbGradingR = dbs["neu-penilaian"].models["neu:penilaian:gradingRasionalization"];
|
|
173
|
+
const findGradingRasionalization = await dbGradingR.find({
|
|
174
|
+
studentId: findStudent.id
|
|
175
|
+
});
|
|
176
|
+
return Result.ok({
|
|
177
|
+
state: "StudentIdGet",
|
|
178
|
+
message: "StudentId has been get.",
|
|
179
|
+
data: {
|
|
180
|
+
studentId: findStudent.id,
|
|
181
|
+
questionCount: findQuestion.length,
|
|
182
|
+
classGroupCount: findClassGroup.length,
|
|
183
|
+
classActivityCount: findClassActivity.length,
|
|
184
|
+
classAttendanceCount: findClassAttendance.length,
|
|
185
|
+
classSessionCount: findClassSession.length,
|
|
186
|
+
classConsultationCount: findClassConsultation.length,
|
|
187
|
+
// checkInCount: findCheckIn.length,
|
|
188
|
+
gradingCount: findGrading.length,
|
|
189
|
+
gradingRasionalizationCount: findGradingRasionalization.length
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
|
|
137
195
|
const prepareConflict = Action.define({
|
|
138
196
|
key: "prepareConflict",
|
|
139
197
|
name: "Prepare Conflict",
|
|
@@ -1218,6 +1276,7 @@ const index = {
|
|
|
1218
1276
|
createGradingAndScores: createGradingAndScores,
|
|
1219
1277
|
editAnswer: editAnswer,
|
|
1220
1278
|
generateGrading: generateGrading,
|
|
1279
|
+
getStudentId: getStudentId,
|
|
1221
1280
|
hasUnderstand: hasUnderstand,
|
|
1222
1281
|
notUnderstand: notUnderstand,
|
|
1223
1282
|
prepareConflict: prepareConflict,
|
|
@@ -1231,4 +1290,4 @@ const index = {
|
|
|
1231
1290
|
updateGradingAndScores: updateGradingAndScores
|
|
1232
1291
|
};
|
|
1233
1292
|
|
|
1234
|
-
export { _calculateComparison, acceptQuestion, index as actions, calculateGrading, calculateManyComparator, calculateOneComparator, clearAllOverrides, clearGrading, createGradingAndScores, editAnswer, generateGrading, hasUnderstand, notUnderstand, prepareConflict, presenceSessionStudent, presenceSessionTeacher, rasionalizeGrading, sendAnswer, sendQuestion, setSomething, syncCommitment, updateGradingAndScores };
|
|
1293
|
+
export { _calculateComparison, acceptQuestion, index as actions, calculateGrading, calculateManyComparator, calculateOneComparator, clearAllOverrides, clearGrading, createGradingAndScores, editAnswer, generateGrading, getStudentId, hasUnderstand, notUnderstand, prepareConflict, presenceSessionStudent, presenceSessionTeacher, rasionalizeGrading, sendAnswer, sendQuestion, setSomething, syncCommitment, updateGradingAndScores };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/pendidikan-operation",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"description": "Operation package of Neutron Pendidikan.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"contributors": [
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"build":
|
|
80
|
+
"build": 26
|
|
81
81
|
}
|