@quesmed/types-rn 2.6.6 → 2.6.7

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.
@@ -0,0 +1,22 @@
1
+ import { IConcept } from './Concept';
2
+ import { Id } from './Type';
3
+ import { IUkmlaTopic } from './UkmlaTopic';
4
+ export interface ICondition {
5
+ id: Id;
6
+ createdAt: number | Date;
7
+ updatedAt: number | Date;
8
+ deletedAt: number | Date;
9
+ name: string;
10
+ topicId: Id;
11
+ topic: IUkmlaTopic;
12
+ concepts?: IConcept[];
13
+ demo?: boolean;
14
+ totalQuestions?: number | null;
15
+ correctQuestions?: number | null;
16
+ incorrectQuestions?: number | null;
17
+ }
18
+ export interface IConditionConcept {
19
+ id: Id;
20
+ conditionId: Id;
21
+ conceptId: Id;
22
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ import { IUkmlaTopic } from './UkmlaTopic';
2
+ import { Id } from './Type';
3
+ export interface IPresentation {
4
+ id: Id;
5
+ createdAt: number | Date;
6
+ updatedAt: number | Date;
7
+ deletedAt: number | Date;
8
+ name: string;
9
+ topicId: Id;
10
+ topic: IUkmlaTopic;
11
+ demo?: boolean;
12
+ totalQuestions?: number | null;
13
+ correctQuestions?: number | null;
14
+ incorrectQuestions?: number | null;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,11 @@
1
1
  import { IConcept } from './Concept';
2
+ import { ICondition } from './Condition';
2
3
  import { EDifficultyType } from './Difficulty';
3
4
  import { IPicture } from './Picture';
5
+ import { IPresentation } from './Presentation';
4
6
  import { ITopic } from './Topic';
5
7
  import { Id } from './Type';
8
+ import { IUkmlaTopic } from './UkmlaTopic';
6
9
  import { IUser } from './User';
7
10
  export declare enum EPsaSectionType {
8
11
  PRESCRIBING = 1,
@@ -70,6 +73,8 @@ export interface IQuestion {
70
73
  conceptId: Id;
71
74
  public: boolean;
72
75
  concept?: IConcept;
76
+ condition?: ICondition[];
77
+ presentation?: IPresentation[];
73
78
  question: string;
74
79
  explanation?: string;
75
80
  answer: IQuestionAnswer;
@@ -77,6 +82,7 @@ export interface IQuestion {
77
82
  choices: IQuestionChoice[];
78
83
  cases?: IQuestionCase[];
79
84
  topic?: ITopic;
85
+ uklmaTopics?: IUkmlaTopic[];
80
86
  pictures?: IPicture[];
81
87
  difficulty: EDifficultyType;
82
88
  elo: number;
@@ -0,0 +1,36 @@
1
+ import { ICondition } from './Condition';
2
+ import { IPresentation } from './Presentation';
3
+ import { Id } from './Type';
4
+ export interface IUkmlaTopic {
5
+ id: Id;
6
+ createdAt: number | Date;
7
+ updatedAt: number | Date;
8
+ deletedAt: number | Date;
9
+ name: string;
10
+ demo?: boolean;
11
+ conditions?: ICondition[];
12
+ presentations?: IPresentation[];
13
+ totalQuestions?: number | null;
14
+ correctQuestions?: number | null;
15
+ incorrectQuestions?: number | null;
16
+ }
17
+ export interface IUkmlaTopicPresentation {
18
+ id: Id;
19
+ ukmlaTopicId: Id;
20
+ presentationId: Id;
21
+ }
22
+ export interface IUkmlaTopicCondition {
23
+ id: Id;
24
+ ukmlaTopicId: Id;
25
+ conditionId: Id;
26
+ }
27
+ export interface IQuestionPresentation {
28
+ id: Id;
29
+ questionId: Id;
30
+ presentationId: Id;
31
+ }
32
+ export interface IQuestionCondition {
33
+ id: Id;
34
+ questionId: Id;
35
+ conditionId: Id;
36
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/models/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from './Book';
4
4
  export * from './Card';
5
5
  export * from './Chapter';
6
6
  export * from './Concept';
7
+ export * from './Condition';
7
8
  export * from './Difficulty';
8
9
  export * from './Feedback';
9
10
  export * from './File';
@@ -14,6 +15,7 @@ export * from './OsceMarksheet';
14
15
  export * from './OsceStation';
15
16
  export * from './Paces';
16
17
  export * from './Picture';
18
+ export * from './Presentation';
17
19
  export * from './Preset';
18
20
  export * from './Product';
19
21
  export * from './Promo';
@@ -24,6 +26,7 @@ export * from './Todo';
24
26
  export * from './Token';
25
27
  export * from './Topic';
26
28
  export * from './Type';
29
+ export * from './UkmlaTopic';
27
30
  export * from './University';
28
31
  export * from './User';
29
32
  export * from './Video';
package/models/index.js CHANGED
@@ -20,6 +20,7 @@ __exportStar(require("./Book"), exports);
20
20
  __exportStar(require("./Card"), exports);
21
21
  __exportStar(require("./Chapter"), exports);
22
22
  __exportStar(require("./Concept"), exports);
23
+ __exportStar(require("./Condition"), exports);
23
24
  __exportStar(require("./Difficulty"), exports);
24
25
  __exportStar(require("./Feedback"), exports);
25
26
  __exportStar(require("./File"), exports);
@@ -30,6 +31,7 @@ __exportStar(require("./OsceMarksheet"), exports);
30
31
  __exportStar(require("./OsceStation"), exports);
31
32
  __exportStar(require("./Paces"), exports);
32
33
  __exportStar(require("./Picture"), exports);
34
+ __exportStar(require("./Presentation"), exports);
33
35
  __exportStar(require("./Preset"), exports);
34
36
  __exportStar(require("./Product"), exports);
35
37
  __exportStar(require("./Promo"), exports);
@@ -40,6 +42,7 @@ __exportStar(require("./Todo"), exports);
40
42
  __exportStar(require("./Token"), exports);
41
43
  __exportStar(require("./Topic"), exports);
42
44
  __exportStar(require("./Type"), exports);
45
+ __exportStar(require("./UkmlaTopic"), exports);
43
46
  __exportStar(require("./University"), exports);
44
47
  __exportStar(require("./User"), exports);
45
48
  __exportStar(require("./Video"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.6",
3
+ "version": "2.6.7",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -12,6 +12,7 @@ export * from './question';
12
12
  export * from './replication';
13
13
  export * from './todos';
14
14
  export * from './topics';
15
+ export * from './ukmlaTopics';
15
16
  export * from './university';
16
17
  export * from './user';
17
18
  export * from './video';
@@ -28,6 +28,7 @@ __exportStar(require("./question"), exports);
28
28
  __exportStar(require("./replication"), exports);
29
29
  __exportStar(require("./todos"), exports);
30
30
  __exportStar(require("./topics"), exports);
31
+ __exportStar(require("./ukmlaTopics"), exports);
31
32
  __exportStar(require("./university"), exports);
32
33
  __exportStar(require("./user"), exports);
33
34
  __exportStar(require("./video"), exports);
@@ -0,0 +1,25 @@
1
+ import { EDifficultyType, IUkmlaTopic, Id } from '../../../models';
2
+ import { ESortOrder } from '../../enums';
3
+ import { IPreBuildMarksheet } from '../../mutation/restricted';
4
+ import { RestrictedData, graphqlNormalize } from '../../types';
5
+ export interface IUkmlaTopicVar {
6
+ id: Id;
7
+ }
8
+ export type IUkmlaTopicData = RestrictedData<graphqlNormalize & IUkmlaTopic, 'ukmlaTopic'>;
9
+ export declare const UKMLA_TOPIC: import("@apollo/client").DocumentNode;
10
+ export interface IUkmlaTopicsVar {
11
+ order?: ESortOrder;
12
+ }
13
+ export type IUkmlaTopicsData = RestrictedData<(graphqlNormalize & IUkmlaTopic)[], 'ukmlaTopics'>;
14
+ export declare const UKMLA_TOPICS: import("@apollo/client").DocumentNode;
15
+ export interface IPreBuildUkmlaMarksheetVar {
16
+ topicIds: number[];
17
+ conditionIds: number[];
18
+ presentationIds: number[];
19
+ search: string;
20
+ marksheetId?: Id;
21
+ source: string;
22
+ difficulty?: EDifficultyType[];
23
+ }
24
+ export type IPreBuildUkmlaMarksheetData = RestrictedData<graphqlNormalize & IPreBuildMarksheet, 'preBuildUkmlaMarksheet'>;
25
+ export declare const PRE_BUILD_UKMLA_MARKSHEET: import("@apollo/client").DocumentNode;
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRE_BUILD_UKMLA_MARKSHEET = exports.UKMLA_TOPICS = exports.UKMLA_TOPIC = void 0;
4
+ const client_1 = require("@apollo/client");
5
+ exports.UKMLA_TOPIC = (0, client_1.gql) `
6
+ query UkmlaTopic($id: Int!) {
7
+ restricted {
8
+ ukmlaTopic(id: $id) {
9
+ id
10
+ name
11
+ totalQuestions
12
+ correctQuestions
13
+ incorrectQuestions
14
+ conditions {
15
+ id
16
+ name
17
+ totalQuestions
18
+ correctQuestions
19
+ incorrectQuestions
20
+ topicId
21
+ topic {
22
+ id
23
+ name
24
+ }
25
+ }
26
+ presentations {
27
+ id
28
+ name
29
+ totalQuestions
30
+ correctQuestions
31
+ incorrectQuestions
32
+ topicId
33
+ topic {
34
+ id
35
+ name
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+ `;
42
+ exports.UKMLA_TOPICS = (0, client_1.gql) `
43
+ query UkmlaTopics($order: Int) {
44
+ restricted {
45
+ ukmlaTopics(order: $order) {
46
+ id
47
+ name
48
+ demo
49
+ totalQuestions
50
+ correctQuestions
51
+ incorrectQuestions
52
+ conditions {
53
+ id
54
+ name
55
+ demo
56
+ totalQuestions
57
+ correctQuestions
58
+ incorrectQuestions
59
+ concepts {
60
+ id
61
+ name
62
+ topicId
63
+ chapterId
64
+ }
65
+ topic {
66
+ id
67
+ name
68
+ }
69
+ }
70
+ presentations {
71
+ id
72
+ name
73
+ demo
74
+ totalQuestions
75
+ correctQuestions
76
+ incorrectQuestions
77
+ topic {
78
+ id
79
+ name
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ `;
86
+ exports.PRE_BUILD_UKMLA_MARKSHEET = (0, client_1.gql) `
87
+ query PreBuildUkmlaMarksheet(
88
+ $topicIds: [Int!]
89
+ $conditionIds: [Int!]
90
+ $presentationIds: [Int!]
91
+ $source: String!
92
+ $search: String
93
+ $marksheetId: Int
94
+ $difficulty: [Int!]
95
+ ) {
96
+ restricted {
97
+ preBuildUkmlaMarksheet(
98
+ topicIds: $topicIds
99
+ conditionIds: $conditionIds
100
+ presentationIds: $presentationIds
101
+ source: $source
102
+ search: $search
103
+ marksheetId: $marksheetId
104
+ difficulty: $difficulty
105
+ ) {
106
+ unseen
107
+ seenCorrect
108
+ seenIncorrect
109
+ buildRef
110
+ }
111
+ }
112
+ }
113
+ `;