@quesmed/types 1.1.0 → 1.2.2
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/Card.d.ts +1 -0
- package/models/Chapter.d.ts +2 -1
- package/models/Difficulty.d.ts +6 -0
- package/models/Difficulty.js +10 -0
- package/models/MockTest.d.ts +2 -1
- package/models/OsceStation.d.ts +2 -1
- package/models/Question.d.ts +2 -1
- package/models/Topic.d.ts +7 -7
- package/models/Topic.js +6 -5
- package/models/index.d.ts +1 -0
- package/models/index.js +1 -0
- package/package.json +1 -1
- package/resolvers/mutation/stripe.d.ts +8 -0
- package/resolvers/query/restricted/marksheet.d.ts +2 -2
- package/resolvers/query/restricted/mockTests.d.ts +2 -1
- package/resolvers/query/restricted/osce.d.ts +2 -2
- package/utils/commonFunctions.js +1 -1
package/models/Card.d.ts
CHANGED
package/models/Chapter.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { IFile } from './File';
|
|
2
2
|
import { IChapterPicture } from './Picture';
|
|
3
|
+
import { ETopicType } from './Topic';
|
|
3
4
|
import { Id } from './Type';
|
|
4
5
|
export interface IChapter {
|
|
5
6
|
id: Id;
|
|
6
7
|
createdAt: string | Date;
|
|
7
8
|
updatedAt: string | Date;
|
|
8
9
|
explanation: string | null;
|
|
9
|
-
|
|
10
|
+
typeId: ETopicType | null;
|
|
10
11
|
pictures: IChapterPicture[];
|
|
11
12
|
files: IFile[];
|
|
12
13
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EDifficultyType = void 0;
|
|
4
|
+
var EDifficultyType;
|
|
5
|
+
(function (EDifficultyType) {
|
|
6
|
+
EDifficultyType[EDifficultyType["ALL"] = 0] = "ALL";
|
|
7
|
+
EDifficultyType[EDifficultyType["CORE"] = 1] = "CORE";
|
|
8
|
+
EDifficultyType[EDifficultyType["CHALLENGING"] = 2] = "CHALLENGING";
|
|
9
|
+
EDifficultyType[EDifficultyType["DIFFICULT"] = 3] = "DIFFICULT";
|
|
10
|
+
})(EDifficultyType = exports.EDifficultyType || (exports.EDifficultyType = {}));
|
package/models/MockTest.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { IQuestion } from './Question';
|
|
2
|
+
import { ETopicType } from './Topic';
|
|
2
3
|
import { Id } from './Type';
|
|
3
4
|
export interface IMockTest {
|
|
4
5
|
id: Id;
|
|
5
6
|
title: string;
|
|
6
|
-
|
|
7
|
+
typeId: ETopicType | null;
|
|
7
8
|
passingMark: number;
|
|
8
9
|
public: boolean;
|
|
9
10
|
questions: IQuestion[];
|
package/models/OsceStation.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IConcept } from './Concept';
|
|
2
|
+
import { EDifficultyType } from './Difficulty';
|
|
2
3
|
import { Id } from './Type';
|
|
3
4
|
export interface IOsceType {
|
|
4
5
|
id: Id;
|
|
@@ -25,7 +26,7 @@ export interface IOsceStation {
|
|
|
25
26
|
name: string;
|
|
26
27
|
osceTypeId: Id;
|
|
27
28
|
osceType?: IOsceType;
|
|
28
|
-
difficulty:
|
|
29
|
+
difficulty: EDifficultyType;
|
|
29
30
|
candidateBrief: string;
|
|
30
31
|
examinerBrief: string;
|
|
31
32
|
actorBrief: string;
|
package/models/Question.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IConcept } from './Concept';
|
|
2
|
+
import { EDifficultyType } from './Difficulty';
|
|
2
3
|
import { IQuestionPicture } from './Picture';
|
|
3
4
|
import { Id } from './Type';
|
|
4
5
|
export declare enum EPsaSectionType {
|
|
@@ -31,7 +32,7 @@ export interface IQuestion {
|
|
|
31
32
|
totalVotes: number;
|
|
32
33
|
choices: IQuestionChoice[];
|
|
33
34
|
pictures: IQuestionPicture[];
|
|
34
|
-
difficulty:
|
|
35
|
+
difficulty: EDifficultyType;
|
|
35
36
|
elo: number;
|
|
36
37
|
psaSectionId: EPsaSectionType;
|
|
37
38
|
}
|
package/models/Topic.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { IConcept } from './Concept';
|
|
2
2
|
import { Id } from './Type';
|
|
3
3
|
export declare enum ETopicType {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
ALL = 0,
|
|
5
|
+
BASIC_SCIENCE = 1,
|
|
6
|
+
CLINICAL = 2,
|
|
7
|
+
ANATOMY = 3,
|
|
8
|
+
DATA_INTERPRETATION = 4,
|
|
9
|
+
PSA = 5
|
|
9
10
|
}
|
|
10
11
|
export interface ITopic {
|
|
11
12
|
id: Id;
|
|
12
13
|
name: string;
|
|
13
|
-
clinical: boolean;
|
|
14
|
-
concepts?: IConcept[];
|
|
15
14
|
typeId: ETopicType | null;
|
|
15
|
+
concepts?: IConcept[];
|
|
16
16
|
}
|
package/models/Topic.js
CHANGED
|
@@ -3,9 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ETopicType = void 0;
|
|
4
4
|
var ETopicType;
|
|
5
5
|
(function (ETopicType) {
|
|
6
|
-
ETopicType[ETopicType["
|
|
7
|
-
ETopicType[ETopicType["
|
|
8
|
-
ETopicType[ETopicType["
|
|
9
|
-
ETopicType[ETopicType["
|
|
10
|
-
ETopicType[ETopicType["
|
|
6
|
+
ETopicType[ETopicType["ALL"] = 0] = "ALL";
|
|
7
|
+
ETopicType[ETopicType["BASIC_SCIENCE"] = 1] = "BASIC_SCIENCE";
|
|
8
|
+
ETopicType[ETopicType["CLINICAL"] = 2] = "CLINICAL";
|
|
9
|
+
ETopicType[ETopicType["ANATOMY"] = 3] = "ANATOMY";
|
|
10
|
+
ETopicType[ETopicType["DATA_INTERPRETATION"] = 4] = "DATA_INTERPRETATION";
|
|
11
|
+
ETopicType[ETopicType["PSA"] = 5] = "PSA";
|
|
11
12
|
})(ETopicType = exports.ETopicType || (exports.ETopicType = {}));
|
package/models/index.d.ts
CHANGED
package/models/index.js
CHANGED
|
@@ -15,6 +15,7 @@ __exportStar(require("./Book"), exports);
|
|
|
15
15
|
__exportStar(require("./Card"), exports);
|
|
16
16
|
__exportStar(require("./Chapter"), exports);
|
|
17
17
|
__exportStar(require("./Concept"), exports);
|
|
18
|
+
__exportStar(require("./Difficulty"), exports);
|
|
18
19
|
__exportStar(require("./Feedback"), exports);
|
|
19
20
|
__exportStar(require("./File"), exports);
|
|
20
21
|
__exportStar(require("./Marksheet"), exports);
|
package/package.json
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
export declare type ICustomerPortalVar = null;
|
|
2
2
|
export declare type ICustomerPortalData = string;
|
|
3
|
+
export interface IStripeLineItem {
|
|
4
|
+
price: string;
|
|
5
|
+
quantity: number;
|
|
6
|
+
}
|
|
7
|
+
export interface IStripeHomepageCheckoutSessionVar {
|
|
8
|
+
lineItems: IStripeLineItem[];
|
|
9
|
+
}
|
|
10
|
+
export declare type IStripeHomepageCheckoutSessionData = string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Id, IMarksheet, IUserFlaggedQuestions } from '../../../models';
|
|
1
|
+
import { EDifficultyType, Id, IMarksheet, IUserFlaggedQuestions } from '../../../models';
|
|
2
2
|
import { IPreBuildMarksheet } from '../../mutation/restricted';
|
|
3
3
|
export interface IMarksheetVar {
|
|
4
4
|
id: Id;
|
|
@@ -10,7 +10,7 @@ export interface IPreBuildMarksheetVar {
|
|
|
10
10
|
conceptIds: number[];
|
|
11
11
|
search: string;
|
|
12
12
|
source: string;
|
|
13
|
-
difficulty?:
|
|
13
|
+
difficulty?: EDifficultyType[];
|
|
14
14
|
}
|
|
15
15
|
export interface IPreBuildMarksheetData extends IPreBuildMarksheet {
|
|
16
16
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Id, IUserMockTest } from '../../../models';
|
|
2
|
+
import { ETopicType } from './../../../models/Topic';
|
|
2
3
|
export interface IMockTestVar {
|
|
3
4
|
id: Id;
|
|
4
5
|
}
|
|
5
6
|
export declare type IMockTestData = IUserMockTest;
|
|
6
7
|
export interface IMockTestsVar {
|
|
7
|
-
|
|
8
|
+
typeIds?: ETopicType[];
|
|
8
9
|
}
|
|
9
10
|
export declare type IMockTestsData = IUserMockTest[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Id, IDashboardOsce, IOsceMarksheet, IOsceStation, IOsceStationItem } from '../../../models';
|
|
1
|
+
import { EDifficultyType, Id, IDashboardOsce, IOsceMarksheet, IOsceStation, IOsceStationItem } from '../../../models';
|
|
2
2
|
export interface IDashboardOsceVar {
|
|
3
3
|
solo: boolean;
|
|
4
4
|
}
|
|
@@ -22,7 +22,7 @@ export interface IOsceStationsVar {
|
|
|
22
22
|
osceTypeId?: Id;
|
|
23
23
|
solo: boolean;
|
|
24
24
|
attempted: boolean;
|
|
25
|
-
difficulty:
|
|
25
|
+
difficulty: EDifficultyType[];
|
|
26
26
|
}
|
|
27
27
|
export declare type IOsceStationsData = IOsceStationItem[];
|
|
28
28
|
export interface ISearchOsceStationsVar {
|
package/utils/commonFunctions.js
CHANGED
|
@@ -147,7 +147,7 @@ function correctMark(mark) {
|
|
|
147
147
|
data.incorrect = true;
|
|
148
148
|
}
|
|
149
149
|
else if (attemptA.every((x, i) => x === answerA[i]) &&
|
|
150
|
-
attemptB.every((
|
|
150
|
+
attemptB.every((x, i) => x === answerB[i])) {
|
|
151
151
|
data.correct = true;
|
|
152
152
|
}
|
|
153
153
|
else {
|