@faiber/faiber-lms 0.15.1 → 0.16.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.
@@ -3189,10 +3189,17 @@ export interface HomeworkIndexBankGetQuery extends QueryParams {
3189
3189
  /** Backend response type: crate::models::PagedResult<models::HomeworkBankResponse>. */
3190
3190
  export interface HomeworkIndexBankGetResponseItem extends JsonObject {
3191
3191
  "id": string;
3192
+ "course_id"?: string | null;
3193
+ "course_name"?: string | null;
3194
+ "grade_id"?: string | null;
3195
+ "teacher_grade_id"?: string | null;
3192
3196
  "name": string;
3193
3197
  "title"?: string | null;
3194
3198
  "description"?: string | null;
3195
3199
  "status": string;
3200
+ "sort_order": number;
3201
+ "difficulty"?: string | null;
3202
+ "points": number;
3196
3203
  "created_at": string;
3197
3204
  "updated_at": string;
3198
3205
  }
@@ -3210,18 +3217,31 @@ export interface HomeworkIndexBankGetResponse extends ApiEnvelope<HomeworkIndexB
3210
3217
  }
3211
3218
  /** Backend request type: models::CreateHomeworkBankRequest. */
3212
3219
  export interface HomeworkStoreBankPostInput extends JsonObject {
3220
+ "course_id"?: string | null;
3221
+ "grade_id"?: string | null;
3222
+ "teacher_grade_id"?: string | null;
3213
3223
  "name": string;
3214
3224
  "title"?: string | null;
3215
3225
  "description"?: string | null;
3216
3226
  "status"?: string;
3227
+ "sort_order"?: number;
3228
+ "difficulty"?: string | null;
3229
+ "points"?: number;
3217
3230
  }
3218
3231
  /** Backend response type: models::HomeworkBankResponse. */
3219
3232
  export interface HomeworkStoreBankPostResponseData extends JsonObject {
3220
3233
  "id": string;
3234
+ "course_id"?: string | null;
3235
+ "course_name"?: string | null;
3236
+ "grade_id"?: string | null;
3237
+ "teacher_grade_id"?: string | null;
3221
3238
  "name": string;
3222
3239
  "title"?: string | null;
3223
3240
  "description"?: string | null;
3224
3241
  "status": string;
3242
+ "sort_order": number;
3243
+ "difficulty"?: string | null;
3244
+ "points": number;
3225
3245
  "created_at": string;
3226
3246
  "updated_at": string;
3227
3247
  }
@@ -3233,21 +3253,23 @@ export interface HomeworkIndexBankHomeworkGetQuery extends QueryParams {
3233
3253
  "page_size"?: number | null;
3234
3254
  "search"?: string | null;
3235
3255
  "status"?: string | null;
3236
- "difficulty"?: string | null;
3237
- "kind"?: string | null;
3256
+ "question_type"?: string | null;
3257
+ "kind"?: "todo" | "project" | null;
3238
3258
  }
3239
- /** Backend response type: crate::models::PagedResult<models::BankHomeworkResponse>. */
3259
+ /** Backend response type: crate::models::PagedResult<models::QuestionResponse>. */
3240
3260
  export interface HomeworkIndexBankHomeworkGetResponseItem extends JsonObject {
3241
3261
  "id": string;
3242
- "homework_bank_id": string;
3243
- "name": string;
3244
- "title"?: string | null;
3262
+ "homework_id": string;
3263
+ "question_text": string;
3245
3264
  "description"?: string | null;
3265
+ "answer"?: string | null;
3266
+ "question_type": string;
3267
+ "kind": "todo" | "project";
3268
+ "points": number;
3269
+ "is_final": boolean;
3270
+ "media": JsonValue;
3246
3271
  "status": string;
3247
3272
  "sort_order": number;
3248
- "difficulty"?: string | null;
3249
- "points": number;
3250
- "kind": string;
3251
3273
  "created_at": string;
3252
3274
  "updated_at": string;
3253
3275
  }
@@ -3265,27 +3287,31 @@ export interface HomeworkIndexBankHomeworkGetResponse extends ApiEnvelope<Homewo
3265
3287
  }
3266
3288
  /** Backend request type: models::CreateBankHomeworkRequest. */
