@quesmed/types 2.6.27 → 2.6.29
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/dist/cjs/models/Marksheet.d.ts +2 -1
- package/dist/cjs/models/Preset.d.ts +3 -2
- package/dist/cjs/models/Question.d.ts +6 -0
- package/dist/cjs/resolvers/mutation/restricted/marksheet.d.ts +2 -0
- package/dist/cjs/resolvers/mutation/restricted/marksheet.js +16 -3
- package/dist/cjs/resolvers/mutation/restricted/mockTest.d.ts +1 -0
- package/dist/cjs/resolvers/mutation/restricted/preset.d.ts +3 -3
- package/dist/cjs/resolvers/mutation/restricted/preset.js +15 -3
- package/dist/cjs/resolvers/query/restricted/marksheet.js +12 -0
- package/dist/cjs/resolvers/query/restricted/preset.d.ts +3 -2
- package/dist/cjs/resolvers/query/restricted/preset.js +19 -7
- package/dist/mjs/models/Marksheet.d.ts +2 -1
- package/dist/mjs/models/Preset.d.ts +3 -2
- package/dist/mjs/models/Question.d.ts +6 -0
- package/dist/mjs/resolvers/mutation/restricted/marksheet.d.ts +2 -0
- package/dist/mjs/resolvers/mutation/restricted/marksheet.js +16 -3
- package/dist/mjs/resolvers/mutation/restricted/mockTest.d.ts +1 -0
- package/dist/mjs/resolvers/mutation/restricted/preset.d.ts +3 -3
- package/dist/mjs/resolvers/mutation/restricted/preset.js +15 -3
- package/dist/mjs/resolvers/query/restricted/marksheet.js +12 -0
- package/dist/mjs/resolvers/query/restricted/preset.d.ts +3 -2
- package/dist/mjs/resolvers/query/restricted/preset.js +19 -7
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IBuildConfigData, IPreBuildMarksheet } from '../resolvers/mutation/restricted/marksheet';
|
|
2
|
-
import { EProductType } from './Product';
|
|
2
|
+
import { 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';
|
|
@@ -65,6 +65,7 @@ export interface IMarksheet {
|
|
|
65
65
|
type: EMarksheetType;
|
|
66
66
|
endedAt: number | Date;
|
|
67
67
|
typeId: ETopicType;
|
|
68
|
+
entitlement: IEntitlement;
|
|
68
69
|
topicIds: number[];
|
|
69
70
|
topicNames?: string[];
|
|
70
71
|
source: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IConcept } from './Concept';
|
|
2
|
-
import {
|
|
2
|
+
import { EProductType, IEntitlement } from './Product';
|
|
3
3
|
import { Id } from './Type';
|
|
4
4
|
export declare enum EPresetType {
|
|
5
5
|
PRE_DEFINED = 0,
|
|
@@ -11,7 +11,8 @@ export interface IPreset {
|
|
|
11
11
|
updatedAt: number | Date;
|
|
12
12
|
userId: Id;
|
|
13
13
|
name: string;
|
|
14
|
-
|
|
14
|
+
entitlementId: EProductType;
|
|
15
|
+
entitlement: IEntitlement;
|
|
15
16
|
likes: number;
|
|
16
17
|
correctQuestions: number;
|
|
17
18
|
incorrectQuestions: number;
|
|
@@ -216,4 +216,10 @@ export interface IPrescribeMark {
|
|
|
216
216
|
routeId: number;
|
|
217
217
|
frequencyId: number;
|
|
218
218
|
durationId: number;
|
|
219
|
+
drugLabel?: string;
|
|
220
|
+
doseLabel?: string;
|
|
221
|
+
unitLabel?: string;
|
|
222
|
+
routeLabel?: string;
|
|
223
|
+
frequencyLabel?: string;
|
|
224
|
+
durationLabel?: string;
|
|
219
225
|
}
|
|
@@ -164,6 +164,7 @@ export declare const optimisticModifyMarksheetBuilderConfig: (marksheetId: numbe
|
|
|
164
164
|
type: import("../../../models").EMarksheetType;
|
|
165
165
|
endedAt: number | Date;
|
|
166
166
|
typeId: import("../../../models").ETopicType;
|
|
167
|
+
entitlement: import("../../../models").IEntitlement;
|
|
167
168
|
topicIds: number[];
|
|
168
169
|
topicNames?: string[] | undefined;
|
|
169
170
|
source: string;
|
|
@@ -263,6 +264,7 @@ export declare const optimisticEndMarksheet: (marksheet: IMarksheet) => {
|
|
|
263
264
|
type: import("../../../models").EMarksheetType;
|
|
264
265
|
endedAt: number | Date;
|
|
265
266
|
typeId: import("../../../models").ETopicType;
|
|
267
|
+
entitlement: import("../../../models").IEntitlement;
|
|
266
268
|
topicIds: number[];
|
|
267
269
|
topicNames?: string[] | undefined;
|
|
268
270
|
source: string;
|
|
@@ -14,10 +14,13 @@ exports.BUILD_QUESTION_MARKSHEET = (0, client_1.gql) `
|
|
|
14
14
|
agoraId
|
|
15
15
|
sessionId
|
|
16
16
|
topicIds
|
|
17
|
+
entitlement {
|
|
18
|
+
id
|
|
19
|
+
name
|
|
20
|
+
}
|
|
17
21
|
completed
|
|
18
22
|
passingMark
|
|
19
23
|
duration
|
|
20
|
-
topicIds
|
|
21
24
|
topicNames
|
|
22
25
|
mockTestId
|
|
23
26
|
totalQuestions
|
|
@@ -1033,10 +1036,13 @@ exports.BUILD_MARKSHEET = (0, client_1.gql) `
|
|
|
1033
1036
|
agoraId
|
|
1034
1037
|
sessionId
|
|
1035
1038
|
topicIds
|
|
1039
|
+
entitlement {
|
|
1040
|
+
id
|
|
1041
|
+
name
|
|
1042
|
+
}
|
|
1036
1043
|
completed
|
|
1037
1044
|
passingMark
|
|
1038
1045
|
duration
|
|
1039
|
-
topicIds
|
|
1040
1046
|
topicNames
|
|
1041
1047
|
mockTestId
|
|
1042
1048
|
totalQuestions
|
|
@@ -2061,6 +2067,10 @@ exports.RE_BUILD_MARKSHEET = (0, client_1.gql) `
|
|
|
2061
2067
|
duration
|
|
2062
2068
|
timeTaken
|
|
2063
2069
|
topicIds
|
|
2070
|
+
entitlement {
|
|
2071
|
+
id
|
|
2072
|
+
name
|
|
2073
|
+
}
|
|
2064
2074
|
topicNames
|
|
2065
2075
|
mockTestId
|
|
2066
2076
|
totalQuestions
|
|
@@ -3081,10 +3091,13 @@ exports.QUICK_BUILD_MARKSHEET = (0, client_1.gql) `
|
|
|
3081
3091
|
agoraId
|
|
3082
3092
|
sessionId
|
|
3083
3093
|
topicIds
|
|
3094
|
+
entitlement {
|
|
3095
|
+
id
|
|
3096
|
+
name
|
|
3097
|
+
}
|
|
3084
3098
|
completed
|
|
3085
3099
|
passingMark
|
|
3086
3100
|
duration
|
|
3087
|
-
topicIds
|
|
3088
3101
|
topicNames
|
|
3089
3102
|
mockTestId
|
|
3090
3103
|
totalQuestions
|
|
@@ -54,6 +54,7 @@ export declare const optimisticEndMockTest: (marksheet: IMarksheet) => {
|
|
|
54
54
|
type: import("../../../models").EMarksheetType;
|
|
55
55
|
endedAt: number | Date;
|
|
56
56
|
typeId: import("../../../models").ETopicType;
|
|
57
|
+
entitlement: import("../../../models").IEntitlement;
|
|
57
58
|
topicIds: number[];
|
|
58
59
|
topicNames?: string[] | undefined;
|
|
59
60
|
source: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApolloCache } from '@apollo/client';
|
|
2
2
|
import { ApolloUpdateOptions, ApolloUpdateResultRestricted } from '../..';
|
|
3
|
-
import {
|
|
3
|
+
import { EProductType, Id } from '../../../models';
|
|
4
4
|
import { IPreset } from '../../../models/Preset';
|
|
5
5
|
import { RestrictedData } from '../../types';
|
|
6
6
|
export declare const DELETE_PRESET: import("@apollo/client").DocumentNode;
|
|
@@ -21,7 +21,7 @@ export interface IEditPresetVar {
|
|
|
21
21
|
presetId: number;
|
|
22
22
|
data: {
|
|
23
23
|
name?: string;
|
|
24
|
-
|
|
24
|
+
entitlementId: EProductType;
|
|
25
25
|
conceptIds?: Id[];
|
|
26
26
|
};
|
|
27
27
|
}
|
|
@@ -30,7 +30,7 @@ export type ICreatePresetData = RestrictedData<IPreset, 'createPreset'>;
|
|
|
30
30
|
export interface ICreatePresetVar {
|
|
31
31
|
data: {
|
|
32
32
|
name: string;
|
|
33
|
-
|
|
33
|
+
entitlementId: EProductType;
|
|
34
34
|
conceptIds: Id[];
|
|
35
35
|
};
|
|
36
36
|
}
|
|
@@ -53,7 +53,11 @@ exports.DUPLICATE_PRESET = (0, client_1.gql) `
|
|
|
53
53
|
updatedAt
|
|
54
54
|
name
|
|
55
55
|
likes
|
|
56
|
-
|
|
56
|
+
entitlementId
|
|
57
|
+
entitlement {
|
|
58
|
+
id
|
|
59
|
+
name
|
|
60
|
+
}
|
|
57
61
|
correctQuestions
|
|
58
62
|
incorrectQuestions
|
|
59
63
|
completedQuestions
|
|
@@ -106,7 +110,11 @@ exports.EDIT_PRESET = (0, client_1.gql) `
|
|
|
106
110
|
updatedAt
|
|
107
111
|
name
|
|
108
112
|
likes
|
|
109
|
-
|
|
113
|
+
entitlementId
|
|
114
|
+
entitlement {
|
|
115
|
+
id
|
|
116
|
+
name
|
|
117
|
+
}
|
|
110
118
|
correctQuestions
|
|
111
119
|
incorrectQuestions
|
|
112
120
|
completedQuestions
|
|
@@ -135,7 +143,11 @@ exports.CREATE_PRESET = (0, client_1.gql) `
|
|
|
135
143
|
updatedAt
|
|
136
144
|
name
|
|
137
145
|
likes
|
|
138
|
-
|
|
146
|
+
entitlementId
|
|
147
|
+
entitlement {
|
|
148
|
+
id
|
|
149
|
+
name
|
|
150
|
+
}
|
|
139
151
|
correctQuestions
|
|
140
152
|
incorrectQuestions
|
|
141
153
|
completedQuestions
|
|
@@ -13,6 +13,10 @@ exports.MARKSHEET = (0, client_1.gql) `
|
|
|
13
13
|
passingMark
|
|
14
14
|
duration
|
|
15
15
|
timeTaken
|
|
16
|
+
entitlement {
|
|
17
|
+
id
|
|
18
|
+
name
|
|
19
|
+
}
|
|
16
20
|
topicIds
|
|
17
21
|
topicNames
|
|
18
22
|
mockTestId
|
|
@@ -1071,6 +1075,10 @@ exports.MARKSHEETS_WINDOW = (0, client_1.gql) `
|
|
|
1071
1075
|
incorrect
|
|
1072
1076
|
totalQuestions
|
|
1073
1077
|
typeId
|
|
1078
|
+
entitlement {
|
|
1079
|
+
id
|
|
1080
|
+
name
|
|
1081
|
+
}
|
|
1074
1082
|
isTestMarksheet
|
|
1075
1083
|
solo
|
|
1076
1084
|
completed
|
|
@@ -1138,6 +1146,10 @@ exports.FLAGGED_QUESTIONS_MARKSHEET = (0, client_1.gql) `
|
|
|
1138
1146
|
completed
|
|
1139
1147
|
passingMark
|
|
1140
1148
|
duration
|
|
1149
|
+
entitlement {
|
|
1150
|
+
id
|
|
1151
|
+
name
|
|
1152
|
+
}
|
|
1141
1153
|
topicIds
|
|
1142
1154
|
topicNames
|
|
1143
1155
|
mockTestId
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EProductType, IPreset, Id } from '../../../models';
|
|
2
2
|
import { ESortOrder } from '../../enums';
|
|
3
3
|
import { RestrictedData } from '../../types';
|
|
4
4
|
export interface IPresetsVar {
|
|
5
|
-
|
|
5
|
+
entitlementId?: EProductType;
|
|
6
6
|
search?: string;
|
|
7
7
|
timestamp?: number;
|
|
8
8
|
limit?: number;
|
|
@@ -12,6 +12,7 @@ export type IPresetsData = RestrictedData<IPreset[], 'presets'>;
|
|
|
12
12
|
export declare const PRESETS: import("@apollo/client").DocumentNode;
|
|
13
13
|
export interface IPreDefinedPresetsVar {
|
|
14
14
|
search?: string;
|
|
15
|
+
entitlementId?: EProductType;
|
|
15
16
|
order?: ESortOrder;
|
|
16
17
|
}
|
|
17
18
|
export type IPreDefinedPresetsData = RestrictedData<IPreset[], 'preDefinedPresets'>;
|
|
@@ -4,7 +4,7 @@ exports.PRESET = exports.PRE_DEFINED_PRESETS = exports.PRESETS = void 0;
|
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.PRESETS = (0, client_1.gql) `
|
|
6
6
|
query Presets(
|
|
7
|
-
$
|
|
7
|
+
$entitlementId: Int
|
|
8
8
|
$search: String
|
|
9
9
|
$timestamp: Int
|
|
10
10
|
$limit: Int
|
|
@@ -12,7 +12,7 @@ exports.PRESETS = (0, client_1.gql) `
|
|
|
12
12
|
) {
|
|
13
13
|
restricted {
|
|
14
14
|
presets(
|
|
15
|
-
|
|
15
|
+
entitlementId: $entitlementId
|
|
16
16
|
search: $search
|
|
17
17
|
timestamp: $timestamp
|
|
18
18
|
limit: $limit
|
|
@@ -23,7 +23,11 @@ exports.PRESETS = (0, client_1.gql) `
|
|
|
23
23
|
updatedAt
|
|
24
24
|
name
|
|
25
25
|
likes
|
|
26
|
-
|
|
26
|
+
entitlementId
|
|
27
|
+
entitlement {
|
|
28
|
+
id
|
|
29
|
+
name
|
|
30
|
+
}
|
|
27
31
|
correctQuestions
|
|
28
32
|
incorrectQuestions
|
|
29
33
|
completedQuestions
|
|
@@ -44,15 +48,19 @@ exports.PRESETS = (0, client_1.gql) `
|
|
|
44
48
|
}
|
|
45
49
|
`;
|
|
46
50
|
exports.PRE_DEFINED_PRESETS = (0, client_1.gql) `
|
|
47
|
-
query PreDefinedPresets($search: String, $order: Int) {
|
|
51
|
+
query PreDefinedPresets($entitlementId: Int,$search: String, $order: Int) {
|
|
48
52
|
restricted {
|
|
49
|
-
preDefinedPresets(search: $search, order: $order) {
|
|
53
|
+
preDefinedPresets(entitlementId: $entitlementId, search: $search, order: $order) {
|
|
50
54
|
id
|
|
51
55
|
createdAt
|
|
52
56
|
updatedAt
|
|
53
57
|
name
|
|
54
58
|
likes
|
|
55
|
-
|
|
59
|
+
entitlementId
|
|
60
|
+
entitlement {
|
|
61
|
+
id
|
|
62
|
+
name
|
|
63
|
+
}
|
|
56
64
|
correctQuestions
|
|
57
65
|
incorrectQuestions
|
|
58
66
|
completedQuestions
|
|
@@ -81,7 +89,11 @@ exports.PRESET = (0, client_1.gql) `
|
|
|
81
89
|
updatedAt
|
|
82
90
|
name
|
|
83
91
|
likes
|
|
84
|
-
|
|
92
|
+
entitlementId
|
|
93
|
+
entitlement {
|
|
94
|
+
id
|
|
95
|
+
name
|
|
96
|
+
}
|
|
85
97
|
correctQuestions
|
|
86
98
|
incorrectQuestions
|
|
87
99
|
completedQuestions
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IBuildConfigData, IPreBuildMarksheet } from '../resolvers/mutation/restricted/marksheet';
|
|
2
|
-
import { EProductType } from './Product';
|
|
2
|
+
import { 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';
|
|
@@ -65,6 +65,7 @@ export interface IMarksheet {
|
|
|
65
65
|
type: EMarksheetType;
|
|
66
66
|
endedAt: number | Date;
|
|
67
67
|
typeId: ETopicType;
|
|
68
|
+
entitlement: IEntitlement;
|
|
68
69
|
topicIds: number[];
|
|
69
70
|
topicNames?: string[];
|
|
70
71
|
source: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IConcept } from './Concept';
|
|
2
|
-
import {
|
|
2
|
+
import { EProductType, IEntitlement } from './Product';
|
|
3
3
|
import { Id } from './Type';
|
|
4
4
|
export declare enum EPresetType {
|
|
5
5
|
PRE_DEFINED = 0,
|
|
@@ -11,7 +11,8 @@ export interface IPreset {
|
|
|
11
11
|
updatedAt: number | Date;
|
|
12
12
|
userId: Id;
|
|
13
13
|
name: string;
|
|
14
|
-
|
|
14
|
+
entitlementId: EProductType;
|
|
15
|
+
entitlement: IEntitlement;
|
|
15
16
|
likes: number;
|
|
16
17
|
correctQuestions: number;
|
|
17
18
|
incorrectQuestions: number;
|
|
@@ -216,4 +216,10 @@ export interface IPrescribeMark {
|
|
|
216
216
|
routeId: number;
|
|
217
217
|
frequencyId: number;
|
|
218
218
|
durationId: number;
|
|
219
|
+
drugLabel?: string;
|
|
220
|
+
doseLabel?: string;
|
|
221
|
+
unitLabel?: string;
|
|
222
|
+
routeLabel?: string;
|
|
223
|
+
frequencyLabel?: string;
|
|
224
|
+
durationLabel?: string;
|
|
219
225
|
}
|
|
@@ -164,6 +164,7 @@ export declare const optimisticModifyMarksheetBuilderConfig: (marksheetId: numbe
|
|
|
164
164
|
type: import("../../../models").EMarksheetType;
|
|
165
165
|
endedAt: number | Date;
|
|
166
166
|
typeId: import("../../../models").ETopicType;
|
|
167
|
+
entitlement: import("../../../models").IEntitlement;
|
|
167
168
|
topicIds: number[];
|
|
168
169
|
topicNames?: string[] | undefined;
|
|
169
170
|
source: string;
|
|
@@ -263,6 +264,7 @@ export declare const optimisticEndMarksheet: (marksheet: IMarksheet) => {
|
|
|
263
264
|
type: import("../../../models").EMarksheetType;
|
|
264
265
|
endedAt: number | Date;
|
|
265
266
|
typeId: import("../../../models").ETopicType;
|
|
267
|
+
entitlement: import("../../../models").IEntitlement;
|
|
266
268
|
topicIds: number[];
|
|
267
269
|
topicNames?: string[] | undefined;
|
|
268
270
|
source: string;
|
|
@@ -11,10 +11,13 @@ export const BUILD_QUESTION_MARKSHEET = gql `
|
|
|
11
11
|
agoraId
|
|
12
12
|
sessionId
|
|
13
13
|
topicIds
|
|
14
|
+
entitlement {
|
|
15
|
+
id
|
|
16
|
+
name
|
|
17
|
+
}
|
|
14
18
|
completed
|
|
15
19
|
passingMark
|
|
16
20
|
duration
|
|
17
|
-
topicIds
|
|
18
21
|
topicNames
|
|
19
22
|
mockTestId
|
|
20
23
|
totalQuestions
|
|
@@ -1030,10 +1033,13 @@ export const BUILD_MARKSHEET = gql `
|
|
|
1030
1033
|
agoraId
|
|
1031
1034
|
sessionId
|
|
1032
1035
|
topicIds
|
|
1036
|
+
entitlement {
|
|
1037
|
+
id
|
|
1038
|
+
name
|
|
1039
|
+
}
|
|
1033
1040
|
completed
|
|
1034
1041
|
passingMark
|
|
1035
1042
|
duration
|
|
1036
|
-
topicIds
|
|
1037
1043
|
topicNames
|
|
1038
1044
|
mockTestId
|
|
1039
1045
|
totalQuestions
|
|
@@ -2058,6 +2064,10 @@ export const RE_BUILD_MARKSHEET = gql `
|
|
|
2058
2064
|
duration
|
|
2059
2065
|
timeTaken
|
|
2060
2066
|
topicIds
|
|
2067
|
+
entitlement {
|
|
2068
|
+
id
|
|
2069
|
+
name
|
|
2070
|
+
}
|
|
2061
2071
|
topicNames
|
|
2062
2072
|
mockTestId
|
|
2063
2073
|
totalQuestions
|
|
@@ -3078,10 +3088,13 @@ export const QUICK_BUILD_MARKSHEET = gql `
|
|
|
3078
3088
|
agoraId
|
|
3079
3089
|
sessionId
|
|
3080
3090
|
topicIds
|
|
3091
|
+
entitlement {
|
|
3092
|
+
id
|
|
3093
|
+
name
|
|
3094
|
+
}
|
|
3081
3095
|
completed
|
|
3082
3096
|
passingMark
|
|
3083
3097
|
duration
|
|
3084
|
-
topicIds
|
|
3085
3098
|
topicNames
|
|
3086
3099
|
mockTestId
|
|
3087
3100
|
totalQuestions
|
|
@@ -54,6 +54,7 @@ export declare const optimisticEndMockTest: (marksheet: IMarksheet) => {
|
|
|
54
54
|
type: import("../../../models").EMarksheetType;
|
|
55
55
|
endedAt: number | Date;
|
|
56
56
|
typeId: import("../../../models").ETopicType;
|
|
57
|
+
entitlement: import("../../../models").IEntitlement;
|
|
57
58
|
topicIds: number[];
|
|
58
59
|
topicNames?: string[] | undefined;
|
|
59
60
|
source: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApolloCache } from '@apollo/client';
|
|
2
2
|
import { ApolloUpdateOptions, ApolloUpdateResultRestricted } from '../..';
|
|
3
|
-
import {
|
|
3
|
+
import { EProductType, Id } from '../../../models';
|
|
4
4
|
import { IPreset } from '../../../models/Preset';
|
|
5
5
|
import { RestrictedData } from '../../types';
|
|
6
6
|
export declare const DELETE_PRESET: import("@apollo/client").DocumentNode;
|
|
@@ -21,7 +21,7 @@ export interface IEditPresetVar {
|
|
|
21
21
|
presetId: number;
|
|
22
22
|
data: {
|
|
23
23
|
name?: string;
|
|
24
|
-
|
|
24
|
+
entitlementId: EProductType;
|
|
25
25
|
conceptIds?: Id[];
|
|
26
26
|
};
|
|
27
27
|
}
|
|
@@ -30,7 +30,7 @@ export type ICreatePresetData = RestrictedData<IPreset, 'createPreset'>;
|
|
|
30
30
|
export interface ICreatePresetVar {
|
|
31
31
|
data: {
|
|
32
32
|
name: string;
|
|
33
|
-
|
|
33
|
+
entitlementId: EProductType;
|
|
34
34
|
conceptIds: Id[];
|
|
35
35
|
};
|
|
36
36
|
}
|
|
@@ -49,7 +49,11 @@ export const DUPLICATE_PRESET = gql `
|
|
|
49
49
|
updatedAt
|
|
50
50
|
name
|
|
51
51
|
likes
|
|
52
|
-
|
|
52
|
+
entitlementId
|
|
53
|
+
entitlement {
|
|
54
|
+
id
|
|
55
|
+
name
|
|
56
|
+
}
|
|
53
57
|
correctQuestions
|
|
54
58
|
incorrectQuestions
|
|
55
59
|
completedQuestions
|
|
@@ -101,7 +105,11 @@ export const EDIT_PRESET = gql `
|
|
|
101
105
|
updatedAt
|
|
102
106
|
name
|
|
103
107
|
likes
|
|
104
|
-
|
|
108
|
+
entitlementId
|
|
109
|
+
entitlement {
|
|
110
|
+
id
|
|
111
|
+
name
|
|
112
|
+
}
|
|
105
113
|
correctQuestions
|
|
106
114
|
incorrectQuestions
|
|
107
115
|
completedQuestions
|
|
@@ -130,7 +138,11 @@ export const CREATE_PRESET = gql `
|
|
|
130
138
|
updatedAt
|
|
131
139
|
name
|
|
132
140
|
likes
|
|
133
|
-
|
|
141
|
+
entitlementId
|
|
142
|
+
entitlement {
|
|
143
|
+
id
|
|
144
|
+
name
|
|
145
|
+
}
|
|
134
146
|
correctQuestions
|
|
135
147
|
incorrectQuestions
|
|
136
148
|
completedQuestions
|
|
@@ -10,6 +10,10 @@ export const MARKSHEET = gql `
|
|
|
10
10
|
passingMark
|
|
11
11
|
duration
|
|
12
12
|
timeTaken
|
|
13
|
+
entitlement {
|
|
14
|
+
id
|
|
15
|
+
name
|
|
16
|
+
}
|
|
13
17
|
topicIds
|
|
14
18
|
topicNames
|
|
15
19
|
mockTestId
|
|
@@ -1068,6 +1072,10 @@ export const MARKSHEETS_WINDOW = gql `
|
|
|
1068
1072
|
incorrect
|
|
1069
1073
|
totalQuestions
|
|
1070
1074
|
typeId
|
|
1075
|
+
entitlement {
|
|
1076
|
+
id
|
|
1077
|
+
name
|
|
1078
|
+
}
|
|
1071
1079
|
isTestMarksheet
|
|
1072
1080
|
solo
|
|
1073
1081
|
completed
|
|
@@ -1135,6 +1143,10 @@ export const FLAGGED_QUESTIONS_MARKSHEET = gql `
|
|
|
1135
1143
|
completed
|
|
1136
1144
|
passingMark
|
|
1137
1145
|
duration
|
|
1146
|
+
entitlement {
|
|
1147
|
+
id
|
|
1148
|
+
name
|
|
1149
|
+
}
|
|
1138
1150
|
topicIds
|
|
1139
1151
|
topicNames
|
|
1140
1152
|
mockTestId
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EProductType, IPreset, Id } from '../../../models';
|
|
2
2
|
import { ESortOrder } from '../../enums';
|
|
3
3
|
import { RestrictedData } from '../../types';
|
|
4
4
|
export interface IPresetsVar {
|
|
5
|
-
|
|
5
|
+
entitlementId?: EProductType;
|
|
6
6
|
search?: string;
|
|
7
7
|
timestamp?: number;
|
|
8
8
|
limit?: number;
|
|
@@ -12,6 +12,7 @@ export type IPresetsData = RestrictedData<IPreset[], 'presets'>;
|
|
|
12
12
|
export declare const PRESETS: import("@apollo/client").DocumentNode;
|
|
13
13
|
export interface IPreDefinedPresetsVar {
|
|
14
14
|
search?: string;
|
|
15
|
+
entitlementId?: EProductType;
|
|
15
16
|
order?: ESortOrder;
|
|
16
17
|
}
|
|
17
18
|
export type IPreDefinedPresetsData = RestrictedData<IPreset[], 'preDefinedPresets'>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
2
|
export const PRESETS = gql `
|
|
3
3
|
query Presets(
|
|
4
|
-
$
|
|
4
|
+
$entitlementId: Int
|
|
5
5
|
$search: String
|
|
6
6
|
$timestamp: Int
|
|
7
7
|
$limit: Int
|
|
@@ -9,7 +9,7 @@ export const PRESETS = gql `
|
|
|
9
9
|
) {
|
|
10
10
|
restricted {
|
|
11
11
|
presets(
|
|
12
|
-
|
|
12
|
+
entitlementId: $entitlementId
|
|
13
13
|
search: $search
|
|
14
14
|
timestamp: $timestamp
|
|
15
15
|
limit: $limit
|
|
@@ -20,7 +20,11 @@ export const PRESETS = gql `
|
|
|
20
20
|
updatedAt
|
|
21
21
|
name
|
|
22
22
|
likes
|
|
23
|
-
|
|
23
|
+
entitlementId
|
|
24
|
+
entitlement {
|
|
25
|
+
id
|
|
26
|
+
name
|
|
27
|
+
}
|
|
24
28
|
correctQuestions
|
|
25
29
|
incorrectQuestions
|
|
26
30
|
completedQuestions
|
|
@@ -41,15 +45,19 @@ export const PRESETS = gql `
|
|
|
41
45
|
}
|
|
42
46
|
`;
|
|
43
47
|
export const PRE_DEFINED_PRESETS = gql `
|
|
44
|
-
query PreDefinedPresets($search: String, $order: Int) {
|
|
48
|
+
query PreDefinedPresets($entitlementId: Int,$search: String, $order: Int) {
|
|
45
49
|
restricted {
|
|
46
|
-
preDefinedPresets(search: $search, order: $order) {
|
|
50
|
+
preDefinedPresets(entitlementId: $entitlementId, search: $search, order: $order) {
|
|
47
51
|
id
|
|
48
52
|
createdAt
|
|
49
53
|
updatedAt
|
|
50
54
|
name
|
|
51
55
|
likes
|
|
52
|
-
|
|
56
|
+
entitlementId
|
|
57
|
+
entitlement {
|
|
58
|
+
id
|
|
59
|
+
name
|
|
60
|
+
}
|
|
53
61
|
correctQuestions
|
|
54
62
|
incorrectQuestions
|
|
55
63
|
completedQuestions
|
|
@@ -78,7 +86,11 @@ export const PRESET = gql `
|
|
|
78
86
|
updatedAt
|
|
79
87
|
name
|
|
80
88
|
likes
|
|
81
|
-
|
|
89
|
+
entitlementId
|
|
90
|
+
entitlement {
|
|
91
|
+
id
|
|
92
|
+
name
|
|
93
|
+
}
|
|
82
94
|
correctQuestions
|
|
83
95
|
incorrectQuestions
|
|
84
96
|
completedQuestions
|