@quesmed/types 2.5.74 → 2.5.75
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/User.d.ts +7 -1
- package/dist/cjs/models/User.js +9 -1
- package/dist/cjs/resolvers/enums.d.ts +4 -0
- package/dist/cjs/resolvers/enums.js +8 -0
- package/dist/cjs/resolvers/index.d.ts +1 -0
- package/dist/cjs/resolvers/index.js +1 -0
- package/dist/cjs/resolvers/query/restricted/marksheet.d.ts +10 -5
- package/dist/cjs/resolvers/query/restricted/marksheet.js +14 -11
- package/dist/cjs/resolvers/query/restricted/osce.d.ts +7 -2
- package/dist/cjs/resolvers/query/restricted/osce.js +11 -8
- package/dist/cjs/resolvers/query/restricted/qBank.js +2 -2
- package/dist/cjs/resolvers/query/restricted/topics.d.ts +2 -0
- package/dist/cjs/resolvers/query/restricted/topics.js +3 -2
- package/dist/cjs/resolvers/query/university.d.ts +2 -1
- package/dist/cjs/resolvers/query/university.js +1 -1
- package/dist/mjs/models/User.d.ts +7 -1
- package/dist/mjs/models/User.js +8 -0
- package/dist/mjs/resolvers/enums.d.ts +4 -0
- package/dist/mjs/resolvers/enums.js +5 -0
- package/dist/mjs/resolvers/index.d.ts +1 -0
- package/dist/mjs/resolvers/index.js +1 -0
- package/dist/mjs/resolvers/query/restricted/marksheet.d.ts +10 -5
- package/dist/mjs/resolvers/query/restricted/marksheet.js +14 -11
- package/dist/mjs/resolvers/query/restricted/osce.d.ts +7 -2
- package/dist/mjs/resolvers/query/restricted/osce.js +11 -8
- package/dist/mjs/resolvers/query/restricted/qBank.js +2 -2
- package/dist/mjs/resolvers/query/restricted/topics.d.ts +2 -0
- package/dist/mjs/resolvers/query/restricted/topics.js +3 -2
- package/dist/mjs/resolvers/query/university.d.ts +2 -1
- package/dist/mjs/resolvers/query/university.js +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,13 @@ import { ITodo } from './Todo';
|
|
|
9
9
|
import { Id } from './Type';
|
|
10
10
|
import { IUniversity } from './University';
|
|
11
11
|
import { IVideo } from './Video';
|
|
12
|
-
export
|
|
12
|
+
export declare enum IAccessLevel {
|
|
13
|
+
SUBSCRIBER = "subscriber",
|
|
14
|
+
ADMINISTRATOR = "administrator",
|
|
15
|
+
TUTOR = "tutor",
|
|
16
|
+
DEMO = "demo",
|
|
17
|
+
EXPIRED = "expired"
|
|
18
|
+
}
|
|
13
19
|
export type IClassYear = 'Year 1' | 'Year 2' | 'Year 3' | 'Year 4' | 'Year 5' | 'Graduated' | 'PhD' | 'BSc' | 'MSc' | 'Beta Tester';
|
|
14
20
|
export declare const classYears: IClassYear[];
|
|
15
21
|
export declare enum EClassYearGroup {
|
package/dist/cjs/models/User.js
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.currentClassGroup = exports.currentClassYear = exports.EPracticeIntensity = exports.classYearGroup = exports.EUserLearningStatus = exports.EClassYearGroup = exports.classYears = void 0;
|
|
3
|
+
exports.currentClassGroup = exports.currentClassYear = exports.EPracticeIntensity = exports.classYearGroup = exports.EUserLearningStatus = exports.EClassYearGroup = exports.classYears = exports.IAccessLevel = void 0;
|
|
4
4
|
const luxon_1 = require("luxon");
|
|
5
|
+
var IAccessLevel;
|
|
6
|
+
(function (IAccessLevel) {
|
|
7
|
+
IAccessLevel["SUBSCRIBER"] = "subscriber";
|
|
8
|
+
IAccessLevel["ADMINISTRATOR"] = "administrator";
|
|
9
|
+
IAccessLevel["TUTOR"] = "tutor";
|
|
10
|
+
IAccessLevel["DEMO"] = "demo";
|
|
11
|
+
IAccessLevel["EXPIRED"] = "expired";
|
|
12
|
+
})(IAccessLevel = exports.IAccessLevel || (exports.IAccessLevel = {}));
|
|
5
13
|
exports.classYears = [
|
|
6
14
|
'Year 1',
|
|
7
15
|
'Year 2',
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ESortOrder = void 0;
|
|
4
|
+
var ESortOrder;
|
|
5
|
+
(function (ESortOrder) {
|
|
6
|
+
ESortOrder[ESortOrder["ASC"] = 1] = "ASC";
|
|
7
|
+
ESortOrder[ESortOrder["DESC"] = 0] = "DESC";
|
|
8
|
+
})(ESortOrder = exports.ESortOrder || (exports.ESortOrder = {}));
|
|
@@ -4,6 +4,7 @@ import * as query from './query';
|
|
|
4
4
|
import * as subscription from './subscription';
|
|
5
5
|
export * from './apollo';
|
|
6
6
|
export * from './types';
|
|
7
|
+
export * from './enums';
|
|
7
8
|
export declare namespace Resolvers {
|
|
8
9
|
export import Fragment = fragment;
|
|
9
10
|
export import Muation = mutation;
|
|
@@ -33,6 +33,7 @@ const query = __importStar(require("./query"));
|
|
|
33
33
|
const subscription = __importStar(require("./subscription"));
|
|
34
34
|
__exportStar(require("./apollo"), exports);
|
|
35
35
|
__exportStar(require("./types"), exports);
|
|
36
|
+
__exportStar(require("./enums"), exports);
|
|
36
37
|
var Resolvers;
|
|
37
38
|
(function (Resolvers) {
|
|
38
39
|
Resolvers.Fragment = fragment;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EDifficultyType, Id, IMarksheet, IUserFlaggedQuestion } from '../../../models';
|
|
2
2
|
import { IPreBuildMarksheet } from '../../mutation/restricted';
|
|
3
3
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
4
|
+
import { ESortOrder } from '../../enums';
|
|
4
5
|
export interface IMarksheetVar {
|
|
5
6
|
id: Id;
|
|
6
7
|
}
|
|
@@ -9,7 +10,7 @@ export declare const MARKSHEET: import("@apollo/client").DocumentNode;
|
|
|
9
10
|
export interface IMarksheetsVar {
|
|
10
11
|
filter: {
|
|
11
12
|
limit: number;
|
|
12
|
-
|
|
13
|
+
order?: ESortOrder;
|
|
13
14
|
offset?: number;
|
|
14
15
|
solo?: boolean;
|
|
15
16
|
period?: number;
|
|
@@ -18,7 +19,7 @@ export interface IMarksheetsVar {
|
|
|
18
19
|
export interface IMarksheetsWindowVar {
|
|
19
20
|
filter: {
|
|
20
21
|
limit: number;
|
|
21
|
-
order?:
|
|
22
|
+
order?: ESortOrder;
|
|
22
23
|
updatedAt?: Date | number;
|
|
23
24
|
solo?: boolean;
|
|
24
25
|
period?: number;
|
|
@@ -29,11 +30,15 @@ export type IMarksheetsData = RestrictedData<{
|
|
|
29
30
|
total: number;
|
|
30
31
|
score: number;
|
|
31
32
|
}, 'marksheets'>;
|
|
32
|
-
export
|
|
33
|
-
results: (graphqlNormalize & IMarksheet)[];
|
|
33
|
+
export interface IMarksheetsDashboardData {
|
|
34
34
|
total: number;
|
|
35
35
|
score: number;
|
|
36
|
-
|
|
36
|
+
results: Array<{
|
|
37
|
+
date: Date | number;
|
|
38
|
+
result: IMarksheet[];
|
|
39
|
+
}>;
|
|
40
|
+
}
|
|
41
|
+
export type IMarksheetsWindowData = RestrictedData<graphqlNormalize & IMarksheetsDashboardData, 'marksheetsWindow'>;
|
|
37
42
|
export interface PaginatedMarksheets {
|
|
38
43
|
results: (graphqlNormalize & IMarksheet)[];
|
|
39
44
|
total: number;
|
|
@@ -1022,17 +1022,20 @@ exports.MARKSHEETS_WINDOW = (0, client_1.gql) `
|
|
|
1022
1022
|
restricted {
|
|
1023
1023
|
marksheetsWindow(filter: $filter) {
|
|
1024
1024
|
results {
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1025
|
+
date
|
|
1026
|
+
result {
|
|
1027
|
+
id
|
|
1028
|
+
endedAt
|
|
1029
|
+
topicNames
|
|
1030
|
+
correct
|
|
1031
|
+
incorrect
|
|
1032
|
+
totalQuestions
|
|
1033
|
+
typeId
|
|
1034
|
+
isTestMarksheet
|
|
1035
|
+
solo
|
|
1036
|
+
completed
|
|
1037
|
+
updatedAt
|
|
1038
|
+
}
|
|
1036
1039
|
}
|
|
1037
1040
|
total
|
|
1038
1041
|
score
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EDifficultyType, EOsceType, Id, IDashboardOsce, IOsceMarksheet, IOsceStation, IOsceStats } from '../../../models';
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
3
|
import { ITopic } from './../../../models/Topic';
|
|
4
|
+
import { ESortOrder } from '../../enums';
|
|
4
5
|
export interface IOsceStatsVar {
|
|
5
6
|
typeId?: EOsceType[];
|
|
6
7
|
solo: boolean;
|
|
@@ -10,6 +11,7 @@ export declare const OSCE_STATS: import("@apollo/client").DocumentNode;
|
|
|
10
11
|
export declare const DASHBOARD_OSCE: import("@apollo/client").DocumentNode;
|
|
11
12
|
export interface IDashboardOsceVar {
|
|
12
13
|
solo: boolean;
|
|
14
|
+
order?: ESortOrder;
|
|
13
15
|
}
|
|
14
16
|
export type IDashboardOsceData = RestrictedData<graphqlNormalize & IDashboardOsce, 'dashboardOsce'>;
|
|
15
17
|
export declare const OSCE_MARKSHEETS: import("@apollo/client").DocumentNode;
|
|
@@ -21,7 +23,7 @@ export type IOsceMarksheetsData = RestrictedData<(graphqlNormalize & IOsceMarksh
|
|
|
21
23
|
export interface IOsceMarksheetsWindowVar {
|
|
22
24
|
filter: {
|
|
23
25
|
limit: number;
|
|
24
|
-
order?:
|
|
26
|
+
order?: ESortOrder;
|
|
25
27
|
updatedAt?: Date | number;
|
|
26
28
|
solo?: boolean;
|
|
27
29
|
period?: number;
|
|
@@ -31,7 +33,10 @@ export declare const OSCE_MARKSHEET_WINDOW: import("@apollo/client").DocumentNod
|
|
|
31
33
|
export interface IOsceMarksheetsDashboardData {
|
|
32
34
|
total: number;
|
|
33
35
|
score: number;
|
|
34
|
-
results:
|
|
36
|
+
results: Array<{
|
|
37
|
+
date: Date | number;
|
|
38
|
+
result: IOsceMarksheet[];
|
|
39
|
+
}>;
|
|
35
40
|
}
|
|
36
41
|
export type IOsceMarksheetsWindowData = RestrictedData<graphqlNormalize & IOsceMarksheetsDashboardData, 'osceMarksheetsWindow'>;
|
|
37
42
|
export declare const OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
@@ -23,9 +23,9 @@ exports.OSCE_STATS = (0, client_1.gql) `
|
|
|
23
23
|
}
|
|
24
24
|
`;
|
|
25
25
|
exports.DASHBOARD_OSCE = (0, client_1.gql) `
|
|
26
|
-
query DashboardOsce($solo: Boolean
|
|
26
|
+
query DashboardOsce($solo: Boolean!, $order: Int) {
|
|
27
27
|
restricted {
|
|
28
|
-
dashboardOsce(solo: $solo) {
|
|
28
|
+
dashboardOsce(solo: $solo, order: $order) {
|
|
29
29
|
lastSessionId
|
|
30
30
|
types {
|
|
31
31
|
id
|
|
@@ -63,12 +63,15 @@ exports.OSCE_MARKSHEET_WINDOW = (0, client_1.gql) `
|
|
|
63
63
|
restricted {
|
|
64
64
|
osceMarksheetsWindow(filter: $filter) {
|
|
65
65
|
results {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
date
|
|
67
|
+
result {
|
|
68
|
+
...OsceMarksheetFields
|
|
69
|
+
correct
|
|
70
|
+
total
|
|
71
|
+
osceStation {
|
|
72
|
+
...OsceStationFields
|
|
73
|
+
__typename
|
|
74
|
+
}
|
|
72
75
|
}
|
|
73
76
|
}
|
|
74
77
|
score
|
|
@@ -125,7 +125,7 @@ exports.DASHBOARD_QBANK = (0, client_1.gql) `
|
|
|
125
125
|
`;
|
|
126
126
|
exports.DASHBOARD = (0, client_1.gql) `
|
|
127
127
|
${fragments_1.PICTURE_FIELDS}
|
|
128
|
-
query Dashboard($filter: MarksheetFilterInput
|
|
128
|
+
query Dashboard($filter: MarksheetFilterInput!, $order: Int) {
|
|
129
129
|
restricted {
|
|
130
130
|
latestPastMarksheetId
|
|
131
131
|
latestSessionId
|
|
@@ -200,7 +200,7 @@ exports.DASHBOARD = (0, client_1.gql) `
|
|
|
200
200
|
}
|
|
201
201
|
total
|
|
202
202
|
}
|
|
203
|
-
topics(filter: 0) {
|
|
203
|
+
topics(filter: 0, order: $order) {
|
|
204
204
|
id
|
|
205
205
|
name
|
|
206
206
|
totalQuestions
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ETopicType, Id, ITopic, ITopicStats } from '../../../models';
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
|
+
import { ESortOrder } from '../../enums';
|
|
3
4
|
export interface ITopicStatsVar {
|
|
4
5
|
typeId?: ETopicType[];
|
|
5
6
|
}
|
|
@@ -12,6 +13,7 @@ export type ITopicData = RestrictedData<graphqlNormalize & ITopic, 'topic'>;
|
|
|
12
13
|
export declare const TOPIC: import("@apollo/client").DocumentNode;
|
|
13
14
|
export interface ITopicsVar {
|
|
14
15
|
filter: ETopicType;
|
|
16
|
+
order?: ESortOrder;
|
|
15
17
|
}
|
|
16
18
|
export type ITopicsData = RestrictedData<(graphqlNormalize & ITopic)[], 'topics'>;
|
|
17
19
|
export declare const TOPICS: import("@apollo/client").DocumentNode;
|
|
@@ -54,10 +54,11 @@ exports.TOPIC = (0, client_1.gql) `
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
`;
|
|
57
|
+
// TODO: rename filter->typeId
|
|
57
58
|
exports.TOPICS = (0, client_1.gql) `
|
|
58
|
-
query Topics($filter: Int
|
|
59
|
+
query Topics($filter: Int!, $order: Int) {
|
|
59
60
|
restricted {
|
|
60
|
-
topics(filter: $filter) {
|
|
61
|
+
topics(filter: $filter, order: $order) {
|
|
61
62
|
id
|
|
62
63
|
name
|
|
63
64
|
totalQuestions
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Id, IUniversity } from '../../models';
|
|
2
2
|
import { graphqlNormalize, RootData } from '../types';
|
|
3
|
+
import { ESortOrder } from '../enums';
|
|
3
4
|
export interface IUniversitiesVar {
|
|
4
5
|
id?: Id;
|
|
5
|
-
order?:
|
|
6
|
+
order?: ESortOrder;
|
|
6
7
|
}
|
|
7
8
|
export type IUniversitiesData = RootData<graphqlNormalize & IUniversity[], 'universities'>;
|
|
8
9
|
export declare const UNIVERSITIES: import("@apollo/client").DocumentNode;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UNIVERSITIES = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.UNIVERSITIES = (0, client_1.gql) `
|
|
6
|
-
query universities($id: Int, $order:
|
|
6
|
+
query universities($id: Int, $order: Int) {
|
|
7
7
|
universities(id: $id, order: $order) {
|
|
8
8
|
name
|
|
9
9
|
id
|
|
@@ -9,7 +9,13 @@ import { ITodo } from './Todo';
|
|
|
9
9
|
import { Id } from './Type';
|
|
10
10
|
import { IUniversity } from './University';
|
|
11
11
|
import { IVideo } from './Video';
|
|
12
|
-
export
|
|
12
|
+
export declare enum IAccessLevel {
|
|
13
|
+
SUBSCRIBER = "subscriber",
|
|
14
|
+
ADMINISTRATOR = "administrator",
|
|
15
|
+
TUTOR = "tutor",
|
|
16
|
+
DEMO = "demo",
|
|
17
|
+
EXPIRED = "expired"
|
|
18
|
+
}
|
|
13
19
|
export type IClassYear = 'Year 1' | 'Year 2' | 'Year 3' | 'Year 4' | 'Year 5' | 'Graduated' | 'PhD' | 'BSc' | 'MSc' | 'Beta Tester';
|
|
14
20
|
export declare const classYears: IClassYear[];
|
|
15
21
|
export declare enum EClassYearGroup {
|
package/dist/mjs/models/User.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { DateTime } from 'luxon';
|
|
2
|
+
export var IAccessLevel;
|
|
3
|
+
(function (IAccessLevel) {
|
|
4
|
+
IAccessLevel["SUBSCRIBER"] = "subscriber";
|
|
5
|
+
IAccessLevel["ADMINISTRATOR"] = "administrator";
|
|
6
|
+
IAccessLevel["TUTOR"] = "tutor";
|
|
7
|
+
IAccessLevel["DEMO"] = "demo";
|
|
8
|
+
IAccessLevel["EXPIRED"] = "expired";
|
|
9
|
+
})(IAccessLevel || (IAccessLevel = {}));
|
|
2
10
|
export const classYears = [
|
|
3
11
|
'Year 1',
|
|
4
12
|
'Year 2',
|
|
@@ -4,6 +4,7 @@ import * as query from './query';
|
|
|
4
4
|
import * as subscription from './subscription';
|
|
5
5
|
export * from './apollo';
|
|
6
6
|
export * from './types';
|
|
7
|
+
export * from './enums';
|
|
7
8
|
export declare namespace Resolvers {
|
|
8
9
|
export import Fragment = fragment;
|
|
9
10
|
export import Muation = mutation;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EDifficultyType, Id, IMarksheet, IUserFlaggedQuestion } from '../../../models';
|
|
2
2
|
import { IPreBuildMarksheet } from '../../mutation/restricted';
|
|
3
3
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
4
|
+
import { ESortOrder } from '../../enums';
|
|
4
5
|
export interface IMarksheetVar {
|
|
5
6
|
id: Id;
|
|
6
7
|
}
|
|
@@ -9,7 +10,7 @@ export declare const MARKSHEET: import("@apollo/client").DocumentNode;
|
|
|
9
10
|
export interface IMarksheetsVar {
|
|
10
11
|
filter: {
|
|
11
12
|
limit: number;
|
|
12
|
-
|
|
13
|
+
order?: ESortOrder;
|
|
13
14
|
offset?: number;
|
|
14
15
|
solo?: boolean;
|
|
15
16
|
period?: number;
|
|
@@ -18,7 +19,7 @@ export interface IMarksheetsVar {
|
|
|
18
19
|
export interface IMarksheetsWindowVar {
|
|
19
20
|
filter: {
|
|
20
21
|
limit: number;
|
|
21
|
-
order?:
|
|
22
|
+
order?: ESortOrder;
|
|
22
23
|
updatedAt?: Date | number;
|
|
23
24
|
solo?: boolean;
|
|
24
25
|
period?: number;
|
|
@@ -29,11 +30,15 @@ export type IMarksheetsData = RestrictedData<{
|
|
|
29
30
|
total: number;
|
|
30
31
|
score: number;
|
|
31
32
|
}, 'marksheets'>;
|
|
32
|
-
export
|
|
33
|
-
results: (graphqlNormalize & IMarksheet)[];
|
|
33
|
+
export interface IMarksheetsDashboardData {
|
|
34
34
|
total: number;
|
|
35
35
|
score: number;
|
|
36
|
-
|
|
36
|
+
results: Array<{
|
|
37
|
+
date: Date | number;
|
|
38
|
+
result: IMarksheet[];
|
|
39
|
+
}>;
|
|
40
|
+
}
|
|
41
|
+
export type IMarksheetsWindowData = RestrictedData<graphqlNormalize & IMarksheetsDashboardData, 'marksheetsWindow'>;
|
|
37
42
|
export interface PaginatedMarksheets {
|
|
38
43
|
results: (graphqlNormalize & IMarksheet)[];
|
|
39
44
|
total: number;
|
|
@@ -1019,17 +1019,20 @@ export const MARKSHEETS_WINDOW = gql `
|
|
|
1019
1019
|
restricted {
|
|
1020
1020
|
marksheetsWindow(filter: $filter) {
|
|
1021
1021
|
results {
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1022
|
+
date
|
|
1023
|
+
result {
|
|
1024
|
+
id
|
|
1025
|
+
endedAt
|
|
1026
|
+
topicNames
|
|
1027
|
+
correct
|
|
1028
|
+
incorrect
|
|
1029
|
+
totalQuestions
|
|
1030
|
+
typeId
|
|
1031
|
+
isTestMarksheet
|
|
1032
|
+
solo
|
|
1033
|
+
completed
|
|
1034
|
+
updatedAt
|
|
1035
|
+
}
|
|
1033
1036
|
}
|
|
1034
1037
|
total
|
|
1035
1038
|
score
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EDifficultyType, EOsceType, Id, IDashboardOsce, IOsceMarksheet, IOsceStation, IOsceStats } from '../../../models';
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
3
|
import { ITopic } from './../../../models/Topic';
|
|
4
|
+
import { ESortOrder } from '../../enums';
|
|
4
5
|
export interface IOsceStatsVar {
|
|
5
6
|
typeId?: EOsceType[];
|
|
6
7
|
solo: boolean;
|
|
@@ -10,6 +11,7 @@ export declare const OSCE_STATS: import("@apollo/client").DocumentNode;
|
|
|
10
11
|
export declare const DASHBOARD_OSCE: import("@apollo/client").DocumentNode;
|
|
11
12
|
export interface IDashboardOsceVar {
|
|
12
13
|
solo: boolean;
|
|
14
|
+
order?: ESortOrder;
|
|
13
15
|
}
|
|
14
16
|
export type IDashboardOsceData = RestrictedData<graphqlNormalize & IDashboardOsce, 'dashboardOsce'>;
|
|
15
17
|
export declare const OSCE_MARKSHEETS: import("@apollo/client").DocumentNode;
|
|
@@ -21,7 +23,7 @@ export type IOsceMarksheetsData = RestrictedData<(graphqlNormalize & IOsceMarksh
|
|
|
21
23
|
export interface IOsceMarksheetsWindowVar {
|
|
22
24
|
filter: {
|
|
23
25
|
limit: number;
|
|
24
|
-
order?:
|
|
26
|
+
order?: ESortOrder;
|
|
25
27
|
updatedAt?: Date | number;
|
|
26
28
|
solo?: boolean;
|
|
27
29
|
period?: number;
|
|
@@ -31,7 +33,10 @@ export declare const OSCE_MARKSHEET_WINDOW: import("@apollo/client").DocumentNod
|
|
|
31
33
|
export interface IOsceMarksheetsDashboardData {
|
|
32
34
|
total: number;
|
|
33
35
|
score: number;
|
|
34
|
-
results:
|
|
36
|
+
results: Array<{
|
|
37
|
+
date: Date | number;
|
|
38
|
+
result: IOsceMarksheet[];
|
|
39
|
+
}>;
|
|
35
40
|
}
|
|
36
41
|
export type IOsceMarksheetsWindowData = RestrictedData<graphqlNormalize & IOsceMarksheetsDashboardData, 'osceMarksheetsWindow'>;
|
|
37
42
|
export declare const OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
@@ -20,9 +20,9 @@ export const OSCE_STATS = gql `
|
|
|
20
20
|
}
|
|
21
21
|
`;
|
|
22
22
|
export const DASHBOARD_OSCE = gql `
|
|
23
|
-
query DashboardOsce($solo: Boolean
|
|
23
|
+
query DashboardOsce($solo: Boolean!, $order: Int) {
|
|
24
24
|
restricted {
|
|
25
|
-
dashboardOsce(solo: $solo) {
|
|
25
|
+
dashboardOsce(solo: $solo, order: $order) {
|
|
26
26
|
lastSessionId
|
|
27
27
|
types {
|
|
28
28
|
id
|
|
@@ -60,12 +60,15 @@ export const OSCE_MARKSHEET_WINDOW = gql `
|
|
|
60
60
|
restricted {
|
|
61
61
|
osceMarksheetsWindow(filter: $filter) {
|
|
62
62
|
results {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
date
|
|
64
|
+
result {
|
|
65
|
+
...OsceMarksheetFields
|
|
66
|
+
correct
|
|
67
|
+
total
|
|
68
|
+
osceStation {
|
|
69
|
+
...OsceStationFields
|
|
70
|
+
__typename
|
|
71
|
+
}
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
74
|
score
|
|
@@ -122,7 +122,7 @@ export const DASHBOARD_QBANK = gql `
|
|
|
122
122
|
`;
|
|
123
123
|
export const DASHBOARD = gql `
|
|
124
124
|
${PICTURE_FIELDS}
|
|
125
|
-
query Dashboard($filter: MarksheetFilterInput
|
|
125
|
+
query Dashboard($filter: MarksheetFilterInput!, $order: Int) {
|
|
126
126
|
restricted {
|
|
127
127
|
latestPastMarksheetId
|
|
128
128
|
latestSessionId
|
|
@@ -197,7 +197,7 @@ export const DASHBOARD = gql `
|
|
|
197
197
|
}
|
|
198
198
|
total
|
|
199
199
|
}
|
|
200
|
-
topics(filter: 0) {
|
|
200
|
+
topics(filter: 0, order: $order) {
|
|
201
201
|
id
|
|
202
202
|
name
|
|
203
203
|
totalQuestions
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ETopicType, Id, ITopic, ITopicStats } from '../../../models';
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
|
+
import { ESortOrder } from '../../enums';
|
|
3
4
|
export interface ITopicStatsVar {
|
|
4
5
|
typeId?: ETopicType[];
|
|
5
6
|
}
|
|
@@ -12,6 +13,7 @@ export type ITopicData = RestrictedData<graphqlNormalize & ITopic, 'topic'>;
|
|
|
12
13
|
export declare const TOPIC: import("@apollo/client").DocumentNode;
|
|
13
14
|
export interface ITopicsVar {
|
|
14
15
|
filter: ETopicType;
|
|
16
|
+
order?: ESortOrder;
|
|
15
17
|
}
|
|
16
18
|
export type ITopicsData = RestrictedData<(graphqlNormalize & ITopic)[], 'topics'>;
|
|
17
19
|
export declare const TOPICS: import("@apollo/client").DocumentNode;
|
|
@@ -51,10 +51,11 @@ export const TOPIC = gql `
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
`;
|
|
54
|
+
// TODO: rename filter->typeId
|
|
54
55
|
export const TOPICS = gql `
|
|
55
|
-
query Topics($filter: Int
|
|
56
|
+
query Topics($filter: Int!, $order: Int) {
|
|
56
57
|
restricted {
|
|
57
|
-
topics(filter: $filter) {
|
|
58
|
+
topics(filter: $filter, order: $order) {
|
|
58
59
|
id
|
|
59
60
|
name
|
|
60
61
|
totalQuestions
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Id, IUniversity } from '../../models';
|
|
2
2
|
import { graphqlNormalize, RootData } from '../types';
|
|
3
|
+
import { ESortOrder } from '../enums';
|
|
3
4
|
export interface IUniversitiesVar {
|
|
4
5
|
id?: Id;
|
|
5
|
-
order?:
|
|
6
|
+
order?: ESortOrder;
|
|
6
7
|
}
|
|
7
8
|
export type IUniversitiesData = RootData<graphqlNormalize & IUniversity[], 'universities'>;
|
|
8
9
|
export declare const UNIVERSITIES: import("@apollo/client").DocumentNode;
|