@quesmed/types 2.2.77 → 2.2.80

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.
@@ -1702,12 +1702,8 @@ export const SAVE_MARKSHEET = gql `
1702
1702
  saveMarksheets(marksheetInput: $marksheetInput) {
1703
1703
  id
1704
1704
  createdAt
1705
- startedAt
1706
- completed
1707
- agoraId
1708
1705
  solo
1709
1706
  state
1710
- endedAt
1711
1707
  marks {
1712
1708
  isAnswered
1713
1709
  id
@@ -2423,25 +2419,22 @@ export const optimisticModifyMarksheetBuilderConfig = (marksheetId, builderConfi
2423
2419
  return {
2424
2420
  restricted: {
2425
2421
  __typename: 'RestrictedMutation',
2426
- modifyMarksheetInfo: {
2422
+ modifyMarksheet: {
2427
2423
  ...marksheet,
2428
2424
  builderConfig: newBuilderConfig,
2429
2425
  },
2430
2426
  },
2431
2427
  };
2432
2428
  };
2433
- export const MODIFY_MARKSHEET_INFO = gql `
2434
- mutation ModifyMarksheetInfo($input: ModifyMarksheetInfoInput) {
2429
+ export const MODIFY_MARKSHEET = gql `
2430
+ mutation ModifyMarksheet($input: ModifyMarksheetInput) {
2435
2431
  restricted {
2436
- modifyMarksheetInfo(input: $input) {
2432
+ modifyMarksheet(input: $input) {
2437
2433
  id
2438
2434
  createdAt
2439
2435
  startedAt
2440
2436
  endedAt
2441
- topicIds
2442
2437
  state
2443
- solo
2444
- agoraId
2445
2438
  completed
2446
2439
  currentMarkId
2447
2440
  topicConceptData
@@ -2454,544 +2447,152 @@ export const MODIFY_MARKSHEET_INFO = gql `
2454
2447
  seenCorrect
2455
2448
  seenIncorrect
2456
2449
  }
