@neutron.co.id/pendidikan-operation 1.7.0 → 1.9.0-beta.1
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 +66 -4
- package/build/index.d.ts +21 -1
- package/build/index.mjs +66 -5
- package/package.json +32 -32
package/build/index.cjs
CHANGED
|
@@ -893,6 +893,9 @@ async function _getManyComparators(stream) {
|
|
|
893
893
|
{
|
|
894
894
|
model: "neu:penilaian:gradingComparator",
|
|
895
895
|
query: query.Query.define({
|
|
896
|
+
filter: {
|
|
897
|
+
stageId: "61cd53e6cec5d0bd74f1237c"
|
|
898
|
+
},
|
|
896
899
|
fields: {
|
|
897
900
|
id: 1,
|
|
898
901
|
overrideComparison: 1,
|
|
@@ -962,15 +965,15 @@ function _calculateComparison(o) {
|
|
|
962
965
|
};
|
|
963
966
|
}
|
|
964
967
|
final[gradingComponentId].total += value;
|
|
965
|
-
final[gradingComponentId].count
|
|
968
|
+
final[gradingComponentId].count = value === 0 ? final[gradingComponentId].count + 0 : final[gradingComponentId].count + 1;
|
|
966
969
|
final[gradingComponentId].max = Math.max(
|
|
967
970
|
final[gradingComponentId].max,
|
|
968
971
|
value
|
|
969
972
|
);
|
|
970
|
-
final[gradingComponentId].min = Math.min(
|
|
973
|
+
final[gradingComponentId].min = value === 0 ? Math.min(
|
|
971
974
|
final[gradingComponentId].min,
|
|
972
|
-
|
|
973
|
-
);
|
|
975
|
+
final[gradingComponentId].max
|
|
976
|
+
) : Math.min(final[gradingComponentId].min, value);
|
|
974
977
|
}
|
|
975
978
|
for (const gradingComponentId of Object.keys(final)) {
|
|
976
979
|
const average = final[gradingComponentId].total / final[gradingComponentId].count;
|
|
@@ -1131,6 +1134,36 @@ async function _getGradingInsert(stream, gradingInsertId) {
|
|
|
1131
1134
|
return result.value;
|
|
1132
1135
|
}
|
|
1133
1136
|
|
|
1137
|
+
const clearOneOverrides = operation.Action.define({
|
|
1138
|
+
key: "clearOneOverrides",
|
|
1139
|
+
name: "Clear One Overrides",
|
|
1140
|
+
type: "command",
|
|
1141
|
+
category: "domain",
|
|
1142
|
+
execute: async ({ gradingComparatorId }, stream) => {
|
|
1143
|
+
console.time("\u23F1\uFE0F clearOneOverrides");
|
|
1144
|
+
await _clearOneOverrides(stream, gradingComparatorId);
|
|
1145
|
+
console.timeEnd("\u23F1\uFE0F clearOneOverrides");
|
|
1146
|
+
return core.Result.ok({
|
|
1147
|
+
state: "overridesCleared",
|
|
1148
|
+
message: "Overrides have been cleared.",
|
|
1149
|
+
data: {}
|
|
1150
|
+
});
|
|
1151
|
+
}
|
|
1152
|
+
});
|
|
1153
|
+
async function _clearOneOverrides(stream, gradingComparatorId) {
|
|
1154
|
+
await stream.actions.data.updateOne.execute(
|
|
1155
|
+
{
|
|
1156
|
+
model: "neu:penilaian:gradingComparator",
|
|
1157
|
+
id: gradingComparatorId,
|
|
1158
|
+
data: { overrideComparison: {} },
|
|
1159
|
+
query: query.Query.define({
|
|
1160
|
+
limit: 1e4
|
|
1161
|
+
})
|
|
1162
|
+
},
|
|
1163
|
+
stream
|
|
1164
|
+
);
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1134
1167
|
const createGradingAndScores = operation.Action.define({
|
|
1135
1168
|
key: "createGradingAndScores",
|
|
1136
1169
|
name: "Create Penilaian dan Score",
|
|
@@ -1639,6 +1672,7 @@ const index = {
|
|
|
1639
1672
|
calculateOneComparator: calculateOneComparator,
|
|
1640
1673
|
clearAllOverrides: clearAllOverrides,
|
|
1641
1674
|
clearGrading: clearGrading,
|
|
1675
|
+
clearOneOverrides: clearOneOverrides,
|
|
1642
1676
|
createGradingAndScores: createGradingAndScores,
|
|
1643
1677
|
createManySession: createManySession,
|
|
1644
1678
|
editAnswer: editAnswer,
|
|
@@ -1737,6 +1771,33 @@ function registerOfficePendidikanHooks(hook) {
|
|
|
1737
1771
|
payload.input.data["code"] = getCode();
|
|
1738
1772
|
}
|
|
1739
1773
|
);
|
|
1774
|
+
hook.onExecute(
|
|
1775
|
+
"action:neu:jadwal:classSession:updateOne:after",
|
|
1776
|
+
async (payload, _meta, stream) => {
|
|
1777
|
+
console.log(payload);
|
|
1778
|
+
const result = await stream.actions.data.syncMany.execute(
|
|
1779
|
+
{
|
|
1780
|
+
model: "neu:jadwal:classSession",
|
|
1781
|
+
// id: payload.input.id,
|
|
1782
|
+
useDry: false,
|
|
1783
|
+
query: query.Query.define({
|
|
1784
|
+
filter: {
|
|
1785
|
+
_id: payload.input.id
|
|
1786
|
+
}
|
|
1787
|
+
})
|
|
1788
|
+
},
|
|
1789
|
+
stream
|
|
1790
|
+
);
|
|
1791
|
+
return result;
|
|
1792
|
+
}
|
|
1793
|
+
);
|
|
1794
|
+
hook.onTransform(
|
|
1795
|
+
"action:neu:jadwal:classSession:getMany:query",
|
|
1796
|
+
async (payload) => {
|
|
1797
|
+
console.dir(payload.filter, { depth: 10 });
|
|
1798
|
+
return payload;
|
|
1799
|
+
}
|
|
1800
|
+
);
|
|
1740
1801
|
}
|
|
1741
1802
|
|
|
1742
1803
|
exports._calculateComparison = _calculateComparison;
|
|
@@ -1749,6 +1810,7 @@ exports.calculateManyComparator = calculateManyComparator;
|
|
|
1749
1810
|
exports.calculateOneComparator = calculateOneComparator;
|
|
1750
1811
|
exports.clearAllOverrides = clearAllOverrides;
|
|
1751
1812
|
exports.clearGrading = clearGrading;
|
|
1813
|
+
exports.clearOneOverrides = clearOneOverrides;
|
|
1752
1814
|
exports.createGradingAndScores = createGradingAndScores;
|
|
1753
1815
|
exports.createManySession = createManySession;
|
|
1754
1816
|
exports.editAnswer = editAnswer;
|
package/build/index.d.ts
CHANGED
|
@@ -221,6 +221,16 @@ interface ClearGradingMeta {
|
|
|
221
221
|
declare const clearGrading: Action<"clearGrading", ClearGradingInput, ClearGradingOutput, ClearGradingMeta>;
|
|
222
222
|
type ClearGradingAction = typeof clearGrading;
|
|
223
223
|
|
|
224
|
+
interface ClearOneOverridesInput {
|
|
225
|
+
gradingComparatorId: string;
|
|
226
|
+
}
|
|
227
|
+
interface ClearOneOverridesOutput {
|
|
228
|
+
}
|
|
229
|
+
interface ClearOneOverridesMeta {
|
|
230
|
+
}
|
|
231
|
+
declare const clearOneOverrides: Action<"clearOneOverrides", ClearOneOverridesInput, ClearOneOverridesOutput, ClearOneOverridesMeta>;
|
|
232
|
+
type ClearOneOverridesAction = typeof clearOneOverrides;
|
|
233
|
+
|
|
224
234
|
interface CreateGradingAndScoresInput {
|
|
225
235
|
gradingTypeId: string;
|
|
226
236
|
studentId: string;
|
|
@@ -398,6 +408,10 @@ type index_ClearGradingAction = ClearGradingAction;
|
|
|
398
408
|
type index_ClearGradingInput = ClearGradingInput;
|
|
399
409
|
type index_ClearGradingMeta = ClearGradingMeta;
|
|
400
410
|
type index_ClearGradingOutput = ClearGradingOutput;
|
|
411
|
+
type index_ClearOneOverridesAction = ClearOneOverridesAction;
|
|
412
|
+
type index_ClearOneOverridesInput = ClearOneOverridesInput;
|
|
413
|
+
type index_ClearOneOverridesMeta = ClearOneOverridesMeta;
|
|
414
|
+
type index_ClearOneOverridesOutput = ClearOneOverridesOutput;
|
|
401
415
|
type index_CreateGradingAndScoresAction = CreateGradingAndScoresAction;
|
|
402
416
|
type index_CreateGradingAndScoresInput = CreateGradingAndScoresInput;
|
|
403
417
|
type index_CreateGradingAndScoresMeta = CreateGradingAndScoresMeta;
|
|
@@ -493,6 +507,7 @@ declare const index_calculateManyComparator: typeof calculateManyComparator;
|
|
|
493
507
|
declare const index_calculateOneComparator: typeof calculateOneComparator;
|
|
494
508
|
declare const index_clearAllOverrides: typeof clearAllOverrides;
|
|
495
509
|
declare const index_clearGrading: typeof clearGrading;
|
|
510
|
+
declare const index_clearOneOverrides: typeof clearOneOverrides;
|
|
496
511
|
declare const index_createGradingAndScores: typeof createGradingAndScores;
|
|
497
512
|
declare const index_createManySession: typeof createManySession;
|
|
498
513
|
declare const index_editAnswer: typeof editAnswer;
|
|
@@ -548,6 +563,10 @@ declare namespace index {
|
|
|
548
563
|
index_ClearGradingInput as ClearGradingInput,
|
|
549
564
|
index_ClearGradingMeta as ClearGradingMeta,
|
|
550
565
|
index_ClearGradingOutput as ClearGradingOutput,
|
|
566
|
+
index_ClearOneOverridesAction as ClearOneOverridesAction,
|
|
567
|
+
index_ClearOneOverridesInput as ClearOneOverridesInput,
|
|
568
|
+
index_ClearOneOverridesMeta as ClearOneOverridesMeta,
|
|
569
|
+
index_ClearOneOverridesOutput as ClearOneOverridesOutput,
|
|
551
570
|
index_CreateGradingAndScoresAction as CreateGradingAndScoresAction,
|
|
552
571
|
index_CreateGradingAndScoresInput as CreateGradingAndScoresInput,
|
|
553
572
|
index_CreateGradingAndScoresMeta as CreateGradingAndScoresMeta,
|
|
@@ -643,6 +662,7 @@ declare namespace index {
|
|
|
643
662
|
index_calculateOneComparator as calculateOneComparator,
|
|
644
663
|
index_clearAllOverrides as clearAllOverrides,
|
|
645
664
|
index_clearGrading as clearGrading,
|
|
665
|
+
index_clearOneOverrides as clearOneOverrides,
|
|
646
666
|
index_createGradingAndScores as createGradingAndScores,
|
|
647
667
|
index_createManySession as createManySession,
|
|
648
668
|
index_editAnswer as editAnswer,
|
|
@@ -669,4 +689,4 @@ declare namespace index {
|
|
|
669
689
|
|
|
670
690
|
declare function registerOfficePendidikanHooks(hook: Hook): void;
|
|
671
691
|
|
|
672
|
-
export { AcceptQuestionAction, AcceptQuestionInput, AcceptQuestionMeta, AcceptQuestionOutput, AddManyGradingComponentAction, AddManyGradingComponentInput, AddManyGradingComponentMeta, AddManyGradingComponentOutput, AllConflictAction, AllConflictInput, AllConflictMeta, AllConflictOutput, CalculateGradingAction, CalculateGradingInput, CalculateGradingMeta, CalculateGradingOutput, CalculateManyComparatorAction, CalculateManyComparatorInput, CalculateManyComparatorMeta, CalculateManyComparatorOutput, CalculateOneComparatorAction, CalculateOneComparatorInput, CalculateOneComparatorMeta, CalculateOneComparatorOutput, ClearAllOverridesAction, ClearAllOverridesInput, ClearAllOverridesMeta, ClearAllOverridesOutput, ClearGradingAction, ClearGradingInput, ClearGradingMeta, ClearGradingOutput, CreateGradingAndScoresAction, CreateGradingAndScoresInput, CreateGradingAndScoresMeta, CreateGradingAndScoresOutput, CreateManySessionAction, CreateManySessionInput, CreateManySessionMeta, CreateManySessionOutput, EditAnswerAction, EditAnswerInput, EditAnswerMeta, EditAnswerOutput, GenerateGradingAction, GenerateGradingInput, GenerateGradingMeta, GenerateGradingOutput, GetGradingCountAction, GetGradingCountInput, GetGradingCountMeta, GetGradingCountOutput, GetQuestionCountAction, GetQuestionCountInput, GetQuestionCountMeta, GetQuestionCountOutput, GetStaffIdAction, GetStaffIdInput, GetStaffIdMeta, GetStaffIdOutput, 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, SyncStudentBranchAction, SyncStudentBranchInput, SyncStudentBranchMeta, SyncStudentBranchOutput, UpdateGradingAndScoresAction, UpdateGradingAndScoresInput, UpdateGradingAndScoresMeta, UpdateGradingAndScoresOutput, UserCountStatsAction, UserCountStatsInput, UserCountStatsMeta, UserCountStatsOutput, _calculateComparison, acceptQuestion, index as actions, addManyGradingComponent, allConflict, calculateGrading, calculateManyComparator, calculateOneComparator, clearAllOverrides, clearGrading, createGradingAndScores, createManySession, editAnswer, generateGrading, getGradingCount, getQuestionCount, getStaffId, getStudentId, hasUnderstand, notUnderstand, prepareConflict, presenceSessionStudent, presenceSessionTeacher, rasionalizeGrading, registerOfficePendidikanHooks, sendAnswer, sendQuestion, setSomething, syncCommitment, syncStudentBranch, updateGradingAndScores, userCountStats };
|
|
692
|
+
export { AcceptQuestionAction, AcceptQuestionInput, AcceptQuestionMeta, AcceptQuestionOutput, AddManyGradingComponentAction, AddManyGradingComponentInput, AddManyGradingComponentMeta, AddManyGradingComponentOutput, AllConflictAction, AllConflictInput, AllConflictMeta, AllConflictOutput, CalculateGradingAction, CalculateGradingInput, CalculateGradingMeta, CalculateGradingOutput, CalculateManyComparatorAction, CalculateManyComparatorInput, CalculateManyComparatorMeta, CalculateManyComparatorOutput, CalculateOneComparatorAction, CalculateOneComparatorInput, CalculateOneComparatorMeta, CalculateOneComparatorOutput, ClearAllOverridesAction, ClearAllOverridesInput, ClearAllOverridesMeta, ClearAllOverridesOutput, ClearGradingAction, ClearGradingInput, ClearGradingMeta, ClearGradingOutput, ClearOneOverridesAction, ClearOneOverridesInput, ClearOneOverridesMeta, ClearOneOverridesOutput, CreateGradingAndScoresAction, CreateGradingAndScoresInput, CreateGradingAndScoresMeta, CreateGradingAndScoresOutput, CreateManySessionAction, CreateManySessionInput, CreateManySessionMeta, CreateManySessionOutput, EditAnswerAction, EditAnswerInput, EditAnswerMeta, EditAnswerOutput, GenerateGradingAction, GenerateGradingInput, GenerateGradingMeta, GenerateGradingOutput, GetGradingCountAction, GetGradingCountInput, GetGradingCountMeta, GetGradingCountOutput, GetQuestionCountAction, GetQuestionCountInput, GetQuestionCountMeta, GetQuestionCountOutput, GetStaffIdAction, GetStaffIdInput, GetStaffIdMeta, GetStaffIdOutput, 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, SyncStudentBranchAction, SyncStudentBranchInput, SyncStudentBranchMeta, SyncStudentBranchOutput, UpdateGradingAndScoresAction, UpdateGradingAndScoresInput, UpdateGradingAndScoresMeta, UpdateGradingAndScoresOutput, UserCountStatsAction, UserCountStatsInput, UserCountStatsMeta, UserCountStatsOutput, _calculateComparison, acceptQuestion, index as actions, addManyGradingComponent, allConflict, calculateGrading, calculateManyComparator, calculateOneComparator, clearAllOverrides, clearGrading, clearOneOverrides, createGradingAndScores, createManySession, editAnswer, generateGrading, getGradingCount, getQuestionCount, getStaffId, getStudentId, hasUnderstand, notUnderstand, prepareConflict, presenceSessionStudent, presenceSessionTeacher, rasionalizeGrading, registerOfficePendidikanHooks, sendAnswer, sendQuestion, setSomething, syncCommitment, syncStudentBranch, updateGradingAndScores, userCountStats };
|
package/build/index.mjs
CHANGED
|
@@ -887,6 +887,9 @@ async function _getManyComparators(stream) {
|
|
|
887
887
|
{
|
|
888
888
|
model: "neu:penilaian:gradingComparator",
|
|
889
889
|
query: Query.define({
|
|
890
|
+
filter: {
|
|
891
|
+
stageId: "61cd53e6cec5d0bd74f1237c"
|
|
892
|
+
},
|
|
890
893
|
fields: {
|
|
891
894
|
id: 1,
|
|
892
895
|
overrideComparison: 1,
|
|
@@ -956,15 +959,15 @@ function _calculateComparison(o) {
|
|
|
956
959
|
};
|
|
957
960
|
}
|
|
958
961
|
final[gradingComponentId].total += value;
|
|
959
|
-
final[gradingComponentId].count
|
|
962
|
+
final[gradingComponentId].count = value === 0 ? final[gradingComponentId].count + 0 : final[gradingComponentId].count + 1;
|
|
960
963
|
final[gradingComponentId].max = Math.max(
|
|
961
964
|
final[gradingComponentId].max,
|
|
962
965
|
value
|
|
963
966
|
);
|
|
964
|
-
final[gradingComponentId].min = Math.min(
|
|
967
|
+
final[gradingComponentId].min = value === 0 ? Math.min(
|
|
965
968
|
final[gradingComponentId].min,
|
|
966
|
-
|
|
967
|
-
);
|
|
969
|
+
final[gradingComponentId].max
|
|
970
|
+
) : Math.min(final[gradingComponentId].min, value);
|
|
968
971
|
}
|
|
969
972
|
for (const gradingComponentId of Object.keys(final)) {
|
|
970
973
|
const average = final[gradingComponentId].total / final[gradingComponentId].count;
|
|
@@ -1125,6 +1128,36 @@ async function _getGradingInsert(stream, gradingInsertId) {
|
|
|
1125
1128
|
return result.value;
|
|
1126
1129
|
}
|
|
1127
1130
|
|
|
1131
|
+
const clearOneOverrides = Action.define({
|
|
1132
|
+
key: "clearOneOverrides",
|
|
1133
|
+
name: "Clear One Overrides",
|
|
1134
|
+
type: "command",
|
|
1135
|
+
category: "domain",
|
|
1136
|
+
execute: async ({ gradingComparatorId }, stream) => {
|
|
1137
|
+
console.time("\u23F1\uFE0F clearOneOverrides");
|
|
1138
|
+
await _clearOneOverrides(stream, gradingComparatorId);
|
|
1139
|
+
console.timeEnd("\u23F1\uFE0F clearOneOverrides");
|
|
1140
|
+
return Result.ok({
|
|
1141
|
+
state: "overridesCleared",
|
|
1142
|
+
message: "Overrides have been cleared.",
|
|
1143
|
+
data: {}
|
|
1144
|
+
});
|
|
1145
|
+
}
|
|
1146
|
+
});
|
|
1147
|
+
async function _clearOneOverrides(stream, gradingComparatorId) {
|
|
1148
|
+
await stream.actions.data.updateOne.execute(
|
|
1149
|
+
{
|
|
1150
|
+
model: "neu:penilaian:gradingComparator",
|
|
1151
|
+
id: gradingComparatorId,
|
|
1152
|
+
data: { overrideComparison: {} },
|
|
1153
|
+
query: Query.define({
|
|
1154
|
+
limit: 1e4
|
|
1155
|
+
})
|
|
1156
|
+
},
|
|
1157
|
+
stream
|
|
1158
|
+
);
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1128
1161
|
const createGradingAndScores = Action.define({
|
|
1129
1162
|
key: "createGradingAndScores",
|
|
1130
1163
|
name: "Create Penilaian dan Score",
|
|
@@ -1633,6 +1666,7 @@ const index = {
|
|
|
1633
1666
|
calculateOneComparator: calculateOneComparator,
|
|
1634
1667
|
clearAllOverrides: clearAllOverrides,
|
|
1635
1668
|
clearGrading: clearGrading,
|
|
1669
|
+
clearOneOverrides: clearOneOverrides,
|
|
1636
1670
|
createGradingAndScores: createGradingAndScores,
|
|
1637
1671
|
createManySession: createManySession,
|
|
1638
1672
|
editAnswer: editAnswer,
|
|
@@ -1731,6 +1765,33 @@ function registerOfficePendidikanHooks(hook) {
|
|
|
1731
1765
|
payload.input.data["code"] = getCode();
|
|
1732
1766
|
}
|
|
1733
1767
|
);
|
|
1768
|
+
hook.onExecute(
|
|
1769
|
+
"action:neu:jadwal:classSession:updateOne:after",
|
|
1770
|
+
async (payload, _meta, stream) => {
|
|
1771
|
+
console.log(payload);
|
|
1772
|
+
const result = await stream.actions.data.syncMany.execute(
|
|
1773
|
+
{
|
|
1774
|
+
model: "neu:jadwal:classSession",
|
|
1775
|
+
// id: payload.input.id,
|
|
1776
|
+
useDry: false,
|
|
1777
|
+
query: Query.define({
|
|
1778
|
+
filter: {
|
|
1779
|
+
_id: payload.input.id
|
|
1780
|
+
}
|
|
1781
|
+
})
|
|
1782
|
+
},
|
|
1783
|
+
stream
|
|
1784
|
+
);
|
|
1785
|
+
return result;
|
|
1786
|
+
}
|
|
1787
|
+
);
|
|
1788
|
+
hook.onTransform(
|
|
1789
|
+
"action:neu:jadwal:classSession:getMany:query",
|
|
1790
|
+
async (payload) => {
|
|
1791
|
+
console.dir(payload.filter, { depth: 10 });
|
|
1792
|
+
return payload;
|
|
1793
|
+
}
|
|
1794
|
+
);
|
|
1734
1795
|
}
|
|
1735
1796
|
|
|
1736
|
-
export { _calculateComparison, acceptQuestion, index as actions, addManyGradingComponent, allConflict, calculateGrading, calculateManyComparator, calculateOneComparator, clearAllOverrides, clearGrading, createGradingAndScores, createManySession, editAnswer, generateGrading, getGradingCount, getQuestionCount, getStaffId, getStudentId, hasUnderstand, notUnderstand, prepareConflict, presenceSessionStudent, presenceSessionTeacher, rasionalizeGrading, registerOfficePendidikanHooks, sendAnswer, sendQuestion, setSomething, syncCommitment, syncStudentBranch, updateGradingAndScores, userCountStats };
|
|
1797
|
+
export { _calculateComparison, acceptQuestion, index as actions, addManyGradingComponent, allConflict, calculateGrading, calculateManyComparator, calculateOneComparator, clearAllOverrides, clearGrading, clearOneOverrides, createGradingAndScores, createManySession, editAnswer, generateGrading, getGradingCount, getQuestionCount, getStaffId, getStudentId, hasUnderstand, notUnderstand, prepareConflict, presenceSessionStudent, presenceSessionTeacher, rasionalizeGrading, registerOfficePendidikanHooks, sendAnswer, sendQuestion, setSomething, syncCommitment, syncStudentBranch, updateGradingAndScores, userCountStats };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/pendidikan-operation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0-beta.1",
|
|
4
4
|
"description": "Operation package of Neutron Pendidikan.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"contributors": [
|
|
@@ -29,57 +29,57 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@bluelibs/nova": "1.4.2",
|
|
32
|
-
"@neon.id/core": "^1.
|
|
33
|
-
"@neon.id/gerbang-js": "^1.
|
|
34
|
-
"@neon.id/model": "^0.
|
|
35
|
-
"@neon.id/operation": "^0.
|
|
36
|
-
"@neon.id/permit": "^0.
|
|
37
|
-
"@neon.id/query": "^0.
|
|
38
|
-
"@neon.id/types": "^1.
|
|
39
|
-
"@neon.id/utils": "^0.
|
|
40
|
-
"@neutron.co.id/akademik-models": "^1.
|
|
41
|
-
"@neutron.co.id/jadwal-models": "^1.
|
|
42
|
-
"@neutron.co.id/penilaian-models": "^1.
|
|
43
|
-
"@neutron.co.id/personalia-models": "^1.
|
|
44
|
-
"@neutron.co.id/tanya-models": "^1.
|
|
32
|
+
"@neon.id/core": "^1.32.0",
|
|
33
|
+
"@neon.id/gerbang-js": "^1.4.0",
|
|
34
|
+
"@neon.id/model": "^0.66.0",
|
|
35
|
+
"@neon.id/operation": "^0.46.0",
|
|
36
|
+
"@neon.id/permit": "^0.21.0",
|
|
37
|
+
"@neon.id/query": "^0.49.0",
|
|
38
|
+
"@neon.id/types": "^1.45.0",
|
|
39
|
+
"@neon.id/utils": "^0.44.0",
|
|
40
|
+
"@neutron.co.id/akademik-models": "^1.5.1-beta.1",
|
|
41
|
+
"@neutron.co.id/jadwal-models": "^1.5.0-beta.1",
|
|
42
|
+
"@neutron.co.id/penilaian-models": "^1.9.0-beta.1",
|
|
43
|
+
"@neutron.co.id/personalia-models": "^1.6.2",
|
|
44
|
+
"@neutron.co.id/tanya-models": "^1.4.1-beta.1",
|
|
45
45
|
"dayjs": "^1.11.7",
|
|
46
|
-
"mongoose": "^6.
|
|
46
|
+
"mongoose": "^6.11.1",
|
|
47
47
|
"nanoid": "^4.0.2",
|
|
48
48
|
"ofetch": "^1.0.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@types/node": "20.2.
|
|
51
|
+
"@types/node": "20.2.5",
|
|
52
52
|
"@vitest/coverage-c8": "0.31.1",
|
|
53
53
|
"@vitest/ui": "0.31.1",
|
|
54
54
|
"@vortex.so/eslint-plugin": "0.7.0",
|
|
55
55
|
"tsx": "3.12.7",
|
|
56
56
|
"typescript": "5.0.4",
|
|
57
57
|
"unbuild": "1.2.1",
|
|
58
|
-
"vite": "4.3.
|
|
58
|
+
"vite": "4.3.9",
|
|
59
59
|
"vitest": "0.31.1"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@bluelibs/nova": "1.4.2",
|
|
63
|
-
"@neon.id/core": "^1.
|
|
64
|
-
"@neon.id/gerbang-js": "^1.
|
|
65
|
-
"@neon.id/model": "^0.
|
|
66
|
-
"@neon.id/operation": "^0.
|
|
67
|
-
"@neon.id/permit": "^0.
|
|
68
|
-
"@neon.id/query": "^0.
|
|
69
|
-
"@neon.id/types": "^1.
|
|
70
|
-
"@neon.id/utils": "^0.
|
|
71
|
-
"@neutron.co.id/akademik-models": "^1.
|
|
72
|
-
"@neutron.co.id/jadwal-models": "^1.
|
|
73
|
-
"@neutron.co.id/penilaian-models": "^1.
|
|
74
|
-
"@neutron.co.id/personalia-models": "^1.
|
|
75
|
-
"@neutron.co.id/tanya-models": "^1.
|
|
63
|
+
"@neon.id/core": "^1.32.0",
|
|
64
|
+
"@neon.id/gerbang-js": "^1.4.0",
|
|
65
|
+
"@neon.id/model": "^0.66.0",
|
|
66
|
+
"@neon.id/operation": "^0.46.0",
|
|
67
|
+
"@neon.id/permit": "^0.21.0",
|
|
68
|
+
"@neon.id/query": "^0.49.0",
|
|
69
|
+
"@neon.id/types": "^1.45.0",
|
|
70
|
+
"@neon.id/utils": "^0.44.0",
|
|
71
|
+
"@neutron.co.id/akademik-models": "^1.5.1-beta.1",
|
|
72
|
+
"@neutron.co.id/jadwal-models": "^1.5.0-beta.1",
|
|
73
|
+
"@neutron.co.id/penilaian-models": "^1.9.0-beta.1",
|
|
74
|
+
"@neutron.co.id/personalia-models": "^1.6.2",
|
|
75
|
+
"@neutron.co.id/tanya-models": "^1.4.1-beta.1",
|
|
76
76
|
"dayjs": "^1.11.7",
|
|
77
|
-
"mongoose": "^6.
|
|
77
|
+
"mongoose": "^6.11.1",
|
|
78
78
|
"nanoid": "^4.0.2",
|
|
79
79
|
"ofetch": "^1.0.1"
|
|
80
80
|
},
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"build":
|
|
84
|
+
"build": 46
|
|
85
85
|
}
|