@quesmed/types-rn 2.6.188 → 2.6.190
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 +7 -3
- package/models/Product.d.ts +1 -1
- package/models/Product.js +1 -1
- package/models/User.js +1 -1
- package/package.json +1 -1
- package/resolvers/constants.js +1 -1
- package/resolvers/fragments/job.js +1 -1
- package/resolvers/fragments/record.js +5 -1
- package/resolvers/mutation/admin/job.d.ts +1 -0
package/models/Job.d.ts
CHANGED
|
@@ -132,15 +132,19 @@ export interface IJobRecordChapter {
|
|
|
132
132
|
explanation: string;
|
|
133
133
|
}
|
|
134
134
|
export interface IJobRecordStation {
|
|
135
|
-
|
|
135
|
+
station: string;
|
|
136
136
|
}
|
|
137
137
|
export interface IJobRecordMockTest {
|
|
138
138
|
question: string;
|
|
139
|
+
stem?: string | null;
|
|
140
|
+
stemFromRecordId?: IJobRecord['id'] | null;
|
|
139
141
|
conceptId?: number | null;
|
|
140
142
|
explanation?: string | null;
|
|
141
143
|
learningPoint?: string | null;
|
|
142
|
-
typeId: EQuestionType;
|
|
143
144
|
answer: Exclude<IQuestionAnswer, 'string'>;
|
|
145
|
+
themeIds?: number[];
|
|
146
|
+
typeId: EQuestionType;
|
|
147
|
+
subTypeId?: string | null;
|
|
144
148
|
choices: Array<Pick<IQuestionChoice, 'label' | 'name' | 'answer'> & {
|
|
145
149
|
explanation?: IQuestionChoice['explanation'];
|
|
146
150
|
}>;
|
|
@@ -192,7 +196,6 @@ export interface IJobRecord {
|
|
|
192
196
|
referenceCount: number;
|
|
193
197
|
}
|
|
194
198
|
export interface IJobMetaData {
|
|
195
|
-
productId: EProductType;
|
|
196
199
|
mockTest?: {
|
|
197
200
|
mockTestId: number;
|
|
198
201
|
isNew: boolean;
|
|
@@ -238,6 +241,7 @@ export interface IJob {
|
|
|
238
241
|
priority: EJobPriority;
|
|
239
242
|
totalRecords: number;
|
|
240
243
|
createdBy: IUser['id'];
|
|
244
|
+
productId: EProductType;
|
|
241
245
|
metadata: IJobMetaData;
|
|
242
246
|
dueDate: Date | number;
|
|
243
247
|
createdAt: Date | number;
|
package/models/Product.d.ts
CHANGED
package/models/Product.js
CHANGED
|
@@ -51,7 +51,7 @@ var EProductType;
|
|
|
51
51
|
EProductType[EProductType["MRCP_VIDEO"] = 53] = "MRCP_VIDEO";
|
|
52
52
|
EProductType[EProductType["MRCP_BUNDLE"] = 54] = "MRCP_BUNDLE";
|
|
53
53
|
EProductType[EProductType["COMPLETE_CLINICAL_BUNDLE"] = 55] = "COMPLETE_CLINICAL_BUNDLE";
|
|
54
|
-
EProductType[EProductType["
|
|
54
|
+
EProductType[EProductType["UNDERGRAD_BUNDLE"] = 56] = "UNDERGRAD_BUNDLE";
|
|
55
55
|
})(EProductType = exports.EProductType || (exports.EProductType = {}));
|
|
56
56
|
var EEntitlementType;
|
|
57
57
|
(function (EEntitlementType) {
|
package/models/User.js
CHANGED
|
@@ -58,7 +58,7 @@ exports.dateProductMapping = {
|
|
|
58
58
|
qbankSubscriptionEndDate: Product_1.EProductType.QBANK,
|
|
59
59
|
osceSubscriptionEndDate: Product_1.EProductType.OSCE,
|
|
60
60
|
bundleSubscriptionEndDate: Product_1.EProductType.BUNDLE,
|
|
61
|
-
undergradBundleSubscriptionEndDate: Product_1.EProductType.
|
|
61
|
+
undergradBundleSubscriptionEndDate: Product_1.EProductType.UNDERGRAD_BUNDLE,
|
|
62
62
|
completeClinicalBundleSubscriptionEndDate: Product_1.EProductType.COMPLETE_CLINICAL_BUNDLE,
|
|
63
63
|
anatomySubscriptionEndDate: Product_1.EProductType.ANATOMY,
|
|
64
64
|
medicalSciencesSubscriptionEndDate: Product_1.EProductType.MEDICAL_SCIENCES,
|
package/package.json
CHANGED
package/resolvers/constants.js
CHANGED
|
@@ -40,7 +40,7 @@ exports.productMapping = {
|
|
|
40
40
|
topicType: ALL_TOPIC_TYPE,
|
|
41
41
|
mockType: ALL_MOCKS,
|
|
42
42
|
},
|
|
43
|
-
[models_1.EProductType.
|
|
43
|
+
[models_1.EProductType.UNDERGRAD_BUNDLE]: {
|
|
44
44
|
db: enums_1.DB_TYPE.FINALS,
|
|
45
45
|
topicType: ALL_TOPIC_TYPE,
|
|
46
46
|
mockType: ALL_MOCKS,
|
|
@@ -10,7 +10,6 @@ exports.JOB_STATUS_FRAGMENT = (0, client_1.gql) `
|
|
|
10
10
|
`;
|
|
11
11
|
exports.JOB_META_DATA_FRAGMENT = (0, client_1.gql) `
|
|
12
12
|
fragment JobMetaData on JobMetaData {
|
|
13
|
-
productId
|
|
14
13
|
question {
|
|
15
14
|
typeId
|
|
16
15
|
conceptId
|
|
@@ -31,6 +30,7 @@ exports.JOB_FIELDS_FRAGMENT = (0, client_1.gql) `
|
|
|
31
30
|
name
|
|
32
31
|
description
|
|
33
32
|
type
|
|
33
|
+
productId
|
|
34
34
|
priority
|
|
35
35
|
totalRecords
|
|
36
36
|
dueDate
|
|
@@ -123,15 +123,19 @@ exports.JOB_RECORD_CHAPTER_FRAGMENT = (0, client_1.gql) `
|
|
|
123
123
|
`;
|
|
124
124
|
exports.JOB_RECORD_STATION_FRAGMENT = (0, client_1.gql) `
|
|
125
125
|
fragment JobRecordStation on JobRecordStation {
|
|
126
|
-
|
|
126
|
+
station
|
|
127
127
|
}
|
|
128
128
|
`;
|
|
129
129
|
exports.JOB_RECORD_MOCK_TEST_FRAGMENT = (0, client_1.gql) `
|
|
130
130
|
fragment JobRecordMockTest on JobRecordMockTest {
|
|
131
131
|
question
|
|
132
|
+
stem
|
|
133
|
+
stemFromRecordId
|
|
132
134
|
conceptId
|
|
133
135
|
typeId
|
|
134
136
|
answer
|
|
137
|
+
themeIds
|
|
138
|
+
subTypeId
|
|
135
139
|
choices {
|
|
136
140
|
label
|
|
137
141
|
name
|