@neutron.co.id/pendidikan-operation 1.29.5 → 1.29.7

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 (51) hide show
  1. package/build/actions/checkProgramExistance/checkProgramExistance.action.cjs +64 -0
  2. package/build/actions/checkProgramExistance/checkProgramExistance.action.d.ts +13 -0
  3. package/build/actions/checkProgramExistance/checkProgramExistance.action.mjs +62 -0
  4. package/build/actions/checkProgramExistance/checkProgramExistance.schema.cjs +10 -0
  5. package/build/actions/checkProgramExistance/checkProgramExistance.schema.d.ts +11 -0
  6. package/build/actions/checkProgramExistance/checkProgramExistance.schema.mjs +8 -0
  7. package/build/actions/checkProgramExistance/index.d.ts +2 -0
  8. package/build/actions/checkStudentProgramExistance/checkStudentProgramExistance.action.cjs +65 -0
  9. package/build/actions/checkStudentProgramExistance/checkStudentProgramExistance.action.d.ts +13 -0
  10. package/build/actions/checkStudentProgramExistance/checkStudentProgramExistance.action.mjs +63 -0
  11. package/build/actions/checkStudentProgramExistance/checkStudentProgramExistance.schema.cjs +10 -0
  12. package/build/actions/checkStudentProgramExistance/checkStudentProgramExistance.schema.d.ts +11 -0
  13. package/build/actions/checkStudentProgramExistance/checkStudentProgramExistance.schema.mjs +8 -0
  14. package/build/actions/checkStudentProgramExistance/index.d.ts +2 -0
  15. package/build/actions/index.d.ts +2 -0
  16. package/build/actions/penilaian/getGradingComponentByType/getGradingComponentByType.action.cjs +49 -0
  17. package/build/actions/penilaian/getGradingComponentByType/getGradingComponentByType.action.d.ts +14 -0
  18. package/build/actions/penilaian/getGradingComponentByType/getGradingComponentByType.action.mjs +47 -0
  19. package/build/actions/penilaian/getGradingComponentByType/getGradingComponentByType.schema.cjs +11 -0
  20. package/build/actions/penilaian/getGradingComponentByType/getGradingComponentByType.schema.d.ts +14 -0
  21. package/build/actions/penilaian/getGradingComponentByType/getGradingComponentByType.schema.mjs +9 -0
  22. package/build/actions/penilaian/getGradingComponentByType/index.d.ts +2 -0
  23. package/build/actions/penilaian/getGradingStudent/getGradingStudent.action.cjs +63 -0
  24. package/build/actions/penilaian/getGradingStudent/getGradingStudent.action.d.ts +16 -0
  25. package/build/actions/penilaian/getGradingStudent/getGradingStudent.action.mjs +61 -0
  26. package/build/actions/penilaian/getGradingStudent/getGradingStudent.schema.cjs +13 -0
  27. package/build/actions/penilaian/getGradingStudent/getGradingStudent.schema.d.ts +20 -0
  28. package/build/actions/penilaian/getGradingStudent/getGradingStudent.schema.mjs +11 -0
  29. package/build/actions/penilaian/getGradingStudent/index.d.ts +2 -0
  30. package/build/actions/penilaian/getGradingTypeByYear/getGradingTypeByYear.action.cjs +50 -0
  31. package/build/actions/penilaian/getGradingTypeByYear/getGradingTypeByYear.action.d.ts +14 -0
  32. package/build/actions/penilaian/getGradingTypeByYear/getGradingTypeByYear.action.mjs +48 -0
  33. package/build/actions/penilaian/getGradingTypeByYear/getGradingTypeByYear.schema.cjs +11 -0
  34. package/build/actions/penilaian/getGradingTypeByYear/getGradingTypeByYear.schema.d.ts +14 -0
  35. package/build/actions/penilaian/getGradingTypeByYear/getGradingTypeByYear.schema.mjs +9 -0
  36. package/build/actions/penilaian/getGradingTypeByYear/index.d.ts +2 -0
  37. package/build/actions/penilaian/getScoreStudent/getScoreStudent.action.cjs +58 -0
  38. package/build/actions/penilaian/getScoreStudent/getScoreStudent.action.d.ts +13 -0
  39. package/build/actions/penilaian/getScoreStudent/getScoreStudent.action.mjs +56 -0
  40. package/build/actions/penilaian/getScoreStudent/getScoreStudent.schema.cjs +10 -0
  41. package/build/actions/penilaian/getScoreStudent/getScoreStudent.schema.d.ts +11 -0
  42. package/build/actions/penilaian/getScoreStudent/getScoreStudent.schema.mjs +8 -0
  43. package/build/actions/penilaian/getScoreStudent/index.d.ts +2 -0
  44. package/build/actions/penilaian/index.d.ts +4 -0
  45. package/build/index.cjs +31 -1
  46. package/build/index.d.ts +29 -0
  47. package/build/index.mjs +20 -2
  48. package/build/providers/penilaian/usePenilaian.cjs +225 -43
  49. package/build/providers/penilaian/usePenilaian.d.ts +24 -0
  50. package/build/providers/penilaian/usePenilaian.mjs +225 -43
  51. package/package.json +6 -6
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ const z = require('@neon.id/z');
4
+
5
+ const GetGradingStudentSchema = z.z.object({
6
+ studentId: z.z.string().explain({ label: "studentId" }),
7
+ gradingTypeId: z.z.string().explain({ label: "gradingTypeId" }),
8
+ branchId: z.z.string().explain({ label: "branchId" }),
9
+ limit: z.z.number().default(20).explain({ label: "Limit" }),
10
+ page: z.z.number().default(1).explain({ label: "Page" })
11
+ });
12
+
13
+ exports.GetGradingStudentSchema = GetGradingStudentSchema;
@@ -0,0 +1,20 @@
1
+ import { z } from '@neon.id/z';
2
+ export declare const GetGradingStudentSchema: z.ZodObject<{
3
+ studentId: z.ZodString;
4
+ gradingTypeId: z.ZodString;
5
+ branchId: z.ZodString;
6
+ limit: z.ZodDefault<z.ZodNumber>;
7
+ page: z.ZodDefault<z.ZodNumber>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ branchId: string;
10
+ studentId: string;
11
+ gradingTypeId: string;
12
+ limit: number;
13
+ page: number;
14
+ }, {
15
+ branchId: string;
16
+ studentId: string;
17
+ gradingTypeId: string;
18
+ limit?: number | undefined;
19
+ page?: number | undefined;
20
+ }>;
@@ -0,0 +1,11 @@
1
+ import { z } from '@neon.id/z';
2
+
3
+ const GetGradingStudentSchema = z.object({
4
+ studentId: z.string().explain({ label: "studentId" }),
5
+ gradingTypeId: z.string().explain({ label: "gradingTypeId" }),
6
+ branchId: z.string().explain({ label: "branchId" }),
7
+ limit: z.number().default(20).explain({ label: "Limit" }),
8
+ page: z.number().default(1).explain({ label: "Page" })
9
+ });
10
+
11
+ export { GetGradingStudentSchema };
@@ -0,0 +1,2 @@
1
+ export * from './getGradingStudent.action';
2
+ export * from './getGradingStudent.schema';
@@ -0,0 +1,50 @@
1
+ 'use strict';
2
+
3
+ const core = require('@neon.id/core');
4
+ const operation = require('@neon.id/operation');
5
+ const utils = require('@neon.id/utils');
6
+ const getGradingTypeByYear_schema = require('./getGradingTypeByYear.schema.cjs');
7
+ const useTelemetry = require('../../../providers/useTelemetry.cjs');
8
+ const usePenilaian = require('../../../providers/penilaian/usePenilaian.cjs');
9
+
10
+ const getGradingTypeByYear = operation.Action.define({
11
+ key: "getGradingTypeByYear",
12
+ name: "Get Grading Type By Year",
13
+ type: "command",
14
+ category: "domain",
15
+ execute: async (input, stream) => {
16
+ utils.guard(stream, "streamRequired");
17
+ const { validate } = operation.useValidation(stream, getGradingTypeByYear_schema.GetGradingTypeByYearSchema);
18
+ const data = validate(input);
19
+ return useTelemetry.useTelemetry(stream, "getGradingTypeByYear", {
20
+ userId: stream?.context?.identitas?.userId,
21
+ data
22
+ }, async () => {
23
+ try {
24
+ const { getManyGradingTypes } = usePenilaian.usePenilaian(stream);
25
+ console.log("data", data);
26
+ utils.guard(data.year, "yearRequired");
27
+ const { items, meta } = await getManyGradingTypes(stream, data.year, data.limit, data.page);
28
+ return core.Result.ok({
29
+ state: "getGradingTypeByYearSuccess",
30
+ message: "getGradingTypeByYear has been sucessfully executed.",
31
+ data: {
32
+ gradingType: items,
33
+ meta
34
+ }
35
+ });
36
+ } catch (error) {
37
+ if (error?.isFailure)
38
+ throw error;
39
+ console.error(error);
40
+ return core.Result.fail({
41
+ state: `getGradingTypeByYearFailed`,
42
+ message: `Failed to getGradingTypeByYear.`,
43
+ error: error?.toString()
44
+ });
45
+ }
46
+ });
47
+ }
48
+ });
49
+
50
+ exports.getGradingTypeByYear = getGradingTypeByYear;
@@ -0,0 +1,14 @@
1
+ import { Action } from '@neon.id/operation';
2
+ import type { z } from '@neon.id/z';
3
+ import { GetGradingTypeByYearSchema } from './getGradingTypeByYear.schema';
4
+ export type getGradingTypeByYearInput = z.parse<typeof GetGradingTypeByYearSchema>;
5
+ export interface getGradingTypeByYearOutput {
6
+ }
7
+ export interface getGradingTypeByYearMeta {
8
+ }
9
+ export declare const getGradingTypeByYear: Action<"getGradingTypeByYear", {
10
+ year: string;
11
+ limit: number;
12
+ page: number;
13
+ }, getGradingTypeByYearOutput, getGradingTypeByYearMeta>;
14
+ export type GetGradingTypeByYearAction = typeof getGradingTypeByYear;
@@ -0,0 +1,48 @@
1
+ import { Result } from '@neon.id/core';
2
+ import { Action, useValidation } from '@neon.id/operation';
3
+ import { guard } from '@neon.id/utils';
4
+ import { GetGradingTypeByYearSchema } from './getGradingTypeByYear.schema.mjs';
5
+ import { useTelemetry } from '../../../providers/useTelemetry.mjs';
6
+ import { usePenilaian } from '../../../providers/penilaian/usePenilaian.mjs';
7
+
8
+ const getGradingTypeByYear = Action.define({
9
+ key: "getGradingTypeByYear",
10
+ name: "Get Grading Type By Year",
11
+ type: "command",
12
+ category: "domain",
13
+ execute: async (input, stream) => {
14
+ guard(stream, "streamRequired");
15
+ const { validate } = useValidation(stream, GetGradingTypeByYearSchema);
16
+ const data = validate(input);
17
+ return useTelemetry(stream, "getGradingTypeByYear", {
18
+ userId: stream?.context?.identitas?.userId,
19
+ data
20
+ }, async () => {
21
+ try {
22
+ const { getManyGradingTypes } = usePenilaian(stream);
23
+ console.log("data", data);
24
+ guard(data.year, "yearRequired");
25
+ const { items, meta } = await getManyGradingTypes(stream, data.year, data.limit, data.page);
26
+ return Result.ok({
27
+ state: "getGradingTypeByYearSuccess",
28
+ message: "getGradingTypeByYear has been sucessfully executed.",
29
+ data: {
30
+ gradingType: items,
31
+ meta
32
+ }
33
+ });
34
+ } catch (error) {
35
+ if (error?.isFailure)
36
+ throw error;
37
+ console.error(error);
38
+ return Result.fail({
39
+ state: `getGradingTypeByYearFailed`,
40
+ message: `Failed to getGradingTypeByYear.`,
41
+ error: error?.toString()
42
+ });
43
+ }
44
+ });
45
+ }
46
+ });
47
+
48
+ export { getGradingTypeByYear };
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ const z = require('@neon.id/z');
4
+
5
+ const GetGradingTypeByYearSchema = z.z.object({
6
+ year: z.z.string().explain({ label: "Year" }),
7
+ limit: z.z.number().default(20).explain({ label: "Limit" }),
8
+ page: z.z.number().default(1).explain({ label: "Page" })
9
+ });
10
+
11
+ exports.GetGradingTypeByYearSchema = GetGradingTypeByYearSchema;
@@ -0,0 +1,14 @@
1
+ import { z } from '@neon.id/z';
2
+ export declare const GetGradingTypeByYearSchema: z.ZodObject<{
3
+ year: z.ZodString;
4
+ limit: z.ZodDefault<z.ZodNumber>;
5
+ page: z.ZodDefault<z.ZodNumber>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ year: string;
8
+ limit: number;
9
+ page: number;
10
+ }, {
11
+ year: string;
12
+ limit?: number | undefined;
13
+ page?: number | undefined;
14
+ }>;
@@ -0,0 +1,9 @@
1
+ import { z } from '@neon.id/z';
2
+
3
+ const GetGradingTypeByYearSchema = z.object({
4
+ year: z.string().explain({ label: "Year" }),
5
+ limit: z.number().default(20).explain({ label: "Limit" }),
6
+ page: z.number().default(1).explain({ label: "Page" })
7
+ });
8
+
9
+ export { GetGradingTypeByYearSchema };
@@ -0,0 +1,2 @@
1
+ export * from './getGradingTypeByYear.action';
2
+ export * from './getGradingTypeByYear.schema';
@@ -0,0 +1,58 @@
1
+ 'use strict';
2
+
3
+ const core = require('@neon.id/core');
4
+ const operation = require('@neon.id/operation');
5
+ const utils = require('@neon.id/utils');
6
+ const getScoreStudent_schema = require('./getScoreStudent.schema.cjs');
7
+ const useTelemetry = require('../../../providers/useTelemetry.cjs');
8
+ const usePenilaian = require('../../../providers/penilaian/usePenilaian.cjs');
9
+
10
+ const getScoreStudent = operation.Action.define({
11
+ key: "getScoreStudent",
12
+ name: "Get Score Student",
13
+ type: "command",
14
+ category: "domain",
15
+ execute: async (input, stream) => {
16
+ utils.guard(stream, "streamRequired");
17
+ const { validate } = operation.useValidation(stream, getScoreStudent_schema.GetScoreStudentSchema);
18
+ const data = validate(input);
19
+ return useTelemetry.useTelemetry(
20
+ stream,
21
+ "getScoreStudent",
22
+ {
23
+ userId: stream?.context?.identitas?.userId,
24
+ data
25
+ },
26
+ async () => {
27
+ try {
28
+ const { getScoresByGrading } = usePenilaian.usePenilaian(stream);
29
+ utils.guard(data.gradingId, "gradingIdRequired");
30
+ utils.guard(data.studentId, "studentIdRequired");
31
+ const scores = await getScoresByGrading(
32
+ stream,
33
+ data.gradingId,
34
+ data.studentId
35
+ );
36
+ return core.Result.ok({
37
+ state: "getScoreStudentSuccess",
38
+ message: "getScoreStudent has been sucessfully executed.",
39
+ data: {
40
+ scores
41
+ }
42
+ });
43
+ } catch (error) {
44
+ if (error?.isFailure)
45
+ throw error;
46
+ console.error(error);
47
+ return core.Result.fail({
48
+ state: `getScoreStudentFailed`,
49
+ message: `Failed to getScoreStudent.`,
50
+ error: error?.toString()
51
+ });
52
+ }
53
+ }
54
+ );
55
+ }
56
+ });
57
+
58
+ exports.getScoreStudent = getScoreStudent;
@@ -0,0 +1,13 @@
1
+ import { Action } from '@neon.id/operation';
2
+ import type { z } from '@neon.id/z';
3
+ import { GetScoreStudentSchema } from './getScoreStudent.schema';
4
+ export type getScoreStudentInput = z.parse<typeof GetScoreStudentSchema>;
5
+ export interface getScoreStudentOutput {
6
+ }
7
+ export interface getScoreStudentMeta {
8
+ }
9
+ export declare const getScoreStudent: Action<"getScoreStudent", {
10
+ studentId: string;
11
+ gradingId: string;
12
+ }, getScoreStudentOutput, getScoreStudentMeta>;
13
+ export type GetScoreStudentAction = typeof getScoreStudent;
@@ -0,0 +1,56 @@
1
+ import { Result } from '@neon.id/core';
2
+ import { Action, useValidation } from '@neon.id/operation';
3
+ import { guard } from '@neon.id/utils';
4
+ import { GetScoreStudentSchema } from './getScoreStudent.schema.mjs';
5
+ import { useTelemetry } from '../../../providers/useTelemetry.mjs';
6
+ import { usePenilaian } from '../../../providers/penilaian/usePenilaian.mjs';
7
+
8
+ const getScoreStudent = Action.define({
9
+ key: "getScoreStudent",
10
+ name: "Get Score Student",
11
+ type: "command",
12
+ category: "domain",
13
+ execute: async (input, stream) => {
14
+ guard(stream, "streamRequired");
15
+ const { validate } = useValidation(stream, GetScoreStudentSchema);
16
+ const data = validate(input);
17
+ return useTelemetry(
18
+ stream,
19
+ "getScoreStudent",
20
+ {
21
+ userId: stream?.context?.identitas?.userId,
22
+ data
23
+ },
24
+ async () => {
25
+ try {
26
+ const { getScoresByGrading } = usePenilaian(stream);
27
+ guard(data.gradingId, "gradingIdRequired");
28
+ guard(data.studentId, "studentIdRequired");
29
+ const scores = await getScoresByGrading(
30
+ stream,
31
+ data.gradingId,
32
+ data.studentId
33
+ );
34
+ return Result.ok({
35
+ state: "getScoreStudentSuccess",
36
+ message: "getScoreStudent has been sucessfully executed.",
37
+ data: {
38
+ scores
39
+ }
40
+ });
41
+ } catch (error) {
42
+ if (error?.isFailure)
43
+ throw error;
44
+ console.error(error);
45
+ return Result.fail({
46
+ state: `getScoreStudentFailed`,
47
+ message: `Failed to getScoreStudent.`,
48
+ error: error?.toString()
49
+ });
50
+ }
51
+ }
52
+ );
53
+ }
54
+ });
55
+
56
+ export { getScoreStudent };
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ const z = require('@neon.id/z');
4
+
5
+ const GetScoreStudentSchema = z.z.object({
6
+ gradingId: z.z.string().explain({ label: "gradingId" }),
7
+ studentId: z.z.string().explain({ label: "studentId" })
8
+ });
9
+
10
+ exports.GetScoreStudentSchema = GetScoreStudentSchema;
@@ -0,0 +1,11 @@
1
+ import { z } from '@neon.id/z';
2
+ export declare const GetScoreStudentSchema: z.ZodObject<{
3
+ gradingId: z.ZodString;
4
+ studentId: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ studentId: string;
7
+ gradingId: string;
8
+ }, {
9
+ studentId: string;
10
+ gradingId: string;
11
+ }>;
@@ -0,0 +1,8 @@
1
+ import { z } from '@neon.id/z';
2
+
3
+ const GetScoreStudentSchema = z.object({
4
+ gradingId: z.string().explain({ label: "gradingId" }),
5
+ studentId: z.string().explain({ label: "studentId" })
6
+ });
7
+
8
+ export { GetScoreStudentSchema };
@@ -0,0 +1,2 @@
1
+ export * from './getScoreStudent.action';
2
+ export * from './getScoreStudent.schema';
@@ -2,3 +2,7 @@ export * from './getGradingCount';
2
2
  export * from './refreshGrading';