3267
3289
  export interface HomeworkStoreBankHomeworkPostInput extends JsonObject {
3268
- "name": string;
3269
- "title"?: string | null;
3290
+ "question_text": string;
3270
3291
  "description"?: string | null;
3292
+ "answer"?: string | null;
3293
+ "question_type"?: string;
3294
+ "kind"?: "todo" | "project";
3295
+ "points"?: number;
3296
+ "is_final"?: boolean;
3297
+ "media"?: JsonValue | null;
3271
3298
  "status"?: string;
3272
3299
  "sort_order"?: number;
3273
- "difficulty"?: string | null;
3274
- "points"?: number;
3275
- "kind"?: string;
3276
3300
  }
3277
- /** Backend response type: models::BankHomeworkResponse. */
3301
+ /** Backend response type: models::QuestionResponse. */
3278
3302
  export interface HomeworkStoreBankHomeworkPostResponseData extends JsonObject {
3279
3303
  "id": string;
3280
- "homework_bank_id": string;
3281
- "name": string;
3282
- "title"?: string | null;
3304
+ "homework_id": string;
3305
+ "question_text": string;
3283
3306
  "description"?: string | null;
3307
+ "answer"?: string | null;
3308
+ "question_type": string;
3309
+ "kind": "todo" | "project";
3310
+ "points": number;
3311
+ "is_final": boolean;
3312
+ "media": JsonValue;
3284
3313
  "status": string;
3285
3314
  "sort_order": number;
3286
- "difficulty"?: string | null;
3287
- "points": number;
3288
- "kind": string;
3289
3315
  "created_at": string;
3290
3316
  "updated_at": string;
3291
3317
  }
@@ -3294,18 +3320,20 @@ export interface HomeworkStoreBankHomeworkPostResponse extends ApiEnvelope<Homew
3294
3320
  /** Backend response type: serde_json::Value. */
3295
3321
  export interface HomeworkDestroyBankHomeworkDeleteResponse extends ApiEnvelope<JsonValue> {
3296
3322
  }
3297
- /** Backend response type: models::BankHomeworkResponse. */
3323
+ /** Backend response type: models::QuestionResponse. */
3298
3324
  export interface HomeworkShowBankHomeworkGetResponseData extends JsonObject {
3299
3325
  "id": string;
3300
- "homework_bank_id": string;
3301
- "name": string;
3302
- "title"?: string | null;
3326
+ "homework_id": string;
3327
+ "question_text": string;
3303
3328
  "description"?: string | null;
3329
+ "answer"?: string | null;
3330
+ "question_type": string;
3331
+ "kind": "todo" | "project";
3332
+ "points": number;
3333
+ "is_final": boolean;
3334
+ "media": JsonValue;
3304
3335
  "status": string;
3305
3336
  "sort_order": number;
3306
- "difficulty"?: string | null;
3307
- "points": number;
3308
- "kind": string;
3309
3337
  "created_at": string;
3310
3338
  "updated_at": string;
3311
3339
  }
@@ -3313,27 +3341,31 @@ export interface HomeworkShowBankHomeworkGetResponse extends ApiEnvelope<Homewor
3313
3341
  }
3314
3342
  /** Backend request type: models::UpdateBankHomeworkRequest. */
3315
3343
  export interface HomeworkUpdateBankHomeworkPatchInput extends JsonObject {
3316
- "name"?: string | null;
3317
- "title"?: string | null;
3344
+ "question_text"?: string | null;
3318
3345
  "description"?: string | null;
3346
+ "answer"?: string | null;
3347
+ "question_type"?: string | null;
3348
+ "kind"?: "todo" | "project" | null;
3349
+ "points"?: number | null;
3350
+ "is_final"?: boolean | null;
3351
+ "media"?: JsonValue | null;
3319
3352
  "status"?: string | null;
3320
3353
  "sort_order"?: number | null;
3321
- "difficulty"?: string | null;
3322
- "points"?: number | null;
3323
- "kind"?: string | null;
3324
3354
  }
3325
- /** Backend response type: models::BankHomeworkResponse. */
3355
+ /** Backend response type: models::QuestionResponse. */
3326
3356
  export interface HomeworkUpdateBankHomeworkPatchResponseData extends JsonObject {
3327
3357
  "id": string;
3328
- "homework_bank_id": string;
3329
- "name": string;
3330
- "title"?: string | null;
3358
+ "homework_id": string;
3359
+ "question_text": string;
3331
3360
  "description"?: string | null;
3361
+ "answer"?: string | null;
3362
+ "question_type": string;
3363
+ "kind": "todo" | "project";
3364
+ "points": number;
3365
+ "is_final": boolean;
3366
+ "media": JsonValue;
3332
3367
  "status": string;
3333
3368
  "sort_order": number;
3334
- "difficulty"?: string | null;
3335
- "points": number;
3336
- "kind": string;
3337
3369
  "created_at": string;
3338
3370
  "updated_at": string;
3339
3371
  }
