@quesmed/types-rn 2.2.33 → 2.2.36

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.
@@ -9,6 +9,11 @@ export declare enum EMarksheetState {
9
9
  STATION = 3,
10
10
  RESULT = 4
11
11
  }
12
+ export declare enum EMarksheetType {
13
+ MOCKTEST = 0,
14
+ SOLO_STUDY = 1,
15
+ GROUP_STUDY = 2
16
+ }
12
17
  export declare enum EMarksheetAction {
13
18
  PRESTART = 0,
14
19
  START = 1,
@@ -41,6 +46,7 @@ export interface IMarksheet {
41
46
  updatedAt: number | Date;
42
47
  deletedAt: number | Date;
43
48
  startedAt: number | Date;
49
+ type: EMarksheetType;
44
50
  endedAt: number | Date;
45
51
  topicIds: number[];
46
52
  topicNames?: string[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EMarksheetAction = exports.EMarksheetState = void 0;
3
+ exports.EMarksheetAction = exports.EMarksheetType = exports.EMarksheetState = void 0;
4
4
  var EMarksheetState;
5
5
  (function (EMarksheetState) {
6
6
  EMarksheetState[EMarksheetState["LOBBY"] = 0] = "LOBBY";
@@ -9,6 +9,12 @@ var EMarksheetState;
9
9
  EMarksheetState[EMarksheetState["STATION"] = 3] = "STATION";
10
10
  EMarksheetState[EMarksheetState["RESULT"] = 4] = "RESULT";
11
11
  })(EMarksheetState = exports.EMarksheetState || (exports.EMarksheetState = {}));
12
+ var EMarksheetType;
13
+ (function (EMarksheetType) {
14
+ EMarksheetType[EMarksheetType["MOCKTEST"] = 0] = "MOCKTEST";
15
+ EMarksheetType[EMarksheetType["SOLO_STUDY"] = 1] = "SOLO_STUDY";
16
+ EMarksheetType[EMarksheetType["GROUP_STUDY"] = 2] = "GROUP_STUDY";
17
+ })(EMarksheetType = exports.EMarksheetType || (exports.EMarksheetType = {}));
12
18
  var EMarksheetAction;
13
19
  (function (EMarksheetAction) {
14
20
  EMarksheetAction[EMarksheetAction["PRESTART"] = 0] = "PRESTART";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.2.33",
3
+ "version": "2.2.36",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -11,6 +11,7 @@ exports.BUILD_MARKSHEET = (0, client_1.gql) `
11
11
  createdAt
12
12
  startedAt
13
13
  endedAt
14
+ agoraId
14
15
  topicIds
15
16
  completed
16
17
  solo
@@ -1127,6 +1128,9 @@ exports.SAVE_MARKSHEET = (0, client_1.gql) `
1127
1128
  createdAt
1128
1129
  startedAt
1129
1130
  completed
1131
+ agoraId
1132
+ solo
1133
+ state
1130
1134
  endedAt
1131
1135
  marks {
1132
1136
  id
@@ -1240,21 +1244,546 @@ exports.START_OR_JOIN_MARKSHEET = (0, client_1.gql) `
1240
1244
  restricted {
1241
1245
  startOrJoinMarksheet(agoraId: $agoraId, solo: $solo) {
1242
1246
  id
1243
- createdAt
1244
- startedAt
1247
+ topicConceptData
1248
+ currentMarkId
1249
+ completed
1250
+ solo
1245
1251
  agoraId
1246
- endedAt
1247
- source
1248
- user {
1249
- id
1250
- displayName
1251
- }
1252
1252
  state
1253
1253
  users {
1254
1254
  id
1255
1255
  displayName
1256
1256
  }
1257
- completed
1257
+ builderConfig {
1258
+ difficulty
1259
+ isTest
1260
+ numberOfQuestions
1261
+ secondsPerQuestion
1262
+ unseen
1263
+ seenCorrect
1264
+ seenIncorrect
1265
+ }
1266
+ preBuildData {
1267
+ buildRef
1268
+ seenCorrect
1269
+ seenIncorrect
1270
+ unseen
1271
+ }
1272
+ createdAt
1273
+ startedAt
1274
+ endedAt
1275
+ isTestMarksheet
1276
+ source
1277
+ correct
1278
+ incorrect
1279
+ marks {
1280
+ id
1281
+ flagged
1282
+ index
1283
+ questionChoiceId
1284
+ marksheetId
1285
+ timeTaken
1286
+ isAnswered
1287
+ mark
1288
+ question {
1289
+ ... on QuestionSBA {
1290
+ conceptId
1291
+ difficulty
1292
+ dislikes
1293
+ explanation
1294
+ id
1295
+ isLikedByMe
1296
+ likes
1297
+ question
1298
+ totalVotes
1299
+ typeId
1300
+ choices {
1301
+ id
1302
+ explanation
1303
+ name
1304
+ label
1305
+ answer
1306
+ votes
1307
+ picture {
1308
+ id
1309
+ createdAt
1310
+ updatedAt
1311
+ name
1312
+ caption
1313
+ path
1314
+ path512
1315
+ path256
1316
+ }
1317
+ }
1318
+ comments {
1319
+ id
1320
+ createdAt
1321
+ comment
1322
+ likes
1323
+ user {
1324
+ id
1325
+ displayName
1326
+ }
1327
+ dislikes
1328
+ isLikedByMe
1329
+ questionId
1330
+ replies {
1331
+ id
1332
+ createdAt
1333
+ comment
1334
+ user {
1335
+ id
1336
+ displayName
1337
+ }
1338
+ likes
1339
+ dislikes
1340
+ isLikedByMe
1341
+ questionId
1342
+ }
1343
+ }
1344
+ concept {
1345
+ id
1346
+ name
1347
+ chapter {
1348
+ id
1349
+ explanation
1350
+ pictures {
1351
+ id
1352
+ createdAt
1353
+ updatedAt
1354
+ name
1355
+ caption
1356
+ path
1357
+ path512
1358
+ path256
1359
+ topicId
1360
+ topic {
1361
+ id
1362
+ name
1363
+ typeId
1364
+ }
1365
+ }
1366
+ }
1367
+ videos {
1368
+ id
1369
+ title
1370
+ museId
1371
+ startTime
1372
+ endTime
1373
+ thumbnail
1374
+ concepts {
1375
+ id
1376
+ name
1377
+ }
1378
+ live
1379
+ description
1380
+ duration
1381
+ }
1382
+ }
1383
+ pictures {
1384
+ id
1385
+ createdAt
1386
+ updatedAt
1387
+ name
1388
+ caption
1389
+ path
1390
+ path512
1391
+ path256
1392
+ topicId
1393
+ topic {
1394
+ id
1395
+ name
1396
+ typeId
1397
+ }
1398
+ }
1399
+ difficulty
1400
+ psaSectionId
1401
+ likes
1402
+ dislikes
1403
+ isLikedByMe
1404
+ sbaAnswer: answer
1405
+ }
1406
+ ... on QuestionQA {
1407
+ conceptId
1408
+ difficulty
1409
+ dislikes
1410
+ explanation
1411
+ id
1412
+ isLikedByMe
1413
+ likes
1414
+ question
1415
+ totalVotes
1416
+ typeId
1417
+ choices {
1418
+ id
1419
+ explanation
1420
+ name
1421
+ label
1422
+ answer
1423
+ votes
1424
+ picture {
1425
+ id
1426
+ createdAt
1427
+ updatedAt
1428
+ name
1429
+ caption
1430
+ path
1431
+ path512
1432
+ path256
1433
+ }
1434
+ }
1435
+ comments {
1436
+ id
1437
+ createdAt
1438
+ comment
1439
+ likes
1440
+ user {
1441
+ id
1442
+ displayName
1443
+ }
1444
+ dislikes
1445
+ isLikedByMe
1446
+ questionId
1447
+ replies {
1448
+ id
1449
+ createdAt
1450
+ comment
1451
+ user {
1452
+ id
1453
+ displayName
1454
+ }
1455
+ likes
1456
+ dislikes
1457
+ isLikedByMe
1458
+ questionId
1459
+ }
1460
+ }
1461
+ concept {
1462
+ id
1463
+ name
1464
+ chapter {
1465
+ id
1466
+ explanation
1467
+ pictures {
1468
+ id
1469
+ createdAt
1470
+ updatedAt
1471
+ name
1472
+ caption
1473
+ path
1474
+ path512
1475
+ path256
1476
+ topicId
1477
+ topic {
1478
+ id
1479
+ name
1480
+ typeId
1481
+ }
1482
+ }
1483
+ }
1484
+ videos {
1485
+ id
1486
+ title
1487
+ museId
1488
+ startTime
1489
+ endTime
1490
+ thumbnail
1491
+ concepts {
1492
+ id
1493
+ name
1494
+ }
1495
+ live
1496
+ description
1497
+ duration
1498
+ }
1499
+ }
1500
+ pictures {
1501
+ id
1502
+ createdAt
1503
+ updatedAt
1504
+ name
1505
+ caption
1506
+ path
1507
+ path512
1508
+ path256
1509
+ topicId
1510
+ topic {
1511
+ id
1512
+ name
1513
+ typeId
1514
+ }
1515
+ }
1516
+ difficulty
1517
+ psaSectionId
1518
+ likes
1519
+ dislikes
1520
+ isLikedByMe
1521
+ qaAnswer: answer {
1522
+ dose
1523
+ units
1524
+ }
1525
+ }
1526
+ ... on QuestionMultiA {
1527
+ conceptId
1528
+ difficulty
1529
+ dislikes
1530
+ explanation
1531
+ id
1532
+ isLikedByMe
1533
+ likes
1534
+ question
1535
+ totalVotes
1536
+ typeId
1537
+ choices {
1538
+ id
1539
+ explanation
1540
+ name
1541
+ label
1542
+ answer
1543
+ votes
1544
+ picture {
1545
+ id
1546
+ createdAt
1547
+ updatedAt
1548
+ name
1549
+ caption
1550
+ path
1551
+ path512
1552
+ path256
1553
+ }
1554
+ }
1555
+ comments {
1556
+ id
1557
+ createdAt
1558
+ comment
1559
+ likes
1560
+ user {
1561
+ id
1562
+ displayName
1563
+ }
1564
+ dislikes
1565
+ isLikedByMe
1566
+ questionId
1567
+ replies {
1568
+ id
1569
+ createdAt
1570
+ comment
1571
+ user {
1572
+ id
1573
+ displayName
1574
+ }
1575
+ likes
1576
+ dislikes
1577
+ isLikedByMe
1578
+ questionId
1579
+ }
1580
+ }
1581
+ concept {
1582
+ id
1583
+ name
1584
+ chapter {
1585
+ id
1586
+ explanation
1587
+ pictures {
1588
+ id
1589
+ createdAt
1590
+ updatedAt
1591
+ name
1592
+ caption
1593
+ path
1594
+ path512
1595
+ path256
1596
+ topicId
1597
+ topic {
1598
+ id
1599
+ name
1600
+ typeId
1601
+ }
1602
+ }
1603
+ }
1604
+ videos {
1605
+ id
1606
+ title
1607
+ museId
1608
+ startTime
1609
+ endTime
1610
+ thumbnail
1611
+ concepts {
1612
+ id
1613
+ name
1614
+ }
1615
+ live
1616
+ description
1617
+ duration
1618
+ }
1619
+ }
1620
+ pictures {
1621
+ id
1622
+ createdAt
1623
+ updatedAt
1624
+ name
1625
+ caption
1626
+ path
1627
+ path512
1628
+ path256
1629
+ topicId
1630
+ topic {
1631
+ id
1632
+ name
1633
+ typeId
1634
+ }
1635
+ }
1636
+ difficulty
1637
+ psaSectionId
1638
+ likes
1639
+ dislikes
1640
+ isLikedByMe
1641
+ multiAnswer: answer
1642
+ }
1643
+ ... on QuestionPrescription {
1644
+ conceptId
1645
+ difficulty
1646
+ dislikes
1647
+ explanation
1648
+ id
1649
+ isLikedByMe
1650
+ likes
1651
+ question
1652
+ totalVotes
1653
+ typeId
1654
+ choices {
1655
+ id
1656
+ explanation
1657
+ name
1658
+ label
1659
+ answer
1660
+ votes
1661
+ picture {
1662
+ id
1663
+ createdAt
1664
+ updatedAt
1665
+ name
1666
+ caption
1667
+ path
1668
+ path512
1669
+ path256
1670
+ }
1671
+ }
1672
+ comments {
1673
+ id
1674
+ createdAt
1675
+ comment
1676
+ likes
1677
+ user {
1678
+ id
1679
+ displayName
1680
+ }
1681
+ dislikes
1682
+ isLikedByMe
1683
+ questionId
1684
+ replies {
1685
+ id
1686
+ createdAt
1687
+ comment
1688
+ user {
1689
+ id
1690
+ displayName
1691
+ }
1692
+ likes
1693
+ dislikes
1694
+ isLikedByMe
1695
+ questionId
1696
+ }
1697
+ }
1698
+ concept {
1699
+ id
1700
+ name
1701
+ chapter {
1702
+ id
1703
+ explanation
1704
+ pictures {
1705
+ id
1706
+ createdAt
1707
+ updatedAt
1708
+ name
1709
+ caption
1710
+ path
1711
+ path512
1712
+ path256
1713
+ topicId
1714
+ topic {
1715
+ id
1716
+ name
1717
+ typeId
1718
+ }
1719
+ }
1720
+ }
1721
+ videos {
1722
+ id
1723
+ title
1724
+ museId
1725
+ startTime
1726
+ endTime
1727
+ thumbnail
1728
+ concepts {
1729
+ id
1730
+ name
1731
+ }
1732
+ live
1733
+ description
1734
+ duration
1735
+ }
1736
+ }
1737
+ pictures {
1738
+ id
1739
+ createdAt
1740
+ updatedAt
1741
+ name
1742
+ caption
1743
+ path
1744
+ path512
1745
+ path256
1746
+ topicId
1747
+ topic {
1748
+ id
1749
+ name
1750
+ typeId
1751
+ }
1752
+ }
1753
+ difficulty
1754
+ psaSectionId
1755
+ likes
1756
+ dislikes
1757
+ isLikedByMe
1758
+ prescribeAnswer: answer {
1759
+ dose {
1760
+ value
1761
+ display
1762
+ }
1763
+ drug {
1764
+ value
1765
+ display
1766
+ }
1767
+ route {
1768
+ value
1769
+ display
1770
+ }
1771
+ frequency {
1772
+ display
1773
+ value
1774
+ }
1775
+ duration {
1776
+ display
1777
+ value
1778
+ }
1779
+ units {
1780
+ display
1781
+ value
1782
+ }
1783
+ }
1784
+ }
1785
+ }
1786
+ }
1258
1787
  }
1259
1788
  }
1260
1789
  }
@@ -11,6 +11,7 @@ exports.MARKSHEET = (0, client_1.gql) `
11
11
  currentMarkId
12
12
  completed
13
13
  solo
14
+ agoraId
14
15
  state
15
16
  users {
16
17
  id
@@ -29,11 +29,14 @@ exports.SAMPLE_MARKSHEET = (0, client_1.gql) `
29
29
  sampleMarksheet(marksheetId: $marksheetId) {
30
30
  id
31
31
  endedAt
32
+ solo
32
33
  source
33
34
  marks {
34
35
  id
35
36
  index
36
37
  questionChoiceId
38
+ marksheetId
39
+ isAnswered
37
40
  timeTaken
38
41
  question {
39
42
  id