@quesmed/types 2.2.48 → 2.2.51

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.
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.USER_COMPLETED_DATA = exports.REFERRALS = exports.USER = void 0;
4
4
  const client_1 = require("@apollo/client");
5
+ const fragments_1 = require("../../fragments");
5
6
  const user_1 = require("../../fragments/user");
6
7
  exports.USER = (0, client_1.gql) `
7
8
  ${user_1.USER_FIELDS}
@@ -25,15 +26,40 @@ exports.REFERRALS = (0, client_1.gql) `
25
26
  }
26
27
  `;
27
28
  exports.USER_COMPLETED_DATA = (0, client_1.gql) `
29
+ ${fragments_1.PICTURE_FIELDS}
28
30
  query CompletedQuestionCards {
29
31
  restricted {
30
32
  user {
31
- id
32
- displayName
33
33
  completedCards {
34
34
  id
35
+ createdAt
36
+ updatedAt
35
37
  concept {
36
38
  id
39
+ name
40
+ }
41
+ lastSeen
42
+ reviewDate
43
+ score
44
+ iteration
45
+ optimalFactor
46
+ cardId
47
+ card {
48
+ id
49
+ conceptId
50
+ concept {
51
+ id
52
+ name
53
+ }
54
+ topic {
55
+ id
56
+ name
57
+ }
58
+ question
59
+ explanation
60
+ pictures {
61
+ ...PictureFields
62
+ }
37
63
  }
38
64
  }
39
65
  completedCardsCount
@@ -1793,7 +1793,623 @@ export const ADD_FLAGGED_QUESTION = gql `
1793
1793
  mutation AddFlaggedQuestion($markId: Int!, $questionId: Int!) {
1794
1794
  restricted {
1795
1795
  addFlaggedQuestion(markId: $markId, questionId: $questionId) {
1796
- id
1796
+ question {
1797
+ conceptId
1798
+ difficulty
1799
+ dislikes
1800
+ explanation
1801
+ id
1802
+ isLikedByMe
1803
+ likes
1804
+ question
1805
+ totalVotes
1806
+ typeId
1807
+ choices {
1808
+ id
1809
+ explanation
1810
+ name
1811
+ label
1812
+ answer
1813
+ votes
1814
+ picture {
1815
+ id
1816
+ createdAt
1817
+ updatedAt
1818
+ name
1819
+ caption
1820
+ path
1821
+ path512
1822
+ path256
1823
+ }
1824
+ }
1825
+ comments {
1826
+ id
1827
+ createdAt
1828
+ comment
1829
+ likes
1830
+ user {
1831
+ id
1832
+ displayName
1833
+ }
1834
+ dislikes
1835
+ isLikedByMe
1836
+ questionId
1837
+ replies {
1838
+ id
1839
+ createdAt
1840
+ comment
1841
+ user {
1842
+ id
1843
+ displayName
1844
+ }
1845
+ likes
1846
+ dislikes
1847
+ isLikedByMe
1848
+ questionId
1849
+ }
1850
+ }
1851
+ concept {
1852
+ id
1853
+ name
1854
+ chapter {
1855
+ id
1856
+ explanation
1857
+ pictures {
1858
+ id
1859
+ createdAt
1860
+ updatedAt
1861
+ name
1862
+ caption
1863
+ path
1864
+ path512
1865
+ path256
1866
+ topicId
1867
+ topic {
1868
+ id
1869
+ name
1870
+ typeId
1871
+ }
1872
+ }
1873
+ }
1874
+ videos {
1875
+ id
1876
+ title
1877
+ museId
1878
+ startTime
1879
+ endTime
1880
+ thumbnail
1881
+ concepts {
1882
+ id
1883
+ name
1884
+ }
1885
+ live
1886
+ description
1887
+ duration
1888
+ }
1889
+ }
1890
+ pictures {
1891
+ id
1892
+ createdAt
1893
+ updatedAt
1894
+ name
1895
+ caption
1896
+ path
1897
+ path512
1898
+ path256
1899
+ topicId
1900
+ topic {
1901
+ id
1902
+ name
1903
+ typeId
1904
+ }
1905
+ }
1906
+ }
1907
+ mark {
1908
+ flagged
1909
+ questionChoiceId
1910
+ timeTaken
1911
+ index
1912
+ id
1913
+ mark
1914
+ question {
1915
+ ... on QuestionSBA {
1916
+ conceptId
1917
+ difficulty
1918
+ dislikes
1919
+ explanation
1920
+ id
1921
+ isLikedByMe
1922
+ likes
1923
+ question
1924
+ totalVotes
1925
+ typeId
1926
+ choices {
1927
+ id
1928
+ explanation
1929
+ name
1930
+ label
1931
+ answer
1932
+ votes
1933
+ picture {
1934
+ id
1935
+ createdAt
1936
+ updatedAt
1937
+ name
1938
+ caption
1939
+ path
1940
+ path512
1941
+ path256
1942
+ }
1943
+ }
1944
+ comments {
1945
+ id
1946
+ createdAt
1947
+ comment
1948
+ likes
1949
+ user {
1950
+ id
1951
+ displayName
1952
+ }
1953
+ dislikes
1954
+ isLikedByMe
1955
+ questionId
1956
+ replies {
1957
+ id
1958
+ createdAt
1959
+ comment
1960
+ user {
1961
+ id
1962
+ displayName
1963
+ }
1964
+ likes
1965
+ dislikes
1966
+ isLikedByMe
1967
+ questionId
1968
+ }
1969
+ }
1970
+ concept {
1971
+ id
1972
+ name
1973
+ chapter {
1974
+ id
1975
+ explanation
1976
+ pictures {
1977
+ id
1978
+ createdAt
1979
+ updatedAt
1980
+ name
1981
+ caption
1982
+ path
1983
+ path512
1984
+ path256
1985
+ topicId
1986
+ topic {
1987
+ id
1988
+ name
1989
+ typeId
1990
+ }
1991
+ }
1992
+ }
1993
+ videos {
1994
+ id
1995
+ title
1996
+ museId
1997
+ startTime
1998
+ endTime
1999
+ thumbnail
2000
+ concepts {
2001
+ id
2002
+ name
2003
+ }
2004
+ live
2005
+ description
2006
+ duration
2007
+ }
2008
+ }
2009
+ pictures {
2010
+ id
2011
+ createdAt
2012
+ updatedAt
2013
+ name
2014
+ caption
2015
+ path
2016
+ path512
2017
+ path256
2018
+ topicId
2019
+ topic {
2020
+ id
2021
+ name
2022
+ typeId
2023
+ }
2024
+ }
2025
+ difficulty
2026
+ psaSectionId
2027
+ likes
2028
+ dislikes
2029
+ isLikedByMe
2030
+ sbaAnswer: answer
2031
+ }
2032
+ ... on QuestionQA {
2033
+ conceptId
2034
+ difficulty
2035
+ dislikes
2036
+ explanation
2037
+ id
2038
+ isLikedByMe
2039
+ likes
2040
+ question
2041
+ totalVotes
2042
+ typeId
2043
+ choices {
2044
+ id
2045
+ explanation
2046
+ name
2047
+ label
2048
+ answer
2049
+ votes
2050
+ picture {
2051
+ id
2052
+ createdAt
2053
+ updatedAt
2054
+ name
2055
+ caption
2056
+ path
2057
+ path512
2058
+ path256
2059
+ }
2060
+ }
2061
+ comments {
2062
+ id
2063
+ createdAt
2064
+ comment
2065
+ likes
2066
+ user {
2067
+ id
2068
+ displayName
2069
+ }
2070
+ dislikes
2071
+ isLikedByMe
2072
+ questionId
2073
+ replies {
2074
+ id
2075
+ createdAt
2076
+ comment
2077
+ user {
2078
+ id
2079
+ displayName
2080
+ }
2081
+ likes
2082
+ dislikes
2083
+ isLikedByMe
2084
+ questionId
2085
+ }
2086
+ }
2087
+ concept {
2088
+ id
2089
+ name
2090
+ chapter {
2091
+ id
2092
+ explanation
2093
+ pictures {
2094
+ id
2095
+ createdAt
2096
+ updatedAt
2097
+ name
2098
+ caption
2099
+ path
2100
+ path512
2101
+ path256
2102
+ topicId
2103
+ topic {
2104
+ id
2105
+ name
2106
+ typeId
2107
+ }
2108
+ }
2109
+ }
2110
+ videos {
2111
+ id
2112
+ title
2113
+ museId
2114
+ startTime
2115
+ endTime
2116
+ thumbnail
2117
+ concepts {
2118
+ id
2119
+ name
2120
+ }
2121
+ live
2122
+ description
2123
+ duration
2124
+ }
2125
+ }
2126
+ pictures {
2127
+ id
2128
+ createdAt
2129
+ updatedAt
2130
+ name
2131
+ caption
2132
+ path
2133
+ path512
2134
+ path256
2135
+ topicId
2136
+ topic {
2137
+ id
2138
+ name
2139
+ typeId
2140
+ }
2141
+ }
2142
+ difficulty
2143
+ psaSectionId
2144
+ likes
2145
+ dislikes
2146
+ isLikedByMe
2147
+ qaAnswer: answer {
2148
+ dose
2149
+ units
2150
+ }
2151
+ }
2152
+ ... on QuestionMultiA {
2153
+ conceptId
2154
+ difficulty
2155
+ dislikes
2156
+ explanation
2157
+ id
2158
+ isLikedByMe
2159
+ likes
2160
+ question
2161
+ totalVotes
2162
+ typeId
2163
+ choices {
2164
+ id
2165
+ explanation
2166
+ name
2167
+ label
2168
+ answer
2169
+ votes
2170
+ picture {
2171
+ id
2172
+ createdAt
2173
+ updatedAt
2174
+ name
2175
+ caption
2176
+ path
2177
+ path512
2178
+ path256
2179
+ }
2180
+ }
2181
+ comments {
2182
+ id
2183
+ createdAt
2184
+ comment
2185
+ likes
2186
+ user {
2187
+ id
2188
+ displayName
2189
+ }
2190
+ dislikes
2191
+ isLikedByMe
2192
+ questionId
2193
+ replies {
2194
+ id
2195
+ createdAt
2196
+ comment
2197
+ user {
2198
+ id
2199
+ displayName
2200
+ }
2201
+ likes
2202
+ dislikes
2203
+ isLikedByMe
2204
+ questionId
2205
+ }
2206
+ }
2207
+ concept {
2208
+ id
2209
+ name
2210
+ chapter {
2211
+ id
2212
+ explanation
2213
+ pictures {
2214
+ id
2215
+ createdAt
2216
+ updatedAt
2217
+ name
2218
+ caption
2219
+ path
2220
+ path512
2221
+ path256
2222
+ topicId
2223
+ topic {
2224
+ id
2225
+ name
2226
+ typeId
2227
+ }
2228
+ }
2229
+ }
2230
+ videos {
2231
+ id
2232
+ title
2233
+ museId
2234
+ startTime
2235
+ endTime
2236
+ thumbnail
2237
+ concepts {
2238
+ id
2239
+ name
2240
+ }
2241
+ live
2242
+ description
2243
+ duration
2244
+ }
2245
+ }
2246
+ pictures {
2247
+ id
2248
+ createdAt
2249
+ updatedAt
2250
+ name
2251
+ caption
2252
+ path
2253
+ path512
2254
+ path256
2255
+ topicId
2256
+ topic {
2257
+ id
2258
+ name
2259
+ typeId
2260
+ }
2261
+ }
2262
+ difficulty
2263
+ psaSectionId
2264
+ likes
2265
+ dislikes
2266
+ isLikedByMe
2267
+ multiAnswer: answer
2268
+ }
2269
+ ... on QuestionPrescription {
2270
+ conceptId
2271
+ difficulty
2272
+ dislikes
2273
+ explanation
2274
+ id
2275
+ isLikedByMe
2276
+ likes
2277
+ question
2278
+ totalVotes
2279
+ typeId
2280
+ choices {
2281
+ id
2282
+ explanation
2283
+ name
2284
+ label
2285
+ answer
2286
+ votes
2287
+ picture {
2288
+ id
2289
+ createdAt
2290
+ updatedAt
2291
+ name
2292
+ caption
2293
+ path
2294
+ path512
2295
+ path256
2296
+ }
2297
+ }
2298
+ comments {
2299
+ id
2300
+ createdAt
2301
+ comment
2302
+ likes
2303
+ user {
2304
+ id
2305
+ displayName
2306
+ }
2307
+ dislikes
2308
+ isLikedByMe
2309
+ questionId
2310
+ replies {
2311
+ id
2312
+ createdAt
2313
+ comment
2314
+ user {
2315
+ id
2316
+ displayName
2317
+ }
2318
+ likes
2319
+ dislikes
2320
+ isLikedByMe
2321
+ questionId
2322
+ }
2323
+ }
2324
+ concept {
2325
+ id
2326
+ name
2327
+ chapter {
2328
+ id
2329
+ explanation
2330
+ pictures {
2331
+ id
2332
+ createdAt
2333
+ updatedAt
2334
+ name
2335
+ caption
2336
+ path
2337
+ path512
2338
+ path256
2339
+ topicId
2340
+ topic {
2341
+ id
2342
+ name
2343
+ typeId
2344
+ }
2345
+ }
2346
+ }
2347
+ videos {
2348
+ id
2349
+ title
2350
+ museId
2351
+ startTime
2352
+ endTime
2353
+ thumbnail
2354
+ concepts {
2355
+ id
2356
+ name
2357
+ }
2358
+ live
2359
+ description
2360
+ duration
2361
+ }
2362
+ }
2363
+ pictures {
2364
+ id
2365
+ createdAt
2366
+ updatedAt
2367
+ name
2368
+ caption
2369
+ path
2370
+ path512
2371
+ path256
2372
+ topicId
2373
+ topic {
2374
+ id
2375
+ name
2376
+ typeId
2377
+ }
2378
+ }
2379
+ difficulty
2380
+ psaSectionId
2381
+ likes
2382
+ dislikes
2383
+ isLikedByMe
2384
+ prescribeAnswer: answer {
2385
+ dose {
2386
+ value
2387
+ display
2388
+ }
2389
+ drug {
2390
+ value
2391
+ display
2392
+ }
2393
+ route {
2394
+ value
2395
+ display
2396
+ }
2397
+ frequency {
2398
+ display
2399
+ value
2400
+ }
2401
+ duration {
2402
+ display
2403
+ value
2404
+ }
2405
+ units {
2406
+ display
2407
+ value
2408
+ }
2409
+ }
2410
+ }
2411
+ }
2412
+ }
1797
2413
  }
1798
2414
  }
1799
2415
  }
@@ -91,8 +91,18 @@ export const ADD_TO_DAILY_STACK = gql `
91
91
  score
92
92
  iteration
93
93
  optimalFactor
94
+ cardId
94
95
  card {
95
96
  id
97
+ conceptId
98
+ concept {
99
+ id
100
+ name
101
+ }
102
+ topic {
103
+ id
104
+ name
105
+ }
96
106
  question
97
107
  explanation
98
108
  pictures {
@@ -663,6 +663,10 @@ export const FLAGGED_QUESTIONS = gql `
663
663
  concept {
664
664
  id
665
665
  name
666
+ topic {
667
+ name
668
+ typeId
669
+ }
666
670
  chapter {
667
671
  id
668
672
  explanation