@quesmed/types 2.2.42 → 2.2.45

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