@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
|
@@ -11,12 +11,16 @@ const {
|
|
|
11
11
|
FfiConverterTypeChapelInformation,
|
|
12
12
|
FfiConverterTypeClassGrade,
|
|
13
13
|
FfiConverterTypeCourseType,
|
|
14
|
+
FfiConverterTypeDetailedLecture,
|
|
14
15
|
FfiConverterTypeGradeSummary,
|
|
16
|
+
FfiConverterTypeGradesByClassification,
|
|
15
17
|
FfiConverterTypeGraduationRequirements,
|
|
16
18
|
FfiConverterTypeGraduationStudent,
|
|
17
19
|
FfiConverterTypeLecture,
|
|
18
20
|
FfiConverterTypeLectureAssessmentResult,
|
|
19
21
|
FfiConverterTypeLectureCategory,
|
|
22
|
+
FfiConverterTypeLectureDetail,
|
|
23
|
+
FfiConverterTypeLectureSyllabus,
|
|
20
24
|
FfiConverterTypePersonalCourseSchedule,
|
|
21
25
|
FfiConverterTypeRegisteredLecture,
|
|
22
26
|
FfiConverterTypeScholarship,
|
|
@@ -479,6 +483,23 @@ export class CourseGradesApplication extends UniffiAbstractObject {
|
|
|
479
483
|
}
|
|
480
484
|
}
|
|
481
485
|
|
|
486
|
+
/**
|
|
487
|
+
* 이수구분별 성적 데이터를 OZ 서버에서 가져옵니다.
|
|
488
|
+
*/
|
|
489
|
+
async gradesByClassification(courseType, asyncOpts_) /*throws*/{
|
|
490
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
491
|
+
try {
|
|
492
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
493
|
+
return nativeModule().ubrn_uniffi_rusaint_ffi_fn_method_coursegradesapplication_grades_by_classification(uniffiTypeCourseGradesApplicationObjectFactory.clonePointer(this), FfiConverterTypeCourseType.lower(courseType));
|
|
494
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeGradesByClassification.lift.bind(FfiConverterTypeGradesByClassification), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeRusaintError.lift.bind(FfiConverterTypeRusaintError));
|
|
495
|
+
} catch (__error) {
|
|
496
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
497
|
+
__error.stack = __stack;
|
|
498
|
+
}
|
|
499
|
+
throw __error;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
|
|
482
503
|
/**
|
|
483
504
|
* 최신 정보를 조회합니다. 새로고침 시 유용합니다.
|
|
484
505
|
*/
|
|
@@ -983,6 +1004,26 @@ export class CourseScheduleApplication extends UniffiAbstractObject {
|
|
|
983
1004
|
}
|
|
984
1005
|
}
|
|
985
1006
|
|
|
1007
|
+
/**
|
|
1008
|
+
* 검색된 모든 강의의 상세 정보와 강의계획서를 함께 조회합니다.
|
|
1009
|
+
* 테이블 스크롤을 자동으로 수행합니다.
|
|
1010
|
+
* `fetch_syllabus`가 `true`이면 강의계획서도 함께 조회합니다.
|
|
1011
|
+
* 강의계획서가 없는 강의의 경우 `syllabus` 필드가 `None`이 되며, 그 외 조회 오류는 에러로 전파됩니다.
|
|
1012
|
+
*/
|
|
1013
|
+
async findDetailedLectures(year, semester, lectureCategory, fetchSyllabus, asyncOpts_) /*throws*/{
|
|
1014
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1015
|
+
try {
|
|
1016
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
1017
|
+
return nativeModule().ubrn_uniffi_rusaint_ffi_fn_method_coursescheduleapplication_find_detailed_lectures(uniffiTypeCourseScheduleApplicationObjectFactory.clonePointer(this), FfiConverterUInt32.lower(year), FfiConverterTypeSemesterType.lower(semester), FfiConverterTypeLectureCategory.lower(lectureCategory), FfiConverterBool.lower(fetchSyllabus));
|
|
1018
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeDetailedLecture.lift.bind(FfiConverterArrayTypeDetailedLecture), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeRusaintError.lift.bind(FfiConverterTypeRusaintError));
|
|
1019
|
+
} catch (__error) {
|
|
1020
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1021
|
+
__error.stack = __stack;
|
|
1022
|
+
}
|
|
1023
|
+
throw __error;
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
|
|
986
1027
|
/**
|
|
987
1028
|
* 학기, 학년도, 강의 분류를 통해 강의를 찾습니다.
|
|
988
1029
|
*/
|
|
@@ -1052,6 +1093,61 @@ export class CourseScheduleApplication extends UniffiAbstractObject {
|
|
|
1052
1093
|
}
|
|
1053
1094
|
}
|
|
1054
1095
|
|
|
1096
|
+
/**
|
|
1097
|
+
* 주어진 과목번호에 해당하는 강의의 상세 정보를 가져옵니다.
|
|
1098
|
+
* `find_lectures` 함수를 먼저 호출하여 강의를 검색한 이후에 사용되어야 합니다.
|
|
1099
|
+
*/
|
|
1100
|
+
async lectureDetail(code, asyncOpts_) /*throws*/{
|
|
1101
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1102
|
+
try {
|
|
1103
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
1104
|
+
return nativeModule().ubrn_uniffi_rusaint_ffi_fn_method_coursescheduleapplication_lecture_detail(uniffiTypeCourseScheduleApplicationObjectFactory.clonePointer(this), FfiConverterString.lower(code));
|
|
1105
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLectureDetail.lift.bind(FfiConverterTypeLectureDetail), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeRusaintError.lift.bind(FfiConverterTypeRusaintError));
|
|
1106
|
+
} catch (__error) {
|
|
1107
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1108
|
+
__error.stack = __stack;
|
|
1109
|
+
}
|
|
1110
|
+
throw __error;
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* 주어진 과목번호에 해당하는 강의의 강의계획서(syllabus) 데이터를 OZ 서버에서 가져옵니다.
|
|
1116
|
+
* `find_lectures` 함수를 먼저 호출하여 강의를 검색한 이후에 사용되어야 합니다.
|
|
1117
|
+
* 강의계획서가 없는 강의의 경우 에러를 반환합니다.
|
|
1118
|
+
*/
|
|
1119
|
+
async lectureSyllabus(code, asyncOpts_) /*throws*/{
|
|
1120
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1121
|
+
try {
|
|
1122
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
1123
|
+
return nativeModule().ubrn_uniffi_rusaint_ffi_fn_method_coursescheduleapplication_lecture_syllabus(uniffiTypeCourseScheduleApplicationObjectFactory.clonePointer(this), FfiConverterString.lower(code));
|
|
1124
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLectureSyllabus.lift.bind(FfiConverterTypeLectureSyllabus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeRusaintError.lift.bind(FfiConverterTypeRusaintError));
|
|
1125
|
+
} catch (__error) {
|
|
1126
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1127
|
+
__error.stack = __stack;
|
|
1128
|
+
}
|
|
1129
|
+
throw __error;
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* 현재 페이지에 로드된 강의들을 가져옵니다. `find_lectures` 함수를 호출하여 강의를 검색한 이후에 사용되어야 하며, 검색한 강의들에 대한 추가 정보를 가져오고자 할 때 사용할 수 있습니다.
|
|
1135
|
+
* NOTE: 이 함수는 스크롤을 수행하지 않으므로, find_lectures 함수가 너무 많은 강의(500줄 초과)를 반환한 경우, 예상대로 동작하지 않을 수 있습니다.
|
|
1136
|
+
*/
|
|
1137
|
+
async loadedLectures(asyncOpts_) /*throws*/{
|
|
1138
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1139
|
+
try {
|
|
1140
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
1141
|
+
return nativeModule().ubrn_uniffi_rusaint_ffi_fn_method_coursescheduleapplication_loaded_lectures(uniffiTypeCourseScheduleApplicationObjectFactory.clonePointer(this));
|
|
1142
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_rusaint_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLecture.lift.bind(FfiConverterArrayTypeLecture), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeRusaintError.lift.bind(FfiConverterTypeRusaintError));
|
|
1143
|
+
} catch (__error) {
|
|
1144
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1145
|
+
__error.stack = __stack;
|
|
1146
|
+
}
|
|
1147
|
+
throw __error;
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1055
1151
|
/**
|
|
1056
1152
|
* 선택한 학과(부)의 전공 목록을 가져옵니다.
|
|
1057
1153
|
*/
|
|
@@ -2674,6 +2770,9 @@ const FfiConverterOptionalUInt32 = new FfiConverterOptional(FfiConverterUInt32);
|
|
|
2674
2770
|
// FfiConverter for Array<ClassGrade>
|
|
2675
2771
|
const FfiConverterArrayTypeClassGrade = new FfiConverterArray(FfiConverterTypeClassGrade);
|
|
2676
2772
|
|
|
2773
|
+
// FfiConverter for Array<DetailedLecture>
|
|
2774
|
+
const FfiConverterArrayTypeDetailedLecture = new FfiConverterArray(FfiConverterTypeDetailedLecture);
|
|
2775
|
+
|
|
2677
2776
|
// FfiConverter for Array<Lecture>
|
|
2678
2777
|
const FfiConverterArrayTypeLecture = new FfiConverterArray(FfiConverterTypeLecture);
|
|
2679
2778
|
|
|
@@ -2737,6 +2836,9 @@ function uniffiEnsureInitialized() {
|
|
|
2737
2836
|
if (nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_coursegradesapplication_get_selected_semester() !== 50223) {
|
|
2738
2837
|
throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_ffi_checksum_method_coursegradesapplication_get_selected_semester');
|
|
2739
2838
|
}
|
|
2839
|
+
if (nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_coursegradesapplication_grades_by_classification() !== 15373) {
|
|
2840
|
+
throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_ffi_checksum_method_coursegradesapplication_grades_by_classification');
|
|
2841
|
+
}
|
|
2740
2842
|
if (nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_coursegradesapplication_lookup() !== 14564) {
|
|
2741
2843
|
throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_ffi_checksum_method_coursegradesapplication_lookup');
|
|
2742
2844
|
}
|
|
@@ -2776,6 +2878,9 @@ function uniffiEnsureInitialized() {
|
|
|
2776
2878
|
if (nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_departments() !== 10692) {
|
|
2777
2879
|
throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_departments');
|
|
2778
2880
|
}
|
|
2881
|
+
if (nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_find_detailed_lectures() !== 46573) {
|
|
2882
|
+
throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_find_detailed_lectures');
|
|
2883
|
+
}
|
|
2779
2884
|
if (nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_find_lectures() !== 7590) {
|
|
2780
2885
|
throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_find_lectures');
|
|
2781
2886
|
}
|
|
@@ -2788,6 +2893,15 @@ function uniffiEnsureInitialized() {
|
|
|
2788
2893
|
if (nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_graduated_departments() !== 42882) {
|
|
2789
2894
|
throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_graduated_departments');
|
|
2790
2895
|
}
|
|
2896
|
+
if (nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_lecture_detail() !== 28315) {
|
|
2897
|
+
throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_lecture_detail');
|
|
2898
|
+
}
|
|
2899
|
+
if (nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_lecture_syllabus() !== 27680) {
|
|
2900
|
+
throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_lecture_syllabus');
|
|
2901
|
+
}
|
|
2902
|
+
if (nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_loaded_lectures() !== 18448) {
|
|
2903
|
+
throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_loaded_lectures');
|
|
2904
|
+
}
|
|
2791
2905
|
if (nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_majors() !== 356) {
|
|
2792
2906
|
throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_ffi_checksum_method_coursescheduleapplication_majors');
|
|
2793
2907
|
}
|