@quesmed/types 2.6.202 → 2.6.204

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,7 +1,8 @@
1
1
  import { IChapter } from '../../../models';
2
2
  import { AdminData, graphqlNormalize } from '../../types';
3
3
  export interface IAdminChapterVar {
4
- id: number;
4
+ id?: number;
5
+ conceptId?: number;
5
6
  }
6
7
  export type IAdminChapterData = AdminData<graphqlNormalize & IChapter, 'chapter'>;
7
8
  export declare const ADMIN_CHAPTER: import("@apollo/client").DocumentNode;
@@ -5,9 +5,9 @@ const client_1 = require("@apollo/client");
5
5
  const fragments_1 = require("../../fragments");
6
6
  exports.ADMIN_CHAPTER = (0, client_1.gql) `
7
7
  ${fragments_1.PICTURE_FIELDS}
8
- query AdminChapter($id: Int!) {
8
+ query AdminChapter($id: Int!, $conceptId: Int) {
9
9
  admin {
10
- chapter(id: $id) {
10
+ chapter(id: $id, conceptId: $conceptId) {
11
11
  id
12
12
  explanation
13
13
  summary
@@ -2,61 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DASHBOARD = exports.DASHBOARD_QBANK = void 0;
4
4
  const client_1 = require("@apollo/client");
5
- const fragments_1 = require("../../fragments");
6
5
  exports.DASHBOARD_QBANK = (0, client_1.gql) `