@@ -3345,10 +3377,17 @@ export interface HomeworkDestroyBankDeleteResponse extends ApiEnvelope<JsonValue
3345
3377
  /** Backend response type: models::HomeworkBankResponse. */
3346
3378
  export interface HomeworkShowBankGetResponseData extends JsonObject {
3347
3379
  "id": string;
3380
+ "course_id"?: string | null;
3381
+ "course_name"?: string | null;
3382
+ "grade_id"?: string | null;
3383
+ "teacher_grade_id"?: string | null;
3348
3384
  "name": string;
3349
3385
  "title"?: string | null;
3350
3386
  "description"?: string | null;
3351
3387
  "status": string;
3388
+ "sort_order": number;
3389
+ "difficulty"?: string | null;
3390
+ "points": number;
3352
3391
  "created_at": string;
3353
3392
  "updated_at": string;
3354
3393
  }
@@ -3356,18 +3395,31 @@ export interface HomeworkShowBankGetResponse extends ApiEnvelope<HomeworkShowBan
3356
3395
  }
3357
3396
  /** Backend request type: models::UpdateHomeworkBankRequest. */
3358
3397
  export interface HomeworkUpdateBankPatchInput extends JsonObject {
3398
+ "course_id"?: string | null;
3399
+ "grade_id"?: string | null;
3400
+ "teacher_grade_id"?: string | null;
3359
3401
  "name"?: string | null;
3360
3402
  "title"?: string | null;
3361
3403
  "description"?: string | null;
3362
3404
  "status"?: string | null;
3405
+ "sort_order"?: number | null;
3406
+ "difficulty"?: string | null;
3407
+ "points"?: number | null;
3363
3408
  }
3364
3409
  /** Backend response type: models::HomeworkBankResponse. */
3365
3410
  export interface HomeworkUpdateBankPatchResponseData extends JsonObject {
3366
3411
  "id": string;
3412
+ "course_id"?: string | null;
3413
+ "course_name"?: string | null;
3414
+ "grade_id"?: string | null;
3415
+ "teacher_grade_id"?: string | null;
3367
3416
  "name": string;
3368
3417
  "title"?: string | null;
3369
3418
  "description"?: string | null;
3370
3419
  "status": string;
3420
+ "sort_order": number;
3421
+ "difficulty"?: string | null;
3422
+ "points": number;
3371
3423
  "created_at": string;
3372
3424
  "updated_at": string;
3373
3425
  }
