@quesmed/types 1.4.0 → 1.4.1
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/package.json +1 -1
- package/resolvers/mutation/restricted/osce.d.ts +16 -33
- package/resolvers/query/restricted/osce.d.ts +9 -12
- package/resolvers/query/restricted/osce.js +4 -4
- package/resolvers/query/restricted/osce.mjs +4 -4
- package/resolvers/query/restricted/quesBook.d.ts +2 -1
- package/resolvers/types.d.ts +9 -0
- package/resolvers/types.js +2 -0
- package/resolvers/types.mjs +1 -0
package/package.json
CHANGED
|
@@ -1,68 +1,55 @@
|
|
|
1
1
|
import { EOsceMarksheetAction, EOsceRoles, Id, IOsceMarksheet, IOsceMarksheetMark } from '../../../models';
|
|
2
2
|
import { IOsceMatchmakingAction } from '../../subscription/osce';
|
|
3
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
4
|
export declare const START_OSCE_MATCHMAKING: import("@apollo/client").DocumentNode;
|
|
4
5
|
export interface IStartOsceMatchmakingVar {
|
|
5
6
|
agoraId: string;
|
|
6
7
|
}
|
|
7
|
-
export declare type IStartOsceMatchmakingData = boolean
|
|
8
|
+
export declare type IStartOsceMatchmakingData = RestrictedData<boolean, 'startOsceMatchmaking'>;
|
|
8
9
|
export declare const ACCEPT_OSCE_MATCHMAKING: import("@apollo/client").DocumentNode;
|
|
9
10
|
export interface IAcceptOsceMatchmakingVar {
|
|
10
11
|
agoraId: string;
|
|
11
12
|
}
|
|
12
|
-
export declare type IAcceptOsceMatchmakingData = boolean
|
|
13
|
+
export declare type IAcceptOsceMatchmakingData = RestrictedData<boolean, 'acceptOsceMatchmaking'>;
|
|
13
14
|
export declare const CHECK_OSCE_MATCHMAKING: import("@apollo/client").DocumentNode;
|
|
14
15
|
export declare type ICheckOsceMatchmakingVar = null;
|
|
15
|
-
export
|
|
16
|
-
}
|
|
16
|
+
export declare type ICheckOsceMatchmakingData = RestrictedData<graphqlNormalize & IOsceMatchmakingAction, 'checkOsceMatchmaking'>;
|
|
17
17
|
export declare const CANCEL_OSCE_MATCHMAKING: import("@apollo/client").DocumentNode;
|
|
18
18
|
export interface ICancelOsceMatchmakingVar {
|
|
19
19
|
agoraId: string;
|
|
20
20
|
}
|
|
21
|
-
export declare type ICancelOsceMatchmakingData = boolean
|
|
21
|
+
export declare type ICancelOsceMatchmakingData = RestrictedData<boolean, 'cancelOsceMatchmaking'>;
|
|
22
22
|
export declare const BUILD_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
23
23
|
export interface IBuildOsceMarksheetVar {
|
|
24
24
|
osceStationId?: Id;
|
|
25
25
|
agoraId?: string;
|
|
26
26
|
solo?: boolean;
|
|
27
27
|
}
|
|
28
|
-
export
|
|
29
|
-
}
|
|
28
|
+
export declare type IBuildOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'buildOsceMarksheet'>;
|
|
30
29
|
export declare const CHANGE_OSCE_ROLE: import("@apollo/client").DocumentNode;
|
|
31
30
|
export interface IChangeOsceRoleVar {
|
|
32
31
|
osceMarksheetId: Id;
|
|
33
32
|
role: EOsceRoles;
|
|
34
33
|
}
|
|
35
|
-
export
|
|
36
|
-
}
|
|
34
|
+
export declare type IChangeOsceRoleData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'changeOsceRole'>;
|
|
37
35
|
export declare const MARK_OSCE_MARKSHEET_MARK: import("@apollo/client").DocumentNode;
|
|
38
36
|
export interface IMarkOsceMarksheetMarkVar {
|
|
39
37
|
osceStationMarkId: Id;
|
|
40
38
|
mark: boolean;
|
|
41
39
|
}
|
|
42
|
-
export
|
|
43
|
-
|
|
44
|
-
export declare const optimisticMarkOsceMarksheetMark: (variables: IMarkOsceMarksheetMarkVar) => {
|
|
45
|
-
restricted: {
|
|
46
|
-
markOsceMarksheetMark: {
|
|
47
|
-
id: number;
|
|
48
|
-
mark: boolean;
|
|
49
|
-
__typename: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
};
|
|
40
|
+
export declare type IMarkOsceMarksheetMarkData = RestrictedData<graphqlNormalize & Partial<IOsceMarksheetMark>, 'markOsceMarksheetMark'>;
|
|
41
|
+
export declare const optimisticMarkOsceMarksheetMark: (variables: IMarkOsceMarksheetMarkVar) => IMarkOsceMarksheetMarkData;
|
|
53
42
|
export declare const SELECT_OSCE_STATION: import("@apollo/client").DocumentNode;
|
|
54
43
|
export interface ISelectOsceMarksheetStationVar {
|
|
55
44
|
osceMarksheetId: Id;
|
|
56
45
|
osceStationId: Id;
|
|
57
46
|
}
|
|
58
|
-
export
|
|
59
|
-
}
|
|
47
|
+
export declare type ISelectOsceMarksheetStationData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'selectOsceMarksheetStation'>;
|
|
60
48
|
export declare const START_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
61
49
|
export interface IStartOsceMarksheetVar {
|
|
62
50
|
osceMarksheetId: Id;
|
|
63
51
|
}
|
|
64
|
-
export
|
|
65
|
-
}
|
|
52
|
+
export declare type IStartOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'startOsceMarksheet'>;
|
|
66
53
|
export declare const PRESTART_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
67
54
|
export interface IPrestartOsceMarksheetVar {
|
|
68
55
|
osceMarksheetId: Id;
|
|
@@ -70,8 +57,7 @@ export interface IPrestartOsceMarksheetVar {
|
|
|
70
57
|
stationTime: number;
|
|
71
58
|
feedbackTime: number;
|
|
72
59
|
}
|
|
73
|
-
export
|
|
74
|
-
}
|
|
60
|
+
export declare type IPrestartOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'prestartOsceMarksheet'>;
|
|
75
61
|
export declare const SAVE_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
76
62
|
export interface ISaveOsceMarksheetVar {
|
|
77
63
|
osceMarksheetId: Id;
|
|
@@ -79,8 +65,7 @@ export interface ISaveOsceMarksheetVar {
|
|
|
79
65
|
timeTaken?: number;
|
|
80
66
|
feedback?: string;
|
|
81
67
|
}
|
|
82
|
-
export
|
|
83
|
-
}
|
|
68
|
+
export declare type ISaveOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'saveOsceMarksheet'>;
|
|
84
69
|
export declare const OSCE_MARKSHEET_ACTIONS: import("@apollo/client").DocumentNode;
|
|
85
70
|
export interface IOsceMarksheetActionsVar {
|
|
86
71
|
osceMarksheetId: Id;
|
|
@@ -88,15 +73,13 @@ export interface IOsceMarksheetActionsVar {
|
|
|
88
73
|
timeRemaining?: number;
|
|
89
74
|
action: EOsceMarksheetAction;
|
|
90
75
|
}
|
|
91
|
-
export declare type IOsceMarksheetActionsData = number
|
|
76
|
+
export declare type IOsceMarksheetActionsData = RestrictedData<number, 'osceMarksheetActions'>;
|
|
92
77
|
export declare const END_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
93
78
|
export interface IEndOsceMarksheetVar extends ISaveOsceMarksheetVar {
|
|
94
79
|
}
|
|
95
|
-
export
|
|
96
|
-
}
|
|
80
|
+
export declare type IEndOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'endOsceMarksheet'>;
|
|
97
81
|
export declare const LEAVE_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
98
82
|
export interface ILeaveOsceMarksheetVar {
|
|
99
83
|
osceMarksheetId: Id;
|
|
100
84
|
}
|
|
101
|
-
export
|
|
102
|
-
}
|
|
85
|
+
export declare type ILeaveOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'leaveOsceMarksheet'>;
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { EDifficultyType, Id, IDashboardOsce, IOsceMarksheet, IOsceStation, IOsceStationItem } from '../../../models';
|
|
2
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
2
3
|
import { ITopic } from './../../../models/Topic';
|
|
3
4
|
export declare const DASHBOARD_OSCE: import("@apollo/client").DocumentNode;
|
|
4
5
|
export interface IDashboardOsceVar {
|
|
5
6
|
solo: boolean;
|
|
6
7
|
}
|
|
7
|
-
export
|
|
8
|
-
}
|
|
8
|
+
export declare type IDashboardOsceData = RestrictedData<graphqlNormalize & IDashboardOsce, 'dashboardOsce'>;
|
|
9
9
|
export declare const OSCE_MARKSHEETS: import("@apollo/client").DocumentNode;
|
|
10
10
|
export interface IOsceMarksheetsVar {
|
|
11
11
|
solo: boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare type IOsceMarksheetsData = IOsceMarksheet[]
|
|
13
|
+
export declare type IOsceMarksheetsData = RestrictedData<(graphqlNormalize & IOsceMarksheet)[], 'osceMarksheets'>;
|
|
14
14
|
export declare const OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
15
15
|
export interface IOsceMarksheetVar {
|
|
16
16
|
id: number;
|
|
17
17
|
}
|
|
18
|
-
export
|
|
19
|
-
}
|
|
18
|
+
export declare type IOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'osceMarksheet'>;
|
|
20
19
|
export declare const OSCE_STATIONS: import("@apollo/client").DocumentNode;
|
|
21
20
|
export interface IOsceStationsVar {
|
|
22
21
|
osceTypeId?: Id;
|
|
@@ -25,24 +24,22 @@ export interface IOsceStationsVar {
|
|
|
25
24
|
topicIds: Id[];
|
|
26
25
|
difficulty: EDifficultyType[];
|
|
27
26
|
}
|
|
28
|
-
export declare type IOsceStationsData = IOsceStationItem[]
|
|
27
|
+
export declare type IOsceStationsData = RestrictedData<(graphqlNormalize & IOsceStationItem)[], 'osceStations'>;
|
|
29
28
|
export declare const OSCE_STATION: import("@apollo/client").DocumentNode;
|
|
30
29
|
export interface IOsceStationVar {
|
|
31
30
|
id: Id;
|
|
32
31
|
}
|
|
33
|
-
export
|
|
34
|
-
}
|
|
32
|
+
export declare type IOsceStationData = RestrictedData<graphqlNormalize & IOsceStation, 'osceStation'>;
|
|
35
33
|
export declare const OSCE_TOPICS: import("@apollo/client").DocumentNode;
|
|
36
34
|
export declare type IOsceTopicsVar = null;
|
|
37
|
-
export
|
|
38
|
-
}
|
|
35
|
+
export declare type IOsceTopicsData = RestrictedData<graphqlNormalize & ITopic, 'osceTopics'>;
|
|
39
36
|
export declare const SEARCH_OSCE_STATIONS: import("@apollo/client").DocumentNode;
|
|
40
37
|
export interface ISearchOsceStationsVar {
|
|
41
38
|
search: string;
|
|
42
39
|
}
|
|
43
|
-
export declare type ISearchOsceStationsData = IOsceStationItem[]
|
|
40
|
+
export declare type ISearchOsceStationsData = RestrictedData<(graphqlNormalize & IOsceStationItem)[], 'searchOsceStations'>;
|
|
44
41
|
export declare const HEARTBEAT: import("@apollo/client").DocumentNode;
|
|
45
42
|
export interface IHeartbeatVar {
|
|
46
43
|
agoraId: string;
|
|
47
44
|
}
|
|
48
|
-
export declare type IHeartBeatData = boolean
|
|
45
|
+
export declare type IHeartBeatData = RestrictedData<boolean, 'heartbeat'>;
|
|
@@ -36,9 +36,9 @@ exports.OSCE_MARKSHEETS = (0, client_1.gql) `
|
|
|
36
36
|
`;
|
|
37
37
|
exports.OSCE_MARKSHEET = (0, client_1.gql) `
|
|
38
38
|
${osce_1.OSCE_MARKSHEET_FIELDS}
|
|
39
|
-
query OsceMarksheet($
|
|
39
|
+
query OsceMarksheet($id: Int!) {
|
|
40
40
|
restricted {
|
|
41
|
-
osceMarksheet(id: $
|
|
41
|
+
osceMarksheet(id: $id) {
|
|
42
42
|
...OsceMarksheetFields
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -56,9 +56,9 @@ exports.OSCE_STATIONS = (0, client_1.gql) `
|
|
|
56
56
|
`;
|
|
57
57
|
exports.OSCE_STATION = (0, client_1.gql) `
|
|
58
58
|
${osce_2.OSCE_STATION_FIELDS}
|
|
59
|
-
query OsceStation($
|
|
59
|
+
query OsceStation($id: Int!) {
|
|
60
60
|
restricted {
|
|
61
|
-
osceStation(id: $
|
|
61
|
+
osceStation(id: $id) {
|
|
62
62
|
...OsceStationFields
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -33,9 +33,9 @@ export const OSCE_MARKSHEETS = gql `
|
|
|
33
33
|
`;
|
|
34
34
|
export const OSCE_MARKSHEET = gql `
|
|
35
35
|
${OSCE_MARKSHEET_FIELDS}
|
|
36
|
-
query OsceMarksheet($
|
|
36
|
+
query OsceMarksheet($id: Int!) {
|
|
37
37
|
restricted {
|
|
38
|
-
osceMarksheet(id: $
|
|
38
|
+
osceMarksheet(id: $id) {
|
|
39
39
|
...OsceMarksheetFields
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -53,9 +53,9 @@ export const OSCE_STATIONS = gql `
|
|
|
53
53
|
`;
|
|
54
54
|
export const OSCE_STATION = gql `
|
|
55
55
|
${OSCE_STATION_FIELDS}
|
|
56
|
-
query OsceStation($
|
|
56
|
+
query OsceStation($id: Int!) {
|
|
57
57
|
restricted {
|
|
58
|
-
osceStation(id: $
|
|
58
|
+
osceStation(id: $id) {
|
|
59
59
|
...OsceStationFields
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IOsceStation, ITopic } from '../../../models';
|
|
2
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
2
3
|
export declare type IQuesBookVar = null;
|
|
3
4
|
export declare type IQuesBookData = ITopic[];
|
|
4
5
|
export declare const OSCE_BOOK: import("@apollo/client").DocumentNode;
|
|
5
6
|
export declare type IOsceBookVar = null;
|
|
6
|
-
export declare type IOsceBookData = IOsceStation[]
|
|
7
|
+
export declare type IOsceBookData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'osceBook'>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|