7
- ${fragments_1.PICTURE_FIELDS}
8
- query Dashboard_Qbank($filter: MarksheetFilterInput!) {
6
+ query Dashboard_Qbank {
9
7
  restricted {
10
8
  latestPastMarksheetId
11
- latestSessionId
12
9
  user {
13
10
  id
14
11
  settings {
15
12
  productSettings {
16
13
  examDate
17
- nextFeedbackDate
18
14
  }
19
15
  }
20
16
  completedQuestionsCount
21
17
  completedCorrectQuestionsCount
22
18
  completedIncorrectQuestionsCount
23
- completedCards {
24
- id
25
- createdAt
26
- updatedAt
27
- concept {
28
- id
29
- name
30
- }
31
- lastSeen
32
- reviewDate
33
- score
34
- iteration
35
- optimalFactor
36
- cardId
37
- card {
38
- id
39
- conceptId
40
- concept {
41
- id
42
- name
43
- }
44
- topic {
45
- id
46
- name
47
- }
48
- question
49
- explanation
50
- pictures {
51
- ...PictureFields
52
- }
53
- }
54
- }
55
- completedCardsCount
56
- completedGreenCardsCount
57
- completedYellowCardsCount
58
- completedRedCardsCount
59
- marksheetsCount
60
19
  dailyFeed {
61
20
  topics {
62
21
  id
@@ -76,13 +35,6 @@ exports.DASHBOARD_QBANK = (0, client_1.gql) `
76
35
  greenCards
77
36
  dailyTask
78
37
  }
79
- dailyProgress {
80
- date
81
- dateString
82
- intensity
83
- totalCorrect
84
- totalCount
85
- }
86
38
  userProgress {
87
39
  marksheetCount
88
40
  questionsCount
@@ -93,43 +45,6 @@ exports.DASHBOARD_QBANK = (0, client_1.gql) `
93
45
  }
94
46
  totalQuestions
95
47
  totalCards
96
- marksheets(filter: $filter) {
97
- results {
98
- id
99
- topicNames
100
- correct
101
- incorrect
102
- totalQuestions
103
- isTestMarksheet
104
- }
105
- total
106
- }
107
- topics(filter: 0) {
108
- id
109
- name
110
- entitlement {
111
- id
112
- name
113
- index
114
- }
115
- totalQuestions
116
- correctQuestions
117
- incorrectQuestions
118
- totalCards
119
- greenCards
120
- yellowCards
121
- redCards
122
- dailyFeedCards
123
- }
124
- universityLeaderboard(limit: 3) {
125
- updatedAt
126
- month {
127
- id
128
- name
129
- speciality
130
- rank
131
- }
132
- }
133
48
  }
134
49
  }
135
50
  `;
@@ -1,7 +1,8 @@
1
1
  import { IChapter } from '../../../models';
2
2
  import { AdminData, graphqlNormalize } from '../../types';
3
3
  export interface IAdminChapterVar {
4
- id: number;
4
+ id?: number;
5
+ conceptId?: number;
5
6
  }
6
7
  export type IAdminChapterData = AdminData<graphqlNormalize & IChapter, 'chapter'>;
7
8
  export declare const ADMIN_CHAPTER: import("@apollo/client").DocumentNode;
@@ -2,9 +2,9 @@ import { gql } from '@apollo/client';
2
2
  import { PICTURE_FIELDS } from '../../fragments';
3
3
  export const ADMIN_CHAPTER = gql `
4
4
  ${PICTURE_FIELDS}
5
- query AdminChapter($id: Int!) {
5
+ query AdminChapter($id: Int!, $conceptId: Int) {
6
6
  admin {
7
- chapter(id: $id) {
7
+ chapter(id: $id, conceptId: $conceptId) {
8
8
  id
9
9
  explanation
10
10
  summary
@@ -1,59 +1,18 @@
1
1
  import { gql } from '@apollo/client';
2
- import { PICTURE_FIELDS } from '../../fragments';
3
2
  export const DASHBOARD_QBANK = gql `
4
- ${PICTURE_FIELDS}
5
- query Dashboard_Qbank($filter: MarksheetFilterInput!) {
3
+ query Dashboard_Qbank {
6
4
  restricted {
7
5
  latestPastMarksheetId
8
- latestSessionId
9
6
  user {
10
7
  id
11
8
  settings {
12
9
  productSettings {
13
10
  examDate
14
- nextFeedbackDate
15
11
  }
16
12
  }
17
13
  completedQuestionsCount
18
14
  completedCorrectQuestionsCount
19
15
  completedIncorrectQuestionsCount
20
- completedCards {
21
- id
22
- createdAt
23
- updatedAt
24
- concept {
25
- id
26
- name
27
- }
28
- lastSeen
29
- reviewDate
30
- score
31
- iteration
32
- optimalFactor
33
- cardId
34
- card {
35
- id
36
- conceptId
37
- concept {
38
- id
39
- name
40
- }
41
- topic {
42
- id
43
- name
44
- }
45
- question
46
- explanation
47
- pictures {
48
- ...PictureFields
49
- }
50
- }
51
- }
52
- completedCardsCount
53
- completedGreenCardsCount
54
- completedYellowCardsCount
55
- completedRedCardsCount
56
- marksheetsCount
57
16
  dailyFeed {
58
17
  topics {
59
18
  id
@@ -73,13 +32,6 @@ export const DASHBOARD_QBANK = gql `
73
32
  greenCards
74
33
  dailyTask
75
34
  }
76
- dailyProgress {
77
- date
78
- dateString
79
- intensity
80
- totalCorrect
81
- totalCount
82
- }
83
35
  userProgress {
84
36
  marksheetCount
85
37
  questionsCount
@@ -90,43 +42,6 @@ export const DASHBOARD_QBANK = gql `
90
42
  }
91
43
  totalQuestions
92
44
  totalCards
93
- marksheets(filter: $filter) {
94
- results {
95
- id
96
- topicNames
97
- correct
98
- incorrect
99
- totalQuestions
100
- isTestMarksheet
101
- }
102
- total
103
- }
104
- topics(filter: 0) {
105
- id
106
- name
107
- entitlement {
108
- id
109
- name
110
- index
111
- }
112
- totalQuestions
113
- correctQuestions
114
- incorrectQuestions
115
- totalCards
116
- greenCards
117
- yellowCards
118
- redCards
119
- dailyFeedCards
120
- }
121
- universityLeaderboard(limit: 3) {
122
- updatedAt
123
- month {
124
- id
125
- name
126
- speciality
127
- rank
128
- }
129
- }
130
45
  }
131
46
  }
132
47
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.202",
3
+ "version": "2.6.204",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",