@quesmed/types-rn 2.6.29 → 2.6.31

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.29",
3
+ "version": "2.6.31",
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
+ `;
@@ -1,9 +1,11 @@
1
1
  export * from './blog';
2
2
  export * from './chapter';
3
3
  export * from './concept';
4
+ export * from './marksheet';
4
5
  export * from './mockTest';
5
6
  export * from './osce';
6
7
  export * from './picture';
8
+ export * from './question';
7
9
  export * from './topic';
8
10
  export * from './user';
9
11
  export * from './video';
@@ -17,9 +17,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./blog"), exports);
18
18
  __exportStar(require("./chapter"), exports);
19
19
  __exportStar(require("./concept"), exports);
20
+ __exportStar(require("./marksheet"), exports);
20
21
  __exportStar(require("./mockTest"), exports);
21
22
  __exportStar(require("./osce"), exports);
22
23
  __exportStar(require("./picture"), exports);
24
+ __exportStar(require("./question"), exports);
23
25
  __exportStar(require("./topic"), exports);
24
26
  __exportStar(require("./user"), exports);
25
27
  __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
  `;
@@ -1 +1,7 @@
1
1
  export declare const MOCK_TEST_FIELDS: import("@apollo/client").DocumentNode;
2
+ /**
3
+ * All below fragments are used in cache updator
4
+ */
5
+ export declare const MARK_FLAGGED_QUESTION: import("@apollo/client").DocumentNode;
6
+ export declare const COMPLETED_MOCK_TEST_MARKSHEET_FRAGMENT: import("@apollo/client").DocumentNode;
7
+ export declare const COMPLETED_MOCK_TESTS_FRAGMENT: import("@apollo/client").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MOCK_TEST_FIELDS = void 0;
3
+ exports.COMPLETED_MOCK_TESTS_FRAGMENT = exports.COMPLETED_MOCK_TEST_MARKSHEET_FRAGMENT = exports.MARK_FLAGGED_QUESTION = exports.MOCK_TEST_FIELDS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  exports.MOCK_TEST_FIELDS = (0, client_1.gql) `
6
6
  fragment MockTestFields on MockTest {
@@ -17,3 +17,29 @@ exports.MOCK_TEST_FIELDS = (0, client_1.gql) `
17
17
  typeId
18
18
  }
19
19
  `;
20
+ /**
21
+ * All below fragments are used in cache updator
22
+ */
23
+ exports.MARK_FLAGGED_QUESTION = (0, client_1.gql) `
24
+ fragment MarksheetMarkFlagged on MarksheetMark {
25
+ flagged
26
+ }
27
+ `;
28
+ exports.COMPLETED_MOCK_TEST_MARKSHEET_FRAGMENT = (0, client_1.gql) `
29
+ fragment MockTestCompleted on Marksheet {
30
+ completed
31
+ correct
32
+ incorrect
33
+ duration
34
+ endedAt
35
+ }
36
+ `;
37
+ exports.COMPLETED_MOCK_TESTS_FRAGMENT = (0, client_1.gql) `
38
+ fragment CompletedMockTestFragment on MockTest {
39
+ correct
40
+ incorrect
41
+ lastMarksheetEndedAt
42
+ lastMarksheetStartedAt
43
+ lastMarksheetId
44
+ }
45
+ `;
@@ -3,3 +3,6 @@ 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;
7
+ export declare const COMPLETED_OSCE_MARKSHEET_FRAGMENT: import("@apollo/client").DocumentNode;
8
+ export declare const COMPLETED_OSCE_STATION_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.COMPLETED_OSCE_STATION_FRAGMENT = exports.COMPLETED_OSCE_MARKSHEET_FRAGMENT = 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,25 @@ 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
+ `;
167
+ exports.COMPLETED_OSCE_MARKSHEET_FRAGMENT = (0, client_1.gql) `
168
+ fragment MockTestCompleted on OsceMarksheet {
169
+ completed
170
+ score
171
+ globalScore
172
+ state
173
+ timeTaken
174
+ endedAt
175
+ }
176
+ `;
177
+ exports.COMPLETED_OSCE_STATION_FRAGMENT = (0, client_1.gql) `
178
+ fragment CompletedMockTestFragment on OsceStation {
179
+ score
180
+ completedMarks
181
+ lastOsceMarksheetId
182
+ }
183
+ `;
@@ -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;