3
3
  export * from './refreshManyGrading';
4
4
  export * from './sendScoreNotification';
5
+ export * from './getGradingTypeByYear';
6
+ export * from './getGradingComponentByType';
7
+ export * from './getGradingStudent';
8
+ export * from './getScoreStudent';
package/build/index.cjs CHANGED
@@ -37,6 +37,10 @@ const action_bulkUpdateSession = require('./actions/jadwal/action.bulkUpdateSess
37
37
  const action_getGradingCount = require('./actions/penilaian/getGradingCount/action.getGradingCount.cjs');
38
38
  const refreshGrading_action = require('./actions/penilaian/refreshGrading/refreshGrading.action.cjs');
39
39
  const refreshManyGrading_action = require('./actions/penilaian/refreshManyGrading/refreshManyGrading.action.cjs');
40
+ const getGradingTypeByYear_action = require('./actions/penilaian/getGradingTypeByYear/getGradingTypeByYear.action.cjs');
41
+ const getGradingComponentByType_action = require('./actions/penilaian/getGradingComponentByType/getGradingComponentByType.action.cjs');
42
+ const getGradingStudent_action = require('./actions/penilaian/getGradingStudent/getGradingStudent.action.cjs');
43
+ const getScoreStudent_action = require('./actions/penilaian/getScoreStudent/getScoreStudent.action.cjs');
40
44
  const action_addManyGradingComponent = require('./actions/rasionalisasi/action.addManyGradingComponent.cjs');
41
45
  const action_calculateGrading = require('./actions/rasionalisasi/action.calculateGrading.cjs');
42
46
  const action_calculateManyComparator = require('./actions/rasionalisasi/action.calculateManyComparator.cjs');
@@ -53,11 +57,13 @@ const action_notUnderstand = require('./actions/tanya/action.notUnderstand.cjs')
53
57
  const action_sendAnswer = require('./actions/tanya/action.sendAnswer.cjs');
54
58
  const action_sendQuestion = require('./actions/tanya/action.sendQuestion.cjs');
55
59
  const action_reminderQuestions = require('./actions/tanya/action.reminderQuestions.cjs');
60
+ const checkProgramExistance_action = require('./actions/checkProgramExistance/checkProgramExistance.action.cjs');
56
61
  const prepareMediaScanterGradingInsert_action = require('./actions/mediaScanter/prepareMediaScanterGradingInsert/prepareMediaScanterGradingInsert.action.cjs');
57
62
  const importData_action = require('./actions/importData/importData.action.cjs');
58
63
  const updateReportStudent_action = require('./actions/akademik/updateReportStudent/updateReportStudent.action.cjs');
59
64
  const syncClassGroups_action = require('./actions/jadwal/syncClassGroups/syncClassGroups.action.cjs');
60
65
  const action_syncStudents = require('./actions/akademik/action.syncStudents.cjs');
66
+ const checkStudentProgramExistance_action = require('./actions/checkStudentProgramExistance/checkStudentProgramExistance.action.cjs');
61
67
  const sendClassConsultationNotification_action = require('./actions/jadwal/sendClassConsultationNotification/sendClassConsultationNotification.action.cjs');
62
68
  const sendScoreNotification_action = require('./actions/penilaian/sendScoreNotification/sendScoreNotification.action.cjs');
63
69
  const replaceModuleAccessManyStudent_action = require('./actions/replaceModuleAccessManyStudent/replaceModuleAccessManyStudent.action.cjs');
@@ -80,11 +86,17 @@ const prepareMediaScanterGradingInsert_schema = require('./actions/mediaScanter/
80
86
  const refreshGrading_schema = require('./actions/penilaian/refreshGrading/refreshGrading.schema.cjs');
81
87
  const refreshManyGrading_schema = require('./actions/penilaian/refreshManyGrading/refreshManyGrading.schema.cjs');
82
88
  const sendScoreNotification_schema = require('./actions/penilaian/sendScoreNotification/sendScoreNotification.schema.cjs');
89
+ const getGradingTypeByYear_schema = require('./actions/penilaian/getGradingTypeByYear/getGradingTypeByYear.schema.cjs');
90
+ const getGradingComponentByType_schema = require('./actions/penilaian/getGradingComponentByType/getGradingComponentByType.schema.cjs');
91
+ const getGradingStudent_schema = require('./actions/penilaian/getGradingStudent/getGradingStudent.schema.cjs');
92
+ const getScoreStudent_schema = require('./actions/penilaian/getScoreStudent/getScoreStudent.schema.cjs');
83
93
  const prepareExperience_schema = require('./actions/prepareExperience/prepareExperience.schema.cjs');
84
94
  const replaceModuleAccess_schema = require('./actions/replaceModuleAccess/replaceModuleAccess.schema.cjs');
85
95
  const refreshModuleAccess_schema = require('./actions/refreshModuleAccess/refreshModuleAccess.schema.cjs');
86
96
  const replaceModuleAccessManyStudent_schema = require('./actions/replaceModuleAccessManyStudent/replaceModuleAccessManyStudent.schema.cjs');
87
97
  const updateMany_schema = require('./actions/updateMany/updateMany.schema.cjs');
98
+ const checkProgramExistance_schema = require('./actions/checkProgramExistance/checkProgramExistance.schema.cjs');
99
+ const checkStudentProgramExistance_schema = require('./actions/checkStudentProgramExistance/checkStudentProgramExistance.schema.cjs');
88
100
  const hook_officePendidikan = require('./hooks/hook.officePendidikan.cjs');
89
101
 
90
102
  const actions = {
@@ -132,6 +144,10 @@ const actions = {
132
144
  getGradingCount: action_getGradingCount.getGradingCount,
133
145
  refreshGrading: refreshGrading_action.refreshGrading,
134
146
  refreshManyGrading: refreshManyGrading_action.refreshManyGrading,
147
+ getGradingTypeByYear: getGradingTypeByYear_action.getGradingTypeByYear,
148
+ getGradingComponentByType: getGradingComponentByType_action.getGradingComponentByType,
149
+ getGradingStudent: getGradingStudent_action.getGradingStudent,
150
+ getScoreStudent: getScoreStudent_action.getScoreStudent,
135
151
  // Rasionalisasi
136
152
  addManyGradingComponent: action_addManyGradingComponent.addManyGradingComponent,
137
153
  calculateGrading: action_calculateGrading.calculateGrading,
@@ -153,6 +169,7 @@ const actions = {
153
169
  sendAnswer: action_sendAnswer.sendAnswer,
154
170
  sendQuestion: action_sendQuestion.sendQuestion,
155
171
  reminderQuestions: action_reminderQuestions.reminderQuestions,
172
+ checkProgramExistance: checkProgramExistance_action.checkProgramExistance,
156
173
  // Media Scanter
157
174
  prepareMediaScanterGradingInsert: prepareMediaScanterGradingInsert_action.prepareMediaScanterGradingInsert,
158
175
  // Import Data
@@ -161,7 +178,8 @@ const actions = {
161
178
  updateReportStudent: updateReportStudent_action.updateReportStudent,
162
179
  // sync
163
180
  syncClassGroups: syncClassGroups_action.syncClassGroups,
164
- syncStudents: action_syncStudents.syncStudents
181
+ syncStudents: action_syncStudents.syncStudents,
182
+ checkStudentProgramExistance: checkStudentProgramExistance_action.checkStudentProgramExistance
165
183
  };
166
184
 
167
185
  exports.prepareExperience = prepareExperience_action.prepareExperience;
@@ -201,6 +219,10 @@ exports.bulkUpdateSession = action_bulkUpdateSession.bulkUpdateSession;
201
219
  exports.getGradingCount = action_getGradingCount.getGradingCount;
202
220
  exports.refreshGrading = refreshGrading_action.refreshGrading;
203
221
  exports.refreshManyGrading = refreshManyGrading_action.refreshManyGrading;
222
+ exports.getGradingTypeByYear = getGradingTypeByYear_action.getGradingTypeByYear;
223
+ exports.getGradingComponentByType = getGradingComponentByType_action.getGradingComponentByType;
224
+ exports.getGradingStudent = getGradingStudent_action.getGradingStudent;
225
+ exports.getScoreStudent = getScoreStudent_action.getScoreStudent;
204
226
  exports.addManyGradingComponent = action_addManyGradingComponent.addManyGradingComponent;
205
227
  exports.calculateGrading = action_calculateGrading.calculateGrading;
206
228
  exports._calculateComparison = action_calculateManyComparator._calculateComparison;
@@ -219,11 +241,13 @@ exports.notUnderstand = action_notUnderstand.notUnderstand;
219
241
  exports.sendAnswer = action_sendAnswer.sendAnswer;
220
242
  exports.sendQuestion = action_sendQuestion.sendQuestion;
221
243
  exports.reminderQuestions = action_reminderQuestions.reminderQuestions;
244
+ exports.checkProgramExistance = checkProgramExistance_action.checkProgramExistance;
222
245
  exports.prepareMediaScanterGradingInsert = prepareMediaScanterGradingInsert_action.prepareMediaScanterGradingInsert;
223
246
  exports.importData = importData_action.importData;
224
247
  exports.updateReportStudent = updateReportStudent_action.updateReportStudent;
225
248
  exports.syncClassGroups = syncClassGroups_action.syncClassGroups;
226
249
  exports.syncStudents = action_syncStudents.syncStudents;
250
+ exports.checkStudentProgramExistance = checkStudentProgramExistance_action.checkStudentProgramExistance;
227
251
  exports.sendClassConsultationNotification = sendClassConsultationNotification_action.sendClassConsultationNotification;
228
252
  exports.sendScoreNotification = sendScoreNotification_action.sendScoreNotification;
229
253
  exports.replaceModuleAccessManyStudent = replaceModuleAccessManyStudent_action.replaceModuleAccessManyStudent;
@@ -246,10 +270,16 @@ exports.PrepareMediaScanterGradingInsertSchema = prepareMediaScanterGradingInser
246
270
  exports.RefreshGradingSchema = refreshGrading_schema.RefreshGradingSchema;
247
271
  exports.RefreshManyGradingSchema = refreshManyGrading_schema.RefreshManyGradingSchema;
248
272
  exports.SendScoreNotificationSchema = sendScoreNotification_schema.SendScoreNotificationSchema;
273
+ exports.GetGradingTypeByYearSchema = getGradingTypeByYear_schema.GetGradingTypeByYearSchema;
274
+ exports.GetGradingComponentByTypeSchema = getGradingComponentByType_schema.GetGradingComponentByTypeSchema;
275
+ exports.GetGradingStudentSchema = getGradingStudent_schema.GetGradingStudentSchema;
276
+ exports.GetScoreStudentSchema = getScoreStudent_schema.GetScoreStudentSchema;
249
277
  exports.PrepareExperienceSchema = prepareExperience_schema.PrepareExperienceSchema;
250
278
  exports.ReplaceModuleAccessSchema = replaceModuleAccess_schema.ReplaceModuleAccessSchema;
251
279
  exports.RefreshModuleAccessSchema = refreshModuleAccess_schema.RefreshModuleAccessSchema;
252
280
  exports.ReplaceModuleAccessManyStudentSchema = replaceModuleAccessManyStudent_schema.ReplaceModuleAccessManyStudentSchema;
253
281
  exports.UpdateManySchema = updateMany_schema.UpdateManySchema;
282
+ exports.CheckProgramExistanceSchema = checkProgramExistance_schema.CheckProgramExistanceSchema;
283
+ exports.CheckStudentProgramExistanceSchema = checkStudentProgramExistance_schema.CheckStudentProgramExistanceSchema;
254
284
  exports.registerOfficePendidikanHooks = hook_officePendidikan.registerOfficePendidikanHooks;
255
285
  exports.actions = actions;
package/build/index.d.ts CHANGED
@@ -96,6 +96,27 @@ export declare const actions: {
96
96
  refreshManyGrading: import("@neon.id/operation").Action<"refreshManyGrading", {
97
97
  gradingTypeId?: string | undefined;
98
98
  }, import("./actions").RefreshManyGradingOutput, import("./actions").RefreshManyGradingMeta>;
99
+ getGradingTypeByYear: import("@neon.id/operation").Action<"getGradingTypeByYear", {
100
+ year: string;
101
+ limit: number;
102
+ page: number;
103
+ }, import("./actions").getGradingTypeByYearOutput, import("./actions").getGradingTypeByYearMeta>;
104
+ getGradingComponentByType: import("@neon.id/operation").Action<"getGradingComponentByType", {
105
+ gradingTypeId: string;
106
+ limit: number;
107
+ page: number;
108
+ }, import("./actions").getGradingComponentByTypeOutput, import("./actions").getGradingComponentByTypeMeta>;
109
+ getGradingStudent: import("@neon.id/operation").Action<"getGradingStudent", {
110
+ branchId: string;
111
+ studentId: string;
112
+ gradingTypeId: string;
113
+ limit: number;
114
+ page: number;
115
+ }, import("./actions").getGradingStudentOutput, import("./actions").getGradingStudentMeta>;
116
+ getScoreStudent: import("@neon.id/operation").Action<"getScoreStudent", {
117
+ studentId: string;
118
+ gradingId: string;
119
+ }, import("./actions").getScoreStudentOutput, import("./actions").getScoreStudentMeta>;
99
120
  addManyGradingComponent: import("@neon.id/operation").Action<"addManyGradingComponent", import("./actions").AddManyGradingComponentInput, import("./actions").AddManyGradingComponentOutput, import("./actions").AddManyGradingComponentMeta>;
100
121
  calculateGrading: import("@neon.id/operation").Action<"calculateGrading", import("./actions").CalculateGradingInput, import("./actions").CalculateGradingOutput, import("./actions").CalculateGradingMeta>;
101
122
  calculateManyComparator: import("@neon.id/operation").Action<"calculateManyComparator", import("./actions").CalculateManyComparatorInput, import("./actions").CalculateManyComparatorOutput, import("./actions").CalculateManyComparatorMeta>;
@@ -115,6 +136,10 @@ export declare const actions: {
115
136
  sendAnswer: import("@neon.id/operation").Action<"sendAnswer", import("./actions").SendAnswerInput, import("./actions").SendAnswerOutput, import("./actions").SendAnswerMeta>;
116
137
  sendQuestion: import("@neon.id/operation").Action<"sendQuestion", import("./actions").SendQuestionInput, import("./actions").SendQuestionOutput, import("./actions").SendQuestionMeta>;
117
138
  reminderQuestions: typeof reminderQuestions;
139
+ checkProgramExistance: import("@neon.id/operation").Action<"checkProgramExistance", {
140
+ name: string;
141
+ code: string;
142
+ }, import("./actions").CheckProgramExistanceOutput, import("./actions").CheckProgramExistanceMeta>;
118
143
  prepareMediaScanterGradingInsert: import("@neon.id/operation").Action<"prepareMediaScanterGradingInsert", {
119
144
  eventId?: string | undefined;
120
145
  }, import("./actions").PrepareMediaScanterGradingInsertOutput, import("./actions").PrepareMediaScanterGradingInsertMeta>;
@@ -134,4 +159,8 @@ export declare const actions: {
134
159
  startedAt?: string | undefined;
135
160
  }, import("./actions").SyncClassGroupsOutput, import("./actions").SyncClassGroupsaMeta>;
136
161
  syncStudents: import("@neon.id/operation").Action<"syncStudents", import("./actions").SyncStudentsInput, import("./actions").SyncStudentsOutput, import("./actions").SyncStudentsMeta>;
162
+ checkStudentProgramExistance: import("@neon.id/operation").Action<"checkStudentProgramExistance", {
163
+ studentId: string;
164
+ programId: string;
165
+ }, import("./actions").CheckStudentProgramExistanceOutput, import("./actions").CheckStudentProgramExistanceMeta>;
137
166
  };
package/build/index.mjs CHANGED
@@ -35,6 +35,10 @@ import { bulkUpdateSession } from './actions/jadwal/action.bulkUpdateSession.mjs
35
35
  import { getGradingCount } from './actions/penilaian/getGradingCount/action.getGradingCount.mjs';
36
36
  import { refreshGrading } from './actions/penilaian/refreshGrading/refreshGrading.action.mjs';
37
37
  import { refreshManyGrading } from './actions/penilaian/refreshManyGrading/refreshManyGrading.action.mjs';
38
+ import { getGradingTypeByYear } from './actions/penilaian/getGradingTypeByYear/getGradingTypeByYear.action.mjs';
39
+ import { getGradingComponentByType } from './actions/penilaian/getGradingComponentByType/getGradingComponentByType.action.mjs';
40
+ import { getGradingStudent } from './actions/penilaian/getGradingStudent/getGradingStudent.action.mjs';
41
+ import { getScoreStudent } from './actions/penilaian/getScoreStudent/getScoreStudent.action.mjs';
38
42
  import { addManyGradingComponent } from './actions/rasionalisasi/action.addManyGradingComponent.mjs';
39
43
  import { calculateGrading } from './actions/rasionalisasi/action.calculateGrading.mjs';
40
44
  import { calculateManyComparator } from './actions/rasionalisasi/action.calculateManyComparator.mjs';
@@ -53,11 +57,13 @@ import { notUnderstand } from './actions/tanya/action.notUnderstand.mjs';
53
57
  import { sendAnswer } from './actions/tanya/action.sendAnswer.mjs';
54
58
  import { sendQuestion } from './actions/tanya/action.sendQuestion.mjs';
55
59
  import { reminderQuestions } from './actions/tanya/action.reminderQuestions.mjs';
60
+ import { checkProgramExistance } from './actions/checkProgramExistance/checkProgramExistance.action.mjs';
56
61
  import { prepareMediaScanterGradingInsert } from './actions/mediaScanter/prepareMediaScanterGradingInsert/prepareMediaScanterGradingInsert.action.mjs';
57
62
  import { importData } from './actions/importData/importData.action.mjs';
58
63
  import { updateReportStudent } from './actions/akademik/updateReportStudent/updateReportStudent.action.mjs';
59
64
  import { syncClassGroups } from './actions/jadwal/syncClassGroups/syncClassGroups.action.mjs';
60
65
  import { syncStudents } from './actions/akademik/action.syncStudents.mjs';
66
+ import { checkStudentProgramExistance } from './actions/checkStudentProgramExistance/checkStudentProgramExistance.action.mjs';
61
67
  import { sendClassConsultationNotification } from './actions/jadwal/sendClassConsultationNotification/sendClassConsultationNotification.action.mjs';
62
68
  import { sendScoreNotification } from './actions/penilaian/sendScoreNotification/sendScoreNotification.action.mjs';
63
69
  import { replaceModuleAccessManyStudent } from './actions/replaceModuleAccessManyStudent/replaceModuleAccessManyStudent.action.mjs';
@@ -80,11 +86,17 @@ export { PrepareMediaScanterGradingInsertSchema } from './actions/mediaScanter/p
80
86
  export { RefreshGradingSchema } from './actions/penilaian/refreshGrading/refreshGrading.schema.mjs';
81
87
  export { RefreshManyGradingSchema } from './actions/penilaian/refreshManyGrading/refreshManyGrading.schema.mjs';
82
88
  export { SendScoreNotificationSchema } from './actions/penilaian/sendScoreNotification/sendScoreNotification.schema.mjs';
89
+ export { GetGradingTypeByYearSchema } from './actions/penilaian/getGradingTypeByYear/getGradingTypeByYear.schema.mjs';
90
+ export { GetGradingComponentByTypeSchema } from './actions/penilaian/getGradingComponentByType/getGradingComponentByType.schema.mjs';
91
+ export { GetGradingStudentSchema } from './actions/penilaian/getGradingStudent/getGradingStudent.schema.mjs';
92
+ export { GetScoreStudentSchema } from './actions/penilaian/getScoreStudent/getScoreStudent.schema.mjs';
83
93
  export { PrepareExperienceSchema } from './actions/prepareExperience/prepareExperience.schema.mjs';
84
94
  export { ReplaceModuleAccessSchema } from './actions/replaceModuleAccess/replaceModuleAccess.schema.mjs';
85
95
  export { RefreshModuleAccessSchema } from './actions/refreshModuleAccess/refreshModuleAccess.schema.mjs';
86
96
  export { ReplaceModuleAccessManyStudentSchema } from './actions/replaceModuleAccessManyStudent/replaceModuleAccessManyStudent.schema.mjs';
87
97
  export { UpdateManySchema } from './actions/updateMany/updateMany.schema.mjs';
98
+ export { CheckProgramExistanceSchema } from './actions/checkProgramExistance/checkProgramExistance.schema.mjs';
99
+ export { CheckStudentProgramExistanceSchema } from './actions/checkStudentProgramExistance/checkStudentProgramExistance.schema.mjs';
88
100
  export { registerOfficePendidikanHooks } from './hooks/hook.officePendidikan.mjs';
89
101
 
90
102
  const actions = {
@@ -132,6 +144,10 @@ const actions = {
132
144
  getGradingCount,
133
145
  refreshGrading,
134
146
  refreshManyGrading,
147
+ getGradingTypeByYear,
148
+ getGradingComponentByType,
149
+ getGradingStudent,
150
+ getScoreStudent,
135
151
  // Rasionalisasi
136
152
  addManyGradingComponent,
137
153
  calculateGrading,
@@ -153,6 +169,7 @@ const actions = {
153
169
  sendAnswer,
154
170
  sendQuestion,
155
171
  reminderQuestions,
172
+ checkProgramExistance,
156
173
  // Media Scanter
157
174
  prepareMediaScanterGradingInsert,
158
175
  // Import Data
@@ -161,7 +178,8 @@ const actions = {
161
178
  updateReportStudent,
162
179
  // sync
163
180
  syncClassGroups,
164
- syncStudents
181
+ syncStudents,
182
+ checkStudentProgramExistance
165
183
  };
166
184
 
167
- export { acceptQuestion, actions, addManyGradingComponent, allConflict, bulkDeleteSession, bulkUpdateSession, calculateGrading, calculateManyComparator, calculateOneComparator, checkClassAttendance, classSessionInventoryOccurs, classSessionInventoryPreparation, clearAllOverrides, clearGrading, clearOneOverrides, createGradingAndScores, createManySession, customSaveOneClassSession, deleteManySession, editAnswer, generateGrading, getClassSessionConflicts, getGradingCount, getQuestionCount, getStaffId, getStaffPoint, getStudentId, getStudentPoint, getTeacherPoint, hasUnderstand, importData, notUnderstand, prepareConflict, prepareExperience, prepareMediaScanterGradingInsert, presenceSessionStudent, presenceSessionTeacher, rasionalizeGrading, refreshGrading, refreshManyGrading, refreshModuleAccess, reminderQuestions, replaceModuleAccess, replaceModuleAccessManyStudent, sendAnswer, sendClassConsultationNotification, sendClassSessionNotification, sendPointNotification, sendQuestion, sendScoreNotification, setAksesModulSiswaDiClassGroup, setClassSessionDependencies, setTravelWageSessions, syncClassGroups, syncClassSessions, syncCommitment, syncStudentAdmisi, syncStudentBranch, syncStudentInformation, syncStudentReport, syncStudents, updateGradingAndScores, updateMany, updateReportStudent, userCountStats };
185
+ export { acceptQuestion, actions, addManyGradingComponent, allConflict, bulkDeleteSession, bulkUpdateSession, calculateGrading, calculateManyComparator, calculateOneComparator, checkClassAttendance, checkProgramExistance, checkStudentProgramExistance, classSessionInventoryOccurs, classSessionInventoryPreparation, clearAllOverrides, clearGrading, clearOneOverrides, createGradingAndScores, createManySession, customSaveOneClassSession, deleteManySession, editAnswer, generateGrading, getClassSessionConflicts, getGradingComponentByType, getGradingCount, getGradingStudent, getGradingTypeByYear, getQuestionCount, getScoreStudent, getStaffId, getStaffPoint, getStudentId, getStudentPoint, getTeacherPoint, hasUnderstand, importData, notUnderstand, prepareConflict, prepareExperience, prepareMediaScanterGradingInsert, presenceSessionStudent, presenceSessionTeacher, rasionalizeGrading, refreshGrading, refreshManyGrading, refreshModuleAccess, reminderQuestions, replaceModuleAccess, replaceModuleAccessManyStudent, sendAnswer, sendClassConsultationNotification, sendClassSessionNotification, sendPointNotification, sendQuestion, sendScoreNotification, setAksesModulSiswaDiClassGroup, setClassSessionDependencies, setTravelWageSessions, syncClassGroups, syncClassSessions, syncCommitment, syncStudentAdmisi, syncStudentBranch, syncStudentInformation, syncStudentReport, syncStudents, updateGradingAndScores, updateMany, updateReportStudent, userCountStats };