@@ -3381,7 +3433,6 @@ export interface HomeworkIndexHomeworkGetQuery extends QueryParams {
3381
3433
  "status"?: string | null;
3382
3434
  "homework_bank_id"?: string | null;
3383
3435
  "difficulty"?: string | null;
3384
- "kind"?: string | null;
3385
3436
  "course_id"?: string | null;
3386
3437
  "user_id"?: string | null;
3387
3438
  "from"?: string | null;
@@ -3402,7 +3453,6 @@ export interface HomeworkIndexHomeworkGetResponseItem extends JsonObject {
3402
3453
  "sort_order": number;
3403
3454
  "difficulty"?: string | null;
3404
3455
  "points": number;
3405
- "kind": string;
3406
3456
  "created_at": string;
3407
3457
  "updated_at": string;
3408
3458
  }
@@ -3431,7 +3481,6 @@ export interface HomeworkStoreHomeworkPostInput extends JsonObject {
3431
3481
  "sort_order"?: number;
3432
3482
  "difficulty"?: string | null;
3433
3483
  "points"?: number;
3434
- "kind"?: string;
3435
3484
  }
3436
3485
  /** Backend response type: models::HomeworkResponse. */
3437
3486
  export interface HomeworkStoreHomeworkPostResponseData extends JsonObject {
@@ -3448,7 +3497,6 @@ export interface HomeworkStoreHomeworkPostResponseData extends JsonObject {
3448
3497
  "sort_order": number;
3449
3498
  "difficulty"?: string | null;
3450
3499
  "points": number;
3451
- "kind": string;
3452
3500
  "created_at": string;
3453
3501
  "updated_at": string;
3454
3502
  }
@@ -3472,7 +3520,6 @@ export interface HomeworkShowHomeworkGetResponseData extends JsonObject {
3472
3520
  "sort_order": number;
3473
3521
  "difficulty"?: string | null;
3474
3522
  "points": number;
3475
- "kind": string;
3476
3523
  "created_at": string;
3477
3524
  "updated_at": string;
3478
3525
  }
@@ -3491,7 +3538,6 @@ export interface HomeworkUpdateHomeworkPatchInput extends JsonObject {
3491
3538
  "sort_order"?: number | null;
3492
3539
  "difficulty"?: string | null;
3493
3540
  "points"?: number | null;
3494
- "kind"?: string | null;
3495
3541
  }
3496
3542
  /** Backend response type: models::HomeworkResponse. */
3497
3543
  export interface HomeworkUpdateHomeworkPatchResponseData extends JsonObject {
@@ -3508,7 +3554,6 @@ export interface HomeworkUpdateHomeworkPatchResponseData extends JsonObject {
3508
3554
  "sort_order": number;
3509
3555
  "difficulty"?: string | null;
3510
3556
  "points": number;
3511
- "kind": string;
3512
3557
  "created_at": string;
3513
3558
  "updated_at": string;
3514
3559
  }
@@ -3793,24 +3838,30 @@ export interface HomeworkUpdateAssignmentPatchResponseData extends JsonObject {
3793
3838
  }
3794
3839
  export interface HomeworkUpdateAssignmentPatchResponse extends ApiEnvelope<HomeworkUpdateAssignmentPatchResponseData> {
3795
3840
  }
3796
- /** Backend query type: PaginationQuery. */
3841
+ /** Backend query type: models::QuestionListQuery. */
3797
3842
  export interface HomeworkIndexQuestionGetQuery extends QueryParams {
3798
3843
  "page_number"?: number | null;
3799
3844
  "page_size"?: number | null;
3845
+ "homework_id"?: string | null;
3846
+ "search"?: string | null;
3847
+ "status"?: string | null;
3848
+ "question_type"?: string | null;
3849
+ "kind"?: "todo" | "project" | null;
3800
3850
  }
3801
3851
  /** Backend response type: crate::models::PagedResult<models::QuestionResponse>. */
3802
3852
  export interface HomeworkIndexQuestionGetResponseItem extends JsonObject {
3803
3853
  "id": string;
3804
- "exam_id"?: string | null;
3854
+ "homework_id": string;
3805
3855
  "question_text": string;
3856
+ "description"?: string | null;
3857
+ "answer"?: string | null;
3806
3858
  "question_type": string;
3807
- "options"?: BackendJson<"sea_orm::prelude::Json"> | null;
3808
- "correct_answer"?: string | null;
3809
- "sort_order": number;
3810
- "difficulty": string;
3859
+ "kind": "todo" | "project";
3811
3860
  "points": number;
3812
- "media": BackendJson<"sea_orm::prelude::Json">;
3861
+ "is_final": boolean;
3862
+ "media": JsonValue;
3813
3863
  "status": string;
3864
+ "sort_order": number;
3814
3865
  "created_at": string;
3815
3866
  "updated_at": string;
3816
3867
  }
@@ -3828,30 +3879,32 @@ export interface HomeworkIndexQuestionGetResponse extends ApiEnvelope<HomeworkIn
3828
3879
  }
3829
3880
  /** Backend request type: models::CreateQuestionRequest. */
3830
3881
  export interface HomeworkStoreQuestionPostInput extends JsonObject {
3831
- "exam_id"?: string | null;
3882
+ "homework_id": string;
3832
3883
  "question_text": string;
3833
- "question_type": string;
3834
- "options"?: BackendJson<"sea_orm::prelude::Json"> | null;
3835
- "correct_answer"?: string | null;
3836
- "sort_order": number;
3837
- "difficulty"?: string | null;
3838
- "points"?: number | null;
3839
- "media"?: BackendJson<"sea_orm::prelude::Json"> | null;
3840
- "status"?: string | null;
3884
+ "description"?: string | null;
3885
+ "answer"?: string | null;
3886
+ "question_type"?: string;
3887
+ "kind"?: "todo" | "project";
3888
+ "points"?: number;
3889
+ "is_final"?: boolean;
3890
+ "media"?: JsonValue | null;
3891
+ "status"?: string;
3892
+ "sort_order"?: number;
3841
3893
  }
3842
3894
  /** Backend response type: models::QuestionResponse. */
3843
3895
  export interface HomeworkStoreQuestionPostResponseData extends JsonObject {
3844
3896
  "id": string;
3845
- "exam_id"?: string | null;
3897
+ "homework_id": string;
3846
3898
  "question_text": string;
3899
+ "description"?: string | null;
3900
+ "answer"?: string | null;
3847
3901
  "question_type": string;
3848
- "options"?: BackendJson<"sea_orm::prelude::Json"> | null;
3849
- "correct_answer"?: string | null;
3850
- "sort_order": number;
3851
- "difficulty": string;
3902
+ "kind": "todo" | "project";
3852
3903
  "points": number;
3853
- "media": BackendJson<"sea_orm::prelude::Json">;
3904
+ "is_final": boolean;
3905
+ "media": JsonValue;
3854
3906
  "status": string;
3907
+ "sort_order": number;
3855
3908
  "created_at": string;
3856
3909
  "updated_at": string;
3857
3910
  }
@@ -3860,16 +3913,17 @@ export interface HomeworkStoreQuestionPostResponse extends ApiEnvelope<HomeworkS
3860
3913
  /** Backend response type: models::QuestionResponse. */
3861
3914
  export interface HomeworkShowQuestionGetResponseData extends JsonObject {
3862
3915
  "id": string;
3863
- "exam_id"?: string | null;
3916
+ "homework_id": string;
3864
3917
  "question_text": string;
3918
+ "description"?: string | null;
3919
+ "answer"?: string | null;
3865
3920
  "question_type": string;
3866
- "options"?: BackendJson<"sea_orm::prelude::Json"> | null;
3867
- "correct_answer"?: string | null;
3868
- "sort_order": number;
3869
- "difficulty": string;
3921
+ "kind": "todo" | "project";
3870
3922
  "points": number;
3871
- "media": BackendJson<"sea_orm::prelude::Json">;
3923
+ "is_final": boolean;
3924
+ "media": JsonValue;
3872
3925
  "status": string;
3926
+ "sort_order": number;
3873
3927
  "created_at": string;
3874
3928
  "updated_at": string;
3875
3929
  }
@@ -3877,30 +3931,32 @@ export interface HomeworkShowQuestionGetResponse extends ApiEnvelope<HomeworkSho
3877
3931
  }
3878
3932
  /** Backend request type: models::UpdateQuestionRequest. */
3879
3933
  export interface HomeworkUpdateQuestionPatchInput extends JsonObject {
3880
- "exam_id"?: string | null;
3934
+ "homework_id"?: string | null;
3881
3935
  "question_text"?: string | null;
3936
+ "description"?: string | null;
3937
+ "answer"?: string | null;
3882
3938
  "question_type"?: string | null;
3883
- "options"?: BackendJson<"sea_orm::prelude::Json"> | null;
3884
- "correct_answer"?: string | null;
3885
- "sort_order"?: number | null;
3886
- "difficulty"?: string | null;
3939
+ "kind"?: "todo" | "project" | null;
3887
3940
  "points"?: number | null;
3888
- "media"?: BackendJson<"sea_orm::prelude::Json"> | null;
3941
+ "is_final"?: boolean | null;
3942
+ "media"?: JsonValue | null;
3889
3943
  "status"?: string | null;
3944
+ "sort_order"?: number | null;
3890
3945
  }
3891
3946
  /** Backend response type: models::QuestionResponse. */
3892
3947
  export interface HomeworkUpdateQuestionPatchResponseData extends JsonObject {
3893
3948
  "id": string;
3894
- "exam_id"?: string | null;
3949
+ "homework_id": string;
3895
3950
  "question_text": string;
3951
+ "description"?: string | null;
3952
+ "answer"?: string | null;
3896
3953
  "question_type": string;
3897
- "options"?: BackendJson<"sea_orm::prelude::Json"> | null;
3898
- "correct_answer"?: string | null;
3899
- "sort_order": number;
3900
- "difficulty": string;
3954
+ "kind": "todo" | "project";
3901
3955
  "points": number;
3902
- "media": BackendJson<"sea_orm::prelude::Json">;
3956
+ "is_final": boolean;
3957
+ "media": JsonValue;
3903
3958
  "status": string;
3959
+ "sort_order": number;
3904
3960
  "created_at": string;
3905
3961
  "updated_at": string;
3906
3962
  }