@rusaint/react-native 0.14.0 → 0.14.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/android/build.gradle +4 -4
- package/android/src/main/jniLibs/arm64-v8a/librusaint_ffi.so +0 -0
- package/android/src/main/jniLibs/armeabi-v7a/librusaint_ffi.so +0 -0
- package/build/RusaintReactNative.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/build/RusaintReactNative.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
- package/build/RusaintReactNative.xcframework/_CodeSignature/CodeResources +6 -6
- package/build/RusaintReactNative.xcframework/_CodeSignature/CodeSignature +0 -0
- package/build/RusaintReactNative.xcframework/ios-arm64/librusaint_ffi.a +0 -0
- package/build/RusaintReactNative.xcframework/ios-arm64-simulator/librusaint_ffi.a +0 -0
- package/cpp/generated/rusaint_ffi.cpp +182 -0
- package/cpp/generated/rusaint_ffi.hpp +10 -0
- package/lib/commonjs/generated/rusaint.js +643 -1
- package/lib/commonjs/generated/rusaint.js.map +1 -1
- package/lib/commonjs/generated/rusaint_ffi-ffi.js.map +1 -1
- package/lib/commonjs/generated/rusaint_ffi.js +114 -0
- package/lib/commonjs/generated/rusaint_ffi.js.map +1 -1
- package/lib/module/generated/rusaint.js +642 -0
- package/lib/module/generated/rusaint.js.map +1 -1
- package/lib/module/generated/rusaint_ffi-ffi.js.map +1 -1
- package/lib/module/generated/rusaint_ffi.js +114 -0
- package/lib/module/generated/rusaint_ffi.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/rusaint.d.ts +581 -0
- package/lib/typescript/commonjs/src/generated/rusaint.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/rusaint_ffi-ffi.d.ts +10 -0
- package/lib/typescript/commonjs/src/generated/rusaint_ffi-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/rusaint_ffi.d.ts +75 -1
- package/lib/typescript/commonjs/src/generated/rusaint_ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/rusaint.d.ts +581 -0
- package/lib/typescript/module/src/generated/rusaint.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/rusaint_ffi-ffi.d.ts +10 -0
- package/lib/typescript/module/src/generated/rusaint_ffi-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/rusaint_ffi.d.ts +75 -1
- package/lib/typescript/module/src/generated/rusaint_ffi.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/generated/rusaint.ts +1102 -22
- package/src/generated/rusaint_ffi-ffi.ts +27 -0
- package/src/generated/rusaint_ffi.ts +318 -0
|
@@ -89,6 +89,10 @@ interface NativeModuleInterface {
|
|
|
89
89
|
ubrn_uniffi_rusaint_ffi_fn_method_coursegradesapplication_get_selected_semester(
|
|
90
90
|
ptr: bigint
|
|
91
91
|
): bigint;
|
|
92
|
+
ubrn_uniffi_rusaint_ffi_fn_method_coursegradesapplication_grades_by_classification(
|
|
93
|
+
ptr: bigint,
|
|
94
|
+
courseType: Uint8Array
|
|
95
|
+
): bigint;
|
|
92
96
|
ubrn_uniffi_rusaint_ffi_fn_method_coursegradesapplication_lookup(
|
|
93
97
|
ptr: bigint
|
|
94
98
|
): bigint;
|
|
@@ -181,6 +185,13 @@ interface NativeModuleInterface {
|
|
|
181
185
|
semester: Uint8Array,
|
|
182
186
|
collage: Uint8Array
|
|
183
187
|
): bigint;
|
|
188
|
+
ubrn_uniffi_rusaint_ffi_fn_method_coursescheduleapplication_find_detailed_lectures(
|
|
189
|
+
ptr: bigint,
|
|
190
|
+
year: number,
|
|
191
|
+
semester: Uint8Array,
|
|
192
|
+
lectureCategory: Uint8Array,
|
|
193
|
+
fetchSyllabus: number
|
|
194
|
+
): bigint;
|
|
184
195
|
ubrn_uniffi_rusaint_ffi_fn_method_coursescheduleapplication_find_lectures(
|
|
185
196
|
ptr: bigint,
|
|
186
197
|
year: number,
|
|
@@ -201,6 +212,17 @@ interface NativeModuleInterface {
|
|
|
201
212
|
semester: Uint8Array,
|
|
202
213
|
collage: Uint8Array
|
|
203
214
|
): bigint;
|
|
215
|
+
ubrn_uniffi_rusaint_ffi_fn_method_coursescheduleapplication_lecture_detail(
|
|
216
|
+
ptr: bigint,
|
|
217
|
+
code: Uint8Array
|
|
218
|
+
): bigint;
|
|
219
|
+
ubrn_uniffi_rusaint_ffi_fn_method_coursescheduleapplication_lecture_syllabus(
|
|
220
|
+
ptr: bigint,
|
|
221
|
+
code: Uint8Array
|
|
222
|
+
): bigint;
|
|
223
|
+
ubrn_uniffi_rusaint_ffi_fn_method_coursescheduleapplication_loaded_lectures(
|
|
224
|
+
ptr: bigint
|
|
225
|
+
): bigint;
|
|
204
226
|
ubrn_uniffi_rusaint_ffi_fn_method_coursescheduleapplication_majors(
|
|
205
227
|
ptr: bigint,
|
|
206
228
|
year: number,
|
|
@@ -623,6 +645,7 @@ interface NativeModuleInterface {
|
|
|
623
645
|
ubrn_uniffi_rusaint_ffi_checksum_method_coursegradesapplication_class_detail(): number;
|
|
624
646
|
ubrn_uniffi_rusaint_ffi_checksum_method_coursegradesapplication_classes(): number;
|
|
625
647
|
ubrn_uniffi_rusaint_ffi_checksum_method_coursegradesapplication_get_selected_semester(): number;
|
|
648
|
+
ubrn_uniffi_rusaint_ffi_checksum_method_coursegradesapplication_grades_by_classification(): number;
|
|
626
649
|
ubrn_uniffi_rusaint_ffi_checksum_method_coursegradesapplication_lookup(): number;
|
|
627
650
|
ubrn_uniffi_rusaint_ffi_checksum_method_coursegradesapplication_recorded_summary(): number;
|
|
628
651
|
ubrn_uniffi_rusaint_ffi_checksum_method_coursegradesapplication_reload(): number;
|
|
@@ -636,10 +659,14 @@ interface NativeModuleInterface {
|
|
|
636
659
|
ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_collages(): number;
|
|
637
660
|
ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_connected_majors(): number;
|
|
638
661
|
ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_departments(): number;
|
|
662
|
+
ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_find_detailed_lectures(): number;
|
|
639
663
|
ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_find_lectures(): number;
|
|
640
664
|
ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_get_selected_semester(): number;
|
|
641
665
|
ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_graduated_collages(): number;
|
|
642
666
|
ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_graduated_departments(): number;
|
|
667
|
+
ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_lecture_detail(): number;
|
|
668
|
+
ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_lecture_syllabus(): number;
|
|
669
|
+
ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_loaded_lectures(): number;
|
|
643
670
|
ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_majors(): number;
|
|
644
671
|
ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_optional_elective_categories(): number;
|
|
645
672
|
ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_reload(): number;
|
|
@@ -33,11 +33,15 @@ import nativeModule, {
|
|
|
33
33
|
import {
|
|
34
34
|
type ChapelInformation,
|
|
35
35
|
type ClassGrade,
|
|
36
|
+
type DetailedLecture,
|
|
36
37
|
type GradeSummary,
|
|
38
|
+
type GradesByClassification,
|
|
37
39
|
type GraduationRequirements,
|
|
38
40
|
type GraduationStudent,
|
|
39
41
|
type Lecture,
|
|
40
42
|
type LectureAssessmentResult,
|
|
43
|
+
type LectureDetail,
|
|
44
|
+
type LectureSyllabus,
|
|
41
45
|
type PersonalCourseSchedule,
|
|
42
46
|
type RegisteredLecture,
|
|
43
47
|
type Scholarship,
|
|
@@ -92,12 +96,16 @@ const {
|
|
|
92
96
|
FfiConverterTypeChapelInformation,
|
|
93
97
|
FfiConverterTypeClassGrade,
|
|
94
98
|
FfiConverterTypeCourseType,
|
|
99
|
+
FfiConverterTypeDetailedLecture,
|
|
95
100
|
FfiConverterTypeGradeSummary,
|
|
101
|
+
FfiConverterTypeGradesByClassification,
|
|
96
102
|
FfiConverterTypeGraduationRequirements,
|
|
97
103
|
FfiConverterTypeGraduationStudent,
|
|
98
104
|
FfiConverterTypeLecture,
|
|
99
105
|
FfiConverterTypeLectureAssessmentResult,
|
|
100
106
|
FfiConverterTypeLectureCategory,
|
|
107
|
+
FfiConverterTypeLectureDetail,
|
|
108
|
+
FfiConverterTypeLectureSyllabus,
|
|
101
109
|
FfiConverterTypePersonalCourseSchedule,
|
|
102
110
|
FfiConverterTypeRegisteredLecture,
|
|
103
111
|
FfiConverterTypeScholarship,
|
|
@@ -796,6 +804,13 @@ export interface CourseGradesApplicationInterface {
|
|
|
796
804
|
getSelectedSemester(asyncOpts_?: {
|
|
797
805
|
signal: AbortSignal;
|
|
798
806
|
}) /*throws*/ : Promise<YearSemester>;
|
|
807
|
+
/**
|
|
808
|
+
* 이수구분별 성적 데이터를 OZ 서버에서 가져옵니다.
|
|
809
|
+
*/
|
|
810
|
+
gradesByClassification(
|
|
811
|
+
courseType: CourseType,
|
|
812
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
813
|
+
) /*throws*/ : Promise<GradesByClassification>;
|
|
799
814
|
/**
|
|
800
815
|
* 최신 정보를 조회합니다. 새로고침 시 유용합니다.
|
|
801
816
|
*/
|
|
@@ -1020,6 +1035,48 @@ export class CourseGradesApplication
|
|
|
1020
1035
|
}
|
|
1021
1036
|
}
|
|
1022
1037
|
|
|
1038
|
+
/**
|
|
1039
|
+
* 이수구분별 성적 데이터를 OZ 서버에서 가져옵니다.
|
|
1040
|
+
*/
|
|
1041
|
+
public async gradesByClassification(
|
|
1042
|
+
courseType: CourseType,
|
|
1043
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
1044
|
+
): Promise<GradesByClassification> /*throws*/ {
|
|
1045
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1046
|
+
try {
|
|
1047
|
+
return await uniffiRustCallAsync(
|
|
1048
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1049
|
+
/*rustFutureFunc:*/ () => {
|
|
1050
|
+
return nativeModule().ubrn_uniffi_rusaint_ffi_fn_method_coursegradesapplication_grades_by_classification(
|
|
1051
|
+
uniffiTypeCourseGradesApplicationObjectFactory.clonePointer(this),
|
|
1052
|
+
FfiConverterTypeCourseType.lower(courseType)
|
|
1053
|
+
);
|
|
1054
|
+
},
|
|
1055
|
+
/*pollFunc:*/ nativeModule()
|
|
1056
|
+
.ubrn_ffi_rusaint_ffi_rust_future_poll_rust_buffer,
|
|
1057
|
+
/*cancelFunc:*/ nativeModule()
|
|
1058
|
+
.ubrn_ffi_rusaint_ffi_rust_future_cancel_rust_buffer,
|
|
1059
|
+
/*completeFunc:*/ nativeModule()
|
|
1060
|
+
.ubrn_ffi_rusaint_ffi_rust_future_complete_rust_buffer,
|
|
1061
|
+
/*freeFunc:*/ nativeModule()
|
|
1062
|
+
.ubrn_ffi_rusaint_ffi_rust_future_free_rust_buffer,
|
|
1063
|
+
/*liftFunc:*/ FfiConverterTypeGradesByClassification.lift.bind(
|
|
1064
|
+
FfiConverterTypeGradesByClassification
|
|
1065
|
+
),
|
|
1066
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
1067
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1068
|
+
/*errorHandler:*/ FfiConverterTypeRusaintError.lift.bind(
|
|
1069
|
+
FfiConverterTypeRusaintError
|
|
1070
|
+
)
|
|
1071
|
+
);
|
|
1072
|
+
} catch (__error: any) {
|
|
1073
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1074
|
+
__error.stack = __stack;
|
|
1075
|
+
}
|
|
1076
|
+
throw __error;
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1023
1080
|
/**
|
|
1024
1081
|
* 최신 정보를 조회합니다. 새로고침 시 유용합니다.
|
|
1025
1082
|
*/
|
|
@@ -1964,6 +2021,19 @@ export interface CourseScheduleApplicationInterface {
|
|
|
1964
2021
|
collage: string,
|
|
1965
2022
|
asyncOpts_?: { signal: AbortSignal }
|
|
1966
2023
|
) /*throws*/ : Promise<Array<string>>;
|
|
2024
|
+
/**
|
|
2025
|
+
* 검색된 모든 강의의 상세 정보와 강의계획서를 함께 조회합니다.
|
|
2026
|
+
* 테이블 스크롤을 자동으로 수행합니다.
|
|
2027
|
+
* `fetch_syllabus`가 `true`이면 강의계획서도 함께 조회합니다.
|
|
2028
|
+
* 강의계획서가 없는 강의의 경우 `syllabus` 필드가 `None`이 되며, 그 외 조회 오류는 에러로 전파됩니다.
|
|
2029
|
+
*/
|
|
2030
|
+
findDetailedLectures(
|
|
2031
|
+
year: /*u32*/ number,
|
|
2032
|
+
semester: SemesterType,
|
|
2033
|
+
lectureCategory: LectureCategory,
|
|
2034
|
+
fetchSyllabus: boolean,
|
|
2035
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
2036
|
+
) /*throws*/ : Promise<Array<DetailedLecture>>;
|
|
1967
2037
|
/**
|
|
1968
2038
|
* 학기, 학년도, 강의 분류를 통해 강의를 찾습니다.
|
|
1969
2039
|
*/
|
|
@@ -1997,6 +2067,30 @@ export interface CourseScheduleApplicationInterface {
|
|
|
1997
2067
|
collage: string,
|
|
1998
2068
|
asyncOpts_?: { signal: AbortSignal }
|
|
1999
2069
|
) /*throws*/ : Promise<Array<string>>;
|
|
2070
|
+
/**
|
|
2071
|
+
* 주어진 과목번호에 해당하는 강의의 상세 정보를 가져옵니다.
|
|
2072
|
+
* `find_lectures` 함수를 먼저 호출하여 강의를 검색한 이후에 사용되어야 합니다.
|
|
2073
|
+
*/
|
|
2074
|
+
lectureDetail(
|
|
2075
|
+
code: string,
|
|
2076
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
2077
|
+
) /*throws*/ : Promise<LectureDetail>;
|
|
2078
|
+
/**
|
|
2079
|
+
* 주어진 과목번호에 해당하는 강의의 강의계획서(syllabus) 데이터를 OZ 서버에서 가져옵니다.
|
|
2080
|
+
* `find_lectures` 함수를 먼저 호출하여 강의를 검색한 이후에 사용되어야 합니다.
|
|
2081
|
+
* 강의계획서가 없는 강의의 경우 에러를 반환합니다.
|
|
2082
|
+
*/
|
|
2083
|
+
lectureSyllabus(
|
|
2084
|
+
code: string,
|
|
2085
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
2086
|
+
) /*throws*/ : Promise<LectureSyllabus>;
|
|
2087
|
+
/**
|
|
2088
|
+
* 현재 페이지에 로드된 강의들을 가져옵니다. `find_lectures` 함수를 호출하여 강의를 검색한 이후에 사용되어야 하며, 검색한 강의들에 대한 추가 정보를 가져오고자 할 때 사용할 수 있습니다.
|
|
2089
|
+
* NOTE: 이 함수는 스크롤을 수행하지 않으므로, find_lectures 함수가 너무 많은 강의(500줄 초과)를 반환한 경우, 예상대로 동작하지 않을 수 있습니다.
|
|
2090
|
+
*/
|
|
2091
|
+
loadedLectures(asyncOpts_?: {
|
|
2092
|
+
signal: AbortSignal;
|
|
2093
|
+
}) /*throws*/ : Promise<Array<Lecture>>;
|
|
2000
2094
|
/**
|
|
2001
2095
|
* 선택한 학과(부)의 전공 목록을 가져옵니다.
|
|
2002
2096
|
*/
|
|
@@ -2233,6 +2327,57 @@ export class CourseScheduleApplication
|
|
|
2233
2327
|
}
|
|
2234
2328
|
}
|
|
2235
2329
|
|
|
2330
|
+
/**
|
|
2331
|
+
* 검색된 모든 강의의 상세 정보와 강의계획서를 함께 조회합니다.
|
|
2332
|
+
* 테이블 스크롤을 자동으로 수행합니다.
|
|
2333
|
+
* `fetch_syllabus`가 `true`이면 강의계획서도 함께 조회합니다.
|
|
2334
|
+
* 강의계획서가 없는 강의의 경우 `syllabus` 필드가 `None`이 되며, 그 외 조회 오류는 에러로 전파됩니다.
|
|
2335
|
+
*/
|
|
2336
|
+
public async findDetailedLectures(
|
|
2337
|
+
year: /*u32*/ number,
|
|
2338
|
+
semester: SemesterType,
|
|
2339
|
+
lectureCategory: LectureCategory,
|
|
2340
|
+
fetchSyllabus: boolean,
|
|
2341
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
2342
|
+
): Promise<Array<DetailedLecture>> /*throws*/ {
|
|
2343
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2344
|
+
try {
|
|
2345
|
+
return await uniffiRustCallAsync(
|
|
2346
|
+
/*rustCaller:*/ uniffiCaller,
|
|
2347
|
+
/*rustFutureFunc:*/ () => {
|
|
2348
|
+
return nativeModule().ubrn_uniffi_rusaint_ffi_fn_method_coursescheduleapplication_find_detailed_lectures(
|
|
2349
|
+
uniffiTypeCourseScheduleApplicationObjectFactory.clonePointer(this),
|
|
2350
|
+
FfiConverterUInt32.lower(year),
|
|
2351
|
+
FfiConverterTypeSemesterType.lower(semester),
|
|
2352
|
+
FfiConverterTypeLectureCategory.lower(lectureCategory),
|
|
2353
|
+
FfiConverterBool.lower(fetchSyllabus)
|
|
2354
|
+
);
|
|
2355
|
+
},
|
|
2356
|
+
/*pollFunc:*/ nativeModule()
|
|
2357
|
+
.ubrn_ffi_rusaint_ffi_rust_future_poll_rust_buffer,
|
|
2358
|
+
/*cancelFunc:*/ nativeModule()
|
|
2359
|
+
.ubrn_ffi_rusaint_ffi_rust_future_cancel_rust_buffer,
|
|
2360
|
+
/*completeFunc:*/ nativeModule()
|
|
2361
|
+
.ubrn_ffi_rusaint_ffi_rust_future_complete_rust_buffer,
|
|
2362
|
+
/*freeFunc:*/ nativeModule()
|
|
2363
|
+
.ubrn_ffi_rusaint_ffi_rust_future_free_rust_buffer,
|
|
2364
|
+
/*liftFunc:*/ FfiConverterArrayTypeDetailedLecture.lift.bind(
|
|
2365
|
+
FfiConverterArrayTypeDetailedLecture
|
|
2366
|
+
),
|
|
2367
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
2368
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
2369
|
+
/*errorHandler:*/ FfiConverterTypeRusaintError.lift.bind(
|
|
2370
|
+
FfiConverterTypeRusaintError
|
|
2371
|
+
)
|
|
2372
|
+
);
|
|
2373
|
+
} catch (__error: any) {
|
|
2374
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2375
|
+
__error.stack = __stack;
|
|
2376
|
+
}
|
|
2377
|
+
throw __error;
|
|
2378
|
+
}
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2236
2381
|
/**
|
|
2237
2382
|
* 학기, 학년도, 강의 분류를 통해 강의를 찾습니다.
|
|
2238
2383
|
*/
|
|
@@ -2410,6 +2555,134 @@ export class CourseScheduleApplication
|
|
|
2410
2555
|
}
|
|
2411
2556
|
}
|
|
2412
2557
|
|
|
2558
|
+
/**
|
|
2559
|
+
* 주어진 과목번호에 해당하는 강의의 상세 정보를 가져옵니다.
|
|
2560
|
+
* `find_lectures` 함수를 먼저 호출하여 강의를 검색한 이후에 사용되어야 합니다.
|
|
2561
|
+
*/
|
|
2562
|
+
public async lectureDetail(
|
|
2563
|
+
code: string,
|
|
2564
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
2565
|
+
): Promise<LectureDetail> /*throws*/ {
|
|
2566
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2567
|
+
try {
|
|
2568
|
+
return await uniffiRustCallAsync(
|
|
2569
|
+
/*rustCaller:*/ uniffiCaller,
|
|
2570
|
+
/*rustFutureFunc:*/ () => {
|
|
2571
|
+
return nativeModule().ubrn_uniffi_rusaint_ffi_fn_method_coursescheduleapplication_lecture_detail(
|
|
2572
|
+
uniffiTypeCourseScheduleApplicationObjectFactory.clonePointer(this),
|
|
2573
|
+
FfiConverterString.lower(code)
|
|
2574
|
+
);
|
|
2575
|
+
},
|
|
2576
|
+
/*pollFunc:*/ nativeModule()
|
|
2577
|
+
.ubrn_ffi_rusaint_ffi_rust_future_poll_rust_buffer,
|
|
2578
|
+
/*cancelFunc:*/ nativeModule()
|
|
2579
|
+
.ubrn_ffi_rusaint_ffi_rust_future_cancel_rust_buffer,
|
|
2580
|
+
/*completeFunc:*/ nativeModule()
|
|
2581
|
+
.ubrn_ffi_rusaint_ffi_rust_future_complete_rust_buffer,
|
|
2582
|
+
/*freeFunc:*/ nativeModule()
|
|
2583
|
+
.ubrn_ffi_rusaint_ffi_rust_future_free_rust_buffer,
|
|
2584
|
+
/*liftFunc:*/ FfiConverterTypeLectureDetail.lift.bind(
|
|
2585
|
+
FfiConverterTypeLectureDetail
|
|
2586
|
+
),
|
|
2587
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
2588
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
2589
|
+
/*errorHandler:*/ FfiConverterTypeRusaintError.lift.bind(
|
|
2590
|
+
FfiConverterTypeRusaintError
|
|
2591
|
+
)
|
|
2592
|
+
);
|
|
2593
|
+
} catch (__error: any) {
|
|
2594
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2595
|
+
__error.stack = __stack;
|
|
2596
|
+
}
|
|
2597
|
+
throw __error;
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
/**
|
|
2602
|
+
* 주어진 과목번호에 해당하는 강의의 강의계획서(syllabus) 데이터를 OZ 서버에서 가져옵니다.
|
|
2603
|
+
* `find_lectures` 함수를 먼저 호출하여 강의를 검색한 이후에 사용되어야 합니다.
|
|
2604
|
+
* 강의계획서가 없는 강의의 경우 에러를 반환합니다.
|
|
2605
|
+
*/
|
|
2606
|
+
public async lectureSyllabus(
|
|
2607
|
+
code: string,
|
|
2608
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
2609
|
+
): Promise<LectureSyllabus> /*throws*/ {
|
|
2610
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2611
|
+
try {
|
|
2612
|
+
return await uniffiRustCallAsync(
|
|
2613
|
+
/*rustCaller:*/ uniffiCaller,
|
|
2614
|
+
/*rustFutureFunc:*/ () => {
|
|
2615
|
+
return nativeModule().ubrn_uniffi_rusaint_ffi_fn_method_coursescheduleapplication_lecture_syllabus(
|
|
2616
|
+
uniffiTypeCourseScheduleApplicationObjectFactory.clonePointer(this),
|
|
2617
|
+
FfiConverterString.lower(code)
|
|
2618
|
+
);
|
|
2619
|
+
},
|
|
2620
|
+
/*pollFunc:*/ nativeModule()
|
|
2621
|
+
.ubrn_ffi_rusaint_ffi_rust_future_poll_rust_buffer,
|
|
2622
|
+
/*cancelFunc:*/ nativeModule()
|
|
2623
|
+
.ubrn_ffi_rusaint_ffi_rust_future_cancel_rust_buffer,
|
|
2624
|
+
/*completeFunc:*/ nativeModule()
|
|
2625
|
+
.ubrn_ffi_rusaint_ffi_rust_future_complete_rust_buffer,
|
|
2626
|
+
/*freeFunc:*/ nativeModule()
|
|
2627
|
+
.ubrn_ffi_rusaint_ffi_rust_future_free_rust_buffer,
|
|
2628
|
+
/*liftFunc:*/ FfiConverterTypeLectureSyllabus.lift.bind(
|
|
2629
|
+
FfiConverterTypeLectureSyllabus
|
|
2630
|
+
),
|
|
2631
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
2632
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
2633
|
+
/*errorHandler:*/ FfiConverterTypeRusaintError.lift.bind(
|
|
2634
|
+
FfiConverterTypeRusaintError
|
|
2635
|
+
)
|
|
2636
|
+
);
|
|
2637
|
+
} catch (__error: any) {
|
|
2638
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2639
|
+
__error.stack = __stack;
|
|
2640
|
+
}
|
|
2641
|
+
throw __error;
|
|
2642
|
+
}
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
|
+
/**
|
|
2646
|
+
* 현재 페이지에 로드된 강의들을 가져옵니다. `find_lectures` 함수를 호출하여 강의를 검색한 이후에 사용되어야 하며, 검색한 강의들에 대한 추가 정보를 가져오고자 할 때 사용할 수 있습니다.
|
|
2647
|
+
* NOTE: 이 함수는 스크롤을 수행하지 않으므로, find_lectures 함수가 너무 많은 강의(500줄 초과)를 반환한 경우, 예상대로 동작하지 않을 수 있습니다.
|
|
2648
|
+
*/
|
|
2649
|
+
public async loadedLectures(asyncOpts_?: {
|
|
2650
|
+
signal: AbortSignal;
|
|
2651
|
+
}): Promise<Array<Lecture>> /*throws*/ {
|
|
2652
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2653
|
+
try {
|
|
2654
|
+
return await uniffiRustCallAsync(
|
|
2655
|
+
/*rustCaller:*/ uniffiCaller,
|
|
2656
|
+
/*rustFutureFunc:*/ () => {
|
|
2657
|
+
return nativeModule().ubrn_uniffi_rusaint_ffi_fn_method_coursescheduleapplication_loaded_lectures(
|
|
2658
|
+
uniffiTypeCourseScheduleApplicationObjectFactory.clonePointer(this)
|
|
2659
|
+
);
|
|
2660
|
+
},
|
|
2661
|
+
/*pollFunc:*/ nativeModule()
|
|
2662
|
+
.ubrn_ffi_rusaint_ffi_rust_future_poll_rust_buffer,
|
|
2663
|
+
/*cancelFunc:*/ nativeModule()
|
|
2664
|
+
.ubrn_ffi_rusaint_ffi_rust_future_cancel_rust_buffer,
|
|
2665
|
+
/*completeFunc:*/ nativeModule()
|
|
2666
|
+
.ubrn_ffi_rusaint_ffi_rust_future_complete_rust_buffer,
|
|
2667
|
+
/*freeFunc:*/ nativeModule()
|
|
2668
|
+
.ubrn_ffi_rusaint_ffi_rust_future_free_rust_buffer,
|
|
2669
|
+
/*liftFunc:*/ FfiConverterArrayTypeLecture.lift.bind(
|
|
2670
|
+
FfiConverterArrayTypeLecture
|
|
2671
|
+
),
|
|
2672
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
2673
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
2674
|
+
/*errorHandler:*/ FfiConverterTypeRusaintError.lift.bind(
|
|
2675
|
+
FfiConverterTypeRusaintError
|
|
2676
|
+
)
|
|
2677
|
+
);
|
|
2678
|
+
} catch (__error: any) {
|
|
2679
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2680
|
+
__error.stack = __stack;
|
|
2681
|
+
}
|
|
2682
|
+
throw __error;
|
|
2683
|
+
}
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2413
2686
|
/**
|
|
2414
2687
|
* 선택한 학과(부)의 전공 목록을 가져옵니다.
|
|
2415
2688
|
*/
|
|
@@ -5976,6 +6249,11 @@ const FfiConverterArrayTypeClassGrade = new FfiConverterArray(
|
|
|
5976
6249
|
FfiConverterTypeClassGrade
|
|
5977
6250
|
);
|
|
5978
6251
|
|
|
6252
|
+
// FfiConverter for Array<DetailedLecture>
|
|
6253
|
+
const FfiConverterArrayTypeDetailedLecture = new FfiConverterArray(
|
|
6254
|
+
FfiConverterTypeDetailedLecture
|
|
6255
|
+
);
|
|
6256
|
+
|
|
5979
6257
|
// FfiConverter for Array<Lecture>
|
|
5980
6258
|
const FfiConverterArrayTypeLecture = new FfiConverterArray(
|
|
5981
6259
|
FfiConverterTypeLecture
|
|
@@ -6098,6 +6376,14 @@ function uniffiEnsureInitialized() {
|
|
|
6098
6376
|
'uniffi_rusaint_ffi_checksum_method_coursegradesapplication_get_selected_semester'
|
|
6099
6377
|
);
|
|
6100
6378
|
}
|
|
6379
|
+
if (
|
|
6380
|
+
nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_coursegradesapplication_grades_by_classification() !==
|
|
6381
|
+
15373
|
|
6382
|
+
) {
|
|
6383
|
+
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
6384
|
+
'uniffi_rusaint_ffi_checksum_method_coursegradesapplication_grades_by_classification'
|
|
6385
|
+
);
|
|
6386
|
+
}
|
|
6101
6387
|
if (
|
|
6102
6388
|
nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_coursegradesapplication_lookup() !==
|
|
6103
6389
|
14564
|
|
@@ -6202,6 +6488,14 @@ function uniffiEnsureInitialized() {
|
|
|
6202
6488
|
'uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_departments'
|
|
6203
6489
|
);
|
|
6204
6490
|
}
|
|
6491
|
+
if (
|
|
6492
|
+
nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_find_detailed_lectures() !==
|
|
6493
|
+
46573
|
|
6494
|
+
) {
|
|
6495
|
+
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
6496
|
+
'uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_find_detailed_lectures'
|
|
6497
|
+
);
|
|
6498
|
+
}
|
|
6205
6499
|
if (
|
|
6206
6500
|
nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_find_lectures() !==
|
|
6207
6501
|
7590
|
|
@@ -6234,6 +6528,30 @@ function uniffiEnsureInitialized() {
|
|
|
6234
6528
|
'uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_graduated_departments'
|
|
6235
6529
|
);
|
|
6236
6530
|
}
|
|
6531
|
+
if (
|
|
6532
|
+
nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_lecture_detail() !==
|
|
6533
|
+
28315
|
|
6534
|
+
) {
|
|
6535
|
+
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
6536
|
+
'uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_lecture_detail'
|
|
6537
|
+
);
|
|
6538
|
+
}
|
|
6539
|
+
if (
|
|
6540
|
+
nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_lecture_syllabus() !==
|
|
6541
|
+
27680
|
|
6542
|
+
) {
|
|
6543
|
+
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
6544
|
+
'uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_lecture_syllabus'
|
|
6545
|
+
);
|
|
6546
|
+
}
|
|
6547
|
+
if (
|
|
6548
|
+
nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_loaded_lectures() !==
|
|
6549
|
+
18448
|
|
6550
|
+
) {
|
|
6551
|
+
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
6552
|
+
'uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_loaded_lectures'
|
|
6553
|
+
);
|
|
6554
|
+
}
|
|
6237
6555
|
if (
|
|
6238
6556
|
nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_majors() !==
|
|
6239
6557
|
356
|