2457
- preBuildData {
2458
- buildRef
2450
+ }
2451
+ }
2452
+ }
2453
+ `;
2454
+ /**
2455
+ * MODIFY_BUILDER_CONFIG
2456
+ */
2457
+ export const MODIFY_BUILDER_CONFIG = gql `
2458
+ mutation ModifyMarksheetBuilderConfig($input: ModifyMarksheetInput) {
2459
+ restricted {
2460
+ modifyMarksheet(input: $input) {
2461
+ id
2462
+ builderConfig {
2463
+ difficulty
2464
+ isTest
2465
+ numberOfQuestions
2466
+ secondsPerQuestion
2467
+ unseen
2459
2468
  seenCorrect
2460
2469
  seenIncorrect
2461
- unseen
2462
- }
2463
- topicNames
2464
- source
2465
- user {
2466
- displayName
2467
- id
2468
- }
2469
- users {
2470
- id
2471
- displayName
2472
- }
2473
- activeUsers {
2474
- id
2475
- displayName
2476
2470
  }
2477
- marks {
2478
- id
2479
- flagged
2480
- index
2481
- questionChoiceId
2482
- marksheetId
2483
- timeTaken
2484
- striked
2485
- isAnswered
2486
- mark
2487
- question {
2488
- ... on QuestionSBA {
2489
- conceptId
2490
- difficulty
2491
- dislikes
2492
- explanation
2493
- id
2494
- isLikedByMe
2495
- likes
2496
- question
2497
- totalVotes
2498
- typeId
2499
- choices {
2500
- id
2501
- explanation
2502
- name
2503
- label
2504
- answer
2505
- votes
2506
- picture {
2507
- id
2508
- createdAt
2509
- updatedAt
2510
- name
2511
- caption
2512
- path
2513
- path512
2514
- path256
2515
- }
2516
- }
2517
- comments {
2518
- id
2519
- createdAt
2520
- comment
2521
- likes
2522
- user {
2523
- id
2524
- displayName
2525
- }
2526
- dislikes
2527
- isLikedByMe
2528
- questionId
2529
- replies {
2530
- id
2531
- createdAt
2532
- comment
2533
- user {
2534
- id
2535
- displayName
2536
- }
2537
- likes
2538
- dislikes
2539
- isLikedByMe
2540
- questionId
2541
- }
2542
- }
2543
- concept {
2544
- id
2545
- name
2546
- chapter {
2547
- id
2548
- explanation
2549
- pictures {
2550
- id
2551
- createdAt
2552
- updatedAt
2553
- name
2554
- caption
2555
- path
2556
- path512
2557
- path256
2558
- topicId
2559
- topic {
2560
- id
2561
- name
2562
- typeId
2563
- }
2564
- }
2565
- }
2566
- videos {
2567
- id
2568
- title
2569
- museId
2570
- startTime
2571
- endTime
2572
- thumbnail
2573
- concepts {
2574
- id
2575
- name
2576
- }
2577
- live
2578
- description
2579
- duration
2580
- }
2581
- }
2582
- pictures {
2583
- id
2584
- createdAt
2585
- updatedAt
2586
- name
2587
- caption
2588
- path
2589
- path512
2590
- path256
2591
- topicId
2592
- topic {
2593
- id
2594
- name
2595
- typeId
2596
- }
2597
- }
2598
- difficulty
2599
- psaSectionId
2600
- likes
2601
- dislikes
2602
- isLikedByMe
2603
- sbaAnswer: answer
2604
- }
2605
- ... on QuestionQA {
2606
- conceptId
2607
- difficulty
2608
- dislikes
2609
- explanation
2610
- id
2611
- isLikedByMe
2612
- likes
2613
- question
2614
- totalVotes
2615
- typeId
2616
- choices {
2617
- id
2618
- explanation
2619
- name
2620
- label
2621
- answer
2622
- votes
2623
- picture {
2624
- id
2625
- createdAt
2626
- updatedAt
2627
- name
2628
- caption
2629
- path
2630
- path512
2631
- path256
2632
- }
2633
- }
2634
- comments {
2635
- id
2636
- createdAt
2637
- comment
2638
- likes
2639
- user {
2640
- id
2641
- displayName
2642
- }
2643
- dislikes
2644
- isLikedByMe
2645
- questionId
2646
- replies {
2647
- id
2648
- createdAt
2649
- comment
2650
- user {
2651
- id
2652
- displayName
2653
- }
2654
- likes
2655
- dislikes
2656
- isLikedByMe
2657
- questionId
2658
- }
2659
- }
2660
- concept {
2661
- id
2662
- name
2663
- chapter {
2664
- id
2665
- explanation
2666
- pictures {
2667
- id
2668
- createdAt
2669
- updatedAt
2670
- name
2671
- caption
2672
- path
2673
- path512
2674
- path256
2675
- topicId
2676
- topic {
2677
- id
2678
- name
2679
- typeId
2680
- }
2681
- }
2682
- }
2683
- videos {
2684
- id
2685
- title
2686
- museId
2687
- startTime
2688
- endTime
2689
- thumbnail
2690
- concepts {
2691
- id
2692
- name
2693
- }
2694
- live
2695
- description
2696
- duration
2697
- }
2698
- }
2699
- pictures {
2700
- id
2701
- createdAt
2702
- updatedAt
2703
- name
2704
- caption
2705
- path
2706
- path512
2707
- path256
2708
- topicId
2709
- topic {
2710
- id
2711
- name
2712
- typeId
2713
- }
2714
- }
2715
- difficulty
2716
- psaSectionId
2717
- likes
2718
- dislikes
2719
- isLikedByMe
2720
- qaAnswer: answer {
2721
- dose
2722
- units
2723
- }
2724
- }
2725
- ... on QuestionMultiA {
2726
- conceptId
2727
- difficulty
2728
- dislikes
2729
- explanation
2730
- id
2731
- isLikedByMe
2732
- likes
2733
- question
2734
- totalVotes
2735
- typeId
2736
- choices {
2737
- id
2738
- explanation
2739
- name
2740
- label
2741
- answer
2742
- votes
2743
- picture {
2744
- id
2745
- createdAt
2746
- updatedAt
2747
- name
2748
- caption
2749
- path
2750
- path512
2751
- path256
2752
- }
2753
- }
2754
- comments {
2755
- id
2756
- createdAt
2757
- comment
2758
- likes
2759
- user {
2760
- id
2761
- displayName
2762
- }
2763
- dislikes
2764
- isLikedByMe
2765
- questionId
2766
- replies {
2767
- id
2768
- createdAt
2769
- comment
2770
- user {
2771
- id
2772
- displayName
2773
- }
2774
- likes
2775
- dislikes
2776
- isLikedByMe
2777
- questionId
2778
- }
2779
- }
2780
- concept {
2781
- id
2782
- name
2783
- chapter {
2784
- id
2785
- explanation
2786
- pictures {
2787
- id
2788
- createdAt
2789
- updatedAt
2790
- name
2791
- caption
2792
- path
2793
- path512
2794
- path256
2795
- topicId
2796
- topic {
2797
- id
2798
- name
2799
- typeId
2800
- }
2801
- }
2802
- }
2803
- videos {
2804
- id
2805
- title
2806
- museId
2807
- startTime
2808
- endTime
2809
- thumbnail
2810
- concepts {
2811
- id
2812
- name
2813
- }
2814
- live
2815
- description
2816
- duration
2817
- }
2818
- }
2819
- pictures {
2820
- id
2821
- createdAt
2822
- updatedAt
2823
- name
2824
- caption
2825
- path
2826
- path512
2827
- path256
2828
- topicId
2829
- topic {
2830
- id
2831
- name
2832
- typeId
2833
- }
2834
- }
2835
- difficulty
2836
- psaSectionId
2837
- likes
2838
- dislikes
2839
- isLikedByMe
2840
- multiAnswer: answer
2841
- }
2842
- ... on QuestionPrescription {
2843
- conceptId
2844
- difficulty
2845
- dislikes
2846
- explanation
2847
- id
2848
- isLikedByMe
2849
- likes
2850
- question
2851
- totalVotes
2852
- typeId
2853
- choices {
2854
- id
2855
- explanation
2856
- name
2857
- label
2858
- answer
2859
- votes
2860
- picture {
2861
- id
2862
- createdAt
2863
- updatedAt
2864
- name
2865
- caption
2866
- path
2867
- path512
2868
- path256
2869
- }
2870
- }
2871
- comments {
2872
- id
2873
- createdAt
2874
- comment
2875
- likes
2876
- user {
2877
- id
2878
- displayName
2879
- }
2880
- dislikes
2881
- isLikedByMe
2882
- questionId
2883
- replies {
2884
- id
2885
- createdAt
2886
- comment
2887
- user {
2888
- id
2889
- displayName
2890
- }
2891
- likes
2892
- dislikes
2893
- isLikedByMe
2894
- questionId
2895
- }
2896
- }
2897
- concept {
2898
- id
2899
- name
2900
- chapter {
2901
- id
2902
- explanation
2903
- pictures {
2904
- id
2905
- createdAt
2906
- updatedAt
2907
- name
2908
- caption
2909
- path
2910
- path512
2911
- path256
2912
- topicId
2913
- topic {
2914
- id
2915
- name
2916
- typeId
2917
- }
2918
- }
2919
- }
2920
- videos {
2921
- id
2922
- title
2923
- museId
2924
- startTime
2925
- endTime
2926
- thumbnail
2927
- concepts {
2928
- id
2929
- name
2930
- }
2931
- live
2932
- description
2933
- duration
2934
- }
2935
- }
2936
- pictures {
2937
- id
2938
- createdAt
2939
- updatedAt
2940
- name
2941
- caption
2942
- path
2943
- path512
2944
- path256
2945
- topicId
2946
- topic {
2947
- id
2948
- name
2949
- typeId
2950
- }
2951
- }
2952
- difficulty
2953
- psaSectionId
2954
- likes
2955
- dislikes
2956
- isLikedByMe
2957
- prescribeAnswer: answer {
2958
- dose {
2959
- value
2960
- display
2961
- }
2962
- drug {
2963
- value
2964
- display
2965
- }
2966
- route {
2967
- value
2968
- display
2969
- }
2970
- frequency {
2971
- display
2972
- value
2973
- }
2974
- duration {
2975
- display
2976
- value
2977
- }
2978
- units {
2979
- display
2980
- value
2981
- }
2982
- }
2983
- }
2984
- }
2985
- }
2986
- mockTestId
2987
- correct
2988
- incorrect
2989
- totalQuestions
2990
- isTestMarksheet
2991
2471
  }
2992
2472
  }
2993
2473
  }
