@rusaint/react-native 0.10.0-dev.0

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 (79) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +15 -0
  3. package/android/CMakeLists.txt +78 -0
  4. package/android/build.gradle +143 -0
  5. package/android/cpp-adapter.cpp +63 -0
  6. package/android/generated/java/dev/eatsteak/rusaint/reactnative/NativeReactNativeSpec.java +41 -0
  7. package/android/generated/jni/CMakeLists.txt +36 -0
  8. package/android/generated/jni/RNReactNativeSpec-generated.cpp +38 -0
  9. package/android/generated/jni/RNReactNativeSpec.h +31 -0
  10. package/android/generated/jni/react/renderer/components/RNReactNativeSpec/RNReactNativeSpecJSI-generated.cpp +32 -0
  11. package/android/generated/jni/react/renderer/components/RNReactNativeSpec/RNReactNativeSpecJSI.h +80 -0
  12. package/android/gradle.properties +5 -0
  13. package/android/src/main/AndroidManifest.xml +5 -0
  14. package/android/src/main/java/dev/eatsteak/rusaint/reactnative/ReactNativeModule.kt +43 -0
  15. package/android/src/main/java/dev/eatsteak/rusaint/reactnative/ReactNativePackage.kt +34 -0
  16. package/android/src/main/jniLibs/arm64-v8a/librusaint_ffi.a +0 -0
  17. package/android/src/main/jniLibs/armeabi-v7a/librusaint_ffi.a +0 -0
  18. package/android/src/main/jniLibs/x86/librusaint_ffi.a +0 -0
  19. package/android/src/main/jniLibs/x86_64/librusaint_ffi.a +0 -0
  20. package/build/RusaintReactNativeFramework.xcframework/Info.plist +43 -0
  21. package/build/RusaintReactNativeFramework.xcframework/ios-arm64/librusaint_ffi.a +0 -0
  22. package/build/RusaintReactNativeFramework.xcframework/ios-arm64-simulator/librusaint_ffi.a +0 -0
  23. package/cpp/generated/rusaint.cpp +2485 -0
  24. package/cpp/generated/rusaint.hpp +168 -0
  25. package/cpp/generated/rusaint_ffi.cpp +7397 -0
  26. package/cpp/generated/rusaint_ffi.hpp +873 -0
  27. package/cpp/rusaint-react-native.cpp +18 -0
  28. package/cpp/rusaint-react-native.h +15 -0
  29. package/ios/ReactNative.h +16 -0
  30. package/ios/ReactNative.mm +66 -0
  31. package/ios/generated/RNReactNativeSpec/RNReactNativeSpec-generated.mm +46 -0
  32. package/ios/generated/RNReactNativeSpec/RNReactNativeSpec.h +63 -0
  33. package/ios/generated/RNReactNativeSpecJSI-generated.cpp +32 -0
  34. package/ios/generated/RNReactNativeSpecJSI.h +80 -0
  35. package/lib/commonjs/NativeReactNative.ts +10 -0
  36. package/lib/commonjs/generated/rusaint-ffi.js +44 -0
  37. package/lib/commonjs/generated/rusaint-ffi.js.map +1 -0
  38. package/lib/commonjs/generated/rusaint.js +3232 -0
  39. package/lib/commonjs/generated/rusaint.js.map +1 -0
  40. package/lib/commonjs/generated/rusaint_ffi-ffi.js +44 -0
  41. package/lib/commonjs/generated/rusaint_ffi-ffi.js.map +1 -0
  42. package/lib/commonjs/generated/rusaint_ffi.js +2493 -0
  43. package/lib/commonjs/generated/rusaint_ffi.js.map +1 -0
  44. package/lib/commonjs/index.js +68 -0
  45. package/lib/commonjs/index.js.map +1 -0
  46. package/lib/commonjs/package.json +1 -0
  47. package/lib/module/NativeReactNative.ts +10 -0
  48. package/lib/module/generated/rusaint-ffi.js +43 -0
  49. package/lib/module/generated/rusaint-ffi.js.map +1 -0
  50. package/lib/module/generated/rusaint.js +3226 -0
  51. package/lib/module/generated/rusaint.js.map +1 -0
  52. package/lib/module/generated/rusaint_ffi-ffi.js +43 -0
  53. package/lib/module/generated/rusaint_ffi-ffi.js.map +1 -0
  54. package/lib/module/generated/rusaint_ffi.js +2469 -0
  55. package/lib/module/generated/rusaint_ffi.js.map +1 -0
  56. package/lib/module/index.js +40 -0
  57. package/lib/module/index.js.map +1 -0
  58. package/lib/module/package.json +1 -0
  59. package/lib/typescript/commonjs/src/NativeReactNative.d.ts +8 -0
  60. package/lib/typescript/commonjs/src/NativeReactNative.d.ts.map +1 -0
  61. package/lib/typescript/commonjs/src/generated/rusaint-ffi.d.ts +109 -0
  62. package/lib/typescript/commonjs/src/generated/rusaint-ffi.d.ts.map +1 -0
  63. package/lib/typescript/commonjs/src/generated/rusaint.d.ts +2330 -0
  64. package/lib/typescript/commonjs/src/generated/rusaint.d.ts.map +1 -0
  65. package/lib/typescript/commonjs/src/generated/rusaint_ffi-ffi.d.ts +300 -0
  66. package/lib/typescript/commonjs/src/generated/rusaint_ffi-ffi.d.ts.map +1 -0
  67. package/lib/typescript/commonjs/src/generated/rusaint_ffi.d.ts +1111 -0
  68. package/lib/typescript/commonjs/src/generated/rusaint_ffi.d.ts.map +1 -0
  69. package/lib/typescript/commonjs/src/index.d.ts +10 -0
  70. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  71. package/package.json +185 -0
  72. package/react-native.config.js +12 -0
  73. package/rusaint-react-native.podspec +44 -0
  74. package/src/NativeReactNative.ts +10 -0
  75. package/src/generated/rusaint-ffi.ts +276 -0
  76. package/src/generated/rusaint.ts +4867 -0
  77. package/src/generated/rusaint_ffi-ffi.ts +832 -0
  78. package/src/generated/rusaint_ffi.ts +5519 -0
  79. package/src/index.tsx +38 -0
