questionlayoutrefactoring 0.0.48 → 0.0.49

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.
@@ -1,5 +1,5 @@
1
1
  /// <reference path="../../../../src/components/declarations.d.ts" />
2
- export const questionData: ({
2
+ export const questionData: {
3
3
  questionObject: {
4
4
  question_type: string;
5
5
  question: string;
@@ -116,8 +116,6 @@ export const questionData: ({
116
116
  cognitivLevel: string;
117
117
  }[];
118
118
  showGreen: boolean;
119
- answers?: undefined;
120
- answers_layout?: undefined;
121
119
  };
122
120
  userAnswer: {
123
121
  answerResult: {
@@ -127,7 +125,6 @@ export const questionData: ({
127
125
  time_taken: number;
128
126
  }[];
129
127
  overAllResult: boolean;
130
- chatId?: undefined;
131
128
  };
132
129
  dispalyedQues: {
133
130
  basket_id: string;
@@ -394,394 +391,7 @@ export const questionData: ({
394
391
  role: string;
395
392
  content: string;
396
393
  }[];
397
- } | {
398
- questionObject: {
399
- question_type: string;
400
- question: string;
401
- solution: string;
402
- uuid: string;
403
- question_layout: string;
404
- question_student_layout: string[];
405
- options: string[];
406
- options_layout: string[];
407
- answers: string[];
408
- answers_layout: string[];
409
- duration: string;
410
- images: never[];
411
- sub_question: never[];
412
- grades: {
413
- grade: string;
414
- difficulty: string;
415
- }[];
416
- curriculum: string[];
417
- subjects: string[];
418
- chapters: string[];
419
- topics: string[];
420
- sub_topic: never[];
421
- assessmentType: string[];
422
- cognitivLevel: string[];
423
- status: string;
424
- version: string;
425
- is_subquestion: boolean;
426
- created_by: string;
427
- modified_by: string;
428
- is_teacher: boolean;
429
- is_student: boolean;
430
- created_by_id: string;
431
- modified_by_id: string;
432
- createdAt: string;
433
- version_uuid: string;
434
- approved_by_id: string;
435
- approved_by: string;
436
- is_archive: boolean;
437
- layout_type: null;
438
- images_details: never[];
439
- knowledge_cell: string[];
440
- source: string;
441
- option_image_details: never[];
442
- labels: {
443
- normal: {
444
- prompt_id: string;
445
- source_coteacher_uuid: string;
446
- };
447
- syllabus: {
448
- curriculum: string;
449
- grade: string;
450
- subject: string;
451
- chapter: string;
452
- topic: never[];
453
- difficulty: string;
454
- }[];
455
- explanation: {
456
- prompt_id: string;
457
- };
458
- isAdvanced: boolean;
459
- basket: boolean;
460
- };
461
- updatedAt: string;
462
- __v: number;
463
- approvedAt: string;
464
- hintandexplanations: {
465
- _id: string;
466
- hint: never[];
467
- explanation: {
468
- layout_type: string;
469
- data: {
470
- text_layout: string;
471
- text: string;
472
- media_type: string;
473
- media: string;
474
- _id: string;
475
- }[];
476
- _id: string;
477
- }[];
478
- question_id: string;
479
- createdAt: string;
480
- updatedAt: string;
481
- __v: number;
482
- }[];
483
- syllabusMapping: {
484
- curriculum: {
485
- id: string;
486
- title: string;
487
- };
488
- grade: {
489
- id: string;
490
- title: string;
491
- };
492
- subject: {
493
- id: string;
494
- title: string;
495
- };
496
- chapter: {
497
- id: string;
498
- title: string;
499
- };
500
- topic: {
501
- id: string;
502
- title: string;
503
- };
504
- difficulty: {
505
- id: string;
506
- };
507
- assessmentType: string;
508
- cognitivLevel: string;
509
- }[];
510
- showGreen: boolean;
511
- answers_index_hashed_keys?: undefined;
512
- };
513
- userAnswer: {
514
- answerResult: {
515
- actualAnswer: string;
516
- givenAnswer: string;
517
- isCorrect: boolean;
518
- }[];
519
- overAllResult: boolean;
520
- chatId: string;
521
- };
522
- dispalyedQues: {
523
- basket_id: string;
524
- learning_mode: string;
525
- non_basket_id: string;
526
- mode: string;
527
- eval_state: string;
528
- current_status: string;
529
- current_rule: string;
530
- current_step_id: string;
531
- prev_step_id: string;
532
- prev_basket_id: string;
533
- visited_question_indices: {
534
- m_index: number;
535
- s_index: number;
536
- };
537
- contents: never[];
538
- questions: ({
539
- question: string;
540
- user_answer: string;
541
- difficulty_level: string;
542
- result: boolean;
543
- question_sequence: string;
544
- created_at: string;
545
- question_details: {
546
- question_type: string;
547
- question: string;
548
- solution: string;
549
- uuid: string;
550
- question_layout: string;
551
- question_student_layout: string[];
552
- options: string[];
553
- options_layout: string[];
554
- answers: string[];
555
- answers_layout: string[];
556
- duration: string;
557
- images: never[];
558
- sub_question: never[];
559
- grades: {
560
- grade: string;
561
- difficulty: string;
562
- }[];
563
- curriculum: string[];
564
- subjects: string[];
565
- chapters: string[];
566
- topics: string[];
567
- sub_topic: never[];
568
- assessmentType: string[];
569
- cognitivLevel: string[];
570
- status: string;
571
- version: string;
572
- is_subquestion: boolean;
573
- created_by: string;
574
- modified_by: string;
575
- is_teacher: boolean;
576
- is_student: boolean;
577
- created_by_id: string;
578
- modified_by_id: string;
579
- createdAt: string;
580
- version_uuid: string;
581
- approved_by_id: string;
582
- approved_by: string;
583
- is_archive: boolean;
584
- layout_type: null;
585
- images_details: never[];
586
- knowledge_cell: string[];
587
- source: string;
588
- option_image_details: never[];
589
- labels: {
590
- normal: {
591
- prompt_id: string;
592
- source_coteacher_uuid: string;
593
- };
594
- syllabus: {
595
- curriculum: string;
596
- grade: string;
597
- subject: string;
598
- chapter: string;
599
- topic: string;
600
- difficulty: string;
601
- }[];
602
- explanation: {
603
- prompt_id: string;
604
- };
605
- isAdvanced: boolean;
606
- basket: boolean;
607
- };
608
- updatedAt: string;
609
- __v: number;
610
- approvedAt: string;
611
- hintandexplanations: {
612
- _id: string;
613
- hint: never[];
614
- explanation: {
615
- layout_type: string;
616
- data: {
617
- text_layout: string;
618
- text: string;
619
- media_type: string;
620
- media: string;
621
- _id: string;
622
- }[];
623
- _id: string;
624
- }[];
625
- question_id: string;
626
- createdAt: string;
627
- updatedAt: string;
628
- __v: number;
629
- }[];
630
- syllabusMapping: {
631
- curriculum: {
632
- id: string;
633
- title: string;
634
- };
635
- grade: {
636
- id: string;
637
- title: string;
638
- };
639
- subject: {
640
- id: string;
641
- title: string;
642
- };
643
- chapter: {
644
- id: string;
645
- title: string;
646
- };
647
- topic: {
648
- id: string;
649
- title: string;
650
- };
651
- difficulty: {
652
- id: string;
653
- };
654
- assessmentType: string;
655
- cognitivLevel: string;
656
- }[];
657
- };
658
- main_question_count: string;
659
- } | {
660
- question: string;
661
- user_answer: string;
662
- difficulty_level: string;
663
- result: boolean;
664
- question_sequence: string;
665
- created_at: string;
666
- question_details: {
667
- question_type: string;
668
- question: string;
669
- solution: string;
670
- uuid: string;
671
- question_layout: string;
672
- question_student_layout: string[];
673
- options: string[];
674
- options_layout: string[];
675
- answers: string[];
676
- answers_layout: string[];
677
- duration: string;
678
- images: never[];
679
- sub_question: never[];
680
- grades: {
681
- grade: string;
682
- difficulty: string;
683
- }[];
684
- curriculum: string[];
685
- subjects: string[];
686
- chapters: string[];
687
- topics: string[];
688
- sub_topic: never[];
689
- assessmentType: string[];
690
- cognitivLevel: string[];
691
- status: string;
692
- version: string;
693
- is_subquestion: boolean;
694
- created_by: string;
695
- modified_by: string;
696
- is_teacher: boolean;
697
- is_student: boolean;
698
- created_by_id: string;
699
- modified_by_id: string;
700
- createdAt: string;
701
- version_uuid: string;
702
- approved_by_id: string;
703
- approved_by: string;
704
- is_archive: boolean;
705
- layout_type: null;
706
- images_details: never[];
707
- knowledge_cell: string[];
708
- source: string;
709
- option_image_details: never[];
710
- labels: {
711
- normal: {
712
- prompt_id: string;
713
- source_coteacher_uuid: string;
714
- };
715
- syllabus: {
716
- curriculum: string;
717
- grade: string;
718
- subject: string;
719
- chapter: string;
720
- topic: never[];
721
- difficulty: string;
722
- }[];
723
- explanation: {
724
- prompt_id: string;
725
- };
726
- isAdvanced: boolean;
727
- basket: boolean;
728
- };
729
- updatedAt: string;
730
- __v: number;
731
- approvedAt: string;
732
- hintandexplanations: {
733
- _id: string;
734
- hint: never[];
735
- explanation: {
736
- layout_type: string;
737
- data: {
738
- text_layout: string;
739
- text: string;
740
- media_type: string;
741
- media: string;
742
- _id: string;
743
- }[];
744
- _id: string;
745
- }[];
746
- question_id: string;
747
- createdAt: string;
748
- updatedAt: string;
749
- __v: number;
750
- }[];
751
- syllabusMapping: {
752
- curriculum: {
753
- id: string;
754
- title: string;
755
- };
756
- grade: {
757
- id: string;
758
- title: string;
759
- };
760
- subject: {
761
- id: string;
762
- title: string;
763
- };
764
- chapter: {
765
- id: string;
766
- title: string;
767
- };
768
- topic: {
769
- id: string;
770
- title: string;
771
- };
772
- difficulty: {
773
- id: string;
774
- };
775
- assessmentType: string;
776
- cognitivLevel: string;
777
- }[];
778
- };
779
- main_question_count: string;
780
- })[];
781
- total_questions: number;
782
- }[];
783
- history: never[];
784
- })[];
394
+ }[];
785
395
  export const journeyData: {
786
396
  basket_id: string;
787
397
  learning_mode: string;