@quesmed/types 1.3.20 → 1.4.2
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 +3 -2
- package/resolvers/fragments/chapter.d.ts +2 -0
- package/resolvers/fragments/chapter.js +31 -0
- package/resolvers/fragments/chapter.mjs +28 -0
- package/resolvers/fragments/concept.d.ts +3 -0
- package/resolvers/fragments/concept.js +79 -0
- package/resolvers/fragments/concept.mjs +76 -0
- package/resolvers/fragments/osce.d.ts +10 -0
- package/resolvers/fragments/osce.js +171 -0
- package/resolvers/fragments/osce.mjs +168 -0
- package/resolvers/fragments/picture.d.ts +3 -0
- package/resolvers/fragments/picture.js +44 -0
- package/resolvers/fragments/picture.mjs +41 -0
- package/resolvers/fragments/user.d.ts +1 -0
- package/resolvers/fragments/user.js +26 -0
- package/resolvers/fragments/user.mjs +23 -0
- package/resolvers/fragments/video.d.ts +2 -0
- package/resolvers/fragments/video.js +49 -0
- package/resolvers/fragments/video.mjs +46 -0
- package/resolvers/mutation/restricted/osce.d.ts +34 -23
- package/resolvers/mutation/restricted/osce.js +200 -0
- package/resolvers/mutation/restricted/osce.mjs +198 -1
- package/resolvers/query/restricted/index.d.ts +1 -0
- package/resolvers/query/restricted/index.js +1 -0
- package/resolvers/query/restricted/index.mjs +1 -0
- package/resolvers/query/restricted/osce.d.ts +26 -21
- package/resolvers/query/restricted/osce.js +103 -0
- package/resolvers/query/restricted/osce.mjs +102 -1
- package/resolvers/query/restricted/quesBook.d.ts +3 -1
- package/resolvers/query/restricted/quesBook.js +13 -0
- package/resolvers/query/restricted/quesBook.mjs +12 -1
- package/resolvers/query/restricted/replication.d.ts +33 -0
- package/resolvers/query/restricted/replication.js +184 -0
- package/resolvers/query/restricted/replication.mjs +178 -0
- package/resolvers/subscription/osce.d.ts +20 -14
- package/resolvers/subscription/osce.js +36 -5
- package/resolvers/subscription/osce.mjs +35 -4
- package/resolvers/types.d.ts +10 -0
- package/resolvers/types.js +2 -0
- package/resolvers/types.mjs +1 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { EOsceMarksheetAction, EOsceRoles, IClassYear, Id, IOsceMarksheetUser, IUser } from '../../models';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
2
|
+
import { RootData } from '../types';
|
|
3
|
+
export declare const OSCE_ROLE_CHANGE_KEY = "OSCE_ROLE_CHANGE";
|
|
4
|
+
export declare const OSCE_MARKSHEET_ACTION_KEY = "OSCE_MARKSHEET_ACTION";
|
|
5
|
+
export declare const OSCE_MATCHMAKING_KEY = "OSCE_MATCHMAKING";
|
|
6
|
+
export declare const OSCE_MATCHMAKING_USERS_KEY = "OSCE_MATCHMAKING_USERS";
|
|
6
7
|
export interface IOsceGroupMember {
|
|
7
8
|
role: EOsceRoles;
|
|
8
9
|
user: IUser | null;
|
|
@@ -13,12 +14,13 @@ export interface IOsceGroup {
|
|
|
13
14
|
members: IOsceMarksheetUser[];
|
|
14
15
|
}
|
|
15
16
|
export declare const OsceGroupInit: (osceMarksheetId: number) => IOsceMarksheetUser[];
|
|
16
|
-
export
|
|
17
|
+
export declare const OSCE_ROLE_CHANGE: import("@apollo/client").DocumentNode;
|
|
18
|
+
export interface IOsceRoleChangedVar {
|
|
17
19
|
osceMarksheetId: Id;
|
|
18
20
|
}
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
export interface
|
|
21
|
+
export declare type IOsceRoleChangedData = RootData<IOsceGroup, 'osceRoleChange'>;
|
|
22
|
+
export declare const OSCE_MARKSHEET_ACTION: import("@apollo/client").DocumentNode;
|
|
23
|
+
export interface IOsceMarksheetActionVar {
|
|
22
24
|
osceMarksheetId: Id;
|
|
23
25
|
}
|
|
24
26
|
export interface IOsceMarksheetAction {
|
|
@@ -30,8 +32,8 @@ export interface IOsceMarksheetAction {
|
|
|
30
32
|
endedAt: Date | null;
|
|
31
33
|
action: EOsceMarksheetAction;
|
|
32
34
|
}
|
|
33
|
-
export
|
|
34
|
-
|
|
35
|
+
export declare type IOsceMarksheetActionData = RootData<IOsceGroup, 'osceMarksheetAction'>;
|
|
36
|
+
export declare const OSCE_MATCHMAKING: import("@apollo/client").DocumentNode;
|
|
35
37
|
export interface IOsceMatchmakingAction {
|
|
36
38
|
osceMarksheetId: Id;
|
|
37
39
|
agoraId: string;
|
|
@@ -40,7 +42,11 @@ export interface IOsceMatchmakingAction {
|
|
|
40
42
|
classYear: IClassYear;
|
|
41
43
|
lastSyncAt: number;
|
|
42
44
|
startedAt: number;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
grouped: boolean;
|
|
46
|
+
completed: boolean;
|
|
47
|
+
}
|
|
48
|
+
export declare type IOsceMatchmakingData = RootData<IOsceMatchmakingAction, 'osceMatchmaking'>;
|
|
49
|
+
export declare type IOsceMatchmakingVar = null;
|
|
50
|
+
export declare const OSCE_MATCHMAKING_USERS: import("@apollo/client").DocumentNode;
|
|
51
|
+
export declare type IOsceMatchmakingUsersData = RootData<number, 'osceMatchmakingUsers'>;
|
|
52
|
+
export declare type IOsceMatchmakingUsersVar = null;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OsceGroupInit = exports.
|
|
3
|
+
exports.OSCE_MATCHMAKING_USERS = exports.OSCE_MATCHMAKING = exports.OSCE_MARKSHEET_ACTION = exports.OSCE_ROLE_CHANGE = exports.OsceGroupInit = exports.OSCE_MATCHMAKING_USERS_KEY = exports.OSCE_MATCHMAKING_KEY = exports.OSCE_MARKSHEET_ACTION_KEY = exports.OSCE_ROLE_CHANGE_KEY = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
4
5
|
const models_1 = require("../../models");
|
|
5
|
-
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
6
|
+
const osce_1 = require("../fragments/osce");
|
|
7
|
+
exports.OSCE_ROLE_CHANGE_KEY = 'OSCE_ROLE_CHANGE';
|
|
8
|
+
exports.OSCE_MARKSHEET_ACTION_KEY = 'OSCE_MARKSHEET_ACTION';
|
|
9
|
+
exports.OSCE_MATCHMAKING_KEY = 'OSCE_MATCHMAKING';
|
|
10
|
+
exports.OSCE_MATCHMAKING_USERS_KEY = 'OSCE_MATCHMAKING_USERS';
|
|
9
11
|
const OsceGroupInit = (osceMarksheetId) => [
|
|
10
12
|
{
|
|
11
13
|
id: null,
|
|
@@ -41,3 +43,32 @@ const OsceGroupInit = (osceMarksheetId) => [
|
|
|
41
43
|
},
|
|
42
44
|
];
|
|
43
45
|
exports.OsceGroupInit = OsceGroupInit;
|
|
46
|
+
exports.OSCE_ROLE_CHANGE = (0, client_1.gql) `
|
|
47
|
+
${osce_1.OSCE_GROUP_FIELDS}
|
|
48
|
+
subscription osceRoleChangeSubscription($osceMarksheetId: Int!) {
|
|
49
|
+
osceRoleChange(osceMarksheetId: $osceMarksheetId) {
|
|
50
|
+
...OsceGroupFields
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
exports.OSCE_MARKSHEET_ACTION = (0, client_1.gql) `
|
|
55
|
+
${osce_1.OSCE_MARKSHEET_ACTION_FIELDS}
|
|
56
|
+
subscription OsceMarksheetAction($osceMarksheetId: Int!) {
|
|
57
|
+
osceMarksheetAction(osceMarksheetId: $osceMarksheetId) {
|
|
58
|
+
...OsceMarksheetActionFields
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
62
|
+
exports.OSCE_MATCHMAKING = (0, client_1.gql) `
|
|
63
|
+
${osce_1.OSCE_MATCHMAKING_ACTION_FIELDS}
|
|
64
|
+
subscription OsceMatchmaking($userId: Int!) {
|
|
65
|
+
osceMatchmaking(userId: $userId) {
|
|
66
|
+
...OsceMatchmakingActionFields
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
`;
|
|
70
|
+
exports.OSCE_MATCHMAKING_USERS = (0, client_1.gql) `
|
|
71
|
+
subscription OsceMatchmakingUsers {
|
|
72
|
+
osceMatchmakingUsers
|
|
73
|
+
}
|
|
74
|
+
`;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
1
2
|
import { EOsceRoles, } from '../../models';
|
|
2
|
-
|
|
3
|
-
export const
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
3
|
+
import { OSCE_GROUP_FIELDS, OSCE_MARKSHEET_ACTION_FIELDS, OSCE_MATCHMAKING_ACTION_FIELDS, } from '../fragments/osce';
|
|
4
|
+
export const OSCE_ROLE_CHANGE_KEY = 'OSCE_ROLE_CHANGE';
|
|
5
|
+
export const OSCE_MARKSHEET_ACTION_KEY = 'OSCE_MARKSHEET_ACTION';
|
|
6
|
+
export const OSCE_MATCHMAKING_KEY = 'OSCE_MATCHMAKING';
|
|
7
|
+
export const OSCE_MATCHMAKING_USERS_KEY = 'OSCE_MATCHMAKING_USERS';
|
|
6
8
|
export const OsceGroupInit = (osceMarksheetId) => [
|
|
7
9
|
{
|
|
8
10
|
id: null,
|
|
@@ -37,3 +39,32 @@ export const OsceGroupInit = (osceMarksheetId) => [
|
|
|
37
39
|
role: EOsceRoles.OBSERVER,
|
|
38
40
|
},
|
|
39
41
|
];
|
|
42
|
+
export const OSCE_ROLE_CHANGE = gql `
|
|
43
|
+
${OSCE_GROUP_FIELDS}
|
|
44
|
+
subscription osceRoleChangeSubscription($osceMarksheetId: Int!) {
|
|
45
|
+
osceRoleChange(osceMarksheetId: $osceMarksheetId) {
|
|
46
|
+
...OsceGroupFields
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
`;
|
|
50
|
+
export const OSCE_MARKSHEET_ACTION = gql `
|
|
51
|
+
${OSCE_MARKSHEET_ACTION_FIELDS}
|
|
52
|
+
subscription OsceMarksheetAction($osceMarksheetId: Int!) {
|
|
53
|
+
osceMarksheetAction(osceMarksheetId: $osceMarksheetId) {
|
|
54
|
+
...OsceMarksheetActionFields
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
export const OSCE_MATCHMAKING = gql `
|
|
59
|
+
${OSCE_MATCHMAKING_ACTION_FIELDS}
|
|
60
|
+
subscription OsceMatchmaking($userId: Int!) {
|
|
61
|
+
osceMatchmaking(userId: $userId) {
|
|
62
|
+
...OsceMatchmakingActionFields
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
66
|
+
export const OSCE_MATCHMAKING_USERS = gql `
|
|
67
|
+
subscription OsceMatchmakingUsers {
|
|
68
|
+
osceMatchmakingUsers
|
|
69
|
+
}
|
|
70
|
+
`;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface graphqlNormalize {
|
|
2
|
+
__typename?: string;
|
|
3
|
+
}
|
|
4
|
+
export declare type RestrictedData<T, K extends keyof any> = {
|
|
5
|
+
restricted: Record<K, T>;
|
|
6
|
+
};
|
|
7
|
+
export declare type AdminData<T, K extends keyof any> = {
|
|
8
|
+
admin: Record<K, T>;
|
|
9
|
+
};
|
|
10
|
+
export declare type RootData<T, K extends keyof any> = Record<K, T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|