@quesmed/types-rn 2.6.221 → 2.6.223
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/models/Job.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IChapter, IOsceStation, IQuestionPrescription, Id } from '../models';
|
|
1
|
+
import { EDifficultyType, EOsceType, IChapter, IOsceStation, IOsceStationMark, IQuestionPrescription, Id } from '../models';
|
|
2
2
|
import { EMockTestType } from './MockTest';
|
|
3
3
|
import { IPicture } from './Picture';
|
|
4
4
|
import { EEntitlementType, EProductType } from './Product';
|
|
@@ -146,7 +146,16 @@ export interface IJobRecordChapter {
|
|
|
146
146
|
topicTypeId?: number | null;
|
|
147
147
|
}
|
|
148
148
|
export interface IJobRecordStation {
|
|
149
|
-
|
|
149
|
+
actorBrief: string;
|
|
150
|
+
candidateBrief: string;
|
|
151
|
+
difficulty: EDifficultyType;
|
|
152
|
+
entitlementIds: number[];
|
|
153
|
+
examinerBrief: string;
|
|
154
|
+
explanation: string;
|
|
155
|
+
hiddenName: string;
|
|
156
|
+
marks: Pick<IOsceStationMark, 'header' | 'name' | 'index'>[];
|
|
157
|
+
name: string;
|
|
158
|
+
osceTypeId: EOsceType;
|
|
150
159
|
}
|
|
151
160
|
export interface IJobRecordMockTest {
|
|
152
161
|
question: string;
|
|
@@ -229,6 +238,10 @@ export interface IJobMetaData {
|
|
|
229
238
|
conceptId: number | null;
|
|
230
239
|
entitlementIds: EEntitlementType[] | null;
|
|
231
240
|
} | null;
|
|
241
|
+
station?: {
|
|
242
|
+
typeId: EOsceType | null;
|
|
243
|
+
entitlementIds: EEntitlementType[] | null;
|
|
244
|
+
} | null;
|
|
232
245
|
}
|
|
233
246
|
export interface IJobChat {
|
|
234
247
|
id: string;
|
package/models/Job.js
CHANGED
|
@@ -118,7 +118,7 @@ const IsJobRecordMockTest = (record) => {
|
|
|
118
118
|
};
|
|
119
119
|
exports.IsJobRecordMockTest = IsJobRecordMockTest;
|
|
120
120
|
const IsJobRecordStation = (record) => {
|
|
121
|
-
return !!record && typeof record === 'object' && '
|
|
121
|
+
return !!record && typeof record === 'object' && 'actorBrief' in record;
|
|
122
122
|
};
|
|
123
123
|
exports.IsJobRecordStation = IsJobRecordStation;
|
|
124
124
|
const IsJobRecordChapter = (record) => {
|
package/package.json
CHANGED
|
@@ -76,7 +76,9 @@ export declare const FLAGGED_QUESTIONS: import("@apollo/client").DocumentNode;
|
|
|
76
76
|
/**
|
|
77
77
|
* flaggedQuestionMarksheet
|
|
78
78
|
*/
|
|
79
|
-
export type IFlaggedQuestionsMarksheetVar =
|
|
79
|
+
export type IFlaggedQuestionsMarksheetVar = {
|
|
80
|
+
questionIds?: number[];
|
|
81
|
+
};
|
|
80
82
|
export type IFlaggedQuestionsMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'flaggedQuestionsMarksheet'>;
|
|
81
83
|
export declare const FLAGGED_QUESTIONS_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
82
84
|
export interface IMarksheetFeedbackVar {
|
|
@@ -50,9 +50,9 @@ exports.MARKSHEETS_WINDOW = (0, client_1.gql) `
|
|
|
50
50
|
`;
|
|
51
51
|
exports.MARKSHEETS = (0, client_1.gql) `
|
|
52
52
|
${marksheet_1.MARKSHEET_STATS_FIELDS}
|
|
53
|
-
query Marksheets($
|
|
53
|
+
query Marksheets($filter: MarksheetFilterInput!) {
|
|
54
54
|
restricted {
|
|
55
|
-
marksheets(
|
|
55
|
+
marksheets(filter: $filter) {
|
|
56
56
|
results {
|
|
57
57
|
id
|
|
58
58
|
source
|
|
@@ -151,9 +151,9 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
|
|
|
151
151
|
`;
|
|
152
152
|
exports.FLAGGED_QUESTIONS_MARKSHEET = (0, client_1.gql) `
|
|
153
153
|
${marksheet_1.MARKSHEET_FIELDS}
|
|
154
|
-
query FlaggedQuestionsMarksheet {
|
|
154
|
+
query FlaggedQuestionsMarksheet($questionIds: [Int!]) {
|
|
155
155
|
restricted {
|
|
156
|
-
flaggedQuestionsMarksheet {
|
|
156
|
+
flaggedQuestionsMarksheet(questionIds: $questionIds) {
|
|
157
157
|
...MarksheetFields
|
|
158
158
|
}
|
|
159
159
|
}
|