@quesmed/types-rn 2.5.47 → 2.5.49
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/index.d.ts +7 -0
- package/index.js +9 -1
- package/models/Marksheet.d.ts +2 -0
- package/models/MockTest.d.ts +2 -0
- package/models/OsceMarksheet.d.ts +2 -0
- package/models/Question.d.ts +2 -2
- package/models/Topic.d.ts +2 -1
- package/models/Topic.js +1 -0
- package/package.json +1 -1
- package/resolvers/mutation/restricted/marksheet.d.ts +2 -0
- package/resolvers/mutation/restricted/mockTest.d.ts +1 -0
package/index.d.ts
CHANGED
|
@@ -8,6 +8,13 @@ export declare const ERRORS: {
|
|
|
8
8
|
SUBSCRIPTION_EXPIRED: string;
|
|
9
9
|
PERMISSION_INVALID: string;
|
|
10
10
|
};
|
|
11
|
+
export declare enum AlgoliaIndex {
|
|
12
|
+
Questions = "questions",
|
|
13
|
+
Flashcards = "cards",
|
|
14
|
+
Quesbook = "quesbook",
|
|
15
|
+
OsceBook = "oscebook",
|
|
16
|
+
Videos = "videos"
|
|
17
|
+
}
|
|
11
18
|
export declare enum EGrammarType {
|
|
12
19
|
QUESTION = 0,
|
|
13
20
|
CARD = 1,
|
package/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.generateDisplayName = exports.medicalWords = exports.termsAndConditions = exports.EPlatformId = exports.FCM_TOPICS = exports.EGrammarType = exports.ERRORS = exports.utils = exports.Models = void 0;
|
|
29
|
+
exports.generateDisplayName = exports.medicalWords = exports.termsAndConditions = exports.EPlatformId = exports.FCM_TOPICS = exports.EGrammarType = exports.AlgoliaIndex = exports.ERRORS = exports.utils = exports.Models = void 0;
|
|
30
30
|
const random_1 = require("./utils/random");
|
|
31
31
|
exports.Models = __importStar(require("./models"));
|
|
32
32
|
__exportStar(require("./resolvers"), exports);
|
|
@@ -38,6 +38,14 @@ exports.ERRORS = {
|
|
|
38
38
|
SUBSCRIPTION_EXPIRED: 'Expired subscription.',
|
|
39
39
|
PERMISSION_INVALID: 'Invalid permission.',
|
|
40
40
|
};
|
|
41
|
+
var AlgoliaIndex;
|
|
42
|
+
(function (AlgoliaIndex) {
|
|
43
|
+
AlgoliaIndex["Questions"] = "questions";
|
|
44
|
+
AlgoliaIndex["Flashcards"] = "cards";
|
|
45
|
+
AlgoliaIndex["Quesbook"] = "quesbook";
|
|
46
|
+
AlgoliaIndex["OsceBook"] = "oscebook";
|
|
47
|
+
AlgoliaIndex["Videos"] = "videos";
|
|
48
|
+
})(AlgoliaIndex = exports.AlgoliaIndex || (exports.AlgoliaIndex = {}));
|
|
41
49
|
var EGrammarType;
|
|
42
50
|
(function (EGrammarType) {
|
|
43
51
|
EGrammarType[EGrammarType["QUESTION"] = 0] = "QUESTION";
|
package/models/Marksheet.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IBuildConfigData, IPreBuildMarksheet } from '../resolvers/mutation/restricted/marksheet';
|
|
2
|
+
import { EProductType } from './Product';
|
|
2
3
|
import { IPrescribeAnswer, IPrescribeMark, IQuestion, IQuestionChoice, IQuestionQAAnswer } from './Question';
|
|
3
4
|
import { ETopicType } from './Topic';
|
|
4
5
|
import { Id } from './Type';
|
|
@@ -78,6 +79,7 @@ export interface IMarksheet {
|
|
|
78
79
|
topicConceptData?: string;
|
|
79
80
|
preBuildData?: IPreBuildMarksheet;
|
|
80
81
|
builderConfig?: IBuildConfigData;
|
|
82
|
+
productId: EProductType;
|
|
81
83
|
}
|
|
82
84
|
export type IMarksheetMarkJSONB = string | [string] | [IQuestionQAAnswer] | [string[], string[]] | [IPrescribeMark] | IPrescribeAnswer | null;
|
|
83
85
|
export interface IMarksheetMark {
|
package/models/MockTest.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EProductType } from './Product';
|
|
1
2
|
import { IQuestion } from './Question';
|
|
2
3
|
import { Id } from './Type';
|
|
3
4
|
export declare enum EMockTestType {
|
|
@@ -21,6 +22,7 @@ export interface IMockTest {
|
|
|
21
22
|
passingMark: number;
|
|
22
23
|
public: boolean;
|
|
23
24
|
questions: IQuestion[];
|
|
25
|
+
productId: EProductType[];
|
|
24
26
|
}
|
|
25
27
|
export interface IUserMockTest {
|
|
26
28
|
id: Id;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IOsceStation, IOsceStationMark, IOsceType } from './OsceStation';
|
|
2
|
+
import { EProductType } from './Product';
|
|
2
3
|
import { Id } from './Type';
|
|
3
4
|
import { IUser } from './User';
|
|
4
5
|
export interface IOsceMarksheetMember {
|
|
@@ -81,6 +82,7 @@ export interface IOsceMarksheet {
|
|
|
81
82
|
members: IOsceMarksheetMember[];
|
|
82
83
|
state: EOsceMarksheetState;
|
|
83
84
|
completed: boolean;
|
|
85
|
+
productId: EProductType;
|
|
84
86
|
}
|
|
85
87
|
export interface IDashboardOsce {
|
|
86
88
|
lastSessionId: string;
|
package/models/Question.d.ts
CHANGED
|
@@ -177,11 +177,11 @@ export interface IQuestionEMQ extends IQuestion {
|
|
|
177
177
|
}
|
|
178
178
|
export interface IQuestionSelect3 extends IQuestion {
|
|
179
179
|
answer: [string, string, string];
|
|
180
|
-
|
|
180
|
+
select3Answer: [string, string, string];
|
|
181
181
|
}
|
|
182
182
|
export interface IQuestionRanking extends IQuestion {
|
|
183
183
|
answer: string[];
|
|
184
|
-
|
|
184
|
+
rankingAnswer: string[];
|
|
185
185
|
}
|
|
186
186
|
export declare function isQuestionPrescribe(data: IQuestionAll): data is IQuestionPrescribe;
|
|
187
187
|
export interface IQuestionPrescribe extends IQuestion {
|
package/models/Topic.d.ts
CHANGED
package/models/Topic.js
CHANGED
|
@@ -11,4 +11,5 @@ var ETopicType;
|
|
|
11
11
|
ETopicType[ETopicType["PSA"] = 5] = "PSA";
|
|
12
12
|
ETopicType[ETopicType["OSCE"] = 6] = "OSCE";
|
|
13
13
|
ETopicType[ETopicType["MOCK_TEST"] = 7] = "MOCK_TEST";
|
|
14
|
+
ETopicType[ETopicType["SJT"] = 8] = "SJT";
|
|
14
15
|
})(ETopicType = exports.ETopicType || (exports.ETopicType = {}));
|
package/package.json
CHANGED
|
@@ -171,6 +171,7 @@ export declare const optimisticModifyMarksheetBuilderConfig: (marksheetId: numbe
|
|
|
171
171
|
currentMarkId?: number | undefined;
|
|
172
172
|
topicConceptData?: string | undefined;
|
|
173
173
|
preBuildData?: IPreBuildMarksheet | undefined;
|
|
174
|
+
productId: import("../../../models").EProductType;
|
|
174
175
|
};
|
|
175
176
|
};
|
|
176
177
|
};
|
|
@@ -267,6 +268,7 @@ export declare const optimisticEndMarksheet: (marksheet: IMarksheet) => {
|
|
|
267
268
|
topicConceptData?: string | undefined;
|
|
268
269
|
preBuildData?: IPreBuildMarksheet | undefined;
|
|
269
270
|
builderConfig?: IBuildConfigData | undefined;
|
|
271
|
+
productId: import("../../../models").EProductType;
|
|
270
272
|
__typename: string;
|
|
271
273
|
};
|
|
272
274
|
};
|
|
@@ -76,6 +76,7 @@ export declare const optimisticEndMockTest: (marksheet: IMarksheet) => {
|
|
|
76
76
|
topicConceptData?: string | undefined;
|
|
77
77
|
preBuildData?: import("./marksheet").IPreBuildMarksheet | undefined;
|
|
78
78
|
builderConfig?: import("./marksheet").IBuildConfigData | undefined;
|
|
79
|
+
productId: import("../../../models").EProductType;
|
|
79
80
|
__typename: string;
|
|
80
81
|
};
|
|
81
82
|
};
|