@@ -0,0 +1,3226 @@
1
+ "use strict";
2
+
3
+ // This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
4
+ // Trust me, you don't want to mess with it!
5
+ import nativeModule from "./rusaint-ffi.js";
6
+ import { AbstractFfiConverterByteArray, FfiConverterArray, FfiConverterArrayBuffer, FfiConverterBool, FfiConverterFloat32, FfiConverterInt32, FfiConverterMap, FfiConverterObject, FfiConverterOptional, FfiConverterUInt32, FfiConverterUInt64, UniffiAbstractObject, UniffiEnum, UniffiInternalError, UniffiRustCaller, destructorGuardSymbol, pointerLiteralSymbol, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiTypeNameSymbol } from 'uniffi-bindgen-react-native';
7
+
8
+ // Get converters from the other files, if any.
9
+ const uniffiCaller = new UniffiRustCaller();
10
+ const uniffiIsDebug =
11
+ // @ts-ignore -- The process global might not be defined
12
+ typeof process !== 'object' ||
13
+ // @ts-ignore -- The process global might not be defined
14
+ process?.env?.NODE_ENV !== 'production' || false;
15
+ // Public interface members begin here.
16
+
17
+ /**
18
+ * 채플 결석신청 정보
19
+ */
20
+
21
+ /**
22
+ * Generated factory for {@link ChapelAbsenceRequest} record objects.
23
+ */
24
+ export const ChapelAbsenceRequest = (() => {
25
+ const defaults = () => ({});
26
+ const create = (() => {
27
+ return uniffiCreateRecord(defaults);
28
+ })();
29
+ return Object.freeze({
30
+ /**
31
+ * Create a frozen instance of {@link ChapelAbsenceRequest}, with defaults specified
32
+ * in Rust, in the {@link rusaint} crate.
33
+ */
34
+ create,
35
+ /**
36
+ * Create a frozen instance of {@link ChapelAbsenceRequest}, with defaults specified
37
+ * in Rust, in the {@link rusaint} crate.
38
+ */
39
+ new: create,
40
+ /**
41
+ * Defaults specified in the {@link rusaint} crate.
42
+ */
43
+ defaults: () => Object.freeze(defaults())
44
+ });
45
+ })();
46
+ const FfiConverterTypeChapelAbsenceRequest = (() => {
47
+ class FFIConverter extends AbstractFfiConverterByteArray {
48
+ read(from) {
49
+ return {
50
+ year: FfiConverterUInt32.read(from),
51
+ semester: FfiConverterTypeSemesterType.read(from),
52
+ absenceDetail: FfiConverterString.read(from),
53
+ absenceStart: FfiConverterString.read(from),
54
+ absenceEnd: FfiConverterString.read(from),
55
+ absenceReasonKr: FfiConverterString.read(from),
56
+ absenceReasonEn: FfiConverterString.read(from),
57
+ applicationDate: FfiConverterString.read(from),
58
+ approvalDate: FfiConverterString.read(from),
59
+ denialReason: FfiConverterString.read(from),
60
+ status: FfiConverterString.read(from)
61
+ };
62
+ }
63
+ write(value, into) {
64
+ FfiConverterUInt32.write(value.year, into);
65
+ FfiConverterTypeSemesterType.write(value.semester, into);
66
+ FfiConverterString.write(value.absenceDetail, into);
67
+ FfiConverterString.write(value.absenceStart, into);
68
+ FfiConverterString.write(value.absenceEnd, into);
69
+ FfiConverterString.write(value.absenceReasonKr, into);
70
+ FfiConverterString.write(value.absenceReasonEn, into);
71
+ FfiConverterString.write(value.applicationDate, into);
72
+ FfiConverterString.write(value.approvalDate, into);
73
+ FfiConverterString.write(value.denialReason, into);
74
+ FfiConverterString.write(value.status, into);
75
+ }
76
+ allocationSize(value) {
77
+ return FfiConverterUInt32.allocationSize(value.year) + FfiConverterTypeSemesterType.allocationSize(value.semester) + FfiConverterString.allocationSize(value.absenceDetail) + FfiConverterString.allocationSize(value.absenceStart) + FfiConverterString.allocationSize(value.absenceEnd) + FfiConverterString.allocationSize(value.absenceReasonKr) + FfiConverterString.allocationSize(value.absenceReasonEn) + FfiConverterString.allocationSize(value.applicationDate) + FfiConverterString.allocationSize(value.approvalDate) + FfiConverterString.allocationSize(value.denialReason) + FfiConverterString.allocationSize(value.status);
78
+ }
79
+ }
80
+ return new FFIConverter();
81
+ })();
82
+
83
+ /**
84
+ * 채플 수업별 출석정보
85
+ */
86
+
87
+ /**
88
+ * Generated factory for {@link ChapelAttendance} record objects.
89
+ */
90
+ export const ChapelAttendance = (() => {
91
+ const defaults = () => ({});
92
+ const create = (() => {
93
+ return uniffiCreateRecord(defaults);
94
+ })();
95
+ return Object.freeze({
96
+ /**
97
+ * Create a frozen instance of {@link ChapelAttendance}, with defaults specified
98
+ * in Rust, in the {@link rusaint} crate.
99
+ */
100
+ create,
101
+ /**
102
+ * Create a frozen instance of {@link ChapelAttendance}, with defaults specified
103
+ * in Rust, in the {@link rusaint} crate.
104
+ */
105
+ new: create,
106
+ /**
107
+ * Defaults specified in the {@link rusaint} crate.
108
+ */
109
+ defaults: () => Object.freeze(defaults())
110
+ });
111
+ })();
112
+ const FfiConverterTypeChapelAttendance = (() => {
113
+ class FFIConverter extends AbstractFfiConverterByteArray {
114
+ read(from) {
115
+ return {
116
+ division: FfiConverterUInt32.read(from),
117
+ classDate: FfiConverterString.read(from),
118
+ category: FfiConverterString.read(from),
119
+ instructor: FfiConverterString.read(from),
120
+ instructorDepartment: FfiConverterString.read(from),
121
+ title: FfiConverterString.read(from),
122
+ attendance: FfiConverterString.read(from),
123
+ result: FfiConverterString.read(from),
124
+ note: FfiConverterString.read(from)
125
+ };
126
+ }
127
+ write(value, into) {
128
+ FfiConverterUInt32.write(value.division, into);
129
+ FfiConverterString.write(value.classDate, into);
130
+ FfiConverterString.write(value.category, into);
131
+ FfiConverterString.write(value.instructor, into);
132
+ FfiConverterString.write(value.instructorDepartment, into);
133
+ FfiConverterString.write(value.title, into);
134
+ FfiConverterString.write(value.attendance, into);
135
+ FfiConverterString.write(value.result, into);
136
+ FfiConverterString.write(value.note, into);
137
+ }
138
+ allocationSize(value) {
139
+ return FfiConverterUInt32.allocationSize(value.division) + FfiConverterString.allocationSize(value.classDate) + FfiConverterString.allocationSize(value.category) + FfiConverterString.allocationSize(value.instructor) + FfiConverterString.allocationSize(value.instructorDepartment) + FfiConverterString.allocationSize(value.title) + FfiConverterString.allocationSize(value.attendance) + FfiConverterString.allocationSize(value.result) + FfiConverterString.allocationSize(value.note);
140
+ }
141
+ }
142
+ return new FFIConverter();
143
+ })();
144
+
145
+ /**
146
+ * 학기별 채플 정보
147
+ */
148
+
149
+ /**
150
+ * Generated factory for {@link ChapelInformation} record objects.
151
+ */
152
+ export const ChapelInformation = (() => {
153
+ const defaults = () => ({});
154
+ const create = (() => {
155
+ return uniffiCreateRecord(defaults);
156
+ })();
157
+ return Object.freeze({
158
+ /**
159
+ * Create a frozen instance of {@link ChapelInformation}, with defaults specified
160
+ * in Rust, in the {@link rusaint} crate.
161
+ */
162
+ create,
163
+ /**
164
+ * Create a frozen instance of {@link ChapelInformation}, with defaults specified
165
+ * in Rust, in the {@link rusaint} crate.
166
+ */
167
+ new: create,
168
+ /**
169
+ * Defaults specified in the {@link rusaint} crate.
170
+ */
171
+ defaults: () => Object.freeze(defaults())
172
+ });
173
+ })();
174
+ const FfiConverterTypeChapelInformation = (() => {
175
+ class FFIConverter extends AbstractFfiConverterByteArray {
176
+ read(from) {
177
+ return {
178
+ year: FfiConverterUInt32.read(from),
179
+ semester: FfiConverterTypeSemesterType.read(from),
180
+ generalInformation: FfiConverterTypeGeneralChapelInformation.read(from),
181
+ attendances: FfiConverterArrayTypeChapelAttendance.read(from),
182
+ absenceRequests: FfiConverterArrayTypeChapelAbsenceRequest.read(from)
183
+ };
184
+ }
185
+ write(value, into) {
186
+ FfiConverterUInt32.write(value.year, into);
187
+ FfiConverterTypeSemesterType.write(value.semester, into);
188
+ FfiConverterTypeGeneralChapelInformation.write(value.generalInformation, into);
189
+ FfiConverterArrayTypeChapelAttendance.write(value.attendances, into);
190
+ FfiConverterArrayTypeChapelAbsenceRequest.write(value.absenceRequests, into);
191
+ }
192
+ allocationSize(value) {
193
+ return FfiConverterUInt32.allocationSize(value.year) + FfiConverterTypeSemesterType.allocationSize(value.semester) + FfiConverterTypeGeneralChapelInformation.allocationSize(value.generalInformation) + FfiConverterArrayTypeChapelAttendance.allocationSize(value.attendances) + FfiConverterArrayTypeChapelAbsenceRequest.allocationSize(value.absenceRequests);
194
+ }
195
+ }
196
+ return new FFIConverter();
197
+ })();
198
+
199
+ /**
200
+ * 과목별 성적
201
+ */
202
+
203
+ /**
204
+ * Generated factory for {@link ClassGrade} record objects.
205
+ */
206
+ export const ClassGrade = (() => {
207
+ const defaults = () => ({});
208
+ const create = (() => {
209
+ return uniffiCreateRecord(defaults);
210
+ })();
211
+ return Object.freeze({
212
+ /**
213
+ * Create a frozen instance of {@link ClassGrade}, with defaults specified
214
+ * in Rust, in the {@link rusaint} crate.
215
+ */
216
+ create,
217
+ /**
218
+ * Create a frozen instance of {@link ClassGrade}, with defaults specified
219
+ * in Rust, in the {@link rusaint} crate.
220
+ */
221
+ new: create,
222
+ /**
223
+ * Defaults specified in the {@link rusaint} crate.
224
+ */
225
+ defaults: () => Object.freeze(defaults())
226
+ });
227
+ })();
228
+ const FfiConverterTypeClassGrade = (() => {
229
+ class FFIConverter extends AbstractFfiConverterByteArray {
230
+ read(from) {
231
+ return {
232
+ year: FfiConverterUInt32.read(from),
233
+ semester: FfiConverterTypeSemesterType.read(from),
234
+ code: FfiConverterString.read(from),
235
+ className: FfiConverterString.read(from),
236
+ gradePoints: FfiConverterFloat32.read(from),
237
+ score: FfiConverterTypeClassScore.read(from),
238
+ rank: FfiConverterString.read(from),
239
+ professor: FfiConverterString.read(from),
240
+ detail: FfiConverterOptionalMapStringFloat32.read(from)
241
+ };
242
+ }
243
+ write(value, into) {
244
+ FfiConverterUInt32.write(value.year, into);
245
+ FfiConverterTypeSemesterType.write(value.semester, into);
246
+ FfiConverterString.write(value.code, into);
247
+ FfiConverterString.write(value.className, into);
248
+ FfiConverterFloat32.write(value.gradePoints, into);
249
+ FfiConverterTypeClassScore.write(value.score, into);
250
+ FfiConverterString.write(value.rank, into);
251
+ FfiConverterString.write(value.professor, into);
252
+ FfiConverterOptionalMapStringFloat32.write(value.detail, into);
253
+ }
254
+ allocationSize(value) {
255
+ return FfiConverterUInt32.allocationSize(value.year) + FfiConverterTypeSemesterType.allocationSize(value.semester) + FfiConverterString.allocationSize(value.code) + FfiConverterString.allocationSize(value.className) + FfiConverterFloat32.allocationSize(value.gradePoints) + FfiConverterTypeClassScore.allocationSize(value.score) + FfiConverterString.allocationSize(value.rank) + FfiConverterString.allocationSize(value.professor) + FfiConverterOptionalMapStringFloat32.allocationSize(value.detail);
256
+ }
257
+ }
258
+ return new FFIConverter();
259
+ })();
260
+
261
+ /**
262
+ * 강의의 시간표 정보입니다.
263
+ */
264
+
265
+ /**
266
+ * Generated factory for {@link CourseScheduleInformation} record objects.
267
+ */
268
+ export const CourseScheduleInformation = (() => {
269
+ const defaults = () => ({});
270
+ const create = (() => {
271
+ return uniffiCreateRecord(defaults);
272
+ })();
273
+ return Object.freeze({
274
+ /**
275
+ * Create a frozen instance of {@link CourseScheduleInformation}, with defaults specified
276
+ * in Rust, in the {@link rusaint} crate.
277
+ */
278
+ create,
279
+ /**
280
+ * Create a frozen instance of {@link CourseScheduleInformation}, with defaults specified
281
+ * in Rust, in the {@link rusaint} crate.
282
+ */
283
+ new: create,
284
+ /**
285
+ * Defaults specified in the {@link rusaint} crate.
286
+ */
287
+ defaults: () => Object.freeze(defaults())
288
+ });
289
+ })();
290
+ const FfiConverterTypeCourseScheduleInformation = (() => {
291
+ class FFIConverter extends AbstractFfiConverterByteArray {
292
+ read(from) {
293
+ return {
294
+ name: FfiConverterString.read(from),
295
+ professor: FfiConverterString.read(from),
296
+ time: FfiConverterString.read(from),
297
+ classroom: FfiConverterString.read(from)
298
+ };
299
+ }
300
+ write(value, into) {
301
+ FfiConverterString.write(value.name, into);
302
+ FfiConverterString.write(value.professor, into);
303
+ FfiConverterString.write(value.time, into);
304
+ FfiConverterString.write(value.classroom, into);
305
+ }
306
+ allocationSize(value) {
307
+ return FfiConverterString.allocationSize(value.name) + FfiConverterString.allocationSize(value.professor) + FfiConverterString.allocationSize(value.time) + FfiConverterString.allocationSize(value.classroom);
308
+ }
309
+ }
310
+ return new FFIConverter();
311
+ })();
312
+
313
+ /**
314
+ * 채플 기본 정보(좌석번호, 결석현황, 성적결과)
315
+ */
316
+
317
+ /**
318
+ * Generated factory for {@link GeneralChapelInformation} record objects.
319
+ */
320
+ export const GeneralChapelInformation = (() => {
321
+ const defaults = () => ({});
322
+ const create = (() => {
323
+ return uniffiCreateRecord(defaults);
324
+ })();
325
+ return Object.freeze({
326
+ /**
327
+ * Create a frozen instance of {@link GeneralChapelInformation}, with defaults specified
328
+ * in Rust, in the {@link rusaint} crate.
329
+ */
330
+ create,
331
+ /**
332
+ * Create a frozen instance of {@link GeneralChapelInformation}, with defaults specified
333
+ * in Rust, in the {@link rusaint} crate.
334
+ */
335
+ new: create,
336
+ /**
337
+ * Defaults specified in the {@link rusaint} crate.
338
+ */
339
+ defaults: () => Object.freeze(defaults())
340
+ });
341
+ })();
342
+ const FfiConverterTypeGeneralChapelInformation = (() => {
343
+ class FFIConverter extends AbstractFfiConverterByteArray {
344
+ read(from) {
345
+ return {
346
+ division: FfiConverterUInt32.read(from),
347
+ chapelTime: FfiConverterString.read(from),
348
+ chapelRoom: FfiConverterString.read(from),
349
+ floorLevel: FfiConverterUInt32.read(from),
350
+ seatNumber: FfiConverterString.read(from),
351
+ absenceTime: FfiConverterUInt32.read(from),
352
+ result: FfiConverterString.read(from),
353
+ note: FfiConverterString.read(from)
354
+ };
355
+ }
356
+ write(value, into) {
357
+ FfiConverterUInt32.write(value.division, into);
358
+ FfiConverterString.write(value.chapelTime, into);
359
+ FfiConverterString.write(value.chapelRoom, into);
360
+ FfiConverterUInt32.write(value.floorLevel, into);
361
+ FfiConverterString.write(value.seatNumber, into);
362
+ FfiConverterUInt32.write(value.absenceTime, into);
363
+ FfiConverterString.write(value.result, into);
364
+ FfiConverterString.write(value.note, into);
365
+ }
366
+ allocationSize(value) {
367
+ return FfiConverterUInt32.allocationSize(value.division) + FfiConverterString.allocationSize(value.chapelTime) + FfiConverterString.allocationSize(value.chapelRoom) + FfiConverterUInt32.allocationSize(value.floorLevel) + FfiConverterString.allocationSize(value.seatNumber) + FfiConverterUInt32.allocationSize(value.absenceTime) + FfiConverterString.allocationSize(value.result) + FfiConverterString.allocationSize(value.note);
368
+ }
369
+ }
370
+ return new FFIConverter();
371
+ })();
372
+
373
+ /**
374
+ * 전체 성적(학적부, 증명)
375
+ */
376
+
377
+ /**
378
+ * Generated factory for {@link GradeSummary} record objects.
379
+ */
380
+ export const GradeSummary = (() => {
381
+ const defaults = () => ({});
382
+ const create = (() => {
383
+ return uniffiCreateRecord(defaults);
384
+ })();
385
+ return Object.freeze({
386
+ /**
387
+ * Create a frozen instance of {@link GradeSummary}, with defaults specified
388
+ * in Rust, in the {@link rusaint} crate.
389
+ */
390
+ create,
391
+ /**
392
+ * Create a frozen instance of {@link GradeSummary}, with defaults specified
393
+ * in Rust, in the {@link rusaint} crate.
394
+ */
395
+ new: create,
396
+ /**
397
+ * Defaults specified in the {@link rusaint} crate.
398
+ */
399
+ defaults: () => Object.freeze(defaults())
400
+ });
401
+ })();
402
+ const FfiConverterTypeGradeSummary = (() => {
403
+ class FFIConverter extends AbstractFfiConverterByteArray {
404
+ read(from) {
405
+ return {
406
+ attemptedCredits: FfiConverterFloat32.read(from),
407
+ earnedCredits: FfiConverterFloat32.read(from),
408
+ gradePointsSum: FfiConverterFloat32.read(from),
409
+ gradePointsAverage: FfiConverterFloat32.read(from),
410
+ arithmeticMean: FfiConverterFloat32.read(from),
411
+ pfEarnedCredits: FfiConverterFloat32.read(from)
412
+ };
413
+ }
414
+ write(value, into) {
415
+ FfiConverterFloat32.write(value.attemptedCredits, into);
416
+ FfiConverterFloat32.write(value.earnedCredits, into);
417
+ FfiConverterFloat32.write(value.gradePointsSum, into);
418
+ FfiConverterFloat32.write(value.gradePointsAverage, into);
419
+ FfiConverterFloat32.write(value.arithmeticMean, into);
420
+ FfiConverterFloat32.write(value.pfEarnedCredits, into);
421
+ }
422
+ allocationSize(value) {
423
+ return FfiConverterFloat32.allocationSize(value.attemptedCredits) + FfiConverterFloat32.allocationSize(value.earnedCredits) + FfiConverterFloat32.allocationSize(value.gradePointsSum) + FfiConverterFloat32.allocationSize(value.gradePointsAverage) + FfiConverterFloat32.allocationSize(value.arithmeticMean) + FfiConverterFloat32.allocationSize(value.pfEarnedCredits);
424
+ }
425
+ }
426
+ return new FFIConverter();
427
+ })();
428
+
429
+ /**
430
+ * 졸업 요건
431
+ */
432
+
433
+ /**
434
+ * Generated factory for {@link GraduationRequirement} record objects.
435
+ */
436
+ export const GraduationRequirement = (() => {
437
+ const defaults = () => ({});
438
+ const create = (() => {
439
+ return uniffiCreateRecord(defaults);
440
+ })();
441
+ return Object.freeze({
442
+ /**
443
+ * Create a frozen instance of {@link GraduationRequirement}, with defaults specified
444
+ * in Rust, in the {@link rusaint} crate.
445
+ */
446
+ create,
447
+ /**
448
+ * Create a frozen instance of {@link GraduationRequirement}, with defaults specified
449
+ * in Rust, in the {@link rusaint} crate.
450
+ */
451
+ new: create,
452
+ /**
453
+ * Defaults specified in the {@link rusaint} crate.
454
+ */
455
+ defaults: () => Object.freeze(defaults())
456
+ });
457
+ })();
458
+ const FfiConverterTypeGraduationRequirement = (() => {
459
+ class FFIConverter extends AbstractFfiConverterByteArray {
460
+ read(from) {
461
+ return {
462
+ name: FfiConverterString.read(from),
463
+ requirement: FfiConverterOptionalUInt32.read(from),
464
+ calcuation: FfiConverterOptionalFloat32.read(from),
465
+ difference: FfiConverterOptionalFloat32.read(from),
466
+ result: FfiConverterBool.read(from),
467
+ category: FfiConverterString.read(from),
468
+ lectures: FfiConverterArrayString.read(from)
469
+ };
470
+ }
471
+ write(value, into) {
472
+ FfiConverterString.write(value.name, into);
473
+ FfiConverterOptionalUInt32.write(value.requirement, into);
474
+ FfiConverterOptionalFloat32.write(value.calcuation, into);
475
+ FfiConverterOptionalFloat32.write(value.difference, into);
476
+ FfiConverterBool.write(value.result, into);
477
+ FfiConverterString.write(value.category, into);
478
+ FfiConverterArrayString.write(value.lectures, into);
479
+ }
480
+ allocationSize(value) {
481
+ return FfiConverterString.allocationSize(value.name) + FfiConverterOptionalUInt32.allocationSize(value.requirement) + FfiConverterOptionalFloat32.allocationSize(value.calcuation) + FfiConverterOptionalFloat32.allocationSize(value.difference) + FfiConverterBool.allocationSize(value.result) + FfiConverterString.allocationSize(value.category) + FfiConverterArrayString.allocationSize(value.lectures);
482
+ }
483
+ }
484
+ return new FFIConverter();
485
+ })();
486
+
487
+ /**
488
+ * 전체 졸업 요건 정보
489
+ */
490
+
491
+ /**
492
+ * Generated factory for {@link GraduationRequirements} record objects.
493
+ */
494
+ export const GraduationRequirements = (() => {
495
+ const defaults = () => ({});
496
+ const create = (() => {
497
+ return uniffiCreateRecord(defaults);
498
+ })();
499
+ return Object.freeze({
500
+ /**
501
+ * Create a frozen instance of {@link GraduationRequirements}, with defaults specified
502
+ * in Rust, in the {@link rusaint} crate.
503
+ */
504
+ create,
505
+ /**
506
+ * Create a frozen instance of {@link GraduationRequirements}, with defaults specified
507
+ * in Rust, in the {@link rusaint} crate.
508
+ */
509
+ new: create,
510
+ /**
511
+ * Defaults specified in the {@link rusaint} crate.
512
+ */
513
+ defaults: () => Object.freeze(defaults())
514
+ });
515
+ })();
516
+ const FfiConverterTypeGraduationRequirements = (() => {
517
+ class FFIConverter extends AbstractFfiConverterByteArray {
518
+ read(from) {
519
+ return {
520
+ isGraduatable: FfiConverterBool.read(from),
521
+ requirements: FfiConverterMapStringTypeGraduationRequirement.read(from)
522
+ };
523
+ }
524
+ write(value, into) {
525
+ FfiConverterBool.write(value.isGraduatable, into);
526
+ FfiConverterMapStringTypeGraduationRequirement.write(value.requirements, into);
527
+ }
528
+ allocationSize(value) {
529
+ return FfiConverterBool.allocationSize(value.isGraduatable) + FfiConverterMapStringTypeGraduationRequirement.allocationSize(value.requirements);
530
+ }
531
+ }
532
+ return new FFIConverter();
533
+ })();
534
+
535
+ /**
536
+ * 졸업 학생 정보
537
+ */
538
+
539
+ /**
540
+ * Generated factory for {@link GraduationStudent} record objects.
541
+ */
542
+ export const GraduationStudent = (() => {
543
+ const defaults = () => ({});
544
+ const create = (() => {
545
+ return uniffiCreateRecord(defaults);
546
+ })();
547
+ return Object.freeze({
548
+ /**
549
+ * Create a frozen instance of {@link GraduationStudent}, with defaults specified
550
+ * in Rust, in the {@link rusaint} crate.
551
+ */
552
+ create,
553
+ /**
554
+ * Create a frozen instance of {@link GraduationStudent}, with defaults specified
555
+ * in Rust, in the {@link rusaint} crate.
556
+ */
557
+ new: create,
558
+ /**
559
+ * Defaults specified in the {@link rusaint} crate.
560
+ */
561
+ defaults: () => Object.freeze(defaults())
562
+ });
563
+ })();
564
+ const FfiConverterTypeGraduationStudent = (() => {
565
+ class FFIConverter extends AbstractFfiConverterByteArray {
566
+ read(from) {
567
+ return {
568
+ number: FfiConverterUInt32.read(from),
569
+ name: FfiConverterString.read(from),
570
+ grade: FfiConverterUInt32.read(from),
571
+ semester: FfiConverterUInt32.read(from),
572
+ status: FfiConverterString.read(from),
573
+ applyYear: FfiConverterUInt32.read(from),
574
+ applyType: FfiConverterString.read(from),
575
+ department: FfiConverterString.read(from),
576
+ majors: FfiConverterArrayString.read(from),
577
+ auditDate: FfiConverterString.read(from),
578
+ graduationPoints: FfiConverterFloat32.read(from),
579
+ completedPoints: FfiConverterFloat32.read(from)
580
+ };
581
+ }
582
+ write(value, into) {
583
+ FfiConverterUInt32.write(value.number, into);
584
+ FfiConverterString.write(value.name, into);
585
+ FfiConverterUInt32.write(value.grade, into);
586
+ FfiConverterUInt32.write(value.semester, into);
587
+ FfiConverterString.write(value.status, into);
588
+ FfiConverterUInt32.write(value.applyYear, into);
589
+ FfiConverterString.write(value.applyType, into);
590
+ FfiConverterString.write(value.department, into);
591
+ FfiConverterArrayString.write(value.majors, into);
592
+ FfiConverterString.write(value.auditDate, into);
593
+ FfiConverterFloat32.write(value.graduationPoints, into);
594
+ FfiConverterFloat32.write(value.completedPoints, into);
595
+ }
596
+ allocationSize(value) {
597
+ return FfiConverterUInt32.allocationSize(value.number) + FfiConverterString.allocationSize(value.name) + FfiConverterUInt32.allocationSize(value.grade) + FfiConverterUInt32.allocationSize(value.semester) + FfiConverterString.allocationSize(value.status) + FfiConverterUInt32.allocationSize(value.applyYear) + FfiConverterString.allocationSize(value.applyType) + FfiConverterString.allocationSize(value.department) + FfiConverterArrayString.allocationSize(value.majors) + FfiConverterString.allocationSize(value.auditDate) + FfiConverterFloat32.allocationSize(value.graduationPoints) + FfiConverterFloat32.allocationSize(value.completedPoints);
598
+ }
599
+ }
600
+ return new FFIConverter();
601
+ })();
602
+
603
+ /**
604
+ * 과목 정보
605
+ */
606
+
607
+ /**
608
+ * Generated factory for {@link Lecture} record objects.
609
+ */
610
+ export const Lecture = (() => {
611
+ const defaults = () => ({});
612
+ const create = (() => {
613
+ return uniffiCreateRecord(defaults);
614
+ })();
615
+ return Object.freeze({
616
+ /**
617
+ * Create a frozen instance of {@link Lecture}, with defaults specified
618
+ * in Rust, in the {@link rusaint} crate.
619
+ */
620
+ create,
621
+ /**
622
+ * Create a frozen instance of {@link Lecture}, with defaults specified
623
+ * in Rust, in the {@link rusaint} crate.
624
+ */
625
+ new: create,
626
+ /**
627
+ * Defaults specified in the {@link rusaint} crate.
628
+ */
629
+ defaults: () => Object.freeze(defaults())
630
+ });
631
+ })();
632
+ const FfiConverterTypeLecture = (() => {
633
+ class FFIConverter extends AbstractFfiConverterByteArray {
634
+ read(from) {
635
+ return {
636
+ syllabus: FfiConverterOptionalString.read(from),
637
+ category: FfiConverterString.read(from),
638
+ subCategory: FfiConverterOptionalString.read(from),
639
+ abeekInfo: FfiConverterOptionalString.read(from),
640
+ field: FfiConverterOptionalString.read(from),
641
+ code: FfiConverterString.read(from),
642
+ name: FfiConverterString.read(from),
643
+ division: FfiConverterOptionalString.read(from),
644
+ professor: FfiConverterString.read(from),
645
+ department: FfiConverterString.read(from),
646
+ timePoints: FfiConverterString.read(from),
647
+ personeel: FfiConverterString.read(from),
648
+ remainingSeats: FfiConverterString.read(from),
649
+ scheduleRoom: FfiConverterString.read(from),
650
+ target: FfiConverterString.read(from)
651
+ };
652
+ }
653
+ write(value, into) {
654
+ FfiConverterOptionalString.write(value.syllabus, into);
655
+ FfiConverterString.write(value.category, into);
656
+ FfiConverterOptionalString.write(value.subCategory, into);
657
+ FfiConverterOptionalString.write(value.abeekInfo, into);
658
+ FfiConverterOptionalString.write(value.field, into);
659
+ FfiConverterString.write(value.code, into);
660
+ FfiConverterString.write(value.name, into);
661
+ FfiConverterOptionalString.write(value.division, into);
662
+ FfiConverterString.write(value.professor, into);
663
+ FfiConverterString.write(value.department, into);
664
+ FfiConverterString.write(value.timePoints, into);
665
+ FfiConverterString.write(value.personeel, into);
666
+ FfiConverterString.write(value.remainingSeats, into);
667
+ FfiConverterString.write(value.scheduleRoom, into);
668
+ FfiConverterString.write(value.target, into);
669
+ }
670
+ allocationSize(value) {
671
+ return FfiConverterOptionalString.allocationSize(value.syllabus) + FfiConverterString.allocationSize(value.category) + FfiConverterOptionalString.allocationSize(value.subCategory) + FfiConverterOptionalString.allocationSize(value.abeekInfo) + FfiConverterOptionalString.allocationSize(value.field) + FfiConverterString.allocationSize(value.code) + FfiConverterString.allocationSize(value.name) + FfiConverterOptionalString.allocationSize(value.division) + FfiConverterString.allocationSize(value.professor) + FfiConverterString.allocationSize(value.department) + FfiConverterString.allocationSize(value.timePoints) + FfiConverterString.allocationSize(value.personeel) + FfiConverterString.allocationSize(value.remainingSeats) + FfiConverterString.allocationSize(value.scheduleRoom) + FfiConverterString.allocationSize(value.target);
672
+ }
673
+ }
674
+ return new FFIConverter();
675
+ })();
676
+
677
+ /**
678
+ * 강의평가 결과
679
+ */
680
+
681
+ /**
682
+ * Generated factory for {@link LectureAssessmentResult} record objects.
683
+ */
684
+ export const LectureAssessmentResult = (() => {
685
+ const defaults = () => ({});
686
+ const create = (() => {
687
+ return uniffiCreateRecord(defaults);
688
+ })();
689
+ return Object.freeze({
690
+ /**
691
+ * Create a frozen instance of {@link LectureAssessmentResult}, with defaults specified
692
+ * in Rust, in the {@link rusaint} crate.
693
+ */
694
+ create,
695
+ /**
696
+ * Create a frozen instance of {@link LectureAssessmentResult}, with defaults specified
697
+ * in Rust, in the {@link rusaint} crate.
698
+ */
699
+ new: create,
700
+ /**
701
+ * Defaults specified in the {@link rusaint} crate.
702
+ */
703
+ defaults: () => Object.freeze(defaults())
704
+ });
705
+ })();
706
+ const FfiConverterTypeLectureAssessmentResult = (() => {
707
+ class FFIConverter extends AbstractFfiConverterByteArray {
708
+ read(from) {
709
+ return {
710
+ year: FfiConverterString.read(from),
711
+ semester: FfiConverterTypeSemesterType.read(from),
712
+ lectureCode: FfiConverterUInt32.read(from),
713
+ lectureName: FfiConverterString.read(from),
714
+ points: FfiConverterFloat32.read(from),
715
+ professor: FfiConverterString.read(from),
716
+ collage: FfiConverterString.read(from),
717
+ department: FfiConverterString.read(from),
718
+ position: FfiConverterString.read(from),
719
+ score: FfiConverterFloat32.read(from)
720
+ };
721
+ }
722
+ write(value, into) {
723
+ FfiConverterString.write(value.year, into);
724
+ FfiConverterTypeSemesterType.write(value.semester, into);
725
+ FfiConverterUInt32.write(value.lectureCode, into);
726
+ FfiConverterString.write(value.lectureName, into);
727
+ FfiConverterFloat32.write(value.points, into);
728
+ FfiConverterString.write(value.professor, into);
729
+ FfiConverterString.write(value.collage, into);
730
+ FfiConverterString.write(value.department, into);
731
+ FfiConverterString.write(value.position, into);
732
+ FfiConverterFloat32.write(value.score, into);
733
+ }
734
+ allocationSize(value) {
735
+ return FfiConverterString.allocationSize(value.year) + FfiConverterTypeSemesterType.allocationSize(value.semester) + FfiConverterUInt32.allocationSize(value.lectureCode) + FfiConverterString.allocationSize(value.lectureName) + FfiConverterFloat32.allocationSize(value.points) + FfiConverterString.allocationSize(value.professor) + FfiConverterString.allocationSize(value.collage) + FfiConverterString.allocationSize(value.department) + FfiConverterString.allocationSize(value.position) + FfiConverterFloat32.allocationSize(value.score);
736
+ }
737
+ }
738
+ return new FFIConverter();
739
+ })();
740
+
741
+ /**
742
+ * 개인의 수업 시간표 정보를 조회합니다.
743
+ */
744
+
745
+ /**
746
+ * Generated factory for {@link PersonalCourseSchedule} record objects.
747
+ */
748
+ export const PersonalCourseSchedule = (() => {
749
+ const defaults = () => ({});
750
+ const create = (() => {
751
+ return uniffiCreateRecord(defaults);
752
+ })();
753
+ return Object.freeze({
754
+ /**
755
+ * Create a frozen instance of {@link PersonalCourseSchedule}, with defaults specified
756
+ * in Rust, in the {@link rusaint} crate.
757
+ */
758
+ create,
759
+ /**
760
+ * Create a frozen instance of {@link PersonalCourseSchedule}, with defaults specified
761
+ * in Rust, in the {@link rusaint} crate.
762
+ */
763
+ new: create,
764
+ /**
765
+ * Defaults specified in the {@link rusaint} crate.
766
+ */
767
+ defaults: () => Object.freeze(defaults())
768
+ });
769
+ })();
770
+ const FfiConverterTypePersonalCourseSchedule = (() => {
771
+ class FFIConverter extends AbstractFfiConverterByteArray {
772
+ read(from) {
773
+ return {
774
+ schedule: FfiConverterMapTypeWeekdayArrayTypeCourseScheduleInformation.read(from)
775
+ };
776
+ }
777
+ write(value, into) {
778
+ FfiConverterMapTypeWeekdayArrayTypeCourseScheduleInformation.write(value.schedule, into);
779
+ }
780
+ allocationSize(value) {
781
+ return FfiConverterMapTypeWeekdayArrayTypeCourseScheduleInformation.allocationSize(value.schedule);
782
+ }
783
+ }
784
+ return new FFIConverter();
785
+ })();
786
+
787
+ /**
788
+ * 수혜받은 장학금 정보
789
+ */
790
+
791
+ /**
792
+ * Generated factory for {@link Scholarship} record objects.
793
+ */
794
+ export const Scholarship = (() => {
795
+ const defaults = () => ({});
796
+ const create = (() => {
797
+ return uniffiCreateRecord(defaults);
798
+ })();
799
+ return Object.freeze({
800
+ /**
801
+ * Create a frozen instance of {@link Scholarship}, with defaults specified
802
+ * in Rust, in the {@link rusaint} crate.
803
+ */
804
+ create,
805
+ /**
806
+ * Create a frozen instance of {@link Scholarship}, with defaults specified
807
+ * in Rust, in the {@link rusaint} crate.
808
+ */
809
+ new: create,
810
+ /**
811
+ * Defaults specified in the {@link rusaint} crate.
812
+ */
813
+ defaults: () => Object.freeze(defaults())
814
+ });
815
+ })();
816
+ const FfiConverterTypeScholarship = (() => {
817
+ class FFIConverter extends AbstractFfiConverterByteArray {
818
+ read(from) {
819
+ return {
820
+ year: FfiConverterUInt32.read(from),
821
+ semester: FfiConverterTypeSemesterType.read(from),
822
+ name: FfiConverterString.read(from),
823
+ receivedAmount: FfiConverterUInt64.read(from),
824
+ receiveType: FfiConverterString.read(from),
825
+ status: FfiConverterString.read(from),
826
+ processedAt: FfiConverterString.read(from),
827
+ selectedAmount: FfiConverterUInt64.read(from),
828
+ refundedAmount: FfiConverterUInt64.read(from),
829
+ replacedAmount: FfiConverterUInt64.read(from),
830
+ replacedBy: FfiConverterString.read(from),
831
+ dropReason: FfiConverterString.read(from),
832
+ note: FfiConverterString.read(from),
833
+ workedAt: FfiConverterString.read(from)
834
+ };
835
+ }
836
+ write(value, into) {
837
+ FfiConverterUInt32.write(value.year, into);
838
+ FfiConverterTypeSemesterType.write(value.semester, into);
839
+ FfiConverterString.write(value.name, into);
840
+ FfiConverterUInt64.write(value.receivedAmount, into);
841
+ FfiConverterString.write(value.receiveType, into);
842
+ FfiConverterString.write(value.status, into);
843
+ FfiConverterString.write(value.processedAt, into);
844
+ FfiConverterUInt64.write(value.selectedAmount, into);
845
+ FfiConverterUInt64.write(value.refundedAmount, into);
846
+ FfiConverterUInt64.write(value.replacedAmount, into);
847
+ FfiConverterString.write(value.replacedBy, into);
848
+ FfiConverterString.write(value.dropReason, into);
849
+ FfiConverterString.write(value.note, into);
850
+ FfiConverterString.write(value.workedAt, into);
851
+ }
852
+ allocationSize(value) {
853
+ return FfiConverterUInt32.allocationSize(value.year) + FfiConverterTypeSemesterType.allocationSize(value.semester) + FfiConverterString.allocationSize(value.name) + FfiConverterUInt64.allocationSize(value.receivedAmount) + FfiConverterString.allocationSize(value.receiveType) + FfiConverterString.allocationSize(value.status) + FfiConverterString.allocationSize(value.processedAt) + FfiConverterUInt64.allocationSize(value.selectedAmount) + FfiConverterUInt64.allocationSize(value.refundedAmount) + FfiConverterUInt64.allocationSize(value.replacedAmount) + FfiConverterString.allocationSize(value.replacedBy) + FfiConverterString.allocationSize(value.dropReason) + FfiConverterString.allocationSize(value.note) + FfiConverterString.allocationSize(value.workedAt);
854
+ }
855
+ }
856
+ return new FFIConverter();
857
+ })();
858
+
859
+ /**
860
+ * 학기별 성적
861
+ */
862
+
863
+ /**
864
+ * Generated factory for {@link SemesterGrade} record objects.
865
+ */
866
+ export const SemesterGrade = (() => {
867
+ const defaults = () => ({});
868
+ const create = (() => {
869
+ return uniffiCreateRecord(defaults);
870
+ })();
871
+ return Object.freeze({
872
+ /**
873
+ * Create a frozen instance of {@link SemesterGrade}, with defaults specified
874
+ * in Rust, in the {@link rusaint} crate.
875
+ */
876
+ create,
877
+ /**
878
+ * Create a frozen instance of {@link SemesterGrade}, with defaults specified
879
+ * in Rust, in the {@link rusaint} crate.
880
+ */
881
+ new: create,
882
+ /**
883
+ * Defaults specified in the {@link rusaint} crate.
884
+ */
885
+ defaults: () => Object.freeze(defaults())
886
+ });
887
+ })();
888
+ const FfiConverterTypeSemesterGrade = (() => {
889
+ class FFIConverter extends AbstractFfiConverterByteArray {
890
+ read(from) {
891
+ return {
892
+ year: FfiConverterUInt32.read(from),
893
+ semester: FfiConverterTypeSemesterType.read(from),
894
+ attemptedCredits: FfiConverterFloat32.read(from),
895
+ earnedCredits: FfiConverterFloat32.read(from),
896
+ pfEarnedCredits: FfiConverterFloat32.read(from),
897
+ gradePointsAverage: FfiConverterFloat32.read(from),
898
+ gradePointsSum: FfiConverterFloat32.read(from),
899
+ arithmeticMean: FfiConverterFloat32.read(from),
900
+ semesterRank: FfiConverterTypeU32Pair.read(from),
901
+ generalRank: FfiConverterTypeU32Pair.read(from),
902
+ academicProbation: FfiConverterBool.read(from),
903
+ consult: FfiConverterBool.read(from),
904
+ flunked: FfiConverterBool.read(from)
905
+ };
906
+ }
907
+ write(value, into) {
908
+ FfiConverterUInt32.write(value.year, into);
909
+ FfiConverterTypeSemesterType.write(value.semester, into);
910
+ FfiConverterFloat32.write(value.attemptedCredits, into);
911
+ FfiConverterFloat32.write(value.earnedCredits, into);
912
+ FfiConverterFloat32.write(value.pfEarnedCredits, into);
913
+ FfiConverterFloat32.write(value.gradePointsAverage, into);
914
+ FfiConverterFloat32.write(value.gradePointsSum, into);
915
+ FfiConverterFloat32.write(value.arithmeticMean, into);
916
+ FfiConverterTypeU32Pair.write(value.semesterRank, into);
917
+ FfiConverterTypeU32Pair.write(value.generalRank, into);
918
+ FfiConverterBool.write(value.academicProbation, into);
919
+ FfiConverterBool.write(value.consult, into);
920
+ FfiConverterBool.write(value.flunked, into);
921
+ }
922
+ allocationSize(value) {
923
+ return FfiConverterUInt32.allocationSize(value.year) + FfiConverterTypeSemesterType.allocationSize(value.semester) + FfiConverterFloat32.allocationSize(value.attemptedCredits) + FfiConverterFloat32.allocationSize(value.earnedCredits) + FfiConverterFloat32.allocationSize(value.pfEarnedCredits) + FfiConverterFloat32.allocationSize(value.gradePointsAverage) + FfiConverterFloat32.allocationSize(value.gradePointsSum) + FfiConverterFloat32.allocationSize(value.arithmeticMean) + FfiConverterTypeU32Pair.allocationSize(value.semesterRank) + FfiConverterTypeU32Pair.allocationSize(value.generalRank) + FfiConverterBool.allocationSize(value.academicProbation) + FfiConverterBool.allocationSize(value.consult) + FfiConverterBool.allocationSize(value.flunked);
924
+ }
925
+ }
926
+ return new FFIConverter();
927
+ })();
928
+
929
+ /**
930
+ * 학생의 학적상태 기록
931
+ */
932
+
933
+ /**
934
+ * Generated factory for {@link StudentAcademicRecord} record objects.
935
+ */
936
+ export const StudentAcademicRecord = (() => {
937
+ const defaults = () => ({});
938
+ const create = (() => {
939
+ return uniffiCreateRecord(defaults);
940
+ })();
941
+ return Object.freeze({
942
+ /**
943
+ * Create a frozen instance of {@link StudentAcademicRecord}, with defaults specified
944
+ * in Rust, in the {@link rusaint} crate.
945
+ */
946
+ create,
947
+ /**
948
+ * Create a frozen instance of {@link StudentAcademicRecord}, with defaults specified
949
+ * in Rust, in the {@link rusaint} crate.
950
+ */
951
+ new: create,
952
+ /**
953
+ * Defaults specified in the {@link rusaint} crate.
954
+ */
955
+ defaults: () => Object.freeze(defaults())
956
+ });
957
+ })();
958
+ const FfiConverterTypeStudentAcademicRecord = (() => {
959
+ class FFIConverter extends AbstractFfiConverterByteArray {
960
+ read(from) {
961
+ return {
962
+ startDate: FfiConverterString.read(from),
963
+ endDate: FfiConverterString.read(from),
964
+ year: FfiConverterString.read(from),
965
+ term: FfiConverterString.read(from),
966
+ category: FfiConverterString.read(from),
967
+ reason: FfiConverterString.read(from),
968
+ processDate: FfiConverterString.read(from)
969
+ };
970
+ }
971
+ write(value, into) {
972
+ FfiConverterString.write(value.startDate, into);
973
+ FfiConverterString.write(value.endDate, into);
974
+ FfiConverterString.write(value.year, into);
975
+ FfiConverterString.write(value.term, into);
976
+ FfiConverterString.write(value.category, into);
977
+ FfiConverterString.write(value.reason, into);
978
+ FfiConverterString.write(value.processDate, into);
979
+ }
980
+ allocationSize(value) {
981
+ return FfiConverterString.allocationSize(value.startDate) + FfiConverterString.allocationSize(value.endDate) + FfiConverterString.allocationSize(value.year) + FfiConverterString.allocationSize(value.term) + FfiConverterString.allocationSize(value.category) + FfiConverterString.allocationSize(value.reason) + FfiConverterString.allocationSize(value.processDate);
982
+ }
983
+ }
984
+ return new FFIConverter();
985
+ })();
986
+
987
+ /**
988
+ * 학생의 학적상태 정보
989
+ */
990
+
991
+ /**
992
+ * Generated factory for {@link StudentAcademicRecords} record objects.
993
+ */
994
+ export const StudentAcademicRecords = (() => {
995
+ const defaults = () => ({});
996
+ const create = (() => {
997
+ return uniffiCreateRecord(defaults);
998
+ })();
999
+ return Object.freeze({
1000
+ /**
1001
+ * Create a frozen instance of {@link StudentAcademicRecords}, with defaults specified
1002
+ * in Rust, in the {@link rusaint} crate.
1003
+ */
1004
+ create,
1005
+ /**
1006
+ * Create a frozen instance of {@link StudentAcademicRecords}, with defaults specified
1007
+ * in Rust, in the {@link rusaint} crate.
1008
+ */
1009
+ new: create,
1010
+ /**
1011
+ * Defaults specified in the {@link rusaint} crate.
1012
+ */
1013
+ defaults: () => Object.freeze(defaults())
1014
+ });
1015
+ })();
1016
+ const FfiConverterTypeStudentAcademicRecords = (() => {
1017
+ class FFIConverter extends AbstractFfiConverterByteArray {
1018
+ read(from) {
1019
+ return {
1020
+ records: FfiConverterArrayTypeStudentAcademicRecord.read(from)
1021
+ };
1022
+ }
1023
+ write(value, into) {
1024
+ FfiConverterArrayTypeStudentAcademicRecord.write(value.records, into);
1025
+ }
1026
+ allocationSize(value) {
1027
+ return FfiConverterArrayTypeStudentAcademicRecord.allocationSize(value.records);
1028
+ }
1029
+ }
1030
+ return new FFIConverter();
1031
+ })();
1032
+
1033
+ /**
1034
+ * 학생의 은행 계좌 정보
1035
+ */
1036
+
1037
+ /**
1038
+ * Generated factory for {@link StudentBankAccount} record objects.
1039
+ */
1040
+ export const StudentBankAccount = (() => {
1041
+ const defaults = () => ({});
1042
+ const create = (() => {
1043
+ return uniffiCreateRecord(defaults);
1044
+ })();
1045
+ return Object.freeze({
1046
+ /**
1047
+ * Create a frozen instance of {@link StudentBankAccount}, with defaults specified
1048
+ * in Rust, in the {@link rusaint} crate.
1049
+ */
1050
+ create,
1051
+ /**
1052
+ * Create a frozen instance of {@link StudentBankAccount}, with defaults specified
1053
+ * in Rust, in the {@link rusaint} crate.
1054
+ */
1055
+ new: create,
1056
+ /**
1057
+ * Defaults specified in the {@link rusaint} crate.
1058
+ */
1059
+ defaults: () => Object.freeze(defaults())
1060
+ });
1061
+ })();
1062
+ const FfiConverterTypeStudentBankAccount = (() => {
1063
+ class FFIConverter extends AbstractFfiConverterByteArray {
1064
+ read(from) {
1065
+ return {
1066
+ bank: FfiConverterOptionalString.read(from),
1067
+ accountNumber: FfiConverterOptionalString.read(from),
1068
+ holder: FfiConverterOptionalString.read(from)
1069
+ };
1070
+ }
1071
+ write(value, into) {
1072
+ FfiConverterOptionalString.write(value.bank, into);
1073
+ FfiConverterOptionalString.write(value.accountNumber, into);
1074
+ FfiConverterOptionalString.write(value.holder, into);
1075
+ }
1076
+ allocationSize(value) {
1077
+ return FfiConverterOptionalString.allocationSize(value.bank) + FfiConverterOptionalString.allocationSize(value.accountNumber) + FfiConverterOptionalString.allocationSize(value.holder);
1078
+ }
1079
+ }
1080
+ return new FFIConverter();
1081
+ })();
1082
+
1083
+ /**
1084
+ * 학생의 가족관계 정보
1085
+ */
1086
+
1087
+ /**
1088
+ * Generated factory for {@link StudentFamily} record objects.
1089
+ */
1090
+ export const StudentFamily = (() => {
1091
+ const defaults = () => ({});
1092
+ const create = (() => {
1093
+ return uniffiCreateRecord(defaults);
1094
+ })();
1095
+ return Object.freeze({
1096
+ /**
1097
+ * Create a frozen instance of {@link StudentFamily}, with defaults specified
1098
+ * in Rust, in the {@link rusaint} crate.
1099
+ */
1100
+ create,
1101
+ /**
1102
+ * Create a frozen instance of {@link StudentFamily}, with defaults specified
1103
+ * in Rust, in the {@link rusaint} crate.
1104
+ */
1105
+ new: create,
1106
+ /**
1107
+ * Defaults specified in the {@link rusaint} crate.
1108
+ */
1109
+ defaults: () => Object.freeze(defaults())
1110
+ });
1111
+ })();
1112
+ const FfiConverterTypeStudentFamily = (() => {
1113
+ class FFIConverter extends AbstractFfiConverterByteArray {
1114
+ read(from) {
1115
+ return {
1116
+ members: FfiConverterArrayTypeStudentFamilyMember.read(from)
1117
+ };
1118
+ }
1119
+ write(value, into) {
1120
+ FfiConverterArrayTypeStudentFamilyMember.write(value.members, into);
1121
+ }
1122
+ allocationSize(value) {
1123
+ return FfiConverterArrayTypeStudentFamilyMember.allocationSize(value.members);
1124
+ }
1125
+ }
1126
+ return new FFIConverter();
1127
+ })();
1128
+
1129
+ /**
1130
+ * 학생의 가족 구성원
1131
+ */
1132
+
1133
+ /**
1134
+ * Generated factory for {@link StudentFamilyMember} record objects.
1135
+ */
1136
+ export const StudentFamilyMember = (() => {
1137
+ const defaults = () => ({});
1138
+ const create = (() => {
1139
+ return uniffiCreateRecord(defaults);
1140
+ })();
1141
+ return Object.freeze({
1142
+ /**
1143
+ * Create a frozen instance of {@link StudentFamilyMember}, with defaults specified
1144
+ * in Rust, in the {@link rusaint} crate.
1145
+ */
1146
+ create,
1147
+ /**
1148
+ * Create a frozen instance of {@link StudentFamilyMember}, with defaults specified
1149
+ * in Rust, in the {@link rusaint} crate.
1150
+ */
1151
+ new: create,
1152
+ /**
1153
+ * Defaults specified in the {@link rusaint} crate.
1154
+ */
1155
+ defaults: () => Object.freeze(defaults())
1156
+ });
1157
+ })();
1158
+ const FfiConverterTypeStudentFamilyMember = (() => {
1159
+ class FFIConverter extends AbstractFfiConverterByteArray {
1160
+ read(from) {
1161
+ return {
1162
+ relationType: FfiConverterOptionalString.read(from),
1163
+ telNumber: FfiConverterOptionalString.read(from),
1164
+ name: FfiConverterOptionalString.read(from),
1165
+ mobileNumber: FfiConverterOptionalString.read(from),
1166
+ office: FfiConverterOptionalString.read(from),
1167
+ job: FfiConverterOptionalString.read(from),
1168
+ position: FfiConverterOptionalString.read(from),
1169
+ isGuardian: FfiConverterBool.read(from),
1170
+ isCohabit: FfiConverterBool.read(from)
1171
+ };
1172
+ }
1173
+ write(value, into) {
1174
+ FfiConverterOptionalString.write(value.relationType, into);
1175
+ FfiConverterOptionalString.write(value.telNumber, into);
1176
+ FfiConverterOptionalString.write(value.name, into);
1177
+ FfiConverterOptionalString.write(value.mobileNumber, into);
1178
+ FfiConverterOptionalString.write(value.office, into);
1179
+ FfiConverterOptionalString.write(value.job, into);
1180
+ FfiConverterOptionalString.write(value.position, into);
1181
+ FfiConverterBool.write(value.isGuardian, into);
1182
+ FfiConverterBool.write(value.isCohabit, into);
1183
+ }
1184
+ allocationSize(value) {
1185
+ return FfiConverterOptionalString.allocationSize(value.relationType) + FfiConverterOptionalString.allocationSize(value.telNumber) + FfiConverterOptionalString.allocationSize(value.name) + FfiConverterOptionalString.allocationSize(value.mobileNumber) + FfiConverterOptionalString.allocationSize(value.office) + FfiConverterOptionalString.allocationSize(value.job) + FfiConverterOptionalString.allocationSize(value.position) + FfiConverterBool.allocationSize(value.isGuardian) + FfiConverterBool.allocationSize(value.isCohabit);
1186
+ }
1187
+ }
1188
+ return new FFIConverter();
1189
+ })();
1190
+
1191
+ /**
1192
+ * 7+1 프로그램 정보를 반환합니다.
1193
+ */
1194
+
1195
+ /**
1196
+ * Generated factory for {@link StudentForignStudyInformation} record objects.
1197
+ */
1198
+ export const StudentForignStudyInformation = (() => {
1199
+ const defaults = () => ({});
1200
+ const create = (() => {
1201
+ return uniffiCreateRecord(defaults);
1202
+ })();
1203
+ return Object.freeze({
1204
+ /**
1205
+ * Create a frozen instance of {@link StudentForignStudyInformation}, with defaults specified
1206
+ * in Rust, in the {@link rusaint} crate.
1207
+ */
1208
+ create,
1209
+ /**
1210
+ * Create a frozen instance of {@link StudentForignStudyInformation}, with defaults specified
1211
+ * in Rust, in the {@link rusaint} crate.
1212
+ */
1213
+ new: create,
1214
+ /**
1215
+ * Defaults specified in the {@link rusaint} crate.
1216
+ */
1217
+ defaults: () => Object.freeze(defaults())
1218
+ });
1219
+ })();
1220
+ const FfiConverterTypeStudentForignStudyInformation = (() => {
1221
+ class FFIConverter extends AbstractFfiConverterByteArray {
1222
+ read(from) {
1223
+ return {
1224
+ approvalDate: FfiConverterOptionalString.read(from),
1225
+ authenticationNumber: FfiConverterOptionalString.read(from),
1226
+ issueDate: FfiConverterOptionalString.read(from)
1227
+ };
1228
+ }
1229
+ write(value, into) {
1230
+ FfiConverterOptionalString.write(value.approvalDate, into);
1231
+ FfiConverterOptionalString.write(value.authenticationNumber, into);
1232
+ FfiConverterOptionalString.write(value.issueDate, into);
1233
+ }
1234
+ allocationSize(value) {
1235
+ return FfiConverterOptionalString.allocationSize(value.approvalDate) + FfiConverterOptionalString.allocationSize(value.authenticationNumber) + FfiConverterOptionalString.allocationSize(value.issueDate);
1236
+ }
1237
+ }
1238
+ return new FFIConverter();
1239
+ })();
1240
+
1241
+ /**
1242
+ * 학생의 졸업 정보를 반환합니다. 졸업하지 않았다면 반환되지 않습니다.
1243
+ */
1244
+
1245
+ /**
1246
+ * Generated factory for {@link StudentGraduation} record objects.
1247
+ */
1248
+ export const StudentGraduation = (() => {
1249
+ const defaults = () => ({});
1250
+ const create = (() => {
1251
+ return uniffiCreateRecord(defaults);
1252
+ })();
1253
+ return Object.freeze({
1254
+ /**
1255
+ * Create a frozen instance of {@link StudentGraduation}, with defaults specified
1256
+ * in Rust, in the {@link rusaint} crate.
1257
+ */
1258
+ create,
1259
+ /**
1260
+ * Create a frozen instance of {@link StudentGraduation}, with defaults specified
1261
+ * in Rust, in the {@link rusaint} crate.
1262
+ */
1263
+ new: create,
1264
+ /**
1265
+ * Defaults specified in the {@link rusaint} crate.
1266
+ */
1267
+ defaults: () => Object.freeze(defaults())
1268
+ });
1269
+ })();
1270
+ const FfiConverterTypeStudentGraduation = (() => {
1271
+ class FFIConverter extends AbstractFfiConverterByteArray {
1272
+ read(from) {
1273
+ return {
1274
+ graduationCardinal: FfiConverterUInt32.read(from),
1275
+ graduationCertificationNumber: FfiConverterUInt32.read(from),
1276
+ graduationYear: FfiConverterUInt32.read(from),
1277
+ graduationTerms: FfiConverterUInt32.read(from),
1278
+ graduationDate: FfiConverterString.read(from),
1279
+ academicDegreeNumber: FfiConverterUInt32.read(from),
1280
+ academicDegreeName: FfiConverterString.read(from),
1281
+ earlyGraduation: FfiConverterBool.read(from),
1282
+ graduationRank: FfiConverterUInt32.read(from),
1283
+ graduationPersonnelNumber: FfiConverterUInt32.read(from)
1284
+ };
1285
+ }
1286
+ write(value, into) {
1287
+ FfiConverterUInt32.write(value.graduationCardinal, into);
1288
+ FfiConverterUInt32.write(value.graduationCertificationNumber, into);
1289
+ FfiConverterUInt32.write(value.graduationYear, into);
1290
+ FfiConverterUInt32.write(value.graduationTerms, into);
1291
+ FfiConverterString.write(value.graduationDate, into);
1292
+ FfiConverterUInt32.write(value.academicDegreeNumber, into);
1293
+ FfiConverterString.write(value.academicDegreeName, into);
1294
+ FfiConverterBool.write(value.earlyGraduation, into);
1295
+ FfiConverterUInt32.write(value.graduationRank, into);
1296
+ FfiConverterUInt32.write(value.graduationPersonnelNumber, into);
1297
+ }
1298
+ allocationSize(value) {
1299
+ return FfiConverterUInt32.allocationSize(value.graduationCardinal) + FfiConverterUInt32.allocationSize(value.graduationCertificationNumber) + FfiConverterUInt32.allocationSize(value.graduationYear) + FfiConverterUInt32.allocationSize(value.graduationTerms) + FfiConverterString.allocationSize(value.graduationDate) + FfiConverterUInt32.allocationSize(value.academicDegreeNumber) + FfiConverterString.allocationSize(value.academicDegreeName) + FfiConverterBool.allocationSize(value.earlyGraduation) + FfiConverterUInt32.allocationSize(value.graduationRank) + FfiConverterUInt32.allocationSize(value.graduationPersonnelNumber);
1300
+ }
1301
+ }
1302
+ return new FFIConverter();
1303
+ })();
1304
+
1305
+ /**
1306
+ * 기본 학생 정보
1307
+ */
1308
+
1309
+ /**
1310
+ * Generated factory for {@link StudentInformation} record objects.
1311
+ */
1312
+ export const StudentInformation = (() => {
1313
+ const defaults = () => ({});
1314
+ const create = (() => {
1315
+ return uniffiCreateRecord(defaults);
1316
+ })();
1317
+ return Object.freeze({
1318
+ /**
1319
+ * Create a frozen instance of {@link StudentInformation}, with defaults specified
1320
+ * in Rust, in the {@link rusaint} crate.
1321
+ */
1322
+ create,
1323
+ /**
1324
+ * Create a frozen instance of {@link StudentInformation}, with defaults specified
1325
+ * in Rust, in the {@link rusaint} crate.
1326
+ */
1327
+ new: create,
1328
+ /**
1329
+ * Defaults specified in the {@link rusaint} crate.
1330
+ */
1331
+ defaults: () => Object.freeze(defaults())
1332
+ });
1333
+ })();
1334
+ const FfiConverterTypeStudentInformation = (() => {
1335
+ class FFIConverter extends AbstractFfiConverterByteArray {
1336
+ read(from) {
1337
+ return {
1338
+ applyYear: FfiConverterUInt32.read(from),
1339
+ studentNumber: FfiConverterUInt32.read(from),
1340
+ name: FfiConverterString.read(from),
1341
+ rrn: FfiConverterUInt32.read(from),
1342
+ collage: FfiConverterString.read(from),
1343
+ department: FfiConverterString.read(from),
1344
+ major: FfiConverterOptionalString.read(from),
1345
+ division: FfiConverterOptionalString.read(from),
1346
+ grade: FfiConverterUInt32.read(from),
1347
+ term: FfiConverterUInt32.read(from),
1348
+ image: FfiConverterArrayBuffer.read(from),
1349
+ alias: FfiConverterOptionalString.read(from),
1350
+ kanjiName: FfiConverterOptionalString.read(from),
1351
+ email: FfiConverterOptionalString.read(from),
1352
+ telNumber: FfiConverterOptionalString.read(from),
1353
+ mobileNumber: FfiConverterOptionalString.read(from),
1354
+ postCode: FfiConverterOptionalString.read(from),
1355
+ address: FfiConverterOptionalString.read(from),
1356
+ specificAddress: FfiConverterOptionalString.read(from),
1357
+ isTransferStudent: FfiConverterBool.read(from),
1358
+ applyDate: FfiConverterString.read(from),
1359
+ appliedCollage: FfiConverterString.read(from),
1360
+ appliedDepartment: FfiConverterString.read(from),
1361
+ pluralMajor: FfiConverterOptionalString.read(from),
1362
+ subMajor: FfiConverterOptionalString.read(from),
1363
+ connectedMajor: FfiConverterOptionalString.read(from),
1364
+ abeek: FfiConverterOptionalString.read(from)
1365
+ };
1366
+ }
1367
+ write(value, into) {
1368
+ FfiConverterUInt32.write(value.applyYear, into);
1369
+ FfiConverterUInt32.write(value.studentNumber, into);
1370
+ FfiConverterString.write(value.name, into);
1371
+ FfiConverterUInt32.write(value.rrn, into);
1372
+ FfiConverterString.write(value.collage, into);
1373
+ FfiConverterString.write(value.department, into);
1374
+ FfiConverterOptionalString.write(value.major, into);
1375
+ FfiConverterOptionalString.write(value.division, into);
1376
+ FfiConverterUInt32.write(value.grade, into);
1377
+ FfiConverterUInt32.write(value.term, into);
1378
+ FfiConverterArrayBuffer.write(value.image, into);
1379
+ FfiConverterOptionalString.write(value.alias, into);
1380
+ FfiConverterOptionalString.write(value.kanjiName, into);
1381
+ FfiConverterOptionalString.write(value.email, into);
1382
+ FfiConverterOptionalString.write(value.telNumber, into);
1383
+ FfiConverterOptionalString.write(value.mobileNumber, into);
1384
+ FfiConverterOptionalString.write(value.postCode, into);
1385
+ FfiConverterOptionalString.write(value.address, into);
1386
+ FfiConverterOptionalString.write(value.specificAddress, into);
1387
+ FfiConverterBool.write(value.isTransferStudent, into);
1388
+ FfiConverterString.write(value.applyDate, into);
1389
+ FfiConverterString.write(value.appliedCollage, into);
1390
+ FfiConverterString.write(value.appliedDepartment, into);
1391
+ FfiConverterOptionalString.write(value.pluralMajor, into);
1392
+ FfiConverterOptionalString.write(value.subMajor, into);
1393
+ FfiConverterOptionalString.write(value.connectedMajor, into);
1394
+ FfiConverterOptionalString.write(value.abeek, into);
1395
+ }
1396
+ allocationSize(value) {
1397
+ return FfiConverterUInt32.allocationSize(value.applyYear) + FfiConverterUInt32.allocationSize(value.studentNumber) + FfiConverterString.allocationSize(value.name) + FfiConverterUInt32.allocationSize(value.rrn) + FfiConverterString.allocationSize(value.collage) + FfiConverterString.allocationSize(value.department) + FfiConverterOptionalString.allocationSize(value.major) + FfiConverterOptionalString.allocationSize(value.division) + FfiConverterUInt32.allocationSize(value.grade) + FfiConverterUInt32.allocationSize(value.term) + FfiConverterArrayBuffer.allocationSize(value.image) + FfiConverterOptionalString.allocationSize(value.alias) + FfiConverterOptionalString.allocationSize(value.kanjiName) + FfiConverterOptionalString.allocationSize(value.email) + FfiConverterOptionalString.allocationSize(value.telNumber) + FfiConverterOptionalString.allocationSize(value.mobileNumber) + FfiConverterOptionalString.allocationSize(value.postCode) + FfiConverterOptionalString.allocationSize(value.address) + FfiConverterOptionalString.allocationSize(value.specificAddress) + FfiConverterBool.allocationSize(value.isTransferStudent) + FfiConverterString.allocationSize(value.applyDate) + FfiConverterString.allocationSize(value.appliedCollage) + FfiConverterString.allocationSize(value.appliedDepartment) + FfiConverterOptionalString.allocationSize(value.pluralMajor) + FfiConverterOptionalString.allocationSize(value.subMajor) + FfiConverterOptionalString.allocationSize(value.connectedMajor) + FfiConverterOptionalString.allocationSize(value.abeek);
1398
+ }
1399
+ }
1400
+ return new FFIConverter();
1401
+ })();
1402
+
1403
+ /**
1404
+ * 평생교육사 정보
1405
+ */
1406
+
1407
+ /**
1408
+ * Generated factory for {@link StudentLifelongInformation} record objects.
1409
+ */
1410
+ export const StudentLifelongInformation = (() => {
1411
+ const defaults = () => ({});
1412
+ const create = (() => {
1413
+ return uniffiCreateRecord(defaults);
1414
+ })();
1415
+ return Object.freeze({
1416
+ /**
1417
+ * Create a frozen instance of {@link StudentLifelongInformation}, with defaults specified
1418
+ * in Rust, in the {@link rusaint} crate.
1419
+ */
1420
+ create,
1421
+ /**
1422
+ * Create a frozen instance of {@link StudentLifelongInformation}, with defaults specified
1423
+ * in Rust, in the {@link rusaint} crate.
1424
+ */
1425
+ new: create,
1426
+ /**
1427
+ * Defaults specified in the {@link rusaint} crate.
1428
+ */
1429
+ defaults: () => Object.freeze(defaults())
1430
+ });
1431
+ })();
1432
+ const FfiConverterTypeStudentLifelongInformation = (() => {
1433
+ class FFIConverter extends AbstractFfiConverterByteArray {
1434
+ read(from) {
1435
+ return {
1436
+ applyDate: FfiConverterOptionalString.read(from),
1437
+ lifelongType: FfiConverterOptionalString.read(from),
1438
+ qualificationNumber: FfiConverterOptionalString.read(from),
1439
+ qualificationDate: FfiConverterOptionalString.read(from)
1440
+ };
1441
+ }
1442
+ write(value, into) {
1443
+ FfiConverterOptionalString.write(value.applyDate, into);
1444
+ FfiConverterOptionalString.write(value.lifelongType, into);
1445
+ FfiConverterOptionalString.write(value.qualificationNumber, into);
1446
+ FfiConverterOptionalString.write(value.qualificationDate, into);
1447
+ }
1448
+ allocationSize(value) {
1449
+ return FfiConverterOptionalString.allocationSize(value.applyDate) + FfiConverterOptionalString.allocationSize(value.lifelongType) + FfiConverterOptionalString.allocationSize(value.qualificationNumber) + FfiConverterOptionalString.allocationSize(value.qualificationDate);
1450
+ }
1451
+ }
1452
+ return new FFIConverter();
1453
+ })();
1454
+
1455
+ /**
1456
+ * 학생의 자격(교직이수, 평생교육사, 7+1 프로그램) 정보
1457
+ */
1458
+
1459
+ /**
1460
+ * Generated factory for {@link StudentQualification} record objects.
1461
+ */
1462
+ export const StudentQualification = (() => {
1463
+ const defaults = () => ({});
1464
+ const create = (() => {
1465
+ return uniffiCreateRecord(defaults);
1466
+ })();
1467
+ return Object.freeze({
1468
+ /**
1469
+ * Create a frozen instance of {@link StudentQualification}, with defaults specified
1470
+ * in Rust, in the {@link rusaint} crate.
1471
+ */
1472
+ create,
1473
+ /**
1474
+ * Create a frozen instance of {@link StudentQualification}, with defaults specified
1475
+ * in Rust, in the {@link rusaint} crate.
1476
+ */
1477
+ new: create,
1478
+ /**
1479
+ * Defaults specified in the {@link rusaint} crate.
1480
+ */
1481
+ defaults: () => Object.freeze(defaults())
1482
+ });
1483
+ })();
1484
+ const FfiConverterTypeStudentQualification = (() => {
1485
+ class FFIConverter extends AbstractFfiConverterByteArray {
1486
+ read(from) {
1487
+ return {
1488
+ teachingMajor: FfiConverterOptionalTypeStudentTeachingMajorInformation.read(from),
1489
+ teachingPluralMajor: FfiConverterOptionalTypeStudentTeachingPluralMajorInformation.read(from),
1490
+ lifelong: FfiConverterOptionalTypeStudentLifelongInformation.read(from),
1491
+ forignStudy: FfiConverterOptionalTypeStudentForignStudyInformation.read(from)
1492
+ };
1493
+ }
1494
+ write(value, into) {
1495
+ FfiConverterOptionalTypeStudentTeachingMajorInformation.write(value.teachingMajor, into);
1496
+ FfiConverterOptionalTypeStudentTeachingPluralMajorInformation.write(value.teachingPluralMajor, into);
1497
+ FfiConverterOptionalTypeStudentLifelongInformation.write(value.lifelong, into);
1498
+ FfiConverterOptionalTypeStudentForignStudyInformation.write(value.forignStudy, into);
1499
+ }
1500
+ allocationSize(value) {
1501
+ return FfiConverterOptionalTypeStudentTeachingMajorInformation.allocationSize(value.teachingMajor) + FfiConverterOptionalTypeStudentTeachingPluralMajorInformation.allocationSize(value.teachingPluralMajor) + FfiConverterOptionalTypeStudentLifelongInformation.allocationSize(value.lifelong) + FfiConverterOptionalTypeStudentForignStudyInformation.allocationSize(value.forignStudy);
1502
+ }
1503
+ }
1504
+ return new FFIConverter();
1505
+ })();
1506
+
1507
+ /**
1508
+ * 학생의 종교 정보
1509
+ */
1510
+
1511
+ /**
1512
+ * Generated factory for {@link StudentReligion} record objects.
1513
+ */
1514
+ export const StudentReligion = (() => {
1515
+ const defaults = () => ({});
1516
+ const create = (() => {
1517
+ return uniffiCreateRecord(defaults);
1518
+ })();
1519
+ return Object.freeze({
1520
+ /**
1521
+ * Create a frozen instance of {@link StudentReligion}, with defaults specified
1522
+ * in Rust, in the {@link rusaint} crate.
1523
+ */
1524
+ create,
1525
+ /**
1526
+ * Create a frozen instance of {@link StudentReligion}, with defaults specified
1527
+ * in Rust, in the {@link rusaint} crate.
1528
+ */
1529
+ new: create,
1530
+ /**
1531
+ * Defaults specified in the {@link rusaint} crate.
1532
+ */
1533
+ defaults: () => Object.freeze(defaults())
1534
+ });
1535
+ })();
1536
+ const FfiConverterTypeStudentReligion = (() => {
1537
+ class FFIConverter extends AbstractFfiConverterByteArray {
1538
+ read(from) {
1539
+ return {
1540
+ religionType: FfiConverterOptionalString.read(from),
1541
+ startDate: FfiConverterOptionalString.read(from),
1542
+ church: FfiConverterOptionalString.read(from),
1543
+ churchMan: FfiConverterOptionalString.read(from),
1544
+ baptismLevel: FfiConverterOptionalString.read(from),
1545
+ baptismGrp: FfiConverterOptionalString.read(from),
1546
+ serviceDepartment: FfiConverterOptionalString.read(from),
1547
+ serviceDepartmentTitle: FfiConverterOptionalString.read(from),
1548
+ churchAddress: FfiConverterOptionalString.read(from),
1549
+ singeub: FfiConverterOptionalString.read(from),
1550
+ baptismDate: FfiConverterOptionalString.read(from),
1551
+ baptismChurch: FfiConverterOptionalString.read(from),
1552
+ baptismMan: FfiConverterOptionalString.read(from),
1553
+ churchGrp: FfiConverterOptionalString.read(from)
1554
+ };
1555
+ }
1556
+ write(value, into) {
1557
+ FfiConverterOptionalString.write(value.religionType, into);
1558
+ FfiConverterOptionalString.write(value.startDate, into);
1559
+ FfiConverterOptionalString.write(value.church, into);
1560
+ FfiConverterOptionalString.write(value.churchMan, into);
1561
+ FfiConverterOptionalString.write(value.baptismLevel, into);
1562
+ FfiConverterOptionalString.write(value.baptismGrp, into);
1563
+ FfiConverterOptionalString.write(value.serviceDepartment, into);
1564
+ FfiConverterOptionalString.write(value.serviceDepartmentTitle, into);
1565
+ FfiConverterOptionalString.write(value.churchAddress, into);
1566
+ FfiConverterOptionalString.write(value.singeub, into);
1567
+ FfiConverterOptionalString.write(value.baptismDate, into);
1568
+ FfiConverterOptionalString.write(value.baptismChurch, into);
1569
+ FfiConverterOptionalString.write(value.baptismMan, into);
1570
+ FfiConverterOptionalString.write(value.churchGrp, into);
1571
+ }
1572
+ allocationSize(value) {
1573
+ return FfiConverterOptionalString.allocationSize(value.religionType) + FfiConverterOptionalString.allocationSize(value.startDate) + FfiConverterOptionalString.allocationSize(value.church) + FfiConverterOptionalString.allocationSize(value.churchMan) + FfiConverterOptionalString.allocationSize(value.baptismLevel) + FfiConverterOptionalString.allocationSize(value.baptismGrp) + FfiConverterOptionalString.allocationSize(value.serviceDepartment) + FfiConverterOptionalString.allocationSize(value.serviceDepartmentTitle) + FfiConverterOptionalString.allocationSize(value.churchAddress) + FfiConverterOptionalString.allocationSize(value.singeub) + FfiConverterOptionalString.allocationSize(value.baptismDate) + FfiConverterOptionalString.allocationSize(value.baptismChurch) + FfiConverterOptionalString.allocationSize(value.baptismMan) + FfiConverterOptionalString.allocationSize(value.churchGrp);
1574
+ }
1575
+ }
1576
+ return new FFIConverter();
1577
+ })();
1578
+
1579
+ /**
1580
+ * 연구비 입금 계좌 정보
1581
+ */
1582
+
1583
+ /**
1584
+ * Generated factory for {@link StudentResearchBankAccount} record objects.
1585
+ */
1586
+ export const StudentResearchBankAccount = (() => {
1587
+ const defaults = () => ({});
1588
+ const create = (() => {
1589
+ return uniffiCreateRecord(defaults);
1590
+ })();
1591
+ return Object.freeze({
1592
+ /**
1593
+ * Create a frozen instance of {@link StudentResearchBankAccount}, with defaults specified
1594
+ * in Rust, in the {@link rusaint} crate.
1595
+ */
1596
+ create,
1597
+ /**
1598
+ * Create a frozen instance of {@link StudentResearchBankAccount}, with defaults specified
1599
+ * in Rust, in the {@link rusaint} crate.
1600
+ */
1601
+ new: create,
1602
+ /**
1603
+ * Defaults specified in the {@link rusaint} crate.
1604
+ */
1605
+ defaults: () => Object.freeze(defaults())
1606
+ });
1607
+ })();
1608
+ const FfiConverterTypeStudentResearchBankAccount = (() => {
1609
+ class FFIConverter extends AbstractFfiConverterByteArray {
1610
+ read(from) {
1611
+ return {
1612
+ bank: FfiConverterOptionalString.read(from),
1613
+ accountNumber: FfiConverterOptionalString.read(from),
1614
+ holder: FfiConverterOptionalString.read(from)
1615
+ };
1616
+ }
1617
+ write(value, into) {
1618
+ FfiConverterOptionalString.write(value.bank, into);
1619
+ FfiConverterOptionalString.write(value.accountNumber, into);
1620
+ FfiConverterOptionalString.write(value.holder, into);
1621
+ }
1622
+ allocationSize(value) {
1623
+ return FfiConverterOptionalString.allocationSize(value.bank) + FfiConverterOptionalString.allocationSize(value.accountNumber) + FfiConverterOptionalString.allocationSize(value.holder);
1624
+ }
1625
+ }
1626
+ return new FFIConverter();
1627
+ })();
1628
+
1629
+ /**
1630
+ * 교직이수(주전공) 정보
1631
+ */
1632
+
1633
+ /**
1634
+ * Generated factory for {@link StudentTeachingMajorInformation} record objects.
1635
+ */
1636
+ export const StudentTeachingMajorInformation = (() => {
1637
+ const defaults = () => ({});
1638
+ const create = (() => {
1639
+ return uniffiCreateRecord(defaults);
1640
+ })();
1641
+ return Object.freeze({
1642
+ /**
1643
+ * Create a frozen instance of {@link StudentTeachingMajorInformation}, with defaults specified
1644
+ * in Rust, in the {@link rusaint} crate.
1645
+ */
1646
+ create,
1647
+ /**
1648
+ * Create a frozen instance of {@link StudentTeachingMajorInformation}, with defaults specified
1649
+ * in Rust, in the {@link rusaint} crate.
1650
+ */
1651
+ new: create,
1652
+ /**
1653
+ * Defaults specified in the {@link rusaint} crate.
1654
+ */
1655
+ defaults: () => Object.freeze(defaults())
1656
+ });
1657
+ })();
1658
+ const FfiConverterTypeStudentTeachingMajorInformation = (() => {
1659
+ class FFIConverter extends AbstractFfiConverterByteArray {
1660
+ read(from) {
1661
+ return {
1662
+ majorName: FfiConverterOptionalString.read(from),
1663
+ qualificationNumber: FfiConverterOptionalString.read(from),
1664
+ initiationDate: FfiConverterOptionalString.read(from),
1665
+ qualificationDate: FfiConverterOptionalString.read(from)
1666
+ };
1667
+ }
1668
+ write(value, into) {
1669
+ FfiConverterOptionalString.write(value.majorName, into);
1670
+ FfiConverterOptionalString.write(value.qualificationNumber, into);
1671
+ FfiConverterOptionalString.write(value.initiationDate, into);
1672
+ FfiConverterOptionalString.write(value.qualificationDate, into);
1673
+ }
1674
+ allocationSize(value) {
1675
+ return FfiConverterOptionalString.allocationSize(value.majorName) + FfiConverterOptionalString.allocationSize(value.qualificationNumber) + FfiConverterOptionalString.allocationSize(value.initiationDate) + FfiConverterOptionalString.allocationSize(value.qualificationDate);
1676
+ }
1677
+ }
1678
+ return new FFIConverter();
1679
+ })();
1680
+
1681
+ /**
1682
+ * 교직이수(복수전공) 정보
1683
+ */
1684
+
1685
+ /**
1686
+ * Generated factory for {@link StudentTeachingPluralMajorInformation} record objects.
1687
+ */
1688
+ export const StudentTeachingPluralMajorInformation = (() => {
1689
+ const defaults = () => ({});
1690
+ const create = (() => {
1691
+ return uniffiCreateRecord(defaults);
1692
+ })();
1693
+ return Object.freeze({
1694
+ /**
1695
+ * Create a frozen instance of {@link StudentTeachingPluralMajorInformation}, with defaults specified
1696
+ * in Rust, in the {@link rusaint} crate.
1697
+ */
1698
+ create,
1699
+ /**
1700
+ * Create a frozen instance of {@link StudentTeachingPluralMajorInformation}, with defaults specified
1701
+ * in Rust, in the {@link rusaint} crate.
1702
+ */
1703
+ new: create,
1704
+ /**
1705
+ * Defaults specified in the {@link rusaint} crate.
1706
+ */
1707
+ defaults: () => Object.freeze(defaults())
1708
+ });
1709
+ })();
1710
+ const FfiConverterTypeStudentTeachingPluralMajorInformation = (() => {
1711
+ class FFIConverter extends AbstractFfiConverterByteArray {
1712
+ read(from) {
1713
+ return {
1714
+ majorName: FfiConverterOptionalString.read(from),
1715
+ qualificationNumber: FfiConverterOptionalString.read(from),
1716
+ qualificationDate: FfiConverterOptionalString.read(from)
1717
+ };
1718
+ }
1719
+ write(value, into) {
1720
+ FfiConverterOptionalString.write(value.majorName, into);
1721
+ FfiConverterOptionalString.write(value.qualificationNumber, into);
1722
+ FfiConverterOptionalString.write(value.qualificationDate, into);
1723
+ }
1724
+ allocationSize(value) {
1725
+ return FfiConverterOptionalString.allocationSize(value.majorName) + FfiConverterOptionalString.allocationSize(value.qualificationNumber) + FfiConverterOptionalString.allocationSize(value.qualificationDate);
1726
+ }
1727
+ }
1728
+ return new FFIConverter();
1729
+ })();
1730
+
1731
+ /**
1732
+ * 편입정보 내 기록
1733
+ */
1734
+
1735
+ /**
1736
+ * Generated factory for {@link StudentTransferRecord} record objects.
1737
+ */
1738
+ export const StudentTransferRecord = (() => {
1739
+ const defaults = () => ({});
1740
+ const create = (() => {
1741
+ return uniffiCreateRecord(defaults);
1742
+ })();
1743
+ return Object.freeze({
1744
+ /**
1745
+ * Create a frozen instance of {@link StudentTransferRecord}, with defaults specified
1746
+ * in Rust, in the {@link rusaint} crate.
1747
+ */
1748
+ create,
1749
+ /**
1750
+ * Create a frozen instance of {@link StudentTransferRecord}, with defaults specified
1751
+ * in Rust, in the {@link rusaint} crate.
1752
+ */
1753
+ new: create,
1754
+ /**
1755
+ * Defaults specified in the {@link rusaint} crate.
1756
+ */
1757
+ defaults: () => Object.freeze(defaults())
1758
+ });
1759
+ })();
1760
+ const FfiConverterTypeStudentTransferRecord = (() => {
1761
+ class FFIConverter extends AbstractFfiConverterByteArray {
1762
+ read(from) {
1763
+ return {
1764
+ isTransfer: FfiConverterString.read(from),
1765
+ admissionDate: FfiConverterString.read(from),
1766
+ admissionGrade: FfiConverterString.read(from),
1767
+ admissionTerm: FfiConverterString.read(from),
1768
+ acceptedCredit: FfiConverterString.read(from),
1769
+ acceptedTerms: FfiConverterString.read(from)
1770
+ };
1771
+ }
1772
+ write(value, into) {
1773
+ FfiConverterString.write(value.isTransfer, into);
1774
+ FfiConverterString.write(value.admissionDate, into);
1775
+ FfiConverterString.write(value.admissionGrade, into);
1776
+ FfiConverterString.write(value.admissionTerm, into);
1777
+ FfiConverterString.write(value.acceptedCredit, into);
1778
+ FfiConverterString.write(value.acceptedTerms, into);
1779
+ }
1780
+ allocationSize(value) {
1781
+ return FfiConverterString.allocationSize(value.isTransfer) + FfiConverterString.allocationSize(value.admissionDate) + FfiConverterString.allocationSize(value.admissionGrade) + FfiConverterString.allocationSize(value.admissionTerm) + FfiConverterString.allocationSize(value.acceptedCredit) + FfiConverterString.allocationSize(value.acceptedTerms);
1782
+ }
1783
+ }
1784
+ return new FFIConverter();
1785
+ })();
1786
+
1787
+ /**
1788
+ * 학생 편입 정보
1789
+ */
1790
+
1791
+ /**
1792
+ * Generated factory for {@link StudentTransferRecords} record objects.
1793
+ */
1794
+ export const StudentTransferRecords = (() => {
1795
+ const defaults = () => ({});
1796
+ const create = (() => {
1797
+ return uniffiCreateRecord(defaults);
1798
+ })();
1799
+ return Object.freeze({
1800
+ /**
1801
+ * Create a frozen instance of {@link StudentTransferRecords}, with defaults specified
1802
+ * in Rust, in the {@link rusaint} crate.
1803
+ */
1804
+ create,
1805
+ /**
1806
+ * Create a frozen instance of {@link StudentTransferRecords}, with defaults specified
1807
+ * in Rust, in the {@link rusaint} crate.
1808
+ */
1809
+ new: create,
1810
+ /**
1811
+ * Defaults specified in the {@link rusaint} crate.
1812
+ */
1813
+ defaults: () => Object.freeze(defaults())
1814
+ });
1815
+ })();
1816
+ const FfiConverterTypeStudentTransferRecords = (() => {
1817
+ class FFIConverter extends AbstractFfiConverterByteArray {
1818
+ read(from) {
1819
+ return {
1820
+ records: FfiConverterArrayTypeStudentTransferRecord.read(from)
1821
+ };
1822
+ }
1823
+ write(value, into) {
1824
+ FfiConverterArrayTypeStudentTransferRecord.write(value.records, into);
1825
+ }
1826
+ allocationSize(value) {
1827
+ return FfiConverterArrayTypeStudentTransferRecord.allocationSize(value.records);
1828
+ }
1829
+ }
1830
+ return new FFIConverter();
1831
+ })();
1832
+
1833
+ /**
1834
+ * 학생의 직업 정보
1835
+ */
1836
+
1837
+ /**
1838
+ * Generated factory for {@link StudentWorkInformation} record objects.
1839
+ */
1840
+ export const StudentWorkInformation = (() => {
1841
+ const defaults = () => ({});
1842
+ const create = (() => {
1843
+ return uniffiCreateRecord(defaults);
1844
+ })();
1845
+ return Object.freeze({
1846
+ /**
1847
+ * Create a frozen instance of {@link StudentWorkInformation}, with defaults specified
1848
+ * in Rust, in the {@link rusaint} crate.
1849
+ */
1850
+ create,
1851
+ /**
1852
+ * Create a frozen instance of {@link StudentWorkInformation}, with defaults specified
1853
+ * in Rust, in the {@link rusaint} crate.
1854
+ */
1855
+ new: create,
1856
+ /**
1857
+ * Defaults specified in the {@link rusaint} crate.
1858
+ */
1859
+ defaults: () => Object.freeze(defaults())
1860
+ });
1861
+ })();
1862
+ const FfiConverterTypeStudentWorkInformation = (() => {
1863
+ class FFIConverter extends AbstractFfiConverterByteArray {
1864
+ read(from) {
1865
+ return {
1866
+ job: FfiConverterOptionalString.read(from),
1867
+ publicOfficial: FfiConverterOptionalString.read(from),
1868
+ companyName: FfiConverterOptionalString.read(from),
1869
+ departmentName: FfiConverterOptionalString.read(from),
1870
+ title: FfiConverterOptionalString.read(from),
1871
+ zipCode: FfiConverterOptionalString.read(from),
1872
+ address: FfiConverterOptionalString.read(from),
1873
+ specificAddress: FfiConverterOptionalString.read(from),
1874
+ telNumber: FfiConverterOptionalString.read(from),
1875
+ faxNumber: FfiConverterOptionalString.read(from)
1876
+ };
1877
+ }
1878
+ write(value, into) {
1879
+ FfiConverterOptionalString.write(value.job, into);
1880
+ FfiConverterOptionalString.write(value.publicOfficial, into);
1881
+ FfiConverterOptionalString.write(value.companyName, into);
1882
+ FfiConverterOptionalString.write(value.departmentName, into);
1883
+ FfiConverterOptionalString.write(value.title, into);
1884
+ FfiConverterOptionalString.write(value.zipCode, into);
1885
+ FfiConverterOptionalString.write(value.address, into);
1886
+ FfiConverterOptionalString.write(value.specificAddress, into);
1887
+ FfiConverterOptionalString.write(value.telNumber, into);
1888
+ FfiConverterOptionalString.write(value.faxNumber, into);
1889
+ }
1890
+ allocationSize(value) {
1891
+ return FfiConverterOptionalString.allocationSize(value.job) + FfiConverterOptionalString.allocationSize(value.publicOfficial) + FfiConverterOptionalString.allocationSize(value.companyName) + FfiConverterOptionalString.allocationSize(value.departmentName) + FfiConverterOptionalString.allocationSize(value.title) + FfiConverterOptionalString.allocationSize(value.zipCode) + FfiConverterOptionalString.allocationSize(value.address) + FfiConverterOptionalString.allocationSize(value.specificAddress) + FfiConverterOptionalString.allocationSize(value.telNumber) + FfiConverterOptionalString.allocationSize(value.faxNumber);
1892
+ }
1893
+ }
1894
+ return new FFIConverter();
1895
+ })();
1896
+
1897
+ /**
1898
+ * uniffi 지원을 위한 u32 Pair입니다.
1899
+ */
1900
+
1901
+ /**
1902
+ * Generated factory for {@link UnsignedIntPair} record objects.
1903
+ */
1904
+ export const UnsignedIntPair = (() => {
1905
+ const defaults = () => ({});
1906
+ const create = (() => {
1907
+ return uniffiCreateRecord(defaults);
1908
+ })();
1909
+ return Object.freeze({
1910
+ /**
1911
+ * Create a frozen instance of {@link UnsignedIntPair}, with defaults specified
1912
+ * in Rust, in the {@link rusaint} crate.
1913
+ */
1914
+ create,
1915
+ /**
1916
+ * Create a frozen instance of {@link UnsignedIntPair}, with defaults specified
1917
+ * in Rust, in the {@link rusaint} crate.
1918
+ */
1919
+ new: create,
1920
+ /**
1921
+ * Defaults specified in the {@link rusaint} crate.
1922
+ */
1923
+ defaults: () => Object.freeze(defaults())
1924
+ });
1925
+ })();
1926
+ const FfiConverterTypeUnsignedIntPair = (() => {
1927
+ class FFIConverter extends AbstractFfiConverterByteArray {
1928
+ read(from) {
1929
+ return {
1930
+ first: FfiConverterUInt32.read(from),
1931
+ second: FfiConverterUInt32.read(from)
1932
+ };
1933
+ }
1934
+ write(value, into) {
1935
+ FfiConverterUInt32.write(value.first, into);
1936
+ FfiConverterUInt32.write(value.second, into);
1937
+ }
1938
+ allocationSize(value) {
1939
+ return FfiConverterUInt32.allocationSize(value.first) + FfiConverterUInt32.allocationSize(value.second);
1940
+ }
1941
+ }
1942
+ return new FFIConverter();
1943
+ })();
1944
+ const stringConverter = {
1945
+ stringToBytes: s => uniffiCaller.rustCall(status => nativeModule().ubrn_uniffi_internal_fn_func_ffi__string_to_arraybuffer(s, status)),
1946
+ bytesToString: ab => uniffiCaller.rustCall(status => nativeModule().ubrn_uniffi_internal_fn_func_ffi__arraybuffer_to_string(ab, status)),
1947
+ stringByteLength: s => uniffiCaller.rustCall(status => nativeModule().ubrn_uniffi_internal_fn_func_ffi__string_to_byte_length(s, status))
1948
+ };
1949
+ const FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
1950
+
1951
+ /**
1952
+ * Typealias from the type name used in the UDL file to the builtin type. This
1953
+ * is needed because the UDL type name is used in function/method signatures.
1954
+ */
1955
+
1956
+ // FfiConverter for U32Pair, a type alias for UnsignedIntPair.
1957
+ const FfiConverterTypeU32Pair = FfiConverterTypeUnsignedIntPair;
1958
+
1959
+ // Enum: ClassScore
1960
+ export let ClassScore_Tags = /*#__PURE__*/function (ClassScore_Tags) {
1961
+ ClassScore_Tags["Pass"] = "Pass";
1962
+ ClassScore_Tags["Failed"] = "Failed";
1963
+ ClassScore_Tags["Score"] = "Score";
1964
+ ClassScore_Tags["Empty"] = "Empty";
1965
+ return ClassScore_Tags;
1966
+ }({});
1967
+ /**
1968
+ * 과목 점수
1969
+ */
1970
+ export const ClassScore = (() => {
1971
+ /**
1972
+ * P/F 과목의 Pass
1973
+ */
1974
+ class Pass_ extends UniffiEnum {
1975
+ /**
1976
+ * @private
1977
+ * This field is private and should not be used, use `tag` instead.
1978
+ */
1979
+ [uniffiTypeNameSymbol] = 'ClassScore';
1980
+ tag = ClassScore_Tags.Pass;
1981
+ constructor() {
1982
+ super('ClassScore', 'Pass');
1983
+ }
1984
+ static new() {
1985
+ return new Pass_();
1986
+ }
1987
+ static instanceOf(obj) {
1988
+ return obj.tag === ClassScore_Tags.Pass;
1989
+ }
1990
+ }
1991
+ /**
1992
+ * P/F 과목의 Failed
1993
+ */
1994
+ class Failed_ extends UniffiEnum {
1995
+ /**
1996
+ * @private
1997
+ * This field is private and should not be used, use `tag` instead.
1998
+ */
1999
+ [uniffiTypeNameSymbol] = 'ClassScore';
2000
+ tag = ClassScore_Tags.Failed;
2001
+ constructor() {
2002
+ super('ClassScore', 'Failed');
2003
+ }
2004
+ static new() {
2005
+ return new Failed_();
2006
+ }
2007
+ static instanceOf(obj) {
2008
+ return obj.tag === ClassScore_Tags.Failed;
2009
+ }
2010
+ }
2011
+ /**
2012
+ * 일반 과목의 점수
2013
+ */
2014
+ class Score_ extends UniffiEnum {
2015
+ /**
2016
+ * @private
2017
+ * This field is private and should not be used, use `tag` instead.
2018
+ */
2019
+ [uniffiTypeNameSymbol] = 'ClassScore';
2020
+ tag = ClassScore_Tags.Score;
2021
+ constructor(v0) {
2022
+ super('ClassScore', 'Score');
2023
+ this.inner = Object.freeze([v0]);
2024
+ }
2025
+ static new(v0) {
2026
+ return new Score_(v0);
2027
+ }
2028
+ static instanceOf(obj) {
2029
+ return obj.tag === ClassScore_Tags.Score;
2030
+ }
2031
+ }
2032
+ /**
2033
+ * 성적 없음
2034
+ */
2035
+ class Empty_ extends UniffiEnum {
2036
+ /**
2037
+ * @private
2038
+ * This field is private and should not be used, use `tag` instead.
2039
+ */
2040
+ [uniffiTypeNameSymbol] = 'ClassScore';
2041
+ tag = ClassScore_Tags.Empty;
2042
+ constructor() {
2043
+ super('ClassScore', 'Empty');
2044
+ }
2045
+ static new() {
2046
+ return new Empty_();
2047
+ }
2048
+ static instanceOf(obj) {
2049
+ return obj.tag === ClassScore_Tags.Empty;
2050
+ }
2051
+ }
2052
+ function instanceOf(obj) {
2053
+ return obj[uniffiTypeNameSymbol] === 'ClassScore';
2054
+ }
2055
+ return Object.freeze({
2056
+ instanceOf,
2057
+ Pass: Pass_,
2058
+ Failed: Failed_,
2059
+ Score: Score_,
2060
+ Empty: Empty_
2061
+ });
2062
+ })();
2063
+
2064
+ /**
2065
+ * 과목 점수
2066
+ */
2067
+
2068
+ // FfiConverter for enum ClassScore
2069
+ const FfiConverterTypeClassScore = (() => {
2070
+ const ordinalConverter = FfiConverterInt32;
2071
+ class FFIConverter extends AbstractFfiConverterByteArray {
2072
+ read(from) {
2073
+ switch (ordinalConverter.read(from)) {
2074
+ case 1:
2075
+ return new ClassScore.Pass();
2076
+ case 2:
2077
+ return new ClassScore.Failed();
2078
+ case 3:
2079
+ return new ClassScore.Score(FfiConverterUInt32.read(from));
2080
+ case 4:
2081
+ return new ClassScore.Empty();
2082
+ default:
2083
+ throw new UniffiInternalError.UnexpectedEnumCase();
2084
+ }
2085
+ }
2086
+ write(value, into) {
2087
+ switch (value.tag) {
2088
+ case ClassScore_Tags.Pass:
2089
+ {
2090
+ ordinalConverter.write(1, into);
2091
+ return;
2092
+ }
2093
+ case ClassScore_Tags.Failed:
2094
+ {
2095
+ ordinalConverter.write(2, into);
2096
+ return;
2097
+ }
2098
+ case ClassScore_Tags.Score:
2099
+ {
2100
+ ordinalConverter.write(3, into);
2101
+ const inner = value.inner;
2102
+ FfiConverterUInt32.write(inner[0], into);
2103
+ return;
2104
+ }
2105
+ case ClassScore_Tags.Empty:
2106
+ {
2107
+ ordinalConverter.write(4, into);
2108
+ return;
2109
+ }
2110
+ default:
2111
+ // Throwing from here means that ClassScore_Tags hasn't matched an ordinal.
2112
+ throw new UniffiInternalError.UnexpectedEnumCase();
2113
+ }
2114
+ }
2115
+ allocationSize(value) {
2116
+ switch (value.tag) {
2117
+ case ClassScore_Tags.Pass:
2118
+ {
2119
+ return ordinalConverter.allocationSize(1);
2120
+ }
2121
+ case ClassScore_Tags.Failed:
2122
+ {
2123
+ return ordinalConverter.allocationSize(2);
2124
+ }
2125
+ case ClassScore_Tags.Score:
2126
+ {
2127
+ const inner = value.inner;
2128
+ let size = ordinalConverter.allocationSize(3);
2129
+ size += FfiConverterUInt32.allocationSize(inner[0]);
2130
+ return size;
2131
+ }
2132
+ case ClassScore_Tags.Empty:
2133
+ {
2134
+ return ordinalConverter.allocationSize(4);
2135
+ }
2136
+ default:
2137
+ throw new UniffiInternalError.UnexpectedEnumCase();
2138
+ }
2139
+ }
2140
+ }
2141
+ return new FFIConverter();
2142
+ })();
2143
+
2144
+ /**
2145
+ * 학위과정
2146
+ */
2147
+ export let CourseType = /*#__PURE__*/function (CourseType) {
2148
+ /**
2149
+ * 박사과정
2150
+ */
2151
+ CourseType[CourseType["Phd"] = 0] = "Phd";
2152
+ /**
2153
+ * 석사과정
2154
+ */
2155
+ CourseType[CourseType["Master"] = 1] = "Master";
2156
+ /**
2157
+ * 석박과정
2158
+ */
2159
+ CourseType[CourseType["PhdIntergrated"] = 2] = "PhdIntergrated";
2160
+ /**
2161
+ * 연구과정
2162
+ */
2163
+ CourseType[CourseType["Research"] = 3] = "Research";
2164
+ /**
2165
+ * 학사과정
2166
+ */
2167
+ CourseType[CourseType["Bachelor"] = 4] = "Bachelor";
2168
+ return CourseType;
2169
+ }({});
2170
+ const FfiConverterTypeCourseType = (() => {
2171
+ const ordinalConverter = FfiConverterInt32;
2172
+ class FFIConverter extends AbstractFfiConverterByteArray {
2173
+ read(from) {
2174
+ switch (ordinalConverter.read(from)) {
2175
+ case 1:
2176
+ return CourseType.Phd;
2177
+ case 2:
2178
+ return CourseType.Master;
2179
+ case 3:
2180
+ return CourseType.PhdIntergrated;
2181
+ case 4:
2182
+ return CourseType.Research;
2183
+ case 5:
2184
+ return CourseType.Bachelor;
2185
+ default:
2186
+ throw new UniffiInternalError.UnexpectedEnumCase();
2187
+ }
2188
+ }
2189
+ write(value, into) {
2190
+ switch (value) {
2191
+ case CourseType.Phd:
2192
+ return ordinalConverter.write(1, into);
2193
+ case CourseType.Master:
2194
+ return ordinalConverter.write(2, into);
2195
+ case CourseType.PhdIntergrated:
2196
+ return ordinalConverter.write(3, into);
2197
+ case CourseType.Research:
2198
+ return ordinalConverter.write(4, into);
2199
+ case CourseType.Bachelor:
2200
+ return ordinalConverter.write(5, into);
2201
+ }
2202
+ }
2203
+ allocationSize(value) {
2204
+ return ordinalConverter.allocationSize(0);
2205
+ }
2206
+ }
2207
+ return new FFIConverter();
2208
+ })();
2209
+
2210
+ // Enum: LectureCategory
2211
+ export let LectureCategory_Tags = /*#__PURE__*/function (LectureCategory_Tags) {
2212
+ LectureCategory_Tags["Major"] = "Major";
2213
+ LectureCategory_Tags["RequiredElective"] = "RequiredElective";
2214
+ LectureCategory_Tags["OptionalElective"] = "OptionalElective";
2215
+ LectureCategory_Tags["Chapel"] = "Chapel";
2216
+ LectureCategory_Tags["Education"] = "Education";
2217
+ LectureCategory_Tags["Graduated"] = "Graduated";
2218
+ LectureCategory_Tags["ConnectedMajor"] = "ConnectedMajor";
2219
+ LectureCategory_Tags["UnitedMajor"] = "UnitedMajor";
2220
+ LectureCategory_Tags["FindByProfessor"] = "FindByProfessor";
2221
+ LectureCategory_Tags["FindByLecture"] = "FindByLecture";
2222
+ LectureCategory_Tags["RecognizedOtherMajor"] = "RecognizedOtherMajor";
2223
+ LectureCategory_Tags["Cyber"] = "Cyber";
2224
+ return LectureCategory_Tags;
2225
+ }({});
2226
+ /**
2227
+ * 강의를 찾을 때 사용하는 강의 카테고리
2228
+ */
2229
+ export const LectureCategory = (() => {
2230
+ /**
2231
+ * 전공 강의
2232
+ */
2233
+ class Major_ extends UniffiEnum {
2234
+ /**
2235
+ * @private
2236
+ * This field is private and should not be used, use `tag` instead.
2237
+ */
2238
+ [uniffiTypeNameSymbol] = 'LectureCategory';
2239
+ tag = LectureCategory_Tags.Major;
2240
+ constructor(inner) {
2241
+ super('LectureCategory', 'Major');
2242
+ this.inner = Object.freeze(inner);
2243
+ }
2244
+ static new(inner) {
2245
+ return new Major_(inner);
2246
+ }
2247
+ static instanceOf(obj) {
2248
+ return obj.tag === LectureCategory_Tags.Major;
2249
+ }
2250
+ }
2251
+ /**
2252
+ * 교양필수
2253
+ */
2254
+ class RequiredElective_ extends UniffiEnum {
2255
+ /**
2256
+ * @private
2257
+ * This field is private and should not be used, use `tag` instead.
2258
+ */
2259
+ [uniffiTypeNameSymbol] = 'LectureCategory';
2260
+ tag = LectureCategory_Tags.RequiredElective;
2261
+ constructor(inner) {
2262
+ super('LectureCategory', 'RequiredElective');
2263
+ this.inner = Object.freeze(inner);
2264
+ }
2265
+ static new(inner) {
2266
+ return new RequiredElective_(inner);
2267
+ }
2268
+ static instanceOf(obj) {
2269
+ return obj.tag === LectureCategory_Tags.RequiredElective;
2270
+ }
2271
+ }
2272
+ /**
2273
+ * 교양선택
2274
+ */
2275
+ class OptionalElective_ extends UniffiEnum {
2276
+ /**
2277
+ * @private
2278
+ * This field is private and should not be used, use `tag` instead.
2279
+ */
2280
+ [uniffiTypeNameSymbol] = 'LectureCategory';
2281
+ tag = LectureCategory_Tags.OptionalElective;
2282
+ constructor(inner) {
2283
+ super('LectureCategory', 'OptionalElective');
2284
+ this.inner = Object.freeze(inner);
2285
+ }
2286
+ static new(inner) {
2287
+ return new OptionalElective_(inner);
2288
+ }
2289
+ static instanceOf(obj) {
2290
+ return obj.tag === LectureCategory_Tags.OptionalElective;
2291
+ }
2292
+ }
2293
+ /**
2294
+ * 채플
2295
+ */
2296
+ class Chapel_ extends UniffiEnum {
2297
+ /**
2298
+ * @private
2299
+ * This field is private and should not be used, use `tag` instead.
2300
+ */
2301
+ [uniffiTypeNameSymbol] = 'LectureCategory';
2302
+ tag = LectureCategory_Tags.Chapel;
2303
+ constructor(inner) {
2304
+ super('LectureCategory', 'Chapel');
2305
+ this.inner = Object.freeze(inner);
2306
+ }
2307
+ static new(inner) {
2308
+ return new Chapel_(inner);
2309
+ }
2310
+ static instanceOf(obj) {
2311
+ return obj.tag === LectureCategory_Tags.Chapel;
2312
+ }
2313
+ }
2314
+ /**
2315
+ * 교직
2316
+ */
2317
+ class Education_ extends UniffiEnum {
2318
+ /**
2319
+ * @private
2320
+ * This field is private and should not be used, use `tag` instead.
2321
+ */
2322
+ [uniffiTypeNameSymbol] = 'LectureCategory';
2323
+ tag = LectureCategory_Tags.Education;
2324
+ constructor() {
2325
+ super('LectureCategory', 'Education');
2326
+ }
2327
+ static new() {
2328
+ return new Education_();
2329
+ }
2330
+ static instanceOf(obj) {
2331
+ return obj.tag === LectureCategory_Tags.Education;
2332
+ }
2333
+ }
2334
+ /**
2335
+ * 대학원
2336
+ */
2337
+ class Graduated_ extends UniffiEnum {
2338
+ /**
2339
+ * @private
2340
+ * This field is private and should not be used, use `tag` instead.
2341
+ */
2342
+ [uniffiTypeNameSymbol] = 'LectureCategory';
2343
+ tag = LectureCategory_Tags.Graduated;
2344
+ constructor(inner) {
2345
+ super('LectureCategory', 'Graduated');
2346
+ this.inner = Object.freeze(inner);
2347
+ }
2348
+ static new(inner) {
2349
+ return new Graduated_(inner);
2350
+ }
2351
+ static instanceOf(obj) {
2352
+ return obj.tag === LectureCategory_Tags.Graduated;
2353
+ }
2354
+ }
2355
+ /**
2356
+ * 연계전공
2357
+ */
2358
+ class ConnectedMajor_ extends UniffiEnum {
2359
+ /**
2360
+ * @private
2361
+ * This field is private and should not be used, use `tag` instead.
2362
+ */
2363
+ [uniffiTypeNameSymbol] = 'LectureCategory';
2364
+ tag = LectureCategory_Tags.ConnectedMajor;
2365
+ constructor(inner) {
2366
+ super('LectureCategory', 'ConnectedMajor');
2367
+ this.inner = Object.freeze(inner);
2368
+ }
2369
+ static new(inner) {
2370
+ return new ConnectedMajor_(inner);
2371
+ }
2372
+ static instanceOf(obj) {
2373
+ return obj.tag === LectureCategory_Tags.ConnectedMajor;
2374
+ }
2375
+ }
2376
+ /**
2377
+ * 융합전공
2378
+ */
2379
+ class UnitedMajor_ extends UniffiEnum {
2380
+ /**
2381
+ * @private
2382
+ * This field is private and should not be used, use `tag` instead.
2383
+ */
2384
+ [uniffiTypeNameSymbol] = 'LectureCategory';
2385
+ tag = LectureCategory_Tags.UnitedMajor;
2386
+ constructor(inner) {
2387
+ super('LectureCategory', 'UnitedMajor');
2388
+ this.inner = Object.freeze(inner);
2389
+ }
2390
+ static new(inner) {
2391
+ return new UnitedMajor_(inner);
2392
+ }
2393
+ static instanceOf(obj) {
2394
+ return obj.tag === LectureCategory_Tags.UnitedMajor;
2395
+ }
2396
+ }
2397
+ /**
2398
+ * 교수명 검색
2399
+ */
2400
+ class FindByProfessor_ extends UniffiEnum {
2401
+ /**
2402
+ * @private
2403
+ * This field is private and should not be used, use `tag` instead.
2404
+ */
2405
+ [uniffiTypeNameSymbol] = 'LectureCategory';
2406
+ tag = LectureCategory_Tags.FindByProfessor;
2407
+ constructor(inner) {
2408
+ super('LectureCategory', 'FindByProfessor');
2409
+ this.inner = Object.freeze(inner);
2410
+ }
2411
+ static new(inner) {
2412
+ return new FindByProfessor_(inner);
2413
+ }
2414
+ static instanceOf(obj) {
2415
+ return obj.tag === LectureCategory_Tags.FindByProfessor;
2416
+ }
2417
+ }
2418
+ /**
2419
+ * 과목명 검색
2420
+ */
2421
+ class FindByLecture_ extends UniffiEnum {
2422
+ /**
2423
+ * @private
2424
+ * This field is private and should not be used, use `tag` instead.
2425
+ */
2426
+ [uniffiTypeNameSymbol] = 'LectureCategory';
2427
+ tag = LectureCategory_Tags.FindByLecture;
2428
+ constructor(inner) {
2429
+ super('LectureCategory', 'FindByLecture');
2430
+ this.inner = Object.freeze(inner);
2431
+ }
2432
+ static new(inner) {
2433
+ return new FindByLecture_(inner);
2434
+ }
2435
+ static instanceOf(obj) {
2436
+ return obj.tag === LectureCategory_Tags.FindByLecture;
2437
+ }
2438
+ }
2439
+ /**
2440
+ * 타전공인정과목
2441
+ */
2442
+ class RecognizedOtherMajor_ extends UniffiEnum {
2443
+ /**
2444
+ * @private
2445
+ * This field is private and should not be used, use `tag` instead.
2446
+ */
2447
+ [uniffiTypeNameSymbol] = 'LectureCategory';
2448
+ tag = LectureCategory_Tags.RecognizedOtherMajor;
2449
+ constructor(inner) {
2450
+ super('LectureCategory', 'RecognizedOtherMajor');
2451
+ this.inner = Object.freeze(inner);
2452
+ }
2453
+ static new(inner) {
2454
+ return new RecognizedOtherMajor_(inner);
2455
+ }
2456
+ static instanceOf(obj) {
2457
+ return obj.tag === LectureCategory_Tags.RecognizedOtherMajor;
2458
+ }
2459
+ }
2460
+ /**
2461
+ * 숭실사이버대
2462
+ */
2463
+ class Cyber_ extends UniffiEnum {
2464
+ /**
2465
+ * @private
2466
+ * This field is private and should not be used, use `tag` instead.
2467
+ */
2468
+ [uniffiTypeNameSymbol] = 'LectureCategory';
2469
+ tag = LectureCategory_Tags.Cyber;
2470
+ constructor() {
2471
+ super('LectureCategory', 'Cyber');
2472
+ }
2473
+ static new() {
2474
+ return new Cyber_();
2475
+ }
2476
+ static instanceOf(obj) {
2477
+ return obj.tag === LectureCategory_Tags.Cyber;
2478
+ }
2479
+ }
2480
+ function instanceOf(obj) {
2481
+ return obj[uniffiTypeNameSymbol] === 'LectureCategory';
2482
+ }
2483
+ return Object.freeze({
2484
+ instanceOf,
2485
+ Major: Major_,
2486
+ RequiredElective: RequiredElective_,
2487
+ OptionalElective: OptionalElective_,
2488
+ Chapel: Chapel_,
2489
+ Education: Education_,
2490
+ Graduated: Graduated_,
2491
+ ConnectedMajor: ConnectedMajor_,
2492
+ UnitedMajor: UnitedMajor_,
2493
+ FindByProfessor: FindByProfessor_,
2494
+ FindByLecture: FindByLecture_,
2495
+ RecognizedOtherMajor: RecognizedOtherMajor_,
2496
+ Cyber: Cyber_
2497
+ });
2498
+ })();
2499
+
2500
+ /**
2501
+ * 강의를 찾을 때 사용하는 강의 카테고리
2502
+ */
2503
+
2504
+ // FfiConverter for enum LectureCategory
2505
+ const FfiConverterTypeLectureCategory = (() => {
2506
+ const ordinalConverter = FfiConverterInt32;
2507
+ class FFIConverter extends AbstractFfiConverterByteArray {
2508
+ read(from) {
2509
+ switch (ordinalConverter.read(from)) {
2510
+ case 1:
2511
+ return new LectureCategory.Major({
2512
+ collage: FfiConverterString.read(from),
2513
+ department: FfiConverterString.read(from),
2514
+ major: FfiConverterOptionalString.read(from)
2515
+ });
2516
+ case 2:
2517
+ return new LectureCategory.RequiredElective({
2518
+ lectureName: FfiConverterString.read(from)
2519
+ });
2520
+ case 3:
2521
+ return new LectureCategory.OptionalElective({
2522
+ category: FfiConverterString.read(from)
2523
+ });
2524
+ case 4:
2525
+ return new LectureCategory.Chapel({
2526
+ lectureName: FfiConverterString.read(from)
2527
+ });
2528
+ case 5:
2529
+ return new LectureCategory.Education();
2530
+ case 6:
2531
+ return new LectureCategory.Graduated({
2532
+ collage: FfiConverterString.read(from),
2533
+ department: FfiConverterString.read(from)
2534
+ });
2535
+ case 7:
2536
+ return new LectureCategory.ConnectedMajor({
2537
+ major: FfiConverterString.read(from)
2538
+ });
2539
+ case 8:
2540
+ return new LectureCategory.UnitedMajor({
2541
+ major: FfiConverterString.read(from)
2542
+ });
2543
+ case 9:
2544
+ return new LectureCategory.FindByProfessor({
2545
+ keyword: FfiConverterString.read(from)
2546
+ });
2547
+ case 10:
2548
+ return new LectureCategory.FindByLecture({
2549
+ keyword: FfiConverterString.read(from)
2550
+ });
2551
+ case 11:
2552
+ return new LectureCategory.RecognizedOtherMajor({
2553
+ collage: FfiConverterString.read(from),
2554
+ department: FfiConverterString.read(from),
2555
+ major: FfiConverterOptionalString.read(from)
2556
+ });
2557
+ case 12:
2558
+ return new LectureCategory.Cyber();
2559
+ default:
2560
+ throw new UniffiInternalError.UnexpectedEnumCase();
2561
+ }
2562
+ }
2563
+ write(value, into) {
2564
+ switch (value.tag) {
2565
+ case LectureCategory_Tags.Major:
2566
+ {
2567
+ ordinalConverter.write(1, into);
2568
+ const inner = value.inner;
2569
+ FfiConverterString.write(inner.collage, into);
2570
+ FfiConverterString.write(inner.department, into);
2571
+ FfiConverterOptionalString.write(inner.major, into);
2572
+ return;
2573
+ }
2574
+ case LectureCategory_Tags.RequiredElective:
2575
+ {
2576
+ ordinalConverter.write(2, into);
2577
+ const inner = value.inner;
2578
+ FfiConverterString.write(inner.lectureName, into);
2579
+ return;
2580
+ }
2581
+ case LectureCategory_Tags.OptionalElective:
2582
+ {
2583
+ ordinalConverter.write(3, into);
2584
+ const inner = value.inner;
2585
+ FfiConverterString.write(inner.category, into);
2586
+ return;
2587
+ }
2588
+ case LectureCategory_Tags.Chapel:
2589
+ {
2590
+ ordinalConverter.write(4, into);
2591
+ const inner = value.inner;
2592
+ FfiConverterString.write(inner.lectureName, into);
2593
+ return;
2594
+ }
2595
+ case LectureCategory_Tags.Education:
2596
+ {
2597
+ ordinalConverter.write(5, into);
2598
+ return;
2599
+ }
2600
+ case LectureCategory_Tags.Graduated:
2601
+ {
2602
+ ordinalConverter.write(6, into);
2603
+ const inner = value.inner;
2604
+ FfiConverterString.write(inner.collage, into);
2605
+ FfiConverterString.write(inner.department, into);
2606
+ return;
2607
+ }
2608
+ case LectureCategory_Tags.ConnectedMajor:
2609
+ {
2610
+ ordinalConverter.write(7, into);
2611
+ const inner = value.inner;
2612
+ FfiConverterString.write(inner.major, into);
2613
+ return;
2614
+ }
2615
+ case LectureCategory_Tags.UnitedMajor:
2616
+ {
2617
+ ordinalConverter.write(8, into);
2618
+ const inner = value.inner;
2619
+ FfiConverterString.write(inner.major, into);
2620
+ return;
2621
+ }
2622
+ case LectureCategory_Tags.FindByProfessor:
2623
+ {
2624
+ ordinalConverter.write(9, into);
2625
+ const inner = value.inner;
2626
+ FfiConverterString.write(inner.keyword, into);
2627
+ return;
2628
+ }
2629
+ case LectureCategory_Tags.FindByLecture:
2630
+ {
2631
+ ordinalConverter.write(10, into);
2632
+ const inner = value.inner;
2633
+ FfiConverterString.write(inner.keyword, into);
2634
+ return;
2635
+ }
2636
+ case LectureCategory_Tags.RecognizedOtherMajor:
2637
+ {
2638
+ ordinalConverter.write(11, into);
2639
+ const inner = value.inner;
2640
+ FfiConverterString.write(inner.collage, into);
2641
+ FfiConverterString.write(inner.department, into);
2642
+ FfiConverterOptionalString.write(inner.major, into);
2643
+ return;
2644
+ }
2645
+ case LectureCategory_Tags.Cyber:
2646
+ {
2647
+ ordinalConverter.write(12, into);
2648
+ return;
2649
+ }
2650
+ default:
2651
+ // Throwing from here means that LectureCategory_Tags hasn't matched an ordinal.
2652
+ throw new UniffiInternalError.UnexpectedEnumCase();
2653
+ }
2654
+ }
2655
+ allocationSize(value) {
2656
+ switch (value.tag) {
2657
+ case LectureCategory_Tags.Major:
2658
+ {
2659
+ const inner = value.inner;
2660
+ let size = ordinalConverter.allocationSize(1);
2661
+ size += FfiConverterString.allocationSize(inner.collage);
2662
+ size += FfiConverterString.allocationSize(inner.department);
2663
+ size += FfiConverterOptionalString.allocationSize(inner.major);
2664
+ return size;
2665
+ }
2666
+ case LectureCategory_Tags.RequiredElective:
2667
+ {
2668
+ const inner = value.inner;
2669
+ let size = ordinalConverter.allocationSize(2);
2670
+ size += FfiConverterString.allocationSize(inner.lectureName);
2671
+ return size;
2672
+ }
2673
+ case LectureCategory_Tags.OptionalElective:
2674
+ {
2675
+ const inner = value.inner;
2676
+ let size = ordinalConverter.allocationSize(3);
2677
+ size += FfiConverterString.allocationSize(inner.category);
2678
+ return size;
2679
+ }
2680
+ case LectureCategory_Tags.Chapel:
2681
+ {
2682
+ const inner = value.inner;
2683
+ let size = ordinalConverter.allocationSize(4);
2684
+ size += FfiConverterString.allocationSize(inner.lectureName);
2685
+ return size;
2686
+ }
2687
+ case LectureCategory_Tags.Education:
2688
+ {
2689
+ return ordinalConverter.allocationSize(5);
2690
+ }
2691
+ case LectureCategory_Tags.Graduated:
2692
+ {
2693
+ const inner = value.inner;
2694
+ let size = ordinalConverter.allocationSize(6);
2695
+ size += FfiConverterString.allocationSize(inner.collage);
2696
+ size += FfiConverterString.allocationSize(inner.department);
2697
+ return size;
2698
+ }
2699
+ case LectureCategory_Tags.ConnectedMajor:
2700
+ {
2701
+ const inner = value.inner;
2702
+ let size = ordinalConverter.allocationSize(7);
2703
+ size += FfiConverterString.allocationSize(inner.major);
2704
+ return size;
2705
+ }
2706
+ case LectureCategory_Tags.UnitedMajor:
2707
+ {
2708
+ const inner = value.inner;
2709
+ let size = ordinalConverter.allocationSize(8);
2710
+ size += FfiConverterString.allocationSize(inner.major);
2711
+ return size;
2712
+ }
2713
+ case LectureCategory_Tags.FindByProfessor:
2714
+ {
2715
+ const inner = value.inner;
2716
+ let size = ordinalConverter.allocationSize(9);
2717
+ size += FfiConverterString.allocationSize(inner.keyword);
2718
+ return size;
2719
+ }
2720
+ case LectureCategory_Tags.FindByLecture:
2721
+ {
2722
+ const inner = value.inner;
2723
+ let size = ordinalConverter.allocationSize(10);
2724
+ size += FfiConverterString.allocationSize(inner.keyword);
2725
+ return size;
2726
+ }
2727
+ case LectureCategory_Tags.RecognizedOtherMajor:
2728
+ {
2729
+ const inner = value.inner;
2730
+ let size = ordinalConverter.allocationSize(11);
2731
+ size += FfiConverterString.allocationSize(inner.collage);
2732
+ size += FfiConverterString.allocationSize(inner.department);
2733
+ size += FfiConverterOptionalString.allocationSize(inner.major);
2734
+ return size;
2735
+ }
2736
+ case LectureCategory_Tags.Cyber:
2737
+ {
2738
+ return ordinalConverter.allocationSize(12);
2739
+ }
2740
+ default:
2741
+ throw new UniffiInternalError.UnexpectedEnumCase();
2742
+ }
2743
+ }
2744
+ }
2745
+ return new FFIConverter();
2746
+ })();
2747
+
2748
+ /**
2749
+ * 학기 종류
2750
+ *
2751
+ * 각 애플리케이션에서의 변환은 애플리케이션 내에서 직접 처리하여야 합니다.
2752
+ */
2753
+ export let SemesterType = /*#__PURE__*/function (SemesterType) {
2754
+ /**
2755
+ * 1학기
2756
+ */
2757
+ SemesterType[SemesterType["One"] = 0] = "One";
2758
+ /**
2759
+ * 여름학기
2760
+ */
2761
+ SemesterType[SemesterType["Summer"] = 1] = "Summer";
2762
+ /**
2763
+ * 2학기
2764
+ */
2765
+ SemesterType[SemesterType["Two"] = 2] = "Two";
2766
+ /**
2767
+ * 겨울학기
2768
+ */
2769
+ SemesterType[SemesterType["Winter"] = 3] = "Winter";
2770
+ return SemesterType;
2771
+ }({});
2772
+ const FfiConverterTypeSemesterType = (() => {
2773
+ const ordinalConverter = FfiConverterInt32;
2774
+ class FFIConverter extends AbstractFfiConverterByteArray {
2775
+ read(from) {
2776
+ switch (ordinalConverter.read(from)) {
2777
+ case 1:
2778
+ return SemesterType.One;
2779
+ case 2:
2780
+ return SemesterType.Summer;
2781
+ case 3:
2782
+ return SemesterType.Two;
2783
+ case 4:
2784
+ return SemesterType.Winter;
2785
+ default:
2786
+ throw new UniffiInternalError.UnexpectedEnumCase();
2787
+ }
2788
+ }
2789
+ write(value, into) {
2790
+ switch (value) {
2791
+ case SemesterType.One:
2792
+ return ordinalConverter.write(1, into);
2793
+ case SemesterType.Summer:
2794
+ return ordinalConverter.write(2, into);
2795
+ case SemesterType.Two:
2796
+ return ordinalConverter.write(3, into);
2797
+ case SemesterType.Winter:
2798
+ return ordinalConverter.write(4, into);
2799
+ }
2800
+ }
2801
+ allocationSize(value) {
2802
+ return ordinalConverter.allocationSize(0);
2803
+ }
2804
+ }
2805
+ return new FFIConverter();
2806
+ })();
2807
+
2808
+ /**
2809
+ * 한 주의 요일을 표현합니다.
2810
+ */
2811
+ export let Weekday = /*#__PURE__*/function (Weekday) {
2812
+ /**
2813
+ * 월요일
2814
+ */
2815
+ Weekday[Weekday["Mon"] = 0] = "Mon";
2816
+ /**
2817
+ * 화요일
2818
+ */
2819
+ Weekday[Weekday["Tue"] = 1] = "Tue";
2820
+ /**
2821
+ * 수요일
2822
+ */
2823
+ Weekday[Weekday["Wed"] = 2] = "Wed";
2824
+ /**
2825
+ * 목요일
2826
+ */
2827
+ Weekday[Weekday["Thu"] = 3] = "Thu";
2828
+ /**
2829
+ * 금요일
2830
+ */
2831
+ Weekday[Weekday["Fri"] = 4] = "Fri";
2832
+ /**
2833
+ * 토요일
2834
+ */
2835
+ Weekday[Weekday["Sat"] = 5] = "Sat";
2836
+ /**
2837
+ * 일요일
2838
+ */
2839
+ Weekday[Weekday["Sun"] = 6] = "Sun";
2840
+ return Weekday;
2841
+ }({});
2842
+ const FfiConverterTypeWeekday = (() => {
2843
+ const ordinalConverter = FfiConverterInt32;
2844
+ class FFIConverter extends AbstractFfiConverterByteArray {
2845
+ read(from) {
2846
+ switch (ordinalConverter.read(from)) {
2847
+ case 1:
2848
+ return Weekday.Mon;
2849
+ case 2:
2850
+ return Weekday.Tue;
2851
+ case 3:
2852
+ return Weekday.Wed;
2853
+ case 4:
2854
+ return Weekday.Thu;
2855
+ case 5:
2856
+ return Weekday.Fri;
2857
+ case 6:
2858
+ return Weekday.Sat;
2859
+ case 7:
2860
+ return Weekday.Sun;
2861
+ default:
2862
+ throw new UniffiInternalError.UnexpectedEnumCase();
2863
+ }
2864
+ }
2865
+ write(value, into) {
2866
+ switch (value) {
2867
+ case Weekday.Mon:
2868
+ return ordinalConverter.write(1, into);
2869
+ case Weekday.Tue:
2870
+ return ordinalConverter.write(2, into);
2871
+ case Weekday.Wed:
2872
+ return ordinalConverter.write(3, into);
2873
+ case Weekday.Thu:
2874
+ return ordinalConverter.write(4, into);
2875
+ case Weekday.Fri:
2876
+ return ordinalConverter.write(5, into);
2877
+ case Weekday.Sat:
2878
+ return ordinalConverter.write(6, into);
2879
+ case Weekday.Sun:
2880
+ return ordinalConverter.write(7, into);
2881
+ }
2882
+ }
2883
+ allocationSize(value) {
2884
+ return ordinalConverter.allocationSize(0);
2885
+ }
2886
+ }
2887
+ return new FFIConverter();
2888
+ })();
2889
+
2890
+ // FfiConverter for Map<string, /*f32*/number>
2891
+ const FfiConverterMapStringFloat32 = new FfiConverterMap(FfiConverterString, FfiConverterFloat32);
2892
+
2893
+ // FfiConverter for Map<string, GraduationRequirement>
2894
+ const FfiConverterMapStringTypeGraduationRequirement = new FfiConverterMap(FfiConverterString, FfiConverterTypeGraduationRequirement);
2895
+
2896
+ /**
2897
+ * 새로운 `LectureCategory`를 만드는 빌더입니다.
2898
+ */
2899
+
2900
+ /**
2901
+ * 새로운 `LectureCategory`를 만드는 빌더입니다.
2902
+ */
2903
+ export class LectureCategoryBuilder extends UniffiAbstractObject {
2904
+ [uniffiTypeNameSymbol] = 'LectureCategoryBuilder';
2905
+ /**
2906
+ * `LectureCategoryBuilder`를 만듭니다.
2907
+ */
2908
+ constructor() {
2909
+ super();
2910
+ const pointer = uniffiCaller.rustCall(/*caller:*/callStatus => {
2911
+ return nativeModule().ubrn_uniffi_rusaint_fn_constructor_lecturecategorybuilder_new(callStatus);
2912
+ }, /*liftString:*/FfiConverterString.lift);
2913
+ this[pointerLiteralSymbol] = pointer;
2914
+ this[destructorGuardSymbol] = uniffiTypeLectureCategoryBuilderObjectFactory.bless(pointer);
2915
+ }
2916
+
2917
+ /**
2918
+ * 채플 분류의 [`LectureCategory`]를 만듭니다.
2919
+ */
2920
+ chapel(lectureName) {
2921
+ return FfiConverterTypeLectureCategory.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
2922
+ return nativeModule().ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_chapel(uniffiTypeLectureCategoryBuilderObjectFactory.clonePointer(this), FfiConverterString.lower(lectureName), callStatus);
2923
+ }, /*liftString:*/FfiConverterString.lift));
2924
+ }
2925
+
2926
+ /**
2927
+ * 연계전공 분류의 [`LectureCategory`]를 만듭니다.
2928
+ */
2929
+ connectedMajor(major) {
2930
+ return FfiConverterTypeLectureCategory.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
2931
+ return nativeModule().ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_connected_major(uniffiTypeLectureCategoryBuilderObjectFactory.clonePointer(this), FfiConverterString.lower(major), callStatus);
2932
+ }, /*liftString:*/FfiConverterString.lift));
2933
+ }
2934
+
2935
+ /**
2936
+ * 숭실사이버대 분류의 [`LectureCategory`]를 만듭니다.
2937
+ */
2938
+ cyber() {
2939
+ return FfiConverterTypeLectureCategory.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
2940
+ return nativeModule().ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_cyber(uniffiTypeLectureCategoryBuilderObjectFactory.clonePointer(this), callStatus);
2941
+ }, /*liftString:*/FfiConverterString.lift));
2942
+ }
2943
+
2944
+ /**
2945
+ * 교직 분류의 [`LectureCategory`]를 만듭니다.
2946
+ */
2947
+ education() {
2948
+ return FfiConverterTypeLectureCategory.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
2949
+ return nativeModule().ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_education(uniffiTypeLectureCategoryBuilderObjectFactory.clonePointer(this), callStatus);
2950
+ }, /*liftString:*/FfiConverterString.lift));
2951
+ }
2952
+
2953
+ /**
2954
+ * 과목명으로 찾기 위한 [`LectureCategory`]를 만듭니다.
2955
+ */
2956
+ findByLecture(keyword) {
2957
+ return FfiConverterTypeLectureCategory.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
2958
+ return nativeModule().ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_find_by_lecture(uniffiTypeLectureCategoryBuilderObjectFactory.clonePointer(this), FfiConverterString.lower(keyword), callStatus);
2959
+ }, /*liftString:*/FfiConverterString.lift));
2960
+ }
2961
+
2962
+ /**
2963
+ * 교수명으로 찾기 위한 [`LectureCategory`]를 만듭니다.
2964
+ */
2965
+ findByProfessor(keyword) {
2966
+ return FfiConverterTypeLectureCategory.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
2967
+ return nativeModule().ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_find_by_professor(uniffiTypeLectureCategoryBuilderObjectFactory.clonePointer(this), FfiConverterString.lower(keyword), callStatus);
2968
+ }, /*liftString:*/FfiConverterString.lift));
2969
+ }
2970
+
2971
+ /**
2972
+ * 대학원 분류의 [`LectureCategory`]를 만듭니다.
2973
+ */
2974
+ graduated(collage, department) {
2975
+ return FfiConverterTypeLectureCategory.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
2976
+ return nativeModule().ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_graduated(uniffiTypeLectureCategoryBuilderObjectFactory.clonePointer(this), FfiConverterString.lower(collage), FfiConverterString.lower(department), callStatus);
2977
+ }, /*liftString:*/FfiConverterString.lift));
2978
+ }
2979
+
2980
+ /**
2981
+ * 전공과목 분류의 [`LectureCategory`]를 만듭니다.
2982
+ */
2983
+ major(collage, department, major) {
2984
+ return FfiConverterTypeLectureCategory.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
2985
+ return nativeModule().ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_major(uniffiTypeLectureCategoryBuilderObjectFactory.clonePointer(this), FfiConverterString.lower(collage), FfiConverterString.lower(department), FfiConverterOptionalString.lower(major), callStatus);
2986
+ }, /*liftString:*/FfiConverterString.lift));
2987
+ }
2988
+
2989
+ /**
2990
+ * 교양선택 분류의 [`LectureCategory`]를 만듭니다.
2991
+ */
2992
+ optionalElective(category) {
2993
+ return FfiConverterTypeLectureCategory.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
2994
+ return nativeModule().ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_optional_elective(uniffiTypeLectureCategoryBuilderObjectFactory.clonePointer(this), FfiConverterString.lower(category), callStatus);
2995
+ }, /*liftString:*/FfiConverterString.lift));
2996
+ }
2997
+
2998
+ /**
2999
+ * 타전공인정과목 분류의 [`LectureCategory`]를 만듭니다.
3000
+ */
3001
+ recognizedOtherMajor(collage, department, major) {
3002
+ return FfiConverterTypeLectureCategory.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
3003
+ return nativeModule().ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_recognized_other_major(uniffiTypeLectureCategoryBuilderObjectFactory.clonePointer(this), FfiConverterString.lower(collage), FfiConverterString.lower(department), FfiConverterOptionalString.lower(major), callStatus);
3004
+ }, /*liftString:*/FfiConverterString.lift));
3005
+ }
3006
+
3007
+ /**
3008
+ * 교양필수 분류의 [`LectureCategory`]를 만듭니다.
3009
+ */
3010
+ requiredElective(lectureName) {
3011
+ return FfiConverterTypeLectureCategory.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
3012
+ return nativeModule().ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_required_elective(uniffiTypeLectureCategoryBuilderObjectFactory.clonePointer(this), FfiConverterString.lower(lectureName), callStatus);
3013
+ }, /*liftString:*/FfiConverterString.lift));
3014
+ }
3015
+
3016
+ /**
3017
+ * 융합전공 분류의 [`LectureCategory`]를 만듭니다.
3018
+ */
3019
+ unitedMajor(major) {
3020
+ return FfiConverterTypeLectureCategory.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
3021
+ return nativeModule().ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_united_major(uniffiTypeLectureCategoryBuilderObjectFactory.clonePointer(this), FfiConverterString.lower(major), callStatus);
3022
+ }, /*liftString:*/FfiConverterString.lift));
3023
+ }
3024
+
3025
+ /**
3026
+ * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
3027
+ */
3028
+ uniffiDestroy() {
3029
+ const ptr = this[destructorGuardSymbol];
3030
+ if (ptr !== undefined) {
3031
+ const pointer = uniffiTypeLectureCategoryBuilderObjectFactory.pointer(this);
3032
+ uniffiTypeLectureCategoryBuilderObjectFactory.freePointer(pointer);
3033
+ uniffiTypeLectureCategoryBuilderObjectFactory.unbless(ptr);
3034
+ delete this[destructorGuardSymbol];
3035
+ }
3036
+ }
3037
+ static instanceOf(obj) {
3038
+ return uniffiTypeLectureCategoryBuilderObjectFactory.isConcreteType(obj);
3039
+ }
3040
+ }
3041
+ const uniffiTypeLectureCategoryBuilderObjectFactory = {
3042
+ create(pointer) {
3043
+ const instance = Object.create(LectureCategoryBuilder.prototype);
3044
+ instance[pointerLiteralSymbol] = pointer;
3045
+ instance[destructorGuardSymbol] = this.bless(pointer);
3046
+ instance[uniffiTypeNameSymbol] = 'LectureCategoryBuilder';
3047
+ return instance;
3048
+ },
3049
+ bless(p) {
3050
+ return uniffiCaller.rustCall(/*caller:*/status => nativeModule().ubrn_uniffi_internal_fn_method_lecturecategorybuilder_ffi__bless_pointer(p, status), /*liftString:*/FfiConverterString.lift);
3051
+ },
3052
+ unbless(ptr) {
3053
+ ptr.markDestroyed();
3054
+ },
3055
+ pointer(obj) {
3056
+ if (obj[destructorGuardSymbol] === undefined) {
3057
+ throw new UniffiInternalError.UnexpectedNullPointer();
3058
+ }
3059
+ return obj[pointerLiteralSymbol];
3060
+ },
3061
+ clonePointer(obj) {
3062
+ const pointer = this.pointer(obj);
3063
+ return uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().ubrn_uniffi_rusaint_fn_clone_lecturecategorybuilder(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
3064
+ },
3065
+ freePointer(pointer) {
3066
+ uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().ubrn_uniffi_rusaint_fn_free_lecturecategorybuilder(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
3067
+ },
3068
+ isConcreteType(obj) {
3069
+ return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'LectureCategoryBuilder';
3070
+ }
3071
+ };
3072
+ // FfiConverter for LectureCategoryBuilderInterface
3073
+ const FfiConverterTypeLectureCategoryBuilder = new FfiConverterObject(uniffiTypeLectureCategoryBuilderObjectFactory);
3074
+
3075
+ // FfiConverter for /*f32*/number | undefined
3076
+ const FfiConverterOptionalFloat32 = new FfiConverterOptional(FfiConverterFloat32);
3077
+
3078
+ // FfiConverter for StudentForignStudyInformation | undefined
3079
+ const FfiConverterOptionalTypeStudentForignStudyInformation = new FfiConverterOptional(FfiConverterTypeStudentForignStudyInformation);
3080
+
3081
+ // FfiConverter for StudentLifelongInformation | undefined
3082
+ const FfiConverterOptionalTypeStudentLifelongInformation = new FfiConverterOptional(FfiConverterTypeStudentLifelongInformation);
3083
+
3084
+ // FfiConverter for StudentTeachingMajorInformation | undefined
3085
+ const FfiConverterOptionalTypeStudentTeachingMajorInformation = new FfiConverterOptional(FfiConverterTypeStudentTeachingMajorInformation);
3086
+
3087
+ // FfiConverter for StudentTeachingPluralMajorInformation | undefined
3088
+ const FfiConverterOptionalTypeStudentTeachingPluralMajorInformation = new FfiConverterOptional(FfiConverterTypeStudentTeachingPluralMajorInformation);
3089
+
3090
+ // FfiConverter for string | undefined
3091
+ const FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
3092
+
3093
+ // FfiConverter for /*u32*/number | undefined
3094
+ const FfiConverterOptionalUInt32 = new FfiConverterOptional(FfiConverterUInt32);
3095
+
3096
+ // FfiConverter for Array<ChapelAbsenceRequest>
3097
+ const FfiConverterArrayTypeChapelAbsenceRequest = new FfiConverterArray(FfiConverterTypeChapelAbsenceRequest);
3098
+
3099
+ // FfiConverter for Array<ChapelAttendance>
3100
+ const FfiConverterArrayTypeChapelAttendance = new FfiConverterArray(FfiConverterTypeChapelAttendance);
3101
+
3102
+ // FfiConverter for Array<CourseScheduleInformation>
3103
+ const FfiConverterArrayTypeCourseScheduleInformation = new FfiConverterArray(FfiConverterTypeCourseScheduleInformation);
3104
+
3105
+ // FfiConverter for Array<StudentAcademicRecord>
3106
+ const FfiConverterArrayTypeStudentAcademicRecord = new FfiConverterArray(FfiConverterTypeStudentAcademicRecord);
3107
+
3108
+ // FfiConverter for Array<StudentFamilyMember>
3109
+ const FfiConverterArrayTypeStudentFamilyMember = new FfiConverterArray(FfiConverterTypeStudentFamilyMember);
3110
+
3111
+ // FfiConverter for Array<StudentTransferRecord>
3112
+ const FfiConverterArrayTypeStudentTransferRecord = new FfiConverterArray(FfiConverterTypeStudentTransferRecord);
3113
+
3114
+ // FfiConverter for Array<string>
3115
+ const FfiConverterArrayString = new FfiConverterArray(FfiConverterString);
3116
+
3117
+ // FfiConverter for Map<Weekday, Array<CourseScheduleInformation>>
3118
+ const FfiConverterMapTypeWeekdayArrayTypeCourseScheduleInformation = new FfiConverterMap(FfiConverterTypeWeekday, FfiConverterArrayTypeCourseScheduleInformation);
3119
+
3120
+ // FfiConverter for Map<string, /*f32*/number> | undefined
3121
+ const FfiConverterOptionalMapStringFloat32 = new FfiConverterOptional(FfiConverterMapStringFloat32);
3122
+
3123
+ /**
3124
+ * This should be called before anything else.
3125
+ *
3126
+ * It is likely that this is being done for you by the library's `index.ts`.
3127
+ *
3128
+ * It checks versions of uniffi between when the Rust scaffolding was generated
3129
+ * and when the bindings were generated.
3130
+ *
3131
+ * It also initializes the machinery to enable Rust to talk back to Javascript.
3132
+ */
3133
+ function uniffiEnsureInitialized() {
3134
+ // Get the bindings contract version from our ComponentInterface
3135
+ const bindingsContractVersion = 29;
3136
+ // Get the scaffolding contract version by calling the into the dylib
3137
+ const scaffoldingContractVersion = nativeModule().ubrn_ffi_rusaint_uniffi_contract_version();
3138
+ if (bindingsContractVersion !== scaffoldingContractVersion) {
3139
+ throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
3140
+ }
3141
+ if (nativeModule().ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_chapel() !== 36146) {
3142
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_checksum_method_lecturecategorybuilder_chapel');
3143
+ }
3144
+ if (nativeModule().ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_connected_major() !== 23575) {
3145
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_checksum_method_lecturecategorybuilder_connected_major');
3146
+ }
3147
+ if (nativeModule().ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_cyber() !== 62603) {
3148
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_checksum_method_lecturecategorybuilder_cyber');
3149
+ }
3150
+ if (nativeModule().ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_education() !== 26923) {
3151
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_checksum_method_lecturecategorybuilder_education');
3152
+ }
3153
+ if (nativeModule().ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_find_by_lecture() !== 60430) {
3154
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_checksum_method_lecturecategorybuilder_find_by_lecture');
3155
+ }
3156
+ if (nativeModule().ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_find_by_professor() !== 34168) {
3157
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_checksum_method_lecturecategorybuilder_find_by_professor');
3158
+ }
3159
+ if (nativeModule().ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_graduated() !== 33032) {
3160
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_checksum_method_lecturecategorybuilder_graduated');
3161
+ }
3162
+ if (nativeModule().ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_major() !== 62920) {
3163
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_checksum_method_lecturecategorybuilder_major');
3164
+ }
3165
+ if (nativeModule().ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_optional_elective() !== 18560) {
3166
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_checksum_method_lecturecategorybuilder_optional_elective');
3167
+ }
3168
+ if (nativeModule().ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_recognized_other_major() !== 31169) {
3169
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_checksum_method_lecturecategorybuilder_recognized_other_major');
3170
+ }
3171
+ if (nativeModule().ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_required_elective() !== 31001) {
3172
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_checksum_method_lecturecategorybuilder_required_elective');
3173
+ }
3174
+ if (nativeModule().ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_united_major() !== 40110) {
3175
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_checksum_method_lecturecategorybuilder_united_major');
3176
+ }
3177
+ if (nativeModule().ubrn_uniffi_rusaint_checksum_constructor_lecturecategorybuilder_new() !== 19652) {
3178
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_rusaint_checksum_constructor_lecturecategorybuilder_new');
3179
+ }
3180
+ }
3181
+ export default Object.freeze({
3182
+ initialize: uniffiEnsureInitialized,
3183
+ converters: {
3184
+ FfiConverterTypeChapelAbsenceRequest,
3185
+ FfiConverterTypeChapelAttendance,
3186
+ FfiConverterTypeChapelInformation,
3187
+ FfiConverterTypeClassGrade,
3188
+ FfiConverterTypeClassScore,
3189
+ FfiConverterTypeCourseScheduleInformation,
3190
+ FfiConverterTypeCourseType,
3191
+ FfiConverterTypeGeneralChapelInformation,
3192
+ FfiConverterTypeGradeSummary,
3193
+ FfiConverterTypeGraduationRequirement,
3194
+ FfiConverterTypeGraduationRequirements,
3195
+ FfiConverterTypeGraduationStudent,
3196
+ FfiConverterTypeLecture,
3197
+ FfiConverterTypeLectureAssessmentResult,
3198
+ FfiConverterTypeLectureCategory,
3199
+ FfiConverterTypeLectureCategoryBuilder,
3200
+ FfiConverterTypePersonalCourseSchedule,
3201
+ FfiConverterTypeScholarship,
3202
+ FfiConverterTypeSemesterGrade,
3203
+ FfiConverterTypeSemesterType,
3204
+ FfiConverterTypeStudentAcademicRecord,
3205
+ FfiConverterTypeStudentAcademicRecords,
3206
+ FfiConverterTypeStudentBankAccount,
3207
+ FfiConverterTypeStudentFamily,
3208
+ FfiConverterTypeStudentFamilyMember,
3209
+ FfiConverterTypeStudentForignStudyInformation,
3210
+ FfiConverterTypeStudentGraduation,
3211
+ FfiConverterTypeStudentInformation,
3212
+ FfiConverterTypeStudentLifelongInformation,
3213
+ FfiConverterTypeStudentQualification,
3214
+ FfiConverterTypeStudentReligion,
3215
+ FfiConverterTypeStudentResearchBankAccount,
3216
+ FfiConverterTypeStudentTeachingMajorInformation,
3217
+ FfiConverterTypeStudentTeachingPluralMajorInformation,
3218
+ FfiConverterTypeStudentTransferRecord,
3219
+ FfiConverterTypeStudentTransferRecords,
3220
+ FfiConverterTypeStudentWorkInformation,
3221
+ FfiConverterTypeU32Pair,
3222
+ FfiConverterTypeUnsignedIntPair,
3223
+ FfiConverterTypeWeekday
3224
+ }
3225
+ });
3226
+ //# sourceMappingURL=rusaint.js.map