@quesmed/types-rn 2.6.28 → 2.6.30

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,5 +1,5 @@
1
1
  import { IBuildConfigData, IPreBuildMarksheet } from '../resolvers/mutation/restricted/marksheet';
2
- import { EProductType } from './Product';
2
+ import { EProductType, IEntitlement } from './Product';
3
3
  import { IPrescribeMark, IQuestion, IQuestionChoice, IQuestionQAAnswer } from './Question';
4
4
  import { ETopicType } from './Topic';
5
5
  import { Id } from './Type';
@@ -65,6 +65,7 @@ export interface IMarksheet {
65
65
  type: EMarksheetType;
66
66
  endedAt: number | Date;
67
67
  typeId: ETopicType;
68
+ entitlement: IEntitlement;
68
69
  topicIds: number[];
69
70
  topicNames?: string[];
70
71
  source: string;
@@ -216,4 +216,10 @@ export interface IPrescribeMark {
216
216
  routeId: number;
217
217
  frequencyId: number;
218
218
  durationId: number;
219
+ drugLabel?: string;
220
+ doseLabel?: string;
221
+ unitLabel?: string;
222
+ routeLabel?: string;
223
+ frequencyLabel?: string;
224
+ durationLabel?: string;
219
225
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.28",
3
+ "version": "2.6.30",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -2,30 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CHAPTER_FIELDS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
+ const picture_1 = require("./picture");
5
6
  exports.CHAPTER_FIELDS = (0, client_1.gql) `
7
+ ${picture_1.PICTURE_FIELDS}
6
8
  fragment ChapterFields on Chapter {
7
9
  id
8
- createdAt
9
- updatedAt
10
10
  explanation
11
11
  typeId
12
12
  pictures {
13
- id
14
- createdAt
15
- updatedAt
16
- name
17
- caption
18
- path
19
- path512
20
- path256
21
- thumbhash
22
- index
23
- topicId
24
- topic {
25
- id
26
- name
27
- typeId
28
- }
13
+ ...PictureFields
29
14
  }
30
15
  files {
31
16
  id
@@ -1,3 +1,2 @@
1
- export declare const CONCEPT_TOPIC_FIELDS: import("@apollo/client").DocumentNode;
2
1
  export declare const CONCEPT_FIELDS: import("@apollo/client").DocumentNode;
3
- export declare const CONCEPT_VIDEO_FIELDS: import("@apollo/client").DocumentNode;
2
+ export declare const STATUS_CONCEPT_FRAGMENT: import("@apollo/client").DocumentNode;
@@ -1,79 +1,40 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CONCEPT_VIDEO_FIELDS = exports.CONCEPT_FIELDS = exports.CONCEPT_TOPIC_FIELDS = void 0;
3
+ exports.STATUS_CONCEPT_FRAGMENT = exports.CONCEPT_FIELDS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  const chapter_1 = require("./chapter");
6
6
  const video_1 = require("./video");
7
- exports.CONCEPT_TOPIC_FIELDS = (0, client_1.gql) `
8
- fragment ConceptTopicFields on Topic {
9
- id
10
- name
11
- typeId
12
- }
13
- `;
14
7
  exports.CONCEPT_FIELDS = (0, client_1.gql) `
15
8
  ${chapter_1.CHAPTER_FIELDS}
16
- ${exports.CONCEPT_TOPIC_FIELDS}
9
+ ${video_1.VIDEO_FIELDS}
17
10
  fragment ConceptFields on Concept {
18
11
  id
19
- createdAt
20
- updatedAt
21
12
  name
22
- chapterId
23
- chapter {
24
- ...ChapterFields
13
+ demo
14
+ status
15
+ typeId
16
+ entitlement {
17
+ id
18
+ name
25
19
  }
26
20
  topicId
27
21
  topic {
28
- ...ConceptTopicFields
22
+ id
23
+ name
24
+ typeId
29
25
  }
30
- }
31
- `;
32
- exports.CONCEPT_VIDEO_FIELDS = (0, client_1.gql) `
33
- ${chapter_1.CHAPTER_FIELDS}
34
- ${exports.CONCEPT_TOPIC_FIELDS}
35
- ${video_1.VIDEO_FILE_FIELDS}
36
- fragment ConceptVideoFields on Concept {
37
- id
38
- createdAt
39
- updatedAt
40
- name
41
26
  chapterId
42
27
  chapter {
43
28
  ...ChapterFields
44
29
  }
45
- topicId
46
- topic {
47
- ...ConceptTopicFields
48
- }
49
30
  videos {
50
- id
51
- title
52
- museId
53
- thumbnail
54
- views
55
- concepts {
56
- id
57
- createdAt
58
- updatedAt
59
- name
60
- chapterId
61
- chapter {
62
- ...ChapterFields
63
- }
64
- topicId
65
- topic {
66
- ...ConceptTopicFields
67
- }
68
- }
69
- live
70
- description
71
- duration
72
- startTime
73
- endTime
74
- files {
75
- ...VideoFileFields
76
- }
31
+ ...VideoFields
77
32
  }
78
33
  }
79
34
  `;
35
+ // used in cache updator
36
+ exports.STATUS_CONCEPT_FRAGMENT = (0, client_1.gql) `
37
+ fragment ConceptStatus on Concept {
38
+ status
39
+ }
40
+ `;
@@ -4,6 +4,7 @@ export * from './concept';
4
4
  export * from './mockTest';
5
5
  export * from './osce';
6
6
  export * from './picture';
7
+ export * from './question';
7
8
  export * from './topic';
8
9
  export * from './user';
9
10
  export * from './video';
@@ -20,6 +20,7 @@ __exportStar(require("./concept"), exports);
20
20
  __exportStar(require("./mockTest"), exports);
21
21
  __exportStar(require("./osce"), exports);
22
22
  __exportStar(require("./picture"), exports);
23
+ __exportStar(require("./question"), exports);
23
24
  __exportStar(require("./topic"), exports);
24
25
  __exportStar(require("./user"), exports);
25
26
  __exportStar(require("./video"), exports);
@@ -1 +1,15 @@
1
1
  export declare const MARKSHEET_MARK_FIELDS: import("@apollo/client").DocumentNode;
2
+ export declare const BUILDER_CONFIG_FIELDS: import("@apollo/client").DocumentNode;
3
+ export declare const MARKSHEET_FIELDS: import("@apollo/client").DocumentNode;
4
+ /**
5
+ * All below fragments are used in cache updator
6
+ */
7
+ export declare const MODIFY_CURRENT_MARKSHEET_MARK_FRAGMENT: import("@apollo/client").DocumentNode;
8
+ export declare const MODIFY_MARKSHEET_MARK_QUESTIONCHOICEID_FRAGMENT: import("@apollo/client").DocumentNode;
9
+ export declare const MODIFY_MARKSHEET_MARK_STRIKED_FRAGMENT: import("@apollo/client").DocumentNode;
10
+ export declare const MODIFY_MARKSHEET_STATE_FRAGMENT: import("@apollo/client").DocumentNode;
11
+ export declare const MODIFY_TOPIC_SELECTION_FRAGMENT: import("@apollo/client").DocumentNode;
12
+ export declare const MODIFY_CURRENT_MARK_FRAGMENT: import("@apollo/client").DocumentNode;
13
+ export declare const MARK_FLAGGED_FIELD: import("@apollo/client").DocumentNode;
14
+ export declare const MODIFY_COMPLETED_FRAGMENT: import("@apollo/client").DocumentNode;
15
+ export declare const NEW_MARK_FIELDS: import("@apollo/client").DocumentNode;
@@ -1,143 +1,143 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MARKSHEET_MARK_FIELDS = void 0;
3
+ exports.NEW_MARK_FIELDS = exports.MODIFY_COMPLETED_FRAGMENT = exports.MARK_FLAGGED_FIELD = exports.MODIFY_CURRENT_MARK_FRAGMENT = exports.MODIFY_TOPIC_SELECTION_FRAGMENT = exports.MODIFY_MARKSHEET_STATE_FRAGMENT = exports.MODIFY_MARKSHEET_MARK_STRIKED_FRAGMENT = exports.MODIFY_MARKSHEET_MARK_QUESTIONCHOICEID_FRAGMENT = exports.MODIFY_CURRENT_MARKSHEET_MARK_FRAGMENT = exports.MARKSHEET_FIELDS = exports.BUILDER_CONFIG_FIELDS = exports.MARKSHEET_MARK_FIELDS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
+ const question_1 = require("./question");
5
6
  exports.MARKSHEET_MARK_FIELDS = (0, client_1.gql) `
7
+ ${question_1.QUESTION_FIELDS}
6
8
  fragment MarksheetMarkFields on MarksheetMark {
7
9
  id
8
- createdAt
9
- updatedAt
10
+ flagged
10
11
  index
11
- marksheetId
12
12
  questionChoiceId
13
+ marksheetId
13
14
  timeTaken
14
- flagged
15
- questionId
16
15
  isAnswered
16
+ striked
17
+ mark
18
+ questionId
17
19
  question {
18
- conceptId
19
- difficulty
20
- dislikes
21
- explanation
20
+ ...QuestionFields
21
+ }
22
+ }
23
+ `;
24
+ exports.BUILDER_CONFIG_FIELDS = (0, client_1.gql) `
25
+ fragment BuilderConfigFields on BuilderConfigData {
26
+ difficulty
27
+ isTest
28
+ numberOfQuestions
29
+ secondsPerQuestion
30
+ unseen
31
+ seenCorrect
32
+ seenIncorrect
33
+ }
34
+ `;
35
+ exports.MARKSHEET_FIELDS = (0, client_1.gql) `
36
+ ${exports.MARKSHEET_MARK_FIELDS}
37
+ ${exports.BUILDER_CONFIG_FIELDS}
38
+ fragment MarksheetFields on Marksheet {
39
+ id
40
+ topicConceptData
41
+ currentMarkId
42
+ completed
43
+ passingMark
44
+ duration
45
+ timeTaken
46
+ topicIds
47
+ topicNames
48
+ mockTestId
49
+ totalQuestions
50
+ solo
51
+ agoraId
52
+ sessionId
53
+ state
54
+ createdAt
55
+ startedAt
56
+ endedAt
57
+ typeId
58
+ isTestMarksheet
59
+ source
60
+ correct
61
+ incorrect
62
+ entitlement {
63
+ id
64
+ name
65
+ }
66
+ preBuildData {
67
+ buildRef
68
+ seenCorrect
69
+ seenIncorrect
70
+ unseen
71
+ }
72
+ user {
22
73
  id
23
- isLikedByMe
24
- likes
25
- question
26
- totalVotes
27
- typeId
28
- choices {
29
- id
30
- explanation
31
- name
32
- label
33
- answer
34
- votes
35
- picture {
36
- id
37
- createdAt
38
- updatedAt
39
- name
40
- caption
41
- path
42
- path512
43
- path256
44
- thumbhash
45
- }
46
- }
47
- comments {
48
- id
49
- createdAt
50
- comment
51
- parentId
52
- likes
53
- user {
54
- id
55
- displayName
56
- }
57
- dislikes
58
- isLikedByMe
59
- questionId
60
- replies {
61
- id
62
- createdAt
63
- comment
64
- parentId
65
- user {
66
- id
67
- displayName
68
- }
69
- likes
70
- dislikes
71
- isLikedByMe
72
- questionId
73
- }
74
- }
75
- concept {
76
- id
77
- name
78
- status
79
- chapter {
80
- id
81
- explanation
82
- pictures {
83
- id
84
- createdAt
85
- updatedAt
86
- name
87
- caption
88
- path
89
- path512
90
- path256
91
- thumbhash
92
- index
93
- topicId
94
- topic {
95
- id
96
- name
97
- typeId
98
- }
99
- }
100
- }
101
- videos {
102
- id
103
- status
104
- title
105
- museId
106
- startTime
107
- endTime
108
- thumbnail
109
- concepts {
110
- id
111
- name
112
- }
113
- live
114
- description
115
- duration
116
- }
117
- }
118
- pictures {
119
- id
120
- createdAt
121
- updatedAt
122
- name
123
- caption
124
- index
125
- path
126
- path512
127
- path256
128
- thumbhash
129
- topicId
130
- topic {
131
- id
132
- name
133
- typeId
134
- }
135
- }
136
- difficulty
137
- psaSectionId
138
- likes
139
- dislikes
74
+ displayName
75
+ }
76
+ users {
77
+ id
78
+ displayName
79
+ }
80
+ activeUsers {
81
+ id
82
+ displayName
83
+ }
84
+ builderConfig {
85
+ ...BuilderConfigFields
86
+ }
87
+ marks {
88
+ ...MarksheetMarkFields
140
89
  }
90
+ }
91
+ `;
92
+ /**
93
+ * All below fragments are used in cache updator
94
+ */
95
+ exports.MODIFY_CURRENT_MARKSHEET_MARK_FRAGMENT = (0, client_1.gql) `
96
+ fragment CurrentMarksheetMark on MarksheetMark {
97
+ index
98
+ timeTaken
99
+ }
100
+ `;
101
+ exports.MODIFY_MARKSHEET_MARK_QUESTIONCHOICEID_FRAGMENT = (0, client_1.gql) `
102
+ fragment MarksheetMarkTimeTaken on MarksheetMark {
103
+ questionChoiceId
104
+ }
105
+ `;
106
+ exports.MODIFY_MARKSHEET_MARK_STRIKED_FRAGMENT = (0, client_1.gql) `
107
+ fragment MarksheetMarkSriked on MarksheetMark {
108
+ striked
109
+ }
110
+ `;
111
+ exports.MODIFY_MARKSHEET_STATE_FRAGMENT = (0, client_1.gql) `
112
+ fragment MarksheetState on Marksheet {
113
+ state
114
+ }
115
+ `;
116
+ exports.MODIFY_TOPIC_SELECTION_FRAGMENT = (0, client_1.gql) `
117
+ fragment MarksheetTopicSelection on Marksheet {
118
+ topicConceptData
119
+ }
120
+ `;
121
+ exports.MODIFY_CURRENT_MARK_FRAGMENT = (0, client_1.gql) `
122
+ fragment MarksheetCurrentMark on Marksheet {
123
+ currentMarkId
124
+ }
125
+ `;
126
+ exports.MARK_FLAGGED_FIELD = (0, client_1.gql) `
127
+ fragment MarksheetMarkFlagged on MarksheetMark {
128
+ flagged
129
+ }
130
+ `;
131
+ exports.MODIFY_COMPLETED_FRAGMENT = (0, client_1.gql) `
132
+ fragment MarksheetCompleted on Marksheet {
133
+ completed
134
+ }
135
+ `;
136
+ exports.NEW_MARK_FIELDS = (0, client_1.gql) `
137
+ fragment NewTodoMark on MarksheetMark {
138
+ timeTaken
139
+ questionChoiceId
141
140
  mark
141
+ isAnswered
142
142
  }
143
143
  `;
@@ -3,3 +3,4 @@ export declare const OSCE_STATION_FIELDS: import("@apollo/client").DocumentNode;
3
3
  export declare const OSCE_MARKSHEET_MARK_FIELDS: import("@apollo/client").DocumentNode;
4
4
  export declare const OSCE_MARKSHEET_FIELDS: import("@apollo/client").DocumentNode;
5
5
  export declare const OSCE_MATCHMAKING_ACTION_FIELDS: import("@apollo/client").DocumentNode;
6
+ export declare const STATION_CONCEPT_FRAGMENT: import("@apollo/client").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OSCE_MATCHMAKING_ACTION_FIELDS = exports.OSCE_MARKSHEET_FIELDS = exports.OSCE_MARKSHEET_MARK_FIELDS = exports.OSCE_STATION_FIELDS = exports.OSCE_STATION_MARK_FIELDS = void 0;
3
+ exports.STATION_CONCEPT_FRAGMENT = exports.OSCE_MATCHMAKING_ACTION_FIELDS = exports.OSCE_MARKSHEET_FIELDS = exports.OSCE_MARKSHEET_MARK_FIELDS = exports.OSCE_STATION_FIELDS = exports.OSCE_STATION_MARK_FIELDS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  const picture_1 = require("./picture");
6
6
  exports.OSCE_STATION_MARK_FIELDS = (0, client_1.gql) `
@@ -159,3 +159,8 @@ exports.OSCE_MATCHMAKING_ACTION_FIELDS = (0, client_1.gql) `
159
159
  completed
160
160
  }
161
161
  `;
162
+ exports.STATION_CONCEPT_FRAGMENT = (0, client_1.gql) `
163
+ fragment StationStatus on OsceStation {
164
+ status
165
+ }
166
+ `;
@@ -0,0 +1,5 @@
1
+ export declare const QUESTION_COMMENT_FIELDS: import("@apollo/client").DocumentNode;
2
+ export declare const QUESTION_CATEGORY_FIELDS: import("@apollo/client").DocumentNode;
3
+ export declare const QUESTION_FIELDS: import("@apollo/client").DocumentNode;
4
+ export declare const QUESTION_WITH_HIGHLIGHT_FIELDS: import("@apollo/client").DocumentNode;
5
+ export declare const QUESTION_WITH_COMMENT_FIELDS: import("@apollo/client").DocumentNode;
@@ -0,0 +1,176 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QUESTION_WITH_COMMENT_FIELDS = exports.QUESTION_WITH_HIGHLIGHT_FIELDS = exports.QUESTION_FIELDS = exports.QUESTION_CATEGORY_FIELDS = exports.QUESTION_COMMENT_FIELDS = void 0;
4
+ const client_1 = require("@apollo/client");
5
+ const concept_1 = require("./concept");
6
+ const picture_1 = require("./picture");
7
+ exports.QUESTION_COMMENT_FIELDS = (0, client_1.gql) `
8
+ fragment QuestionCommentFields on QuestionComment {
9
+ id
10
+ createdAt
11
+ comment
12
+ parentId
13
+ likes
14
+ user {
15
+ id
16
+ displayName
17
+ }
18
+ dislikes
19
+ isLikedByMe
20
+ questionId
21
+ replies {
22
+ id
23
+ createdAt
24
+ comment
25
+ parentId
26
+ user {
27
+ id
28
+ displayName
29
+ }
30
+ likes
31
+ dislikes
32
+ isLikedByMe
33
+ questionId
34
+ }
35
+ }
36
+ `;
37
+ exports.QUESTION_CATEGORY_FIELDS = (0, client_1.gql) `
38
+ fragment QuestionCategoryFields on Question {
39
+ ... on QuestionSBA {
40
+ sbaAnswer: answer
41
+ }
42
+ ... on QuestionQA {
43
+ qaAnswer: answer {
44
+ dose
45
+ units
46
+ }
47
+ }
48
+ ... on QuestionEMQ {
49
+ cases {
50
+ id
51
+ questionId
52
+ case
53
+ explanation
54
+ label
55
+ }
56
+ emqAnswer: answer
57
+ }
58
+ ... on QuestionMultiA {
59
+ multiAnswer: answer
60
+ }
61
+ ... on QuestionRanking {
62
+ rankingAnswer: answer
63
+ }
64
+ ... on QuestionSelect3 {
65
+ select3Answer: answer
66
+ }
67
+ ... on QuestionPrescription {
68
+ prescribeAnswer: answer {
69
+ dose {
70
+ value
71
+ label
72
+ visible
73
+ }
74
+ drug {
75
+ value
76
+ label
77
+ visible
78
+ }
79
+ route {
80
+ value
81
+ label
82
+ visible
83
+ }
84
+ frequency {
85
+ value
86
+ label
87
+ visible
88
+ }
89
+ duration {
90
+ value
91
+ label
92
+ visible
93
+ }
94
+ unit {
95
+ value
96
+ label
97
+ visible
98
+ }
99
+ }
100
+ }
101
+ }
102
+ `;
103
+ exports.QUESTION_FIELDS = (0, client_1.gql) `
104
+ ${exports.QUESTION_CATEGORY_FIELDS}
105
+ ${exports.QUESTION_COMMENT_FIELDS}
106
+ ${concept_1.CONCEPT_FIELDS}
107
+ ${picture_1.PICTURE_FIELDS}
108
+ fragment QuestionFields on Question {
109
+ id
110
+ conceptId
111
+ difficulty
112
+ dislikes
113
+ explanation
114
+ isLikedByMe
115
+ likes
116
+ question
117
+ totalVotes
118
+ typeId
119
+ psaSectionId
120
+ highlights {
121
+ start
122
+ end
123
+ text
124
+ part
125
+ tag
126
+ color
127
+ }
128
+ choices {
129
+ id
130
+ explanation
131
+ name
132
+ label
133
+ answer
134
+ votes
135
+ picture {
136
+ ...PictureFields
137
+ }
138
+ }
139
+ comments {
140
+ ...QuestionCommentFields
141
+ }
142
+ concept {
143
+ ...ConceptFields
144
+ }
145
+ pictures {
146
+ ...PictureFields
147
+ }
148
+ ...QuestionCategoryFields
149
+ }
150
+ `;
151
+ // used in cache updator
152
+ exports.QUESTION_WITH_HIGHLIGHT_FIELDS = (0, client_1.gql) `
153
+ fragment QuestionWithHighlightFields on Question {
154
+ highlights {
155
+ start
156
+ end
157
+ text
158
+ part
159
+ tag
160
+ color
161
+ }
162
+ }
163
+ `;
164
+ // used in cache updator
165
+ exports.QUESTION_WITH_COMMENT_FIELDS = (0, client_1.gql) `
166
+ ${exports.QUESTION_COMMENT_FIELDS}
167
+ fragment QuestionWithCommentFields on Question {
168
+ id
169
+ likes
170
+ dislikes
171
+ isLikedByMe
172
+ comments {
173
+ ...QuestionCommentFields
174
+ }
175
+ }
176
+ `;
@@ -1 +1,3 @@
1
1
  export declare const TOPIC_FIELDS: import("@apollo/client").DocumentNode;
2
+ export declare const TOPIC_VIDEO_STATUS_STATS_FRAGMENT: import("@apollo/client").DocumentNode;
3
+ export declare const TOPIC_CONCEPT_STATUS_STATS_FRAGMENT: import("@apollo/client").DocumentNode;