@quesmed/types-rn 2.6.18 → 2.6.20

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.
@@ -17,6 +17,7 @@ export interface IMockTestType {
17
17
  }
18
18
  export interface IMockTest {
19
19
  id: Id;
20
+ demo: boolean;
20
21
  createdAt: number | Date;
21
22
  title: string;
22
23
  topicIds: number[];
package/models/User.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ICard } from './Card';
2
2
  import { IConcept } from './Concept';
3
- import { IMarksheet, IMarksheetMark } from './Marksheet';
3
+ import { IMarksheet } from './Marksheet';
4
4
  import { INotification } from './Notification';
5
5
  import { IOsceStation } from './OsceStation';
6
6
  import { IQuestion, IQuestionHighlights } from './Question';
@@ -168,10 +168,9 @@ export interface IUserFlaggedQuestion {
168
168
  updatedAt: number | Date;
169
169
  deletedAt: number | Date;
170
170
  questionId: Id;
171
- question: IQuestion;
171
+ question: Pick<IQuestion, 'id' | 'question' | 'conceptId' | 'typeId' | 'concept'>;
172
172
  userId: Id;
173
173
  markId: Id;
174
- mark: IMarksheetMark;
175
174
  }
176
175
  export interface IUserProgress {
177
176
  id: Id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.18",
3
+ "version": "2.6.20",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -5,6 +5,7 @@ const client_1 = require("@apollo/client");
5
5
  exports.MOCK_TEST_FIELDS = (0, client_1.gql) `
6
6
  fragment MockTestFields on MockTest {
7
7
  id
8
+ demo
8
9
  title
9
10
  passingMark
10
11
  correct
@@ -1099,1084 +1099,21 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
1099
1099
  results {
1100
1100
  createdAt
1101
1101
  id
1102
+ userId
1102
1103
  markId
1103
1104
  questionId
1104
1105
  question {
1105
- conceptId
1106
- difficulty
1107
- dislikes
1108
- explanation
1109
1106
  id
1110
- isLikedByMe
1111
- likes
1112
1107
  question
1113
- totalVotes
1114
1108
  typeId
1115
- highlights {
1116
- start
1117
- end
1118
- text
1119
- part
1120
- tag
1121
- color
1122
- }
1123
- choices {
1124
- id
1125
- explanation
1126
- name
1127
- label
1128
- answer
1129
- votes
1130
- picture {
1131
- id
1132
- createdAt
1133
- updatedAt
1134
- name
1135
- caption
1136
- path
1137
- path512
1138
- path256
1139
- thumbhash
1140
- }
1141
- }
1142
- comments {
1143
- id
1144
- createdAt
1145
- comment
1146
- parentId
1147
- likes
1148
- user {
1149
- id
1150
- displayName
1151
- }
1152
- dislikes
1153
- isLikedByMe
1154
- questionId
1155
- replies {
1156
- id
1157
- createdAt
1158
- comment
1159
- parentId
1160
- user {
1161
- id
1162
- displayName
1163
- }
1164
- likes
1165
- dislikes
1166
- isLikedByMe
1167
- questionId
1168
- }
1169
- }
1109
+ conceptId
1170
1110
  concept {
1171
1111
  id
1172
1112
  name
1173
- status
1174
- totalCards
1175
1113
  topic {
1176
- name
1177
- typeId
1178
- }
1179
- chapter {
1180
- id
1181
- explanation
1182
- pictures {
1183
- id
1184
- createdAt
1185
- updatedAt
1186
- name
1187
- caption
1188
- path
1189
- path512
1190
- path256
1191
- thumbhash
1192
- index
1193
- topicId
1194
- }
1195
- }
1196
- videos {
1197
- id
1198
- status
1199
- title
1200
- museId
1201
- startTime
1202
- endTime
1203
- thumbnail
1204
- concepts {
1205
- id
1206
- name
1207
- }
1208
- live
1209
- description
1210
- duration
1211
- }
1212
- }
1213
- pictures {
1214
- id
1215
- createdAt
1216
- updatedAt
1217
- name
1218
- index
1219
- caption
1220
- path
1221
- path512
1222
- path256
1223
- thumbhash
1224
- topicId
1225
- }
1226
- }
1227
- mark {
1228
- flagged
1229
- questionChoiceId
1230
- timeTaken
1231
- index
1232
- id
1233
- marksheetId
1234
- mark
1235
- question {
1236
- ... on QuestionSBA {
1237
- conceptId
1238
- difficulty
1239
- dislikes
1240
- explanation
1241
- id
1242
- isLikedByMe
1243
- likes
1244
- question
1245
- totalVotes
1246
- typeId
1247
- highlights {
1248
- start
1249
- end
1250
- text
1251
- part
1252
- tag
1253
- color
1254
- }
1255
- choices {
1256
- id
1257
- explanation
1258
- name
1259
- label
1260
- answer
1261
- votes
1262
- picture {
1263
- id
1264
- createdAt
1265
- updatedAt
1266
- name
1267
- caption
1268
- path
1269
- path512
1270
- path256
1271
- thumbhash
1272
- }
1273
- }
1274
- comments {
1275
- id
1276
- createdAt
1277
- comment
1278
- parentId
1279
- likes
1280
- user {
1281
- id
1282
- displayName
1283
- }
1284
- dislikes
1285
- isLikedByMe
1286
- questionId
1287
- replies {
1288
- id
1289
- createdAt
1290
- comment
1291
- parentId
1292
- user {
1293
- id
1294
- displayName
1295
- }
1296
- likes
1297
- dislikes
1298
- isLikedByMe
1299
- questionId
1300
- }
1301
- }
1302
- concept {
1303
- id
1304
- name
1305
- status
1306
- totalCards
1307
- topic {
1308
- id
1309
- name
1310
- typeId
1311
- }
1312
- chapter {
1313
- id
1314
- explanation
1315
- pictures {
1316
- id
1317
- createdAt
1318
- updatedAt
1319
- name
1320
- caption
1321
- path
1322
- path512
1323
- path256
1324
- thumbhash
1325
- index
1326
- topicId
1327
- }
1328
- }
1329
- videos {
1330
- id
1331
- status
1332
- title
1333
- museId
1334
- startTime
1335
- endTime
1336
- thumbnail
1337
- concepts {
1338
- id
1339
- name
1340
- }
1341
- live
1342
- description
1343
- duration
1344
- }
1345
- }
1346
- pictures {
1347
- id
1348
- createdAt
1349
- updatedAt
1350
- name
1351
- index
1352
- caption
1353
- path
1354
- path512
1355
- path256
1356
- thumbhash
1357
- topicId
1358
- }
1359
- difficulty
1360
- psaSectionId
1361
- likes
1362
- dislikes
1363
- isLikedByMe
1364
- sbaAnswer: answer
1365
- }
1366
- ... on QuestionQA {
1367
- conceptId
1368
- difficulty
1369
- dislikes
1370
- explanation
1371
- id
1372
- isLikedByMe
1373
- likes
1374
- question
1375
- totalVotes
1376
- typeId
1377
- highlights {
1378
- start
1379
- end
1380
- text
1381
- part
1382
- tag
1383
- color
1384
- }
1385
- choices {
1386
- id
1387
- explanation
1388
- name
1389
- label
1390
- answer
1391
- votes
1392
- picture {
1393
- id
1394
- createdAt
1395
- updatedAt
1396
- name
1397
- caption
1398
- path
1399
- path512
1400
- path256
1401
- thumbhash
1402
- }
1403
- }
1404
- comments {
1405
- id
1406
- createdAt
1407
- comment
1408
- parentId
1409
- likes
1410
- user {
1411
- id
1412
- displayName
1413
- }
1414
- dislikes
1415
- isLikedByMe
1416
- questionId
1417
- replies {
1418
- id
1419
- createdAt
1420
- comment
1421
- parentId
1422
- user {
1423
- id
1424
- displayName
1425
- }
1426
- likes
1427
- dislikes
1428
- isLikedByMe
1429
- questionId
1430
- }
1431
- }
1432
- concept {
1433
- id
1434
- name
1435
- status
1436
- totalCards
1437
- topic {
1438
- id
1439
- name
1440
- typeId
1441
- }
1442
- chapter {
1443
- id
1444
- explanation
1445
- pictures {
1446
- id
1447
- createdAt
1448
- updatedAt
1449
- name
1450
- caption
1451
- path
1452
- path512
1453
- path256
1454
- thumbhash
1455
- index
1456
- topicId
1457
- }
1458
- }
1459
- videos {
1460
- id
1461
- status
1462
- title
1463
- museId
1464
- startTime
1465
- endTime
1466
- thumbnail
1467
- concepts {
1468
- id
1469
- name
1470
- }
1471
- live
1472
- description
1473
- duration
1474
- }
1475
- }
1476
- pictures {
1477
- id
1478
- createdAt
1479
- updatedAt
1480
- name
1481
- index
1482
- caption
1483
- path
1484
- path512
1485
- path256
1486
- thumbhash
1487
- topicId
1488
- }
1489
- difficulty
1490
- psaSectionId
1491
- likes
1492
- dislikes
1493
- isLikedByMe
1494
- qaAnswer: answer {
1495
- dose
1496
- units
1497
- }
1498
- }
1499
- ... on QuestionMultiA {
1500
- conceptId
1501
- difficulty
1502
- dislikes
1503
- explanation
1504
- id
1505
- isLikedByMe
1506
- likes
1507
- question
1508
- totalVotes
1509
- typeId
1510
- highlights {
1511
- start
1512
- end
1513
- text
1514
- part
1515
- tag
1516
- color
1517
- }
1518
- choices {
1519
- id
1520
- explanation
1521
- name
1522
- label
1523
- answer
1524
- votes
1525
- picture {
1526
- id
1527
- createdAt
1528
- updatedAt
1529
- name
1530
- caption
1531
- path
1532
- path512
1533
- path256
1534
- thumbhash
1535
- }
1536
- }
1537
- comments {
1538
- id
1539
- createdAt
1540
- comment
1541
- parentId
1542
- likes
1543
- user {
1544
- id
1545
- displayName
1546
- }
1547
- dislikes
1548
- isLikedByMe
1549
- questionId
1550
- replies {
1551
- id
1552
- createdAt
1553
- comment
1554
- parentId
1555
- user {
1556
- id
1557
- displayName
1558
- }
1559
- likes
1560
- dislikes
1561
- isLikedByMe
1562
- questionId
1563
- }
1564
- }
1565
- concept {
1566
- id
1567
- name
1568
- status
1569
- totalCards
1570
- topic {
1571
- id
1572
- name
1573
- typeId
1574
- }
1575
- chapter {
1576
- id
1577
- explanation
1578
- pictures {
1579
- id
1580
- createdAt
1581
- updatedAt
1582
- name
1583
- caption
1584
- path
1585
- path512
1586
- path256
1587
- thumbhash
1588
- index
1589
- topicId
1590
- }
1591
- }
1592
- videos {
1593
- id
1594
- status
1595
- title
1596
- museId
1597
- startTime
1598
- endTime
1599
- thumbnail
1600
- concepts {
1601
- id
1602
- name
1603
- }
1604
- live
1605
- description
1606
- duration
1607
- }
1608
- }
1609
- pictures {
1610
- id
1611
- createdAt
1612
- updatedAt
1613
- name
1614
- index
1615
- caption
1616
- path
1617
- path512
1618
- path256
1619
- thumbhash
1620
- topicId
1621
- }
1622
- difficulty
1623
- psaSectionId
1624
- likes
1625
- dislikes
1626
- isLikedByMe
1627
- multiAnswer: answer
1628
- }
1629
- ... on QuestionPrescription {
1630
- conceptId
1631
- difficulty
1632
- dislikes
1633
- explanation
1634
1114
  id
1635
- isLikedByMe
1636
- likes
1637
- question
1638
- totalVotes
1639
- typeId
1640
- highlights {
1641
- start
1642
- end
1643
- text
1644
- part
1645
- tag
1646
- color
1647
- }
1648
- choices {
1649
- id
1650
- explanation
1651
- name
1652
- label
1653
- answer
1654
- votes
1655
- picture {
1656
- id
1657
- createdAt
1658
- updatedAt
1659
- name
1660
- caption
1661
- path
1662
- path512
1663
- path256
1664
- thumbhash
1665
- }
1666
- }
1667
- comments {
1668
- id
1669
- createdAt
1670
- comment
1671
- parentId
1672
- likes
1673
- user {
1674
- id
1675
- displayName
1676
- }
1677
- dislikes
1678
- isLikedByMe
1679
- questionId
1680
- replies {
1681
- id
1682
- createdAt
1683
- comment
1684
- parentId
1685
- user {
1686
- id
1687
- displayName
1688
- }
1689
- likes
1690
- dislikes
1691
- isLikedByMe
1692
- questionId
1693
- }
1694
- }
1695
- concept {
1696
- id
1697
- name
1698
- status
1699
- totalCards
1700
- topic {
1701
- id
1702
- name
1703
- typeId
1704
- }
1705
- chapter {
1706
- id
1707
- explanation
1708
- pictures {
1709
- id
1710
- createdAt
1711
- updatedAt
1712
- name
1713
- caption
1714
- path
1715
- path512
1716
- path256
1717
- thumbhash
1718
- index
1719
- topicId
1720
- }
1721
- }
1722
- videos {
1723
- id
1724
- status
1725
- title
1726
- museId
1727
- startTime
1728
- endTime
1729
- thumbnail
1730
- concepts {
1731
- id
1732
- name
1733
- }
1734
- live
1735
- description
1736
- duration
1737
- }
1738
- }
1739
- pictures {
1740
- id
1741
- createdAt
1742
- updatedAt
1743
- name
1744
- index
1745
- caption
1746
- path
1747
- path512
1748
- path256
1749
- thumbhash
1750
- topicId
1751
- }
1752
- difficulty
1753
- psaSectionId
1754
- likes
1755
- dislikes
1756
- isLikedByMe
1757
- prescribeAnswer: answer {
1758
- dose {
1759
- value
1760
- display
1761
- }
1762
- drug {
1763
- value
1764
- display
1765
- }
1766
- route {
1767
- value
1768
- display
1769
- }
1770
- frequency {
1771
- display
1772
- value
1773
- }
1774
- duration {
1775
- display
1776
- value
1777
- }
1778
- units {
1779
- display
1780
- value
1781
- }
1782
- }
1783
- }
1784
- ... on QuestionEMQ {
1785
- conceptId
1786
- difficulty
1787
- dislikes
1788
- explanation
1789
- id
1790
- isLikedByMe
1791
- likes
1792
- question
1793
- totalVotes
1794
- typeId
1795
- highlights {
1796
- start
1797
- end
1798
- text
1799
- part
1800
- tag
1801
- color
1802
- }
1803
- cases {
1804
- id
1805
- questionId
1806
- case
1807
- explanation
1808
- label
1809
- }
1810
- choices {
1811
- id
1812
- explanation
1813
- name
1814
- label
1815
- answer
1816
- votes
1817
- picture {
1818
- id
1819
- createdAt
1820
- updatedAt
1821
- name
1822
- caption
1823
- path
1824
- path512
1825
- path256
1826
- thumbhash
1827
- }
1828
- }
1829
- comments {
1830
- id
1831
- createdAt
1832
- comment
1833
- parentId
1834
- likes
1835
- user {
1836
- id
1837
- displayName
1838
- }
1839
- dislikes
1840
- isLikedByMe
1841
- questionId
1842
- replies {
1843
- id
1844
- createdAt
1845
- comment
1846
- parentId
1847
- user {
1848
- id
1849
- displayName
1850
- }
1851
- likes
1852
- dislikes
1853
- isLikedByMe
1854
- questionId
1855
- }
1856
- }
1857
- concept {
1858
- id
1859
- name
1860
- status
1861
- totalCards
1862
- topic {
1863
- id
1864
- name
1865
- typeId
1866
- }
1867
- chapter {
1868
- id
1869
- explanation
1870
- pictures {
1871
- id
1872
- createdAt
1873
- updatedAt
1874
- name
1875
- caption
1876
- path
1877
- path512
1878
- path256
1879
- thumbhash
1880
- index
1881
- topicId
1882
- }
1883
- }
1884
- videos {
1885
- id
1886
- status
1887
- title
1888
- museId
1889
- startTime
1890
- endTime
1891
- thumbnail
1892
- concepts {
1893
- id
1894
- name
1895
- }
1896
- live
1897
- description
1898
- duration
1899
- }
1900
- }
1901
- pictures {
1902
- id
1903
- createdAt
1904
- updatedAt
1905
- name
1906
- index
1907
- caption
1908
- path
1909
- path512
1910
- path256
1911
- thumbhash
1912
- topicId
1913
- }
1914
- difficulty
1915
- psaSectionId
1916
- likes
1917
- dislikes
1918
- isLikedByMe
1919
- emqAnswer: answer
1920
- }
1921
- ... on QuestionRanking {
1922
- conceptId
1923
- difficulty
1924
- dislikes
1925
- explanation
1926
- id
1927
- isLikedByMe
1928
- likes
1929
- question
1930
- totalVotes
1931
- typeId
1932
- highlights {
1933
- start
1934
- end
1935
- text
1936
- part
1937
- tag
1938
- color
1939
- }
1940
- choices {
1941
- id
1942
- explanation
1943
- name
1944
- label
1945
- answer
1946
- votes
1947
- picture {
1948
- id
1949
- createdAt
1950
- updatedAt
1951
- name
1952
- caption
1953
- path
1954
- path512
1955
- path256
1956
- thumbhash
1957
- }
1958
- }
1959
- comments {
1960
- id
1961
- createdAt
1962
- comment
1963
- parentId
1964
- likes
1965
- user {
1966
- id
1967
- displayName
1968
- }
1969
- dislikes
1970
- isLikedByMe
1971
- questionId
1972
- replies {
1973
- id
1974
- createdAt
1975
- comment
1976
- parentId
1977
- user {
1978
- id
1979
- displayName
1980
- }
1981
- likes
1982
- dislikes
1983
- isLikedByMe
1984
- questionId
1985
- }
1986
- }
1987
- concept {
1988
- id
1989
- name
1990
- status
1991
- totalCards
1992
- topic {
1993
- id
1994
- name
1995
- typeId
1996
- }
1997
- chapter {
1998
- id
1999
- explanation
2000
- pictures {
2001
- id
2002
- createdAt
2003
- updatedAt
2004
- name
2005
- caption
2006
- path
2007
- path512
2008
- path256
2009
- thumbhash
2010
- index
2011
- topicId
2012
- }
2013
- }
2014
- videos {
2015
- id
2016
- status
2017
- title
2018
- museId
2019
- startTime
2020
- endTime
2021
- thumbnail
2022
- concepts {
2023
- id
2024
- name
2025
- }
2026
- live
2027
- description
2028
- duration
2029
- }
2030
- }
2031
- pictures {
2032
- id
2033
- createdAt
2034
- updatedAt
2035
- name
2036
- index
2037
- caption
2038
- path
2039
- path512
2040
- path256
2041
- thumbhash
2042
- topicId
2043
- }
2044
- difficulty
2045
- psaSectionId
2046
- likes
2047
- dislikes
2048
- isLikedByMe
2049
- rankingAnswer: answer
2050
- }
2051
- ... on QuestionSelect3 {
2052
- conceptId
2053
- difficulty
2054
- dislikes
2055
- explanation
2056
- id
2057
- isLikedByMe
2058
- likes
2059
- question
2060
- totalVotes
1115
+ name
2061
1116
  typeId
2062
- highlights {
2063
- start
2064
- end
2065
- text
2066
- part
2067
- tag
2068
- color
2069
- }
2070
- choices {
2071
- id
2072
- explanation
2073
- name
2074
- label
2075
- answer
2076
- votes
2077
- picture {
2078
- id
2079
- createdAt
2080
- updatedAt
2081
- name
2082
- caption
2083
- path
2084
- path512
2085
- path256
2086
- thumbhash
2087
- }
2088
- }
2089
- comments {
2090
- id
2091
- createdAt
2092
- comment
2093
- parentId
2094
- likes
2095
- user {
2096
- id
2097
- displayName
2098
- }
2099
- dislikes
2100
- isLikedByMe
2101
- questionId
2102
- replies {
2103
- id
2104
- createdAt
2105
- comment
2106
- parentId
2107
- user {
2108
- id
2109
- displayName
2110
- }
2111
- likes
2112
- dislikes
2113
- isLikedByMe
2114
- questionId
2115
- }
2116
- }
2117
- concept {
2118
- id
2119
- name
2120
- status
2121
- totalCards
2122
- topic {
2123
- id
2124
- name
2125
- typeId
2126
- }
2127
- chapter {
2128
- id
2129
- explanation
2130
- pictures {
2131
- id
2132
- createdAt
2133
- updatedAt
2134
- name
2135
- caption
2136
- path
2137
- path512
2138
- path256
2139
- thumbhash
2140
- index
2141
- topicId
2142
- }
2143
- }
2144
- videos {
2145
- id
2146
- status
2147
- title
2148
- museId
2149
- startTime
2150
- endTime
2151
- thumbnail
2152
- concepts {
2153
- id
2154
- name
2155
- }
2156
- live
2157
- description
2158
- duration
2159
- }
2160
- }
2161
- pictures {
2162
- id
2163
- createdAt
2164
- updatedAt
2165
- name
2166
- index
2167
- caption
2168
- path
2169
- path512
2170
- path256
2171
- thumbhash
2172
- topicId
2173
- }
2174
- difficulty
2175
- psaSectionId
2176
- likes
2177
- dislikes
2178
- isLikedByMe
2179
- select3Answer: answer
2180
1117
  }
2181
1118
  }
2182
1119
  }