2994
2474
  `;
2475
+ export const MODIFY_BUILDER_CONFIG_FRAGMENT = gql `
2476
+ fragment MarksheetBuilderConfig on Marksheet {
2477
+ builderConfig {
2478
+ difficulty
2479
+ isTest
2480
+ numberOfQuestions
2481
+ secondsPerQuestion
2482
+ unseen
2483
+ seenCorrect
2484
+ seenIncorrect
2485
+ }
2486
+ }
2487
+ `;
2488
+ /**
2489
+ * MODIFY_TOPIC_SELECTION
2490
+ */
2491
+ export const MODIFY_TOPIC_SELECTION = gql `
2492
+ mutation ModifyMarksheetTopicSelection($input: ModifyMarksheetInput) {
2493
+ restricted {
2494
+ modifyMarksheet(input: $input) {
2495
+ id
2496
+ topicConceptData
2497
+ }
2498
+ }
2499
+ }
2500
+ `;
2501
+ export const MODIFY_TOPIC_SELECTION_FRAGMENT = gql `
2502
+ fragment MarksheetTopicSelection on Marksheet {
2503
+ topicConceptData
2504
+ }
2505
+ `;
2506
+ export const MODIFY_CURRENT_MARK_FRAGMENT = gql `
2507
+ fragment MarksheetCurrentMark on Marksheet {
2508
+ currentMarkId
2509
+ }
2510
+ `;
2511
+ /**
2512
+ * MODIFY_MARKSHEET_STATE
2513
+ */
2514
+ export const MODIFY_MARKSHEET_STATE = gql `
2515
+ mutation ModifyMarksheetState($input: ModifyMarksheetInput) {
2516
+ restricted {
2517
+ modifyMarksheet(input: $input) {
2518
+ id
2519
+ state
2520
+ }
2521
+ }
2522
+ }
2523
+ `;
2524
+ export const MODIFY_MARKSHEET_STATE_FRAGMENT = gql `
2525
+ fragment MarksheetState on Marksheet {
2526
+ state
2527
+ }
2528
+ `;
2529
+ export const MODIFY_MARKSHEET_MARK = gql `
2530
+ mutation ModifyMarksheetMark($input: ModifyMarksheetMarkInput) {
2531
+ restricted {
2532
+ modifyMarksheetMark(input: $input) {
2533
+ id
2534
+ createdAt
2535
+ updatedAt
2536
+ index
2537
+ marksheetId
2538
+ questionChoiceId
2539
+ timeTaken
2540
+ mark
2541
+ isAnswered
2542
+ striked
2543
+ }
2544
+ }
2545
+ }
2546
+ `;
2547
+ export const MODIFY_MARKSHEET_MARK_STRIKED = gql `
2548
+ mutation ModifyMarksheetMarkStriked($input: ModifyMarksheetMarkInput) {
2549
+ restricted {
2550
+ modifyMarksheetMark(input: $input) {
2551
+ id
2552
+ striked
2553
+ }
2554
+ }
2555
+ }
2556
+ `;
2557
+ export const MODIFY_MARKSHEET_MARK_STRIKED_FRAGMENT = gql `
2558
+ fragment MarksheetMarkSriked on MarksheetMark {
2559
+ striked
2560
+ }
2561
+ `;
2562
+ export const MODIFY_MARKSHEET_MARK_QUESTIONCHOICEID = gql `
2563
+ mutation ModifyMarksheetMarkQuestionChoiceId(
2564
+ $input: ModifyMarksheetMarkInput
2565
+ ) {
2566
+ restricted {
2567
+ modifyMarksheetMark(input: $input) {
2568
+ id
2569
+ questionChoiceId
2570
+ }
2571
+ }
2572
+ }
2573
+ `;
2574
+ export const MODIFY_MARKSHEET_MARK_QUESTIONCHOICEID_FRAGMENT = gql `
2575
+ fragment MarksheetMarkTimeTaken on MarksheetMark {
2576
+ questionChoiceId
2577
+ }
2578
+ `;
2579
+ export const MODIFY_CURRENT_MARKSHEET_MARK = gql `
2580
+ mutation ModifyCurrentMarksheetMark($input: ModifyMarksheetMarkInput) {
2581
+ restricted {
2582
+ modifyMarksheetMark(input: $input) {
2583
+ id
2584
+ index
2585
+ timeTaken
2586
+ }
2587
+ }
2588
+ }
2589
+ `;
2590
+ export const MODIFY_CURRENT_MARKSHEET_MARK_FRAGMENT = gql `
2591
+ fragment CurrentMarksheetMark on MarksheetMark {
2592
+ index
2593
+ timeTaken
2594
+ }
2595
+ `;
2995
2596
  export const LEAVE_MARKSHEET = gql `
2996
2597
  mutation LeaveMarksheet($marksheetId: Int!) {
2997
2598
  restricted {