@iblai/data-layer 1.11.1 → 1.11.2
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/index.d.ts +1739 -2
- package/dist/index.esm.js +138 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +152 -0
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/features/grading/api-slice.d.ts +1601 -0
- package/dist/src/features/grading/constants.d.ts +40 -0
- package/dist/src/features/grading/index.d.ts +3 -0
- package/dist/src/features/grading/types.d.ts +85 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/tests/features/grading/api-slice.test.d.ts +1 -0
- package/dist/tests/features/grading/constants.test.d.ts +1 -0
- package/dist/tests/features/grading/index.test.d.ts +1 -0
- package/dist/tests/features/grading/types.test.d.ts +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { SERVICES } from '@data-layer/constants';
|
|
2
|
+
export declare const GRADING_REDUCER_PATH = "gradingApiSlice";
|
|
3
|
+
export declare const GRADING_ENDPOINTS: {
|
|
4
|
+
GET_MENTOR_GRADER_CONFIGURATION: {
|
|
5
|
+
service: SERVICES;
|
|
6
|
+
path: (org: string, mentorId: string) => string;
|
|
7
|
+
};
|
|
8
|
+
CREATE_MENTOR_GRADER_CONFIGURATION: {
|
|
9
|
+
service: SERVICES;
|
|
10
|
+
path: (org: string, mentorId: string) => string;
|
|
11
|
+
};
|
|
12
|
+
UPDATE_MENTOR_GRADER_CONFIGURATION: {
|
|
13
|
+
service: SERVICES;
|
|
14
|
+
path: (org: string, mentorId: string) => string;
|
|
15
|
+
};
|
|
16
|
+
LIST_GRADER_CRITERIA: {
|
|
17
|
+
service: SERVICES;
|
|
18
|
+
path: (org: string, mentorId: string) => string;
|
|
19
|
+
};
|
|
20
|
+
CREATE_GRADER_CRITERION: {
|
|
21
|
+
service: SERVICES;
|
|
22
|
+
path: (org: string, mentorId: string) => string;
|
|
23
|
+
};
|
|
24
|
+
GET_GRADER_CRITERION: {
|
|
25
|
+
service: SERVICES;
|
|
26
|
+
path: (org: string, mentorId: string, criterionId: number) => string;
|
|
27
|
+
};
|
|
28
|
+
UPDATE_GRADER_CRITERION: {
|
|
29
|
+
service: SERVICES;
|
|
30
|
+
path: (org: string, mentorId: string, criterionId: number) => string;
|
|
31
|
+
};
|
|
32
|
+
DELETE_GRADER_CRITERION: {
|
|
33
|
+
service: SERVICES;
|
|
34
|
+
path: (org: string, mentorId: string, criterionId: number) => string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export declare const GRADING_QUERY_KEYS: {
|
|
38
|
+
GET_GRADER_CONFIGURATION: () => string[];
|
|
39
|
+
GET_GRADER_CRITERIA: () => string[];
|
|
40
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export type GradingMode = 'submission' | 'conversation';
|
|
2
|
+
export type FeedbackMode = 'overall' | 'per_criteria' | 'both';
|
|
3
|
+
export interface MentorGraderConfiguration {
|
|
4
|
+
id: number;
|
|
5
|
+
mentor: string;
|
|
6
|
+
grading_mode: GradingMode;
|
|
7
|
+
grader_instructions: string;
|
|
8
|
+
feedback_mode: FeedbackMode;
|
|
9
|
+
created_at: string;
|
|
10
|
+
updated_at: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GraderCriterion {
|
|
13
|
+
id: number;
|
|
14
|
+
name: string;
|
|
15
|
+
criteria: string;
|
|
16
|
+
points: number;
|
|
17
|
+
}
|
|
18
|
+
export type GetMentorGraderConfigurationArgs = {
|
|
19
|
+
org: string;
|
|
20
|
+
mentorId: string;
|
|
21
|
+
};
|
|
22
|
+
export type CreateMentorGraderConfigurationRequest = {
|
|
23
|
+
grader_instructions: string;
|
|
24
|
+
feedback_mode: FeedbackMode;
|
|
25
|
+
grading_mode?: GradingMode;
|
|
26
|
+
};
|
|
27
|
+
export type CreateMentorGraderConfigurationArgs = {
|
|
28
|
+
org: string;
|
|
29
|
+
mentorId: string;
|
|
30
|
+
formData: CreateMentorGraderConfigurationRequest;
|
|
31
|
+
};
|
|
32
|
+
export type UpdateMentorGraderConfigurationRequest = {
|
|
33
|
+
grader_instructions?: string;
|
|
34
|
+
feedback_mode?: FeedbackMode;
|
|
35
|
+
grading_mode?: GradingMode;
|
|
36
|
+
};
|
|
37
|
+
export type UpdateMentorGraderConfigurationArgs = {
|
|
38
|
+
org: string;
|
|
39
|
+
mentorId: string;
|
|
40
|
+
formData: UpdateMentorGraderConfigurationRequest;
|
|
41
|
+
};
|
|
42
|
+
export type ListGraderCriteriaArgs = {
|
|
43
|
+
org: string;
|
|
44
|
+
mentorId: string;
|
|
45
|
+
search?: string;
|
|
46
|
+
limit?: number;
|
|
47
|
+
offset?: number;
|
|
48
|
+
};
|
|
49
|
+
export type PaginatedGraderCriteriaResponse = {
|
|
50
|
+
count: number;
|
|
51
|
+
next: string | null;
|
|
52
|
+
previous: string | null;
|
|
53
|
+
results: GraderCriterion[];
|
|
54
|
+
};
|
|
55
|
+
export type CreateGraderCriterionRequest = {
|
|
56
|
+
name: string;
|
|
57
|
+
criteria: string;
|
|
58
|
+
points?: number;
|
|
59
|
+
};
|
|
60
|
+
export type CreateGraderCriterionArgs = {
|
|
61
|
+
org: string;
|
|
62
|
+
mentorId: string;
|
|
63
|
+
formData: CreateGraderCriterionRequest;
|
|
64
|
+
};
|
|
65
|
+
export type UpdateGraderCriterionRequest = {
|
|
66
|
+
name?: string;
|
|
67
|
+
criteria?: string;
|
|
68
|
+
points?: number;
|
|
69
|
+
};
|
|
70
|
+
export type UpdateGraderCriterionArgs = {
|
|
71
|
+
org: string;
|
|
72
|
+
mentorId: string;
|
|
73
|
+
criterionId: number;
|
|
74
|
+
formData: UpdateGraderCriterionRequest;
|
|
75
|
+
};
|
|
76
|
+
export type DeleteGraderCriterionArgs = {
|
|
77
|
+
org: string;
|
|
78
|
+
mentorId: string;
|
|
79
|
+
criterionId: number;
|
|
80
|
+
};
|
|
81
|
+
export type GetGraderCriterionArgs = {
|
|
82
|
+
org: string;
|
|
83
|
+
mentorId: string;
|
|
84
|
+
criterionId: number;
|
|
85
|
+
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -105,6 +105,9 @@ export * from './features/retirement/types';
|
|
|
105
105
|
export * from './features/disclaimers/api-slice';
|
|
106
106
|
export * from './features/disclaimers/constants';
|
|
107
107
|
export * from './features/disclaimers/types';
|
|
108
|
+
export * from './features/grading/api-slice';
|
|
109
|
+
export * from './features/grading/constants';
|
|
110
|
+
export * from './features/grading/types';
|
|
108
111
|
export * from './features/search/ai-search-api-slice';
|
|
109
112
|
export * from './features/search/types';
|
|
110
113
|
export * from './features/search/constants';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|