@uniteverses/shared 1.0.30 → 1.0.31
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/domains/politicians/community/residents/explore/constants.d.ts +7 -0
- package/dist/domains/politicians/community/residents/explore/constants.js +15 -0
- package/dist/domains/politicians/community/residents/explore/types.d.ts +364 -0
- package/dist/domains/politicians/community/residents/explore/types.js +2 -0
- package/dist/domains/teachers/prep_center/students/simulate/types.d.ts +272 -0
- package/dist/domains/teachers/prep_center/students/simulate/types.js +53 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const POSTS_PAGE_SIZE = 20;
|
|
2
|
+
export declare const FOOD_GROUP_NESTING_DEPTH = 3;
|
|
3
|
+
export declare const TOPIC_NESTING_DEPTH = 3;
|
|
4
|
+
export declare const COMMENT_MAX_REPLY_DEPTH = 2;
|
|
5
|
+
export declare const COMMENT_INDENT_PX = 16;
|
|
6
|
+
export declare const COMMENT_MAX_INDENT_PX = 48;
|
|
7
|
+
export declare const CONTACT_PHONE = "+1 (917) 000-0000";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CONTACT_PHONE = exports.COMMENT_MAX_INDENT_PX = exports.COMMENT_INDENT_PX = exports.COMMENT_MAX_REPLY_DEPTH = exports.TOPIC_NESTING_DEPTH = exports.FOOD_GROUP_NESTING_DEPTH = exports.POSTS_PAGE_SIZE = void 0;
|
|
4
|
+
// Pagination
|
|
5
|
+
exports.POSTS_PAGE_SIZE = 20;
|
|
6
|
+
// Food group recursive query depth
|
|
7
|
+
exports.FOOD_GROUP_NESTING_DEPTH = 3;
|
|
8
|
+
// Topic nesting depth
|
|
9
|
+
exports.TOPIC_NESTING_DEPTH = 3;
|
|
10
|
+
// Comment reply nesting
|
|
11
|
+
exports.COMMENT_MAX_REPLY_DEPTH = 2;
|
|
12
|
+
exports.COMMENT_INDENT_PX = 16;
|
|
13
|
+
exports.COMMENT_MAX_INDENT_PX = 48;
|
|
14
|
+
// Contact
|
|
15
|
+
exports.CONTACT_PHONE = "+1 (917) 000-0000";
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
export interface Language {
|
|
2
|
+
id: string;
|
|
3
|
+
code: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ProfileTranslationInput {
|
|
7
|
+
languageId: string;
|
|
8
|
+
bio?: string;
|
|
9
|
+
job?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CreateProfileInput {
|
|
12
|
+
dob: string;
|
|
13
|
+
translations?: ProfileTranslationInput[];
|
|
14
|
+
}
|
|
15
|
+
export interface UpdateProfileInput {
|
|
16
|
+
dob?: string;
|
|
17
|
+
translations?: ProfileTranslationInput[];
|
|
18
|
+
}
|
|
19
|
+
export interface ProfileTranslation {
|
|
20
|
+
id: string;
|
|
21
|
+
profileId: string;
|
|
22
|
+
languageId: string;
|
|
23
|
+
bio: string | null;
|
|
24
|
+
job: string | null;
|
|
25
|
+
createdAt: string | Date;
|
|
26
|
+
updatedAt: string | Date;
|
|
27
|
+
language: Language;
|
|
28
|
+
}
|
|
29
|
+
export interface Profile {
|
|
30
|
+
id: string;
|
|
31
|
+
userId: string;
|
|
32
|
+
dob: string | Date;
|
|
33
|
+
createdAt: string | Date;
|
|
34
|
+
updatedAt: string | Date;
|
|
35
|
+
translations: ProfileTranslation[];
|
|
36
|
+
user: User;
|
|
37
|
+
}
|
|
38
|
+
export interface User {
|
|
39
|
+
id: string;
|
|
40
|
+
firstName: string;
|
|
41
|
+
lastName: string;
|
|
42
|
+
username: string;
|
|
43
|
+
createdAt: string | Date;
|
|
44
|
+
}
|
|
45
|
+
export interface CheckProfileResult {
|
|
46
|
+
exists: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface DeleteProfileResult {
|
|
49
|
+
deleted: boolean;
|
|
50
|
+
}
|
|
51
|
+
export interface CheckAdminResult {
|
|
52
|
+
isAdmin: boolean;
|
|
53
|
+
}
|
|
54
|
+
export interface OrganizationType {
|
|
55
|
+
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
createdAt: string | Date;
|
|
58
|
+
}
|
|
59
|
+
export interface OrganizationAddress {
|
|
60
|
+
id: string;
|
|
61
|
+
organizationId: string;
|
|
62
|
+
street: string;
|
|
63
|
+
city: string;
|
|
64
|
+
state: string;
|
|
65
|
+
zip: string;
|
|
66
|
+
country: string;
|
|
67
|
+
createdAt: string | Date;
|
|
68
|
+
}
|
|
69
|
+
export interface OrganizationPhone {
|
|
70
|
+
id: string;
|
|
71
|
+
organizationId: string;
|
|
72
|
+
number: string;
|
|
73
|
+
label: string | null;
|
|
74
|
+
createdAt: string | Date;
|
|
75
|
+
}
|
|
76
|
+
export interface Organization {
|
|
77
|
+
id: string;
|
|
78
|
+
name: string;
|
|
79
|
+
createdAt: string | Date;
|
|
80
|
+
types: {
|
|
81
|
+
type: OrganizationType;
|
|
82
|
+
}[];
|
|
83
|
+
addresses: OrganizationAddress[];
|
|
84
|
+
phones: OrganizationPhone[];
|
|
85
|
+
}
|
|
86
|
+
export interface CreateOrganizationInput {
|
|
87
|
+
name: string;
|
|
88
|
+
typeIds?: string[];
|
|
89
|
+
addresses?: Omit<OrganizationAddress, "id" | "organizationId" | "createdAt">[];
|
|
90
|
+
phones?: Omit<OrganizationPhone, "id" | "organizationId" | "createdAt">[];
|
|
91
|
+
}
|
|
92
|
+
export interface UpdateOrganizationInput {
|
|
93
|
+
name?: string;
|
|
94
|
+
typeIds?: string[];
|
|
95
|
+
addresses?: Omit<OrganizationAddress, "id" | "organizationId" | "createdAt">[];
|
|
96
|
+
phones?: Omit<OrganizationPhone, "id" | "organizationId" | "createdAt">[];
|
|
97
|
+
}
|
|
98
|
+
export interface Topic {
|
|
99
|
+
id: string;
|
|
100
|
+
name: string;
|
|
101
|
+
parentTopicId: string | null;
|
|
102
|
+
createdAt: string | Date;
|
|
103
|
+
_count?: {
|
|
104
|
+
childTopics: number;
|
|
105
|
+
posts: number;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
export interface TopicWithChildren {
|
|
109
|
+
id: string;
|
|
110
|
+
name: string;
|
|
111
|
+
parentTopicId: string | null;
|
|
112
|
+
createdAt: string | Date;
|
|
113
|
+
childTopics: TopicWithChildren[];
|
|
114
|
+
_count?: {
|
|
115
|
+
childTopics: number;
|
|
116
|
+
posts: number;
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
export interface CreatePostInput {
|
|
120
|
+
title: string;
|
|
121
|
+
body: string;
|
|
122
|
+
topicId?: string;
|
|
123
|
+
}
|
|
124
|
+
export interface UpdatePostInput {
|
|
125
|
+
title: string;
|
|
126
|
+
body: string;
|
|
127
|
+
}
|
|
128
|
+
export interface PostVersion {
|
|
129
|
+
id: string;
|
|
130
|
+
postId: string;
|
|
131
|
+
version: number;
|
|
132
|
+
title: string;
|
|
133
|
+
body: string;
|
|
134
|
+
createdAt: string | Date;
|
|
135
|
+
}
|
|
136
|
+
export interface Post {
|
|
137
|
+
id: string;
|
|
138
|
+
userId: string;
|
|
139
|
+
topicId: string | null;
|
|
140
|
+
createdAt: string | Date;
|
|
141
|
+
deletedAt: string | Date | null;
|
|
142
|
+
user: User;
|
|
143
|
+
topic?: Topic | null;
|
|
144
|
+
versions: PostVersion[];
|
|
145
|
+
comments?: Comment[];
|
|
146
|
+
_count?: {
|
|
147
|
+
comments: number;
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
export interface CreateCommentInput {
|
|
151
|
+
body: string;
|
|
152
|
+
parentCommentId?: string;
|
|
153
|
+
}
|
|
154
|
+
export interface UpdateCommentInput {
|
|
155
|
+
body: string;
|
|
156
|
+
}
|
|
157
|
+
export interface CommentVersion {
|
|
158
|
+
id: string;
|
|
159
|
+
commentId: string;
|
|
160
|
+
version: number;
|
|
161
|
+
body: string;
|
|
162
|
+
createdAt: string | Date;
|
|
163
|
+
}
|
|
164
|
+
export interface Comment {
|
|
165
|
+
id: string;
|
|
166
|
+
postId: string;
|
|
167
|
+
userId: string;
|
|
168
|
+
parentCommentId: string | null;
|
|
169
|
+
createdAt: string | Date;
|
|
170
|
+
deletedAt: string | Date | null;
|
|
171
|
+
user: User;
|
|
172
|
+
versions: CommentVersion[];
|
|
173
|
+
replies?: Comment[];
|
|
174
|
+
}
|
|
175
|
+
export interface OrgEventTranslation {
|
|
176
|
+
id: string;
|
|
177
|
+
eventId: string;
|
|
178
|
+
languageId: string;
|
|
179
|
+
name: string;
|
|
180
|
+
description: string | null;
|
|
181
|
+
createdAt: string | Date;
|
|
182
|
+
language: Language;
|
|
183
|
+
}
|
|
184
|
+
export interface OrgEventTranslationInput {
|
|
185
|
+
languageId: string;
|
|
186
|
+
name: string;
|
|
187
|
+
description?: string;
|
|
188
|
+
}
|
|
189
|
+
export interface OrgEvent {
|
|
190
|
+
id: string;
|
|
191
|
+
organizationId: string;
|
|
192
|
+
createdAt: string | Date;
|
|
193
|
+
occurrences?: OrgEventOccurrence[];
|
|
194
|
+
translations: OrgEventTranslation[];
|
|
195
|
+
_count?: {
|
|
196
|
+
occurrences: number;
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
export interface CreateOrgEventInput {
|
|
200
|
+
translations: OrgEventTranslationInput[];
|
|
201
|
+
}
|
|
202
|
+
export interface UpdateOrgEventInput {
|
|
203
|
+
translations: OrgEventTranslationInput[];
|
|
204
|
+
}
|
|
205
|
+
export interface OrgEventOccurrenceTranslation {
|
|
206
|
+
id: string;
|
|
207
|
+
occurrenceId: string;
|
|
208
|
+
languageId: string;
|
|
209
|
+
description: string | null;
|
|
210
|
+
createdAt: string | Date;
|
|
211
|
+
language: Language;
|
|
212
|
+
}
|
|
213
|
+
export interface OrgEventOccurrenceTranslationInput {
|
|
214
|
+
languageId: string;
|
|
215
|
+
description?: string;
|
|
216
|
+
}
|
|
217
|
+
export interface OrgEventOccurrence {
|
|
218
|
+
id: string;
|
|
219
|
+
eventId: string;
|
|
220
|
+
startsAt: string | Date;
|
|
221
|
+
endsAt: string | Date | null;
|
|
222
|
+
location: string | null;
|
|
223
|
+
capacity: number | null;
|
|
224
|
+
createdAt: string | Date;
|
|
225
|
+
applicants?: OrgEventOccurrenceApplicant[];
|
|
226
|
+
participants?: OrgEventOccurrenceParticipant[];
|
|
227
|
+
translations: OrgEventOccurrenceTranslation[];
|
|
228
|
+
_count?: {
|
|
229
|
+
applicants: number;
|
|
230
|
+
participants: number;
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
export interface CreateOrgEventOccurrenceInput {
|
|
234
|
+
startsAt: string;
|
|
235
|
+
endsAt?: string;
|
|
236
|
+
location?: string;
|
|
237
|
+
capacity?: number;
|
|
238
|
+
translations?: OrgEventOccurrenceTranslationInput[];
|
|
239
|
+
}
|
|
240
|
+
export interface UpdateOrgEventOccurrenceInput {
|
|
241
|
+
startsAt?: string;
|
|
242
|
+
endsAt?: string;
|
|
243
|
+
location?: string;
|
|
244
|
+
capacity?: number;
|
|
245
|
+
translations?: OrgEventOccurrenceTranslationInput[];
|
|
246
|
+
}
|
|
247
|
+
export interface OrgEventOccurrenceApplicant {
|
|
248
|
+
id: string;
|
|
249
|
+
occurrenceId: string;
|
|
250
|
+
userId: string;
|
|
251
|
+
status: string;
|
|
252
|
+
appliedAt: string | Date;
|
|
253
|
+
user: User & {
|
|
254
|
+
profile?: Profile | null;
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
export interface OrgEventOccurrenceParticipant {
|
|
258
|
+
id: string;
|
|
259
|
+
occurrenceId: string;
|
|
260
|
+
userId: string;
|
|
261
|
+
joinedAt: string | Date;
|
|
262
|
+
user: User;
|
|
263
|
+
}
|
|
264
|
+
export interface FoodGroup {
|
|
265
|
+
id: string;
|
|
266
|
+
name: string;
|
|
267
|
+
parentGroupId: string | null;
|
|
268
|
+
createdAt: string | Date;
|
|
269
|
+
_count?: {
|
|
270
|
+
foodItems: number;
|
|
271
|
+
childGroups: number;
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
export interface FoodItem {
|
|
275
|
+
id: string;
|
|
276
|
+
name: string;
|
|
277
|
+
createdAt: string | Date;
|
|
278
|
+
_count?: {
|
|
279
|
+
foodGroups: number;
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
export interface FoodGroupItem {
|
|
283
|
+
id: string;
|
|
284
|
+
foodGroupId: string;
|
|
285
|
+
foodItemId: string;
|
|
286
|
+
createdAt: string | Date;
|
|
287
|
+
foodItem: FoodItem;
|
|
288
|
+
}
|
|
289
|
+
export interface FoodGroupWithChildren {
|
|
290
|
+
id: string;
|
|
291
|
+
name: string;
|
|
292
|
+
parentGroupId: string | null;
|
|
293
|
+
createdAt: string | Date;
|
|
294
|
+
foodItems: FoodGroupItem[];
|
|
295
|
+
childGroups: FoodGroupWithChildren[];
|
|
296
|
+
}
|
|
297
|
+
export interface Unit {
|
|
298
|
+
id: string;
|
|
299
|
+
name: string;
|
|
300
|
+
label: string;
|
|
301
|
+
createdAt: string | Date;
|
|
302
|
+
}
|
|
303
|
+
export interface Size {
|
|
304
|
+
id: string;
|
|
305
|
+
name: string;
|
|
306
|
+
label: string;
|
|
307
|
+
createdAt: string | Date;
|
|
308
|
+
}
|
|
309
|
+
export interface OrgFoodGroup {
|
|
310
|
+
id: string;
|
|
311
|
+
organizationId: string;
|
|
312
|
+
name: string;
|
|
313
|
+
parentGroupId: string | null;
|
|
314
|
+
createdAt: string | Date;
|
|
315
|
+
_count?: {
|
|
316
|
+
foodItems: number;
|
|
317
|
+
childGroups: number;
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
export interface OrgFoodItemType {
|
|
321
|
+
id: string;
|
|
322
|
+
orgFoodItemId: string;
|
|
323
|
+
foodItemId: string;
|
|
324
|
+
createdAt: string | Date;
|
|
325
|
+
foodItem: FoodItem;
|
|
326
|
+
}
|
|
327
|
+
export interface OrgFoodItemPrice {
|
|
328
|
+
id: string;
|
|
329
|
+
orgFoodItemId: string;
|
|
330
|
+
price: string;
|
|
331
|
+
unitId: string;
|
|
332
|
+
sizeId: string | null;
|
|
333
|
+
quantityPerUnit: number | null;
|
|
334
|
+
createdAt: string | Date;
|
|
335
|
+
unit: Unit;
|
|
336
|
+
size: Size | null;
|
|
337
|
+
}
|
|
338
|
+
export interface OrgFoodItem {
|
|
339
|
+
id: string;
|
|
340
|
+
organizationId: string;
|
|
341
|
+
name: string;
|
|
342
|
+
createdAt: string | Date;
|
|
343
|
+
_count?: {
|
|
344
|
+
foodGroups: number;
|
|
345
|
+
};
|
|
346
|
+
foodItemTypes?: OrgFoodItemType[];
|
|
347
|
+
prices?: OrgFoodItemPrice[];
|
|
348
|
+
}
|
|
349
|
+
export interface OrgFoodGroupItem {
|
|
350
|
+
id: string;
|
|
351
|
+
foodGroupId: string;
|
|
352
|
+
foodItemId: string;
|
|
353
|
+
createdAt: string | Date;
|
|
354
|
+
foodItem: OrgFoodItem;
|
|
355
|
+
}
|
|
356
|
+
export interface OrgFoodGroupWithChildren {
|
|
357
|
+
id: string;
|
|
358
|
+
organizationId: string;
|
|
359
|
+
name: string;
|
|
360
|
+
parentGroupId: string | null;
|
|
361
|
+
createdAt: string | Date;
|
|
362
|
+
foodItems: OrgFoodGroupItem[];
|
|
363
|
+
childGroups: OrgFoodGroupWithChildren[];
|
|
364
|
+
}
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
export interface SatExamOrganization {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
}
|
|
5
|
+
export interface SatExamQuestionTypeGroup {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
label: string;
|
|
9
|
+
types: SatExamQuestionType[];
|
|
10
|
+
}
|
|
11
|
+
export interface SatExamQuestionType {
|
|
12
|
+
id: string;
|
|
13
|
+
groupId: string | null;
|
|
14
|
+
name: string;
|
|
15
|
+
label: string;
|
|
16
|
+
group: SatExamQuestionTypeGroup | null;
|
|
17
|
+
}
|
|
18
|
+
export interface SatExamOption {
|
|
19
|
+
id: string;
|
|
20
|
+
questionId: string;
|
|
21
|
+
text: string;
|
|
22
|
+
order: number;
|
|
23
|
+
}
|
|
24
|
+
export interface SatExamCorrectAnswer {
|
|
25
|
+
id: string;
|
|
26
|
+
questionId: string;
|
|
27
|
+
value: string;
|
|
28
|
+
}
|
|
29
|
+
export type SatExamQuestionDifficulty = 'easy' | 'medium' | 'hard';
|
|
30
|
+
export declare const DEFAULT_QUESTION_DIFFICULTY: SatExamQuestionDifficulty;
|
|
31
|
+
export declare const QUESTION_DIFFICULTY_OPTIONS: {
|
|
32
|
+
value: SatExamQuestionDifficulty;
|
|
33
|
+
label: string;
|
|
34
|
+
}[];
|
|
35
|
+
export declare const QUESTION_DIFFICULTY_VALUE_BOUNDS: Record<SatExamQuestionDifficulty, {
|
|
36
|
+
min: number;
|
|
37
|
+
max: number;
|
|
38
|
+
}>;
|
|
39
|
+
export declare const QUESTION_DISCRIMINATION_BOUNDS: {
|
|
40
|
+
min: number;
|
|
41
|
+
max: number;
|
|
42
|
+
};
|
|
43
|
+
export declare const QUESTION_GUESSING_BOUNDS: {
|
|
44
|
+
min: number;
|
|
45
|
+
max: number;
|
|
46
|
+
};
|
|
47
|
+
export interface SatExamQuestion {
|
|
48
|
+
id: string;
|
|
49
|
+
sectionId: string;
|
|
50
|
+
typeId: string;
|
|
51
|
+
text: string;
|
|
52
|
+
order: number;
|
|
53
|
+
correctOptionId: string | null;
|
|
54
|
+
explanation: string | null;
|
|
55
|
+
difficulty: SatExamQuestionDifficulty;
|
|
56
|
+
difficultyValue: number;
|
|
57
|
+
discrimination: number;
|
|
58
|
+
guessing: number;
|
|
59
|
+
type: SatExamQuestionType;
|
|
60
|
+
options: SatExamOption[];
|
|
61
|
+
correctAnswers: SatExamCorrectAnswer[];
|
|
62
|
+
}
|
|
63
|
+
export type SatExamSectionDifficulty = 'standard' | 'easy' | 'hard';
|
|
64
|
+
export declare const DEFAULT_SECTION_DIFFICULTY: SatExamSectionDifficulty;
|
|
65
|
+
export declare const EASY_ROUTE_DIFFICULTY: SatExamSectionDifficulty;
|
|
66
|
+
export declare const HARD_ROUTE_DIFFICULTY: SatExamSectionDifficulty;
|
|
67
|
+
export declare const SECTION_DIFFICULTY_OPTIONS: {
|
|
68
|
+
value: SatExamSectionDifficulty;
|
|
69
|
+
label: string;
|
|
70
|
+
}[];
|
|
71
|
+
export interface SectionRecommendation {
|
|
72
|
+
totalQuestions: {
|
|
73
|
+
rw: number;
|
|
74
|
+
math: number;
|
|
75
|
+
};
|
|
76
|
+
timeLimitMinutes: {
|
|
77
|
+
rw: number;
|
|
78
|
+
math: number;
|
|
79
|
+
};
|
|
80
|
+
difficultyDistribution: Record<SatExamQuestionDifficulty, number>;
|
|
81
|
+
discriminationRange: {
|
|
82
|
+
min: number;
|
|
83
|
+
max: number;
|
|
84
|
+
};
|
|
85
|
+
guessingMcq: number;
|
|
86
|
+
guessingFreeResponse: number;
|
|
87
|
+
routingThreshold: {
|
|
88
|
+
rw: number;
|
|
89
|
+
math: number;
|
|
90
|
+
} | null;
|
|
91
|
+
}
|
|
92
|
+
export declare const SECTION_RECOMMENDATIONS: Record<SatExamSectionDifficulty, SectionRecommendation>;
|
|
93
|
+
export interface SatExamSection {
|
|
94
|
+
id: string;
|
|
95
|
+
examId: string;
|
|
96
|
+
name: string;
|
|
97
|
+
order: number;
|
|
98
|
+
timeLimitMinutes: number | null;
|
|
99
|
+
module: number | null;
|
|
100
|
+
difficulty: SatExamSectionDifficulty;
|
|
101
|
+
routingThreshold: number | null;
|
|
102
|
+
easyNextSectionId: string | null;
|
|
103
|
+
hardNextSectionId: string | null;
|
|
104
|
+
questions: SatExamQuestion[];
|
|
105
|
+
}
|
|
106
|
+
export interface SatExam {
|
|
107
|
+
id: string;
|
|
108
|
+
organizationId: string;
|
|
109
|
+
title: string;
|
|
110
|
+
description: string | null;
|
|
111
|
+
createdAt: string;
|
|
112
|
+
updatedAt: string;
|
|
113
|
+
organization: SatExamOrganization;
|
|
114
|
+
sections: SatExamSection[];
|
|
115
|
+
}
|
|
116
|
+
export interface CreateSatExamInput {
|
|
117
|
+
organizationId: string;
|
|
118
|
+
title: string;
|
|
119
|
+
description?: string;
|
|
120
|
+
}
|
|
121
|
+
export interface UpdateSatExamInput {
|
|
122
|
+
title?: string;
|
|
123
|
+
description?: string;
|
|
124
|
+
organizationId?: string;
|
|
125
|
+
}
|
|
126
|
+
export interface CreateSatExamSectionInput {
|
|
127
|
+
examId: string;
|
|
128
|
+
name: string;
|
|
129
|
+
order: number;
|
|
130
|
+
timeLimitMinutes?: number;
|
|
131
|
+
module?: number;
|
|
132
|
+
difficulty?: SatExamSectionDifficulty;
|
|
133
|
+
routingThreshold?: number;
|
|
134
|
+
easyNextSectionId?: string;
|
|
135
|
+
hardNextSectionId?: string;
|
|
136
|
+
}
|
|
137
|
+
export interface UpdateSatExamSectionInput {
|
|
138
|
+
name?: string;
|
|
139
|
+
order?: number;
|
|
140
|
+
timeLimitMinutes?: number | null;
|
|
141
|
+
module?: number | null;
|
|
142
|
+
difficulty?: SatExamSectionDifficulty;
|
|
143
|
+
routingThreshold?: number | null;
|
|
144
|
+
easyNextSectionId?: string | null;
|
|
145
|
+
hardNextSectionId?: string | null;
|
|
146
|
+
}
|
|
147
|
+
export interface CreateSatExamQuestionInput {
|
|
148
|
+
sectionId: string;
|
|
149
|
+
typeId: string;
|
|
150
|
+
text: string;
|
|
151
|
+
order: number;
|
|
152
|
+
correctOptionId?: string;
|
|
153
|
+
explanation?: string;
|
|
154
|
+
difficulty?: SatExamQuestionDifficulty;
|
|
155
|
+
difficultyValue?: number;
|
|
156
|
+
discrimination?: number;
|
|
157
|
+
guessing?: number;
|
|
158
|
+
options?: {
|
|
159
|
+
text: string;
|
|
160
|
+
order: number;
|
|
161
|
+
}[];
|
|
162
|
+
}
|
|
163
|
+
export interface UpdateSatExamQuestionInput {
|
|
164
|
+
typeId?: string;
|
|
165
|
+
text?: string;
|
|
166
|
+
order?: number;
|
|
167
|
+
correctOptionId?: string | null;
|
|
168
|
+
explanation?: string | null;
|
|
169
|
+
difficulty?: SatExamQuestionDifficulty;
|
|
170
|
+
difficultyValue?: number;
|
|
171
|
+
discrimination?: number;
|
|
172
|
+
guessing?: number;
|
|
173
|
+
}
|
|
174
|
+
export interface CreateSatExamQuestionTypeGroupInput {
|
|
175
|
+
name: string;
|
|
176
|
+
label: string;
|
|
177
|
+
}
|
|
178
|
+
export interface UpdateSatExamQuestionTypeGroupInput {
|
|
179
|
+
name?: string;
|
|
180
|
+
label?: string;
|
|
181
|
+
}
|
|
182
|
+
export interface CreateSatExamQuestionTypeInput {
|
|
183
|
+
groupId?: string;
|
|
184
|
+
name: string;
|
|
185
|
+
label: string;
|
|
186
|
+
}
|
|
187
|
+
export interface UpdateSatExamQuestionTypeInput {
|
|
188
|
+
groupId?: string | null;
|
|
189
|
+
name?: string;
|
|
190
|
+
label?: string;
|
|
191
|
+
}
|
|
192
|
+
export interface CreateSatExamOptionInput {
|
|
193
|
+
questionId: string;
|
|
194
|
+
text: string;
|
|
195
|
+
order: number;
|
|
196
|
+
}
|
|
197
|
+
export interface UpdateSatExamOptionInput {
|
|
198
|
+
text?: string;
|
|
199
|
+
order?: number;
|
|
200
|
+
}
|
|
201
|
+
export interface CreateSatExamCorrectAnswerInput {
|
|
202
|
+
questionId: string;
|
|
203
|
+
value: string;
|
|
204
|
+
}
|
|
205
|
+
export interface UpdateSatExamCorrectAnswerInput {
|
|
206
|
+
value?: string;
|
|
207
|
+
}
|
|
208
|
+
export interface SatExamTemplate {
|
|
209
|
+
id: string;
|
|
210
|
+
organizationId: string;
|
|
211
|
+
title: string;
|
|
212
|
+
description: string | null;
|
|
213
|
+
createdAt: string;
|
|
214
|
+
updatedAt: string;
|
|
215
|
+
organization: SatExamOrganization;
|
|
216
|
+
sections: SatExamTemplateSection[];
|
|
217
|
+
}
|
|
218
|
+
export interface SatExamTemplateSection {
|
|
219
|
+
id: string;
|
|
220
|
+
templateId: string;
|
|
221
|
+
name: string;
|
|
222
|
+
order: number;
|
|
223
|
+
timeLimitMinutes: number | null;
|
|
224
|
+
module: number | null;
|
|
225
|
+
questions: SatExamTemplateQuestion[];
|
|
226
|
+
}
|
|
227
|
+
export interface SatExamTemplateQuestion {
|
|
228
|
+
id: string;
|
|
229
|
+
sectionId: string;
|
|
230
|
+
order: number;
|
|
231
|
+
types: SatExamTemplateQuestionType[];
|
|
232
|
+
}
|
|
233
|
+
export interface SatExamTemplateQuestionType {
|
|
234
|
+
id: string;
|
|
235
|
+
questionId: string;
|
|
236
|
+
typeId: string;
|
|
237
|
+
type: SatExamQuestionType;
|
|
238
|
+
}
|
|
239
|
+
export interface CreateSatExamTemplateInput {
|
|
240
|
+
organizationId: string;
|
|
241
|
+
title: string;
|
|
242
|
+
description?: string;
|
|
243
|
+
}
|
|
244
|
+
export interface UpdateSatExamTemplateInput {
|
|
245
|
+
title?: string;
|
|
246
|
+
description?: string;
|
|
247
|
+
organizationId?: string;
|
|
248
|
+
}
|
|
249
|
+
export interface CreateSatExamTemplateSectionInput {
|
|
250
|
+
templateId: string;
|
|
251
|
+
name: string;
|
|
252
|
+
order: number;
|
|
253
|
+
timeLimitMinutes?: number;
|
|
254
|
+
module?: number;
|
|
255
|
+
}
|
|
256
|
+
export interface UpdateSatExamTemplateSectionInput {
|
|
257
|
+
name?: string;
|
|
258
|
+
order?: number;
|
|
259
|
+
timeLimitMinutes?: number | null;
|
|
260
|
+
module?: number | null;
|
|
261
|
+
}
|
|
262
|
+
export interface CreateSatExamTemplateQuestionInput {
|
|
263
|
+
sectionId: string;
|
|
264
|
+
order: number;
|
|
265
|
+
}
|
|
266
|
+
export interface UpdateSatExamTemplateQuestionInput {
|
|
267
|
+
order?: number;
|
|
268
|
+
}
|
|
269
|
+
export interface CreateSatExamTemplateQuestionTypeInput {
|
|
270
|
+
questionId: string;
|
|
271
|
+
typeId: string;
|
|
272
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SECTION_RECOMMENDATIONS = exports.SECTION_DIFFICULTY_OPTIONS = exports.HARD_ROUTE_DIFFICULTY = exports.EASY_ROUTE_DIFFICULTY = exports.DEFAULT_SECTION_DIFFICULTY = exports.QUESTION_GUESSING_BOUNDS = exports.QUESTION_DISCRIMINATION_BOUNDS = exports.QUESTION_DIFFICULTY_VALUE_BOUNDS = exports.QUESTION_DIFFICULTY_OPTIONS = exports.DEFAULT_QUESTION_DIFFICULTY = void 0;
|
|
4
|
+
exports.DEFAULT_QUESTION_DIFFICULTY = 'medium';
|
|
5
|
+
exports.QUESTION_DIFFICULTY_OPTIONS = [
|
|
6
|
+
{ value: 'easy', label: 'Easy' },
|
|
7
|
+
{ value: 'medium', label: 'Medium' },
|
|
8
|
+
{ value: 'hard', label: 'Hard' },
|
|
9
|
+
];
|
|
10
|
+
exports.QUESTION_DIFFICULTY_VALUE_BOUNDS = {
|
|
11
|
+
easy: { min: -1.5, max: -0.5 },
|
|
12
|
+
medium: { min: -0.5, max: 0.5 },
|
|
13
|
+
hard: { min: 0.5, max: 2.0 },
|
|
14
|
+
};
|
|
15
|
+
exports.QUESTION_DISCRIMINATION_BOUNDS = { min: 0.5, max: 2.5 };
|
|
16
|
+
exports.QUESTION_GUESSING_BOUNDS = { min: 0, max: 0.25 };
|
|
17
|
+
exports.DEFAULT_SECTION_DIFFICULTY = 'standard';
|
|
18
|
+
exports.EASY_ROUTE_DIFFICULTY = 'easy';
|
|
19
|
+
exports.HARD_ROUTE_DIFFICULTY = 'hard';
|
|
20
|
+
exports.SECTION_DIFFICULTY_OPTIONS = [
|
|
21
|
+
{ value: 'standard', label: 'Standard (Module 1)' },
|
|
22
|
+
{ value: 'easy', label: 'Easy (Module 2)' },
|
|
23
|
+
{ value: 'hard', label: 'Hard (Module 2)' },
|
|
24
|
+
];
|
|
25
|
+
exports.SECTION_RECOMMENDATIONS = {
|
|
26
|
+
standard: {
|
|
27
|
+
totalQuestions: { rw: 27, math: 22 },
|
|
28
|
+
timeLimitMinutes: { rw: 32, math: 35 },
|
|
29
|
+
difficultyDistribution: { easy: 0.33, medium: 0.34, hard: 0.33 },
|
|
30
|
+
discriminationRange: { min: 1.0, max: 1.5 },
|
|
31
|
+
guessingMcq: 0.25,
|
|
32
|
+
guessingFreeResponse: 0,
|
|
33
|
+
routingThreshold: { rw: 0.4, math: 0.15 },
|
|
34
|
+
},
|
|
35
|
+
easy: {
|
|
36
|
+
totalQuestions: { rw: 27, math: 22 },
|
|
37
|
+
timeLimitMinutes: { rw: 32, math: 35 },
|
|
38
|
+
difficultyDistribution: { easy: 0.50, medium: 0.35, hard: 0.15 },
|
|
39
|
+
discriminationRange: { min: 1.5, max: 2.5 },
|
|
40
|
+
guessingMcq: 0.25,
|
|
41
|
+
guessingFreeResponse: 0,
|
|
42
|
+
routingThreshold: null,
|
|
43
|
+
},
|
|
44
|
+
hard: {
|
|
45
|
+
totalQuestions: { rw: 27, math: 22 },
|
|
46
|
+
timeLimitMinutes: { rw: 32, math: 35 },
|
|
47
|
+
difficultyDistribution: { easy: 0.15, medium: 0.35, hard: 0.50 },
|
|
48
|
+
discriminationRange: { min: 1.5, max: 2.5 },
|
|
49
|
+
guessingMcq: 0.25,
|
|
50
|
+
guessingFreeResponse: 0,
|
|
51
|
+
routingThreshold: null,
|
|
52
|
+
},
|
|
53
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./politicians/community/residents/explore/types";
|
|
2
|
-
export * from "./politicians/community/residents/explore/constants";
|
|
3
|
-
export * from "./teachers/prep_center/students/simulate/types";
|
|
1
|
+
export * from "./domains/politicians/community/residents/explore/types";
|
|
2
|
+
export * from "./domains/politicians/community/residents/explore/constants";
|
|
3
|
+
export * from "./domains/teachers/prep_center/students/simulate/types";
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./politicians/community/residents/explore/types"), exports);
|
|
18
|
-
__exportStar(require("./politicians/community/residents/explore/constants"), exports);
|
|
19
|
-
__exportStar(require("./teachers/prep_center/students/simulate/types"), exports);
|
|
17
|
+
__exportStar(require("./domains/politicians/community/residents/explore/types"), exports);
|
|
18
|
+
__exportStar(require("./domains/politicians/community/residents/explore/constants"), exports);
|
|
19
|
+
__exportStar(require("./domains/teachers/prep_center/students/simulate/types"), exports);
|