@quesmed/types-rn 2.6.57 → 2.6.59
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/Marksheet.d.ts +3 -2
- package/models/OsceMarksheet.d.ts +2 -2
- package/models/Product.d.ts +9 -2
- package/models/Product.js +27 -20
- package/package.json +1 -1
- package/resolvers/fragments/osce.js +7 -0
- package/resolvers/mutation/restricted/marksheet.d.ts +2 -2
- package/resolvers/mutation/restricted/mockTest.d.ts +1 -1
- package/resolvers/mutation/restricted/osce.d.ts +3 -2
- package/resolvers/mutation/restricted/osce.js +2 -1
- package/resolvers/mutation/restricted/questionDiscussion.js +1 -1
- package/resolvers/query/restricted/marksheet.d.ts +2 -1
- package/resolvers/query/restricted/marksheet.js +2 -0
- package/resolvers/query/restricted/todos.d.ts +2 -1
- package/resolvers/query/restricted/todos.js +2 -0
package/models/Marksheet.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IBuildConfigData, IPreBuildMarksheet } from '../resolvers/mutation/restricted/marksheet';
|
|
2
|
-
import { EProductType, IEntitlement } from './Product';
|
|
2
|
+
import { EEntitlementType, EProductType, IEntitlement } from './Product';
|
|
3
3
|
import { IPrescribeMark, IQuestion, IQuestionChoice, IQuestionQAAnswer } from './Question';
|
|
4
4
|
import { ETopicType } from './Topic';
|
|
5
5
|
import { Id } from './Type';
|
|
@@ -91,7 +91,7 @@ export interface IMarksheet {
|
|
|
91
91
|
topicConceptData?: string;
|
|
92
92
|
preBuildData?: IPreBuildMarksheet;
|
|
93
93
|
builderConfig?: IBuildConfigData;
|
|
94
|
-
entitlementId: EProductType;
|
|
94
|
+
entitlementId: EProductType | EEntitlementType;
|
|
95
95
|
}
|
|
96
96
|
export type IMarksheetMarkJSONB = string | [string] | [IQuestionQAAnswer] | [string[], string[]] | [IPrescribeMark] | null;
|
|
97
97
|
export interface IMarksheetMark {
|
|
@@ -118,4 +118,5 @@ export interface IPreBuildMarksheetRef {
|
|
|
118
118
|
seenCorrect: number[];
|
|
119
119
|
seenIncorrect: number[];
|
|
120
120
|
source: string;
|
|
121
|
+
entitlementId: IMarksheet['entitlementId'];
|
|
121
122
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Nullable } from '../resolvers';
|
|
2
2
|
import { IOsceStation, IOsceStationMark, IOsceType } from './OsceStation';
|
|
3
3
|
import { EPaceMarkType } from './Paces';
|
|
4
|
-
import { EProductType } from './Product';
|
|
4
|
+
import { EEntitlementType, EProductType } from './Product';
|
|
5
5
|
import { Id } from './Type';
|
|
6
6
|
import { IUser } from './User';
|
|
7
7
|
export interface IOsceMarksheetMember {
|
|
@@ -85,7 +85,7 @@ export interface IOsceMarksheet {
|
|
|
85
85
|
members: IOsceMarksheetMember[];
|
|
86
86
|
state: EOsceMarksheetState;
|
|
87
87
|
completed: boolean;
|
|
88
|
-
entitlementId: EProductType;
|
|
88
|
+
entitlementId: EProductType | EEntitlementType;
|
|
89
89
|
isTimed: boolean;
|
|
90
90
|
}
|
|
91
91
|
export interface IDashboardOsce {
|
package/models/Product.d.ts
CHANGED
|
@@ -15,6 +15,10 @@ export declare enum EProductType {
|
|
|
15
15
|
INTERVIEW_CST = 12,
|
|
16
16
|
INTERVIEW_IMT = 13,
|
|
17
17
|
INTERVIEW_RADIOLOGY = 14,
|
|
18
|
+
PLAB1 = 34,
|
|
19
|
+
PLAB2 = 35
|
|
20
|
+
}
|
|
21
|
+
export declare enum EEntitlementType {
|
|
18
22
|
CLINICAL = 15,
|
|
19
23
|
DATA_INTERPRETATION = 16,
|
|
20
24
|
CLINICAL_SUBSET = 17,
|
|
@@ -34,8 +38,10 @@ export declare enum EProductType {
|
|
|
34
38
|
CONSULTATION = 31,
|
|
35
39
|
NEUROLOGY = 32,
|
|
36
40
|
RESPIRATORY = 33,
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
ANATOMY = 36,
|
|
42
|
+
PRE_CLINICAL = 37,
|
|
43
|
+
MRCP_PART_1 = 38,
|
|
44
|
+
MRCP_PART_2 = 39
|
|
39
45
|
}
|
|
40
46
|
export interface IProduct {
|
|
41
47
|
id: Id;
|
|
@@ -52,6 +58,7 @@ export interface IProduct {
|
|
|
52
58
|
export interface IEntitlementType {
|
|
53
59
|
id: Id;
|
|
54
60
|
name: string;
|
|
61
|
+
isProduct: boolean;
|
|
55
62
|
}
|
|
56
63
|
export declare enum EAppType {
|
|
57
64
|
AMS = 1,
|
package/models/Product.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EAppType = exports.EProductType = void 0;
|
|
3
|
+
exports.EAppType = exports.EEntitlementType = exports.EProductType = void 0;
|
|
4
4
|
var EProductType;
|
|
5
5
|
(function (EProductType) {
|
|
6
6
|
EProductType[EProductType["ALL"] = 0] = "ALL";
|
|
@@ -18,28 +18,35 @@ var EProductType;
|
|
|
18
18
|
EProductType[EProductType["INTERVIEW_CST"] = 12] = "INTERVIEW_CST";
|
|
19
19
|
EProductType[EProductType["INTERVIEW_IMT"] = 13] = "INTERVIEW_IMT";
|
|
20
20
|
EProductType[EProductType["INTERVIEW_RADIOLOGY"] = 14] = "INTERVIEW_RADIOLOGY";
|
|
21
|
-
EProductType[EProductType["CLINICAL"] = 15] = "CLINICAL";
|
|
22
|
-
EProductType[EProductType["DATA_INTERPRETATION"] = 16] = "DATA_INTERPRETATION";
|
|
23
|
-
EProductType[EProductType["CLINICAL_SUBSET"] = 17] = "CLINICAL_SUBSET";
|
|
24
|
-
EProductType[EProductType["CLINICAL_PROBLEM_SOLVING"] = 18] = "CLINICAL_PROBLEM_SOLVING";
|
|
25
|
-
EProductType[EProductType["PROFESSIONAL_DILEMMA"] = 19] = "PROFESSIONAL_DILEMMA";
|
|
26
|
-
EProductType[EProductType["HISTORY_TAKING"] = 20] = "HISTORY_TAKING";
|
|
27
|
-
EProductType[EProductType["COMMUNICATION_SKILLS"] = 21] = "COMMUNICATION_SKILLS";
|
|
28
|
-
EProductType[EProductType["EXAMINATION"] = 22] = "EXAMINATION";
|
|
29
|
-
EProductType[EProductType["PROCEDURE"] = 23] = "PROCEDURE";
|
|
30
|
-
EProductType[EProductType["INTERPRETATION"] = 24] = "INTERPRETATION";
|
|
31
|
-
EProductType[EProductType["ABCDE"] = 25] = "ABCDE";
|
|
32
|
-
EProductType[EProductType["PRESCRIBING"] = 26] = "PRESCRIBING";
|
|
33
|
-
EProductType[EProductType["MIXED"] = 27] = "MIXED";
|
|
34
|
-
EProductType[EProductType["ABDOMINAL"] = 28] = "ABDOMINAL";
|
|
35
|
-
EProductType[EProductType["CARDIOVASCULAR"] = 29] = "CARDIOVASCULAR";
|
|
36
|
-
EProductType[EProductType["COMMUNICATION"] = 30] = "COMMUNICATION";
|
|
37
|
-
EProductType[EProductType["CONSULTATION"] = 31] = "CONSULTATION";
|
|
38
|
-
EProductType[EProductType["NEUROLOGY"] = 32] = "NEUROLOGY";
|
|
39
|
-
EProductType[EProductType["RESPIRATORY"] = 33] = "RESPIRATORY";
|
|
40
21
|
EProductType[EProductType["PLAB1"] = 34] = "PLAB1";
|
|
41
22
|
EProductType[EProductType["PLAB2"] = 35] = "PLAB2";
|
|
42
23
|
})(EProductType = exports.EProductType || (exports.EProductType = {}));
|
|
24
|
+
var EEntitlementType;
|
|
25
|
+
(function (EEntitlementType) {
|
|
26
|
+
EEntitlementType[EEntitlementType["CLINICAL"] = 15] = "CLINICAL";
|
|
27
|
+
EEntitlementType[EEntitlementType["DATA_INTERPRETATION"] = 16] = "DATA_INTERPRETATION";
|
|
28
|
+
EEntitlementType[EEntitlementType["CLINICAL_SUBSET"] = 17] = "CLINICAL_SUBSET";
|
|
29
|
+
EEntitlementType[EEntitlementType["CLINICAL_PROBLEM_SOLVING"] = 18] = "CLINICAL_PROBLEM_SOLVING";
|
|
30
|
+
EEntitlementType[EEntitlementType["PROFESSIONAL_DILEMMA"] = 19] = "PROFESSIONAL_DILEMMA";
|
|
31
|
+
EEntitlementType[EEntitlementType["HISTORY_TAKING"] = 20] = "HISTORY_TAKING";
|
|
32
|
+
EEntitlementType[EEntitlementType["COMMUNICATION_SKILLS"] = 21] = "COMMUNICATION_SKILLS";
|
|
33
|
+
EEntitlementType[EEntitlementType["EXAMINATION"] = 22] = "EXAMINATION";
|
|
34
|
+
EEntitlementType[EEntitlementType["PROCEDURE"] = 23] = "PROCEDURE";
|
|
35
|
+
EEntitlementType[EEntitlementType["INTERPRETATION"] = 24] = "INTERPRETATION";
|
|
36
|
+
EEntitlementType[EEntitlementType["ABCDE"] = 25] = "ABCDE";
|
|
37
|
+
EEntitlementType[EEntitlementType["PRESCRIBING"] = 26] = "PRESCRIBING";
|
|
38
|
+
EEntitlementType[EEntitlementType["MIXED"] = 27] = "MIXED";
|
|
39
|
+
EEntitlementType[EEntitlementType["ABDOMINAL"] = 28] = "ABDOMINAL";
|
|
40
|
+
EEntitlementType[EEntitlementType["CARDIOVASCULAR"] = 29] = "CARDIOVASCULAR";
|
|
41
|
+
EEntitlementType[EEntitlementType["COMMUNICATION"] = 30] = "COMMUNICATION";
|
|
42
|
+
EEntitlementType[EEntitlementType["CONSULTATION"] = 31] = "CONSULTATION";
|
|
43
|
+
EEntitlementType[EEntitlementType["NEUROLOGY"] = 32] = "NEUROLOGY";
|
|
44
|
+
EEntitlementType[EEntitlementType["RESPIRATORY"] = 33] = "RESPIRATORY";
|
|
45
|
+
EEntitlementType[EEntitlementType["ANATOMY"] = 36] = "ANATOMY";
|
|
46
|
+
EEntitlementType[EEntitlementType["PRE_CLINICAL"] = 37] = "PRE_CLINICAL";
|
|
47
|
+
EEntitlementType[EEntitlementType["MRCP_PART_1"] = 38] = "MRCP_PART_1";
|
|
48
|
+
EEntitlementType[EEntitlementType["MRCP_PART_2"] = 39] = "MRCP_PART_2";
|
|
49
|
+
})(EEntitlementType = exports.EEntitlementType || (exports.EEntitlementType = {}));
|
|
43
50
|
var EAppType;
|
|
44
51
|
(function (EAppType) {
|
|
45
52
|
EAppType[EAppType["AMS"] = 1] = "AMS";
|
package/package.json
CHANGED
|
@@ -188,7 +188,7 @@ export declare const optimisticModifyMarksheetBuilderConfig: (marksheetId: numbe
|
|
|
188
188
|
currentMarkId?: number | undefined;
|
|
189
189
|
topicConceptData?: string | undefined;
|
|
190
190
|
preBuildData?: IPreBuildMarksheet | undefined;
|
|
191
|
-
entitlementId: import("../../../models").EProductType;
|
|
191
|
+
entitlementId: import("../../../models").EProductType | import("../../../models").EEntitlementType;
|
|
192
192
|
};
|
|
193
193
|
};
|
|
194
194
|
};
|
|
@@ -281,7 +281,7 @@ export declare const optimisticEndMarksheet: (marksheet: IMarksheet) => {
|
|
|
281
281
|
topicConceptData?: string | undefined;
|
|
282
282
|
preBuildData?: IPreBuildMarksheet | undefined;
|
|
283
283
|
builderConfig?: IBuildConfigData | undefined;
|
|
284
|
-
entitlementId: import("../../../models").EProductType;
|
|
284
|
+
entitlementId: import("../../../models").EProductType | import("../../../models").EEntitlementType;
|
|
285
285
|
__typename: string;
|
|
286
286
|
};
|
|
287
287
|
};
|
|
@@ -78,7 +78,7 @@ export declare const optimisticEndMockTest: (marksheet: IMarksheet) => {
|
|
|
78
78
|
topicConceptData?: string | undefined;
|
|
79
79
|
preBuildData?: import("./marksheet").IPreBuildMarksheet | undefined;
|
|
80
80
|
builderConfig?: import("./marksheet").IBuildConfigData | undefined;
|
|
81
|
-
entitlementId: import("../../../models").EProductType;
|
|
81
|
+
entitlementId: import("../../../models").EProductType | import("../../../models").EEntitlementType;
|
|
82
82
|
__typename: string;
|
|
83
83
|
};
|
|
84
84
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApolloCache } from '@apollo/client';
|
|
2
|
-
import { EOsceMarksheetAction, EOsceMarksheetState, EOsceRoles, EPaceMarkType, EProductType, EStudyAction, IOsceMarksheet, IOsceMarksheetMark, IUserStationNote, Id } from '../../../models';
|
|
2
|
+
import { EEntitlementType, EOsceMarksheetAction, EOsceMarksheetState, EOsceRoles, EPaceMarkType, EProductType, EStudyAction, IOsceMarksheet, IOsceMarksheetMark, IUserStationNote, Id } from '../../../models';
|
|
3
3
|
import { ApolloUpdateOptions, ApolloUpdateResultRestricted } from '../../apollo';
|
|
4
4
|
import { IOsceMatchmakingAction } from '../../subscription/osce';
|
|
5
5
|
import { RestrictedData, graphqlNormalize } from '../../types';
|
|
@@ -31,6 +31,7 @@ export declare const BUILD_OSCE_MARKSHEET: import("@apollo/client").DocumentNode
|
|
|
31
31
|
export interface IBuildOsceMarksheetVar {
|
|
32
32
|
osceStationId?: Id;
|
|
33
33
|
osceMarksheetId?: Id;
|
|
34
|
+
entitlementId?: EEntitlementType;
|
|
34
35
|
}
|
|
35
36
|
export type IBuildOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'buildOsceMarksheet'>;
|
|
36
37
|
export declare const CHANGE_OSCE_ROLE: import("@apollo/client").DocumentNode;
|
|
@@ -129,7 +130,7 @@ export declare const optimisticEndOsceMarksheet: (marksheet: IOsceMarksheet) =>
|
|
|
129
130
|
activeUsers?: import("../../../models").IUser[] | undefined;
|
|
130
131
|
members: import("../../../models").IOsceMarksheetMember[];
|
|
131
132
|
state: EOsceMarksheetState;
|
|
132
|
-
entitlementId: EProductType;
|
|
133
|
+
entitlementId: EProductType | EEntitlementType;
|
|
133
134
|
isTimed: boolean;
|
|
134
135
|
__typename: string;
|
|
135
136
|
};
|
|
@@ -52,11 +52,12 @@ exports.CREATE_OR_JOIN_OSCE_MARKSHEET = (0, client_1.gql) `
|
|
|
52
52
|
exports.BUILD_OSCE_MARKSHEET = (0, client_1.gql) `
|
|
53
53
|
${fragments_1.OSCE_STATION_FIELDS}
|
|
54
54
|
${fragments_1.OSCE_MARKSHEET_FIELDS}
|
|
55
|
-
mutation BuildOsceMarksheet($osceStationId: Int!, $osceMarksheetId: Int) {
|
|
55
|
+
mutation BuildOsceMarksheet($osceStationId: Int!, $osceMarksheetId: Int, $entitlementId: Int) {
|
|
56
56
|
restricted {
|
|
57
57
|
buildOsceMarksheet(
|
|
58
58
|
osceStationId: $osceStationId
|
|
59
59
|
osceMarksheetId: $osceMarksheetId
|
|
60
|
+
entitlementId: $entitlementId
|
|
60
61
|
) {
|
|
61
62
|
...OsceMarksheetFields
|
|
62
63
|
osceStation {
|
|
@@ -360,7 +360,7 @@ const updateQuestionHighlights = (typeId) => (cache, result, options) => {
|
|
|
360
360
|
return;
|
|
361
361
|
}
|
|
362
362
|
try {
|
|
363
|
-
for (const { questionId, highlights } of
|
|
363
|
+
for (const { questionId, highlights } of addQuestionHighlight) {
|
|
364
364
|
cache.writeFragment({
|
|
365
365
|
id: cache.identify({
|
|
366
366
|
id: questionId,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EDifficultyType, Id, IMarksheet, IUserFlaggedQuestion } from '../../../models';
|
|
1
|
+
import { EDifficultyType, EEntitlementType, Id, IMarksheet, IUserFlaggedQuestion } from '../../../models';
|
|
2
2
|
import { ESortOrder } from '../../enums';
|
|
3
3
|
import { IPreBuildMarksheet } from '../../mutation/restricted';
|
|
4
4
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
@@ -115,6 +115,7 @@ export interface IPreBuildMarksheetVar {
|
|
|
115
115
|
marksheetId?: Id;
|
|
116
116
|
source: string;
|
|
117
117
|
difficulty?: EDifficultyType[];
|
|
118
|
+
entitlementId?: EEntitlementType;
|
|
118
119
|
}
|
|
119
120
|
export type IPreBuildMarksheetData = RestrictedData<graphqlNormalize & IPreBuildMarksheet, 'preBuildMarksheet'>;
|
|
120
121
|
export declare const PRE_BUILD_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
@@ -175,6 +175,7 @@ exports.PRE_BUILD_MARKSHEET = (0, client_1.gql) `
|
|
|
175
175
|
$search: String
|
|
176
176
|
$marksheetId: Int
|
|
177
177
|
$difficulty: [Int!]
|
|
178
|
+
$entitlementId: Int
|
|
178
179
|
) {
|
|
179
180
|
restricted {
|
|
180
181
|
preBuildMarksheet(
|
|
@@ -184,6 +185,7 @@ exports.PRE_BUILD_MARKSHEET = (0, client_1.gql) `
|
|
|
184
185
|
search: $search
|
|
185
186
|
marksheetId: $marksheetId
|
|
186
187
|
difficulty: $difficulty
|
|
188
|
+
entitlementId: $entitlementId
|
|
187
189
|
) {
|
|
188
190
|
unseen
|
|
189
191
|
seenCorrect
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { Id, IPreBuildTodo, ITodo } from '../../../models';
|
|
1
|
+
import { EEntitlementType, Id, IPreBuildTodo, ITodo } from '../../../models';
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
3
|
export interface IPreBuildTodoVar {
|
|
4
4
|
topicIds: number[];
|
|
5
5
|
conceptIds: number[];
|
|
6
6
|
search: string;
|
|
7
7
|
source: string;
|
|
8
|
+
entitlementId?: EEntitlementType;
|
|
8
9
|
}
|
|
9
10
|
export type IPreBuildTodoData = RestrictedData<graphqlNormalize & IPreBuildTodo, 'preBuildTodo'>;
|
|
10
11
|
export declare const PRE_BUILD_TODO: import("@apollo/client").DocumentNode;
|
|
@@ -9,6 +9,7 @@ exports.PRE_BUILD_TODO = (0, client_1.gql) `
|
|
|
9
9
|
$conceptIds: [Int!]
|
|
10
10
|
$search: String
|
|
11
11
|
$source: String!
|
|
12
|
+
$entitlementId: Int
|
|
12
13
|
) {
|
|
13
14
|
restricted {
|
|
14
15
|
preBuildTodo(
|
|
@@ -16,6 +17,7 @@ exports.PRE_BUILD_TODO = (0, client_1.gql) `
|
|
|
16
17
|
conceptIds: $conceptIds
|
|
17
18
|
search: $search
|
|
18
19
|
source: $source
|
|
20
|
+
entitlementId: $entitlementId
|
|
19
21
|
) {
|
|
20
22
|
unseen
|
|
21
23
|
seen
|