@quesmed/types 1.0.20 → 1.0.24

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.
@@ -5,6 +5,7 @@ export interface IMockTest {
5
5
  title: string;
6
6
  clinical: boolean;
7
7
  passingMark: number;
8
+ public: boolean;
8
9
  questions: IQuestion[];
9
10
  }
10
11
  export interface IUserMockTest {
@@ -1,16 +1,26 @@
1
1
  import { IConcept } from './Concept';
2
2
  import { IQuestionPicture } from './Picture';
3
3
  import { Id } from './Type';
4
+ export declare enum EPsaSectionType {
5
+ PRESCRIBING = 1,
6
+ PRESCRIPTION_REVIEW = 2,
7
+ PLANNING_MANAGEMENT = 3,
8
+ PROVIDING_INFORMATION = 4,
9
+ CALCULATION_SKILLS = 5,
10
+ ADVERSE_DRUG_REACTION = 6,
11
+ DRUG_MONITORING = 7,
12
+ DATA_INTERPRETATION = 8
13
+ }
4
14
  export declare enum EQuestionType {
5
15
  SINGLE_BEST_ANSWER = 1,
6
16
  QUESTION_ANSWER = 2,
7
17
  MULTIPLE_ANSWERS = 3,
8
18
  PRESCRIPTION_ANSWER = 4
9
19
  }
10
- export declare type IQuestionAnswer = [string] | [string[], string[]] | IPrescribeAnswer[];
20
+ export declare type IQuestionAnswer = string | [string] | [string[], string[]] | IPrescribeAnswer[];
11
21
  export interface IQuestion {
12
22
  id: Id;
13
- typeId: Id;
23
+ typeId: EQuestionType;
14
24
  conceptId: Id;
15
25
  public: boolean;
16
26
  concept?: IConcept;
@@ -20,6 +30,9 @@ export interface IQuestion {
20
30
  totalVotes: number;
21
31
  choices: IQuestionChoice[];
22
32
  pictures: IQuestionPicture[];
33
+ difficulty: number;
34
+ elo: number;
35
+ psaSectionId: EPsaSectionType;
23
36
  }
24
37
  export interface IQuestionChoice {
25
38
  id: Id;
@@ -1,6 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EQuestionType = void 0;
3
+ exports.EQuestionType = exports.EPsaSectionType = void 0;
4
+ var EPsaSectionType;
5
+ (function (EPsaSectionType) {
6
+ EPsaSectionType[EPsaSectionType["PRESCRIBING"] = 1] = "PRESCRIBING";
7
+ EPsaSectionType[EPsaSectionType["PRESCRIPTION_REVIEW"] = 2] = "PRESCRIPTION_REVIEW";
8
+ EPsaSectionType[EPsaSectionType["PLANNING_MANAGEMENT"] = 3] = "PLANNING_MANAGEMENT";
9
+ EPsaSectionType[EPsaSectionType["PROVIDING_INFORMATION"] = 4] = "PROVIDING_INFORMATION";
10
+ EPsaSectionType[EPsaSectionType["CALCULATION_SKILLS"] = 5] = "CALCULATION_SKILLS";
11
+ EPsaSectionType[EPsaSectionType["ADVERSE_DRUG_REACTION"] = 6] = "ADVERSE_DRUG_REACTION";
12
+ EPsaSectionType[EPsaSectionType["DRUG_MONITORING"] = 7] = "DRUG_MONITORING";
13
+ EPsaSectionType[EPsaSectionType["DATA_INTERPRETATION"] = 8] = "DATA_INTERPRETATION";
14
+ })(EPsaSectionType = exports.EPsaSectionType || (exports.EPsaSectionType = {}));
4
15
  var EQuestionType;
5
16
  (function (EQuestionType) {
6
17
  EQuestionType[EQuestionType["SINGLE_BEST_ANSWER"] = 1] = "SINGLE_BEST_ANSWER";
package/models/User.d.ts CHANGED
@@ -39,6 +39,7 @@ export interface IUser {
39
39
  subscriptionId: Id | null;
40
40
  subscription?: ISubscription | null;
41
41
  stripeSubscriptionEndDate: Date | string | null;
42
+ stripePriceNickname: string | null;
42
43
  }
43
44
  export interface IUserCompletedQuestions {
44
45
  id: Id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "1.0.20",
3
+ "version": "1.0.24",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "main": "index.js",
6
6
  "types": "dist/index.d.ts",
@@ -45,7 +45,6 @@ export interface ISaveOsceMarksheetVar {
45
45
  export declare type ISaveOsceMarksheetData = number;
46
46
  export interface IOsceMarksheetActionsVar {
47
47
  osceMarksheetId: Id;
48
- userId: Id;
49
48
  timeRemaining?: number;
50
49
  action: EOsceMarksheetAction;
51
50
  }